()
| 243 | } |
| 244 | |
| 245 | scan(): Token[] { |
| 246 | let token = this.scanToken(); |
| 247 | |
| 248 | while (token !== null) { |
| 249 | this.tokens.push(token); |
| 250 | token = this.scanToken(); |
| 251 | } |
| 252 | |
| 253 | return this.tokens; |
| 254 | } |
| 255 | |
| 256 | private advance() { |
| 257 | this.peek = ++this.index >= this.length ? chars.$EOF : this.input.charCodeAt(this.index); |
no test coverage detected