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