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

Function parseCatchClause

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

Source from the content-addressed store, hash-verified

7842 // 12.14 The try statement
7843
7844 function parseCatchClause() {
7845 var param, body, marker = markerCreate();
7846
7847 expectKeyword('catch');
7848
7849 expect('(');
7850 if (match(')')) {
7851 throwUnexpected(lookahead);
7852 }
7853
7854 param = parseExpression();
7855 // 12.14.1
7856 if (strict && param.type === Syntax.Identifier && isRestrictedWord(param.name)) {
7857 throwErrorTolerant({}, Messages.StrictCatchVariable);
7858 }
7859
7860 expect(')');
7861 body = parseBlock();
7862 return markerApply(marker, delegate.createCatchClause(param, body));
7863 }
7864
7865 function parseTryStatement() {
7866 var block, handlers = [], finalizer = null, marker = markerCreate();

Callers 1

parseTryStatementFunction · 0.85

Calls 10

markerCreateFunction · 0.85
expectKeywordFunction · 0.85
expectFunction · 0.85
matchFunction · 0.85
throwUnexpectedFunction · 0.85
parseExpressionFunction · 0.85
isRestrictedWordFunction · 0.85
throwErrorTolerantFunction · 0.85
parseBlockFunction · 0.85
markerApplyFunction · 0.85

Tested by

no test coverage detected