Lines Matching refs:TokenTree
13 use crate::{Delimiter, Punct, Spacing, TokenTree};
35 extra: Vec<proc_macro::TokenTree>,
163 fn into_compiler_token(token: TokenTree) -> proc_macro::TokenTree { in into_compiler_token() argument
165 TokenTree::Group(tt) => proc_macro::TokenTree::Group(tt.inner.unwrap_nightly()), in into_compiler_token()
166 TokenTree::Punct(tt) => { in into_compiler_token()
173 proc_macro::TokenTree::Punct(punct) in into_compiler_token()
175 TokenTree::Ident(tt) => proc_macro::TokenTree::Ident(tt.inner.unwrap_nightly()), in into_compiler_token()
176 TokenTree::Literal(tt) => proc_macro::TokenTree::Literal(tt.inner.unwrap_nightly()), in into_compiler_token()
180 impl From<TokenTree> for TokenStream {
181 fn from(token: TokenTree) -> Self { in from()
192 impl FromIterator<TokenTree> for TokenStream {
193 fn from_iter<I: IntoIterator<Item = TokenTree>>(trees: I) -> Self { in from_iter()
228 impl Extend<TokenTree> for TokenStream {
229 fn extend<I: IntoIterator<Item = TokenTree>>(&mut self, stream: I) { in extend()
320 type Item = TokenTree;
334 type Item = TokenTree;
336 fn next(&mut self) -> Option<TokenTree> { in next() argument
342 proc_macro::TokenTree::Group(tt) => { in next()
343 TokenTree::Group(crate::Group::_new(Group::Compiler(tt))) in next()
345 proc_macro::TokenTree::Punct(tt) => { in next()
352 TokenTree::Punct(o) in next()
354 proc_macro::TokenTree::Ident(s) => { in next()
355 TokenTree::Ident(crate::Ident::_new(Ident::Compiler(s))) in next()
357 proc_macro::TokenTree::Literal(l) => { in next()
358 TokenTree::Literal(crate::Literal::_new(Literal::Compiler(l))) in next()