(value)
| 144094 | } // Expect the next token to match the specified punctuator. |
| 144095 | // If not, an exception will be thrown. |
| 144096 | function expect(value) { |
| 144097 | const token = lex(); |
| 144098 | if (token.type !== TokenPunctuator || token.value !== value) throwUnexpected(token); |
| 144099 | } // Return true if the next token matches the specified punctuator. |
| 144100 | function match(value) { |
| 144101 | return lookahead.type === TokenPunctuator && lookahead.value === value; |
| 144102 | } // Return true if the next token matches the specified keyword |
no test coverage detected