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 5cea452 commit 6a73479Copy full SHA for 6a73479
1 file changed
python/ql/src/Variables/LoopVariableCapture.ql
@@ -34,7 +34,7 @@ predicate escaping_capturing_looping_construct(CallableExpr capturing, AstNode l
34
and
35
// Escapes if used out side of for loop or is a lambda in a comprehension
36
(
37
- exists(Expr e, For forloop | forloop = loop and e.refersTo(_, _, capturing) | not forloop.contains(e))
+ exists(Expr e, For forloop | forloop = loop and e.pointsTo(_, _, capturing) | not forloop.contains(e))
38
or
39
loop.(Comp).getElt() = capturing
40
0 commit comments