MCPcopy Index your code
hub / github.com/BloombergGraphics/whatiscode / parseThrowStatement

Function parseThrowStatement

scripts/libs/esprima.js:3754–3768  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

3752 // 12.13 The throw statement
3753
3754 function parseThrowStatement(node) {
3755 var argument;
3756
3757 expectKeyword('throw');
3758
3759 if (hasLineTerminator) {
3760 throwError(Messages.NewlineAfterThrow);
3761 }
3762
3763 argument = parseExpression();
3764
3765 consumeSemicolon();
3766
3767 return node.finishThrowStatement(argument);
3768 }
3769
3770 // 12.14 The try statement
3771

Callers 1

parseStatementFunction · 0.85

Calls 4

expectKeywordFunction · 0.85
throwErrorFunction · 0.85
parseExpressionFunction · 0.85
consumeSemicolonFunction · 0.85

Tested by

no test coverage detected