Skip to content

Commit

Permalink
Add more containers to complex-struct fixture
Browse files Browse the repository at this point in the history
Summary: Add more container fields to complex-struct fixture to sample the cases.

Differential Revision: D67717464

fbshipit-source-id: d3224abce2a3ba61fb1af3ad52a415f5f765efc2
  • Loading branch information
yoney authored and facebook-github-bot committed Dec 30, 2024
1 parent b1dc12f commit 690f1d8
Show file tree
Hide file tree
Showing 20 changed files with 8,212 additions and 752 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ ::cpp2::MyUnion const& constEnumUnion() {
}


::std::string_view _fbthrift_schema_26752209a8354ec6() {
::std::string_view _fbthrift_schema_d1e2b182941d1fa6() {
return "";
}
::folly::Range<const ::std::string_view*> _fbthrift_schema_26752209a8354ec6_includes() {
::folly::Range<const ::std::string_view*> _fbthrift_schema_d1e2b182941d1fa6_includes() {
return {};
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ namespace module_constants {
/** Glean {"constant": "constEnumUnion"} */
::cpp2::MyUnion const& constEnumUnion();

FOLLY_EXPORT ::std::string_view _fbthrift_schema_26752209a8354ec6();
FOLLY_EXPORT ::folly::Range<const ::std::string_view*> _fbthrift_schema_26752209a8354ec6_includes();
FOLLY_EXPORT ::std::string_view _fbthrift_schema_d1e2b182941d1fa6();
FOLLY_EXPORT ::folly::Range<const ::std::string_view*> _fbthrift_schema_d1e2b182941d1fa6_includes();

} // namespace module_constants
} // namespace cpp2
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,7 @@ THRIFT_DATA_MEMBER const std::array<int, 6> TStructDataStorage<::cpp2::complexEx
}};

