Python: allow comp arg as argumentnode

This commit is contained in:
Rasmus Lerchedahl Petersen
2024-09-30 13:02:20 +02:00
parent f9f46f0f98
commit ded39749a7

View File

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