()
| 2575 | } |
| 2576 | |
| 2577 | end(): void { |
| 2578 | if (this.stack.length > 0) throw invalidEvent(`unclosed element <${this.stack[this.stack.length - 1]}>`) |
| 2579 | if (this.state !== EPILOG) throw invalidEvent("no root element") |
| 2580 | } |
| 2581 | |
| 2582 | private write(event: Event): string { |
| 2583 | if (event._tag === "EndElement") { |
nothing calls this directly
no test coverage detected