()
| 503 | return token; |
| 504 | } |
| 505 | #consumeOp() { |
| 506 | var token = this.#makeOpToken(); |
| 507 | var value = this.#consumeChar(); |
| 508 | while (this.#currentChar() && OP_TABLE[value + this.#currentChar()]) { |
| 509 | value += this.#consumeChar(); |
| 510 | } |
| 511 | token.type = OP_TABLE[value]; |
| 512 | token.value = value; |
| 513 | token.end = this.#position; |
| 514 | return token; |
| 515 | } |
| 516 | #consumeString() { |
| 517 | var token = this.#makeToken("STRING"); |
| 518 | var startChar = this.#consumeChar(); |
no test coverage detected