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

Member predicate ForeachStmt::getAVariableDeclExpr

Gets a local variable declaration of this foreach loop.

For example, int a and int b in

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