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

Predicate Cached::enclosingStmt

Holds if the enclosing statement of expression e is s.

Import path

import semmle.code.csharp.ExprOrStmtParent
predicate enclosingStmt(Expr e, Stmt s)