mirror of
https://github.com/github/codeql.git
synced 2026-02-23 18:33:42 +01:00
Python: Rename otherArgs to implicitArgumentNode
Co-authored-by: yoff <yoff@github.com>
This commit is contained in:
@@ -369,7 +369,7 @@ Node getCallArgApproximation() {
|
||||
}
|
||||
|
||||
/** Gets the extracted argument nodes that do not rely on `getCallArg`. */
|
||||
private Node otherArgs() {
|
||||
private Node implicitArgumentNode() {
|
||||
// for potential summaries we allow all normal call arguments
|
||||
normalCallArg(_, result, _)
|
||||
or
|
||||
@@ -387,14 +387,14 @@ class ExtractedArgumentNode extends ArgumentNode {
|
||||
ExtractedArgumentNode() {
|
||||
this = getCallArgApproximation()
|
||||
or
|
||||
this = otherArgs()
|
||||
this = implicitArgumentNode()
|
||||
}
|
||||
|
||||
final override predicate argumentOf(DataFlowCall call, ArgumentPosition pos) {
|
||||
this = call.getArgument(pos) and
|
||||
call instanceof ExtractedDataFlowCall and
|
||||
(
|
||||
this = otherArgs()
|
||||
this = implicitArgumentNode()
|
||||
or
|
||||
this = getCallArgApproximation() and getCallArg(_, _, _, this, _)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user