Lines Matching refs:tokens
12 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens()
13 tokens.append(Ident::new("X", Span::call_site())); in to_tokens()
19 let tokens = quote! { in test_quote_impl() localVariable
21 fn to_tokens(&self, tokens: &mut TokenStream) { in test_quote_impl()
22 (**self).to_tokens(tokens) in test_quote_impl()
35 assert_eq!(expected, tokens.to_string()); in test_quote_impl()
41 let tokens = quote_spanned! {span=> in test_quote_spanned_impl() localVariable
43 fn to_tokens(&self, tokens: &mut TokenStream) { in test_quote_spanned_impl()
44 (**self).to_tokens(tokens) in test_quote_spanned_impl()
57 assert_eq!(expected, tokens.to_string()); in test_quote_spanned_impl()
63 let tokens = quote!(#x <#x> (#x) [#x] {#x}); in test_substitution() localVariable
67 assert_eq!(expected, tokens.to_string()); in test_substitution()
95 let tokens = quote! { in test_advanced() localVariable
133 assert_eq!(expected, tokens.to_string()); in test_advanced()
151 let tokens = quote! { in test_integer() localVariable
156 assert_eq!(expected, tokens.to_string()); in test_integer()
165 let tokens = quote! { in test_floating() localVariable
170 assert_eq!(expected, tokens.to_string()); in test_floating()
182 let tokens = quote! { in test_char() localVariable
186 assert_eq!(expected, tokens.to_string()); in test_char()
192 let tokens = quote!(#s); in test_str() localVariable
194 assert_eq!(expected, tokens.to_string()); in test_str()
200 let tokens = quote!(#s); in test_string() localVariable
202 assert_eq!(expected, tokens.to_string()); in test_string()
209 let tokens = quote!(struct #foo; enum #bar {}); in test_ident() localVariable
211 assert_eq!(expected, tokens.to_string()); in test_ident()
218 let tokens = quote!(#ch #ch); in test_duplicate() localVariable
221 assert_eq!(expected, tokens.to_string()); in test_duplicate()
229 let tokens = quote! { in test_fancy_repetition() localVariable
234 assert_eq!(expected, tokens.to_string()); in test_fancy_repetition()
241 let tokens = quote! { in test_nested_fancy_repetition() localVariable
248 assert_eq!(expected, tokens.to_string()); in test_nested_fancy_repetition()
255 let tokens = quote! { in test_duplicate_name_repetition() localVariable
261 assert_eq!(expected, tokens.to_string()); in test_duplicate_name_repetition()
268 let tokens = quote! { in test_duplicate_name_repetition_no_copy() localVariable
273 assert_eq!(expected, tokens.to_string()); in test_duplicate_name_repetition_no_copy()
282 let tokens = quote! { in test_btreeset_repetition() localVariable
287 assert_eq!(expected, tokens.to_string()); in test_btreeset_repetition()
295 let tokens = quote! { #(#_i),* }; in test_variable_name_conflict() localVariable
297 assert_eq!(expected, tokens.to_string()); in test_variable_name_conflict()
305 let tokens = quote! { in test_nonrep_in_repetition() localVariable
310 assert_eq!(expected, tokens.to_string()); in test_nonrep_in_repetition()
315 let tokens = quote!(); in test_empty_quote() localVariable
316 assert_eq!("", tokens.to_string()); in test_empty_quote()
322 let tokens = quote! { #b }; in test_box_str() localVariable
323 assert_eq!("\"str\"", tokens.to_string()); in test_box_str()
333 let tokens = quote! { #owned #borrowed }; in test_cow() localVariable
334 assert_eq!("owned borrowed", tokens.to_string()); in test_cow()
347 let tokens = quote! { #(#fields)* }; in test_closure() localVariable
348 assert_eq!("__field0 __field1 __field2", tokens.to_string()); in test_closure()
389 let tokens = quote! { in test_outer_line_comment() localVariable
393 assert_eq!(expected, tokens.to_string()); in test_outer_line_comment()
398 let tokens = quote! { in test_inner_line_comment() localVariable
402 assert_eq!(expected, tokens.to_string()); in test_inner_line_comment()
407 let tokens = quote! { in test_outer_block_comment() localVariable
411 assert_eq!(expected, tokens.to_string()); in test_outer_block_comment()
416 let tokens = quote! { in test_inner_block_comment() localVariable
420 assert_eq!(expected, tokens.to_string()); in test_inner_block_comment()
425 let tokens = quote! { in test_outer_attr() localVariable
429 assert_eq!(expected, tokens.to_string()); in test_outer_attr()
434 let tokens = quote! { in test_inner_attr() localVariable
438 assert_eq!(expected, tokens.to_string()); in test_inner_attr()
445 let tokens = quote! { in test_star_after_repetition() localVariable
452 assert_eq!(expected, tokens.to_string()); in test_star_after_repetition()