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 432a591 commit e6d9cd1Copy full SHA for e6d9cd1
javascript/ql/src/semmle/javascript/ApiGraphs.qll
@@ -840,10 +840,16 @@ module API {
840
Node getLastParameter() { result = getParameter(getNumArgument() - 1) }
841
842
/** Gets the API node for the return value of this call. */
843
- Node getReturn() { result.getAnImmediateUse() = this }
+ Node getReturn() {
844
+ result = callee.getReturn() and
845
+ result.getAnImmediateUse() = this
846
+ }
847
848
/** Gets the API node for the object constructed by this invocation. */
- Node getInstance() { result.getAnImmediateUse() = this }
849
+ Node getInstance() {
850
+ result = callee.getInstance() and
851
852
853
}
854
855
/** A call connected to the API graph. */
0 commit comments