| 412 | } |
| 413 | |
| 414 | bool Reader::expectToken(TokenType type, Token &token, const char *message) { |
| 415 | readToken(token); |
| 416 | if (token.type_ != type) |
| 417 | return addError(message, token); |
| 418 | return true; |
| 419 | } |
| 420 | |
| 421 | bool Reader::readToken(Token &token) { |
| 422 | skipSpaces(); |
nothing calls this directly
no outgoing calls
no test coverage detected