CodeQL library for Java/Kotlin
codeql/java-all 9.3.6 (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)