CodeQL library for C#
codeql/csharp-all 0.4.4 (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()