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

Member predicate UsingBlockStmt::getAnExpr

Gets an expression that is used in this using statement. Either an expression assigned to a variable, for example File.Open("settings.xml") in

using (FileStream f = File.Open("settings.xml")) {
  ...
}

or an expression directly used, for example File.Open("settings.xml") in

using (File.Open("settings.xml")) {
  ...
}
Expr getAnExpr()