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