We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 527c415 commit baf0917Copy full SHA for baf0917
python/ql/src/semmle/python/dataflow/new/internal/DataFlowPublic.qll
@@ -179,7 +179,11 @@ ExprNode exprNode(DataFlowExpr e) { result.getNode().getNode() = e }
179
class ParameterNode extends CfgNode {
180
ParameterDefinition def;
181
182
- ParameterNode() { node = def.getDefiningNode() }
+ 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()
186
+ }
187
188
/**
189
* Holds if this node is the parameter of callable `c` at the
0 commit comments