Merge pull request #5253 from RasmusWL/no-getAnArg

Approved by tausbn
This commit is contained in:
CodeQL CI
2021-02-24 06:34:31 -08:00
committed by GitHub
2 changed files with 2 additions and 8 deletions

View File

@@ -193,13 +193,6 @@ class CallCfgNode extends CfgNode {
/** Gets the data-flow node corresponding to the named argument of the call corresponding to this data-flow node */
Node getArgByName(string name) { result.asCfgNode() = node.getArgByName(name) }
/** Gets the data-flow node corresponding to an argument of the call corresponding to this data-flow node */
Node getAnArg() {
exists(int n | result = this.getArg(n))
or
exists(string name | result = this.getArgByName(name))
}
}
/**