File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
powershell/ql/lib/semmle/code/powershell/controlflow/internal Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -427,15 +427,17 @@ module Trees {
427
427
override predicate last ( AstNode last , Completion c ) {
428
428
// Exit the loop body when the condition is false
429
429
last ( this .getCondition ( ) , last , c ) and
430
- this .entersLoopWhenConditionIs ( c .( BooleanCompletion ) .getValue ( ) .booleanNot ( ) )
430
+ this .entersLoopWhenConditionIs ( pragma [ only_bind_into ] ( c .( BooleanCompletion )
431
+ .getValue ( )
432
+ .booleanNot ( ) ) )
431
433
or
432
434
super .last ( last , c )
433
435
}
434
436
435
437
override predicate succ ( AstNode pred , AstNode succ , Completion c ) {
436
438
// Condition -> body
437
439
last ( this .getCondition ( ) , pred , c ) and
438
- this .entersLoopWhenConditionIs ( c .( BooleanCompletion ) .getValue ( ) ) and
440
+ this .entersLoopWhenConditionIs ( pragma [ only_bind_into ] ( c .( BooleanCompletion ) .getValue ( ) ) ) and
439
441
first ( this .getBody ( ) , succ )
440
442
or
441
443
// Body -> condition
You can’t perform that action at this time.
0 commit comments