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