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

Member predicate ForeachStmt::getVariable

Gets the local variable of this foreach loop, if any.

For example, item in

foreach (var item in items) {
  ...
}
LocalVariable getVariable()