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

Member predicate LocalConstantDeclStmt::getAVariableDeclExpr

Gets a local constant declaration, for example x = 1 and y = 2 in

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