/external/rust/crates/serde_derive/src/ |
D | bound.rs | 14 pub fn without_defaults(generics: &syn::Generics) -> syn::Generics { in without_defaults() argument 15 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() argument 35 ) -> syn::Generics { in with_where_predicates() argument 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() argument [all …]
|
D | ser.rs | 27 let (impl_generics, ty_generics, where_clause) = params.generics.split_for_impl(); in expand_derive_serialize() 89 /// Generics including any explicit and inferred bounds for the impl. 90 generics: syn::Generics, field 115 let generics = build_generics(cont); in new() localVariable 120 generics, in new() 133 // All the generics in the input, plus a bound `T: Serialize` for each generic 135 fn build_generics(cont: &Container) -> syn::Generics { in build_generics() argument 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() [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() 182 abstract static class Generics<T> { class in GwtSerializerTest 185 public static <T> Generics<T> create(T simple) { in create() [all …]
|
/external/rust/crates/syn/tests/ |
D | test_item.rs | 39 generics: Generics, in test_macro_variable_attr() 58 generics: Generics, in test_negative_impl() 71 generics: Generics, in test_negative_impl() 83 generics: Generics, in test_negative_impl() 116 generics: Generics, in test_negative_impl() 135 generics: Generics, in test_macro_variable_impl() 173 generics: Generics { in test_supertraits() 185 generics: Generics { in test_supertraits() 198 generics: Generics { in test_supertraits() 224 generics: Generics { in test_supertraits() [all …]
|
D | test_derive_input.rs | 17 generics: Generics, in test_unit() 54 generics: Generics, in test_struct() 152 generics: Generics { in test_union() 239 generics: Generics { in test_enum() 386 generics: Generics, in test_attr_with_path() 422 generics: Generics, in test_attr_with_non_mod_style_path() 462 generics: Generics, in test_attr_with_mod_style_path_with_self() 507 generics: Generics, in test_pub_restricted() 556 generics: Generics, in test_vis_crate() 584 generics: Generics, in test_pub_restricted_crate() [all …]
|
D | test_generics.rs | 17 generics: Generics { in test_split_for_impl() 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() 189 generics: Generics { in test_fn_precedence_in_where_clause() 257 let where_clause = input.sig.generics.where_clause.as_ref().unwrap(); in test_fn_precedence_in_where_clause()
|
D | test_shebang.rs | 16 generics: Generics, in test_basic() 51 generics: Generics, in test_comment()
|
/external/rust/crates/syn/src/ |
D | derive.rs | 19 /// Generics required to complete the definition. 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() [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 …]
|
D | parse_quote.rs | 34 /// parameter `T` in the input generics. 37 /// use syn::{parse_quote, Generics, GenericParam}; 40 /// fn add_trait_bounds(mut generics: Generics) -> Generics { 41 /// for param in &mut generics.params { 46 /// generics
|
/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 …]
|
/external/rust/crates/async-trait/src/ |
D | expand.rs | 10 parse_quote, Attribute, Block, FnArg, GenericParam, Generics, Ident, ImplItem, Lifetime, Pat, 33 generics: &'a Generics, 37 impl_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() [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() argument 60 for param in generics.params.iter_mut() { in add_trait_bounds() 67 generics in add_trait_bounds()
|
/external/rust/crates/thiserror-impl/src/ |
D | ast.rs | 4 Data, DataEnum, DataStruct, DeriveInput, Error, Fields, Generics, Ident, Index, Member, Result, 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-internal/src/pin_project/ |
D | derive.rs | 5 Fields, FieldsNamed, FieldsUnnamed, Generics, Ident, Index, Lifetime, LifetimeDef, Meta, 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() argument 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() [all …]
|
/external/rust/cxx/syntax/ |
D | parse.rs | 18 GenericArgument, GenericParam, Generics, Ident, ItemEnum, ItemImpl, ItemStruct, Lit, LitStr, 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() [all …]
|
D | mod.rs | 40 use syn::{Expr, Generics, Lifetime, LitInt, Token, Type as RustType}; 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
|
/external/rust/crates/syn-mid/src/ |
D | func.rs | 3 punctuated::Punctuated, token, Abi, Attribute, Generics, Ident, Lifetime, ReturnType, Token, 39 pub generics: Generics, 74 parse2, Abi, Attribute, Generics, Ident, ReturnType, Token, Type, Variadic, Visibility, 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/rust/crates/pin-project-internal/src/ |
D | utils.rs | 11 Attribute, ExprPath, ExprStruct, Generics, Ident, Item, Lifetime, LifetimeDef, Macro, PatPath, 35 pub(crate) fn determine_lifetime_name(lifetime_name: &mut String, generics: &mut Generics) { in determine_lifetime_name() argument 47 lifetimes.visit_generics_mut(generics); in determine_lifetime_name() 58 generics: &mut Generics, in insert_lifetime_and_bound() argument 60 orig_generics: &Generics, in insert_lifetime_and_bound() argument 63 insert_lifetime(generics, lifetime.clone()); in insert_lifetime_and_bound() 77 /// Inserts a `lifetime` at position `0` of `generics.params`. 78 pub(crate) fn insert_lifetime(generics: &mut Generics, lifetime: Lifetime) { in insert_lifetime() argument 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() [all …]
|
/external/snakeyaml/src/test/resources/recursive/generics/ |
D | with-children-as-set.yaml | 2 ? !!org.yaml.snakeyaml.recursive.generics.HumanGen 3 bankAccountOwner: &id001 !!org.yaml.snakeyaml.recursive.generics.HumanGen 11 partner: &id003 !!org.yaml.snakeyaml.recursive.generics.HumanGen 28 ? !!org.yaml.snakeyaml.recursive.generics.HumanGen
|
D | with-children-as-map.yaml | 2 ? !!org.yaml.snakeyaml.recursive.generics.HumanGen2 3 bankAccountOwner: &id001 !!org.yaml.snakeyaml.recursive.generics.HumanGen2 11 partner: &id003 !!org.yaml.snakeyaml.recursive.generics.HumanGen2 28 ? !!org.yaml.snakeyaml.recursive.generics.HumanGen2
|
/external/jarjar/src/test/ |
D | Generics.class | Generics.java
package Generics extends java.lang.Object {
public void < ... |
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/ |
D | GenericsResolutionTest.java | 45 * Tests related to resolved Generics types. 51 CompilationUnit cu = parseSample("Generics"); in resolveFieldWithGenericTypeToString() 52 ClassOrInterfaceDeclaration clazz = Navigator.demandClass(cu, "Generics"); in resolveFieldWithGenericTypeToString() 68 CompilationUnit cu = parseSample("Generics"); in resolveFieldWithGenericTypeToDeclaredClass() 69 ClassOrInterfaceDeclaration clazz = Navigator.demandClass(cu, "Generics"); in resolveFieldWithGenericTypeToDeclaredClass() 80 …assertEquals("me.tomassetti.symbolsolver.javaparser.Generics", type.asReferenceType().typeParamete… in resolveFieldWithGenericTypeToDeclaredClass() 85 CompilationUnit cu = parseSample("Generics"); in resolveFieldWithGenericTypeToInteger() 86 ClassOrInterfaceDeclaration clazz = Navigator.demandClass(cu, "Generics"); in resolveFieldWithGenericTypeToInteger() 102 CompilationUnit cu = parseSample("Generics"); in resolveFieldOfVariableType() 119 CompilationUnit cu = parseSample("Generics"); in resolveFieldOfGenericReferringToVariableType() [all …]
|
/external/rust/crates/serde_derive/src/internals/ |
D | ast.rs | 12 /// The struct or enum name (without generics). 18 /// Any generics on the struct or enum. 19 pub generics: &'a syn::Generics, field 115 generics: &item.generics, in from_ast()
|