* Read and consume the next token.
()
| 73 | * Read and consume the next token. |
| 74 | */ |
| 75 | nextToken(): Token { |
| 76 | if (this.cachedToken !== null) { |
| 77 | const token = this.cachedToken; |
| 78 | |
| 79 | this.cachedToken = null; |
| 80 | |
| 81 | return token; |
| 82 | } |
| 83 | |
| 84 | return this.readToken(); |
| 85 | } |
| 86 | |
| 87 | /** |
| 88 | * Skip whitespace and comments. |
no test coverage detected