mirror of
https://github.com/github/codeql.git
synced 2026-02-08 19:21:07 +01:00
Python: Allow CallNode.getArgByName for keyword args after **kwargs
This commit is contained in:
@@ -376,7 +376,7 @@ class CallNode extends ControlFlowNode {
|
||||
ControlFlowNode getArgByName(string name) {
|
||||
exists(Call c, Keyword k |
|
||||
this.getNode() = c and
|
||||
k = c.getAKeyword() and
|
||||
k = c.getANamedArg() and
|
||||
k.getValue() = result.getNode() and
|
||||
k.getArg() = name and
|
||||
result.getBasicBlock().dominates(this.getBasicBlock())
|
||||
|
||||
Reference in New Issue
Block a user