(&mut self, want: &Tok)
| 77 | } |
| 78 | |
| 79 | pub(super) fn match_token(&mut self, want: &Tok) -> bool { |
| 80 | if self.peek() == Some(want) { |
| 81 | self.i += 1; |
| 82 | true |
| 83 | } else { |
| 84 | false |
| 85 | } |
| 86 | } |
| 87 | |
| 88 | pub(super) fn expect_int(&mut self) -> Result<i64> { |
| 89 | match self.bump().map(|t| &t.tok) { |
no test coverage detected