We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4a476e commit a54e810Copy full SHA for a54e810
javascript/ql/src/meta/alerts/CallGraph.ql
@@ -10,6 +10,7 @@
10
11
import javascript
12
13
-from DataFlow::InvokeNode invoke, Function f
14
-where invoke.getACallee() = f
15
-select invoke, "Call to $@", f, f.describe()
+from DataFlow::Node invoke, Function f, string kind
+where invoke.(DataFlow::InvokeNode).getACallee() = f and kind = "Call" or
+ invoke.(DataFlow::PropRef).getAnAccessorCallee().getFunction() = f and kind = "Accessor call"
16
+select invoke, kind + " to $@", f, f.describe()
0 commit comments