osury 0.19.0 → 0.20.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/IRGen.res.mjs +14 -36
package/package.json
CHANGED
package/src/IRGen.res.mjs
CHANGED
|
@@ -154,23 +154,16 @@ function convertToIrTypeDef(namedSchema, schemasDict, tagsDict, skipSchemaSet) {
|
|
|
154
154
|
payload: payload
|
|
155
155
|
};
|
|
156
156
|
});
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
TAG: "Tag",
|
|
161
|
-
_0: tagName
|
|
162
|
-
}
|
|
163
|
-
] : [
|
|
157
|
+
return {
|
|
158
|
+
name: typeName,
|
|
159
|
+
annotations: [
|
|
164
160
|
"GenType",
|
|
165
161
|
{
|
|
166
162
|
TAG: "Tag",
|
|
167
163
|
_0: tagName
|
|
168
164
|
},
|
|
169
165
|
"Schema"
|
|
170
|
-
]
|
|
171
|
-
return {
|
|
172
|
-
name: typeName,
|
|
173
|
-
annotations: annotations,
|
|
166
|
+
],
|
|
174
167
|
kind: {
|
|
175
168
|
TAG: "VariantDef",
|
|
176
169
|
_0: irCases
|
|
@@ -187,14 +180,9 @@ function convertToIrTypeDef(namedSchema, schemasDict, tagsDict, skipSchemaSet) {
|
|
|
187
180
|
payload: payload
|
|
188
181
|
};
|
|
189
182
|
});
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
TAG: "Tag",
|
|
194
|
-
_0: tagName
|
|
195
|
-
},
|
|
196
|
-
"Unboxed"
|
|
197
|
-
] : [
|
|
183
|
+
return {
|
|
184
|
+
name: typeName,
|
|
185
|
+
annotations: [
|
|
198
186
|
"GenType",
|
|
199
187
|
{
|
|
200
188
|
TAG: "Tag",
|
|
@@ -202,10 +190,7 @@ function convertToIrTypeDef(namedSchema, schemasDict, tagsDict, skipSchemaSet) {
|
|
|
202
190
|
},
|
|
203
191
|
"Unboxed",
|
|
204
192
|
"Schema"
|
|
205
|
-
]
|
|
206
|
-
return {
|
|
207
|
-
name: typeName,
|
|
208
|
-
annotations: annotations$1,
|
|
193
|
+
],
|
|
209
194
|
kind: {
|
|
210
195
|
TAG: "VariantDef",
|
|
211
196
|
_0: irCases$1
|
|
@@ -239,23 +224,16 @@ function convertToIrTypeDef(namedSchema, schemasDict, tagsDict, skipSchemaSet) {
|
|
|
239
224
|
payload: payload$1
|
|
240
225
|
};
|
|
241
226
|
});
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
TAG: "Tag",
|
|
246
|
-
_0: tagName
|
|
247
|
-
}
|
|
248
|
-
] : [
|
|
227
|
+
return {
|
|
228
|
+
name: typeName,
|
|
229
|
+
annotations: [
|
|
249
230
|
"GenType",
|
|
250
231
|
{
|
|
251
232
|
TAG: "Tag",
|
|
252
233
|
_0: tagName
|
|
253
234
|
},
|
|
254
235
|
"Schema"
|
|
255
|
-
]
|
|
256
|
-
return {
|
|
257
|
-
name: typeName,
|
|
258
|
-
annotations: annotations$2,
|
|
236
|
+
],
|
|
259
237
|
kind: {
|
|
260
238
|
TAG: "VariantDef",
|
|
261
239
|
_0: irCases$2
|
|
@@ -272,13 +250,13 @@ function convertToIrTypeDef(namedSchema, schemasDict, tagsDict, skipSchemaSet) {
|
|
|
272
250
|
TAG: "RecordDef",
|
|
273
251
|
_0: fields._0.map(convertField)
|
|
274
252
|
});
|
|
275
|
-
let annotations
|
|
253
|
+
let annotations = shouldSkipSchema ? ["GenType"] : [
|
|
276
254
|
"GenType",
|
|
277
255
|
"Schema"
|
|
278
256
|
];
|
|
279
257
|
return {
|
|
280
258
|
name: typeName,
|
|
281
|
-
annotations: annotations
|
|
259
|
+
annotations: annotations,
|
|
282
260
|
kind: kind
|
|
283
261
|
};
|
|
284
262
|
}
|