mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
Python: allow CaptureArgumentNodes as multiple arguemnts
These are the labmda self references. This is similar to how `BlockParameterArgumentNode` is excluded for Ruby. It is important that we restrict `call` in this logic. Otherwise, we get a cartesian product and the consistency check runs for a very long time...
This commit is contained in:
@@ -140,6 +140,9 @@ private module Input implements InputSig<PythonDataFlow> {
|
||||
arg = other.getArgument(any(ArgumentPosition p | p.isSelf())) and
|
||||
other.getNode().getScope() = f
|
||||
)
|
||||
or
|
||||
arg = call.getArgument(_) and
|
||||
arg instanceof CaptureArgumentNode
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user