Lines Matching refs:TokenTree
10 use proc_macro2::{Delimiter, Group, Ident, Literal, Punct, Spacing, Span, TokenStream, TokenTree};
14 /// Internal type which is used instead of `TokenTree` to represent a token tree
40 TokenTree::Ident(ident) => entries.push(Entry::Ident(ident)),
41 TokenTree::Punct(punct) => entries.push(Entry::Punct(punct)),
42 TokenTree::Literal(literal) => entries.push(Entry::Literal(literal)),
43 TokenTree::Group(group) => {
183 /// a cursor into that group and one pointing to the next `TokenTree`.
229 /// pointing at the next `TokenTree`.
239 /// pointing at the next `TokenTree`.
251 /// pointing at the next `TokenTree`.
261 /// cursor pointing at the next `TokenTree`.
290 /// If the cursor is pointing at a `TokenTree`, returns it along with a
291 /// cursor pointing at the next `TokenTree`.
297 pub fn token_tree(self) -> Option<(TokenTree, Cursor<'a>)> {