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

Function parseInterfaceish

lib/assets/javascripts/JSXTransformer.js:9499–9529  ·  view source on GitHub ↗
(marker, allowStatic)

Source from the content-addressed store, hash-verified

9497 }
9498
9499 function parseInterfaceish(marker, allowStatic) {
9500 var body, bodyMarker, extended = [], id,
9501 typeParameters = null;
9502
9503 id = parseVariableIdentifier();
9504 if (match('<')) {
9505 typeParameters = parseTypeParameterDeclaration();
9506 }
9507
9508 if (matchKeyword('extends')) {
9509 expectKeyword('extends');
9510
9511 while (index < length) {
9512 extended.push(parseInterfaceExtends());
9513 if (!match(',')) {
9514 break;
9515 }
9516 expect(',');
9517 }
9518 }
9519
9520 bodyMarker = markerCreate();
9521 body = markerApply(bodyMarker, parseObjectType(allowStatic));
9522
9523 return markerApply(marker, delegate.createInterface(
9524 id,
9525 typeParameters,
9526 body,
9527 extended
9528 ));
9529 }
9530
9531 function parseInterface() {
9532 var marker = markerCreate();

Callers 2

parseInterfaceFunction · 0.85
parseDeclareClassFunction · 0.85

Calls 10

parseVariableIdentifierFunction · 0.85
matchFunction · 0.85
matchKeywordFunction · 0.85
expectKeywordFunction · 0.85
parseInterfaceExtendsFunction · 0.85
expectFunction · 0.85
markerCreateFunction · 0.85
markerApplyFunction · 0.85
parseObjectTypeFunction · 0.85

Tested by

no test coverage detected