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