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

Predicate Flow::ConsistencyChecks::variableIsCaptured

Holds if v is classified as a captured variable but has no access from a capturing callable, as described by msg.

Import path

import codeql.dataflow.VariableCapture
predicate variableIsCaptured(CapturedVariable v, string msg)