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

Member predicate ForStmt :: getInitializer

Gets the nth initializer expression of this for loop (starting at index 0).

For example, the second (n = 1) initializer is j = 10 in

for (int i = 0, j = 10; i < j; i++) {
  ...
}
Expr getInitializer ( int n )