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

Function parseGenericType

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

Source from the content-addressed store, hash-verified

6765 }
6766
6767 function parseGenericType() {
6768 var marker = markerCreate(),
6769 typeParameters = null, typeIdentifier;
6770
6771 typeIdentifier = parseVariableIdentifier();
6772
6773 while (match('.')) {
6774 expect('.');
6775 typeIdentifier = markerApply(marker, delegate.createQualifiedTypeIdentifier(
6776 typeIdentifier,
6777 parseVariableIdentifier()
6778 ));
6779 }
6780
6781 if (match('<')) {
6782 typeParameters = parseTypeParameterInstantiation();
6783 }
6784
6785 return markerApply(marker, delegate.createGenericTypeAnnotation(
6786 typeIdentifier,
6787 typeParameters
6788 ));
6789 }
6790
6791 function parseVoidType() {
6792 var marker = markerCreate();

Callers 1

parsePrimaryTypeFunction · 0.85

Calls 6

markerCreateFunction · 0.85
parseVariableIdentifierFunction · 0.85
matchFunction · 0.85
expectFunction · 0.85
markerApplyFunction · 0.85

Tested by

no test coverage detected