()
| 520 | } |
| 521 | |
| 522 | #consumeTemplateLine() { |
| 523 | var token = this.#makeToken("TEMPLATE_LINE"); |
| 524 | token.value = "TEMPLATE_LINE"; |
| 525 | var content = ""; |
| 526 | while (this.#currentChar() && !this.#isNewline(this.#currentChar())) { |
| 527 | content += this.#consumeChar(); |
| 528 | } |
| 529 | if (this.#currentChar() && this.#isNewline(this.#currentChar())) { |
| 530 | this.#consumeChar(); |
| 531 | content += "\n"; |
| 532 | this.#templateMode = "indeterminant"; |
| 533 | } |
| 534 | token.content = content; |
| 535 | token.end = this.#position; |
| 536 | return token; |
| 537 | } |
| 538 | |
| 539 | #consumeTemplateIdentifier() { |
| 540 | var token = this.#makeToken("IDENTIFIER"); |
no test coverage detected