()
| 372 | return token; |
| 373 | } |
| 374 | #consumeAttributeReference() { |
| 375 | var token = this.#makeToken("ATTRIBUTE_REF"); |
| 376 | var value = this.#consumeChar(); |
| 377 | while (this.#position < this.#source.length && this.#currentChar() !== "]") { |
| 378 | value += this.#consumeChar(); |
| 379 | } |
| 380 | if (this.#currentChar() === "]") { |
| 381 | value += this.#consumeChar(); |
| 382 | } |
| 383 | token.value = value; |
| 384 | token.end = this.#position; |
| 385 | return token; |
| 386 | } |
| 387 | #consumeShortAttributeReference() { |
| 388 | var token = this.#makeToken("ATTRIBUTE_REF"); |
| 389 | var value = this.#consumeChar(); |
no test coverage detected