@flock/wirespec 0.15.11 → 0.15.13
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.mjs +1160 -1160
- package/colormath-root-colormath.mjs +425 -425
- package/kotlin-kotlin-stdlib.mjs +19 -19
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-rgxgen.mjs +1767 -1767
- package/kotlinx-io-kotlinx-io-core.mjs +378 -378
- package/markdown.mjs +1871 -1871
- package/mordant-mordant.mjs +1637 -1637
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +2496 -1471
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +262 -262
- package/wirespec-src-converter-avro.mjs +264 -264
- package/wirespec-src-converter-openapi.mjs +179 -179
- package/wirespec-src-plugin-arguments.mjs +124 -124
- package/wirespec-src-plugin-cli.mjs +70 -70
- package/wirespec-src-plugin-npm.mjs +7 -7
- package/wirespec-src-tools-generator.mjs +3 -3
|
@@ -138,11 +138,11 @@ initMetadataForObject(TypeSerializer, 'TypeSerializer', VOID, VOID, [KSerializer
|
|
|
138
138
|
initMetadataForObject(AvroParser, 'AvroParser');
|
|
139
139
|
//endregion
|
|
140
140
|
function isNullable(_this__u8e3s4, $this) {
|
|
141
|
-
return _this__u8e3s4.o1($this.
|
|
141
|
+
return _this__u8e3s4.o1($this.e2c_1);
|
|
142
142
|
}
|
|
143
143
|
function toPrimitive(_this__u8e3s4, $this) {
|
|
144
144
|
var tmp;
|
|
145
|
-
switch (_this__u8e3s4.
|
|
145
|
+
switch (_this__u8e3s4.f2c_1) {
|
|
146
146
|
case 'boolean':
|
|
147
147
|
tmp = Boolean_instance;
|
|
148
148
|
break;
|
|
@@ -165,7 +165,7 @@ function toPrimitive(_this__u8e3s4, $this) {
|
|
|
165
165
|
tmp = String_instance;
|
|
166
166
|
break;
|
|
167
167
|
default:
|
|
168
|
-
var reason = 'primitive not mapped ' + _this__u8e3s4.
|
|
168
|
+
var reason = 'primitive not mapped ' + _this__u8e3s4.f2c_1;
|
|
169
169
|
throw new NotImplementedError('An operation is not implemented: ' + reason);
|
|
170
170
|
}
|
|
171
171
|
return tmp;
|
|
@@ -173,7 +173,7 @@ function toPrimitive(_this__u8e3s4, $this) {
|
|
|
173
173
|
function toReference(_this__u8e3s4, $this, isNullable) {
|
|
174
174
|
var tmp;
|
|
175
175
|
if (_this__u8e3s4 instanceof SimpleType) {
|
|
176
|
-
switch (_this__u8e3s4.
|
|
176
|
+
switch (_this__u8e3s4.f2c_1) {
|
|
177
177
|
case 'null':
|
|
178
178
|
tmp = new Unit(isNullable);
|
|
179
179
|
break;
|
|
@@ -187,27 +187,27 @@ function toReference(_this__u8e3s4, $this, isNullable) {
|
|
|
187
187
|
tmp = new Primitive(toPrimitive(_this__u8e3s4, $this), isNullable);
|
|
188
188
|
break;
|
|
189
189
|
default:
|
|
190
|
-
tmp = new Custom(_this__u8e3s4.
|
|
190
|
+
tmp = new Custom(_this__u8e3s4.f2c_1, isNullable);
|
|
191
191
|
break;
|
|
192
192
|
}
|
|
193
193
|
} else {
|
|
194
194
|
if (_this__u8e3s4 instanceof ArrayType) {
|
|
195
|
-
tmp = new Iterable(toReference(_this__u8e3s4.
|
|
195
|
+
tmp = new Iterable(toReference(_this__u8e3s4.y2c_1, $this, false), isNullable);
|
|
196
196
|
} else {
|
|
197
197
|
if (_this__u8e3s4 instanceof RecordType) {
|
|
198
|
-
tmp = new Custom(_this__u8e3s4.
|
|
198
|
+
tmp = new Custom(_this__u8e3s4.t2c_1, isNullable);
|
|
199
199
|
} else {
|
|
200
200
|
if (_this__u8e3s4 instanceof EnumType) {
|
|
201
|
-
tmp = new Custom(_this__u8e3s4.
|
|
201
|
+
tmp = new Custom(_this__u8e3s4.p2c_1, isNullable);
|
|
202
202
|
} else {
|
|
203
203
|
if (_this__u8e3s4 instanceof LogicalType) {
|
|
204
|
-
tmp = toReference(new SimpleType(_this__u8e3s4.
|
|
204
|
+
tmp = toReference(new SimpleType(_this__u8e3s4.k2c_1), $this, isNullable);
|
|
205
205
|
} else {
|
|
206
206
|
if (_this__u8e3s4 instanceof MapType) {
|
|
207
|
-
tmp = new Dict(toReference(_this__u8e3s4.
|
|
207
|
+
tmp = new Dict(toReference(_this__u8e3s4.j2c_1, $this, false), isNullable);
|
|
208
208
|
} else {
|
|
209
209
|
if (_this__u8e3s4 instanceof UnionType) {
|
|
210
|
-
tmp = new Custom(_this__u8e3s4.
|
|
210
|
+
tmp = new Custom(_this__u8e3s4.g2c_1, isNullable);
|
|
211
211
|
} else {
|
|
212
212
|
noWhenBranchMatchedException();
|
|
213
213
|
}
|
|
@@ -220,7 +220,7 @@ function toReference(_this__u8e3s4, $this, isNullable) {
|
|
|
220
220
|
return tmp;
|
|
221
221
|
}
|
|
222
222
|
function toReference_0(_this__u8e3s4, $this) {
|
|
223
|
-
var list = minus(_this__u8e3s4, $this.
|
|
223
|
+
var list = minus(_this__u8e3s4, $this.e2c_1);
|
|
224
224
|
var tmp;
|
|
225
225
|
if (list.j() === 1) {
|
|
226
226
|
tmp = toReference(first(list), $this, isNullable(_this__u8e3s4, $this));
|
|
@@ -260,29 +260,29 @@ function toReference_0(_this__u8e3s4, $this) {
|
|
|
260
260
|
return tmp;
|
|
261
261
|
}
|
|
262
262
|
function toType(_this__u8e3s4, $this) {
|
|
263
|
-
var tmp0_identifier = new DefinitionIdentifier(_this__u8e3s4.
|
|
263
|
+
var tmp0_identifier = new DefinitionIdentifier(_this__u8e3s4.t2c_1);
|
|
264
264
|
var tmp1_extends = emptyList();
|
|
265
265
|
// Inline function 'kotlin.collections.map' call
|
|
266
|
-
var this_0 = _this__u8e3s4.
|
|
266
|
+
var this_0 = _this__u8e3s4.v2c_1;
|
|
267
267
|
// Inline function 'kotlin.collections.mapTo' call
|
|
268
268
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
269
269
|
var tmp0_iterator = this_0.g();
|
|
270
270
|
while (tmp0_iterator.h()) {
|
|
271
271
|
var item = tmp0_iterator.i();
|
|
272
272
|
// Inline function 'community.flock.wirespec.converter.avro.AvroConverter.toType.<anonymous>' call
|
|
273
|
-
var tmp$ret$0 = new Field(new FieldIdentifier(item.
|
|
273
|
+
var tmp$ret$0 = new Field(new FieldIdentifier(item.z2c_1), toReference_0(item.a2d_1, AvroConverter_getInstance()));
|
|
274
274
|
destination.e(tmp$ret$0);
|
|
275
275
|
}
|
|
276
276
|
var tmp2_shape = new Shape(destination);
|
|
277
277
|
return new Type(null, tmp0_identifier, tmp2_shape, tmp1_extends);
|
|
278
278
|
}
|
|
279
279
|
function toEnum(_this__u8e3s4, $this) {
|
|
280
|
-
return new Enum(null, new DefinitionIdentifier(_this__u8e3s4.
|
|
280
|
+
return new Enum(null, new DefinitionIdentifier(_this__u8e3s4.p2c_1), toSet(_this__u8e3s4.r2c_1));
|
|
281
281
|
}
|
|
282
282
|
function toUnion(_this__u8e3s4, $this, name) {
|
|
283
283
|
var tmp = new DefinitionIdentifier(name);
|
|
284
284
|
// Inline function 'kotlin.collections.map' call
|
|
285
|
-
var this_0 = _this__u8e3s4.
|
|
285
|
+
var this_0 = _this__u8e3s4.h2c_1;
|
|
286
286
|
// Inline function 'kotlin.collections.mapTo' call
|
|
287
287
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
288
288
|
var tmp0_iterator = this_0.g();
|
|
@@ -296,9 +296,9 @@ function toUnion(_this__u8e3s4, $this, name) {
|
|
|
296
296
|
}
|
|
297
297
|
function AvroConverter() {
|
|
298
298
|
AvroConverter_instance = this;
|
|
299
|
-
this.
|
|
299
|
+
this.e2c_1 = new SimpleType('null');
|
|
300
300
|
}
|
|
301
|
-
protoOf(AvroConverter).
|
|
301
|
+
protoOf(AvroConverter).d2d = function (_this__u8e3s4, name) {
|
|
302
302
|
var tmp;
|
|
303
303
|
if (_this__u8e3s4 instanceof SimpleType) {
|
|
304
304
|
tmp = emptyList();
|
|
@@ -307,7 +307,7 @@ protoOf(AvroConverter).v2c = function (_this__u8e3s4, name) {
|
|
|
307
307
|
var tmp_0 = listOf(toType(_this__u8e3s4, this));
|
|
308
308
|
// Inline function 'kotlin.collections.flatMap' call
|
|
309
309
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
310
|
-
var this_0 = _this__u8e3s4.
|
|
310
|
+
var this_0 = _this__u8e3s4.v2c_1;
|
|
311
311
|
var destination = ArrayList_init_$Create$_0();
|
|
312
312
|
var tmp0_iterator = this_0.g();
|
|
313
313
|
while (tmp0_iterator.h()) {
|
|
@@ -315,13 +315,13 @@ protoOf(AvroConverter).v2c = function (_this__u8e3s4, name) {
|
|
|
315
315
|
// Inline function 'community.flock.wirespec.converter.avro.AvroConverter.flatten.<anonymous>' call
|
|
316
316
|
// Inline function 'kotlin.collections.flatMap' call
|
|
317
317
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
318
|
-
var this_1 = element.
|
|
318
|
+
var this_1 = element.a2d_1;
|
|
319
319
|
var destination_0 = ArrayList_init_$Create$_0();
|
|
320
320
|
var tmp0_iterator_0 = this_1.g();
|
|
321
321
|
while (tmp0_iterator_0.h()) {
|
|
322
322
|
var element_0 = tmp0_iterator_0.i();
|
|
323
323
|
// Inline function 'community.flock.wirespec.converter.avro.AvroConverter.flatten.<anonymous>.<anonymous>' call
|
|
324
|
-
var list = AvroConverter_getInstance().
|
|
324
|
+
var list = AvroConverter_getInstance().d2d(element_0, name);
|
|
325
325
|
addAll(destination_0, list);
|
|
326
326
|
}
|
|
327
327
|
var list_0 = destination_0;
|
|
@@ -330,7 +330,7 @@ protoOf(AvroConverter).v2c = function (_this__u8e3s4, name) {
|
|
|
330
330
|
tmp = plus(tmp_0, destination);
|
|
331
331
|
} else {
|
|
332
332
|
if (_this__u8e3s4 instanceof ArrayType) {
|
|
333
|
-
tmp = this.
|
|
333
|
+
tmp = this.d2d(_this__u8e3s4.y2c_1, name);
|
|
334
334
|
} else {
|
|
335
335
|
if (_this__u8e3s4 instanceof EnumType) {
|
|
336
336
|
tmp = listOf(toEnum(_this__u8e3s4, this));
|
|
@@ -339,7 +339,7 @@ protoOf(AvroConverter).v2c = function (_this__u8e3s4, name) {
|
|
|
339
339
|
tmp = emptyList();
|
|
340
340
|
} else {
|
|
341
341
|
if (_this__u8e3s4 instanceof MapType) {
|
|
342
|
-
tmp = this.
|
|
342
|
+
tmp = this.d2d(_this__u8e3s4.j2c_1, name);
|
|
343
343
|
} else {
|
|
344
344
|
if (_this__u8e3s4 instanceof UnionType) {
|
|
345
345
|
tmp = listOf(toUnion(_this__u8e3s4, this, name));
|
|
@@ -354,9 +354,9 @@ protoOf(AvroConverter).v2c = function (_this__u8e3s4, name) {
|
|
|
354
354
|
}
|
|
355
355
|
return tmp;
|
|
356
356
|
};
|
|
357
|
-
protoOf(AvroConverter).
|
|
357
|
+
protoOf(AvroConverter).e2d = function (_this__u8e3s4, name, $super) {
|
|
358
358
|
name = name === VOID ? '' : name;
|
|
359
|
-
return $super === VOID ? this.
|
|
359
|
+
return $super === VOID ? this.d2d(_this__u8e3s4, name) : $super.d2d.call(this, _this__u8e3s4, name);
|
|
360
360
|
};
|
|
361
361
|
var AvroConverter_instance;
|
|
362
362
|
function AvroConverter_getInstance() {
|
|
@@ -386,21 +386,21 @@ function findType(_this__u8e3s4, $this, name) {
|
|
|
386
386
|
function AvroEmitter() {
|
|
387
387
|
AvroEmitter_instance = this;
|
|
388
388
|
Emitter.call(this);
|
|
389
|
-
this.
|
|
390
|
-
this.
|
|
389
|
+
this.f2d_1 = FileExtension_JSON_getInstance();
|
|
390
|
+
this.g2d_1 = null;
|
|
391
391
|
}
|
|
392
392
|
protoOf(AvroEmitter).y25 = function () {
|
|
393
|
-
return this.
|
|
393
|
+
return this.f2d_1;
|
|
394
394
|
};
|
|
395
395
|
protoOf(AvroEmitter).k26 = function (type, module_0) {
|
|
396
396
|
// Inline function 'kotlin.TODO' call
|
|
397
397
|
var reason = 'Not yet implemented';
|
|
398
398
|
throw new NotImplementedError('An operation is not implemented: ' + reason);
|
|
399
399
|
};
|
|
400
|
-
protoOf(AvroEmitter).
|
|
400
|
+
protoOf(AvroEmitter).h2d = function (_this__u8e3s4) {
|
|
401
401
|
return new EnumType('enum', _this__u8e3s4.h27_1.b1(), VOID, toList(_this__u8e3s4.i27_1));
|
|
402
402
|
};
|
|
403
|
-
protoOf(AvroEmitter).
|
|
403
|
+
protoOf(AvroEmitter).i2d = function (_this__u8e3s4) {
|
|
404
404
|
var tmp = _this__u8e3s4.u26_1.b1();
|
|
405
405
|
// Inline function 'kotlin.collections.map' call
|
|
406
406
|
var this_0 = _this__u8e3s4.v26_1;
|
|
@@ -415,13 +415,13 @@ protoOf(AvroEmitter).a2d = function (_this__u8e3s4) {
|
|
|
415
415
|
}
|
|
416
416
|
return new UnionType(tmp, TypeList_init_$Create$(destination));
|
|
417
417
|
};
|
|
418
|
-
protoOf(AvroEmitter).
|
|
418
|
+
protoOf(AvroEmitter).j2d = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
419
419
|
var tmp;
|
|
420
420
|
if (_this__u8e3s4 instanceof Dict) {
|
|
421
|
-
tmp = new MapType('map', this.
|
|
421
|
+
tmp = new MapType('map', this.j2d(_this__u8e3s4.y23_1, module_0, hasEmitted));
|
|
422
422
|
} else {
|
|
423
423
|
if (_this__u8e3s4 instanceof Iterable) {
|
|
424
|
-
tmp = new ArrayType('array', this.
|
|
424
|
+
tmp = new ArrayType('array', this.j2d(_this__u8e3s4.o23_1, module_0, hasEmitted));
|
|
425
425
|
} else {
|
|
426
426
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
427
427
|
var type = _this__u8e3s4.b24_1;
|
|
@@ -488,7 +488,7 @@ protoOf(AvroEmitter).b2d = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
|
488
488
|
// Inline function 'kotlin.contracts.contract' call
|
|
489
489
|
// Inline function 'community.flock.wirespec.converter.avro.AvroEmitter.emit.<anonymous>' call
|
|
490
490
|
hasEmitted.e(def.m26_1.b1());
|
|
491
|
-
tmp_4 = this.
|
|
491
|
+
tmp_4 = this.k2d(def, module_0, hasEmitted);
|
|
492
492
|
}
|
|
493
493
|
tmp_3 = tmp_4;
|
|
494
494
|
} else {
|
|
@@ -519,17 +519,17 @@ protoOf(AvroEmitter).b2d = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
|
519
519
|
}
|
|
520
520
|
return tmp;
|
|
521
521
|
};
|
|
522
|
-
protoOf(AvroEmitter).
|
|
522
|
+
protoOf(AvroEmitter).l2d = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
523
523
|
var ref = _this__u8e3s4.j25_1;
|
|
524
524
|
var tmp;
|
|
525
525
|
if (ref instanceof Iterable) {
|
|
526
|
-
tmp = new ArrayType('array', this.
|
|
526
|
+
tmp = new ArrayType('array', this.j2d(ref.o23_1, module_0, hasEmitted));
|
|
527
527
|
} else {
|
|
528
|
-
tmp = this.
|
|
528
|
+
tmp = this.j2d(ref, module_0, hasEmitted);
|
|
529
529
|
}
|
|
530
530
|
return tmp;
|
|
531
531
|
};
|
|
532
|
-
protoOf(AvroEmitter).
|
|
532
|
+
protoOf(AvroEmitter).k2d = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
533
533
|
var tmp0_name = _this__u8e3s4.m26_1.b1();
|
|
534
534
|
// Inline function 'kotlin.collections.map' call
|
|
535
535
|
var this_0 = _this__u8e3s4.n26_1.w26_1;
|
|
@@ -542,16 +542,16 @@ protoOf(AvroEmitter).c2d = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
|
542
542
|
var tmp = item.i25_1.b1();
|
|
543
543
|
var tmp_0;
|
|
544
544
|
if (item.j25_1.gm()) {
|
|
545
|
-
tmp_0 = new TypeList([new SimpleType('null'), AvroEmitter_getInstance().
|
|
545
|
+
tmp_0 = new TypeList([new SimpleType('null'), AvroEmitter_getInstance().l2d(item, module_0, hasEmitted)]);
|
|
546
546
|
} else {
|
|
547
|
-
tmp_0 = new TypeList([AvroEmitter_getInstance().
|
|
547
|
+
tmp_0 = new TypeList([AvroEmitter_getInstance().l2d(item, module_0, hasEmitted)]);
|
|
548
548
|
}
|
|
549
549
|
var tmp$ret$0 = new Field_0(tmp, tmp_0);
|
|
550
550
|
destination.e(tmp$ret$0);
|
|
551
551
|
}
|
|
552
552
|
return new RecordType('record', tmp0_name, VOID, destination);
|
|
553
553
|
};
|
|
554
|
-
protoOf(AvroEmitter).
|
|
554
|
+
protoOf(AvroEmitter).m2d = function (module_0) {
|
|
555
555
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
556
556
|
var hasEmitted = ArrayList_init_$Create$_0();
|
|
557
557
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
@@ -566,13 +566,13 @@ protoOf(AvroEmitter).e2d = function (module_0) {
|
|
|
566
566
|
// Inline function 'community.flock.wirespec.converter.avro.AvroEmitter.emit.<anonymous>' call
|
|
567
567
|
var tmp;
|
|
568
568
|
if (element instanceof Type) {
|
|
569
|
-
tmp = AvroEmitter_getInstance().
|
|
569
|
+
tmp = AvroEmitter_getInstance().k2d(element, module_0, hasEmitted);
|
|
570
570
|
} else {
|
|
571
571
|
if (element instanceof Enum) {
|
|
572
|
-
tmp = AvroEmitter_getInstance().
|
|
572
|
+
tmp = AvroEmitter_getInstance().h2d(element);
|
|
573
573
|
} else {
|
|
574
574
|
if (element instanceof Union) {
|
|
575
|
-
tmp = AvroEmitter_getInstance().
|
|
575
|
+
tmp = AvroEmitter_getInstance().i2d(element);
|
|
576
576
|
} else {
|
|
577
577
|
tmp = null;
|
|
578
578
|
}
|
|
@@ -642,26 +642,26 @@ function $serializer() {
|
|
|
642
642
|
tmp0_serialDesc.rv('type', false);
|
|
643
643
|
tmp0_serialDesc.rv('doc', true);
|
|
644
644
|
tmp0_serialDesc.rv('default', true);
|
|
645
|
-
this.
|
|
645
|
+
this.n2d_1 = tmp0_serialDesc;
|
|
646
646
|
}
|
|
647
|
-
protoOf($serializer).
|
|
648
|
-
var tmp0_desc = this.
|
|
647
|
+
protoOf($serializer).o2d = function (encoder, value) {
|
|
648
|
+
var tmp0_desc = this.n2d_1;
|
|
649
649
|
var tmp1_output = encoder.ho(tmp0_desc);
|
|
650
|
-
tmp1_output.wp(tmp0_desc, 0, value.
|
|
651
|
-
tmp1_output.yp(tmp0_desc, 1, TypeListSerializer_getInstance(), value.
|
|
652
|
-
if (tmp1_output.eq(tmp0_desc, 2) ? true : !(value.
|
|
653
|
-
tmp1_output.aq(tmp0_desc, 2, StringSerializer_getInstance(), value.
|
|
650
|
+
tmp1_output.wp(tmp0_desc, 0, value.z2c_1);
|
|
651
|
+
tmp1_output.yp(tmp0_desc, 1, TypeListSerializer_getInstance(), value.a2d_1);
|
|
652
|
+
if (tmp1_output.eq(tmp0_desc, 2) ? true : !(value.b2d_1 == null)) {
|
|
653
|
+
tmp1_output.aq(tmp0_desc, 2, StringSerializer_getInstance(), value.b2d_1);
|
|
654
654
|
}
|
|
655
|
-
if (tmp1_output.eq(tmp0_desc, 3) ? true : !(value.
|
|
656
|
-
tmp1_output.aq(tmp0_desc, 3, StringSerializer_getInstance(), value.
|
|
655
|
+
if (tmp1_output.eq(tmp0_desc, 3) ? true : !(value.c2d_1 == null)) {
|
|
656
|
+
tmp1_output.aq(tmp0_desc, 3, StringSerializer_getInstance(), value.c2d_1);
|
|
657
657
|
}
|
|
658
658
|
tmp1_output.io(tmp0_desc);
|
|
659
659
|
};
|
|
660
660
|
protoOf($serializer).hl = function (encoder, value) {
|
|
661
|
-
return this.
|
|
661
|
+
return this.o2d(encoder, value instanceof Field_0 ? value : THROW_CCE());
|
|
662
662
|
};
|
|
663
663
|
protoOf($serializer).il = function (decoder) {
|
|
664
|
-
var tmp0_desc = this.
|
|
664
|
+
var tmp0_desc = this.n2d_1;
|
|
665
665
|
var tmp1_flag = true;
|
|
666
666
|
var tmp2_index = 0;
|
|
667
667
|
var tmp3_bitMask0 = 0;
|
|
@@ -710,7 +710,7 @@ protoOf($serializer).il = function (decoder) {
|
|
|
710
710
|
return Field_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
711
711
|
};
|
|
712
712
|
protoOf($serializer).gl = function () {
|
|
713
|
-
return this.
|
|
713
|
+
return this.n2d_1;
|
|
714
714
|
};
|
|
715
715
|
protoOf($serializer).kw = function () {
|
|
716
716
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -726,18 +726,18 @@ function $serializer_getInstance() {
|
|
|
726
726
|
}
|
|
727
727
|
function Field_init_$Init$(seen0, name, type, doc, default_0, serializationConstructorMarker, $this) {
|
|
728
728
|
if (!(3 === (3 & seen0))) {
|
|
729
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance().
|
|
729
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance().n2d_1);
|
|
730
730
|
}
|
|
731
|
-
$this.
|
|
732
|
-
$this.
|
|
731
|
+
$this.z2c_1 = name;
|
|
732
|
+
$this.a2d_1 = type;
|
|
733
733
|
if (0 === (seen0 & 4))
|
|
734
|
-
$this.
|
|
734
|
+
$this.b2d_1 = null;
|
|
735
735
|
else
|
|
736
|
-
$this.
|
|
736
|
+
$this.b2d_1 = doc;
|
|
737
737
|
if (0 === (seen0 & 8))
|
|
738
|
-
$this.
|
|
738
|
+
$this.c2d_1 = null;
|
|
739
739
|
else
|
|
740
|
-
$this.
|
|
740
|
+
$this.c2d_1 = default_0;
|
|
741
741
|
return $this;
|
|
742
742
|
}
|
|
743
743
|
function Field_init_$Create$(seen0, name, type, doc, default_0, serializationConstructorMarker) {
|
|
@@ -780,19 +780,19 @@ function $serializer_0() {
|
|
|
780
780
|
$serializer_instance_0 = this;
|
|
781
781
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.SimpleType', this, 1);
|
|
782
782
|
tmp0_serialDesc.rv('value', false);
|
|
783
|
-
this.
|
|
783
|
+
this.p2d_1 = tmp0_serialDesc;
|
|
784
784
|
}
|
|
785
|
-
protoOf($serializer_0).
|
|
786
|
-
var tmp0_desc = this.
|
|
785
|
+
protoOf($serializer_0).q2d = function (encoder, value) {
|
|
786
|
+
var tmp0_desc = this.p2d_1;
|
|
787
787
|
var tmp1_output = encoder.ho(tmp0_desc);
|
|
788
|
-
tmp1_output.wp(tmp0_desc, 0, value.
|
|
788
|
+
tmp1_output.wp(tmp0_desc, 0, value.f2c_1);
|
|
789
789
|
tmp1_output.io(tmp0_desc);
|
|
790
790
|
};
|
|
791
791
|
protoOf($serializer_0).hl = function (encoder, value) {
|
|
792
|
-
return this.
|
|
792
|
+
return this.q2d(encoder, value instanceof SimpleType ? value : THROW_CCE());
|
|
793
793
|
};
|
|
794
794
|
protoOf($serializer_0).il = function (decoder) {
|
|
795
|
-
var tmp0_desc = this.
|
|
795
|
+
var tmp0_desc = this.p2d_1;
|
|
796
796
|
var tmp1_flag = true;
|
|
797
797
|
var tmp2_index = 0;
|
|
798
798
|
var tmp3_bitMask0 = 0;
|
|
@@ -820,7 +820,7 @@ protoOf($serializer_0).il = function (decoder) {
|
|
|
820
820
|
return SimpleType_init_$Create$(tmp3_bitMask0, tmp4_local0, null);
|
|
821
821
|
};
|
|
822
822
|
protoOf($serializer_0).gl = function () {
|
|
823
|
-
return this.
|
|
823
|
+
return this.p2d_1;
|
|
824
824
|
};
|
|
825
825
|
protoOf($serializer_0).kw = function () {
|
|
826
826
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -836,9 +836,9 @@ function $serializer_getInstance_0() {
|
|
|
836
836
|
}
|
|
837
837
|
function SimpleType_init_$Init$(seen0, value, serializationConstructorMarker, $this) {
|
|
838
838
|
if (!(1 === (1 & seen0))) {
|
|
839
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_0().
|
|
839
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_0().p2d_1);
|
|
840
840
|
}
|
|
841
|
-
$this.
|
|
841
|
+
$this.f2c_1 = value;
|
|
842
842
|
return $this;
|
|
843
843
|
}
|
|
844
844
|
function SimpleType_init_$Create$(seen0, value, serializationConstructorMarker) {
|
|
@@ -850,7 +850,7 @@ function Companion_3() {
|
|
|
850
850
|
// Inline function 'kotlin.arrayOf' call
|
|
851
851
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
852
852
|
// Inline function 'kotlin.js.asDynamic' call
|
|
853
|
-
tmp.
|
|
853
|
+
tmp.r2d_1 = [null, null, null, new ArrayListSerializer($serializer_getInstance()), null];
|
|
854
854
|
}
|
|
855
855
|
protoOf(Companion_3).v17 = function () {
|
|
856
856
|
return $serializer_getInstance_1();
|
|
@@ -869,28 +869,28 @@ function $serializer_1() {
|
|
|
869
869
|
tmp0_serialDesc.rv('namespace', true);
|
|
870
870
|
tmp0_serialDesc.rv('fields', false);
|
|
871
871
|
tmp0_serialDesc.rv('doc', true);
|
|
872
|
-
this.
|
|
872
|
+
this.s2d_1 = tmp0_serialDesc;
|
|
873
873
|
}
|
|
874
|
-
protoOf($serializer_1).
|
|
875
|
-
var tmp0_desc = this.
|
|
874
|
+
protoOf($serializer_1).t2d = function (encoder, value) {
|
|
875
|
+
var tmp0_desc = this.s2d_1;
|
|
876
876
|
var tmp1_output = encoder.ho(tmp0_desc);
|
|
877
|
-
var tmp2_cached = Companion_getInstance_3().
|
|
878
|
-
tmp1_output.wp(tmp0_desc, 0, value.
|
|
879
|
-
tmp1_output.wp(tmp0_desc, 1, value.
|
|
880
|
-
if (tmp1_output.eq(tmp0_desc, 2) ? true : !(value.
|
|
881
|
-
tmp1_output.aq(tmp0_desc, 2, StringSerializer_getInstance(), value.
|
|
877
|
+
var tmp2_cached = Companion_getInstance_3().r2d_1;
|
|
878
|
+
tmp1_output.wp(tmp0_desc, 0, value.s2c_1);
|
|
879
|
+
tmp1_output.wp(tmp0_desc, 1, value.t2c_1);
|
|
880
|
+
if (tmp1_output.eq(tmp0_desc, 2) ? true : !(value.u2c_1 == null)) {
|
|
881
|
+
tmp1_output.aq(tmp0_desc, 2, StringSerializer_getInstance(), value.u2c_1);
|
|
882
882
|
}
|
|
883
|
-
tmp1_output.yp(tmp0_desc, 3, tmp2_cached[3], value.
|
|
884
|
-
if (tmp1_output.eq(tmp0_desc, 4) ? true : !(value.
|
|
885
|
-
tmp1_output.aq(tmp0_desc, 4, StringSerializer_getInstance(), value.
|
|
883
|
+
tmp1_output.yp(tmp0_desc, 3, tmp2_cached[3], value.v2c_1);
|
|
884
|
+
if (tmp1_output.eq(tmp0_desc, 4) ? true : !(value.w2c_1 == null)) {
|
|
885
|
+
tmp1_output.aq(tmp0_desc, 4, StringSerializer_getInstance(), value.w2c_1);
|
|
886
886
|
}
|
|
887
887
|
tmp1_output.io(tmp0_desc);
|
|
888
888
|
};
|
|
889
889
|
protoOf($serializer_1).hl = function (encoder, value) {
|
|
890
|
-
return this.
|
|
890
|
+
return this.t2d(encoder, value instanceof RecordType ? value : THROW_CCE());
|
|
891
891
|
};
|
|
892
892
|
protoOf($serializer_1).il = function (decoder) {
|
|
893
|
-
var tmp0_desc = this.
|
|
893
|
+
var tmp0_desc = this.s2d_1;
|
|
894
894
|
var tmp1_flag = true;
|
|
895
895
|
var tmp2_index = 0;
|
|
896
896
|
var tmp3_bitMask0 = 0;
|
|
@@ -900,7 +900,7 @@ protoOf($serializer_1).il = function (decoder) {
|
|
|
900
900
|
var tmp7_local3 = null;
|
|
901
901
|
var tmp8_local4 = null;
|
|
902
902
|
var tmp9_input = decoder.ho(tmp0_desc);
|
|
903
|
-
var tmp10_cached = Companion_getInstance_3().
|
|
903
|
+
var tmp10_cached = Companion_getInstance_3().r2d_1;
|
|
904
904
|
if (tmp9_input.xo()) {
|
|
905
905
|
tmp4_local0 = tmp9_input.ro(tmp0_desc, 0);
|
|
906
906
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -947,10 +947,10 @@ protoOf($serializer_1).il = function (decoder) {
|
|
|
947
947
|
return RecordType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null);
|
|
948
948
|
};
|
|
949
949
|
protoOf($serializer_1).gl = function () {
|
|
950
|
-
return this.
|
|
950
|
+
return this.s2d_1;
|
|
951
951
|
};
|
|
952
952
|
protoOf($serializer_1).kw = function () {
|
|
953
|
-
var tmp0_cached = Companion_getInstance_3().
|
|
953
|
+
var tmp0_cached = Companion_getInstance_3().r2d_1;
|
|
954
954
|
// Inline function 'kotlin.arrayOf' call
|
|
955
955
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
956
956
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -964,19 +964,19 @@ function $serializer_getInstance_1() {
|
|
|
964
964
|
}
|
|
965
965
|
function RecordType_init_$Init$(seen0, type, name, namespace, fields, doc, serializationConstructorMarker, $this) {
|
|
966
966
|
if (!(11 === (11 & seen0))) {
|
|
967
|
-
throwMissingFieldException(seen0, 11, $serializer_getInstance_1().
|
|
967
|
+
throwMissingFieldException(seen0, 11, $serializer_getInstance_1().s2d_1);
|
|
968
968
|
}
|
|
969
|
-
$this.
|
|
970
|
-
$this.
|
|
969
|
+
$this.s2c_1 = type;
|
|
970
|
+
$this.t2c_1 = name;
|
|
971
971
|
if (0 === (seen0 & 4))
|
|
972
|
-
$this.
|
|
972
|
+
$this.u2c_1 = null;
|
|
973
973
|
else
|
|
974
|
-
$this.
|
|
975
|
-
$this.
|
|
974
|
+
$this.u2c_1 = namespace;
|
|
975
|
+
$this.v2c_1 = fields;
|
|
976
976
|
if (0 === (seen0 & 16))
|
|
977
|
-
$this.
|
|
977
|
+
$this.w2c_1 = null;
|
|
978
978
|
else
|
|
979
|
-
$this.
|
|
979
|
+
$this.w2c_1 = doc;
|
|
980
980
|
return $this;
|
|
981
981
|
}
|
|
982
982
|
function RecordType_init_$Create$(seen0, type, name, namespace, fields, doc, serializationConstructorMarker) {
|
|
@@ -996,20 +996,20 @@ function $serializer_2() {
|
|
|
996
996
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.ArrayType', this, 2);
|
|
997
997
|
tmp0_serialDesc.rv('type', false);
|
|
998
998
|
tmp0_serialDesc.rv('items', false);
|
|
999
|
-
this.
|
|
999
|
+
this.u2d_1 = tmp0_serialDesc;
|
|
1000
1000
|
}
|
|
1001
|
-
protoOf($serializer_2).
|
|
1002
|
-
var tmp0_desc = this.
|
|
1001
|
+
protoOf($serializer_2).v2d = function (encoder, value) {
|
|
1002
|
+
var tmp0_desc = this.u2d_1;
|
|
1003
1003
|
var tmp1_output = encoder.ho(tmp0_desc);
|
|
1004
|
-
tmp1_output.wp(tmp0_desc, 0, value.
|
|
1005
|
-
tmp1_output.yp(tmp0_desc, 1, TypeSerializer_getInstance(), value.
|
|
1004
|
+
tmp1_output.wp(tmp0_desc, 0, value.x2c_1);
|
|
1005
|
+
tmp1_output.yp(tmp0_desc, 1, TypeSerializer_getInstance(), value.y2c_1);
|
|
1006
1006
|
tmp1_output.io(tmp0_desc);
|
|
1007
1007
|
};
|
|
1008
1008
|
protoOf($serializer_2).hl = function (encoder, value) {
|
|
1009
|
-
return this.
|
|
1009
|
+
return this.v2d(encoder, value instanceof ArrayType ? value : THROW_CCE());
|
|
1010
1010
|
};
|
|
1011
1011
|
protoOf($serializer_2).il = function (decoder) {
|
|
1012
|
-
var tmp0_desc = this.
|
|
1012
|
+
var tmp0_desc = this.u2d_1;
|
|
1013
1013
|
var tmp1_flag = true;
|
|
1014
1014
|
var tmp2_index = 0;
|
|
1015
1015
|
var tmp3_bitMask0 = 0;
|
|
@@ -1044,7 +1044,7 @@ protoOf($serializer_2).il = function (decoder) {
|
|
|
1044
1044
|
return ArrayType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1045
1045
|
};
|
|
1046
1046
|
protoOf($serializer_2).gl = function () {
|
|
1047
|
-
return this.
|
|
1047
|
+
return this.u2d_1;
|
|
1048
1048
|
};
|
|
1049
1049
|
protoOf($serializer_2).kw = function () {
|
|
1050
1050
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -1060,10 +1060,10 @@ function $serializer_getInstance_2() {
|
|
|
1060
1060
|
}
|
|
1061
1061
|
function ArrayType_init_$Init$(seen0, type, items, serializationConstructorMarker, $this) {
|
|
1062
1062
|
if (!(3 === (3 & seen0))) {
|
|
1063
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().
|
|
1063
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().u2d_1);
|
|
1064
1064
|
}
|
|
1065
|
-
$this.
|
|
1066
|
-
$this.
|
|
1065
|
+
$this.x2c_1 = type;
|
|
1066
|
+
$this.y2c_1 = items;
|
|
1067
1067
|
return $this;
|
|
1068
1068
|
}
|
|
1069
1069
|
function ArrayType_init_$Create$(seen0, type, items, serializationConstructorMarker) {
|
|
@@ -1083,20 +1083,20 @@ function $serializer_3() {
|
|
|
1083
1083
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.MapType', this, 2);
|
|
1084
1084
|
tmp0_serialDesc.rv('type', false);
|
|
1085
1085
|
tmp0_serialDesc.rv('values', false);
|
|
1086
|
-
this.
|
|
1086
|
+
this.w2d_1 = tmp0_serialDesc;
|
|
1087
1087
|
}
|
|
1088
|
-
protoOf($serializer_3).
|
|
1089
|
-
var tmp0_desc = this.
|
|
1088
|
+
protoOf($serializer_3).x2d = function (encoder, value) {
|
|
1089
|
+
var tmp0_desc = this.w2d_1;
|
|
1090
1090
|
var tmp1_output = encoder.ho(tmp0_desc);
|
|
1091
|
-
tmp1_output.wp(tmp0_desc, 0, value.
|
|
1092
|
-
tmp1_output.yp(tmp0_desc, 1, TypeSerializer_getInstance(), value.
|
|
1091
|
+
tmp1_output.wp(tmp0_desc, 0, value.i2c_1);
|
|
1092
|
+
tmp1_output.yp(tmp0_desc, 1, TypeSerializer_getInstance(), value.j2c_1);
|
|
1093
1093
|
tmp1_output.io(tmp0_desc);
|
|
1094
1094
|
};
|
|
1095
1095
|
protoOf($serializer_3).hl = function (encoder, value) {
|
|
1096
|
-
return this.
|
|
1096
|
+
return this.x2d(encoder, value instanceof MapType ? value : THROW_CCE());
|
|
1097
1097
|
};
|
|
1098
1098
|
protoOf($serializer_3).il = function (decoder) {
|
|
1099
|
-
var tmp0_desc = this.
|
|
1099
|
+
var tmp0_desc = this.w2d_1;
|
|
1100
1100
|
var tmp1_flag = true;
|
|
1101
1101
|
var tmp2_index = 0;
|
|
1102
1102
|
var tmp3_bitMask0 = 0;
|
|
@@ -1131,7 +1131,7 @@ protoOf($serializer_3).il = function (decoder) {
|
|
|
1131
1131
|
return MapType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1132
1132
|
};
|
|
1133
1133
|
protoOf($serializer_3).gl = function () {
|
|
1134
|
-
return this.
|
|
1134
|
+
return this.w2d_1;
|
|
1135
1135
|
};
|
|
1136
1136
|
protoOf($serializer_3).kw = function () {
|
|
1137
1137
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -1147,10 +1147,10 @@ function $serializer_getInstance_3() {
|
|
|
1147
1147
|
}
|
|
1148
1148
|
function MapType_init_$Init$(seen0, type, values, serializationConstructorMarker, $this) {
|
|
1149
1149
|
if (!(3 === (3 & seen0))) {
|
|
1150
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_3().
|
|
1150
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_3().w2d_1);
|
|
1151
1151
|
}
|
|
1152
|
-
$this.
|
|
1153
|
-
$this.
|
|
1152
|
+
$this.i2c_1 = type;
|
|
1153
|
+
$this.j2c_1 = values;
|
|
1154
1154
|
return $this;
|
|
1155
1155
|
}
|
|
1156
1156
|
function MapType_init_$Create$(seen0, type, values, serializationConstructorMarker) {
|
|
@@ -1162,7 +1162,7 @@ function Companion_6() {
|
|
|
1162
1162
|
// Inline function 'kotlin.arrayOf' call
|
|
1163
1163
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1164
1164
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1165
|
-
tmp.
|
|
1165
|
+
tmp.y2d_1 = [null, null, null, new ArrayListSerializer(StringSerializer_getInstance())];
|
|
1166
1166
|
}
|
|
1167
1167
|
protoOf(Companion_6).v17 = function () {
|
|
1168
1168
|
return $serializer_getInstance_4();
|
|
@@ -1180,25 +1180,25 @@ function $serializer_4() {
|
|
|
1180
1180
|
tmp0_serialDesc.rv('name', false);
|
|
1181
1181
|
tmp0_serialDesc.rv('doc', true);
|
|
1182
1182
|
tmp0_serialDesc.rv('symbols', false);
|
|
1183
|
-
this.
|
|
1183
|
+
this.z2d_1 = tmp0_serialDesc;
|
|
1184
1184
|
}
|
|
1185
|
-
protoOf($serializer_4).
|
|
1186
|
-
var tmp0_desc = this.
|
|
1185
|
+
protoOf($serializer_4).a2e = function (encoder, value) {
|
|
1186
|
+
var tmp0_desc = this.z2d_1;
|
|
1187
1187
|
var tmp1_output = encoder.ho(tmp0_desc);
|
|
1188
|
-
var tmp2_cached = Companion_getInstance_6().
|
|
1189
|
-
tmp1_output.wp(tmp0_desc, 0, value.
|
|
1190
|
-
tmp1_output.wp(tmp0_desc, 1, value.
|
|
1191
|
-
if (tmp1_output.eq(tmp0_desc, 2) ? true : !(value.
|
|
1192
|
-
tmp1_output.aq(tmp0_desc, 2, StringSerializer_getInstance(), value.
|
|
1188
|
+
var tmp2_cached = Companion_getInstance_6().y2d_1;
|
|
1189
|
+
tmp1_output.wp(tmp0_desc, 0, value.o2c_1);
|
|
1190
|
+
tmp1_output.wp(tmp0_desc, 1, value.p2c_1);
|
|
1191
|
+
if (tmp1_output.eq(tmp0_desc, 2) ? true : !(value.q2c_1 == null)) {
|
|
1192
|
+
tmp1_output.aq(tmp0_desc, 2, StringSerializer_getInstance(), value.q2c_1);
|
|
1193
1193
|
}
|
|
1194
|
-
tmp1_output.yp(tmp0_desc, 3, tmp2_cached[3], value.
|
|
1194
|
+
tmp1_output.yp(tmp0_desc, 3, tmp2_cached[3], value.r2c_1);
|
|
1195
1195
|
tmp1_output.io(tmp0_desc);
|
|
1196
1196
|
};
|
|
1197
1197
|
protoOf($serializer_4).hl = function (encoder, value) {
|
|
1198
|
-
return this.
|
|
1198
|
+
return this.a2e(encoder, value instanceof EnumType ? value : THROW_CCE());
|
|
1199
1199
|
};
|
|
1200
1200
|
protoOf($serializer_4).il = function (decoder) {
|
|
1201
|
-
var tmp0_desc = this.
|
|
1201
|
+
var tmp0_desc = this.z2d_1;
|
|
1202
1202
|
var tmp1_flag = true;
|
|
1203
1203
|
var tmp2_index = 0;
|
|
1204
1204
|
var tmp3_bitMask0 = 0;
|
|
@@ -1207,7 +1207,7 @@ protoOf($serializer_4).il = function (decoder) {
|
|
|
1207
1207
|
var tmp6_local2 = null;
|
|
1208
1208
|
var tmp7_local3 = null;
|
|
1209
1209
|
var tmp8_input = decoder.ho(tmp0_desc);
|
|
1210
|
-
var tmp9_cached = Companion_getInstance_6().
|
|
1210
|
+
var tmp9_cached = Companion_getInstance_6().y2d_1;
|
|
1211
1211
|
if (tmp8_input.xo()) {
|
|
1212
1212
|
tmp4_local0 = tmp8_input.ro(tmp0_desc, 0);
|
|
1213
1213
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -1248,10 +1248,10 @@ protoOf($serializer_4).il = function (decoder) {
|
|
|
1248
1248
|
return EnumType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
1249
1249
|
};
|
|
1250
1250
|
protoOf($serializer_4).gl = function () {
|
|
1251
|
-
return this.
|
|
1251
|
+
return this.z2d_1;
|
|
1252
1252
|
};
|
|
1253
1253
|
protoOf($serializer_4).kw = function () {
|
|
1254
|
-
var tmp0_cached = Companion_getInstance_6().
|
|
1254
|
+
var tmp0_cached = Companion_getInstance_6().y2d_1;
|
|
1255
1255
|
// Inline function 'kotlin.arrayOf' call
|
|
1256
1256
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1257
1257
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1265,15 +1265,15 @@ function $serializer_getInstance_4() {
|
|
|
1265
1265
|
}
|
|
1266
1266
|
function EnumType_init_$Init$(seen0, type, name, doc, symbols, serializationConstructorMarker, $this) {
|
|
1267
1267
|
if (!(11 === (11 & seen0))) {
|
|
1268
|
-
throwMissingFieldException(seen0, 11, $serializer_getInstance_4().
|
|
1268
|
+
throwMissingFieldException(seen0, 11, $serializer_getInstance_4().z2d_1);
|
|
1269
1269
|
}
|
|
1270
|
-
$this.
|
|
1271
|
-
$this.
|
|
1270
|
+
$this.o2c_1 = type;
|
|
1271
|
+
$this.p2c_1 = name;
|
|
1272
1272
|
if (0 === (seen0 & 4))
|
|
1273
|
-
$this.
|
|
1273
|
+
$this.q2c_1 = null;
|
|
1274
1274
|
else
|
|
1275
|
-
$this.
|
|
1276
|
-
$this.
|
|
1275
|
+
$this.q2c_1 = doc;
|
|
1276
|
+
$this.r2c_1 = symbols;
|
|
1277
1277
|
return $this;
|
|
1278
1278
|
}
|
|
1279
1279
|
function EnumType_init_$Create$(seen0, type, name, doc, symbols, serializationConstructorMarker) {
|
|
@@ -1293,20 +1293,20 @@ function $serializer_5() {
|
|
|
1293
1293
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.UnionType', this, 2);
|
|
1294
1294
|
tmp0_serialDesc.rv('name', false);
|
|
1295
1295
|
tmp0_serialDesc.rv('type', false);
|
|
1296
|
-
this.
|
|
1296
|
+
this.b2e_1 = tmp0_serialDesc;
|
|
1297
1297
|
}
|
|
1298
|
-
protoOf($serializer_5).
|
|
1299
|
-
var tmp0_desc = this.
|
|
1298
|
+
protoOf($serializer_5).c2e = function (encoder, value) {
|
|
1299
|
+
var tmp0_desc = this.b2e_1;
|
|
1300
1300
|
var tmp1_output = encoder.ho(tmp0_desc);
|
|
1301
|
-
tmp1_output.wp(tmp0_desc, 0, value.
|
|
1302
|
-
tmp1_output.yp(tmp0_desc, 1, TypeListSerializer_getInstance(), value.
|
|
1301
|
+
tmp1_output.wp(tmp0_desc, 0, value.g2c_1);
|
|
1302
|
+
tmp1_output.yp(tmp0_desc, 1, TypeListSerializer_getInstance(), value.h2c_1);
|
|
1303
1303
|
tmp1_output.io(tmp0_desc);
|
|
1304
1304
|
};
|
|
1305
1305
|
protoOf($serializer_5).hl = function (encoder, value) {
|
|
1306
|
-
return this.
|
|
1306
|
+
return this.c2e(encoder, value instanceof UnionType ? value : THROW_CCE());
|
|
1307
1307
|
};
|
|
1308
1308
|
protoOf($serializer_5).il = function (decoder) {
|
|
1309
|
-
var tmp0_desc = this.
|
|
1309
|
+
var tmp0_desc = this.b2e_1;
|
|
1310
1310
|
var tmp1_flag = true;
|
|
1311
1311
|
var tmp2_index = 0;
|
|
1312
1312
|
var tmp3_bitMask0 = 0;
|
|
@@ -1341,7 +1341,7 @@ protoOf($serializer_5).il = function (decoder) {
|
|
|
1341
1341
|
return UnionType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1342
1342
|
};
|
|
1343
1343
|
protoOf($serializer_5).gl = function () {
|
|
1344
|
-
return this.
|
|
1344
|
+
return this.b2e_1;
|
|
1345
1345
|
};
|
|
1346
1346
|
protoOf($serializer_5).kw = function () {
|
|
1347
1347
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -1357,10 +1357,10 @@ function $serializer_getInstance_5() {
|
|
|
1357
1357
|
}
|
|
1358
1358
|
function UnionType_init_$Init$(seen0, name, type, serializationConstructorMarker, $this) {
|
|
1359
1359
|
if (!(3 === (3 & seen0))) {
|
|
1360
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_5().
|
|
1360
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_5().b2e_1);
|
|
1361
1361
|
}
|
|
1362
|
-
$this.
|
|
1363
|
-
$this.
|
|
1362
|
+
$this.g2c_1 = name;
|
|
1363
|
+
$this.h2c_1 = type;
|
|
1364
1364
|
return $this;
|
|
1365
1365
|
}
|
|
1366
1366
|
function UnionType_init_$Create$(seen0, name, type, serializationConstructorMarker) {
|
|
@@ -1382,26 +1382,26 @@ function $serializer_6() {
|
|
|
1382
1382
|
tmp0_serialDesc.rv('logicalType', false);
|
|
1383
1383
|
tmp0_serialDesc.rv('precision', true);
|
|
1384
1384
|
tmp0_serialDesc.rv('scale', true);
|
|
1385
|
-
this.
|
|
1385
|
+
this.d2e_1 = tmp0_serialDesc;
|
|
1386
1386
|
}
|
|
1387
|
-
protoOf($serializer_6).
|
|
1388
|
-
var tmp0_desc = this.
|
|
1387
|
+
protoOf($serializer_6).e2e = function (encoder, value) {
|
|
1388
|
+
var tmp0_desc = this.d2e_1;
|
|
1389
1389
|
var tmp1_output = encoder.ho(tmp0_desc);
|
|
1390
|
-
tmp1_output.wp(tmp0_desc, 0, value.
|
|
1391
|
-
tmp1_output.wp(tmp0_desc, 1, value.
|
|
1392
|
-
if (tmp1_output.eq(tmp0_desc, 2) ? true : !(value.
|
|
1393
|
-
tmp1_output.aq(tmp0_desc, 2, IntSerializer_getInstance(), value.
|
|
1390
|
+
tmp1_output.wp(tmp0_desc, 0, value.k2c_1);
|
|
1391
|
+
tmp1_output.wp(tmp0_desc, 1, value.l2c_1);
|
|
1392
|
+
if (tmp1_output.eq(tmp0_desc, 2) ? true : !(value.m2c_1 == null)) {
|
|
1393
|
+
tmp1_output.aq(tmp0_desc, 2, IntSerializer_getInstance(), value.m2c_1);
|
|
1394
1394
|
}
|
|
1395
|
-
if (tmp1_output.eq(tmp0_desc, 3) ? true : !(value.
|
|
1396
|
-
tmp1_output.aq(tmp0_desc, 3, IntSerializer_getInstance(), value.
|
|
1395
|
+
if (tmp1_output.eq(tmp0_desc, 3) ? true : !(value.n2c_1 == null)) {
|
|
1396
|
+
tmp1_output.aq(tmp0_desc, 3, IntSerializer_getInstance(), value.n2c_1);
|
|
1397
1397
|
}
|
|
1398
1398
|
tmp1_output.io(tmp0_desc);
|
|
1399
1399
|
};
|
|
1400
1400
|
protoOf($serializer_6).hl = function (encoder, value) {
|
|
1401
|
-
return this.
|
|
1401
|
+
return this.e2e(encoder, value instanceof LogicalType ? value : THROW_CCE());
|
|
1402
1402
|
};
|
|
1403
1403
|
protoOf($serializer_6).il = function (decoder) {
|
|
1404
|
-
var tmp0_desc = this.
|
|
1404
|
+
var tmp0_desc = this.d2e_1;
|
|
1405
1405
|
var tmp1_flag = true;
|
|
1406
1406
|
var tmp2_index = 0;
|
|
1407
1407
|
var tmp3_bitMask0 = 0;
|
|
@@ -1450,7 +1450,7 @@ protoOf($serializer_6).il = function (decoder) {
|
|
|
1450
1450
|
return LogicalType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
1451
1451
|
};
|
|
1452
1452
|
protoOf($serializer_6).gl = function () {
|
|
1453
|
-
return this.
|
|
1453
|
+
return this.d2e_1;
|
|
1454
1454
|
};
|
|
1455
1455
|
protoOf($serializer_6).kw = function () {
|
|
1456
1456
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -1466,18 +1466,18 @@ function $serializer_getInstance_6() {
|
|
|
1466
1466
|
}
|
|
1467
1467
|
function LogicalType_init_$Init$(seen0, type, logicalType, precision, scale, serializationConstructorMarker, $this) {
|
|
1468
1468
|
if (!(3 === (3 & seen0))) {
|
|
1469
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_6().
|
|
1469
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_6().d2e_1);
|
|
1470
1470
|
}
|
|
1471
|
-
$this.
|
|
1472
|
-
$this.
|
|
1471
|
+
$this.k2c_1 = type;
|
|
1472
|
+
$this.l2c_1 = logicalType;
|
|
1473
1473
|
if (0 === (seen0 & 4))
|
|
1474
|
-
$this.
|
|
1474
|
+
$this.m2c_1 = null;
|
|
1475
1475
|
else
|
|
1476
|
-
$this.
|
|
1476
|
+
$this.m2c_1 = precision;
|
|
1477
1477
|
if (0 === (seen0 & 8))
|
|
1478
|
-
$this.
|
|
1478
|
+
$this.n2c_1 = null;
|
|
1479
1479
|
else
|
|
1480
|
-
$this.
|
|
1480
|
+
$this.n2c_1 = scale;
|
|
1481
1481
|
return $this;
|
|
1482
1482
|
}
|
|
1483
1483
|
function LogicalType_init_$Create$(seen0, type, logicalType, precision, scale, serializationConstructorMarker) {
|
|
@@ -1486,19 +1486,19 @@ function LogicalType_init_$Create$(seen0, type, logicalType, precision, scale, s
|
|
|
1486
1486
|
function Field_0(name, type, doc, default_0) {
|
|
1487
1487
|
doc = doc === VOID ? null : doc;
|
|
1488
1488
|
default_0 = default_0 === VOID ? null : default_0;
|
|
1489
|
-
this.
|
|
1490
|
-
this.
|
|
1491
|
-
this.
|
|
1492
|
-
this.
|
|
1489
|
+
this.z2c_1 = name;
|
|
1490
|
+
this.a2d_1 = type;
|
|
1491
|
+
this.b2d_1 = doc;
|
|
1492
|
+
this.c2d_1 = default_0;
|
|
1493
1493
|
}
|
|
1494
1494
|
protoOf(Field_0).toString = function () {
|
|
1495
|
-
return 'Field(name=' + this.
|
|
1495
|
+
return 'Field(name=' + this.z2c_1 + ', type=' + this.a2d_1.toString() + ', doc=' + this.b2d_1 + ', default=' + this.c2d_1 + ')';
|
|
1496
1496
|
};
|
|
1497
1497
|
protoOf(Field_0).hashCode = function () {
|
|
1498
|
-
var result = getStringHashCode(this.
|
|
1499
|
-
result = imul(result, 31) + this.
|
|
1500
|
-
result = imul(result, 31) + (this.
|
|
1501
|
-
result = imul(result, 31) + (this.
|
|
1498
|
+
var result = getStringHashCode(this.z2c_1);
|
|
1499
|
+
result = imul(result, 31) + this.a2d_1.hashCode() | 0;
|
|
1500
|
+
result = imul(result, 31) + (this.b2d_1 == null ? 0 : getStringHashCode(this.b2d_1)) | 0;
|
|
1501
|
+
result = imul(result, 31) + (this.c2d_1 == null ? 0 : getStringHashCode(this.c2d_1)) | 0;
|
|
1502
1502
|
return result;
|
|
1503
1503
|
};
|
|
1504
1504
|
protoOf(Field_0).equals = function (other) {
|
|
@@ -1507,37 +1507,37 @@ protoOf(Field_0).equals = function (other) {
|
|
|
1507
1507
|
if (!(other instanceof Field_0))
|
|
1508
1508
|
return false;
|
|
1509
1509
|
var tmp0_other_with_cast = other instanceof Field_0 ? other : THROW_CCE();
|
|
1510
|
-
if (!(this.
|
|
1510
|
+
if (!(this.z2c_1 === tmp0_other_with_cast.z2c_1))
|
|
1511
1511
|
return false;
|
|
1512
|
-
if (!this.
|
|
1512
|
+
if (!this.a2d_1.equals(tmp0_other_with_cast.a2d_1))
|
|
1513
1513
|
return false;
|
|
1514
|
-
if (!(this.
|
|
1514
|
+
if (!(this.b2d_1 == tmp0_other_with_cast.b2d_1))
|
|
1515
1515
|
return false;
|
|
1516
|
-
if (!(this.
|
|
1516
|
+
if (!(this.c2d_1 == tmp0_other_with_cast.c2d_1))
|
|
1517
1517
|
return false;
|
|
1518
1518
|
return true;
|
|
1519
1519
|
};
|
|
1520
1520
|
function TypeList(type) {
|
|
1521
1521
|
AbstractList.call(this);
|
|
1522
|
-
this.
|
|
1523
|
-
this.
|
|
1522
|
+
this.f2e_1 = toList_0(type);
|
|
1523
|
+
this.g2e_1 = this.f2e_1.j();
|
|
1524
1524
|
}
|
|
1525
1525
|
protoOf(TypeList).j = function () {
|
|
1526
|
-
return this.
|
|
1526
|
+
return this.g2e_1;
|
|
1527
1527
|
};
|
|
1528
1528
|
protoOf(TypeList).k = function (index) {
|
|
1529
|
-
return this.
|
|
1529
|
+
return this.f2e_1.k(index);
|
|
1530
1530
|
};
|
|
1531
1531
|
function Type_0() {
|
|
1532
1532
|
}
|
|
1533
1533
|
function SimpleType(value) {
|
|
1534
|
-
this.
|
|
1534
|
+
this.f2c_1 = value;
|
|
1535
1535
|
}
|
|
1536
1536
|
protoOf(SimpleType).toString = function () {
|
|
1537
|
-
return 'SimpleType(value=' + this.
|
|
1537
|
+
return 'SimpleType(value=' + this.f2c_1 + ')';
|
|
1538
1538
|
};
|
|
1539
1539
|
protoOf(SimpleType).hashCode = function () {
|
|
1540
|
-
return getStringHashCode(this.
|
|
1540
|
+
return getStringHashCode(this.f2c_1);
|
|
1541
1541
|
};
|
|
1542
1542
|
protoOf(SimpleType).equals = function (other) {
|
|
1543
1543
|
if (this === other)
|
|
@@ -1545,7 +1545,7 @@ protoOf(SimpleType).equals = function (other) {
|
|
|
1545
1545
|
if (!(other instanceof SimpleType))
|
|
1546
1546
|
return false;
|
|
1547
1547
|
var tmp0_other_with_cast = other instanceof SimpleType ? other : THROW_CCE();
|
|
1548
|
-
if (!(this.
|
|
1548
|
+
if (!(this.f2c_1 === tmp0_other_with_cast.f2c_1))
|
|
1549
1549
|
return false;
|
|
1550
1550
|
return true;
|
|
1551
1551
|
};
|
|
@@ -1553,21 +1553,21 @@ function RecordType(type, name, namespace, fields, doc) {
|
|
|
1553
1553
|
Companion_getInstance_3();
|
|
1554
1554
|
namespace = namespace === VOID ? null : namespace;
|
|
1555
1555
|
doc = doc === VOID ? null : doc;
|
|
1556
|
-
this.
|
|
1557
|
-
this.
|
|
1558
|
-
this.
|
|
1559
|
-
this.
|
|
1560
|
-
this.
|
|
1556
|
+
this.s2c_1 = type;
|
|
1557
|
+
this.t2c_1 = name;
|
|
1558
|
+
this.u2c_1 = namespace;
|
|
1559
|
+
this.v2c_1 = fields;
|
|
1560
|
+
this.w2c_1 = doc;
|
|
1561
1561
|
}
|
|
1562
1562
|
protoOf(RecordType).toString = function () {
|
|
1563
|
-
return 'RecordType(type=' + this.
|
|
1563
|
+
return 'RecordType(type=' + this.s2c_1 + ', name=' + this.t2c_1 + ', namespace=' + this.u2c_1 + ', fields=' + toString(this.v2c_1) + ', doc=' + this.w2c_1 + ')';
|
|
1564
1564
|
};
|
|
1565
1565
|
protoOf(RecordType).hashCode = function () {
|
|
1566
|
-
var result = getStringHashCode(this.
|
|
1567
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1568
|
-
result = imul(result, 31) + (this.
|
|
1569
|
-
result = imul(result, 31) + hashCode(this.
|
|
1570
|
-
result = imul(result, 31) + (this.
|
|
1566
|
+
var result = getStringHashCode(this.s2c_1);
|
|
1567
|
+
result = imul(result, 31) + getStringHashCode(this.t2c_1) | 0;
|
|
1568
|
+
result = imul(result, 31) + (this.u2c_1 == null ? 0 : getStringHashCode(this.u2c_1)) | 0;
|
|
1569
|
+
result = imul(result, 31) + hashCode(this.v2c_1) | 0;
|
|
1570
|
+
result = imul(result, 31) + (this.w2c_1 == null ? 0 : getStringHashCode(this.w2c_1)) | 0;
|
|
1571
1571
|
return result;
|
|
1572
1572
|
};
|
|
1573
1573
|
protoOf(RecordType).equals = function (other) {
|
|
@@ -1576,28 +1576,28 @@ protoOf(RecordType).equals = function (other) {
|
|
|
1576
1576
|
if (!(other instanceof RecordType))
|
|
1577
1577
|
return false;
|
|
1578
1578
|
var tmp0_other_with_cast = other instanceof RecordType ? other : THROW_CCE();
|
|
1579
|
-
if (!(this.
|
|
1579
|
+
if (!(this.s2c_1 === tmp0_other_with_cast.s2c_1))
|
|
1580
1580
|
return false;
|
|
1581
|
-
if (!(this.
|
|
1581
|
+
if (!(this.t2c_1 === tmp0_other_with_cast.t2c_1))
|
|
1582
1582
|
return false;
|
|
1583
|
-
if (!(this.
|
|
1583
|
+
if (!(this.u2c_1 == tmp0_other_with_cast.u2c_1))
|
|
1584
1584
|
return false;
|
|
1585
|
-
if (!equals(this.
|
|
1585
|
+
if (!equals(this.v2c_1, tmp0_other_with_cast.v2c_1))
|
|
1586
1586
|
return false;
|
|
1587
|
-
if (!(this.
|
|
1587
|
+
if (!(this.w2c_1 == tmp0_other_with_cast.w2c_1))
|
|
1588
1588
|
return false;
|
|
1589
1589
|
return true;
|
|
1590
1590
|
};
|
|
1591
1591
|
function ArrayType(type, items) {
|
|
1592
|
-
this.
|
|
1593
|
-
this.
|
|
1592
|
+
this.x2c_1 = type;
|
|
1593
|
+
this.y2c_1 = items;
|
|
1594
1594
|
}
|
|
1595
1595
|
protoOf(ArrayType).toString = function () {
|
|
1596
|
-
return 'ArrayType(type=' + this.
|
|
1596
|
+
return 'ArrayType(type=' + this.x2c_1 + ', items=' + toString(this.y2c_1) + ')';
|
|
1597
1597
|
};
|
|
1598
1598
|
protoOf(ArrayType).hashCode = function () {
|
|
1599
|
-
var result = getStringHashCode(this.
|
|
1600
|
-
result = imul(result, 31) + hashCode(this.
|
|
1599
|
+
var result = getStringHashCode(this.x2c_1);
|
|
1600
|
+
result = imul(result, 31) + hashCode(this.y2c_1) | 0;
|
|
1601
1601
|
return result;
|
|
1602
1602
|
};
|
|
1603
1603
|
protoOf(ArrayType).equals = function (other) {
|
|
@@ -1606,22 +1606,22 @@ protoOf(ArrayType).equals = function (other) {
|
|
|
1606
1606
|
if (!(other instanceof ArrayType))
|
|
1607
1607
|
return false;
|
|
1608
1608
|
var tmp0_other_with_cast = other instanceof ArrayType ? other : THROW_CCE();
|
|
1609
|
-
if (!(this.
|
|
1609
|
+
if (!(this.x2c_1 === tmp0_other_with_cast.x2c_1))
|
|
1610
1610
|
return false;
|
|
1611
|
-
if (!equals(this.
|
|
1611
|
+
if (!equals(this.y2c_1, tmp0_other_with_cast.y2c_1))
|
|
1612
1612
|
return false;
|
|
1613
1613
|
return true;
|
|
1614
1614
|
};
|
|
1615
1615
|
function MapType(type, values) {
|
|
1616
|
-
this.
|
|
1617
|
-
this.
|
|
1616
|
+
this.i2c_1 = type;
|
|
1617
|
+
this.j2c_1 = values;
|
|
1618
1618
|
}
|
|
1619
1619
|
protoOf(MapType).toString = function () {
|
|
1620
|
-
return 'MapType(type=' + this.
|
|
1620
|
+
return 'MapType(type=' + this.i2c_1 + ', values=' + toString(this.j2c_1) + ')';
|
|
1621
1621
|
};
|
|
1622
1622
|
protoOf(MapType).hashCode = function () {
|
|
1623
|
-
var result = getStringHashCode(this.
|
|
1624
|
-
result = imul(result, 31) + hashCode(this.
|
|
1623
|
+
var result = getStringHashCode(this.i2c_1);
|
|
1624
|
+
result = imul(result, 31) + hashCode(this.j2c_1) | 0;
|
|
1625
1625
|
return result;
|
|
1626
1626
|
};
|
|
1627
1627
|
protoOf(MapType).equals = function (other) {
|
|
@@ -1630,28 +1630,28 @@ protoOf(MapType).equals = function (other) {
|
|
|
1630
1630
|
if (!(other instanceof MapType))
|
|
1631
1631
|
return false;
|
|
1632
1632
|
var tmp0_other_with_cast = other instanceof MapType ? other : THROW_CCE();
|
|
1633
|
-
if (!(this.
|
|
1633
|
+
if (!(this.i2c_1 === tmp0_other_with_cast.i2c_1))
|
|
1634
1634
|
return false;
|
|
1635
|
-
if (!equals(this.
|
|
1635
|
+
if (!equals(this.j2c_1, tmp0_other_with_cast.j2c_1))
|
|
1636
1636
|
return false;
|
|
1637
1637
|
return true;
|
|
1638
1638
|
};
|
|
1639
1639
|
function EnumType(type, name, doc, symbols) {
|
|
1640
1640
|
Companion_getInstance_6();
|
|
1641
1641
|
doc = doc === VOID ? null : doc;
|
|
1642
|
-
this.
|
|
1643
|
-
this.
|
|
1644
|
-
this.
|
|
1645
|
-
this.
|
|
1642
|
+
this.o2c_1 = type;
|
|
1643
|
+
this.p2c_1 = name;
|
|
1644
|
+
this.q2c_1 = doc;
|
|
1645
|
+
this.r2c_1 = symbols;
|
|
1646
1646
|
}
|
|
1647
1647
|
protoOf(EnumType).toString = function () {
|
|
1648
|
-
return 'EnumType(type=' + this.
|
|
1648
|
+
return 'EnumType(type=' + this.o2c_1 + ', name=' + this.p2c_1 + ', doc=' + this.q2c_1 + ', symbols=' + toString(this.r2c_1) + ')';
|
|
1649
1649
|
};
|
|
1650
1650
|
protoOf(EnumType).hashCode = function () {
|
|
1651
|
-
var result = getStringHashCode(this.
|
|
1652
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1653
|
-
result = imul(result, 31) + (this.
|
|
1654
|
-
result = imul(result, 31) + hashCode(this.
|
|
1651
|
+
var result = getStringHashCode(this.o2c_1);
|
|
1652
|
+
result = imul(result, 31) + getStringHashCode(this.p2c_1) | 0;
|
|
1653
|
+
result = imul(result, 31) + (this.q2c_1 == null ? 0 : getStringHashCode(this.q2c_1)) | 0;
|
|
1654
|
+
result = imul(result, 31) + hashCode(this.r2c_1) | 0;
|
|
1655
1655
|
return result;
|
|
1656
1656
|
};
|
|
1657
1657
|
protoOf(EnumType).equals = function (other) {
|
|
@@ -1660,26 +1660,26 @@ protoOf(EnumType).equals = function (other) {
|
|
|
1660
1660
|
if (!(other instanceof EnumType))
|
|
1661
1661
|
return false;
|
|
1662
1662
|
var tmp0_other_with_cast = other instanceof EnumType ? other : THROW_CCE();
|
|
1663
|
-
if (!(this.
|
|
1663
|
+
if (!(this.o2c_1 === tmp0_other_with_cast.o2c_1))
|
|
1664
1664
|
return false;
|
|
1665
|
-
if (!(this.
|
|
1665
|
+
if (!(this.p2c_1 === tmp0_other_with_cast.p2c_1))
|
|
1666
1666
|
return false;
|
|
1667
|
-
if (!(this.
|
|
1667
|
+
if (!(this.q2c_1 == tmp0_other_with_cast.q2c_1))
|
|
1668
1668
|
return false;
|
|
1669
|
-
if (!equals(this.
|
|
1669
|
+
if (!equals(this.r2c_1, tmp0_other_with_cast.r2c_1))
|
|
1670
1670
|
return false;
|
|
1671
1671
|
return true;
|
|
1672
1672
|
};
|
|
1673
1673
|
function UnionType(name, type) {
|
|
1674
|
-
this.
|
|
1675
|
-
this.
|
|
1674
|
+
this.g2c_1 = name;
|
|
1675
|
+
this.h2c_1 = type;
|
|
1676
1676
|
}
|
|
1677
1677
|
protoOf(UnionType).toString = function () {
|
|
1678
|
-
return 'UnionType(name=' + this.
|
|
1678
|
+
return 'UnionType(name=' + this.g2c_1 + ', type=' + this.h2c_1.toString() + ')';
|
|
1679
1679
|
};
|
|
1680
1680
|
protoOf(UnionType).hashCode = function () {
|
|
1681
|
-
var result = getStringHashCode(this.
|
|
1682
|
-
result = imul(result, 31) + this.
|
|
1681
|
+
var result = getStringHashCode(this.g2c_1);
|
|
1682
|
+
result = imul(result, 31) + this.h2c_1.hashCode() | 0;
|
|
1683
1683
|
return result;
|
|
1684
1684
|
};
|
|
1685
1685
|
protoOf(UnionType).equals = function (other) {
|
|
@@ -1688,22 +1688,22 @@ protoOf(UnionType).equals = function (other) {
|
|
|
1688
1688
|
if (!(other instanceof UnionType))
|
|
1689
1689
|
return false;
|
|
1690
1690
|
var tmp0_other_with_cast = other instanceof UnionType ? other : THROW_CCE();
|
|
1691
|
-
if (!(this.
|
|
1691
|
+
if (!(this.g2c_1 === tmp0_other_with_cast.g2c_1))
|
|
1692
1692
|
return false;
|
|
1693
|
-
if (!this.
|
|
1693
|
+
if (!this.h2c_1.equals(tmp0_other_with_cast.h2c_1))
|
|
1694
1694
|
return false;
|
|
1695
1695
|
return true;
|
|
1696
1696
|
};
|
|
1697
1697
|
function LogicalType() {
|
|
1698
1698
|
}
|
|
1699
1699
|
protoOf(LogicalType).toString = function () {
|
|
1700
|
-
return 'LogicalType(type=' + this.
|
|
1700
|
+
return 'LogicalType(type=' + this.k2c_1 + ', logicalType=' + this.l2c_1 + ', precision=' + this.m2c_1 + ', scale=' + this.n2c_1 + ')';
|
|
1701
1701
|
};
|
|
1702
1702
|
protoOf(LogicalType).hashCode = function () {
|
|
1703
|
-
var result = getStringHashCode(this.
|
|
1704
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1705
|
-
result = imul(result, 31) + (this.
|
|
1706
|
-
result = imul(result, 31) + (this.
|
|
1703
|
+
var result = getStringHashCode(this.k2c_1);
|
|
1704
|
+
result = imul(result, 31) + getStringHashCode(this.l2c_1) | 0;
|
|
1705
|
+
result = imul(result, 31) + (this.m2c_1 == null ? 0 : this.m2c_1) | 0;
|
|
1706
|
+
result = imul(result, 31) + (this.n2c_1 == null ? 0 : this.n2c_1) | 0;
|
|
1707
1707
|
return result;
|
|
1708
1708
|
};
|
|
1709
1709
|
protoOf(LogicalType).equals = function (other) {
|
|
@@ -1712,32 +1712,32 @@ protoOf(LogicalType).equals = function (other) {
|
|
|
1712
1712
|
if (!(other instanceof LogicalType))
|
|
1713
1713
|
return false;
|
|
1714
1714
|
var tmp0_other_with_cast = other instanceof LogicalType ? other : THROW_CCE();
|
|
1715
|
-
if (!(this.
|
|
1715
|
+
if (!(this.k2c_1 === tmp0_other_with_cast.k2c_1))
|
|
1716
1716
|
return false;
|
|
1717
|
-
if (!(this.
|
|
1717
|
+
if (!(this.l2c_1 === tmp0_other_with_cast.l2c_1))
|
|
1718
1718
|
return false;
|
|
1719
|
-
if (!(this.
|
|
1719
|
+
if (!(this.m2c_1 == tmp0_other_with_cast.m2c_1))
|
|
1720
1720
|
return false;
|
|
1721
|
-
if (!(this.
|
|
1721
|
+
if (!(this.n2c_1 == tmp0_other_with_cast.n2c_1))
|
|
1722
1722
|
return false;
|
|
1723
1723
|
return true;
|
|
1724
1724
|
};
|
|
1725
1725
|
function TypeListSerializer() {
|
|
1726
1726
|
TypeListSerializer_instance = this;
|
|
1727
|
-
this.
|
|
1727
|
+
this.h2e_1 = buildSerialDescriptor('TypeListSerializer', SEALED_getInstance(), []);
|
|
1728
1728
|
}
|
|
1729
1729
|
protoOf(TypeListSerializer).gl = function () {
|
|
1730
|
-
return this.
|
|
1730
|
+
return this.h2e_1;
|
|
1731
1731
|
};
|
|
1732
|
-
protoOf(TypeListSerializer).
|
|
1733
|
-
if (value.
|
|
1732
|
+
protoOf(TypeListSerializer).i2e = function (encoder, value) {
|
|
1733
|
+
if (value.g2e_1 > 1) {
|
|
1734
1734
|
encoder.zp(ListSerializer(Companion_instance_1.v17()), value);
|
|
1735
1735
|
} else {
|
|
1736
1736
|
encoder.zp(Companion_instance_1.v17(), first(value));
|
|
1737
1737
|
}
|
|
1738
1738
|
};
|
|
1739
1739
|
protoOf(TypeListSerializer).hl = function (encoder, value) {
|
|
1740
|
-
return this.
|
|
1740
|
+
return this.i2e(encoder, value instanceof TypeList ? value : THROW_CCE());
|
|
1741
1741
|
};
|
|
1742
1742
|
protoOf(TypeListSerializer).il = function (decoder) {
|
|
1743
1743
|
var tmp0_elvis_lhs = isInterface(decoder, JsonDecoder) ? decoder : null;
|
|
@@ -1785,14 +1785,14 @@ function TypeListSerializer_getInstance() {
|
|
|
1785
1785
|
}
|
|
1786
1786
|
function TypeSerializer() {
|
|
1787
1787
|
TypeSerializer_instance = this;
|
|
1788
|
-
this.
|
|
1788
|
+
this.j2e_1 = buildSerialDescriptor('TypeSerializer', SEALED_getInstance(), []);
|
|
1789
1789
|
}
|
|
1790
1790
|
protoOf(TypeSerializer).gl = function () {
|
|
1791
|
-
return this.
|
|
1791
|
+
return this.j2e_1;
|
|
1792
1792
|
};
|
|
1793
|
-
protoOf(TypeSerializer).
|
|
1793
|
+
protoOf(TypeSerializer).k2e = function (encoder, value) {
|
|
1794
1794
|
if (value instanceof SimpleType) {
|
|
1795
|
-
encoder.zp(serializer(StringCompanionObject_instance), value.
|
|
1795
|
+
encoder.zp(serializer(StringCompanionObject_instance), value.f2c_1);
|
|
1796
1796
|
} else {
|
|
1797
1797
|
if (value instanceof RecordType) {
|
|
1798
1798
|
encoder.zp(Companion_getInstance_3().v17(), value);
|
|
@@ -1823,7 +1823,7 @@ protoOf(TypeSerializer).c2e = function (encoder, value) {
|
|
|
1823
1823
|
}
|
|
1824
1824
|
};
|
|
1825
1825
|
protoOf(TypeSerializer).hl = function (encoder, value) {
|
|
1826
|
-
return this.
|
|
1826
|
+
return this.k2e(encoder, (!(value == null) ? isInterface(value, Type_0) : false) ? value : THROW_CCE());
|
|
1827
1827
|
};
|
|
1828
1828
|
protoOf(TypeSerializer).il = function (decoder) {
|
|
1829
1829
|
var tmp0_elvis_lhs = isInterface(decoder, JsonDecoder) ? decoder : null;
|
|
@@ -1878,7 +1878,7 @@ function AvroParser$parse$lambda($this$Json) {
|
|
|
1878
1878
|
}
|
|
1879
1879
|
function AvroParser() {
|
|
1880
1880
|
}
|
|
1881
|
-
protoOf(AvroParser).
|
|
1881
|
+
protoOf(AvroParser).l2e = function (moduleContent, strict) {
|
|
1882
1882
|
var json = Json(VOID, AvroParser$parse$lambda);
|
|
1883
1883
|
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
1884
1884
|
var string = moduleContent.i22_1;
|
|
@@ -1888,10 +1888,10 @@ protoOf(AvroParser).d2e = function (moduleContent, strict) {
|
|
|
1888
1888
|
var this_1 = serializer_0(this_0, createKType(getKClass(Type_0), arrayOf([]), false));
|
|
1889
1889
|
var tmp$ret$1 = isInterface(this_1, KSerializer) ? this_1 : THROW_CCE();
|
|
1890
1890
|
var avro = json.k15(tmp$ret$1, string);
|
|
1891
|
-
var tmp = AvroConverter_getInstance().
|
|
1891
|
+
var tmp = AvroConverter_getInstance().e2d(avro);
|
|
1892
1892
|
var tmp_0;
|
|
1893
1893
|
if (avro instanceof RecordType) {
|
|
1894
|
-
tmp_0 = new Channel(null, new DefinitionIdentifier(avro.
|
|
1894
|
+
tmp_0 = new Channel(null, new DefinitionIdentifier(avro.t2c_1), new Custom(avro.t2c_1, false));
|
|
1895
1895
|
} else {
|
|
1896
1896
|
if (avro instanceof ArrayType) {
|
|
1897
1897
|
throw new NotImplementedError();
|