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

Predicate signature AstSig::getSwitchInit

Gets the initializer of switch statement switch, if any.

Only some languages (e.g. Go) support an initializer that is evaluated before the switch expression.

signature AstNode getSwitchInit(Switch switch)