()
| 70 | } |
| 71 | |
| 72 | private readNextToken(): void { |
| 73 | if (this.xml[this.index] !== '<') { |
| 74 | this.readText(); |
| 75 | return; |
| 76 | } |
| 77 | |
| 78 | const reader = this.resolveMarkupReader(); |
| 79 | reader(); |
| 80 | } |
| 81 | |
| 82 | private resolveMarkupReader(): () => void { |
| 83 | if (this.startsWith('<!--')) return () => this.skipUntil('-->', 'Comment is not closed.'); |
no test coverage detected