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

Function parseTypeAlias

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

Source from the content-addressed store, hash-verified

9470 }
9471
9472 function parseTypeAlias() {
9473 var id, marker = markerCreate(), typeParameters = null, right;
9474 expectContextualKeyword('type');
9475 id = parseVariableIdentifier();
9476 if (match('<')) {
9477 typeParameters = parseTypeParameterDeclaration();
9478 }
9479 expect('=');
9480 right = parseType();
9481 consumeSemicolon();
9482 return markerApply(marker, delegate.createTypeAlias(id, typeParameters, right));
9483 }
9484
9485 function parseInterfaceExtends() {
9486 var marker = markerCreate(), id, typeParameters = null;

Callers 1

parseSourceElementFunction · 0.85

Calls 9

markerCreateFunction · 0.85
expectContextualKeywordFunction · 0.85
parseVariableIdentifierFunction · 0.85
matchFunction · 0.85
expectFunction · 0.85
parseTypeFunction · 0.85
consumeSemicolonFunction · 0.85
markerApplyFunction · 0.85

Tested by

no test coverage detected