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

Member predicate ForeachStmt::getAVariable

Gets a local variable of this foreach loop.

For example, a and b in

foreach ((int a, int b) in items) {
  ...
}
LocalVariable getAVariable()