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