* Peek at the next token without consuming it.
()
| 62 | * Peek at the next token without consuming it. |
| 63 | */ |
| 64 | peekToken(): Token { |
| 65 | if (this.cachedToken === null) { |
| 66 | this.cachedToken = this.readToken(); |
| 67 | } |
| 68 | |
| 69 | return this.cachedToken; |
| 70 | } |
| 71 | |
| 72 | /** |
| 73 | * Read and consume the next token. |
no test coverage detected