CodeQL library for C#
codeql/csharp-all 0.6.2 ( changelog , source )
Search

Member predicate ForeachStmt :: getVariableDeclExpr

Gets the ith local variable declaration of this foreach loop.

For example, int a is the 0th local variable declaration in

foreach ((int a, int b) in items) {
  ...
}
LocalVariableDeclExpr getVariableDeclExpr ( int i )