CodeQL library for JavaScript
codeql/javascript-all 0.6.2 ( changelog , source )

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 ( )