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

Function parseUnionType

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

Source from the content-addressed store, hash-verified

7005 }
7006
7007 function parseUnionType() {
7008 var marker = markerCreate(), type, types;
7009 type = parseIntersectionType();
7010 types = [type];
7011 while (match('|')) {
7012 lex();
7013 types.push(parseIntersectionType());
7014 }
7015 return types.length === 1 ?
7016 type :
7017 markerApply(marker, delegate.createUnionTypeAnnotation(
7018 types
7019 ));
7020 }
7021
7022 function parseType() {
7023 var oldInType = state.inType, type;

Callers 1

parseTypeFunction · 0.85

Calls 5

markerCreateFunction · 0.85
parseIntersectionTypeFunction · 0.85
matchFunction · 0.85
lexFunction · 0.85
markerApplyFunction · 0.85

Tested by

no test coverage detected