CodeQL library for C#
codeql/csharp-all 0.4.4 (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()