Lines Matching refs:tokens
7 fn to_tokens(&self, tokens: &mut TokenStream);
11 fn to_tokens(&self, tokens: &mut TokenStream) {
13 v.to_tokens(tokens);
19 fn to_tokens(&self, tokens: &mut TokenStream) {
20 tokens.extend([TokenTree::from(self.clone())]);
25 fn to_tokens(&self, tokens: &mut TokenStream) {
26 tokens.extend([TokenTree::from(self.clone())]);
31 fn to_tokens(&self, tokens: &mut TokenStream) {
32 tokens.extend([self.clone()]);
37 fn to_tokens(&self, tokens: &mut TokenStream) {
38 tokens.extend(self.clone());
42 /// Converts tokens into [`proc_macro::TokenStream`] and performs variable interpolations with
50 let mut tokens: ::std::vec::Vec<::proc_macro::TokenTree>;
53 tokens = ::std::vec::Vec::new();
55 quote_spanned!(@proc tokens span $($tt)*);
57 ::proc_macro::TokenStream::from_iter(tokens)
76 let mut tokens = ::std::vec::Vec::<::proc_macro::TokenTree>::new();
77 quote_spanned!(@proc tokens $span $($inner)*);
80 ::proc_macro::TokenStream::from_iter(tokens)
85 let mut tokens = ::std::vec::Vec::new();
86 quote_spanned!(@proc tokens $span $($inner)*);
89 ::proc_macro::TokenStream::from_iter(tokens)
94 let mut tokens = ::std::vec::Vec::new();
95 quote_spanned!(@proc tokens $span $($inner)*);
98 ::proc_macro::TokenStream::from_iter(tokens)
169 /// Converts tokens into [`proc_macro::TokenStream`] and performs variable interpolations with