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

Predicate signature AstSig::getTryInit

Gets the initializer of this try statement at the specified (zero-based) position index, if any.

An example of this are resource declarations in Java’s try-with-resources statement.

signature AstNode getTryInit(TryStmt try, int index)