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

Predicate Flow::ConsistencyChecks::variableAccessAstNesting

Holds if callable c accesses captured variable v but is not lexically nested in the callable that defines v, as described by msg.

Import path

import codeql.dataflow.VariableCapture
predicate variableAccessAstNesting(CapturedVariable v, Callable c, string msg)