Python: Rename otherArgs to implicitArgumentNode

Co-authored-by: yoff <yoff@github.com>
This commit is contained in:
Taus
2026-02-03 15:32:46 +00:00
parent 958c798c3f
commit 62fb38d834

View File

@@ -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, _)
)