Home
last modified time | relevance | path

Searched refs:variant_name (Results 1 – 13 of 13) sorted by relevance

/third_party/rust/crates/serde/serde_derive/src/
Dser.rs504 let variant_name = variant.attrs.name().serialize_name(); in serialize_externally_tagged_variant() localVariable
513 #variant_name, in serialize_externally_tagged_variant()
526 #variant_name, in serialize_externally_tagged_variant()
544 #variant_name, in serialize_externally_tagged_variant()
553 variant_name, in serialize_externally_tagged_variant()
561 variant_name, in serialize_externally_tagged_variant()
577 let variant_name = variant.attrs.name().serialize_name(); in serialize_internally_tagged_variant() localVariable
590 #variant_name, in serialize_internally_tagged_variant()
602 &mut __struct, #tag, #variant_name)); in serialize_internally_tagged_variant()
621 #variant_name, in serialize_internally_tagged_variant()
[all …]
Dde.rs1232 let variant_name = field_i(i); in deserialize_externally_tagged_enum() localVariable
1239 (__Field::#variant_name, __variant) => #block in deserialize_externally_tagged_enum()
1316 let variant_name = field_i(i); in deserialize_internally_tagged_enum() localVariable
1328 __Field::#variant_name => #block in deserialize_internally_tagged_enum()
1754 let variant_name = variant.ident.to_string(); in deserialize_internally_tagged_variant() localVariable
1760 …deserializer, _serde::__private::de::InternallyTaggedUnitVisitor::new(#type_name, #variant_name))); in deserialize_internally_tagged_variant()
1801 let variant_name = variant.ident.to_string(); in deserialize_untagged_variant() localVariable
1809 _serde::__private::de::UntaggedUnitVisitor::new(#type_name, #variant_name) in deserialize_untagged_variant()
/third_party/rust/crates/syn/codegen/src/
Ddebug.rs15 let arms = variants.iter().map(|(variant_name, fields)| { in expand_impl_body()
16 let variant = Ident::new(variant_name, Span::call_site()); in expand_impl_body()
19 #ident::#variant => formatter.write_str(#variant_name), in expand_impl_body()
36 let mut formatter = formatter.debug_tuple(#variant_name); in expand_impl_body()
Dclone.rs15 let arms = variants.iter().map(|(variant_name, fields)| { in expand_impl_body()
16 let variant = Ident::new(variant_name, Span::call_site()); in expand_impl_body()
Dhash.rs29 .map(|(i, (variant_name, fields))| { in expand_impl_body()
31 let variant = Ident::new(variant_name, Span::call_site()); in expand_impl_body()
Deq.rs26 let arms = variants.iter().map(|(variant_name, fields)| { in expand_impl_body()
27 let variant = Ident::new(variant_name, Span::call_site()); in expand_impl_body()
/third_party/rust/crates/clap/clap_derive/src/derives/
Dsubcommand.rs488 let variant_name = &variant.ident; in gen_from_arg_matches() localVariable
511 return ::std::result::Result::Ok(Self :: #variant_name #constructor_block) in gen_from_arg_matches()
516 let variant_name = &variant.ident; in gen_from_arg_matches() localVariable
527 return ::std::result::Result::Ok(Self :: #variant_name (__clap_res)); in gen_from_arg_matches()
600 let variant_name = &variant.ident; in gen_update_from_arg_matches() localVariable
634 Self :: #variant_name #pattern if #sub_name == __clap_name => { in gen_update_from_arg_matches()
643 let variant_name = &variant.ident; in gen_update_from_arg_matches() localVariable
649 if let Self :: #variant_name (child) = s { in gen_update_from_arg_matches()
/third_party/rust/crates/serde/serde/src/private/
Dser.rs22 variant_name: &'static str, in serialize_tagged_newtype()
33 variant_name: variant_name, in serialize_tagged_newtype()
42 variant_name: &'static str, field
192 try!(map.serialize_entry(self.tag, self.variant_name)); in serialize_unit_struct()
203 try!(map.serialize_entry(self.tag, self.variant_name)); in serialize_unit_variant()
230 try!(map.serialize_entry(self.tag, self.variant_name)); in serialize_newtype_variant()
273 try!(map.serialize_entry(self.tag, self.variant_name)); in serialize_tuple_variant()
284 try!(map.serialize_entry(self.tag, self.variant_name)); in serialize_map()
294 try!(state.serialize_field(self.tag, self.variant_name)); in serialize_struct()
320 try!(map.serialize_entry(self.tag, self.variant_name)); in serialize_struct_variant()
Dde.rs2466 variant_name: &'a str, field
2471 pub fn new(type_name: &'a str, variant_name: &'a str) -> Self { in new()
2474 variant_name: variant_name, in new()
2486 self.type_name, self.variant_name in expecting()
2511 variant_name: &'a str, field
2516 pub fn new(type_name: &'a str, variant_name: &'a str) -> Self { in new()
2519 variant_name: variant_name, in new()
2531 self.type_name, self.variant_name in expecting()
/third_party/icu/tools/unicodetools/com/ibm/rbm/
DRBxliffImporter.java86 String variant_name = null; in importDoc() local
139 variant_name = value; in importDoc()
211 main_bundle.variant = variant_name; in importDoc()
/third_party/rust/crates/bindgen/bindgen/codegen/
Dmod.rs2809 let variant_name = ctx.rust_mangle(variant.name()); in with_variant() localVariable
2835 let name = ctx.rust_ident(variant_name); in with_variant()
2858 let variant_ident = ctx.rust_ident(variant_name); in with_variant()
2869 Cow::Owned(format!("{}_{}", prefix, variant_name)) in with_variant()
2871 None => variant_name, in with_variant()
2885 Cow::Owned(format!("{}_{}", prefix, variant_name)) in with_variant()
2887 None => variant_name, in with_variant()
2902 let name = ctx.rust_ident(variant_name); in with_variant()
3169 variant_name: &Ident, in codegen()
3176 format!("{}_{}", enum_canonical_name, variant_name) in codegen()
[all …]
/third_party/node/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/
Dxcodeproj_file.py1240 variant_name = None
1246 variant_name = parent_root
1251 assert not is_dir or variant_name is None
1255 ((is_dir or variant_name != None) and len(path_split) == 2) or \
1259 if variant_name is None:
1280 variant_ref = PBXFileReference({'name': variant_name,
/third_party/node/tools/gyp/pylib/gyp/
Dxcodeproj_file.py1315 variant_name = None
1321 variant_name = parent_root
1326 assert not is_dir or variant_name is None
1331 or ((is_dir or variant_name is not None) and len(path_split) == 2)
1336 if variant_name is None:
1359 {"name": variant_name, "path": variant_path}