Lines Matching refs:TokenTree
7 use crate::{Delimiter, Punct, Spacing, TokenTree};
237 trees.push_token_from_parser(TokenTree::Group(crate::Group::_new_fallback(g))); in token_stream()
268 fn leaf_token(input: Cursor) -> PResult<TokenTree> { in leaf_token() argument
271 Ok((input, TokenTree::Literal(crate::Literal::_new_fallback(l)))) in leaf_token()
273 Ok((input, TokenTree::Punct(p))) in leaf_token()
275 Ok((input, TokenTree::Ident(i))) in leaf_token()
279 Ok((rest, TokenTree::Literal(repr))) in leaf_token()
937 trees.push_token_from_parser(TokenTree::Punct(pound)); in doc_comment()
942 trees.push_token_from_parser(TokenTree::Punct(bang)); in doc_comment()
951 bracketed.push_token_from_parser(TokenTree::Ident(doc_ident)); in doc_comment()
952 bracketed.push_token_from_parser(TokenTree::Punct(equal)); in doc_comment()
953 bracketed.push_token_from_parser(TokenTree::Literal(literal)); in doc_comment()
957 trees.push_token_from_parser(TokenTree::Group(group)); in doc_comment()