| /external/rust/crates/der_derive/src/ |
| D | tag.rs | 5 use quote::quote; 37 quote!(true) in to_tokens() 39 quote!(false) in to_tokens() 44 quote! { in to_tokens() 75 TagMode::Explicit => quote!(::der::TagMode::Explicit), in to_tokens() 76 TagMode::Implicit => quote!(::der::TagMode::Implicit), in to_tokens() 113 0 => quote!(::der::TagNumber::N0), in to_tokens() 114 1 => quote!(::der::TagNumber::N1), in to_tokens() 115 2 => quote!(::der::TagNumber::N2), in to_tokens() 116 3 => quote!(::der::TagNumber::N3), in to_tokens() [all …]
|
| D | asn1_type.rs | 4 use quote::quote; 43 Asn1Type::BitString => quote!(::der::Tag::BitString), in tag() 44 Asn1Type::Ia5String => quote!(::der::Tag::Ia5String), in tag() 45 Asn1Type::GeneralizedTime => quote!(::der::Tag::GeneralizedTime), in tag() 46 Asn1Type::OctetString => quote!(::der::Tag::OctetString), in tag() 47 Asn1Type::PrintableString => quote!(::der::Tag::PrintableString), in tag() 48 Asn1Type::TeletexString => quote!(::der::Tag::TeletexString), in tag() 49 Asn1Type::VideotexString => quote!(::der::Tag::VideotexString), in tag() 50 Asn1Type::UtcTime => quote!(::der::Tag::UtcTime), in tag() 51 Asn1Type::Utf8String => quote!(::der::Tag::Utf8String), in tag() [all …]
|
| /external/rust/crates/mockall_derive/src/ |
| D | lib.rs | 13 use quote::{ToTokens, format_ident, quote}; 85 if let Ok(newty) = parse2::<Type>(quote!(&(dyn #tpb))) { in concretize_args() 87 let subst_ty: Type = parse2(quote!(#ident)).unwrap(); in concretize_args() 91 let subst_ty: Type = parse2(quote!(&#ident)).unwrap(); in concretize_args() 98 if let Ok(newty) = parse2::<Type>(quote!(&mut (dyn #tpb))) { in concretize_args() 100 let subst_ty: Type = parse2(quote!(&mut #ident)).unwrap(); in concretize_args() 109 if let Ok(newty) = parse2::<Type>(quote!(&[&(dyn #tpb)])) { in concretize_args() 110 let subst_ty: Type = parse2(quote!(&[#ident])).unwrap(); in concretize_args() 129 if let Ok(ident) = parse2::<Ident>(quote!(#bounded_ty)) { in concretize_args() 183 Some(quote!( in concretize_args() [all …]
|
| /external/rust/crates/quote/ |
| D | README.md | 4 …badge/github-dtolnay/quote-8da0cb?style=for-the-badge&labelColor=555555&logo=github" height="20">]… 5 …://img.shields.io/crates/v/quote.svg?style=for-the-badge&color=fc8d62&logo=rust" height="20">](htt… 6 ….shields.io/badge/docs.rs-quote-66c2a5?style=for-the-badge&labelColor=555555&logo=docs.rs" height=… 7 …ions/workflow/status/dtolnay/quote/ci.yml?branch=master&style=for-the-badge" height="20">](https:/… 9 This crate provides the [`quote!`] macro for turning Rust syntax tree data 12 [`quote!`]: https://docs.rs/quote/1.0/quote/macro.quote.html 21 Within the `quote!` macro, we can write what looks like code to our text editor 34 quote = "1.0" 37 *Version requirement: Quote supports rustc 1.56 and up.*<br> 38 [*Release notes*](https://github.com/dtolnay/quote/releases) [all …]
|
| /external/rust/crates/vulkano/autogen/ |
| D | spirv_parse.rs | 15 use quote::{format_ident, quote}; 105 quote! { in write() 135 quote! { #name, } in instruction_output() 138 quote! { #name: #ty, } in instruction_output() 140 quote! { in instruction_output() 155 quote! { in instruction_output() 161 quote! { in instruction_output() 166 quote! { in instruction_output() 188 quote! {} in instruction_output() 197 Some(quote! { Self::#name { result_id, .. } }) in instruction_output() [all …]
|
| D | properties.rs | 14 use quote::{format_ident, quote}; 29 quote! { in write() 57 quote! { in properties_output() 62 quote! { in properties_output() 71 quote! { in properties_output() 87 quote! { properties_ffi.#ffi_member.map(|s| s #ffi_member_field .#ffi_name) } in properties_output() 90 quote! { in properties_output() 97 quote! { properties_ffi.#ffi_member #ffi_member_field .#ffi_name } in properties_output() 100 quote! { in properties_output() 109 quote! { in properties_output() [all …]
|
| /external/rust/crates/mls-rs-codec-derive/src/ |
| D | lib.rs | 12 use quote::quote; 34 Operation::Size => quote! { mls_encoded_len }, in call() 35 Operation::Encode => quote! { mls_encode }, in call() 36 Operation::Decode => quote! { mls_decode }, in call() 42 Operation::Size => quote! {}, in extras() 43 Operation::Encode => quote! { , writer }, in extras() 44 Operation::Decode => quote! { reader }, in extras() 67 quote! { &self.#ident } in call_tokens() 69 quote! { &self.#index } in call_tokens() 75 quote! {#ident: } in name() [all …]
|
| /external/rust/crates/quote/tests/ |
| D | test.rs | 15 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_array #ref_array)*); in test_array() 98 let _ = quote!(#(#ref_slice #ref_slice)*); in test_array() [all …]
|
| /external/rust/crates/thiserror-impl/src/ |
| D | expand.rs | 5 use quote::{format_ident, quote, quote_spanned, ToTokens}; 29 error_inferred_bounds.insert(only_field.ty, quote!(std::error::Error)); in impl_struct() 32 Some(quote! { in impl_struct() 39 error_inferred_bounds.insert(ty, quote!(std::error::Error + 'static)); in impl_struct() 47 Some(quote! { in impl_struct() 54 quote! { in impl_struct() 63 let request = quote!(request); in impl_struct() 81 Some(quote! { in impl_struct() 87 Some(quote! { in impl_struct() 91 quote! { in impl_struct() [all …]
|
| /external/rust/crates/miette-derive/src/ |
| D | forward.rs | 2 use quote::{format_ident, quote}; 47 Self::Code => quote! { code() }, in method_call() 48 Self::Help => quote! { help() }, in method_call() 49 Self::Url => quote! { url() }, in method_call() 50 Self::Severity => quote! { severity() }, in method_call() 51 Self::Labels => quote! { labels() }, in method_call() 52 Self::SourceCode => quote! { source_code() }, in method_call() 53 Self::Related => quote! { related() }, in method_call() 54 Self::DiagnosticSource => quote! { diagnostic_source() }, in method_call() 60 Self::Code => quote! { in signature() [all …]
|
| /external/brotli/ |
| D | configure-cmake | 39 quote() { function 89 CMAKE_ARGS="$CMAKE_ARGS -D${VAR_UC_NAME}=$(quote "$2")" 91 CMAKE_ARGS="$CMAKE_ARGS -D${VAR_UC_NAME}=$(quote "${VAR_VALUE}")" 187 CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_BINDIR=$(quote "${1#*=}")";; 189 CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_BINDIR=$(quote "$2")"; shift;; 191 CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_SBINDIR=$(quote "${1#*=}")";; 193 CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_SBINDIR=$(quote "$2")"; shift;; 195 CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_LIBEXECDIR=$(quote "${1#*=}")";; 197 CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_LIBEXECDIR=$(quote "$2")"; shift;; 199 CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_SYSCONFDIR=$(quote "${1#*=}")";; [all …]
|
| /external/rust/beto-rust/common/pourover_macro/src/call_method/ |
| D | ast.rs | 138 use quote::quote; 143 let ret: CommaSep<syn::Ident> = syn::parse2(quote![abc,]).unwrap(); in comma_sep_correct() 150 assert!(syn::parse2::<CommaSep<syn::Ident>>(quote![abc]).is_err()); in comma_sep_incorrect() 151 assert!(syn::parse2::<CommaSep<syn::Ident>>(quote![,abc]).is_err()); in comma_sep_incorrect() 152 assert!(syn::parse2::<CommaSep<syn::Ident>>(quote![,]).is_err()); in comma_sep_incorrect() 157 let args = parse_args.parse2(quote![]).unwrap(); in parse_args_no_args() 164 let args = parse_args.parse2(quote![,]).unwrap(); in parse_args_no_args_extra_comma() 171 let args = parse_args.parse2(quote![, foo]).unwrap(); in parse_args_single_no_trailing() 178 let args = parse_args.parse2(quote![, foo,]).unwrap(); in parse_args_single_trailing() 185 let args = parse_args.parse2(quote![, one, two, three]).unwrap(); in parse_args_multi_no_trailing() [all …]
|
| /external/rust/crates/pdl-compiler/src/backends/rust/ |
| D | serializer.rs | 17 use quote::{format_ident, quote}; 28 quote! { in range_check() 49 RuntimeSize { constant: 0, variable: vec![quote! { self.payload.len() }] } in payload_size() 60 impl quote::ToTokens for RuntimeSize { 64 RuntimeSize { variable, .. } if variable.is_empty() => quote! { #constant }, in to_tokens() 65 RuntimeSize { variable, constant: 0 } => quote! { #(#variable)+* }, in to_tokens() 66 RuntimeSize { variable, .. } => quote! { #constant + #(#variable)+* }, in to_tokens() 102 tokens: quote! {}, in new() 127 "e! { #backing_type::from(self.#id) }, in encode_typedef_field() 131 quote! { in encode_typedef_field() [all …]
|
| D | parser.rs | 17 use quote::{format_ident, quote}; 58 tokens: quote! {}, in new() 98 quote! { in add_optional_field() 110 quote! { in add_optional_field() 128 quote! { in add_optional_field() 151 self.check_size(self.span, "e!(#wanted)); in add_bit_field() 163 self.tokens.extend(quote! { in add_bit_field() 172 quote! { #get } in add_bit_field() 175 quote! { #chunk_name } in add_bit_field() 180 v = quote! { (#v >> #shift) } in add_bit_field() [all …]
|
| /external/rust/crates/pdl-compiler/src/backends/rust_legacy/ |
| D | serializer.rs | 17 use quote::{format_ident, quote}; 85 let write = types::put_uint(self.endianness, "e!(*#id), *width, self.span); in add_optional_field() 91 quote! { in add_optional_field() 103 quote! { in add_optional_field() 116 "e!(#backing_type::from(#id)), in add_optional_field() 120 quote! { in add_optional_field() 129 quote! { in add_optional_field() 153 value: quote! { in add_bit_field() 170 self.code.push(quote! { in add_bit_field() 181 self.chunk.push(BitField { value: quote!(self.#field_name), field_type, shift }); in add_bit_field() [all …]
|
| D | types.rs | 19 use quote::{format_ident, quote}; 43 impl quote::ToTokens for Integer { 55 quote!(Option<#field_type>) in rust_type() 59 quote!(#field_type) in rust_type() 63 quote!(Option<#field_type>) in rust_type() 67 quote!(#field_type) in rust_type() 72 quote!([#field_type; #size]) in rust_type() 76 quote!(Vec<#field_type>) in rust_type() 81 quote!([#field_type; #size]) in rust_type() 85 quote!(Vec<#field_type>) in rust_type() [all …]
|
| D | parser.rs | 20 use quote::{format_ident, quote}; 102 quote! { in add_optional_field() 114 quote! { in add_optional_field() 132 quote! { in add_optional_field() 155 self.check_size(self.span, "e!(#wanted)); in add_bit_field() 167 self.code.push(quote! { in add_bit_field() 176 quote! { #get } in add_bit_field() 179 quote! { #chunk_name } in add_bit_field() 184 v = quote! { (#v >> #shift) } in add_bit_field() 193 v = quote! { (#v & #mask) }; in add_bit_field() [all …]
|
| /external/rust/crates/pdl-compiler/src/backends/rust_no_allocation/ |
| D | packet_serializer.rs | 18 use quote::{format_ident, quote}; 66 Some(("_child_", quote! { #type_ident })) in generate_packet_serializer() 80 Some((id.as_str(), quote! { Box<[#element_type]> })) in generate_packet_serializer() 84 Some((id.as_str(), quote! { #id_type })) in generate_packet_serializer() 92 Some((id.as_str(), quote! { #type_ident })) in generate_packet_serializer() 98 quote! { pub #id_ident: #typ } in generate_packet_serializer() 107 quote! { in generate_packet_serializer() 120 return quote! { in generate_packet_serializer() 130 return quote! { in generate_packet_serializer() 146 quote! { in generate_packet_serializer() [all …]
|
| /external/clang/test/Modules/ |
| D | macro-ambiguity.cpp | 6 // RUN: -iquote Inputs/macro-ambiguity/a/quote \ 15 // RUN: -iquote Inputs/macro-ambiguity/b/quote \ 24 // RUN: -iquote Inputs/macro-ambiguity/c/quote \ 33 // RUN: -iquote Inputs/macro-ambiguity/d/quote \ 42 // RUN: -iquote Inputs/macro-ambiguity/a/quote \ 44 // RUN: -iquote Inputs/macro-ambiguity/b/quote \ 46 // RUN: -iquote Inputs/macro-ambiguity/c/quote \ 48 // RUN: -iquote Inputs/macro-ambiguity/d/quote \ 50 // RUN: -iquote Inputs/macro-ambiguity/e/quote \ 63 // RUN: -iquote Inputs/macro-ambiguity/a/quote \ [all …]
|
| /external/rust/crates/derive_arbitrary/src/ |
| D | lib.rs | 4 use quote::quote; 56 Ok(quote! { in expand_derive_arbitrary() 149 expr: impl quote::ToTokens, in with_recursive_count_guard() 150 ) -> impl quote::ToTokens { in with_recursive_count_guard() 151 quote! { in with_recursive_count_guard() 187 let body = with_recursive_count_guard(recursive_count, quote! { Ok(#ident #arbitrary) }); in gen_arbitrary_method() 191 with_recursive_count_guard(recursive_count, quote! { Ok(#ident #arbitrary_take_rest) }); in gen_arbitrary_method() 193 Ok(quote! { in gen_arbitrary_method() 222 .map(|ctor| quote! { #idx => #ident::#variant_name #ctor }) in gen_arbitrary_method() 234 .map(|ctor| quote! { #idx => #ident::#variant_name #ctor }) in gen_arbitrary_method() [all …]
|
| /external/rust/crates/pest_generator/src/ |
| D | generator.rs | 13 use quote::{ToTokens, TokenStreamExt}; 37 quote!() in generate() 56 let parser_impl = quote! { in generate() 90 quote! { in generate() 159 builtins.push((property, quote! { in generate_builtin_rules() 186 quote! { in generate_include() 192 quote! { in generate_include() 210 Some(doc) => quote! { in generate_enum() 214 None => quote! { in generate_enum() 221 let mut result = quote! { in generate_enum() [all …]
|
| /external/rust/crates/uniffi_macros/src/export/ |
| D | scaffolding.rs | 6 use quote::quote; 36 Ok(quote! { in gen_fn_scaffolding() 58 Ok(quote! { in gen_constructor_scaffolding() 82 Ok(quote! { in gen_method_scaffolding() 107 let rust_fn_call = quote! { #ident(#call_params) }; in new_for_function() 110 quote! { uniffi_result.map_err(::std::convert::Into::into) } in new_for_function() 112 quote! { uniffi_result } in new_for_function() 132 quote! { in new_for_method() 136 quote! { in new_for_method() 144 quote! { in new_for_method() [all …]
|
| /external/rust/crates/strum_macros/src/macros/strings/ |
| D | from_string.rs | 2 use quote::quote; 22 quote! { ::core::result::Result::Err(#strum_module_path::ParseError::VariantNotFound) }; in from_string_inner() 50 default = quote! { in from_string_inner() 57 Fields::Unit => quote! {}, in from_string_inner() 60 ::core::iter::repeat(quote!(Default::default())).take(fields.unnamed.len()); in from_string_inner() 61 quote! { (#(#defaults),*) } in from_string_inner() 68 quote! { {#(#fields: Default::default()),*} } in from_string_inner() 79 phf_exact_match_arms.push(quote! { #serialization => #name::#ident #params, }); in from_string_inner() 89 phf_exact_match_arms.push(quote! { #lower => #name::#ident #params, }); in from_string_inner() 90 phf_exact_match_arms.push(quote! { #upper => #name::#ident #params, }); in from_string_inner() [all …]
|
| /external/swiftshader/third_party/marl/src/ |
| D | trace.cpp | 187 #define QUOTE(x) "\"" << x << "\"" macro 198 out << INDENT << QUOTE("name") << ": " << QUOTE(name) << "," << std::endl; in write() 200 out << INDENT << QUOTE("cat") << ": " in write() 212 out << INDENT << QUOTE("args") << ": " in write() 214 << INDENT << INDENT << QUOTE("fiber") << ": " << fiberID << std::endl in write() 218 out << INDENT << QUOTE("tid") << ": " << threadFiberID(threadID, fiberID) in write() 221 out << INDENT << QUOTE("ph") << ": " << QUOTE(static_cast<char>(type())) in write() 223 << INDENT << QUOTE("pid") << ": " << processID << "," << std::endl in write() 224 << INDENT << QUOTE("ts") << ": " << timestamp << std::endl; in write() 228 out << INDENT << QUOTE("name") << ": " << QUOTE("thread_name") << "," in write() [all …]
|
| /external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/convert/ |
| D | CoerceJDKScalarsTest.java | 121 _verifyCoerceSuccess(quote("true"), Boolean.TYPE, Boolean.TRUE); in testStringCoercionOkBoolean() 122 _verifyCoerceSuccess(quote("true"), Boolean.class, Boolean.TRUE); in testStringCoercionOkBoolean() 123 _verifyCoerceSuccess(quote("True"), Boolean.TYPE, Boolean.TRUE); in testStringCoercionOkBoolean() 124 _verifyCoerceSuccess(quote("True"), Boolean.class, Boolean.TRUE); in testStringCoercionOkBoolean() 125 _verifyCoerceSuccess(quote("TRUE"), Boolean.TYPE, Boolean.TRUE); in testStringCoercionOkBoolean() 126 _verifyCoerceSuccess(quote("TRUE"), Boolean.class, Boolean.TRUE); in testStringCoercionOkBoolean() 129 _verifyCoerceSuccess(quote("false"), Boolean.TYPE, Boolean.FALSE); in testStringCoercionOkBoolean() 130 _verifyCoerceSuccess(quote("false"), Boolean.class, Boolean.FALSE); in testStringCoercionOkBoolean() 131 _verifyCoerceSuccess(quote("False"), Boolean.TYPE, Boolean.FALSE); in testStringCoercionOkBoolean() 132 _verifyCoerceSuccess(quote("False"), Boolean.class, Boolean.FALSE); in testStringCoercionOkBoolean() [all …]
|