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

Function parseGroupExpression

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

Source from the content-addressed store, hash-verified

5759 // 11.1.6 The Grouping Operator
5760
5761 function parseGroupExpression() {
5762 var expr, marker, typeAnnotation;
5763
5764 expect('(');
5765
5766 ++state.parenthesizedCount;
5767
5768 marker = markerCreate();
5769
5770 expr = parseExpression();
5771
5772 if (match(':')) {
5773 typeAnnotation = parseTypeAnnotation();
5774 expr = markerApply(marker, delegate.createTypeCast(
5775 expr,
5776 typeAnnotation
5777 ));
5778 }
5779
5780 expect(')');
5781
5782 return expr;
5783 }
5784
5785 function matchAsyncFuncExprOrDecl() {
5786 var token;

Callers 1

parsePrimaryExpressionFunction · 0.85

Calls 6

expectFunction · 0.85
markerCreateFunction · 0.85
parseExpressionFunction · 0.85
matchFunction · 0.85
parseTypeAnnotationFunction · 0.85
markerApplyFunction · 0.85

Tested by

no test coverage detected