()
| 527 | } |
| 528 | |
| 529 | parseJSXChildren(): JSXNode.JSXChild[] { |
| 530 | const children: JSXNode.JSXChild[] = []; |
| 531 | |
| 532 | while (!this.scanner.eof()) { |
| 533 | const node = this.createJSXChildNode(); |
| 534 | const token = this.nextJSXText(); |
| 535 | if (token.start < token.end) { |
| 536 | const raw = this.getTokenRaw(token); |
| 537 | const child = this.finalize(node, new JSXNode.JSXText(token.value, raw)); |
| 538 | children.push(child); |
| 539 | } |
| 540 | if (this.scanner.source[this.scanner.index] === '{') { |
| 541 | const container = this.parseJSXExpressionContainer(); |
| 542 | children.push(container); |
| 543 | } else { |
| 544 | break; |
| 545 | } |
| 546 | } |
| 547 | |
| 548 | return children; |
| 549 | } |
| 550 | |
| 551 | parseComplexJSXElement(el: MetaJSXElement): MetaJSXElement { |
| 552 | const stack: MetaJSXElement[] = []; |
no test coverage detected