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

Function parseTupleType

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

Source from the content-addressed store, hash-verified

6804 }
6805
6806 function parseTupleType() {
6807 var marker = markerCreate(), types = [];
6808 expect('[');
6809 // We allow trailing commas
6810 while (index < length && !match(']')) {
6811 types.push(parseType());
6812 if (match(']')) {
6813 break;
6814 }
6815 expect(',');
6816 }
6817 expect(']');
6818 return markerApply(marker, delegate.createTupleTypeAnnotation(
6819 types
6820 ));
6821 }
6822
6823 function parseFunctionTypeParam() {
6824 var marker = markerCreate(), name, optional = false, typeAnnotation;

Callers 1

parsePrimaryTypeFunction · 0.85

Calls 5

markerCreateFunction · 0.85
expectFunction · 0.85
matchFunction · 0.85
parseTypeFunction · 0.85
markerApplyFunction · 0.85

Tested by

no test coverage detected