@flock/wirespec 0.18.14 → 0.18.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/clikt-clikt-mordant.mjs +39 -39
- package/colormath-root-colormath.mjs +432 -432
- package/kotlin-kotlin-stdlib.mjs +20 -10
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +9842 -9842
- package/kotlin-rgxgen.mjs +1758 -1758
- package/kotlinx-io-kotlinx-io-core.mjs +404 -404
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1775 -1775
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1466 -1466
- package/mordant-mordant.mjs +1190 -1190
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +1 -1
- package/wirespec-src-compiler-emitters-java.mjs +182 -182
- package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-kotlin.mjs +197 -133
- package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-python.mjs +147 -147
- package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-rust.mjs +68 -54
- package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-scala.mjs +29 -29
- package/wirespec-src-compiler-emitters-typescript.mjs +81 -54
- package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-wirespec.mjs +26 -26
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-ir.mjs +144 -134
- package/wirespec-src-compiler-ir.mjs.map +1 -1
- package/wirespec-src-converter-avro.mjs +479 -479
- package/wirespec-src-converter-openapi.mjs +320 -320
- package/wirespec-src-ide-lsp.mjs +1348 -1348
- package/wirespec-src-plugin-arguments.mjs +136 -136
- package/wirespec-src-plugin-cli.mjs +84 -84
- package/wirespec-src-plugin-npm.mjs +10 -10
- package/wirespec-src-tools-generator.mjs +2 -2
|
@@ -146,11 +146,11 @@ initMetadataForObject(TypeListSerializer, 'TypeListSerializer', VOID, VOID, [KSe
|
|
|
146
146
|
initMetadataForObject(TypeSerializer, 'TypeSerializer', VOID, VOID, [KSerializer]);
|
|
147
147
|
//endregion
|
|
148
148
|
function isNullable($this, _this__u8e3s4) {
|
|
149
|
-
return _this__u8e3s4.u1($this.
|
|
149
|
+
return _this__u8e3s4.u1($this.g46_1);
|
|
150
150
|
}
|
|
151
151
|
function toPrimitive($this, _this__u8e3s4) {
|
|
152
152
|
var tmp;
|
|
153
|
-
switch (_this__u8e3s4.
|
|
153
|
+
switch (_this__u8e3s4.h46_1) {
|
|
154
154
|
case 'boolean':
|
|
155
155
|
tmp = Boolean_instance;
|
|
156
156
|
break;
|
|
@@ -173,7 +173,7 @@ function toPrimitive($this, _this__u8e3s4) {
|
|
|
173
173
|
tmp = new String_0(null);
|
|
174
174
|
break;
|
|
175
175
|
default:
|
|
176
|
-
var reason = 'primitive not mapped ' + _this__u8e3s4.
|
|
176
|
+
var reason = 'primitive not mapped ' + _this__u8e3s4.h46_1;
|
|
177
177
|
throw new NotImplementedError('An operation is not implemented: ' + reason);
|
|
178
178
|
}
|
|
179
179
|
return tmp;
|
|
@@ -181,7 +181,7 @@ function toPrimitive($this, _this__u8e3s4) {
|
|
|
181
181
|
function toReference($this, _this__u8e3s4, isNullable) {
|
|
182
182
|
var tmp;
|
|
183
183
|
if (_this__u8e3s4 instanceof SimpleType) {
|
|
184
|
-
switch (_this__u8e3s4.
|
|
184
|
+
switch (_this__u8e3s4.h46_1) {
|
|
185
185
|
case 'null':
|
|
186
186
|
tmp = new Unit(isNullable);
|
|
187
187
|
break;
|
|
@@ -195,27 +195,27 @@ function toReference($this, _this__u8e3s4, isNullable) {
|
|
|
195
195
|
tmp = new Primitive(toPrimitive($this, _this__u8e3s4), isNullable);
|
|
196
196
|
break;
|
|
197
197
|
default:
|
|
198
|
-
tmp = new Custom(_this__u8e3s4.
|
|
198
|
+
tmp = new Custom(_this__u8e3s4.h46_1, isNullable);
|
|
199
199
|
break;
|
|
200
200
|
}
|
|
201
201
|
} else {
|
|
202
202
|
if (_this__u8e3s4 instanceof ArrayType) {
|
|
203
|
-
tmp = new Iterable(toReference($this, _this__u8e3s4.
|
|
203
|
+
tmp = new Iterable(toReference($this, _this__u8e3s4.a47_1, false), isNullable);
|
|
204
204
|
} else {
|
|
205
205
|
if (_this__u8e3s4 instanceof RecordType) {
|
|
206
|
-
tmp = new Custom(_this__u8e3s4.
|
|
206
|
+
tmp = new Custom(_this__u8e3s4.v46_1, isNullable);
|
|
207
207
|
} else {
|
|
208
208
|
if (_this__u8e3s4 instanceof EnumType) {
|
|
209
|
-
tmp = new Custom(_this__u8e3s4.
|
|
209
|
+
tmp = new Custom(_this__u8e3s4.r46_1, isNullable);
|
|
210
210
|
} else {
|
|
211
211
|
if (_this__u8e3s4 instanceof LogicalType) {
|
|
212
|
-
tmp = toReference($this, new SimpleType(_this__u8e3s4.
|
|
212
|
+
tmp = toReference($this, new SimpleType(_this__u8e3s4.m46_1), isNullable);
|
|
213
213
|
} else {
|
|
214
214
|
if (_this__u8e3s4 instanceof MapType) {
|
|
215
|
-
tmp = new Dict(toReference($this, _this__u8e3s4.
|
|
215
|
+
tmp = new Dict(toReference($this, _this__u8e3s4.l46_1, false), isNullable);
|
|
216
216
|
} else {
|
|
217
217
|
if (_this__u8e3s4 instanceof UnionType) {
|
|
218
|
-
tmp = new Custom(_this__u8e3s4.
|
|
218
|
+
tmp = new Custom(_this__u8e3s4.i46_1, isNullable);
|
|
219
219
|
} else {
|
|
220
220
|
noWhenBranchMatchedException();
|
|
221
221
|
}
|
|
@@ -228,7 +228,7 @@ function toReference($this, _this__u8e3s4, isNullable) {
|
|
|
228
228
|
return tmp;
|
|
229
229
|
}
|
|
230
230
|
function toReference_0($this, _this__u8e3s4) {
|
|
231
|
-
var list = minus(_this__u8e3s4, $this.
|
|
231
|
+
var list = minus(_this__u8e3s4, $this.g46_1);
|
|
232
232
|
var tmp;
|
|
233
233
|
if (list.a1() === 1) {
|
|
234
234
|
tmp = toReference($this, first(list), isNullable($this, _this__u8e3s4));
|
|
@@ -268,18 +268,18 @@ function toReference_0($this, _this__u8e3s4) {
|
|
|
268
268
|
}
|
|
269
269
|
function toType($this, _this__u8e3s4) {
|
|
270
270
|
var tmp0_annotations = emptyList();
|
|
271
|
-
var tmp1_identifier = new DefinitionIdentifier(_this__u8e3s4.
|
|
271
|
+
var tmp1_identifier = new DefinitionIdentifier(_this__u8e3s4.v46_1);
|
|
272
272
|
var tmp2_extends = emptyList();
|
|
273
273
|
// Inline function 'kotlin.collections.map' call
|
|
274
|
-
var this_0 = _this__u8e3s4.
|
|
274
|
+
var this_0 = _this__u8e3s4.x46_1;
|
|
275
275
|
// Inline function 'kotlin.collections.mapTo' call
|
|
276
276
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
277
277
|
var _iterator__ex2g4s = this_0.t();
|
|
278
278
|
while (_iterator__ex2g4s.u()) {
|
|
279
279
|
var item = _iterator__ex2g4s.v();
|
|
280
|
-
var tmp0_identifier = new FieldIdentifier(item.
|
|
280
|
+
var tmp0_identifier = new FieldIdentifier(item.b47_1);
|
|
281
281
|
var tmp1_annotations = emptyList();
|
|
282
|
-
var tmp2_reference = toReference_0(AvroConverter_getInstance(), item.
|
|
282
|
+
var tmp2_reference = toReference_0(AvroConverter_getInstance(), item.c47_1);
|
|
283
283
|
var tmp$ret$0 = new Field(tmp1_annotations, tmp0_identifier, tmp2_reference);
|
|
284
284
|
destination.x(tmp$ret$0);
|
|
285
285
|
}
|
|
@@ -287,13 +287,13 @@ function toType($this, _this__u8e3s4) {
|
|
|
287
287
|
return new Type(null, tmp0_annotations, tmp1_identifier, tmp3_shape, tmp2_extends);
|
|
288
288
|
}
|
|
289
289
|
function toEnum($this, _this__u8e3s4) {
|
|
290
|
-
return new Enum(null, emptyList(), new DefinitionIdentifier(_this__u8e3s4.
|
|
290
|
+
return new Enum(null, emptyList(), new DefinitionIdentifier(_this__u8e3s4.r46_1), toSet(_this__u8e3s4.t46_1));
|
|
291
291
|
}
|
|
292
292
|
function toUnion($this, _this__u8e3s4, name) {
|
|
293
293
|
var tmp = emptyList();
|
|
294
294
|
var tmp_0 = new DefinitionIdentifier(name);
|
|
295
295
|
// Inline function 'kotlin.collections.map' call
|
|
296
|
-
var this_0 = _this__u8e3s4.
|
|
296
|
+
var this_0 = _this__u8e3s4.j46_1;
|
|
297
297
|
// Inline function 'kotlin.collections.mapTo' call
|
|
298
298
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
299
299
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -306,9 +306,9 @@ function toUnion($this, _this__u8e3s4, name) {
|
|
|
306
306
|
}
|
|
307
307
|
function AvroConverter() {
|
|
308
308
|
AvroConverter_instance = this;
|
|
309
|
-
this.
|
|
309
|
+
this.g46_1 = new SimpleType('null');
|
|
310
310
|
}
|
|
311
|
-
protoOf(AvroConverter).
|
|
311
|
+
protoOf(AvroConverter).f47 = function (_this__u8e3s4, name) {
|
|
312
312
|
var tmp;
|
|
313
313
|
if (_this__u8e3s4 instanceof SimpleType) {
|
|
314
314
|
tmp = emptyList();
|
|
@@ -316,20 +316,20 @@ protoOf(AvroConverter).b47 = function (_this__u8e3s4, name) {
|
|
|
316
316
|
if (_this__u8e3s4 instanceof RecordType) {
|
|
317
317
|
var tmp_0 = listOf(toType(this, _this__u8e3s4));
|
|
318
318
|
// Inline function 'kotlin.collections.flatMap' call
|
|
319
|
-
var tmp0 = _this__u8e3s4.
|
|
319
|
+
var tmp0 = _this__u8e3s4.x46_1;
|
|
320
320
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
321
321
|
var destination = ArrayList_init_$Create$_0();
|
|
322
322
|
var _iterator__ex2g4s = tmp0.t();
|
|
323
323
|
while (_iterator__ex2g4s.u()) {
|
|
324
324
|
var element = _iterator__ex2g4s.v();
|
|
325
325
|
// Inline function 'kotlin.collections.flatMap' call
|
|
326
|
-
var tmp0_0 = element.
|
|
326
|
+
var tmp0_0 = element.c47_1;
|
|
327
327
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
328
328
|
var destination_0 = ArrayList_init_$Create$_0();
|
|
329
329
|
var _iterator__ex2g4s_0 = tmp0_0.t();
|
|
330
330
|
while (_iterator__ex2g4s_0.u()) {
|
|
331
331
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
332
|
-
var list = AvroConverter_getInstance().
|
|
332
|
+
var list = AvroConverter_getInstance().f47(element_0, name);
|
|
333
333
|
addAll(destination_0, list);
|
|
334
334
|
}
|
|
335
335
|
var list_0 = destination_0;
|
|
@@ -338,7 +338,7 @@ protoOf(AvroConverter).b47 = function (_this__u8e3s4, name) {
|
|
|
338
338
|
tmp = plus(tmp_0, destination);
|
|
339
339
|
} else {
|
|
340
340
|
if (_this__u8e3s4 instanceof ArrayType) {
|
|
341
|
-
tmp = this.
|
|
341
|
+
tmp = this.f47(_this__u8e3s4.a47_1, name);
|
|
342
342
|
} else {
|
|
343
343
|
if (_this__u8e3s4 instanceof EnumType) {
|
|
344
344
|
tmp = listOf(toEnum(this, _this__u8e3s4));
|
|
@@ -347,7 +347,7 @@ protoOf(AvroConverter).b47 = function (_this__u8e3s4, name) {
|
|
|
347
347
|
tmp = emptyList();
|
|
348
348
|
} else {
|
|
349
349
|
if (_this__u8e3s4 instanceof MapType) {
|
|
350
|
-
tmp = this.
|
|
350
|
+
tmp = this.f47(_this__u8e3s4.l46_1, name);
|
|
351
351
|
} else {
|
|
352
352
|
if (_this__u8e3s4 instanceof UnionType) {
|
|
353
353
|
tmp = listOf(toUnion(this, _this__u8e3s4, name));
|
|
@@ -362,9 +362,9 @@ protoOf(AvroConverter).b47 = function (_this__u8e3s4, name) {
|
|
|
362
362
|
}
|
|
363
363
|
return tmp;
|
|
364
364
|
};
|
|
365
|
-
protoOf(AvroConverter).
|
|
365
|
+
protoOf(AvroConverter).g47 = function (_this__u8e3s4, name, $super) {
|
|
366
366
|
name = name === VOID ? '' : name;
|
|
367
|
-
return $super === VOID ? this.
|
|
367
|
+
return $super === VOID ? this.f47(_this__u8e3s4, name) : $super.f47.call(this, _this__u8e3s4, name);
|
|
368
368
|
};
|
|
369
369
|
var AvroConverter_instance;
|
|
370
370
|
function AvroConverter_getInstance() {
|
|
@@ -392,10 +392,10 @@ function findType($this, _this__u8e3s4, name) {
|
|
|
392
392
|
}
|
|
393
393
|
function AvroJsonEmitter() {
|
|
394
394
|
AvroJsonEmitter_instance = this;
|
|
395
|
-
this.
|
|
395
|
+
this.h47_1 = FileExtension_JSON_getInstance();
|
|
396
396
|
}
|
|
397
397
|
protoOf(AvroJsonEmitter).iq = function () {
|
|
398
|
-
return this.
|
|
398
|
+
return this.h47_1;
|
|
399
399
|
};
|
|
400
400
|
protoOf(AvroJsonEmitter).sn = function (ast, logger) {
|
|
401
401
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
@@ -408,7 +408,7 @@ protoOf(AvroJsonEmitter).sn = function (ast, logger) {
|
|
|
408
408
|
while (_iterator__ex2g4s.u()) {
|
|
409
409
|
var item = _iterator__ex2g4s.v();
|
|
410
410
|
logger.xq('Emitting Nodes from ' + item.gq_1.hn_1 + ' ');
|
|
411
|
-
var tmp$ret$0 = AvroJsonEmitter_getInstance().
|
|
411
|
+
var tmp$ret$0 = AvroJsonEmitter_getInstance().i47(item);
|
|
412
412
|
destination.x(tmp$ret$0);
|
|
413
413
|
}
|
|
414
414
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
@@ -423,11 +423,11 @@ protoOf(AvroJsonEmitter).sn = function (ast, logger) {
|
|
|
423
423
|
// Inline function 'kotlinx.serialization.encodeToString' call
|
|
424
424
|
var this_4 = Default_getInstance();
|
|
425
425
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
426
|
-
var this_5 = this_4.
|
|
426
|
+
var this_5 = this_4.n23();
|
|
427
427
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
428
428
|
var this_6 = serializer(this_5, createKType(getKClass(KtList), arrayOf([createInvariantKTypeProjection(createKType(getKClass(Type_0), arrayOf([]), false))]), false));
|
|
429
429
|
var tmp$ret$5 = isInterface(this_6, KSerializer) ? this_6 : THROW_CCE();
|
|
430
|
-
var tmp$ret$7 = this_4.
|
|
430
|
+
var tmp$ret$7 = this_4.s2k(tmp$ret$5, item_0);
|
|
431
431
|
destination_0.x(tmp$ret$7);
|
|
432
432
|
}
|
|
433
433
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
@@ -444,10 +444,10 @@ protoOf(AvroJsonEmitter).sn = function (ast, logger) {
|
|
|
444
444
|
}
|
|
445
445
|
return _NonEmptyList___init__impl__fxd0xp(destination_1);
|
|
446
446
|
};
|
|
447
|
-
protoOf(AvroJsonEmitter).
|
|
447
|
+
protoOf(AvroJsonEmitter).j47 = function (_this__u8e3s4) {
|
|
448
448
|
return new EnumType('enum', _this__u8e3s4.lr_1.l1(), VOID, toList(_this__u8e3s4.mr_1));
|
|
449
449
|
};
|
|
450
|
-
protoOf(AvroJsonEmitter).
|
|
450
|
+
protoOf(AvroJsonEmitter).k47 = function (_this__u8e3s4) {
|
|
451
451
|
var tmp = _this__u8e3s4.uo_1.l1();
|
|
452
452
|
// Inline function 'kotlin.collections.map' call
|
|
453
453
|
var this_0 = _this__u8e3s4.vo_1;
|
|
@@ -461,13 +461,13 @@ protoOf(AvroJsonEmitter).g47 = function (_this__u8e3s4) {
|
|
|
461
461
|
}
|
|
462
462
|
return new UnionType(tmp, TypeList_init_$Create$(destination));
|
|
463
463
|
};
|
|
464
|
-
protoOf(AvroJsonEmitter).
|
|
464
|
+
protoOf(AvroJsonEmitter).l47 = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
465
465
|
var tmp;
|
|
466
466
|
if (_this__u8e3s4 instanceof Dict) {
|
|
467
|
-
tmp = new MapType('map', this.
|
|
467
|
+
tmp = new MapType('map', this.l47(_this__u8e3s4.go_1, module_0, hasEmitted));
|
|
468
468
|
} else {
|
|
469
469
|
if (_this__u8e3s4 instanceof Iterable) {
|
|
470
|
-
tmp = new ArrayType('array', this.
|
|
470
|
+
tmp = new ArrayType('array', this.l47(_this__u8e3s4.do_1, module_0, hasEmitted));
|
|
471
471
|
} else {
|
|
472
472
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
473
473
|
var type = _this__u8e3s4.tu_1;
|
|
@@ -531,7 +531,7 @@ protoOf(AvroJsonEmitter).h47 = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
|
531
531
|
} else {
|
|
532
532
|
// Inline function 'kotlin.also' call
|
|
533
533
|
hasEmitted.x(def.zo_1.l1());
|
|
534
|
-
tmp_4 = this.
|
|
534
|
+
tmp_4 = this.m47(def, module_0, hasEmitted);
|
|
535
535
|
}
|
|
536
536
|
tmp_3 = tmp_4;
|
|
537
537
|
} else {
|
|
@@ -562,17 +562,17 @@ protoOf(AvroJsonEmitter).h47 = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
|
562
562
|
}
|
|
563
563
|
return tmp;
|
|
564
564
|
};
|
|
565
|
-
protoOf(AvroJsonEmitter).
|
|
565
|
+
protoOf(AvroJsonEmitter).n47 = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
566
566
|
var ref = _this__u8e3s4.fp_1;
|
|
567
567
|
var tmp;
|
|
568
568
|
if (ref instanceof Iterable) {
|
|
569
|
-
tmp = new ArrayType('array', this.
|
|
569
|
+
tmp = new ArrayType('array', this.l47(ref.do_1, module_0, hasEmitted));
|
|
570
570
|
} else {
|
|
571
|
-
tmp = this.
|
|
571
|
+
tmp = this.l47(ref, module_0, hasEmitted);
|
|
572
572
|
}
|
|
573
573
|
return tmp;
|
|
574
574
|
};
|
|
575
|
-
protoOf(AvroJsonEmitter).
|
|
575
|
+
protoOf(AvroJsonEmitter).m47 = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
576
576
|
var tmp0_name = _this__u8e3s4.zo_1.l1();
|
|
577
577
|
// Inline function 'kotlin.collections.map' call
|
|
578
578
|
var this_0 = _this__u8e3s4.ap_1.wo_1;
|
|
@@ -584,16 +584,16 @@ protoOf(AvroJsonEmitter).i47 = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
|
584
584
|
var tmp = item.ep_1.l1();
|
|
585
585
|
var tmp_0;
|
|
586
586
|
if (item.fp_1.hu()) {
|
|
587
|
-
tmp_0 = new TypeList([new SimpleType('null'), AvroJsonEmitter_getInstance().
|
|
587
|
+
tmp_0 = new TypeList([new SimpleType('null'), AvroJsonEmitter_getInstance().n47(item, module_0, hasEmitted)]);
|
|
588
588
|
} else {
|
|
589
|
-
tmp_0 = new TypeList([AvroJsonEmitter_getInstance().
|
|
589
|
+
tmp_0 = new TypeList([AvroJsonEmitter_getInstance().n47(item, module_0, hasEmitted)]);
|
|
590
590
|
}
|
|
591
591
|
var tmp$ret$0 = new Field_0(tmp, tmp_0);
|
|
592
592
|
destination.x(tmp$ret$0);
|
|
593
593
|
}
|
|
594
594
|
return new RecordType('record', tmp0_name, VOID, destination);
|
|
595
595
|
};
|
|
596
|
-
protoOf(AvroJsonEmitter).
|
|
596
|
+
protoOf(AvroJsonEmitter).i47 = function (module_0) {
|
|
597
597
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
598
598
|
var hasEmitted = ArrayList_init_$Create$_0();
|
|
599
599
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
@@ -606,13 +606,13 @@ protoOf(AvroJsonEmitter).e47 = function (module_0) {
|
|
|
606
606
|
var element = _iterator__ex2g4s.v();
|
|
607
607
|
var tmp;
|
|
608
608
|
if (element instanceof Type) {
|
|
609
|
-
tmp = AvroJsonEmitter_getInstance().
|
|
609
|
+
tmp = AvroJsonEmitter_getInstance().m47(element, module_0, hasEmitted);
|
|
610
610
|
} else {
|
|
611
611
|
if (element instanceof Enum) {
|
|
612
|
-
tmp = AvroJsonEmitter_getInstance().
|
|
612
|
+
tmp = AvroJsonEmitter_getInstance().j47(element);
|
|
613
613
|
} else {
|
|
614
614
|
if (element instanceof Union) {
|
|
615
|
-
tmp = AvroJsonEmitter_getInstance().
|
|
615
|
+
tmp = AvroJsonEmitter_getInstance().k47(element);
|
|
616
616
|
} else {
|
|
617
617
|
tmp = null;
|
|
618
618
|
}
|
|
@@ -635,26 +635,26 @@ function AvroJsonEmitter_getInstance() {
|
|
|
635
635
|
return AvroJsonEmitter_instance;
|
|
636
636
|
}
|
|
637
637
|
function AvroJsonParser$parse$lambda($this$Json) {
|
|
638
|
-
$this$Json.
|
|
639
|
-
$this$Json.
|
|
638
|
+
$this$Json.n2l_1 = true;
|
|
639
|
+
$this$Json.o2l_1 = true;
|
|
640
640
|
return Unit_instance;
|
|
641
641
|
}
|
|
642
642
|
function AvroJsonParser() {
|
|
643
643
|
}
|
|
644
|
-
protoOf(AvroJsonParser).
|
|
644
|
+
protoOf(AvroJsonParser).a46 = function (moduleContent, strict) {
|
|
645
645
|
var json = Json(VOID, AvroJsonParser$parse$lambda);
|
|
646
646
|
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
647
647
|
var string = moduleContent.cn_1;
|
|
648
648
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
649
|
-
var this_0 = json.
|
|
649
|
+
var this_0 = json.n23();
|
|
650
650
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
651
651
|
var this_1 = serializer(this_0, createKType(getKClass(Type_0), arrayOf([]), false));
|
|
652
652
|
var tmp$ret$1 = isInterface(this_1, KSerializer) ? this_1 : THROW_CCE();
|
|
653
|
-
var avro = json.
|
|
654
|
-
var tmp = AvroConverter_getInstance().
|
|
653
|
+
var avro = json.t2k(tmp$ret$1, string);
|
|
654
|
+
var tmp = AvroConverter_getInstance().g47(avro);
|
|
655
655
|
var tmp_0;
|
|
656
656
|
if (avro instanceof RecordType) {
|
|
657
|
-
tmp_0 = new Channel(null, emptyList(), new DefinitionIdentifier(avro.
|
|
657
|
+
tmp_0 = new Channel(null, emptyList(), new DefinitionIdentifier(avro.v46_1), new Custom(avro.v46_1, false));
|
|
658
658
|
} else {
|
|
659
659
|
if (avro instanceof ArrayType) {
|
|
660
660
|
throw new NotImplementedError();
|
|
@@ -707,30 +707,30 @@ function Companion_getInstance() {
|
|
|
707
707
|
function $serializer() {
|
|
708
708
|
$serializer_instance = this;
|
|
709
709
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.Field', this, 4);
|
|
710
|
-
tmp0_serialDesc.
|
|
711
|
-
tmp0_serialDesc.
|
|
712
|
-
tmp0_serialDesc.
|
|
713
|
-
tmp0_serialDesc.
|
|
714
|
-
this.
|
|
715
|
-
}
|
|
716
|
-
protoOf($serializer).
|
|
717
|
-
var tmp0_desc = this.
|
|
718
|
-
var tmp1_output = encoder.
|
|
719
|
-
tmp1_output.
|
|
720
|
-
tmp1_output.
|
|
721
|
-
if (tmp1_output.
|
|
722
|
-
tmp1_output.
|
|
710
|
+
tmp0_serialDesc.m2a('name', false);
|
|
711
|
+
tmp0_serialDesc.m2a('type', false);
|
|
712
|
+
tmp0_serialDesc.m2a('doc', true);
|
|
713
|
+
tmp0_serialDesc.m2a('default', true);
|
|
714
|
+
this.o47_1 = tmp0_serialDesc;
|
|
715
|
+
}
|
|
716
|
+
protoOf($serializer).p47 = function (encoder, value) {
|
|
717
|
+
var tmp0_desc = this.o47_1;
|
|
718
|
+
var tmp1_output = encoder.y22(tmp0_desc);
|
|
719
|
+
tmp1_output.n24(tmp0_desc, 0, value.b47_1);
|
|
720
|
+
tmp1_output.p24(tmp0_desc, 1, TypeListSerializer_getInstance(), value.c47_1);
|
|
721
|
+
if (tmp1_output.v24(tmp0_desc, 2) ? true : !(value.d47_1 == null)) {
|
|
722
|
+
tmp1_output.r24(tmp0_desc, 2, StringSerializer_getInstance(), value.d47_1);
|
|
723
723
|
}
|
|
724
|
-
if (tmp1_output.
|
|
725
|
-
tmp1_output.
|
|
724
|
+
if (tmp1_output.v24(tmp0_desc, 3) ? true : !(value.e47_1 == null)) {
|
|
725
|
+
tmp1_output.r24(tmp0_desc, 3, StringSerializer_getInstance(), value.e47_1);
|
|
726
726
|
}
|
|
727
|
-
tmp1_output.
|
|
727
|
+
tmp1_output.z22(tmp0_desc);
|
|
728
728
|
};
|
|
729
|
-
protoOf($serializer).
|
|
730
|
-
return this.
|
|
729
|
+
protoOf($serializer).z1z = function (encoder, value) {
|
|
730
|
+
return this.p47(encoder, value instanceof Field_0 ? value : THROW_CCE());
|
|
731
731
|
};
|
|
732
|
-
protoOf($serializer).
|
|
733
|
-
var tmp0_desc = this.
|
|
732
|
+
protoOf($serializer).a20 = function (decoder) {
|
|
733
|
+
var tmp0_desc = this.o47_1;
|
|
734
734
|
var tmp1_flag = true;
|
|
735
735
|
var tmp2_index = 0;
|
|
736
736
|
var tmp3_bitMask0 = 0;
|
|
@@ -738,50 +738,50 @@ protoOf($serializer).w1z = function (decoder) {
|
|
|
738
738
|
var tmp5_local1 = null;
|
|
739
739
|
var tmp6_local2 = null;
|
|
740
740
|
var tmp7_local3 = null;
|
|
741
|
-
var tmp8_input = decoder.
|
|
742
|
-
if (tmp8_input.
|
|
743
|
-
tmp4_local0 = tmp8_input.
|
|
741
|
+
var tmp8_input = decoder.y22(tmp0_desc);
|
|
742
|
+
if (tmp8_input.o23()) {
|
|
743
|
+
tmp4_local0 = tmp8_input.i23(tmp0_desc, 0);
|
|
744
744
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
745
|
-
tmp5_local1 = tmp8_input.
|
|
745
|
+
tmp5_local1 = tmp8_input.k23(tmp0_desc, 1, TypeListSerializer_getInstance(), tmp5_local1);
|
|
746
746
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
747
|
-
tmp6_local2 = tmp8_input.
|
|
747
|
+
tmp6_local2 = tmp8_input.m23(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
748
748
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
749
|
-
tmp7_local3 = tmp8_input.
|
|
749
|
+
tmp7_local3 = tmp8_input.m23(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
|
|
750
750
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
751
751
|
} else
|
|
752
752
|
while (tmp1_flag) {
|
|
753
|
-
tmp2_index = tmp8_input.
|
|
753
|
+
tmp2_index = tmp8_input.p23(tmp0_desc);
|
|
754
754
|
switch (tmp2_index) {
|
|
755
755
|
case -1:
|
|
756
756
|
tmp1_flag = false;
|
|
757
757
|
break;
|
|
758
758
|
case 0:
|
|
759
|
-
tmp4_local0 = tmp8_input.
|
|
759
|
+
tmp4_local0 = tmp8_input.i23(tmp0_desc, 0);
|
|
760
760
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
761
761
|
break;
|
|
762
762
|
case 1:
|
|
763
|
-
tmp5_local1 = tmp8_input.
|
|
763
|
+
tmp5_local1 = tmp8_input.k23(tmp0_desc, 1, TypeListSerializer_getInstance(), tmp5_local1);
|
|
764
764
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
765
765
|
break;
|
|
766
766
|
case 2:
|
|
767
|
-
tmp6_local2 = tmp8_input.
|
|
767
|
+
tmp6_local2 = tmp8_input.m23(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
768
768
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
769
769
|
break;
|
|
770
770
|
case 3:
|
|
771
|
-
tmp7_local3 = tmp8_input.
|
|
771
|
+
tmp7_local3 = tmp8_input.m23(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
|
|
772
772
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
773
773
|
break;
|
|
774
774
|
default:
|
|
775
775
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
776
776
|
}
|
|
777
777
|
}
|
|
778
|
-
tmp8_input.
|
|
778
|
+
tmp8_input.z22(tmp0_desc);
|
|
779
779
|
return Field_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
780
780
|
};
|
|
781
|
-
protoOf($serializer).
|
|
782
|
-
return this.
|
|
781
|
+
protoOf($serializer).y1z = function () {
|
|
782
|
+
return this.o47_1;
|
|
783
783
|
};
|
|
784
|
-
protoOf($serializer).
|
|
784
|
+
protoOf($serializer).b2b = function () {
|
|
785
785
|
// Inline function 'kotlin.arrayOf' call
|
|
786
786
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
787
787
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -795,18 +795,18 @@ function $serializer_getInstance() {
|
|
|
795
795
|
}
|
|
796
796
|
function Field_init_$Init$(seen0, name, type, doc, default_0, serializationConstructorMarker, $this) {
|
|
797
797
|
if (!(3 === (3 & seen0))) {
|
|
798
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance().
|
|
798
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance().o47_1);
|
|
799
799
|
}
|
|
800
|
-
$this.
|
|
801
|
-
$this.
|
|
800
|
+
$this.b47_1 = name;
|
|
801
|
+
$this.c47_1 = type;
|
|
802
802
|
if (0 === (seen0 & 4))
|
|
803
|
-
$this.
|
|
803
|
+
$this.d47_1 = null;
|
|
804
804
|
else
|
|
805
|
-
$this.
|
|
805
|
+
$this.d47_1 = doc;
|
|
806
806
|
if (0 === (seen0 & 8))
|
|
807
|
-
$this.
|
|
807
|
+
$this.e47_1 = null;
|
|
808
808
|
else
|
|
809
|
-
$this.
|
|
809
|
+
$this.e47_1 = default_0;
|
|
810
810
|
return $this;
|
|
811
811
|
}
|
|
812
812
|
function Field_init_$Create$(seen0, name, type, doc, default_0, serializationConstructorMarker) {
|
|
@@ -829,11 +829,11 @@ function Companion_getInstance_0() {
|
|
|
829
829
|
}
|
|
830
830
|
function Companion_1() {
|
|
831
831
|
}
|
|
832
|
-
protoOf(Companion_1).
|
|
832
|
+
protoOf(Companion_1).z2m = function () {
|
|
833
833
|
return TypeSerializer_getInstance();
|
|
834
834
|
};
|
|
835
|
-
protoOf(Companion_1).
|
|
836
|
-
return this.
|
|
835
|
+
protoOf(Companion_1).m2b = function (typeParamsSerializers) {
|
|
836
|
+
return this.z2m();
|
|
837
837
|
};
|
|
838
838
|
var Companion_instance_1;
|
|
839
839
|
function Companion_getInstance_1() {
|
|
@@ -848,50 +848,50 @@ function Companion_getInstance_2() {
|
|
|
848
848
|
function $serializer_0() {
|
|
849
849
|
$serializer_instance_0 = this;
|
|
850
850
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.SimpleType', this, 1);
|
|
851
|
-
tmp0_serialDesc.
|
|
852
|
-
this.
|
|
851
|
+
tmp0_serialDesc.m2a('value', false);
|
|
852
|
+
this.q47_1 = tmp0_serialDesc;
|
|
853
853
|
}
|
|
854
|
-
protoOf($serializer_0).
|
|
855
|
-
var tmp0_desc = this.
|
|
856
|
-
var tmp1_output = encoder.
|
|
857
|
-
tmp1_output.
|
|
858
|
-
tmp1_output.
|
|
854
|
+
protoOf($serializer_0).r47 = function (encoder, value) {
|
|
855
|
+
var tmp0_desc = this.q47_1;
|
|
856
|
+
var tmp1_output = encoder.y22(tmp0_desc);
|
|
857
|
+
tmp1_output.n24(tmp0_desc, 0, value.h46_1);
|
|
858
|
+
tmp1_output.z22(tmp0_desc);
|
|
859
859
|
};
|
|
860
|
-
protoOf($serializer_0).
|
|
861
|
-
return this.
|
|
860
|
+
protoOf($serializer_0).z1z = function (encoder, value) {
|
|
861
|
+
return this.r47(encoder, value instanceof SimpleType ? value : THROW_CCE());
|
|
862
862
|
};
|
|
863
|
-
protoOf($serializer_0).
|
|
864
|
-
var tmp0_desc = this.
|
|
863
|
+
protoOf($serializer_0).a20 = function (decoder) {
|
|
864
|
+
var tmp0_desc = this.q47_1;
|
|
865
865
|
var tmp1_flag = true;
|
|
866
866
|
var tmp2_index = 0;
|
|
867
867
|
var tmp3_bitMask0 = 0;
|
|
868
868
|
var tmp4_local0 = null;
|
|
869
|
-
var tmp5_input = decoder.
|
|
870
|
-
if (tmp5_input.
|
|
871
|
-
tmp4_local0 = tmp5_input.
|
|
869
|
+
var tmp5_input = decoder.y22(tmp0_desc);
|
|
870
|
+
if (tmp5_input.o23()) {
|
|
871
|
+
tmp4_local0 = tmp5_input.i23(tmp0_desc, 0);
|
|
872
872
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
873
873
|
} else
|
|
874
874
|
while (tmp1_flag) {
|
|
875
|
-
tmp2_index = tmp5_input.
|
|
875
|
+
tmp2_index = tmp5_input.p23(tmp0_desc);
|
|
876
876
|
switch (tmp2_index) {
|
|
877
877
|
case -1:
|
|
878
878
|
tmp1_flag = false;
|
|
879
879
|
break;
|
|
880
880
|
case 0:
|
|
881
|
-
tmp4_local0 = tmp5_input.
|
|
881
|
+
tmp4_local0 = tmp5_input.i23(tmp0_desc, 0);
|
|
882
882
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
883
883
|
break;
|
|
884
884
|
default:
|
|
885
885
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
886
886
|
}
|
|
887
887
|
}
|
|
888
|
-
tmp5_input.
|
|
888
|
+
tmp5_input.z22(tmp0_desc);
|
|
889
889
|
return SimpleType_init_$Create$(tmp3_bitMask0, tmp4_local0, null);
|
|
890
890
|
};
|
|
891
|
-
protoOf($serializer_0).
|
|
892
|
-
return this.
|
|
891
|
+
protoOf($serializer_0).y1z = function () {
|
|
892
|
+
return this.q47_1;
|
|
893
893
|
};
|
|
894
|
-
protoOf($serializer_0).
|
|
894
|
+
protoOf($serializer_0).b2b = function () {
|
|
895
895
|
// Inline function 'kotlin.arrayOf' call
|
|
896
896
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
897
897
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -905,9 +905,9 @@ function $serializer_getInstance_0() {
|
|
|
905
905
|
}
|
|
906
906
|
function SimpleType_init_$Init$(seen0, value, serializationConstructorMarker, $this) {
|
|
907
907
|
if (!(1 === (1 & seen0))) {
|
|
908
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_0().
|
|
908
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_0().q47_1);
|
|
909
909
|
}
|
|
910
|
-
$this.
|
|
910
|
+
$this.h46_1 = value;
|
|
911
911
|
return $this;
|
|
912
912
|
}
|
|
913
913
|
function SimpleType_init_$Create$(seen0, value, serializationConstructorMarker) {
|
|
@@ -923,9 +923,9 @@ function Companion_3() {
|
|
|
923
923
|
// Inline function 'kotlin.arrayOf' call
|
|
924
924
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
925
925
|
// Inline function 'kotlin.js.asDynamic' call
|
|
926
|
-
tmp.
|
|
926
|
+
tmp.s47_1 = [null, null, null, lazy(tmp_0, AvroModel$RecordType$Companion$$childSerializers$_anonymous__y3fmeq), null];
|
|
927
927
|
}
|
|
928
|
-
protoOf(Companion_3).
|
|
928
|
+
protoOf(Companion_3).z2m = function () {
|
|
929
929
|
return $serializer_getInstance_1();
|
|
930
930
|
};
|
|
931
931
|
var Companion_instance_3;
|
|
@@ -937,33 +937,33 @@ function Companion_getInstance_3() {
|
|
|
937
937
|
function $serializer_1() {
|
|
938
938
|
$serializer_instance_1 = this;
|
|
939
939
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.RecordType', this, 5);
|
|
940
|
-
tmp0_serialDesc.
|
|
941
|
-
tmp0_serialDesc.
|
|
942
|
-
tmp0_serialDesc.
|
|
943
|
-
tmp0_serialDesc.
|
|
944
|
-
tmp0_serialDesc.
|
|
945
|
-
this.
|
|
946
|
-
}
|
|
947
|
-
protoOf($serializer_1).
|
|
948
|
-
var tmp0_desc = this.
|
|
949
|
-
var tmp1_output = encoder.
|
|
950
|
-
var tmp2_cached = Companion_getInstance_3().
|
|
951
|
-
tmp1_output.
|
|
952
|
-
tmp1_output.
|
|
953
|
-
if (tmp1_output.
|
|
954
|
-
tmp1_output.
|
|
940
|
+
tmp0_serialDesc.m2a('type', false);
|
|
941
|
+
tmp0_serialDesc.m2a('name', false);
|
|
942
|
+
tmp0_serialDesc.m2a('namespace', true);
|
|
943
|
+
tmp0_serialDesc.m2a('fields', false);
|
|
944
|
+
tmp0_serialDesc.m2a('doc', true);
|
|
945
|
+
this.t47_1 = tmp0_serialDesc;
|
|
946
|
+
}
|
|
947
|
+
protoOf($serializer_1).u47 = function (encoder, value) {
|
|
948
|
+
var tmp0_desc = this.t47_1;
|
|
949
|
+
var tmp1_output = encoder.y22(tmp0_desc);
|
|
950
|
+
var tmp2_cached = Companion_getInstance_3().s47_1;
|
|
951
|
+
tmp1_output.n24(tmp0_desc, 0, value.u46_1);
|
|
952
|
+
tmp1_output.n24(tmp0_desc, 1, value.v46_1);
|
|
953
|
+
if (tmp1_output.v24(tmp0_desc, 2) ? true : !(value.w46_1 == null)) {
|
|
954
|
+
tmp1_output.r24(tmp0_desc, 2, StringSerializer_getInstance(), value.w46_1);
|
|
955
955
|
}
|
|
956
|
-
tmp1_output.
|
|
957
|
-
if (tmp1_output.
|
|
958
|
-
tmp1_output.
|
|
956
|
+
tmp1_output.p24(tmp0_desc, 3, tmp2_cached[3].l1(), value.x46_1);
|
|
957
|
+
if (tmp1_output.v24(tmp0_desc, 4) ? true : !(value.y46_1 == null)) {
|
|
958
|
+
tmp1_output.r24(tmp0_desc, 4, StringSerializer_getInstance(), value.y46_1);
|
|
959
959
|
}
|
|
960
|
-
tmp1_output.
|
|
960
|
+
tmp1_output.z22(tmp0_desc);
|
|
961
961
|
};
|
|
962
|
-
protoOf($serializer_1).
|
|
963
|
-
return this.
|
|
962
|
+
protoOf($serializer_1).z1z = function (encoder, value) {
|
|
963
|
+
return this.u47(encoder, value instanceof RecordType ? value : THROW_CCE());
|
|
964
964
|
};
|
|
965
|
-
protoOf($serializer_1).
|
|
966
|
-
var tmp0_desc = this.
|
|
965
|
+
protoOf($serializer_1).a20 = function (decoder) {
|
|
966
|
+
var tmp0_desc = this.t47_1;
|
|
967
967
|
var tmp1_flag = true;
|
|
968
968
|
var tmp2_index = 0;
|
|
969
969
|
var tmp3_bitMask0 = 0;
|
|
@@ -972,58 +972,58 @@ protoOf($serializer_1).w1z = function (decoder) {
|
|
|
972
972
|
var tmp6_local2 = null;
|
|
973
973
|
var tmp7_local3 = null;
|
|
974
974
|
var tmp8_local4 = null;
|
|
975
|
-
var tmp9_input = decoder.
|
|
976
|
-
var tmp10_cached = Companion_getInstance_3().
|
|
977
|
-
if (tmp9_input.
|
|
978
|
-
tmp4_local0 = tmp9_input.
|
|
975
|
+
var tmp9_input = decoder.y22(tmp0_desc);
|
|
976
|
+
var tmp10_cached = Companion_getInstance_3().s47_1;
|
|
977
|
+
if (tmp9_input.o23()) {
|
|
978
|
+
tmp4_local0 = tmp9_input.i23(tmp0_desc, 0);
|
|
979
979
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
980
|
-
tmp5_local1 = tmp9_input.
|
|
980
|
+
tmp5_local1 = tmp9_input.i23(tmp0_desc, 1);
|
|
981
981
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
982
|
-
tmp6_local2 = tmp9_input.
|
|
982
|
+
tmp6_local2 = tmp9_input.m23(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
983
983
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
984
|
-
tmp7_local3 = tmp9_input.
|
|
984
|
+
tmp7_local3 = tmp9_input.k23(tmp0_desc, 3, tmp10_cached[3].l1(), tmp7_local3);
|
|
985
985
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
986
|
-
tmp8_local4 = tmp9_input.
|
|
986
|
+
tmp8_local4 = tmp9_input.m23(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
|
|
987
987
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
988
988
|
} else
|
|
989
989
|
while (tmp1_flag) {
|
|
990
|
-
tmp2_index = tmp9_input.
|
|
990
|
+
tmp2_index = tmp9_input.p23(tmp0_desc);
|
|
991
991
|
switch (tmp2_index) {
|
|
992
992
|
case -1:
|
|
993
993
|
tmp1_flag = false;
|
|
994
994
|
break;
|
|
995
995
|
case 0:
|
|
996
|
-
tmp4_local0 = tmp9_input.
|
|
996
|
+
tmp4_local0 = tmp9_input.i23(tmp0_desc, 0);
|
|
997
997
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
998
998
|
break;
|
|
999
999
|
case 1:
|
|
1000
|
-
tmp5_local1 = tmp9_input.
|
|
1000
|
+
tmp5_local1 = tmp9_input.i23(tmp0_desc, 1);
|
|
1001
1001
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1002
1002
|
break;
|
|
1003
1003
|
case 2:
|
|
1004
|
-
tmp6_local2 = tmp9_input.
|
|
1004
|
+
tmp6_local2 = tmp9_input.m23(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1005
1005
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1006
1006
|
break;
|
|
1007
1007
|
case 3:
|
|
1008
|
-
tmp7_local3 = tmp9_input.
|
|
1008
|
+
tmp7_local3 = tmp9_input.k23(tmp0_desc, 3, tmp10_cached[3].l1(), tmp7_local3);
|
|
1009
1009
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1010
1010
|
break;
|
|
1011
1011
|
case 4:
|
|
1012
|
-
tmp8_local4 = tmp9_input.
|
|
1012
|
+
tmp8_local4 = tmp9_input.m23(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
|
|
1013
1013
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1014
1014
|
break;
|
|
1015
1015
|
default:
|
|
1016
1016
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1017
1017
|
}
|
|
1018
1018
|
}
|
|
1019
|
-
tmp9_input.
|
|
1019
|
+
tmp9_input.z22(tmp0_desc);
|
|
1020
1020
|
return RecordType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null);
|
|
1021
1021
|
};
|
|
1022
|
-
protoOf($serializer_1).
|
|
1023
|
-
return this.
|
|
1022
|
+
protoOf($serializer_1).y1z = function () {
|
|
1023
|
+
return this.t47_1;
|
|
1024
1024
|
};
|
|
1025
|
-
protoOf($serializer_1).
|
|
1026
|
-
var tmp0_cached = Companion_getInstance_3().
|
|
1025
|
+
protoOf($serializer_1).b2b = function () {
|
|
1026
|
+
var tmp0_cached = Companion_getInstance_3().s47_1;
|
|
1027
1027
|
// Inline function 'kotlin.arrayOf' call
|
|
1028
1028
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1029
1029
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1037,19 +1037,19 @@ function $serializer_getInstance_1() {
|
|
|
1037
1037
|
}
|
|
1038
1038
|
function RecordType_init_$Init$(seen0, type, name, namespace, fields, doc, serializationConstructorMarker, $this) {
|
|
1039
1039
|
if (!(11 === (11 & seen0))) {
|
|
1040
|
-
throwMissingFieldException(seen0, 11, $serializer_getInstance_1().
|
|
1040
|
+
throwMissingFieldException(seen0, 11, $serializer_getInstance_1().t47_1);
|
|
1041
1041
|
}
|
|
1042
|
-
$this.
|
|
1043
|
-
$this.
|
|
1042
|
+
$this.u46_1 = type;
|
|
1043
|
+
$this.v46_1 = name;
|
|
1044
1044
|
if (0 === (seen0 & 4))
|
|
1045
|
-
$this.
|
|
1045
|
+
$this.w46_1 = null;
|
|
1046
1046
|
else
|
|
1047
|
-
$this.
|
|
1048
|
-
$this.
|
|
1047
|
+
$this.w46_1 = namespace;
|
|
1048
|
+
$this.x46_1 = fields;
|
|
1049
1049
|
if (0 === (seen0 & 16))
|
|
1050
|
-
$this.
|
|
1050
|
+
$this.y46_1 = null;
|
|
1051
1051
|
else
|
|
1052
|
-
$this.
|
|
1052
|
+
$this.y46_1 = doc;
|
|
1053
1053
|
return $this;
|
|
1054
1054
|
}
|
|
1055
1055
|
function RecordType_init_$Create$(seen0, type, name, namespace, fields, doc, serializationConstructorMarker) {
|
|
@@ -1057,7 +1057,7 @@ function RecordType_init_$Create$(seen0, type, name, namespace, fields, doc, ser
|
|
|
1057
1057
|
}
|
|
1058
1058
|
function Companion_4() {
|
|
1059
1059
|
}
|
|
1060
|
-
protoOf(Companion_4).
|
|
1060
|
+
protoOf(Companion_4).z2m = function () {
|
|
1061
1061
|
return $serializer_getInstance_2();
|
|
1062
1062
|
};
|
|
1063
1063
|
var Companion_instance_4;
|
|
@@ -1067,59 +1067,59 @@ function Companion_getInstance_4() {
|
|
|
1067
1067
|
function $serializer_2() {
|
|
1068
1068
|
$serializer_instance_2 = this;
|
|
1069
1069
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.ArrayType', this, 2);
|
|
1070
|
-
tmp0_serialDesc.
|
|
1071
|
-
tmp0_serialDesc.
|
|
1072
|
-
this.
|
|
1073
|
-
}
|
|
1074
|
-
protoOf($serializer_2).
|
|
1075
|
-
var tmp0_desc = this.
|
|
1076
|
-
var tmp1_output = encoder.
|
|
1077
|
-
tmp1_output.
|
|
1078
|
-
tmp1_output.
|
|
1079
|
-
tmp1_output.
|
|
1080
|
-
};
|
|
1081
|
-
protoOf($serializer_2).
|
|
1082
|
-
return this.
|
|
1083
|
-
};
|
|
1084
|
-
protoOf($serializer_2).
|
|
1085
|
-
var tmp0_desc = this.
|
|
1070
|
+
tmp0_serialDesc.m2a('type', false);
|
|
1071
|
+
tmp0_serialDesc.m2a('items', false);
|
|
1072
|
+
this.v47_1 = tmp0_serialDesc;
|
|
1073
|
+
}
|
|
1074
|
+
protoOf($serializer_2).w47 = function (encoder, value) {
|
|
1075
|
+
var tmp0_desc = this.v47_1;
|
|
1076
|
+
var tmp1_output = encoder.y22(tmp0_desc);
|
|
1077
|
+
tmp1_output.n24(tmp0_desc, 0, value.z46_1);
|
|
1078
|
+
tmp1_output.p24(tmp0_desc, 1, TypeSerializer_getInstance(), value.a47_1);
|
|
1079
|
+
tmp1_output.z22(tmp0_desc);
|
|
1080
|
+
};
|
|
1081
|
+
protoOf($serializer_2).z1z = function (encoder, value) {
|
|
1082
|
+
return this.w47(encoder, value instanceof ArrayType ? value : THROW_CCE());
|
|
1083
|
+
};
|
|
1084
|
+
protoOf($serializer_2).a20 = function (decoder) {
|
|
1085
|
+
var tmp0_desc = this.v47_1;
|
|
1086
1086
|
var tmp1_flag = true;
|
|
1087
1087
|
var tmp2_index = 0;
|
|
1088
1088
|
var tmp3_bitMask0 = 0;
|
|
1089
1089
|
var tmp4_local0 = null;
|
|
1090
1090
|
var tmp5_local1 = null;
|
|
1091
|
-
var tmp6_input = decoder.
|
|
1092
|
-
if (tmp6_input.
|
|
1093
|
-
tmp4_local0 = tmp6_input.
|
|
1091
|
+
var tmp6_input = decoder.y22(tmp0_desc);
|
|
1092
|
+
if (tmp6_input.o23()) {
|
|
1093
|
+
tmp4_local0 = tmp6_input.i23(tmp0_desc, 0);
|
|
1094
1094
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1095
|
-
tmp5_local1 = tmp6_input.
|
|
1095
|
+
tmp5_local1 = tmp6_input.k23(tmp0_desc, 1, TypeSerializer_getInstance(), tmp5_local1);
|
|
1096
1096
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1097
1097
|
} else
|
|
1098
1098
|
while (tmp1_flag) {
|
|
1099
|
-
tmp2_index = tmp6_input.
|
|
1099
|
+
tmp2_index = tmp6_input.p23(tmp0_desc);
|
|
1100
1100
|
switch (tmp2_index) {
|
|
1101
1101
|
case -1:
|
|
1102
1102
|
tmp1_flag = false;
|
|
1103
1103
|
break;
|
|
1104
1104
|
case 0:
|
|
1105
|
-
tmp4_local0 = tmp6_input.
|
|
1105
|
+
tmp4_local0 = tmp6_input.i23(tmp0_desc, 0);
|
|
1106
1106
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1107
1107
|
break;
|
|
1108
1108
|
case 1:
|
|
1109
|
-
tmp5_local1 = tmp6_input.
|
|
1109
|
+
tmp5_local1 = tmp6_input.k23(tmp0_desc, 1, TypeSerializer_getInstance(), tmp5_local1);
|
|
1110
1110
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1111
1111
|
break;
|
|
1112
1112
|
default:
|
|
1113
1113
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1114
1114
|
}
|
|
1115
1115
|
}
|
|
1116
|
-
tmp6_input.
|
|
1116
|
+
tmp6_input.z22(tmp0_desc);
|
|
1117
1117
|
return ArrayType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1118
1118
|
};
|
|
1119
|
-
protoOf($serializer_2).
|
|
1120
|
-
return this.
|
|
1119
|
+
protoOf($serializer_2).y1z = function () {
|
|
1120
|
+
return this.v47_1;
|
|
1121
1121
|
};
|
|
1122
|
-
protoOf($serializer_2).
|
|
1122
|
+
protoOf($serializer_2).b2b = function () {
|
|
1123
1123
|
// Inline function 'kotlin.arrayOf' call
|
|
1124
1124
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1125
1125
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1133,10 +1133,10 @@ function $serializer_getInstance_2() {
|
|
|
1133
1133
|
}
|
|
1134
1134
|
function ArrayType_init_$Init$(seen0, type, items, serializationConstructorMarker, $this) {
|
|
1135
1135
|
if (!(3 === (3 & seen0))) {
|
|
1136
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().
|
|
1136
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().v47_1);
|
|
1137
1137
|
}
|
|
1138
|
-
$this.
|
|
1139
|
-
$this.
|
|
1138
|
+
$this.z46_1 = type;
|
|
1139
|
+
$this.a47_1 = items;
|
|
1140
1140
|
return $this;
|
|
1141
1141
|
}
|
|
1142
1142
|
function ArrayType_init_$Create$(seen0, type, items, serializationConstructorMarker) {
|
|
@@ -1144,7 +1144,7 @@ function ArrayType_init_$Create$(seen0, type, items, serializationConstructorMar
|
|
|
1144
1144
|
}
|
|
1145
1145
|
function Companion_5() {
|
|
1146
1146
|
}
|
|
1147
|
-
protoOf(Companion_5).
|
|
1147
|
+
protoOf(Companion_5).z2m = function () {
|
|
1148
1148
|
return $serializer_getInstance_3();
|
|
1149
1149
|
};
|
|
1150
1150
|
var Companion_instance_5;
|
|
@@ -1154,59 +1154,59 @@ function Companion_getInstance_5() {
|
|
|
1154
1154
|
function $serializer_3() {
|
|
1155
1155
|
$serializer_instance_3 = this;
|
|
1156
1156
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.MapType', this, 2);
|
|
1157
|
-
tmp0_serialDesc.
|
|
1158
|
-
tmp0_serialDesc.
|
|
1159
|
-
this.
|
|
1160
|
-
}
|
|
1161
|
-
protoOf($serializer_3).
|
|
1162
|
-
var tmp0_desc = this.
|
|
1163
|
-
var tmp1_output = encoder.
|
|
1164
|
-
tmp1_output.
|
|
1165
|
-
tmp1_output.
|
|
1166
|
-
tmp1_output.
|
|
1167
|
-
};
|
|
1168
|
-
protoOf($serializer_3).
|
|
1169
|
-
return this.
|
|
1170
|
-
};
|
|
1171
|
-
protoOf($serializer_3).
|
|
1172
|
-
var tmp0_desc = this.
|
|
1157
|
+
tmp0_serialDesc.m2a('type', false);
|
|
1158
|
+
tmp0_serialDesc.m2a('values', false);
|
|
1159
|
+
this.x47_1 = tmp0_serialDesc;
|
|
1160
|
+
}
|
|
1161
|
+
protoOf($serializer_3).y47 = function (encoder, value) {
|
|
1162
|
+
var tmp0_desc = this.x47_1;
|
|
1163
|
+
var tmp1_output = encoder.y22(tmp0_desc);
|
|
1164
|
+
tmp1_output.n24(tmp0_desc, 0, value.k46_1);
|
|
1165
|
+
tmp1_output.p24(tmp0_desc, 1, TypeSerializer_getInstance(), value.l46_1);
|
|
1166
|
+
tmp1_output.z22(tmp0_desc);
|
|
1167
|
+
};
|
|
1168
|
+
protoOf($serializer_3).z1z = function (encoder, value) {
|
|
1169
|
+
return this.y47(encoder, value instanceof MapType ? value : THROW_CCE());
|
|
1170
|
+
};
|
|
1171
|
+
protoOf($serializer_3).a20 = function (decoder) {
|
|
1172
|
+
var tmp0_desc = this.x47_1;
|
|
1173
1173
|
var tmp1_flag = true;
|
|
1174
1174
|
var tmp2_index = 0;
|
|
1175
1175
|
var tmp3_bitMask0 = 0;
|
|
1176
1176
|
var tmp4_local0 = null;
|
|
1177
1177
|
var tmp5_local1 = null;
|
|
1178
|
-
var tmp6_input = decoder.
|
|
1179
|
-
if (tmp6_input.
|
|
1180
|
-
tmp4_local0 = tmp6_input.
|
|
1178
|
+
var tmp6_input = decoder.y22(tmp0_desc);
|
|
1179
|
+
if (tmp6_input.o23()) {
|
|
1180
|
+
tmp4_local0 = tmp6_input.i23(tmp0_desc, 0);
|
|
1181
1181
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1182
|
-
tmp5_local1 = tmp6_input.
|
|
1182
|
+
tmp5_local1 = tmp6_input.k23(tmp0_desc, 1, TypeSerializer_getInstance(), tmp5_local1);
|
|
1183
1183
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1184
1184
|
} else
|
|
1185
1185
|
while (tmp1_flag) {
|
|
1186
|
-
tmp2_index = tmp6_input.
|
|
1186
|
+
tmp2_index = tmp6_input.p23(tmp0_desc);
|
|
1187
1187
|
switch (tmp2_index) {
|
|
1188
1188
|
case -1:
|
|
1189
1189
|
tmp1_flag = false;
|
|
1190
1190
|
break;
|
|
1191
1191
|
case 0:
|
|
1192
|
-
tmp4_local0 = tmp6_input.
|
|
1192
|
+
tmp4_local0 = tmp6_input.i23(tmp0_desc, 0);
|
|
1193
1193
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1194
1194
|
break;
|
|
1195
1195
|
case 1:
|
|
1196
|
-
tmp5_local1 = tmp6_input.
|
|
1196
|
+
tmp5_local1 = tmp6_input.k23(tmp0_desc, 1, TypeSerializer_getInstance(), tmp5_local1);
|
|
1197
1197
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1198
1198
|
break;
|
|
1199
1199
|
default:
|
|
1200
1200
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1201
1201
|
}
|
|
1202
1202
|
}
|
|
1203
|
-
tmp6_input.
|
|
1203
|
+
tmp6_input.z22(tmp0_desc);
|
|
1204
1204
|
return MapType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1205
1205
|
};
|
|
1206
|
-
protoOf($serializer_3).
|
|
1207
|
-
return this.
|
|
1206
|
+
protoOf($serializer_3).y1z = function () {
|
|
1207
|
+
return this.x47_1;
|
|
1208
1208
|
};
|
|
1209
|
-
protoOf($serializer_3).
|
|
1209
|
+
protoOf($serializer_3).b2b = function () {
|
|
1210
1210
|
// Inline function 'kotlin.arrayOf' call
|
|
1211
1211
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1212
1212
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1220,10 +1220,10 @@ function $serializer_getInstance_3() {
|
|
|
1220
1220
|
}
|
|
1221
1221
|
function MapType_init_$Init$(seen0, type, values, serializationConstructorMarker, $this) {
|
|
1222
1222
|
if (!(3 === (3 & seen0))) {
|
|
1223
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_3().
|
|
1223
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_3().x47_1);
|
|
1224
1224
|
}
|
|
1225
|
-
$this.
|
|
1226
|
-
$this.
|
|
1225
|
+
$this.k46_1 = type;
|
|
1226
|
+
$this.l46_1 = values;
|
|
1227
1227
|
return $this;
|
|
1228
1228
|
}
|
|
1229
1229
|
function MapType_init_$Create$(seen0, type, values, serializationConstructorMarker) {
|
|
@@ -1239,9 +1239,9 @@ function Companion_6() {
|
|
|
1239
1239
|
// Inline function 'kotlin.arrayOf' call
|
|
1240
1240
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1241
1241
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1242
|
-
tmp.
|
|
1242
|
+
tmp.z47_1 = [null, null, null, lazy(tmp_0, AvroModel$EnumType$Companion$$childSerializers$_anonymous__vqfr9a)];
|
|
1243
1243
|
}
|
|
1244
|
-
protoOf(Companion_6).
|
|
1244
|
+
protoOf(Companion_6).z2m = function () {
|
|
1245
1245
|
return $serializer_getInstance_4();
|
|
1246
1246
|
};
|
|
1247
1247
|
var Companion_instance_6;
|
|
@@ -1253,29 +1253,29 @@ function Companion_getInstance_6() {
|
|
|
1253
1253
|
function $serializer_4() {
|
|
1254
1254
|
$serializer_instance_4 = this;
|
|
1255
1255
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.EnumType', this, 4);
|
|
1256
|
-
tmp0_serialDesc.
|
|
1257
|
-
tmp0_serialDesc.
|
|
1258
|
-
tmp0_serialDesc.
|
|
1259
|
-
tmp0_serialDesc.
|
|
1260
|
-
this.
|
|
1261
|
-
}
|
|
1262
|
-
protoOf($serializer_4).
|
|
1263
|
-
var tmp0_desc = this.
|
|
1264
|
-
var tmp1_output = encoder.
|
|
1265
|
-
var tmp2_cached = Companion_getInstance_6().
|
|
1266
|
-
tmp1_output.
|
|
1267
|
-
tmp1_output.
|
|
1268
|
-
if (tmp1_output.
|
|
1269
|
-
tmp1_output.
|
|
1256
|
+
tmp0_serialDesc.m2a('type', false);
|
|
1257
|
+
tmp0_serialDesc.m2a('name', false);
|
|
1258
|
+
tmp0_serialDesc.m2a('doc', true);
|
|
1259
|
+
tmp0_serialDesc.m2a('symbols', false);
|
|
1260
|
+
this.a48_1 = tmp0_serialDesc;
|
|
1261
|
+
}
|
|
1262
|
+
protoOf($serializer_4).b48 = function (encoder, value) {
|
|
1263
|
+
var tmp0_desc = this.a48_1;
|
|
1264
|
+
var tmp1_output = encoder.y22(tmp0_desc);
|
|
1265
|
+
var tmp2_cached = Companion_getInstance_6().z47_1;
|
|
1266
|
+
tmp1_output.n24(tmp0_desc, 0, value.q46_1);
|
|
1267
|
+
tmp1_output.n24(tmp0_desc, 1, value.r46_1);
|
|
1268
|
+
if (tmp1_output.v24(tmp0_desc, 2) ? true : !(value.s46_1 == null)) {
|
|
1269
|
+
tmp1_output.r24(tmp0_desc, 2, StringSerializer_getInstance(), value.s46_1);
|
|
1270
1270
|
}
|
|
1271
|
-
tmp1_output.
|
|
1272
|
-
tmp1_output.
|
|
1271
|
+
tmp1_output.p24(tmp0_desc, 3, tmp2_cached[3].l1(), value.t46_1);
|
|
1272
|
+
tmp1_output.z22(tmp0_desc);
|
|
1273
1273
|
};
|
|
1274
|
-
protoOf($serializer_4).
|
|
1275
|
-
return this.
|
|
1274
|
+
protoOf($serializer_4).z1z = function (encoder, value) {
|
|
1275
|
+
return this.b48(encoder, value instanceof EnumType ? value : THROW_CCE());
|
|
1276
1276
|
};
|
|
1277
|
-
protoOf($serializer_4).
|
|
1278
|
-
var tmp0_desc = this.
|
|
1277
|
+
protoOf($serializer_4).a20 = function (decoder) {
|
|
1278
|
+
var tmp0_desc = this.a48_1;
|
|
1279
1279
|
var tmp1_flag = true;
|
|
1280
1280
|
var tmp2_index = 0;
|
|
1281
1281
|
var tmp3_bitMask0 = 0;
|
|
@@ -1283,52 +1283,52 @@ protoOf($serializer_4).w1z = function (decoder) {
|
|
|
1283
1283
|
var tmp5_local1 = null;
|
|
1284
1284
|
var tmp6_local2 = null;
|
|
1285
1285
|
var tmp7_local3 = null;
|
|
1286
|
-
var tmp8_input = decoder.
|
|
1287
|
-
var tmp9_cached = Companion_getInstance_6().
|
|
1288
|
-
if (tmp8_input.
|
|
1289
|
-
tmp4_local0 = tmp8_input.
|
|
1286
|
+
var tmp8_input = decoder.y22(tmp0_desc);
|
|
1287
|
+
var tmp9_cached = Companion_getInstance_6().z47_1;
|
|
1288
|
+
if (tmp8_input.o23()) {
|
|
1289
|
+
tmp4_local0 = tmp8_input.i23(tmp0_desc, 0);
|
|
1290
1290
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1291
|
-
tmp5_local1 = tmp8_input.
|
|
1291
|
+
tmp5_local1 = tmp8_input.i23(tmp0_desc, 1);
|
|
1292
1292
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1293
|
-
tmp6_local2 = tmp8_input.
|
|
1293
|
+
tmp6_local2 = tmp8_input.m23(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1294
1294
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1295
|
-
tmp7_local3 = tmp8_input.
|
|
1295
|
+
tmp7_local3 = tmp8_input.k23(tmp0_desc, 3, tmp9_cached[3].l1(), tmp7_local3);
|
|
1296
1296
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1297
1297
|
} else
|
|
1298
1298
|
while (tmp1_flag) {
|
|
1299
|
-
tmp2_index = tmp8_input.
|
|
1299
|
+
tmp2_index = tmp8_input.p23(tmp0_desc);
|
|
1300
1300
|
switch (tmp2_index) {
|
|
1301
1301
|
case -1:
|
|
1302
1302
|
tmp1_flag = false;
|
|
1303
1303
|
break;
|
|
1304
1304
|
case 0:
|
|
1305
|
-
tmp4_local0 = tmp8_input.
|
|
1305
|
+
tmp4_local0 = tmp8_input.i23(tmp0_desc, 0);
|
|
1306
1306
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1307
1307
|
break;
|
|
1308
1308
|
case 1:
|
|
1309
|
-
tmp5_local1 = tmp8_input.
|
|
1309
|
+
tmp5_local1 = tmp8_input.i23(tmp0_desc, 1);
|
|
1310
1310
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1311
1311
|
break;
|
|
1312
1312
|
case 2:
|
|
1313
|
-
tmp6_local2 = tmp8_input.
|
|
1313
|
+
tmp6_local2 = tmp8_input.m23(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1314
1314
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1315
1315
|
break;
|
|
1316
1316
|
case 3:
|
|
1317
|
-
tmp7_local3 = tmp8_input.
|
|
1317
|
+
tmp7_local3 = tmp8_input.k23(tmp0_desc, 3, tmp9_cached[3].l1(), tmp7_local3);
|
|
1318
1318
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1319
1319
|
break;
|
|
1320
1320
|
default:
|
|
1321
1321
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1322
1322
|
}
|
|
1323
1323
|
}
|
|
1324
|
-
tmp8_input.
|
|
1324
|
+
tmp8_input.z22(tmp0_desc);
|
|
1325
1325
|
return EnumType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
1326
1326
|
};
|
|
1327
|
-
protoOf($serializer_4).
|
|
1328
|
-
return this.
|
|
1327
|
+
protoOf($serializer_4).y1z = function () {
|
|
1328
|
+
return this.a48_1;
|
|
1329
1329
|
};
|
|
1330
|
-
protoOf($serializer_4).
|
|
1331
|
-
var tmp0_cached = Companion_getInstance_6().
|
|
1330
|
+
protoOf($serializer_4).b2b = function () {
|
|
1331
|
+
var tmp0_cached = Companion_getInstance_6().z47_1;
|
|
1332
1332
|
// Inline function 'kotlin.arrayOf' call
|
|
1333
1333
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1334
1334
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1342,15 +1342,15 @@ function $serializer_getInstance_4() {
|
|
|
1342
1342
|
}
|
|
1343
1343
|
function EnumType_init_$Init$(seen0, type, name, doc, symbols, serializationConstructorMarker, $this) {
|
|
1344
1344
|
if (!(11 === (11 & seen0))) {
|
|
1345
|
-
throwMissingFieldException(seen0, 11, $serializer_getInstance_4().
|
|
1345
|
+
throwMissingFieldException(seen0, 11, $serializer_getInstance_4().a48_1);
|
|
1346
1346
|
}
|
|
1347
|
-
$this.
|
|
1348
|
-
$this.
|
|
1347
|
+
$this.q46_1 = type;
|
|
1348
|
+
$this.r46_1 = name;
|
|
1349
1349
|
if (0 === (seen0 & 4))
|
|
1350
|
-
$this.
|
|
1350
|
+
$this.s46_1 = null;
|
|
1351
1351
|
else
|
|
1352
|
-
$this.
|
|
1353
|
-
$this.
|
|
1352
|
+
$this.s46_1 = doc;
|
|
1353
|
+
$this.t46_1 = symbols;
|
|
1354
1354
|
return $this;
|
|
1355
1355
|
}
|
|
1356
1356
|
function EnumType_init_$Create$(seen0, type, name, doc, symbols, serializationConstructorMarker) {
|
|
@@ -1358,7 +1358,7 @@ function EnumType_init_$Create$(seen0, type, name, doc, symbols, serializationCo
|
|
|
1358
1358
|
}
|
|
1359
1359
|
function Companion_7() {
|
|
1360
1360
|
}
|
|
1361
|
-
protoOf(Companion_7).
|
|
1361
|
+
protoOf(Companion_7).z2m = function () {
|
|
1362
1362
|
return $serializer_getInstance_5();
|
|
1363
1363
|
};
|
|
1364
1364
|
var Companion_instance_7;
|
|
@@ -1368,59 +1368,59 @@ function Companion_getInstance_7() {
|
|
|
1368
1368
|
function $serializer_5() {
|
|
1369
1369
|
$serializer_instance_5 = this;
|
|
1370
1370
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.UnionType', this, 2);
|
|
1371
|
-
tmp0_serialDesc.
|
|
1372
|
-
tmp0_serialDesc.
|
|
1373
|
-
this.
|
|
1374
|
-
}
|
|
1375
|
-
protoOf($serializer_5).
|
|
1376
|
-
var tmp0_desc = this.
|
|
1377
|
-
var tmp1_output = encoder.
|
|
1378
|
-
tmp1_output.
|
|
1379
|
-
tmp1_output.
|
|
1380
|
-
tmp1_output.
|
|
1381
|
-
};
|
|
1382
|
-
protoOf($serializer_5).
|
|
1383
|
-
return this.
|
|
1384
|
-
};
|
|
1385
|
-
protoOf($serializer_5).
|
|
1386
|
-
var tmp0_desc = this.
|
|
1371
|
+
tmp0_serialDesc.m2a('name', false);
|
|
1372
|
+
tmp0_serialDesc.m2a('type', false);
|
|
1373
|
+
this.c48_1 = tmp0_serialDesc;
|
|
1374
|
+
}
|
|
1375
|
+
protoOf($serializer_5).d48 = function (encoder, value) {
|
|
1376
|
+
var tmp0_desc = this.c48_1;
|
|
1377
|
+
var tmp1_output = encoder.y22(tmp0_desc);
|
|
1378
|
+
tmp1_output.n24(tmp0_desc, 0, value.i46_1);
|
|
1379
|
+
tmp1_output.p24(tmp0_desc, 1, TypeListSerializer_getInstance(), value.j46_1);
|
|
1380
|
+
tmp1_output.z22(tmp0_desc);
|
|
1381
|
+
};
|
|
1382
|
+
protoOf($serializer_5).z1z = function (encoder, value) {
|
|
1383
|
+
return this.d48(encoder, value instanceof UnionType ? value : THROW_CCE());
|
|
1384
|
+
};
|
|
1385
|
+
protoOf($serializer_5).a20 = function (decoder) {
|
|
1386
|
+
var tmp0_desc = this.c48_1;
|
|
1387
1387
|
var tmp1_flag = true;
|
|
1388
1388
|
var tmp2_index = 0;
|
|
1389
1389
|
var tmp3_bitMask0 = 0;
|
|
1390
1390
|
var tmp4_local0 = null;
|
|
1391
1391
|
var tmp5_local1 = null;
|
|
1392
|
-
var tmp6_input = decoder.
|
|
1393
|
-
if (tmp6_input.
|
|
1394
|
-
tmp4_local0 = tmp6_input.
|
|
1392
|
+
var tmp6_input = decoder.y22(tmp0_desc);
|
|
1393
|
+
if (tmp6_input.o23()) {
|
|
1394
|
+
tmp4_local0 = tmp6_input.i23(tmp0_desc, 0);
|
|
1395
1395
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1396
|
-
tmp5_local1 = tmp6_input.
|
|
1396
|
+
tmp5_local1 = tmp6_input.k23(tmp0_desc, 1, TypeListSerializer_getInstance(), tmp5_local1);
|
|
1397
1397
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1398
1398
|
} else
|
|
1399
1399
|
while (tmp1_flag) {
|
|
1400
|
-
tmp2_index = tmp6_input.
|
|
1400
|
+
tmp2_index = tmp6_input.p23(tmp0_desc);
|
|
1401
1401
|
switch (tmp2_index) {
|
|
1402
1402
|
case -1:
|
|
1403
1403
|
tmp1_flag = false;
|
|
1404
1404
|
break;
|
|
1405
1405
|
case 0:
|
|
1406
|
-
tmp4_local0 = tmp6_input.
|
|
1406
|
+
tmp4_local0 = tmp6_input.i23(tmp0_desc, 0);
|
|
1407
1407
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1408
1408
|
break;
|
|
1409
1409
|
case 1:
|
|
1410
|
-
tmp5_local1 = tmp6_input.
|
|
1410
|
+
tmp5_local1 = tmp6_input.k23(tmp0_desc, 1, TypeListSerializer_getInstance(), tmp5_local1);
|
|
1411
1411
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1412
1412
|
break;
|
|
1413
1413
|
default:
|
|
1414
1414
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1415
1415
|
}
|
|
1416
1416
|
}
|
|
1417
|
-
tmp6_input.
|
|
1417
|
+
tmp6_input.z22(tmp0_desc);
|
|
1418
1418
|
return UnionType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1419
1419
|
};
|
|
1420
|
-
protoOf($serializer_5).
|
|
1421
|
-
return this.
|
|
1420
|
+
protoOf($serializer_5).y1z = function () {
|
|
1421
|
+
return this.c48_1;
|
|
1422
1422
|
};
|
|
1423
|
-
protoOf($serializer_5).
|
|
1423
|
+
protoOf($serializer_5).b2b = function () {
|
|
1424
1424
|
// Inline function 'kotlin.arrayOf' call
|
|
1425
1425
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1426
1426
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1434,10 +1434,10 @@ function $serializer_getInstance_5() {
|
|
|
1434
1434
|
}
|
|
1435
1435
|
function UnionType_init_$Init$(seen0, name, type, serializationConstructorMarker, $this) {
|
|
1436
1436
|
if (!(3 === (3 & seen0))) {
|
|
1437
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_5().
|
|
1437
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_5().c48_1);
|
|
1438
1438
|
}
|
|
1439
|
-
$this.
|
|
1440
|
-
$this.
|
|
1439
|
+
$this.i46_1 = name;
|
|
1440
|
+
$this.j46_1 = type;
|
|
1441
1441
|
return $this;
|
|
1442
1442
|
}
|
|
1443
1443
|
function UnionType_init_$Create$(seen0, name, type, serializationConstructorMarker) {
|
|
@@ -1445,7 +1445,7 @@ function UnionType_init_$Create$(seen0, name, type, serializationConstructorMark
|
|
|
1445
1445
|
}
|
|
1446
1446
|
function Companion_8() {
|
|
1447
1447
|
}
|
|
1448
|
-
protoOf(Companion_8).
|
|
1448
|
+
protoOf(Companion_8).z2m = function () {
|
|
1449
1449
|
return $serializer_getInstance_6();
|
|
1450
1450
|
};
|
|
1451
1451
|
var Companion_instance_8;
|
|
@@ -1455,30 +1455,30 @@ function Companion_getInstance_8() {
|
|
|
1455
1455
|
function $serializer_6() {
|
|
1456
1456
|
$serializer_instance_6 = this;
|
|
1457
1457
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.LogicalType', this, 4);
|
|
1458
|
-
tmp0_serialDesc.
|
|
1459
|
-
tmp0_serialDesc.
|
|
1460
|
-
tmp0_serialDesc.
|
|
1461
|
-
tmp0_serialDesc.
|
|
1462
|
-
this.
|
|
1463
|
-
}
|
|
1464
|
-
protoOf($serializer_6).
|
|
1465
|
-
var tmp0_desc = this.
|
|
1466
|
-
var tmp1_output = encoder.
|
|
1467
|
-
tmp1_output.
|
|
1468
|
-
tmp1_output.
|
|
1469
|
-
if (tmp1_output.
|
|
1470
|
-
tmp1_output.
|
|
1458
|
+
tmp0_serialDesc.m2a('type', false);
|
|
1459
|
+
tmp0_serialDesc.m2a('logicalType', false);
|
|
1460
|
+
tmp0_serialDesc.m2a('precision', true);
|
|
1461
|
+
tmp0_serialDesc.m2a('scale', true);
|
|
1462
|
+
this.e48_1 = tmp0_serialDesc;
|
|
1463
|
+
}
|
|
1464
|
+
protoOf($serializer_6).f48 = function (encoder, value) {
|
|
1465
|
+
var tmp0_desc = this.e48_1;
|
|
1466
|
+
var tmp1_output = encoder.y22(tmp0_desc);
|
|
1467
|
+
tmp1_output.n24(tmp0_desc, 0, value.m46_1);
|
|
1468
|
+
tmp1_output.n24(tmp0_desc, 1, value.n46_1);
|
|
1469
|
+
if (tmp1_output.v24(tmp0_desc, 2) ? true : !(value.o46_1 == null)) {
|
|
1470
|
+
tmp1_output.r24(tmp0_desc, 2, IntSerializer_getInstance(), value.o46_1);
|
|
1471
1471
|
}
|
|
1472
|
-
if (tmp1_output.
|
|
1473
|
-
tmp1_output.
|
|
1472
|
+
if (tmp1_output.v24(tmp0_desc, 3) ? true : !(value.p46_1 == null)) {
|
|
1473
|
+
tmp1_output.r24(tmp0_desc, 3, IntSerializer_getInstance(), value.p46_1);
|
|
1474
1474
|
}
|
|
1475
|
-
tmp1_output.
|
|
1475
|
+
tmp1_output.z22(tmp0_desc);
|
|
1476
1476
|
};
|
|
1477
|
-
protoOf($serializer_6).
|
|
1478
|
-
return this.
|
|
1477
|
+
protoOf($serializer_6).z1z = function (encoder, value) {
|
|
1478
|
+
return this.f48(encoder, value instanceof LogicalType ? value : THROW_CCE());
|
|
1479
1479
|
};
|
|
1480
|
-
protoOf($serializer_6).
|
|
1481
|
-
var tmp0_desc = this.
|
|
1480
|
+
protoOf($serializer_6).a20 = function (decoder) {
|
|
1481
|
+
var tmp0_desc = this.e48_1;
|
|
1482
1482
|
var tmp1_flag = true;
|
|
1483
1483
|
var tmp2_index = 0;
|
|
1484
1484
|
var tmp3_bitMask0 = 0;
|
|
@@ -1486,50 +1486,50 @@ protoOf($serializer_6).w1z = function (decoder) {
|
|
|
1486
1486
|
var tmp5_local1 = null;
|
|
1487
1487
|
var tmp6_local2 = null;
|
|
1488
1488
|
var tmp7_local3 = null;
|
|
1489
|
-
var tmp8_input = decoder.
|
|
1490
|
-
if (tmp8_input.
|
|
1491
|
-
tmp4_local0 = tmp8_input.
|
|
1489
|
+
var tmp8_input = decoder.y22(tmp0_desc);
|
|
1490
|
+
if (tmp8_input.o23()) {
|
|
1491
|
+
tmp4_local0 = tmp8_input.i23(tmp0_desc, 0);
|
|
1492
1492
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1493
|
-
tmp5_local1 = tmp8_input.
|
|
1493
|
+
tmp5_local1 = tmp8_input.i23(tmp0_desc, 1);
|
|
1494
1494
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1495
|
-
tmp6_local2 = tmp8_input.
|
|
1495
|
+
tmp6_local2 = tmp8_input.m23(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
|
|
1496
1496
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1497
|
-
tmp7_local3 = tmp8_input.
|
|
1497
|
+
tmp7_local3 = tmp8_input.m23(tmp0_desc, 3, IntSerializer_getInstance(), tmp7_local3);
|
|
1498
1498
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1499
1499
|
} else
|
|
1500
1500
|
while (tmp1_flag) {
|
|
1501
|
-
tmp2_index = tmp8_input.
|
|
1501
|
+
tmp2_index = tmp8_input.p23(tmp0_desc);
|
|
1502
1502
|
switch (tmp2_index) {
|
|
1503
1503
|
case -1:
|
|
1504
1504
|
tmp1_flag = false;
|
|
1505
1505
|
break;
|
|
1506
1506
|
case 0:
|
|
1507
|
-
tmp4_local0 = tmp8_input.
|
|
1507
|
+
tmp4_local0 = tmp8_input.i23(tmp0_desc, 0);
|
|
1508
1508
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1509
1509
|
break;
|
|
1510
1510
|
case 1:
|
|
1511
|
-
tmp5_local1 = tmp8_input.
|
|
1511
|
+
tmp5_local1 = tmp8_input.i23(tmp0_desc, 1);
|
|
1512
1512
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1513
1513
|
break;
|
|
1514
1514
|
case 2:
|
|
1515
|
-
tmp6_local2 = tmp8_input.
|
|
1515
|
+
tmp6_local2 = tmp8_input.m23(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
|
|
1516
1516
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1517
1517
|
break;
|
|
1518
1518
|
case 3:
|
|
1519
|
-
tmp7_local3 = tmp8_input.
|
|
1519
|
+
tmp7_local3 = tmp8_input.m23(tmp0_desc, 3, IntSerializer_getInstance(), tmp7_local3);
|
|
1520
1520
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1521
1521
|
break;
|
|
1522
1522
|
default:
|
|
1523
1523
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1524
1524
|
}
|
|
1525
1525
|
}
|
|
1526
|
-
tmp8_input.
|
|
1526
|
+
tmp8_input.z22(tmp0_desc);
|
|
1527
1527
|
return LogicalType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
1528
1528
|
};
|
|
1529
|
-
protoOf($serializer_6).
|
|
1530
|
-
return this.
|
|
1529
|
+
protoOf($serializer_6).y1z = function () {
|
|
1530
|
+
return this.e48_1;
|
|
1531
1531
|
};
|
|
1532
|
-
protoOf($serializer_6).
|
|
1532
|
+
protoOf($serializer_6).b2b = function () {
|
|
1533
1533
|
// Inline function 'kotlin.arrayOf' call
|
|
1534
1534
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1535
1535
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1543,18 +1543,18 @@ function $serializer_getInstance_6() {
|
|
|
1543
1543
|
}
|
|
1544
1544
|
function LogicalType_init_$Init$(seen0, type, logicalType, precision, scale, serializationConstructorMarker, $this) {
|
|
1545
1545
|
if (!(3 === (3 & seen0))) {
|
|
1546
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_6().
|
|
1546
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_6().e48_1);
|
|
1547
1547
|
}
|
|
1548
|
-
$this.
|
|
1549
|
-
$this.
|
|
1548
|
+
$this.m46_1 = type;
|
|
1549
|
+
$this.n46_1 = logicalType;
|
|
1550
1550
|
if (0 === (seen0 & 4))
|
|
1551
|
-
$this.
|
|
1551
|
+
$this.o46_1 = null;
|
|
1552
1552
|
else
|
|
1553
|
-
$this.
|
|
1553
|
+
$this.o46_1 = precision;
|
|
1554
1554
|
if (0 === (seen0 & 8))
|
|
1555
|
-
$this.
|
|
1555
|
+
$this.p46_1 = null;
|
|
1556
1556
|
else
|
|
1557
|
-
$this.
|
|
1557
|
+
$this.p46_1 = scale;
|
|
1558
1558
|
return $this;
|
|
1559
1559
|
}
|
|
1560
1560
|
function LogicalType_init_$Create$(seen0, type, logicalType, precision, scale, serializationConstructorMarker) {
|
|
@@ -1563,19 +1563,19 @@ function LogicalType_init_$Create$(seen0, type, logicalType, precision, scale, s
|
|
|
1563
1563
|
function Field_0(name, type, doc, default_0) {
|
|
1564
1564
|
doc = doc === VOID ? null : doc;
|
|
1565
1565
|
default_0 = default_0 === VOID ? null : default_0;
|
|
1566
|
-
this.
|
|
1567
|
-
this.
|
|
1568
|
-
this.
|
|
1569
|
-
this.
|
|
1566
|
+
this.b47_1 = name;
|
|
1567
|
+
this.c47_1 = type;
|
|
1568
|
+
this.d47_1 = doc;
|
|
1569
|
+
this.e47_1 = default_0;
|
|
1570
1570
|
}
|
|
1571
1571
|
protoOf(Field_0).toString = function () {
|
|
1572
|
-
return 'Field(name=' + this.
|
|
1572
|
+
return 'Field(name=' + this.b47_1 + ', type=' + this.c47_1.toString() + ', doc=' + this.d47_1 + ', default=' + this.e47_1 + ')';
|
|
1573
1573
|
};
|
|
1574
1574
|
protoOf(Field_0).hashCode = function () {
|
|
1575
|
-
var result = getStringHashCode(this.
|
|
1576
|
-
result = imul(result, 31) + this.
|
|
1577
|
-
result = imul(result, 31) + (this.
|
|
1578
|
-
result = imul(result, 31) + (this.
|
|
1575
|
+
var result = getStringHashCode(this.b47_1);
|
|
1576
|
+
result = imul(result, 31) + this.c47_1.hashCode() | 0;
|
|
1577
|
+
result = imul(result, 31) + (this.d47_1 == null ? 0 : getStringHashCode(this.d47_1)) | 0;
|
|
1578
|
+
result = imul(result, 31) + (this.e47_1 == null ? 0 : getStringHashCode(this.e47_1)) | 0;
|
|
1579
1579
|
return result;
|
|
1580
1580
|
};
|
|
1581
1581
|
protoOf(Field_0).equals = function (other) {
|
|
@@ -1583,44 +1583,44 @@ protoOf(Field_0).equals = function (other) {
|
|
|
1583
1583
|
return true;
|
|
1584
1584
|
if (!(other instanceof Field_0))
|
|
1585
1585
|
return false;
|
|
1586
|
-
if (!(this.
|
|
1586
|
+
if (!(this.b47_1 === other.b47_1))
|
|
1587
1587
|
return false;
|
|
1588
|
-
if (!this.
|
|
1588
|
+
if (!this.c47_1.equals(other.c47_1))
|
|
1589
1589
|
return false;
|
|
1590
|
-
if (!(this.
|
|
1590
|
+
if (!(this.d47_1 == other.d47_1))
|
|
1591
1591
|
return false;
|
|
1592
|
-
if (!(this.
|
|
1592
|
+
if (!(this.e47_1 == other.e47_1))
|
|
1593
1593
|
return false;
|
|
1594
1594
|
return true;
|
|
1595
1595
|
};
|
|
1596
1596
|
function TypeList(type) {
|
|
1597
1597
|
AbstractList.call(this);
|
|
1598
|
-
this.
|
|
1599
|
-
this.
|
|
1598
|
+
this.g48_1 = toList_0(type);
|
|
1599
|
+
this.h48_1 = this.g48_1.a1();
|
|
1600
1600
|
}
|
|
1601
1601
|
protoOf(TypeList).a1 = function () {
|
|
1602
|
-
return this.
|
|
1602
|
+
return this.h48_1;
|
|
1603
1603
|
};
|
|
1604
1604
|
protoOf(TypeList).b1 = function (index) {
|
|
1605
|
-
return this.
|
|
1605
|
+
return this.g48_1.b1(index);
|
|
1606
1606
|
};
|
|
1607
1607
|
function Type_0() {
|
|
1608
1608
|
}
|
|
1609
1609
|
function SimpleType(value) {
|
|
1610
|
-
this.
|
|
1610
|
+
this.h46_1 = value;
|
|
1611
1611
|
}
|
|
1612
1612
|
protoOf(SimpleType).toString = function () {
|
|
1613
|
-
return 'SimpleType(value=' + this.
|
|
1613
|
+
return 'SimpleType(value=' + this.h46_1 + ')';
|
|
1614
1614
|
};
|
|
1615
1615
|
protoOf(SimpleType).hashCode = function () {
|
|
1616
|
-
return getStringHashCode(this.
|
|
1616
|
+
return getStringHashCode(this.h46_1);
|
|
1617
1617
|
};
|
|
1618
1618
|
protoOf(SimpleType).equals = function (other) {
|
|
1619
1619
|
if (this === other)
|
|
1620
1620
|
return true;
|
|
1621
1621
|
if (!(other instanceof SimpleType))
|
|
1622
1622
|
return false;
|
|
1623
|
-
if (!(this.
|
|
1623
|
+
if (!(this.h46_1 === other.h46_1))
|
|
1624
1624
|
return false;
|
|
1625
1625
|
return true;
|
|
1626
1626
|
};
|
|
@@ -1628,21 +1628,21 @@ function RecordType(type, name, namespace, fields, doc) {
|
|
|
1628
1628
|
Companion_getInstance_3();
|
|
1629
1629
|
namespace = namespace === VOID ? null : namespace;
|
|
1630
1630
|
doc = doc === VOID ? null : doc;
|
|
1631
|
-
this.
|
|
1632
|
-
this.
|
|
1633
|
-
this.
|
|
1634
|
-
this.
|
|
1635
|
-
this.
|
|
1631
|
+
this.u46_1 = type;
|
|
1632
|
+
this.v46_1 = name;
|
|
1633
|
+
this.w46_1 = namespace;
|
|
1634
|
+
this.x46_1 = fields;
|
|
1635
|
+
this.y46_1 = doc;
|
|
1636
1636
|
}
|
|
1637
1637
|
protoOf(RecordType).toString = function () {
|
|
1638
|
-
return 'RecordType(type=' + this.
|
|
1638
|
+
return 'RecordType(type=' + this.u46_1 + ', name=' + this.v46_1 + ', namespace=' + this.w46_1 + ', fields=' + toString(this.x46_1) + ', doc=' + this.y46_1 + ')';
|
|
1639
1639
|
};
|
|
1640
1640
|
protoOf(RecordType).hashCode = function () {
|
|
1641
|
-
var result = getStringHashCode(this.
|
|
1642
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1643
|
-
result = imul(result, 31) + (this.
|
|
1644
|
-
result = imul(result, 31) + hashCode(this.
|
|
1645
|
-
result = imul(result, 31) + (this.
|
|
1641
|
+
var result = getStringHashCode(this.u46_1);
|
|
1642
|
+
result = imul(result, 31) + getStringHashCode(this.v46_1) | 0;
|
|
1643
|
+
result = imul(result, 31) + (this.w46_1 == null ? 0 : getStringHashCode(this.w46_1)) | 0;
|
|
1644
|
+
result = imul(result, 31) + hashCode(this.x46_1) | 0;
|
|
1645
|
+
result = imul(result, 31) + (this.y46_1 == null ? 0 : getStringHashCode(this.y46_1)) | 0;
|
|
1646
1646
|
return result;
|
|
1647
1647
|
};
|
|
1648
1648
|
protoOf(RecordType).equals = function (other) {
|
|
@@ -1650,28 +1650,28 @@ protoOf(RecordType).equals = function (other) {
|
|
|
1650
1650
|
return true;
|
|
1651
1651
|
if (!(other instanceof RecordType))
|
|
1652
1652
|
return false;
|
|
1653
|
-
if (!(this.
|
|
1653
|
+
if (!(this.u46_1 === other.u46_1))
|
|
1654
1654
|
return false;
|
|
1655
|
-
if (!(this.
|
|
1655
|
+
if (!(this.v46_1 === other.v46_1))
|
|
1656
1656
|
return false;
|
|
1657
|
-
if (!(this.
|
|
1657
|
+
if (!(this.w46_1 == other.w46_1))
|
|
1658
1658
|
return false;
|
|
1659
|
-
if (!equals(this.
|
|
1659
|
+
if (!equals(this.x46_1, other.x46_1))
|
|
1660
1660
|
return false;
|
|
1661
|
-
if (!(this.
|
|
1661
|
+
if (!(this.y46_1 == other.y46_1))
|
|
1662
1662
|
return false;
|
|
1663
1663
|
return true;
|
|
1664
1664
|
};
|
|
1665
1665
|
function ArrayType(type, items) {
|
|
1666
|
-
this.
|
|
1667
|
-
this.
|
|
1666
|
+
this.z46_1 = type;
|
|
1667
|
+
this.a47_1 = items;
|
|
1668
1668
|
}
|
|
1669
1669
|
protoOf(ArrayType).toString = function () {
|
|
1670
|
-
return 'ArrayType(type=' + this.
|
|
1670
|
+
return 'ArrayType(type=' + this.z46_1 + ', items=' + toString(this.a47_1) + ')';
|
|
1671
1671
|
};
|
|
1672
1672
|
protoOf(ArrayType).hashCode = function () {
|
|
1673
|
-
var result = getStringHashCode(this.
|
|
1674
|
-
result = imul(result, 31) + hashCode(this.
|
|
1673
|
+
var result = getStringHashCode(this.z46_1);
|
|
1674
|
+
result = imul(result, 31) + hashCode(this.a47_1) | 0;
|
|
1675
1675
|
return result;
|
|
1676
1676
|
};
|
|
1677
1677
|
protoOf(ArrayType).equals = function (other) {
|
|
@@ -1679,22 +1679,22 @@ protoOf(ArrayType).equals = function (other) {
|
|
|
1679
1679
|
return true;
|
|
1680
1680
|
if (!(other instanceof ArrayType))
|
|
1681
1681
|
return false;
|
|
1682
|
-
if (!(this.
|
|
1682
|
+
if (!(this.z46_1 === other.z46_1))
|
|
1683
1683
|
return false;
|
|
1684
|
-
if (!equals(this.
|
|
1684
|
+
if (!equals(this.a47_1, other.a47_1))
|
|
1685
1685
|
return false;
|
|
1686
1686
|
return true;
|
|
1687
1687
|
};
|
|
1688
1688
|
function MapType(type, values) {
|
|
1689
|
-
this.
|
|
1690
|
-
this.
|
|
1689
|
+
this.k46_1 = type;
|
|
1690
|
+
this.l46_1 = values;
|
|
1691
1691
|
}
|
|
1692
1692
|
protoOf(MapType).toString = function () {
|
|
1693
|
-
return 'MapType(type=' + this.
|
|
1693
|
+
return 'MapType(type=' + this.k46_1 + ', values=' + toString(this.l46_1) + ')';
|
|
1694
1694
|
};
|
|
1695
1695
|
protoOf(MapType).hashCode = function () {
|
|
1696
|
-
var result = getStringHashCode(this.
|
|
1697
|
-
result = imul(result, 31) + hashCode(this.
|
|
1696
|
+
var result = getStringHashCode(this.k46_1);
|
|
1697
|
+
result = imul(result, 31) + hashCode(this.l46_1) | 0;
|
|
1698
1698
|
return result;
|
|
1699
1699
|
};
|
|
1700
1700
|
protoOf(MapType).equals = function (other) {
|
|
@@ -1702,28 +1702,28 @@ protoOf(MapType).equals = function (other) {
|
|
|
1702
1702
|
return true;
|
|
1703
1703
|
if (!(other instanceof MapType))
|
|
1704
1704
|
return false;
|
|
1705
|
-
if (!(this.
|
|
1705
|
+
if (!(this.k46_1 === other.k46_1))
|
|
1706
1706
|
return false;
|
|
1707
|
-
if (!equals(this.
|
|
1707
|
+
if (!equals(this.l46_1, other.l46_1))
|
|
1708
1708
|
return false;
|
|
1709
1709
|
return true;
|
|
1710
1710
|
};
|
|
1711
1711
|
function EnumType(type, name, doc, symbols) {
|
|
1712
1712
|
Companion_getInstance_6();
|
|
1713
1713
|
doc = doc === VOID ? null : doc;
|
|
1714
|
-
this.
|
|
1715
|
-
this.
|
|
1716
|
-
this.
|
|
1717
|
-
this.
|
|
1714
|
+
this.q46_1 = type;
|
|
1715
|
+
this.r46_1 = name;
|
|
1716
|
+
this.s46_1 = doc;
|
|
1717
|
+
this.t46_1 = symbols;
|
|
1718
1718
|
}
|
|
1719
1719
|
protoOf(EnumType).toString = function () {
|
|
1720
|
-
return 'EnumType(type=' + this.
|
|
1720
|
+
return 'EnumType(type=' + this.q46_1 + ', name=' + this.r46_1 + ', doc=' + this.s46_1 + ', symbols=' + toString(this.t46_1) + ')';
|
|
1721
1721
|
};
|
|
1722
1722
|
protoOf(EnumType).hashCode = function () {
|
|
1723
|
-
var result = getStringHashCode(this.
|
|
1724
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1725
|
-
result = imul(result, 31) + (this.
|
|
1726
|
-
result = imul(result, 31) + hashCode(this.
|
|
1723
|
+
var result = getStringHashCode(this.q46_1);
|
|
1724
|
+
result = imul(result, 31) + getStringHashCode(this.r46_1) | 0;
|
|
1725
|
+
result = imul(result, 31) + (this.s46_1 == null ? 0 : getStringHashCode(this.s46_1)) | 0;
|
|
1726
|
+
result = imul(result, 31) + hashCode(this.t46_1) | 0;
|
|
1727
1727
|
return result;
|
|
1728
1728
|
};
|
|
1729
1729
|
protoOf(EnumType).equals = function (other) {
|
|
@@ -1731,26 +1731,26 @@ protoOf(EnumType).equals = function (other) {
|
|
|
1731
1731
|
return true;
|
|
1732
1732
|
if (!(other instanceof EnumType))
|
|
1733
1733
|
return false;
|
|
1734
|
-
if (!(this.
|
|
1734
|
+
if (!(this.q46_1 === other.q46_1))
|
|
1735
1735
|
return false;
|
|
1736
|
-
if (!(this.
|
|
1736
|
+
if (!(this.r46_1 === other.r46_1))
|
|
1737
1737
|
return false;
|
|
1738
|
-
if (!(this.
|
|
1738
|
+
if (!(this.s46_1 == other.s46_1))
|
|
1739
1739
|
return false;
|
|
1740
|
-
if (!equals(this.
|
|
1740
|
+
if (!equals(this.t46_1, other.t46_1))
|
|
1741
1741
|
return false;
|
|
1742
1742
|
return true;
|
|
1743
1743
|
};
|
|
1744
1744
|
function UnionType(name, type) {
|
|
1745
|
-
this.
|
|
1746
|
-
this.
|
|
1745
|
+
this.i46_1 = name;
|
|
1746
|
+
this.j46_1 = type;
|
|
1747
1747
|
}
|
|
1748
1748
|
protoOf(UnionType).toString = function () {
|
|
1749
|
-
return 'UnionType(name=' + this.
|
|
1749
|
+
return 'UnionType(name=' + this.i46_1 + ', type=' + this.j46_1.toString() + ')';
|
|
1750
1750
|
};
|
|
1751
1751
|
protoOf(UnionType).hashCode = function () {
|
|
1752
|
-
var result = getStringHashCode(this.
|
|
1753
|
-
result = imul(result, 31) + this.
|
|
1752
|
+
var result = getStringHashCode(this.i46_1);
|
|
1753
|
+
result = imul(result, 31) + this.j46_1.hashCode() | 0;
|
|
1754
1754
|
return result;
|
|
1755
1755
|
};
|
|
1756
1756
|
protoOf(UnionType).equals = function (other) {
|
|
@@ -1758,22 +1758,22 @@ protoOf(UnionType).equals = function (other) {
|
|
|
1758
1758
|
return true;
|
|
1759
1759
|
if (!(other instanceof UnionType))
|
|
1760
1760
|
return false;
|
|
1761
|
-
if (!(this.
|
|
1761
|
+
if (!(this.i46_1 === other.i46_1))
|
|
1762
1762
|
return false;
|
|
1763
|
-
if (!this.
|
|
1763
|
+
if (!this.j46_1.equals(other.j46_1))
|
|
1764
1764
|
return false;
|
|
1765
1765
|
return true;
|
|
1766
1766
|
};
|
|
1767
1767
|
function LogicalType() {
|
|
1768
1768
|
}
|
|
1769
1769
|
protoOf(LogicalType).toString = function () {
|
|
1770
|
-
return 'LogicalType(type=' + this.
|
|
1770
|
+
return 'LogicalType(type=' + this.m46_1 + ', logicalType=' + this.n46_1 + ', precision=' + this.o46_1 + ', scale=' + this.p46_1 + ')';
|
|
1771
1771
|
};
|
|
1772
1772
|
protoOf(LogicalType).hashCode = function () {
|
|
1773
|
-
var result = getStringHashCode(this.
|
|
1774
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1775
|
-
result = imul(result, 31) + (this.
|
|
1776
|
-
result = imul(result, 31) + (this.
|
|
1773
|
+
var result = getStringHashCode(this.m46_1);
|
|
1774
|
+
result = imul(result, 31) + getStringHashCode(this.n46_1) | 0;
|
|
1775
|
+
result = imul(result, 31) + (this.o46_1 == null ? 0 : this.o46_1) | 0;
|
|
1776
|
+
result = imul(result, 31) + (this.p46_1 == null ? 0 : this.p46_1) | 0;
|
|
1777
1777
|
return result;
|
|
1778
1778
|
};
|
|
1779
1779
|
protoOf(LogicalType).equals = function (other) {
|
|
@@ -1781,34 +1781,34 @@ protoOf(LogicalType).equals = function (other) {
|
|
|
1781
1781
|
return true;
|
|
1782
1782
|
if (!(other instanceof LogicalType))
|
|
1783
1783
|
return false;
|
|
1784
|
-
if (!(this.
|
|
1784
|
+
if (!(this.m46_1 === other.m46_1))
|
|
1785
1785
|
return false;
|
|
1786
|
-
if (!(this.
|
|
1786
|
+
if (!(this.n46_1 === other.n46_1))
|
|
1787
1787
|
return false;
|
|
1788
|
-
if (!(this.
|
|
1788
|
+
if (!(this.o46_1 == other.o46_1))
|
|
1789
1789
|
return false;
|
|
1790
|
-
if (!(this.
|
|
1790
|
+
if (!(this.p46_1 == other.p46_1))
|
|
1791
1791
|
return false;
|
|
1792
1792
|
return true;
|
|
1793
1793
|
};
|
|
1794
1794
|
function TypeListSerializer() {
|
|
1795
1795
|
TypeListSerializer_instance = this;
|
|
1796
|
-
this.
|
|
1796
|
+
this.i48_1 = buildSerialDescriptor('TypeListSerializer', SEALED_getInstance(), []);
|
|
1797
1797
|
}
|
|
1798
|
-
protoOf(TypeListSerializer).
|
|
1799
|
-
return this.
|
|
1798
|
+
protoOf(TypeListSerializer).y1z = function () {
|
|
1799
|
+
return this.i48_1;
|
|
1800
1800
|
};
|
|
1801
|
-
protoOf(TypeListSerializer).
|
|
1802
|
-
if (value.
|
|
1803
|
-
encoder.
|
|
1801
|
+
protoOf(TypeListSerializer).j48 = function (encoder, value) {
|
|
1802
|
+
if (value.h48_1 > 1) {
|
|
1803
|
+
encoder.q24(ListSerializer(Companion_instance_1.z2m()), value);
|
|
1804
1804
|
} else {
|
|
1805
|
-
encoder.
|
|
1805
|
+
encoder.q24(Companion_instance_1.z2m(), first(value));
|
|
1806
1806
|
}
|
|
1807
1807
|
};
|
|
1808
|
-
protoOf(TypeListSerializer).
|
|
1809
|
-
return this.
|
|
1808
|
+
protoOf(TypeListSerializer).z1z = function (encoder, value) {
|
|
1809
|
+
return this.j48(encoder, value instanceof TypeList ? value : THROW_CCE());
|
|
1810
1810
|
};
|
|
1811
|
-
protoOf(TypeListSerializer).
|
|
1811
|
+
protoOf(TypeListSerializer).a20 = function (decoder) {
|
|
1812
1812
|
var tmp0_elvis_lhs = isInterface(decoder, JsonDecoder) ? decoder : null;
|
|
1813
1813
|
var tmp;
|
|
1814
1814
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -1817,10 +1817,10 @@ protoOf(TypeListSerializer).w1z = function (decoder) {
|
|
|
1817
1817
|
tmp = tmp0_elvis_lhs;
|
|
1818
1818
|
}
|
|
1819
1819
|
var input = tmp;
|
|
1820
|
-
var element = input.
|
|
1820
|
+
var element = input.w2m();
|
|
1821
1821
|
var tmp_0;
|
|
1822
1822
|
if (element instanceof JsonPrimitive) {
|
|
1823
|
-
tmp_0 = new TypeList([input.
|
|
1823
|
+
tmp_0 = new TypeList([input.v2m().v2k(Companion_instance_1.z2m(), element)]);
|
|
1824
1824
|
} else {
|
|
1825
1825
|
if (element instanceof JsonArray) {
|
|
1826
1826
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -1829,7 +1829,7 @@ protoOf(TypeListSerializer).w1z = function (decoder) {
|
|
|
1829
1829
|
var _iterator__ex2g4s = element.t();
|
|
1830
1830
|
while (_iterator__ex2g4s.u()) {
|
|
1831
1831
|
var item = _iterator__ex2g4s.v();
|
|
1832
|
-
var tmp$ret$0 = input.
|
|
1832
|
+
var tmp$ret$0 = input.v2m().v2k(Companion_instance_1.z2m(), item);
|
|
1833
1833
|
destination.x(tmp$ret$0);
|
|
1834
1834
|
}
|
|
1835
1835
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
@@ -1837,7 +1837,7 @@ protoOf(TypeListSerializer).w1z = function (decoder) {
|
|
|
1837
1837
|
tmp_0 = new TypeList(tmp$ret$3.slice());
|
|
1838
1838
|
} else {
|
|
1839
1839
|
if (element instanceof JsonObject) {
|
|
1840
|
-
tmp_0 = new TypeList([input.
|
|
1840
|
+
tmp_0 = new TypeList([input.v2m().v2k(Companion_instance_1.z2m(), element)]);
|
|
1841
1841
|
} else {
|
|
1842
1842
|
noWhenBranchMatchedException();
|
|
1843
1843
|
}
|
|
@@ -1853,29 +1853,29 @@ function TypeListSerializer_getInstance() {
|
|
|
1853
1853
|
}
|
|
1854
1854
|
function TypeSerializer() {
|
|
1855
1855
|
TypeSerializer_instance = this;
|
|
1856
|
-
this.
|
|
1856
|
+
this.k48_1 = buildSerialDescriptor('TypeSerializer', SEALED_getInstance(), []);
|
|
1857
1857
|
}
|
|
1858
|
-
protoOf(TypeSerializer).
|
|
1859
|
-
return this.
|
|
1858
|
+
protoOf(TypeSerializer).y1z = function () {
|
|
1859
|
+
return this.k48_1;
|
|
1860
1860
|
};
|
|
1861
|
-
protoOf(TypeSerializer).
|
|
1861
|
+
protoOf(TypeSerializer).l48 = function (encoder, value) {
|
|
1862
1862
|
if (value instanceof SimpleType) {
|
|
1863
|
-
encoder.
|
|
1863
|
+
encoder.q24(serializer_0(StringCompanionObject_instance), value.h46_1);
|
|
1864
1864
|
} else {
|
|
1865
1865
|
if (value instanceof RecordType) {
|
|
1866
|
-
encoder.
|
|
1866
|
+
encoder.q24(Companion_getInstance_3().z2m(), value);
|
|
1867
1867
|
} else {
|
|
1868
1868
|
if (value instanceof ArrayType) {
|
|
1869
|
-
encoder.
|
|
1869
|
+
encoder.q24(Companion_instance_4.z2m(), value);
|
|
1870
1870
|
} else {
|
|
1871
1871
|
if (value instanceof MapType) {
|
|
1872
|
-
encoder.
|
|
1872
|
+
encoder.q24(Companion_instance_5.z2m(), value);
|
|
1873
1873
|
} else {
|
|
1874
1874
|
if (value instanceof EnumType) {
|
|
1875
|
-
encoder.
|
|
1875
|
+
encoder.q24(Companion_getInstance_6().z2m(), value);
|
|
1876
1876
|
} else {
|
|
1877
1877
|
if (value instanceof UnionType) {
|
|
1878
|
-
encoder.
|
|
1878
|
+
encoder.q24(Companion_instance_7.z2m(), value);
|
|
1879
1879
|
} else {
|
|
1880
1880
|
if (value instanceof LogicalType) {
|
|
1881
1881
|
// Inline function 'kotlin.TODO' call
|
|
@@ -1890,10 +1890,10 @@ protoOf(TypeSerializer).h48 = function (encoder, value) {
|
|
|
1890
1890
|
}
|
|
1891
1891
|
}
|
|
1892
1892
|
};
|
|
1893
|
-
protoOf(TypeSerializer).
|
|
1894
|
-
return this.
|
|
1893
|
+
protoOf(TypeSerializer).z1z = function (encoder, value) {
|
|
1894
|
+
return this.l48(encoder, (!(value == null) ? isInterface(value, Type_0) : false) ? value : THROW_CCE());
|
|
1895
1895
|
};
|
|
1896
|
-
protoOf(TypeSerializer).
|
|
1896
|
+
protoOf(TypeSerializer).a20 = function (decoder) {
|
|
1897
1897
|
var tmp0_elvis_lhs = isInterface(decoder, JsonDecoder) ? decoder : null;
|
|
1898
1898
|
var tmp;
|
|
1899
1899
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -1902,18 +1902,18 @@ protoOf(TypeSerializer).w1z = function (decoder) {
|
|
|
1902
1902
|
tmp = tmp0_elvis_lhs;
|
|
1903
1903
|
}
|
|
1904
1904
|
var input = tmp;
|
|
1905
|
-
var element = input.
|
|
1905
|
+
var element = input.w2m();
|
|
1906
1906
|
var tmp_0;
|
|
1907
1907
|
if (element instanceof JsonObject) {
|
|
1908
1908
|
var tmp_1;
|
|
1909
|
-
if (element.
|
|
1910
|
-
tmp_1 = input.
|
|
1911
|
-
} else if (element.
|
|
1912
|
-
tmp_1 = input.
|
|
1913
|
-
} else if (element.
|
|
1914
|
-
tmp_1 = input.
|
|
1915
|
-
} else if (element.
|
|
1916
|
-
tmp_1 = input.
|
|
1909
|
+
if (element.d2n('items')) {
|
|
1910
|
+
tmp_1 = input.v2m().v2k(Companion_instance_4.z2m(), element);
|
|
1911
|
+
} else if (element.d2n('fields')) {
|
|
1912
|
+
tmp_1 = input.v2m().v2k(Companion_getInstance_3().z2m(), element);
|
|
1913
|
+
} else if (element.d2n('symbols')) {
|
|
1914
|
+
tmp_1 = input.v2m().v2k(Companion_getInstance_6().z2m(), element);
|
|
1915
|
+
} else if (element.d2n('logicalType')) {
|
|
1916
|
+
tmp_1 = input.v2m().v2k(Companion_instance_8.z2m(), element);
|
|
1917
1917
|
} else {
|
|
1918
1918
|
var reason = 'Unknown object type: ' + element.toString();
|
|
1919
1919
|
throw new NotImplementedError('An operation is not implemented: ' + reason);
|
|
@@ -1940,14 +1940,14 @@ function TypeSerializer_getInstance() {
|
|
|
1940
1940
|
return TypeSerializer_instance;
|
|
1941
1941
|
}
|
|
1942
1942
|
//region block: post-declaration
|
|
1943
|
-
protoOf($serializer).
|
|
1944
|
-
protoOf($serializer_0).
|
|
1945
|
-
protoOf($serializer_1).
|
|
1946
|
-
protoOf($serializer_2).
|
|
1947
|
-
protoOf($serializer_3).
|
|
1948
|
-
protoOf($serializer_4).
|
|
1949
|
-
protoOf($serializer_5).
|
|
1950
|
-
protoOf($serializer_6).
|
|
1943
|
+
protoOf($serializer).c2b = typeParametersSerializers;
|
|
1944
|
+
protoOf($serializer_0).c2b = typeParametersSerializers;
|
|
1945
|
+
protoOf($serializer_1).c2b = typeParametersSerializers;
|
|
1946
|
+
protoOf($serializer_2).c2b = typeParametersSerializers;
|
|
1947
|
+
protoOf($serializer_3).c2b = typeParametersSerializers;
|
|
1948
|
+
protoOf($serializer_4).c2b = typeParametersSerializers;
|
|
1949
|
+
protoOf($serializer_5).c2b = typeParametersSerializers;
|
|
1950
|
+
protoOf($serializer_6).c2b = typeParametersSerializers;
|
|
1951
1951
|
//endregion
|
|
1952
1952
|
//region block: init
|
|
1953
1953
|
AvroJsonParser_instance = new AvroJsonParser();
|