(&mut self, kind: TokenType)
| 867 | } |
| 868 | |
| 869 | pub fn match_token(&mut self, kind: TokenType) -> bool { |
| 870 | if self.check(kind) { |
| 871 | self.advance(); |
| 872 | true |
| 873 | } else { |
| 874 | false |
| 875 | } |
| 876 | } |
| 877 | |
| 878 | pub fn peek_next(&mut self) -> Option<Token<'a>> { |
| 879 | self.lexer.peek().copied() |
no test coverage detected