Helper function to push the given error, updating the current range with the error location and return the [`TokenKind::Unknown`] token.
(&mut self, error: LexicalError)
| 131 | /// Helper function to push the given error, updating the current range with the error location |
| 132 | /// and return the [`TokenKind::Unknown`] token. |
| 133 | fn push_error(&mut self, error: LexicalError) -> TokenKind { |
| 134 | self.current_range = error.location(); |
| 135 | self.errors.push(error); |
| 136 | TokenKind::Unknown |
| 137 | } |
| 138 | |
| 139 | /// Lex the next token. |
| 140 | pub fn next_token(&mut self) -> TokenKind { |
no test coverage detected