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

Member predicate LocalVariableDeclStmt::getVariableDeclExpr

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

void M() {
  string x = null, y = "";
}
LocalVariableDeclExpr getVariableDeclExpr(int n)