Lines Matching refs:TokenTree
5 use crate::{Delimiter, Punct, Spacing, TokenTree};
235 trees.push_token_from_parser(TokenTree::Group(crate::Group::_new_fallback(g)));
266 fn leaf_token(input: Cursor) -> PResult<TokenTree> {
269 Ok((input, TokenTree::Literal(crate::Literal::_new_fallback(l))))
271 Ok((input, TokenTree::Punct(p)))
273 Ok((input, TokenTree::Ident(i)))
277 Ok((rest, TokenTree::Literal(repr)))
936 trees.push_token_from_parser(TokenTree::Punct(pound));
941 trees.push_token_from_parser(TokenTree::Punct(bang));
950 bracketed.push_token_from_parser(TokenTree::Ident(doc_ident));
951 bracketed.push_token_from_parser(TokenTree::Punct(equal));
952 bracketed.push_token_from_parser(TokenTree::Literal(literal));
956 trees.push_token_from_parser(TokenTree::Group(group));