(&mut self)
| 16 | |
| 17 | impl<'src> TokenManager<'src> { |
| 18 | pub(crate) fn next(&mut self) -> Option<ParserResult<Token>> { |
| 19 | let next = self.lexer.next()??; |
| 20 | self.token_pos += 1; |
| 21 | Some(Ok(next)) |
| 22 | } |
| 23 | |
| 24 | pub(crate) fn expect(&mut self, kind: TokenKind) -> ParserResult<Token> { |
| 25 | match self.next() { |