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

Predicate Cached::enclosingBody

Holds if the enclosing body of cfe is body.

Import path

import semmle.code.csharp.ExprOrStmtParent
predicate enclosingBody(ControlFlowElement cfe, ControlFlowElement body)