/third_party/rust/crates/cxx/macro/src/ |
H A D | expand.rs | 16 use quote::{format_ident, quote, quote_spanned, ToTokens}; 135 let expanded = quote_spanned!(span=> {#expanded}); in expand() 174 let struct_def = quote_spanned! {span=> in expand_struct() 210 operators.extend(quote_spanned! {span=> in expand_struct_operators() 223 operators.extend(quote_spanned! {span=> in expand_struct_operators() 237 operators.extend(quote_spanned! {span=> in expand_struct_operators() 249 operators.extend(quote_spanned! {span=> in expand_struct_operators() 262 operators.extend(quote_spanned! {span=> in expand_struct_operators() 274 operators.extend(quote_spanned! {span=> in expand_struct_operators() 288 operators.extend(quote_spanned! {spa in expand_struct_operators() [all...] |
H A D | derive.rs | 3 use quote::{quote, quote_spanned, ToTokens}; 18 Trait::Eq => traits.push(quote_spanned!(span=> ::cxx::core::cmp::Eq)), in expand_struct() 20 Trait::Hash => traits.push(quote_spanned!(span=> ::cxx::core::hash::Hash)), in expand_struct() 22 Trait::PartialEq => traits.push(quote_spanned!(span=> ::cxx::core::cmp::PartialEq)), in expand_struct() 24 Trait::Serialize => traits.push(quote_spanned!(span=> ::serde::Serialize)), in expand_struct() 25 Trait::Deserialize => traits.push(quote_spanned!(span=> ::serde::Deserialize)), in expand_struct() 60 traits.push(quote_spanned!(span=> ::cxx::core::cmp::Eq)); in expand_enum() 64 Trait::Hash => traits.push(quote_spanned!(span=> ::cxx::core::hash::Hash)), in expand_enum() 67 traits.push(quote_spanned!(span=> ::cxx::core::cmp::PartialEq)); in expand_enum() 71 Trait::Serialize => traits.push(quote_spanned!(spa in expand_enum() [all...] |
H A D | tokens.rs | 3 use quote::{quote_spanned, ToTokens}; 36 tokens.extend(quote_spanned!(pin.span=> ::cxx::core::pin::Pin)); in to_tokens() 64 tokens.extend(quote_spanned!(pin.span=> ::cxx::core::pin::Pin)); in to_tokens()
|
/third_party/rust/crates/clap/clap_derive/src/derives/ |
H A D | args.rs | 16 use quote::{format_ident, quote, quote_spanned}; 193 quote_spanned! { kind.span()=> in gen_augment() 200 quote_spanned! { kind.span()=> in gen_augment() 224 Some(quote_spanned! { kind.span()=> in gen_augment() 231 Some(quote_spanned! { kind.span()=> in gen_augment() 247 quote_spanned! { ty.span()=> in gen_augment() 253 quote_spanned! { ty.span()=> in gen_augment() 260 Ty::OptionOption => quote_spanned! { ty.span()=> in gen_augment() 269 quote_spanned! { ty.span()=> in gen_augment() 276 quote_spanned! { t in gen_augment() [all...] |
H A D | subcommand.rs | 16 use quote::{format_ident, quote, quote_spanned}; 160 let subcommand = quote_spanned! { kind.span()=> in gen_augment() 213 quote_spanned! { ty.span()=> in gen_augment() 219 quote_spanned! { ty.span()=> in gen_augment() 240 quote_spanned! { kind.span()=> in gen_augment() 291 quote_spanned! { ty.span()=> in gen_augment() 297 quote_spanned! { ty.span()=> in gen_augment() 535 Some((span, var_name, str_ty)) => quote_spanned! { span=> in gen_from_arg_matches()
|
H A D | value_enum.rs | 13 use quote::quote_spanned; 87 quote_spanned! { variant.span()=> { in lits()
|
/third_party/rust/crates/cxx/gen/cmd/src/syntax/ |
H A D | tokens.rs | 7 use quote::{quote_spanned, ToTokens}; 16 tokens.extend(quote_spanned!(span=> ::cxx::private::)); in to_tokens() 19 tokens.extend(quote_spanned!(span=> ::cxx::)); in to_tokens() 22 tokens.extend(quote_spanned!(span=> ::cxx::alloc::string::)); in to_tokens() 36 Type::Void(span) => tokens.extend(quote_spanned!(*span=> ())), in to_tokens() 70 tokens.extend(quote_spanned!(span=> ::cxx::)); in to_tokens() 73 tokens.extend(quote_spanned!(span=> ::cxx::alloc::boxed::)); in to_tokens() 76 tokens.extend(quote_spanned!(span=> ::cxx::alloc::vec::)); in to_tokens() 99 tokens.extend(quote_spanned!(pin.span=> ::cxx::core::pin::Pin)); in to_tokens()
|
/third_party/rust/crates/cxx/gen/lib/src/syntax/ |
H A D | tokens.rs | 7 use quote::{quote_spanned, ToTokens}; 16 tokens.extend(quote_spanned!(span=> ::cxx::private::)); in to_tokens() 19 tokens.extend(quote_spanned!(span=> ::cxx::)); in to_tokens() 22 tokens.extend(quote_spanned!(span=> ::cxx::alloc::string::)); in to_tokens() 36 Type::Void(span) => tokens.extend(quote_spanned!(*span=> ())), in to_tokens() 70 tokens.extend(quote_spanned!(span=> ::cxx::)); in to_tokens() 73 tokens.extend(quote_spanned!(span=> ::cxx::alloc::boxed::)); in to_tokens() 76 tokens.extend(quote_spanned!(span=> ::cxx::alloc::vec::)); in to_tokens() 99 tokens.extend(quote_spanned!(pin.span=> ::cxx::core::pin::Pin)); in to_tokens()
|
/third_party/rust/crates/cxx/gen/build/src/syntax/ |
H A D | tokens.rs | 7 use quote::{quote_spanned, ToTokens}; 16 tokens.extend(quote_spanned!(span=> ::cxx::private::)); in to_tokens() 19 tokens.extend(quote_spanned!(span=> ::cxx::)); in to_tokens() 22 tokens.extend(quote_spanned!(span=> ::cxx::alloc::string::)); in to_tokens() 36 Type::Void(span) => tokens.extend(quote_spanned!(*span=> ())), in to_tokens() 70 tokens.extend(quote_spanned!(span=> ::cxx::)); in to_tokens() 73 tokens.extend(quote_spanned!(span=> ::cxx::alloc::boxed::)); in to_tokens() 76 tokens.extend(quote_spanned!(span=> ::cxx::alloc::vec::)); in to_tokens() 99 tokens.extend(quote_spanned!(pin.span=> ::cxx::core::pin::Pin)); in to_tokens()
|
/third_party/rust/crates/cxx/macro/src/syntax/ |
H A D | tokens.rs | 7 use quote::{quote_spanned, ToTokens}; 16 tokens.extend(quote_spanned!(span=> ::cxx::private::)); in to_tokens() 19 tokens.extend(quote_spanned!(span=> ::cxx::)); in to_tokens() 22 tokens.extend(quote_spanned!(span=> ::cxx::alloc::string::)); in to_tokens() 36 Type::Void(span) => tokens.extend(quote_spanned!(*span=> ())), in to_tokens() 70 tokens.extend(quote_spanned!(span=> ::cxx::)); in to_tokens() 73 tokens.extend(quote_spanned!(span=> ::cxx::alloc::boxed::)); in to_tokens() 76 tokens.extend(quote_spanned!(span=> ::cxx::alloc::vec::)); in to_tokens() 99 tokens.extend(quote_spanned!(pin.span=> ::cxx::core::pin::Pin)); in to_tokens()
|
/third_party/rust/crates/cxx/syntax/ |
H A D | tokens.rs | 7 use quote::{quote_spanned, ToTokens}; 16 tokens.extend(quote_spanned!(span=> ::cxx::private::)); in to_tokens() 19 tokens.extend(quote_spanned!(span=> ::cxx::)); in to_tokens() 22 tokens.extend(quote_spanned!(span=> ::cxx::alloc::string::)); in to_tokens() 36 Type::Void(span) => tokens.extend(quote_spanned!(*span=> ())), in to_tokens() 70 tokens.extend(quote_spanned!(span=> ::cxx::)); in to_tokens() 73 tokens.extend(quote_spanned!(span=> ::cxx::alloc::boxed::)); in to_tokens() 76 tokens.extend(quote_spanned!(span=> ::cxx::alloc::vec::)); in to_tokens() 99 tokens.extend(quote_spanned!(pin.span=> ::cxx::core::pin::Pin)); in to_tokens()
|
/third_party/rust/crates/cxx/gen/src/ |
H A D | check.rs | 4 use quote::{quote, quote_spanned}; 20 let begin = quote_spanned!(include.begin_span=> .); in check_dot_includes() 21 let end = quote_spanned!(include.end_span=> .); in check_dot_includes()
|
/third_party/rust/crates/cxx/gen/cmd/src/gen/ |
H A D | check.rs | 4 use quote::{quote, quote_spanned}; 20 let begin = quote_spanned!(include.begin_span=> .); in check_dot_includes() 21 let end = quote_spanned!(include.end_span=> .); in check_dot_includes()
|
/third_party/rust/crates/cxx/gen/build/src/gen/ |
H A D | check.rs | 4 use quote::{quote, quote_spanned}; 20 let begin = quote_spanned!(include.begin_span=> .); in check_dot_includes() 21 let end = quote_spanned!(include.end_span=> .); in check_dot_includes()
|
/third_party/rust/crates/cxx/gen/lib/src/gen/ |
H A D | check.rs | 4 use quote::{quote, quote_spanned}; 20 let begin = quote_spanned!(include.begin_span=> .); in check_dot_includes() 21 let end = quote_spanned!(include.end_span=> .); in check_dot_includes()
|
/third_party/rust/crates/syn/examples/lazy-static/lazy-static/src/ |
H A D | lib.rs | 4 use quote::{quote, quote_spanned}; 97 let assert_sync = quote_spanned! {ty.span()=> in lazy_static() 110 let assert_sized = quote_spanned! {ty.span()=> in lazy_static() 114 let init_ptr = quote_spanned! {init.span()=> in lazy_static()
|
/third_party/rust/crates/syn/examples/heapsize/heapsize_derive/src/ |
H A D | lib.rs | 2 use quote::{quote, quote_spanned}; 66 quote_spanned! {f.span()=> in heap_size_sum() 80 quote_spanned! {f.span()=> in heap_size_sum()
|
/third_party/rust/crates/quote/tests/ui/ |
H A D | wrong-type-span.rs | 1 use quote::quote_spanned; 6 quote_spanned!(span=> #x); in main()
|
/third_party/rust/crates/quote/tests/ |
H A D | test.rs | 15 use quote::{format_ident, quote, quote_spanned, TokenStreamExt}; 49 let tokens = quote_spanned! {span=> in test_quote_spanned_impl() 537 let _ = quote_spanned!(span=> ...); in test_type_inference_for_span() 540 let _ = quote_spanned!(delim_span=> ...); in test_type_inference_for_span() 543 let _ = quote_spanned!(inferred=> ...); in test_type_inference_for_span() 547 let _ = quote_spanned!(proc_macro_span.into()=> ...); in test_type_inference_for_span()
|
/third_party/rust/crates/proc-macro-error/src/ |
H A D | diagnostic.rs | 5 use quote::{quote_spanned, ToTokens}; 257 let group = quote_spanned!(span_range.last=> { #msg } ); in to_tokens() 258 quote_spanned!(span_range.first=> compile_error!#group) in to_tokens()
|
/third_party/rust/crates/clap/clap_derive/src/ |
H A D | item.rs | 19 use quote::{format_ident, quote, quote_spanned, ToTokens}; 563 quote_spanned!(attr.name.clone().span()=> { in push_attrs() 572 quote_spanned!(attr.name.clone().span()=> { in push_attrs() 619 quote_spanned!(attr.name.clone().span()=> { in push_attrs() 643 quote_spanned!(attr.name.clone().span()=> { in push_attrs() 695 quote_spanned!(attr.name.clone().span()=> { in push_attrs() 704 quote_spanned!(attr.name.clone().span()=> { in push_attrs() 751 quote_spanned!(attr.name.clone().span()=> { in push_attrs() 775 quote_spanned!(attr.name.clone().span()=> { in push_attrs() 1097 quote_spanned! { spa in default_value_parser() [all...] |
/third_party/rust/crates/proc-macro-error/proc-macro-error-attr/src/ |
H A D | lib.rs | 10 use quote::{quote, quote_spanned}; 32 quote_spanned!(self.span=> compile_error!{#message}) in into_compile_error()
|
/third_party/rust/crates/quote/src/ |
H A D | lib.rs | 45 //! the syntax. See also the [`quote_spanned!`] macro which is important for 49 //! [`quote_spanned!`]: macro.quote_spanned.html 173 /// A different span can be provided through the [`quote_spanned!`] macro. 175 /// [`quote_spanned!`]: macro.quote_spanned.html 540 /// # use quote::quote_spanned; 549 /// let tokens = quote_spanned!(span=> Box::into_raw(Box::new(#init))); 552 /// let tokens = quote_spanned! {span=> 568 /// `ToTokens` implementation. Tokens that originate within the `quote_spanned!` 622 macro_rules! quote_spanned { global() macros 630 macro_rules! quote_spanned { global() macros [all...] |
/third_party/rust/crates/serde/serde_derive/src/ |
H A D | ser.rs | 6 use quote::{quote, quote_spanned}; 200 quote_spanned!(span=> _serde::Serialize::serialize) in serialize_transparent() 246 let func = quote_spanned!(span=> _serde::Serializer::serialize_newtype_struct); in serialize_newtype_struct() 548 let func = quote_spanned!(span=> _serde::Serializer::serialize_newtype_variant); in serialize_externally_tagged_variant() 624 let func = quote_spanned!(span=> _serde::__private::ser::serialize_tagged_newtype); in serialize_internally_tagged_variant() 689 let func = quote_spanned!(span=> _serde::ser::SerializeStruct::serialize_field); in serialize_adjacently_tagged_variant() 795 let func = quote_spanned!(span=> _serde::Serialize::serialize); in serialize_untagged_variant() 1138 let func = quote_spanned!(span=> _serde::Serialize::serialize); in serialize_struct_visitor() 1315 quote_spanned!(span=> _serde::ser::SerializeMap::serialize_entry) in serialize_field() 1318 quote_spanned!(spa in serialize_field() [all...] |
H A D | de.rs | 6 use quote::{quote, quote_spanned, ToTokens}; 363 quote_spanned!(span=> _serde::Deserialize::deserialize) in deserialize_transparent() 706 quote_spanned!(span=> _serde::de::SeqAccess::next_element::<#field_ty>); in deserialize_seq() 864 let func = quote_spanned!(span=> <#field_ty as _serde::Deserialize>::deserialize); in deserialize_newtype_struct() 1481 let func = quote_spanned!(span=> _serde::__private::de::missing_field); in deserialize_adjacently_tagged_enum() 1944 quote_spanned!(span=> _serde::de::VariantAccess::newtype_variant::<#field_ty>); in deserialize_externally_tagged_newtype_variant() 1972 let func = quote_spanned!(span=> <#field_ty as _serde::Deserialize>::deserialize); in deserialize_untagged_newtype_variant() 2506 quote_spanned!(span=> _serde::de::MapAccess::next_value::<#field_ty>); in deserialize_map() 2593 quote_spanned!(span=> _serde::de::Deserialize::deserialize) in deserialize_map() 2944 let func = quote_spanned!(spa in expr_is_missing() [all...] |