(&mut self)
| 128 | } |
| 129 | |
| 130 | fn peek_token(&mut self) -> Result<Token, ParsingError> { |
| 131 | let token = self.lexer.peek_token(); |
| 132 | if matches!(token.kind, Kind::Error) { |
| 133 | panic!("Next token is Error {token:?}"); |
| 134 | } |
| 135 | Ok(token) |
| 136 | } |
| 137 | |
| 138 | fn peek_kind(&mut self) -> Result<Kind, ParsingError> { |
| 139 | let token = self.peek_token()?; |
no outgoing calls
no test coverage detected