Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent baf0917 commit 89e5670Copy full SHA for 89e5670
2 files changed
python/ql/src/semmle/python/dataflow/new/internal/DataFlowPublic.qll
@@ -181,8 +181,8 @@ class ParameterNode extends CfgNode {
181
182
ParameterNode() {
183
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()
+ // Disregard parameters that we cannot resolve
+ exists(DataFlowCallable c | node = c.getParameter(_))
186
}
187
188
/**
python/ql/test/experimental/dataflow/consistency/dataflow-consistency.expected
@@ -1,5 +1,4 @@
1
uniqueEnclosingCallable
2
-| test.py:239:27:239:27 | ControlFlowNode for p | Node should have one enclosing callable but has 0. |
3
uniqueType
4
uniqueNodeLocation
5
missingLocation
0 commit comments