@flock/wirespec 0.22.3 → 0.22.5
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/arrow-arrow-core.mjs +5 -0
- package/arrow-arrow-core.mjs.map +1 -1
- package/clikt-clikt-mordant.mjs +79 -79
- package/clikt-clikt.mjs +1335 -1335
- package/colormath-root-colormath.mjs +433 -433
- package/kotlin-kotlin-stdlib.mjs +119 -55
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +10209 -10209
- package/kotlin-rgxgen.mjs +1760 -1760
- package/kotlinx-io-kotlinx-io-core.mjs +404 -404
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1802 -1802
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1503 -1503
- package/mordant-mordant.mjs +1202 -1202
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +2897 -2620
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-java.mjs +106 -106
- package/wirespec-src-compiler-emitters-kotlin.mjs +136 -116
- package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-python.mjs +84 -84
- package/wirespec-src-compiler-emitters-rust.mjs +209 -209
- package/wirespec-src-compiler-emitters-scala.mjs +85 -85
- package/wirespec-src-compiler-emitters-typescript.mjs +108 -108
- package/wirespec-src-compiler-emitters-wirespec.mjs +81 -81
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +194 -194
- package/wirespec-src-converter-asyncapi.mjs +532 -532
- package/wirespec-src-converter-avro.mjs +566 -510
- package/wirespec-src-converter-avro.mjs.map +1 -1
- package/wirespec-src-converter-common.mjs +11 -11
- package/wirespec-src-converter-graphql.mjs +936 -936
- package/wirespec-src-converter-openapi.mjs +435 -435
- package/wirespec-src-ide-lsp.mjs +1358 -1358
- package/wirespec-src-plugin-arguments.mjs +413 -214
- package/wirespec-src-plugin-arguments.mjs.map +1 -1
- package/wirespec-src-plugin-cli.mjs +135 -99
- package/wirespec-src-plugin-cli.mjs.map +1 -1
- package/wirespec-src-plugin-extensions.mjs +4357 -0
- package/wirespec-src-plugin-extensions.mjs.map +1 -0
- package/wirespec-src-plugin-npm.d.mts +43 -1
- package/wirespec-src-plugin-npm.mjs +230 -54
- package/wirespec-src-plugin-npm.mjs.map +1 -1
- package/wirespec-src-tools-generator.mjs +13 -13
|
@@ -185,11 +185,11 @@ initMetadataForObject(TypeSerializer, 'TypeSerializer', VOID, VOID, [KSerializer
|
|
|
185
185
|
initMetadataForClass(Ordering, 'Ordering', Ordering);
|
|
186
186
|
//endregion
|
|
187
187
|
function isNullable($this, $receiver) {
|
|
188
|
-
return $receiver.i1($this.
|
|
188
|
+
return $receiver.i1($this.c2z_1);
|
|
189
189
|
}
|
|
190
190
|
function toPrimitive($this, $receiver) {
|
|
191
191
|
var tmp;
|
|
192
|
-
switch ($receiver.
|
|
192
|
+
switch ($receiver.d2z_1) {
|
|
193
193
|
case 'boolean':
|
|
194
194
|
tmp = Boolean_instance;
|
|
195
195
|
break;
|
|
@@ -214,7 +214,7 @@ function toPrimitive($this, $receiver) {
|
|
|
214
214
|
default:
|
|
215
215
|
// Inline function 'kotlin.TODO' call
|
|
216
216
|
|
|
217
|
-
var reason = 'primitive not mapped ' + $receiver.
|
|
217
|
+
var reason = 'primitive not mapped ' + $receiver.d2z_1;
|
|
218
218
|
throw new NotImplementedError('An operation is not implemented: ' + reason);
|
|
219
219
|
}
|
|
220
220
|
return tmp;
|
|
@@ -222,7 +222,7 @@ function toPrimitive($this, $receiver) {
|
|
|
222
222
|
function toReference($this, $receiver, isNullable) {
|
|
223
223
|
var tmp;
|
|
224
224
|
if ($receiver instanceof SimpleType) {
|
|
225
|
-
switch ($receiver.
|
|
225
|
+
switch ($receiver.d2z_1) {
|
|
226
226
|
case 'null':
|
|
227
227
|
tmp = new Unit(isNullable);
|
|
228
228
|
break;
|
|
@@ -236,27 +236,27 @@ function toReference($this, $receiver, isNullable) {
|
|
|
236
236
|
tmp = new Primitive(toPrimitive($this, $receiver), isNullable);
|
|
237
237
|
break;
|
|
238
238
|
default:
|
|
239
|
-
tmp = new Custom($receiver.
|
|
239
|
+
tmp = new Custom($receiver.d2z_1, isNullable);
|
|
240
240
|
break;
|
|
241
241
|
}
|
|
242
242
|
} else {
|
|
243
243
|
if ($receiver instanceof ArrayType) {
|
|
244
|
-
tmp = new Iterable(toReference($this, $receiver.
|
|
244
|
+
tmp = new Iterable(toReference($this, $receiver.w2z_1, false), isNullable);
|
|
245
245
|
} else {
|
|
246
246
|
if ($receiver instanceof RecordType) {
|
|
247
|
-
tmp = new Custom($receiver.
|
|
247
|
+
tmp = new Custom($receiver.r2z_1, isNullable);
|
|
248
248
|
} else {
|
|
249
249
|
if ($receiver instanceof EnumType) {
|
|
250
|
-
tmp = new Custom($receiver.
|
|
250
|
+
tmp = new Custom($receiver.n2z_1, isNullable);
|
|
251
251
|
} else {
|
|
252
252
|
if ($receiver instanceof LogicalType) {
|
|
253
|
-
tmp = toReference($this, new SimpleType($receiver.
|
|
253
|
+
tmp = toReference($this, new SimpleType($receiver.i2z_1), isNullable);
|
|
254
254
|
} else {
|
|
255
255
|
if ($receiver instanceof MapType) {
|
|
256
|
-
tmp = new Dict(toReference($this, $receiver.
|
|
256
|
+
tmp = new Dict(toReference($this, $receiver.h2z_1, false), isNullable);
|
|
257
257
|
} else {
|
|
258
258
|
if ($receiver instanceof UnionType) {
|
|
259
|
-
tmp = new Custom($receiver.
|
|
259
|
+
tmp = new Custom($receiver.e2z_1, isNullable);
|
|
260
260
|
} else {
|
|
261
261
|
noWhenBranchMatchedException();
|
|
262
262
|
}
|
|
@@ -269,7 +269,7 @@ function toReference($this, $receiver, isNullable) {
|
|
|
269
269
|
return tmp;
|
|
270
270
|
}
|
|
271
271
|
function toReference_0($this, $receiver) {
|
|
272
|
-
var list = minus($receiver, $this.
|
|
272
|
+
var list = minus($receiver, $this.c2z_1);
|
|
273
273
|
var tmp;
|
|
274
274
|
if (list.b1() === 1) {
|
|
275
275
|
tmp = toReference($this, first(list), isNullable($this, $receiver));
|
|
@@ -310,20 +310,20 @@ function toReference_0($this, $receiver) {
|
|
|
310
310
|
}
|
|
311
311
|
function toType($this, $receiver) {
|
|
312
312
|
var tmp0_annotations = emptyList();
|
|
313
|
-
var tmp1_identifier = new DefinitionIdentifier($receiver.
|
|
313
|
+
var tmp1_identifier = new DefinitionIdentifier($receiver.r2z_1);
|
|
314
314
|
var tmp2_extends = emptyList();
|
|
315
315
|
// Inline function 'kotlin.collections.map' call
|
|
316
|
-
var this_0 = $receiver.
|
|
316
|
+
var this_0 = $receiver.t2z_1;
|
|
317
317
|
// Inline function 'kotlin.collections.mapTo' call
|
|
318
318
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
319
319
|
var _iterator__ex2g4s = this_0.t();
|
|
320
320
|
while (_iterator__ex2g4s.u()) {
|
|
321
321
|
var item = _iterator__ex2g4s.v();
|
|
322
322
|
// Inline function 'kotlin.let' call
|
|
323
|
-
var reference = toReference_0(AvroConverter_getInstance(), item.
|
|
324
|
-
var tmp1_identifier_0 = new FieldIdentifier(item.
|
|
323
|
+
var reference = toReference_0(AvroConverter_getInstance(), item.y2z_1);
|
|
324
|
+
var tmp1_identifier_0 = new FieldIdentifier(item.x2z_1);
|
|
325
325
|
var tmp2_annotations = emptyList();
|
|
326
|
-
var tmp0_safe_receiver = item.
|
|
326
|
+
var tmp0_safe_receiver = item.a30_1;
|
|
327
327
|
var tmp3_defaultValue = tmp0_safe_receiver == null ? null : toDefaultValue(tmp0_safe_receiver, reference);
|
|
328
328
|
var tmp$ret$2 = new Field(tmp2_annotations, tmp1_identifier_0, reference, tmp3_defaultValue);
|
|
329
329
|
destination.x(tmp$ret$2);
|
|
@@ -332,13 +332,13 @@ function toType($this, $receiver) {
|
|
|
332
332
|
return new Type(null, tmp0_annotations, tmp1_identifier, tmp3_shape, tmp2_extends);
|
|
333
333
|
}
|
|
334
334
|
function toEnum($this, $receiver) {
|
|
335
|
-
return new Enum(null, emptyList(), new DefinitionIdentifier($receiver.
|
|
335
|
+
return new Enum(null, emptyList(), new DefinitionIdentifier($receiver.n2z_1), toSet($receiver.p2z_1));
|
|
336
336
|
}
|
|
337
337
|
function toUnion($this, $receiver, name) {
|
|
338
338
|
var tmp = emptyList();
|
|
339
339
|
var tmp_0 = new DefinitionIdentifier(name);
|
|
340
340
|
// Inline function 'kotlin.collections.map' call
|
|
341
|
-
var this_0 = $receiver.
|
|
341
|
+
var this_0 = $receiver.f2z_1;
|
|
342
342
|
// Inline function 'kotlin.collections.mapTo' call
|
|
343
343
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
344
344
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -351,9 +351,9 @@ function toUnion($this, $receiver, name) {
|
|
|
351
351
|
}
|
|
352
352
|
function AvroConverter() {
|
|
353
353
|
AvroConverter_instance = this;
|
|
354
|
-
this.
|
|
354
|
+
this.c2z_1 = new SimpleType('null');
|
|
355
355
|
}
|
|
356
|
-
protoOf(AvroConverter).
|
|
356
|
+
protoOf(AvroConverter).b30 = function (_this__u8e3s4, name) {
|
|
357
357
|
var tmp;
|
|
358
358
|
if (_this__u8e3s4 instanceof SimpleType) {
|
|
359
359
|
tmp = emptyList();
|
|
@@ -361,20 +361,20 @@ protoOf(AvroConverter).c4a = function (_this__u8e3s4, name) {
|
|
|
361
361
|
if (_this__u8e3s4 instanceof RecordType) {
|
|
362
362
|
var tmp_0 = listOf(toType(this, _this__u8e3s4));
|
|
363
363
|
// Inline function 'kotlin.collections.flatMap' call
|
|
364
|
-
var tmp0 = _this__u8e3s4.
|
|
364
|
+
var tmp0 = _this__u8e3s4.t2z_1;
|
|
365
365
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
366
366
|
var destination = ArrayList_init_$Create$_0();
|
|
367
367
|
var _iterator__ex2g4s = tmp0.t();
|
|
368
368
|
while (_iterator__ex2g4s.u()) {
|
|
369
369
|
var element = _iterator__ex2g4s.v();
|
|
370
370
|
// Inline function 'kotlin.collections.flatMap' call
|
|
371
|
-
var tmp0_0 = element.
|
|
371
|
+
var tmp0_0 = element.y2z_1;
|
|
372
372
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
373
373
|
var destination_0 = ArrayList_init_$Create$_0();
|
|
374
374
|
var _iterator__ex2g4s_0 = tmp0_0.t();
|
|
375
375
|
while (_iterator__ex2g4s_0.u()) {
|
|
376
376
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
377
|
-
var list = AvroConverter_getInstance().
|
|
377
|
+
var list = AvroConverter_getInstance().b30(element_0, name);
|
|
378
378
|
addAll(destination_0, list);
|
|
379
379
|
}
|
|
380
380
|
var list_0 = destination_0;
|
|
@@ -383,7 +383,7 @@ protoOf(AvroConverter).c4a = function (_this__u8e3s4, name) {
|
|
|
383
383
|
tmp = plus(tmp_0, destination);
|
|
384
384
|
} else {
|
|
385
385
|
if (_this__u8e3s4 instanceof ArrayType) {
|
|
386
|
-
tmp = this.
|
|
386
|
+
tmp = this.b30(_this__u8e3s4.w2z_1, name);
|
|
387
387
|
} else {
|
|
388
388
|
if (_this__u8e3s4 instanceof EnumType) {
|
|
389
389
|
tmp = listOf(toEnum(this, _this__u8e3s4));
|
|
@@ -392,7 +392,7 @@ protoOf(AvroConverter).c4a = function (_this__u8e3s4, name) {
|
|
|
392
392
|
tmp = emptyList();
|
|
393
393
|
} else {
|
|
394
394
|
if (_this__u8e3s4 instanceof MapType) {
|
|
395
|
-
tmp = this.
|
|
395
|
+
tmp = this.b30(_this__u8e3s4.h2z_1, name);
|
|
396
396
|
} else {
|
|
397
397
|
if (_this__u8e3s4 instanceof UnionType) {
|
|
398
398
|
tmp = listOf(toUnion(this, _this__u8e3s4, name));
|
|
@@ -407,9 +407,9 @@ protoOf(AvroConverter).c4a = function (_this__u8e3s4, name) {
|
|
|
407
407
|
}
|
|
408
408
|
return tmp;
|
|
409
409
|
};
|
|
410
|
-
protoOf(AvroConverter).
|
|
410
|
+
protoOf(AvroConverter).c30 = function (_this__u8e3s4, name, $super) {
|
|
411
411
|
name = name === VOID ? '' : name;
|
|
412
|
-
return $super === VOID ? this.
|
|
412
|
+
return $super === VOID ? this.b30(_this__u8e3s4, name) : $super.b30.call(this, _this__u8e3s4, name);
|
|
413
413
|
};
|
|
414
414
|
var AvroConverter_instance;
|
|
415
415
|
function AvroConverter_getInstance() {
|
|
@@ -481,7 +481,7 @@ function renderRecord($this, $receiver, type) {
|
|
|
481
481
|
return doc + ' record ' + type.kp_1.o1() + ' {\n' + fields + ' }\n';
|
|
482
482
|
}
|
|
483
483
|
function renderFieldType($this, $receiver, field) {
|
|
484
|
-
return field.pp_1.ot() && isNonNull($this, field.qp_1) ? 'union { ' + renderReference($this, $receiver, field.pp_1.
|
|
484
|
+
return field.pp_1.ot() && isNonNull($this, field.qp_1) ? 'union { ' + renderReference($this, $receiver, field.pp_1.p1a(false)) + ', null }' : renderReference($this, $receiver, field.pp_1);
|
|
485
485
|
}
|
|
486
486
|
function isNonNull($this, $receiver) {
|
|
487
487
|
return !($receiver == null) && !equals($receiver, NullValue_instance);
|
|
@@ -564,17 +564,17 @@ function renderRefined($this, refined) {
|
|
|
564
564
|
// Inline function 'kotlin.text.orEmpty' call
|
|
565
565
|
var tmp0_elvis_lhs = tmp_1;
|
|
566
566
|
var doc = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs;
|
|
567
|
-
return doc + ' // refined ' + refined.ls_1.o1() + ' = ' + renderPrimitive($this, refined.ms_1.
|
|
567
|
+
return doc + ' // refined ' + refined.ls_1.o1() + ' = ' + renderPrimitive($this, refined.ms_1.p19_1) + '\n';
|
|
568
568
|
}
|
|
569
569
|
function renderReference($this, $receiver, reference) {
|
|
570
570
|
var tmp;
|
|
571
571
|
if (reference instanceof Primitive) {
|
|
572
|
-
tmp = wrapNullable($this, renderPrimitive($this, reference.
|
|
572
|
+
tmp = wrapNullable($this, renderPrimitive($this, reference.p19_1), reference.q19_1);
|
|
573
573
|
} else {
|
|
574
574
|
if (reference instanceof Custom) {
|
|
575
|
-
var tmp1_safe_receiver = findRefined($receiver, reference.
|
|
575
|
+
var tmp1_safe_receiver = findRefined($receiver, reference.n19_1);
|
|
576
576
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.ms_1;
|
|
577
|
-
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
577
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.p19_1;
|
|
578
578
|
var tmp_0;
|
|
579
579
|
if (tmp3_safe_receiver == null) {
|
|
580
580
|
tmp_0 = null;
|
|
@@ -583,16 +583,16 @@ function renderReference($this, $receiver, reference) {
|
|
|
583
583
|
tmp_0 = renderPrimitive($this, tmp3_safe_receiver);
|
|
584
584
|
}
|
|
585
585
|
var tmp4_elvis_lhs = tmp_0;
|
|
586
|
-
tmp = wrapNullable($this, tmp4_elvis_lhs == null ? reference.
|
|
586
|
+
tmp = wrapNullable($this, tmp4_elvis_lhs == null ? reference.n19_1 : tmp4_elvis_lhs, reference.o19_1);
|
|
587
587
|
} else {
|
|
588
588
|
if (reference instanceof Iterable) {
|
|
589
|
-
tmp = wrapNullable($this, 'array<' + renderReference($this, $receiver, reference.yp_1.
|
|
589
|
+
tmp = wrapNullable($this, 'array<' + renderReference($this, $receiver, reference.yp_1.p1a(false)) + '>', reference.zp_1);
|
|
590
590
|
} else {
|
|
591
591
|
if (reference instanceof Dict) {
|
|
592
|
-
tmp = wrapNullable($this, 'map<' + renderReference($this, $receiver, reference.bq_1.
|
|
592
|
+
tmp = wrapNullable($this, 'map<' + renderReference($this, $receiver, reference.bq_1.p1a(false)) + '>', reference.cq_1);
|
|
593
593
|
} else {
|
|
594
594
|
if (reference instanceof Any) {
|
|
595
|
-
tmp = wrapNullable($this, 'bytes', reference.
|
|
595
|
+
tmp = wrapNullable($this, 'bytes', reference.k1e_1);
|
|
596
596
|
} else {
|
|
597
597
|
if (reference instanceof Unit) {
|
|
598
598
|
tmp = 'null';
|
|
@@ -619,7 +619,7 @@ function renderPrimitive($this, type) {
|
|
|
619
619
|
} else {
|
|
620
620
|
if (type instanceof Integer) {
|
|
621
621
|
var tmp_0;
|
|
622
|
-
switch (type.
|
|
622
|
+
switch (type.x19_1.e3_1) {
|
|
623
623
|
case 0:
|
|
624
624
|
tmp_0 = 'int';
|
|
625
625
|
break;
|
|
@@ -634,7 +634,7 @@ function renderPrimitive($this, type) {
|
|
|
634
634
|
} else {
|
|
635
635
|
if (type instanceof Number_0) {
|
|
636
636
|
var tmp_1;
|
|
637
|
-
switch (type.
|
|
637
|
+
switch (type.s19_1.e3_1) {
|
|
638
638
|
case 0:
|
|
639
639
|
tmp_1 = 'float';
|
|
640
640
|
break;
|
|
@@ -686,16 +686,16 @@ function AvroIdlEmitter$renderDoc$lambda($indent) {
|
|
|
686
686
|
}
|
|
687
687
|
function AvroIdlEmitter() {
|
|
688
688
|
AvroIdlEmitter_instance = this;
|
|
689
|
-
this.
|
|
690
|
-
this.
|
|
691
|
-
this.
|
|
692
|
-
this.
|
|
689
|
+
this.d30_1 = FileExtension_AvroIdl_getInstance();
|
|
690
|
+
this.e30_1 = true;
|
|
691
|
+
this.f30_1 = ' ';
|
|
692
|
+
this.g30_1 = 'unknown';
|
|
693
693
|
}
|
|
694
694
|
protoOf(AvroIdlEmitter).wp = function () {
|
|
695
|
-
return this.
|
|
695
|
+
return this.d30_1;
|
|
696
696
|
};
|
|
697
697
|
protoOf(AvroIdlEmitter).vp = function () {
|
|
698
|
-
return this.
|
|
698
|
+
return this.e30_1;
|
|
699
699
|
};
|
|
700
700
|
protoOf(AvroIdlEmitter).to = function (ast, logger) {
|
|
701
701
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
@@ -708,12 +708,12 @@ protoOf(AvroIdlEmitter).to = function (ast, logger) {
|
|
|
708
708
|
while (_iterator__ex2g4s.u()) {
|
|
709
709
|
var item = _iterator__ex2g4s.v();
|
|
710
710
|
logger.as('Emitting Avro IDL from ' + item.fp_1.io_1);
|
|
711
|
-
var tmp$ret$3 = new Emitted('schema.avdl', AvroIdlEmitter_getInstance().
|
|
711
|
+
var tmp$ret$3 = new Emitted('schema.avdl', AvroIdlEmitter_getInstance().h30(item, deriveProtocolName(AvroIdlEmitter_getInstance(), item)));
|
|
712
712
|
destination.x(tmp$ret$3);
|
|
713
713
|
}
|
|
714
714
|
return _NonEmptyList___init__impl__fxd0xp(destination);
|
|
715
715
|
};
|
|
716
|
-
protoOf(AvroIdlEmitter).
|
|
716
|
+
protoOf(AvroIdlEmitter).h30 = function (module_0, protocolName) {
|
|
717
717
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
718
718
|
var tmp0 = inDependencyOrder(module_0);
|
|
719
719
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
@@ -780,14 +780,14 @@ function findType($this, $receiver, name) {
|
|
|
780
780
|
}
|
|
781
781
|
function AvroJsonEmitter() {
|
|
782
782
|
AvroJsonEmitter_instance = this;
|
|
783
|
-
this.
|
|
784
|
-
this.
|
|
783
|
+
this.i30_1 = FileExtension_JSON_getInstance();
|
|
784
|
+
this.j30_1 = true;
|
|
785
785
|
}
|
|
786
786
|
protoOf(AvroJsonEmitter).wp = function () {
|
|
787
|
-
return this.
|
|
787
|
+
return this.i30_1;
|
|
788
788
|
};
|
|
789
789
|
protoOf(AvroJsonEmitter).vp = function () {
|
|
790
|
-
return this.
|
|
790
|
+
return this.j30_1;
|
|
791
791
|
};
|
|
792
792
|
protoOf(AvroJsonEmitter).to = function (ast, logger) {
|
|
793
793
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
@@ -800,7 +800,7 @@ protoOf(AvroJsonEmitter).to = function (ast, logger) {
|
|
|
800
800
|
while (_iterator__ex2g4s.u()) {
|
|
801
801
|
var item = _iterator__ex2g4s.v();
|
|
802
802
|
logger.as('Emitting Nodes from ' + item.fp_1.io_1 + ' ');
|
|
803
|
-
var tmp$ret$3 = AvroJsonEmitter_getInstance().
|
|
803
|
+
var tmp$ret$3 = AvroJsonEmitter_getInstance().k30(item);
|
|
804
804
|
destination.x(tmp$ret$3);
|
|
805
805
|
}
|
|
806
806
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
@@ -815,11 +815,11 @@ protoOf(AvroJsonEmitter).to = function (ast, logger) {
|
|
|
815
815
|
// Inline function 'kotlinx.serialization.encodeToString' call
|
|
816
816
|
var this_4 = Default_getInstance();
|
|
817
817
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
818
|
-
var this_5 = this_4.
|
|
818
|
+
var this_5 = this_4.h24();
|
|
819
819
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
820
820
|
var this_6 = serializer(this_5, createKType(getKClass(KtList), arrayOf([createInvariantKTypeProjection(createKType(getKClass(Type_0), arrayOf([]), false))]), false));
|
|
821
821
|
var tmp$ret$9 = isInterface(this_6, KSerializer) ? this_6 : THROW_CCE();
|
|
822
|
-
var tmp$ret$7 = this_4.
|
|
822
|
+
var tmp$ret$7 = this_4.m2l(tmp$ret$9, item_0);
|
|
823
823
|
destination_0.x(tmp$ret$7);
|
|
824
824
|
}
|
|
825
825
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
@@ -836,10 +836,10 @@ protoOf(AvroJsonEmitter).to = function (ast, logger) {
|
|
|
836
836
|
}
|
|
837
837
|
return _NonEmptyList___init__impl__fxd0xp(destination_1);
|
|
838
838
|
};
|
|
839
|
-
protoOf(AvroJsonEmitter).
|
|
839
|
+
protoOf(AvroJsonEmitter).l30 = function (_this__u8e3s4) {
|
|
840
840
|
return new EnumType('enum', _this__u8e3s4.qs_1.o1(), VOID, toList(_this__u8e3s4.rs_1));
|
|
841
841
|
};
|
|
842
|
-
protoOf(AvroJsonEmitter).
|
|
842
|
+
protoOf(AvroJsonEmitter).m30 = function (_this__u8e3s4) {
|
|
843
843
|
var tmp = _this__u8e3s4.br_1.o1();
|
|
844
844
|
// Inline function 'kotlin.collections.map' call
|
|
845
845
|
var this_0 = _this__u8e3s4.cr_1;
|
|
@@ -853,23 +853,23 @@ protoOf(AvroJsonEmitter).n4a = function (_this__u8e3s4) {
|
|
|
853
853
|
}
|
|
854
854
|
return new UnionType(tmp, TypeList_init_$Create$(destination));
|
|
855
855
|
};
|
|
856
|
-
protoOf(AvroJsonEmitter).
|
|
856
|
+
protoOf(AvroJsonEmitter).n30 = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
857
857
|
var tmp;
|
|
858
858
|
if (_this__u8e3s4 instanceof Dict) {
|
|
859
|
-
tmp = new MapType('map', this.
|
|
859
|
+
tmp = new MapType('map', this.n30(_this__u8e3s4.bq_1, module_0, hasEmitted));
|
|
860
860
|
} else {
|
|
861
861
|
if (_this__u8e3s4 instanceof Iterable) {
|
|
862
|
-
tmp = new ArrayType('array', this.
|
|
862
|
+
tmp = new ArrayType('array', this.n30(_this__u8e3s4.yp_1, module_0, hasEmitted));
|
|
863
863
|
} else {
|
|
864
864
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
865
|
-
var type = _this__u8e3s4.
|
|
865
|
+
var type = _this__u8e3s4.p19_1;
|
|
866
866
|
var tmp_0;
|
|
867
867
|
if (type instanceof String_0) {
|
|
868
868
|
tmp_0 = new SimpleType('string');
|
|
869
869
|
} else {
|
|
870
870
|
if (type instanceof Integer) {
|
|
871
871
|
var tmp_1;
|
|
872
|
-
switch (type.
|
|
872
|
+
switch (type.x19_1.e3_1) {
|
|
873
873
|
case 0:
|
|
874
874
|
tmp_1 = new SimpleType('int');
|
|
875
875
|
break;
|
|
@@ -884,7 +884,7 @@ protoOf(AvroJsonEmitter).o4a = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
|
884
884
|
} else {
|
|
885
885
|
if (type instanceof Number_0) {
|
|
886
886
|
var tmp_2;
|
|
887
|
-
switch (type.
|
|
887
|
+
switch (type.s19_1.e3_1) {
|
|
888
888
|
case 0:
|
|
889
889
|
tmp_2 = new SimpleType('float');
|
|
890
890
|
break;
|
|
@@ -912,7 +912,7 @@ protoOf(AvroJsonEmitter).o4a = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
|
912
912
|
tmp = tmp_0;
|
|
913
913
|
} else {
|
|
914
914
|
if (_this__u8e3s4 instanceof Custom) {
|
|
915
|
-
var def = findType(this, module_0, _this__u8e3s4.
|
|
915
|
+
var def = findType(this, module_0, _this__u8e3s4.n19_1);
|
|
916
916
|
var tmp_3;
|
|
917
917
|
if (def instanceof Type) {
|
|
918
918
|
var tmp_4;
|
|
@@ -923,7 +923,7 @@ protoOf(AvroJsonEmitter).o4a = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
|
923
923
|
} else {
|
|
924
924
|
// Inline function 'kotlin.also' call
|
|
925
925
|
hasEmitted.x(def.kp_1.o1());
|
|
926
|
-
tmp_4 = this.
|
|
926
|
+
tmp_4 = this.o30(def, module_0, hasEmitted);
|
|
927
927
|
}
|
|
928
928
|
tmp_3 = tmp_4;
|
|
929
929
|
} else {
|
|
@@ -931,9 +931,9 @@ protoOf(AvroJsonEmitter).o4a = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
|
931
931
|
tmp_3 = new SimpleType(def.qs_1.o1());
|
|
932
932
|
} else {
|
|
933
933
|
if (def instanceof Refined) {
|
|
934
|
-
tmp_3 = this.
|
|
934
|
+
tmp_3 = this.n30(def.ms_1, module_0, hasEmitted);
|
|
935
935
|
} else {
|
|
936
|
-
tmp_3 = new SimpleType(_this__u8e3s4.
|
|
936
|
+
tmp_3 = new SimpleType(_this__u8e3s4.n19_1);
|
|
937
937
|
}
|
|
938
938
|
}
|
|
939
939
|
}
|
|
@@ -956,17 +956,17 @@ protoOf(AvroJsonEmitter).o4a = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
|
956
956
|
}
|
|
957
957
|
return tmp;
|
|
958
958
|
};
|
|
959
|
-
protoOf(AvroJsonEmitter).
|
|
959
|
+
protoOf(AvroJsonEmitter).p30 = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
960
960
|
var ref = _this__u8e3s4.pp_1;
|
|
961
961
|
var tmp;
|
|
962
962
|
if (ref instanceof Iterable) {
|
|
963
|
-
tmp = new ArrayType('array', this.
|
|
963
|
+
tmp = new ArrayType('array', this.n30(ref.yp_1, module_0, hasEmitted));
|
|
964
964
|
} else {
|
|
965
|
-
tmp = this.
|
|
965
|
+
tmp = this.n30(ref, module_0, hasEmitted);
|
|
966
966
|
}
|
|
967
967
|
return tmp;
|
|
968
968
|
};
|
|
969
|
-
protoOf(AvroJsonEmitter).
|
|
969
|
+
protoOf(AvroJsonEmitter).o30 = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
970
970
|
var tmp0_name = _this__u8e3s4.kp_1.o1();
|
|
971
971
|
// Inline function 'kotlin.collections.map' call
|
|
972
972
|
var this_0 = get_fields(_this__u8e3s4.lp_1);
|
|
@@ -977,7 +977,7 @@ protoOf(AvroJsonEmitter).p4a = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
|
977
977
|
var item = _iterator__ex2g4s.v();
|
|
978
978
|
var tmp = item.op_1.o1();
|
|
979
979
|
// Inline function 'kotlin.let' call
|
|
980
|
-
var type = AvroJsonEmitter_getInstance().
|
|
980
|
+
var type = AvroJsonEmitter_getInstance().p30(item, module_0, hasEmitted);
|
|
981
981
|
var tmp_0 = !item.pp_1.ot() ? new TypeList([type]) : isNonNull_0(AvroJsonEmitter_getInstance(), item.qp_1) ? new TypeList([type, new SimpleType('null')]) : new TypeList([new SimpleType('null'), type]);
|
|
982
982
|
var tmp0_safe_receiver = item.qp_1;
|
|
983
983
|
var tmp$ret$2 = new Field_0(tmp, tmp_0, VOID, tmp0_safe_receiver == null ? null : toJsonElement(tmp0_safe_receiver));
|
|
@@ -985,7 +985,7 @@ protoOf(AvroJsonEmitter).p4a = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
|
985
985
|
}
|
|
986
986
|
return new RecordType('record', tmp0_name, VOID, destination);
|
|
987
987
|
};
|
|
988
|
-
protoOf(AvroJsonEmitter).
|
|
988
|
+
protoOf(AvroJsonEmitter).k30 = function (module_0) {
|
|
989
989
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
990
990
|
var hasEmitted = ArrayList_init_$Create$_0();
|
|
991
991
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
@@ -1015,13 +1015,13 @@ protoOf(AvroJsonEmitter).l4a = function (module_0) {
|
|
|
1015
1015
|
tmp_1 = tmp1_safe_receiver;
|
|
1016
1016
|
}
|
|
1017
1017
|
var tmp2_safe_receiver = tmp_1;
|
|
1018
|
-
tmp = tmp2_safe_receiver == null ? null : AvroJsonEmitter_getInstance().
|
|
1018
|
+
tmp = tmp2_safe_receiver == null ? null : AvroJsonEmitter_getInstance().o30(tmp2_safe_receiver, module_0, hasEmitted);
|
|
1019
1019
|
} else {
|
|
1020
1020
|
if (element instanceof Enum) {
|
|
1021
|
-
tmp = AvroJsonEmitter_getInstance().
|
|
1021
|
+
tmp = AvroJsonEmitter_getInstance().l30(element);
|
|
1022
1022
|
} else {
|
|
1023
1023
|
if (element instanceof Union) {
|
|
1024
|
-
tmp = AvroJsonEmitter_getInstance().
|
|
1024
|
+
tmp = AvroJsonEmitter_getInstance().m30(element);
|
|
1025
1025
|
} else {
|
|
1026
1026
|
tmp = null;
|
|
1027
1027
|
}
|
|
@@ -1044,26 +1044,26 @@ function AvroJsonEmitter_getInstance() {
|
|
|
1044
1044
|
return AvroJsonEmitter_instance;
|
|
1045
1045
|
}
|
|
1046
1046
|
function AvroJsonParser$parse$lambda($this$Json) {
|
|
1047
|
-
$this$Json.
|
|
1048
|
-
$this$Json.
|
|
1047
|
+
$this$Json.i2m_1 = true;
|
|
1048
|
+
$this$Json.j2m_1 = true;
|
|
1049
1049
|
return Unit_instance;
|
|
1050
1050
|
}
|
|
1051
1051
|
function AvroJsonParser() {
|
|
1052
1052
|
}
|
|
1053
|
-
protoOf(AvroJsonParser).
|
|
1053
|
+
protoOf(AvroJsonParser).q30 = function (moduleContent, strict) {
|
|
1054
1054
|
var json = Json(VOID, AvroJsonParser$parse$lambda);
|
|
1055
1055
|
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
1056
1056
|
var string = moduleContent.do_1;
|
|
1057
1057
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
1058
|
-
var this_0 = json.
|
|
1058
|
+
var this_0 = json.h24();
|
|
1059
1059
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
1060
1060
|
var this_1 = serializer(this_0, createKType(getKClass(Type_0), arrayOf([]), false));
|
|
1061
1061
|
var tmp$ret$1 = isInterface(this_1, KSerializer) ? this_1 : THROW_CCE();
|
|
1062
|
-
var avro = json.
|
|
1063
|
-
var tmp = AvroConverter_getInstance().
|
|
1062
|
+
var avro = json.n2l(tmp$ret$1, string);
|
|
1063
|
+
var tmp = AvroConverter_getInstance().c30(avro);
|
|
1064
1064
|
var tmp_0;
|
|
1065
1065
|
if (avro instanceof RecordType) {
|
|
1066
|
-
tmp_0 = new Channel(null, emptyList(), new DefinitionIdentifier(avro.
|
|
1066
|
+
tmp_0 = new Channel(null, emptyList(), new DefinitionIdentifier(avro.r2z_1), new Custom(avro.r2z_1, false));
|
|
1067
1067
|
} else {
|
|
1068
1068
|
if (avro instanceof ArrayType) {
|
|
1069
1069
|
// Inline function 'kotlin.TODO' call
|
|
@@ -1147,11 +1147,11 @@ function Companion_getInstance_0() {
|
|
|
1147
1147
|
}
|
|
1148
1148
|
function Companion_1() {
|
|
1149
1149
|
}
|
|
1150
|
-
protoOf(Companion_1).
|
|
1150
|
+
protoOf(Companion_1).v2n = function () {
|
|
1151
1151
|
return TypeSerializer_getInstance();
|
|
1152
1152
|
};
|
|
1153
|
-
protoOf(Companion_1).
|
|
1154
|
-
return this.
|
|
1153
|
+
protoOf(Companion_1).g2c = function (typeParamsSerializers) {
|
|
1154
|
+
return this.v2n();
|
|
1155
1155
|
};
|
|
1156
1156
|
var Companion_instance_1;
|
|
1157
1157
|
function Companion_getInstance_1() {
|
|
@@ -1166,50 +1166,50 @@ function Companion_getInstance_2() {
|
|
|
1166
1166
|
function $serializer() {
|
|
1167
1167
|
$serializer_instance = this;
|
|
1168
1168
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.SimpleType', this, 1);
|
|
1169
|
-
tmp0_serialDesc.
|
|
1170
|
-
this.
|
|
1169
|
+
tmp0_serialDesc.g2b('value', false);
|
|
1170
|
+
this.r30_1 = tmp0_serialDesc;
|
|
1171
1171
|
}
|
|
1172
|
-
protoOf($serializer).
|
|
1173
|
-
var tmp0_desc = this.
|
|
1174
|
-
var tmp1_output = encoder.
|
|
1175
|
-
tmp1_output.
|
|
1176
|
-
tmp1_output.
|
|
1172
|
+
protoOf($serializer).s30 = function (encoder, value) {
|
|
1173
|
+
var tmp0_desc = this.r30_1;
|
|
1174
|
+
var tmp1_output = encoder.s23(tmp0_desc);
|
|
1175
|
+
tmp1_output.h25(tmp0_desc, 0, value.d2z_1);
|
|
1176
|
+
tmp1_output.t23(tmp0_desc);
|
|
1177
1177
|
};
|
|
1178
|
-
protoOf($serializer).
|
|
1179
|
-
return this.
|
|
1178
|
+
protoOf($serializer).u20 = function (encoder, value) {
|
|
1179
|
+
return this.s30(encoder, value instanceof SimpleType ? value : THROW_CCE());
|
|
1180
1180
|
};
|
|
1181
|
-
protoOf($serializer).
|
|
1182
|
-
var tmp0_desc = this.
|
|
1181
|
+
protoOf($serializer).v20 = function (decoder) {
|
|
1182
|
+
var tmp0_desc = this.r30_1;
|
|
1183
1183
|
var tmp1_flag = true;
|
|
1184
1184
|
var tmp2_index = 0;
|
|
1185
1185
|
var tmp3_bitMask0 = 0;
|
|
1186
1186
|
var tmp4_local0 = null;
|
|
1187
|
-
var tmp5_input = decoder.
|
|
1188
|
-
if (tmp5_input.
|
|
1189
|
-
tmp4_local0 = tmp5_input.
|
|
1187
|
+
var tmp5_input = decoder.s23(tmp0_desc);
|
|
1188
|
+
if (tmp5_input.i24()) {
|
|
1189
|
+
tmp4_local0 = tmp5_input.c24(tmp0_desc, 0);
|
|
1190
1190
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1191
1191
|
} else
|
|
1192
1192
|
while (tmp1_flag) {
|
|
1193
|
-
tmp2_index = tmp5_input.
|
|
1193
|
+
tmp2_index = tmp5_input.j24(tmp0_desc);
|
|
1194
1194
|
switch (tmp2_index) {
|
|
1195
1195
|
case -1:
|
|
1196
1196
|
tmp1_flag = false;
|
|
1197
1197
|
break;
|
|
1198
1198
|
case 0:
|
|
1199
|
-
tmp4_local0 = tmp5_input.
|
|
1199
|
+
tmp4_local0 = tmp5_input.c24(tmp0_desc, 0);
|
|
1200
1200
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1201
1201
|
break;
|
|
1202
1202
|
default:
|
|
1203
1203
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1204
1204
|
}
|
|
1205
1205
|
}
|
|
1206
|
-
tmp5_input.
|
|
1206
|
+
tmp5_input.t23(tmp0_desc);
|
|
1207
1207
|
return SimpleType_init_$Create$(tmp3_bitMask0, tmp4_local0, null);
|
|
1208
1208
|
};
|
|
1209
|
-
protoOf($serializer).
|
|
1210
|
-
return this.
|
|
1209
|
+
protoOf($serializer).t20 = function () {
|
|
1210
|
+
return this.r30_1;
|
|
1211
1211
|
};
|
|
1212
|
-
protoOf($serializer).
|
|
1212
|
+
protoOf($serializer).v2b = function () {
|
|
1213
1213
|
// Inline function 'kotlin.arrayOf' call
|
|
1214
1214
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1215
1215
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1223,9 +1223,9 @@ function $serializer_getInstance() {
|
|
|
1223
1223
|
}
|
|
1224
1224
|
function SimpleType_init_$Init$(seen0, value, serializationConstructorMarker, $this) {
|
|
1225
1225
|
if (!(1 === (1 & seen0))) {
|
|
1226
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance().
|
|
1226
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance().r30_1);
|
|
1227
1227
|
}
|
|
1228
|
-
$this.
|
|
1228
|
+
$this.d2z_1 = value;
|
|
1229
1229
|
return $this;
|
|
1230
1230
|
}
|
|
1231
1231
|
function SimpleType_init_$Create$(seen0, value, serializationConstructorMarker) {
|
|
@@ -1241,9 +1241,9 @@ function Companion_3() {
|
|
|
1241
1241
|
// Inline function 'kotlin.arrayOf' call
|
|
1242
1242
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1243
1243
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1244
|
-
tmp.
|
|
1244
|
+
tmp.t30_1 = [null, null, null, lazy(tmp_0, AvroModel$RecordType$Companion$$childSerializers$_anonymous__y3fmeq), null];
|
|
1245
1245
|
}
|
|
1246
|
-
protoOf(Companion_3).
|
|
1246
|
+
protoOf(Companion_3).v2n = function () {
|
|
1247
1247
|
return $serializer_getInstance_0();
|
|
1248
1248
|
};
|
|
1249
1249
|
var Companion_instance_3;
|
|
@@ -1255,33 +1255,33 @@ function Companion_getInstance_3() {
|
|
|
1255
1255
|
function $serializer_0() {
|
|
1256
1256
|
$serializer_instance_0 = this;
|
|
1257
1257
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.RecordType', this, 5);
|
|
1258
|
-
tmp0_serialDesc.
|
|
1259
|
-
tmp0_serialDesc.
|
|
1260
|
-
tmp0_serialDesc.
|
|
1261
|
-
tmp0_serialDesc.
|
|
1262
|
-
tmp0_serialDesc.
|
|
1263
|
-
this.
|
|
1264
|
-
}
|
|
1265
|
-
protoOf($serializer_0).
|
|
1266
|
-
var tmp0_desc = this.
|
|
1267
|
-
var tmp1_output = encoder.
|
|
1268
|
-
var tmp2_cached = Companion_getInstance_3().
|
|
1269
|
-
tmp1_output.
|
|
1270
|
-
tmp1_output.
|
|
1271
|
-
if (tmp1_output.
|
|
1272
|
-
tmp1_output.
|
|
1273
|
-
}
|
|
1274
|
-
tmp1_output.
|
|
1275
|
-
if (tmp1_output.
|
|
1276
|
-
tmp1_output.
|
|
1277
|
-
}
|
|
1278
|
-
tmp1_output.
|
|
1279
|
-
};
|
|
1280
|
-
protoOf($serializer_0).
|
|
1281
|
-
return this.
|
|
1282
|
-
};
|
|
1283
|
-
protoOf($serializer_0).
|
|
1284
|
-
var tmp0_desc = this.
|
|
1258
|
+
tmp0_serialDesc.g2b('type', false);
|
|
1259
|
+
tmp0_serialDesc.g2b('name', false);
|
|
1260
|
+
tmp0_serialDesc.g2b('namespace', true);
|
|
1261
|
+
tmp0_serialDesc.g2b('fields', false);
|
|
1262
|
+
tmp0_serialDesc.g2b('doc', true);
|
|
1263
|
+
this.u30_1 = tmp0_serialDesc;
|
|
1264
|
+
}
|
|
1265
|
+
protoOf($serializer_0).v30 = function (encoder, value) {
|
|
1266
|
+
var tmp0_desc = this.u30_1;
|
|
1267
|
+
var tmp1_output = encoder.s23(tmp0_desc);
|
|
1268
|
+
var tmp2_cached = Companion_getInstance_3().t30_1;
|
|
1269
|
+
tmp1_output.h25(tmp0_desc, 0, value.q2z_1);
|
|
1270
|
+
tmp1_output.h25(tmp0_desc, 1, value.r2z_1);
|
|
1271
|
+
if (tmp1_output.p25(tmp0_desc, 2) ? true : !(value.s2z_1 == null)) {
|
|
1272
|
+
tmp1_output.l25(tmp0_desc, 2, StringSerializer_getInstance(), value.s2z_1);
|
|
1273
|
+
}
|
|
1274
|
+
tmp1_output.j25(tmp0_desc, 3, tmp2_cached[3].o1(), value.t2z_1);
|
|
1275
|
+
if (tmp1_output.p25(tmp0_desc, 4) ? true : !(value.u2z_1 == null)) {
|
|
1276
|
+
tmp1_output.l25(tmp0_desc, 4, StringSerializer_getInstance(), value.u2z_1);
|
|
1277
|
+
}
|
|
1278
|
+
tmp1_output.t23(tmp0_desc);
|
|
1279
|
+
};
|
|
1280
|
+
protoOf($serializer_0).u20 = function (encoder, value) {
|
|
1281
|
+
return this.v30(encoder, value instanceof RecordType ? value : THROW_CCE());
|
|
1282
|
+
};
|
|
1283
|
+
protoOf($serializer_0).v20 = function (decoder) {
|
|
1284
|
+
var tmp0_desc = this.u30_1;
|
|
1285
1285
|
var tmp1_flag = true;
|
|
1286
1286
|
var tmp2_index = 0;
|
|
1287
1287
|
var tmp3_bitMask0 = 0;
|
|
@@ -1290,58 +1290,58 @@ protoOf($serializer_0).p22 = function (decoder) {
|
|
|
1290
1290
|
var tmp6_local2 = null;
|
|
1291
1291
|
var tmp7_local3 = null;
|
|
1292
1292
|
var tmp8_local4 = null;
|
|
1293
|
-
var tmp9_input = decoder.
|
|
1294
|
-
var tmp10_cached = Companion_getInstance_3().
|
|
1295
|
-
if (tmp9_input.
|
|
1296
|
-
tmp4_local0 = tmp9_input.
|
|
1293
|
+
var tmp9_input = decoder.s23(tmp0_desc);
|
|
1294
|
+
var tmp10_cached = Companion_getInstance_3().t30_1;
|
|
1295
|
+
if (tmp9_input.i24()) {
|
|
1296
|
+
tmp4_local0 = tmp9_input.c24(tmp0_desc, 0);
|
|
1297
1297
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1298
|
-
tmp5_local1 = tmp9_input.
|
|
1298
|
+
tmp5_local1 = tmp9_input.c24(tmp0_desc, 1);
|
|
1299
1299
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1300
|
-
tmp6_local2 = tmp9_input.
|
|
1300
|
+
tmp6_local2 = tmp9_input.g24(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1301
1301
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1302
|
-
tmp7_local3 = tmp9_input.
|
|
1302
|
+
tmp7_local3 = tmp9_input.e24(tmp0_desc, 3, tmp10_cached[3].o1(), tmp7_local3);
|
|
1303
1303
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1304
|
-
tmp8_local4 = tmp9_input.
|
|
1304
|
+
tmp8_local4 = tmp9_input.g24(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
|
|
1305
1305
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1306
1306
|
} else
|
|
1307
1307
|
while (tmp1_flag) {
|
|
1308
|
-
tmp2_index = tmp9_input.
|
|
1308
|
+
tmp2_index = tmp9_input.j24(tmp0_desc);
|
|
1309
1309
|
switch (tmp2_index) {
|
|
1310
1310
|
case -1:
|
|
1311
1311
|
tmp1_flag = false;
|
|
1312
1312
|
break;
|
|
1313
1313
|
case 0:
|
|
1314
|
-
tmp4_local0 = tmp9_input.
|
|
1314
|
+
tmp4_local0 = tmp9_input.c24(tmp0_desc, 0);
|
|
1315
1315
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1316
1316
|
break;
|
|
1317
1317
|
case 1:
|
|
1318
|
-
tmp5_local1 = tmp9_input.
|
|
1318
|
+
tmp5_local1 = tmp9_input.c24(tmp0_desc, 1);
|
|
1319
1319
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1320
1320
|
break;
|
|
1321
1321
|
case 2:
|
|
1322
|
-
tmp6_local2 = tmp9_input.
|
|
1322
|
+
tmp6_local2 = tmp9_input.g24(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1323
1323
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1324
1324
|
break;
|
|
1325
1325
|
case 3:
|
|
1326
|
-
tmp7_local3 = tmp9_input.
|
|
1326
|
+
tmp7_local3 = tmp9_input.e24(tmp0_desc, 3, tmp10_cached[3].o1(), tmp7_local3);
|
|
1327
1327
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1328
1328
|
break;
|
|
1329
1329
|
case 4:
|
|
1330
|
-
tmp8_local4 = tmp9_input.
|
|
1330
|
+
tmp8_local4 = tmp9_input.g24(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
|
|
1331
1331
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1332
1332
|
break;
|
|
1333
1333
|
default:
|
|
1334
1334
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1335
1335
|
}
|
|
1336
1336
|
}
|
|
1337
|
-
tmp9_input.
|
|
1337
|
+
tmp9_input.t23(tmp0_desc);
|
|
1338
1338
|
return RecordType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null);
|
|
1339
1339
|
};
|
|
1340
|
-
protoOf($serializer_0).
|
|
1341
|
-
return this.
|
|
1340
|
+
protoOf($serializer_0).t20 = function () {
|
|
1341
|
+
return this.u30_1;
|
|
1342
1342
|
};
|
|
1343
|
-
protoOf($serializer_0).
|
|
1344
|
-
var tmp0_cached = Companion_getInstance_3().
|
|
1343
|
+
protoOf($serializer_0).v2b = function () {
|
|
1344
|
+
var tmp0_cached = Companion_getInstance_3().t30_1;
|
|
1345
1345
|
// Inline function 'kotlin.arrayOf' call
|
|
1346
1346
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1347
1347
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1355,19 +1355,19 @@ function $serializer_getInstance_0() {
|
|
|
1355
1355
|
}
|
|
1356
1356
|
function RecordType_init_$Init$(seen0, type, name, namespace, fields, doc, serializationConstructorMarker, $this) {
|
|
1357
1357
|
if (!(11 === (11 & seen0))) {
|
|
1358
|
-
throwMissingFieldException(seen0, 11, $serializer_getInstance_0().
|
|
1358
|
+
throwMissingFieldException(seen0, 11, $serializer_getInstance_0().u30_1);
|
|
1359
1359
|
}
|
|
1360
|
-
$this.
|
|
1361
|
-
$this.
|
|
1360
|
+
$this.q2z_1 = type;
|
|
1361
|
+
$this.r2z_1 = name;
|
|
1362
1362
|
if (0 === (seen0 & 4))
|
|
1363
|
-
$this.
|
|
1363
|
+
$this.s2z_1 = null;
|
|
1364
1364
|
else
|
|
1365
|
-
$this.
|
|
1366
|
-
$this.
|
|
1365
|
+
$this.s2z_1 = namespace;
|
|
1366
|
+
$this.t2z_1 = fields;
|
|
1367
1367
|
if (0 === (seen0 & 16))
|
|
1368
|
-
$this.
|
|
1368
|
+
$this.u2z_1 = null;
|
|
1369
1369
|
else
|
|
1370
|
-
$this.
|
|
1370
|
+
$this.u2z_1 = doc;
|
|
1371
1371
|
return $this;
|
|
1372
1372
|
}
|
|
1373
1373
|
function RecordType_init_$Create$(seen0, type, name, namespace, fields, doc, serializationConstructorMarker) {
|
|
@@ -1375,7 +1375,7 @@ function RecordType_init_$Create$(seen0, type, name, namespace, fields, doc, ser
|
|
|
1375
1375
|
}
|
|
1376
1376
|
function Companion_4() {
|
|
1377
1377
|
}
|
|
1378
|
-
protoOf(Companion_4).
|
|
1378
|
+
protoOf(Companion_4).v2n = function () {
|
|
1379
1379
|
return $serializer_getInstance_1();
|
|
1380
1380
|
};
|
|
1381
1381
|
var Companion_instance_4;
|
|
@@ -1385,59 +1385,59 @@ function Companion_getInstance_4() {
|
|
|
1385
1385
|
function $serializer_1() {
|
|
1386
1386
|
$serializer_instance_1 = this;
|
|
1387
1387
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.ArrayType', this, 2);
|
|
1388
|
-
tmp0_serialDesc.
|
|
1389
|
-
tmp0_serialDesc.
|
|
1390
|
-
this.
|
|
1391
|
-
}
|
|
1392
|
-
protoOf($serializer_1).
|
|
1393
|
-
var tmp0_desc = this.
|
|
1394
|
-
var tmp1_output = encoder.
|
|
1395
|
-
tmp1_output.
|
|
1396
|
-
tmp1_output.
|
|
1397
|
-
tmp1_output.
|
|
1398
|
-
};
|
|
1399
|
-
protoOf($serializer_1).
|
|
1400
|
-
return this.
|
|
1401
|
-
};
|
|
1402
|
-
protoOf($serializer_1).
|
|
1403
|
-
var tmp0_desc = this.
|
|
1388
|
+
tmp0_serialDesc.g2b('type', false);
|
|
1389
|
+
tmp0_serialDesc.g2b('items', false);
|
|
1390
|
+
this.w30_1 = tmp0_serialDesc;
|
|
1391
|
+
}
|
|
1392
|
+
protoOf($serializer_1).x30 = function (encoder, value) {
|
|
1393
|
+
var tmp0_desc = this.w30_1;
|
|
1394
|
+
var tmp1_output = encoder.s23(tmp0_desc);
|
|
1395
|
+
tmp1_output.h25(tmp0_desc, 0, value.v2z_1);
|
|
1396
|
+
tmp1_output.j25(tmp0_desc, 1, TypeSerializer_getInstance(), value.w2z_1);
|
|
1397
|
+
tmp1_output.t23(tmp0_desc);
|
|
1398
|
+
};
|
|
1399
|
+
protoOf($serializer_1).u20 = function (encoder, value) {
|
|
1400
|
+
return this.x30(encoder, value instanceof ArrayType ? value : THROW_CCE());
|
|
1401
|
+
};
|
|
1402
|
+
protoOf($serializer_1).v20 = function (decoder) {
|
|
1403
|
+
var tmp0_desc = this.w30_1;
|
|
1404
1404
|
var tmp1_flag = true;
|
|
1405
1405
|
var tmp2_index = 0;
|
|
1406
1406
|
var tmp3_bitMask0 = 0;
|
|
1407
1407
|
var tmp4_local0 = null;
|
|
1408
1408
|
var tmp5_local1 = null;
|
|
1409
|
-
var tmp6_input = decoder.
|
|
1410
|
-
if (tmp6_input.
|
|
1411
|
-
tmp4_local0 = tmp6_input.
|
|
1409
|
+
var tmp6_input = decoder.s23(tmp0_desc);
|
|
1410
|
+
if (tmp6_input.i24()) {
|
|
1411
|
+
tmp4_local0 = tmp6_input.c24(tmp0_desc, 0);
|
|
1412
1412
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1413
|
-
tmp5_local1 = tmp6_input.
|
|
1413
|
+
tmp5_local1 = tmp6_input.e24(tmp0_desc, 1, TypeSerializer_getInstance(), tmp5_local1);
|
|
1414
1414
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1415
1415
|
} else
|
|
1416
1416
|
while (tmp1_flag) {
|
|
1417
|
-
tmp2_index = tmp6_input.
|
|
1417
|
+
tmp2_index = tmp6_input.j24(tmp0_desc);
|
|
1418
1418
|
switch (tmp2_index) {
|
|
1419
1419
|
case -1:
|
|
1420
1420
|
tmp1_flag = false;
|
|
1421
1421
|
break;
|
|
1422
1422
|
case 0:
|
|
1423
|
-
tmp4_local0 = tmp6_input.
|
|
1423
|
+
tmp4_local0 = tmp6_input.c24(tmp0_desc, 0);
|
|
1424
1424
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1425
1425
|
break;
|
|
1426
1426
|
case 1:
|
|
1427
|
-
tmp5_local1 = tmp6_input.
|
|
1427
|
+
tmp5_local1 = tmp6_input.e24(tmp0_desc, 1, TypeSerializer_getInstance(), tmp5_local1);
|
|
1428
1428
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1429
1429
|
break;
|
|
1430
1430
|
default:
|
|
1431
1431
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1432
1432
|
}
|
|
1433
1433
|
}
|
|
1434
|
-
tmp6_input.
|
|
1434
|
+
tmp6_input.t23(tmp0_desc);
|
|
1435
1435
|
return ArrayType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1436
1436
|
};
|
|
1437
|
-
protoOf($serializer_1).
|
|
1438
|
-
return this.
|
|
1437
|
+
protoOf($serializer_1).t20 = function () {
|
|
1438
|
+
return this.w30_1;
|
|
1439
1439
|
};
|
|
1440
|
-
protoOf($serializer_1).
|
|
1440
|
+
protoOf($serializer_1).v2b = function () {
|
|
1441
1441
|
// Inline function 'kotlin.arrayOf' call
|
|
1442
1442
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1443
1443
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1451,10 +1451,10 @@ function $serializer_getInstance_1() {
|
|
|
1451
1451
|
}
|
|
1452
1452
|
function ArrayType_init_$Init$(seen0, type, items, serializationConstructorMarker, $this) {
|
|
1453
1453
|
if (!(3 === (3 & seen0))) {
|
|
1454
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_1().
|
|
1454
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_1().w30_1);
|
|
1455
1455
|
}
|
|
1456
|
-
$this.
|
|
1457
|
-
$this.
|
|
1456
|
+
$this.v2z_1 = type;
|
|
1457
|
+
$this.w2z_1 = items;
|
|
1458
1458
|
return $this;
|
|
1459
1459
|
}
|
|
1460
1460
|
function ArrayType_init_$Create$(seen0, type, items, serializationConstructorMarker) {
|
|
@@ -1462,7 +1462,7 @@ function ArrayType_init_$Create$(seen0, type, items, serializationConstructorMar
|
|
|
1462
1462
|
}
|
|
1463
1463
|
function Companion_5() {
|
|
1464
1464
|
}
|
|
1465
|
-
protoOf(Companion_5).
|
|
1465
|
+
protoOf(Companion_5).v2n = function () {
|
|
1466
1466
|
return $serializer_getInstance_2();
|
|
1467
1467
|
};
|
|
1468
1468
|
var Companion_instance_5;
|
|
@@ -1472,59 +1472,59 @@ function Companion_getInstance_5() {
|
|
|
1472
1472
|
function $serializer_2() {
|
|
1473
1473
|
$serializer_instance_2 = this;
|
|
1474
1474
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.MapType', this, 2);
|
|
1475
|
-
tmp0_serialDesc.
|
|
1476
|
-
tmp0_serialDesc.
|
|
1477
|
-
this.
|
|
1478
|
-
}
|
|
1479
|
-
protoOf($serializer_2).
|
|
1480
|
-
var tmp0_desc = this.
|
|
1481
|
-
var tmp1_output = encoder.
|
|
1482
|
-
tmp1_output.
|
|
1483
|
-
tmp1_output.
|
|
1484
|
-
tmp1_output.
|
|
1485
|
-
};
|
|
1486
|
-
protoOf($serializer_2).
|
|
1487
|
-
return this.
|
|
1488
|
-
};
|
|
1489
|
-
protoOf($serializer_2).
|
|
1490
|
-
var tmp0_desc = this.
|
|
1475
|
+
tmp0_serialDesc.g2b('type', false);
|
|
1476
|
+
tmp0_serialDesc.g2b('values', false);
|
|
1477
|
+
this.y30_1 = tmp0_serialDesc;
|
|
1478
|
+
}
|
|
1479
|
+
protoOf($serializer_2).z30 = function (encoder, value) {
|
|
1480
|
+
var tmp0_desc = this.y30_1;
|
|
1481
|
+
var tmp1_output = encoder.s23(tmp0_desc);
|
|
1482
|
+
tmp1_output.h25(tmp0_desc, 0, value.g2z_1);
|
|
1483
|
+
tmp1_output.j25(tmp0_desc, 1, TypeSerializer_getInstance(), value.h2z_1);
|
|
1484
|
+
tmp1_output.t23(tmp0_desc);
|
|
1485
|
+
};
|
|
1486
|
+
protoOf($serializer_2).u20 = function (encoder, value) {
|
|
1487
|
+
return this.z30(encoder, value instanceof MapType ? value : THROW_CCE());
|
|
1488
|
+
};
|
|
1489
|
+
protoOf($serializer_2).v20 = function (decoder) {
|
|
1490
|
+
var tmp0_desc = this.y30_1;
|
|
1491
1491
|
var tmp1_flag = true;
|
|
1492
1492
|
var tmp2_index = 0;
|
|
1493
1493
|
var tmp3_bitMask0 = 0;
|
|
1494
1494
|
var tmp4_local0 = null;
|
|
1495
1495
|
var tmp5_local1 = null;
|
|
1496
|
-
var tmp6_input = decoder.
|
|
1497
|
-
if (tmp6_input.
|
|
1498
|
-
tmp4_local0 = tmp6_input.
|
|
1496
|
+
var tmp6_input = decoder.s23(tmp0_desc);
|
|
1497
|
+
if (tmp6_input.i24()) {
|
|
1498
|
+
tmp4_local0 = tmp6_input.c24(tmp0_desc, 0);
|
|
1499
1499
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1500
|
-
tmp5_local1 = tmp6_input.
|
|
1500
|
+
tmp5_local1 = tmp6_input.e24(tmp0_desc, 1, TypeSerializer_getInstance(), tmp5_local1);
|
|
1501
1501
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1502
1502
|
} else
|
|
1503
1503
|
while (tmp1_flag) {
|
|
1504
|
-
tmp2_index = tmp6_input.
|
|
1504
|
+
tmp2_index = tmp6_input.j24(tmp0_desc);
|
|
1505
1505
|
switch (tmp2_index) {
|
|
1506
1506
|
case -1:
|
|
1507
1507
|
tmp1_flag = false;
|
|
1508
1508
|
break;
|
|
1509
1509
|
case 0:
|
|
1510
|
-
tmp4_local0 = tmp6_input.
|
|
1510
|
+
tmp4_local0 = tmp6_input.c24(tmp0_desc, 0);
|
|
1511
1511
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1512
1512
|
break;
|
|
1513
1513
|
case 1:
|
|
1514
|
-
tmp5_local1 = tmp6_input.
|
|
1514
|
+
tmp5_local1 = tmp6_input.e24(tmp0_desc, 1, TypeSerializer_getInstance(), tmp5_local1);
|
|
1515
1515
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1516
1516
|
break;
|
|
1517
1517
|
default:
|
|
1518
1518
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1519
1519
|
}
|
|
1520
1520
|
}
|
|
1521
|
-
tmp6_input.
|
|
1521
|
+
tmp6_input.t23(tmp0_desc);
|
|
1522
1522
|
return MapType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1523
1523
|
};
|
|
1524
|
-
protoOf($serializer_2).
|
|
1525
|
-
return this.
|
|
1524
|
+
protoOf($serializer_2).t20 = function () {
|
|
1525
|
+
return this.y30_1;
|
|
1526
1526
|
};
|
|
1527
|
-
protoOf($serializer_2).
|
|
1527
|
+
protoOf($serializer_2).v2b = function () {
|
|
1528
1528
|
// Inline function 'kotlin.arrayOf' call
|
|
1529
1529
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1530
1530
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1538,10 +1538,10 @@ function $serializer_getInstance_2() {
|
|
|
1538
1538
|
}
|
|
1539
1539
|
function MapType_init_$Init$(seen0, type, values, serializationConstructorMarker, $this) {
|
|
1540
1540
|
if (!(3 === (3 & seen0))) {
|
|
1541
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().
|
|
1541
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().y30_1);
|
|
1542
1542
|
}
|
|
1543
|
-
$this.
|
|
1544
|
-
$this.
|
|
1543
|
+
$this.g2z_1 = type;
|
|
1544
|
+
$this.h2z_1 = values;
|
|
1545
1545
|
return $this;
|
|
1546
1546
|
}
|
|
1547
1547
|
function MapType_init_$Create$(seen0, type, values, serializationConstructorMarker) {
|
|
@@ -1557,9 +1557,9 @@ function Companion_6() {
|
|
|
1557
1557
|
// Inline function 'kotlin.arrayOf' call
|
|
1558
1558
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1559
1559
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1560
|
-
tmp.
|
|
1560
|
+
tmp.a31_1 = [null, null, null, lazy(tmp_0, AvroModel$EnumType$Companion$$childSerializers$_anonymous__vqfr9a)];
|
|
1561
1561
|
}
|
|
1562
|
-
protoOf(Companion_6).
|
|
1562
|
+
protoOf(Companion_6).v2n = function () {
|
|
1563
1563
|
return $serializer_getInstance_3();
|
|
1564
1564
|
};
|
|
1565
1565
|
var Companion_instance_6;
|
|
@@ -1571,29 +1571,29 @@ function Companion_getInstance_6() {
|
|
|
1571
1571
|
function $serializer_3() {
|
|
1572
1572
|
$serializer_instance_3 = this;
|
|
1573
1573
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.EnumType', this, 4);
|
|
1574
|
-
tmp0_serialDesc.
|
|
1575
|
-
tmp0_serialDesc.
|
|
1576
|
-
tmp0_serialDesc.
|
|
1577
|
-
tmp0_serialDesc.
|
|
1578
|
-
this.
|
|
1579
|
-
}
|
|
1580
|
-
protoOf($serializer_3).
|
|
1581
|
-
var tmp0_desc = this.
|
|
1582
|
-
var tmp1_output = encoder.
|
|
1583
|
-
var tmp2_cached = Companion_getInstance_6().
|
|
1584
|
-
tmp1_output.
|
|
1585
|
-
tmp1_output.
|
|
1586
|
-
if (tmp1_output.
|
|
1587
|
-
tmp1_output.
|
|
1588
|
-
}
|
|
1589
|
-
tmp1_output.
|
|
1590
|
-
tmp1_output.
|
|
1591
|
-
};
|
|
1592
|
-
protoOf($serializer_3).
|
|
1593
|
-
return this.
|
|
1594
|
-
};
|
|
1595
|
-
protoOf($serializer_3).
|
|
1596
|
-
var tmp0_desc = this.
|
|
1574
|
+
tmp0_serialDesc.g2b('type', false);
|
|
1575
|
+
tmp0_serialDesc.g2b('name', false);
|
|
1576
|
+
tmp0_serialDesc.g2b('doc', true);
|
|
1577
|
+
tmp0_serialDesc.g2b('symbols', false);
|
|
1578
|
+
this.b31_1 = tmp0_serialDesc;
|
|
1579
|
+
}
|
|
1580
|
+
protoOf($serializer_3).c31 = function (encoder, value) {
|
|
1581
|
+
var tmp0_desc = this.b31_1;
|
|
1582
|
+
var tmp1_output = encoder.s23(tmp0_desc);
|
|
1583
|
+
var tmp2_cached = Companion_getInstance_6().a31_1;
|
|
1584
|
+
tmp1_output.h25(tmp0_desc, 0, value.m2z_1);
|
|
1585
|
+
tmp1_output.h25(tmp0_desc, 1, value.n2z_1);
|
|
1586
|
+
if (tmp1_output.p25(tmp0_desc, 2) ? true : !(value.o2z_1 == null)) {
|
|
1587
|
+
tmp1_output.l25(tmp0_desc, 2, StringSerializer_getInstance(), value.o2z_1);
|
|
1588
|
+
}
|
|
1589
|
+
tmp1_output.j25(tmp0_desc, 3, tmp2_cached[3].o1(), value.p2z_1);
|
|
1590
|
+
tmp1_output.t23(tmp0_desc);
|
|
1591
|
+
};
|
|
1592
|
+
protoOf($serializer_3).u20 = function (encoder, value) {
|
|
1593
|
+
return this.c31(encoder, value instanceof EnumType ? value : THROW_CCE());
|
|
1594
|
+
};
|
|
1595
|
+
protoOf($serializer_3).v20 = function (decoder) {
|
|
1596
|
+
var tmp0_desc = this.b31_1;
|
|
1597
1597
|
var tmp1_flag = true;
|
|
1598
1598
|
var tmp2_index = 0;
|
|
1599
1599
|
var tmp3_bitMask0 = 0;
|
|
@@ -1601,52 +1601,52 @@ protoOf($serializer_3).p22 = function (decoder) {
|
|
|
1601
1601
|
var tmp5_local1 = null;
|
|
1602
1602
|
var tmp6_local2 = null;
|
|
1603
1603
|
var tmp7_local3 = null;
|
|
1604
|
-
var tmp8_input = decoder.
|
|
1605
|
-
var tmp9_cached = Companion_getInstance_6().
|
|
1606
|
-
if (tmp8_input.
|
|
1607
|
-
tmp4_local0 = tmp8_input.
|
|
1604
|
+
var tmp8_input = decoder.s23(tmp0_desc);
|
|
1605
|
+
var tmp9_cached = Companion_getInstance_6().a31_1;
|
|
1606
|
+
if (tmp8_input.i24()) {
|
|
1607
|
+
tmp4_local0 = tmp8_input.c24(tmp0_desc, 0);
|
|
1608
1608
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1609
|
-
tmp5_local1 = tmp8_input.
|
|
1609
|
+
tmp5_local1 = tmp8_input.c24(tmp0_desc, 1);
|
|
1610
1610
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1611
|
-
tmp6_local2 = tmp8_input.
|
|
1611
|
+
tmp6_local2 = tmp8_input.g24(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1612
1612
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1613
|
-
tmp7_local3 = tmp8_input.
|
|
1613
|
+
tmp7_local3 = tmp8_input.e24(tmp0_desc, 3, tmp9_cached[3].o1(), tmp7_local3);
|
|
1614
1614
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1615
1615
|
} else
|
|
1616
1616
|
while (tmp1_flag) {
|
|
1617
|
-
tmp2_index = tmp8_input.
|
|
1617
|
+
tmp2_index = tmp8_input.j24(tmp0_desc);
|
|
1618
1618
|
switch (tmp2_index) {
|
|
1619
1619
|
case -1:
|
|
1620
1620
|
tmp1_flag = false;
|
|
1621
1621
|
break;
|
|
1622
1622
|
case 0:
|
|
1623
|
-
tmp4_local0 = tmp8_input.
|
|
1623
|
+
tmp4_local0 = tmp8_input.c24(tmp0_desc, 0);
|
|
1624
1624
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1625
1625
|
break;
|
|
1626
1626
|
case 1:
|
|
1627
|
-
tmp5_local1 = tmp8_input.
|
|
1627
|
+
tmp5_local1 = tmp8_input.c24(tmp0_desc, 1);
|
|
1628
1628
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1629
1629
|
break;
|
|
1630
1630
|
case 2:
|
|
1631
|
-
tmp6_local2 = tmp8_input.
|
|
1631
|
+
tmp6_local2 = tmp8_input.g24(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1632
1632
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1633
1633
|
break;
|
|
1634
1634
|
case 3:
|
|
1635
|
-
tmp7_local3 = tmp8_input.
|
|
1635
|
+
tmp7_local3 = tmp8_input.e24(tmp0_desc, 3, tmp9_cached[3].o1(), tmp7_local3);
|
|
1636
1636
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1637
1637
|
break;
|
|
1638
1638
|
default:
|
|
1639
1639
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1640
1640
|
}
|
|
1641
1641
|
}
|
|
1642
|
-
tmp8_input.
|
|
1642
|
+
tmp8_input.t23(tmp0_desc);
|
|
1643
1643
|
return EnumType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
1644
1644
|
};
|
|
1645
|
-
protoOf($serializer_3).
|
|
1646
|
-
return this.
|
|
1645
|
+
protoOf($serializer_3).t20 = function () {
|
|
1646
|
+
return this.b31_1;
|
|
1647
1647
|
};
|
|
1648
|
-
protoOf($serializer_3).
|
|
1649
|
-
var tmp0_cached = Companion_getInstance_6().
|
|
1648
|
+
protoOf($serializer_3).v2b = function () {
|
|
1649
|
+
var tmp0_cached = Companion_getInstance_6().a31_1;
|
|
1650
1650
|
// Inline function 'kotlin.arrayOf' call
|
|
1651
1651
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1652
1652
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1660,15 +1660,15 @@ function $serializer_getInstance_3() {
|
|
|
1660
1660
|
}
|
|
1661
1661
|
function EnumType_init_$Init$(seen0, type, name, doc, symbols, serializationConstructorMarker, $this) {
|
|
1662
1662
|
if (!(11 === (11 & seen0))) {
|
|
1663
|
-
throwMissingFieldException(seen0, 11, $serializer_getInstance_3().
|
|
1663
|
+
throwMissingFieldException(seen0, 11, $serializer_getInstance_3().b31_1);
|
|
1664
1664
|
}
|
|
1665
|
-
$this.
|
|
1666
|
-
$this.
|
|
1665
|
+
$this.m2z_1 = type;
|
|
1666
|
+
$this.n2z_1 = name;
|
|
1667
1667
|
if (0 === (seen0 & 4))
|
|
1668
|
-
$this.
|
|
1668
|
+
$this.o2z_1 = null;
|
|
1669
1669
|
else
|
|
1670
|
-
$this.
|
|
1671
|
-
$this.
|
|
1670
|
+
$this.o2z_1 = doc;
|
|
1671
|
+
$this.p2z_1 = symbols;
|
|
1672
1672
|
return $this;
|
|
1673
1673
|
}
|
|
1674
1674
|
function EnumType_init_$Create$(seen0, type, name, doc, symbols, serializationConstructorMarker) {
|
|
@@ -1676,7 +1676,7 @@ function EnumType_init_$Create$(seen0, type, name, doc, symbols, serializationCo
|
|
|
1676
1676
|
}
|
|
1677
1677
|
function Companion_7() {
|
|
1678
1678
|
}
|
|
1679
|
-
protoOf(Companion_7).
|
|
1679
|
+
protoOf(Companion_7).v2n = function () {
|
|
1680
1680
|
return $serializer_getInstance_4();
|
|
1681
1681
|
};
|
|
1682
1682
|
var Companion_instance_7;
|
|
@@ -1686,59 +1686,59 @@ function Companion_getInstance_7() {
|
|
|
1686
1686
|
function $serializer_4() {
|
|
1687
1687
|
$serializer_instance_4 = this;
|
|
1688
1688
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.UnionType', this, 2);
|
|
1689
|
-
tmp0_serialDesc.
|
|
1690
|
-
tmp0_serialDesc.
|
|
1691
|
-
this.
|
|
1692
|
-
}
|
|
1693
|
-
protoOf($serializer_4).
|
|
1694
|
-
var tmp0_desc = this.
|
|
1695
|
-
var tmp1_output = encoder.
|
|
1696
|
-
tmp1_output.
|
|
1697
|
-
tmp1_output.
|
|
1698
|
-
tmp1_output.
|
|
1699
|
-
};
|
|
1700
|
-
protoOf($serializer_4).
|
|
1701
|
-
return this.
|
|
1702
|
-
};
|
|
1703
|
-
protoOf($serializer_4).
|
|
1704
|
-
var tmp0_desc = this.
|
|
1689
|
+
tmp0_serialDesc.g2b('name', false);
|
|
1690
|
+
tmp0_serialDesc.g2b('type', false);
|
|
1691
|
+
this.d31_1 = tmp0_serialDesc;
|
|
1692
|
+
}
|
|
1693
|
+
protoOf($serializer_4).e31 = function (encoder, value) {
|
|
1694
|
+
var tmp0_desc = this.d31_1;
|
|
1695
|
+
var tmp1_output = encoder.s23(tmp0_desc);
|
|
1696
|
+
tmp1_output.h25(tmp0_desc, 0, value.e2z_1);
|
|
1697
|
+
tmp1_output.j25(tmp0_desc, 1, TypeListSerializer_getInstance(), value.f2z_1);
|
|
1698
|
+
tmp1_output.t23(tmp0_desc);
|
|
1699
|
+
};
|
|
1700
|
+
protoOf($serializer_4).u20 = function (encoder, value) {
|
|
1701
|
+
return this.e31(encoder, value instanceof UnionType ? value : THROW_CCE());
|
|
1702
|
+
};
|
|
1703
|
+
protoOf($serializer_4).v20 = function (decoder) {
|
|
1704
|
+
var tmp0_desc = this.d31_1;
|
|
1705
1705
|
var tmp1_flag = true;
|
|
1706
1706
|
var tmp2_index = 0;
|
|
1707
1707
|
var tmp3_bitMask0 = 0;
|
|
1708
1708
|
var tmp4_local0 = null;
|
|
1709
1709
|
var tmp5_local1 = null;
|
|
1710
|
-
var tmp6_input = decoder.
|
|
1711
|
-
if (tmp6_input.
|
|
1712
|
-
tmp4_local0 = tmp6_input.
|
|
1710
|
+
var tmp6_input = decoder.s23(tmp0_desc);
|
|
1711
|
+
if (tmp6_input.i24()) {
|
|
1712
|
+
tmp4_local0 = tmp6_input.c24(tmp0_desc, 0);
|
|
1713
1713
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1714
|
-
tmp5_local1 = tmp6_input.
|
|
1714
|
+
tmp5_local1 = tmp6_input.e24(tmp0_desc, 1, TypeListSerializer_getInstance(), tmp5_local1);
|
|
1715
1715
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1716
1716
|
} else
|
|
1717
1717
|
while (tmp1_flag) {
|
|
1718
|
-
tmp2_index = tmp6_input.
|
|
1718
|
+
tmp2_index = tmp6_input.j24(tmp0_desc);
|
|
1719
1719
|
switch (tmp2_index) {
|
|
1720
1720
|
case -1:
|
|
1721
1721
|
tmp1_flag = false;
|
|
1722
1722
|
break;
|
|
1723
1723
|
case 0:
|
|
1724
|
-
tmp4_local0 = tmp6_input.
|
|
1724
|
+
tmp4_local0 = tmp6_input.c24(tmp0_desc, 0);
|
|
1725
1725
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1726
1726
|
break;
|
|
1727
1727
|
case 1:
|
|
1728
|
-
tmp5_local1 = tmp6_input.
|
|
1728
|
+
tmp5_local1 = tmp6_input.e24(tmp0_desc, 1, TypeListSerializer_getInstance(), tmp5_local1);
|
|
1729
1729
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1730
1730
|
break;
|
|
1731
1731
|
default:
|
|
1732
1732
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1733
1733
|
}
|
|
1734
1734
|
}
|
|
1735
|
-
tmp6_input.
|
|
1735
|
+
tmp6_input.t23(tmp0_desc);
|
|
1736
1736
|
return UnionType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1737
1737
|
};
|
|
1738
|
-
protoOf($serializer_4).
|
|
1739
|
-
return this.
|
|
1738
|
+
protoOf($serializer_4).t20 = function () {
|
|
1739
|
+
return this.d31_1;
|
|
1740
1740
|
};
|
|
1741
|
-
protoOf($serializer_4).
|
|
1741
|
+
protoOf($serializer_4).v2b = function () {
|
|
1742
1742
|
// Inline function 'kotlin.arrayOf' call
|
|
1743
1743
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1744
1744
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1752,10 +1752,10 @@ function $serializer_getInstance_4() {
|
|
|
1752
1752
|
}
|
|
1753
1753
|
function UnionType_init_$Init$(seen0, name, type, serializationConstructorMarker, $this) {
|
|
1754
1754
|
if (!(3 === (3 & seen0))) {
|
|
1755
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_4().
|
|
1755
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_4().d31_1);
|
|
1756
1756
|
}
|
|
1757
|
-
$this.
|
|
1758
|
-
$this.
|
|
1757
|
+
$this.e2z_1 = name;
|
|
1758
|
+
$this.f2z_1 = type;
|
|
1759
1759
|
return $this;
|
|
1760
1760
|
}
|
|
1761
1761
|
function UnionType_init_$Create$(seen0, name, type, serializationConstructorMarker) {
|
|
@@ -1763,7 +1763,7 @@ function UnionType_init_$Create$(seen0, name, type, serializationConstructorMark
|
|
|
1763
1763
|
}
|
|
1764
1764
|
function Companion_8() {
|
|
1765
1765
|
}
|
|
1766
|
-
protoOf(Companion_8).
|
|
1766
|
+
protoOf(Companion_8).v2n = function () {
|
|
1767
1767
|
return $serializer_getInstance_5();
|
|
1768
1768
|
};
|
|
1769
1769
|
var Companion_instance_8;
|
|
@@ -1773,30 +1773,30 @@ function Companion_getInstance_8() {
|
|
|
1773
1773
|
function $serializer_5() {
|
|
1774
1774
|
$serializer_instance_5 = this;
|
|
1775
1775
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.LogicalType', this, 4);
|
|
1776
|
-
tmp0_serialDesc.
|
|
1777
|
-
tmp0_serialDesc.
|
|
1778
|
-
tmp0_serialDesc.
|
|
1779
|
-
tmp0_serialDesc.
|
|
1780
|
-
this.
|
|
1781
|
-
}
|
|
1782
|
-
protoOf($serializer_5).
|
|
1783
|
-
var tmp0_desc = this.
|
|
1784
|
-
var tmp1_output = encoder.
|
|
1785
|
-
tmp1_output.
|
|
1786
|
-
tmp1_output.
|
|
1787
|
-
if (tmp1_output.
|
|
1788
|
-
tmp1_output.
|
|
1789
|
-
}
|
|
1790
|
-
if (tmp1_output.
|
|
1791
|
-
tmp1_output.
|
|
1792
|
-
}
|
|
1793
|
-
tmp1_output.
|
|
1794
|
-
};
|
|
1795
|
-
protoOf($serializer_5).
|
|
1796
|
-
return this.
|
|
1797
|
-
};
|
|
1798
|
-
protoOf($serializer_5).
|
|
1799
|
-
var tmp0_desc = this.
|
|
1776
|
+
tmp0_serialDesc.g2b('type', false);
|
|
1777
|
+
tmp0_serialDesc.g2b('logicalType', false);
|
|
1778
|
+
tmp0_serialDesc.g2b('precision', true);
|
|
1779
|
+
tmp0_serialDesc.g2b('scale', true);
|
|
1780
|
+
this.f31_1 = tmp0_serialDesc;
|
|
1781
|
+
}
|
|
1782
|
+
protoOf($serializer_5).g31 = function (encoder, value) {
|
|
1783
|
+
var tmp0_desc = this.f31_1;
|
|
1784
|
+
var tmp1_output = encoder.s23(tmp0_desc);
|
|
1785
|
+
tmp1_output.h25(tmp0_desc, 0, value.i2z_1);
|
|
1786
|
+
tmp1_output.h25(tmp0_desc, 1, value.j2z_1);
|
|
1787
|
+
if (tmp1_output.p25(tmp0_desc, 2) ? true : !(value.k2z_1 == null)) {
|
|
1788
|
+
tmp1_output.l25(tmp0_desc, 2, IntSerializer_getInstance(), value.k2z_1);
|
|
1789
|
+
}
|
|
1790
|
+
if (tmp1_output.p25(tmp0_desc, 3) ? true : !(value.l2z_1 == null)) {
|
|
1791
|
+
tmp1_output.l25(tmp0_desc, 3, IntSerializer_getInstance(), value.l2z_1);
|
|
1792
|
+
}
|
|
1793
|
+
tmp1_output.t23(tmp0_desc);
|
|
1794
|
+
};
|
|
1795
|
+
protoOf($serializer_5).u20 = function (encoder, value) {
|
|
1796
|
+
return this.g31(encoder, value instanceof LogicalType ? value : THROW_CCE());
|
|
1797
|
+
};
|
|
1798
|
+
protoOf($serializer_5).v20 = function (decoder) {
|
|
1799
|
+
var tmp0_desc = this.f31_1;
|
|
1800
1800
|
var tmp1_flag = true;
|
|
1801
1801
|
var tmp2_index = 0;
|
|
1802
1802
|
var tmp3_bitMask0 = 0;
|
|
@@ -1804,50 +1804,50 @@ protoOf($serializer_5).p22 = function (decoder) {
|
|
|
1804
1804
|
var tmp5_local1 = null;
|
|
1805
1805
|
var tmp6_local2 = null;
|
|
1806
1806
|
var tmp7_local3 = null;
|
|
1807
|
-
var tmp8_input = decoder.
|
|
1808
|
-
if (tmp8_input.
|
|
1809
|
-
tmp4_local0 = tmp8_input.
|
|
1807
|
+
var tmp8_input = decoder.s23(tmp0_desc);
|
|
1808
|
+
if (tmp8_input.i24()) {
|
|
1809
|
+
tmp4_local0 = tmp8_input.c24(tmp0_desc, 0);
|
|
1810
1810
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1811
|
-
tmp5_local1 = tmp8_input.
|
|
1811
|
+
tmp5_local1 = tmp8_input.c24(tmp0_desc, 1);
|
|
1812
1812
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1813
|
-
tmp6_local2 = tmp8_input.
|
|
1813
|
+
tmp6_local2 = tmp8_input.g24(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
|
|
1814
1814
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1815
|
-
tmp7_local3 = tmp8_input.
|
|
1815
|
+
tmp7_local3 = tmp8_input.g24(tmp0_desc, 3, IntSerializer_getInstance(), tmp7_local3);
|
|
1816
1816
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1817
1817
|
} else
|
|
1818
1818
|
while (tmp1_flag) {
|
|
1819
|
-
tmp2_index = tmp8_input.
|
|
1819
|
+
tmp2_index = tmp8_input.j24(tmp0_desc);
|
|
1820
1820
|
switch (tmp2_index) {
|
|
1821
1821
|
case -1:
|
|
1822
1822
|
tmp1_flag = false;
|
|
1823
1823
|
break;
|
|
1824
1824
|
case 0:
|
|
1825
|
-
tmp4_local0 = tmp8_input.
|
|
1825
|
+
tmp4_local0 = tmp8_input.c24(tmp0_desc, 0);
|
|
1826
1826
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1827
1827
|
break;
|
|
1828
1828
|
case 1:
|
|
1829
|
-
tmp5_local1 = tmp8_input.
|
|
1829
|
+
tmp5_local1 = tmp8_input.c24(tmp0_desc, 1);
|
|
1830
1830
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1831
1831
|
break;
|
|
1832
1832
|
case 2:
|
|
1833
|
-
tmp6_local2 = tmp8_input.
|
|
1833
|
+
tmp6_local2 = tmp8_input.g24(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
|
|
1834
1834
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1835
1835
|
break;
|
|
1836
1836
|
case 3:
|
|
1837
|
-
tmp7_local3 = tmp8_input.
|
|
1837
|
+
tmp7_local3 = tmp8_input.g24(tmp0_desc, 3, IntSerializer_getInstance(), tmp7_local3);
|
|
1838
1838
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1839
1839
|
break;
|
|
1840
1840
|
default:
|
|
1841
1841
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1842
1842
|
}
|
|
1843
1843
|
}
|
|
1844
|
-
tmp8_input.
|
|
1844
|
+
tmp8_input.t23(tmp0_desc);
|
|
1845
1845
|
return LogicalType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
1846
1846
|
};
|
|
1847
|
-
protoOf($serializer_5).
|
|
1848
|
-
return this.
|
|
1847
|
+
protoOf($serializer_5).t20 = function () {
|
|
1848
|
+
return this.f31_1;
|
|
1849
1849
|
};
|
|
1850
|
-
protoOf($serializer_5).
|
|
1850
|
+
protoOf($serializer_5).v2b = function () {
|
|
1851
1851
|
// Inline function 'kotlin.arrayOf' call
|
|
1852
1852
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1853
1853
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1861,18 +1861,18 @@ function $serializer_getInstance_5() {
|
|
|
1861
1861
|
}
|
|
1862
1862
|
function LogicalType_init_$Init$(seen0, type, logicalType, precision, scale, serializationConstructorMarker, $this) {
|
|
1863
1863
|
if (!(3 === (3 & seen0))) {
|
|
1864
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_5().
|
|
1864
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_5().f31_1);
|
|
1865
1865
|
}
|
|
1866
|
-
$this.
|
|
1867
|
-
$this.
|
|
1866
|
+
$this.i2z_1 = type;
|
|
1867
|
+
$this.j2z_1 = logicalType;
|
|
1868
1868
|
if (0 === (seen0 & 4))
|
|
1869
|
-
$this.
|
|
1869
|
+
$this.k2z_1 = null;
|
|
1870
1870
|
else
|
|
1871
|
-
$this.
|
|
1871
|
+
$this.k2z_1 = precision;
|
|
1872
1872
|
if (0 === (seen0 & 8))
|
|
1873
|
-
$this.
|
|
1873
|
+
$this.l2z_1 = null;
|
|
1874
1874
|
else
|
|
1875
|
-
$this.
|
|
1875
|
+
$this.l2z_1 = scale;
|
|
1876
1876
|
return $this;
|
|
1877
1877
|
}
|
|
1878
1878
|
function LogicalType_init_$Create$(seen0, type, logicalType, precision, scale, serializationConstructorMarker) {
|
|
@@ -1881,19 +1881,29 @@ function LogicalType_init_$Create$(seen0, type, logicalType, precision, scale, s
|
|
|
1881
1881
|
function Field_0(name, type, doc, default_0) {
|
|
1882
1882
|
doc = doc === VOID ? null : doc;
|
|
1883
1883
|
default_0 = default_0 === VOID ? null : default_0;
|
|
1884
|
-
this.
|
|
1885
|
-
this.
|
|
1886
|
-
this.
|
|
1887
|
-
this.
|
|
1884
|
+
this.x2z_1 = name;
|
|
1885
|
+
this.y2z_1 = type;
|
|
1886
|
+
this.z2z_1 = doc;
|
|
1887
|
+
this.a30_1 = default_0;
|
|
1888
1888
|
}
|
|
1889
|
+
protoOf(Field_0).h31 = function (name, type, doc, default_0) {
|
|
1890
|
+
return new Field_0(name, type, doc, default_0);
|
|
1891
|
+
};
|
|
1892
|
+
protoOf(Field_0).i31 = function (name, type, doc, default_0, $super) {
|
|
1893
|
+
name = name === VOID ? this.x2z_1 : name;
|
|
1894
|
+
type = type === VOID ? this.y2z_1 : type;
|
|
1895
|
+
doc = doc === VOID ? this.z2z_1 : doc;
|
|
1896
|
+
default_0 = default_0 === VOID ? this.a30_1 : default_0;
|
|
1897
|
+
return $super === VOID ? this.h31(name, type, doc, default_0) : $super.h31.call(this, name, type, doc, default_0);
|
|
1898
|
+
};
|
|
1889
1899
|
protoOf(Field_0).toString = function () {
|
|
1890
|
-
return 'Field(name=' + this.
|
|
1900
|
+
return 'Field(name=' + this.x2z_1 + ', type=' + this.y2z_1.toString() + ', doc=' + this.z2z_1 + ', default=' + toString_1(this.a30_1) + ')';
|
|
1891
1901
|
};
|
|
1892
1902
|
protoOf(Field_0).hashCode = function () {
|
|
1893
|
-
var result = getStringHashCode(this.
|
|
1894
|
-
result = imul(result, 31) + this.
|
|
1895
|
-
result = imul(result, 31) + (this.
|
|
1896
|
-
result = imul(result, 31) + (this.
|
|
1903
|
+
var result = getStringHashCode(this.x2z_1);
|
|
1904
|
+
result = imul(result, 31) + this.y2z_1.hashCode() | 0;
|
|
1905
|
+
result = imul(result, 31) + (this.z2z_1 == null ? 0 : getStringHashCode(this.z2z_1)) | 0;
|
|
1906
|
+
result = imul(result, 31) + (this.a30_1 == null ? 0 : hashCode(this.a30_1)) | 0;
|
|
1897
1907
|
return result;
|
|
1898
1908
|
};
|
|
1899
1909
|
protoOf(Field_0).equals = function (other) {
|
|
@@ -1901,44 +1911,47 @@ protoOf(Field_0).equals = function (other) {
|
|
|
1901
1911
|
return true;
|
|
1902
1912
|
if (!(other instanceof Field_0))
|
|
1903
1913
|
return false;
|
|
1904
|
-
if (!(this.
|
|
1914
|
+
if (!(this.x2z_1 === other.x2z_1))
|
|
1905
1915
|
return false;
|
|
1906
|
-
if (!this.
|
|
1916
|
+
if (!this.y2z_1.equals(other.y2z_1))
|
|
1907
1917
|
return false;
|
|
1908
|
-
if (!(this.
|
|
1918
|
+
if (!(this.z2z_1 == other.z2z_1))
|
|
1909
1919
|
return false;
|
|
1910
|
-
if (!equals(this.
|
|
1920
|
+
if (!equals(this.a30_1, other.a30_1))
|
|
1911
1921
|
return false;
|
|
1912
1922
|
return true;
|
|
1913
1923
|
};
|
|
1914
1924
|
function TypeList(type) {
|
|
1915
1925
|
AbstractList.call(this);
|
|
1916
|
-
this.
|
|
1917
|
-
this.
|
|
1926
|
+
this.j31_1 = toList_0(type);
|
|
1927
|
+
this.k31_1 = this.j31_1.b1();
|
|
1918
1928
|
}
|
|
1919
1929
|
protoOf(TypeList).b1 = function () {
|
|
1920
|
-
return this.
|
|
1930
|
+
return this.k31_1;
|
|
1921
1931
|
};
|
|
1922
1932
|
protoOf(TypeList).c1 = function (index) {
|
|
1923
|
-
return this.
|
|
1933
|
+
return this.j31_1.c1(index);
|
|
1924
1934
|
};
|
|
1925
1935
|
function Type_0() {
|
|
1926
1936
|
}
|
|
1927
1937
|
function SimpleType(value) {
|
|
1928
|
-
this.
|
|
1938
|
+
this.d2z_1 = value;
|
|
1929
1939
|
}
|
|
1940
|
+
protoOf(SimpleType).l31 = function (value) {
|
|
1941
|
+
return new SimpleType(value);
|
|
1942
|
+
};
|
|
1930
1943
|
protoOf(SimpleType).toString = function () {
|
|
1931
|
-
return 'SimpleType(value=' + this.
|
|
1944
|
+
return 'SimpleType(value=' + this.d2z_1 + ')';
|
|
1932
1945
|
};
|
|
1933
1946
|
protoOf(SimpleType).hashCode = function () {
|
|
1934
|
-
return getStringHashCode(this.
|
|
1947
|
+
return getStringHashCode(this.d2z_1);
|
|
1935
1948
|
};
|
|
1936
1949
|
protoOf(SimpleType).equals = function (other) {
|
|
1937
1950
|
if (this === other)
|
|
1938
1951
|
return true;
|
|
1939
1952
|
if (!(other instanceof SimpleType))
|
|
1940
1953
|
return false;
|
|
1941
|
-
if (!(this.
|
|
1954
|
+
if (!(this.d2z_1 === other.d2z_1))
|
|
1942
1955
|
return false;
|
|
1943
1956
|
return true;
|
|
1944
1957
|
};
|
|
@@ -1946,21 +1959,32 @@ function RecordType(type, name, namespace, fields, doc) {
|
|
|
1946
1959
|
Companion_getInstance_3();
|
|
1947
1960
|
namespace = namespace === VOID ? null : namespace;
|
|
1948
1961
|
doc = doc === VOID ? null : doc;
|
|
1949
|
-
this.
|
|
1950
|
-
this.
|
|
1951
|
-
this.
|
|
1952
|
-
this.
|
|
1953
|
-
this.
|
|
1954
|
-
}
|
|
1962
|
+
this.q2z_1 = type;
|
|
1963
|
+
this.r2z_1 = name;
|
|
1964
|
+
this.s2z_1 = namespace;
|
|
1965
|
+
this.t2z_1 = fields;
|
|
1966
|
+
this.u2z_1 = doc;
|
|
1967
|
+
}
|
|
1968
|
+
protoOf(RecordType).m31 = function (type, name, namespace, fields, doc) {
|
|
1969
|
+
return new RecordType(type, name, namespace, fields, doc);
|
|
1970
|
+
};
|
|
1971
|
+
protoOf(RecordType).n31 = function (type, name, namespace, fields, doc, $super) {
|
|
1972
|
+
type = type === VOID ? this.q2z_1 : type;
|
|
1973
|
+
name = name === VOID ? this.r2z_1 : name;
|
|
1974
|
+
namespace = namespace === VOID ? this.s2z_1 : namespace;
|
|
1975
|
+
fields = fields === VOID ? this.t2z_1 : fields;
|
|
1976
|
+
doc = doc === VOID ? this.u2z_1 : doc;
|
|
1977
|
+
return $super === VOID ? this.m31(type, name, namespace, fields, doc) : $super.m31.call(this, type, name, namespace, fields, doc);
|
|
1978
|
+
};
|
|
1955
1979
|
protoOf(RecordType).toString = function () {
|
|
1956
|
-
return 'RecordType(type=' + this.
|
|
1980
|
+
return 'RecordType(type=' + this.q2z_1 + ', name=' + this.r2z_1 + ', namespace=' + this.s2z_1 + ', fields=' + toString(this.t2z_1) + ', doc=' + this.u2z_1 + ')';
|
|
1957
1981
|
};
|
|
1958
1982
|
protoOf(RecordType).hashCode = function () {
|
|
1959
|
-
var result = getStringHashCode(this.
|
|
1960
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1961
|
-
result = imul(result, 31) + (this.
|
|
1962
|
-
result = imul(result, 31) + hashCode(this.
|
|
1963
|
-
result = imul(result, 31) + (this.
|
|
1983
|
+
var result = getStringHashCode(this.q2z_1);
|
|
1984
|
+
result = imul(result, 31) + getStringHashCode(this.r2z_1) | 0;
|
|
1985
|
+
result = imul(result, 31) + (this.s2z_1 == null ? 0 : getStringHashCode(this.s2z_1)) | 0;
|
|
1986
|
+
result = imul(result, 31) + hashCode(this.t2z_1) | 0;
|
|
1987
|
+
result = imul(result, 31) + (this.u2z_1 == null ? 0 : getStringHashCode(this.u2z_1)) | 0;
|
|
1964
1988
|
return result;
|
|
1965
1989
|
};
|
|
1966
1990
|
protoOf(RecordType).equals = function (other) {
|
|
@@ -1968,28 +1992,36 @@ protoOf(RecordType).equals = function (other) {
|
|
|
1968
1992
|
return true;
|
|
1969
1993
|
if (!(other instanceof RecordType))
|
|
1970
1994
|
return false;
|
|
1971
|
-
if (!(this.
|
|
1995
|
+
if (!(this.q2z_1 === other.q2z_1))
|
|
1972
1996
|
return false;
|
|
1973
|
-
if (!(this.
|
|
1997
|
+
if (!(this.r2z_1 === other.r2z_1))
|
|
1974
1998
|
return false;
|
|
1975
|
-
if (!(this.
|
|
1999
|
+
if (!(this.s2z_1 == other.s2z_1))
|
|
1976
2000
|
return false;
|
|
1977
|
-
if (!equals(this.
|
|
2001
|
+
if (!equals(this.t2z_1, other.t2z_1))
|
|
1978
2002
|
return false;
|
|
1979
|
-
if (!(this.
|
|
2003
|
+
if (!(this.u2z_1 == other.u2z_1))
|
|
1980
2004
|
return false;
|
|
1981
2005
|
return true;
|
|
1982
2006
|
};
|
|
1983
2007
|
function ArrayType(type, items) {
|
|
1984
|
-
this.
|
|
1985
|
-
this.
|
|
2008
|
+
this.v2z_1 = type;
|
|
2009
|
+
this.w2z_1 = items;
|
|
1986
2010
|
}
|
|
2011
|
+
protoOf(ArrayType).o31 = function (type, items) {
|
|
2012
|
+
return new ArrayType(type, items);
|
|
2013
|
+
};
|
|
2014
|
+
protoOf(ArrayType).p31 = function (type, items, $super) {
|
|
2015
|
+
type = type === VOID ? this.v2z_1 : type;
|
|
2016
|
+
items = items === VOID ? this.w2z_1 : items;
|
|
2017
|
+
return $super === VOID ? this.o31(type, items) : $super.o31.call(this, type, items);
|
|
2018
|
+
};
|
|
1987
2019
|
protoOf(ArrayType).toString = function () {
|
|
1988
|
-
return 'ArrayType(type=' + this.
|
|
2020
|
+
return 'ArrayType(type=' + this.v2z_1 + ', items=' + toString(this.w2z_1) + ')';
|
|
1989
2021
|
};
|
|
1990
2022
|
protoOf(ArrayType).hashCode = function () {
|
|
1991
|
-
var result = getStringHashCode(this.
|
|
1992
|
-
result = imul(result, 31) + hashCode(this.
|
|
2023
|
+
var result = getStringHashCode(this.v2z_1);
|
|
2024
|
+
result = imul(result, 31) + hashCode(this.w2z_1) | 0;
|
|
1993
2025
|
return result;
|
|
1994
2026
|
};
|
|
1995
2027
|
protoOf(ArrayType).equals = function (other) {
|
|
@@ -1997,22 +2029,30 @@ protoOf(ArrayType).equals = function (other) {
|
|
|
1997
2029
|
return true;
|
|
1998
2030
|
if (!(other instanceof ArrayType))
|
|
1999
2031
|
return false;
|
|
2000
|
-
if (!(this.
|
|
2032
|
+
if (!(this.v2z_1 === other.v2z_1))
|
|
2001
2033
|
return false;
|
|
2002
|
-
if (!equals(this.
|
|
2034
|
+
if (!equals(this.w2z_1, other.w2z_1))
|
|
2003
2035
|
return false;
|
|
2004
2036
|
return true;
|
|
2005
2037
|
};
|
|
2006
2038
|
function MapType(type, values) {
|
|
2007
|
-
this.
|
|
2008
|
-
this.
|
|
2039
|
+
this.g2z_1 = type;
|
|
2040
|
+
this.h2z_1 = values;
|
|
2009
2041
|
}
|
|
2042
|
+
protoOf(MapType).o31 = function (type, values) {
|
|
2043
|
+
return new MapType(type, values);
|
|
2044
|
+
};
|
|
2045
|
+
protoOf(MapType).q31 = function (type, values, $super) {
|
|
2046
|
+
type = type === VOID ? this.g2z_1 : type;
|
|
2047
|
+
values = values === VOID ? this.h2z_1 : values;
|
|
2048
|
+
return $super === VOID ? this.o31(type, values) : $super.o31.call(this, type, values);
|
|
2049
|
+
};
|
|
2010
2050
|
protoOf(MapType).toString = function () {
|
|
2011
|
-
return 'MapType(type=' + this.
|
|
2051
|
+
return 'MapType(type=' + this.g2z_1 + ', values=' + toString(this.h2z_1) + ')';
|
|
2012
2052
|
};
|
|
2013
2053
|
protoOf(MapType).hashCode = function () {
|
|
2014
|
-
var result = getStringHashCode(this.
|
|
2015
|
-
result = imul(result, 31) + hashCode(this.
|
|
2054
|
+
var result = getStringHashCode(this.g2z_1);
|
|
2055
|
+
result = imul(result, 31) + hashCode(this.h2z_1) | 0;
|
|
2016
2056
|
return result;
|
|
2017
2057
|
};
|
|
2018
2058
|
protoOf(MapType).equals = function (other) {
|
|
@@ -2020,28 +2060,28 @@ protoOf(MapType).equals = function (other) {
|
|
|
2020
2060
|
return true;
|
|
2021
2061
|
if (!(other instanceof MapType))
|
|
2022
2062
|
return false;
|
|
2023
|
-
if (!(this.
|
|
2063
|
+
if (!(this.g2z_1 === other.g2z_1))
|
|
2024
2064
|
return false;
|
|
2025
|
-
if (!equals(this.
|
|
2065
|
+
if (!equals(this.h2z_1, other.h2z_1))
|
|
2026
2066
|
return false;
|
|
2027
2067
|
return true;
|
|
2028
2068
|
};
|
|
2029
2069
|
function EnumType(type, name, doc, symbols) {
|
|
2030
2070
|
Companion_getInstance_6();
|
|
2031
2071
|
doc = doc === VOID ? null : doc;
|
|
2032
|
-
this.
|
|
2033
|
-
this.
|
|
2034
|
-
this.
|
|
2035
|
-
this.
|
|
2072
|
+
this.m2z_1 = type;
|
|
2073
|
+
this.n2z_1 = name;
|
|
2074
|
+
this.o2z_1 = doc;
|
|
2075
|
+
this.p2z_1 = symbols;
|
|
2036
2076
|
}
|
|
2037
2077
|
protoOf(EnumType).toString = function () {
|
|
2038
|
-
return 'EnumType(type=' + this.
|
|
2078
|
+
return 'EnumType(type=' + this.m2z_1 + ', name=' + this.n2z_1 + ', doc=' + this.o2z_1 + ', symbols=' + toString(this.p2z_1) + ')';
|
|
2039
2079
|
};
|
|
2040
2080
|
protoOf(EnumType).hashCode = function () {
|
|
2041
|
-
var result = getStringHashCode(this.
|
|
2042
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
2043
|
-
result = imul(result, 31) + (this.
|
|
2044
|
-
result = imul(result, 31) + hashCode(this.
|
|
2081
|
+
var result = getStringHashCode(this.m2z_1);
|
|
2082
|
+
result = imul(result, 31) + getStringHashCode(this.n2z_1) | 0;
|
|
2083
|
+
result = imul(result, 31) + (this.o2z_1 == null ? 0 : getStringHashCode(this.o2z_1)) | 0;
|
|
2084
|
+
result = imul(result, 31) + hashCode(this.p2z_1) | 0;
|
|
2045
2085
|
return result;
|
|
2046
2086
|
};
|
|
2047
2087
|
protoOf(EnumType).equals = function (other) {
|
|
@@ -2049,26 +2089,34 @@ protoOf(EnumType).equals = function (other) {
|
|
|
2049
2089
|
return true;
|
|
2050
2090
|
if (!(other instanceof EnumType))
|
|
2051
2091
|
return false;
|
|
2052
|
-
if (!(this.
|
|
2092
|
+
if (!(this.m2z_1 === other.m2z_1))
|
|
2053
2093
|
return false;
|
|
2054
|
-
if (!(this.
|
|
2094
|
+
if (!(this.n2z_1 === other.n2z_1))
|
|
2055
2095
|
return false;
|
|
2056
|
-
if (!(this.
|
|
2096
|
+
if (!(this.o2z_1 == other.o2z_1))
|
|
2057
2097
|
return false;
|
|
2058
|
-
if (!equals(this.
|
|
2098
|
+
if (!equals(this.p2z_1, other.p2z_1))
|
|
2059
2099
|
return false;
|
|
2060
2100
|
return true;
|
|
2061
2101
|
};
|
|
2062
2102
|
function UnionType(name, type) {
|
|
2063
|
-
this.
|
|
2064
|
-
this.
|
|
2103
|
+
this.e2z_1 = name;
|
|
2104
|
+
this.f2z_1 = type;
|
|
2065
2105
|
}
|
|
2106
|
+
protoOf(UnionType).r31 = function (name, type) {
|
|
2107
|
+
return new UnionType(name, type);
|
|
2108
|
+
};
|
|
2109
|
+
protoOf(UnionType).s31 = function (name, type, $super) {
|
|
2110
|
+
name = name === VOID ? this.e2z_1 : name;
|
|
2111
|
+
type = type === VOID ? this.f2z_1 : type;
|
|
2112
|
+
return $super === VOID ? this.r31(name, type) : $super.r31.call(this, name, type);
|
|
2113
|
+
};
|
|
2066
2114
|
protoOf(UnionType).toString = function () {
|
|
2067
|
-
return 'UnionType(name=' + this.
|
|
2115
|
+
return 'UnionType(name=' + this.e2z_1 + ', type=' + this.f2z_1.toString() + ')';
|
|
2068
2116
|
};
|
|
2069
2117
|
protoOf(UnionType).hashCode = function () {
|
|
2070
|
-
var result = getStringHashCode(this.
|
|
2071
|
-
result = imul(result, 31) + this.
|
|
2118
|
+
var result = getStringHashCode(this.e2z_1);
|
|
2119
|
+
result = imul(result, 31) + this.f2z_1.hashCode() | 0;
|
|
2072
2120
|
return result;
|
|
2073
2121
|
};
|
|
2074
2122
|
protoOf(UnionType).equals = function (other) {
|
|
@@ -2076,22 +2124,22 @@ protoOf(UnionType).equals = function (other) {
|
|
|
2076
2124
|
return true;
|
|
2077
2125
|
if (!(other instanceof UnionType))
|
|
2078
2126
|
return false;
|
|
2079
|
-
if (!(this.
|
|
2127
|
+
if (!(this.e2z_1 === other.e2z_1))
|
|
2080
2128
|
return false;
|
|
2081
|
-
if (!this.
|
|
2129
|
+
if (!this.f2z_1.equals(other.f2z_1))
|
|
2082
2130
|
return false;
|
|
2083
2131
|
return true;
|
|
2084
2132
|
};
|
|
2085
2133
|
function LogicalType() {
|
|
2086
2134
|
}
|
|
2087
2135
|
protoOf(LogicalType).toString = function () {
|
|
2088
|
-
return 'LogicalType(type=' + this.
|
|
2136
|
+
return 'LogicalType(type=' + this.i2z_1 + ', logicalType=' + this.j2z_1 + ', precision=' + this.k2z_1 + ', scale=' + this.l2z_1 + ')';
|
|
2089
2137
|
};
|
|
2090
2138
|
protoOf(LogicalType).hashCode = function () {
|
|
2091
|
-
var result = getStringHashCode(this.
|
|
2092
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
2093
|
-
result = imul(result, 31) + (this.
|
|
2094
|
-
result = imul(result, 31) + (this.
|
|
2139
|
+
var result = getStringHashCode(this.i2z_1);
|
|
2140
|
+
result = imul(result, 31) + getStringHashCode(this.j2z_1) | 0;
|
|
2141
|
+
result = imul(result, 31) + (this.k2z_1 == null ? 0 : this.k2z_1) | 0;
|
|
2142
|
+
result = imul(result, 31) + (this.l2z_1 == null ? 0 : this.l2z_1) | 0;
|
|
2095
2143
|
return result;
|
|
2096
2144
|
};
|
|
2097
2145
|
protoOf(LogicalType).equals = function (other) {
|
|
@@ -2099,24 +2147,24 @@ protoOf(LogicalType).equals = function (other) {
|
|
|
2099
2147
|
return true;
|
|
2100
2148
|
if (!(other instanceof LogicalType))
|
|
2101
2149
|
return false;
|
|
2102
|
-
if (!(this.
|
|
2150
|
+
if (!(this.i2z_1 === other.i2z_1))
|
|
2103
2151
|
return false;
|
|
2104
|
-
if (!(this.
|
|
2152
|
+
if (!(this.j2z_1 === other.j2z_1))
|
|
2105
2153
|
return false;
|
|
2106
|
-
if (!(this.
|
|
2154
|
+
if (!(this.k2z_1 == other.k2z_1))
|
|
2107
2155
|
return false;
|
|
2108
|
-
if (!(this.
|
|
2156
|
+
if (!(this.l2z_1 == other.l2z_1))
|
|
2109
2157
|
return false;
|
|
2110
2158
|
return true;
|
|
2111
2159
|
};
|
|
2112
2160
|
function FieldSerializer() {
|
|
2113
2161
|
FieldSerializer_instance = this;
|
|
2114
|
-
this.
|
|
2162
|
+
this.t31_1 = buildClassSerialDescriptor('Field', []);
|
|
2115
2163
|
}
|
|
2116
|
-
protoOf(FieldSerializer).
|
|
2117
|
-
return this.
|
|
2164
|
+
protoOf(FieldSerializer).t20 = function () {
|
|
2165
|
+
return this.t31_1;
|
|
2118
2166
|
};
|
|
2119
|
-
protoOf(FieldSerializer).
|
|
2167
|
+
protoOf(FieldSerializer).u31 = function (encoder, value) {
|
|
2120
2168
|
var tmp0_elvis_lhs = isInterface(encoder, JsonEncoder) ? encoder : null;
|
|
2121
2169
|
var tmp;
|
|
2122
2170
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -2127,30 +2175,30 @@ protoOf(FieldSerializer).k4b = function (encoder, value) {
|
|
|
2127
2175
|
var output = tmp;
|
|
2128
2176
|
// Inline function 'kotlinx.serialization.json.buildJsonObject' call
|
|
2129
2177
|
var builder = new JsonObjectBuilder();
|
|
2130
|
-
put(builder, 'name', value.
|
|
2131
|
-
builder.
|
|
2132
|
-
var tmp0_safe_receiver = value.
|
|
2178
|
+
put(builder, 'name', value.x2z_1);
|
|
2179
|
+
builder.h2o('type', output.q2n().o2l(TypeListSerializer_getInstance(), value.y2z_1));
|
|
2180
|
+
var tmp0_safe_receiver = value.z2z_1;
|
|
2133
2181
|
if (tmp0_safe_receiver == null)
|
|
2134
2182
|
null;
|
|
2135
2183
|
else {
|
|
2136
2184
|
// Inline function 'kotlin.let' call
|
|
2137
2185
|
put(builder, 'doc', tmp0_safe_receiver);
|
|
2138
2186
|
}
|
|
2139
|
-
var tmp1_safe_receiver = value.
|
|
2187
|
+
var tmp1_safe_receiver = value.a30_1;
|
|
2140
2188
|
if (tmp1_safe_receiver == null)
|
|
2141
2189
|
null;
|
|
2142
2190
|
else {
|
|
2143
2191
|
// Inline function 'kotlin.let' call
|
|
2144
|
-
builder.
|
|
2192
|
+
builder.h2o('default', tmp1_safe_receiver);
|
|
2145
2193
|
}
|
|
2146
2194
|
// Inline function 'kotlin.let' call
|
|
2147
|
-
var p0 = builder.
|
|
2148
|
-
output.
|
|
2195
|
+
var p0 = builder.y2m();
|
|
2196
|
+
output.z2o(p0);
|
|
2149
2197
|
};
|
|
2150
|
-
protoOf(FieldSerializer).
|
|
2151
|
-
return this.
|
|
2198
|
+
protoOf(FieldSerializer).u20 = function (encoder, value) {
|
|
2199
|
+
return this.u31(encoder, value instanceof Field_0 ? value : THROW_CCE());
|
|
2152
2200
|
};
|
|
2153
|
-
protoOf(FieldSerializer).
|
|
2201
|
+
protoOf(FieldSerializer).v20 = function (decoder) {
|
|
2154
2202
|
var tmp0_elvis_lhs = isInterface(decoder, JsonDecoder) ? decoder : null;
|
|
2155
2203
|
var tmp;
|
|
2156
2204
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -2160,9 +2208,9 @@ protoOf(FieldSerializer).p22 = function (decoder) {
|
|
|
2160
2208
|
}
|
|
2161
2209
|
var input = tmp;
|
|
2162
2210
|
// Inline function 'kotlin.let' call
|
|
2163
|
-
var field = get_jsonObject(input.
|
|
2164
|
-
var tmp_0 = get_jsonPrimitive(getValue(field, 'name')).
|
|
2165
|
-
var tmp_1 = input.
|
|
2211
|
+
var field = get_jsonObject(input.r2n());
|
|
2212
|
+
var tmp_0 = get_jsonPrimitive(getValue(field, 'name')).i1h();
|
|
2213
|
+
var tmp_1 = input.q2n().p2l(TypeListSerializer_getInstance(), getValue(field, 'type'));
|
|
2166
2214
|
var tmp0_safe_receiver = field.kd('doc');
|
|
2167
2215
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : get_jsonPrimitive(tmp0_safe_receiver);
|
|
2168
2216
|
return new Field_0(tmp_0, tmp_1, tmp1_safe_receiver == null ? null : get_contentOrNull(tmp1_safe_receiver), field.kd('default'));
|
|
@@ -2175,22 +2223,22 @@ function FieldSerializer_getInstance() {
|
|
|
2175
2223
|
}
|
|
2176
2224
|
function TypeListSerializer() {
|
|
2177
2225
|
TypeListSerializer_instance = this;
|
|
2178
|
-
this.
|
|
2226
|
+
this.v31_1 = buildSerialDescriptor('TypeListSerializer', SEALED_getInstance(), []);
|
|
2179
2227
|
}
|
|
2180
|
-
protoOf(TypeListSerializer).
|
|
2181
|
-
return this.
|
|
2228
|
+
protoOf(TypeListSerializer).t20 = function () {
|
|
2229
|
+
return this.v31_1;
|
|
2182
2230
|
};
|
|
2183
|
-
protoOf(TypeListSerializer).
|
|
2184
|
-
if (value.
|
|
2185
|
-
encoder.
|
|
2231
|
+
protoOf(TypeListSerializer).w31 = function (encoder, value) {
|
|
2232
|
+
if (value.k31_1 > 1) {
|
|
2233
|
+
encoder.k25(ListSerializer(Companion_instance_1.v2n()), value);
|
|
2186
2234
|
} else {
|
|
2187
|
-
encoder.
|
|
2235
|
+
encoder.k25(Companion_instance_1.v2n(), first(value));
|
|
2188
2236
|
}
|
|
2189
2237
|
};
|
|
2190
|
-
protoOf(TypeListSerializer).
|
|
2191
|
-
return this.
|
|
2238
|
+
protoOf(TypeListSerializer).u20 = function (encoder, value) {
|
|
2239
|
+
return this.w31(encoder, value instanceof TypeList ? value : THROW_CCE());
|
|
2192
2240
|
};
|
|
2193
|
-
protoOf(TypeListSerializer).
|
|
2241
|
+
protoOf(TypeListSerializer).v20 = function (decoder) {
|
|
2194
2242
|
var tmp0_elvis_lhs = isInterface(decoder, JsonDecoder) ? decoder : null;
|
|
2195
2243
|
var tmp;
|
|
2196
2244
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -2199,10 +2247,10 @@ protoOf(TypeListSerializer).p22 = function (decoder) {
|
|
|
2199
2247
|
tmp = tmp0_elvis_lhs;
|
|
2200
2248
|
}
|
|
2201
2249
|
var input = tmp;
|
|
2202
|
-
var element = input.
|
|
2250
|
+
var element = input.r2n();
|
|
2203
2251
|
var tmp_0;
|
|
2204
2252
|
if (element instanceof JsonPrimitive) {
|
|
2205
|
-
tmp_0 = new TypeList([input.
|
|
2253
|
+
tmp_0 = new TypeList([input.q2n().p2l(Companion_instance_1.v2n(), element)]);
|
|
2206
2254
|
} else {
|
|
2207
2255
|
if (element instanceof JsonArray) {
|
|
2208
2256
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -2211,7 +2259,7 @@ protoOf(TypeListSerializer).p22 = function (decoder) {
|
|
|
2211
2259
|
var _iterator__ex2g4s = element.t();
|
|
2212
2260
|
while (_iterator__ex2g4s.u()) {
|
|
2213
2261
|
var item = _iterator__ex2g4s.v();
|
|
2214
|
-
var tmp$ret$2 = input.
|
|
2262
|
+
var tmp$ret$2 = input.q2n().p2l(Companion_instance_1.v2n(), item);
|
|
2215
2263
|
destination.x(tmp$ret$2);
|
|
2216
2264
|
}
|
|
2217
2265
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
@@ -2219,7 +2267,7 @@ protoOf(TypeListSerializer).p22 = function (decoder) {
|
|
|
2219
2267
|
tmp_0 = new TypeList(tmp$ret$3.slice());
|
|
2220
2268
|
} else {
|
|
2221
2269
|
if (element instanceof JsonObject) {
|
|
2222
|
-
tmp_0 = new TypeList([input.
|
|
2270
|
+
tmp_0 = new TypeList([input.q2n().p2l(Companion_instance_1.v2n(), element)]);
|
|
2223
2271
|
} else {
|
|
2224
2272
|
noWhenBranchMatchedException();
|
|
2225
2273
|
}
|
|
@@ -2235,29 +2283,29 @@ function TypeListSerializer_getInstance() {
|
|
|
2235
2283
|
}
|
|
2236
2284
|
function TypeSerializer() {
|
|
2237
2285
|
TypeSerializer_instance = this;
|
|
2238
|
-
this.
|
|
2286
|
+
this.x31_1 = buildSerialDescriptor('TypeSerializer', SEALED_getInstance(), []);
|
|
2239
2287
|
}
|
|
2240
|
-
protoOf(TypeSerializer).
|
|
2241
|
-
return this.
|
|
2288
|
+
protoOf(TypeSerializer).t20 = function () {
|
|
2289
|
+
return this.x31_1;
|
|
2242
2290
|
};
|
|
2243
|
-
protoOf(TypeSerializer).
|
|
2291
|
+
protoOf(TypeSerializer).y31 = function (encoder, value) {
|
|
2244
2292
|
if (value instanceof SimpleType) {
|
|
2245
|
-
encoder.
|
|
2293
|
+
encoder.k25(serializer_0(StringCompanionObject_instance), value.d2z_1);
|
|
2246
2294
|
} else {
|
|
2247
2295
|
if (value instanceof RecordType) {
|
|
2248
|
-
encoder.
|
|
2296
|
+
encoder.k25(Companion_getInstance_3().v2n(), value);
|
|
2249
2297
|
} else {
|
|
2250
2298
|
if (value instanceof ArrayType) {
|
|
2251
|
-
encoder.
|
|
2299
|
+
encoder.k25(Companion_instance_4.v2n(), value);
|
|
2252
2300
|
} else {
|
|
2253
2301
|
if (value instanceof MapType) {
|
|
2254
|
-
encoder.
|
|
2302
|
+
encoder.k25(Companion_instance_5.v2n(), value);
|
|
2255
2303
|
} else {
|
|
2256
2304
|
if (value instanceof EnumType) {
|
|
2257
|
-
encoder.
|
|
2305
|
+
encoder.k25(Companion_getInstance_6().v2n(), value);
|
|
2258
2306
|
} else {
|
|
2259
2307
|
if (value instanceof UnionType) {
|
|
2260
|
-
encoder.
|
|
2308
|
+
encoder.k25(Companion_instance_7.v2n(), value);
|
|
2261
2309
|
} else {
|
|
2262
2310
|
if (value instanceof LogicalType) {
|
|
2263
2311
|
// Inline function 'kotlin.TODO' call
|
|
@@ -2272,10 +2320,10 @@ protoOf(TypeSerializer).o4b = function (encoder, value) {
|
|
|
2272
2320
|
}
|
|
2273
2321
|
}
|
|
2274
2322
|
};
|
|
2275
|
-
protoOf(TypeSerializer).
|
|
2276
|
-
return this.
|
|
2323
|
+
protoOf(TypeSerializer).u20 = function (encoder, value) {
|
|
2324
|
+
return this.y31(encoder, (!(value == null) ? isInterface(value, Type_0) : false) ? value : THROW_CCE());
|
|
2277
2325
|
};
|
|
2278
|
-
protoOf(TypeSerializer).
|
|
2326
|
+
protoOf(TypeSerializer).v20 = function (decoder) {
|
|
2279
2327
|
var tmp0_elvis_lhs = isInterface(decoder, JsonDecoder) ? decoder : null;
|
|
2280
2328
|
var tmp;
|
|
2281
2329
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -2284,18 +2332,18 @@ protoOf(TypeSerializer).p22 = function (decoder) {
|
|
|
2284
2332
|
tmp = tmp0_elvis_lhs;
|
|
2285
2333
|
}
|
|
2286
2334
|
var input = tmp;
|
|
2287
|
-
var element = input.
|
|
2335
|
+
var element = input.r2n();
|
|
2288
2336
|
var tmp_0;
|
|
2289
2337
|
if (element instanceof JsonObject) {
|
|
2290
2338
|
var tmp_1;
|
|
2291
|
-
if (element.
|
|
2292
|
-
tmp_1 = input.
|
|
2293
|
-
} else if (element.
|
|
2294
|
-
tmp_1 = input.
|
|
2295
|
-
} else if (element.
|
|
2296
|
-
tmp_1 = input.
|
|
2297
|
-
} else if (element.
|
|
2298
|
-
tmp_1 = input.
|
|
2339
|
+
if (element.x2n('items')) {
|
|
2340
|
+
tmp_1 = input.q2n().p2l(Companion_instance_4.v2n(), element);
|
|
2341
|
+
} else if (element.x2n('fields')) {
|
|
2342
|
+
tmp_1 = input.q2n().p2l(Companion_getInstance_3().v2n(), element);
|
|
2343
|
+
} else if (element.x2n('symbols')) {
|
|
2344
|
+
tmp_1 = input.q2n().p2l(Companion_getInstance_6().v2n(), element);
|
|
2345
|
+
} else if (element.x2n('logicalType')) {
|
|
2346
|
+
tmp_1 = input.q2n().p2l(Companion_instance_8.v2n(), element);
|
|
2299
2347
|
} else {
|
|
2300
2348
|
// Inline function 'kotlin.TODO' call
|
|
2301
2349
|
var reason = 'Unknown object type: ' + element.toString();
|
|
@@ -2304,7 +2352,7 @@ protoOf(TypeSerializer).p22 = function (decoder) {
|
|
|
2304
2352
|
tmp_0 = tmp_1;
|
|
2305
2353
|
} else {
|
|
2306
2354
|
if (element instanceof JsonPrimitive) {
|
|
2307
|
-
tmp_0 = new SimpleType(element.
|
|
2355
|
+
tmp_0 = new SimpleType(element.i1h());
|
|
2308
2356
|
} else {
|
|
2309
2357
|
if (element instanceof JsonArray) {
|
|
2310
2358
|
// Inline function 'kotlin.TODO' call
|
|
@@ -2345,12 +2393,12 @@ function inDependencyOrder(_this__u8e3s4) {
|
|
|
2345
2393
|
var ordering = accumulator;
|
|
2346
2394
|
accumulator = inDependencyOrder$visit(ordering, byName, element_0);
|
|
2347
2395
|
}
|
|
2348
|
-
return accumulator.
|
|
2396
|
+
return accumulator.a32_1;
|
|
2349
2397
|
}
|
|
2350
2398
|
function customNames(_this__u8e3s4) {
|
|
2351
2399
|
var tmp;
|
|
2352
2400
|
if (_this__u8e3s4 instanceof Custom) {
|
|
2353
|
-
tmp = listOf(_this__u8e3s4.
|
|
2401
|
+
tmp = listOf(_this__u8e3s4.n19_1);
|
|
2354
2402
|
} else {
|
|
2355
2403
|
if (_this__u8e3s4 instanceof Iterable) {
|
|
2356
2404
|
tmp = customNames(_this__u8e3s4.yp_1);
|
|
@@ -2383,23 +2431,23 @@ function customNames(_this__u8e3s4) {
|
|
|
2383
2431
|
function Ordering(seen, ordered) {
|
|
2384
2432
|
seen = seen === VOID ? emptySet() : seen;
|
|
2385
2433
|
ordered = ordered === VOID ? emptyList() : ordered;
|
|
2386
|
-
this.
|
|
2387
|
-
this.
|
|
2434
|
+
this.z31_1 = seen;
|
|
2435
|
+
this.a32_1 = ordered;
|
|
2388
2436
|
}
|
|
2389
|
-
protoOf(Ordering).
|
|
2437
|
+
protoOf(Ordering).b32 = function (seen, ordered) {
|
|
2390
2438
|
return new Ordering(seen, ordered);
|
|
2391
2439
|
};
|
|
2392
|
-
protoOf(Ordering).
|
|
2393
|
-
seen = seen === VOID ? this.
|
|
2394
|
-
ordered = ordered === VOID ? this.
|
|
2395
|
-
return $super === VOID ? this.
|
|
2440
|
+
protoOf(Ordering).c32 = function (seen, ordered, $super) {
|
|
2441
|
+
seen = seen === VOID ? this.z31_1 : seen;
|
|
2442
|
+
ordered = ordered === VOID ? this.a32_1 : ordered;
|
|
2443
|
+
return $super === VOID ? this.b32(seen, ordered) : $super.b32.call(this, seen, ordered);
|
|
2396
2444
|
};
|
|
2397
2445
|
protoOf(Ordering).toString = function () {
|
|
2398
|
-
return 'Ordering(seen=' + toString(this.
|
|
2446
|
+
return 'Ordering(seen=' + toString(this.z31_1) + ', ordered=' + toString(this.a32_1) + ')';
|
|
2399
2447
|
};
|
|
2400
2448
|
protoOf(Ordering).hashCode = function () {
|
|
2401
|
-
var result = hashCode(this.
|
|
2402
|
-
result = imul(result, 31) + hashCode(this.
|
|
2449
|
+
var result = hashCode(this.z31_1);
|
|
2450
|
+
result = imul(result, 31) + hashCode(this.a32_1) | 0;
|
|
2403
2451
|
return result;
|
|
2404
2452
|
};
|
|
2405
2453
|
protoOf(Ordering).equals = function (other) {
|
|
@@ -2407,9 +2455,9 @@ protoOf(Ordering).equals = function (other) {
|
|
|
2407
2455
|
return true;
|
|
2408
2456
|
if (!(other instanceof Ordering))
|
|
2409
2457
|
return false;
|
|
2410
|
-
if (!equals(this.
|
|
2458
|
+
if (!equals(this.z31_1, other.z31_1))
|
|
2411
2459
|
return false;
|
|
2412
|
-
if (!equals(this.
|
|
2460
|
+
if (!equals(this.a32_1, other.a32_1))
|
|
2413
2461
|
return false;
|
|
2414
2462
|
return true;
|
|
2415
2463
|
};
|
|
@@ -2493,12 +2541,12 @@ function inDependencyOrder$dependencies(_this__u8e3s4, byName) {
|
|
|
2493
2541
|
function inDependencyOrder$visit(_this__u8e3s4, byName, definition) {
|
|
2494
2542
|
var tmp0_subject = definition.ds().o1();
|
|
2495
2543
|
var tmp;
|
|
2496
|
-
if (_this__u8e3s4.
|
|
2544
|
+
if (_this__u8e3s4.z31_1.i1(tmp0_subject)) {
|
|
2497
2545
|
tmp = _this__u8e3s4;
|
|
2498
2546
|
} else {
|
|
2499
2547
|
var tmp0 = inDependencyOrder$dependencies(definition, byName);
|
|
2500
2548
|
// Inline function 'kotlin.collections.fold' call
|
|
2501
|
-
var accumulator = _this__u8e3s4.
|
|
2549
|
+
var accumulator = _this__u8e3s4.c32(plus_1(_this__u8e3s4.z31_1, definition.ds().o1()));
|
|
2502
2550
|
var _iterator__ex2g4s = tmp0.t();
|
|
2503
2551
|
while (_iterator__ex2g4s.u()) {
|
|
2504
2552
|
var element = _iterator__ex2g4s.v();
|
|
@@ -2507,18 +2555,18 @@ function inDependencyOrder$visit(_this__u8e3s4, byName, definition) {
|
|
|
2507
2555
|
}
|
|
2508
2556
|
// Inline function 'kotlin.let' call
|
|
2509
2557
|
var it = accumulator;
|
|
2510
|
-
tmp = it.
|
|
2558
|
+
tmp = it.c32(VOID, plus_0(it.a32_1, definition));
|
|
2511
2559
|
}
|
|
2512
2560
|
return tmp;
|
|
2513
2561
|
}
|
|
2514
2562
|
//region block: post-declaration
|
|
2515
|
-
protoOf($serializer).
|
|
2516
|
-
protoOf($serializer_0).
|
|
2517
|
-
protoOf($serializer_1).
|
|
2518
|
-
protoOf($serializer_2).
|
|
2519
|
-
protoOf($serializer_3).
|
|
2520
|
-
protoOf($serializer_4).
|
|
2521
|
-
protoOf($serializer_5).
|
|
2563
|
+
protoOf($serializer).w2b = typeParametersSerializers;
|
|
2564
|
+
protoOf($serializer_0).w2b = typeParametersSerializers;
|
|
2565
|
+
protoOf($serializer_1).w2b = typeParametersSerializers;
|
|
2566
|
+
protoOf($serializer_2).w2b = typeParametersSerializers;
|
|
2567
|
+
protoOf($serializer_3).w2b = typeParametersSerializers;
|
|
2568
|
+
protoOf($serializer_4).w2b = typeParametersSerializers;
|
|
2569
|
+
protoOf($serializer_5).w2b = typeParametersSerializers;
|
|
2522
2570
|
//endregion
|
|
2523
2571
|
//region block: init
|
|
2524
2572
|
AvroJsonParser_instance = new AvroJsonParser();
|
|
@@ -2533,10 +2581,18 @@ Companion_instance_8 = new Companion_8();
|
|
|
2533
2581
|
//endregion
|
|
2534
2582
|
//region block: exports
|
|
2535
2583
|
export {
|
|
2584
|
+
ArrayType as ArrayTypexditgxyp5c9c,
|
|
2585
|
+
EnumType as EnumType3tyyyxtu65wva,
|
|
2586
|
+
LogicalType as LogicalType1elm7nlw6tr66,
|
|
2587
|
+
MapType as MapTypevzpmekpvqxab,
|
|
2588
|
+
RecordType as RecordType2zxu8wkaapzdc,
|
|
2589
|
+
SimpleType as SimpleTypenolspnvnvo3r,
|
|
2536
2590
|
Type_0 as Typel89stdvlxo83,
|
|
2591
|
+
UnionType as UnionType3n98xd02zrhnq,
|
|
2537
2592
|
AvroIdlEmitter_getInstance as AvroIdlEmitter_getInstanceyu6o4eau2ce0,
|
|
2538
2593
|
AvroJsonEmitter_getInstance as AvroJsonEmitter_getInstanceqxb8ioshyd02,
|
|
2539
2594
|
AvroJsonParser_instance as AvroJsonParser_instance5zz3bwjsci7v,
|
|
2595
|
+
TypeList_init_$Create$ as TypeList_init_$Create$1bhvhw1us1a8l,
|
|
2540
2596
|
};
|
|
2541
2597
|
//endregion
|
|
2542
2598
|
|