/external/rust/crates/serde_derive/src/ |
D | bound.rs | 14 pub fn without_defaults(generics: &syn::Generics) -> syn::Generics { in without_defaults() 16 params: generics in without_defaults() 28 ..generics.clone() in without_defaults() 33 generics: &syn::Generics, in with_where_predicates() 36 let mut generics = generics.clone(); in with_where_predicates() localVariable 37 generics in with_where_predicates() 41 generics in with_where_predicates() 46 generics: &syn::Generics, in with_where_predicates_from_fields() 55 let mut generics = generics.clone(); in with_where_predicates_from_fields() localVariable 56 generics.make_where_clause().predicates.extend(predicates); in with_where_predicates_from_fields() [all …]
|
D | ser.rs | 27 let (impl_generics, ty_generics, where_clause) = params.generics.split_for_impl(); in expand_derive_serialize() 90 generics: syn::Generics, field 115 let generics = build_generics(cont); in new() localVariable 120 generics, in new() 136 let generics = bound::without_defaults(cont.generics); in build_generics() localVariable 138 let generics = in build_generics() localVariable 139 bound::with_where_predicates_from_fields(cont, &generics, attr::Field::ser_bound); in build_generics() 141 let generics = in build_generics() localVariable 142 bound::with_where_predicates_from_variants(cont, &generics, attr::Variant::ser_bound); in build_generics() 145 Some(predicates) => bound::with_where_predicates(&generics, predicates), in build_generics() [all …]
|
D | de.rs | 97 for param in cont.generics.lifetimes() { in precondition_no_de_lifetime() 119 generics: syn::Generics, field 138 let generics = build_generics(cont, &borrowed); in new() localVariable 144 generics, in new() 161 let generics = bound::without_defaults(cont.generics); in build_generics() localVariable 163 let generics = bound::with_where_predicates_from_fields(cont, &generics, attr::Field::de_bound); in build_generics() localVariable 165 let generics = in build_generics() localVariable 166 bound::with_where_predicates_from_variants(cont, &generics, attr::Variant::de_bound); in build_generics() 169 Some(predicates) => bound::with_where_predicates(&generics, predicates), in build_generics() 171 let generics = match *cont.attrs.default() { in build_generics() localVariable [all …]
|
/external/rust/cxx/macro/src/ |
D | derive.rs | 95 let generics = &strct.generics; in struct_copy() localVariable 98 impl #generics ::std::marker::Copy for #ident #generics {} in struct_copy() 104 let generics = &strct.generics; in struct_clone() localVariable 122 impl #generics ::std::clone::Clone for #ident #generics { in struct_clone() 132 let generics = &strct.generics; in struct_debug() localVariable 138 impl #generics ::std::fmt::Debug for #ident #generics { in struct_debug() 150 let generics = &strct.generics; in struct_default() localVariable 154 impl #generics ::std::default::Default for #ident #generics { in struct_default() 168 let generics = &strct.generics; in struct_ord() localVariable 172 impl #generics ::std::cmp::Ord for #ident #generics { in struct_ord() [all …]
|
D | expand.rs | 13 use crate::{derive, generics}; 143 let generics = &strct.generics; in expand_struct() localVariable 160 #visibility #struct_token #ident #generics { in expand_struct() 172 unsafe impl #generics ::cxx::ExternType for #ident #generics { in expand_struct() 278 let generics = &strct.generics; in expand_struct_forbid_drop() localVariable 283 #impl_token #generics self::Drop for super::#ident #generics {} in expand_struct_forbid_drop() 347 let generics = &ety.generics; in expand_cxx_type() localVariable 350 let lifetime_fields = ety.generics.lifetimes.iter().map(|lifetime| { in expand_cxx_type() 363 #visibility #struct_token #ident #generics { in expand_cxx_type() 374 unsafe impl #generics ::cxx::ExternType for #ident #generics { in expand_cxx_type() [all …]
|
D | generics.rs | 41 self.resolve.generics.to_tokens(tokens); in to_tokens() 50 } else if !self.resolve.generics.lifetimes.is_empty() { in to_tokens() 56 self.resolve.generics.lifetimes.to_tokens(tokens); in to_tokens()
|
/external/rust/crates/syn/src/ |
D | derive.rs | 20 pub generics: Generics, 105 let generics = input.parse::<Generics>()?; in parse() localVariable 111 generics: Generics { in parse() 113 ..generics in parse() 124 let generics = input.parse::<Generics>()?; in parse() localVariable 130 generics: Generics { in parse() 132 ..generics in parse() 143 let generics = input.parse::<Generics>()?; in parse() localVariable 149 generics: Generics { in parse() 151 ..generics in parse() [all …]
|
D | item.rs | 130 pub generics: Generics, 190 pub generics: Generics, 272 pub generics: Generics, 290 pub generics: Generics, 308 pub generics: Generics, 325 pub generics: Generics, 342 pub generics: Generics, 400 generics: input.generics, in from() 409 generics: input.generics, in from() 418 generics: input.generics, in from() [all …]
|
/external/auto/value/src/it/gwtserializer/src/test/java/com/google/auto/value/client/ |
D | GwtSerializerTest.java | 40 Generics<Simple> echo(Generics<Simple> generics); in echo() argument 42 GenericsWithBuilder<SimpleWithBuilder> echo(GenericsWithBuilder<SimpleWithBuilder> generics); in echo() argument 54 void echo(Generics<Simple> generics, AsyncCallback<Generics<Simple>> callback); in echo() argument 57 GenericsWithBuilder<SimpleWithBuilder> generics, in echo() argument 107 public Generics<Simple> echo(Generics<Simple> generics) { in echo() argument 108 return Generics.create(echo(generics.simple())); in echo() 113 GenericsWithBuilder<SimpleWithBuilder> generics) { in echo() argument 115 .simple(echo(generics.simple())) in echo() 249 Generics<Simple> generics = Generics.create(Simple.create("able")); in testGenerics() local 250 testService.echo(generics, new AssertEqualsCallback<Generics<Simple>>(generics)); in testGenerics() [all …]
|
/external/rust/crates/async-trait/src/ |
D | expand.rs | 33 generics: &'a Generics, 44 let generics = match self { in lifetimes() localVariable 45 Context::Trait { generics, .. } => generics, in lifetimes() 48 generics.params.iter().filter(move |param| { in lifetimes() 64 generics: &input.generics, in expand() 91 let params = &input.generics.params; in expand() 93 input.generics.params = parse_quote!(#(#elided,)* #params); in expand() 105 impl_generics: &input.generics, in expand() 186 .generics in transform_sig() 195 where_clause_or_default(&mut sig.generics.where_clause) in transform_sig() [all …]
|
/external/rust/crates/pin-project-internal/src/pin_project/ |
D | derive.rs | 25 let ty_generics = input.generics.split_for_impl().1; in parse_derive() 28 visitor.visit_generics_mut(&mut input.generics); in parse_derive() 33 cx = Context::new(&input.attrs, &input.vis, ident, &mut input.generics, Struct)?; in parse_derive() 37 cx = Context::new(&input.attrs, &input.vis, ident, &mut input.generics, Enum)?; in parse_derive() 176 generics: &'a mut Generics, in new() 191 determine_lifetime_name(&mut lifetime_name, generics); in new() 194 let ty_generics = generics.split_for_impl().1; in new() 196 let mut proj_generics = generics.clone(); in new() 203 let mut where_clause = generics.make_where_clause().clone(); in new() 224 generics: proj_generics, in new() [all …]
|
/external/rust/crates/derive_arbitrary/src/ |
D | lib.rs | 13 build_arbitrary_lifetime(input.generics.clone()); in derive_arbitrary() 19 let generics = add_trait_bounds(input.generics, lifetime_without_bounds.clone()); in derive_arbitrary() localVariable 22 let mut generics_with_lifetime = generics.clone(); in derive_arbitrary() 29 let (_, ty_generics, where_clause) = generics.split_for_impl(); in derive_arbitrary() 42 fn build_arbitrary_lifetime(generics: Generics) -> (LifetimeDef, LifetimeDef) { in build_arbitrary_lifetime() 47 for param in generics.params.iter() { in build_arbitrary_lifetime() 59 fn add_trait_bounds(mut generics: Generics, lifetime: LifetimeDef) -> Generics { in add_trait_bounds() 60 for param in generics.params.iter_mut() { in add_trait_bounds() 67 generics in add_trait_bounds()
|
/external/rust/cxx/syntax/ |
D | parse.rs | 86 for pair in item.generics.params.into_pairs() { in parse_struct() 117 if let Some(where_clause) = &item.generics.where_clause { in parse_struct() 161 let generics = Lifetimes { in parse_struct() localVariable 162 lt_token: item.generics.lt_token, in parse_struct() 164 gt_token: item.generics.gt_token, in parse_struct() 175 generics, in parse_struct() 202 if !item.generics.params.is_empty() { in parse_enum() 206 let generics = &item.generics; in parse_enum() localVariable 207 let span = quote!(#vis #enum_token #ident #generics); in parse_enum() 209 } else if let Some(where_clause) = &item.generics.where_clause { in parse_enum() [all …]
|
D | mod.rs | 85 pub generics: Lifetimes, field 99 pub generics: Lifetimes, field 111 pub generics: Lifetimes, field 137 pub generics: Lifetimes, field 163 pub generics: Generics, field 279 pub generics: Lifetimes, field
|
D | types.rs | 57 let mut add_resolution = |name: &'a Pair, generics: &'a Lifetimes| { in collect() 58 resolutions.insert(&name.rust, Resolution { name, generics }); in collect() 88 add_resolution(&strct.name, &strct.generics); in collect() 104 add_resolution(&enm.name, &enm.generics); in collect() 121 add_resolution(&ety.name, &ety.generics); in collect() 129 add_resolution(&ety.name, &ety.generics); in collect() 151 add_resolution(&alias.name, &alias.generics); in collect()
|
D | tokens.rs | 173 self.generics.to_tokens(tokens); in to_tokens() 182 self.generics.to_tokens(tokens); in to_tokens() 191 self.generics.to_tokens(tokens); in to_tokens() 200 self.generics.to_tokens(tokens); in to_tokens() 250 generics: _, in to_tokens() 284 let NamedType { rust, generics } = self; in to_tokens() 286 generics.to_tokens(tokens); in to_tokens()
|
/external/rust/crates/syn/tests/ |
D | test_generics.rs | 100 let generics = input.generics; in test_split_for_impl() localVariable 101 let (impl_generics, ty_generics, where_clause) = generics.split_for_impl(); in test_split_for_impl() 257 let where_clause = input.sig.generics.where_clause.as_ref().unwrap(); in test_fn_precedence_in_where_clause()
|
/external/rust/crates/thiserror-impl/src/ |
D | ast.rs | 17 pub generics: &'a Generics, field 25 pub generics: &'a Generics, field 68 generics: &node.generics, in from_syn() 98 generics: &node.generics, in from_syn()
|
/external/rust/crates/pin-project-lite/src/ |
D | lib.rs | 1416 $( $generics:ident 1445 $( $generics 1454 $( $generics 1460 [$( $( $lifetime ,)* $( $generics ),* )?] 1482 $( $generics:ident 1511 $( $generics 1520 $( $generics 1526 [$( $( $lifetime ,)* $( $generics ),* )?] 1549 $( $generics:ident 1583 $( $generics [all …]
|
/external/rust/crates/pin-project-internal/src/ |
D | utils.rs | 35 pub(crate) fn determine_lifetime_name(lifetime_name: &mut String, generics: &mut Generics) { in determine_lifetime_name() 47 lifetimes.visit_generics_mut(generics); in determine_lifetime_name() 58 generics: &mut Generics, in insert_lifetime_and_bound() 63 insert_lifetime(generics, lifetime.clone()); in insert_lifetime_and_bound() 78 pub(crate) fn insert_lifetime(generics: &mut Generics, lifetime: Lifetime) { in insert_lifetime() 79 generics.lt_token.get_or_insert_with(<Token![<]>::default); in insert_lifetime() 80 generics.gt_token.get_or_insert_with(<Token![>]>::default); in insert_lifetime() 81 generics.params.insert(0, LifetimeDef::new(lifetime).into()); in insert_lifetime()
|
/external/rust/crates/syn-mid/src/ |
D | func.rs | 39 pub generics: Generics, 105 let mut generics: Generics = input.parse()?; in parse() localVariable 113 generics.where_clause = input.parse()?; in parse() 126 generics, in parse() 229 self.generics.to_tokens(tokens); in to_tokens() 240 self.generics.where_clause.to_tokens(tokens); in to_tokens()
|
/external/mesa3d/docs/gallium/ |
D | pipeline.txt | 8 generics (normals, ] 23 generics 76 generics 98 generics (+ new/extra ones) ]
|
/external/rust/crates/serde_json/src/ |
D | map.rs | 417 (($name:ident $($generics:tt)*) => $item:ty) => { 418 impl $($generics)* Iterator for $name $($generics)* { 430 impl $($generics)* DoubleEndedIterator for $name $($generics)* { 437 impl $($generics)* ExactSizeIterator for $name $($generics)* { 444 impl $($generics)* FusedIterator for $name $($generics)* {}
|
/external/mesa3d/src/intel/compiler/ |
D | brw_vue_map.c | 197 uint64_t generics = slots_valid & ~BITFIELD64_MASK(VARYING_SLOT_VAR0); in brw_compute_vue_map() local 198 while (generics != 0) { in brw_compute_vue_map() 199 const int varying = ffsll(generics) - 1; in brw_compute_vue_map() 204 generics &= ~BITFIELD64_BIT(varying); in brw_compute_vue_map()
|
/external/rust/crates/serde_derive/src/internals/ |
D | receiver.rs | 14 let ty_generics = input.generics.split_for_impl().1; in replace_receiver() 18 visitor.visit_generics_mut(&mut input.generics); in replace_receiver() 214 fn visit_generics_mut(&mut self, generics: &mut Generics) { in visit_generics_mut() 215 for param in &mut generics.params { in visit_generics_mut() 225 if let Some(where_clause) = &mut generics.where_clause { in visit_generics_mut()
|