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

Predicate Cached::enclosingCallable

Holds if the enclosing callable of cfe is c.

Import path

import semmle.code.csharp.ExprOrStmtParent
predicate enclosingCallable(ControlFlowElement cfe, Callable c)