Python: Remove getAnArg in DataFlow::CallCfgNode

Until we've had further discussion on what is the right approach to
naming (internal discussion in https://github.com/github/codeql-python-team/issues/95)
This commit is contained in:
Rasmus Wriedt Larsen
2021-02-24 10:20:29 +01:00
parent 5bb4a1a45a
commit d05a8b8c46

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))
}
}
/**