MCPcopy Index your code
hub / github.com/reactjs/react-rails / parseThrowStatement

Function parseThrowStatement

lib/assets/javascripts/JSXTransformer.js:7826–7840  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7824 // 12.13 The throw statement
7825
7826 function parseThrowStatement() {
7827 var argument, marker = markerCreate();
7828
7829 expectKeyword('throw');
7830
7831 if (peekLineTerminator()) {
7832 throwError({}, Messages.NewlineAfterThrow);
7833 }
7834
7835 argument = parseExpression();
7836
7837 consumeSemicolon();
7838
7839 return markerApply(marker, delegate.createThrowStatement(argument));
7840 }
7841
7842 // 12.14 The try statement
7843

Callers 1

parseStatementFunction · 0.85

Calls 7

markerCreateFunction · 0.85
expectKeywordFunction · 0.85
peekLineTerminatorFunction · 0.85
throwErrorFunction · 0.85
parseExpressionFunction · 0.85
consumeSemicolonFunction · 0.85
markerApplyFunction · 0.85

Tested by

no test coverage detected