mirror of
https://github.com/github/codeql.git
synced 2026-05-01 19:55:15 +02:00
Python: Restructure getNamedArgumentForCall
So it matches the structure of getArgumentForCall -- call.getArgByName first!
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user