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

Member predicate InstanceOfExpr::getLocalVariableDeclExpr

Gets the local variable declaration of this instanceof expression if simple pattern matching is used.

Note that this won’t get anything when record pattern matching is used– for more general patterns, use getPattern.

LocalVariableDeclExpr getLocalVariableDeclExpr()