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

Member predicate LocalConstantDeclStmt::getVariableDeclExpr

Gets the nth local constant declaration. For example, the second (n = 1) declaration is y = 2 in

void M() {
  const int x = 1, y = 2;
}
LocalConstantDeclExpr getVariableDeclExpr(int n)