(text: string, plain: boolean)
| 872 | |
| 873 | // Scan comments with the parser's collection and token context, preserving quoted hashes. |
| 874 | private stripComment(text: string, plain: boolean): string { |
| 875 | const index = findIndicator(text, "#", this.depth, undefined, !plain, !plain && this.afterJsonNode) |
| 876 | if (index === -1) return text |
| 877 | this.comment = true |
| 878 | return trimWhiteEnd(text.slice(0, index)) |
| 879 | } |
| 880 | |
| 881 | private skipWhitespace(): void { |
| 882 | while (true) { |
no test coverage detected