Home
last modified time | relevance | path

Searched refs:quote (Results 1 - 25 of 367) sorted by relevance

12345678910>>...15

/third_party/rust/crates/syn/tests/
H A Dtest_expr.rs7 use quote::{quote, ToTokens as _};
13 let tokens = quote!(..100u32); in test_expr_parse()
23 let tokens = quote!(..100u32); in test_expr_parse()
37 let tokens = quote!(fut.await); in test_await()
90 quote!(tuple.0.0), in test_tuple_multi_index()
91 quote!(tuple .0.0), in test_tuple_multi_index()
92 quote!(tuple. 0.0), in test_tuple_multi_index()
93 quote!(tuple.0 .0), in test_tuple_multi_index()
94 quote!(tupl in test_tuple_multi_index()
[all...]
H A Dtest_item.rs7 use quote::quote;
14 TokenTree::Group(Group::new(Delimiter::None, quote! { #[test] })), in test_macro_variable_attr()
54 let tokens = quote! { in test_negative_impl()
67 let tokens = quote! { in test_negative_impl()
79 let tokens = quote! { in test_negative_impl()
110 let tokens = quote! { in test_negative_impl()
126 TokenTree::Group(Group::new(Delimiter::None, quote!(Trait))), in test_macro_variable_impl()
128 TokenTree::Group(Group::new(Delimiter::None, quote!(Type))), in test_macro_variable_impl()
165 let tokens = quote!(trai in test_supertraits()
[all...]
H A Dtest_derive_input.rs11 use quote::quote;
16 let input = quote! { in test_unit()
35 let input = quote! { in test_struct()
132 let input = quote! { in test_union()
186 let input = quote! { in test_enum()
348 let input = quote! { in test_attr_with_non_mod_style_path()
358 let input = quote! { in test_attr_with_mod_style_path_with_self()
409 let input = quote! { in test_pub_restricted()
465 let input = quote! { in test_pub_restricted_crate()
[all...]
H A Dtest_generics.rs10 use quote::quote;
15 let input = quote! { in test_split_for_impl()
106 let generated = quote! { in test_split_for_impl()
109 let expected = quote! { in test_split_for_impl()
119 let generated = quote! { in test_split_for_impl()
122 let expected = quote! { in test_split_for_impl()
130 let tokens = quote!('a); in test_ty_param_bound()
137 let tokens = quote!('_); in test_ty_param_bound()
144 let tokens = quote!(Debu in test_ty_param_bound()
[all...]
/third_party/rust/crates/bindgen/bindgen/codegen/
H A Dhelpers.rs6 use quote::TokenStreamExt;
14 quote! { in repr()
24 quote! { in repr_list()
34 quote! { in derives()
40 quote! { in inline()
46 quote! { in must_use()
52 quote! { in non_exhaustive()
59 quote!() in doc()
61 quote!(#[doc = #comment]) in doc()
69 quote! { in link_name()
[all...]
H A Ddyngen.rs87 quote!(unsafe { Self::from_library(library) }) in get_tokens()
89 quote!(Self::from_library(library)) in get_tokens()
92 quote! { in get_tokens()
144 let signature = quote! { unsafe extern #abi fn ( #( #args),* ) #ret };
148 quote! { Result<#signature, ::libloading::Error> }
151 self.struct_members.push(quote! {
158 quote! { self.#ident }
160 quote! { self.#ident.as_ref().expect("Expected function, got error.") }
163 quote!(unsafe { (#fn_)(#( #args_identifiers ),*) })
165 quote!((#fn
[all...]
H A Dmod.rs52 use quote::TokenStreamExt;
93 let mut path = vec![quote! { self }]; in top_level_path()
97 path.push(quote! { super }); in top_level_path()
115 path.push(quote! { #root_ident }); in root_import()
117 let mut tokens = quote! {}; in root_import()
118 tokens.append_separated(path, quote!(::)); in root_import()
120 quote! { in root_import()
390 quote! { *const #self } in to_ptr()
392 quote! { *mut #self } in to_ptr()
451 self.append_all(quote! { in append_implicit_template_params()
[all...]
/third_party/rust/crates/quote/tests/
H A Dtest.rs15 use quote::{format_ident, quote, quote_spanned, TokenStreamExt};
19 impl quote::ToTokens for X {
27 let tokens = quote! { in test_quote_impl()
71 let tokens = quote!(#x <#x> (#x) [#x] {#x}); in test_substitution()
82 assert_eq!("X X X X", quote!(#(#primes)*).to_string()); in test_iter()
84 assert_eq!("X , X , X , X ,", quote!(#(#primes,)*).to_string()); in test_iter()
86 assert_eq!("X , X , X , X", quote!(#(#primes),*).to_string()); in test_iter()
92 let _ = quote!(#(#array #array)*); in test_array()
95 let _ = quote!(#(#ref_arra in test_array()
[all...]
/third_party/rust/crates/syn/codegen/src/
H A Dfold.rs4 use quote::{format_ident, quote};
13 quote! { in simple_visit()
26 let res = visit(t, features, defs, &quote!(*#name))?; in visit()
27 Some(quote! { in visit()
32 let operand = quote!(it); in visit()
34 Some(quote! { in visit()
39 let operand = quote!(it); in visit()
41 Some(quote! { in visit()
46 let it = quote!(i in visit()
[all...]
H A Dvisit.rs5 use quote::{format_ident, quote};
15 quote! { in simple_visit()
22 quote! { in noop_visit()
36 visit(t, features, defs, &Owned(quote!(*#name))) in visit()
39 let operand = Borrowed(quote!(it)); in visit()
42 Some(quote! { in visit()
49 let operand = Borrowed(quote!(it)); in visit()
52 Some(quote! { in visit()
60 let it = Borrowed(quote!(i in visit()
[all...]
H A Dhash.rs4 use quote::{format_ident, quote};
24 Data::Enum(variants) if variants.is_empty() => quote!(match *self {}), in expand_impl_body()
33 quote! { in expand_impl_body()
47 let mut hashed_val = quote!(#var); in expand_impl_body()
50 hashed_val = quote!(TokenStreamHelper(#hashed_val)); in expand_impl_body()
53 hashed_val = quote!(#hashed_val.to_string()); in expand_impl_body()
57 hashes.push(quote! { in expand_impl_body()
66 cfg = Some(quote!(#[cfg(feature = "full")])); in expand_impl_body()
70 quote! { in expand_impl_body()
[all...]
H A Deq.rs4 use quote::{format_ident, quote};
24 Data::Enum(variants) if variants.is_empty() => quote!(match *self {}), in expand_impl_body()
29 quote! { in expand_impl_body()
46 quote!(TokenStreamHelper(#this) == TokenStreamHelper(#other)) in expand_impl_body()
49 quote!(#this.to_string() == #other.to_string()) in expand_impl_body()
51 _ => quote!(#this == #other), in expand_impl_body()
57 comparisons.push(quote!(true)); in expand_impl_body()
63 cfg = Some(quote!(#[cfg(feature = "full")])); in expand_impl_body()
67 quote! { in expand_impl_body()
[all...]
H A Dvisit_mut.rs5 use quote::{format_ident, quote};
15 quote! { in simple_visit()
22 quote! { in noop_visit()
36 visit(t, features, defs, &Owned(quote!(*#name))) in visit()
39 let operand = Borrowed(quote!(it)); in visit()
42 Some(quote! { in visit()
49 let operand = Borrowed(quote!(it)); in visit()
52 Some(quote! { in visit()
60 let it = Borrowed(quote!(i in visit()
[all...]
H A Dsnapshot.rs5 use quote::{format_ident, quote};
15 quote!(syn::#ident) in rust_type()
19 quote!(#ident) in rust_type()
23 quote!(proc_macro2::#ident) in rust_type()
27 quote!(syn::token::#ident) in rust_type()
32 quote!(syn::punctuated::Punctuated<#element, #punct>) in rust_type()
36 quote!(Option<#inner>) in rust_type()
40 quote!(Box<#inner>) in rust_type()
44 quote!(Ve in rust_type()
[all...]
H A Dclone.rs4 use quote::{format_ident, quote};
14 Data::Enum(variants) if variants.is_empty() => quote!(match *self {}), in expand_impl_body()
19 quote! { in expand_impl_body()
27 clones.push(quote!(#pat.clone())); in expand_impl_body()
34 cfg = Some(quote!(#[cfg(feature = "full")])); in expand_impl_body()
38 quote! { in expand_impl_body()
45 Some(quote! { in expand_impl_body()
52 quote! { in expand_impl_body()
62 quote! { in expand_impl_body()
[all...]
H A Dcfg.rs2 use quote::quote;
12 1 => Some(quote! { cfg(feature = #(#features)*) }), in features()
13 _ => Some(quote! { cfg(any(#(feature = #features),*)) }), in features()
16 (Some(cfg), Some(overriding_cfg)) => quote! { in features()
20 (Some(cfg), None) => quote! { in features()
24 (None, Some(overriding_cfg)) => quote! { in features()
/third_party/rust/crates/clap/clap_derive/src/derives/
H A Dsubcommand.rs16 use quote::{format_ident, quote, quote_spanned};
67 Ok(quote! { in gen_for_enum()
151 quote!() in gen_augment()
174 quote!() in gen_augment()
179 quote! { in gen_augment()
187 quote! { in gen_augment()
209 Unit => quote!( #subcommand_var ), in gen_augment()
235 quote!() in gen_augment()
245 quote!() in gen_augment()
[all...]
/third_party/rust/crates/serde/serde_derive/src/
H A Dpretend.rs3 use quote::{format_ident, quote};
26 quote! { in pretend_used()
74 Data::Struct(Style::Unit, _) => quote!(), in pretend_fields_used()
85 quote! { in pretend_fields_used_struct()
99 quote! { in pretend_fields_used_struct_packed()
122 Some(quote!(#type_ident::#variant_ident { #(#members: #placeholders),* })) in pretend_fields_used_enum()
128 quote! { in pretend_fields_used_enum()
151 return quote!(); in pretend_variants_used()
168 quote!({ #(#member in pretend_variants_used()
[all...]
H A Dde.rs6 use quote::{quote, quote_spanned, ToTokens};
34 quote! { in expand_derive_deserialize()
48 quote! { in expand_derive_deserialize()
360 Some(path) => quote!(#path), in deserialize_transparent()
370 quote!(#member: __transparent) in deserialize_transparent()
373 attr::Default::Default => quote!(_serde::__private::Default::default()), in deserialize_transparent()
374 attr::Default::Path(path) => quote!(#path()), in deserialize_transparent()
375 attr::Default::None => quote!(_serde::__private::PhantomData), in deserialize_transparent()
377 quote!(#membe in deserialize_transparent()
[all...]
H A Dser.rs6 use quote::{quote, quote_spanned};
30 quote! { in expand_derive_serialize()
42 quote! { in expand_derive_serialize()
197 Some(path) => quote!(#path), in serialize_transparent()
272 None => quote!(1), in serialize_tuple_struct()
279 quote!(if #path(#field_expr) { 0 } else { 1 }) in serialize_tuple_struct()
282 .fold(quote!(0), |sum, expr| quote!(#sum + #expr)); in serialize_tuple_struct()
306 quote! { in serialize_struct_tag_field()
[all...]
/third_party/rust/crates/cxx/macro/src/
H A Dtype_id.rs3 use quote::{format_ident, quote, ToTokens};
14 Crate::Cxx => tokens.extend(quote!(::cxx)), in to_tokens()
26 ids.push(quote!(())); in expand()
32 quote!(#krate::#t) in expand()
36 quote!(#krate::#t) in expand()
38 _ => quote!([(); #ch as _]), in expand()
43 quote! { (#(#ids,)*) } in expand()
/third_party/rust/crates/syn/tests/regression/
H A Dissue1235.rs2 use quote::quote;
8 let tokens = quote! { in main()
18 quote!(static FOO: usize = 0; pub static BAR: usize = 0), in main()
20 let tokens = quote!(pub #inner;); in main()
27 quote!(static FOO: usize; pub static BAR: usize), in main()
29 let tokens = quote!(pub #inner;); in main()
/third_party/rust/crates/clap/clap_derive/src/
H A Ddummies.rs4 use quote::quote;
9 quote!( in parser()
17 quote! { in into_app()
31 quote! { in from_arg_matches()
46 quote! { in subcommand()
65 quote! { in args()
80 quote! { in value_enum()
/third_party/icu/icu4c/source/test/intltest/
H A Dtokiter.cpp59 * delimited by double or single quotes. The closing quote must match
60 * the opening quote. If a '#' is encountered, the rest of the line
73 UChar quote = 0; in nextToken() local
77 quote = c; in nextToken()
94 } else if ((quote != 0 && c == quote) || in nextToken()
95 (quote == 0 && PatternProps::isWhiteSpace(c))) { in nextToken()
98 } else if (quote == 0 && c == '#') { in nextToken()
105 if (quote != 0) { in nextToken()
/third_party/rust/crates/proc-macro-error/proc-macro-error-attr/src/
H A Dlib.rs10 use quote::{quote, quote_spanned};
44 quote!(#input #error).into() in proc_macro_error()
78 let res = quote! { in impl_proc_macro_error()
90 quote!(::std::panic::AssertUnwindSafe(|| #block )) in gen_body()
92 quote!(|| #block) in gen_body()
95 quote!( ::proc_macro_error::entry_point(#closure, #is_proc_macro_hack) ) in gen_body()
105 let closure = quote!(::std::panic::AssertUnwindSafe(|| #block )); in gen_body()
106 quote!( ::proc_macro_error::entry_point(#closure, #is_proc_macro_hack) ) in gen_body()

Completed in 9 milliseconds

12345678910>>...15