(&mut self, kind: TokenType)
| 447 | } |
| 448 | |
| 449 | pub(super) fn eat_if(&mut self, kind: TokenType) -> bool { |
| 450 | if matches!(self.peek(), Some(k) if k == kind) { |
| 451 | self.advance(); |
| 452 | true |
| 453 | } else { |
| 454 | false |
| 455 | } |
| 456 | } |
| 457 | |
| 458 | // Comma list with forward-progress guard. |
| 459 | pub(super) fn comma_list(&mut self, is_end: impl Fn(TokenType) -> bool, mut elem: impl FnMut(&mut Self)) { |
no test coverage detected