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

Member predicate ForStmt::getUpdate

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

For example, the second (n = 1) update expression is j-- in

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