CodeQL library for Java/Kotlin
codeql/java-all 7.3.1 (changelog, source)
Search

Predicate Cached::captures

Holds if init is a closure variable that captures the value of capturedvar.

Import path

import semmle.code.java.dataflow.internal.SsaImpl
predicate captures(SsaImplicitInit init, SsaVariable capturedvar)