(keyword)
| 466 | // If not, an exception will be thrown. |
| 467 | |
| 468 | expectKeyword(keyword) { |
| 469 | const token = this.nextToken(); |
| 470 | if (token.type !== Token.Keyword || token.value !== keyword) { |
| 471 | this.throwUnexpectedToken(token); |
| 472 | } |
| 473 | } |
| 474 | |
| 475 | // Return true if the next token matches the specified punctuator. |
| 476 |
no test coverage detected