* Resets the parser, then parses a complete document and * pushes it to the handler. * @param data Document to parse.
(data: string)
| 734 | * @param data Document to parse. |
| 735 | */ |
| 736 | parseComplete(data: string): void { |
| 737 | this.reset(); |
| 738 | this.end(data); |
| 739 | } |
| 740 | |
| 741 | private getSlice(start: number, end: number) { |
| 742 | if (start === end) { |