@flock/wirespec 0.17.12 → 0.17.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 +1129 -1129
- package/colormath-root-colormath.mjs +400 -400
- package/kotlin-rgxgen.mjs +1764 -1764
- package/kotlinx-io-kotlinx-io-core.mjs +373 -373
- package/markdown.mjs +1796 -1796
- package/mordant-mordant.mjs +1531 -1531
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +61 -70
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-java.mjs +103 -103
- package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-kotlin.mjs +95 -95
- package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-python.mjs +101 -101
- package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-typescript.mjs +73 -73
- package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-wirespec.mjs +27 -27
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +250 -250
- package/wirespec-src-compiler-lib.mjs.map +1 -1
- package/wirespec-src-converter-avro.mjs +262 -262
- package/wirespec-src-converter-openapi.mjs +76 -76
- package/wirespec-src-converter-openapi.mjs.map +1 -1
- package/wirespec-src-plugin-arguments.mjs +116 -116
- package/wirespec-src-plugin-arguments.mjs.map +1 -1
- package/wirespec-src-plugin-cli.mjs +74 -74
- package/wirespec-src-plugin-cli.mjs.map +1 -1
- package/wirespec-src-plugin-npm.mjs +14 -14
- package/wirespec-src-plugin-npm.mjs.map +1 -1
- package/wirespec-src-tools-generator.mjs +2 -2
|
@@ -141,11 +141,11 @@ initMetadataForObject(TypeSerializer, 'TypeSerializer', VOID, VOID, [KSerializer
|
|
|
141
141
|
initMetadataForObject(AvroParser, 'AvroParser');
|
|
142
142
|
//endregion
|
|
143
143
|
function isNullable(_this__u8e3s4, $this) {
|
|
144
|
-
return _this__u8e3s4.o1($this.
|
|
144
|
+
return _this__u8e3s4.o1($this.l2c_1);
|
|
145
145
|
}
|
|
146
146
|
function toPrimitive(_this__u8e3s4, $this) {
|
|
147
147
|
var tmp;
|
|
148
|
-
switch (_this__u8e3s4.
|
|
148
|
+
switch (_this__u8e3s4.m2c_1) {
|
|
149
149
|
case 'boolean':
|
|
150
150
|
tmp = Boolean_instance;
|
|
151
151
|
break;
|
|
@@ -168,7 +168,7 @@ function toPrimitive(_this__u8e3s4, $this) {
|
|
|
168
168
|
tmp = new String_0(null);
|
|
169
169
|
break;
|
|
170
170
|
default:
|
|
171
|
-
var reason = 'primitive not mapped ' + _this__u8e3s4.
|
|
171
|
+
var reason = 'primitive not mapped ' + _this__u8e3s4.m2c_1;
|
|
172
172
|
throw new NotImplementedError('An operation is not implemented: ' + reason);
|
|
173
173
|
}
|
|
174
174
|
return tmp;
|
|
@@ -176,7 +176,7 @@ function toPrimitive(_this__u8e3s4, $this) {
|
|
|
176
176
|
function toReference(_this__u8e3s4, $this, isNullable) {
|
|
177
177
|
var tmp;
|
|
178
178
|
if (_this__u8e3s4 instanceof SimpleType) {
|
|
179
|
-
switch (_this__u8e3s4.
|
|
179
|
+
switch (_this__u8e3s4.m2c_1) {
|
|
180
180
|
case 'null':
|
|
181
181
|
tmp = new Unit(isNullable);
|
|
182
182
|
break;
|
|
@@ -190,27 +190,27 @@ function toReference(_this__u8e3s4, $this, isNullable) {
|
|
|
190
190
|
tmp = new Primitive(toPrimitive(_this__u8e3s4, $this), isNullable);
|
|
191
191
|
break;
|
|
192
192
|
default:
|
|
193
|
-
tmp = new Custom(_this__u8e3s4.
|
|
193
|
+
tmp = new Custom(_this__u8e3s4.m2c_1, isNullable);
|
|
194
194
|
break;
|
|
195
195
|
}
|
|
196
196
|
} else {
|
|
197
197
|
if (_this__u8e3s4 instanceof ArrayType) {
|
|
198
|
-
tmp = new Iterable(toReference(_this__u8e3s4.
|
|
198
|
+
tmp = new Iterable(toReference(_this__u8e3s4.f2d_1, $this, false), isNullable);
|
|
199
199
|
} else {
|
|
200
200
|
if (_this__u8e3s4 instanceof RecordType) {
|
|
201
|
-
tmp = new Custom(_this__u8e3s4.
|
|
201
|
+
tmp = new Custom(_this__u8e3s4.a2d_1, isNullable);
|
|
202
202
|
} else {
|
|
203
203
|
if (_this__u8e3s4 instanceof EnumType) {
|
|
204
|
-
tmp = new Custom(_this__u8e3s4.
|
|
204
|
+
tmp = new Custom(_this__u8e3s4.w2c_1, isNullable);
|
|
205
205
|
} else {
|
|
206
206
|
if (_this__u8e3s4 instanceof LogicalType) {
|
|
207
|
-
tmp = toReference(new SimpleType(_this__u8e3s4.
|
|
207
|
+
tmp = toReference(new SimpleType(_this__u8e3s4.r2c_1), $this, isNullable);
|
|
208
208
|
} else {
|
|
209
209
|
if (_this__u8e3s4 instanceof MapType) {
|
|
210
|
-
tmp = new Dict(toReference(_this__u8e3s4.
|
|
210
|
+
tmp = new Dict(toReference(_this__u8e3s4.q2c_1, $this, false), isNullable);
|
|
211
211
|
} else {
|
|
212
212
|
if (_this__u8e3s4 instanceof UnionType) {
|
|
213
|
-
tmp = new Custom(_this__u8e3s4.
|
|
213
|
+
tmp = new Custom(_this__u8e3s4.n2c_1, isNullable);
|
|
214
214
|
} else {
|
|
215
215
|
noWhenBranchMatchedException();
|
|
216
216
|
}
|
|
@@ -223,7 +223,7 @@ function toReference(_this__u8e3s4, $this, isNullable) {
|
|
|
223
223
|
return tmp;
|
|
224
224
|
}
|
|
225
225
|
function toReference_0(_this__u8e3s4, $this) {
|
|
226
|
-
var list = minus(_this__u8e3s4, $this.
|
|
226
|
+
var list = minus(_this__u8e3s4, $this.l2c_1);
|
|
227
227
|
var tmp;
|
|
228
228
|
if (list.j() === 1) {
|
|
229
229
|
tmp = toReference(first(list), $this, isNullable(_this__u8e3s4, $this));
|
|
@@ -264,19 +264,19 @@ function toReference_0(_this__u8e3s4, $this) {
|
|
|
264
264
|
}
|
|
265
265
|
function toType(_this__u8e3s4, $this) {
|
|
266
266
|
var tmp0_annotations = emptyList();
|
|
267
|
-
var tmp1_identifier = new DefinitionIdentifier(_this__u8e3s4.
|
|
267
|
+
var tmp1_identifier = new DefinitionIdentifier(_this__u8e3s4.a2d_1);
|
|
268
268
|
var tmp2_extends = emptyList();
|
|
269
269
|
// Inline function 'kotlin.collections.map' call
|
|
270
|
-
var this_0 = _this__u8e3s4.
|
|
270
|
+
var this_0 = _this__u8e3s4.c2d_1;
|
|
271
271
|
// Inline function 'kotlin.collections.mapTo' call
|
|
272
272
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
273
273
|
var tmp0_iterator = this_0.g();
|
|
274
274
|
while (tmp0_iterator.h()) {
|
|
275
275
|
var item = tmp0_iterator.i();
|
|
276
276
|
// Inline function 'community.flock.wirespec.converter.avro.AvroConverter.toType.<anonymous>' call
|
|
277
|
-
var tmp0_identifier = new FieldIdentifier(item.
|
|
277
|
+
var tmp0_identifier = new FieldIdentifier(item.g2d_1);
|
|
278
278
|
var tmp1_annotations = emptyList();
|
|
279
|
-
var tmp2_reference = toReference_0(item.
|
|
279
|
+
var tmp2_reference = toReference_0(item.h2d_1, AvroConverter_getInstance());
|
|
280
280
|
var tmp$ret$0 = new Field(tmp1_annotations, tmp0_identifier, tmp2_reference);
|
|
281
281
|
destination.e(tmp$ret$0);
|
|
282
282
|
}
|
|
@@ -284,13 +284,13 @@ function toType(_this__u8e3s4, $this) {
|
|
|
284
284
|
return new Type(null, tmp0_annotations, tmp1_identifier, tmp3_shape, tmp2_extends);
|
|
285
285
|
}
|
|
286
286
|
function toEnum(_this__u8e3s4, $this) {
|
|
287
|
-
return new Enum(null, emptyList(), new DefinitionIdentifier(_this__u8e3s4.
|
|
287
|
+
return new Enum(null, emptyList(), new DefinitionIdentifier(_this__u8e3s4.w2c_1), toSet(_this__u8e3s4.y2c_1));
|
|
288
288
|
}
|
|
289
289
|
function toUnion(_this__u8e3s4, $this, name) {
|
|
290
290
|
var tmp = emptyList();
|
|
291
291
|
var tmp_0 = new DefinitionIdentifier(name);
|
|
292
292
|
// Inline function 'kotlin.collections.map' call
|
|
293
|
-
var this_0 = _this__u8e3s4.
|
|
293
|
+
var this_0 = _this__u8e3s4.o2c_1;
|
|
294
294
|
// Inline function 'kotlin.collections.mapTo' call
|
|
295
295
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
296
296
|
var tmp0_iterator = this_0.g();
|
|
@@ -304,9 +304,9 @@ function toUnion(_this__u8e3s4, $this, name) {
|
|
|
304
304
|
}
|
|
305
305
|
function AvroConverter() {
|
|
306
306
|
AvroConverter_instance = this;
|
|
307
|
-
this.
|
|
307
|
+
this.l2c_1 = new SimpleType('null');
|
|
308
308
|
}
|
|
309
|
-
protoOf(AvroConverter).
|
|
309
|
+
protoOf(AvroConverter).k2d = function (_this__u8e3s4, name) {
|
|
310
310
|
var tmp;
|
|
311
311
|
if (_this__u8e3s4 instanceof SimpleType) {
|
|
312
312
|
tmp = emptyList();
|
|
@@ -315,7 +315,7 @@ protoOf(AvroConverter).l2d = function (_this__u8e3s4, name) {
|
|
|
315
315
|
var tmp_0 = listOf(toType(_this__u8e3s4, this));
|
|
316
316
|
// Inline function 'kotlin.collections.flatMap' call
|
|
317
317
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
318
|
-
var this_0 = _this__u8e3s4.
|
|
318
|
+
var this_0 = _this__u8e3s4.c2d_1;
|
|
319
319
|
var destination = ArrayList_init_$Create$_0();
|
|
320
320
|
var tmp0_iterator = this_0.g();
|
|
321
321
|
while (tmp0_iterator.h()) {
|
|
@@ -323,13 +323,13 @@ protoOf(AvroConverter).l2d = function (_this__u8e3s4, name) {
|
|
|
323
323
|
// Inline function 'community.flock.wirespec.converter.avro.AvroConverter.flatten.<anonymous>' call
|
|
324
324
|
// Inline function 'kotlin.collections.flatMap' call
|
|
325
325
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
326
|
-
var this_1 = element.
|
|
326
|
+
var this_1 = element.h2d_1;
|
|
327
327
|
var destination_0 = ArrayList_init_$Create$_0();
|
|
328
328
|
var tmp0_iterator_0 = this_1.g();
|
|
329
329
|
while (tmp0_iterator_0.h()) {
|
|
330
330
|
var element_0 = tmp0_iterator_0.i();
|
|
331
331
|
// Inline function 'community.flock.wirespec.converter.avro.AvroConverter.flatten.<anonymous>.<anonymous>' call
|
|
332
|
-
var list = AvroConverter_getInstance().
|
|
332
|
+
var list = AvroConverter_getInstance().k2d(element_0, name);
|
|
333
333
|
addAll(destination_0, list);
|
|
334
334
|
}
|
|
335
335
|
var list_0 = destination_0;
|
|
@@ -338,7 +338,7 @@ protoOf(AvroConverter).l2d = 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.k2d(_this__u8e3s4.f2d_1, name);
|
|
342
342
|
} else {
|
|
343
343
|
if (_this__u8e3s4 instanceof EnumType) {
|
|
344
344
|
tmp = listOf(toEnum(_this__u8e3s4, this));
|
|
@@ -347,7 +347,7 @@ protoOf(AvroConverter).l2d = function (_this__u8e3s4, name) {
|
|
|
347
347
|
tmp = emptyList();
|
|
348
348
|
} else {
|
|
349
349
|
if (_this__u8e3s4 instanceof MapType) {
|
|
350
|
-
tmp = this.
|
|
350
|
+
tmp = this.k2d(_this__u8e3s4.q2c_1, name);
|
|
351
351
|
} else {
|
|
352
352
|
if (_this__u8e3s4 instanceof UnionType) {
|
|
353
353
|
tmp = listOf(toUnion(_this__u8e3s4, this, name));
|
|
@@ -362,9 +362,9 @@ protoOf(AvroConverter).l2d = function (_this__u8e3s4, name) {
|
|
|
362
362
|
}
|
|
363
363
|
return tmp;
|
|
364
364
|
};
|
|
365
|
-
protoOf(AvroConverter).
|
|
365
|
+
protoOf(AvroConverter).l2d = function (_this__u8e3s4, name, $super) {
|
|
366
366
|
name = name === VOID ? '' : name;
|
|
367
|
-
return $super === VOID ? this.
|
|
367
|
+
return $super === VOID ? this.k2d(_this__u8e3s4, name) : $super.k2d.call(this, _this__u8e3s4, name);
|
|
368
368
|
};
|
|
369
369
|
var AvroConverter_instance;
|
|
370
370
|
function AvroConverter_getInstance() {
|
|
@@ -393,7 +393,7 @@ function findType(_this__u8e3s4, $this, name) {
|
|
|
393
393
|
}
|
|
394
394
|
function AvroEmitter() {
|
|
395
395
|
AvroEmitter_instance = this;
|
|
396
|
-
this.
|
|
396
|
+
this.m2d_1 = FileExtension_JSON_getInstance();
|
|
397
397
|
}
|
|
398
398
|
protoOf(AvroEmitter).q22 = function (ast, logger) {
|
|
399
399
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
@@ -402,7 +402,7 @@ protoOf(AvroEmitter).q22 = function (ast, logger) {
|
|
|
402
402
|
var this_0 = ast.d25_1;
|
|
403
403
|
// Inline function 'community.flock.wirespec.converter.avro.AvroEmitter.emit.<anonymous>' call
|
|
404
404
|
var it = this_0.pk_1;
|
|
405
|
-
var tmp = AvroEmitter_getInstance().
|
|
405
|
+
var tmp = AvroEmitter_getInstance().n2d(it);
|
|
406
406
|
// Inline function 'kotlin.collections.map' call
|
|
407
407
|
var this_1 = this_0.qk_1;
|
|
408
408
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -411,7 +411,7 @@ protoOf(AvroEmitter).q22 = function (ast, logger) {
|
|
|
411
411
|
while (tmp0_iterator.h()) {
|
|
412
412
|
var item = tmp0_iterator.i();
|
|
413
413
|
// Inline function 'community.flock.wirespec.converter.avro.AvroEmitter.emit.<anonymous>' call
|
|
414
|
-
var tmp$ret$1 = AvroEmitter_getInstance().
|
|
414
|
+
var tmp$ret$1 = AvroEmitter_getInstance().n2d(item);
|
|
415
415
|
destination.e(tmp$ret$1);
|
|
416
416
|
}
|
|
417
417
|
var this_2 = new NonEmptyList(tmp, destination);
|
|
@@ -460,10 +460,10 @@ protoOf(AvroEmitter).q22 = function (ast, logger) {
|
|
|
460
460
|
}
|
|
461
461
|
return new NonEmptyList(tmp_1, destination_1);
|
|
462
462
|
};
|
|
463
|
-
protoOf(AvroEmitter).
|
|
463
|
+
protoOf(AvroEmitter).o2d = function (_this__u8e3s4) {
|
|
464
464
|
return new EnumType('enum', _this__u8e3s4.i26_1.b1(), VOID, toList(_this__u8e3s4.j26_1));
|
|
465
465
|
};
|
|
466
|
-
protoOf(AvroEmitter).
|
|
466
|
+
protoOf(AvroEmitter).p2d = function (_this__u8e3s4) {
|
|
467
467
|
var tmp = _this__u8e3s4.s23_1.b1();
|
|
468
468
|
// Inline function 'kotlin.collections.map' call
|
|
469
469
|
var this_0 = _this__u8e3s4.t23_1;
|
|
@@ -478,13 +478,13 @@ protoOf(AvroEmitter).q2d = function (_this__u8e3s4) {
|
|
|
478
478
|
}
|
|
479
479
|
return new UnionType(tmp, TypeList_init_$Create$(destination));
|
|
480
480
|
};
|
|
481
|
-
protoOf(AvroEmitter).
|
|
481
|
+
protoOf(AvroEmitter).q2d = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
482
482
|
var tmp;
|
|
483
483
|
if (_this__u8e3s4 instanceof Dict) {
|
|
484
|
-
tmp = new MapType('map', this.
|
|
484
|
+
tmp = new MapType('map', this.q2d(_this__u8e3s4.e23_1, module_0, hasEmitted));
|
|
485
485
|
} else {
|
|
486
486
|
if (_this__u8e3s4 instanceof Iterable) {
|
|
487
|
-
tmp = new ArrayType('array', this.
|
|
487
|
+
tmp = new ArrayType('array', this.q2d(_this__u8e3s4.b23_1, module_0, hasEmitted));
|
|
488
488
|
} else {
|
|
489
489
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
490
490
|
var type = _this__u8e3s4.o29_1;
|
|
@@ -551,7 +551,7 @@ protoOf(AvroEmitter).r2d = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
|
551
551
|
// Inline function 'kotlin.contracts.contract' call
|
|
552
552
|
// Inline function 'community.flock.wirespec.converter.avro.AvroEmitter.emit.<anonymous>' call
|
|
553
553
|
hasEmitted.e(def.x23_1.b1());
|
|
554
|
-
tmp_4 = this.
|
|
554
|
+
tmp_4 = this.r2d(def, module_0, hasEmitted);
|
|
555
555
|
}
|
|
556
556
|
tmp_3 = tmp_4;
|
|
557
557
|
} else {
|
|
@@ -582,17 +582,17 @@ protoOf(AvroEmitter).r2d = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
|
582
582
|
}
|
|
583
583
|
return tmp;
|
|
584
584
|
};
|
|
585
|
-
protoOf(AvroEmitter).
|
|
585
|
+
protoOf(AvroEmitter).s2d = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
586
586
|
var ref = _this__u8e3s4.d24_1;
|
|
587
587
|
var tmp;
|
|
588
588
|
if (ref instanceof Iterable) {
|
|
589
|
-
tmp = new ArrayType('array', this.
|
|
589
|
+
tmp = new ArrayType('array', this.q2d(ref.b23_1, module_0, hasEmitted));
|
|
590
590
|
} else {
|
|
591
|
-
tmp = this.
|
|
591
|
+
tmp = this.q2d(ref, module_0, hasEmitted);
|
|
592
592
|
}
|
|
593
593
|
return tmp;
|
|
594
594
|
};
|
|
595
|
-
protoOf(AvroEmitter).
|
|
595
|
+
protoOf(AvroEmitter).r2d = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
596
596
|
var tmp0_name = _this__u8e3s4.x23_1.b1();
|
|
597
597
|
// Inline function 'kotlin.collections.map' call
|
|
598
598
|
var this_0 = _this__u8e3s4.y23_1.u23_1;
|
|
@@ -605,16 +605,16 @@ protoOf(AvroEmitter).s2d = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
|
605
605
|
var tmp = item.c24_1.b1();
|
|
606
606
|
var tmp_0;
|
|
607
607
|
if (item.d24_1.jm()) {
|
|
608
|
-
tmp_0 = new TypeList([new SimpleType('null'), AvroEmitter_getInstance().
|
|
608
|
+
tmp_0 = new TypeList([new SimpleType('null'), AvroEmitter_getInstance().s2d(item, module_0, hasEmitted)]);
|
|
609
609
|
} else {
|
|
610
|
-
tmp_0 = new TypeList([AvroEmitter_getInstance().
|
|
610
|
+
tmp_0 = new TypeList([AvroEmitter_getInstance().s2d(item, module_0, hasEmitted)]);
|
|
611
611
|
}
|
|
612
612
|
var tmp$ret$0 = new Field_0(tmp, tmp_0);
|
|
613
613
|
destination.e(tmp$ret$0);
|
|
614
614
|
}
|
|
615
615
|
return new RecordType('record', tmp0_name, VOID, destination);
|
|
616
616
|
};
|
|
617
|
-
protoOf(AvroEmitter).
|
|
617
|
+
protoOf(AvroEmitter).n2d = function (module_0) {
|
|
618
618
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
619
619
|
var hasEmitted = ArrayList_init_$Create$_0();
|
|
620
620
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
@@ -629,13 +629,13 @@ protoOf(AvroEmitter).o2d = function (module_0) {
|
|
|
629
629
|
// Inline function 'community.flock.wirespec.converter.avro.AvroEmitter.emit.<anonymous>' call
|
|
630
630
|
var tmp;
|
|
631
631
|
if (element instanceof Type) {
|
|
632
|
-
tmp = AvroEmitter_getInstance().
|
|
632
|
+
tmp = AvroEmitter_getInstance().r2d(element, module_0, hasEmitted);
|
|
633
633
|
} else {
|
|
634
634
|
if (element instanceof Enum) {
|
|
635
|
-
tmp = AvroEmitter_getInstance().
|
|
635
|
+
tmp = AvroEmitter_getInstance().o2d(element);
|
|
636
636
|
} else {
|
|
637
637
|
if (element instanceof Union) {
|
|
638
|
-
tmp = AvroEmitter_getInstance().
|
|
638
|
+
tmp = AvroEmitter_getInstance().p2d(element);
|
|
639
639
|
} else {
|
|
640
640
|
tmp = null;
|
|
641
641
|
}
|
|
@@ -671,26 +671,26 @@ function $serializer() {
|
|
|
671
671
|
tmp0_serialDesc.uv('type', false);
|
|
672
672
|
tmp0_serialDesc.uv('doc', true);
|
|
673
673
|
tmp0_serialDesc.uv('default', true);
|
|
674
|
-
this.
|
|
674
|
+
this.t2d_1 = tmp0_serialDesc;
|
|
675
675
|
}
|
|
676
|
-
protoOf($serializer).
|
|
677
|
-
var tmp0_desc = this.
|
|
676
|
+
protoOf($serializer).u2d = function (encoder, value) {
|
|
677
|
+
var tmp0_desc = this.t2d_1;
|
|
678
678
|
var tmp1_output = encoder.ko(tmp0_desc);
|
|
679
|
-
tmp1_output.zp(tmp0_desc, 0, value.
|
|
680
|
-
tmp1_output.bq(tmp0_desc, 1, TypeListSerializer_getInstance(), value.
|
|
681
|
-
if (tmp1_output.hq(tmp0_desc, 2) ? true : !(value.
|
|
682
|
-
tmp1_output.dq(tmp0_desc, 2, StringSerializer_getInstance(), value.
|
|
679
|
+
tmp1_output.zp(tmp0_desc, 0, value.g2d_1);
|
|
680
|
+
tmp1_output.bq(tmp0_desc, 1, TypeListSerializer_getInstance(), value.h2d_1);
|
|
681
|
+
if (tmp1_output.hq(tmp0_desc, 2) ? true : !(value.i2d_1 == null)) {
|
|
682
|
+
tmp1_output.dq(tmp0_desc, 2, StringSerializer_getInstance(), value.i2d_1);
|
|
683
683
|
}
|
|
684
|
-
if (tmp1_output.hq(tmp0_desc, 3) ? true : !(value.
|
|
685
|
-
tmp1_output.dq(tmp0_desc, 3, StringSerializer_getInstance(), value.
|
|
684
|
+
if (tmp1_output.hq(tmp0_desc, 3) ? true : !(value.j2d_1 == null)) {
|
|
685
|
+
tmp1_output.dq(tmp0_desc, 3, StringSerializer_getInstance(), value.j2d_1);
|
|
686
686
|
}
|
|
687
687
|
tmp1_output.lo(tmp0_desc);
|
|
688
688
|
};
|
|
689
689
|
protoOf($serializer).kl = function (encoder, value) {
|
|
690
|
-
return this.
|
|
690
|
+
return this.u2d(encoder, value instanceof Field_0 ? value : THROW_CCE());
|
|
691
691
|
};
|
|
692
692
|
protoOf($serializer).ll = function (decoder) {
|
|
693
|
-
var tmp0_desc = this.
|
|
693
|
+
var tmp0_desc = this.t2d_1;
|
|
694
694
|
var tmp1_flag = true;
|
|
695
695
|
var tmp2_index = 0;
|
|
696
696
|
var tmp3_bitMask0 = 0;
|
|
@@ -739,7 +739,7 @@ protoOf($serializer).ll = function (decoder) {
|
|
|
739
739
|
return Field_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
740
740
|
};
|
|
741
741
|
protoOf($serializer).jl = function () {
|
|
742
|
-
return this.
|
|
742
|
+
return this.t2d_1;
|
|
743
743
|
};
|
|
744
744
|
protoOf($serializer).nw = function () {
|
|
745
745
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -755,18 +755,18 @@ function $serializer_getInstance() {
|
|
|
755
755
|
}
|
|
756
756
|
function Field_init_$Init$(seen0, name, type, doc, default_0, serializationConstructorMarker, $this) {
|
|
757
757
|
if (!(3 === (3 & seen0))) {
|
|
758
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance().
|
|
758
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance().t2d_1);
|
|
759
759
|
}
|
|
760
|
-
$this.
|
|
761
|
-
$this.
|
|
760
|
+
$this.g2d_1 = name;
|
|
761
|
+
$this.h2d_1 = type;
|
|
762
762
|
if (0 === (seen0 & 4))
|
|
763
|
-
$this.
|
|
763
|
+
$this.i2d_1 = null;
|
|
764
764
|
else
|
|
765
|
-
$this.
|
|
765
|
+
$this.i2d_1 = doc;
|
|
766
766
|
if (0 === (seen0 & 8))
|
|
767
|
-
$this.
|
|
767
|
+
$this.j2d_1 = null;
|
|
768
768
|
else
|
|
769
|
-
$this.
|
|
769
|
+
$this.j2d_1 = default_0;
|
|
770
770
|
return $this;
|
|
771
771
|
}
|
|
772
772
|
function Field_init_$Create$(seen0, name, type, doc, default_0, serializationConstructorMarker) {
|
|
@@ -809,19 +809,19 @@ function $serializer_0() {
|
|
|
809
809
|
$serializer_instance_0 = this;
|
|
810
810
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.SimpleType', this, 1);
|
|
811
811
|
tmp0_serialDesc.uv('value', false);
|
|
812
|
-
this.
|
|
812
|
+
this.v2d_1 = tmp0_serialDesc;
|
|
813
813
|
}
|
|
814
|
-
protoOf($serializer_0).
|
|
815
|
-
var tmp0_desc = this.
|
|
814
|
+
protoOf($serializer_0).w2d = function (encoder, value) {
|
|
815
|
+
var tmp0_desc = this.v2d_1;
|
|
816
816
|
var tmp1_output = encoder.ko(tmp0_desc);
|
|
817
|
-
tmp1_output.zp(tmp0_desc, 0, value.
|
|
817
|
+
tmp1_output.zp(tmp0_desc, 0, value.m2c_1);
|
|
818
818
|
tmp1_output.lo(tmp0_desc);
|
|
819
819
|
};
|
|
820
820
|
protoOf($serializer_0).kl = function (encoder, value) {
|
|
821
|
-
return this.
|
|
821
|
+
return this.w2d(encoder, value instanceof SimpleType ? value : THROW_CCE());
|
|
822
822
|
};
|
|
823
823
|
protoOf($serializer_0).ll = function (decoder) {
|
|
824
|
-
var tmp0_desc = this.
|
|
824
|
+
var tmp0_desc = this.v2d_1;
|
|
825
825
|
var tmp1_flag = true;
|
|
826
826
|
var tmp2_index = 0;
|
|
827
827
|
var tmp3_bitMask0 = 0;
|
|
@@ -849,7 +849,7 @@ protoOf($serializer_0).ll = function (decoder) {
|
|
|
849
849
|
return SimpleType_init_$Create$(tmp3_bitMask0, tmp4_local0, null);
|
|
850
850
|
};
|
|
851
851
|
protoOf($serializer_0).jl = function () {
|
|
852
|
-
return this.
|
|
852
|
+
return this.v2d_1;
|
|
853
853
|
};
|
|
854
854
|
protoOf($serializer_0).nw = function () {
|
|
855
855
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -865,9 +865,9 @@ function $serializer_getInstance_0() {
|
|
|
865
865
|
}
|
|
866
866
|
function SimpleType_init_$Init$(seen0, value, serializationConstructorMarker, $this) {
|
|
867
867
|
if (!(1 === (1 & seen0))) {
|
|
868
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_0().
|
|
868
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_0().v2d_1);
|
|
869
869
|
}
|
|
870
|
-
$this.
|
|
870
|
+
$this.m2c_1 = value;
|
|
871
871
|
return $this;
|
|
872
872
|
}
|
|
873
873
|
function SimpleType_init_$Create$(seen0, value, serializationConstructorMarker) {
|
|
@@ -879,7 +879,7 @@ function Companion_3() {
|
|
|
879
879
|
// Inline function 'kotlin.arrayOf' call
|
|
880
880
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
881
881
|
// Inline function 'kotlin.js.asDynamic' call
|
|
882
|
-
tmp.
|
|
882
|
+
tmp.x2d_1 = [null, null, null, new ArrayListSerializer($serializer_getInstance()), null];
|
|
883
883
|
}
|
|
884
884
|
protoOf(Companion_3).v17 = function () {
|
|
885
885
|
return $serializer_getInstance_1();
|
|
@@ -898,28 +898,28 @@ function $serializer_1() {
|
|
|
898
898
|
tmp0_serialDesc.uv('namespace', true);
|
|
899
899
|
tmp0_serialDesc.uv('fields', false);
|
|
900
900
|
tmp0_serialDesc.uv('doc', true);
|
|
901
|
-
this.
|
|
901
|
+
this.y2d_1 = tmp0_serialDesc;
|
|
902
902
|
}
|
|
903
|
-
protoOf($serializer_1).
|
|
904
|
-
var tmp0_desc = this.
|
|
903
|
+
protoOf($serializer_1).z2d = function (encoder, value) {
|
|
904
|
+
var tmp0_desc = this.y2d_1;
|
|
905
905
|
var tmp1_output = encoder.ko(tmp0_desc);
|
|
906
|
-
var tmp2_cached = Companion_getInstance_3().
|
|
907
|
-
tmp1_output.zp(tmp0_desc, 0, value.
|
|
908
|
-
tmp1_output.zp(tmp0_desc, 1, value.
|
|
909
|
-
if (tmp1_output.hq(tmp0_desc, 2) ? true : !(value.
|
|
910
|
-
tmp1_output.dq(tmp0_desc, 2, StringSerializer_getInstance(), value.
|
|
906
|
+
var tmp2_cached = Companion_getInstance_3().x2d_1;
|
|
907
|
+
tmp1_output.zp(tmp0_desc, 0, value.z2c_1);
|
|
908
|
+
tmp1_output.zp(tmp0_desc, 1, value.a2d_1);
|
|
909
|
+
if (tmp1_output.hq(tmp0_desc, 2) ? true : !(value.b2d_1 == null)) {
|
|
910
|
+
tmp1_output.dq(tmp0_desc, 2, StringSerializer_getInstance(), value.b2d_1);
|
|
911
911
|
}
|
|
912
|
-
tmp1_output.bq(tmp0_desc, 3, tmp2_cached[3], value.
|
|
913
|
-
if (tmp1_output.hq(tmp0_desc, 4) ? true : !(value.
|
|
914
|
-
tmp1_output.dq(tmp0_desc, 4, StringSerializer_getInstance(), value.
|
|
912
|
+
tmp1_output.bq(tmp0_desc, 3, tmp2_cached[3], value.c2d_1);
|
|
913
|
+
if (tmp1_output.hq(tmp0_desc, 4) ? true : !(value.d2d_1 == null)) {
|
|
914
|
+
tmp1_output.dq(tmp0_desc, 4, StringSerializer_getInstance(), value.d2d_1);
|
|
915
915
|
}
|
|
916
916
|
tmp1_output.lo(tmp0_desc);
|
|
917
917
|
};
|
|
918
918
|
protoOf($serializer_1).kl = function (encoder, value) {
|
|
919
|
-
return this.
|
|
919
|
+
return this.z2d(encoder, value instanceof RecordType ? value : THROW_CCE());
|
|
920
920
|
};
|
|
921
921
|
protoOf($serializer_1).ll = function (decoder) {
|
|
922
|
-
var tmp0_desc = this.
|
|
922
|
+
var tmp0_desc = this.y2d_1;
|
|
923
923
|
var tmp1_flag = true;
|
|
924
924
|
var tmp2_index = 0;
|
|
925
925
|
var tmp3_bitMask0 = 0;
|
|
@@ -929,7 +929,7 @@ protoOf($serializer_1).ll = function (decoder) {
|
|
|
929
929
|
var tmp7_local3 = null;
|
|
930
930
|
var tmp8_local4 = null;
|
|
931
931
|
var tmp9_input = decoder.ko(tmp0_desc);
|
|
932
|
-
var tmp10_cached = Companion_getInstance_3().
|
|
932
|
+
var tmp10_cached = Companion_getInstance_3().x2d_1;
|
|
933
933
|
if (tmp9_input.ap()) {
|
|
934
934
|
tmp4_local0 = tmp9_input.uo(tmp0_desc, 0);
|
|
935
935
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -976,10 +976,10 @@ protoOf($serializer_1).ll = function (decoder) {
|
|
|
976
976
|
return RecordType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null);
|
|
977
977
|
};
|
|
978
978
|
protoOf($serializer_1).jl = function () {
|
|
979
|
-
return this.
|
|
979
|
+
return this.y2d_1;
|
|
980
980
|
};
|
|
981
981
|
protoOf($serializer_1).nw = function () {
|
|
982
|
-
var tmp0_cached = Companion_getInstance_3().
|
|
982
|
+
var tmp0_cached = Companion_getInstance_3().x2d_1;
|
|
983
983
|
// Inline function 'kotlin.arrayOf' call
|
|
984
984
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
985
985
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -993,19 +993,19 @@ function $serializer_getInstance_1() {
|
|
|
993
993
|
}
|
|
994
994
|
function RecordType_init_$Init$(seen0, type, name, namespace, fields, doc, serializationConstructorMarker, $this) {
|
|
995
995
|
if (!(11 === (11 & seen0))) {
|
|
996
|
-
throwMissingFieldException(seen0, 11, $serializer_getInstance_1().
|
|
996
|
+
throwMissingFieldException(seen0, 11, $serializer_getInstance_1().y2d_1);
|
|
997
997
|
}
|
|
998
|
-
$this.
|
|
999
|
-
$this.
|
|
998
|
+
$this.z2c_1 = type;
|
|
999
|
+
$this.a2d_1 = name;
|
|
1000
1000
|
if (0 === (seen0 & 4))
|
|
1001
|
-
$this.
|
|
1001
|
+
$this.b2d_1 = null;
|
|
1002
1002
|
else
|
|
1003
|
-
$this.
|
|
1004
|
-
$this.
|
|
1003
|
+
$this.b2d_1 = namespace;
|
|
1004
|
+
$this.c2d_1 = fields;
|
|
1005
1005
|
if (0 === (seen0 & 16))
|
|
1006
|
-
$this.
|
|
1006
|
+
$this.d2d_1 = null;
|
|
1007
1007
|
else
|
|
1008
|
-
$this.
|
|
1008
|
+
$this.d2d_1 = doc;
|
|
1009
1009
|
return $this;
|
|
1010
1010
|
}
|
|
1011
1011
|
function RecordType_init_$Create$(seen0, type, name, namespace, fields, doc, serializationConstructorMarker) {
|
|
@@ -1025,20 +1025,20 @@ function $serializer_2() {
|
|
|
1025
1025
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.ArrayType', this, 2);
|
|
1026
1026
|
tmp0_serialDesc.uv('type', false);
|
|
1027
1027
|
tmp0_serialDesc.uv('items', false);
|
|
1028
|
-
this.
|
|
1028
|
+
this.a2e_1 = tmp0_serialDesc;
|
|
1029
1029
|
}
|
|
1030
|
-
protoOf($serializer_2).
|
|
1031
|
-
var tmp0_desc = this.
|
|
1030
|
+
protoOf($serializer_2).b2e = function (encoder, value) {
|
|
1031
|
+
var tmp0_desc = this.a2e_1;
|
|
1032
1032
|
var tmp1_output = encoder.ko(tmp0_desc);
|
|
1033
|
-
tmp1_output.zp(tmp0_desc, 0, value.
|
|
1034
|
-
tmp1_output.bq(tmp0_desc, 1, TypeSerializer_getInstance(), value.
|
|
1033
|
+
tmp1_output.zp(tmp0_desc, 0, value.e2d_1);
|
|
1034
|
+
tmp1_output.bq(tmp0_desc, 1, TypeSerializer_getInstance(), value.f2d_1);
|
|
1035
1035
|
tmp1_output.lo(tmp0_desc);
|
|
1036
1036
|
};
|
|
1037
1037
|
protoOf($serializer_2).kl = function (encoder, value) {
|
|
1038
|
-
return this.
|
|
1038
|
+
return this.b2e(encoder, value instanceof ArrayType ? value : THROW_CCE());
|
|
1039
1039
|
};
|
|
1040
1040
|
protoOf($serializer_2).ll = function (decoder) {
|
|
1041
|
-
var tmp0_desc = this.
|
|
1041
|
+
var tmp0_desc = this.a2e_1;
|
|
1042
1042
|
var tmp1_flag = true;
|
|
1043
1043
|
var tmp2_index = 0;
|
|
1044
1044
|
var tmp3_bitMask0 = 0;
|
|
@@ -1073,7 +1073,7 @@ protoOf($serializer_2).ll = function (decoder) {
|
|
|
1073
1073
|
return ArrayType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1074
1074
|
};
|
|
1075
1075
|
protoOf($serializer_2).jl = function () {
|
|
1076
|
-
return this.
|
|
1076
|
+
return this.a2e_1;
|
|
1077
1077
|
};
|
|
1078
1078
|
protoOf($serializer_2).nw = function () {
|
|
1079
1079
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -1089,10 +1089,10 @@ function $serializer_getInstance_2() {
|
|
|
1089
1089
|
}
|
|
1090
1090
|
function ArrayType_init_$Init$(seen0, type, items, serializationConstructorMarker, $this) {
|
|
1091
1091
|
if (!(3 === (3 & seen0))) {
|
|
1092
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().
|
|
1092
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().a2e_1);
|
|
1093
1093
|
}
|
|
1094
|
-
$this.
|
|
1095
|
-
$this.
|
|
1094
|
+
$this.e2d_1 = type;
|
|
1095
|
+
$this.f2d_1 = items;
|
|
1096
1096
|
return $this;
|
|
1097
1097
|
}
|
|
1098
1098
|
function ArrayType_init_$Create$(seen0, type, items, serializationConstructorMarker) {
|
|
@@ -1112,20 +1112,20 @@ function $serializer_3() {
|
|
|
1112
1112
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.MapType', this, 2);
|
|
1113
1113
|
tmp0_serialDesc.uv('type', false);
|
|
1114
1114
|
tmp0_serialDesc.uv('values', false);
|
|
1115
|
-
this.
|
|
1115
|
+
this.c2e_1 = tmp0_serialDesc;
|
|
1116
1116
|
}
|
|
1117
|
-
protoOf($serializer_3).
|
|
1118
|
-
var tmp0_desc = this.
|
|
1117
|
+
protoOf($serializer_3).d2e = function (encoder, value) {
|
|
1118
|
+
var tmp0_desc = this.c2e_1;
|
|
1119
1119
|
var tmp1_output = encoder.ko(tmp0_desc);
|
|
1120
|
-
tmp1_output.zp(tmp0_desc, 0, value.
|
|
1121
|
-
tmp1_output.bq(tmp0_desc, 1, TypeSerializer_getInstance(), value.
|
|
1120
|
+
tmp1_output.zp(tmp0_desc, 0, value.p2c_1);
|
|
1121
|
+
tmp1_output.bq(tmp0_desc, 1, TypeSerializer_getInstance(), value.q2c_1);
|
|
1122
1122
|
tmp1_output.lo(tmp0_desc);
|
|
1123
1123
|
};
|
|
1124
1124
|
protoOf($serializer_3).kl = function (encoder, value) {
|
|
1125
|
-
return this.
|
|
1125
|
+
return this.d2e(encoder, value instanceof MapType ? value : THROW_CCE());
|
|
1126
1126
|
};
|
|
1127
1127
|
protoOf($serializer_3).ll = function (decoder) {
|
|
1128
|
-
var tmp0_desc = this.
|
|
1128
|
+
var tmp0_desc = this.c2e_1;
|
|
1129
1129
|
var tmp1_flag = true;
|
|
1130
1130
|
var tmp2_index = 0;
|
|
1131
1131
|
var tmp3_bitMask0 = 0;
|
|
@@ -1160,7 +1160,7 @@ protoOf($serializer_3).ll = function (decoder) {
|
|
|
1160
1160
|
return MapType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1161
1161
|
};
|
|
1162
1162
|
protoOf($serializer_3).jl = function () {
|
|
1163
|
-
return this.
|
|
1163
|
+
return this.c2e_1;
|
|
1164
1164
|
};
|
|
1165
1165
|
protoOf($serializer_3).nw = function () {
|
|
1166
1166
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -1176,10 +1176,10 @@ function $serializer_getInstance_3() {
|
|
|
1176
1176
|
}
|
|
1177
1177
|
function MapType_init_$Init$(seen0, type, values, serializationConstructorMarker, $this) {
|
|
1178
1178
|
if (!(3 === (3 & seen0))) {
|
|
1179
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_3().
|
|
1179
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_3().c2e_1);
|
|
1180
1180
|
}
|
|
1181
|
-
$this.
|
|
1182
|
-
$this.
|
|
1181
|
+
$this.p2c_1 = type;
|
|
1182
|
+
$this.q2c_1 = values;
|
|
1183
1183
|
return $this;
|
|
1184
1184
|
}
|
|
1185
1185
|
function MapType_init_$Create$(seen0, type, values, serializationConstructorMarker) {
|
|
@@ -1191,7 +1191,7 @@ function Companion_6() {
|
|
|
1191
1191
|
// Inline function 'kotlin.arrayOf' call
|
|
1192
1192
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1193
1193
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1194
|
-
tmp.
|
|
1194
|
+
tmp.e2e_1 = [null, null, null, new ArrayListSerializer(StringSerializer_getInstance())];
|
|
1195
1195
|
}
|
|
1196
1196
|
protoOf(Companion_6).v17 = function () {
|
|
1197
1197
|
return $serializer_getInstance_4();
|
|
@@ -1209,25 +1209,25 @@ function $serializer_4() {
|
|
|
1209
1209
|
tmp0_serialDesc.uv('name', false);
|
|
1210
1210
|
tmp0_serialDesc.uv('doc', true);
|
|
1211
1211
|
tmp0_serialDesc.uv('symbols', false);
|
|
1212
|
-
this.
|
|
1212
|
+
this.f2e_1 = tmp0_serialDesc;
|
|
1213
1213
|
}
|
|
1214
|
-
protoOf($serializer_4).
|
|
1215
|
-
var tmp0_desc = this.
|
|
1214
|
+
protoOf($serializer_4).g2e = function (encoder, value) {
|
|
1215
|
+
var tmp0_desc = this.f2e_1;
|
|
1216
1216
|
var tmp1_output = encoder.ko(tmp0_desc);
|
|
1217
|
-
var tmp2_cached = Companion_getInstance_6().
|
|
1218
|
-
tmp1_output.zp(tmp0_desc, 0, value.
|
|
1219
|
-
tmp1_output.zp(tmp0_desc, 1, value.
|
|
1220
|
-
if (tmp1_output.hq(tmp0_desc, 2) ? true : !(value.
|
|
1221
|
-
tmp1_output.dq(tmp0_desc, 2, StringSerializer_getInstance(), value.
|
|
1217
|
+
var tmp2_cached = Companion_getInstance_6().e2e_1;
|
|
1218
|
+
tmp1_output.zp(tmp0_desc, 0, value.v2c_1);
|
|
1219
|
+
tmp1_output.zp(tmp0_desc, 1, value.w2c_1);
|
|
1220
|
+
if (tmp1_output.hq(tmp0_desc, 2) ? true : !(value.x2c_1 == null)) {
|
|
1221
|
+
tmp1_output.dq(tmp0_desc, 2, StringSerializer_getInstance(), value.x2c_1);
|
|
1222
1222
|
}
|
|
1223
|
-
tmp1_output.bq(tmp0_desc, 3, tmp2_cached[3], value.
|
|
1223
|
+
tmp1_output.bq(tmp0_desc, 3, tmp2_cached[3], value.y2c_1);
|
|
1224
1224
|
tmp1_output.lo(tmp0_desc);
|
|
1225
1225
|
};
|
|
1226
1226
|
protoOf($serializer_4).kl = function (encoder, value) {
|
|
1227
|
-
return this.
|
|
1227
|
+
return this.g2e(encoder, value instanceof EnumType ? value : THROW_CCE());
|
|
1228
1228
|
};
|
|
1229
1229
|
protoOf($serializer_4).ll = function (decoder) {
|
|
1230
|
-
var tmp0_desc = this.
|
|
1230
|
+
var tmp0_desc = this.f2e_1;
|
|
1231
1231
|
var tmp1_flag = true;
|
|
1232
1232
|
var tmp2_index = 0;
|
|
1233
1233
|
var tmp3_bitMask0 = 0;
|
|
@@ -1236,7 +1236,7 @@ protoOf($serializer_4).ll = function (decoder) {
|
|
|
1236
1236
|
var tmp6_local2 = null;
|
|
1237
1237
|
var tmp7_local3 = null;
|
|
1238
1238
|
var tmp8_input = decoder.ko(tmp0_desc);
|
|
1239
|
-
var tmp9_cached = Companion_getInstance_6().
|
|
1239
|
+
var tmp9_cached = Companion_getInstance_6().e2e_1;
|
|
1240
1240
|
if (tmp8_input.ap()) {
|
|
1241
1241
|
tmp4_local0 = tmp8_input.uo(tmp0_desc, 0);
|
|
1242
1242
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -1277,10 +1277,10 @@ protoOf($serializer_4).ll = function (decoder) {
|
|
|
1277
1277
|
return EnumType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
1278
1278
|
};
|
|
1279
1279
|
protoOf($serializer_4).jl = function () {
|
|
1280
|
-
return this.
|
|
1280
|
+
return this.f2e_1;
|
|
1281
1281
|
};
|
|
1282
1282
|
protoOf($serializer_4).nw = function () {
|
|
1283
|
-
var tmp0_cached = Companion_getInstance_6().
|
|
1283
|
+
var tmp0_cached = Companion_getInstance_6().e2e_1;
|
|
1284
1284
|
// Inline function 'kotlin.arrayOf' call
|
|
1285
1285
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1286
1286
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1294,15 +1294,15 @@ function $serializer_getInstance_4() {
|
|
|
1294
1294
|
}
|
|
1295
1295
|
function EnumType_init_$Init$(seen0, type, name, doc, symbols, serializationConstructorMarker, $this) {
|
|
1296
1296
|
if (!(11 === (11 & seen0))) {
|
|
1297
|
-
throwMissingFieldException(seen0, 11, $serializer_getInstance_4().
|
|
1297
|
+
throwMissingFieldException(seen0, 11, $serializer_getInstance_4().f2e_1);
|
|
1298
1298
|
}
|
|
1299
|
-
$this.
|
|
1300
|
-
$this.
|
|
1299
|
+
$this.v2c_1 = type;
|
|
1300
|
+
$this.w2c_1 = name;
|
|
1301
1301
|
if (0 === (seen0 & 4))
|
|
1302
|
-
$this.
|
|
1302
|
+
$this.x2c_1 = null;
|
|
1303
1303
|
else
|
|
1304
|
-
$this.
|
|
1305
|
-
$this.
|
|
1304
|
+
$this.x2c_1 = doc;
|
|
1305
|
+
$this.y2c_1 = symbols;
|
|
1306
1306
|
return $this;
|
|
1307
1307
|
}
|
|
1308
1308
|
function EnumType_init_$Create$(seen0, type, name, doc, symbols, serializationConstructorMarker) {
|
|
@@ -1322,20 +1322,20 @@ function $serializer_5() {
|
|
|
1322
1322
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.UnionType', this, 2);
|
|
1323
1323
|
tmp0_serialDesc.uv('name', false);
|
|
1324
1324
|
tmp0_serialDesc.uv('type', false);
|
|
1325
|
-
this.
|
|
1325
|
+
this.h2e_1 = tmp0_serialDesc;
|
|
1326
1326
|
}
|
|
1327
|
-
protoOf($serializer_5).
|
|
1328
|
-
var tmp0_desc = this.
|
|
1327
|
+
protoOf($serializer_5).i2e = function (encoder, value) {
|
|
1328
|
+
var tmp0_desc = this.h2e_1;
|
|
1329
1329
|
var tmp1_output = encoder.ko(tmp0_desc);
|
|
1330
|
-
tmp1_output.zp(tmp0_desc, 0, value.
|
|
1331
|
-
tmp1_output.bq(tmp0_desc, 1, TypeListSerializer_getInstance(), value.
|
|
1330
|
+
tmp1_output.zp(tmp0_desc, 0, value.n2c_1);
|
|
1331
|
+
tmp1_output.bq(tmp0_desc, 1, TypeListSerializer_getInstance(), value.o2c_1);
|
|
1332
1332
|
tmp1_output.lo(tmp0_desc);
|
|
1333
1333
|
};
|
|
1334
1334
|
protoOf($serializer_5).kl = function (encoder, value) {
|
|
1335
|
-
return this.
|
|
1335
|
+
return this.i2e(encoder, value instanceof UnionType ? value : THROW_CCE());
|
|
1336
1336
|
};
|
|
1337
1337
|
protoOf($serializer_5).ll = function (decoder) {
|
|
1338
|
-
var tmp0_desc = this.
|
|
1338
|
+
var tmp0_desc = this.h2e_1;
|
|
1339
1339
|
var tmp1_flag = true;
|
|
1340
1340
|
var tmp2_index = 0;
|
|
1341
1341
|
var tmp3_bitMask0 = 0;
|
|
@@ -1370,7 +1370,7 @@ protoOf($serializer_5).ll = function (decoder) {
|
|
|
1370
1370
|
return UnionType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1371
1371
|
};
|
|
1372
1372
|
protoOf($serializer_5).jl = function () {
|
|
1373
|
-
return this.
|
|
1373
|
+
return this.h2e_1;
|
|
1374
1374
|
};
|
|
1375
1375
|
protoOf($serializer_5).nw = function () {
|
|
1376
1376
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -1386,10 +1386,10 @@ function $serializer_getInstance_5() {
|
|
|
1386
1386
|
}
|
|
1387
1387
|
function UnionType_init_$Init$(seen0, name, type, serializationConstructorMarker, $this) {
|
|
1388
1388
|
if (!(3 === (3 & seen0))) {
|
|
1389
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_5().
|
|
1389
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_5().h2e_1);
|
|
1390
1390
|
}
|
|
1391
|
-
$this.
|
|
1392
|
-
$this.
|
|
1391
|
+
$this.n2c_1 = name;
|
|
1392
|
+
$this.o2c_1 = type;
|
|
1393
1393
|
return $this;
|
|
1394
1394
|
}
|
|
1395
1395
|
function UnionType_init_$Create$(seen0, name, type, serializationConstructorMarker) {
|
|
@@ -1411,26 +1411,26 @@ function $serializer_6() {
|
|
|
1411
1411
|
tmp0_serialDesc.uv('logicalType', false);
|
|
1412
1412
|
tmp0_serialDesc.uv('precision', true);
|
|
1413
1413
|
tmp0_serialDesc.uv('scale', true);
|
|
1414
|
-
this.
|
|
1414
|
+
this.j2e_1 = tmp0_serialDesc;
|
|
1415
1415
|
}
|
|
1416
|
-
protoOf($serializer_6).
|
|
1417
|
-
var tmp0_desc = this.
|
|
1416
|
+
protoOf($serializer_6).k2e = function (encoder, value) {
|
|
1417
|
+
var tmp0_desc = this.j2e_1;
|
|
1418
1418
|
var tmp1_output = encoder.ko(tmp0_desc);
|
|
1419
|
-
tmp1_output.zp(tmp0_desc, 0, value.
|
|
1420
|
-
tmp1_output.zp(tmp0_desc, 1, value.
|
|
1421
|
-
if (tmp1_output.hq(tmp0_desc, 2) ? true : !(value.
|
|
1422
|
-
tmp1_output.dq(tmp0_desc, 2, IntSerializer_getInstance(), value.
|
|
1419
|
+
tmp1_output.zp(tmp0_desc, 0, value.r2c_1);
|
|
1420
|
+
tmp1_output.zp(tmp0_desc, 1, value.s2c_1);
|
|
1421
|
+
if (tmp1_output.hq(tmp0_desc, 2) ? true : !(value.t2c_1 == null)) {
|
|
1422
|
+
tmp1_output.dq(tmp0_desc, 2, IntSerializer_getInstance(), value.t2c_1);
|
|
1423
1423
|
}
|
|
1424
|
-
if (tmp1_output.hq(tmp0_desc, 3) ? true : !(value.
|
|
1425
|
-
tmp1_output.dq(tmp0_desc, 3, IntSerializer_getInstance(), value.
|
|
1424
|
+
if (tmp1_output.hq(tmp0_desc, 3) ? true : !(value.u2c_1 == null)) {
|
|
1425
|
+
tmp1_output.dq(tmp0_desc, 3, IntSerializer_getInstance(), value.u2c_1);
|
|
1426
1426
|
}
|
|
1427
1427
|
tmp1_output.lo(tmp0_desc);
|
|
1428
1428
|
};
|
|
1429
1429
|
protoOf($serializer_6).kl = function (encoder, value) {
|
|
1430
|
-
return this.
|
|
1430
|
+
return this.k2e(encoder, value instanceof LogicalType ? value : THROW_CCE());
|
|
1431
1431
|
};
|
|
1432
1432
|
protoOf($serializer_6).ll = function (decoder) {
|
|
1433
|
-
var tmp0_desc = this.
|
|
1433
|
+
var tmp0_desc = this.j2e_1;
|
|
1434
1434
|
var tmp1_flag = true;
|
|
1435
1435
|
var tmp2_index = 0;
|
|
1436
1436
|
var tmp3_bitMask0 = 0;
|
|
@@ -1479,7 +1479,7 @@ protoOf($serializer_6).ll = function (decoder) {
|
|
|
1479
1479
|
return LogicalType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
1480
1480
|
};
|
|
1481
1481
|
protoOf($serializer_6).jl = function () {
|
|
1482
|
-
return this.
|
|
1482
|
+
return this.j2e_1;
|
|
1483
1483
|
};
|
|
1484
1484
|
protoOf($serializer_6).nw = function () {
|
|
1485
1485
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -1495,18 +1495,18 @@ function $serializer_getInstance_6() {
|
|
|
1495
1495
|
}
|
|
1496
1496
|
function LogicalType_init_$Init$(seen0, type, logicalType, precision, scale, serializationConstructorMarker, $this) {
|
|
1497
1497
|
if (!(3 === (3 & seen0))) {
|
|
1498
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_6().
|
|
1498
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_6().j2e_1);
|
|
1499
1499
|
}
|
|
1500
|
-
$this.
|
|
1501
|
-
$this.
|
|
1500
|
+
$this.r2c_1 = type;
|
|
1501
|
+
$this.s2c_1 = logicalType;
|
|
1502
1502
|
if (0 === (seen0 & 4))
|
|
1503
|
-
$this.
|
|
1503
|
+
$this.t2c_1 = null;
|
|
1504
1504
|
else
|
|
1505
|
-
$this.
|
|
1505
|
+
$this.t2c_1 = precision;
|
|
1506
1506
|
if (0 === (seen0 & 8))
|
|
1507
|
-
$this.
|
|
1507
|
+
$this.u2c_1 = null;
|
|
1508
1508
|
else
|
|
1509
|
-
$this.
|
|
1509
|
+
$this.u2c_1 = scale;
|
|
1510
1510
|
return $this;
|
|
1511
1511
|
}
|
|
1512
1512
|
function LogicalType_init_$Create$(seen0, type, logicalType, precision, scale, serializationConstructorMarker) {
|
|
@@ -1515,19 +1515,19 @@ function LogicalType_init_$Create$(seen0, type, logicalType, precision, scale, s
|
|
|
1515
1515
|
function Field_0(name, type, doc, default_0) {
|
|
1516
1516
|
doc = doc === VOID ? null : doc;
|
|
1517
1517
|
default_0 = default_0 === VOID ? null : default_0;
|
|
1518
|
-
this.
|
|
1519
|
-
this.
|
|
1520
|
-
this.
|
|
1521
|
-
this.
|
|
1518
|
+
this.g2d_1 = name;
|
|
1519
|
+
this.h2d_1 = type;
|
|
1520
|
+
this.i2d_1 = doc;
|
|
1521
|
+
this.j2d_1 = default_0;
|
|
1522
1522
|
}
|
|
1523
1523
|
protoOf(Field_0).toString = function () {
|
|
1524
|
-
return 'Field(name=' + this.
|
|
1524
|
+
return 'Field(name=' + this.g2d_1 + ', type=' + this.h2d_1.toString() + ', doc=' + this.i2d_1 + ', default=' + this.j2d_1 + ')';
|
|
1525
1525
|
};
|
|
1526
1526
|
protoOf(Field_0).hashCode = function () {
|
|
1527
|
-
var result = getStringHashCode(this.
|
|
1528
|
-
result = imul(result, 31) + this.
|
|
1527
|
+
var result = getStringHashCode(this.g2d_1);
|
|
1528
|
+
result = imul(result, 31) + this.h2d_1.hashCode() | 0;
|
|
1529
|
+
result = imul(result, 31) + (this.i2d_1 == null ? 0 : getStringHashCode(this.i2d_1)) | 0;
|
|
1529
1530
|
result = imul(result, 31) + (this.j2d_1 == null ? 0 : getStringHashCode(this.j2d_1)) | 0;
|
|
1530
|
-
result = imul(result, 31) + (this.k2d_1 == null ? 0 : getStringHashCode(this.k2d_1)) | 0;
|
|
1531
1531
|
return result;
|
|
1532
1532
|
};
|
|
1533
1533
|
protoOf(Field_0).equals = function (other) {
|
|
@@ -1536,37 +1536,37 @@ protoOf(Field_0).equals = function (other) {
|
|
|
1536
1536
|
if (!(other instanceof Field_0))
|
|
1537
1537
|
return false;
|
|
1538
1538
|
var tmp0_other_with_cast = other instanceof Field_0 ? other : THROW_CCE();
|
|
1539
|
-
if (!(this.
|
|
1539
|
+
if (!(this.g2d_1 === tmp0_other_with_cast.g2d_1))
|
|
1540
1540
|
return false;
|
|
1541
|
-
if (!this.
|
|
1541
|
+
if (!this.h2d_1.equals(tmp0_other_with_cast.h2d_1))
|
|
1542
1542
|
return false;
|
|
1543
|
-
if (!(this.
|
|
1543
|
+
if (!(this.i2d_1 == tmp0_other_with_cast.i2d_1))
|
|
1544
1544
|
return false;
|
|
1545
|
-
if (!(this.
|
|
1545
|
+
if (!(this.j2d_1 == tmp0_other_with_cast.j2d_1))
|
|
1546
1546
|
return false;
|
|
1547
1547
|
return true;
|
|
1548
1548
|
};
|
|
1549
1549
|
function TypeList(type) {
|
|
1550
1550
|
AbstractList.call(this);
|
|
1551
|
-
this.
|
|
1552
|
-
this.
|
|
1551
|
+
this.l2e_1 = toList_0(type);
|
|
1552
|
+
this.m2e_1 = this.l2e_1.j();
|
|
1553
1553
|
}
|
|
1554
1554
|
protoOf(TypeList).j = function () {
|
|
1555
|
-
return this.
|
|
1555
|
+
return this.m2e_1;
|
|
1556
1556
|
};
|
|
1557
1557
|
protoOf(TypeList).k = function (index) {
|
|
1558
|
-
return this.
|
|
1558
|
+
return this.l2e_1.k(index);
|
|
1559
1559
|
};
|
|
1560
1560
|
function Type_0() {
|
|
1561
1561
|
}
|
|
1562
1562
|
function SimpleType(value) {
|
|
1563
|
-
this.
|
|
1563
|
+
this.m2c_1 = value;
|
|
1564
1564
|
}
|
|
1565
1565
|
protoOf(SimpleType).toString = function () {
|
|
1566
|
-
return 'SimpleType(value=' + this.
|
|
1566
|
+
return 'SimpleType(value=' + this.m2c_1 + ')';
|
|
1567
1567
|
};
|
|
1568
1568
|
protoOf(SimpleType).hashCode = function () {
|
|
1569
|
-
return getStringHashCode(this.
|
|
1569
|
+
return getStringHashCode(this.m2c_1);
|
|
1570
1570
|
};
|
|
1571
1571
|
protoOf(SimpleType).equals = function (other) {
|
|
1572
1572
|
if (this === other)
|
|
@@ -1574,7 +1574,7 @@ protoOf(SimpleType).equals = function (other) {
|
|
|
1574
1574
|
if (!(other instanceof SimpleType))
|
|
1575
1575
|
return false;
|
|
1576
1576
|
var tmp0_other_with_cast = other instanceof SimpleType ? other : THROW_CCE();
|
|
1577
|
-
if (!(this.
|
|
1577
|
+
if (!(this.m2c_1 === tmp0_other_with_cast.m2c_1))
|
|
1578
1578
|
return false;
|
|
1579
1579
|
return true;
|
|
1580
1580
|
};
|
|
@@ -1582,21 +1582,21 @@ function RecordType(type, name, namespace, fields, doc) {
|
|
|
1582
1582
|
Companion_getInstance_3();
|
|
1583
1583
|
namespace = namespace === VOID ? null : namespace;
|
|
1584
1584
|
doc = doc === VOID ? null : doc;
|
|
1585
|
-
this.
|
|
1586
|
-
this.
|
|
1587
|
-
this.
|
|
1588
|
-
this.
|
|
1589
|
-
this.
|
|
1585
|
+
this.z2c_1 = type;
|
|
1586
|
+
this.a2d_1 = name;
|
|
1587
|
+
this.b2d_1 = namespace;
|
|
1588
|
+
this.c2d_1 = fields;
|
|
1589
|
+
this.d2d_1 = doc;
|
|
1590
1590
|
}
|
|
1591
1591
|
protoOf(RecordType).toString = function () {
|
|
1592
|
-
return 'RecordType(type=' + this.
|
|
1592
|
+
return 'RecordType(type=' + this.z2c_1 + ', name=' + this.a2d_1 + ', namespace=' + this.b2d_1 + ', fields=' + toString(this.c2d_1) + ', doc=' + this.d2d_1 + ')';
|
|
1593
1593
|
};
|
|
1594
1594
|
protoOf(RecordType).hashCode = function () {
|
|
1595
|
-
var result = getStringHashCode(this.
|
|
1596
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1597
|
-
result = imul(result, 31) + (this.
|
|
1598
|
-
result = imul(result, 31) + hashCode(this.
|
|
1599
|
-
result = imul(result, 31) + (this.
|
|
1595
|
+
var result = getStringHashCode(this.z2c_1);
|
|
1596
|
+
result = imul(result, 31) + getStringHashCode(this.a2d_1) | 0;
|
|
1597
|
+
result = imul(result, 31) + (this.b2d_1 == null ? 0 : getStringHashCode(this.b2d_1)) | 0;
|
|
1598
|
+
result = imul(result, 31) + hashCode(this.c2d_1) | 0;
|
|
1599
|
+
result = imul(result, 31) + (this.d2d_1 == null ? 0 : getStringHashCode(this.d2d_1)) | 0;
|
|
1600
1600
|
return result;
|
|
1601
1601
|
};
|
|
1602
1602
|
protoOf(RecordType).equals = function (other) {
|
|
@@ -1605,28 +1605,28 @@ protoOf(RecordType).equals = function (other) {
|
|
|
1605
1605
|
if (!(other instanceof RecordType))
|
|
1606
1606
|
return false;
|
|
1607
1607
|
var tmp0_other_with_cast = other instanceof RecordType ? other : THROW_CCE();
|
|
1608
|
-
if (!(this.
|
|
1608
|
+
if (!(this.z2c_1 === tmp0_other_with_cast.z2c_1))
|
|
1609
1609
|
return false;
|
|
1610
|
-
if (!(this.
|
|
1610
|
+
if (!(this.a2d_1 === tmp0_other_with_cast.a2d_1))
|
|
1611
1611
|
return false;
|
|
1612
|
-
if (!(this.
|
|
1612
|
+
if (!(this.b2d_1 == tmp0_other_with_cast.b2d_1))
|
|
1613
1613
|
return false;
|
|
1614
|
-
if (!equals(this.
|
|
1614
|
+
if (!equals(this.c2d_1, tmp0_other_with_cast.c2d_1))
|
|
1615
1615
|
return false;
|
|
1616
|
-
if (!(this.
|
|
1616
|
+
if (!(this.d2d_1 == tmp0_other_with_cast.d2d_1))
|
|
1617
1617
|
return false;
|
|
1618
1618
|
return true;
|
|
1619
1619
|
};
|
|
1620
1620
|
function ArrayType(type, items) {
|
|
1621
|
-
this.
|
|
1622
|
-
this.
|
|
1621
|
+
this.e2d_1 = type;
|
|
1622
|
+
this.f2d_1 = items;
|
|
1623
1623
|
}
|
|
1624
1624
|
protoOf(ArrayType).toString = function () {
|
|
1625
|
-
return 'ArrayType(type=' + this.
|
|
1625
|
+
return 'ArrayType(type=' + this.e2d_1 + ', items=' + toString(this.f2d_1) + ')';
|
|
1626
1626
|
};
|
|
1627
1627
|
protoOf(ArrayType).hashCode = function () {
|
|
1628
|
-
var result = getStringHashCode(this.
|
|
1629
|
-
result = imul(result, 31) + hashCode(this.
|
|
1628
|
+
var result = getStringHashCode(this.e2d_1);
|
|
1629
|
+
result = imul(result, 31) + hashCode(this.f2d_1) | 0;
|
|
1630
1630
|
return result;
|
|
1631
1631
|
};
|
|
1632
1632
|
protoOf(ArrayType).equals = function (other) {
|
|
@@ -1635,22 +1635,22 @@ protoOf(ArrayType).equals = function (other) {
|
|
|
1635
1635
|
if (!(other instanceof ArrayType))
|
|
1636
1636
|
return false;
|
|
1637
1637
|
var tmp0_other_with_cast = other instanceof ArrayType ? other : THROW_CCE();
|
|
1638
|
-
if (!(this.
|
|
1638
|
+
if (!(this.e2d_1 === tmp0_other_with_cast.e2d_1))
|
|
1639
1639
|
return false;
|
|
1640
|
-
if (!equals(this.
|
|
1640
|
+
if (!equals(this.f2d_1, tmp0_other_with_cast.f2d_1))
|
|
1641
1641
|
return false;
|
|
1642
1642
|
return true;
|
|
1643
1643
|
};
|
|
1644
1644
|
function MapType(type, values) {
|
|
1645
|
-
this.
|
|
1646
|
-
this.
|
|
1645
|
+
this.p2c_1 = type;
|
|
1646
|
+
this.q2c_1 = values;
|
|
1647
1647
|
}
|
|
1648
1648
|
protoOf(MapType).toString = function () {
|
|
1649
|
-
return 'MapType(type=' + this.
|
|
1649
|
+
return 'MapType(type=' + this.p2c_1 + ', values=' + toString(this.q2c_1) + ')';
|
|
1650
1650
|
};
|
|
1651
1651
|
protoOf(MapType).hashCode = function () {
|
|
1652
|
-
var result = getStringHashCode(this.
|
|
1653
|
-
result = imul(result, 31) + hashCode(this.
|
|
1652
|
+
var result = getStringHashCode(this.p2c_1);
|
|
1653
|
+
result = imul(result, 31) + hashCode(this.q2c_1) | 0;
|
|
1654
1654
|
return result;
|
|
1655
1655
|
};
|
|
1656
1656
|
protoOf(MapType).equals = function (other) {
|
|
@@ -1659,28 +1659,28 @@ protoOf(MapType).equals = function (other) {
|
|
|
1659
1659
|
if (!(other instanceof MapType))
|
|
1660
1660
|
return false;
|
|
1661
1661
|
var tmp0_other_with_cast = other instanceof MapType ? other : THROW_CCE();
|
|
1662
|
-
if (!(this.
|
|
1662
|
+
if (!(this.p2c_1 === tmp0_other_with_cast.p2c_1))
|
|
1663
1663
|
return false;
|
|
1664
|
-
if (!equals(this.
|
|
1664
|
+
if (!equals(this.q2c_1, tmp0_other_with_cast.q2c_1))
|
|
1665
1665
|
return false;
|
|
1666
1666
|
return true;
|
|
1667
1667
|
};
|
|
1668
1668
|
function EnumType(type, name, doc, symbols) {
|
|
1669
1669
|
Companion_getInstance_6();
|
|
1670
1670
|
doc = doc === VOID ? null : doc;
|
|
1671
|
-
this.
|
|
1672
|
-
this.
|
|
1673
|
-
this.
|
|
1674
|
-
this.
|
|
1671
|
+
this.v2c_1 = type;
|
|
1672
|
+
this.w2c_1 = name;
|
|
1673
|
+
this.x2c_1 = doc;
|
|
1674
|
+
this.y2c_1 = symbols;
|
|
1675
1675
|
}
|
|
1676
1676
|
protoOf(EnumType).toString = function () {
|
|
1677
|
-
return 'EnumType(type=' + this.
|
|
1677
|
+
return 'EnumType(type=' + this.v2c_1 + ', name=' + this.w2c_1 + ', doc=' + this.x2c_1 + ', symbols=' + toString(this.y2c_1) + ')';
|
|
1678
1678
|
};
|
|
1679
1679
|
protoOf(EnumType).hashCode = function () {
|
|
1680
|
-
var result = getStringHashCode(this.
|
|
1681
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1682
|
-
result = imul(result, 31) + (this.
|
|
1683
|
-
result = imul(result, 31) + hashCode(this.
|
|
1680
|
+
var result = getStringHashCode(this.v2c_1);
|
|
1681
|
+
result = imul(result, 31) + getStringHashCode(this.w2c_1) | 0;
|
|
1682
|
+
result = imul(result, 31) + (this.x2c_1 == null ? 0 : getStringHashCode(this.x2c_1)) | 0;
|
|
1683
|
+
result = imul(result, 31) + hashCode(this.y2c_1) | 0;
|
|
1684
1684
|
return result;
|
|
1685
1685
|
};
|
|
1686
1686
|
protoOf(EnumType).equals = function (other) {
|
|
@@ -1689,26 +1689,26 @@ protoOf(EnumType).equals = function (other) {
|
|
|
1689
1689
|
if (!(other instanceof EnumType))
|
|
1690
1690
|
return false;
|
|
1691
1691
|
var tmp0_other_with_cast = other instanceof EnumType ? other : THROW_CCE();
|
|
1692
|
-
if (!(this.
|
|
1692
|
+
if (!(this.v2c_1 === tmp0_other_with_cast.v2c_1))
|
|
1693
1693
|
return false;
|
|
1694
|
-
if (!(this.
|
|
1694
|
+
if (!(this.w2c_1 === tmp0_other_with_cast.w2c_1))
|
|
1695
1695
|
return false;
|
|
1696
|
-
if (!(this.
|
|
1696
|
+
if (!(this.x2c_1 == tmp0_other_with_cast.x2c_1))
|
|
1697
1697
|
return false;
|
|
1698
|
-
if (!equals(this.
|
|
1698
|
+
if (!equals(this.y2c_1, tmp0_other_with_cast.y2c_1))
|
|
1699
1699
|
return false;
|
|
1700
1700
|
return true;
|
|
1701
1701
|
};
|
|
1702
1702
|
function UnionType(name, type) {
|
|
1703
|
-
this.
|
|
1704
|
-
this.
|
|
1703
|
+
this.n2c_1 = name;
|
|
1704
|
+
this.o2c_1 = type;
|
|
1705
1705
|
}
|
|
1706
1706
|
protoOf(UnionType).toString = function () {
|
|
1707
|
-
return 'UnionType(name=' + this.
|
|
1707
|
+
return 'UnionType(name=' + this.n2c_1 + ', type=' + this.o2c_1.toString() + ')';
|
|
1708
1708
|
};
|
|
1709
1709
|
protoOf(UnionType).hashCode = function () {
|
|
1710
|
-
var result = getStringHashCode(this.
|
|
1711
|
-
result = imul(result, 31) + this.
|
|
1710
|
+
var result = getStringHashCode(this.n2c_1);
|
|
1711
|
+
result = imul(result, 31) + this.o2c_1.hashCode() | 0;
|
|
1712
1712
|
return result;
|
|
1713
1713
|
};
|
|
1714
1714
|
protoOf(UnionType).equals = function (other) {
|
|
@@ -1717,22 +1717,22 @@ protoOf(UnionType).equals = function (other) {
|
|
|
1717
1717
|
if (!(other instanceof UnionType))
|
|
1718
1718
|
return false;
|
|
1719
1719
|
var tmp0_other_with_cast = other instanceof UnionType ? other : THROW_CCE();
|
|
1720
|
-
if (!(this.
|
|
1720
|
+
if (!(this.n2c_1 === tmp0_other_with_cast.n2c_1))
|
|
1721
1721
|
return false;
|
|
1722
|
-
if (!this.
|
|
1722
|
+
if (!this.o2c_1.equals(tmp0_other_with_cast.o2c_1))
|
|
1723
1723
|
return false;
|
|
1724
1724
|
return true;
|
|
1725
1725
|
};
|
|
1726
1726
|
function LogicalType() {
|
|
1727
1727
|
}
|
|
1728
1728
|
protoOf(LogicalType).toString = function () {
|
|
1729
|
-
return 'LogicalType(type=' + this.
|
|
1729
|
+
return 'LogicalType(type=' + this.r2c_1 + ', logicalType=' + this.s2c_1 + ', precision=' + this.t2c_1 + ', scale=' + this.u2c_1 + ')';
|
|
1730
1730
|
};
|
|
1731
1731
|
protoOf(LogicalType).hashCode = function () {
|
|
1732
|
-
var result = getStringHashCode(this.
|
|
1733
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1732
|
+
var result = getStringHashCode(this.r2c_1);
|
|
1733
|
+
result = imul(result, 31) + getStringHashCode(this.s2c_1) | 0;
|
|
1734
|
+
result = imul(result, 31) + (this.t2c_1 == null ? 0 : this.t2c_1) | 0;
|
|
1734
1735
|
result = imul(result, 31) + (this.u2c_1 == null ? 0 : this.u2c_1) | 0;
|
|
1735
|
-
result = imul(result, 31) + (this.v2c_1 == null ? 0 : this.v2c_1) | 0;
|
|
1736
1736
|
return result;
|
|
1737
1737
|
};
|
|
1738
1738
|
protoOf(LogicalType).equals = function (other) {
|
|
@@ -1741,32 +1741,32 @@ protoOf(LogicalType).equals = function (other) {
|
|
|
1741
1741
|
if (!(other instanceof LogicalType))
|
|
1742
1742
|
return false;
|
|
1743
1743
|
var tmp0_other_with_cast = other instanceof LogicalType ? other : THROW_CCE();
|
|
1744
|
+
if (!(this.r2c_1 === tmp0_other_with_cast.r2c_1))
|
|
1745
|
+
return false;
|
|
1744
1746
|
if (!(this.s2c_1 === tmp0_other_with_cast.s2c_1))
|
|
1745
1747
|
return false;
|
|
1746
|
-
if (!(this.t2c_1
|
|
1748
|
+
if (!(this.t2c_1 == tmp0_other_with_cast.t2c_1))
|
|
1747
1749
|
return false;
|
|
1748
1750
|
if (!(this.u2c_1 == tmp0_other_with_cast.u2c_1))
|
|
1749
1751
|
return false;
|
|
1750
|
-
if (!(this.v2c_1 == tmp0_other_with_cast.v2c_1))
|
|
1751
|
-
return false;
|
|
1752
1752
|
return true;
|
|
1753
1753
|
};
|
|
1754
1754
|
function TypeListSerializer() {
|
|
1755
1755
|
TypeListSerializer_instance = this;
|
|
1756
|
-
this.
|
|
1756
|
+
this.n2e_1 = buildSerialDescriptor('TypeListSerializer', SEALED_getInstance(), []);
|
|
1757
1757
|
}
|
|
1758
1758
|
protoOf(TypeListSerializer).jl = function () {
|
|
1759
|
-
return this.
|
|
1759
|
+
return this.n2e_1;
|
|
1760
1760
|
};
|
|
1761
|
-
protoOf(TypeListSerializer).
|
|
1762
|
-
if (value.
|
|
1761
|
+
protoOf(TypeListSerializer).o2e = function (encoder, value) {
|
|
1762
|
+
if (value.m2e_1 > 1) {
|
|
1763
1763
|
encoder.cq(ListSerializer(Companion_instance_1.v17()), value);
|
|
1764
1764
|
} else {
|
|
1765
1765
|
encoder.cq(Companion_instance_1.v17(), first(value));
|
|
1766
1766
|
}
|
|
1767
1767
|
};
|
|
1768
1768
|
protoOf(TypeListSerializer).kl = function (encoder, value) {
|
|
1769
|
-
return this.
|
|
1769
|
+
return this.o2e(encoder, value instanceof TypeList ? value : THROW_CCE());
|
|
1770
1770
|
};
|
|
1771
1771
|
protoOf(TypeListSerializer).ll = function (decoder) {
|
|
1772
1772
|
var tmp0_elvis_lhs = isInterface(decoder, JsonDecoder) ? decoder : null;
|
|
@@ -1814,14 +1814,14 @@ function TypeListSerializer_getInstance() {
|
|
|
1814
1814
|
}
|
|
1815
1815
|
function TypeSerializer() {
|
|
1816
1816
|
TypeSerializer_instance = this;
|
|
1817
|
-
this.
|
|
1817
|
+
this.p2e_1 = buildSerialDescriptor('TypeSerializer', SEALED_getInstance(), []);
|
|
1818
1818
|
}
|
|
1819
1819
|
protoOf(TypeSerializer).jl = function () {
|
|
1820
|
-
return this.
|
|
1820
|
+
return this.p2e_1;
|
|
1821
1821
|
};
|
|
1822
|
-
protoOf(TypeSerializer).
|
|
1822
|
+
protoOf(TypeSerializer).q2e = function (encoder, value) {
|
|
1823
1823
|
if (value instanceof SimpleType) {
|
|
1824
|
-
encoder.cq(serializer_0(StringCompanionObject_instance), value.
|
|
1824
|
+
encoder.cq(serializer_0(StringCompanionObject_instance), value.m2c_1);
|
|
1825
1825
|
} else {
|
|
1826
1826
|
if (value instanceof RecordType) {
|
|
1827
1827
|
encoder.cq(Companion_getInstance_3().v17(), value);
|
|
@@ -1852,7 +1852,7 @@ protoOf(TypeSerializer).r2e = function (encoder, value) {
|
|
|
1852
1852
|
}
|
|
1853
1853
|
};
|
|
1854
1854
|
protoOf(TypeSerializer).kl = function (encoder, value) {
|
|
1855
|
-
return this.
|
|
1855
|
+
return this.q2e(encoder, (!(value == null) ? isInterface(value, Type_0) : false) ? value : THROW_CCE());
|
|
1856
1856
|
};
|
|
1857
1857
|
protoOf(TypeSerializer).ll = function (decoder) {
|
|
1858
1858
|
var tmp0_elvis_lhs = isInterface(decoder, JsonDecoder) ? decoder : null;
|
|
@@ -1907,7 +1907,7 @@ function AvroParser$parse$lambda($this$Json) {
|
|
|
1907
1907
|
}
|
|
1908
1908
|
function AvroParser() {
|
|
1909
1909
|
}
|
|
1910
|
-
protoOf(AvroParser).
|
|
1910
|
+
protoOf(AvroParser).r2e = function (moduleContent, strict) {
|
|
1911
1911
|
var json = Json(VOID, AvroParser$parse$lambda);
|
|
1912
1912
|
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
1913
1913
|
var string = moduleContent.a22_1;
|
|
@@ -1917,10 +1917,10 @@ protoOf(AvroParser).s2e = function (moduleContent, strict) {
|
|
|
1917
1917
|
var this_1 = serializer(this_0, createKType(getKClass(Type_0), arrayOf([]), false));
|
|
1918
1918
|
var tmp$ret$1 = isInterface(this_1, KSerializer) ? this_1 : THROW_CCE();
|
|
1919
1919
|
var avro = json.n15(tmp$ret$1, string);
|
|
1920
|
-
var tmp = AvroConverter_getInstance().
|
|
1920
|
+
var tmp = AvroConverter_getInstance().l2d(avro);
|
|
1921
1921
|
var tmp_0;
|
|
1922
1922
|
if (avro instanceof RecordType) {
|
|
1923
|
-
tmp_0 = new Channel(null, emptyList(), new DefinitionIdentifier(avro.
|
|
1923
|
+
tmp_0 = new Channel(null, emptyList(), new DefinitionIdentifier(avro.a2d_1), new Custom(avro.a2d_1, false));
|
|
1924
1924
|
} else {
|
|
1925
1925
|
if (avro instanceof ArrayType) {
|
|
1926
1926
|
throw new NotImplementedError();
|