()
| 256 | return this.#source.charAt(this.#position + offset); |
| 257 | } |
| 258 | #consumeChar() { |
| 259 | this.#lastToken = this.#currentChar(); |
| 260 | this.#position++; |
| 261 | if (this.#lastToken === "\n") { |
| 262 | this.#line++; |
| 263 | this.#column = 0; |
| 264 | } else { |
| 265 | this.#column++; |
| 266 | } |
| 267 | return this.#lastToken; |
| 268 | } |
| 269 | // ----- Context checks ----- |
| 270 | #inTemplate() { |
| 271 | return this.#template && this.#templateBraceCount === 0; |
no test coverage detected