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