()
| 509 | return token; |
| 510 | } |
| 511 | #consumeOp() { |
| 512 | var token = this.#makeOpToken(); |
| 513 | var value = this.#consumeChar(); |
| 514 | while (this.#currentChar() && OP_TABLE[value + this.#currentChar()]) { |
| 515 | value += this.#consumeChar(); |
| 516 | } |
| 517 | token.type = OP_TABLE[value]; |
| 518 | token.value = value; |
| 519 | token.end = this.#position; |
| 520 | return token; |
| 521 | } |
| 522 | #consumeString() { |
| 523 | var token = this.#makeToken("STRING"); |
| 524 | var startChar = this.#consumeChar(); |
no test coverage detected