Home
last modified time | relevance | path

Searched refs:union_type (Results 1 – 24 of 24) sorted by relevance

/external/flatbuffers/src/
Didl_gen_json_schema.cpp91 auto &union_type = *ut; in GenType() local
92 if (union_type->union_type.base_type == BASE_TYPE_NONE) { continue; } in GenType()
93 if (union_type->union_type.base_type == BASE_TYPE_STRUCT) { in GenType()
95 "{ " + GenTypeRef(union_type->union_type.struct_def) + " }"); in GenType()
97 if (union_type != *type.enum_def->vals.vec.rbegin()) { in GenType()
Didl_gen_text.cpp105 Type *union_type, const IDLOptions &opts, in Print() argument
111 FLATBUFFERS_ASSERT(union_type); in Print()
112 return Print<const void *>(val, *union_type, indent, nullptr, opts, in Print()
176 int indent, Type *union_type, const IDLOptions &opts, in GenFieldOffset() argument
198 return Print(val, fd.value.type, indent, union_type, opts, _text); in GenFieldOffset()
208 Type *union_type = nullptr; in GenStruct() local
246 union_type, opts, _text)) { in GenStruct()
255 union_type = enum_val ? &enum_val->union_type : nullptr; in GenStruct()
Didl_gen_cpp.cpp682 if (ev.union_type.base_type == BASE_TYPE_STRUCT) { in GetUnionElement()
683 auto name = actual_type ? ev.union_type.struct_def->name : Name(ev); in GetUnionElement()
684 return wrap ? WrapInNameSpace(ev.union_type.struct_def->defined_namespace, in GetUnionElement()
687 } else if (ev.union_type.base_type == BASE_TYPE_STRING) { in GetUnionElement()
788 types.push_back(enum_def->is_union ? ev.union_type in GenMiniReflect()
1105 ev.union_type.struct_def, parser_.opts); in GenEnum()
1137 ev.union_type.struct_def, parser_.opts); in GenEnum()
1184 if (ev.union_type.base_type == BASE_TYPE_STRUCT) { in GenUnionPost()
1185 if (ev.union_type.struct_def->fixed) { in GenUnionPost()
1191 } else if (ev.union_type.base_type == BASE_TYPE_STRING) { in GenUnionPost()
[all …]
Didl_parser.cpp893 if (enum_val->union_type.base_type == BASE_TYPE_STRUCT) { in ParseAnyValue()
894 ECHECK(ParseTable(*enum_val->union_type.struct_def, &val.constant, in ParseAnyValue()
896 if (enum_val->union_type.struct_def->fixed) { in ParseAnyValue()
898 SerializeStruct(*enum_val->union_type.struct_def, val); in ParseAnyValue()
902 } else if (enum_val->union_type.base_type == BASE_TYPE_STRING) { in ParseAnyValue()
1645 ECHECK(ParseType(ev.union_type)); in ParseEnum()
1646 if (ev.union_type.base_type != BASE_TYPE_STRUCT && in ParseEnum()
1647 ev.union_type.base_type != BASE_TYPE_STRING) in ParseEnum()
1650 ev.union_type = Type(BASE_TYPE_STRUCT, LookupCreateStruct(full_name)); in ParseEnum()
1653 auto union_type_key = std::make_pair(ev.union_type.base_type, ev.union_type.struct_def); in ParseEnum()
[all …]
Didl_gen_fbs.cpp104 schema += " " + GenType(ev.union_type) + ",\n"; in GenerateFBS()
Didl_gen_rust.cpp1321 if (ev.union_type.base_type == BASE_TYPE_NONE) { continue; } in GenTable()
1324 ev.union_type.struct_def->defined_namespace, in GenTable()
1325 ev.union_type.struct_def->name); in GenTable()
Didl_gen_js_ts.cpp373 if (ev.union_type.struct_def) { in GenEnum()
375 GetNameSpace(*ev.union_type.struct_def), in GenEnum()
378 std::make_pair(ev.union_type.struct_def->file, std::move(desc))); in GenEnum()
Didl_gen_lobster.cpp157 NamespacedName(*ev.union_type.struct_def) + in GenStructAccessor()
/external/v8/src/torque/
Dtypes.h268 if (const UnionType* union_type = UnionType::DynamicCast(t)) { in Extend() local
269 for (const Type* member : union_type->types_) { in Extend()
287 const UnionType* union_type = UnionType::DynamicCast(t); in FromType() local
288 return union_type ? UnionType(*union_type) : UnionType(t); in FromType()
Ddeclarations.cc85 } else if (auto* union_type = UnionTypeExpression::cast(type_expression)) { in GetType() local
86 return TypeOracle::GetUnionType(GetType(union_type->a), in GetType()
87 GetType(union_type->b)); in GetType()
Dtypes.cc36 if (const UnionType* union_type = UnionType::DynamicCast(supertype)) { in IsSubtypeOf() local
37 return union_type->IsSupertypeOf(this); in IsSubtypeOf()
/external/flatbuffers/reflection/
Dreflection.fbs45 object:Object; // Will be deprecated in favor of union_type in the future.
46 union_type:Type;
/external/flatbuffers/include/flatbuffers/
Dminireflect.h194 auto union_type = *prev_val; // Always a uint8_t. in IterateValue() local
197 union_type = type_vec->Get(static_cast<uoffset_t>(vector_index)); in IterateValue()
200 LookupEnum(union_type, type_table->values, type_table->num_elems); in IterateValue()
Dreflection_generated.h256 const Type *union_type() const { in union_type() function
270 verifier.VerifyTable(union_type()) && in Verify()
290 void add_union_type(flatbuffers::Offset<Type> union_type) { in add_union_type()
291 fbb_.AddOffset(EnumVal::VT_UNION_TYPE, union_type); in add_union_type()
314 flatbuffers::Offset<Type> union_type = 0,
319 builder_.add_union_type(union_type);
330 flatbuffers::Offset<Type> union_type = 0,
339 union_type,
Dreflection.h389 auto union_type = GetFieldI<uint8_t>(table, *type_field); in GetUnionType() local
390 auto enumval = enumdef->values()->LookupByKey(union_type); in GetUnionType()
Didl.h341 Type union_type; member
/external/strace/
Dmpers.awk205 if (match($0, /typedef|union_type|structure_type|pointer_type\
DChangeLog18191 * mpers.awk (what_is) <case "structure_type", case "union_type">:
25993 * mpers.awk (what_is): Print names of union_type members as is.
/external/libchrome/mojo/public/tools/bindings/generators/
Dmojom_js_generator.py525 union_type = self._JavaScriptType(field.kind)
526 return "%s, %s" % (union_type, nullable)
/external/llvm/include/llvm/Support/
DDwarf.def62 HANDLE_DW_TAG(0x0017, union_type)
/external/flatbuffers/docs/source/
DTutorial.md2615 auto union_type = monster.equipped_type();
2617 if (union_type == Equipment_Weapon) {
2675 union_type = monster.EquippedType()
2677 if union_type == MyGame.Sample.Equipment.Equipment().Weapon:
2709 $union_type = $monster->getEquippedType();
2711 if ($union_type == \MyGame\Sample\Equipment::Weapon) {
2756 union_type = monster.equipped_type
2758 if union_type == MyGame_Sample_Equipment_Weapon:
/external/flatbuffers/tests/
Dpy_test.py122 union_type = MyGame.Example.Any.Any
123 asserter(monster.TestType() == union_type.Monster)
/external/elfutils/libdw/
Dknown-dwarf.h613 DWARF_ONE_KNOWN_DW_TAG (union_type, DW_TAG_union_type) \
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/BinaryFormat/
DDwarf.def120 HANDLE_DW_TAG(0x0017, union_type, 2, DWARF)