@flock/wirespec 0.22.6 → 0.22.7
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-atomic.mjs +11 -11
- package/arrow-arrow-core.mjs +150 -150
- package/clikt-clikt-mordant.mjs +80 -80
- package/clikt-clikt.mjs +1488 -1488
- package/colormath-root-colormath.mjs +441 -441
- package/kotlin-kotlin-stdlib.mjs +1622 -1600
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +10028 -10028
- package/kotlin-rgxgen.mjs +1802 -1802
- package/kotlinx-io-kotlinx-io-core.mjs +414 -414
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1816 -1816
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1570 -1570
- package/mordant-mordant.mjs +1278 -1278
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +6104 -5969
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-java.mjs +177 -177
- package/wirespec-src-compiler-emitters-kotlin.mjs +132 -132
- package/wirespec-src-compiler-emitters-python.mjs +166 -166
- package/wirespec-src-compiler-emitters-rust.mjs +409 -409
- package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-scala.mjs +165 -165
- package/wirespec-src-compiler-emitters-typescript.mjs +214 -214
- package/wirespec-src-compiler-emitters-wirespec.mjs +175 -195
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +282 -282
- package/wirespec-src-converter-asyncapi.mjs +849 -767
- package/wirespec-src-converter-asyncapi.mjs.map +1 -1
- package/wirespec-src-converter-avro.mjs +596 -595
- package/wirespec-src-converter-avro.mjs.map +1 -1
- package/wirespec-src-converter-common.mjs +18 -18
- package/wirespec-src-converter-graphql.mjs +1063 -1063
- package/wirespec-src-converter-openapi.mjs +773 -661
- package/wirespec-src-converter-openapi.mjs.map +1 -1
- package/wirespec-src-ide-lsp.mjs +1379 -1379
- package/wirespec-src-plugin-arguments.mjs +200 -190
- package/wirespec-src-plugin-arguments.mjs.map +1 -1
- package/wirespec-src-plugin-cli.mjs +112 -112
- package/wirespec-src-plugin-extensions.mjs +1034 -998
- package/wirespec-src-plugin-extensions.mjs.map +1 -1
- package/wirespec-src-plugin-npm.mjs +54 -54
- package/wirespec-src-tools-generator.mjs +32 -32
|
@@ -8,9 +8,10 @@ import {
|
|
|
8
8
|
String1czvr8pxnm6on as String_0,
|
|
9
9
|
Custom1lu6o8txpimqz as Custom,
|
|
10
10
|
Dict3g7w5wia7rncj as Dict,
|
|
11
|
+
StringFormat_UUID_getInstanceo7m4rnltgd8c as StringFormat_UUID_getInstance,
|
|
12
|
+
Primitive1i8my14jkp3nk as Primitive,
|
|
11
13
|
Iterable29qbzfup67wqp as Iterable,
|
|
12
14
|
Unit2z95clvxm08vr as Unit,
|
|
13
|
-
Primitive1i8my14jkp3nk as Primitive,
|
|
14
15
|
DefinitionIdentifiervfasqdb33qef as DefinitionIdentifier,
|
|
15
16
|
FieldIdentifier34k7iphndcnl0 as FieldIdentifier,
|
|
16
17
|
Field2nwjpxu9j2svq as Field,
|
|
@@ -185,11 +186,11 @@ initMetadataForObject(TypeSerializer, 'TypeSerializer', VOID, VOID, [KSerializer
|
|
|
185
186
|
initMetadataForClass(Ordering, 'Ordering', Ordering);
|
|
186
187
|
//endregion
|
|
187
188
|
function isNullable($this, $receiver) {
|
|
188
|
-
return $receiver.i1($this.
|
|
189
|
+
return $receiver.i1($this.g30_1);
|
|
189
190
|
}
|
|
190
191
|
function toPrimitive($this, $receiver) {
|
|
191
192
|
var tmp;
|
|
192
|
-
switch ($receiver.
|
|
193
|
+
switch ($receiver.h30_1) {
|
|
193
194
|
case 'boolean':
|
|
194
195
|
tmp = Boolean_instance;
|
|
195
196
|
break;
|
|
@@ -214,7 +215,7 @@ function toPrimitive($this, $receiver) {
|
|
|
214
215
|
default:
|
|
215
216
|
// Inline function 'kotlin.TODO' call
|
|
216
217
|
|
|
217
|
-
var reason = 'primitive not mapped ' + $receiver.
|
|
218
|
+
var reason = 'primitive not mapped ' + $receiver.h30_1;
|
|
218
219
|
throw new NotImplementedError('An operation is not implemented: ' + reason);
|
|
219
220
|
}
|
|
220
221
|
return tmp;
|
|
@@ -222,7 +223,7 @@ function toPrimitive($this, $receiver) {
|
|
|
222
223
|
function toReference($this, $receiver, isNullable) {
|
|
223
224
|
var tmp;
|
|
224
225
|
if ($receiver instanceof SimpleType) {
|
|
225
|
-
switch ($receiver.
|
|
226
|
+
switch ($receiver.h30_1) {
|
|
226
227
|
case 'null':
|
|
227
228
|
tmp = new Unit(isNullable);
|
|
228
229
|
break;
|
|
@@ -236,27 +237,27 @@ function toReference($this, $receiver, isNullable) {
|
|
|
236
237
|
tmp = new Primitive(toPrimitive($this, $receiver), isNullable);
|
|
237
238
|
break;
|
|
238
239
|
default:
|
|
239
|
-
tmp = new Custom($receiver.
|
|
240
|
+
tmp = new Custom($receiver.h30_1, isNullable);
|
|
240
241
|
break;
|
|
241
242
|
}
|
|
242
243
|
} else {
|
|
243
244
|
if ($receiver instanceof ArrayType) {
|
|
244
|
-
tmp = new Iterable(toReference($this, $receiver.
|
|
245
|
+
tmp = new Iterable(toReference($this, $receiver.a31_1, false), isNullable);
|
|
245
246
|
} else {
|
|
246
247
|
if ($receiver instanceof RecordType) {
|
|
247
|
-
tmp = new Custom($receiver.
|
|
248
|
+
tmp = new Custom($receiver.v30_1, isNullable);
|
|
248
249
|
} else {
|
|
249
250
|
if ($receiver instanceof EnumType) {
|
|
250
|
-
tmp = new Custom($receiver.
|
|
251
|
+
tmp = new Custom($receiver.r30_1, isNullable);
|
|
251
252
|
} else {
|
|
252
253
|
if ($receiver instanceof LogicalType) {
|
|
253
|
-
tmp = toReference($this, new SimpleType($receiver.
|
|
254
|
+
tmp = $receiver.m30_1 === 'string' && $receiver.n30_1 === 'uuid' ? new Primitive(new String_0(StringFormat_UUID_getInstance().st_1), isNullable) : toReference($this, new SimpleType($receiver.m30_1), isNullable);
|
|
254
255
|
} else {
|
|
255
256
|
if ($receiver instanceof MapType) {
|
|
256
|
-
tmp = new Dict(toReference($this, $receiver.
|
|
257
|
+
tmp = new Dict(toReference($this, $receiver.l30_1, false), isNullable);
|
|
257
258
|
} else {
|
|
258
259
|
if ($receiver instanceof UnionType) {
|
|
259
|
-
tmp = new Custom($receiver.
|
|
260
|
+
tmp = new Custom($receiver.i30_1, isNullable);
|
|
260
261
|
} else {
|
|
261
262
|
noWhenBranchMatchedException();
|
|
262
263
|
}
|
|
@@ -269,7 +270,7 @@ function toReference($this, $receiver, isNullable) {
|
|
|
269
270
|
return tmp;
|
|
270
271
|
}
|
|
271
272
|
function toReference_0($this, $receiver) {
|
|
272
|
-
var list = minus($receiver, $this.
|
|
273
|
+
var list = minus($receiver, $this.g30_1);
|
|
273
274
|
var tmp;
|
|
274
275
|
if (list.c1() === 1) {
|
|
275
276
|
tmp = toReference($this, first(list), isNullable($this, $receiver));
|
|
@@ -310,20 +311,20 @@ function toReference_0($this, $receiver) {
|
|
|
310
311
|
}
|
|
311
312
|
function toType($this, $receiver) {
|
|
312
313
|
var tmp0_annotations = emptyList();
|
|
313
|
-
var tmp1_identifier = new DefinitionIdentifier($receiver.
|
|
314
|
+
var tmp1_identifier = new DefinitionIdentifier($receiver.v30_1);
|
|
314
315
|
var tmp2_extends = emptyList();
|
|
315
316
|
// Inline function 'kotlin.collections.map' call
|
|
316
|
-
var this_0 = $receiver.
|
|
317
|
+
var this_0 = $receiver.x30_1;
|
|
317
318
|
// Inline function 'kotlin.collections.mapTo' call
|
|
318
319
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
319
320
|
var _iterator__ex2g4s = this_0.t();
|
|
320
321
|
while (_iterator__ex2g4s.u()) {
|
|
321
322
|
var item = _iterator__ex2g4s.v();
|
|
322
323
|
// Inline function 'kotlin.let' call
|
|
323
|
-
var reference = toReference_0(AvroConverter_getInstance(), item.
|
|
324
|
-
var tmp1_identifier_0 = new FieldIdentifier(item.
|
|
324
|
+
var reference = toReference_0(AvroConverter_getInstance(), item.c31_1);
|
|
325
|
+
var tmp1_identifier_0 = new FieldIdentifier(item.b31_1);
|
|
325
326
|
var tmp2_annotations = emptyList();
|
|
326
|
-
var tmp0_safe_receiver = item.
|
|
327
|
+
var tmp0_safe_receiver = item.e31_1;
|
|
327
328
|
var tmp3_defaultValue = tmp0_safe_receiver == null ? null : toDefaultValue(tmp0_safe_receiver, reference);
|
|
328
329
|
var tmp$ret$2 = new Field(tmp2_annotations, tmp1_identifier_0, reference, tmp3_defaultValue);
|
|
329
330
|
destination.x(tmp$ret$2);
|
|
@@ -332,13 +333,13 @@ function toType($this, $receiver) {
|
|
|
332
333
|
return new Type(null, tmp0_annotations, tmp1_identifier, tmp3_shape, tmp2_extends);
|
|
333
334
|
}
|
|
334
335
|
function toEnum($this, $receiver) {
|
|
335
|
-
return new Enum(null, emptyList(), new DefinitionIdentifier($receiver.
|
|
336
|
+
return new Enum(null, emptyList(), new DefinitionIdentifier($receiver.r30_1), toSet($receiver.t30_1));
|
|
336
337
|
}
|
|
337
338
|
function toUnion($this, $receiver, name) {
|
|
338
339
|
var tmp = emptyList();
|
|
339
340
|
var tmp_0 = new DefinitionIdentifier(name);
|
|
340
341
|
// Inline function 'kotlin.collections.map' call
|
|
341
|
-
var this_0 = $receiver.
|
|
342
|
+
var this_0 = $receiver.j30_1;
|
|
342
343
|
// Inline function 'kotlin.collections.mapTo' call
|
|
343
344
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
344
345
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -351,9 +352,9 @@ function toUnion($this, $receiver, name) {
|
|
|
351
352
|
}
|
|
352
353
|
function AvroConverter() {
|
|
353
354
|
AvroConverter_instance = this;
|
|
354
|
-
this.
|
|
355
|
+
this.g30_1 = new SimpleType('null');
|
|
355
356
|
}
|
|
356
|
-
protoOf(AvroConverter).
|
|
357
|
+
protoOf(AvroConverter).f31 = function (_this__u8e3s4, name) {
|
|
357
358
|
var tmp;
|
|
358
359
|
if (_this__u8e3s4 instanceof SimpleType) {
|
|
359
360
|
tmp = emptyList();
|
|
@@ -361,20 +362,20 @@ protoOf(AvroConverter).a31 = function (_this__u8e3s4, name) {
|
|
|
361
362
|
if (_this__u8e3s4 instanceof RecordType) {
|
|
362
363
|
var tmp_0 = listOf(toType(this, _this__u8e3s4));
|
|
363
364
|
// Inline function 'kotlin.collections.flatMap' call
|
|
364
|
-
var tmp0 = _this__u8e3s4.
|
|
365
|
+
var tmp0 = _this__u8e3s4.x30_1;
|
|
365
366
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
366
367
|
var destination = ArrayList_init_$Create$_0();
|
|
367
368
|
var _iterator__ex2g4s = tmp0.t();
|
|
368
369
|
while (_iterator__ex2g4s.u()) {
|
|
369
370
|
var element = _iterator__ex2g4s.v();
|
|
370
371
|
// Inline function 'kotlin.collections.flatMap' call
|
|
371
|
-
var tmp0_0 = element.
|
|
372
|
+
var tmp0_0 = element.c31_1;
|
|
372
373
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
373
374
|
var destination_0 = ArrayList_init_$Create$_0();
|
|
374
375
|
var _iterator__ex2g4s_0 = tmp0_0.t();
|
|
375
376
|
while (_iterator__ex2g4s_0.u()) {
|
|
376
377
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
377
|
-
var list = AvroConverter_getInstance().
|
|
378
|
+
var list = AvroConverter_getInstance().f31(element_0, name);
|
|
378
379
|
addAll(destination_0, list);
|
|
379
380
|
}
|
|
380
381
|
var list_0 = destination_0;
|
|
@@ -383,7 +384,7 @@ protoOf(AvroConverter).a31 = function (_this__u8e3s4, name) {
|
|
|
383
384
|
tmp = plus(tmp_0, destination);
|
|
384
385
|
} else {
|
|
385
386
|
if (_this__u8e3s4 instanceof ArrayType) {
|
|
386
|
-
tmp = this.
|
|
387
|
+
tmp = this.f31(_this__u8e3s4.a31_1, name);
|
|
387
388
|
} else {
|
|
388
389
|
if (_this__u8e3s4 instanceof EnumType) {
|
|
389
390
|
tmp = listOf(toEnum(this, _this__u8e3s4));
|
|
@@ -392,7 +393,7 @@ protoOf(AvroConverter).a31 = function (_this__u8e3s4, name) {
|
|
|
392
393
|
tmp = emptyList();
|
|
393
394
|
} else {
|
|
394
395
|
if (_this__u8e3s4 instanceof MapType) {
|
|
395
|
-
tmp = this.
|
|
396
|
+
tmp = this.f31(_this__u8e3s4.l30_1, name);
|
|
396
397
|
} else {
|
|
397
398
|
if (_this__u8e3s4 instanceof UnionType) {
|
|
398
399
|
tmp = listOf(toUnion(this, _this__u8e3s4, name));
|
|
@@ -407,9 +408,9 @@ protoOf(AvroConverter).a31 = function (_this__u8e3s4, name) {
|
|
|
407
408
|
}
|
|
408
409
|
return tmp;
|
|
409
410
|
};
|
|
410
|
-
protoOf(AvroConverter).
|
|
411
|
+
protoOf(AvroConverter).g31 = function (_this__u8e3s4, name, $super) {
|
|
411
412
|
name = name === VOID ? '' : name;
|
|
412
|
-
return $super === VOID ? this.
|
|
413
|
+
return $super === VOID ? this.f31(_this__u8e3s4, name) : $super.f31.call(this, _this__u8e3s4, name);
|
|
413
414
|
};
|
|
414
415
|
var AvroConverter_instance;
|
|
415
416
|
function AvroConverter_getInstance() {
|
|
@@ -419,7 +420,7 @@ function AvroConverter_getInstance() {
|
|
|
419
420
|
}
|
|
420
421
|
function deriveProtocolName($this, module_0) {
|
|
421
422
|
// Inline function 'kotlin.takeIf' call
|
|
422
|
-
var this_0 = substringBeforeLast(substringAfterLast(module_0.
|
|
423
|
+
var this_0 = substringBeforeLast(substringAfterLast(module_0.gp_1.jo_1, _Char___init__impl__6a9atx(47)), _Char___init__impl__6a9atx(46));
|
|
423
424
|
var tmp;
|
|
424
425
|
var tmp_0;
|
|
425
426
|
// Inline function 'kotlin.text.isNotBlank' call
|
|
@@ -457,7 +458,7 @@ function deriveProtocolName($this, module_0) {
|
|
|
457
458
|
return tmp1_elvis_lhs == null ? 'WirespecProtocol' : tmp1_elvis_lhs;
|
|
458
459
|
}
|
|
459
460
|
function renderRecord($this, $receiver, type) {
|
|
460
|
-
var tmp0_safe_receiver = type.
|
|
461
|
+
var tmp0_safe_receiver = type.jp_1;
|
|
461
462
|
var tmp;
|
|
462
463
|
var tmp_0 = tmp0_safe_receiver;
|
|
463
464
|
if ((tmp_0 == null ? null : new Comment(tmp_0)) == null) {
|
|
@@ -476,12 +477,12 @@ function renderRecord($this, $receiver, type) {
|
|
|
476
477
|
// Inline function 'kotlin.text.orEmpty' call
|
|
477
478
|
var tmp0_elvis_lhs = tmp_1;
|
|
478
479
|
var doc = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs;
|
|
479
|
-
var tmp_2 = get_fields(type.
|
|
480
|
+
var tmp_2 = get_fields(type.mp_1);
|
|
480
481
|
var fields = joinToString(tmp_2, '', VOID, VOID, VOID, VOID, AvroIdlEmitter$renderRecord$lambda($receiver));
|
|
481
|
-
return doc + ' record ' + type.
|
|
482
|
+
return doc + ' record ' + type.lp_1.o1() + ' {\n' + fields + ' }\n';
|
|
482
483
|
}
|
|
483
484
|
function renderFieldType($this, $receiver, field) {
|
|
484
|
-
return field.
|
|
485
|
+
return field.qp_1.ot() && isNonNull($this, field.rp_1) ? 'union { ' + renderReference($this, $receiver, field.qp_1.x1a(false)) + ', null }' : renderReference($this, $receiver, field.qp_1);
|
|
485
486
|
}
|
|
486
487
|
function isNonNull($this, $receiver) {
|
|
487
488
|
return !($receiver == null) && !equals($receiver, NullValue_instance);
|
|
@@ -499,7 +500,7 @@ function renderDefault($this, default_0) {
|
|
|
499
500
|
return tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs;
|
|
500
501
|
}
|
|
501
502
|
function renderEnum($this, enum_0) {
|
|
502
|
-
var tmp0_safe_receiver = enum_0.
|
|
503
|
+
var tmp0_safe_receiver = enum_0.ps_1;
|
|
503
504
|
var tmp;
|
|
504
505
|
var tmp_0 = tmp0_safe_receiver;
|
|
505
506
|
if ((tmp_0 == null ? null : new Comment(tmp_0)) == null) {
|
|
@@ -518,11 +519,11 @@ function renderEnum($this, enum_0) {
|
|
|
518
519
|
// Inline function 'kotlin.text.orEmpty' call
|
|
519
520
|
var tmp0_elvis_lhs = tmp_1;
|
|
520
521
|
var doc = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs;
|
|
521
|
-
var symbols = joinToString(enum_0.
|
|
522
|
-
return doc + ' enum ' + enum_0.
|
|
522
|
+
var symbols = joinToString(enum_0.ss_1, ', ');
|
|
523
|
+
return doc + ' enum ' + enum_0.rs_1.o1() + ' {\n ' + symbols + '\n }\n';
|
|
523
524
|
}
|
|
524
525
|
function renderUnion($this, $receiver, union) {
|
|
525
|
-
var tmp0_safe_receiver = union.
|
|
526
|
+
var tmp0_safe_receiver = union.ar_1;
|
|
526
527
|
var tmp;
|
|
527
528
|
var tmp_0 = tmp0_safe_receiver;
|
|
528
529
|
if ((tmp_0 == null ? null : new Comment(tmp_0)) == null) {
|
|
@@ -541,11 +542,11 @@ function renderUnion($this, $receiver, union) {
|
|
|
541
542
|
// Inline function 'kotlin.text.orEmpty' call
|
|
542
543
|
var tmp0_elvis_lhs = tmp_1;
|
|
543
544
|
var doc = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs;
|
|
544
|
-
var members = joinToString(union.
|
|
545
|
-
return doc + ' record ' + union.
|
|
545
|
+
var members = joinToString(union.dr_1, ', ', VOID, VOID, VOID, VOID, AvroIdlEmitter$renderUnion$lambda($receiver));
|
|
546
|
+
return doc + ' record ' + union.cr_1.o1() + ' {\n union { ' + members + ' } value;\n }\n';
|
|
546
547
|
}
|
|
547
548
|
function renderRefined($this, refined) {
|
|
548
|
-
var tmp0_safe_receiver = refined.
|
|
549
|
+
var tmp0_safe_receiver = refined.ks_1;
|
|
549
550
|
var tmp;
|
|
550
551
|
var tmp_0 = tmp0_safe_receiver;
|
|
551
552
|
if ((tmp_0 == null ? null : new Comment(tmp_0)) == null) {
|
|
@@ -564,17 +565,17 @@ function renderRefined($this, refined) {
|
|
|
564
565
|
// Inline function 'kotlin.text.orEmpty' call
|
|
565
566
|
var tmp0_elvis_lhs = tmp_1;
|
|
566
567
|
var doc = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs;
|
|
567
|
-
return doc + ' // refined ' + refined.
|
|
568
|
+
return doc + ' // refined ' + refined.ms_1.o1() + ' = ' + renderPrimitive($this, refined.ns_1.d1a_1) + '\n';
|
|
568
569
|
}
|
|
569
570
|
function renderReference($this, $receiver, reference) {
|
|
570
571
|
var tmp;
|
|
571
572
|
if (reference instanceof Primitive) {
|
|
572
|
-
tmp = wrapNullable($this, renderPrimitive($this, reference.
|
|
573
|
+
tmp = wrapNullable($this, renderPrimitive($this, reference.d1a_1), reference.e1a_1);
|
|
573
574
|
} else {
|
|
574
575
|
if (reference instanceof Custom) {
|
|
575
|
-
var tmp1_safe_receiver = findRefined($receiver, reference.
|
|
576
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
577
|
-
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
576
|
+
var tmp1_safe_receiver = findRefined($receiver, reference.b1a_1);
|
|
577
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.ns_1;
|
|
578
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.d1a_1;
|
|
578
579
|
var tmp_0;
|
|
579
580
|
if (tmp3_safe_receiver == null) {
|
|
580
581
|
tmp_0 = null;
|
|
@@ -583,16 +584,16 @@ function renderReference($this, $receiver, reference) {
|
|
|
583
584
|
tmp_0 = renderPrimitive($this, tmp3_safe_receiver);
|
|
584
585
|
}
|
|
585
586
|
var tmp4_elvis_lhs = tmp_0;
|
|
586
|
-
tmp = wrapNullable($this, tmp4_elvis_lhs == null ? reference.
|
|
587
|
+
tmp = wrapNullable($this, tmp4_elvis_lhs == null ? reference.b1a_1 : tmp4_elvis_lhs, reference.c1a_1);
|
|
587
588
|
} else {
|
|
588
589
|
if (reference instanceof Iterable) {
|
|
589
|
-
tmp = wrapNullable($this, 'array<' + renderReference($this, $receiver, reference.
|
|
590
|
+
tmp = wrapNullable($this, 'array<' + renderReference($this, $receiver, reference.zp_1.x1a(false)) + '>', reference.aq_1);
|
|
590
591
|
} else {
|
|
591
592
|
if (reference instanceof Dict) {
|
|
592
|
-
tmp = wrapNullable($this, 'map<' + renderReference($this, $receiver, reference.
|
|
593
|
+
tmp = wrapNullable($this, 'map<' + renderReference($this, $receiver, reference.cq_1.x1a(false)) + '>', reference.dq_1);
|
|
593
594
|
} else {
|
|
594
595
|
if (reference instanceof Any) {
|
|
595
|
-
tmp = wrapNullable($this, 'bytes', reference.
|
|
596
|
+
tmp = wrapNullable($this, 'bytes', reference.n1f_1);
|
|
596
597
|
} else {
|
|
597
598
|
if (reference instanceof Unit) {
|
|
598
599
|
tmp = 'null';
|
|
@@ -619,7 +620,7 @@ function renderPrimitive($this, type) {
|
|
|
619
620
|
} else {
|
|
620
621
|
if (type instanceof Integer) {
|
|
621
622
|
var tmp_0;
|
|
622
|
-
switch (type.
|
|
623
|
+
switch (type.l1a_1.f3_1) {
|
|
623
624
|
case 0:
|
|
624
625
|
tmp_0 = 'int';
|
|
625
626
|
break;
|
|
@@ -634,7 +635,7 @@ function renderPrimitive($this, type) {
|
|
|
634
635
|
} else {
|
|
635
636
|
if (type instanceof Number_0) {
|
|
636
637
|
var tmp_1;
|
|
637
|
-
switch (type.
|
|
638
|
+
switch (type.g1a_1.f3_1) {
|
|
638
639
|
case 0:
|
|
639
640
|
tmp_1 = 'float';
|
|
640
641
|
break;
|
|
@@ -671,7 +672,7 @@ function renderDoc($this, value, indent) {
|
|
|
671
672
|
}
|
|
672
673
|
function AvroIdlEmitter$renderRecord$lambda($this_renderRecord) {
|
|
673
674
|
return function (field) {
|
|
674
|
-
return ' ' + renderFieldType(AvroIdlEmitter_getInstance(), $this_renderRecord, field) + ' ' + field.
|
|
675
|
+
return ' ' + renderFieldType(AvroIdlEmitter_getInstance(), $this_renderRecord, field) + ' ' + field.pp_1.o1() + renderDefault(AvroIdlEmitter_getInstance(), field.rp_1) + ';\n';
|
|
675
676
|
};
|
|
676
677
|
}
|
|
677
678
|
function AvroIdlEmitter$renderUnion$lambda($this_renderUnion) {
|
|
@@ -686,20 +687,20 @@ function AvroIdlEmitter$renderDoc$lambda($indent) {
|
|
|
686
687
|
}
|
|
687
688
|
function AvroIdlEmitter() {
|
|
688
689
|
AvroIdlEmitter_instance = this;
|
|
689
|
-
this.
|
|
690
|
-
this.
|
|
691
|
-
this.
|
|
692
|
-
this.
|
|
690
|
+
this.h31_1 = FileExtension_AvroIdl_getInstance();
|
|
691
|
+
this.i31_1 = true;
|
|
692
|
+
this.j31_1 = ' ';
|
|
693
|
+
this.k31_1 = 'unknown';
|
|
693
694
|
}
|
|
694
|
-
protoOf(AvroIdlEmitter).
|
|
695
|
-
return this.
|
|
695
|
+
protoOf(AvroIdlEmitter).xp = function () {
|
|
696
|
+
return this.h31_1;
|
|
696
697
|
};
|
|
697
|
-
protoOf(AvroIdlEmitter).
|
|
698
|
-
return this.
|
|
698
|
+
protoOf(AvroIdlEmitter).wp = function () {
|
|
699
|
+
return this.i31_1;
|
|
699
700
|
};
|
|
700
|
-
protoOf(AvroIdlEmitter).
|
|
701
|
+
protoOf(AvroIdlEmitter).uo = function (ast, logger) {
|
|
701
702
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
702
|
-
var this_0 = ast.
|
|
703
|
+
var this_0 = ast.fp_1;
|
|
703
704
|
// Inline function 'kotlin.collections.map' call
|
|
704
705
|
var this_1 = _NonEmptyList___get_all__impl__pmf509(this_0);
|
|
705
706
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -707,13 +708,13 @@ protoOf(AvroIdlEmitter).to = function (ast, logger) {
|
|
|
707
708
|
var _iterator__ex2g4s = this_1.t();
|
|
708
709
|
while (_iterator__ex2g4s.u()) {
|
|
709
710
|
var item = _iterator__ex2g4s.v();
|
|
710
|
-
logger.
|
|
711
|
-
var tmp$ret$3 = new Emitted('schema.avdl', AvroIdlEmitter_getInstance().
|
|
711
|
+
logger.bs('Emitting Avro IDL from ' + item.gp_1.jo_1);
|
|
712
|
+
var tmp$ret$3 = new Emitted('schema.avdl', AvroIdlEmitter_getInstance().l31(item, deriveProtocolName(AvroIdlEmitter_getInstance(), item)));
|
|
712
713
|
destination.x(tmp$ret$3);
|
|
713
714
|
}
|
|
714
715
|
return _NonEmptyList___init__impl__fxd0xp(destination);
|
|
715
716
|
};
|
|
716
|
-
protoOf(AvroIdlEmitter).
|
|
717
|
+
protoOf(AvroIdlEmitter).l31 = function (module_0, protocolName) {
|
|
717
718
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
718
719
|
var tmp0 = inDependencyOrder(module_0);
|
|
719
720
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
@@ -762,14 +763,14 @@ function isNonNull_0($this, $receiver) {
|
|
|
762
763
|
}
|
|
763
764
|
function findType($this, $receiver, name) {
|
|
764
765
|
// Inline function 'kotlin.collections.find' call
|
|
765
|
-
var tmp0 = NonEmptyList__toList_impl_t5xcy2($receiver.
|
|
766
|
+
var tmp0 = NonEmptyList__toList_impl_t5xcy2($receiver.hp_1);
|
|
766
767
|
var tmp$ret$1;
|
|
767
768
|
$l$block: {
|
|
768
769
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
769
770
|
var _iterator__ex2g4s = tmp0.t();
|
|
770
771
|
while (_iterator__ex2g4s.u()) {
|
|
771
772
|
var element = _iterator__ex2g4s.v();
|
|
772
|
-
if (element.
|
|
773
|
+
if (element.es().o1() === name) {
|
|
773
774
|
tmp$ret$1 = element;
|
|
774
775
|
break $l$block;
|
|
775
776
|
}
|
|
@@ -780,18 +781,18 @@ function findType($this, $receiver, name) {
|
|
|
780
781
|
}
|
|
781
782
|
function AvroJsonEmitter() {
|
|
782
783
|
AvroJsonEmitter_instance = this;
|
|
783
|
-
this.
|
|
784
|
-
this.
|
|
784
|
+
this.m31_1 = FileExtension_JSON_getInstance();
|
|
785
|
+
this.n31_1 = true;
|
|
785
786
|
}
|
|
786
|
-
protoOf(AvroJsonEmitter).
|
|
787
|
-
return this.
|
|
787
|
+
protoOf(AvroJsonEmitter).xp = function () {
|
|
788
|
+
return this.m31_1;
|
|
788
789
|
};
|
|
789
|
-
protoOf(AvroJsonEmitter).
|
|
790
|
-
return this.
|
|
790
|
+
protoOf(AvroJsonEmitter).wp = function () {
|
|
791
|
+
return this.n31_1;
|
|
791
792
|
};
|
|
792
|
-
protoOf(AvroJsonEmitter).
|
|
793
|
+
protoOf(AvroJsonEmitter).uo = function (ast, logger) {
|
|
793
794
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
794
|
-
var this_0 = ast.
|
|
795
|
+
var this_0 = ast.fp_1;
|
|
795
796
|
// Inline function 'kotlin.collections.map' call
|
|
796
797
|
var this_1 = _NonEmptyList___get_all__impl__pmf509(this_0);
|
|
797
798
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -799,8 +800,8 @@ protoOf(AvroJsonEmitter).to = function (ast, logger) {
|
|
|
799
800
|
var _iterator__ex2g4s = this_1.t();
|
|
800
801
|
while (_iterator__ex2g4s.u()) {
|
|
801
802
|
var item = _iterator__ex2g4s.v();
|
|
802
|
-
logger.
|
|
803
|
-
var tmp$ret$3 = AvroJsonEmitter_getInstance().
|
|
803
|
+
logger.bs('Emitting Nodes from ' + item.gp_1.jo_1 + ' ');
|
|
804
|
+
var tmp$ret$3 = AvroJsonEmitter_getInstance().o31(item);
|
|
804
805
|
destination.x(tmp$ret$3);
|
|
805
806
|
}
|
|
806
807
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
@@ -815,11 +816,11 @@ protoOf(AvroJsonEmitter).to = function (ast, logger) {
|
|
|
815
816
|
// Inline function 'kotlinx.serialization.encodeToString' call
|
|
816
817
|
var this_4 = Default_getInstance();
|
|
817
818
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
818
|
-
var this_5 = this_4.
|
|
819
|
+
var this_5 = this_4.l25();
|
|
819
820
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
820
821
|
var this_6 = serializer(this_5, createKType(getKClass(KtList), arrayOf([createInvariantKTypeProjection(createKType(getKClass(Type_0), arrayOf([]), false))]), false));
|
|
821
822
|
var tmp$ret$9 = isInterface(this_6, KSerializer) ? this_6 : THROW_CCE();
|
|
822
|
-
var tmp$ret$7 = this_4.
|
|
823
|
+
var tmp$ret$7 = this_4.q2m(tmp$ret$9, item_0);
|
|
823
824
|
destination_0.x(tmp$ret$7);
|
|
824
825
|
}
|
|
825
826
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
@@ -836,13 +837,13 @@ protoOf(AvroJsonEmitter).to = function (ast, logger) {
|
|
|
836
837
|
}
|
|
837
838
|
return _NonEmptyList___init__impl__fxd0xp(destination_1);
|
|
838
839
|
};
|
|
839
|
-
protoOf(AvroJsonEmitter).
|
|
840
|
-
return new EnumType('enum', _this__u8e3s4.
|
|
840
|
+
protoOf(AvroJsonEmitter).p31 = function (_this__u8e3s4) {
|
|
841
|
+
return new EnumType('enum', _this__u8e3s4.rs_1.o1(), VOID, toList(_this__u8e3s4.ss_1));
|
|
841
842
|
};
|
|
842
|
-
protoOf(AvroJsonEmitter).
|
|
843
|
-
var tmp = _this__u8e3s4.
|
|
843
|
+
protoOf(AvroJsonEmitter).q31 = function (_this__u8e3s4) {
|
|
844
|
+
var tmp = _this__u8e3s4.cr_1.o1();
|
|
844
845
|
// Inline function 'kotlin.collections.map' call
|
|
845
|
-
var this_0 = _this__u8e3s4.
|
|
846
|
+
var this_0 = _this__u8e3s4.dr_1;
|
|
846
847
|
// Inline function 'kotlin.collections.mapTo' call
|
|
847
848
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
848
849
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -853,23 +854,23 @@ protoOf(AvroJsonEmitter).l31 = function (_this__u8e3s4) {
|
|
|
853
854
|
}
|
|
854
855
|
return new UnionType(tmp, TypeList_init_$Create$(destination));
|
|
855
856
|
};
|
|
856
|
-
protoOf(AvroJsonEmitter).
|
|
857
|
+
protoOf(AvroJsonEmitter).r31 = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
857
858
|
var tmp;
|
|
858
859
|
if (_this__u8e3s4 instanceof Dict) {
|
|
859
|
-
tmp = new MapType('map', this.
|
|
860
|
+
tmp = new MapType('map', this.r31(_this__u8e3s4.cq_1, module_0, hasEmitted));
|
|
860
861
|
} else {
|
|
861
862
|
if (_this__u8e3s4 instanceof Iterable) {
|
|
862
|
-
tmp = new ArrayType('array', this.
|
|
863
|
+
tmp = new ArrayType('array', this.r31(_this__u8e3s4.zp_1, module_0, hasEmitted));
|
|
863
864
|
} else {
|
|
864
865
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
865
|
-
var type = _this__u8e3s4.
|
|
866
|
+
var type = _this__u8e3s4.d1a_1;
|
|
866
867
|
var tmp_0;
|
|
867
868
|
if (type instanceof String_0) {
|
|
868
869
|
tmp_0 = new SimpleType('string');
|
|
869
870
|
} else {
|
|
870
871
|
if (type instanceof Integer) {
|
|
871
872
|
var tmp_1;
|
|
872
|
-
switch (type.
|
|
873
|
+
switch (type.l1a_1.f3_1) {
|
|
873
874
|
case 0:
|
|
874
875
|
tmp_1 = new SimpleType('int');
|
|
875
876
|
break;
|
|
@@ -884,7 +885,7 @@ protoOf(AvroJsonEmitter).m31 = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
|
884
885
|
} else {
|
|
885
886
|
if (type instanceof Number_0) {
|
|
886
887
|
var tmp_2;
|
|
887
|
-
switch (type.
|
|
888
|
+
switch (type.g1a_1.f3_1) {
|
|
888
889
|
case 0:
|
|
889
890
|
tmp_2 = new SimpleType('float');
|
|
890
891
|
break;
|
|
@@ -912,28 +913,28 @@ protoOf(AvroJsonEmitter).m31 = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
|
912
913
|
tmp = tmp_0;
|
|
913
914
|
} else {
|
|
914
915
|
if (_this__u8e3s4 instanceof Custom) {
|
|
915
|
-
var def = findType(this, module_0, _this__u8e3s4.
|
|
916
|
+
var def = findType(this, module_0, _this__u8e3s4.b1a_1);
|
|
916
917
|
var tmp_3;
|
|
917
918
|
if (def instanceof Type) {
|
|
918
919
|
var tmp_4;
|
|
919
|
-
if (hasEmitted.i1(def.
|
|
920
|
+
if (hasEmitted.i1(def.lp_1.o1())) {
|
|
920
921
|
// Inline function 'kotlin.let' call
|
|
921
|
-
var p0 = def.
|
|
922
|
+
var p0 = def.lp_1.o1();
|
|
922
923
|
tmp_4 = new SimpleType(p0);
|
|
923
924
|
} else {
|
|
924
925
|
// Inline function 'kotlin.also' call
|
|
925
|
-
hasEmitted.x(def.
|
|
926
|
-
tmp_4 = this.
|
|
926
|
+
hasEmitted.x(def.lp_1.o1());
|
|
927
|
+
tmp_4 = this.s31(def, module_0, hasEmitted);
|
|
927
928
|
}
|
|
928
929
|
tmp_3 = tmp_4;
|
|
929
930
|
} else {
|
|
930
931
|
if (def instanceof Enum) {
|
|
931
|
-
tmp_3 = new SimpleType(def.
|
|
932
|
+
tmp_3 = new SimpleType(def.rs_1.o1());
|
|
932
933
|
} else {
|
|
933
934
|
if (def instanceof Refined) {
|
|
934
|
-
tmp_3 = this.
|
|
935
|
+
tmp_3 = this.r31(def.ns_1, module_0, hasEmitted);
|
|
935
936
|
} else {
|
|
936
|
-
tmp_3 = new SimpleType(_this__u8e3s4.
|
|
937
|
+
tmp_3 = new SimpleType(_this__u8e3s4.b1a_1);
|
|
937
938
|
}
|
|
938
939
|
}
|
|
939
940
|
}
|
|
@@ -956,36 +957,36 @@ protoOf(AvroJsonEmitter).m31 = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
|
956
957
|
}
|
|
957
958
|
return tmp;
|
|
958
959
|
};
|
|
959
|
-
protoOf(AvroJsonEmitter).
|
|
960
|
-
var ref = _this__u8e3s4.
|
|
960
|
+
protoOf(AvroJsonEmitter).t31 = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
961
|
+
var ref = _this__u8e3s4.qp_1;
|
|
961
962
|
var tmp;
|
|
962
963
|
if (ref instanceof Iterable) {
|
|
963
|
-
tmp = new ArrayType('array', this.
|
|
964
|
+
tmp = new ArrayType('array', this.r31(ref.zp_1, module_0, hasEmitted));
|
|
964
965
|
} else {
|
|
965
|
-
tmp = this.
|
|
966
|
+
tmp = this.r31(ref, module_0, hasEmitted);
|
|
966
967
|
}
|
|
967
968
|
return tmp;
|
|
968
969
|
};
|
|
969
|
-
protoOf(AvroJsonEmitter).
|
|
970
|
-
var tmp0_name = _this__u8e3s4.
|
|
970
|
+
protoOf(AvroJsonEmitter).s31 = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
971
|
+
var tmp0_name = _this__u8e3s4.lp_1.o1();
|
|
971
972
|
// Inline function 'kotlin.collections.map' call
|
|
972
|
-
var this_0 = get_fields(_this__u8e3s4.
|
|
973
|
+
var this_0 = get_fields(_this__u8e3s4.mp_1);
|
|
973
974
|
// Inline function 'kotlin.collections.mapTo' call
|
|
974
975
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
975
976
|
var _iterator__ex2g4s = this_0.t();
|
|
976
977
|
while (_iterator__ex2g4s.u()) {
|
|
977
978
|
var item = _iterator__ex2g4s.v();
|
|
978
|
-
var tmp = item.
|
|
979
|
+
var tmp = item.pp_1.o1();
|
|
979
980
|
// Inline function 'kotlin.let' call
|
|
980
|
-
var type = AvroJsonEmitter_getInstance().
|
|
981
|
-
var tmp_0 = !item.
|
|
982
|
-
var tmp0_safe_receiver = item.
|
|
981
|
+
var type = AvroJsonEmitter_getInstance().t31(item, module_0, hasEmitted);
|
|
982
|
+
var tmp_0 = !item.qp_1.ot() ? new TypeList([type]) : isNonNull_0(AvroJsonEmitter_getInstance(), item.rp_1) ? new TypeList([type, new SimpleType('null')]) : new TypeList([new SimpleType('null'), type]);
|
|
983
|
+
var tmp0_safe_receiver = item.rp_1;
|
|
983
984
|
var tmp$ret$2 = new Field_0(tmp, tmp_0, VOID, tmp0_safe_receiver == null ? null : toJsonElement(tmp0_safe_receiver));
|
|
984
985
|
destination.x(tmp$ret$2);
|
|
985
986
|
}
|
|
986
987
|
return new RecordType('record', tmp0_name, VOID, destination);
|
|
987
988
|
};
|
|
988
|
-
protoOf(AvroJsonEmitter).
|
|
989
|
+
protoOf(AvroJsonEmitter).o31 = function (module_0) {
|
|
989
990
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
990
991
|
var hasEmitted = ArrayList_init_$Create$_0();
|
|
991
992
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
@@ -1000,7 +1001,7 @@ protoOf(AvroJsonEmitter).j31 = function (module_0) {
|
|
|
1000
1001
|
if (element instanceof Type) {
|
|
1001
1002
|
// Inline function 'kotlin.takeUnless' call
|
|
1002
1003
|
var tmp_0;
|
|
1003
|
-
if (!hasEmitted.i1(element.
|
|
1004
|
+
if (!hasEmitted.i1(element.lp_1.o1())) {
|
|
1004
1005
|
tmp_0 = element;
|
|
1005
1006
|
} else {
|
|
1006
1007
|
tmp_0 = null;
|
|
@@ -1011,17 +1012,17 @@ protoOf(AvroJsonEmitter).j31 = function (module_0) {
|
|
|
1011
1012
|
tmp_1 = null;
|
|
1012
1013
|
} else {
|
|
1013
1014
|
// Inline function 'kotlin.also' call
|
|
1014
|
-
hasEmitted.x(tmp1_safe_receiver.
|
|
1015
|
+
hasEmitted.x(tmp1_safe_receiver.lp_1.o1());
|
|
1015
1016
|
tmp_1 = tmp1_safe_receiver;
|
|
1016
1017
|
}
|
|
1017
1018
|
var tmp2_safe_receiver = tmp_1;
|
|
1018
|
-
tmp = tmp2_safe_receiver == null ? null : AvroJsonEmitter_getInstance().
|
|
1019
|
+
tmp = tmp2_safe_receiver == null ? null : AvroJsonEmitter_getInstance().s31(tmp2_safe_receiver, module_0, hasEmitted);
|
|
1019
1020
|
} else {
|
|
1020
1021
|
if (element instanceof Enum) {
|
|
1021
|
-
tmp = AvroJsonEmitter_getInstance().
|
|
1022
|
+
tmp = AvroJsonEmitter_getInstance().p31(element);
|
|
1022
1023
|
} else {
|
|
1023
1024
|
if (element instanceof Union) {
|
|
1024
|
-
tmp = AvroJsonEmitter_getInstance().
|
|
1025
|
+
tmp = AvroJsonEmitter_getInstance().q31(element);
|
|
1025
1026
|
} else {
|
|
1026
1027
|
tmp = null;
|
|
1027
1028
|
}
|
|
@@ -1044,26 +1045,26 @@ function AvroJsonEmitter_getInstance() {
|
|
|
1044
1045
|
return AvroJsonEmitter_instance;
|
|
1045
1046
|
}
|
|
1046
1047
|
function AvroJsonParser$parse$lambda($this$Json) {
|
|
1047
|
-
$this$Json.
|
|
1048
|
-
$this$Json.
|
|
1048
|
+
$this$Json.m2n_1 = true;
|
|
1049
|
+
$this$Json.n2n_1 = true;
|
|
1049
1050
|
return Unit_instance;
|
|
1050
1051
|
}
|
|
1051
1052
|
function AvroJsonParser() {
|
|
1052
1053
|
}
|
|
1053
|
-
protoOf(AvroJsonParser).
|
|
1054
|
+
protoOf(AvroJsonParser).u31 = function (moduleContent, strict) {
|
|
1054
1055
|
var json = Json(VOID, AvroJsonParser$parse$lambda);
|
|
1055
1056
|
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
1056
|
-
var string = moduleContent.
|
|
1057
|
+
var string = moduleContent.eo_1;
|
|
1057
1058
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
1058
|
-
var this_0 = json.
|
|
1059
|
+
var this_0 = json.l25();
|
|
1059
1060
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
1060
1061
|
var this_1 = serializer(this_0, createKType(getKClass(Type_0), arrayOf([]), false));
|
|
1061
1062
|
var tmp$ret$1 = isInterface(this_1, KSerializer) ? this_1 : THROW_CCE();
|
|
1062
|
-
var avro = json.
|
|
1063
|
-
var tmp = AvroConverter_getInstance().
|
|
1063
|
+
var avro = json.r2m(tmp$ret$1, string);
|
|
1064
|
+
var tmp = AvroConverter_getInstance().g31(avro);
|
|
1064
1065
|
var tmp_0;
|
|
1065
1066
|
if (avro instanceof RecordType) {
|
|
1066
|
-
tmp_0 = new Channel(null, emptyList(), new DefinitionIdentifier(avro.
|
|
1067
|
+
tmp_0 = new Channel(null, emptyList(), new DefinitionIdentifier(avro.v30_1), new Custom(avro.v30_1, false));
|
|
1067
1068
|
} else {
|
|
1068
1069
|
if (avro instanceof ArrayType) {
|
|
1069
1070
|
// Inline function 'kotlin.TODO' call
|
|
@@ -1118,7 +1119,7 @@ protoOf(AvroJsonParser).p31 = function (moduleContent, strict) {
|
|
|
1118
1119
|
} else {
|
|
1119
1120
|
tmp_1 = tmp1_elvis_lhs;
|
|
1120
1121
|
}
|
|
1121
|
-
return new Root(nonEmptyListOf(new Module(moduleContent.
|
|
1122
|
+
return new Root(nonEmptyListOf(new Module(moduleContent.do_1, tmp_1), []));
|
|
1122
1123
|
};
|
|
1123
1124
|
var AvroJsonParser_instance;
|
|
1124
1125
|
function AvroJsonParser_getInstance() {
|
|
@@ -1147,11 +1148,11 @@ function Companion_getInstance_0() {
|
|
|
1147
1148
|
}
|
|
1148
1149
|
function Companion_1() {
|
|
1149
1150
|
}
|
|
1150
|
-
protoOf(Companion_1).
|
|
1151
|
+
protoOf(Companion_1).z2o = function () {
|
|
1151
1152
|
return TypeSerializer_getInstance();
|
|
1152
1153
|
};
|
|
1153
|
-
protoOf(Companion_1).
|
|
1154
|
-
return this.
|
|
1154
|
+
protoOf(Companion_1).k2d = function (typeParamsSerializers) {
|
|
1155
|
+
return this.z2o();
|
|
1155
1156
|
};
|
|
1156
1157
|
var Companion_instance_1;
|
|
1157
1158
|
function Companion_getInstance_1() {
|
|
@@ -1166,50 +1167,50 @@ function Companion_getInstance_2() {
|
|
|
1166
1167
|
function $serializer() {
|
|
1167
1168
|
$serializer_instance = this;
|
|
1168
1169
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.SimpleType', this, 1);
|
|
1169
|
-
tmp0_serialDesc.
|
|
1170
|
-
this.
|
|
1170
|
+
tmp0_serialDesc.k2c('value', false);
|
|
1171
|
+
this.v31_1 = tmp0_serialDesc;
|
|
1171
1172
|
}
|
|
1172
|
-
protoOf($serializer).
|
|
1173
|
-
var tmp0_desc = this.
|
|
1174
|
-
var tmp1_output = encoder.
|
|
1175
|
-
tmp1_output.
|
|
1176
|
-
tmp1_output.
|
|
1173
|
+
protoOf($serializer).w31 = function (encoder, value) {
|
|
1174
|
+
var tmp0_desc = this.v31_1;
|
|
1175
|
+
var tmp1_output = encoder.w24(tmp0_desc);
|
|
1176
|
+
tmp1_output.l26(tmp0_desc, 0, value.h30_1);
|
|
1177
|
+
tmp1_output.x24(tmp0_desc);
|
|
1177
1178
|
};
|
|
1178
|
-
protoOf($serializer).
|
|
1179
|
-
return this.
|
|
1179
|
+
protoOf($serializer).y21 = function (encoder, value) {
|
|
1180
|
+
return this.w31(encoder, value instanceof SimpleType ? value : THROW_CCE());
|
|
1180
1181
|
};
|
|
1181
|
-
protoOf($serializer).
|
|
1182
|
-
var tmp0_desc = this.
|
|
1182
|
+
protoOf($serializer).z21 = function (decoder) {
|
|
1183
|
+
var tmp0_desc = this.v31_1;
|
|
1183
1184
|
var tmp1_flag = true;
|
|
1184
1185
|
var tmp2_index = 0;
|
|
1185
1186
|
var tmp3_bitMask0 = 0;
|
|
1186
1187
|
var tmp4_local0 = null;
|
|
1187
|
-
var tmp5_input = decoder.
|
|
1188
|
-
if (tmp5_input.
|
|
1189
|
-
tmp4_local0 = tmp5_input.
|
|
1188
|
+
var tmp5_input = decoder.w24(tmp0_desc);
|
|
1189
|
+
if (tmp5_input.m25()) {
|
|
1190
|
+
tmp4_local0 = tmp5_input.g25(tmp0_desc, 0);
|
|
1190
1191
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1191
1192
|
} else
|
|
1192
1193
|
while (tmp1_flag) {
|
|
1193
|
-
tmp2_index = tmp5_input.
|
|
1194
|
+
tmp2_index = tmp5_input.n25(tmp0_desc);
|
|
1194
1195
|
switch (tmp2_index) {
|
|
1195
1196
|
case -1:
|
|
1196
1197
|
tmp1_flag = false;
|
|
1197
1198
|
break;
|
|
1198
1199
|
case 0:
|
|
1199
|
-
tmp4_local0 = tmp5_input.
|
|
1200
|
+
tmp4_local0 = tmp5_input.g25(tmp0_desc, 0);
|
|
1200
1201
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1201
1202
|
break;
|
|
1202
1203
|
default:
|
|
1203
1204
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1204
1205
|
}
|
|
1205
1206
|
}
|
|
1206
|
-
tmp5_input.
|
|
1207
|
+
tmp5_input.x24(tmp0_desc);
|
|
1207
1208
|
return SimpleType_init_$Create$(tmp3_bitMask0, tmp4_local0, null);
|
|
1208
1209
|
};
|
|
1209
|
-
protoOf($serializer).
|
|
1210
|
-
return this.
|
|
1210
|
+
protoOf($serializer).x21 = function () {
|
|
1211
|
+
return this.v31_1;
|
|
1211
1212
|
};
|
|
1212
|
-
protoOf($serializer).
|
|
1213
|
+
protoOf($serializer).z2c = function () {
|
|
1213
1214
|
// Inline function 'kotlin.arrayOf' call
|
|
1214
1215
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1215
1216
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1223,9 +1224,9 @@ function $serializer_getInstance() {
|
|
|
1223
1224
|
}
|
|
1224
1225
|
function SimpleType_init_$Init$(seen0, value, serializationConstructorMarker, $this) {
|
|
1225
1226
|
if (!(1 === (1 & seen0))) {
|
|
1226
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance().
|
|
1227
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance().v31_1);
|
|
1227
1228
|
}
|
|
1228
|
-
$this.
|
|
1229
|
+
$this.h30_1 = value;
|
|
1229
1230
|
return $this;
|
|
1230
1231
|
}
|
|
1231
1232
|
function SimpleType_init_$Create$(seen0, value, serializationConstructorMarker) {
|
|
@@ -1241,9 +1242,9 @@ function Companion_3() {
|
|
|
1241
1242
|
// Inline function 'kotlin.arrayOf' call
|
|
1242
1243
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1243
1244
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1244
|
-
tmp.
|
|
1245
|
+
tmp.x31_1 = [null, null, null, lazy(tmp_0, AvroModel$RecordType$Companion$$childSerializers$_anonymous__y3fmeq), null];
|
|
1245
1246
|
}
|
|
1246
|
-
protoOf(Companion_3).
|
|
1247
|
+
protoOf(Companion_3).z2o = function () {
|
|
1247
1248
|
return $serializer_getInstance_0();
|
|
1248
1249
|
};
|
|
1249
1250
|
var Companion_instance_3;
|
|
@@ -1255,33 +1256,33 @@ function Companion_getInstance_3() {
|
|
|
1255
1256
|
function $serializer_0() {
|
|
1256
1257
|
$serializer_instance_0 = this;
|
|
1257
1258
|
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.
|
|
1259
|
+
tmp0_serialDesc.k2c('type', false);
|
|
1260
|
+
tmp0_serialDesc.k2c('name', false);
|
|
1261
|
+
tmp0_serialDesc.k2c('namespace', true);
|
|
1262
|
+
tmp0_serialDesc.k2c('fields', false);
|
|
1263
|
+
tmp0_serialDesc.k2c('doc', true);
|
|
1264
|
+
this.y31_1 = tmp0_serialDesc;
|
|
1265
|
+
}
|
|
1266
|
+
protoOf($serializer_0).z31 = function (encoder, value) {
|
|
1267
|
+
var tmp0_desc = this.y31_1;
|
|
1268
|
+
var tmp1_output = encoder.w24(tmp0_desc);
|
|
1269
|
+
var tmp2_cached = Companion_getInstance_3().x31_1;
|
|
1270
|
+
tmp1_output.l26(tmp0_desc, 0, value.u30_1);
|
|
1271
|
+
tmp1_output.l26(tmp0_desc, 1, value.v30_1);
|
|
1272
|
+
if (tmp1_output.t26(tmp0_desc, 2) ? true : !(value.w30_1 == null)) {
|
|
1273
|
+
tmp1_output.p26(tmp0_desc, 2, StringSerializer_getInstance(), value.w30_1);
|
|
1274
|
+
}
|
|
1275
|
+
tmp1_output.n26(tmp0_desc, 3, tmp2_cached[3].o1(), value.x30_1);
|
|
1276
|
+
if (tmp1_output.t26(tmp0_desc, 4) ? true : !(value.y30_1 == null)) {
|
|
1277
|
+
tmp1_output.p26(tmp0_desc, 4, StringSerializer_getInstance(), value.y30_1);
|
|
1278
|
+
}
|
|
1279
|
+
tmp1_output.x24(tmp0_desc);
|
|
1280
|
+
};
|
|
1281
|
+
protoOf($serializer_0).y21 = function (encoder, value) {
|
|
1282
|
+
return this.z31(encoder, value instanceof RecordType ? value : THROW_CCE());
|
|
1283
|
+
};
|
|
1284
|
+
protoOf($serializer_0).z21 = function (decoder) {
|
|
1285
|
+
var tmp0_desc = this.y31_1;
|
|
1285
1286
|
var tmp1_flag = true;
|
|
1286
1287
|
var tmp2_index = 0;
|
|
1287
1288
|
var tmp3_bitMask0 = 0;
|
|
@@ -1290,58 +1291,58 @@ protoOf($serializer_0).u21 = function (decoder) {
|
|
|
1290
1291
|
var tmp6_local2 = null;
|
|
1291
1292
|
var tmp7_local3 = null;
|
|
1292
1293
|
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.
|
|
1294
|
+
var tmp9_input = decoder.w24(tmp0_desc);
|
|
1295
|
+
var tmp10_cached = Companion_getInstance_3().x31_1;
|
|
1296
|
+
if (tmp9_input.m25()) {
|
|
1297
|
+
tmp4_local0 = tmp9_input.g25(tmp0_desc, 0);
|
|
1297
1298
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1298
|
-
tmp5_local1 = tmp9_input.
|
|
1299
|
+
tmp5_local1 = tmp9_input.g25(tmp0_desc, 1);
|
|
1299
1300
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1300
|
-
tmp6_local2 = tmp9_input.
|
|
1301
|
+
tmp6_local2 = tmp9_input.k25(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1301
1302
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1302
|
-
tmp7_local3 = tmp9_input.
|
|
1303
|
+
tmp7_local3 = tmp9_input.i25(tmp0_desc, 3, tmp10_cached[3].o1(), tmp7_local3);
|
|
1303
1304
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1304
|
-
tmp8_local4 = tmp9_input.
|
|
1305
|
+
tmp8_local4 = tmp9_input.k25(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
|
|
1305
1306
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1306
1307
|
} else
|
|
1307
1308
|
while (tmp1_flag) {
|
|
1308
|
-
tmp2_index = tmp9_input.
|
|
1309
|
+
tmp2_index = tmp9_input.n25(tmp0_desc);
|
|
1309
1310
|
switch (tmp2_index) {
|
|
1310
1311
|
case -1:
|
|
1311
1312
|
tmp1_flag = false;
|
|
1312
1313
|
break;
|
|
1313
1314
|
case 0:
|
|
1314
|
-
tmp4_local0 = tmp9_input.
|
|
1315
|
+
tmp4_local0 = tmp9_input.g25(tmp0_desc, 0);
|
|
1315
1316
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1316
1317
|
break;
|
|
1317
1318
|
case 1:
|
|
1318
|
-
tmp5_local1 = tmp9_input.
|
|
1319
|
+
tmp5_local1 = tmp9_input.g25(tmp0_desc, 1);
|
|
1319
1320
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1320
1321
|
break;
|
|
1321
1322
|
case 2:
|
|
1322
|
-
tmp6_local2 = tmp9_input.
|
|
1323
|
+
tmp6_local2 = tmp9_input.k25(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1323
1324
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1324
1325
|
break;
|
|
1325
1326
|
case 3:
|
|
1326
|
-
tmp7_local3 = tmp9_input.
|
|
1327
|
+
tmp7_local3 = tmp9_input.i25(tmp0_desc, 3, tmp10_cached[3].o1(), tmp7_local3);
|
|
1327
1328
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1328
1329
|
break;
|
|
1329
1330
|
case 4:
|
|
1330
|
-
tmp8_local4 = tmp9_input.
|
|
1331
|
+
tmp8_local4 = tmp9_input.k25(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
|
|
1331
1332
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1332
1333
|
break;
|
|
1333
1334
|
default:
|
|
1334
1335
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1335
1336
|
}
|
|
1336
1337
|
}
|
|
1337
|
-
tmp9_input.
|
|
1338
|
+
tmp9_input.x24(tmp0_desc);
|
|
1338
1339
|
return RecordType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null);
|
|
1339
1340
|
};
|
|
1340
|
-
protoOf($serializer_0).
|
|
1341
|
-
return this.
|
|
1341
|
+
protoOf($serializer_0).x21 = function () {
|
|
1342
|
+
return this.y31_1;
|
|
1342
1343
|
};
|
|
1343
|
-
protoOf($serializer_0).
|
|
1344
|
-
var tmp0_cached = Companion_getInstance_3().
|
|
1344
|
+
protoOf($serializer_0).z2c = function () {
|
|
1345
|
+
var tmp0_cached = Companion_getInstance_3().x31_1;
|
|
1345
1346
|
// Inline function 'kotlin.arrayOf' call
|
|
1346
1347
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1347
1348
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1355,19 +1356,19 @@ function $serializer_getInstance_0() {
|
|
|
1355
1356
|
}
|
|
1356
1357
|
function RecordType_init_$Init$(seen0, type, name, namespace, fields, doc, serializationConstructorMarker, $this) {
|
|
1357
1358
|
if (!(11 === (11 & seen0))) {
|
|
1358
|
-
throwMissingFieldException(seen0, 11, $serializer_getInstance_0().
|
|
1359
|
+
throwMissingFieldException(seen0, 11, $serializer_getInstance_0().y31_1);
|
|
1359
1360
|
}
|
|
1360
|
-
$this.
|
|
1361
|
-
$this.
|
|
1361
|
+
$this.u30_1 = type;
|
|
1362
|
+
$this.v30_1 = name;
|
|
1362
1363
|
if (0 === (seen0 & 4))
|
|
1363
|
-
$this.
|
|
1364
|
+
$this.w30_1 = null;
|
|
1364
1365
|
else
|
|
1365
|
-
$this.
|
|
1366
|
-
$this.
|
|
1366
|
+
$this.w30_1 = namespace;
|
|
1367
|
+
$this.x30_1 = fields;
|
|
1367
1368
|
if (0 === (seen0 & 16))
|
|
1368
|
-
$this.
|
|
1369
|
+
$this.y30_1 = null;
|
|
1369
1370
|
else
|
|
1370
|
-
$this.
|
|
1371
|
+
$this.y30_1 = doc;
|
|
1371
1372
|
return $this;
|
|
1372
1373
|
}
|
|
1373
1374
|
function RecordType_init_$Create$(seen0, type, name, namespace, fields, doc, serializationConstructorMarker) {
|
|
@@ -1375,7 +1376,7 @@ function RecordType_init_$Create$(seen0, type, name, namespace, fields, doc, ser
|
|
|
1375
1376
|
}
|
|
1376
1377
|
function Companion_4() {
|
|
1377
1378
|
}
|
|
1378
|
-
protoOf(Companion_4).
|
|
1379
|
+
protoOf(Companion_4).z2o = function () {
|
|
1379
1380
|
return $serializer_getInstance_1();
|
|
1380
1381
|
};
|
|
1381
1382
|
var Companion_instance_4;
|
|
@@ -1385,59 +1386,59 @@ function Companion_getInstance_4() {
|
|
|
1385
1386
|
function $serializer_1() {
|
|
1386
1387
|
$serializer_instance_1 = this;
|
|
1387
1388
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.ArrayType', this, 2);
|
|
1388
|
-
tmp0_serialDesc.
|
|
1389
|
-
tmp0_serialDesc.
|
|
1390
|
-
this.
|
|
1389
|
+
tmp0_serialDesc.k2c('type', false);
|
|
1390
|
+
tmp0_serialDesc.k2c('items', false);
|
|
1391
|
+
this.a32_1 = tmp0_serialDesc;
|
|
1391
1392
|
}
|
|
1392
|
-
protoOf($serializer_1).
|
|
1393
|
-
var tmp0_desc = this.
|
|
1394
|
-
var tmp1_output = encoder.
|
|
1395
|
-
tmp1_output.
|
|
1396
|
-
tmp1_output.
|
|
1397
|
-
tmp1_output.
|
|
1393
|
+
protoOf($serializer_1).b32 = function (encoder, value) {
|
|
1394
|
+
var tmp0_desc = this.a32_1;
|
|
1395
|
+
var tmp1_output = encoder.w24(tmp0_desc);
|
|
1396
|
+
tmp1_output.l26(tmp0_desc, 0, value.z30_1);
|
|
1397
|
+
tmp1_output.n26(tmp0_desc, 1, TypeSerializer_getInstance(), value.a31_1);
|
|
1398
|
+
tmp1_output.x24(tmp0_desc);
|
|
1398
1399
|
};
|
|
1399
|
-
protoOf($serializer_1).
|
|
1400
|
-
return this.
|
|
1400
|
+
protoOf($serializer_1).y21 = function (encoder, value) {
|
|
1401
|
+
return this.b32(encoder, value instanceof ArrayType ? value : THROW_CCE());
|
|
1401
1402
|
};
|
|
1402
|
-
protoOf($serializer_1).
|
|
1403
|
-
var tmp0_desc = this.
|
|
1403
|
+
protoOf($serializer_1).z21 = function (decoder) {
|
|
1404
|
+
var tmp0_desc = this.a32_1;
|
|
1404
1405
|
var tmp1_flag = true;
|
|
1405
1406
|
var tmp2_index = 0;
|
|
1406
1407
|
var tmp3_bitMask0 = 0;
|
|
1407
1408
|
var tmp4_local0 = null;
|
|
1408
1409
|
var tmp5_local1 = null;
|
|
1409
|
-
var tmp6_input = decoder.
|
|
1410
|
-
if (tmp6_input.
|
|
1411
|
-
tmp4_local0 = tmp6_input.
|
|
1410
|
+
var tmp6_input = decoder.w24(tmp0_desc);
|
|
1411
|
+
if (tmp6_input.m25()) {
|
|
1412
|
+
tmp4_local0 = tmp6_input.g25(tmp0_desc, 0);
|
|
1412
1413
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1413
|
-
tmp5_local1 = tmp6_input.
|
|
1414
|
+
tmp5_local1 = tmp6_input.i25(tmp0_desc, 1, TypeSerializer_getInstance(), tmp5_local1);
|
|
1414
1415
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1415
1416
|
} else
|
|
1416
1417
|
while (tmp1_flag) {
|
|
1417
|
-
tmp2_index = tmp6_input.
|
|
1418
|
+
tmp2_index = tmp6_input.n25(tmp0_desc);
|
|
1418
1419
|
switch (tmp2_index) {
|
|
1419
1420
|
case -1:
|
|
1420
1421
|
tmp1_flag = false;
|
|
1421
1422
|
break;
|
|
1422
1423
|
case 0:
|
|
1423
|
-
tmp4_local0 = tmp6_input.
|
|
1424
|
+
tmp4_local0 = tmp6_input.g25(tmp0_desc, 0);
|
|
1424
1425
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1425
1426
|
break;
|
|
1426
1427
|
case 1:
|
|
1427
|
-
tmp5_local1 = tmp6_input.
|
|
1428
|
+
tmp5_local1 = tmp6_input.i25(tmp0_desc, 1, TypeSerializer_getInstance(), tmp5_local1);
|
|
1428
1429
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1429
1430
|
break;
|
|
1430
1431
|
default:
|
|
1431
1432
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1432
1433
|
}
|
|
1433
1434
|
}
|
|
1434
|
-
tmp6_input.
|
|
1435
|
+
tmp6_input.x24(tmp0_desc);
|
|
1435
1436
|
return ArrayType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1436
1437
|
};
|
|
1437
|
-
protoOf($serializer_1).
|
|
1438
|
-
return this.
|
|
1438
|
+
protoOf($serializer_1).x21 = function () {
|
|
1439
|
+
return this.a32_1;
|
|
1439
1440
|
};
|
|
1440
|
-
protoOf($serializer_1).
|
|
1441
|
+
protoOf($serializer_1).z2c = function () {
|
|
1441
1442
|
// Inline function 'kotlin.arrayOf' call
|
|
1442
1443
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1443
1444
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1451,10 +1452,10 @@ function $serializer_getInstance_1() {
|
|
|
1451
1452
|
}
|
|
1452
1453
|
function ArrayType_init_$Init$(seen0, type, items, serializationConstructorMarker, $this) {
|
|
1453
1454
|
if (!(3 === (3 & seen0))) {
|
|
1454
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_1().
|
|
1455
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_1().a32_1);
|
|
1455
1456
|
}
|
|
1456
|
-
$this.
|
|
1457
|
-
$this.
|
|
1457
|
+
$this.z30_1 = type;
|
|
1458
|
+
$this.a31_1 = items;
|
|
1458
1459
|
return $this;
|
|
1459
1460
|
}
|
|
1460
1461
|
function ArrayType_init_$Create$(seen0, type, items, serializationConstructorMarker) {
|
|
@@ -1462,7 +1463,7 @@ function ArrayType_init_$Create$(seen0, type, items, serializationConstructorMar
|
|
|
1462
1463
|
}
|
|
1463
1464
|
function Companion_5() {
|
|
1464
1465
|
}
|
|
1465
|
-
protoOf(Companion_5).
|
|
1466
|
+
protoOf(Companion_5).z2o = function () {
|
|
1466
1467
|
return $serializer_getInstance_2();
|
|
1467
1468
|
};
|
|
1468
1469
|
var Companion_instance_5;
|
|
@@ -1472,59 +1473,59 @@ function Companion_getInstance_5() {
|
|
|
1472
1473
|
function $serializer_2() {
|
|
1473
1474
|
$serializer_instance_2 = this;
|
|
1474
1475
|
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.
|
|
1476
|
+
tmp0_serialDesc.k2c('type', false);
|
|
1477
|
+
tmp0_serialDesc.k2c('values', false);
|
|
1478
|
+
this.c32_1 = tmp0_serialDesc;
|
|
1479
|
+
}
|
|
1480
|
+
protoOf($serializer_2).d32 = function (encoder, value) {
|
|
1481
|
+
var tmp0_desc = this.c32_1;
|
|
1482
|
+
var tmp1_output = encoder.w24(tmp0_desc);
|
|
1483
|
+
tmp1_output.l26(tmp0_desc, 0, value.k30_1);
|
|
1484
|
+
tmp1_output.n26(tmp0_desc, 1, TypeSerializer_getInstance(), value.l30_1);
|
|
1485
|
+
tmp1_output.x24(tmp0_desc);
|
|
1486
|
+
};
|
|
1487
|
+
protoOf($serializer_2).y21 = function (encoder, value) {
|
|
1488
|
+
return this.d32(encoder, value instanceof MapType ? value : THROW_CCE());
|
|
1489
|
+
};
|
|
1490
|
+
protoOf($serializer_2).z21 = function (decoder) {
|
|
1491
|
+
var tmp0_desc = this.c32_1;
|
|
1491
1492
|
var tmp1_flag = true;
|
|
1492
1493
|
var tmp2_index = 0;
|
|
1493
1494
|
var tmp3_bitMask0 = 0;
|
|
1494
1495
|
var tmp4_local0 = null;
|
|
1495
1496
|
var tmp5_local1 = null;
|
|
1496
|
-
var tmp6_input = decoder.
|
|
1497
|
-
if (tmp6_input.
|
|
1498
|
-
tmp4_local0 = tmp6_input.
|
|
1497
|
+
var tmp6_input = decoder.w24(tmp0_desc);
|
|
1498
|
+
if (tmp6_input.m25()) {
|
|
1499
|
+
tmp4_local0 = tmp6_input.g25(tmp0_desc, 0);
|
|
1499
1500
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1500
|
-
tmp5_local1 = tmp6_input.
|
|
1501
|
+
tmp5_local1 = tmp6_input.i25(tmp0_desc, 1, TypeSerializer_getInstance(), tmp5_local1);
|
|
1501
1502
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1502
1503
|
} else
|
|
1503
1504
|
while (tmp1_flag) {
|
|
1504
|
-
tmp2_index = tmp6_input.
|
|
1505
|
+
tmp2_index = tmp6_input.n25(tmp0_desc);
|
|
1505
1506
|
switch (tmp2_index) {
|
|
1506
1507
|
case -1:
|
|
1507
1508
|
tmp1_flag = false;
|
|
1508
1509
|
break;
|
|
1509
1510
|
case 0:
|
|
1510
|
-
tmp4_local0 = tmp6_input.
|
|
1511
|
+
tmp4_local0 = tmp6_input.g25(tmp0_desc, 0);
|
|
1511
1512
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1512
1513
|
break;
|
|
1513
1514
|
case 1:
|
|
1514
|
-
tmp5_local1 = tmp6_input.
|
|
1515
|
+
tmp5_local1 = tmp6_input.i25(tmp0_desc, 1, TypeSerializer_getInstance(), tmp5_local1);
|
|
1515
1516
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1516
1517
|
break;
|
|
1517
1518
|
default:
|
|
1518
1519
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1519
1520
|
}
|
|
1520
1521
|
}
|
|
1521
|
-
tmp6_input.
|
|
1522
|
+
tmp6_input.x24(tmp0_desc);
|
|
1522
1523
|
return MapType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1523
1524
|
};
|
|
1524
|
-
protoOf($serializer_2).
|
|
1525
|
-
return this.
|
|
1525
|
+
protoOf($serializer_2).x21 = function () {
|
|
1526
|
+
return this.c32_1;
|
|
1526
1527
|
};
|
|
1527
|
-
protoOf($serializer_2).
|
|
1528
|
+
protoOf($serializer_2).z2c = function () {
|
|
1528
1529
|
// Inline function 'kotlin.arrayOf' call
|
|
1529
1530
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1530
1531
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1538,10 +1539,10 @@ function $serializer_getInstance_2() {
|
|
|
1538
1539
|
}
|
|
1539
1540
|
function MapType_init_$Init$(seen0, type, values, serializationConstructorMarker, $this) {
|
|
1540
1541
|
if (!(3 === (3 & seen0))) {
|
|
1541
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().
|
|
1542
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().c32_1);
|
|
1542
1543
|
}
|
|
1543
|
-
$this.
|
|
1544
|
-
$this.
|
|
1544
|
+
$this.k30_1 = type;
|
|
1545
|
+
$this.l30_1 = values;
|
|
1545
1546
|
return $this;
|
|
1546
1547
|
}
|
|
1547
1548
|
function MapType_init_$Create$(seen0, type, values, serializationConstructorMarker) {
|
|
@@ -1557,9 +1558,9 @@ function Companion_6() {
|
|
|
1557
1558
|
// Inline function 'kotlin.arrayOf' call
|
|
1558
1559
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1559
1560
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1560
|
-
tmp.
|
|
1561
|
+
tmp.e32_1 = [null, null, null, lazy(tmp_0, AvroModel$EnumType$Companion$$childSerializers$_anonymous__vqfr9a)];
|
|
1561
1562
|
}
|
|
1562
|
-
protoOf(Companion_6).
|
|
1563
|
+
protoOf(Companion_6).z2o = function () {
|
|
1563
1564
|
return $serializer_getInstance_3();
|
|
1564
1565
|
};
|
|
1565
1566
|
var Companion_instance_6;
|
|
@@ -1571,29 +1572,29 @@ function Companion_getInstance_6() {
|
|
|
1571
1572
|
function $serializer_3() {
|
|
1572
1573
|
$serializer_instance_3 = this;
|
|
1573
1574
|
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.
|
|
1575
|
+
tmp0_serialDesc.k2c('type', false);
|
|
1576
|
+
tmp0_serialDesc.k2c('name', false);
|
|
1577
|
+
tmp0_serialDesc.k2c('doc', true);
|
|
1578
|
+
tmp0_serialDesc.k2c('symbols', false);
|
|
1579
|
+
this.f32_1 = tmp0_serialDesc;
|
|
1580
|
+
}
|
|
1581
|
+
protoOf($serializer_3).g32 = function (encoder, value) {
|
|
1582
|
+
var tmp0_desc = this.f32_1;
|
|
1583
|
+
var tmp1_output = encoder.w24(tmp0_desc);
|
|
1584
|
+
var tmp2_cached = Companion_getInstance_6().e32_1;
|
|
1585
|
+
tmp1_output.l26(tmp0_desc, 0, value.q30_1);
|
|
1586
|
+
tmp1_output.l26(tmp0_desc, 1, value.r30_1);
|
|
1587
|
+
if (tmp1_output.t26(tmp0_desc, 2) ? true : !(value.s30_1 == null)) {
|
|
1588
|
+
tmp1_output.p26(tmp0_desc, 2, StringSerializer_getInstance(), value.s30_1);
|
|
1589
|
+
}
|
|
1590
|
+
tmp1_output.n26(tmp0_desc, 3, tmp2_cached[3].o1(), value.t30_1);
|
|
1591
|
+
tmp1_output.x24(tmp0_desc);
|
|
1592
|
+
};
|
|
1593
|
+
protoOf($serializer_3).y21 = function (encoder, value) {
|
|
1594
|
+
return this.g32(encoder, value instanceof EnumType ? value : THROW_CCE());
|
|
1595
|
+
};
|
|
1596
|
+
protoOf($serializer_3).z21 = function (decoder) {
|
|
1597
|
+
var tmp0_desc = this.f32_1;
|
|
1597
1598
|
var tmp1_flag = true;
|
|
1598
1599
|
var tmp2_index = 0;
|
|
1599
1600
|
var tmp3_bitMask0 = 0;
|
|
@@ -1601,52 +1602,52 @@ protoOf($serializer_3).u21 = function (decoder) {
|
|
|
1601
1602
|
var tmp5_local1 = null;
|
|
1602
1603
|
var tmp6_local2 = null;
|
|
1603
1604
|
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.
|
|
1605
|
+
var tmp8_input = decoder.w24(tmp0_desc);
|
|
1606
|
+
var tmp9_cached = Companion_getInstance_6().e32_1;
|
|
1607
|
+
if (tmp8_input.m25()) {
|
|
1608
|
+
tmp4_local0 = tmp8_input.g25(tmp0_desc, 0);
|
|
1608
1609
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1609
|
-
tmp5_local1 = tmp8_input.
|
|
1610
|
+
tmp5_local1 = tmp8_input.g25(tmp0_desc, 1);
|
|
1610
1611
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1611
|
-
tmp6_local2 = tmp8_input.
|
|
1612
|
+
tmp6_local2 = tmp8_input.k25(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1612
1613
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1613
|
-
tmp7_local3 = tmp8_input.
|
|
1614
|
+
tmp7_local3 = tmp8_input.i25(tmp0_desc, 3, tmp9_cached[3].o1(), tmp7_local3);
|
|
1614
1615
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1615
1616
|
} else
|
|
1616
1617
|
while (tmp1_flag) {
|
|
1617
|
-
tmp2_index = tmp8_input.
|
|
1618
|
+
tmp2_index = tmp8_input.n25(tmp0_desc);
|
|
1618
1619
|
switch (tmp2_index) {
|
|
1619
1620
|
case -1:
|
|
1620
1621
|
tmp1_flag = false;
|
|
1621
1622
|
break;
|
|
1622
1623
|
case 0:
|
|
1623
|
-
tmp4_local0 = tmp8_input.
|
|
1624
|
+
tmp4_local0 = tmp8_input.g25(tmp0_desc, 0);
|
|
1624
1625
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1625
1626
|
break;
|
|
1626
1627
|
case 1:
|
|
1627
|
-
tmp5_local1 = tmp8_input.
|
|
1628
|
+
tmp5_local1 = tmp8_input.g25(tmp0_desc, 1);
|
|
1628
1629
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1629
1630
|
break;
|
|
1630
1631
|
case 2:
|
|
1631
|
-
tmp6_local2 = tmp8_input.
|
|
1632
|
+
tmp6_local2 = tmp8_input.k25(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1632
1633
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1633
1634
|
break;
|
|
1634
1635
|
case 3:
|
|
1635
|
-
tmp7_local3 = tmp8_input.
|
|
1636
|
+
tmp7_local3 = tmp8_input.i25(tmp0_desc, 3, tmp9_cached[3].o1(), tmp7_local3);
|
|
1636
1637
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1637
1638
|
break;
|
|
1638
1639
|
default:
|
|
1639
1640
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1640
1641
|
}
|
|
1641
1642
|
}
|
|
1642
|
-
tmp8_input.
|
|
1643
|
+
tmp8_input.x24(tmp0_desc);
|
|
1643
1644
|
return EnumType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
1644
1645
|
};
|
|
1645
|
-
protoOf($serializer_3).
|
|
1646
|
-
return this.
|
|
1646
|
+
protoOf($serializer_3).x21 = function () {
|
|
1647
|
+
return this.f32_1;
|
|
1647
1648
|
};
|
|
1648
|
-
protoOf($serializer_3).
|
|
1649
|
-
var tmp0_cached = Companion_getInstance_6().
|
|
1649
|
+
protoOf($serializer_3).z2c = function () {
|
|
1650
|
+
var tmp0_cached = Companion_getInstance_6().e32_1;
|
|
1650
1651
|
// Inline function 'kotlin.arrayOf' call
|
|
1651
1652
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1652
1653
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1660,15 +1661,15 @@ function $serializer_getInstance_3() {
|
|
|
1660
1661
|
}
|
|
1661
1662
|
function EnumType_init_$Init$(seen0, type, name, doc, symbols, serializationConstructorMarker, $this) {
|
|
1662
1663
|
if (!(11 === (11 & seen0))) {
|
|
1663
|
-
throwMissingFieldException(seen0, 11, $serializer_getInstance_3().
|
|
1664
|
+
throwMissingFieldException(seen0, 11, $serializer_getInstance_3().f32_1);
|
|
1664
1665
|
}
|
|
1665
|
-
$this.
|
|
1666
|
-
$this.
|
|
1666
|
+
$this.q30_1 = type;
|
|
1667
|
+
$this.r30_1 = name;
|
|
1667
1668
|
if (0 === (seen0 & 4))
|
|
1668
|
-
$this.
|
|
1669
|
+
$this.s30_1 = null;
|
|
1669
1670
|
else
|
|
1670
|
-
$this.
|
|
1671
|
-
$this.
|
|
1671
|
+
$this.s30_1 = doc;
|
|
1672
|
+
$this.t30_1 = symbols;
|
|
1672
1673
|
return $this;
|
|
1673
1674
|
}
|
|
1674
1675
|
function EnumType_init_$Create$(seen0, type, name, doc, symbols, serializationConstructorMarker) {
|
|
@@ -1676,7 +1677,7 @@ function EnumType_init_$Create$(seen0, type, name, doc, symbols, serializationCo
|
|
|
1676
1677
|
}
|
|
1677
1678
|
function Companion_7() {
|
|
1678
1679
|
}
|
|
1679
|
-
protoOf(Companion_7).
|
|
1680
|
+
protoOf(Companion_7).z2o = function () {
|
|
1680
1681
|
return $serializer_getInstance_4();
|
|
1681
1682
|
};
|
|
1682
1683
|
var Companion_instance_7;
|
|
@@ -1686,59 +1687,59 @@ function Companion_getInstance_7() {
|
|
|
1686
1687
|
function $serializer_4() {
|
|
1687
1688
|
$serializer_instance_4 = this;
|
|
1688
1689
|
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.
|
|
1690
|
+
tmp0_serialDesc.k2c('name', false);
|
|
1691
|
+
tmp0_serialDesc.k2c('type', false);
|
|
1692
|
+
this.h32_1 = tmp0_serialDesc;
|
|
1693
|
+
}
|
|
1694
|
+
protoOf($serializer_4).i32 = function (encoder, value) {
|
|
1695
|
+
var tmp0_desc = this.h32_1;
|
|
1696
|
+
var tmp1_output = encoder.w24(tmp0_desc);
|
|
1697
|
+
tmp1_output.l26(tmp0_desc, 0, value.i30_1);
|
|
1698
|
+
tmp1_output.n26(tmp0_desc, 1, TypeListSerializer_getInstance(), value.j30_1);
|
|
1699
|
+
tmp1_output.x24(tmp0_desc);
|
|
1700
|
+
};
|
|
1701
|
+
protoOf($serializer_4).y21 = function (encoder, value) {
|
|
1702
|
+
return this.i32(encoder, value instanceof UnionType ? value : THROW_CCE());
|
|
1703
|
+
};
|
|
1704
|
+
protoOf($serializer_4).z21 = function (decoder) {
|
|
1705
|
+
var tmp0_desc = this.h32_1;
|
|
1705
1706
|
var tmp1_flag = true;
|
|
1706
1707
|
var tmp2_index = 0;
|
|
1707
1708
|
var tmp3_bitMask0 = 0;
|
|
1708
1709
|
var tmp4_local0 = null;
|
|
1709
1710
|
var tmp5_local1 = null;
|
|
1710
|
-
var tmp6_input = decoder.
|
|
1711
|
-
if (tmp6_input.
|
|
1712
|
-
tmp4_local0 = tmp6_input.
|
|
1711
|
+
var tmp6_input = decoder.w24(tmp0_desc);
|
|
1712
|
+
if (tmp6_input.m25()) {
|
|
1713
|
+
tmp4_local0 = tmp6_input.g25(tmp0_desc, 0);
|
|
1713
1714
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1714
|
-
tmp5_local1 = tmp6_input.
|
|
1715
|
+
tmp5_local1 = tmp6_input.i25(tmp0_desc, 1, TypeListSerializer_getInstance(), tmp5_local1);
|
|
1715
1716
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1716
1717
|
} else
|
|
1717
1718
|
while (tmp1_flag) {
|
|
1718
|
-
tmp2_index = tmp6_input.
|
|
1719
|
+
tmp2_index = tmp6_input.n25(tmp0_desc);
|
|
1719
1720
|
switch (tmp2_index) {
|
|
1720
1721
|
case -1:
|
|
1721
1722
|
tmp1_flag = false;
|
|
1722
1723
|
break;
|
|
1723
1724
|
case 0:
|
|
1724
|
-
tmp4_local0 = tmp6_input.
|
|
1725
|
+
tmp4_local0 = tmp6_input.g25(tmp0_desc, 0);
|
|
1725
1726
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1726
1727
|
break;
|
|
1727
1728
|
case 1:
|
|
1728
|
-
tmp5_local1 = tmp6_input.
|
|
1729
|
+
tmp5_local1 = tmp6_input.i25(tmp0_desc, 1, TypeListSerializer_getInstance(), tmp5_local1);
|
|
1729
1730
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1730
1731
|
break;
|
|
1731
1732
|
default:
|
|
1732
1733
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1733
1734
|
}
|
|
1734
1735
|
}
|
|
1735
|
-
tmp6_input.
|
|
1736
|
+
tmp6_input.x24(tmp0_desc);
|
|
1736
1737
|
return UnionType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1737
1738
|
};
|
|
1738
|
-
protoOf($serializer_4).
|
|
1739
|
-
return this.
|
|
1739
|
+
protoOf($serializer_4).x21 = function () {
|
|
1740
|
+
return this.h32_1;
|
|
1740
1741
|
};
|
|
1741
|
-
protoOf($serializer_4).
|
|
1742
|
+
protoOf($serializer_4).z2c = function () {
|
|
1742
1743
|
// Inline function 'kotlin.arrayOf' call
|
|
1743
1744
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1744
1745
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1752,10 +1753,10 @@ function $serializer_getInstance_4() {
|
|
|
1752
1753
|
}
|
|
1753
1754
|
function UnionType_init_$Init$(seen0, name, type, serializationConstructorMarker, $this) {
|
|
1754
1755
|
if (!(3 === (3 & seen0))) {
|
|
1755
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_4().
|
|
1756
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_4().h32_1);
|
|
1756
1757
|
}
|
|
1757
|
-
$this.
|
|
1758
|
-
$this.
|
|
1758
|
+
$this.i30_1 = name;
|
|
1759
|
+
$this.j30_1 = type;
|
|
1759
1760
|
return $this;
|
|
1760
1761
|
}
|
|
1761
1762
|
function UnionType_init_$Create$(seen0, name, type, serializationConstructorMarker) {
|
|
@@ -1763,7 +1764,7 @@ function UnionType_init_$Create$(seen0, name, type, serializationConstructorMark
|
|
|
1763
1764
|
}
|
|
1764
1765
|
function Companion_8() {
|
|
1765
1766
|
}
|
|
1766
|
-
protoOf(Companion_8).
|
|
1767
|
+
protoOf(Companion_8).z2o = function () {
|
|
1767
1768
|
return $serializer_getInstance_5();
|
|
1768
1769
|
};
|
|
1769
1770
|
var Companion_instance_8;
|
|
@@ -1773,30 +1774,30 @@ function Companion_getInstance_8() {
|
|
|
1773
1774
|
function $serializer_5() {
|
|
1774
1775
|
$serializer_instance_5 = this;
|
|
1775
1776
|
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.
|
|
1777
|
+
tmp0_serialDesc.k2c('type', false);
|
|
1778
|
+
tmp0_serialDesc.k2c('logicalType', false);
|
|
1779
|
+
tmp0_serialDesc.k2c('precision', true);
|
|
1780
|
+
tmp0_serialDesc.k2c('scale', true);
|
|
1781
|
+
this.j32_1 = tmp0_serialDesc;
|
|
1782
|
+
}
|
|
1783
|
+
protoOf($serializer_5).k32 = function (encoder, value) {
|
|
1784
|
+
var tmp0_desc = this.j32_1;
|
|
1785
|
+
var tmp1_output = encoder.w24(tmp0_desc);
|
|
1786
|
+
tmp1_output.l26(tmp0_desc, 0, value.m30_1);
|
|
1787
|
+
tmp1_output.l26(tmp0_desc, 1, value.n30_1);
|
|
1788
|
+
if (tmp1_output.t26(tmp0_desc, 2) ? true : !(value.o30_1 == null)) {
|
|
1789
|
+
tmp1_output.p26(tmp0_desc, 2, IntSerializer_getInstance(), value.o30_1);
|
|
1790
|
+
}
|
|
1791
|
+
if (tmp1_output.t26(tmp0_desc, 3) ? true : !(value.p30_1 == null)) {
|
|
1792
|
+
tmp1_output.p26(tmp0_desc, 3, IntSerializer_getInstance(), value.p30_1);
|
|
1793
|
+
}
|
|
1794
|
+
tmp1_output.x24(tmp0_desc);
|
|
1795
|
+
};
|
|
1796
|
+
protoOf($serializer_5).y21 = function (encoder, value) {
|
|
1797
|
+
return this.k32(encoder, value instanceof LogicalType ? value : THROW_CCE());
|
|
1798
|
+
};
|
|
1799
|
+
protoOf($serializer_5).z21 = function (decoder) {
|
|
1800
|
+
var tmp0_desc = this.j32_1;
|
|
1800
1801
|
var tmp1_flag = true;
|
|
1801
1802
|
var tmp2_index = 0;
|
|
1802
1803
|
var tmp3_bitMask0 = 0;
|
|
@@ -1804,50 +1805,50 @@ protoOf($serializer_5).u21 = function (decoder) {
|
|
|
1804
1805
|
var tmp5_local1 = null;
|
|
1805
1806
|
var tmp6_local2 = null;
|
|
1806
1807
|
var tmp7_local3 = null;
|
|
1807
|
-
var tmp8_input = decoder.
|
|
1808
|
-
if (tmp8_input.
|
|
1809
|
-
tmp4_local0 = tmp8_input.
|
|
1808
|
+
var tmp8_input = decoder.w24(tmp0_desc);
|
|
1809
|
+
if (tmp8_input.m25()) {
|
|
1810
|
+
tmp4_local0 = tmp8_input.g25(tmp0_desc, 0);
|
|
1810
1811
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1811
|
-
tmp5_local1 = tmp8_input.
|
|
1812
|
+
tmp5_local1 = tmp8_input.g25(tmp0_desc, 1);
|
|
1812
1813
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1813
|
-
tmp6_local2 = tmp8_input.
|
|
1814
|
+
tmp6_local2 = tmp8_input.k25(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
|
|
1814
1815
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1815
|
-
tmp7_local3 = tmp8_input.
|
|
1816
|
+
tmp7_local3 = tmp8_input.k25(tmp0_desc, 3, IntSerializer_getInstance(), tmp7_local3);
|
|
1816
1817
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1817
1818
|
} else
|
|
1818
1819
|
while (tmp1_flag) {
|
|
1819
|
-
tmp2_index = tmp8_input.
|
|
1820
|
+
tmp2_index = tmp8_input.n25(tmp0_desc);
|
|
1820
1821
|
switch (tmp2_index) {
|
|
1821
1822
|
case -1:
|
|
1822
1823
|
tmp1_flag = false;
|
|
1823
1824
|
break;
|
|
1824
1825
|
case 0:
|
|
1825
|
-
tmp4_local0 = tmp8_input.
|
|
1826
|
+
tmp4_local0 = tmp8_input.g25(tmp0_desc, 0);
|
|
1826
1827
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1827
1828
|
break;
|
|
1828
1829
|
case 1:
|
|
1829
|
-
tmp5_local1 = tmp8_input.
|
|
1830
|
+
tmp5_local1 = tmp8_input.g25(tmp0_desc, 1);
|
|
1830
1831
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1831
1832
|
break;
|
|
1832
1833
|
case 2:
|
|
1833
|
-
tmp6_local2 = tmp8_input.
|
|
1834
|
+
tmp6_local2 = tmp8_input.k25(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
|
|
1834
1835
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1835
1836
|
break;
|
|
1836
1837
|
case 3:
|
|
1837
|
-
tmp7_local3 = tmp8_input.
|
|
1838
|
+
tmp7_local3 = tmp8_input.k25(tmp0_desc, 3, IntSerializer_getInstance(), tmp7_local3);
|
|
1838
1839
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1839
1840
|
break;
|
|
1840
1841
|
default:
|
|
1841
1842
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1842
1843
|
}
|
|
1843
1844
|
}
|
|
1844
|
-
tmp8_input.
|
|
1845
|
+
tmp8_input.x24(tmp0_desc);
|
|
1845
1846
|
return LogicalType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
1846
1847
|
};
|
|
1847
|
-
protoOf($serializer_5).
|
|
1848
|
-
return this.
|
|
1848
|
+
protoOf($serializer_5).x21 = function () {
|
|
1849
|
+
return this.j32_1;
|
|
1849
1850
|
};
|
|
1850
|
-
protoOf($serializer_5).
|
|
1851
|
+
protoOf($serializer_5).z2c = function () {
|
|
1851
1852
|
// Inline function 'kotlin.arrayOf' call
|
|
1852
1853
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1853
1854
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1861,18 +1862,18 @@ function $serializer_getInstance_5() {
|
|
|
1861
1862
|
}
|
|
1862
1863
|
function LogicalType_init_$Init$(seen0, type, logicalType, precision, scale, serializationConstructorMarker, $this) {
|
|
1863
1864
|
if (!(3 === (3 & seen0))) {
|
|
1864
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_5().
|
|
1865
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_5().j32_1);
|
|
1865
1866
|
}
|
|
1866
|
-
$this.
|
|
1867
|
-
$this.
|
|
1867
|
+
$this.m30_1 = type;
|
|
1868
|
+
$this.n30_1 = logicalType;
|
|
1868
1869
|
if (0 === (seen0 & 4))
|
|
1869
|
-
$this.
|
|
1870
|
+
$this.o30_1 = null;
|
|
1870
1871
|
else
|
|
1871
|
-
$this.
|
|
1872
|
+
$this.o30_1 = precision;
|
|
1872
1873
|
if (0 === (seen0 & 8))
|
|
1873
|
-
$this.
|
|
1874
|
+
$this.p30_1 = null;
|
|
1874
1875
|
else
|
|
1875
|
-
$this.
|
|
1876
|
+
$this.p30_1 = scale;
|
|
1876
1877
|
return $this;
|
|
1877
1878
|
}
|
|
1878
1879
|
function LogicalType_init_$Create$(seen0, type, logicalType, precision, scale, serializationConstructorMarker) {
|
|
@@ -1881,29 +1882,29 @@ function LogicalType_init_$Create$(seen0, type, logicalType, precision, scale, s
|
|
|
1881
1882
|
function Field_0(name, type, doc, default_0) {
|
|
1882
1883
|
doc = doc === VOID ? null : doc;
|
|
1883
1884
|
default_0 = default_0 === VOID ? null : default_0;
|
|
1884
|
-
this.
|
|
1885
|
-
this.
|
|
1886
|
-
this.
|
|
1887
|
-
this.
|
|
1885
|
+
this.b31_1 = name;
|
|
1886
|
+
this.c31_1 = type;
|
|
1887
|
+
this.d31_1 = doc;
|
|
1888
|
+
this.e31_1 = default_0;
|
|
1888
1889
|
}
|
|
1889
|
-
protoOf(Field_0).
|
|
1890
|
+
protoOf(Field_0).l32 = function (name, type, doc, default_0) {
|
|
1890
1891
|
return new Field_0(name, type, doc, default_0);
|
|
1891
1892
|
};
|
|
1892
|
-
protoOf(Field_0).
|
|
1893
|
-
name = name === VOID ? this.
|
|
1894
|
-
type = type === VOID ? this.
|
|
1895
|
-
doc = doc === VOID ? this.
|
|
1896
|
-
default_0 = default_0 === VOID ? this.
|
|
1897
|
-
return $super === VOID ? this.
|
|
1893
|
+
protoOf(Field_0).m32 = function (name, type, doc, default_0, $super) {
|
|
1894
|
+
name = name === VOID ? this.b31_1 : name;
|
|
1895
|
+
type = type === VOID ? this.c31_1 : type;
|
|
1896
|
+
doc = doc === VOID ? this.d31_1 : doc;
|
|
1897
|
+
default_0 = default_0 === VOID ? this.e31_1 : default_0;
|
|
1898
|
+
return $super === VOID ? this.l32(name, type, doc, default_0) : $super.l32.call(this, name, type, doc, default_0);
|
|
1898
1899
|
};
|
|
1899
1900
|
protoOf(Field_0).toString = function () {
|
|
1900
|
-
return 'Field(name=' + this.
|
|
1901
|
+
return 'Field(name=' + this.b31_1 + ', type=' + this.c31_1.toString() + ', doc=' + this.d31_1 + ', default=' + toString_1(this.e31_1) + ')';
|
|
1901
1902
|
};
|
|
1902
1903
|
protoOf(Field_0).hashCode = function () {
|
|
1903
|
-
var result = getStringHashCode(this.
|
|
1904
|
-
result = imul(result, 31) + this.
|
|
1905
|
-
result = imul(result, 31) + (this.
|
|
1906
|
-
result = imul(result, 31) + (this.
|
|
1904
|
+
var result = getStringHashCode(this.b31_1);
|
|
1905
|
+
result = imul(result, 31) + this.c31_1.hashCode() | 0;
|
|
1906
|
+
result = imul(result, 31) + (this.d31_1 == null ? 0 : getStringHashCode(this.d31_1)) | 0;
|
|
1907
|
+
result = imul(result, 31) + (this.e31_1 == null ? 0 : hashCode(this.e31_1)) | 0;
|
|
1907
1908
|
return result;
|
|
1908
1909
|
};
|
|
1909
1910
|
protoOf(Field_0).equals = function (other) {
|
|
@@ -1911,47 +1912,47 @@ protoOf(Field_0).equals = function (other) {
|
|
|
1911
1912
|
return true;
|
|
1912
1913
|
if (!(other instanceof Field_0))
|
|
1913
1914
|
return false;
|
|
1914
|
-
if (!(this.
|
|
1915
|
+
if (!(this.b31_1 === other.b31_1))
|
|
1915
1916
|
return false;
|
|
1916
|
-
if (!this.
|
|
1917
|
+
if (!this.c31_1.equals(other.c31_1))
|
|
1917
1918
|
return false;
|
|
1918
|
-
if (!(this.
|
|
1919
|
+
if (!(this.d31_1 == other.d31_1))
|
|
1919
1920
|
return false;
|
|
1920
|
-
if (!equals(this.
|
|
1921
|
+
if (!equals(this.e31_1, other.e31_1))
|
|
1921
1922
|
return false;
|
|
1922
1923
|
return true;
|
|
1923
1924
|
};
|
|
1924
1925
|
function TypeList(type) {
|
|
1925
1926
|
AbstractList.call(this);
|
|
1926
|
-
this.
|
|
1927
|
-
this.
|
|
1927
|
+
this.n32_1 = toList_0(type);
|
|
1928
|
+
this.o32_1 = this.n32_1.c1();
|
|
1928
1929
|
}
|
|
1929
1930
|
protoOf(TypeList).c1 = function () {
|
|
1930
|
-
return this.
|
|
1931
|
+
return this.o32_1;
|
|
1931
1932
|
};
|
|
1932
1933
|
protoOf(TypeList).b1 = function (index) {
|
|
1933
|
-
return this.
|
|
1934
|
+
return this.n32_1.b1(index);
|
|
1934
1935
|
};
|
|
1935
1936
|
function Type_0() {
|
|
1936
1937
|
}
|
|
1937
1938
|
function SimpleType(value) {
|
|
1938
|
-
this.
|
|
1939
|
+
this.h30_1 = value;
|
|
1939
1940
|
}
|
|
1940
|
-
protoOf(SimpleType).
|
|
1941
|
+
protoOf(SimpleType).p32 = function (value) {
|
|
1941
1942
|
return new SimpleType(value);
|
|
1942
1943
|
};
|
|
1943
1944
|
protoOf(SimpleType).toString = function () {
|
|
1944
|
-
return 'SimpleType(value=' + this.
|
|
1945
|
+
return 'SimpleType(value=' + this.h30_1 + ')';
|
|
1945
1946
|
};
|
|
1946
1947
|
protoOf(SimpleType).hashCode = function () {
|
|
1947
|
-
return getStringHashCode(this.
|
|
1948
|
+
return getStringHashCode(this.h30_1);
|
|
1948
1949
|
};
|
|
1949
1950
|
protoOf(SimpleType).equals = function (other) {
|
|
1950
1951
|
if (this === other)
|
|
1951
1952
|
return true;
|
|
1952
1953
|
if (!(other instanceof SimpleType))
|
|
1953
1954
|
return false;
|
|
1954
|
-
if (!(this.
|
|
1955
|
+
if (!(this.h30_1 === other.h30_1))
|
|
1955
1956
|
return false;
|
|
1956
1957
|
return true;
|
|
1957
1958
|
};
|
|
@@ -1959,32 +1960,32 @@ function RecordType(type, name, namespace, fields, doc) {
|
|
|
1959
1960
|
Companion_getInstance_3();
|
|
1960
1961
|
namespace = namespace === VOID ? null : namespace;
|
|
1961
1962
|
doc = doc === VOID ? null : doc;
|
|
1962
|
-
this.
|
|
1963
|
-
this.
|
|
1964
|
-
this.
|
|
1965
|
-
this.
|
|
1966
|
-
this.
|
|
1963
|
+
this.u30_1 = type;
|
|
1964
|
+
this.v30_1 = name;
|
|
1965
|
+
this.w30_1 = namespace;
|
|
1966
|
+
this.x30_1 = fields;
|
|
1967
|
+
this.y30_1 = doc;
|
|
1967
1968
|
}
|
|
1968
|
-
protoOf(RecordType).
|
|
1969
|
+
protoOf(RecordType).q32 = function (type, name, namespace, fields, doc) {
|
|
1969
1970
|
return new RecordType(type, name, namespace, fields, doc);
|
|
1970
1971
|
};
|
|
1971
|
-
protoOf(RecordType).
|
|
1972
|
-
type = type === VOID ? this.
|
|
1973
|
-
name = name === VOID ? this.
|
|
1974
|
-
namespace = namespace === VOID ? this.
|
|
1975
|
-
fields = fields === VOID ? this.
|
|
1976
|
-
doc = doc === VOID ? this.
|
|
1977
|
-
return $super === VOID ? this.
|
|
1972
|
+
protoOf(RecordType).r32 = function (type, name, namespace, fields, doc, $super) {
|
|
1973
|
+
type = type === VOID ? this.u30_1 : type;
|
|
1974
|
+
name = name === VOID ? this.v30_1 : name;
|
|
1975
|
+
namespace = namespace === VOID ? this.w30_1 : namespace;
|
|
1976
|
+
fields = fields === VOID ? this.x30_1 : fields;
|
|
1977
|
+
doc = doc === VOID ? this.y30_1 : doc;
|
|
1978
|
+
return $super === VOID ? this.q32(type, name, namespace, fields, doc) : $super.q32.call(this, type, name, namespace, fields, doc);
|
|
1978
1979
|
};
|
|
1979
1980
|
protoOf(RecordType).toString = function () {
|
|
1980
|
-
return 'RecordType(type=' + this.
|
|
1981
|
+
return 'RecordType(type=' + this.u30_1 + ', name=' + this.v30_1 + ', namespace=' + this.w30_1 + ', fields=' + toString(this.x30_1) + ', doc=' + this.y30_1 + ')';
|
|
1981
1982
|
};
|
|
1982
1983
|
protoOf(RecordType).hashCode = function () {
|
|
1983
|
-
var result = getStringHashCode(this.
|
|
1984
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1985
|
-
result = imul(result, 31) + (this.
|
|
1986
|
-
result = imul(result, 31) + hashCode(this.
|
|
1987
|
-
result = imul(result, 31) + (this.
|
|
1984
|
+
var result = getStringHashCode(this.u30_1);
|
|
1985
|
+
result = imul(result, 31) + getStringHashCode(this.v30_1) | 0;
|
|
1986
|
+
result = imul(result, 31) + (this.w30_1 == null ? 0 : getStringHashCode(this.w30_1)) | 0;
|
|
1987
|
+
result = imul(result, 31) + hashCode(this.x30_1) | 0;
|
|
1988
|
+
result = imul(result, 31) + (this.y30_1 == null ? 0 : getStringHashCode(this.y30_1)) | 0;
|
|
1988
1989
|
return result;
|
|
1989
1990
|
};
|
|
1990
1991
|
protoOf(RecordType).equals = function (other) {
|
|
@@ -1992,36 +1993,36 @@ protoOf(RecordType).equals = function (other) {
|
|
|
1992
1993
|
return true;
|
|
1993
1994
|
if (!(other instanceof RecordType))
|
|
1994
1995
|
return false;
|
|
1995
|
-
if (!(this.
|
|
1996
|
+
if (!(this.u30_1 === other.u30_1))
|
|
1996
1997
|
return false;
|
|
1997
|
-
if (!(this.
|
|
1998
|
+
if (!(this.v30_1 === other.v30_1))
|
|
1998
1999
|
return false;
|
|
1999
|
-
if (!(this.
|
|
2000
|
+
if (!(this.w30_1 == other.w30_1))
|
|
2000
2001
|
return false;
|
|
2001
|
-
if (!equals(this.
|
|
2002
|
+
if (!equals(this.x30_1, other.x30_1))
|
|
2002
2003
|
return false;
|
|
2003
|
-
if (!(this.
|
|
2004
|
+
if (!(this.y30_1 == other.y30_1))
|
|
2004
2005
|
return false;
|
|
2005
2006
|
return true;
|
|
2006
2007
|
};
|
|
2007
2008
|
function ArrayType(type, items) {
|
|
2008
|
-
this.
|
|
2009
|
-
this.
|
|
2009
|
+
this.z30_1 = type;
|
|
2010
|
+
this.a31_1 = items;
|
|
2010
2011
|
}
|
|
2011
|
-
protoOf(ArrayType).
|
|
2012
|
+
protoOf(ArrayType).s32 = function (type, items) {
|
|
2012
2013
|
return new ArrayType(type, items);
|
|
2013
2014
|
};
|
|
2014
|
-
protoOf(ArrayType).
|
|
2015
|
-
type = type === VOID ? this.
|
|
2016
|
-
items = items === VOID ? this.
|
|
2017
|
-
return $super === VOID ? this.
|
|
2015
|
+
protoOf(ArrayType).t32 = function (type, items, $super) {
|
|
2016
|
+
type = type === VOID ? this.z30_1 : type;
|
|
2017
|
+
items = items === VOID ? this.a31_1 : items;
|
|
2018
|
+
return $super === VOID ? this.s32(type, items) : $super.s32.call(this, type, items);
|
|
2018
2019
|
};
|
|
2019
2020
|
protoOf(ArrayType).toString = function () {
|
|
2020
|
-
return 'ArrayType(type=' + this.
|
|
2021
|
+
return 'ArrayType(type=' + this.z30_1 + ', items=' + toString(this.a31_1) + ')';
|
|
2021
2022
|
};
|
|
2022
2023
|
protoOf(ArrayType).hashCode = function () {
|
|
2023
|
-
var result = getStringHashCode(this.
|
|
2024
|
-
result = imul(result, 31) + hashCode(this.
|
|
2024
|
+
var result = getStringHashCode(this.z30_1);
|
|
2025
|
+
result = imul(result, 31) + hashCode(this.a31_1) | 0;
|
|
2025
2026
|
return result;
|
|
2026
2027
|
};
|
|
2027
2028
|
protoOf(ArrayType).equals = function (other) {
|
|
@@ -2029,30 +2030,30 @@ protoOf(ArrayType).equals = function (other) {
|
|
|
2029
2030
|
return true;
|
|
2030
2031
|
if (!(other instanceof ArrayType))
|
|
2031
2032
|
return false;
|
|
2032
|
-
if (!(this.
|
|
2033
|
+
if (!(this.z30_1 === other.z30_1))
|
|
2033
2034
|
return false;
|
|
2034
|
-
if (!equals(this.
|
|
2035
|
+
if (!equals(this.a31_1, other.a31_1))
|
|
2035
2036
|
return false;
|
|
2036
2037
|
return true;
|
|
2037
2038
|
};
|
|
2038
2039
|
function MapType(type, values) {
|
|
2039
|
-
this.
|
|
2040
|
-
this.
|
|
2040
|
+
this.k30_1 = type;
|
|
2041
|
+
this.l30_1 = values;
|
|
2041
2042
|
}
|
|
2042
|
-
protoOf(MapType).
|
|
2043
|
+
protoOf(MapType).s32 = function (type, values) {
|
|
2043
2044
|
return new MapType(type, values);
|
|
2044
2045
|
};
|
|
2045
|
-
protoOf(MapType).
|
|
2046
|
-
type = type === VOID ? this.
|
|
2047
|
-
values = values === VOID ? this.
|
|
2048
|
-
return $super === VOID ? this.
|
|
2046
|
+
protoOf(MapType).u32 = function (type, values, $super) {
|
|
2047
|
+
type = type === VOID ? this.k30_1 : type;
|
|
2048
|
+
values = values === VOID ? this.l30_1 : values;
|
|
2049
|
+
return $super === VOID ? this.s32(type, values) : $super.s32.call(this, type, values);
|
|
2049
2050
|
};
|
|
2050
2051
|
protoOf(MapType).toString = function () {
|
|
2051
|
-
return 'MapType(type=' + this.
|
|
2052
|
+
return 'MapType(type=' + this.k30_1 + ', values=' + toString(this.l30_1) + ')';
|
|
2052
2053
|
};
|
|
2053
2054
|
protoOf(MapType).hashCode = function () {
|
|
2054
|
-
var result = getStringHashCode(this.
|
|
2055
|
-
result = imul(result, 31) + hashCode(this.
|
|
2055
|
+
var result = getStringHashCode(this.k30_1);
|
|
2056
|
+
result = imul(result, 31) + hashCode(this.l30_1) | 0;
|
|
2056
2057
|
return result;
|
|
2057
2058
|
};
|
|
2058
2059
|
protoOf(MapType).equals = function (other) {
|
|
@@ -2060,28 +2061,28 @@ protoOf(MapType).equals = function (other) {
|
|
|
2060
2061
|
return true;
|
|
2061
2062
|
if (!(other instanceof MapType))
|
|
2062
2063
|
return false;
|
|
2063
|
-
if (!(this.
|
|
2064
|
+
if (!(this.k30_1 === other.k30_1))
|
|
2064
2065
|
return false;
|
|
2065
|
-
if (!equals(this.
|
|
2066
|
+
if (!equals(this.l30_1, other.l30_1))
|
|
2066
2067
|
return false;
|
|
2067
2068
|
return true;
|
|
2068
2069
|
};
|
|
2069
2070
|
function EnumType(type, name, doc, symbols) {
|
|
2070
2071
|
Companion_getInstance_6();
|
|
2071
2072
|
doc = doc === VOID ? null : doc;
|
|
2072
|
-
this.
|
|
2073
|
-
this.
|
|
2074
|
-
this.
|
|
2075
|
-
this.
|
|
2073
|
+
this.q30_1 = type;
|
|
2074
|
+
this.r30_1 = name;
|
|
2075
|
+
this.s30_1 = doc;
|
|
2076
|
+
this.t30_1 = symbols;
|
|
2076
2077
|
}
|
|
2077
2078
|
protoOf(EnumType).toString = function () {
|
|
2078
|
-
return 'EnumType(type=' + this.
|
|
2079
|
+
return 'EnumType(type=' + this.q30_1 + ', name=' + this.r30_1 + ', doc=' + this.s30_1 + ', symbols=' + toString(this.t30_1) + ')';
|
|
2079
2080
|
};
|
|
2080
2081
|
protoOf(EnumType).hashCode = function () {
|
|
2081
|
-
var result = getStringHashCode(this.
|
|
2082
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
2083
|
-
result = imul(result, 31) + (this.
|
|
2084
|
-
result = imul(result, 31) + hashCode(this.
|
|
2082
|
+
var result = getStringHashCode(this.q30_1);
|
|
2083
|
+
result = imul(result, 31) + getStringHashCode(this.r30_1) | 0;
|
|
2084
|
+
result = imul(result, 31) + (this.s30_1 == null ? 0 : getStringHashCode(this.s30_1)) | 0;
|
|
2085
|
+
result = imul(result, 31) + hashCode(this.t30_1) | 0;
|
|
2085
2086
|
return result;
|
|
2086
2087
|
};
|
|
2087
2088
|
protoOf(EnumType).equals = function (other) {
|
|
@@ -2089,34 +2090,34 @@ protoOf(EnumType).equals = function (other) {
|
|
|
2089
2090
|
return true;
|
|
2090
2091
|
if (!(other instanceof EnumType))
|
|
2091
2092
|
return false;
|
|
2092
|
-
if (!(this.
|
|
2093
|
+
if (!(this.q30_1 === other.q30_1))
|
|
2093
2094
|
return false;
|
|
2094
|
-
if (!(this.
|
|
2095
|
+
if (!(this.r30_1 === other.r30_1))
|
|
2095
2096
|
return false;
|
|
2096
|
-
if (!(this.
|
|
2097
|
+
if (!(this.s30_1 == other.s30_1))
|
|
2097
2098
|
return false;
|
|
2098
|
-
if (!equals(this.
|
|
2099
|
+
if (!equals(this.t30_1, other.t30_1))
|
|
2099
2100
|
return false;
|
|
2100
2101
|
return true;
|
|
2101
2102
|
};
|
|
2102
2103
|
function UnionType(name, type) {
|
|
2103
|
-
this.
|
|
2104
|
-
this.
|
|
2104
|
+
this.i30_1 = name;
|
|
2105
|
+
this.j30_1 = type;
|
|
2105
2106
|
}
|
|
2106
|
-
protoOf(UnionType).
|
|
2107
|
+
protoOf(UnionType).v32 = function (name, type) {
|
|
2107
2108
|
return new UnionType(name, type);
|
|
2108
2109
|
};
|
|
2109
|
-
protoOf(UnionType).
|
|
2110
|
-
name = name === VOID ? this.
|
|
2111
|
-
type = type === VOID ? this.
|
|
2112
|
-
return $super === VOID ? this.
|
|
2110
|
+
protoOf(UnionType).w32 = function (name, type, $super) {
|
|
2111
|
+
name = name === VOID ? this.i30_1 : name;
|
|
2112
|
+
type = type === VOID ? this.j30_1 : type;
|
|
2113
|
+
return $super === VOID ? this.v32(name, type) : $super.v32.call(this, name, type);
|
|
2113
2114
|
};
|
|
2114
2115
|
protoOf(UnionType).toString = function () {
|
|
2115
|
-
return 'UnionType(name=' + this.
|
|
2116
|
+
return 'UnionType(name=' + this.i30_1 + ', type=' + this.j30_1.toString() + ')';
|
|
2116
2117
|
};
|
|
2117
2118
|
protoOf(UnionType).hashCode = function () {
|
|
2118
|
-
var result = getStringHashCode(this.
|
|
2119
|
-
result = imul(result, 31) + this.
|
|
2119
|
+
var result = getStringHashCode(this.i30_1);
|
|
2120
|
+
result = imul(result, 31) + this.j30_1.hashCode() | 0;
|
|
2120
2121
|
return result;
|
|
2121
2122
|
};
|
|
2122
2123
|
protoOf(UnionType).equals = function (other) {
|
|
@@ -2124,22 +2125,22 @@ protoOf(UnionType).equals = function (other) {
|
|
|
2124
2125
|
return true;
|
|
2125
2126
|
if (!(other instanceof UnionType))
|
|
2126
2127
|
return false;
|
|
2127
|
-
if (!(this.
|
|
2128
|
+
if (!(this.i30_1 === other.i30_1))
|
|
2128
2129
|
return false;
|
|
2129
|
-
if (!this.
|
|
2130
|
+
if (!this.j30_1.equals(other.j30_1))
|
|
2130
2131
|
return false;
|
|
2131
2132
|
return true;
|
|
2132
2133
|
};
|
|
2133
2134
|
function LogicalType() {
|
|
2134
2135
|
}
|
|
2135
2136
|
protoOf(LogicalType).toString = function () {
|
|
2136
|
-
return 'LogicalType(type=' + this.
|
|
2137
|
+
return 'LogicalType(type=' + this.m30_1 + ', logicalType=' + this.n30_1 + ', precision=' + this.o30_1 + ', scale=' + this.p30_1 + ')';
|
|
2137
2138
|
};
|
|
2138
2139
|
protoOf(LogicalType).hashCode = function () {
|
|
2139
|
-
var result = getStringHashCode(this.
|
|
2140
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
2141
|
-
result = imul(result, 31) + (this.
|
|
2142
|
-
result = imul(result, 31) + (this.
|
|
2140
|
+
var result = getStringHashCode(this.m30_1);
|
|
2141
|
+
result = imul(result, 31) + getStringHashCode(this.n30_1) | 0;
|
|
2142
|
+
result = imul(result, 31) + (this.o30_1 == null ? 0 : this.o30_1) | 0;
|
|
2143
|
+
result = imul(result, 31) + (this.p30_1 == null ? 0 : this.p30_1) | 0;
|
|
2143
2144
|
return result;
|
|
2144
2145
|
};
|
|
2145
2146
|
protoOf(LogicalType).equals = function (other) {
|
|
@@ -2147,24 +2148,24 @@ protoOf(LogicalType).equals = function (other) {
|
|
|
2147
2148
|
return true;
|
|
2148
2149
|
if (!(other instanceof LogicalType))
|
|
2149
2150
|
return false;
|
|
2150
|
-
if (!(this.
|
|
2151
|
+
if (!(this.m30_1 === other.m30_1))
|
|
2151
2152
|
return false;
|
|
2152
|
-
if (!(this.
|
|
2153
|
+
if (!(this.n30_1 === other.n30_1))
|
|
2153
2154
|
return false;
|
|
2154
|
-
if (!(this.
|
|
2155
|
+
if (!(this.o30_1 == other.o30_1))
|
|
2155
2156
|
return false;
|
|
2156
|
-
if (!(this.
|
|
2157
|
+
if (!(this.p30_1 == other.p30_1))
|
|
2157
2158
|
return false;
|
|
2158
2159
|
return true;
|
|
2159
2160
|
};
|
|
2160
2161
|
function FieldSerializer() {
|
|
2161
2162
|
FieldSerializer_instance = this;
|
|
2162
|
-
this.
|
|
2163
|
+
this.x32_1 = buildClassSerialDescriptor('Field', []);
|
|
2163
2164
|
}
|
|
2164
|
-
protoOf(FieldSerializer).
|
|
2165
|
-
return this.
|
|
2165
|
+
protoOf(FieldSerializer).x21 = function () {
|
|
2166
|
+
return this.x32_1;
|
|
2166
2167
|
};
|
|
2167
|
-
protoOf(FieldSerializer).
|
|
2168
|
+
protoOf(FieldSerializer).y32 = function (encoder, value) {
|
|
2168
2169
|
var tmp0_elvis_lhs = isInterface(encoder, JsonEncoder) ? encoder : null;
|
|
2169
2170
|
var tmp;
|
|
2170
2171
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -2175,30 +2176,30 @@ protoOf(FieldSerializer).t32 = function (encoder, value) {
|
|
|
2175
2176
|
var output = tmp;
|
|
2176
2177
|
// Inline function 'kotlinx.serialization.json.buildJsonObject' call
|
|
2177
2178
|
var builder = new JsonObjectBuilder();
|
|
2178
|
-
put(builder, 'name', value.
|
|
2179
|
-
builder.
|
|
2180
|
-
var tmp0_safe_receiver = value.
|
|
2179
|
+
put(builder, 'name', value.b31_1);
|
|
2180
|
+
builder.l2p('type', output.u2o().s2m(TypeListSerializer_getInstance(), value.c31_1));
|
|
2181
|
+
var tmp0_safe_receiver = value.d31_1;
|
|
2181
2182
|
if (tmp0_safe_receiver == null)
|
|
2182
2183
|
null;
|
|
2183
2184
|
else {
|
|
2184
2185
|
// Inline function 'kotlin.let' call
|
|
2185
2186
|
put(builder, 'doc', tmp0_safe_receiver);
|
|
2186
2187
|
}
|
|
2187
|
-
var tmp1_safe_receiver = value.
|
|
2188
|
+
var tmp1_safe_receiver = value.e31_1;
|
|
2188
2189
|
if (tmp1_safe_receiver == null)
|
|
2189
2190
|
null;
|
|
2190
2191
|
else {
|
|
2191
2192
|
// Inline function 'kotlin.let' call
|
|
2192
|
-
builder.
|
|
2193
|
+
builder.l2p('default', tmp1_safe_receiver);
|
|
2193
2194
|
}
|
|
2194
2195
|
// Inline function 'kotlin.let' call
|
|
2195
|
-
var p0 = builder.
|
|
2196
|
-
output.
|
|
2196
|
+
var p0 = builder.c2o();
|
|
2197
|
+
output.d2q(p0);
|
|
2197
2198
|
};
|
|
2198
|
-
protoOf(FieldSerializer).
|
|
2199
|
-
return this.
|
|
2199
|
+
protoOf(FieldSerializer).y21 = function (encoder, value) {
|
|
2200
|
+
return this.y32(encoder, value instanceof Field_0 ? value : THROW_CCE());
|
|
2200
2201
|
};
|
|
2201
|
-
protoOf(FieldSerializer).
|
|
2202
|
+
protoOf(FieldSerializer).z21 = function (decoder) {
|
|
2202
2203
|
var tmp0_elvis_lhs = isInterface(decoder, JsonDecoder) ? decoder : null;
|
|
2203
2204
|
var tmp;
|
|
2204
2205
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -2208,12 +2209,12 @@ protoOf(FieldSerializer).u21 = function (decoder) {
|
|
|
2208
2209
|
}
|
|
2209
2210
|
var input = tmp;
|
|
2210
2211
|
// Inline function 'kotlin.let' call
|
|
2211
|
-
var field = get_jsonObject(input.
|
|
2212
|
-
var tmp_0 = get_jsonPrimitive(getValue(field, 'name')).
|
|
2213
|
-
var tmp_1 = input.
|
|
2214
|
-
var tmp0_safe_receiver = field.
|
|
2212
|
+
var field = get_jsonObject(input.v2o());
|
|
2213
|
+
var tmp_0 = get_jsonPrimitive(getValue(field, 'name')).m1i();
|
|
2214
|
+
var tmp_1 = input.u2o().t2m(TypeListSerializer_getInstance(), getValue(field, 'type'));
|
|
2215
|
+
var tmp0_safe_receiver = field.ld('doc');
|
|
2215
2216
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : get_jsonPrimitive(tmp0_safe_receiver);
|
|
2216
|
-
return new Field_0(tmp_0, tmp_1, tmp1_safe_receiver == null ? null : get_contentOrNull(tmp1_safe_receiver), field.
|
|
2217
|
+
return new Field_0(tmp_0, tmp_1, tmp1_safe_receiver == null ? null : get_contentOrNull(tmp1_safe_receiver), field.ld('default'));
|
|
2217
2218
|
};
|
|
2218
2219
|
var FieldSerializer_instance;
|
|
2219
2220
|
function FieldSerializer_getInstance() {
|
|
@@ -2223,22 +2224,22 @@ function FieldSerializer_getInstance() {
|
|
|
2223
2224
|
}
|
|
2224
2225
|
function TypeListSerializer() {
|
|
2225
2226
|
TypeListSerializer_instance = this;
|
|
2226
|
-
this.
|
|
2227
|
+
this.z32_1 = buildSerialDescriptor('TypeListSerializer', SEALED_getInstance(), []);
|
|
2227
2228
|
}
|
|
2228
|
-
protoOf(TypeListSerializer).
|
|
2229
|
-
return this.
|
|
2229
|
+
protoOf(TypeListSerializer).x21 = function () {
|
|
2230
|
+
return this.z32_1;
|
|
2230
2231
|
};
|
|
2231
|
-
protoOf(TypeListSerializer).
|
|
2232
|
-
if (value.
|
|
2233
|
-
encoder.
|
|
2232
|
+
protoOf(TypeListSerializer).a33 = function (encoder, value) {
|
|
2233
|
+
if (value.o32_1 > 1) {
|
|
2234
|
+
encoder.o26(ListSerializer(Companion_instance_1.z2o()), value);
|
|
2234
2235
|
} else {
|
|
2235
|
-
encoder.
|
|
2236
|
+
encoder.o26(Companion_instance_1.z2o(), first(value));
|
|
2236
2237
|
}
|
|
2237
2238
|
};
|
|
2238
|
-
protoOf(TypeListSerializer).
|
|
2239
|
-
return this.
|
|
2239
|
+
protoOf(TypeListSerializer).y21 = function (encoder, value) {
|
|
2240
|
+
return this.a33(encoder, value instanceof TypeList ? value : THROW_CCE());
|
|
2240
2241
|
};
|
|
2241
|
-
protoOf(TypeListSerializer).
|
|
2242
|
+
protoOf(TypeListSerializer).z21 = function (decoder) {
|
|
2242
2243
|
var tmp0_elvis_lhs = isInterface(decoder, JsonDecoder) ? decoder : null;
|
|
2243
2244
|
var tmp;
|
|
2244
2245
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -2247,10 +2248,10 @@ protoOf(TypeListSerializer).u21 = function (decoder) {
|
|
|
2247
2248
|
tmp = tmp0_elvis_lhs;
|
|
2248
2249
|
}
|
|
2249
2250
|
var input = tmp;
|
|
2250
|
-
var element = input.
|
|
2251
|
+
var element = input.v2o();
|
|
2251
2252
|
var tmp_0;
|
|
2252
2253
|
if (element instanceof JsonPrimitive) {
|
|
2253
|
-
tmp_0 = new TypeList([input.
|
|
2254
|
+
tmp_0 = new TypeList([input.u2o().t2m(Companion_instance_1.z2o(), element)]);
|
|
2254
2255
|
} else {
|
|
2255
2256
|
if (element instanceof JsonArray) {
|
|
2256
2257
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -2259,7 +2260,7 @@ protoOf(TypeListSerializer).u21 = function (decoder) {
|
|
|
2259
2260
|
var _iterator__ex2g4s = element.t();
|
|
2260
2261
|
while (_iterator__ex2g4s.u()) {
|
|
2261
2262
|
var item = _iterator__ex2g4s.v();
|
|
2262
|
-
var tmp$ret$2 = input.
|
|
2263
|
+
var tmp$ret$2 = input.u2o().t2m(Companion_instance_1.z2o(), item);
|
|
2263
2264
|
destination.x(tmp$ret$2);
|
|
2264
2265
|
}
|
|
2265
2266
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
@@ -2267,7 +2268,7 @@ protoOf(TypeListSerializer).u21 = function (decoder) {
|
|
|
2267
2268
|
tmp_0 = new TypeList(tmp$ret$3.slice());
|
|
2268
2269
|
} else {
|
|
2269
2270
|
if (element instanceof JsonObject) {
|
|
2270
|
-
tmp_0 = new TypeList([input.
|
|
2271
|
+
tmp_0 = new TypeList([input.u2o().t2m(Companion_instance_1.z2o(), element)]);
|
|
2271
2272
|
} else {
|
|
2272
2273
|
noWhenBranchMatchedException();
|
|
2273
2274
|
}
|
|
@@ -2283,29 +2284,29 @@ function TypeListSerializer_getInstance() {
|
|
|
2283
2284
|
}
|
|
2284
2285
|
function TypeSerializer() {
|
|
2285
2286
|
TypeSerializer_instance = this;
|
|
2286
|
-
this.
|
|
2287
|
+
this.b33_1 = buildSerialDescriptor('TypeSerializer', SEALED_getInstance(), []);
|
|
2287
2288
|
}
|
|
2288
|
-
protoOf(TypeSerializer).
|
|
2289
|
-
return this.
|
|
2289
|
+
protoOf(TypeSerializer).x21 = function () {
|
|
2290
|
+
return this.b33_1;
|
|
2290
2291
|
};
|
|
2291
|
-
protoOf(TypeSerializer).
|
|
2292
|
+
protoOf(TypeSerializer).c33 = function (encoder, value) {
|
|
2292
2293
|
if (value instanceof SimpleType) {
|
|
2293
|
-
encoder.
|
|
2294
|
+
encoder.o26(serializer_0(StringCompanionObject_instance), value.h30_1);
|
|
2294
2295
|
} else {
|
|
2295
2296
|
if (value instanceof RecordType) {
|
|
2296
|
-
encoder.
|
|
2297
|
+
encoder.o26(Companion_getInstance_3().z2o(), value);
|
|
2297
2298
|
} else {
|
|
2298
2299
|
if (value instanceof ArrayType) {
|
|
2299
|
-
encoder.
|
|
2300
|
+
encoder.o26(Companion_instance_4.z2o(), value);
|
|
2300
2301
|
} else {
|
|
2301
2302
|
if (value instanceof MapType) {
|
|
2302
|
-
encoder.
|
|
2303
|
+
encoder.o26(Companion_instance_5.z2o(), value);
|
|
2303
2304
|
} else {
|
|
2304
2305
|
if (value instanceof EnumType) {
|
|
2305
|
-
encoder.
|
|
2306
|
+
encoder.o26(Companion_getInstance_6().z2o(), value);
|
|
2306
2307
|
} else {
|
|
2307
2308
|
if (value instanceof UnionType) {
|
|
2308
|
-
encoder.
|
|
2309
|
+
encoder.o26(Companion_instance_7.z2o(), value);
|
|
2309
2310
|
} else {
|
|
2310
2311
|
if (value instanceof LogicalType) {
|
|
2311
2312
|
// Inline function 'kotlin.TODO' call
|
|
@@ -2320,10 +2321,10 @@ protoOf(TypeSerializer).x32 = function (encoder, value) {
|
|
|
2320
2321
|
}
|
|
2321
2322
|
}
|
|
2322
2323
|
};
|
|
2323
|
-
protoOf(TypeSerializer).
|
|
2324
|
-
return this.
|
|
2324
|
+
protoOf(TypeSerializer).y21 = function (encoder, value) {
|
|
2325
|
+
return this.c33(encoder, (!(value == null) ? isInterface(value, Type_0) : false) ? value : THROW_CCE());
|
|
2325
2326
|
};
|
|
2326
|
-
protoOf(TypeSerializer).
|
|
2327
|
+
protoOf(TypeSerializer).z21 = function (decoder) {
|
|
2327
2328
|
var tmp0_elvis_lhs = isInterface(decoder, JsonDecoder) ? decoder : null;
|
|
2328
2329
|
var tmp;
|
|
2329
2330
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -2332,18 +2333,18 @@ protoOf(TypeSerializer).u21 = function (decoder) {
|
|
|
2332
2333
|
tmp = tmp0_elvis_lhs;
|
|
2333
2334
|
}
|
|
2334
2335
|
var input = tmp;
|
|
2335
|
-
var element = input.
|
|
2336
|
+
var element = input.v2o();
|
|
2336
2337
|
var tmp_0;
|
|
2337
2338
|
if (element instanceof JsonObject) {
|
|
2338
2339
|
var tmp_1;
|
|
2339
|
-
if (element.
|
|
2340
|
-
tmp_1 = input.
|
|
2341
|
-
} else if (element.
|
|
2342
|
-
tmp_1 = input.
|
|
2343
|
-
} else if (element.
|
|
2344
|
-
tmp_1 = input.
|
|
2345
|
-
} else if (element.
|
|
2346
|
-
tmp_1 = input.
|
|
2340
|
+
if (element.b2p('items')) {
|
|
2341
|
+
tmp_1 = input.u2o().t2m(Companion_instance_4.z2o(), element);
|
|
2342
|
+
} else if (element.b2p('fields')) {
|
|
2343
|
+
tmp_1 = input.u2o().t2m(Companion_getInstance_3().z2o(), element);
|
|
2344
|
+
} else if (element.b2p('symbols')) {
|
|
2345
|
+
tmp_1 = input.u2o().t2m(Companion_getInstance_6().z2o(), element);
|
|
2346
|
+
} else if (element.b2p('logicalType')) {
|
|
2347
|
+
tmp_1 = input.u2o().t2m(Companion_instance_8.z2o(), element);
|
|
2347
2348
|
} else {
|
|
2348
2349
|
// Inline function 'kotlin.TODO' call
|
|
2349
2350
|
var reason = 'Unknown object type: ' + element.toString();
|
|
@@ -2352,7 +2353,7 @@ protoOf(TypeSerializer).u21 = function (decoder) {
|
|
|
2352
2353
|
tmp_0 = tmp_1;
|
|
2353
2354
|
} else {
|
|
2354
2355
|
if (element instanceof JsonPrimitive) {
|
|
2355
|
-
tmp_0 = new SimpleType(element.
|
|
2356
|
+
tmp_0 = new SimpleType(element.m1i());
|
|
2356
2357
|
} else {
|
|
2357
2358
|
if (element instanceof JsonArray) {
|
|
2358
2359
|
// Inline function 'kotlin.TODO' call
|
|
@@ -2373,18 +2374,18 @@ function TypeSerializer_getInstance() {
|
|
|
2373
2374
|
}
|
|
2374
2375
|
function inDependencyOrder(_this__u8e3s4) {
|
|
2375
2376
|
// Inline function 'kotlin.collections.associateBy' call
|
|
2376
|
-
var this_0 = NonEmptyList__toList_impl_t5xcy2(_this__u8e3s4.
|
|
2377
|
+
var this_0 = NonEmptyList__toList_impl_t5xcy2(_this__u8e3s4.hp_1);
|
|
2377
2378
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
2378
2379
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
2379
2380
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
2380
2381
|
var _iterator__ex2g4s = this_0.t();
|
|
2381
2382
|
while (_iterator__ex2g4s.u()) {
|
|
2382
2383
|
var element = _iterator__ex2g4s.v();
|
|
2383
|
-
var tmp$ret$2 = element.
|
|
2384
|
-
destination.
|
|
2384
|
+
var tmp$ret$2 = element.es().o1();
|
|
2385
|
+
destination.w2(tmp$ret$2, element);
|
|
2385
2386
|
}
|
|
2386
2387
|
var byName = destination;
|
|
2387
|
-
var tmp0 = NonEmptyList__toList_impl_t5xcy2(_this__u8e3s4.
|
|
2388
|
+
var tmp0 = NonEmptyList__toList_impl_t5xcy2(_this__u8e3s4.hp_1);
|
|
2388
2389
|
// Inline function 'kotlin.collections.fold' call
|
|
2389
2390
|
var accumulator = new Ordering();
|
|
2390
2391
|
var _iterator__ex2g4s_0 = tmp0.t();
|
|
@@ -2393,18 +2394,18 @@ function inDependencyOrder(_this__u8e3s4) {
|
|
|
2393
2394
|
var ordering = accumulator;
|
|
2394
2395
|
accumulator = inDependencyOrder$visit(ordering, byName, element_0);
|
|
2395
2396
|
}
|
|
2396
|
-
return accumulator.
|
|
2397
|
+
return accumulator.e33_1;
|
|
2397
2398
|
}
|
|
2398
2399
|
function customNames(_this__u8e3s4) {
|
|
2399
2400
|
var tmp;
|
|
2400
2401
|
if (_this__u8e3s4 instanceof Custom) {
|
|
2401
|
-
tmp = listOf(_this__u8e3s4.
|
|
2402
|
+
tmp = listOf(_this__u8e3s4.b1a_1);
|
|
2402
2403
|
} else {
|
|
2403
2404
|
if (_this__u8e3s4 instanceof Iterable) {
|
|
2404
|
-
tmp = customNames(_this__u8e3s4.
|
|
2405
|
+
tmp = customNames(_this__u8e3s4.zp_1);
|
|
2405
2406
|
} else {
|
|
2406
2407
|
if (_this__u8e3s4 instanceof Dict) {
|
|
2407
|
-
tmp = customNames(_this__u8e3s4.
|
|
2408
|
+
tmp = customNames(_this__u8e3s4.cq_1);
|
|
2408
2409
|
} else {
|
|
2409
2410
|
var tmp_0;
|
|
2410
2411
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
@@ -2431,23 +2432,23 @@ function customNames(_this__u8e3s4) {
|
|
|
2431
2432
|
function Ordering(seen, ordered) {
|
|
2432
2433
|
seen = seen === VOID ? emptySet() : seen;
|
|
2433
2434
|
ordered = ordered === VOID ? emptyList() : ordered;
|
|
2434
|
-
this.
|
|
2435
|
-
this.
|
|
2435
|
+
this.d33_1 = seen;
|
|
2436
|
+
this.e33_1 = ordered;
|
|
2436
2437
|
}
|
|
2437
|
-
protoOf(Ordering).
|
|
2438
|
+
protoOf(Ordering).f33 = function (seen, ordered) {
|
|
2438
2439
|
return new Ordering(seen, ordered);
|
|
2439
2440
|
};
|
|
2440
|
-
protoOf(Ordering).
|
|
2441
|
-
seen = seen === VOID ? this.
|
|
2442
|
-
ordered = ordered === VOID ? this.
|
|
2443
|
-
return $super === VOID ? this.
|
|
2441
|
+
protoOf(Ordering).g33 = function (seen, ordered, $super) {
|
|
2442
|
+
seen = seen === VOID ? this.d33_1 : seen;
|
|
2443
|
+
ordered = ordered === VOID ? this.e33_1 : ordered;
|
|
2444
|
+
return $super === VOID ? this.f33(seen, ordered) : $super.f33.call(this, seen, ordered);
|
|
2444
2445
|
};
|
|
2445
2446
|
protoOf(Ordering).toString = function () {
|
|
2446
|
-
return 'Ordering(seen=' + toString(this.
|
|
2447
|
+
return 'Ordering(seen=' + toString(this.d33_1) + ', ordered=' + toString(this.e33_1) + ')';
|
|
2447
2448
|
};
|
|
2448
2449
|
protoOf(Ordering).hashCode = function () {
|
|
2449
|
-
var result = hashCode(this.
|
|
2450
|
-
result = imul(result, 31) + hashCode(this.
|
|
2450
|
+
var result = hashCode(this.d33_1);
|
|
2451
|
+
result = imul(result, 31) + hashCode(this.e33_1) | 0;
|
|
2451
2452
|
return result;
|
|
2452
2453
|
};
|
|
2453
2454
|
protoOf(Ordering).equals = function (other) {
|
|
@@ -2455,15 +2456,15 @@ protoOf(Ordering).equals = function (other) {
|
|
|
2455
2456
|
return true;
|
|
2456
2457
|
if (!(other instanceof Ordering))
|
|
2457
2458
|
return false;
|
|
2458
|
-
if (!equals(this.
|
|
2459
|
+
if (!equals(this.d33_1, other.d33_1))
|
|
2459
2460
|
return false;
|
|
2460
|
-
if (!equals(this.
|
|
2461
|
+
if (!equals(this.e33_1, other.e33_1))
|
|
2461
2462
|
return false;
|
|
2462
2463
|
return true;
|
|
2463
2464
|
};
|
|
2464
2465
|
function findRefined(_this__u8e3s4, name) {
|
|
2465
2466
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
2466
|
-
var tmp0 = NonEmptyList__toList_impl_t5xcy2(_this__u8e3s4.
|
|
2467
|
+
var tmp0 = NonEmptyList__toList_impl_t5xcy2(_this__u8e3s4.hp_1);
|
|
2467
2468
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
2468
2469
|
var destination = ArrayList_init_$Create$_0();
|
|
2469
2470
|
var _iterator__ex2g4s = tmp0.t();
|
|
@@ -2480,7 +2481,7 @@ function findRefined(_this__u8e3s4, name) {
|
|
|
2480
2481
|
var _iterator__ex2g4s_0 = destination.t();
|
|
2481
2482
|
while (_iterator__ex2g4s_0.u()) {
|
|
2482
2483
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
2483
|
-
if (element_0.
|
|
2484
|
+
if (element_0.ms_1.o1() === name) {
|
|
2484
2485
|
tmp$ret$3 = element_0;
|
|
2485
2486
|
break $l$block;
|
|
2486
2487
|
}
|
|
@@ -2493,20 +2494,20 @@ function inDependencyOrder$dependencies(_this__u8e3s4, byName) {
|
|
|
2493
2494
|
var tmp;
|
|
2494
2495
|
if (_this__u8e3s4 instanceof Type) {
|
|
2495
2496
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2496
|
-
var tmp0 = get_fields(_this__u8e3s4.
|
|
2497
|
+
var tmp0 = get_fields(_this__u8e3s4.mp_1);
|
|
2497
2498
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2498
2499
|
var destination = ArrayList_init_$Create$_0();
|
|
2499
2500
|
var _iterator__ex2g4s = tmp0.t();
|
|
2500
2501
|
while (_iterator__ex2g4s.u()) {
|
|
2501
2502
|
var element = _iterator__ex2g4s.v();
|
|
2502
|
-
var list = customNames(element.
|
|
2503
|
+
var list = customNames(element.qp_1);
|
|
2503
2504
|
addAll(destination, list);
|
|
2504
2505
|
}
|
|
2505
2506
|
tmp = destination;
|
|
2506
2507
|
} else {
|
|
2507
2508
|
if (_this__u8e3s4 instanceof Union) {
|
|
2508
2509
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2509
|
-
var tmp0_0 = _this__u8e3s4.
|
|
2510
|
+
var tmp0_0 = _this__u8e3s4.dr_1;
|
|
2510
2511
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2511
2512
|
var destination_0 = ArrayList_init_$Create$_0();
|
|
2512
2513
|
var _iterator__ex2g4s_0 = tmp0_0.t();
|
|
@@ -2528,7 +2529,7 @@ function inDependencyOrder$dependencies(_this__u8e3s4, byName) {
|
|
|
2528
2529
|
var _iterator__ex2g4s_1 = tmp0_1.t();
|
|
2529
2530
|
while (_iterator__ex2g4s_1.u()) {
|
|
2530
2531
|
var element_1 = _iterator__ex2g4s_1.v();
|
|
2531
|
-
var tmp0_safe_receiver = byName.
|
|
2532
|
+
var tmp0_safe_receiver = byName.t2(element_1);
|
|
2532
2533
|
if (tmp0_safe_receiver == null)
|
|
2533
2534
|
null;
|
|
2534
2535
|
else {
|
|
@@ -2539,14 +2540,14 @@ function inDependencyOrder$dependencies(_this__u8e3s4, byName) {
|
|
|
2539
2540
|
return destination_1;
|
|
2540
2541
|
}
|
|
2541
2542
|
function inDependencyOrder$visit(_this__u8e3s4, byName, definition) {
|
|
2542
|
-
var tmp0_subject = definition.
|
|
2543
|
+
var tmp0_subject = definition.es().o1();
|
|
2543
2544
|
var tmp;
|
|
2544
|
-
if (_this__u8e3s4.
|
|
2545
|
+
if (_this__u8e3s4.d33_1.i1(tmp0_subject)) {
|
|
2545
2546
|
tmp = _this__u8e3s4;
|
|
2546
2547
|
} else {
|
|
2547
2548
|
var tmp0 = inDependencyOrder$dependencies(definition, byName);
|
|
2548
2549
|
// Inline function 'kotlin.collections.fold' call
|
|
2549
|
-
var accumulator = _this__u8e3s4.
|
|
2550
|
+
var accumulator = _this__u8e3s4.g33(plus_1(_this__u8e3s4.d33_1, definition.es().o1()));
|
|
2550
2551
|
var _iterator__ex2g4s = tmp0.t();
|
|
2551
2552
|
while (_iterator__ex2g4s.u()) {
|
|
2552
2553
|
var element = _iterator__ex2g4s.v();
|
|
@@ -2555,18 +2556,18 @@ function inDependencyOrder$visit(_this__u8e3s4, byName, definition) {
|
|
|
2555
2556
|
}
|
|
2556
2557
|
// Inline function 'kotlin.let' call
|
|
2557
2558
|
var it = accumulator;
|
|
2558
|
-
tmp = it.
|
|
2559
|
+
tmp = it.g33(VOID, plus_0(it.e33_1, definition));
|
|
2559
2560
|
}
|
|
2560
2561
|
return tmp;
|
|
2561
2562
|
}
|
|
2562
2563
|
//region block: post-declaration
|
|
2563
|
-
protoOf($serializer).
|
|
2564
|
-
protoOf($serializer_0).
|
|
2565
|
-
protoOf($serializer_1).
|
|
2566
|
-
protoOf($serializer_2).
|
|
2567
|
-
protoOf($serializer_3).
|
|
2568
|
-
protoOf($serializer_4).
|
|
2569
|
-
protoOf($serializer_5).
|
|
2564
|
+
protoOf($serializer).a2d = typeParametersSerializers;
|
|
2565
|
+
protoOf($serializer_0).a2d = typeParametersSerializers;
|
|
2566
|
+
protoOf($serializer_1).a2d = typeParametersSerializers;
|
|
2567
|
+
protoOf($serializer_2).a2d = typeParametersSerializers;
|
|
2568
|
+
protoOf($serializer_3).a2d = typeParametersSerializers;
|
|
2569
|
+
protoOf($serializer_4).a2d = typeParametersSerializers;
|
|
2570
|
+
protoOf($serializer_5).a2d = typeParametersSerializers;
|
|
2570
2571
|
//endregion
|
|
2571
2572
|
//region block: init
|
|
2572
2573
|
AvroJsonParser_instance = new AvroJsonParser();
|