@flock/wirespec 0.18.1-RC.3 → 0.18.4
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/clikt-clikt-mordant.mjs +79 -79
- package/clikt-clikt.mjs +1265 -1265
- package/clikt-clikt.mjs.map +1 -1
- package/colormath-root-colormath.mjs +433 -433
- package/kotlin-kotlin-stdlib.mjs +34 -28
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +5407 -5405
- package/kotlin-openapi-bindings.mjs.map +1 -1
- package/kotlin-rgxgen.mjs +1760 -1760
- package/kotlinx-io-kotlinx-io-core.mjs +404 -404
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1701 -1701
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1320 -1319
- package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
- package/mordant-mordant.mjs +1198 -1198
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +192 -205
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-java.mjs +711 -777
- package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-kotlin.mjs +311 -418
- package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-python.mjs +640 -769
- package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-rust.mjs +1582 -1708
- package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-scala.mjs +680 -635
- package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-typescript.mjs +579 -562
- package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-wirespec.mjs +20 -20
- package/wirespec-src-compiler-ir.mjs +5428 -6057
- package/wirespec-src-compiler-ir.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +279 -279
- package/wirespec-src-converter-avro.mjs +559 -559
- package/wirespec-src-converter-avro.mjs.map +1 -1
- package/wirespec-src-converter-openapi.mjs +802 -404
- package/wirespec-src-converter-openapi.mjs.map +1 -1
- package/wirespec-src-plugin-arguments.mjs +144 -144
- package/wirespec-src-plugin-cli.mjs +87 -87
- package/wirespec-src-plugin-npm.mjs +44 -25
- package/wirespec-src-plugin-npm.mjs.map +1 -1
- package/wirespec-src-tools-generator.mjs +13 -13
|
@@ -57,6 +57,7 @@ import {
|
|
|
57
57
|
createInvariantKTypeProjection3h5364czc0a8w as createInvariantKTypeProjection,
|
|
58
58
|
THROW_CCE2g6jy02ryeudk as THROW_CCE,
|
|
59
59
|
toList3jhuyej2anx2q as toList,
|
|
60
|
+
plus20p0vtfmu0596 as plus_0,
|
|
60
61
|
initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
|
|
61
62
|
objectCreate1ve4bgxiu4x98 as objectCreate,
|
|
62
63
|
copyToArray2j022khrow2yi as copyToArray,
|
|
@@ -70,7 +71,6 @@ import {
|
|
|
70
71
|
hashCodeq5arwsb9dgti as hashCode,
|
|
71
72
|
equals2au1ep9vhcato as equals,
|
|
72
73
|
StringCompanionObject_instance3sox3h548pjra as StringCompanionObject_instance,
|
|
73
|
-
plus20p0vtfmu0596 as plus_0,
|
|
74
74
|
} from './kotlin-kotlin-stdlib.mjs';
|
|
75
75
|
import {
|
|
76
76
|
NonEmptyList__toList_impl_t5xcy2362qtlja6arn8 as NonEmptyList__toList_impl_t5xcy2,
|
|
@@ -82,11 +82,11 @@ import {
|
|
|
82
82
|
} from './arrow-arrow-core.mjs';
|
|
83
83
|
import {
|
|
84
84
|
Default_getInstancejkv49nkel8hp as Default_getInstance,
|
|
85
|
+
Jsonsmkyu9xjl7fv as Json,
|
|
85
86
|
JsonDecoder1rijst5ne6qla as JsonDecoder,
|
|
86
87
|
JsonObjectee06ihoeeiqj as JsonObject,
|
|
87
88
|
JsonArray2urf8ey7u44sd as JsonArray,
|
|
88
89
|
JsonPrimitive3ttzjh2ft5dnx as JsonPrimitive,
|
|
89
|
-
Jsonsmkyu9xjl7fv as Json,
|
|
90
90
|
} from './kotlinx-serialization-kotlinx-serialization-json.mjs';
|
|
91
91
|
import {
|
|
92
92
|
serializer1i4e9ym37oxmo as serializer,
|
|
@@ -112,7 +112,8 @@ var imul = Math.imul;
|
|
|
112
112
|
//endregion
|
|
113
113
|
//region block: pre-declaration
|
|
114
114
|
initMetadataForObject(AvroConverter, 'AvroConverter');
|
|
115
|
-
initMetadataForObject(
|
|
115
|
+
initMetadataForObject(AvroJsonEmitter, 'AvroJsonEmitter');
|
|
116
|
+
initMetadataForObject(AvroJsonParser, 'AvroJsonParser');
|
|
116
117
|
initMetadataForCompanion(Companion);
|
|
117
118
|
initMetadataForObject($serializer, '$serializer', VOID, VOID, [GeneratedSerializer]);
|
|
118
119
|
initMetadataForCompanion(Companion_0);
|
|
@@ -143,14 +144,13 @@ initMetadataForClass(UnionType, 'UnionType', VOID, VOID, [Type_0], VOID, VOID, {
|
|
|
143
144
|
initMetadataForClass(LogicalType, 'LogicalType', VOID, VOID, [Type_0], VOID, VOID, {0: $serializer_getInstance_6});
|
|
144
145
|
initMetadataForObject(TypeListSerializer, 'TypeListSerializer', VOID, VOID, [KSerializer]);
|
|
145
146
|
initMetadataForObject(TypeSerializer, 'TypeSerializer', VOID, VOID, [KSerializer]);
|
|
146
|
-
initMetadataForObject(AvroParser, 'AvroParser');
|
|
147
147
|
//endregion
|
|
148
148
|
function isNullable($this, _this__u8e3s4) {
|
|
149
|
-
return _this__u8e3s4.u1($this.
|
|
149
|
+
return _this__u8e3s4.u1($this.y3g_1);
|
|
150
150
|
}
|
|
151
151
|
function toPrimitive($this, _this__u8e3s4) {
|
|
152
152
|
var tmp;
|
|
153
|
-
switch (_this__u8e3s4.
|
|
153
|
+
switch (_this__u8e3s4.z3g_1) {
|
|
154
154
|
case 'boolean':
|
|
155
155
|
tmp = Boolean_instance;
|
|
156
156
|
break;
|
|
@@ -173,7 +173,7 @@ function toPrimitive($this, _this__u8e3s4) {
|
|
|
173
173
|
tmp = new String_0(null);
|
|
174
174
|
break;
|
|
175
175
|
default:
|
|
176
|
-
var reason = 'primitive not mapped ' + _this__u8e3s4.
|
|
176
|
+
var reason = 'primitive not mapped ' + _this__u8e3s4.z3g_1;
|
|
177
177
|
throw new NotImplementedError('An operation is not implemented: ' + reason);
|
|
178
178
|
}
|
|
179
179
|
return tmp;
|
|
@@ -181,7 +181,7 @@ function toPrimitive($this, _this__u8e3s4) {
|
|
|
181
181
|
function toReference($this, _this__u8e3s4, isNullable) {
|
|
182
182
|
var tmp;
|
|
183
183
|
if (_this__u8e3s4 instanceof SimpleType) {
|
|
184
|
-
switch (_this__u8e3s4.
|
|
184
|
+
switch (_this__u8e3s4.z3g_1) {
|
|
185
185
|
case 'null':
|
|
186
186
|
tmp = new Unit(isNullable);
|
|
187
187
|
break;
|
|
@@ -195,27 +195,27 @@ function toReference($this, _this__u8e3s4, isNullable) {
|
|
|
195
195
|
tmp = new Primitive(toPrimitive($this, _this__u8e3s4), isNullable);
|
|
196
196
|
break;
|
|
197
197
|
default:
|
|
198
|
-
tmp = new Custom(_this__u8e3s4.
|
|
198
|
+
tmp = new Custom(_this__u8e3s4.z3g_1, isNullable);
|
|
199
199
|
break;
|
|
200
200
|
}
|
|
201
201
|
} else {
|
|
202
202
|
if (_this__u8e3s4 instanceof ArrayType) {
|
|
203
|
-
tmp = new Iterable(toReference($this, _this__u8e3s4.
|
|
203
|
+
tmp = new Iterable(toReference($this, _this__u8e3s4.s3h_1, false), isNullable);
|
|
204
204
|
} else {
|
|
205
205
|
if (_this__u8e3s4 instanceof RecordType) {
|
|
206
|
-
tmp = new Custom(_this__u8e3s4.
|
|
206
|
+
tmp = new Custom(_this__u8e3s4.n3h_1, isNullable);
|
|
207
207
|
} else {
|
|
208
208
|
if (_this__u8e3s4 instanceof EnumType) {
|
|
209
|
-
tmp = new Custom(_this__u8e3s4.
|
|
209
|
+
tmp = new Custom(_this__u8e3s4.j3h_1, isNullable);
|
|
210
210
|
} else {
|
|
211
211
|
if (_this__u8e3s4 instanceof LogicalType) {
|
|
212
|
-
tmp = toReference($this, new SimpleType(_this__u8e3s4.
|
|
212
|
+
tmp = toReference($this, new SimpleType(_this__u8e3s4.e3h_1), isNullable);
|
|
213
213
|
} else {
|
|
214
214
|
if (_this__u8e3s4 instanceof MapType) {
|
|
215
|
-
tmp = new Dict(toReference($this, _this__u8e3s4.
|
|
215
|
+
tmp = new Dict(toReference($this, _this__u8e3s4.d3h_1, false), isNullable);
|
|
216
216
|
} else {
|
|
217
217
|
if (_this__u8e3s4 instanceof UnionType) {
|
|
218
|
-
tmp = new Custom(_this__u8e3s4.
|
|
218
|
+
tmp = new Custom(_this__u8e3s4.a3h_1, isNullable);
|
|
219
219
|
} else {
|
|
220
220
|
noWhenBranchMatchedException();
|
|
221
221
|
}
|
|
@@ -228,7 +228,7 @@ function toReference($this, _this__u8e3s4, isNullable) {
|
|
|
228
228
|
return tmp;
|
|
229
229
|
}
|
|
230
230
|
function toReference_0($this, _this__u8e3s4) {
|
|
231
|
-
var list = minus(_this__u8e3s4, $this.
|
|
231
|
+
var list = minus(_this__u8e3s4, $this.y3g_1);
|
|
232
232
|
var tmp;
|
|
233
233
|
if (list.a1() === 1) {
|
|
234
234
|
tmp = toReference($this, first(list), isNullable($this, _this__u8e3s4));
|
|
@@ -268,18 +268,18 @@ function toReference_0($this, _this__u8e3s4) {
|
|
|
268
268
|
}
|
|
269
269
|
function toType($this, _this__u8e3s4) {
|
|
270
270
|
var tmp0_annotations = emptyList();
|
|
271
|
-
var tmp1_identifier = new DefinitionIdentifier(_this__u8e3s4.
|
|
271
|
+
var tmp1_identifier = new DefinitionIdentifier(_this__u8e3s4.n3h_1);
|
|
272
272
|
var tmp2_extends = emptyList();
|
|
273
273
|
// Inline function 'kotlin.collections.map' call
|
|
274
|
-
var this_0 = _this__u8e3s4.
|
|
274
|
+
var this_0 = _this__u8e3s4.p3h_1;
|
|
275
275
|
// Inline function 'kotlin.collections.mapTo' call
|
|
276
276
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
277
277
|
var _iterator__ex2g4s = this_0.t();
|
|
278
278
|
while (_iterator__ex2g4s.u()) {
|
|
279
279
|
var item = _iterator__ex2g4s.v();
|
|
280
|
-
var tmp0_identifier = new FieldIdentifier(item.
|
|
280
|
+
var tmp0_identifier = new FieldIdentifier(item.t3h_1);
|
|
281
281
|
var tmp1_annotations = emptyList();
|
|
282
|
-
var tmp2_reference = toReference_0(AvroConverter_getInstance(), item.
|
|
282
|
+
var tmp2_reference = toReference_0(AvroConverter_getInstance(), item.u3h_1);
|
|
283
283
|
var tmp$ret$0 = new Field(tmp1_annotations, tmp0_identifier, tmp2_reference);
|
|
284
284
|
destination.x(tmp$ret$0);
|
|
285
285
|
}
|
|
@@ -287,13 +287,13 @@ function toType($this, _this__u8e3s4) {
|
|
|
287
287
|
return new Type(null, tmp0_annotations, tmp1_identifier, tmp3_shape, tmp2_extends);
|
|
288
288
|
}
|
|
289
289
|
function toEnum($this, _this__u8e3s4) {
|
|
290
|
-
return new Enum(null, emptyList(), new DefinitionIdentifier(_this__u8e3s4.
|
|
290
|
+
return new Enum(null, emptyList(), new DefinitionIdentifier(_this__u8e3s4.j3h_1), toSet(_this__u8e3s4.l3h_1));
|
|
291
291
|
}
|
|
292
292
|
function toUnion($this, _this__u8e3s4, name) {
|
|
293
293
|
var tmp = emptyList();
|
|
294
294
|
var tmp_0 = new DefinitionIdentifier(name);
|
|
295
295
|
// Inline function 'kotlin.collections.map' call
|
|
296
|
-
var this_0 = _this__u8e3s4.
|
|
296
|
+
var this_0 = _this__u8e3s4.b3h_1;
|
|
297
297
|
// Inline function 'kotlin.collections.mapTo' call
|
|
298
298
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
299
299
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -306,9 +306,9 @@ function toUnion($this, _this__u8e3s4, name) {
|
|
|
306
306
|
}
|
|
307
307
|
function AvroConverter() {
|
|
308
308
|
AvroConverter_instance = this;
|
|
309
|
-
this.
|
|
309
|
+
this.y3g_1 = new SimpleType('null');
|
|
310
310
|
}
|
|
311
|
-
protoOf(AvroConverter).
|
|
311
|
+
protoOf(AvroConverter).x3h = function (_this__u8e3s4, name) {
|
|
312
312
|
var tmp;
|
|
313
313
|
if (_this__u8e3s4 instanceof SimpleType) {
|
|
314
314
|
tmp = emptyList();
|
|
@@ -316,20 +316,20 @@ protoOf(AvroConverter).k3j = function (_this__u8e3s4, name) {
|
|
|
316
316
|
if (_this__u8e3s4 instanceof RecordType) {
|
|
317
317
|
var tmp_0 = listOf(toType(this, _this__u8e3s4));
|
|
318
318
|
// Inline function 'kotlin.collections.flatMap' call
|
|
319
|
-
var tmp0 = _this__u8e3s4.
|
|
319
|
+
var tmp0 = _this__u8e3s4.p3h_1;
|
|
320
320
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
321
321
|
var destination = ArrayList_init_$Create$_0();
|
|
322
322
|
var _iterator__ex2g4s = tmp0.t();
|
|
323
323
|
while (_iterator__ex2g4s.u()) {
|
|
324
324
|
var element = _iterator__ex2g4s.v();
|
|
325
325
|
// Inline function 'kotlin.collections.flatMap' call
|
|
326
|
-
var tmp0_0 = element.
|
|
326
|
+
var tmp0_0 = element.u3h_1;
|
|
327
327
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
328
328
|
var destination_0 = ArrayList_init_$Create$_0();
|
|
329
329
|
var _iterator__ex2g4s_0 = tmp0_0.t();
|
|
330
330
|
while (_iterator__ex2g4s_0.u()) {
|
|
331
331
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
332
|
-
var list = AvroConverter_getInstance().
|
|
332
|
+
var list = AvroConverter_getInstance().x3h(element_0, name);
|
|
333
333
|
addAll(destination_0, list);
|
|
334
334
|
}
|
|
335
335
|
var list_0 = destination_0;
|
|
@@ -338,7 +338,7 @@ protoOf(AvroConverter).k3j = function (_this__u8e3s4, name) {
|
|
|
338
338
|
tmp = plus(tmp_0, destination);
|
|
339
339
|
} else {
|
|
340
340
|
if (_this__u8e3s4 instanceof ArrayType) {
|
|
341
|
-
tmp = this.
|
|
341
|
+
tmp = this.x3h(_this__u8e3s4.s3h_1, name);
|
|
342
342
|
} else {
|
|
343
343
|
if (_this__u8e3s4 instanceof EnumType) {
|
|
344
344
|
tmp = listOf(toEnum(this, _this__u8e3s4));
|
|
@@ -347,7 +347,7 @@ protoOf(AvroConverter).k3j = function (_this__u8e3s4, name) {
|
|
|
347
347
|
tmp = emptyList();
|
|
348
348
|
} else {
|
|
349
349
|
if (_this__u8e3s4 instanceof MapType) {
|
|
350
|
-
tmp = this.
|
|
350
|
+
tmp = this.x3h(_this__u8e3s4.d3h_1, name);
|
|
351
351
|
} else {
|
|
352
352
|
if (_this__u8e3s4 instanceof UnionType) {
|
|
353
353
|
tmp = listOf(toUnion(this, _this__u8e3s4, name));
|
|
@@ -362,9 +362,9 @@ protoOf(AvroConverter).k3j = function (_this__u8e3s4, name) {
|
|
|
362
362
|
}
|
|
363
363
|
return tmp;
|
|
364
364
|
};
|
|
365
|
-
protoOf(AvroConverter).
|
|
365
|
+
protoOf(AvroConverter).y3h = function (_this__u8e3s4, name, $super) {
|
|
366
366
|
name = name === VOID ? '' : name;
|
|
367
|
-
return $super === VOID ? this.
|
|
367
|
+
return $super === VOID ? this.x3h(_this__u8e3s4, name) : $super.x3h.call(this, _this__u8e3s4, name);
|
|
368
368
|
};
|
|
369
369
|
var AvroConverter_instance;
|
|
370
370
|
function AvroConverter_getInstance() {
|
|
@@ -390,14 +390,14 @@ function findType($this, _this__u8e3s4, name) {
|
|
|
390
390
|
}
|
|
391
391
|
return tmp$ret$1;
|
|
392
392
|
}
|
|
393
|
-
function
|
|
394
|
-
|
|
395
|
-
this.
|
|
393
|
+
function AvroJsonEmitter() {
|
|
394
|
+
AvroJsonEmitter_instance = this;
|
|
395
|
+
this.z3h_1 = FileExtension_JSON_getInstance();
|
|
396
396
|
}
|
|
397
|
-
protoOf(
|
|
398
|
-
return this.
|
|
397
|
+
protoOf(AvroJsonEmitter).eq = function () {
|
|
398
|
+
return this.z3h_1;
|
|
399
399
|
};
|
|
400
|
-
protoOf(
|
|
400
|
+
protoOf(AvroJsonEmitter).on = function (ast, logger) {
|
|
401
401
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
402
402
|
var this_0 = ast.bq_1;
|
|
403
403
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -408,7 +408,7 @@ protoOf(AvroEmitter).on = function (ast, logger) {
|
|
|
408
408
|
while (_iterator__ex2g4s.u()) {
|
|
409
409
|
var item = _iterator__ex2g4s.v();
|
|
410
410
|
logger.sq('Emitting Nodes from ' + item.cq_1.dn_1 + ' ');
|
|
411
|
-
var tmp$ret$0 =
|
|
411
|
+
var tmp$ret$0 = AvroJsonEmitter_getInstance().a3i(item);
|
|
412
412
|
destination.x(tmp$ret$0);
|
|
413
413
|
}
|
|
414
414
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
@@ -423,11 +423,11 @@ protoOf(AvroEmitter).on = function (ast, logger) {
|
|
|
423
423
|
// Inline function 'kotlinx.serialization.encodeToString' call
|
|
424
424
|
var this_4 = Default_getInstance();
|
|
425
425
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
426
|
-
var this_5 = this_4.
|
|
426
|
+
var this_5 = this_4.d23();
|
|
427
427
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
428
428
|
var this_6 = serializer(this_5, createKType(getKClass(KtList), arrayOf([createInvariantKTypeProjection(createKType(getKClass(Type_0), arrayOf([]), false))]), false));
|
|
429
429
|
var tmp$ret$5 = isInterface(this_6, KSerializer) ? this_6 : THROW_CCE();
|
|
430
|
-
var tmp$ret$7 = this_4.
|
|
430
|
+
var tmp$ret$7 = this_4.q2j(tmp$ret$5, item_0);
|
|
431
431
|
destination_0.x(tmp$ret$7);
|
|
432
432
|
}
|
|
433
433
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
@@ -444,10 +444,10 @@ protoOf(AvroEmitter).on = function (ast, logger) {
|
|
|
444
444
|
}
|
|
445
445
|
return _NonEmptyList___init__impl__fxd0xp(destination_1);
|
|
446
446
|
};
|
|
447
|
-
protoOf(
|
|
447
|
+
protoOf(AvroJsonEmitter).b3i = function (_this__u8e3s4) {
|
|
448
448
|
return new EnumType('enum', _this__u8e3s4.gr_1.l1(), VOID, toList(_this__u8e3s4.hr_1));
|
|
449
449
|
};
|
|
450
|
-
protoOf(
|
|
450
|
+
protoOf(AvroJsonEmitter).c3i = function (_this__u8e3s4) {
|
|
451
451
|
var tmp = _this__u8e3s4.qo_1.l1();
|
|
452
452
|
// Inline function 'kotlin.collections.map' call
|
|
453
453
|
var this_0 = _this__u8e3s4.ro_1;
|
|
@@ -461,23 +461,23 @@ protoOf(AvroEmitter).p3j = function (_this__u8e3s4) {
|
|
|
461
461
|
}
|
|
462
462
|
return new UnionType(tmp, TypeList_init_$Create$(destination));
|
|
463
463
|
};
|
|
464
|
-
protoOf(
|
|
464
|
+
protoOf(AvroJsonEmitter).d3i = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
465
465
|
var tmp;
|
|
466
466
|
if (_this__u8e3s4 instanceof Dict) {
|
|
467
|
-
tmp = new MapType('map', this.
|
|
467
|
+
tmp = new MapType('map', this.d3i(_this__u8e3s4.co_1, module_0, hasEmitted));
|
|
468
468
|
} else {
|
|
469
469
|
if (_this__u8e3s4 instanceof Iterable) {
|
|
470
|
-
tmp = new ArrayType('array', this.
|
|
470
|
+
tmp = new ArrayType('array', this.d3i(_this__u8e3s4.zn_1, module_0, hasEmitted));
|
|
471
471
|
} else {
|
|
472
472
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
473
|
-
var type = _this__u8e3s4.
|
|
473
|
+
var type = _this__u8e3s4.ou_1;
|
|
474
474
|
var tmp_0;
|
|
475
475
|
if (type instanceof String_0) {
|
|
476
476
|
tmp_0 = new SimpleType('string');
|
|
477
477
|
} else {
|
|
478
478
|
if (type instanceof Integer) {
|
|
479
479
|
var tmp_1;
|
|
480
|
-
switch (type.
|
|
480
|
+
switch (type.st_1.b3_1) {
|
|
481
481
|
case 0:
|
|
482
482
|
tmp_1 = new SimpleType('int');
|
|
483
483
|
break;
|
|
@@ -492,7 +492,7 @@ protoOf(AvroEmitter).q3j = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
|
492
492
|
} else {
|
|
493
493
|
if (type instanceof Number_0) {
|
|
494
494
|
var tmp_2;
|
|
495
|
-
switch (type.
|
|
495
|
+
switch (type.vt_1.b3_1) {
|
|
496
496
|
case 0:
|
|
497
497
|
tmp_2 = new SimpleType('float');
|
|
498
498
|
break;
|
|
@@ -520,7 +520,7 @@ protoOf(AvroEmitter).q3j = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
|
520
520
|
tmp = tmp_0;
|
|
521
521
|
} else {
|
|
522
522
|
if (_this__u8e3s4 instanceof Custom) {
|
|
523
|
-
var def = findType(this, module_0, _this__u8e3s4.
|
|
523
|
+
var def = findType(this, module_0, _this__u8e3s4.ku_1);
|
|
524
524
|
var tmp_3;
|
|
525
525
|
if (def instanceof Type) {
|
|
526
526
|
var tmp_4;
|
|
@@ -531,7 +531,7 @@ protoOf(AvroEmitter).q3j = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
|
531
531
|
} else {
|
|
532
532
|
// Inline function 'kotlin.also' call
|
|
533
533
|
hasEmitted.x(def.vo_1.l1());
|
|
534
|
-
tmp_4 = this.
|
|
534
|
+
tmp_4 = this.e3i(def, module_0, hasEmitted);
|
|
535
535
|
}
|
|
536
536
|
tmp_3 = tmp_4;
|
|
537
537
|
} else {
|
|
@@ -541,7 +541,7 @@ protoOf(AvroEmitter).q3j = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
|
541
541
|
if (def instanceof Refined) {
|
|
542
542
|
tmp_3 = new SimpleType('string');
|
|
543
543
|
} else {
|
|
544
|
-
tmp_3 = new SimpleType(_this__u8e3s4.
|
|
544
|
+
tmp_3 = new SimpleType(_this__u8e3s4.ku_1);
|
|
545
545
|
}
|
|
546
546
|
}
|
|
547
547
|
}
|
|
@@ -562,17 +562,17 @@ protoOf(AvroEmitter).q3j = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
|
562
562
|
}
|
|
563
563
|
return tmp;
|
|
564
564
|
};
|
|
565
|
-
protoOf(
|
|
565
|
+
protoOf(AvroJsonEmitter).f3i = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
566
566
|
var ref = _this__u8e3s4.bp_1;
|
|
567
567
|
var tmp;
|
|
568
568
|
if (ref instanceof Iterable) {
|
|
569
|
-
tmp = new ArrayType('array', this.
|
|
569
|
+
tmp = new ArrayType('array', this.d3i(ref.zn_1, module_0, hasEmitted));
|
|
570
570
|
} else {
|
|
571
|
-
tmp = this.
|
|
571
|
+
tmp = this.d3i(ref, module_0, hasEmitted);
|
|
572
572
|
}
|
|
573
573
|
return tmp;
|
|
574
574
|
};
|
|
575
|
-
protoOf(
|
|
575
|
+
protoOf(AvroJsonEmitter).e3i = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
576
576
|
var tmp0_name = _this__u8e3s4.vo_1.l1();
|
|
577
577
|
// Inline function 'kotlin.collections.map' call
|
|
578
578
|
var this_0 = _this__u8e3s4.wo_1.so_1;
|
|
@@ -583,17 +583,17 @@ protoOf(AvroEmitter).r3j = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
|
583
583
|
var item = _iterator__ex2g4s.v();
|
|
584
584
|
var tmp = item.ap_1.l1();
|
|
585
585
|
var tmp_0;
|
|
586
|
-
if (item.bp_1.
|
|
587
|
-
tmp_0 = new TypeList([new SimpleType('null'),
|
|
586
|
+
if (item.bp_1.cu()) {
|
|
587
|
+
tmp_0 = new TypeList([new SimpleType('null'), AvroJsonEmitter_getInstance().f3i(item, module_0, hasEmitted)]);
|
|
588
588
|
} else {
|
|
589
|
-
tmp_0 = new TypeList([
|
|
589
|
+
tmp_0 = new TypeList([AvroJsonEmitter_getInstance().f3i(item, module_0, hasEmitted)]);
|
|
590
590
|
}
|
|
591
591
|
var tmp$ret$0 = new Field_0(tmp, tmp_0);
|
|
592
592
|
destination.x(tmp$ret$0);
|
|
593
593
|
}
|
|
594
594
|
return new RecordType('record', tmp0_name, VOID, destination);
|
|
595
595
|
};
|
|
596
|
-
protoOf(
|
|
596
|
+
protoOf(AvroJsonEmitter).a3i = function (module_0) {
|
|
597
597
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
598
598
|
var hasEmitted = ArrayList_init_$Create$_0();
|
|
599
599
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
@@ -606,13 +606,13 @@ protoOf(AvroEmitter).n3j = function (module_0) {
|
|
|
606
606
|
var element = _iterator__ex2g4s.v();
|
|
607
607
|
var tmp;
|
|
608
608
|
if (element instanceof Type) {
|
|
609
|
-
tmp =
|
|
609
|
+
tmp = AvroJsonEmitter_getInstance().e3i(element, module_0, hasEmitted);
|
|
610
610
|
} else {
|
|
611
611
|
if (element instanceof Enum) {
|
|
612
|
-
tmp =
|
|
612
|
+
tmp = AvroJsonEmitter_getInstance().b3i(element);
|
|
613
613
|
} else {
|
|
614
614
|
if (element instanceof Union) {
|
|
615
|
-
tmp =
|
|
615
|
+
tmp = AvroJsonEmitter_getInstance().c3i(element);
|
|
616
616
|
} else {
|
|
617
617
|
tmp = null;
|
|
618
618
|
}
|
|
@@ -628,11 +628,75 @@ protoOf(AvroEmitter).n3j = function (module_0) {
|
|
|
628
628
|
}
|
|
629
629
|
return destination;
|
|
630
630
|
};
|
|
631
|
-
var
|
|
632
|
-
function
|
|
633
|
-
if (
|
|
634
|
-
new
|
|
635
|
-
return
|
|
631
|
+
var AvroJsonEmitter_instance;
|
|
632
|
+
function AvroJsonEmitter_getInstance() {
|
|
633
|
+
if (AvroJsonEmitter_instance == null)
|
|
634
|
+
new AvroJsonEmitter();
|
|
635
|
+
return AvroJsonEmitter_instance;
|
|
636
|
+
}
|
|
637
|
+
function AvroJsonParser$parse$lambda($this$Json) {
|
|
638
|
+
$this$Json.k2k_1 = true;
|
|
639
|
+
$this$Json.l2k_1 = true;
|
|
640
|
+
return Unit_instance;
|
|
641
|
+
}
|
|
642
|
+
function AvroJsonParser() {
|
|
643
|
+
}
|
|
644
|
+
protoOf(AvroJsonParser).s3g = function (moduleContent, strict) {
|
|
645
|
+
var json = Json(VOID, AvroJsonParser$parse$lambda);
|
|
646
|
+
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
647
|
+
var string = moduleContent.ym_1;
|
|
648
|
+
// Inline function 'kotlinx.serialization.serializer' call
|
|
649
|
+
var this_0 = json.d23();
|
|
650
|
+
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
651
|
+
var this_1 = serializer(this_0, createKType(getKClass(Type_0), arrayOf([]), false));
|
|
652
|
+
var tmp$ret$1 = isInterface(this_1, KSerializer) ? this_1 : THROW_CCE();
|
|
653
|
+
var avro = json.r2j(tmp$ret$1, string);
|
|
654
|
+
var tmp = AvroConverter_getInstance().y3h(avro);
|
|
655
|
+
var tmp_0;
|
|
656
|
+
if (avro instanceof RecordType) {
|
|
657
|
+
tmp_0 = new Channel(null, emptyList(), new DefinitionIdentifier(avro.n3h_1), new Custom(avro.n3h_1, false));
|
|
658
|
+
} else {
|
|
659
|
+
if (avro instanceof ArrayType) {
|
|
660
|
+
throw new NotImplementedError();
|
|
661
|
+
} else {
|
|
662
|
+
if (avro instanceof EnumType) {
|
|
663
|
+
throw new NotImplementedError();
|
|
664
|
+
} else {
|
|
665
|
+
if (avro instanceof SimpleType) {
|
|
666
|
+
throw new NotImplementedError();
|
|
667
|
+
} else {
|
|
668
|
+
if (avro instanceof LogicalType) {
|
|
669
|
+
throw new NotImplementedError();
|
|
670
|
+
} else {
|
|
671
|
+
if (avro instanceof MapType) {
|
|
672
|
+
throw new NotImplementedError();
|
|
673
|
+
} else {
|
|
674
|
+
if (avro instanceof UnionType) {
|
|
675
|
+
throw new NotImplementedError();
|
|
676
|
+
} else {
|
|
677
|
+
noWhenBranchMatchedException();
|
|
678
|
+
}
|
|
679
|
+
}
|
|
680
|
+
}
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
var result = plus_0(tmp, tmp_0);
|
|
686
|
+
var tmp1_elvis_lhs = toNonEmptyListOrNull(result);
|
|
687
|
+
var tmp_1;
|
|
688
|
+
var tmp_2 = tmp1_elvis_lhs;
|
|
689
|
+
if ((tmp_2 == null ? null : new NonEmptyList(tmp_2)) == null) {
|
|
690
|
+
var message = 'Cannot yield non empty AST';
|
|
691
|
+
throw IllegalStateException_init_$Create$(toString(message));
|
|
692
|
+
} else {
|
|
693
|
+
tmp_1 = tmp1_elvis_lhs;
|
|
694
|
+
}
|
|
695
|
+
return new Root(nonEmptyListOf(new Module(moduleContent.xm_1, tmp_1), []));
|
|
696
|
+
};
|
|
697
|
+
var AvroJsonParser_instance;
|
|
698
|
+
function AvroJsonParser_getInstance() {
|
|
699
|
+
return AvroJsonParser_instance;
|
|
636
700
|
}
|
|
637
701
|
function Companion() {
|
|
638
702
|
}
|
|
@@ -643,30 +707,30 @@ function Companion_getInstance() {
|
|
|
643
707
|
function $serializer() {
|
|
644
708
|
$serializer_instance = this;
|
|
645
709
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.Field', this, 4);
|
|
646
|
-
tmp0_serialDesc.
|
|
647
|
-
tmp0_serialDesc.
|
|
648
|
-
tmp0_serialDesc.
|
|
649
|
-
tmp0_serialDesc.
|
|
650
|
-
this.
|
|
651
|
-
}
|
|
652
|
-
protoOf($serializer).
|
|
653
|
-
var tmp0_desc = this.
|
|
654
|
-
var tmp1_output = encoder.
|
|
655
|
-
tmp1_output.
|
|
656
|
-
tmp1_output.
|
|
657
|
-
if (tmp1_output.
|
|
658
|
-
tmp1_output.
|
|
710
|
+
tmp0_serialDesc.y29('name', false);
|
|
711
|
+
tmp0_serialDesc.y29('type', false);
|
|
712
|
+
tmp0_serialDesc.y29('doc', true);
|
|
713
|
+
tmp0_serialDesc.y29('default', true);
|
|
714
|
+
this.g3i_1 = tmp0_serialDesc;
|
|
715
|
+
}
|
|
716
|
+
protoOf($serializer).h3i = function (encoder, value) {
|
|
717
|
+
var tmp0_desc = this.g3i_1;
|
|
718
|
+
var tmp1_output = encoder.o22(tmp0_desc);
|
|
719
|
+
tmp1_output.d24(tmp0_desc, 0, value.t3h_1);
|
|
720
|
+
tmp1_output.f24(tmp0_desc, 1, TypeListSerializer_getInstance(), value.u3h_1);
|
|
721
|
+
if (tmp1_output.l24(tmp0_desc, 2) ? true : !(value.v3h_1 == null)) {
|
|
722
|
+
tmp1_output.h24(tmp0_desc, 2, StringSerializer_getInstance(), value.v3h_1);
|
|
659
723
|
}
|
|
660
|
-
if (tmp1_output.
|
|
661
|
-
tmp1_output.
|
|
724
|
+
if (tmp1_output.l24(tmp0_desc, 3) ? true : !(value.w3h_1 == null)) {
|
|
725
|
+
tmp1_output.h24(tmp0_desc, 3, StringSerializer_getInstance(), value.w3h_1);
|
|
662
726
|
}
|
|
663
|
-
tmp1_output.
|
|
727
|
+
tmp1_output.p22(tmp0_desc);
|
|
664
728
|
};
|
|
665
|
-
protoOf($serializer).
|
|
666
|
-
return this.
|
|
729
|
+
protoOf($serializer).p1z = function (encoder, value) {
|
|
730
|
+
return this.h3i(encoder, value instanceof Field_0 ? value : THROW_CCE());
|
|
667
731
|
};
|
|
668
|
-
protoOf($serializer).
|
|
669
|
-
var tmp0_desc = this.
|
|
732
|
+
protoOf($serializer).q1z = function (decoder) {
|
|
733
|
+
var tmp0_desc = this.g3i_1;
|
|
670
734
|
var tmp1_flag = true;
|
|
671
735
|
var tmp2_index = 0;
|
|
672
736
|
var tmp3_bitMask0 = 0;
|
|
@@ -674,50 +738,50 @@ protoOf($serializer).l21 = function (decoder) {
|
|
|
674
738
|
var tmp5_local1 = null;
|
|
675
739
|
var tmp6_local2 = null;
|
|
676
740
|
var tmp7_local3 = null;
|
|
677
|
-
var tmp8_input = decoder.
|
|
678
|
-
if (tmp8_input.
|
|
679
|
-
tmp4_local0 = tmp8_input.
|
|
741
|
+
var tmp8_input = decoder.o22(tmp0_desc);
|
|
742
|
+
if (tmp8_input.e23()) {
|
|
743
|
+
tmp4_local0 = tmp8_input.y22(tmp0_desc, 0);
|
|
680
744
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
681
|
-
tmp5_local1 = tmp8_input.
|
|
745
|
+
tmp5_local1 = tmp8_input.a23(tmp0_desc, 1, TypeListSerializer_getInstance(), tmp5_local1);
|
|
682
746
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
683
|
-
tmp6_local2 = tmp8_input.
|
|
747
|
+
tmp6_local2 = tmp8_input.c23(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
684
748
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
685
|
-
tmp7_local3 = tmp8_input.
|
|
749
|
+
tmp7_local3 = tmp8_input.c23(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
|
|
686
750
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
687
751
|
} else
|
|
688
752
|
while (tmp1_flag) {
|
|
689
|
-
tmp2_index = tmp8_input.
|
|
753
|
+
tmp2_index = tmp8_input.f23(tmp0_desc);
|
|
690
754
|
switch (tmp2_index) {
|
|
691
755
|
case -1:
|
|
692
756
|
tmp1_flag = false;
|
|
693
757
|
break;
|
|
694
758
|
case 0:
|
|
695
|
-
tmp4_local0 = tmp8_input.
|
|
759
|
+
tmp4_local0 = tmp8_input.y22(tmp0_desc, 0);
|
|
696
760
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
697
761
|
break;
|
|
698
762
|
case 1:
|
|
699
|
-
tmp5_local1 = tmp8_input.
|
|
763
|
+
tmp5_local1 = tmp8_input.a23(tmp0_desc, 1, TypeListSerializer_getInstance(), tmp5_local1);
|
|
700
764
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
701
765
|
break;
|
|
702
766
|
case 2:
|
|
703
|
-
tmp6_local2 = tmp8_input.
|
|
767
|
+
tmp6_local2 = tmp8_input.c23(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
704
768
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
705
769
|
break;
|
|
706
770
|
case 3:
|
|
707
|
-
tmp7_local3 = tmp8_input.
|
|
771
|
+
tmp7_local3 = tmp8_input.c23(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
|
|
708
772
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
709
773
|
break;
|
|
710
774
|
default:
|
|
711
775
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
712
776
|
}
|
|
713
777
|
}
|
|
714
|
-
tmp8_input.
|
|
778
|
+
tmp8_input.p22(tmp0_desc);
|
|
715
779
|
return Field_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
716
780
|
};
|
|
717
|
-
protoOf($serializer).
|
|
718
|
-
return this.
|
|
781
|
+
protoOf($serializer).o1z = function () {
|
|
782
|
+
return this.g3i_1;
|
|
719
783
|
};
|
|
720
|
-
protoOf($serializer).
|
|
784
|
+
protoOf($serializer).r2a = function () {
|
|
721
785
|
// Inline function 'kotlin.arrayOf' call
|
|
722
786
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
723
787
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -731,18 +795,18 @@ function $serializer_getInstance() {
|
|
|
731
795
|
}
|
|
732
796
|
function Field_init_$Init$(seen0, name, type, doc, default_0, serializationConstructorMarker, $this) {
|
|
733
797
|
if (!(3 === (3 & seen0))) {
|
|
734
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance().
|
|
798
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance().g3i_1);
|
|
735
799
|
}
|
|
736
|
-
$this.
|
|
737
|
-
$this.
|
|
800
|
+
$this.t3h_1 = name;
|
|
801
|
+
$this.u3h_1 = type;
|
|
738
802
|
if (0 === (seen0 & 4))
|
|
739
|
-
$this.
|
|
803
|
+
$this.v3h_1 = null;
|
|
740
804
|
else
|
|
741
|
-
$this.
|
|
805
|
+
$this.v3h_1 = doc;
|
|
742
806
|
if (0 === (seen0 & 8))
|
|
743
|
-
$this.
|
|
807
|
+
$this.w3h_1 = null;
|
|
744
808
|
else
|
|
745
|
-
$this.
|
|
809
|
+
$this.w3h_1 = default_0;
|
|
746
810
|
return $this;
|
|
747
811
|
}
|
|
748
812
|
function Field_init_$Create$(seen0, name, type, doc, default_0, serializationConstructorMarker) {
|
|
@@ -765,11 +829,11 @@ function Companion_getInstance_0() {
|
|
|
765
829
|
}
|
|
766
830
|
function Companion_1() {
|
|
767
831
|
}
|
|
768
|
-
protoOf(Companion_1).
|
|
832
|
+
protoOf(Companion_1).a2m = function () {
|
|
769
833
|
return TypeSerializer_getInstance();
|
|
770
834
|
};
|
|
771
|
-
protoOf(Companion_1).
|
|
772
|
-
return this.
|
|
835
|
+
protoOf(Companion_1).c2b = function (typeParamsSerializers) {
|
|
836
|
+
return this.a2m();
|
|
773
837
|
};
|
|
774
838
|
var Companion_instance_1;
|
|
775
839
|
function Companion_getInstance_1() {
|
|
@@ -784,50 +848,50 @@ function Companion_getInstance_2() {
|
|
|
784
848
|
function $serializer_0() {
|
|
785
849
|
$serializer_instance_0 = this;
|
|
786
850
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.SimpleType', this, 1);
|
|
787
|
-
tmp0_serialDesc.
|
|
788
|
-
this.
|
|
851
|
+
tmp0_serialDesc.y29('value', false);
|
|
852
|
+
this.i3i_1 = tmp0_serialDesc;
|
|
789
853
|
}
|
|
790
|
-
protoOf($serializer_0).
|
|
791
|
-
var tmp0_desc = this.
|
|
792
|
-
var tmp1_output = encoder.
|
|
793
|
-
tmp1_output.
|
|
794
|
-
tmp1_output.
|
|
854
|
+
protoOf($serializer_0).j3i = function (encoder, value) {
|
|
855
|
+
var tmp0_desc = this.i3i_1;
|
|
856
|
+
var tmp1_output = encoder.o22(tmp0_desc);
|
|
857
|
+
tmp1_output.d24(tmp0_desc, 0, value.z3g_1);
|
|
858
|
+
tmp1_output.p22(tmp0_desc);
|
|
795
859
|
};
|
|
796
|
-
protoOf($serializer_0).
|
|
797
|
-
return this.
|
|
860
|
+
protoOf($serializer_0).p1z = function (encoder, value) {
|
|
861
|
+
return this.j3i(encoder, value instanceof SimpleType ? value : THROW_CCE());
|
|
798
862
|
};
|
|
799
|
-
protoOf($serializer_0).
|
|
800
|
-
var tmp0_desc = this.
|
|
863
|
+
protoOf($serializer_0).q1z = function (decoder) {
|
|
864
|
+
var tmp0_desc = this.i3i_1;
|
|
801
865
|
var tmp1_flag = true;
|
|
802
866
|
var tmp2_index = 0;
|
|
803
867
|
var tmp3_bitMask0 = 0;
|
|
804
868
|
var tmp4_local0 = null;
|
|
805
|
-
var tmp5_input = decoder.
|
|
806
|
-
if (tmp5_input.
|
|
807
|
-
tmp4_local0 = tmp5_input.
|
|
869
|
+
var tmp5_input = decoder.o22(tmp0_desc);
|
|
870
|
+
if (tmp5_input.e23()) {
|
|
871
|
+
tmp4_local0 = tmp5_input.y22(tmp0_desc, 0);
|
|
808
872
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
809
873
|
} else
|
|
810
874
|
while (tmp1_flag) {
|
|
811
|
-
tmp2_index = tmp5_input.
|
|
875
|
+
tmp2_index = tmp5_input.f23(tmp0_desc);
|
|
812
876
|
switch (tmp2_index) {
|
|
813
877
|
case -1:
|
|
814
878
|
tmp1_flag = false;
|
|
815
879
|
break;
|
|
816
880
|
case 0:
|
|
817
|
-
tmp4_local0 = tmp5_input.
|
|
881
|
+
tmp4_local0 = tmp5_input.y22(tmp0_desc, 0);
|
|
818
882
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
819
883
|
break;
|
|
820
884
|
default:
|
|
821
885
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
822
886
|
}
|
|
823
887
|
}
|
|
824
|
-
tmp5_input.
|
|
888
|
+
tmp5_input.p22(tmp0_desc);
|
|
825
889
|
return SimpleType_init_$Create$(tmp3_bitMask0, tmp4_local0, null);
|
|
826
890
|
};
|
|
827
|
-
protoOf($serializer_0).
|
|
828
|
-
return this.
|
|
891
|
+
protoOf($serializer_0).o1z = function () {
|
|
892
|
+
return this.i3i_1;
|
|
829
893
|
};
|
|
830
|
-
protoOf($serializer_0).
|
|
894
|
+
protoOf($serializer_0).r2a = function () {
|
|
831
895
|
// Inline function 'kotlin.arrayOf' call
|
|
832
896
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
833
897
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -841,9 +905,9 @@ function $serializer_getInstance_0() {
|
|
|
841
905
|
}
|
|
842
906
|
function SimpleType_init_$Init$(seen0, value, serializationConstructorMarker, $this) {
|
|
843
907
|
if (!(1 === (1 & seen0))) {
|
|
844
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_0().
|
|
908
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_0().i3i_1);
|
|
845
909
|
}
|
|
846
|
-
$this.
|
|
910
|
+
$this.z3g_1 = value;
|
|
847
911
|
return $this;
|
|
848
912
|
}
|
|
849
913
|
function SimpleType_init_$Create$(seen0, value, serializationConstructorMarker) {
|
|
@@ -859,9 +923,9 @@ function Companion_3() {
|
|
|
859
923
|
// Inline function 'kotlin.arrayOf' call
|
|
860
924
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
861
925
|
// Inline function 'kotlin.js.asDynamic' call
|
|
862
|
-
tmp.
|
|
926
|
+
tmp.k3i_1 = [null, null, null, lazy(tmp_0, AvroModel$RecordType$Companion$$childSerializers$_anonymous__y3fmeq), null];
|
|
863
927
|
}
|
|
864
|
-
protoOf(Companion_3).
|
|
928
|
+
protoOf(Companion_3).a2m = function () {
|
|
865
929
|
return $serializer_getInstance_1();
|
|
866
930
|
};
|
|
867
931
|
var Companion_instance_3;
|
|
@@ -873,33 +937,33 @@ function Companion_getInstance_3() {
|
|
|
873
937
|
function $serializer_1() {
|
|
874
938
|
$serializer_instance_1 = this;
|
|
875
939
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.RecordType', this, 5);
|
|
876
|
-
tmp0_serialDesc.
|
|
877
|
-
tmp0_serialDesc.
|
|
878
|
-
tmp0_serialDesc.
|
|
879
|
-
tmp0_serialDesc.
|
|
880
|
-
tmp0_serialDesc.
|
|
881
|
-
this.
|
|
882
|
-
}
|
|
883
|
-
protoOf($serializer_1).
|
|
884
|
-
var tmp0_desc = this.
|
|
885
|
-
var tmp1_output = encoder.
|
|
886
|
-
var tmp2_cached = Companion_getInstance_3().
|
|
887
|
-
tmp1_output.
|
|
888
|
-
tmp1_output.
|
|
889
|
-
if (tmp1_output.
|
|
890
|
-
tmp1_output.
|
|
940
|
+
tmp0_serialDesc.y29('type', false);
|
|
941
|
+
tmp0_serialDesc.y29('name', false);
|
|
942
|
+
tmp0_serialDesc.y29('namespace', true);
|
|
943
|
+
tmp0_serialDesc.y29('fields', false);
|
|
944
|
+
tmp0_serialDesc.y29('doc', true);
|
|
945
|
+
this.l3i_1 = tmp0_serialDesc;
|
|
946
|
+
}
|
|
947
|
+
protoOf($serializer_1).m3i = function (encoder, value) {
|
|
948
|
+
var tmp0_desc = this.l3i_1;
|
|
949
|
+
var tmp1_output = encoder.o22(tmp0_desc);
|
|
950
|
+
var tmp2_cached = Companion_getInstance_3().k3i_1;
|
|
951
|
+
tmp1_output.d24(tmp0_desc, 0, value.m3h_1);
|
|
952
|
+
tmp1_output.d24(tmp0_desc, 1, value.n3h_1);
|
|
953
|
+
if (tmp1_output.l24(tmp0_desc, 2) ? true : !(value.o3h_1 == null)) {
|
|
954
|
+
tmp1_output.h24(tmp0_desc, 2, StringSerializer_getInstance(), value.o3h_1);
|
|
891
955
|
}
|
|
892
|
-
tmp1_output.
|
|
893
|
-
if (tmp1_output.
|
|
894
|
-
tmp1_output.
|
|
956
|
+
tmp1_output.f24(tmp0_desc, 3, tmp2_cached[3].l1(), value.p3h_1);
|
|
957
|
+
if (tmp1_output.l24(tmp0_desc, 4) ? true : !(value.q3h_1 == null)) {
|
|
958
|
+
tmp1_output.h24(tmp0_desc, 4, StringSerializer_getInstance(), value.q3h_1);
|
|
895
959
|
}
|
|
896
|
-
tmp1_output.
|
|
960
|
+
tmp1_output.p22(tmp0_desc);
|
|
897
961
|
};
|
|
898
|
-
protoOf($serializer_1).
|
|
899
|
-
return this.
|
|
962
|
+
protoOf($serializer_1).p1z = function (encoder, value) {
|
|
963
|
+
return this.m3i(encoder, value instanceof RecordType ? value : THROW_CCE());
|
|
900
964
|
};
|
|
901
|
-
protoOf($serializer_1).
|
|
902
|
-
var tmp0_desc = this.
|
|
965
|
+
protoOf($serializer_1).q1z = function (decoder) {
|
|
966
|
+
var tmp0_desc = this.l3i_1;
|
|
903
967
|
var tmp1_flag = true;
|
|
904
968
|
var tmp2_index = 0;
|
|
905
969
|
var tmp3_bitMask0 = 0;
|
|
@@ -908,58 +972,58 @@ protoOf($serializer_1).l21 = function (decoder) {
|
|
|
908
972
|
var tmp6_local2 = null;
|
|
909
973
|
var tmp7_local3 = null;
|
|
910
974
|
var tmp8_local4 = null;
|
|
911
|
-
var tmp9_input = decoder.
|
|
912
|
-
var tmp10_cached = Companion_getInstance_3().
|
|
913
|
-
if (tmp9_input.
|
|
914
|
-
tmp4_local0 = tmp9_input.
|
|
975
|
+
var tmp9_input = decoder.o22(tmp0_desc);
|
|
976
|
+
var tmp10_cached = Companion_getInstance_3().k3i_1;
|
|
977
|
+
if (tmp9_input.e23()) {
|
|
978
|
+
tmp4_local0 = tmp9_input.y22(tmp0_desc, 0);
|
|
915
979
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
916
|
-
tmp5_local1 = tmp9_input.
|
|
980
|
+
tmp5_local1 = tmp9_input.y22(tmp0_desc, 1);
|
|
917
981
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
918
|
-
tmp6_local2 = tmp9_input.
|
|
982
|
+
tmp6_local2 = tmp9_input.c23(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
919
983
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
920
|
-
tmp7_local3 = tmp9_input.
|
|
984
|
+
tmp7_local3 = tmp9_input.a23(tmp0_desc, 3, tmp10_cached[3].l1(), tmp7_local3);
|
|
921
985
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
922
|
-
tmp8_local4 = tmp9_input.
|
|
986
|
+
tmp8_local4 = tmp9_input.c23(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
|
|
923
987
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
924
988
|
} else
|
|
925
989
|
while (tmp1_flag) {
|
|
926
|
-
tmp2_index = tmp9_input.
|
|
990
|
+
tmp2_index = tmp9_input.f23(tmp0_desc);
|
|
927
991
|
switch (tmp2_index) {
|
|
928
992
|
case -1:
|
|
929
993
|
tmp1_flag = false;
|
|
930
994
|
break;
|
|
931
995
|
case 0:
|
|
932
|
-
tmp4_local0 = tmp9_input.
|
|
996
|
+
tmp4_local0 = tmp9_input.y22(tmp0_desc, 0);
|
|
933
997
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
934
998
|
break;
|
|
935
999
|
case 1:
|
|
936
|
-
tmp5_local1 = tmp9_input.
|
|
1000
|
+
tmp5_local1 = tmp9_input.y22(tmp0_desc, 1);
|
|
937
1001
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
938
1002
|
break;
|
|
939
1003
|
case 2:
|
|
940
|
-
tmp6_local2 = tmp9_input.
|
|
1004
|
+
tmp6_local2 = tmp9_input.c23(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
941
1005
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
942
1006
|
break;
|
|
943
1007
|
case 3:
|
|
944
|
-
tmp7_local3 = tmp9_input.
|
|
1008
|
+
tmp7_local3 = tmp9_input.a23(tmp0_desc, 3, tmp10_cached[3].l1(), tmp7_local3);
|
|
945
1009
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
946
1010
|
break;
|
|
947
1011
|
case 4:
|
|
948
|
-
tmp8_local4 = tmp9_input.
|
|
1012
|
+
tmp8_local4 = tmp9_input.c23(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
|
|
949
1013
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
950
1014
|
break;
|
|
951
1015
|
default:
|
|
952
1016
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
953
1017
|
}
|
|
954
1018
|
}
|
|
955
|
-
tmp9_input.
|
|
1019
|
+
tmp9_input.p22(tmp0_desc);
|
|
956
1020
|
return RecordType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null);
|
|
957
1021
|
};
|
|
958
|
-
protoOf($serializer_1).
|
|
959
|
-
return this.
|
|
1022
|
+
protoOf($serializer_1).o1z = function () {
|
|
1023
|
+
return this.l3i_1;
|
|
960
1024
|
};
|
|
961
|
-
protoOf($serializer_1).
|
|
962
|
-
var tmp0_cached = Companion_getInstance_3().
|
|
1025
|
+
protoOf($serializer_1).r2a = function () {
|
|
1026
|
+
var tmp0_cached = Companion_getInstance_3().k3i_1;
|
|
963
1027
|
// Inline function 'kotlin.arrayOf' call
|
|
964
1028
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
965
1029
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -973,19 +1037,19 @@ function $serializer_getInstance_1() {
|
|
|
973
1037
|
}
|
|
974
1038
|
function RecordType_init_$Init$(seen0, type, name, namespace, fields, doc, serializationConstructorMarker, $this) {
|
|
975
1039
|
if (!(11 === (11 & seen0))) {
|
|
976
|
-
throwMissingFieldException(seen0, 11, $serializer_getInstance_1().
|
|
1040
|
+
throwMissingFieldException(seen0, 11, $serializer_getInstance_1().l3i_1);
|
|
977
1041
|
}
|
|
978
|
-
$this.
|
|
979
|
-
$this.
|
|
1042
|
+
$this.m3h_1 = type;
|
|
1043
|
+
$this.n3h_1 = name;
|
|
980
1044
|
if (0 === (seen0 & 4))
|
|
981
|
-
$this.
|
|
1045
|
+
$this.o3h_1 = null;
|
|
982
1046
|
else
|
|
983
|
-
$this.
|
|
984
|
-
$this.
|
|
1047
|
+
$this.o3h_1 = namespace;
|
|
1048
|
+
$this.p3h_1 = fields;
|
|
985
1049
|
if (0 === (seen0 & 16))
|
|
986
|
-
$this.
|
|
1050
|
+
$this.q3h_1 = null;
|
|
987
1051
|
else
|
|
988
|
-
$this.
|
|
1052
|
+
$this.q3h_1 = doc;
|
|
989
1053
|
return $this;
|
|
990
1054
|
}
|
|
991
1055
|
function RecordType_init_$Create$(seen0, type, name, namespace, fields, doc, serializationConstructorMarker) {
|
|
@@ -993,7 +1057,7 @@ function RecordType_init_$Create$(seen0, type, name, namespace, fields, doc, ser
|
|
|
993
1057
|
}
|
|
994
1058
|
function Companion_4() {
|
|
995
1059
|
}
|
|
996
|
-
protoOf(Companion_4).
|
|
1060
|
+
protoOf(Companion_4).a2m = function () {
|
|
997
1061
|
return $serializer_getInstance_2();
|
|
998
1062
|
};
|
|
999
1063
|
var Companion_instance_4;
|
|
@@ -1003,59 +1067,59 @@ function Companion_getInstance_4() {
|
|
|
1003
1067
|
function $serializer_2() {
|
|
1004
1068
|
$serializer_instance_2 = this;
|
|
1005
1069
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.ArrayType', this, 2);
|
|
1006
|
-
tmp0_serialDesc.
|
|
1007
|
-
tmp0_serialDesc.
|
|
1008
|
-
this.
|
|
1009
|
-
}
|
|
1010
|
-
protoOf($serializer_2).
|
|
1011
|
-
var tmp0_desc = this.
|
|
1012
|
-
var tmp1_output = encoder.
|
|
1013
|
-
tmp1_output.
|
|
1014
|
-
tmp1_output.
|
|
1015
|
-
tmp1_output.
|
|
1016
|
-
};
|
|
1017
|
-
protoOf($serializer_2).
|
|
1018
|
-
return this.
|
|
1019
|
-
};
|
|
1020
|
-
protoOf($serializer_2).
|
|
1021
|
-
var tmp0_desc = this.
|
|
1070
|
+
tmp0_serialDesc.y29('type', false);
|
|
1071
|
+
tmp0_serialDesc.y29('items', false);
|
|
1072
|
+
this.n3i_1 = tmp0_serialDesc;
|
|
1073
|
+
}
|
|
1074
|
+
protoOf($serializer_2).o3i = function (encoder, value) {
|
|
1075
|
+
var tmp0_desc = this.n3i_1;
|
|
1076
|
+
var tmp1_output = encoder.o22(tmp0_desc);
|
|
1077
|
+
tmp1_output.d24(tmp0_desc, 0, value.r3h_1);
|
|
1078
|
+
tmp1_output.f24(tmp0_desc, 1, TypeSerializer_getInstance(), value.s3h_1);
|
|
1079
|
+
tmp1_output.p22(tmp0_desc);
|
|
1080
|
+
};
|
|
1081
|
+
protoOf($serializer_2).p1z = function (encoder, value) {
|
|
1082
|
+
return this.o3i(encoder, value instanceof ArrayType ? value : THROW_CCE());
|
|
1083
|
+
};
|
|
1084
|
+
protoOf($serializer_2).q1z = function (decoder) {
|
|
1085
|
+
var tmp0_desc = this.n3i_1;
|
|
1022
1086
|
var tmp1_flag = true;
|
|
1023
1087
|
var tmp2_index = 0;
|
|
1024
1088
|
var tmp3_bitMask0 = 0;
|
|
1025
1089
|
var tmp4_local0 = null;
|
|
1026
1090
|
var tmp5_local1 = null;
|
|
1027
|
-
var tmp6_input = decoder.
|
|
1028
|
-
if (tmp6_input.
|
|
1029
|
-
tmp4_local0 = tmp6_input.
|
|
1091
|
+
var tmp6_input = decoder.o22(tmp0_desc);
|
|
1092
|
+
if (tmp6_input.e23()) {
|
|
1093
|
+
tmp4_local0 = tmp6_input.y22(tmp0_desc, 0);
|
|
1030
1094
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1031
|
-
tmp5_local1 = tmp6_input.
|
|
1095
|
+
tmp5_local1 = tmp6_input.a23(tmp0_desc, 1, TypeSerializer_getInstance(), tmp5_local1);
|
|
1032
1096
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1033
1097
|
} else
|
|
1034
1098
|
while (tmp1_flag) {
|
|
1035
|
-
tmp2_index = tmp6_input.
|
|
1099
|
+
tmp2_index = tmp6_input.f23(tmp0_desc);
|
|
1036
1100
|
switch (tmp2_index) {
|
|
1037
1101
|
case -1:
|
|
1038
1102
|
tmp1_flag = false;
|
|
1039
1103
|
break;
|
|
1040
1104
|
case 0:
|
|
1041
|
-
tmp4_local0 = tmp6_input.
|
|
1105
|
+
tmp4_local0 = tmp6_input.y22(tmp0_desc, 0);
|
|
1042
1106
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1043
1107
|
break;
|
|
1044
1108
|
case 1:
|
|
1045
|
-
tmp5_local1 = tmp6_input.
|
|
1109
|
+
tmp5_local1 = tmp6_input.a23(tmp0_desc, 1, TypeSerializer_getInstance(), tmp5_local1);
|
|
1046
1110
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1047
1111
|
break;
|
|
1048
1112
|
default:
|
|
1049
1113
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1050
1114
|
}
|
|
1051
1115
|
}
|
|
1052
|
-
tmp6_input.
|
|
1116
|
+
tmp6_input.p22(tmp0_desc);
|
|
1053
1117
|
return ArrayType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1054
1118
|
};
|
|
1055
|
-
protoOf($serializer_2).
|
|
1056
|
-
return this.
|
|
1119
|
+
protoOf($serializer_2).o1z = function () {
|
|
1120
|
+
return this.n3i_1;
|
|
1057
1121
|
};
|
|
1058
|
-
protoOf($serializer_2).
|
|
1122
|
+
protoOf($serializer_2).r2a = function () {
|
|
1059
1123
|
// Inline function 'kotlin.arrayOf' call
|
|
1060
1124
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1061
1125
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1069,10 +1133,10 @@ function $serializer_getInstance_2() {
|
|
|
1069
1133
|
}
|
|
1070
1134
|
function ArrayType_init_$Init$(seen0, type, items, serializationConstructorMarker, $this) {
|
|
1071
1135
|
if (!(3 === (3 & seen0))) {
|
|
1072
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().
|
|
1136
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().n3i_1);
|
|
1073
1137
|
}
|
|
1074
|
-
$this.
|
|
1075
|
-
$this.
|
|
1138
|
+
$this.r3h_1 = type;
|
|
1139
|
+
$this.s3h_1 = items;
|
|
1076
1140
|
return $this;
|
|
1077
1141
|
}
|
|
1078
1142
|
function ArrayType_init_$Create$(seen0, type, items, serializationConstructorMarker) {
|
|
@@ -1080,7 +1144,7 @@ function ArrayType_init_$Create$(seen0, type, items, serializationConstructorMar
|
|
|
1080
1144
|
}
|
|
1081
1145
|
function Companion_5() {
|
|
1082
1146
|
}
|
|
1083
|
-
protoOf(Companion_5).
|
|
1147
|
+
protoOf(Companion_5).a2m = function () {
|
|
1084
1148
|
return $serializer_getInstance_3();
|
|
1085
1149
|
};
|
|
1086
1150
|
var Companion_instance_5;
|
|
@@ -1090,59 +1154,59 @@ function Companion_getInstance_5() {
|
|
|
1090
1154
|
function $serializer_3() {
|
|
1091
1155
|
$serializer_instance_3 = this;
|
|
1092
1156
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.MapType', this, 2);
|
|
1093
|
-
tmp0_serialDesc.
|
|
1094
|
-
tmp0_serialDesc.
|
|
1095
|
-
this.
|
|
1096
|
-
}
|
|
1097
|
-
protoOf($serializer_3).
|
|
1098
|
-
var tmp0_desc = this.
|
|
1099
|
-
var tmp1_output = encoder.
|
|
1100
|
-
tmp1_output.
|
|
1101
|
-
tmp1_output.
|
|
1102
|
-
tmp1_output.
|
|
1103
|
-
};
|
|
1104
|
-
protoOf($serializer_3).
|
|
1105
|
-
return this.
|
|
1106
|
-
};
|
|
1107
|
-
protoOf($serializer_3).
|
|
1108
|
-
var tmp0_desc = this.
|
|
1157
|
+
tmp0_serialDesc.y29('type', false);
|
|
1158
|
+
tmp0_serialDesc.y29('values', false);
|
|
1159
|
+
this.p3i_1 = tmp0_serialDesc;
|
|
1160
|
+
}
|
|
1161
|
+
protoOf($serializer_3).q3i = function (encoder, value) {
|
|
1162
|
+
var tmp0_desc = this.p3i_1;
|
|
1163
|
+
var tmp1_output = encoder.o22(tmp0_desc);
|
|
1164
|
+
tmp1_output.d24(tmp0_desc, 0, value.c3h_1);
|
|
1165
|
+
tmp1_output.f24(tmp0_desc, 1, TypeSerializer_getInstance(), value.d3h_1);
|
|
1166
|
+
tmp1_output.p22(tmp0_desc);
|
|
1167
|
+
};
|
|
1168
|
+
protoOf($serializer_3).p1z = function (encoder, value) {
|
|
1169
|
+
return this.q3i(encoder, value instanceof MapType ? value : THROW_CCE());
|
|
1170
|
+
};
|
|
1171
|
+
protoOf($serializer_3).q1z = function (decoder) {
|
|
1172
|
+
var tmp0_desc = this.p3i_1;
|
|
1109
1173
|
var tmp1_flag = true;
|
|
1110
1174
|
var tmp2_index = 0;
|
|
1111
1175
|
var tmp3_bitMask0 = 0;
|
|
1112
1176
|
var tmp4_local0 = null;
|
|
1113
1177
|
var tmp5_local1 = null;
|
|
1114
|
-
var tmp6_input = decoder.
|
|
1115
|
-
if (tmp6_input.
|
|
1116
|
-
tmp4_local0 = tmp6_input.
|
|
1178
|
+
var tmp6_input = decoder.o22(tmp0_desc);
|
|
1179
|
+
if (tmp6_input.e23()) {
|
|
1180
|
+
tmp4_local0 = tmp6_input.y22(tmp0_desc, 0);
|
|
1117
1181
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1118
|
-
tmp5_local1 = tmp6_input.
|
|
1182
|
+
tmp5_local1 = tmp6_input.a23(tmp0_desc, 1, TypeSerializer_getInstance(), tmp5_local1);
|
|
1119
1183
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1120
1184
|
} else
|
|
1121
1185
|
while (tmp1_flag) {
|
|
1122
|
-
tmp2_index = tmp6_input.
|
|
1186
|
+
tmp2_index = tmp6_input.f23(tmp0_desc);
|
|
1123
1187
|
switch (tmp2_index) {
|
|
1124
1188
|
case -1:
|
|
1125
1189
|
tmp1_flag = false;
|
|
1126
1190
|
break;
|
|
1127
1191
|
case 0:
|
|
1128
|
-
tmp4_local0 = tmp6_input.
|
|
1192
|
+
tmp4_local0 = tmp6_input.y22(tmp0_desc, 0);
|
|
1129
1193
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1130
1194
|
break;
|
|
1131
1195
|
case 1:
|
|
1132
|
-
tmp5_local1 = tmp6_input.
|
|
1196
|
+
tmp5_local1 = tmp6_input.a23(tmp0_desc, 1, TypeSerializer_getInstance(), tmp5_local1);
|
|
1133
1197
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1134
1198
|
break;
|
|
1135
1199
|
default:
|
|
1136
1200
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1137
1201
|
}
|
|
1138
1202
|
}
|
|
1139
|
-
tmp6_input.
|
|
1203
|
+
tmp6_input.p22(tmp0_desc);
|
|
1140
1204
|
return MapType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1141
1205
|
};
|
|
1142
|
-
protoOf($serializer_3).
|
|
1143
|
-
return this.
|
|
1206
|
+
protoOf($serializer_3).o1z = function () {
|
|
1207
|
+
return this.p3i_1;
|
|
1144
1208
|
};
|
|
1145
|
-
protoOf($serializer_3).
|
|
1209
|
+
protoOf($serializer_3).r2a = function () {
|
|
1146
1210
|
// Inline function 'kotlin.arrayOf' call
|
|
1147
1211
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1148
1212
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1156,10 +1220,10 @@ function $serializer_getInstance_3() {
|
|
|
1156
1220
|
}
|
|
1157
1221
|
function MapType_init_$Init$(seen0, type, values, serializationConstructorMarker, $this) {
|
|
1158
1222
|
if (!(3 === (3 & seen0))) {
|
|
1159
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_3().
|
|
1223
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_3().p3i_1);
|
|
1160
1224
|
}
|
|
1161
|
-
$this.
|
|
1162
|
-
$this.
|
|
1225
|
+
$this.c3h_1 = type;
|
|
1226
|
+
$this.d3h_1 = values;
|
|
1163
1227
|
return $this;
|
|
1164
1228
|
}
|
|
1165
1229
|
function MapType_init_$Create$(seen0, type, values, serializationConstructorMarker) {
|
|
@@ -1175,9 +1239,9 @@ function Companion_6() {
|
|
|
1175
1239
|
// Inline function 'kotlin.arrayOf' call
|
|
1176
1240
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1177
1241
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1178
|
-
tmp.
|
|
1242
|
+
tmp.r3i_1 = [null, null, null, lazy(tmp_0, AvroModel$EnumType$Companion$$childSerializers$_anonymous__vqfr9a)];
|
|
1179
1243
|
}
|
|
1180
|
-
protoOf(Companion_6).
|
|
1244
|
+
protoOf(Companion_6).a2m = function () {
|
|
1181
1245
|
return $serializer_getInstance_4();
|
|
1182
1246
|
};
|
|
1183
1247
|
var Companion_instance_6;
|
|
@@ -1189,29 +1253,29 @@ function Companion_getInstance_6() {
|
|
|
1189
1253
|
function $serializer_4() {
|
|
1190
1254
|
$serializer_instance_4 = this;
|
|
1191
1255
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.EnumType', this, 4);
|
|
1192
|
-
tmp0_serialDesc.
|
|
1193
|
-
tmp0_serialDesc.
|
|
1194
|
-
tmp0_serialDesc.
|
|
1195
|
-
tmp0_serialDesc.
|
|
1196
|
-
this.
|
|
1197
|
-
}
|
|
1198
|
-
protoOf($serializer_4).
|
|
1199
|
-
var tmp0_desc = this.
|
|
1200
|
-
var tmp1_output = encoder.
|
|
1201
|
-
var tmp2_cached = Companion_getInstance_6().
|
|
1202
|
-
tmp1_output.
|
|
1203
|
-
tmp1_output.
|
|
1204
|
-
if (tmp1_output.
|
|
1205
|
-
tmp1_output.
|
|
1256
|
+
tmp0_serialDesc.y29('type', false);
|
|
1257
|
+
tmp0_serialDesc.y29('name', false);
|
|
1258
|
+
tmp0_serialDesc.y29('doc', true);
|
|
1259
|
+
tmp0_serialDesc.y29('symbols', false);
|
|
1260
|
+
this.s3i_1 = tmp0_serialDesc;
|
|
1261
|
+
}
|
|
1262
|
+
protoOf($serializer_4).t3i = function (encoder, value) {
|
|
1263
|
+
var tmp0_desc = this.s3i_1;
|
|
1264
|
+
var tmp1_output = encoder.o22(tmp0_desc);
|
|
1265
|
+
var tmp2_cached = Companion_getInstance_6().r3i_1;
|
|
1266
|
+
tmp1_output.d24(tmp0_desc, 0, value.i3h_1);
|
|
1267
|
+
tmp1_output.d24(tmp0_desc, 1, value.j3h_1);
|
|
1268
|
+
if (tmp1_output.l24(tmp0_desc, 2) ? true : !(value.k3h_1 == null)) {
|
|
1269
|
+
tmp1_output.h24(tmp0_desc, 2, StringSerializer_getInstance(), value.k3h_1);
|
|
1206
1270
|
}
|
|
1207
|
-
tmp1_output.
|
|
1208
|
-
tmp1_output.
|
|
1271
|
+
tmp1_output.f24(tmp0_desc, 3, tmp2_cached[3].l1(), value.l3h_1);
|
|
1272
|
+
tmp1_output.p22(tmp0_desc);
|
|
1209
1273
|
};
|
|
1210
|
-
protoOf($serializer_4).
|
|
1211
|
-
return this.
|
|
1274
|
+
protoOf($serializer_4).p1z = function (encoder, value) {
|
|
1275
|
+
return this.t3i(encoder, value instanceof EnumType ? value : THROW_CCE());
|
|
1212
1276
|
};
|
|
1213
|
-
protoOf($serializer_4).
|
|
1214
|
-
var tmp0_desc = this.
|
|
1277
|
+
protoOf($serializer_4).q1z = function (decoder) {
|
|
1278
|
+
var tmp0_desc = this.s3i_1;
|
|
1215
1279
|
var tmp1_flag = true;
|
|
1216
1280
|
var tmp2_index = 0;
|
|
1217
1281
|
var tmp3_bitMask0 = 0;
|
|
@@ -1219,52 +1283,52 @@ protoOf($serializer_4).l21 = function (decoder) {
|
|
|
1219
1283
|
var tmp5_local1 = null;
|
|
1220
1284
|
var tmp6_local2 = null;
|
|
1221
1285
|
var tmp7_local3 = null;
|
|
1222
|
-
var tmp8_input = decoder.
|
|
1223
|
-
var tmp9_cached = Companion_getInstance_6().
|
|
1224
|
-
if (tmp8_input.
|
|
1225
|
-
tmp4_local0 = tmp8_input.
|
|
1286
|
+
var tmp8_input = decoder.o22(tmp0_desc);
|
|
1287
|
+
var tmp9_cached = Companion_getInstance_6().r3i_1;
|
|
1288
|
+
if (tmp8_input.e23()) {
|
|
1289
|
+
tmp4_local0 = tmp8_input.y22(tmp0_desc, 0);
|
|
1226
1290
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1227
|
-
tmp5_local1 = tmp8_input.
|
|
1291
|
+
tmp5_local1 = tmp8_input.y22(tmp0_desc, 1);
|
|
1228
1292
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1229
|
-
tmp6_local2 = tmp8_input.
|
|
1293
|
+
tmp6_local2 = tmp8_input.c23(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1230
1294
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1231
|
-
tmp7_local3 = tmp8_input.
|
|
1295
|
+
tmp7_local3 = tmp8_input.a23(tmp0_desc, 3, tmp9_cached[3].l1(), tmp7_local3);
|
|
1232
1296
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1233
1297
|
} else
|
|
1234
1298
|
while (tmp1_flag) {
|
|
1235
|
-
tmp2_index = tmp8_input.
|
|
1299
|
+
tmp2_index = tmp8_input.f23(tmp0_desc);
|
|
1236
1300
|
switch (tmp2_index) {
|
|
1237
1301
|
case -1:
|
|
1238
1302
|
tmp1_flag = false;
|
|
1239
1303
|
break;
|
|
1240
1304
|
case 0:
|
|
1241
|
-
tmp4_local0 = tmp8_input.
|
|
1305
|
+
tmp4_local0 = tmp8_input.y22(tmp0_desc, 0);
|
|
1242
1306
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1243
1307
|
break;
|
|
1244
1308
|
case 1:
|
|
1245
|
-
tmp5_local1 = tmp8_input.
|
|
1309
|
+
tmp5_local1 = tmp8_input.y22(tmp0_desc, 1);
|
|
1246
1310
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1247
1311
|
break;
|
|
1248
1312
|
case 2:
|
|
1249
|
-
tmp6_local2 = tmp8_input.
|
|
1313
|
+
tmp6_local2 = tmp8_input.c23(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1250
1314
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1251
1315
|
break;
|
|
1252
1316
|
case 3:
|
|
1253
|
-
tmp7_local3 = tmp8_input.
|
|
1317
|
+
tmp7_local3 = tmp8_input.a23(tmp0_desc, 3, tmp9_cached[3].l1(), tmp7_local3);
|
|
1254
1318
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1255
1319
|
break;
|
|
1256
1320
|
default:
|
|
1257
1321
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1258
1322
|
}
|
|
1259
1323
|
}
|
|
1260
|
-
tmp8_input.
|
|
1324
|
+
tmp8_input.p22(tmp0_desc);
|
|
1261
1325
|
return EnumType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
1262
1326
|
};
|
|
1263
|
-
protoOf($serializer_4).
|
|
1264
|
-
return this.
|
|
1327
|
+
protoOf($serializer_4).o1z = function () {
|
|
1328
|
+
return this.s3i_1;
|
|
1265
1329
|
};
|
|
1266
|
-
protoOf($serializer_4).
|
|
1267
|
-
var tmp0_cached = Companion_getInstance_6().
|
|
1330
|
+
protoOf($serializer_4).r2a = function () {
|
|
1331
|
+
var tmp0_cached = Companion_getInstance_6().r3i_1;
|
|
1268
1332
|
// Inline function 'kotlin.arrayOf' call
|
|
1269
1333
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1270
1334
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1278,15 +1342,15 @@ function $serializer_getInstance_4() {
|
|
|
1278
1342
|
}
|
|
1279
1343
|
function EnumType_init_$Init$(seen0, type, name, doc, symbols, serializationConstructorMarker, $this) {
|
|
1280
1344
|
if (!(11 === (11 & seen0))) {
|
|
1281
|
-
throwMissingFieldException(seen0, 11, $serializer_getInstance_4().
|
|
1345
|
+
throwMissingFieldException(seen0, 11, $serializer_getInstance_4().s3i_1);
|
|
1282
1346
|
}
|
|
1283
|
-
$this.
|
|
1284
|
-
$this.
|
|
1347
|
+
$this.i3h_1 = type;
|
|
1348
|
+
$this.j3h_1 = name;
|
|
1285
1349
|
if (0 === (seen0 & 4))
|
|
1286
|
-
$this.
|
|
1350
|
+
$this.k3h_1 = null;
|
|
1287
1351
|
else
|
|
1288
|
-
$this.
|
|
1289
|
-
$this.
|
|
1352
|
+
$this.k3h_1 = doc;
|
|
1353
|
+
$this.l3h_1 = symbols;
|
|
1290
1354
|
return $this;
|
|
1291
1355
|
}
|
|
1292
1356
|
function EnumType_init_$Create$(seen0, type, name, doc, symbols, serializationConstructorMarker) {
|
|
@@ -1294,7 +1358,7 @@ function EnumType_init_$Create$(seen0, type, name, doc, symbols, serializationCo
|
|
|
1294
1358
|
}
|
|
1295
1359
|
function Companion_7() {
|
|
1296
1360
|
}
|
|
1297
|
-
protoOf(Companion_7).
|
|
1361
|
+
protoOf(Companion_7).a2m = function () {
|
|
1298
1362
|
return $serializer_getInstance_5();
|
|
1299
1363
|
};
|
|
1300
1364
|
var Companion_instance_7;
|
|
@@ -1304,59 +1368,59 @@ function Companion_getInstance_7() {
|
|
|
1304
1368
|
function $serializer_5() {
|
|
1305
1369
|
$serializer_instance_5 = this;
|
|
1306
1370
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.UnionType', this, 2);
|
|
1307
|
-
tmp0_serialDesc.
|
|
1308
|
-
tmp0_serialDesc.
|
|
1309
|
-
this.
|
|
1310
|
-
}
|
|
1311
|
-
protoOf($serializer_5).
|
|
1312
|
-
var tmp0_desc = this.
|
|
1313
|
-
var tmp1_output = encoder.
|
|
1314
|
-
tmp1_output.
|
|
1315
|
-
tmp1_output.
|
|
1316
|
-
tmp1_output.
|
|
1317
|
-
};
|
|
1318
|
-
protoOf($serializer_5).
|
|
1319
|
-
return this.
|
|
1320
|
-
};
|
|
1321
|
-
protoOf($serializer_5).
|
|
1322
|
-
var tmp0_desc = this.
|
|
1371
|
+
tmp0_serialDesc.y29('name', false);
|
|
1372
|
+
tmp0_serialDesc.y29('type', false);
|
|
1373
|
+
this.u3i_1 = tmp0_serialDesc;
|
|
1374
|
+
}
|
|
1375
|
+
protoOf($serializer_5).v3i = function (encoder, value) {
|
|
1376
|
+
var tmp0_desc = this.u3i_1;
|
|
1377
|
+
var tmp1_output = encoder.o22(tmp0_desc);
|
|
1378
|
+
tmp1_output.d24(tmp0_desc, 0, value.a3h_1);
|
|
1379
|
+
tmp1_output.f24(tmp0_desc, 1, TypeListSerializer_getInstance(), value.b3h_1);
|
|
1380
|
+
tmp1_output.p22(tmp0_desc);
|
|
1381
|
+
};
|
|
1382
|
+
protoOf($serializer_5).p1z = function (encoder, value) {
|
|
1383
|
+
return this.v3i(encoder, value instanceof UnionType ? value : THROW_CCE());
|
|
1384
|
+
};
|
|
1385
|
+
protoOf($serializer_5).q1z = function (decoder) {
|
|
1386
|
+
var tmp0_desc = this.u3i_1;
|
|
1323
1387
|
var tmp1_flag = true;
|
|
1324
1388
|
var tmp2_index = 0;
|
|
1325
1389
|
var tmp3_bitMask0 = 0;
|
|
1326
1390
|
var tmp4_local0 = null;
|
|
1327
1391
|
var tmp5_local1 = null;
|
|
1328
|
-
var tmp6_input = decoder.
|
|
1329
|
-
if (tmp6_input.
|
|
1330
|
-
tmp4_local0 = tmp6_input.
|
|
1392
|
+
var tmp6_input = decoder.o22(tmp0_desc);
|
|
1393
|
+
if (tmp6_input.e23()) {
|
|
1394
|
+
tmp4_local0 = tmp6_input.y22(tmp0_desc, 0);
|
|
1331
1395
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1332
|
-
tmp5_local1 = tmp6_input.
|
|
1396
|
+
tmp5_local1 = tmp6_input.a23(tmp0_desc, 1, TypeListSerializer_getInstance(), tmp5_local1);
|
|
1333
1397
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1334
1398
|
} else
|
|
1335
1399
|
while (tmp1_flag) {
|
|
1336
|
-
tmp2_index = tmp6_input.
|
|
1400
|
+
tmp2_index = tmp6_input.f23(tmp0_desc);
|
|
1337
1401
|
switch (tmp2_index) {
|
|
1338
1402
|
case -1:
|
|
1339
1403
|
tmp1_flag = false;
|
|
1340
1404
|
break;
|
|
1341
1405
|
case 0:
|
|
1342
|
-
tmp4_local0 = tmp6_input.
|
|
1406
|
+
tmp4_local0 = tmp6_input.y22(tmp0_desc, 0);
|
|
1343
1407
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1344
1408
|
break;
|
|
1345
1409
|
case 1:
|
|
1346
|
-
tmp5_local1 = tmp6_input.
|
|
1410
|
+
tmp5_local1 = tmp6_input.a23(tmp0_desc, 1, TypeListSerializer_getInstance(), tmp5_local1);
|
|
1347
1411
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1348
1412
|
break;
|
|
1349
1413
|
default:
|
|
1350
1414
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1351
1415
|
}
|
|
1352
1416
|
}
|
|
1353
|
-
tmp6_input.
|
|
1417
|
+
tmp6_input.p22(tmp0_desc);
|
|
1354
1418
|
return UnionType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1355
1419
|
};
|
|
1356
|
-
protoOf($serializer_5).
|
|
1357
|
-
return this.
|
|
1420
|
+
protoOf($serializer_5).o1z = function () {
|
|
1421
|
+
return this.u3i_1;
|
|
1358
1422
|
};
|
|
1359
|
-
protoOf($serializer_5).
|
|
1423
|
+
protoOf($serializer_5).r2a = function () {
|
|
1360
1424
|
// Inline function 'kotlin.arrayOf' call
|
|
1361
1425
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1362
1426
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1370,10 +1434,10 @@ function $serializer_getInstance_5() {
|
|
|
1370
1434
|
}
|
|
1371
1435
|
function UnionType_init_$Init$(seen0, name, type, serializationConstructorMarker, $this) {
|
|
1372
1436
|
if (!(3 === (3 & seen0))) {
|
|
1373
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_5().
|
|
1437
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_5().u3i_1);
|
|
1374
1438
|
}
|
|
1375
|
-
$this.
|
|
1376
|
-
$this.
|
|
1439
|
+
$this.a3h_1 = name;
|
|
1440
|
+
$this.b3h_1 = type;
|
|
1377
1441
|
return $this;
|
|
1378
1442
|
}
|
|
1379
1443
|
function UnionType_init_$Create$(seen0, name, type, serializationConstructorMarker) {
|
|
@@ -1381,7 +1445,7 @@ function UnionType_init_$Create$(seen0, name, type, serializationConstructorMark
|
|
|
1381
1445
|
}
|
|
1382
1446
|
function Companion_8() {
|
|
1383
1447
|
}
|
|
1384
|
-
protoOf(Companion_8).
|
|
1448
|
+
protoOf(Companion_8).a2m = function () {
|
|
1385
1449
|
return $serializer_getInstance_6();
|
|
1386
1450
|
};
|
|
1387
1451
|
var Companion_instance_8;
|
|
@@ -1391,30 +1455,30 @@ function Companion_getInstance_8() {
|
|
|
1391
1455
|
function $serializer_6() {
|
|
1392
1456
|
$serializer_instance_6 = this;
|
|
1393
1457
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.LogicalType', this, 4);
|
|
1394
|
-
tmp0_serialDesc.
|
|
1395
|
-
tmp0_serialDesc.
|
|
1396
|
-
tmp0_serialDesc.
|
|
1397
|
-
tmp0_serialDesc.
|
|
1398
|
-
this.
|
|
1399
|
-
}
|
|
1400
|
-
protoOf($serializer_6).
|
|
1401
|
-
var tmp0_desc = this.
|
|
1402
|
-
var tmp1_output = encoder.
|
|
1403
|
-
tmp1_output.
|
|
1404
|
-
tmp1_output.
|
|
1405
|
-
if (tmp1_output.
|
|
1406
|
-
tmp1_output.
|
|
1458
|
+
tmp0_serialDesc.y29('type', false);
|
|
1459
|
+
tmp0_serialDesc.y29('logicalType', false);
|
|
1460
|
+
tmp0_serialDesc.y29('precision', true);
|
|
1461
|
+
tmp0_serialDesc.y29('scale', true);
|
|
1462
|
+
this.w3i_1 = tmp0_serialDesc;
|
|
1463
|
+
}
|
|
1464
|
+
protoOf($serializer_6).x3i = function (encoder, value) {
|
|
1465
|
+
var tmp0_desc = this.w3i_1;
|
|
1466
|
+
var tmp1_output = encoder.o22(tmp0_desc);
|
|
1467
|
+
tmp1_output.d24(tmp0_desc, 0, value.e3h_1);
|
|
1468
|
+
tmp1_output.d24(tmp0_desc, 1, value.f3h_1);
|
|
1469
|
+
if (tmp1_output.l24(tmp0_desc, 2) ? true : !(value.g3h_1 == null)) {
|
|
1470
|
+
tmp1_output.h24(tmp0_desc, 2, IntSerializer_getInstance(), value.g3h_1);
|
|
1407
1471
|
}
|
|
1408
|
-
if (tmp1_output.
|
|
1409
|
-
tmp1_output.
|
|
1472
|
+
if (tmp1_output.l24(tmp0_desc, 3) ? true : !(value.h3h_1 == null)) {
|
|
1473
|
+
tmp1_output.h24(tmp0_desc, 3, IntSerializer_getInstance(), value.h3h_1);
|
|
1410
1474
|
}
|
|
1411
|
-
tmp1_output.
|
|
1475
|
+
tmp1_output.p22(tmp0_desc);
|
|
1412
1476
|
};
|
|
1413
|
-
protoOf($serializer_6).
|
|
1414
|
-
return this.
|
|
1477
|
+
protoOf($serializer_6).p1z = function (encoder, value) {
|
|
1478
|
+
return this.x3i(encoder, value instanceof LogicalType ? value : THROW_CCE());
|
|
1415
1479
|
};
|
|
1416
|
-
protoOf($serializer_6).
|
|
1417
|
-
var tmp0_desc = this.
|
|
1480
|
+
protoOf($serializer_6).q1z = function (decoder) {
|
|
1481
|
+
var tmp0_desc = this.w3i_1;
|
|
1418
1482
|
var tmp1_flag = true;
|
|
1419
1483
|
var tmp2_index = 0;
|
|
1420
1484
|
var tmp3_bitMask0 = 0;
|
|
@@ -1422,50 +1486,50 @@ protoOf($serializer_6).l21 = function (decoder) {
|
|
|
1422
1486
|
var tmp5_local1 = null;
|
|
1423
1487
|
var tmp6_local2 = null;
|
|
1424
1488
|
var tmp7_local3 = null;
|
|
1425
|
-
var tmp8_input = decoder.
|
|
1426
|
-
if (tmp8_input.
|
|
1427
|
-
tmp4_local0 = tmp8_input.
|
|
1489
|
+
var tmp8_input = decoder.o22(tmp0_desc);
|
|
1490
|
+
if (tmp8_input.e23()) {
|
|
1491
|
+
tmp4_local0 = tmp8_input.y22(tmp0_desc, 0);
|
|
1428
1492
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1429
|
-
tmp5_local1 = tmp8_input.
|
|
1493
|
+
tmp5_local1 = tmp8_input.y22(tmp0_desc, 1);
|
|
1430
1494
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1431
|
-
tmp6_local2 = tmp8_input.
|
|
1495
|
+
tmp6_local2 = tmp8_input.c23(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
|
|
1432
1496
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1433
|
-
tmp7_local3 = tmp8_input.
|
|
1497
|
+
tmp7_local3 = tmp8_input.c23(tmp0_desc, 3, IntSerializer_getInstance(), tmp7_local3);
|
|
1434
1498
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1435
1499
|
} else
|
|
1436
1500
|
while (tmp1_flag) {
|
|
1437
|
-
tmp2_index = tmp8_input.
|
|
1501
|
+
tmp2_index = tmp8_input.f23(tmp0_desc);
|
|
1438
1502
|
switch (tmp2_index) {
|
|
1439
1503
|
case -1:
|
|
1440
1504
|
tmp1_flag = false;
|
|
1441
1505
|
break;
|
|
1442
1506
|
case 0:
|
|
1443
|
-
tmp4_local0 = tmp8_input.
|
|
1507
|
+
tmp4_local0 = tmp8_input.y22(tmp0_desc, 0);
|
|
1444
1508
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1445
1509
|
break;
|
|
1446
1510
|
case 1:
|
|
1447
|
-
tmp5_local1 = tmp8_input.
|
|
1511
|
+
tmp5_local1 = tmp8_input.y22(tmp0_desc, 1);
|
|
1448
1512
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1449
1513
|
break;
|
|
1450
1514
|
case 2:
|
|
1451
|
-
tmp6_local2 = tmp8_input.
|
|
1515
|
+
tmp6_local2 = tmp8_input.c23(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
|
|
1452
1516
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1453
1517
|
break;
|
|
1454
1518
|
case 3:
|
|
1455
|
-
tmp7_local3 = tmp8_input.
|
|
1519
|
+
tmp7_local3 = tmp8_input.c23(tmp0_desc, 3, IntSerializer_getInstance(), tmp7_local3);
|
|
1456
1520
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1457
1521
|
break;
|
|
1458
1522
|
default:
|
|
1459
1523
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1460
1524
|
}
|
|
1461
1525
|
}
|
|
1462
|
-
tmp8_input.
|
|
1526
|
+
tmp8_input.p22(tmp0_desc);
|
|
1463
1527
|
return LogicalType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
1464
1528
|
};
|
|
1465
|
-
protoOf($serializer_6).
|
|
1466
|
-
return this.
|
|
1529
|
+
protoOf($serializer_6).o1z = function () {
|
|
1530
|
+
return this.w3i_1;
|
|
1467
1531
|
};
|
|
1468
|
-
protoOf($serializer_6).
|
|
1532
|
+
protoOf($serializer_6).r2a = function () {
|
|
1469
1533
|
// Inline function 'kotlin.arrayOf' call
|
|
1470
1534
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1471
1535
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1479,18 +1543,18 @@ function $serializer_getInstance_6() {
|
|
|
1479
1543
|
}
|
|
1480
1544
|
function LogicalType_init_$Init$(seen0, type, logicalType, precision, scale, serializationConstructorMarker, $this) {
|
|
1481
1545
|
if (!(3 === (3 & seen0))) {
|
|
1482
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_6().
|
|
1546
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_6().w3i_1);
|
|
1483
1547
|
}
|
|
1484
|
-
$this.
|
|
1485
|
-
$this.
|
|
1548
|
+
$this.e3h_1 = type;
|
|
1549
|
+
$this.f3h_1 = logicalType;
|
|
1486
1550
|
if (0 === (seen0 & 4))
|
|
1487
|
-
$this.
|
|
1551
|
+
$this.g3h_1 = null;
|
|
1488
1552
|
else
|
|
1489
|
-
$this.
|
|
1553
|
+
$this.g3h_1 = precision;
|
|
1490
1554
|
if (0 === (seen0 & 8))
|
|
1491
|
-
$this.
|
|
1555
|
+
$this.h3h_1 = null;
|
|
1492
1556
|
else
|
|
1493
|
-
$this.
|
|
1557
|
+
$this.h3h_1 = scale;
|
|
1494
1558
|
return $this;
|
|
1495
1559
|
}
|
|
1496
1560
|
function LogicalType_init_$Create$(seen0, type, logicalType, precision, scale, serializationConstructorMarker) {
|
|
@@ -1499,19 +1563,19 @@ function LogicalType_init_$Create$(seen0, type, logicalType, precision, scale, s
|
|
|
1499
1563
|
function Field_0(name, type, doc, default_0) {
|
|
1500
1564
|
doc = doc === VOID ? null : doc;
|
|
1501
1565
|
default_0 = default_0 === VOID ? null : default_0;
|
|
1502
|
-
this.
|
|
1503
|
-
this.
|
|
1504
|
-
this.
|
|
1505
|
-
this.
|
|
1566
|
+
this.t3h_1 = name;
|
|
1567
|
+
this.u3h_1 = type;
|
|
1568
|
+
this.v3h_1 = doc;
|
|
1569
|
+
this.w3h_1 = default_0;
|
|
1506
1570
|
}
|
|
1507
1571
|
protoOf(Field_0).toString = function () {
|
|
1508
|
-
return 'Field(name=' + this.
|
|
1572
|
+
return 'Field(name=' + this.t3h_1 + ', type=' + this.u3h_1.toString() + ', doc=' + this.v3h_1 + ', default=' + this.w3h_1 + ')';
|
|
1509
1573
|
};
|
|
1510
1574
|
protoOf(Field_0).hashCode = function () {
|
|
1511
|
-
var result = getStringHashCode(this.
|
|
1512
|
-
result = imul(result, 31) + this.
|
|
1513
|
-
result = imul(result, 31) + (this.
|
|
1514
|
-
result = imul(result, 31) + (this.
|
|
1575
|
+
var result = getStringHashCode(this.t3h_1);
|
|
1576
|
+
result = imul(result, 31) + this.u3h_1.hashCode() | 0;
|
|
1577
|
+
result = imul(result, 31) + (this.v3h_1 == null ? 0 : getStringHashCode(this.v3h_1)) | 0;
|
|
1578
|
+
result = imul(result, 31) + (this.w3h_1 == null ? 0 : getStringHashCode(this.w3h_1)) | 0;
|
|
1515
1579
|
return result;
|
|
1516
1580
|
};
|
|
1517
1581
|
protoOf(Field_0).equals = function (other) {
|
|
@@ -1519,44 +1583,44 @@ protoOf(Field_0).equals = function (other) {
|
|
|
1519
1583
|
return true;
|
|
1520
1584
|
if (!(other instanceof Field_0))
|
|
1521
1585
|
return false;
|
|
1522
|
-
if (!(this.
|
|
1586
|
+
if (!(this.t3h_1 === other.t3h_1))
|
|
1523
1587
|
return false;
|
|
1524
|
-
if (!this.
|
|
1588
|
+
if (!this.u3h_1.equals(other.u3h_1))
|
|
1525
1589
|
return false;
|
|
1526
|
-
if (!(this.
|
|
1590
|
+
if (!(this.v3h_1 == other.v3h_1))
|
|
1527
1591
|
return false;
|
|
1528
|
-
if (!(this.
|
|
1592
|
+
if (!(this.w3h_1 == other.w3h_1))
|
|
1529
1593
|
return false;
|
|
1530
1594
|
return true;
|
|
1531
1595
|
};
|
|
1532
1596
|
function TypeList(type) {
|
|
1533
1597
|
AbstractList.call(this);
|
|
1534
|
-
this.
|
|
1535
|
-
this.
|
|
1598
|
+
this.y3i_1 = toList_0(type);
|
|
1599
|
+
this.z3i_1 = this.y3i_1.a1();
|
|
1536
1600
|
}
|
|
1537
1601
|
protoOf(TypeList).a1 = function () {
|
|
1538
|
-
return this.
|
|
1602
|
+
return this.z3i_1;
|
|
1539
1603
|
};
|
|
1540
1604
|
protoOf(TypeList).f1 = function (index) {
|
|
1541
|
-
return this.
|
|
1605
|
+
return this.y3i_1.f1(index);
|
|
1542
1606
|
};
|
|
1543
1607
|
function Type_0() {
|
|
1544
1608
|
}
|
|
1545
1609
|
function SimpleType(value) {
|
|
1546
|
-
this.
|
|
1610
|
+
this.z3g_1 = value;
|
|
1547
1611
|
}
|
|
1548
1612
|
protoOf(SimpleType).toString = function () {
|
|
1549
|
-
return 'SimpleType(value=' + this.
|
|
1613
|
+
return 'SimpleType(value=' + this.z3g_1 + ')';
|
|
1550
1614
|
};
|
|
1551
1615
|
protoOf(SimpleType).hashCode = function () {
|
|
1552
|
-
return getStringHashCode(this.
|
|
1616
|
+
return getStringHashCode(this.z3g_1);
|
|
1553
1617
|
};
|
|
1554
1618
|
protoOf(SimpleType).equals = function (other) {
|
|
1555
1619
|
if (this === other)
|
|
1556
1620
|
return true;
|
|
1557
1621
|
if (!(other instanceof SimpleType))
|
|
1558
1622
|
return false;
|
|
1559
|
-
if (!(this.
|
|
1623
|
+
if (!(this.z3g_1 === other.z3g_1))
|
|
1560
1624
|
return false;
|
|
1561
1625
|
return true;
|
|
1562
1626
|
};
|
|
@@ -1564,21 +1628,21 @@ function RecordType(type, name, namespace, fields, doc) {
|
|
|
1564
1628
|
Companion_getInstance_3();
|
|
1565
1629
|
namespace = namespace === VOID ? null : namespace;
|
|
1566
1630
|
doc = doc === VOID ? null : doc;
|
|
1567
|
-
this.
|
|
1568
|
-
this.
|
|
1569
|
-
this.
|
|
1570
|
-
this.
|
|
1571
|
-
this.
|
|
1631
|
+
this.m3h_1 = type;
|
|
1632
|
+
this.n3h_1 = name;
|
|
1633
|
+
this.o3h_1 = namespace;
|
|
1634
|
+
this.p3h_1 = fields;
|
|
1635
|
+
this.q3h_1 = doc;
|
|
1572
1636
|
}
|
|
1573
1637
|
protoOf(RecordType).toString = function () {
|
|
1574
|
-
return 'RecordType(type=' + this.
|
|
1638
|
+
return 'RecordType(type=' + this.m3h_1 + ', name=' + this.n3h_1 + ', namespace=' + this.o3h_1 + ', fields=' + toString(this.p3h_1) + ', doc=' + this.q3h_1 + ')';
|
|
1575
1639
|
};
|
|
1576
1640
|
protoOf(RecordType).hashCode = function () {
|
|
1577
|
-
var result = getStringHashCode(this.
|
|
1578
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1579
|
-
result = imul(result, 31) + (this.
|
|
1580
|
-
result = imul(result, 31) + hashCode(this.
|
|
1581
|
-
result = imul(result, 31) + (this.
|
|
1641
|
+
var result = getStringHashCode(this.m3h_1);
|
|
1642
|
+
result = imul(result, 31) + getStringHashCode(this.n3h_1) | 0;
|
|
1643
|
+
result = imul(result, 31) + (this.o3h_1 == null ? 0 : getStringHashCode(this.o3h_1)) | 0;
|
|
1644
|
+
result = imul(result, 31) + hashCode(this.p3h_1) | 0;
|
|
1645
|
+
result = imul(result, 31) + (this.q3h_1 == null ? 0 : getStringHashCode(this.q3h_1)) | 0;
|
|
1582
1646
|
return result;
|
|
1583
1647
|
};
|
|
1584
1648
|
protoOf(RecordType).equals = function (other) {
|
|
@@ -1586,28 +1650,28 @@ protoOf(RecordType).equals = function (other) {
|
|
|
1586
1650
|
return true;
|
|
1587
1651
|
if (!(other instanceof RecordType))
|
|
1588
1652
|
return false;
|
|
1589
|
-
if (!(this.
|
|
1653
|
+
if (!(this.m3h_1 === other.m3h_1))
|
|
1590
1654
|
return false;
|
|
1591
|
-
if (!(this.
|
|
1655
|
+
if (!(this.n3h_1 === other.n3h_1))
|
|
1592
1656
|
return false;
|
|
1593
|
-
if (!(this.
|
|
1657
|
+
if (!(this.o3h_1 == other.o3h_1))
|
|
1594
1658
|
return false;
|
|
1595
|
-
if (!equals(this.
|
|
1659
|
+
if (!equals(this.p3h_1, other.p3h_1))
|
|
1596
1660
|
return false;
|
|
1597
|
-
if (!(this.
|
|
1661
|
+
if (!(this.q3h_1 == other.q3h_1))
|
|
1598
1662
|
return false;
|
|
1599
1663
|
return true;
|
|
1600
1664
|
};
|
|
1601
1665
|
function ArrayType(type, items) {
|
|
1602
|
-
this.
|
|
1603
|
-
this.
|
|
1666
|
+
this.r3h_1 = type;
|
|
1667
|
+
this.s3h_1 = items;
|
|
1604
1668
|
}
|
|
1605
1669
|
protoOf(ArrayType).toString = function () {
|
|
1606
|
-
return 'ArrayType(type=' + this.
|
|
1670
|
+
return 'ArrayType(type=' + this.r3h_1 + ', items=' + toString(this.s3h_1) + ')';
|
|
1607
1671
|
};
|
|
1608
1672
|
protoOf(ArrayType).hashCode = function () {
|
|
1609
|
-
var result = getStringHashCode(this.
|
|
1610
|
-
result = imul(result, 31) + hashCode(this.
|
|
1673
|
+
var result = getStringHashCode(this.r3h_1);
|
|
1674
|
+
result = imul(result, 31) + hashCode(this.s3h_1) | 0;
|
|
1611
1675
|
return result;
|
|
1612
1676
|
};
|
|
1613
1677
|
protoOf(ArrayType).equals = function (other) {
|
|
@@ -1615,22 +1679,22 @@ protoOf(ArrayType).equals = function (other) {
|
|
|
1615
1679
|
return true;
|
|
1616
1680
|
if (!(other instanceof ArrayType))
|
|
1617
1681
|
return false;
|
|
1618
|
-
if (!(this.
|
|
1682
|
+
if (!(this.r3h_1 === other.r3h_1))
|
|
1619
1683
|
return false;
|
|
1620
|
-
if (!equals(this.
|
|
1684
|
+
if (!equals(this.s3h_1, other.s3h_1))
|
|
1621
1685
|
return false;
|
|
1622
1686
|
return true;
|
|
1623
1687
|
};
|
|
1624
1688
|
function MapType(type, values) {
|
|
1625
|
-
this.
|
|
1626
|
-
this.
|
|
1689
|
+
this.c3h_1 = type;
|
|
1690
|
+
this.d3h_1 = values;
|
|
1627
1691
|
}
|
|
1628
1692
|
protoOf(MapType).toString = function () {
|
|
1629
|
-
return 'MapType(type=' + this.
|
|
1693
|
+
return 'MapType(type=' + this.c3h_1 + ', values=' + toString(this.d3h_1) + ')';
|
|
1630
1694
|
};
|
|
1631
1695
|
protoOf(MapType).hashCode = function () {
|
|
1632
|
-
var result = getStringHashCode(this.
|
|
1633
|
-
result = imul(result, 31) + hashCode(this.
|
|
1696
|
+
var result = getStringHashCode(this.c3h_1);
|
|
1697
|
+
result = imul(result, 31) + hashCode(this.d3h_1) | 0;
|
|
1634
1698
|
return result;
|
|
1635
1699
|
};
|
|
1636
1700
|
protoOf(MapType).equals = function (other) {
|
|
@@ -1638,28 +1702,28 @@ protoOf(MapType).equals = function (other) {
|
|
|
1638
1702
|
return true;
|
|
1639
1703
|
if (!(other instanceof MapType))
|
|
1640
1704
|
return false;
|
|
1641
|
-
if (!(this.
|
|
1705
|
+
if (!(this.c3h_1 === other.c3h_1))
|
|
1642
1706
|
return false;
|
|
1643
|
-
if (!equals(this.
|
|
1707
|
+
if (!equals(this.d3h_1, other.d3h_1))
|
|
1644
1708
|
return false;
|
|
1645
1709
|
return true;
|
|
1646
1710
|
};
|
|
1647
1711
|
function EnumType(type, name, doc, symbols) {
|
|
1648
1712
|
Companion_getInstance_6();
|
|
1649
1713
|
doc = doc === VOID ? null : doc;
|
|
1650
|
-
this.
|
|
1651
|
-
this.
|
|
1652
|
-
this.
|
|
1653
|
-
this.
|
|
1714
|
+
this.i3h_1 = type;
|
|
1715
|
+
this.j3h_1 = name;
|
|
1716
|
+
this.k3h_1 = doc;
|
|
1717
|
+
this.l3h_1 = symbols;
|
|
1654
1718
|
}
|
|
1655
1719
|
protoOf(EnumType).toString = function () {
|
|
1656
|
-
return 'EnumType(type=' + this.
|
|
1720
|
+
return 'EnumType(type=' + this.i3h_1 + ', name=' + this.j3h_1 + ', doc=' + this.k3h_1 + ', symbols=' + toString(this.l3h_1) + ')';
|
|
1657
1721
|
};
|
|
1658
1722
|
protoOf(EnumType).hashCode = function () {
|
|
1659
|
-
var result = getStringHashCode(this.
|
|
1660
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1661
|
-
result = imul(result, 31) + (this.
|
|
1662
|
-
result = imul(result, 31) + hashCode(this.
|
|
1723
|
+
var result = getStringHashCode(this.i3h_1);
|
|
1724
|
+
result = imul(result, 31) + getStringHashCode(this.j3h_1) | 0;
|
|
1725
|
+
result = imul(result, 31) + (this.k3h_1 == null ? 0 : getStringHashCode(this.k3h_1)) | 0;
|
|
1726
|
+
result = imul(result, 31) + hashCode(this.l3h_1) | 0;
|
|
1663
1727
|
return result;
|
|
1664
1728
|
};
|
|
1665
1729
|
protoOf(EnumType).equals = function (other) {
|
|
@@ -1667,26 +1731,26 @@ protoOf(EnumType).equals = function (other) {
|
|
|
1667
1731
|
return true;
|
|
1668
1732
|
if (!(other instanceof EnumType))
|
|
1669
1733
|
return false;
|
|
1670
|
-
if (!(this.
|
|
1734
|
+
if (!(this.i3h_1 === other.i3h_1))
|
|
1671
1735
|
return false;
|
|
1672
|
-
if (!(this.
|
|
1736
|
+
if (!(this.j3h_1 === other.j3h_1))
|
|
1673
1737
|
return false;
|
|
1674
|
-
if (!(this.
|
|
1738
|
+
if (!(this.k3h_1 == other.k3h_1))
|
|
1675
1739
|
return false;
|
|
1676
|
-
if (!equals(this.
|
|
1740
|
+
if (!equals(this.l3h_1, other.l3h_1))
|
|
1677
1741
|
return false;
|
|
1678
1742
|
return true;
|
|
1679
1743
|
};
|
|
1680
1744
|
function UnionType(name, type) {
|
|
1681
|
-
this.
|
|
1682
|
-
this.
|
|
1745
|
+
this.a3h_1 = name;
|
|
1746
|
+
this.b3h_1 = type;
|
|
1683
1747
|
}
|
|
1684
1748
|
protoOf(UnionType).toString = function () {
|
|
1685
|
-
return 'UnionType(name=' + this.
|
|
1749
|
+
return 'UnionType(name=' + this.a3h_1 + ', type=' + this.b3h_1.toString() + ')';
|
|
1686
1750
|
};
|
|
1687
1751
|
protoOf(UnionType).hashCode = function () {
|
|
1688
|
-
var result = getStringHashCode(this.
|
|
1689
|
-
result = imul(result, 31) + this.
|
|
1752
|
+
var result = getStringHashCode(this.a3h_1);
|
|
1753
|
+
result = imul(result, 31) + this.b3h_1.hashCode() | 0;
|
|
1690
1754
|
return result;
|
|
1691
1755
|
};
|
|
1692
1756
|
protoOf(UnionType).equals = function (other) {
|
|
@@ -1694,22 +1758,22 @@ protoOf(UnionType).equals = function (other) {
|
|
|
1694
1758
|
return true;
|
|
1695
1759
|
if (!(other instanceof UnionType))
|
|
1696
1760
|
return false;
|
|
1697
|
-
if (!(this.
|
|
1761
|
+
if (!(this.a3h_1 === other.a3h_1))
|
|
1698
1762
|
return false;
|
|
1699
|
-
if (!this.
|
|
1763
|
+
if (!this.b3h_1.equals(other.b3h_1))
|
|
1700
1764
|
return false;
|
|
1701
1765
|
return true;
|
|
1702
1766
|
};
|
|
1703
1767
|
function LogicalType() {
|
|
1704
1768
|
}
|
|
1705
1769
|
protoOf(LogicalType).toString = function () {
|
|
1706
|
-
return 'LogicalType(type=' + this.
|
|
1770
|
+
return 'LogicalType(type=' + this.e3h_1 + ', logicalType=' + this.f3h_1 + ', precision=' + this.g3h_1 + ', scale=' + this.h3h_1 + ')';
|
|
1707
1771
|
};
|
|
1708
1772
|
protoOf(LogicalType).hashCode = function () {
|
|
1709
|
-
var result = getStringHashCode(this.
|
|
1710
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1711
|
-
result = imul(result, 31) + (this.
|
|
1712
|
-
result = imul(result, 31) + (this.
|
|
1773
|
+
var result = getStringHashCode(this.e3h_1);
|
|
1774
|
+
result = imul(result, 31) + getStringHashCode(this.f3h_1) | 0;
|
|
1775
|
+
result = imul(result, 31) + (this.g3h_1 == null ? 0 : this.g3h_1) | 0;
|
|
1776
|
+
result = imul(result, 31) + (this.h3h_1 == null ? 0 : this.h3h_1) | 0;
|
|
1713
1777
|
return result;
|
|
1714
1778
|
};
|
|
1715
1779
|
protoOf(LogicalType).equals = function (other) {
|
|
@@ -1717,34 +1781,34 @@ protoOf(LogicalType).equals = function (other) {
|
|
|
1717
1781
|
return true;
|
|
1718
1782
|
if (!(other instanceof LogicalType))
|
|
1719
1783
|
return false;
|
|
1720
|
-
if (!(this.
|
|
1784
|
+
if (!(this.e3h_1 === other.e3h_1))
|
|
1721
1785
|
return false;
|
|
1722
|
-
if (!(this.
|
|
1786
|
+
if (!(this.f3h_1 === other.f3h_1))
|
|
1723
1787
|
return false;
|
|
1724
|
-
if (!(this.
|
|
1788
|
+
if (!(this.g3h_1 == other.g3h_1))
|
|
1725
1789
|
return false;
|
|
1726
|
-
if (!(this.
|
|
1790
|
+
if (!(this.h3h_1 == other.h3h_1))
|
|
1727
1791
|
return false;
|
|
1728
1792
|
return true;
|
|
1729
1793
|
};
|
|
1730
1794
|
function TypeListSerializer() {
|
|
1731
1795
|
TypeListSerializer_instance = this;
|
|
1732
|
-
this.
|
|
1796
|
+
this.a3j_1 = buildSerialDescriptor('TypeListSerializer', SEALED_getInstance(), []);
|
|
1733
1797
|
}
|
|
1734
|
-
protoOf(TypeListSerializer).
|
|
1735
|
-
return this.
|
|
1798
|
+
protoOf(TypeListSerializer).o1z = function () {
|
|
1799
|
+
return this.a3j_1;
|
|
1736
1800
|
};
|
|
1737
|
-
protoOf(TypeListSerializer).
|
|
1738
|
-
if (value.
|
|
1739
|
-
encoder.
|
|
1801
|
+
protoOf(TypeListSerializer).b3j = function (encoder, value) {
|
|
1802
|
+
if (value.z3i_1 > 1) {
|
|
1803
|
+
encoder.g24(ListSerializer(Companion_instance_1.a2m()), value);
|
|
1740
1804
|
} else {
|
|
1741
|
-
encoder.
|
|
1805
|
+
encoder.g24(Companion_instance_1.a2m(), first(value));
|
|
1742
1806
|
}
|
|
1743
1807
|
};
|
|
1744
|
-
protoOf(TypeListSerializer).
|
|
1745
|
-
return this.
|
|
1808
|
+
protoOf(TypeListSerializer).p1z = function (encoder, value) {
|
|
1809
|
+
return this.b3j(encoder, value instanceof TypeList ? value : THROW_CCE());
|
|
1746
1810
|
};
|
|
1747
|
-
protoOf(TypeListSerializer).
|
|
1811
|
+
protoOf(TypeListSerializer).q1z = function (decoder) {
|
|
1748
1812
|
var tmp0_elvis_lhs = isInterface(decoder, JsonDecoder) ? decoder : null;
|
|
1749
1813
|
var tmp;
|
|
1750
1814
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -1753,10 +1817,10 @@ protoOf(TypeListSerializer).l21 = function (decoder) {
|
|
|
1753
1817
|
tmp = tmp0_elvis_lhs;
|
|
1754
1818
|
}
|
|
1755
1819
|
var input = tmp;
|
|
1756
|
-
var element = input.
|
|
1820
|
+
var element = input.t2l();
|
|
1757
1821
|
var tmp_0;
|
|
1758
1822
|
if (element instanceof JsonPrimitive) {
|
|
1759
|
-
tmp_0 = new TypeList([input.
|
|
1823
|
+
tmp_0 = new TypeList([input.s2l().s2j(Companion_instance_1.a2m(), element)]);
|
|
1760
1824
|
} else {
|
|
1761
1825
|
if (element instanceof JsonArray) {
|
|
1762
1826
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -1765,7 +1829,7 @@ protoOf(TypeListSerializer).l21 = function (decoder) {
|
|
|
1765
1829
|
var _iterator__ex2g4s = element.t();
|
|
1766
1830
|
while (_iterator__ex2g4s.u()) {
|
|
1767
1831
|
var item = _iterator__ex2g4s.v();
|
|
1768
|
-
var tmp$ret$0 = input.
|
|
1832
|
+
var tmp$ret$0 = input.s2l().s2j(Companion_instance_1.a2m(), item);
|
|
1769
1833
|
destination.x(tmp$ret$0);
|
|
1770
1834
|
}
|
|
1771
1835
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
@@ -1773,7 +1837,7 @@ protoOf(TypeListSerializer).l21 = function (decoder) {
|
|
|
1773
1837
|
tmp_0 = new TypeList(tmp$ret$3.slice());
|
|
1774
1838
|
} else {
|
|
1775
1839
|
if (element instanceof JsonObject) {
|
|
1776
|
-
tmp_0 = new TypeList([input.
|
|
1840
|
+
tmp_0 = new TypeList([input.s2l().s2j(Companion_instance_1.a2m(), element)]);
|
|
1777
1841
|
} else {
|
|
1778
1842
|
noWhenBranchMatchedException();
|
|
1779
1843
|
}
|
|
@@ -1789,29 +1853,29 @@ function TypeListSerializer_getInstance() {
|
|
|
1789
1853
|
}
|
|
1790
1854
|
function TypeSerializer() {
|
|
1791
1855
|
TypeSerializer_instance = this;
|
|
1792
|
-
this.
|
|
1856
|
+
this.c3j_1 = buildSerialDescriptor('TypeSerializer', SEALED_getInstance(), []);
|
|
1793
1857
|
}
|
|
1794
|
-
protoOf(TypeSerializer).
|
|
1795
|
-
return this.
|
|
1858
|
+
protoOf(TypeSerializer).o1z = function () {
|
|
1859
|
+
return this.c3j_1;
|
|
1796
1860
|
};
|
|
1797
|
-
protoOf(TypeSerializer).
|
|
1861
|
+
protoOf(TypeSerializer).d3j = function (encoder, value) {
|
|
1798
1862
|
if (value instanceof SimpleType) {
|
|
1799
|
-
encoder.
|
|
1863
|
+
encoder.g24(serializer_0(StringCompanionObject_instance), value.z3g_1);
|
|
1800
1864
|
} else {
|
|
1801
1865
|
if (value instanceof RecordType) {
|
|
1802
|
-
encoder.
|
|
1866
|
+
encoder.g24(Companion_getInstance_3().a2m(), value);
|
|
1803
1867
|
} else {
|
|
1804
1868
|
if (value instanceof ArrayType) {
|
|
1805
|
-
encoder.
|
|
1869
|
+
encoder.g24(Companion_instance_4.a2m(), value);
|
|
1806
1870
|
} else {
|
|
1807
1871
|
if (value instanceof MapType) {
|
|
1808
|
-
encoder.
|
|
1872
|
+
encoder.g24(Companion_instance_5.a2m(), value);
|
|
1809
1873
|
} else {
|
|
1810
1874
|
if (value instanceof EnumType) {
|
|
1811
|
-
encoder.
|
|
1875
|
+
encoder.g24(Companion_getInstance_6().a2m(), value);
|
|
1812
1876
|
} else {
|
|
1813
1877
|
if (value instanceof UnionType) {
|
|
1814
|
-
encoder.
|
|
1878
|
+
encoder.g24(Companion_instance_7.a2m(), value);
|
|
1815
1879
|
} else {
|
|
1816
1880
|
if (value instanceof LogicalType) {
|
|
1817
1881
|
// Inline function 'kotlin.TODO' call
|
|
@@ -1826,10 +1890,10 @@ protoOf(TypeSerializer).q3k = function (encoder, value) {
|
|
|
1826
1890
|
}
|
|
1827
1891
|
}
|
|
1828
1892
|
};
|
|
1829
|
-
protoOf(TypeSerializer).
|
|
1830
|
-
return this.
|
|
1893
|
+
protoOf(TypeSerializer).p1z = function (encoder, value) {
|
|
1894
|
+
return this.d3j(encoder, (!(value == null) ? isInterface(value, Type_0) : false) ? value : THROW_CCE());
|
|
1831
1895
|
};
|
|
1832
|
-
protoOf(TypeSerializer).
|
|
1896
|
+
protoOf(TypeSerializer).q1z = function (decoder) {
|
|
1833
1897
|
var tmp0_elvis_lhs = isInterface(decoder, JsonDecoder) ? decoder : null;
|
|
1834
1898
|
var tmp;
|
|
1835
1899
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -1838,18 +1902,18 @@ protoOf(TypeSerializer).l21 = function (decoder) {
|
|
|
1838
1902
|
tmp = tmp0_elvis_lhs;
|
|
1839
1903
|
}
|
|
1840
1904
|
var input = tmp;
|
|
1841
|
-
var element = input.
|
|
1905
|
+
var element = input.t2l();
|
|
1842
1906
|
var tmp_0;
|
|
1843
1907
|
if (element instanceof JsonObject) {
|
|
1844
1908
|
var tmp_1;
|
|
1845
|
-
if (element.
|
|
1846
|
-
tmp_1 = input.
|
|
1847
|
-
} else if (element.
|
|
1848
|
-
tmp_1 = input.
|
|
1849
|
-
} else if (element.
|
|
1850
|
-
tmp_1 = input.
|
|
1851
|
-
} else if (element.
|
|
1852
|
-
tmp_1 = input.
|
|
1909
|
+
if (element.x2l('items')) {
|
|
1910
|
+
tmp_1 = input.s2l().s2j(Companion_instance_4.a2m(), element);
|
|
1911
|
+
} else if (element.x2l('fields')) {
|
|
1912
|
+
tmp_1 = input.s2l().s2j(Companion_getInstance_3().a2m(), element);
|
|
1913
|
+
} else if (element.x2l('symbols')) {
|
|
1914
|
+
tmp_1 = input.s2l().s2j(Companion_getInstance_6().a2m(), element);
|
|
1915
|
+
} else if (element.x2l('logicalType')) {
|
|
1916
|
+
tmp_1 = input.s2l().s2j(Companion_instance_8.a2m(), element);
|
|
1853
1917
|
} else {
|
|
1854
1918
|
var reason = 'Unknown object type: ' + element.toString();
|
|
1855
1919
|
throw new NotImplementedError('An operation is not implemented: ' + reason);
|
|
@@ -1857,7 +1921,7 @@ protoOf(TypeSerializer).l21 = function (decoder) {
|
|
|
1857
1921
|
tmp_0 = tmp_1;
|
|
1858
1922
|
} else {
|
|
1859
1923
|
if (element instanceof JsonPrimitive) {
|
|
1860
|
-
tmp_0 = new SimpleType(element.
|
|
1924
|
+
tmp_0 = new SimpleType(element.hx());
|
|
1861
1925
|
} else {
|
|
1862
1926
|
if (element instanceof JsonArray) {
|
|
1863
1927
|
var reason_0 = 'Type can never be an array';
|
|
@@ -1875,81 +1939,18 @@ function TypeSerializer_getInstance() {
|
|
|
1875
1939
|
new TypeSerializer();
|
|
1876
1940
|
return TypeSerializer_instance;
|
|
1877
1941
|
}
|
|
1878
|
-
function AvroParser$parse$lambda($this$Json) {
|
|
1879
|
-
$this$Json.f2m_1 = true;
|
|
1880
|
-
$this$Json.g2m_1 = true;
|
|
1881
|
-
return Unit_instance;
|
|
1882
|
-
}
|
|
1883
|
-
function AvroParser() {
|
|
1884
|
-
}
|
|
1885
|
-
protoOf(AvroParser).f3i = function (moduleContent, strict) {
|
|
1886
|
-
var json = Json(VOID, AvroParser$parse$lambda);
|
|
1887
|
-
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
1888
|
-
var string = moduleContent.ym_1;
|
|
1889
|
-
// Inline function 'kotlinx.serialization.serializer' call
|
|
1890
|
-
var this_0 = json.y24();
|
|
1891
|
-
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
1892
|
-
var this_1 = serializer(this_0, createKType(getKClass(Type_0), arrayOf([]), false));
|
|
1893
|
-
var tmp$ret$1 = isInterface(this_1, KSerializer) ? this_1 : THROW_CCE();
|
|
1894
|
-
var avro = json.m2l(tmp$ret$1, string);
|
|
1895
|
-
var tmp = AvroConverter_getInstance().l3j(avro);
|
|
1896
|
-
var tmp_0;
|
|
1897
|
-
if (avro instanceof RecordType) {
|
|
1898
|
-
tmp_0 = new Channel(null, emptyList(), new DefinitionIdentifier(avro.a3j_1), new Custom(avro.a3j_1, false));
|
|
1899
|
-
} else {
|
|
1900
|
-
if (avro instanceof ArrayType) {
|
|
1901
|
-
throw new NotImplementedError();
|
|
1902
|
-
} else {
|
|
1903
|
-
if (avro instanceof EnumType) {
|
|
1904
|
-
throw new NotImplementedError();
|
|
1905
|
-
} else {
|
|
1906
|
-
if (avro instanceof SimpleType) {
|
|
1907
|
-
throw new NotImplementedError();
|
|
1908
|
-
} else {
|
|
1909
|
-
if (avro instanceof LogicalType) {
|
|
1910
|
-
throw new NotImplementedError();
|
|
1911
|
-
} else {
|
|
1912
|
-
if (avro instanceof MapType) {
|
|
1913
|
-
throw new NotImplementedError();
|
|
1914
|
-
} else {
|
|
1915
|
-
if (avro instanceof UnionType) {
|
|
1916
|
-
throw new NotImplementedError();
|
|
1917
|
-
} else {
|
|
1918
|
-
noWhenBranchMatchedException();
|
|
1919
|
-
}
|
|
1920
|
-
}
|
|
1921
|
-
}
|
|
1922
|
-
}
|
|
1923
|
-
}
|
|
1924
|
-
}
|
|
1925
|
-
}
|
|
1926
|
-
var result = plus_0(tmp, tmp_0);
|
|
1927
|
-
var tmp1_elvis_lhs = toNonEmptyListOrNull(result);
|
|
1928
|
-
var tmp_1;
|
|
1929
|
-
var tmp_2 = tmp1_elvis_lhs;
|
|
1930
|
-
if ((tmp_2 == null ? null : new NonEmptyList(tmp_2)) == null) {
|
|
1931
|
-
var message = 'Cannot yield non empty AST';
|
|
1932
|
-
throw IllegalStateException_init_$Create$(toString(message));
|
|
1933
|
-
} else {
|
|
1934
|
-
tmp_1 = tmp1_elvis_lhs;
|
|
1935
|
-
}
|
|
1936
|
-
return new Root(nonEmptyListOf(new Module(moduleContent.xm_1, tmp_1), []));
|
|
1937
|
-
};
|
|
1938
|
-
var AvroParser_instance;
|
|
1939
|
-
function AvroParser_getInstance() {
|
|
1940
|
-
return AvroParser_instance;
|
|
1941
|
-
}
|
|
1942
1942
|
//region block: post-declaration
|
|
1943
|
-
protoOf($serializer).
|
|
1944
|
-
protoOf($serializer_0).
|
|
1945
|
-
protoOf($serializer_1).
|
|
1946
|
-
protoOf($serializer_2).
|
|
1947
|
-
protoOf($serializer_3).
|
|
1948
|
-
protoOf($serializer_4).
|
|
1949
|
-
protoOf($serializer_5).
|
|
1950
|
-
protoOf($serializer_6).
|
|
1943
|
+
protoOf($serializer).s2a = typeParametersSerializers;
|
|
1944
|
+
protoOf($serializer_0).s2a = typeParametersSerializers;
|
|
1945
|
+
protoOf($serializer_1).s2a = typeParametersSerializers;
|
|
1946
|
+
protoOf($serializer_2).s2a = typeParametersSerializers;
|
|
1947
|
+
protoOf($serializer_3).s2a = typeParametersSerializers;
|
|
1948
|
+
protoOf($serializer_4).s2a = typeParametersSerializers;
|
|
1949
|
+
protoOf($serializer_5).s2a = typeParametersSerializers;
|
|
1950
|
+
protoOf($serializer_6).s2a = typeParametersSerializers;
|
|
1951
1951
|
//endregion
|
|
1952
1952
|
//region block: init
|
|
1953
|
+
AvroJsonParser_instance = new AvroJsonParser();
|
|
1953
1954
|
Companion_instance = new Companion();
|
|
1954
1955
|
Companion_instance_0 = new Companion_0();
|
|
1955
1956
|
Companion_instance_1 = new Companion_1();
|
|
@@ -1958,13 +1959,12 @@ Companion_instance_4 = new Companion_4();
|
|
|
1958
1959
|
Companion_instance_5 = new Companion_5();
|
|
1959
1960
|
Companion_instance_7 = new Companion_7();
|
|
1960
1961
|
Companion_instance_8 = new Companion_8();
|
|
1961
|
-
AvroParser_instance = new AvroParser();
|
|
1962
1962
|
//endregion
|
|
1963
1963
|
//region block: exports
|
|
1964
1964
|
export {
|
|
1965
1965
|
Type_0 as Typel89stdvlxo83,
|
|
1966
|
-
|
|
1967
|
-
|
|
1966
|
+
AvroJsonEmitter_getInstance as AvroJsonEmitter_getInstancef4slytin56up,
|
|
1967
|
+
AvroJsonParser_instance as AvroJsonParser_instance1463wx3c6teur,
|
|
1968
1968
|
};
|
|
1969
1969
|
//endregion
|
|
1970
1970
|
|