File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
src/semmle/python/dataflow/new/internal
test/experimental/dataflow/consistency Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -181,8 +181,8 @@ class ParameterNode extends CfgNode {
181181
182182 ParameterNode ( ) {
183183 node = def .getDefiningNode ( ) and
184- // Disregard parameters to the function the extractor has synthesised for comprehensions
185- not def . getScope ( ) = any ( Comp comp ) . getNthInnerLoop ( 0 ) . getIter ( ) . getScope ( )
184+ // Disregard parameters that we cannot resolve
185+ exists ( DataFlowCallable c | node = c . getParameter ( _ ) )
186186 }
187187
188188 /**
Original file line number Diff line number Diff line change 11uniqueEnclosingCallable
2- | test.py:239:27:239:27 | ControlFlowNode for p | Node should have one enclosing callable but has 0. |
32uniqueType
43uniqueNodeLocation
54missingLocation
You can’t perform that action at this time.
0 commit comments