()
| 564 | } |
| 565 | // ----- Main tokenization loop ----- |
| 566 | #isLineComment() { |
| 567 | var c = this.#currentChar(), n = this.#nextChar(), n2 = this.#charAt(2); |
| 568 | return c === "-" && n === "-" && (this.#isWhitespace(n2) || n2 === "" || n2 === "-") || c === "/" && n === "/" && (this.#isWhitespace(n2) || n2 === "" || n2 === "/"); |
| 569 | } |
| 570 | #tokenize() { |
| 571 | while (this.#position < this.#source.length) { |
| 572 | if (this.#isLineComment()) { |
no test coverage detected