THRIFT_DATA_MEMBER const std::string_view TStructDataStorage<::cpp2::Containers>::name = "Containers";
THRIFT_DATA_MEMBER const std::array<std::string_view, 18> TStructDataStorage<::cpp2::Containers>::fields_names = { {
THRIFT_DATA_MEMBER const std::array<std::string_view, 37> TStructDataStorage<::cpp2::Containers>::fields_names = { {
"struct_list"sv,
"union_list"sv,
"enum_list"sv,
Expand All @@ -778,8 +778,27 @@ THRIFT_DATA_MEMBER const std::array<std::string_view, 18> TStructDataStorage<::c
"set_map_2"sv,
"map_map"sv,
"map_map_2"sv,
}};
THRIFT_DATA_MEMBER const std::array<int16_t, 18> TStructDataStorage<::cpp2::Containers>::fields_ids = { {
"list_list_i32"sv,
"list_list_struct"sv,
"list_set_i32"sv,
"list_set_struct"sv,
"list_map_i32_i32"sv,
"list_map_i32_struct"sv,
"list_map_struct_i32"sv,
"set_list_i32"sv,
"set_list_struct"sv,
"set_set_i32"sv,
"set_set_struct"sv,
"set_map_i32_i32"sv,
"set_map_i32_struct"sv,
"set_map_struct_i32"sv,
"map_i32_map_i32_i32"sv,
"map_i32_map_struct_i32"sv,
"map_i32_map_i32_struct"sv,
"map_i32_map_list_i32_i32"sv,
"map_i32_map_list_struct_i32"sv,
}};
THRIFT_DATA_MEMBER const std::array<int16_t, 37> TStructDataStorage<::cpp2::Containers>::fields_ids = { {
1,
2,
3,
Expand All @@ -798,8 +817,27 @@ THRIFT_DATA_MEMBER const std::array<int16_t, 18> TStructDataStorage<::cpp2::Cont
16,
17,
18,
}};
THRIFT_DATA_MEMBER const std::array<protocol::TType, 18> TStructDataStorage<::cpp2::Containers>::fields_types = { {
19,
20,
21,
22,
23,
24,
25,
26,
27,
28,
29,
30,
31,
32,
33,
34,
35,
36,
37,
}};
THRIFT_DATA_MEMBER const std::array<protocol::TType, 37> TStructDataStorage<::cpp2::Containers>::fields_types = { {
TType::T_LIST,
TType::T_LIST,
TType::T_LIST,
Expand All @@ -818,8 +856,27 @@ THRIFT_DATA_MEMBER const std::array<protocol::TType, 18> TStructDataStorage<::cp
TType::T_MAP,
TType::T_MAP,
TType::T_MAP,
TType::T_LIST,
TType::T_LIST,
TType::T_LIST,
TType::T_LIST,
TType::T_LIST,
TType::T_LIST,
TType::T_LIST,
TType::T_SET,
TType::T_SET,
TType::T_SET,
TType::T_SET,
TType::T_SET,
TType::T_SET,
TType::T_SET,
TType::T_MAP,
TType::T_MAP,
TType::T_MAP,
TType::T_MAP,
TType::T_MAP,
}};
THRIFT_DATA_MEMBER const std::array<std::string_view, 18> TStructDataStorage<::cpp2::Containers>::storage_names = { {
THRIFT_DATA_MEMBER const std::array<std::string_view, 37> TStructDataStorage<::cpp2::Containers>::storage_names = { {
"__fbthrift_field_struct_list"sv,
"__fbthrift_field_union_list"sv,
"__fbthrift_field_enum_list"sv,
Expand All @@ -838,8 +895,27 @@ THRIFT_DATA_MEMBER const std::array<std::string_view, 18> TStructDataStorage<::c
"__fbthrift_field_set_map_2"sv,
"__fbthrift_field_map_map"sv,
"__fbthrift_field_map_map_2"sv,
}};
THRIFT_DATA_MEMBER const std::array<int, 18> TStructDataStorage<::cpp2::Containers>::isset_indexes = { {
"__fbthrift_field_list_list_i32"sv,
"__fbthrift_field_list_list_struct"sv,
"__fbthrift_field_list_set_i32"sv,
"__fbthrift_field_list_set_struct"sv,
"__fbthrift_field_list_map_i32_i32"sv,
"__fbthrift_field_list_map_i32_struct"sv,
"__fbthrift_field_list_map_struct_i32"sv,
"__fbthrift_field_set_list_i32"sv,
"__fbthrift_field_set_list_struct"sv,
"__fbthrift_field_set_set_i32"sv,
"__fbthrift_field_set_set_struct"sv,
"__fbthrift_field_set_map_i32_i32"sv,
"__fbthrift_field_set_map_i32_struct"sv,
"__fbthrift_field_set_map_struct_i32"sv,
"__fbthrift_field_map_i32_map_i32_i32"sv,
"__fbthrift_field_map_i32_map_struct_i32"sv,
"__fbthrift_field_map_i32_map_i32_struct"sv,
"__fbthrift_field_map_i32_map_list_i32_i32"sv,
"__fbthrift_field_map_i32_map_list_struct_i32"sv,
}};
THRIFT_DATA_MEMBER const std::array<int, 37> TStructDataStorage<::cpp2::Containers>::isset_indexes = { {
0,
1,
2,
Expand All @@ -858,6 +934,25 @@ THRIFT_DATA_MEMBER const std::array<int, 18> TStructDataStorage<::cpp2::Containe
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26,
27,
28,
29,
30,
31,
32,
33,
34,
35,
36,
}};

} // namespace thrift
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ template <> struct TStructDataStorage<::cpp2::complexException> {
};

template <> struct TStructDataStorage<::cpp2::Containers> {
static constexpr const std::size_t fields_size = 18;
static constexpr const std::size_t fields_size = 37;
static const std::string_view name;
static const std::array<std::string_view, fields_size> fields_names;
static const std::array<int16_t, fields_size> fields_ids;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,25 @@ struct ForEachField<::cpp2::Containers> {
f(15, static_cast<T&&>(t).set_map_2_ref()...);
f(16, static_cast<T&&>(t).map_map_ref()...);
f(17, static_cast<T&&>(t).map_map_2_ref()...);
f(18, static_cast<T&&>(t).list_list_i32_ref()...);
f(19, static_cast<T&&>(t).list_list_struct_ref()...);
f(20, static_cast<T&&>(t).list_set_i32_ref()...);
f(21, static_cast<T&&>(t).list_set_struct_ref()...);
f(22, static_cast<T&&>(t).list_map_i32_i32_ref()...);
f(23, static_cast<T&&>(t).list_map_i32_struct_ref()...);
f(24, static_cast<T&&>(t).list_map_struct_i32_ref()...);
f(25, static_cast<T&&>(t).set_list_i32_ref()...);
f(26, static_cast<T&&>(t).set_list_struct_ref()...);
f(27, static_cast<T&&>(t).set_set_i32_ref()...);
f(28, static_cast<T&&>(t).set_set_struct_ref()...);
f(29, static_cast<T&&>(t).set_map_i32_i32_ref()...);
f(30, static_cast<T&&>(t).set_map_i32_struct_ref()...);
f(31, static_cast<T&&>(t).set_map_struct_i32_ref()...);
f(32, static_cast<T&&>(t).map_i32_map_i32_i32_ref()...);
f(33, static_cast<T&&>(t).map_i32_map_struct_i32_ref()...);
f(34, static_cast<T&&>(t).map_i32_map_i32_struct_ref()...);
f(35, static_cast<T&&>(t).map_i32_map_list_i32_i32_ref()...);
f(36, static_cast<T&&>(t).map_i32_map_list_struct_i32_ref()...);
}
};
} // namespace detail
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -369,8 +369,8 @@ StructMetadata<::cpp2::Containers>::gen(ThriftMetadata& metadata) {
module_Containers.name() = "module.Containers";
module_Containers.is_union() = false;
static const auto* const
module_Containers_fields = new std::array<EncodedThriftField, 18>{ {
{ 1, "struct_list", false, std::make_unique<List>(std::make_unique<Struct<::cpp2::MyStruct>>("module.MyStruct")), std::vector<ThriftConstStruct>{ }}, { 2, "union_list", false, std::make_unique<List>(std::make_unique<Union<::cpp2::MyUnion>>("module.MyUnion")), std::vector<ThriftConstStruct>{ }}, { 3, "enum_list", false, std::make_unique<List>(std::make_unique<Enum<::cpp2::MyEnum>>("module.MyEnum")), std::vector<ThriftConstStruct>{ }}, { 4, "struct_set", false, std::make_unique<Set>(std::make_unique<Struct<::cpp2::MyStruct>>("module.MyStruct")), std::vector<ThriftConstStruct>{ }}, { 5, "union_set", false, std::make_unique<Set>(std::make_unique<Union<::cpp2::MyUnion>>("module.MyUnion")), std::vector<ThriftConstStruct>{ }}, { 6, "enum_set", false, std::make_unique<Set>(std::make_unique<Enum<::cpp2::MyEnum>>("module.MyEnum")), std::vector<ThriftConstStruct>{ }}, { 7, "struct_map", false, std::make_unique<Map>(std::make_unique<Struct<::cpp2::MyStruct>>("module.MyStruct"), std::make_unique<Primitive>(ThriftPrimitiveType::THRIFT_I64_TYPE)), std::vector<ThriftConstStruct>{ }}, { 8, "union_map", false, std::make_unique<Map>(std::make_unique<Union<::cpp2::MyUnion>>("module.MyUnion"), std::make_unique<Primitive>(ThriftPrimitiveType::THRIFT_I64_TYPE)), std::vector<ThriftConstStruct>{ }}, { 9, "enum_map", false, std::make_unique<Map>(std::make_unique<Enum<::cpp2::MyEnum>>("module.MyEnum"), std::make_unique<Primitive>(ThriftPrimitiveType::THRIFT_I64_TYPE)), std::vector<ThriftConstStruct>{ }}, { 10, "struct_map_2", false, std::make_unique<Map>(std::make_unique<Primitive>(ThriftPrimitiveType::THRIFT_I32_TYPE), std::make_unique<Struct<::cpp2::MyStruct>>("module.MyStruct")), std::vector<ThriftConstStruct>{ }}, { 11, "union_map_2", false, std::make_unique<Map>(std::make_unique<Primitive>(ThriftPrimitiveType::THRIFT_I32_TYPE), std::make_unique<Union<::cpp2::MyUnion>>("module.MyUnion")), std::vector<ThriftConstStruct>{ }}, { 12, "enum_map_2", false, std::make_unique<Map>(std::make_unique<Primitive>(ThriftPrimitiveType::THRIFT_I32_TYPE), std::make_unique<Enum<::cpp2::MyEnum>>("module.MyEnum")), std::vector<ThriftConstStruct>{ }}, { 13, "list_map", false, std::make_unique<Map>(std::make_unique<List>(std::make_unique<Primitive>(ThriftPrimitiveType::THRIFT_I32_TYPE)), std::make_unique<Primitive>(ThriftPrimitiveType::THRIFT_I32_TYPE)), std::vector<ThriftConstStruct>{ }}, { 14, "list_map_2", false, std::make_unique<Map>(std::make_unique<Primitive>(ThriftPrimitiveType::THRIFT_I32_TYPE), std::make_unique<List>(std::make_unique<Primitive>(ThriftPrimitiveType::THRIFT_I32_TYPE))), std::vector<ThriftConstStruct>{ }}, { 15, "set_map", false, std::make_unique<Map>(std::make_unique<Set>(std::make_unique<Primitive>(ThriftPrimitiveType::THRIFT_I32_TYPE)), std::make_unique<Primitive>(ThriftPrimitiveType::THRIFT_I32_TYPE)), std::vector<ThriftConstStruct>{ }}, { 16, "set_map_2", false, std::make_unique<Map>(std::make_unique<Primitive>(ThriftPrimitiveType::THRIFT_I32_TYPE), std::make_unique<Set>(std::make_unique<Primitive>(ThriftPrimitiveType::THRIFT_I32_TYPE))), std::vector<ThriftConstStruct>{ }}, { 17, "map_map", false, std::make_unique<Map>(std::make_unique<Map>(std::make_unique<Primitive>(ThriftPrimitiveType::THRIFT_I32_TYPE), std::make_unique<Primitive>(ThriftPrimitiveType::THRIFT_I32_TYPE)), std::make_unique<Primitive>(ThriftPrimitiveType::THRIFT_I32_TYPE)), std::vector<ThriftConstStruct>{ }}, { 18, "map_map_2", false, std::make_unique<Map>(std::make_unique<Primitive>(ThriftPrimitiveType::THRIFT_I32_TYPE), std::make_unique<Map>(std::make_unique<Primitive>(ThriftPrimitiveType::THRIFT_I32_TYPE), std::make_unique<Primitive>(ThriftPrimitiveType::THRIFT_I32_TYPE))), std::vector<ThriftConstStruct>{ }}, }};
module_Containers_fields = new std::array<EncodedThriftField, 37>{ {
{ 1, "struct_list", false, std::make_unique<List>(std::make_unique<Struct<::cpp2::MyStruct>>("module.MyStruct")), std::vector<ThriftConstStruct>{ }}, { 2, "union_list", false, std::make_unique<List>(std::make_unique<Union<::cpp2::MyUnion>>("module.MyUnion")), std::vector<ThriftConstStruct>{ }}, { 3, "enum_list", false, std::make_unique<List>(std::make_unique<Enum<::cpp2::MyEnum>>("module.MyEnum")), std::vector<ThriftConstStruct>{ }}, { 4, "struct_set", false, std::make_unique<Set>(std::make_unique<Struct<::cpp2::MyStruct>>("module.MyStruct")), std::vector<ThriftConstStruct>{ }}, { 5, "union_set", false, std::make_unique<Set>(std::make_unique<Union<::cpp2::MyUnion>>("module.MyUnion")), std::vector<ThriftConstStruct>{ }}, { 6, "enum_set", false, std::make_unique<Set>(std::make_unique<Enum<::cpp2::MyEnum>>("module.MyEnum")), std::vector<ThriftConstStruct>{ }}, { 7, "struct_map", false, std::make_unique<Map>(std::make_unique<Struct<::cpp2::MyStruct>>("module.MyStruct"), std::make_unique<Primitive>(ThriftPrimitiveType::THRIFT_I64_TYPE)), std::vector<ThriftConstStruct>{ }}, { 8, "union_map", false, std::make_unique<Map>(std::make_unique<Union<::cpp2::MyUnion>>("module.MyUnion"), std::make_unique<Primitive>(ThriftPrimitiveType::THRIFT_I64_TYPE)), std::vector<ThriftConstStruct>{ }}, { 9, "enum_map", false, std::make_unique<Map>(std::make_unique<Enum<::cpp2::MyEnum>>("module.MyEnum"), std::make_unique<Primitive>(ThriftPrimitiveType::THRIFT_I64_TYPE)), std::vector<ThriftConstStruct>{ }}, { 10, "struct_map_2", false, std::make_unique<Map>(std::make_unique<Primitive>(ThriftPrimitiveType::THRIFT_I32_TYPE), std::make_unique<Struct<::cpp2::MyStruct>>("module.MyStruct")), std::vector<ThriftConstStruct>{ }}, { 11, "union_map_2", false, std::make_unique<Map>(std::make_unique<Primitive>(ThriftPrimitiveType::THRIFT_I32_TYPE), std::make_unique<Union<::cpp2::MyUnion>>("module.MyUnion")), std::vector<ThriftConstStruct>{ }}, { 12, "enum_map_2", false, std::make_unique<Map>(std::make_unique<Primitive>(ThriftPrimitiveType::THRIFT_I32_TYPE), std::make_unique<Enum<::cpp2::MyEnum>>("module.MyEnum")), std::vector<ThriftConstStruct>{ }}, { 13, "list_map", false, std::make_unique<Map>(std::make_unique<List>(std::make_unique<Primitive>(ThriftPrimitiveType::THRIFT_I32_TYPE)), std::make_unique<Primitive>(ThriftPrimitiveType::THRIFT_I32_TYPE)), std::vector<ThriftConstStruct>{ }}, { 14, "list_map_2", false, std::make_unique<Map>(std::make_unique<Primitive>(ThriftPrimitiveType::THRIFT_I32_TYPE), std::make_unique<List>(std::make_unique<Primitive>(ThriftPrimitiveType::THRIFT_I32_TYPE))), std::vector<ThriftConstStruct>{ }}, { 15, "set_map", false, std::make_unique<Map>(std::make_unique<Set>(std::make_unique<Primitive>(ThriftPrimitiveType::THRIFT_I32_TYPE)), std::make_unique<Primitive>(ThriftPrimitiveType::THRIFT_I32_TYPE)), std::vector<ThriftConstStruct>{ }}, { 16, "set_map_2", false, std::make_unique<Map>(std::make_unique<Primitive>(ThriftPrimitiveType::THRIFT_I32_TYPE), std::make_unique<Set>(std::make_unique<Primitive>(ThriftPrimitiveType::THRIFT_I32_TYPE))), std::vector<ThriftConstStruct>{ }}, { 17, "map_map", false, std::make_unique<Map>(std::make_unique<Map>(std::make_unique<Primitive>(ThriftPrimitiveType::THRIFT_I32_TYPE), std::make_unique<Primitive>(ThriftPrimitiveType::THRIFT_I32_TYPE)), std::make_unique<Primitive>(ThriftPrimitiveType::THRIFT_I32_TYPE)), std::vector<ThriftConstStruct>{ }}, { 18, "map_map_2", false, std::make_unique<Map>(std::make_unique<Primitive>(ThriftPrimitiveType::THRIFT_I32_TYPE), std::make_unique<Map>(std::make_unique<Primitive>(ThriftPrimitiveType::THRIFT_I32_TYPE), std::make_unique<Primitive>(ThriftPrimitiveType::THRIFT_I32_TYPE))), std::vector<ThriftConstStruct>{ }}, { 19, "list_list_i32", false, std::make_unique<List>(std::make_unique<List>(std::make_unique<Primitive>(ThriftPrimitiveType::THRIFT_I32_TYPE))), std::vector<ThriftConstStruct>{ }}, { 20, "list_list_struct", false, std::make_unique<List>(std::make_unique<List>(std::make_unique<Struct<::cpp2::MyStruct>>("module.MyStruct"))), std::vector<ThriftConstStruct>{ }}, { 21, "list_set_i32", false, std::make_unique<List>(std::make_unique<Set>(std::make_unique<Primitive>(ThriftPrimitiveType::THRIFT_I32_TYPE))), std::vector<ThriftConstStruct>{ }}, { 22, "list_set_struct", false, std::make_unique<List>(std::make_unique<Set>(std::make_unique<Struct<::cpp2::MyStruct>>("module.MyStruct"))), std::vector<ThriftConstStruct>{ }}, { 23, "list_map_i32_i32", false, std::make_unique<List>(std::make_unique<Map>(std::make_unique<Primitive>(ThriftPrimitiveType::THRIFT_I32_TYPE), std::make_unique<Primitive>(ThriftPrimitiveType::THRIFT_I32_TYPE))), std::vector<ThriftConstStruct>{ }}, { 24, "list_map_i32_struct", false, std::make_unique<List>(std::make_unique<Map>(std::make_unique<Primitive>(ThriftPrimitiveType::THRIFT_I32_TYPE), std::make_unique<Struct<::cpp2::MyStruct>>("module.MyStruct"))), std::vector<ThriftConstStruct>{ }}, { 25, "list_map_struct_i32", false, std::make_unique<List>(std::make_unique<Map>(std::make_unique<Struct<::cpp2::MyStruct>>("module.MyStruct"), std::make_unique<Primitive>(ThriftPrimitiveType::THRIFT_I32_TYPE))), std::vector<ThriftConstStruct>{ }}, { 26, "set_list_i32", false, std::make_unique<Set>(std::make_unique<List>(std::make_unique<Primitive>(ThriftPrimitiveType::THRIFT_I32_TYPE))), std::vector<ThriftConstStruct>{ }}, { 27, "set_list_struct", false, std::make_unique<Set>(std::make_unique<List>(std::make_unique<Struct<::cpp2::MyStruct>>("module.MyStruct"))), std::vector<ThriftConstStruct>{ }}, { 28, "set_set_i32", false, std::make_unique<Set>(std::make_unique<Set>(std::make_unique<Primitive>(ThriftPrimitiveType::THRIFT_I32_TYPE))), std::vector<ThriftConstStruct>{ }}, { 29, "set_set_struct", false, std::make_unique<Set>(std::make_unique<Set>(std::make_unique<Struct<::cpp2::MyStruct>>("module.MyStruct"))), std::vector<ThriftConstStruct>{ }}, { 30, "set_map_i32_i32", false, std::make_unique<Set>(std::make_unique<Map>(std::make_unique<Primitive>(ThriftPrimitiveType::THRIFT_I32_TYPE), std::make_unique<Primitive>(ThriftPrimitiveType::THRIFT_I32_TYPE))), std::vector<ThriftConstStruct>{ }}, { 31, "set_map_i32_struct", false, std::make_unique<Set>(std::make_unique<Map>(std::make_unique<Primitive>(ThriftPrimitiveType::THRIFT_I32_TYPE), std::make_unique<Struct<::cpp2::MyStruct>>("module.MyStruct"))), std::vector<ThriftConstStruct>{ }}, { 32, "set_map_struct_i32", false, std::make_unique<Set>(std::make_unique<Map>(std::make_unique<Struct<::cpp2::MyStruct>>("module.MyStruct"), std::make_unique<Primitive>(ThriftPrimitiveType::THRIFT_I32_TYPE))), std::vector<ThriftConstStruct>{ }}, { 33, "map_i32_map_i32_i32", false, std::make_unique<Map>(std::make_unique<Primitive>(ThriftPrimitiveType::THRIFT_I32_TYPE), std::make_unique<Map>(std::make_unique<Primitive>(ThriftPrimitiveType::THRIFT_I32_TYPE), std::make_unique<Primitive>(ThriftPrimitiveType::THRIFT_I32_TYPE))), std::vector<ThriftConstStruct>{ }}, { 34, "map_i32_map_struct_i32", false, std::make_unique<Map>(std::make_unique<Primitive>(ThriftPrimitiveType::THRIFT_I32_TYPE), std::make_unique<Map>(std::make_unique<Struct<::cpp2::MyStruct>>("module.MyStruct"), std::make_unique<Primitive>(ThriftPrimitiveType::THRIFT_I32_TYPE))), std::vector<ThriftConstStruct>{ }}, { 35, "map_i32_map_i32_struct", false, std::make_unique<Map>(std::make_unique<Primitive>(ThriftPrimitiveType::THRIFT_I32_TYPE), std::make_unique<Map>(std::make_unique<Primitive>(ThriftPrimitiveType::THRIFT_I32_TYPE), std::make_unique<Struct<::cpp2::MyStruct>>("module.MyStruct"))), std::vector<ThriftConstStruct>{ }}, { 36, "map_i32_map_list_i32_i32", false, std::make_unique<Map>(std::make_unique<Primitive>(ThriftPrimitiveType::THRIFT_I32_TYPE), std::make_unique<List>(std::make_unique<Map>(std::make_unique<Primitive>(ThriftPrimitiveType::THRIFT_I32_TYPE), std::make_unique<Primitive>(ThriftPrimitiveType::THRIFT_I32_TYPE)))), std::vector<ThriftConstStruct>{ }}, { 37, "map_i32_map_list_struct_i32", false, std::make_unique<Map>(std::make_unique<Primitive>(ThriftPrimitiveType::THRIFT_I32_TYPE), std::make_unique<List>(std::make_unique<Map>(std::make_unique<Struct<::cpp2::MyStruct>>("module.MyStruct"), std::make_unique<Primitive>(ThriftPrimitiveType::THRIFT_I32_TYPE)))), std::vector<ThriftConstStruct>{ }}, }};
for (const auto& f : *module_Containers_fields) {
::apache::thrift::metadata::ThriftField field;
field.id() = f.id;
Expand Down
Loading

0 comments on commit 690f1d8

Please sign in to comment.