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