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 c80365c commit dcef6cbCopy full SHA for dcef6cb
javascript/ql/src/semmle/javascript/ApiGraphs.qll
@@ -914,11 +914,17 @@ module API {
914
}
915
916
/** Gets the API node for the `i`th parameter of this invocation. */
917
+ pragma[nomagic]
918
Node getParameter(int i) {
919
result = callee.getParameter(i) and
- result.getARhs() = getArgument(i)
920
+ result = getAParameterCandidate(i)
921
922
923
+ /**
924
+ * Gets an API node where a RHS of the node if the `i`th argument to this call.
925
+ */
926
+ private Node getAParameterCandidate(int i) { result.getARhs() = getArgument(i) }
927
+
928
/** Gets the API node for a parameter of this invocation. */
929
Node getAParameter() { result = getParameter(_) }
930
0 commit comments