()
| 430 | return token; |
| 431 | } |
| 432 | #consumeTemplateLine() { |
| 433 | var token = this.#makeToken("TEMPLATE_LINE"); |
| 434 | token.value = "TEMPLATE_LINE"; |
| 435 | var content = ""; |
| 436 | while (this.#currentChar() && !this.#isNewline(this.#currentChar())) { |
| 437 | content += this.#consumeChar(); |
| 438 | } |
| 439 | if (this.#currentChar() && this.#isNewline(this.#currentChar())) { |
| 440 | this.#consumeChar(); |
| 441 | content += "\n"; |
| 442 | this.#templateMode = "indeterminant"; |
| 443 | } |
| 444 | token.content = content; |
| 445 | token.end = this.#position; |
| 446 | return token; |
| 447 | } |
| 448 | #consumeTemplateIdentifier() { |
| 449 | var token = this.#makeToken("IDENTIFIER"); |
| 450 | var value = this.#consumeChar(); |
no test coverage detected