@@ -31,7 +31,7 @@ class AnnotatedCall extends DataFlow::Node {
31
31
32
32
AnnotatedCall ( ) {
33
33
this instanceof DataFlow:: InvokeNode and
34
- calls = getAnnotation ( this .asExpr ( ) , kind ) and
34
+ calls = getAnnotation ( this .getEnclosingExpr ( ) , kind ) and
35
35
kind = "calls"
36
36
or
37
37
this instanceof DataFlow:: PropRef and
@@ -79,12 +79,14 @@ query predicate spuriousCallee(AnnotatedCall call, Function target, int boundArg
79
79
}
80
80
81
81
query predicate missingCallee (
82
- AnnotatedCall call , AnnotatedFunction target , int boundArgs , string kind
82
+ InvokeExpr invoke , AnnotatedFunction target , int boundArgs , string kind
83
83
) {
84
- not callEdge ( call , target , boundArgs ) and
85
- kind = call .getKind ( ) and
86
- target = call .getAnExpectedCallee ( kind ) and
87
- boundArgs = call .getBoundArgsOrMinusOne ( )
84
+ forex ( AnnotatedCall call | call .getEnclosingExpr ( ) = invoke |
85
+ not callEdge ( call , target , boundArgs ) and
86
+ kind = call .getKind ( ) and
87
+ target = call .getAnExpectedCallee ( kind ) and
88
+ boundArgs = call .getBoundArgsOrMinusOne ( )
89
+ )
88
90
}
89
91
90
92
query predicate badAnnotation ( string name ) {
0 commit comments