()
| 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; |
no test coverage detected