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

Member predicate LocalVariableDeclExpr::getAssociatedSwitch

Gets the switch statement or expression whose pattern declares this identifier, if any.

SwitchBlock getAssociatedSwitch()