@@ -31,7 +31,7 @@ class AnnotatedCall extends DataFlow::Node {
3131
3232 AnnotatedCall ( ) {
3333 this instanceof DataFlow:: InvokeNode and
34- calls = getAnnotation ( this .asExpr ( ) , kind ) and
34+ calls = getAnnotation ( this .getEnclosingExpr ( ) , kind ) and
3535 kind = "calls"
3636 or
3737 this instanceof DataFlow:: PropRef and
@@ -79,12 +79,14 @@ query predicate spuriousCallee(AnnotatedCall call, Function target, int boundArg
7979}
8080
8181query predicate missingCallee (
82- AnnotatedCall call , AnnotatedFunction target , int boundArgs , string kind
82+ InvokeExpr invoke , AnnotatedFunction target , int boundArgs , string kind
8383) {
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+ )
8890}
8991
9092query predicate badAnnotation ( string name ) {
0 commit comments