@flock/wirespec 0.17.16 → 0.17.18
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 +1152 -1152
- package/colormath-root-colormath.mjs +424 -424
- package/kotlin-kotlin-stdlib.mjs +11 -11
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +1 -0
- package/kotlin-rgxgen.mjs +1763 -1763
- package/kotlinx-io-kotlinx-io-core.mjs +377 -377
- package/markdown.mjs +1833 -1833
- package/mordant-mordant.mjs +1605 -1605
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +25 -13
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-java.mjs +118 -84
- package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-kotlin.mjs +156 -126
- package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-python.mjs +169 -139
- package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-typescript.mjs +89 -85
- package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-wirespec.mjs +33 -33
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +246 -246
- package/wirespec-src-converter-avro.mjs +265 -265
- package/wirespec-src-converter-openapi.mjs +76 -75
- package/wirespec-src-converter-openapi.mjs.map +1 -1
- package/wirespec-src-plugin-arguments.mjs +132 -132
- package/wirespec-src-plugin-cli.mjs +66 -66
- package/wirespec-src-plugin-npm.mjs +10 -10
- 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.o2c_1);
|
|
145
145
|
}
|
|
146
146
|
function toPrimitive(_this__u8e3s4, $this) {
|
|
147
147
|
var tmp;
|
|
148
|
-
switch (_this__u8e3s4.
|
|
148
|
+
switch (_this__u8e3s4.p2c_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.p2c_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.p2c_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.p2c_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.i2d_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.d2d_1, isNullable);
|
|
202
202
|
} else {
|
|
203
203
|
if (_this__u8e3s4 instanceof EnumType) {
|
|
204
|
-
tmp = new Custom(_this__u8e3s4.
|
|
204
|
+
tmp = new Custom(_this__u8e3s4.z2c_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.u2c_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.t2c_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.q2c_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.o2c_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.d2d_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.f2d_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.j2d_1);
|
|
278
278
|
var tmp1_annotations = emptyList();
|
|
279
|
-
var tmp2_reference = toReference_0(item.
|
|
279
|
+
var tmp2_reference = toReference_0(item.k2d_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.z2c_1), toSet(_this__u8e3s4.b2d_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.r2c_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.o2c_1 = new SimpleType('null');
|
|
308
308
|
}
|
|
309
|
-
protoOf(AvroConverter).
|
|
309
|
+
protoOf(AvroConverter).n2d = 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).k2d = 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.f2d_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).k2d = 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.k2d_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().n2d(element_0, name);
|
|
333
333
|
addAll(destination_0, list);
|
|
334
334
|
}
|
|
335
335
|
var list_0 = destination_0;
|
|
@@ -338,7 +338,7 @@ protoOf(AvroConverter).k2d = 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.n2d(_this__u8e3s4.i2d_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).k2d = function (_this__u8e3s4, name) {
|
|
|
347
347
|
tmp = emptyList();
|
|
348
348
|
} else {
|
|
349
349
|
if (_this__u8e3s4 instanceof MapType) {
|
|
350
|
-
tmp = this.
|
|
350
|
+
tmp = this.n2d(_this__u8e3s4.t2c_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).k2d = function (_this__u8e3s4, name) {
|
|
|
362
362
|
}
|
|
363
363
|
return tmp;
|
|
364
364
|
};
|
|
365
|
-
protoOf(AvroConverter).
|
|
365
|
+
protoOf(AvroConverter).o2d = function (_this__u8e3s4, name, $super) {
|
|
366
366
|
name = name === VOID ? '' : name;
|
|
367
|
-
return $super === VOID ? this.
|
|
367
|
+
return $super === VOID ? this.n2d(_this__u8e3s4, name) : $super.n2d.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.p2d_1 = FileExtension_JSON_getInstance();
|
|
397
397
|
}
|
|
398
398
|
protoOf(AvroEmitter).q22 = function (ast, logger) {
|
|
399
399
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
@@ -403,7 +403,7 @@ protoOf(AvroEmitter).q22 = function (ast, logger) {
|
|
|
403
403
|
// Inline function 'community.flock.wirespec.converter.avro.AvroEmitter.emit.<anonymous>' call
|
|
404
404
|
var it = this_0.pk_1;
|
|
405
405
|
logger.u25('Emitting Nodes from ' + it.e25_1.c22_1 + ' ');
|
|
406
|
-
var tmp = AvroEmitter_getInstance().
|
|
406
|
+
var tmp = AvroEmitter_getInstance().q2d(it);
|
|
407
407
|
// Inline function 'kotlin.collections.map' call
|
|
408
408
|
var this_1 = this_0.qk_1;
|
|
409
409
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -413,7 +413,7 @@ protoOf(AvroEmitter).q22 = function (ast, logger) {
|
|
|
413
413
|
var item = tmp0_iterator.i();
|
|
414
414
|
// Inline function 'community.flock.wirespec.converter.avro.AvroEmitter.emit.<anonymous>' call
|
|
415
415
|
logger.u25('Emitting Nodes from ' + item.e25_1.c22_1 + ' ');
|
|
416
|
-
var tmp$ret$1 = AvroEmitter_getInstance().
|
|
416
|
+
var tmp$ret$1 = AvroEmitter_getInstance().q2d(item);
|
|
417
417
|
destination.e(tmp$ret$1);
|
|
418
418
|
}
|
|
419
419
|
var this_2 = new NonEmptyList(tmp, destination);
|
|
@@ -462,10 +462,10 @@ protoOf(AvroEmitter).q22 = function (ast, logger) {
|
|
|
462
462
|
}
|
|
463
463
|
return new NonEmptyList(tmp_1, destination_1);
|
|
464
464
|
};
|
|
465
|
-
protoOf(AvroEmitter).
|
|
465
|
+
protoOf(AvroEmitter).r2d = function (_this__u8e3s4) {
|
|
466
466
|
return new EnumType('enum', _this__u8e3s4.i26_1.b1(), VOID, toList(_this__u8e3s4.j26_1));
|
|
467
467
|
};
|
|
468
|
-
protoOf(AvroEmitter).
|
|
468
|
+
protoOf(AvroEmitter).s2d = function (_this__u8e3s4) {
|
|
469
469
|
var tmp = _this__u8e3s4.s23_1.b1();
|
|
470
470
|
// Inline function 'kotlin.collections.map' call
|
|
471
471
|
var this_0 = _this__u8e3s4.t23_1;
|
|
@@ -480,13 +480,13 @@ protoOf(AvroEmitter).p2d = function (_this__u8e3s4) {
|
|
|
480
480
|
}
|
|
481
481
|
return new UnionType(tmp, TypeList_init_$Create$(destination));
|
|
482
482
|
};
|
|
483
|
-
protoOf(AvroEmitter).
|
|
483
|
+
protoOf(AvroEmitter).t2d = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
484
484
|
var tmp;
|
|
485
485
|
if (_this__u8e3s4 instanceof Dict) {
|
|
486
|
-
tmp = new MapType('map', this.
|
|
486
|
+
tmp = new MapType('map', this.t2d(_this__u8e3s4.e23_1, module_0, hasEmitted));
|
|
487
487
|
} else {
|
|
488
488
|
if (_this__u8e3s4 instanceof Iterable) {
|
|
489
|
-
tmp = new ArrayType('array', this.
|
|
489
|
+
tmp = new ArrayType('array', this.t2d(_this__u8e3s4.b23_1, module_0, hasEmitted));
|
|
490
490
|
} else {
|
|
491
491
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
492
492
|
var type = _this__u8e3s4.n29_1;
|
|
@@ -553,7 +553,7 @@ protoOf(AvroEmitter).q2d = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
|
553
553
|
// Inline function 'kotlin.contracts.contract' call
|
|
554
554
|
// Inline function 'community.flock.wirespec.converter.avro.AvroEmitter.emit.<anonymous>' call
|
|
555
555
|
hasEmitted.e(def.x23_1.b1());
|
|
556
|
-
tmp_4 = this.
|
|
556
|
+
tmp_4 = this.u2d(def, module_0, hasEmitted);
|
|
557
557
|
}
|
|
558
558
|
tmp_3 = tmp_4;
|
|
559
559
|
} else {
|
|
@@ -584,17 +584,17 @@ protoOf(AvroEmitter).q2d = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
|
584
584
|
}
|
|
585
585
|
return tmp;
|
|
586
586
|
};
|
|
587
|
-
protoOf(AvroEmitter).
|
|
587
|
+
protoOf(AvroEmitter).v2d = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
588
588
|
var ref = _this__u8e3s4.d24_1;
|
|
589
589
|
var tmp;
|
|
590
590
|
if (ref instanceof Iterable) {
|
|
591
|
-
tmp = new ArrayType('array', this.
|
|
591
|
+
tmp = new ArrayType('array', this.t2d(ref.b23_1, module_0, hasEmitted));
|
|
592
592
|
} else {
|
|
593
|
-
tmp = this.
|
|
593
|
+
tmp = this.t2d(ref, module_0, hasEmitted);
|
|
594
594
|
}
|
|
595
595
|
return tmp;
|
|
596
596
|
};
|
|
597
|
-
protoOf(AvroEmitter).
|
|
597
|
+
protoOf(AvroEmitter).u2d = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
598
598
|
var tmp0_name = _this__u8e3s4.x23_1.b1();
|
|
599
599
|
// Inline function 'kotlin.collections.map' call
|
|
600
600
|
var this_0 = _this__u8e3s4.y23_1.u23_1;
|
|
@@ -607,16 +607,16 @@ protoOf(AvroEmitter).r2d = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
|
607
607
|
var tmp = item.c24_1.b1();
|
|
608
608
|
var tmp_0;
|
|
609
609
|
if (item.d24_1.jm()) {
|
|
610
|
-
tmp_0 = new TypeList([new SimpleType('null'), AvroEmitter_getInstance().
|
|
610
|
+
tmp_0 = new TypeList([new SimpleType('null'), AvroEmitter_getInstance().v2d(item, module_0, hasEmitted)]);
|
|
611
611
|
} else {
|
|
612
|
-
tmp_0 = new TypeList([AvroEmitter_getInstance().
|
|
612
|
+
tmp_0 = new TypeList([AvroEmitter_getInstance().v2d(item, module_0, hasEmitted)]);
|
|
613
613
|
}
|
|
614
614
|
var tmp$ret$0 = new Field_0(tmp, tmp_0);
|
|
615
615
|
destination.e(tmp$ret$0);
|
|
616
616
|
}
|
|
617
617
|
return new RecordType('record', tmp0_name, VOID, destination);
|
|
618
618
|
};
|
|
619
|
-
protoOf(AvroEmitter).
|
|
619
|
+
protoOf(AvroEmitter).q2d = function (module_0) {
|
|
620
620
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
621
621
|
var hasEmitted = ArrayList_init_$Create$_0();
|
|
622
622
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
@@ -631,13 +631,13 @@ protoOf(AvroEmitter).n2d = function (module_0) {
|
|
|
631
631
|
// Inline function 'community.flock.wirespec.converter.avro.AvroEmitter.emit.<anonymous>' call
|
|
632
632
|
var tmp;
|
|
633
633
|
if (element instanceof Type) {
|
|
634
|
-
tmp = AvroEmitter_getInstance().
|
|
634
|
+
tmp = AvroEmitter_getInstance().u2d(element, module_0, hasEmitted);
|
|
635
635
|
} else {
|
|
636
636
|
if (element instanceof Enum) {
|
|
637
|
-
tmp = AvroEmitter_getInstance().
|
|
637
|
+
tmp = AvroEmitter_getInstance().r2d(element);
|
|
638
638
|
} else {
|
|
639
639
|
if (element instanceof Union) {
|
|
640
|
-
tmp = AvroEmitter_getInstance().
|
|
640
|
+
tmp = AvroEmitter_getInstance().s2d(element);
|
|
641
641
|
} else {
|
|
642
642
|
tmp = null;
|
|
643
643
|
}
|
|
@@ -673,26 +673,26 @@ function $serializer() {
|
|
|
673
673
|
tmp0_serialDesc.uv('type', false);
|
|
674
674
|
tmp0_serialDesc.uv('doc', true);
|
|
675
675
|
tmp0_serialDesc.uv('default', true);
|
|
676
|
-
this.
|
|
676
|
+
this.w2d_1 = tmp0_serialDesc;
|
|
677
677
|
}
|
|
678
|
-
protoOf($serializer).
|
|
679
|
-
var tmp0_desc = this.
|
|
678
|
+
protoOf($serializer).x2d = function (encoder, value) {
|
|
679
|
+
var tmp0_desc = this.w2d_1;
|
|
680
680
|
var tmp1_output = encoder.ko(tmp0_desc);
|
|
681
|
-
tmp1_output.zp(tmp0_desc, 0, value.
|
|
682
|
-
tmp1_output.bq(tmp0_desc, 1, TypeListSerializer_getInstance(), value.
|
|
683
|
-
if (tmp1_output.hq(tmp0_desc, 2) ? true : !(value.
|
|
684
|
-
tmp1_output.dq(tmp0_desc, 2, StringSerializer_getInstance(), value.
|
|
681
|
+
tmp1_output.zp(tmp0_desc, 0, value.j2d_1);
|
|
682
|
+
tmp1_output.bq(tmp0_desc, 1, TypeListSerializer_getInstance(), value.k2d_1);
|
|
683
|
+
if (tmp1_output.hq(tmp0_desc, 2) ? true : !(value.l2d_1 == null)) {
|
|
684
|
+
tmp1_output.dq(tmp0_desc, 2, StringSerializer_getInstance(), value.l2d_1);
|
|
685
685
|
}
|
|
686
|
-
if (tmp1_output.hq(tmp0_desc, 3) ? true : !(value.
|
|
687
|
-
tmp1_output.dq(tmp0_desc, 3, StringSerializer_getInstance(), value.
|
|
686
|
+
if (tmp1_output.hq(tmp0_desc, 3) ? true : !(value.m2d_1 == null)) {
|
|
687
|
+
tmp1_output.dq(tmp0_desc, 3, StringSerializer_getInstance(), value.m2d_1);
|
|
688
688
|
}
|
|
689
689
|
tmp1_output.lo(tmp0_desc);
|
|
690
690
|
};
|
|
691
691
|
protoOf($serializer).kl = function (encoder, value) {
|
|
692
|
-
return this.
|
|
692
|
+
return this.x2d(encoder, value instanceof Field_0 ? value : THROW_CCE());
|
|
693
693
|
};
|
|
694
694
|
protoOf($serializer).ll = function (decoder) {
|
|
695
|
-
var tmp0_desc = this.
|
|
695
|
+
var tmp0_desc = this.w2d_1;
|
|
696
696
|
var tmp1_flag = true;
|
|
697
697
|
var tmp2_index = 0;
|
|
698
698
|
var tmp3_bitMask0 = 0;
|
|
@@ -741,7 +741,7 @@ protoOf($serializer).ll = function (decoder) {
|
|
|
741
741
|
return Field_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
742
742
|
};
|
|
743
743
|
protoOf($serializer).jl = function () {
|
|
744
|
-
return this.
|
|
744
|
+
return this.w2d_1;
|
|
745
745
|
};
|
|
746
746
|
protoOf($serializer).nw = function () {
|
|
747
747
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -757,18 +757,18 @@ function $serializer_getInstance() {
|
|
|
757
757
|
}
|
|
758
758
|
function Field_init_$Init$(seen0, name, type, doc, default_0, serializationConstructorMarker, $this) {
|
|
759
759
|
if (!(3 === (3 & seen0))) {
|
|
760
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance().
|
|
760
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance().w2d_1);
|
|
761
761
|
}
|
|
762
|
-
$this.
|
|
763
|
-
$this.
|
|
762
|
+
$this.j2d_1 = name;
|
|
763
|
+
$this.k2d_1 = type;
|
|
764
764
|
if (0 === (seen0 & 4))
|
|
765
|
-
$this.
|
|
765
|
+
$this.l2d_1 = null;
|
|
766
766
|
else
|
|
767
|
-
$this.
|
|
767
|
+
$this.l2d_1 = doc;
|
|
768
768
|
if (0 === (seen0 & 8))
|
|
769
|
-
$this.
|
|
769
|
+
$this.m2d_1 = null;
|
|
770
770
|
else
|
|
771
|
-
$this.
|
|
771
|
+
$this.m2d_1 = default_0;
|
|
772
772
|
return $this;
|
|
773
773
|
}
|
|
774
774
|
function Field_init_$Create$(seen0, name, type, doc, default_0, serializationConstructorMarker) {
|
|
@@ -811,19 +811,19 @@ function $serializer_0() {
|
|
|
811
811
|
$serializer_instance_0 = this;
|
|
812
812
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.SimpleType', this, 1);
|
|
813
813
|
tmp0_serialDesc.uv('value', false);
|
|
814
|
-
this.
|
|
814
|
+
this.y2d_1 = tmp0_serialDesc;
|
|
815
815
|
}
|
|
816
|
-
protoOf($serializer_0).
|
|
817
|
-
var tmp0_desc = this.
|
|
816
|
+
protoOf($serializer_0).z2d = function (encoder, value) {
|
|
817
|
+
var tmp0_desc = this.y2d_1;
|
|
818
818
|
var tmp1_output = encoder.ko(tmp0_desc);
|
|
819
|
-
tmp1_output.zp(tmp0_desc, 0, value.
|
|
819
|
+
tmp1_output.zp(tmp0_desc, 0, value.p2c_1);
|
|
820
820
|
tmp1_output.lo(tmp0_desc);
|
|
821
821
|
};
|
|
822
822
|
protoOf($serializer_0).kl = function (encoder, value) {
|
|
823
|
-
return this.
|
|
823
|
+
return this.z2d(encoder, value instanceof SimpleType ? value : THROW_CCE());
|
|
824
824
|
};
|
|
825
825
|
protoOf($serializer_0).ll = function (decoder) {
|
|
826
|
-
var tmp0_desc = this.
|
|
826
|
+
var tmp0_desc = this.y2d_1;
|
|
827
827
|
var tmp1_flag = true;
|
|
828
828
|
var tmp2_index = 0;
|
|
829
829
|
var tmp3_bitMask0 = 0;
|
|
@@ -851,7 +851,7 @@ protoOf($serializer_0).ll = function (decoder) {
|
|
|
851
851
|
return SimpleType_init_$Create$(tmp3_bitMask0, tmp4_local0, null);
|
|
852
852
|
};
|
|
853
853
|
protoOf($serializer_0).jl = function () {
|
|
854
|
-
return this.
|
|
854
|
+
return this.y2d_1;
|
|
855
855
|
};
|
|
856
856
|
protoOf($serializer_0).nw = function () {
|
|
857
857
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -867,9 +867,9 @@ function $serializer_getInstance_0() {
|
|
|
867
867
|
}
|
|
868
868
|
function SimpleType_init_$Init$(seen0, value, serializationConstructorMarker, $this) {
|
|
869
869
|
if (!(1 === (1 & seen0))) {
|
|
870
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_0().
|
|
870
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_0().y2d_1);
|
|
871
871
|
}
|
|
872
|
-
$this.
|
|
872
|
+
$this.p2c_1 = value;
|
|
873
873
|
return $this;
|
|
874
874
|
}
|
|
875
875
|
function SimpleType_init_$Create$(seen0, value, serializationConstructorMarker) {
|
|
@@ -881,7 +881,7 @@ function Companion_3() {
|
|
|
881
881
|
// Inline function 'kotlin.arrayOf' call
|
|
882
882
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
883
883
|
// Inline function 'kotlin.js.asDynamic' call
|
|
884
|
-
tmp.
|
|
884
|
+
tmp.a2e_1 = [null, null, null, new ArrayListSerializer($serializer_getInstance()), null];
|
|
885
885
|
}
|
|
886
886
|
protoOf(Companion_3).v17 = function () {
|
|
887
887
|
return $serializer_getInstance_1();
|
|
@@ -900,28 +900,28 @@ function $serializer_1() {
|
|
|
900
900
|
tmp0_serialDesc.uv('namespace', true);
|
|
901
901
|
tmp0_serialDesc.uv('fields', false);
|
|
902
902
|
tmp0_serialDesc.uv('doc', true);
|
|
903
|
-
this.
|
|
903
|
+
this.b2e_1 = tmp0_serialDesc;
|
|
904
904
|
}
|
|
905
|
-
protoOf($serializer_1).
|
|
906
|
-
var tmp0_desc = this.
|
|
905
|
+
protoOf($serializer_1).c2e = function (encoder, value) {
|
|
906
|
+
var tmp0_desc = this.b2e_1;
|
|
907
907
|
var tmp1_output = encoder.ko(tmp0_desc);
|
|
908
|
-
var tmp2_cached = Companion_getInstance_3().
|
|
909
|
-
tmp1_output.zp(tmp0_desc, 0, value.
|
|
910
|
-
tmp1_output.zp(tmp0_desc, 1, value.
|
|
911
|
-
if (tmp1_output.hq(tmp0_desc, 2) ? true : !(value.
|
|
912
|
-
tmp1_output.dq(tmp0_desc, 2, StringSerializer_getInstance(), value.
|
|
908
|
+
var tmp2_cached = Companion_getInstance_3().a2e_1;
|
|
909
|
+
tmp1_output.zp(tmp0_desc, 0, value.c2d_1);
|
|
910
|
+
tmp1_output.zp(tmp0_desc, 1, value.d2d_1);
|
|
911
|
+
if (tmp1_output.hq(tmp0_desc, 2) ? true : !(value.e2d_1 == null)) {
|
|
912
|
+
tmp1_output.dq(tmp0_desc, 2, StringSerializer_getInstance(), value.e2d_1);
|
|
913
913
|
}
|
|
914
|
-
tmp1_output.bq(tmp0_desc, 3, tmp2_cached[3], value.
|
|
915
|
-
if (tmp1_output.hq(tmp0_desc, 4) ? true : !(value.
|
|
916
|
-
tmp1_output.dq(tmp0_desc, 4, StringSerializer_getInstance(), value.
|
|
914
|
+
tmp1_output.bq(tmp0_desc, 3, tmp2_cached[3], value.f2d_1);
|
|
915
|
+
if (tmp1_output.hq(tmp0_desc, 4) ? true : !(value.g2d_1 == null)) {
|
|
916
|
+
tmp1_output.dq(tmp0_desc, 4, StringSerializer_getInstance(), value.g2d_1);
|
|
917
917
|
}
|
|
918
918
|
tmp1_output.lo(tmp0_desc);
|
|
919
919
|
};
|
|
920
920
|
protoOf($serializer_1).kl = function (encoder, value) {
|
|
921
|
-
return this.
|
|
921
|
+
return this.c2e(encoder, value instanceof RecordType ? value : THROW_CCE());
|
|
922
922
|
};
|
|
923
923
|
protoOf($serializer_1).ll = function (decoder) {
|
|
924
|
-
var tmp0_desc = this.
|
|
924
|
+
var tmp0_desc = this.b2e_1;
|
|
925
925
|
var tmp1_flag = true;
|
|
926
926
|
var tmp2_index = 0;
|
|
927
927
|
var tmp3_bitMask0 = 0;
|
|
@@ -931,7 +931,7 @@ protoOf($serializer_1).ll = function (decoder) {
|
|
|
931
931
|
var tmp7_local3 = null;
|
|
932
932
|
var tmp8_local4 = null;
|
|
933
933
|
var tmp9_input = decoder.ko(tmp0_desc);
|
|
934
|
-
var tmp10_cached = Companion_getInstance_3().
|
|
934
|
+
var tmp10_cached = Companion_getInstance_3().a2e_1;
|
|
935
935
|
if (tmp9_input.ap()) {
|
|
936
936
|
tmp4_local0 = tmp9_input.uo(tmp0_desc, 0);
|
|
937
937
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -978,10 +978,10 @@ protoOf($serializer_1).ll = function (decoder) {
|
|
|
978
978
|
return RecordType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null);
|
|
979
979
|
};
|
|
980
980
|
protoOf($serializer_1).jl = function () {
|
|
981
|
-
return this.
|
|
981
|
+
return this.b2e_1;
|
|
982
982
|
};
|
|
983
983
|
protoOf($serializer_1).nw = function () {
|
|
984
|
-
var tmp0_cached = Companion_getInstance_3().
|
|
984
|
+
var tmp0_cached = Companion_getInstance_3().a2e_1;
|
|
985
985
|
// Inline function 'kotlin.arrayOf' call
|
|
986
986
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
987
987
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -995,19 +995,19 @@ function $serializer_getInstance_1() {
|
|
|
995
995
|
}
|
|
996
996
|
function RecordType_init_$Init$(seen0, type, name, namespace, fields, doc, serializationConstructorMarker, $this) {
|
|
997
997
|
if (!(11 === (11 & seen0))) {
|
|
998
|
-
throwMissingFieldException(seen0, 11, $serializer_getInstance_1().
|
|
998
|
+
throwMissingFieldException(seen0, 11, $serializer_getInstance_1().b2e_1);
|
|
999
999
|
}
|
|
1000
|
-
$this.
|
|
1001
|
-
$this.
|
|
1000
|
+
$this.c2d_1 = type;
|
|
1001
|
+
$this.d2d_1 = name;
|
|
1002
1002
|
if (0 === (seen0 & 4))
|
|
1003
|
-
$this.
|
|
1003
|
+
$this.e2d_1 = null;
|
|
1004
1004
|
else
|
|
1005
|
-
$this.
|
|
1006
|
-
$this.
|
|
1005
|
+
$this.e2d_1 = namespace;
|
|
1006
|
+
$this.f2d_1 = fields;
|
|
1007
1007
|
if (0 === (seen0 & 16))
|
|
1008
|
-
$this.
|
|
1008
|
+
$this.g2d_1 = null;
|
|
1009
1009
|
else
|
|
1010
|
-
$this.
|
|
1010
|
+
$this.g2d_1 = doc;
|
|
1011
1011
|
return $this;
|
|
1012
1012
|
}
|
|
1013
1013
|
function RecordType_init_$Create$(seen0, type, name, namespace, fields, doc, serializationConstructorMarker) {
|
|
@@ -1027,20 +1027,20 @@ function $serializer_2() {
|
|
|
1027
1027
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.ArrayType', this, 2);
|
|
1028
1028
|
tmp0_serialDesc.uv('type', false);
|
|
1029
1029
|
tmp0_serialDesc.uv('items', false);
|
|
1030
|
-
this.
|
|
1030
|
+
this.d2e_1 = tmp0_serialDesc;
|
|
1031
1031
|
}
|
|
1032
|
-
protoOf($serializer_2).
|
|
1033
|
-
var tmp0_desc = this.
|
|
1032
|
+
protoOf($serializer_2).e2e = function (encoder, value) {
|
|
1033
|
+
var tmp0_desc = this.d2e_1;
|
|
1034
1034
|
var tmp1_output = encoder.ko(tmp0_desc);
|
|
1035
|
-
tmp1_output.zp(tmp0_desc, 0, value.
|
|
1036
|
-
tmp1_output.bq(tmp0_desc, 1, TypeSerializer_getInstance(), value.
|
|
1035
|
+
tmp1_output.zp(tmp0_desc, 0, value.h2d_1);
|
|
1036
|
+
tmp1_output.bq(tmp0_desc, 1, TypeSerializer_getInstance(), value.i2d_1);
|
|
1037
1037
|
tmp1_output.lo(tmp0_desc);
|
|
1038
1038
|
};
|
|
1039
1039
|
protoOf($serializer_2).kl = function (encoder, value) {
|
|
1040
|
-
return this.
|
|
1040
|
+
return this.e2e(encoder, value instanceof ArrayType ? value : THROW_CCE());
|
|
1041
1041
|
};
|
|
1042
1042
|
protoOf($serializer_2).ll = function (decoder) {
|
|
1043
|
-
var tmp0_desc = this.
|
|
1043
|
+
var tmp0_desc = this.d2e_1;
|
|
1044
1044
|
var tmp1_flag = true;
|
|
1045
1045
|
var tmp2_index = 0;
|
|
1046
1046
|
var tmp3_bitMask0 = 0;
|
|
@@ -1075,7 +1075,7 @@ protoOf($serializer_2).ll = function (decoder) {
|
|
|
1075
1075
|
return ArrayType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1076
1076
|
};
|
|
1077
1077
|
protoOf($serializer_2).jl = function () {
|
|
1078
|
-
return this.
|
|
1078
|
+
return this.d2e_1;
|
|
1079
1079
|
};
|
|
1080
1080
|
protoOf($serializer_2).nw = function () {
|
|
1081
1081
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -1091,10 +1091,10 @@ function $serializer_getInstance_2() {
|
|
|
1091
1091
|
}
|
|
1092
1092
|
function ArrayType_init_$Init$(seen0, type, items, serializationConstructorMarker, $this) {
|
|
1093
1093
|
if (!(3 === (3 & seen0))) {
|
|
1094
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().
|
|
1094
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().d2e_1);
|
|
1095
1095
|
}
|
|
1096
|
-
$this.
|
|
1097
|
-
$this.
|
|
1096
|
+
$this.h2d_1 = type;
|
|
1097
|
+
$this.i2d_1 = items;
|
|
1098
1098
|
return $this;
|
|
1099
1099
|
}
|
|
1100
1100
|
function ArrayType_init_$Create$(seen0, type, items, serializationConstructorMarker) {
|
|
@@ -1114,20 +1114,20 @@ function $serializer_3() {
|
|
|
1114
1114
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.MapType', this, 2);
|
|
1115
1115
|
tmp0_serialDesc.uv('type', false);
|
|
1116
1116
|
tmp0_serialDesc.uv('values', false);
|
|
1117
|
-
this.
|
|
1117
|
+
this.f2e_1 = tmp0_serialDesc;
|
|
1118
1118
|
}
|
|
1119
|
-
protoOf($serializer_3).
|
|
1120
|
-
var tmp0_desc = this.
|
|
1119
|
+
protoOf($serializer_3).g2e = function (encoder, value) {
|
|
1120
|
+
var tmp0_desc = this.f2e_1;
|
|
1121
1121
|
var tmp1_output = encoder.ko(tmp0_desc);
|
|
1122
|
-
tmp1_output.zp(tmp0_desc, 0, value.
|
|
1123
|
-
tmp1_output.bq(tmp0_desc, 1, TypeSerializer_getInstance(), value.
|
|
1122
|
+
tmp1_output.zp(tmp0_desc, 0, value.s2c_1);
|
|
1123
|
+
tmp1_output.bq(tmp0_desc, 1, TypeSerializer_getInstance(), value.t2c_1);
|
|
1124
1124
|
tmp1_output.lo(tmp0_desc);
|
|
1125
1125
|
};
|
|
1126
1126
|
protoOf($serializer_3).kl = function (encoder, value) {
|
|
1127
|
-
return this.
|
|
1127
|
+
return this.g2e(encoder, value instanceof MapType ? value : THROW_CCE());
|
|
1128
1128
|
};
|
|
1129
1129
|
protoOf($serializer_3).ll = function (decoder) {
|
|
1130
|
-
var tmp0_desc = this.
|
|
1130
|
+
var tmp0_desc = this.f2e_1;
|
|
1131
1131
|
var tmp1_flag = true;
|
|
1132
1132
|
var tmp2_index = 0;
|
|
1133
1133
|
var tmp3_bitMask0 = 0;
|
|
@@ -1162,7 +1162,7 @@ protoOf($serializer_3).ll = function (decoder) {
|
|
|
1162
1162
|
return MapType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1163
1163
|
};
|
|
1164
1164
|
protoOf($serializer_3).jl = function () {
|
|
1165
|
-
return this.
|
|
1165
|
+
return this.f2e_1;
|
|
1166
1166
|
};
|
|
1167
1167
|
protoOf($serializer_3).nw = function () {
|
|
1168
1168
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -1178,10 +1178,10 @@ function $serializer_getInstance_3() {
|
|
|
1178
1178
|
}
|
|
1179
1179
|
function MapType_init_$Init$(seen0, type, values, serializationConstructorMarker, $this) {
|
|
1180
1180
|
if (!(3 === (3 & seen0))) {
|
|
1181
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_3().
|
|
1181
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_3().f2e_1);
|
|
1182
1182
|
}
|
|
1183
|
-
$this.
|
|
1184
|
-
$this.
|
|
1183
|
+
$this.s2c_1 = type;
|
|
1184
|
+
$this.t2c_1 = values;
|
|
1185
1185
|
return $this;
|
|
1186
1186
|
}
|
|
1187
1187
|
function MapType_init_$Create$(seen0, type, values, serializationConstructorMarker) {
|
|
@@ -1193,7 +1193,7 @@ function Companion_6() {
|
|
|
1193
1193
|
// Inline function 'kotlin.arrayOf' call
|
|
1194
1194
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1195
1195
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1196
|
-
tmp.
|
|
1196
|
+
tmp.h2e_1 = [null, null, null, new ArrayListSerializer(StringSerializer_getInstance())];
|
|
1197
1197
|
}
|
|
1198
1198
|
protoOf(Companion_6).v17 = function () {
|
|
1199
1199
|
return $serializer_getInstance_4();
|
|
@@ -1211,25 +1211,25 @@ function $serializer_4() {
|
|
|
1211
1211
|
tmp0_serialDesc.uv('name', false);
|
|
1212
1212
|
tmp0_serialDesc.uv('doc', true);
|
|
1213
1213
|
tmp0_serialDesc.uv('symbols', false);
|
|
1214
|
-
this.
|
|
1214
|
+
this.i2e_1 = tmp0_serialDesc;
|
|
1215
1215
|
}
|
|
1216
|
-
protoOf($serializer_4).
|
|
1217
|
-
var tmp0_desc = this.
|
|
1216
|
+
protoOf($serializer_4).j2e = function (encoder, value) {
|
|
1217
|
+
var tmp0_desc = this.i2e_1;
|
|
1218
1218
|
var tmp1_output = encoder.ko(tmp0_desc);
|
|
1219
|
-
var tmp2_cached = Companion_getInstance_6().
|
|
1220
|
-
tmp1_output.zp(tmp0_desc, 0, value.
|
|
1221
|
-
tmp1_output.zp(tmp0_desc, 1, value.
|
|
1222
|
-
if (tmp1_output.hq(tmp0_desc, 2) ? true : !(value.
|
|
1223
|
-
tmp1_output.dq(tmp0_desc, 2, StringSerializer_getInstance(), value.
|
|
1219
|
+
var tmp2_cached = Companion_getInstance_6().h2e_1;
|
|
1220
|
+
tmp1_output.zp(tmp0_desc, 0, value.y2c_1);
|
|
1221
|
+
tmp1_output.zp(tmp0_desc, 1, value.z2c_1);
|
|
1222
|
+
if (tmp1_output.hq(tmp0_desc, 2) ? true : !(value.a2d_1 == null)) {
|
|
1223
|
+
tmp1_output.dq(tmp0_desc, 2, StringSerializer_getInstance(), value.a2d_1);
|
|
1224
1224
|
}
|
|
1225
|
-
tmp1_output.bq(tmp0_desc, 3, tmp2_cached[3], value.
|
|
1225
|
+
tmp1_output.bq(tmp0_desc, 3, tmp2_cached[3], value.b2d_1);
|
|
1226
1226
|
tmp1_output.lo(tmp0_desc);
|
|
1227
1227
|
};
|
|
1228
1228
|
protoOf($serializer_4).kl = function (encoder, value) {
|
|
1229
|
-
return this.
|
|
1229
|
+
return this.j2e(encoder, value instanceof EnumType ? value : THROW_CCE());
|
|
1230
1230
|
};
|
|
1231
1231
|
protoOf($serializer_4).ll = function (decoder) {
|
|
1232
|
-
var tmp0_desc = this.
|
|
1232
|
+
var tmp0_desc = this.i2e_1;
|
|
1233
1233
|
var tmp1_flag = true;
|
|
1234
1234
|
var tmp2_index = 0;
|
|
1235
1235
|
var tmp3_bitMask0 = 0;
|
|
@@ -1238,7 +1238,7 @@ protoOf($serializer_4).ll = function (decoder) {
|
|
|
1238
1238
|
var tmp6_local2 = null;
|
|
1239
1239
|
var tmp7_local3 = null;
|
|
1240
1240
|
var tmp8_input = decoder.ko(tmp0_desc);
|
|
1241
|
-
var tmp9_cached = Companion_getInstance_6().
|
|
1241
|
+
var tmp9_cached = Companion_getInstance_6().h2e_1;
|
|
1242
1242
|
if (tmp8_input.ap()) {
|
|
1243
1243
|
tmp4_local0 = tmp8_input.uo(tmp0_desc, 0);
|
|
1244
1244
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -1279,10 +1279,10 @@ protoOf($serializer_4).ll = function (decoder) {
|
|
|
1279
1279
|
return EnumType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
1280
1280
|
};
|
|
1281
1281
|
protoOf($serializer_4).jl = function () {
|
|
1282
|
-
return this.
|
|
1282
|
+
return this.i2e_1;
|
|
1283
1283
|
};
|
|
1284
1284
|
protoOf($serializer_4).nw = function () {
|
|
1285
|
-
var tmp0_cached = Companion_getInstance_6().
|
|
1285
|
+
var tmp0_cached = Companion_getInstance_6().h2e_1;
|
|
1286
1286
|
// Inline function 'kotlin.arrayOf' call
|
|
1287
1287
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1288
1288
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1296,15 +1296,15 @@ function $serializer_getInstance_4() {
|
|
|
1296
1296
|
}
|
|
1297
1297
|
function EnumType_init_$Init$(seen0, type, name, doc, symbols, serializationConstructorMarker, $this) {
|
|
1298
1298
|
if (!(11 === (11 & seen0))) {
|
|
1299
|
-
throwMissingFieldException(seen0, 11, $serializer_getInstance_4().
|
|
1299
|
+
throwMissingFieldException(seen0, 11, $serializer_getInstance_4().i2e_1);
|
|
1300
1300
|
}
|
|
1301
|
-
$this.
|
|
1302
|
-
$this.
|
|
1301
|
+
$this.y2c_1 = type;
|
|
1302
|
+
$this.z2c_1 = name;
|
|
1303
1303
|
if (0 === (seen0 & 4))
|
|
1304
|
-
$this.
|
|
1304
|
+
$this.a2d_1 = null;
|
|
1305
1305
|
else
|
|
1306
|
-
$this.
|
|
1307
|
-
$this.
|
|
1306
|
+
$this.a2d_1 = doc;
|
|
1307
|
+
$this.b2d_1 = symbols;
|
|
1308
1308
|
return $this;
|
|
1309
1309
|
}
|
|
1310
1310
|
function EnumType_init_$Create$(seen0, type, name, doc, symbols, serializationConstructorMarker) {
|
|
@@ -1324,20 +1324,20 @@ function $serializer_5() {
|
|
|
1324
1324
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.UnionType', this, 2);
|
|
1325
1325
|
tmp0_serialDesc.uv('name', false);
|
|
1326
1326
|
tmp0_serialDesc.uv('type', false);
|
|
1327
|
-
this.
|
|
1327
|
+
this.k2e_1 = tmp0_serialDesc;
|
|
1328
1328
|
}
|
|
1329
|
-
protoOf($serializer_5).
|
|
1330
|
-
var tmp0_desc = this.
|
|
1329
|
+
protoOf($serializer_5).l2e = function (encoder, value) {
|
|
1330
|
+
var tmp0_desc = this.k2e_1;
|
|
1331
1331
|
var tmp1_output = encoder.ko(tmp0_desc);
|
|
1332
|
-
tmp1_output.zp(tmp0_desc, 0, value.
|
|
1333
|
-
tmp1_output.bq(tmp0_desc, 1, TypeListSerializer_getInstance(), value.
|
|
1332
|
+
tmp1_output.zp(tmp0_desc, 0, value.q2c_1);
|
|
1333
|
+
tmp1_output.bq(tmp0_desc, 1, TypeListSerializer_getInstance(), value.r2c_1);
|
|
1334
1334
|
tmp1_output.lo(tmp0_desc);
|
|
1335
1335
|
};
|
|
1336
1336
|
protoOf($serializer_5).kl = function (encoder, value) {
|
|
1337
|
-
return this.
|
|
1337
|
+
return this.l2e(encoder, value instanceof UnionType ? value : THROW_CCE());
|
|
1338
1338
|
};
|
|
1339
1339
|
protoOf($serializer_5).ll = function (decoder) {
|
|
1340
|
-
var tmp0_desc = this.
|
|
1340
|
+
var tmp0_desc = this.k2e_1;
|
|
1341
1341
|
var tmp1_flag = true;
|
|
1342
1342
|
var tmp2_index = 0;
|
|
1343
1343
|
var tmp3_bitMask0 = 0;
|
|
@@ -1372,7 +1372,7 @@ protoOf($serializer_5).ll = function (decoder) {
|
|
|
1372
1372
|
return UnionType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1373
1373
|
};
|
|
1374
1374
|
protoOf($serializer_5).jl = function () {
|
|
1375
|
-
return this.
|
|
1375
|
+
return this.k2e_1;
|
|
1376
1376
|
};
|
|
1377
1377
|
protoOf($serializer_5).nw = function () {
|
|
1378
1378
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -1388,10 +1388,10 @@ function $serializer_getInstance_5() {
|
|
|
1388
1388
|
}
|
|
1389
1389
|
function UnionType_init_$Init$(seen0, name, type, serializationConstructorMarker, $this) {
|
|
1390
1390
|
if (!(3 === (3 & seen0))) {
|
|
1391
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_5().
|
|
1391
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_5().k2e_1);
|
|
1392
1392
|
}
|
|
1393
|
-
$this.
|
|
1394
|
-
$this.
|
|
1393
|
+
$this.q2c_1 = name;
|
|
1394
|
+
$this.r2c_1 = type;
|
|
1395
1395
|
return $this;
|
|
1396
1396
|
}
|
|
1397
1397
|
function UnionType_init_$Create$(seen0, name, type, serializationConstructorMarker) {
|
|
@@ -1413,26 +1413,26 @@ function $serializer_6() {
|
|
|
1413
1413
|
tmp0_serialDesc.uv('logicalType', false);
|
|
1414
1414
|
tmp0_serialDesc.uv('precision', true);
|
|
1415
1415
|
tmp0_serialDesc.uv('scale', true);
|
|
1416
|
-
this.
|
|
1416
|
+
this.m2e_1 = tmp0_serialDesc;
|
|
1417
1417
|
}
|
|
1418
|
-
protoOf($serializer_6).
|
|
1419
|
-
var tmp0_desc = this.
|
|
1418
|
+
protoOf($serializer_6).n2e = function (encoder, value) {
|
|
1419
|
+
var tmp0_desc = this.m2e_1;
|
|
1420
1420
|
var tmp1_output = encoder.ko(tmp0_desc);
|
|
1421
|
-
tmp1_output.zp(tmp0_desc, 0, value.
|
|
1422
|
-
tmp1_output.zp(tmp0_desc, 1, value.
|
|
1423
|
-
if (tmp1_output.hq(tmp0_desc, 2) ? true : !(value.
|
|
1424
|
-
tmp1_output.dq(tmp0_desc, 2, IntSerializer_getInstance(), value.
|
|
1421
|
+
tmp1_output.zp(tmp0_desc, 0, value.u2c_1);
|
|
1422
|
+
tmp1_output.zp(tmp0_desc, 1, value.v2c_1);
|
|
1423
|
+
if (tmp1_output.hq(tmp0_desc, 2) ? true : !(value.w2c_1 == null)) {
|
|
1424
|
+
tmp1_output.dq(tmp0_desc, 2, IntSerializer_getInstance(), value.w2c_1);
|
|
1425
1425
|
}
|
|
1426
|
-
if (tmp1_output.hq(tmp0_desc, 3) ? true : !(value.
|
|
1427
|
-
tmp1_output.dq(tmp0_desc, 3, IntSerializer_getInstance(), value.
|
|
1426
|
+
if (tmp1_output.hq(tmp0_desc, 3) ? true : !(value.x2c_1 == null)) {
|
|
1427
|
+
tmp1_output.dq(tmp0_desc, 3, IntSerializer_getInstance(), value.x2c_1);
|
|
1428
1428
|
}
|
|
1429
1429
|
tmp1_output.lo(tmp0_desc);
|
|
1430
1430
|
};
|
|
1431
1431
|
protoOf($serializer_6).kl = function (encoder, value) {
|
|
1432
|
-
return this.
|
|
1432
|
+
return this.n2e(encoder, value instanceof LogicalType ? value : THROW_CCE());
|
|
1433
1433
|
};
|
|
1434
1434
|
protoOf($serializer_6).ll = function (decoder) {
|
|
1435
|
-
var tmp0_desc = this.
|
|
1435
|
+
var tmp0_desc = this.m2e_1;
|
|
1436
1436
|
var tmp1_flag = true;
|
|
1437
1437
|
var tmp2_index = 0;
|
|
1438
1438
|
var tmp3_bitMask0 = 0;
|
|
@@ -1481,7 +1481,7 @@ protoOf($serializer_6).ll = function (decoder) {
|
|
|
1481
1481
|
return LogicalType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
1482
1482
|
};
|
|
1483
1483
|
protoOf($serializer_6).jl = function () {
|
|
1484
|
-
return this.
|
|
1484
|
+
return this.m2e_1;
|
|
1485
1485
|
};
|
|
1486
1486
|
protoOf($serializer_6).nw = function () {
|
|
1487
1487
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -1497,18 +1497,18 @@ function $serializer_getInstance_6() {
|
|
|
1497
1497
|
}
|
|
1498
1498
|
function LogicalType_init_$Init$(seen0, type, logicalType, precision, scale, serializationConstructorMarker, $this) {
|
|
1499
1499
|
if (!(3 === (3 & seen0))) {
|
|
1500
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_6().
|
|
1500
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_6().m2e_1);
|
|
1501
1501
|
}
|
|
1502
|
-
$this.
|
|
1503
|
-
$this.
|
|
1502
|
+
$this.u2c_1 = type;
|
|
1503
|
+
$this.v2c_1 = logicalType;
|
|
1504
1504
|
if (0 === (seen0 & 4))
|
|
1505
|
-
$this.
|
|
1505
|
+
$this.w2c_1 = null;
|
|
1506
1506
|
else
|
|
1507
|
-
$this.
|
|
1507
|
+
$this.w2c_1 = precision;
|
|
1508
1508
|
if (0 === (seen0 & 8))
|
|
1509
|
-
$this.
|
|
1509
|
+
$this.x2c_1 = null;
|
|
1510
1510
|
else
|
|
1511
|
-
$this.
|
|
1511
|
+
$this.x2c_1 = scale;
|
|
1512
1512
|
return $this;
|
|
1513
1513
|
}
|
|
1514
1514
|
function LogicalType_init_$Create$(seen0, type, logicalType, precision, scale, serializationConstructorMarker) {
|
|
@@ -1517,19 +1517,19 @@ function LogicalType_init_$Create$(seen0, type, logicalType, precision, scale, s
|
|
|
1517
1517
|
function Field_0(name, type, doc, default_0) {
|
|
1518
1518
|
doc = doc === VOID ? null : doc;
|
|
1519
1519
|
default_0 = default_0 === VOID ? null : default_0;
|
|
1520
|
-
this.
|
|
1521
|
-
this.
|
|
1522
|
-
this.
|
|
1523
|
-
this.
|
|
1520
|
+
this.j2d_1 = name;
|
|
1521
|
+
this.k2d_1 = type;
|
|
1522
|
+
this.l2d_1 = doc;
|
|
1523
|
+
this.m2d_1 = default_0;
|
|
1524
1524
|
}
|
|
1525
1525
|
protoOf(Field_0).toString = function () {
|
|
1526
|
-
return 'Field(name=' + this.
|
|
1526
|
+
return 'Field(name=' + this.j2d_1 + ', type=' + this.k2d_1.toString() + ', doc=' + this.l2d_1 + ', default=' + this.m2d_1 + ')';
|
|
1527
1527
|
};
|
|
1528
1528
|
protoOf(Field_0).hashCode = function () {
|
|
1529
|
-
var result = getStringHashCode(this.
|
|
1530
|
-
result = imul(result, 31) + this.
|
|
1531
|
-
result = imul(result, 31) + (this.
|
|
1532
|
-
result = imul(result, 31) + (this.
|
|
1529
|
+
var result = getStringHashCode(this.j2d_1);
|
|
1530
|
+
result = imul(result, 31) + this.k2d_1.hashCode() | 0;
|
|
1531
|
+
result = imul(result, 31) + (this.l2d_1 == null ? 0 : getStringHashCode(this.l2d_1)) | 0;
|
|
1532
|
+
result = imul(result, 31) + (this.m2d_1 == null ? 0 : getStringHashCode(this.m2d_1)) | 0;
|
|
1533
1533
|
return result;
|
|
1534
1534
|
};
|
|
1535
1535
|
protoOf(Field_0).equals = function (other) {
|
|
@@ -1538,37 +1538,37 @@ protoOf(Field_0).equals = function (other) {
|
|
|
1538
1538
|
if (!(other instanceof Field_0))
|
|
1539
1539
|
return false;
|
|
1540
1540
|
var tmp0_other_with_cast = other instanceof Field_0 ? other : THROW_CCE();
|
|
1541
|
-
if (!(this.
|
|
1541
|
+
if (!(this.j2d_1 === tmp0_other_with_cast.j2d_1))
|
|
1542
1542
|
return false;
|
|
1543
|
-
if (!this.
|
|
1543
|
+
if (!this.k2d_1.equals(tmp0_other_with_cast.k2d_1))
|
|
1544
1544
|
return false;
|
|
1545
|
-
if (!(this.
|
|
1545
|
+
if (!(this.l2d_1 == tmp0_other_with_cast.l2d_1))
|
|
1546
1546
|
return false;
|
|
1547
|
-
if (!(this.
|
|
1547
|
+
if (!(this.m2d_1 == tmp0_other_with_cast.m2d_1))
|
|
1548
1548
|
return false;
|
|
1549
1549
|
return true;
|
|
1550
1550
|
};
|
|
1551
1551
|
function TypeList(type) {
|
|
1552
1552
|
AbstractList.call(this);
|
|
1553
|
-
this.
|
|
1554
|
-
this.
|
|
1553
|
+
this.o2e_1 = toList_0(type);
|
|
1554
|
+
this.p2e_1 = this.o2e_1.j();
|
|
1555
1555
|
}
|
|
1556
1556
|
protoOf(TypeList).j = function () {
|
|
1557
|
-
return this.
|
|
1557
|
+
return this.p2e_1;
|
|
1558
1558
|
};
|
|
1559
1559
|
protoOf(TypeList).k = function (index) {
|
|
1560
|
-
return this.
|
|
1560
|
+
return this.o2e_1.k(index);
|
|
1561
1561
|
};
|
|
1562
1562
|
function Type_0() {
|
|
1563
1563
|
}
|
|
1564
1564
|
function SimpleType(value) {
|
|
1565
|
-
this.
|
|
1565
|
+
this.p2c_1 = value;
|
|
1566
1566
|
}
|
|
1567
1567
|
protoOf(SimpleType).toString = function () {
|
|
1568
|
-
return 'SimpleType(value=' + this.
|
|
1568
|
+
return 'SimpleType(value=' + this.p2c_1 + ')';
|
|
1569
1569
|
};
|
|
1570
1570
|
protoOf(SimpleType).hashCode = function () {
|
|
1571
|
-
return getStringHashCode(this.
|
|
1571
|
+
return getStringHashCode(this.p2c_1);
|
|
1572
1572
|
};
|
|
1573
1573
|
protoOf(SimpleType).equals = function (other) {
|
|
1574
1574
|
if (this === other)
|
|
@@ -1576,7 +1576,7 @@ protoOf(SimpleType).equals = function (other) {
|
|
|
1576
1576
|
if (!(other instanceof SimpleType))
|
|
1577
1577
|
return false;
|
|
1578
1578
|
var tmp0_other_with_cast = other instanceof SimpleType ? other : THROW_CCE();
|
|
1579
|
-
if (!(this.
|
|
1579
|
+
if (!(this.p2c_1 === tmp0_other_with_cast.p2c_1))
|
|
1580
1580
|
return false;
|
|
1581
1581
|
return true;
|
|
1582
1582
|
};
|
|
@@ -1584,21 +1584,21 @@ function RecordType(type, name, namespace, fields, doc) {
|
|
|
1584
1584
|
Companion_getInstance_3();
|
|
1585
1585
|
namespace = namespace === VOID ? null : namespace;
|
|
1586
1586
|
doc = doc === VOID ? null : doc;
|
|
1587
|
-
this.
|
|
1588
|
-
this.
|
|
1589
|
-
this.
|
|
1590
|
-
this.
|
|
1591
|
-
this.
|
|
1587
|
+
this.c2d_1 = type;
|
|
1588
|
+
this.d2d_1 = name;
|
|
1589
|
+
this.e2d_1 = namespace;
|
|
1590
|
+
this.f2d_1 = fields;
|
|
1591
|
+
this.g2d_1 = doc;
|
|
1592
1592
|
}
|
|
1593
1593
|
protoOf(RecordType).toString = function () {
|
|
1594
|
-
return 'RecordType(type=' + this.
|
|
1594
|
+
return 'RecordType(type=' + this.c2d_1 + ', name=' + this.d2d_1 + ', namespace=' + this.e2d_1 + ', fields=' + toString(this.f2d_1) + ', doc=' + this.g2d_1 + ')';
|
|
1595
1595
|
};
|
|
1596
1596
|
protoOf(RecordType).hashCode = function () {
|
|
1597
|
-
var result = getStringHashCode(this.
|
|
1598
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1599
|
-
result = imul(result, 31) + (this.
|
|
1600
|
-
result = imul(result, 31) + hashCode(this.
|
|
1601
|
-
result = imul(result, 31) + (this.
|
|
1597
|
+
var result = getStringHashCode(this.c2d_1);
|
|
1598
|
+
result = imul(result, 31) + getStringHashCode(this.d2d_1) | 0;
|
|
1599
|
+
result = imul(result, 31) + (this.e2d_1 == null ? 0 : getStringHashCode(this.e2d_1)) | 0;
|
|
1600
|
+
result = imul(result, 31) + hashCode(this.f2d_1) | 0;
|
|
1601
|
+
result = imul(result, 31) + (this.g2d_1 == null ? 0 : getStringHashCode(this.g2d_1)) | 0;
|
|
1602
1602
|
return result;
|
|
1603
1603
|
};
|
|
1604
1604
|
protoOf(RecordType).equals = function (other) {
|
|
@@ -1607,28 +1607,28 @@ protoOf(RecordType).equals = function (other) {
|
|
|
1607
1607
|
if (!(other instanceof RecordType))
|
|
1608
1608
|
return false;
|
|
1609
1609
|
var tmp0_other_with_cast = other instanceof RecordType ? other : THROW_CCE();
|
|
1610
|
-
if (!(this.
|
|
1610
|
+
if (!(this.c2d_1 === tmp0_other_with_cast.c2d_1))
|
|
1611
1611
|
return false;
|
|
1612
|
-
if (!(this.
|
|
1612
|
+
if (!(this.d2d_1 === tmp0_other_with_cast.d2d_1))
|
|
1613
1613
|
return false;
|
|
1614
|
-
if (!(this.
|
|
1614
|
+
if (!(this.e2d_1 == tmp0_other_with_cast.e2d_1))
|
|
1615
1615
|
return false;
|
|
1616
|
-
if (!equals(this.
|
|
1616
|
+
if (!equals(this.f2d_1, tmp0_other_with_cast.f2d_1))
|
|
1617
1617
|
return false;
|
|
1618
|
-
if (!(this.
|
|
1618
|
+
if (!(this.g2d_1 == tmp0_other_with_cast.g2d_1))
|
|
1619
1619
|
return false;
|
|
1620
1620
|
return true;
|
|
1621
1621
|
};
|
|
1622
1622
|
function ArrayType(type, items) {
|
|
1623
|
-
this.
|
|
1624
|
-
this.
|
|
1623
|
+
this.h2d_1 = type;
|
|
1624
|
+
this.i2d_1 = items;
|
|
1625
1625
|
}
|
|
1626
1626
|
protoOf(ArrayType).toString = function () {
|
|
1627
|
-
return 'ArrayType(type=' + this.
|
|
1627
|
+
return 'ArrayType(type=' + this.h2d_1 + ', items=' + toString(this.i2d_1) + ')';
|
|
1628
1628
|
};
|
|
1629
1629
|
protoOf(ArrayType).hashCode = function () {
|
|
1630
|
-
var result = getStringHashCode(this.
|
|
1631
|
-
result = imul(result, 31) + hashCode(this.
|
|
1630
|
+
var result = getStringHashCode(this.h2d_1);
|
|
1631
|
+
result = imul(result, 31) + hashCode(this.i2d_1) | 0;
|
|
1632
1632
|
return result;
|
|
1633
1633
|
};
|
|
1634
1634
|
protoOf(ArrayType).equals = function (other) {
|
|
@@ -1637,22 +1637,22 @@ protoOf(ArrayType).equals = function (other) {
|
|
|
1637
1637
|
if (!(other instanceof ArrayType))
|
|
1638
1638
|
return false;
|
|
1639
1639
|
var tmp0_other_with_cast = other instanceof ArrayType ? other : THROW_CCE();
|
|
1640
|
-
if (!(this.
|
|
1640
|
+
if (!(this.h2d_1 === tmp0_other_with_cast.h2d_1))
|
|
1641
1641
|
return false;
|
|
1642
|
-
if (!equals(this.
|
|
1642
|
+
if (!equals(this.i2d_1, tmp0_other_with_cast.i2d_1))
|
|
1643
1643
|
return false;
|
|
1644
1644
|
return true;
|
|
1645
1645
|
};
|
|
1646
1646
|
function MapType(type, values) {
|
|
1647
|
-
this.
|
|
1648
|
-
this.
|
|
1647
|
+
this.s2c_1 = type;
|
|
1648
|
+
this.t2c_1 = values;
|
|
1649
1649
|
}
|
|
1650
1650
|
protoOf(MapType).toString = function () {
|
|
1651
|
-
return 'MapType(type=' + this.
|
|
1651
|
+
return 'MapType(type=' + this.s2c_1 + ', values=' + toString(this.t2c_1) + ')';
|
|
1652
1652
|
};
|
|
1653
1653
|
protoOf(MapType).hashCode = function () {
|
|
1654
|
-
var result = getStringHashCode(this.
|
|
1655
|
-
result = imul(result, 31) + hashCode(this.
|
|
1654
|
+
var result = getStringHashCode(this.s2c_1);
|
|
1655
|
+
result = imul(result, 31) + hashCode(this.t2c_1) | 0;
|
|
1656
1656
|
return result;
|
|
1657
1657
|
};
|
|
1658
1658
|
protoOf(MapType).equals = function (other) {
|
|
@@ -1661,28 +1661,28 @@ protoOf(MapType).equals = function (other) {
|
|
|
1661
1661
|
if (!(other instanceof MapType))
|
|
1662
1662
|
return false;
|
|
1663
1663
|
var tmp0_other_with_cast = other instanceof MapType ? other : THROW_CCE();
|
|
1664
|
-
if (!(this.
|
|
1664
|
+
if (!(this.s2c_1 === tmp0_other_with_cast.s2c_1))
|
|
1665
1665
|
return false;
|
|
1666
|
-
if (!equals(this.
|
|
1666
|
+
if (!equals(this.t2c_1, tmp0_other_with_cast.t2c_1))
|
|
1667
1667
|
return false;
|
|
1668
1668
|
return true;
|
|
1669
1669
|
};
|
|
1670
1670
|
function EnumType(type, name, doc, symbols) {
|
|
1671
1671
|
Companion_getInstance_6();
|
|
1672
1672
|
doc = doc === VOID ? null : doc;
|
|
1673
|
-
this.
|
|
1674
|
-
this.
|
|
1675
|
-
this.
|
|
1676
|
-
this.
|
|
1673
|
+
this.y2c_1 = type;
|
|
1674
|
+
this.z2c_1 = name;
|
|
1675
|
+
this.a2d_1 = doc;
|
|
1676
|
+
this.b2d_1 = symbols;
|
|
1677
1677
|
}
|
|
1678
1678
|
protoOf(EnumType).toString = function () {
|
|
1679
|
-
return 'EnumType(type=' + this.
|
|
1679
|
+
return 'EnumType(type=' + this.y2c_1 + ', name=' + this.z2c_1 + ', doc=' + this.a2d_1 + ', symbols=' + toString(this.b2d_1) + ')';
|
|
1680
1680
|
};
|
|
1681
1681
|
protoOf(EnumType).hashCode = function () {
|
|
1682
|
-
var result = getStringHashCode(this.
|
|
1683
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1684
|
-
result = imul(result, 31) + (this.
|
|
1685
|
-
result = imul(result, 31) + hashCode(this.
|
|
1682
|
+
var result = getStringHashCode(this.y2c_1);
|
|
1683
|
+
result = imul(result, 31) + getStringHashCode(this.z2c_1) | 0;
|
|
1684
|
+
result = imul(result, 31) + (this.a2d_1 == null ? 0 : getStringHashCode(this.a2d_1)) | 0;
|
|
1685
|
+
result = imul(result, 31) + hashCode(this.b2d_1) | 0;
|
|
1686
1686
|
return result;
|
|
1687
1687
|
};
|
|
1688
1688
|
protoOf(EnumType).equals = function (other) {
|
|
@@ -1691,26 +1691,26 @@ protoOf(EnumType).equals = function (other) {
|
|
|
1691
1691
|
if (!(other instanceof EnumType))
|
|
1692
1692
|
return false;
|
|
1693
1693
|
var tmp0_other_with_cast = other instanceof EnumType ? other : THROW_CCE();
|
|
1694
|
-
if (!(this.
|
|
1694
|
+
if (!(this.y2c_1 === tmp0_other_with_cast.y2c_1))
|
|
1695
1695
|
return false;
|
|
1696
|
-
if (!(this.
|
|
1696
|
+
if (!(this.z2c_1 === tmp0_other_with_cast.z2c_1))
|
|
1697
1697
|
return false;
|
|
1698
|
-
if (!(this.
|
|
1698
|
+
if (!(this.a2d_1 == tmp0_other_with_cast.a2d_1))
|
|
1699
1699
|
return false;
|
|
1700
|
-
if (!equals(this.
|
|
1700
|
+
if (!equals(this.b2d_1, tmp0_other_with_cast.b2d_1))
|
|
1701
1701
|
return false;
|
|
1702
1702
|
return true;
|
|
1703
1703
|
};
|
|
1704
1704
|
function UnionType(name, type) {
|
|
1705
|
-
this.
|
|
1706
|
-
this.
|
|
1705
|
+
this.q2c_1 = name;
|
|
1706
|
+
this.r2c_1 = type;
|
|
1707
1707
|
}
|
|
1708
1708
|
protoOf(UnionType).toString = function () {
|
|
1709
|
-
return 'UnionType(name=' + this.
|
|
1709
|
+
return 'UnionType(name=' + this.q2c_1 + ', type=' + this.r2c_1.toString() + ')';
|
|
1710
1710
|
};
|
|
1711
1711
|
protoOf(UnionType).hashCode = function () {
|
|
1712
|
-
var result = getStringHashCode(this.
|
|
1713
|
-
result = imul(result, 31) + this.
|
|
1712
|
+
var result = getStringHashCode(this.q2c_1);
|
|
1713
|
+
result = imul(result, 31) + this.r2c_1.hashCode() | 0;
|
|
1714
1714
|
return result;
|
|
1715
1715
|
};
|
|
1716
1716
|
protoOf(UnionType).equals = function (other) {
|
|
@@ -1719,22 +1719,22 @@ protoOf(UnionType).equals = function (other) {
|
|
|
1719
1719
|
if (!(other instanceof UnionType))
|
|
1720
1720
|
return false;
|
|
1721
1721
|
var tmp0_other_with_cast = other instanceof UnionType ? other : THROW_CCE();
|
|
1722
|
-
if (!(this.
|
|
1722
|
+
if (!(this.q2c_1 === tmp0_other_with_cast.q2c_1))
|
|
1723
1723
|
return false;
|
|
1724
|
-
if (!this.
|
|
1724
|
+
if (!this.r2c_1.equals(tmp0_other_with_cast.r2c_1))
|
|
1725
1725
|
return false;
|
|
1726
1726
|
return true;
|
|
1727
1727
|
};
|
|
1728
1728
|
function LogicalType() {
|
|
1729
1729
|
}
|
|
1730
1730
|
protoOf(LogicalType).toString = function () {
|
|
1731
|
-
return 'LogicalType(type=' + this.
|
|
1731
|
+
return 'LogicalType(type=' + this.u2c_1 + ', logicalType=' + this.v2c_1 + ', precision=' + this.w2c_1 + ', scale=' + this.x2c_1 + ')';
|
|
1732
1732
|
};
|
|
1733
1733
|
protoOf(LogicalType).hashCode = function () {
|
|
1734
|
-
var result = getStringHashCode(this.
|
|
1735
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1736
|
-
result = imul(result, 31) + (this.
|
|
1737
|
-
result = imul(result, 31) + (this.
|
|
1734
|
+
var result = getStringHashCode(this.u2c_1);
|
|
1735
|
+
result = imul(result, 31) + getStringHashCode(this.v2c_1) | 0;
|
|
1736
|
+
result = imul(result, 31) + (this.w2c_1 == null ? 0 : this.w2c_1) | 0;
|
|
1737
|
+
result = imul(result, 31) + (this.x2c_1 == null ? 0 : this.x2c_1) | 0;
|
|
1738
1738
|
return result;
|
|
1739
1739
|
};
|
|
1740
1740
|
protoOf(LogicalType).equals = function (other) {
|
|
@@ -1743,32 +1743,32 @@ protoOf(LogicalType).equals = function (other) {
|
|
|
1743
1743
|
if (!(other instanceof LogicalType))
|
|
1744
1744
|
return false;
|
|
1745
1745
|
var tmp0_other_with_cast = other instanceof LogicalType ? other : THROW_CCE();
|
|
1746
|
-
if (!(this.
|
|
1746
|
+
if (!(this.u2c_1 === tmp0_other_with_cast.u2c_1))
|
|
1747
1747
|
return false;
|
|
1748
|
-
if (!(this.
|
|
1748
|
+
if (!(this.v2c_1 === tmp0_other_with_cast.v2c_1))
|
|
1749
1749
|
return false;
|
|
1750
|
-
if (!(this.
|
|
1750
|
+
if (!(this.w2c_1 == tmp0_other_with_cast.w2c_1))
|
|
1751
1751
|
return false;
|
|
1752
|
-
if (!(this.
|
|
1752
|
+
if (!(this.x2c_1 == tmp0_other_with_cast.x2c_1))
|
|
1753
1753
|
return false;
|
|
1754
1754
|
return true;
|
|
1755
1755
|
};
|
|
1756
1756
|
function TypeListSerializer() {
|
|
1757
1757
|
TypeListSerializer_instance = this;
|
|
1758
|
-
this.
|
|
1758
|
+
this.q2e_1 = buildSerialDescriptor('TypeListSerializer', SEALED_getInstance(), []);
|
|
1759
1759
|
}
|
|
1760
1760
|
protoOf(TypeListSerializer).jl = function () {
|
|
1761
|
-
return this.
|
|
1761
|
+
return this.q2e_1;
|
|
1762
1762
|
};
|
|
1763
|
-
protoOf(TypeListSerializer).
|
|
1764
|
-
if (value.
|
|
1763
|
+
protoOf(TypeListSerializer).r2e = function (encoder, value) {
|
|
1764
|
+
if (value.p2e_1 > 1) {
|
|
1765
1765
|
encoder.cq(ListSerializer(Companion_instance_1.v17()), value);
|
|
1766
1766
|
} else {
|
|
1767
1767
|
encoder.cq(Companion_instance_1.v17(), first(value));
|
|
1768
1768
|
}
|
|
1769
1769
|
};
|
|
1770
1770
|
protoOf(TypeListSerializer).kl = function (encoder, value) {
|
|
1771
|
-
return this.
|
|
1771
|
+
return this.r2e(encoder, value instanceof TypeList ? value : THROW_CCE());
|
|
1772
1772
|
};
|
|
1773
1773
|
protoOf(TypeListSerializer).ll = function (decoder) {
|
|
1774
1774
|
var tmp0_elvis_lhs = isInterface(decoder, JsonDecoder) ? decoder : null;
|
|
@@ -1816,14 +1816,14 @@ function TypeListSerializer_getInstance() {
|
|
|
1816
1816
|
}
|
|
1817
1817
|
function TypeSerializer() {
|
|
1818
1818
|
TypeSerializer_instance = this;
|
|
1819
|
-
this.
|
|
1819
|
+
this.s2e_1 = buildSerialDescriptor('TypeSerializer', SEALED_getInstance(), []);
|
|
1820
1820
|
}
|
|
1821
1821
|
protoOf(TypeSerializer).jl = function () {
|
|
1822
|
-
return this.
|
|
1822
|
+
return this.s2e_1;
|
|
1823
1823
|
};
|
|
1824
|
-
protoOf(TypeSerializer).
|
|
1824
|
+
protoOf(TypeSerializer).t2e = function (encoder, value) {
|
|
1825
1825
|
if (value instanceof SimpleType) {
|
|
1826
|
-
encoder.cq(serializer_0(StringCompanionObject_instance), value.
|
|
1826
|
+
encoder.cq(serializer_0(StringCompanionObject_instance), value.p2c_1);
|
|
1827
1827
|
} else {
|
|
1828
1828
|
if (value instanceof RecordType) {
|
|
1829
1829
|
encoder.cq(Companion_getInstance_3().v17(), value);
|
|
@@ -1854,7 +1854,7 @@ protoOf(TypeSerializer).q2e = function (encoder, value) {
|
|
|
1854
1854
|
}
|
|
1855
1855
|
};
|
|
1856
1856
|
protoOf(TypeSerializer).kl = function (encoder, value) {
|
|
1857
|
-
return this.
|
|
1857
|
+
return this.t2e(encoder, (!(value == null) ? isInterface(value, Type_0) : false) ? value : THROW_CCE());
|
|
1858
1858
|
};
|
|
1859
1859
|
protoOf(TypeSerializer).ll = function (decoder) {
|
|
1860
1860
|
var tmp0_elvis_lhs = isInterface(decoder, JsonDecoder) ? decoder : null;
|
|
@@ -1909,7 +1909,7 @@ function AvroParser$parse$lambda($this$Json) {
|
|
|
1909
1909
|
}
|
|
1910
1910
|
function AvroParser() {
|
|
1911
1911
|
}
|
|
1912
|
-
protoOf(AvroParser).
|
|
1912
|
+
protoOf(AvroParser).u2e = function (moduleContent, strict) {
|
|
1913
1913
|
var json = Json(VOID, AvroParser$parse$lambda);
|
|
1914
1914
|
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
1915
1915
|
var string = moduleContent.a22_1;
|
|
@@ -1919,10 +1919,10 @@ protoOf(AvroParser).r2e = function (moduleContent, strict) {
|
|
|
1919
1919
|
var this_1 = serializer(this_0, createKType(getKClass(Type_0), arrayOf([]), false));
|
|
1920
1920
|
var tmp$ret$1 = isInterface(this_1, KSerializer) ? this_1 : THROW_CCE();
|
|
1921
1921
|
var avro = json.n15(tmp$ret$1, string);
|
|
1922
|
-
var tmp = AvroConverter_getInstance().
|
|
1922
|
+
var tmp = AvroConverter_getInstance().o2d(avro);
|
|
1923
1923
|
var tmp_0;
|
|
1924
1924
|
if (avro instanceof RecordType) {
|
|
1925
|
-
tmp_0 = new Channel(null, emptyList(), new DefinitionIdentifier(avro.
|
|
1925
|
+
tmp_0 = new Channel(null, emptyList(), new DefinitionIdentifier(avro.d2d_1), new Custom(avro.d2d_1, false));
|
|
1926
1926
|
} else {
|
|
1927
1927
|
if (avro instanceof ArrayType) {
|
|
1928
1928
|
throw new NotImplementedError();
|