(&mut self, p: &Parser)
| 33 | /// Panics if the parser hasn't progressed since the last call. |
| 34 | #[inline] |
| 35 | pub(super) fn assert_progressing(&mut self, p: &Parser) { |
| 36 | assert!( |
| 37 | self.has_progressed(p), |
| 38 | "The parser is no longer progressing. Stuck at '{}' {:?}:{:?}", |
| 39 | p.src_text(p.current_token_range()), |
| 40 | p.current_token_kind(), |
| 41 | p.current_token_range(), |
| 42 | ); |
| 43 | |
| 44 | self.0 = Some(p.current_token_id()); |
| 45 | } |
| 46 | } |
no test coverage detected