mirror of
https://github.com/github/codeql.git
synced 2026-04-26 17:25:19 +02:00
Python: allow comp arg as argumentnode
This commit is contained in:
@@ -163,6 +163,10 @@ newtype TArgumentPosition =
|
||||
// position, we need to ensure we make these available (these are specified as
|
||||
// parameters in the flow-summary spec)
|
||||
FlowSummaryImpl::ParsePositions::isParsedPositionalParameterPosition(_, index)
|
||||
or
|
||||
// the generated function inside a comprehension has a positional argument at index 0
|
||||
exists(Comp c) and
|
||||
index = 0
|
||||
} or
|
||||
TKeywordArgumentPosition(string name) {
|
||||
exists(any(CallNode c).getArgByName(name))
|
||||
|
||||
Reference in New Issue
Block a user