pub(super) fn eat_to_tokens(&mut self, kets: &[&TokenKind]) {
        if let Err(ref mut err) =
            self.parse_seq_to_before_tokens(kets, SeqSep::none(), TokenExpectType::Expect, |p| {
                Ok(p.parse_token_tree())
            })
        {
            err.cancel();
        }
    }
/// Eats and discards tokens until one of `kets` is encountered. Respects token trees,
/// passes through any errors encountered. Used for error recovery.
Eats and discards tokens until one of `kets` is encountered. Respects token trees,
passes through any errors encountered. Used for error recovery.
Eats and discards tokens until one of ` kets ` is encountered . Respects token trees passes through any errors encountered . Used for error recovery .
pub(super) fn eat_to_tokens(&mut self, kets: &[&TokenKind]) {
        if let Err(ref mut err) =
            self.parse_seq_to_before_tokens(kets, SeqSep::none(), TokenExpectType::Expect, |p| {
                Ok(p.parse_token_tree())
            })
        {
            err.cancel();
        }
    }
pub ( super ) fn eat_to_tokens ( & mut self , kets : & [ & TokenKind ] ) { if let Err ( ref mut err ) = self . parse_seq_to_before_tokens ( kets , SeqSep :: none ( ) , TokenExpectType :: Expect , | p | { Ok ( p . parse_token_tree ( ) ) } ) { err . cancel ( ) ; } }
Eats and discards tokens until one of `kets` is encountered.
Eats and discards tokens until one of ` kets ` is encountered .
&mut self
kets
&[&TokenKind]
&mut self
kets
&[&TokenKind]