Searched refs:field_expr (Results 1 – 5 of 5) sorted by relevance
/external/libchrome/mojo/public/tools/bindings/generators/cpp_templates/ |
D | validation_macros.tmpl | 5 {%- macro validate_object(field, field_index, field_expr, union_is_inlined) %} 11 {{field_expr}}, {{field_index}}, validation_context)) { 16 {{field_expr}}, {{field_index}}, validation_context)) { 24 if (!mojo::internal::ValidateContainer({{field_expr}}, validation_context, 29 if (!mojo::internal::ValidateStruct({{field_expr}}, validation_context)) 33 if (!mojo::internal::ValidateInlinedUnion({{field_expr}}, validation_context)) 36 if (!mojo::internal::ValidateNonInlinedUnion({{field_expr}}, 48 {%- macro validate_handle_or_interface(field, field_index, field_expr, object_name) %} 53 {{field_expr}}, {{field_index}}, validation_context)) { 57 if (!mojo::internal::ValidateHandleOrInterface({{field_expr}}, [all …]
|
D | union_definition.tmpl | 34 {%- set field_expr = "object->data.f_" ~ field.name %} 35 {{validation_macros.validate_field(field, loop.index, field_expr, union.name, false)|indent(4)}}
|
D | struct_definition.tmpl | 63 {%- set field_expr = "object->" ~ packed_field.field.name %} 64 {{validation_macros.validate_field(packed_field.field, loop.index, field_expr, struct.name, true)}}
|
/external/rust/crates/serde_derive/src/ |
D | ser.rs | 238 let mut field_expr = get_member( in serialize_newtype_struct() localVariable 247 field_expr = wrap_serialize_field_with(params, field.ty, path, &field_expr); in serialize_newtype_struct() 253 #func(__serializer, #type_name, #field_expr) in serialize_newtype_struct() 283 let field_expr = get_member(params, field, &Member::Unnamed(index)); in serialize_tuple_struct() localVariable 284 quote!(if #path(#field_expr) { 0 } else { 1 }) in serialize_tuple_struct() 343 let field_expr = get_member(params, field, &field.member); in serialize_struct_as_struct() localVariable 344 quote!(if #path(#field_expr) { 0 } else { 1 }) in serialize_struct_as_struct() 385 let field_expr = get_member(params, field, &field.member); in serialize_struct_as_map() localVariable 386 quote!(if #path(#field_expr) { 0 } else { 1 }) in serialize_struct_as_map() 532 let mut field_expr = quote!(__field0); in serialize_externally_tagged_variant() localVariable [all …]
|
/external/tensorflow/tensorflow/tools/proto_text/ |
D | gen_proto_text_functions_lib.cc | 111 const string& field_expr); 252 const string& field_expr) { in AppendFieldValueAppend() argument 262 "(\"", field.name(), "\", ", field_expr, ");"); in AppendFieldValueAppend() 266 field.name(), "\", ", field_expr, ");"); in AppendFieldValueAppend() 274 "(\"", field.name(), "\", ProtobufStringToString(", field_expr, in AppendFieldValueAppend() 280 Print("if (", field_expr, " != 0) {").Nest(); in AppendFieldValueAppend() 283 GetQualifiedEnumNameFn(*field.enum_type()), "(", field_expr, ");"); in AppendFieldValueAppend() 287 Print("o->AppendNumeric(\"", field.name(), "\", ", field_expr, ");"); in AppendFieldValueAppend() 299 Print(GetQualifiedAppendFn(*field.message_type()), "(o, ", field_expr, in AppendFieldValueAppend()
|