Skip to content

Commit cea09af

Browse files
committed
C#: Address review comments.
1 parent 2a5ebb8 commit cea09af

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎csharp/ql/lib/Linq/Helpers.qll‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,10 @@ class ForEachStmtEnumerable extends ForEachStmt {
118118

119119
bindingset[e]
120120
private predicate acceptableForLinqCapture(Expr e) {
121-
not exists(ParameterAccess pa, Parameter p | p = pa.getTarget() |
122-
pa = e.getAChildExpr*() and
121+
not exists(ParameterAccess pa, Parameter p |
122+
p = pa.getTarget() and
123+
pa = e.getAChildExpr*()
124+
|
123125
(p.isOutOrRef() or p.isIn() or p.isReadonlyRef())
124126
)
125127
}

0 commit comments

Comments
 (0)