fn parse_token_trees_until_close_delim(&mut self) -> TokenStream {
        let mut tts = vec![];
        loop {
            if let token::CloseDelim(..) = self.token {
                return TokenStream::new(tts);
            }

            match self.parse_token_tree() {
                Ok(tree) => tts.push(tree),
                Err(mut e) => {
                    e.emit();
                    return TokenStream::new(tts);
                }
            }
        }
    }
// Parse a stream of tokens into a list of `TokenTree`s, up to a `CloseDelim`.
Parse a stream of tokens into a list of `TokenTree`s, up to a `CloseDelim`.
Parse a stream of tokens into a list of ` TokenTree ` s up to a ` CloseDelim ` .
fn parse_token_trees_until_close_delim(&mut self) -> TokenStream {
        let mut tts = vec![];
        loop {
            if let token::CloseDelim(..) = self.token {
                return TokenStream::new(tts);
            }
            match self.parse_token_tree() {
                Ok(tree) => tts.push(tree),
                Err(mut e) => {
                    e.emit();
                    return TokenStream::new(tts);
                }
            }
        }
    }
fn parse_token_trees_until_close_delim ( & mut self ) -> TokenStream { let mut tts = vec ! [ ] ; loop { if let token :: CloseDelim ( .. ) = self . token { return TokenStream :: new ( tts ) ; } match self . parse_token_tree ( ) { Ok ( tree ) => tts . push ( tree ) , Err ( mut e ) => { e . emit ( ) ; return TokenStream :: new ( tts ) ; } } } }
Parse a stream of tokens into a list of `TokenTree`s, up to a `CloseDelim`.
Parse a stream of tokens into a list of ` TokenTree ` s up to a ` CloseDelim ` .
&mut self
&mut self