@@ -85,7 +85,7 @@ static inline std::string toString(const ArrayPropsNativeComponentSizesMaskWrapp
85
85
return result ;
86
86
}
87
87
struct ArrayPropsNativeComponentObjectStruct {
88
- std::string stringProp ;
88
+ std::string stringProp {\\"\\"} ;
89
89
};
90
90
91
91
static inline void fromRawValue (const PropsParserContext & context , const RawValue & value , ArrayPropsNativeComponentObjectStruct & result ) {
@@ -112,7 +112,7 @@ static inline void fromRawValue(const PropsParserContext& context, const RawValu
112
112
113
113
114
114
struct ArrayPropsNativeComponentArrayObjectStruct {
115
- std ::string stringProp ;
115
+ std ::string stringProp {\\"\\"} ;
116
116
} ;
117
117
118
118
static inline void fromRawValue(const PropsParserContext& context, const RawValue & value, ArrayPropsNativeComponentArrayObjectStruct & result) {
@@ -139,7 +139,7 @@ static inline void fromRawValue(const PropsParserContext& context, const RawValu
139
139
140
140
141
141
struct ArrayPropsNativeComponentArrayStruct {
142
- std ::vector <ArrayPropsNativeComponentArrayObjectStruct > object;
142
+ std ::vector <ArrayPropsNativeComponentArrayObjectStruct > object{ } ;
143
143
};
144
144
145
145
static inline void fromRawValue(const PropsParserContext& context, const RawValue & value, ArrayPropsNativeComponentArrayStruct & result) {
@@ -166,7 +166,7 @@ static inline void fromRawValue(const PropsParserContext& context, const RawValu
166
166
167
167
168
168
struct ArrayPropsNativeComponentArrayOfArrayOfObjectStruct {
169
- std ::string stringProp ;
169
+ std ::string stringProp {\\"\\"} ;
170
170
} ;
171
171
172
172
static inline void fromRawValue(const PropsParserContext& context, const RawValue & value, ArrayPropsNativeComponentArrayOfArrayOfObjectStruct & result) {
@@ -246,9 +246,9 @@ Map {
246
246
namespace facebook::react {
247
247
248
248
struct ArrayPropsNativeComponentNativePrimitivesStruct {
249
- std::vector <SharedColor > colors;
250
- std::vector<ImageSource > srcs;
251
- std::vector<Point > points;
249
+ std::vector <SharedColor > colors{ } ;
250
+ std::vector<ImageSource > srcs{ } ;
251
+ std::vector<Point > points{ } ;
252
252
};
253
253
254
254
static inline void fromRawValue(const PropsParserContext& context, const RawValue & value, ArrayPropsNativeComponentNativePrimitivesStruct & result) {
@@ -1104,7 +1104,7 @@ static inline std::string toString(const ObjectPropsIntEnumProp &value) {
1104
1104
}
1105
1105
}
1106
1106
struct ObjectPropsObjectPropObjectArrayPropStruct {
1107
- std ::vector < std ::string > array ;
1107
+ std ::vector < std ::string > array {} ;
1108
1108
};
1109
1109
1110
1110
static inline void fromRawValue (const PropsParserContext & context , const RawValue & value , ObjectPropsObjectPropObjectArrayPropStruct & result ) {
@@ -1121,9 +1121,9 @@ static inline std::string toString(const ObjectPropsObjectPropObjectArrayPropStr
1121
1121
}
1122
1122
1123
1123
struct ObjectPropsObjectPropObjectPrimitiveRequiredPropStruct {
1124
- ImageSource image ;
1125
- SharedColor color ;
1126
- Point point ;
1124
+ ImageSource image {} ;
1125
+ SharedColor color {} ;
1126
+ Point point {} ;
1127
1127
};
1128
1128
1129
1129
static inline void fromRawValue (const PropsParserContext & context , const RawValue & value , ObjectPropsObjectPropObjectPrimitiveRequiredPropStruct & result ) {
@@ -1148,7 +1148,7 @@ static inline std::string toString(const ObjectPropsObjectPropObjectPrimitiveReq
1148
1148
}
1149
1149
1150
1150
struct ObjectPropsObjectPropNestedPropANestedPropBStruct {
1151
- std ::string nestedPropC ;
1151
+ std ::string nestedPropC {\\ " \\ " } ;
1152
1152
};
1153
1153
1154
1154
static inline void fromRawValue (const PropsParserContext & context , const RawValue & value , ObjectPropsObjectPropNestedPropANestedPropBStruct & result ) {
@@ -1165,7 +1165,7 @@ static inline std::string toString(const ObjectPropsObjectPropNestedPropANestedP
1165
1165
}
1166
1166
1167
1167
struct ObjectPropsObjectPropNestedPropAStruct {
1168
- ObjectPropsObjectPropNestedPropANestedPropBStruct nestedPropB ;
1168
+ ObjectPropsObjectPropNestedPropANestedPropBStruct nestedPropB {} ;
1169
1169
};
1170
1170
1171
1171
static inline void fromRawValue (const PropsParserContext & context , const RawValue & value , ObjectPropsObjectPropNestedPropAStruct & result ) {
@@ -1182,7 +1182,7 @@ static inline std::string toString(const ObjectPropsObjectPropNestedPropAStruct
1182
1182
}
1183
1183
1184
1184
struct ObjectPropsObjectPropNestedArrayAsPropertyArrayPropStruct {
1185
- std ::string stringProp ;
1185
+ std ::string stringProp {\\ " \\ " } ;
1186
1186
};
1187
1187
1188
1188
static inline void fromRawValue (const PropsParserContext & context , const RawValue & value , ObjectPropsObjectPropNestedArrayAsPropertyArrayPropStruct & result ) {
@@ -1209,7 +1209,7 @@ static inline void fromRawValue(const PropsParserContext& context, const RawValu
1209
1209
1210
1210
1211
1211
struct ObjectPropsObjectPropNestedArrayAsPropertyStruct {
1212
- std ::vector <ObjectPropsObjectPropNestedArrayAsPropertyArrayPropStruct > arrayProp;
1212
+ std ::vector <ObjectPropsObjectPropNestedArrayAsPropertyArrayPropStruct > arrayProp{ } ;
1213
1213
};
1214
1214
1215
1215
static inline void fromRawValue(const PropsParserContext& context, const RawValue & value, ObjectPropsObjectPropNestedArrayAsPropertyStruct & result) {
@@ -1226,16 +1226,20 @@ static inline std::string toString(const ObjectPropsObjectPropNestedArrayAsPrope
1226
1226
}
1227
1227
1228
1228
struct ObjectPropsObjectPropStruct {
1229
- std ::string stringProp ;
1230
- bool booleanProp ;
1231
- Float floatProp ;
1232
- int intProp ;
1233
- ObjectPropsStringEnumProp stringEnumProp ;
1234
- ObjectPropsIntEnumProp intEnumProp ;
1235
- ObjectPropsObjectPropObjectArrayPropStruct objectArrayProp ;
1236
- ObjectPropsObjectPropObjectPrimitiveRequiredPropStruct objectPrimitiveRequiredProp ;
1237
- ObjectPropsObjectPropNestedPropAStruct nestedPropA ;
1238
- ObjectPropsObjectPropNestedArrayAsPropertyStruct nestedArrayAsProperty ;
1229
+ std ::string stringProp {\\"\\"};
1230
+ bool booleanProp {false };
1231
+ Float floatProp {0.0};
1232
+ int intProp {0};
1233
+ std ::string stringUserDefaultProp {\\"user_default\\"};
1234
+ bool booleanUserDefaultProp {true };
1235
+ Float floatUserDefaultProp {3.14};
1236
+ int intUserDefaultProp {9999};
1237
+ ObjectPropsStringEnumProp stringEnumProp {ObjectPropsStringEnumProp::Option1 };
1238
+ ObjectPropsIntEnumProp intEnumProp {ObjectPropsIntEnumProp::IntEnumProp0 };
1239
+ ObjectPropsObjectPropObjectArrayPropStruct objectArrayProp {};
1240
+ ObjectPropsObjectPropObjectPrimitiveRequiredPropStruct objectPrimitiveRequiredProp {};
1241
+ ObjectPropsObjectPropNestedPropAStruct nestedPropA {};
1242
+ ObjectPropsObjectPropNestedArrayAsPropertyStruct nestedArrayAsProperty {};
1239
1243
} ;
1240
1244
1241
1245
static inline void fromRawValue(const PropsParserContext& context, const RawValue & value, ObjectPropsObjectPropStruct & result) {
@@ -1257,6 +1261,22 @@ static inline void fromRawValue(const PropsParserContext& context, const RawValu
1257
1261
if (tmp_intProp != map .end ()) {
1258
1262
fromRawValue(context , tmp_intProp ->second , result .intProp );
1259
1263
}
1264
+ auto tmp_stringUserDefaultProp = map .find (\\" stringUserDefaultProp\\ " );
1265
+ if (tmp_stringUserDefaultProp != map .end ()) {
1266
+ fromRawValue(context , tmp_stringUserDefaultProp ->second , result .stringUserDefaultProp );
1267
+ }
1268
+ auto tmp_booleanUserDefaultProp = map .find (\\" booleanUserDefaultProp\\ " );
1269
+ if (tmp_booleanUserDefaultProp != map .end ()) {
1270
+ fromRawValue(context , tmp_booleanUserDefaultProp ->second , result .booleanUserDefaultProp );
1271
+ }
1272
+ auto tmp_floatUserDefaultProp = map .find (\\" floatUserDefaultProp\\ " );
1273
+ if (tmp_floatUserDefaultProp != map .end ()) {
1274
+ fromRawValue(context , tmp_floatUserDefaultProp ->second , result .floatUserDefaultProp );
1275
+ }
1276
+ auto tmp_intUserDefaultProp = map .find (\\" intUserDefaultProp\\ " );
1277
+ if (tmp_intUserDefaultProp != map .end ()) {
1278
+ fromRawValue(context , tmp_intUserDefaultProp ->second , result .intUserDefaultProp );
1279
+ }
1260
1280
auto tmp_stringEnumProp = map .find (\\" stringEnumProp\\ " );
1261
1281
if (tmp_stringEnumProp != map .end ()) {
1262
1282
fromRawValue(context , tmp_stringEnumProp ->second , result .stringEnumProp );
0 commit comments