/third_party/rust/crates/syn/src/ |
D | derive.rs | 77 let (where_clause, fields, semi) = data_struct(input)?; in parse() 83 where_clause, in parse() 96 let (where_clause, brace, variants) = data_enum(input)?; in parse() 102 where_clause, in parse() 115 let (where_clause, fields) = data_union(input)?; in parse() 121 where_clause, in parse() 139 let mut where_clause = None; localVariable 141 where_clause = Some(input.parse()?); 145 if where_clause.is_none() && lookahead.peek(token::Paren) { 150 where_clause = Some(input.parse()?); [all …]
|
D | item.rs | 1001 generics.where_clause = input.parse()?; in parse_rest_of_item() 1005 if generics.lt_token.is_none() && generics.where_clause.is_none() => in parse_rest_of_item() 1130 generics.where_clause = input.parse()?; in parse() 1139 if generics.where_clause.is_none() => in parse() 1141 generics.where_clause = input.parse()?; in parse() 1475 generics.where_clause = input.parse()?; in parse() 1898 generics.where_clause = input.parse()?; in parse() 1965 generics.where_clause = input.parse()?; in parse() 2017 let (where_clause, fields, semi_token) = derive::parsing::data_struct(input)?; in parse() 2024 where_clause, in parse() [all …]
|
D | generics.rs | 24 pub where_clause: Option<WhereClause>, 94 where_clause: None, in default() 168 self.where_clause.get_or_insert_with(|| WhereClause { in make_where_clause() 335 self.where_clause.as_ref(), in split_for_impl() 596 where_clause: None, in parse()
|
/third_party/rust/crates/syn/tests/ |
D | test_generics.rs | 104 let (impl_generics, ty_generics, where_clause) = generics.split_for_impl(); in test_split_for_impl() 107 impl #impl_generics MyTrait for Test #ty_generics #where_clause {} in test_split_for_impl() 256 let where_clause = input.sig.generics.where_clause.as_ref().unwrap(); in test_fn_precedence_in_where_clause() localVariable 257 assert_eq!(where_clause.predicates.len(), 1); in test_fn_precedence_in_where_clause() 259 let predicate = match &where_clause.predicates[0] { in test_fn_precedence_in_where_clause()
|
D | test_precedence.rs | 336 || !const_item.generics.where_clause.predicates.is_empty() => {} in librustc_parenthesize() 345 || !const_item.generics.where_clause.predicates.is_empty() => in librustc_parenthesize() 357 || !const_item.generics.where_clause.predicates.is_empty() => in librustc_parenthesize()
|
/third_party/rust/crates/clap/clap_derive/src/derives/ |
D | into_app.rs | 26 let (impl_generics, ty_generics, where_clause) = generics.split_for_impl(); in gen_for_struct() 45 impl #impl_generics clap::CommandFactory for #item_name #ty_generics #where_clause { in gen_for_struct() 66 let (impl_generics, ty_generics, where_clause) = generics.split_for_impl(); in gen_for_enum() 85 impl #impl_generics clap::CommandFactory for #item_name #ty_generics #where_clause { in gen_for_enum()
|
D | parser.rs | 89 let (impl_generics, ty_generics, where_clause) = generics.split_for_impl(); in gen_for_struct() 95 impl #impl_generics clap::Parser for #item_name #ty_generics #where_clause {} in gen_for_struct() 108 let (impl_generics, ty_generics, where_clause) = generics.split_for_impl(); in gen_for_enum() 114 impl #impl_generics clap::Parser for #item_name #ty_generics #where_clause {} in gen_for_enum()
|
D | subcommand.rs | 58 let (impl_generics, ty_generics, where_clause) = generics.split_for_impl(); in gen_for_enum() 81 impl #impl_generics clap::FromArgMatches for #item_name #ty_generics #where_clause { in gen_for_enum() 107 impl #impl_generics clap::Subcommand for #item_name #ty_generics #where_clause { in gen_for_enum()
|
D | args.rs | 79 let (impl_generics, ty_generics, where_clause) = generics.split_for_impl(); in gen_for_struct() 110 impl #impl_generics clap::FromArgMatches for #item_name #ty_generics #where_clause { in gen_for_struct() 145 impl #impl_generics clap::Args for #item_name #ty_generics #where_clause { in gen_for_struct()
|
/third_party/rust/crates/serde/serde_derive/src/ |
D | de.rs | 26 let (de_impl_generics, _, ty_generics, where_clause) = split_with_de_lifetime(¶ms); in expand_derive_deserialize() 35 impl #de_impl_generics #ident #ty_generics #where_clause { in expand_derive_deserialize() 50 … impl #de_impl_generics #serde::Deserialize<#delife> for #ident #ty_generics #where_clause { in expand_derive_deserialize() 408 let (de_impl_generics, de_ty_generics, ty_generics, where_clause) = in deserialize_unit_struct() 417 struct __Visitor #de_impl_generics #where_clause { in deserialize_unit_struct() 422 … impl #de_impl_generics _serde::de::Visitor<#delife> for __Visitor #de_ty_generics #where_clause { in deserialize_unit_struct() 473 let (de_impl_generics, de_ty_generics, ty_generics, where_clause) = in deserialize_tuple() 549 struct __Visitor #de_impl_generics #where_clause { in deserialize_tuple() 554 … impl #de_impl_generics _serde::de::Visitor<#delife> for __Visitor #de_ty_generics #where_clause { in deserialize_tuple() 590 let (de_impl_generics, de_ty_generics, ty_generics, where_clause) = in deserialize_tuple_in_place() [all …]
|
D | ser.rs | 23 let (impl_generics, ty_generics, where_clause) = params.generics.split_for_impl(); in expand_derive_serialize() 31 impl #impl_generics #ident #ty_generics #where_clause { in expand_derive_serialize() 44 impl #impl_generics #serde::Serialize for #ident #ty_generics #where_clause { in expand_derive_serialize() 728 let (_, ty_generics, where_clause) = params.generics.split_for_impl(); in serialize_adjacently_tagged_variant() 739 struct __AdjacentlyTagged #wrapper_generics #where_clause { in serialize_adjacently_tagged_variant() 744 …wrapper_impl_generics _serde::Serialize for __AdjacentlyTagged #wrapper_ty_generics #where_clause { in serialize_adjacently_tagged_variant() 997 let (_, ty_generics, where_clause) = params.generics.split_for_impl(); in serialize_struct_variant_with_flatten() 1003 struct __EnumFlatten #wrapper_generics #where_clause { in serialize_struct_variant_with_flatten() 1008 …mpl #wrapper_impl_generics _serde::Serialize for __EnumFlatten #wrapper_ty_generics #where_clause { in serialize_struct_variant_with_flatten() 1216 let (_, ty_generics, where_clause) = params.generics.split_for_impl(); in wrap_serialize_with() [all …]
|
/third_party/rust/crates/syn/examples/heapsize/heapsize_derive/src/ |
D | lib.rs | 18 let (impl_generics, ty_generics, where_clause) = generics.split_for_impl(); in derive_heap_size() 25 impl #impl_generics heapsize::HeapSize for #name #ty_generics #where_clause { in derive_heap_size()
|
/third_party/rust/crates/serde/serde_derive/src/internals/ |
D | receiver.rs | 228 if let Some(where_clause) = &mut generics.where_clause { in visit_generics_mut() 229 for predicate in &mut where_clause.predicates { in visit_generics_mut()
|
/third_party/rust/crates/cxx/syntax/ |
D | parse.rs | 120 if let Some(where_clause) = &item.generics.where_clause { in parse_struct() 122 where_clause, in parse_struct() 222 } else if let Some(where_clause) = &item.generics.where_clause { in parse_enum() 223 cx.error(where_clause, "enum with where-clause is not supported"); in parse_enum() 546 if generics.where_clause.is_some() in parse_extern_fn() 1017 if let Some(where_clause) = imp.generics.where_clause { in parse_impl() 1019 where_clause, in parse_impl()
|
/third_party/rust/crates/quote/tests/ |
D | test.rs | 114 let where_clause = quote!( where T: Serialize ); in test_advanced() localVariable 125 struct SerializeWith #generics #where_clause { in test_advanced() 130 impl #generics ::serde::Serialize for SerializeWith #generics #where_clause { in test_advanced()
|
/third_party/rust/crates/quote/ |
D | README.md | 59 struct SerializeWith #generics #where_clause { 64 impl #generics serde::Serialize for SerializeWith #generics #where_clause {
|
/third_party/rust/crates/syn/src/gen/ |
D | clone.rs | 954 where_clause: self.where_clause.clone(), in clone()
|
D | eq.rs | 941 && self.gt_token == other.gt_token && self.where_clause == other.where_clause in eq()
|
D | fold.rs | 1998 where_clause: (node.where_clause).map(|it| f.fold_where_clause(it)), in fold_generics()
|
D | hash.rs | 1256 self.where_clause.hash(state); in hash()
|
D | debug.rs | 1398 formatter.field("where_clause", &self.where_clause); in fmt()
|
D | visit_mut.rs | 2206 if let Some(it) = &mut node.where_clause { in visit_generics_mut()
|
D | visit.rs | 2205 if let Some(it) = &node.where_clause { in visit_generics()
|
/third_party/rust/crates/syn/tests/common/ |
D | eq.rs | 483 spanless_eq_struct!(Generics; params where_clause span);
|
/third_party/rust/crates/syn/tests/debug/ |
D | gen.rs | 2065 if let Some(val) = &self.value.where_clause { in fmt()
|