CodeQL library for JavaScript/TypeScript
codeql/javascript-all 0.8.13 (changelog, source)
Search

Member predicate JumpStmt::getTarget

Gets the target of this jump.

For break and continue statements, this predicate returns the statement this statement breaks out of or continues with. For throw statements, it returns the closest surrounding try statement in whose body the throw statement occurs, or otherwise the enclosing statement container. For return statements, this predicate returns the enclosing statement container.

Note that this predicate does not take finally clauses into account, which may interrupt the jump.

AstNode getTarget()