Python: Restructure getNamedArgumentForCall

So it matches the structure of getArgumentForCall -- call.getArgByName first!
This commit is contained in:
Rasmus Wriedt Larsen
2020-05-05 09:00:55 +02:00
parent 838106d49c
commit 061bbb82f5

View File

@@ -380,14 +380,14 @@ class CallableValue extends Value {
PointsToInternal::pointsTo(call.getFunction(), _, called, _) and
called.functionAndOffset(this, offset)
|
call.getArgByName(name) = result and
exists(this.getParameterByName(name))
or
exists(int n |
call.getArg(n) = result and
this.getParameter(n+offset).getId() = name
)
or
call.getArgByName(name) = result and
exists(this.getParameterByName(name))
or
called instanceof BoundMethodObjectInternal and
offset = 1 and
name = "self" and