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

Member predicate ForeachStmt::getIterableExpr

Gets the expression that this foreach loop iterates over.

For example, items in

foreach (var item in items) {
  ...
}
Expr getIterableExpr()