()
| 603 | } |
| 604 | |
| 605 | parseJSXRoot(): JSXNode.JSXElement { |
| 606 | // Pop the opening '<' added from the lookahead. |
| 607 | if (this.config.tokens) { |
| 608 | this.tokens.pop(); |
| 609 | } |
| 610 | |
| 611 | this.startJSX(); |
| 612 | const element = this.parseJSXElement(); |
| 613 | this.finishJSX(); |
| 614 | |
| 615 | return element; |
| 616 | } |
| 617 | |
| 618 | isStartOfExpression(): boolean { |
| 619 | return super.isStartOfExpression() || this.match('<'); |
no test coverage detected