nl_tokens: Aggregates all throw - statements within this node * without * crossing into function boundaries and try - blocks with catch - clauses .
pl_tokens: function aggregateOwnedThrowStatements ( node ) { var statementAccumulator = [ ] ; aggregate ( node ) ; return statementAccumulator ; function aggregate ( node ) { if ( node . kind === 208 /* ThrowStatement */ ) { statementAccumulator . push ( node ) ; } else if ( node . kind === 209 /* TryStatement */ ) { var tryStatement = node ; if ( tryStatement . catchClause ) { aggregate ( tryStatement . catchClause ) ; } else { // Exceptions thrown within a try block lacking a catch clause // are "owned" in the current context. aggregate ( tryStatement . tryBlock ) ; } if ( tryStatement . finallyBlock ) { aggregate ( tryStatement . finallyBlock ) ; } } else if ( ! <mask> . isFunctionLike ( node ) ) { ts . forEachChild ( node , aggregate ) ; } } ; }