(type: TokenType, loc?: Position | null)
| 153 | // raise an unexpected token error at given pos. |
| 154 | |
| 155 | expect(type: TokenType, loc?: Position | null): void { |
| 156 | if (!this.eat(type)) { |
| 157 | this.unexpected(loc, type); |
| 158 | } |
| 159 | } |
| 160 | |
| 161 | // tryParse will clone parser state. |
| 162 | // It is expensive and should be used with cautions |
no outgoing calls
searching dependent graphs…