1212import javascript
1313
1414/** Holds if `base` declares or inherits method `m` with the given `name`. */
15- predicate hasMethod ( ClassDefinition base , string name , MethodDefinition m ) {
15+ predicate hasMethod ( ClassDefinition base , string name , MethodDeclaration m ) {
1616 m = base .getMethod ( name ) or
1717 hasMethod ( base .getSuperClassDefinition ( ) , name , m )
1818}
@@ -22,7 +22,7 @@ predicate hasMethod(ClassDefinition base, string name, MethodDefinition m) {
2222 * where `fromMethod` and `toMethod` are of kind `fromKind` and `toKind`, respectively.
2323 */
2424predicate isLocalMethodAccess (
25- PropAccess access , MethodDefinition fromMethod , string fromKind , MethodDefinition toMethod ,
25+ PropAccess access , MethodDefinition fromMethod , string fromKind , MethodDeclaration toMethod ,
2626 string toKind
2727) {
2828 hasMethod ( fromMethod .getDeclaringClass ( ) , access .getPropertyName ( ) , toMethod ) and
@@ -32,7 +32,7 @@ predicate isLocalMethodAccess(
3232 toKind = getKind ( toMethod )
3333}
3434
35- string getKind ( MethodDefinition m ) {
35+ string getKind ( MethodDeclaration m ) {
3636 if m .isStatic ( ) then result = "static" else result = "instance"
3737}
3838
0 commit comments