(value, peek, type)
| 127 | } |
| 128 | // ----- Lookahead ----- |
| 129 | peekToken(value, peek, type) { |
| 130 | peek = peek || 0; |
| 131 | type = type || "IDENTIFIER"; |
| 132 | if (this.#tokens[peek] && this.#tokens[peek].value === value && this.#tokens[peek].type === type) { |
| 133 | return this.#tokens[peek]; |
| 134 | } |
| 135 | } |
| 136 | // ----- Whitespace ----- |
| 137 | lastWhitespace() { |
| 138 | var last = this.#consumed.at(-1); |
no outgoing calls
no test coverage detected