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

Function parseIntersectionType

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

Source from the content-addressed store, hash-verified

6989
6990
6991 function parseIntersectionType() {
6992 var marker = markerCreate(), type, types;
6993 type = parsePrefixType();
6994 types = [type];
6995 while (match('&')) {
6996 lex();
6997 types.push(parsePrefixType());
6998 }
6999
7000 return types.length === 1 ?
7001 type :
7002 markerApply(marker, delegate.createIntersectionTypeAnnotation(
7003 types
7004 ));
7005 }
7006
7007 function parseUnionType() {
7008 var marker = markerCreate(), type, types;

Callers 1

parseUnionTypeFunction · 0.85

Calls 5

markerCreateFunction · 0.85
parsePrefixTypeFunction · 0.85
matchFunction · 0.85
lexFunction · 0.85
markerApplyFunction · 0.85

Tested by

no test coverage detected