mirror of
https://github.com/github/codeql.git
synced 2025-12-20 18:56:32 +01:00
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:
@@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user