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

Function parseTryStatement

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

Source from the content-addressed store, hash-verified

7863 }
7864
7865 function parseTryStatement() {
7866 var block, handlers = [], finalizer = null, marker = markerCreate();
7867
7868 expectKeyword('try');
7869
7870 block = parseBlock();
7871
7872 if (matchKeyword('catch')) {
7873 handlers.push(parseCatchClause());
7874 }
7875
7876 if (matchKeyword('finally')) {
7877 lex();
7878 finalizer = parseBlock();
7879 }
7880
7881 if (handlers.length === 0 && !finalizer) {
7882 throwError({}, Messages.NoCatchOrFinally);
7883 }
7884
7885 return markerApply(marker, delegate.createTryStatement(block, [], handlers, finalizer));
7886 }
7887
7888 // 12.15 The debugger statement
7889

Callers 1

parseStatementFunction · 0.85

Calls 8

markerCreateFunction · 0.85
expectKeywordFunction · 0.85
parseBlockFunction · 0.85
matchKeywordFunction · 0.85
parseCatchClauseFunction · 0.85
lexFunction · 0.85
throwErrorFunction · 0.85
markerApplyFunction · 0.85

Tested by

no test coverage detected