(token: Kind, count = 1, value?: string)
| 318 | } |
| 319 | |
| 320 | private next(token: Kind, count = 1, value?: string) { |
| 321 | const originalOffset = this.#offset; |
| 322 | const offsetAdvancedBy = this.advance(count); |
| 323 | this.text = value || this.#text.substr(originalOffset, offsetAdvancedBy); |
| 324 | |
| 325 | this.#column += count; |
| 326 | return this.kind = token; |
| 327 | } |
| 328 | |
| 329 | /** adds the current position to the token to the offset:position map */ |
| 330 | private markPosition() { |
no test coverage detected