()
| 558 | } |
| 559 | // ----- Main tokenization loop ----- |
| 560 | #isLineComment() { |
| 561 | var c = this.#currentChar(), n = this.#nextChar(), n2 = this.#charAt(2); |
| 562 | return c === "-" && n === "-" && (this.#isWhitespace(n2) || n2 === "" || n2 === "-") || c === "/" && n === "/" && (this.#isWhitespace(n2) || n2 === "" || n2 === "/"); |
| 563 | } |
| 564 | #tokenize() { |
| 565 | while (this.#position < this.#source.length) { |
| 566 | if (this.#isLineComment()) { |
no test coverage detected