Advance without bracket_stack tracking; for recovery consumers with their own balance bookkeeping. */
(&mut self)
| 246 | impl<'src, I: Iterator<Item = Token>> Parser<'src, I> { |
| 247 | /* Advance without bracket_stack tracking; for recovery consumers with their own balance bookkeeping. */ |
| 248 | pub(super) fn advance_raw(&mut self) -> Token { |
| 249 | let tok = self.tokens.next().unwrap_or(Token { |
| 250 | kind: TokenType::Endmarker, |
| 251 | line: 0, start: 0, end: 0, |
| 252 | }); |
| 253 | self.last_line = tok.line; |
| 254 | if tok.end > 0 { self.last_end = tok.end; } |
| 255 | tok |
| 256 | } |
| 257 | |
| 258 | pub(super) fn advance(&mut self) -> Token { |
| 259 | let tok = self.tokens.next().unwrap_or(Token { |