@flock/wirespec 0.18.0-RC.1 → 0.18.1-RC.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/arrow-arrow-atomic.mjs +12 -12
- package/arrow-arrow-core.mjs +152 -158
- package/arrow-arrow-core.mjs.map +1 -1
- package/clikt-clikt-mordant.mjs +80 -80
- package/clikt-clikt.mjs +1442 -1442
- package/clikt-clikt.mjs.map +1 -1
- package/colormath-root-colormath.mjs +439 -439
- package/kotlin-kotlin-stdlib.mjs +1072 -1136
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +4857 -4857
- package/kotlin-rgxgen.mjs +1793 -1793
- package/kotlinx-io-kotlinx-io-core.mjs +415 -415
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1752 -1752
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1348 -1356
- package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
- package/mordant-mordant.mjs +1303 -1311
- package/mordant-mordant.mjs.map +1 -1
- package/package.json +1 -1
- package/wirespec-fetch.mjs +13 -19
- package/wirespec-src-compiler-core.mjs +1526 -1526
- package/wirespec-src-compiler-emitters-java.mjs +477 -451
- package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-kotlin.mjs +458 -453
- package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-python.mjs +419 -418
- package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-rust.mjs +939 -725
- package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-scala.mjs +225 -233
- package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-typescript.mjs +524 -555
- package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-wirespec.mjs +81 -81
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-ir.mjs +3738 -3708
- package/wirespec-src-compiler-ir.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +418 -418
- package/wirespec-src-converter-avro.mjs +506 -506
- package/wirespec-src-converter-openapi.mjs +684 -684
- package/wirespec-src-plugin-arguments.mjs +181 -181
- package/wirespec-src-plugin-cli.mjs +106 -106
- package/wirespec-src-plugin-npm.mjs +36 -36
- package/wirespec-src-tools-generator.mjs +34 -34
|
@@ -146,11 +146,11 @@ initMetadataForObject(TypeSerializer, 'TypeSerializer', VOID, VOID, [KSerializer
|
|
|
146
146
|
initMetadataForObject(AvroParser, 'AvroParser');
|
|
147
147
|
//endregion
|
|
148
148
|
function isNullable($this, _this__u8e3s4) {
|
|
149
|
-
return _this__u8e3s4.
|
|
149
|
+
return _this__u8e3s4.u1($this.l3i_1);
|
|
150
150
|
}
|
|
151
151
|
function toPrimitive($this, _this__u8e3s4) {
|
|
152
152
|
var tmp;
|
|
153
|
-
switch (_this__u8e3s4.
|
|
153
|
+
switch (_this__u8e3s4.m3i_1) {
|
|
154
154
|
case 'boolean':
|
|
155
155
|
tmp = Boolean_instance;
|
|
156
156
|
break;
|
|
@@ -173,7 +173,7 @@ function toPrimitive($this, _this__u8e3s4) {
|
|
|
173
173
|
tmp = new String_0(null);
|
|
174
174
|
break;
|
|
175
175
|
default:
|
|
176
|
-
var reason = 'primitive not mapped ' + _this__u8e3s4.
|
|
176
|
+
var reason = 'primitive not mapped ' + _this__u8e3s4.m3i_1;
|
|
177
177
|
throw new NotImplementedError('An operation is not implemented: ' + reason);
|
|
178
178
|
}
|
|
179
179
|
return tmp;
|
|
@@ -181,7 +181,7 @@ function toPrimitive($this, _this__u8e3s4) {
|
|
|
181
181
|
function toReference($this, _this__u8e3s4, isNullable) {
|
|
182
182
|
var tmp;
|
|
183
183
|
if (_this__u8e3s4 instanceof SimpleType) {
|
|
184
|
-
switch (_this__u8e3s4.
|
|
184
|
+
switch (_this__u8e3s4.m3i_1) {
|
|
185
185
|
case 'null':
|
|
186
186
|
tmp = new Unit(isNullable);
|
|
187
187
|
break;
|
|
@@ -195,27 +195,27 @@ function toReference($this, _this__u8e3s4, isNullable) {
|
|
|
195
195
|
tmp = new Primitive(toPrimitive($this, _this__u8e3s4), isNullable);
|
|
196
196
|
break;
|
|
197
197
|
default:
|
|
198
|
-
tmp = new Custom(_this__u8e3s4.
|
|
198
|
+
tmp = new Custom(_this__u8e3s4.m3i_1, isNullable);
|
|
199
199
|
break;
|
|
200
200
|
}
|
|
201
201
|
} else {
|
|
202
202
|
if (_this__u8e3s4 instanceof ArrayType) {
|
|
203
|
-
tmp = new Iterable(toReference($this, _this__u8e3s4.
|
|
203
|
+
tmp = new Iterable(toReference($this, _this__u8e3s4.f3j_1, false), isNullable);
|
|
204
204
|
} else {
|
|
205
205
|
if (_this__u8e3s4 instanceof RecordType) {
|
|
206
|
-
tmp = new Custom(_this__u8e3s4.
|
|
206
|
+
tmp = new Custom(_this__u8e3s4.a3j_1, isNullable);
|
|
207
207
|
} else {
|
|
208
208
|
if (_this__u8e3s4 instanceof EnumType) {
|
|
209
|
-
tmp = new Custom(_this__u8e3s4.
|
|
209
|
+
tmp = new Custom(_this__u8e3s4.w3i_1, isNullable);
|
|
210
210
|
} else {
|
|
211
211
|
if (_this__u8e3s4 instanceof LogicalType) {
|
|
212
|
-
tmp = toReference($this, new SimpleType(_this__u8e3s4.
|
|
212
|
+
tmp = toReference($this, new SimpleType(_this__u8e3s4.r3i_1), isNullable);
|
|
213
213
|
} else {
|
|
214
214
|
if (_this__u8e3s4 instanceof MapType) {
|
|
215
|
-
tmp = new Dict(toReference($this, _this__u8e3s4.
|
|
215
|
+
tmp = new Dict(toReference($this, _this__u8e3s4.q3i_1, false), isNullable);
|
|
216
216
|
} else {
|
|
217
217
|
if (_this__u8e3s4 instanceof UnionType) {
|
|
218
|
-
tmp = new Custom(_this__u8e3s4.
|
|
218
|
+
tmp = new Custom(_this__u8e3s4.n3i_1, isNullable);
|
|
219
219
|
} else {
|
|
220
220
|
noWhenBranchMatchedException();
|
|
221
221
|
}
|
|
@@ -228,7 +228,7 @@ function toReference($this, _this__u8e3s4, isNullable) {
|
|
|
228
228
|
return tmp;
|
|
229
229
|
}
|
|
230
230
|
function toReference_0($this, _this__u8e3s4) {
|
|
231
|
-
var list = minus(_this__u8e3s4, $this.
|
|
231
|
+
var list = minus(_this__u8e3s4, $this.l3i_1);
|
|
232
232
|
var tmp;
|
|
233
233
|
if (list.a1() === 1) {
|
|
234
234
|
tmp = toReference($this, first(list), isNullable($this, _this__u8e3s4));
|
|
@@ -268,18 +268,18 @@ function toReference_0($this, _this__u8e3s4) {
|
|
|
268
268
|
}
|
|
269
269
|
function toType($this, _this__u8e3s4) {
|
|
270
270
|
var tmp0_annotations = emptyList();
|
|
271
|
-
var tmp1_identifier = new DefinitionIdentifier(_this__u8e3s4.
|
|
271
|
+
var tmp1_identifier = new DefinitionIdentifier(_this__u8e3s4.a3j_1);
|
|
272
272
|
var tmp2_extends = emptyList();
|
|
273
273
|
// Inline function 'kotlin.collections.map' call
|
|
274
|
-
var this_0 = _this__u8e3s4.
|
|
274
|
+
var this_0 = _this__u8e3s4.c3j_1;
|
|
275
275
|
// Inline function 'kotlin.collections.mapTo' call
|
|
276
276
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
277
277
|
var _iterator__ex2g4s = this_0.t();
|
|
278
278
|
while (_iterator__ex2g4s.u()) {
|
|
279
279
|
var item = _iterator__ex2g4s.v();
|
|
280
|
-
var tmp0_identifier = new FieldIdentifier(item.
|
|
280
|
+
var tmp0_identifier = new FieldIdentifier(item.g3j_1);
|
|
281
281
|
var tmp1_annotations = emptyList();
|
|
282
|
-
var tmp2_reference = toReference_0(AvroConverter_getInstance(), item.
|
|
282
|
+
var tmp2_reference = toReference_0(AvroConverter_getInstance(), item.h3j_1);
|
|
283
283
|
var tmp$ret$0 = new Field(tmp1_annotations, tmp0_identifier, tmp2_reference);
|
|
284
284
|
destination.x(tmp$ret$0);
|
|
285
285
|
}
|
|
@@ -287,13 +287,13 @@ function toType($this, _this__u8e3s4) {
|
|
|
287
287
|
return new Type(null, tmp0_annotations, tmp1_identifier, tmp3_shape, tmp2_extends);
|
|
288
288
|
}
|
|
289
289
|
function toEnum($this, _this__u8e3s4) {
|
|
290
|
-
return new Enum(null, emptyList(), new DefinitionIdentifier(_this__u8e3s4.
|
|
290
|
+
return new Enum(null, emptyList(), new DefinitionIdentifier(_this__u8e3s4.w3i_1), toSet(_this__u8e3s4.y3i_1));
|
|
291
291
|
}
|
|
292
292
|
function toUnion($this, _this__u8e3s4, name) {
|
|
293
293
|
var tmp = emptyList();
|
|
294
294
|
var tmp_0 = new DefinitionIdentifier(name);
|
|
295
295
|
// Inline function 'kotlin.collections.map' call
|
|
296
|
-
var this_0 = _this__u8e3s4.
|
|
296
|
+
var this_0 = _this__u8e3s4.o3i_1;
|
|
297
297
|
// Inline function 'kotlin.collections.mapTo' call
|
|
298
298
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
299
299
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -306,9 +306,9 @@ function toUnion($this, _this__u8e3s4, name) {
|
|
|
306
306
|
}
|
|
307
307
|
function AvroConverter() {
|
|
308
308
|
AvroConverter_instance = this;
|
|
309
|
-
this.
|
|
309
|
+
this.l3i_1 = new SimpleType('null');
|
|
310
310
|
}
|
|
311
|
-
protoOf(AvroConverter).
|
|
311
|
+
protoOf(AvroConverter).k3j = function (_this__u8e3s4, name) {
|
|
312
312
|
var tmp;
|
|
313
313
|
if (_this__u8e3s4 instanceof SimpleType) {
|
|
314
314
|
tmp = emptyList();
|
|
@@ -316,20 +316,20 @@ protoOf(AvroConverter).f3j = function (_this__u8e3s4, name) {
|
|
|
316
316
|
if (_this__u8e3s4 instanceof RecordType) {
|
|
317
317
|
var tmp_0 = listOf(toType(this, _this__u8e3s4));
|
|
318
318
|
// Inline function 'kotlin.collections.flatMap' call
|
|
319
|
-
var tmp0 = _this__u8e3s4.
|
|
319
|
+
var tmp0 = _this__u8e3s4.c3j_1;
|
|
320
320
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
321
321
|
var destination = ArrayList_init_$Create$_0();
|
|
322
322
|
var _iterator__ex2g4s = tmp0.t();
|
|
323
323
|
while (_iterator__ex2g4s.u()) {
|
|
324
324
|
var element = _iterator__ex2g4s.v();
|
|
325
325
|
// Inline function 'kotlin.collections.flatMap' call
|
|
326
|
-
var tmp0_0 = element.
|
|
326
|
+
var tmp0_0 = element.h3j_1;
|
|
327
327
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
328
328
|
var destination_0 = ArrayList_init_$Create$_0();
|
|
329
329
|
var _iterator__ex2g4s_0 = tmp0_0.t();
|
|
330
330
|
while (_iterator__ex2g4s_0.u()) {
|
|
331
331
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
332
|
-
var list = AvroConverter_getInstance().
|
|
332
|
+
var list = AvroConverter_getInstance().k3j(element_0, name);
|
|
333
333
|
addAll(destination_0, list);
|
|
334
334
|
}
|
|
335
335
|
var list_0 = destination_0;
|
|
@@ -338,7 +338,7 @@ protoOf(AvroConverter).f3j = 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.k3j(_this__u8e3s4.f3j_1, name);
|
|
342
342
|
} else {
|
|
343
343
|
if (_this__u8e3s4 instanceof EnumType) {
|
|
344
344
|
tmp = listOf(toEnum(this, _this__u8e3s4));
|
|
@@ -347,7 +347,7 @@ protoOf(AvroConverter).f3j = function (_this__u8e3s4, name) {
|
|
|
347
347
|
tmp = emptyList();
|
|
348
348
|
} else {
|
|
349
349
|
if (_this__u8e3s4 instanceof MapType) {
|
|
350
|
-
tmp = this.
|
|
350
|
+
tmp = this.k3j(_this__u8e3s4.q3i_1, name);
|
|
351
351
|
} else {
|
|
352
352
|
if (_this__u8e3s4 instanceof UnionType) {
|
|
353
353
|
tmp = listOf(toUnion(this, _this__u8e3s4, name));
|
|
@@ -362,9 +362,9 @@ protoOf(AvroConverter).f3j = function (_this__u8e3s4, name) {
|
|
|
362
362
|
}
|
|
363
363
|
return tmp;
|
|
364
364
|
};
|
|
365
|
-
protoOf(AvroConverter).
|
|
365
|
+
protoOf(AvroConverter).l3j = function (_this__u8e3s4, name, $super) {
|
|
366
366
|
name = name === VOID ? '' : name;
|
|
367
|
-
return $super === VOID ? this.
|
|
367
|
+
return $super === VOID ? this.k3j(_this__u8e3s4, name) : $super.k3j.call(this, _this__u8e3s4, name);
|
|
368
368
|
};
|
|
369
369
|
var AvroConverter_instance;
|
|
370
370
|
function AvroConverter_getInstance() {
|
|
@@ -374,14 +374,14 @@ function AvroConverter_getInstance() {
|
|
|
374
374
|
}
|
|
375
375
|
function findType($this, _this__u8e3s4, name) {
|
|
376
376
|
// Inline function 'kotlin.collections.find' call
|
|
377
|
-
var tmp0 = NonEmptyList__toList_impl_t5xcy2(_this__u8e3s4.
|
|
377
|
+
var tmp0 = NonEmptyList__toList_impl_t5xcy2(_this__u8e3s4.dq_1);
|
|
378
378
|
var tmp$ret$1;
|
|
379
379
|
$l$block: {
|
|
380
380
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
381
381
|
var _iterator__ex2g4s = tmp0.t();
|
|
382
382
|
while (_iterator__ex2g4s.u()) {
|
|
383
383
|
var element = _iterator__ex2g4s.v();
|
|
384
|
-
if (element.
|
|
384
|
+
if (element.vq().l1() === name) {
|
|
385
385
|
tmp$ret$1 = element;
|
|
386
386
|
break $l$block;
|
|
387
387
|
}
|
|
@@ -392,14 +392,14 @@ function findType($this, _this__u8e3s4, name) {
|
|
|
392
392
|
}
|
|
393
393
|
function AvroEmitter() {
|
|
394
394
|
AvroEmitter_instance = this;
|
|
395
|
-
this.
|
|
395
|
+
this.m3j_1 = FileExtension_JSON_getInstance();
|
|
396
396
|
}
|
|
397
|
-
protoOf(AvroEmitter).
|
|
398
|
-
return this.
|
|
397
|
+
protoOf(AvroEmitter).eq = function () {
|
|
398
|
+
return this.m3j_1;
|
|
399
399
|
};
|
|
400
|
-
protoOf(AvroEmitter).
|
|
400
|
+
protoOf(AvroEmitter).on = function (ast, logger) {
|
|
401
401
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
402
|
-
var this_0 = ast.
|
|
402
|
+
var this_0 = ast.bq_1;
|
|
403
403
|
// Inline function 'kotlin.collections.map' call
|
|
404
404
|
var this_1 = _NonEmptyList___get_all__impl__pmf509(this_0);
|
|
405
405
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -407,8 +407,8 @@ protoOf(AvroEmitter).qn = function (ast, logger) {
|
|
|
407
407
|
var _iterator__ex2g4s = this_1.t();
|
|
408
408
|
while (_iterator__ex2g4s.u()) {
|
|
409
409
|
var item = _iterator__ex2g4s.v();
|
|
410
|
-
logger.
|
|
411
|
-
var tmp$ret$0 = AvroEmitter_getInstance().
|
|
410
|
+
logger.sq('Emitting Nodes from ' + item.cq_1.dn_1 + ' ');
|
|
411
|
+
var tmp$ret$0 = AvroEmitter_getInstance().n3j(item);
|
|
412
412
|
destination.x(tmp$ret$0);
|
|
413
413
|
}
|
|
414
414
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
@@ -423,11 +423,11 @@ protoOf(AvroEmitter).qn = function (ast, logger) {
|
|
|
423
423
|
// Inline function 'kotlinx.serialization.encodeToString' call
|
|
424
424
|
var this_4 = Default_getInstance();
|
|
425
425
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
426
|
-
var this_5 = this_4.
|
|
426
|
+
var this_5 = this_4.y24();
|
|
427
427
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
428
428
|
var this_6 = serializer(this_5, createKType(getKClass(KtList), arrayOf([createInvariantKTypeProjection(createKType(getKClass(Type_0), arrayOf([]), false))]), false));
|
|
429
429
|
var tmp$ret$5 = isInterface(this_6, KSerializer) ? this_6 : THROW_CCE();
|
|
430
|
-
var tmp$ret$7 = this_4.
|
|
430
|
+
var tmp$ret$7 = this_4.l2l(tmp$ret$5, item_0);
|
|
431
431
|
destination_0.x(tmp$ret$7);
|
|
432
432
|
}
|
|
433
433
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
@@ -444,40 +444,40 @@ protoOf(AvroEmitter).qn = function (ast, logger) {
|
|
|
444
444
|
}
|
|
445
445
|
return _NonEmptyList___init__impl__fxd0xp(destination_1);
|
|
446
446
|
};
|
|
447
|
-
protoOf(AvroEmitter).
|
|
448
|
-
return new EnumType('enum', _this__u8e3s4.
|
|
447
|
+
protoOf(AvroEmitter).o3j = function (_this__u8e3s4) {
|
|
448
|
+
return new EnumType('enum', _this__u8e3s4.gr_1.l1(), VOID, toList(_this__u8e3s4.hr_1));
|
|
449
449
|
};
|
|
450
|
-
protoOf(AvroEmitter).
|
|
451
|
-
var tmp = _this__u8e3s4.
|
|
450
|
+
protoOf(AvroEmitter).p3j = function (_this__u8e3s4) {
|
|
451
|
+
var tmp = _this__u8e3s4.qo_1.l1();
|
|
452
452
|
// Inline function 'kotlin.collections.map' call
|
|
453
|
-
var this_0 = _this__u8e3s4.
|
|
453
|
+
var this_0 = _this__u8e3s4.ro_1;
|
|
454
454
|
// Inline function 'kotlin.collections.mapTo' call
|
|
455
455
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
456
456
|
var _iterator__ex2g4s = this_0.t();
|
|
457
457
|
while (_iterator__ex2g4s.u()) {
|
|
458
458
|
var item = _iterator__ex2g4s.v();
|
|
459
|
-
var tmp$ret$0 = new SimpleType(item.
|
|
459
|
+
var tmp$ret$0 = new SimpleType(item.l1());
|
|
460
460
|
destination.x(tmp$ret$0);
|
|
461
461
|
}
|
|
462
462
|
return new UnionType(tmp, TypeList_init_$Create$(destination));
|
|
463
463
|
};
|
|
464
|
-
protoOf(AvroEmitter).
|
|
464
|
+
protoOf(AvroEmitter).q3j = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
465
465
|
var tmp;
|
|
466
466
|
if (_this__u8e3s4 instanceof Dict) {
|
|
467
|
-
tmp = new MapType('map', this.
|
|
467
|
+
tmp = new MapType('map', this.q3j(_this__u8e3s4.co_1, module_0, hasEmitted));
|
|
468
468
|
} else {
|
|
469
469
|
if (_this__u8e3s4 instanceof Iterable) {
|
|
470
|
-
tmp = new ArrayType('array', this.
|
|
470
|
+
tmp = new ArrayType('array', this.q3j(_this__u8e3s4.zn_1, module_0, hasEmitted));
|
|
471
471
|
} else {
|
|
472
472
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
473
|
-
var type = _this__u8e3s4.
|
|
473
|
+
var type = _this__u8e3s4.pu_1;
|
|
474
474
|
var tmp_0;
|
|
475
475
|
if (type instanceof String_0) {
|
|
476
476
|
tmp_0 = new SimpleType('string');
|
|
477
477
|
} else {
|
|
478
478
|
if (type instanceof Integer) {
|
|
479
479
|
var tmp_1;
|
|
480
|
-
switch (type.
|
|
480
|
+
switch (type.tt_1.b3_1) {
|
|
481
481
|
case 0:
|
|
482
482
|
tmp_1 = new SimpleType('int');
|
|
483
483
|
break;
|
|
@@ -492,7 +492,7 @@ protoOf(AvroEmitter).l3j = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
|
492
492
|
} else {
|
|
493
493
|
if (type instanceof Number_0) {
|
|
494
494
|
var tmp_2;
|
|
495
|
-
switch (type.
|
|
495
|
+
switch (type.wt_1.b3_1) {
|
|
496
496
|
case 0:
|
|
497
497
|
tmp_2 = new SimpleType('float');
|
|
498
498
|
break;
|
|
@@ -520,28 +520,28 @@ protoOf(AvroEmitter).l3j = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
|
520
520
|
tmp = tmp_0;
|
|
521
521
|
} else {
|
|
522
522
|
if (_this__u8e3s4 instanceof Custom) {
|
|
523
|
-
var def = findType(this, module_0, _this__u8e3s4.
|
|
523
|
+
var def = findType(this, module_0, _this__u8e3s4.lu_1);
|
|
524
524
|
var tmp_3;
|
|
525
525
|
if (def instanceof Type) {
|
|
526
526
|
var tmp_4;
|
|
527
|
-
if (hasEmitted.
|
|
527
|
+
if (hasEmitted.u1(def.vo_1.l1())) {
|
|
528
528
|
// Inline function 'kotlin.let' call
|
|
529
|
-
var p0 = def.
|
|
529
|
+
var p0 = def.vo_1.l1();
|
|
530
530
|
tmp_4 = new SimpleType(p0);
|
|
531
531
|
} else {
|
|
532
532
|
// Inline function 'kotlin.also' call
|
|
533
|
-
hasEmitted.x(def.
|
|
534
|
-
tmp_4 = this.
|
|
533
|
+
hasEmitted.x(def.vo_1.l1());
|
|
534
|
+
tmp_4 = this.r3j(def, module_0, hasEmitted);
|
|
535
535
|
}
|
|
536
536
|
tmp_3 = tmp_4;
|
|
537
537
|
} else {
|
|
538
538
|
if (def instanceof Enum) {
|
|
539
|
-
tmp_3 = new SimpleType(def.
|
|
539
|
+
tmp_3 = new SimpleType(def.gr_1.l1());
|
|
540
540
|
} else {
|
|
541
541
|
if (def instanceof Refined) {
|
|
542
542
|
tmp_3 = new SimpleType('string');
|
|
543
543
|
} else {
|
|
544
|
-
tmp_3 = new SimpleType(_this__u8e3s4.
|
|
544
|
+
tmp_3 = new SimpleType(_this__u8e3s4.lu_1);
|
|
545
545
|
}
|
|
546
546
|
}
|
|
547
547
|
}
|
|
@@ -562,42 +562,42 @@ protoOf(AvroEmitter).l3j = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
|
562
562
|
}
|
|
563
563
|
return tmp;
|
|
564
564
|
};
|
|
565
|
-
protoOf(AvroEmitter).
|
|
566
|
-
var ref = _this__u8e3s4.
|
|
565
|
+
protoOf(AvroEmitter).s3j = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
566
|
+
var ref = _this__u8e3s4.bp_1;
|
|
567
567
|
var tmp;
|
|
568
568
|
if (ref instanceof Iterable) {
|
|
569
|
-
tmp = new ArrayType('array', this.
|
|
569
|
+
tmp = new ArrayType('array', this.q3j(ref.zn_1, module_0, hasEmitted));
|
|
570
570
|
} else {
|
|
571
|
-
tmp = this.
|
|
571
|
+
tmp = this.q3j(ref, module_0, hasEmitted);
|
|
572
572
|
}
|
|
573
573
|
return tmp;
|
|
574
574
|
};
|
|
575
|
-
protoOf(AvroEmitter).
|
|
576
|
-
var tmp0_name = _this__u8e3s4.
|
|
575
|
+
protoOf(AvroEmitter).r3j = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
576
|
+
var tmp0_name = _this__u8e3s4.vo_1.l1();
|
|
577
577
|
// Inline function 'kotlin.collections.map' call
|
|
578
|
-
var this_0 = _this__u8e3s4.
|
|
578
|
+
var this_0 = _this__u8e3s4.wo_1.so_1;
|
|
579
579
|
// Inline function 'kotlin.collections.mapTo' call
|
|
580
580
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
581
581
|
var _iterator__ex2g4s = this_0.t();
|
|
582
582
|
while (_iterator__ex2g4s.u()) {
|
|
583
583
|
var item = _iterator__ex2g4s.v();
|
|
584
|
-
var tmp = item.
|
|
584
|
+
var tmp = item.ap_1.l1();
|
|
585
585
|
var tmp_0;
|
|
586
|
-
if (item.
|
|
587
|
-
tmp_0 = new TypeList([new SimpleType('null'), AvroEmitter_getInstance().
|
|
586
|
+
if (item.bp_1.du()) {
|
|
587
|
+
tmp_0 = new TypeList([new SimpleType('null'), AvroEmitter_getInstance().s3j(item, module_0, hasEmitted)]);
|
|
588
588
|
} else {
|
|
589
|
-
tmp_0 = new TypeList([AvroEmitter_getInstance().
|
|
589
|
+
tmp_0 = new TypeList([AvroEmitter_getInstance().s3j(item, module_0, hasEmitted)]);
|
|
590
590
|
}
|
|
591
591
|
var tmp$ret$0 = new Field_0(tmp, tmp_0);
|
|
592
592
|
destination.x(tmp$ret$0);
|
|
593
593
|
}
|
|
594
594
|
return new RecordType('record', tmp0_name, VOID, destination);
|
|
595
595
|
};
|
|
596
|
-
protoOf(AvroEmitter).
|
|
596
|
+
protoOf(AvroEmitter).n3j = function (module_0) {
|
|
597
597
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
598
598
|
var hasEmitted = ArrayList_init_$Create$_0();
|
|
599
599
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
600
|
-
var tmp0 = NonEmptyList__toList_impl_t5xcy2(module_0.
|
|
600
|
+
var tmp0 = NonEmptyList__toList_impl_t5xcy2(module_0.dq_1);
|
|
601
601
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
602
602
|
var destination = ArrayList_init_$Create$_0();
|
|
603
603
|
// Inline function 'kotlin.collections.forEach' call
|
|
@@ -606,13 +606,13 @@ protoOf(AvroEmitter).i3j = function (module_0) {
|
|
|
606
606
|
var element = _iterator__ex2g4s.v();
|
|
607
607
|
var tmp;
|
|
608
608
|
if (element instanceof Type) {
|
|
609
|
-
tmp = AvroEmitter_getInstance().
|
|
609
|
+
tmp = AvroEmitter_getInstance().r3j(element, module_0, hasEmitted);
|
|
610
610
|
} else {
|
|
611
611
|
if (element instanceof Enum) {
|
|
612
|
-
tmp = AvroEmitter_getInstance().
|
|
612
|
+
tmp = AvroEmitter_getInstance().o3j(element);
|
|
613
613
|
} else {
|
|
614
614
|
if (element instanceof Union) {
|
|
615
|
-
tmp = AvroEmitter_getInstance().
|
|
615
|
+
tmp = AvroEmitter_getInstance().p3j(element);
|
|
616
616
|
} else {
|
|
617
617
|
tmp = null;
|
|
618
618
|
}
|
|
@@ -643,30 +643,30 @@ function Companion_getInstance() {
|
|
|
643
643
|
function $serializer() {
|
|
644
644
|
$serializer_instance = this;
|
|
645
645
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.Field', this, 4);
|
|
646
|
-
tmp0_serialDesc.
|
|
647
|
-
tmp0_serialDesc.
|
|
648
|
-
tmp0_serialDesc.
|
|
649
|
-
tmp0_serialDesc.
|
|
650
|
-
this.
|
|
651
|
-
}
|
|
652
|
-
protoOf($serializer).
|
|
653
|
-
var tmp0_desc = this.
|
|
654
|
-
var tmp1_output = encoder.
|
|
655
|
-
tmp1_output.
|
|
656
|
-
tmp1_output.
|
|
657
|
-
if (tmp1_output.
|
|
658
|
-
tmp1_output.
|
|
646
|
+
tmp0_serialDesc.t2b('name', false);
|
|
647
|
+
tmp0_serialDesc.t2b('type', false);
|
|
648
|
+
tmp0_serialDesc.t2b('doc', true);
|
|
649
|
+
tmp0_serialDesc.t2b('default', true);
|
|
650
|
+
this.t3j_1 = tmp0_serialDesc;
|
|
651
|
+
}
|
|
652
|
+
protoOf($serializer).u3j = function (encoder, value) {
|
|
653
|
+
var tmp0_desc = this.t3j_1;
|
|
654
|
+
var tmp1_output = encoder.j24(tmp0_desc);
|
|
655
|
+
tmp1_output.y25(tmp0_desc, 0, value.g3j_1);
|
|
656
|
+
tmp1_output.a26(tmp0_desc, 1, TypeListSerializer_getInstance(), value.h3j_1);
|
|
657
|
+
if (tmp1_output.g26(tmp0_desc, 2) ? true : !(value.i3j_1 == null)) {
|
|
658
|
+
tmp1_output.c26(tmp0_desc, 2, StringSerializer_getInstance(), value.i3j_1);
|
|
659
659
|
}
|
|
660
|
-
if (tmp1_output.
|
|
661
|
-
tmp1_output.
|
|
660
|
+
if (tmp1_output.g26(tmp0_desc, 3) ? true : !(value.j3j_1 == null)) {
|
|
661
|
+
tmp1_output.c26(tmp0_desc, 3, StringSerializer_getInstance(), value.j3j_1);
|
|
662
662
|
}
|
|
663
|
-
tmp1_output.
|
|
663
|
+
tmp1_output.k24(tmp0_desc);
|
|
664
664
|
};
|
|
665
|
-
protoOf($serializer).
|
|
666
|
-
return this.
|
|
665
|
+
protoOf($serializer).k21 = function (encoder, value) {
|
|
666
|
+
return this.u3j(encoder, value instanceof Field_0 ? value : THROW_CCE());
|
|
667
667
|
};
|
|
668
|
-
protoOf($serializer).
|
|
669
|
-
var tmp0_desc = this.
|
|
668
|
+
protoOf($serializer).l21 = function (decoder) {
|
|
669
|
+
var tmp0_desc = this.t3j_1;
|
|
670
670
|
var tmp1_flag = true;
|
|
671
671
|
var tmp2_index = 0;
|
|
672
672
|
var tmp3_bitMask0 = 0;
|
|
@@ -674,50 +674,50 @@ protoOf($serializer).f21 = function (decoder) {
|
|
|
674
674
|
var tmp5_local1 = null;
|
|
675
675
|
var tmp6_local2 = null;
|
|
676
676
|
var tmp7_local3 = null;
|
|
677
|
-
var tmp8_input = decoder.
|
|
678
|
-
if (tmp8_input.
|
|
679
|
-
tmp4_local0 = tmp8_input.
|
|
677
|
+
var tmp8_input = decoder.j24(tmp0_desc);
|
|
678
|
+
if (tmp8_input.z24()) {
|
|
679
|
+
tmp4_local0 = tmp8_input.t24(tmp0_desc, 0);
|
|
680
680
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
681
|
-
tmp5_local1 = tmp8_input.
|
|
681
|
+
tmp5_local1 = tmp8_input.v24(tmp0_desc, 1, TypeListSerializer_getInstance(), tmp5_local1);
|
|
682
682
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
683
|
-
tmp6_local2 = tmp8_input.
|
|
683
|
+
tmp6_local2 = tmp8_input.x24(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
684
684
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
685
|
-
tmp7_local3 = tmp8_input.
|
|
685
|
+
tmp7_local3 = tmp8_input.x24(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
|
|
686
686
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
687
687
|
} else
|
|
688
688
|
while (tmp1_flag) {
|
|
689
|
-
tmp2_index = tmp8_input.
|
|
689
|
+
tmp2_index = tmp8_input.a25(tmp0_desc);
|
|
690
690
|
switch (tmp2_index) {
|
|
691
691
|
case -1:
|
|
692
692
|
tmp1_flag = false;
|
|
693
693
|
break;
|
|
694
694
|
case 0:
|
|
695
|
-
tmp4_local0 = tmp8_input.
|
|
695
|
+
tmp4_local0 = tmp8_input.t24(tmp0_desc, 0);
|
|
696
696
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
697
697
|
break;
|
|
698
698
|
case 1:
|
|
699
|
-
tmp5_local1 = tmp8_input.
|
|
699
|
+
tmp5_local1 = tmp8_input.v24(tmp0_desc, 1, TypeListSerializer_getInstance(), tmp5_local1);
|
|
700
700
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
701
701
|
break;
|
|
702
702
|
case 2:
|
|
703
|
-
tmp6_local2 = tmp8_input.
|
|
703
|
+
tmp6_local2 = tmp8_input.x24(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
704
704
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
705
705
|
break;
|
|
706
706
|
case 3:
|
|
707
|
-
tmp7_local3 = tmp8_input.
|
|
707
|
+
tmp7_local3 = tmp8_input.x24(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
|
|
708
708
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
709
709
|
break;
|
|
710
710
|
default:
|
|
711
711
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
712
712
|
}
|
|
713
713
|
}
|
|
714
|
-
tmp8_input.
|
|
714
|
+
tmp8_input.k24(tmp0_desc);
|
|
715
715
|
return Field_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
716
716
|
};
|
|
717
|
-
protoOf($serializer).
|
|
718
|
-
return this.
|
|
717
|
+
protoOf($serializer).j21 = function () {
|
|
718
|
+
return this.t3j_1;
|
|
719
719
|
};
|
|
720
|
-
protoOf($serializer).
|
|
720
|
+
protoOf($serializer).m2c = function () {
|
|
721
721
|
// Inline function 'kotlin.arrayOf' call
|
|
722
722
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
723
723
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -731,18 +731,18 @@ function $serializer_getInstance() {
|
|
|
731
731
|
}
|
|
732
732
|
function Field_init_$Init$(seen0, name, type, doc, default_0, serializationConstructorMarker, $this) {
|
|
733
733
|
if (!(3 === (3 & seen0))) {
|
|
734
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance().
|
|
734
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance().t3j_1);
|
|
735
735
|
}
|
|
736
|
-
$this.
|
|
737
|
-
$this.
|
|
736
|
+
$this.g3j_1 = name;
|
|
737
|
+
$this.h3j_1 = type;
|
|
738
738
|
if (0 === (seen0 & 4))
|
|
739
|
-
$this.
|
|
739
|
+
$this.i3j_1 = null;
|
|
740
740
|
else
|
|
741
|
-
$this.
|
|
741
|
+
$this.i3j_1 = doc;
|
|
742
742
|
if (0 === (seen0 & 8))
|
|
743
|
-
$this.
|
|
743
|
+
$this.j3j_1 = null;
|
|
744
744
|
else
|
|
745
|
-
$this.
|
|
745
|
+
$this.j3j_1 = default_0;
|
|
746
746
|
return $this;
|
|
747
747
|
}
|
|
748
748
|
function Field_init_$Create$(seen0, name, type, doc, default_0, serializationConstructorMarker) {
|
|
@@ -765,11 +765,11 @@ function Companion_getInstance_0() {
|
|
|
765
765
|
}
|
|
766
766
|
function Companion_1() {
|
|
767
767
|
}
|
|
768
|
-
protoOf(Companion_1).
|
|
768
|
+
protoOf(Companion_1).v2n = function () {
|
|
769
769
|
return TypeSerializer_getInstance();
|
|
770
770
|
};
|
|
771
|
-
protoOf(Companion_1).
|
|
772
|
-
return this.
|
|
771
|
+
protoOf(Companion_1).x2c = function (typeParamsSerializers) {
|
|
772
|
+
return this.v2n();
|
|
773
773
|
};
|
|
774
774
|
var Companion_instance_1;
|
|
775
775
|
function Companion_getInstance_1() {
|
|
@@ -784,50 +784,50 @@ function Companion_getInstance_2() {
|
|
|
784
784
|
function $serializer_0() {
|
|
785
785
|
$serializer_instance_0 = this;
|
|
786
786
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.SimpleType', this, 1);
|
|
787
|
-
tmp0_serialDesc.
|
|
788
|
-
this.
|
|
787
|
+
tmp0_serialDesc.t2b('value', false);
|
|
788
|
+
this.v3j_1 = tmp0_serialDesc;
|
|
789
789
|
}
|
|
790
|
-
protoOf($serializer_0).
|
|
791
|
-
var tmp0_desc = this.
|
|
792
|
-
var tmp1_output = encoder.
|
|
793
|
-
tmp1_output.
|
|
794
|
-
tmp1_output.
|
|
790
|
+
protoOf($serializer_0).w3j = function (encoder, value) {
|
|
791
|
+
var tmp0_desc = this.v3j_1;
|
|
792
|
+
var tmp1_output = encoder.j24(tmp0_desc);
|
|
793
|
+
tmp1_output.y25(tmp0_desc, 0, value.m3i_1);
|
|
794
|
+
tmp1_output.k24(tmp0_desc);
|
|
795
795
|
};
|
|
796
|
-
protoOf($serializer_0).
|
|
797
|
-
return this.
|
|
796
|
+
protoOf($serializer_0).k21 = function (encoder, value) {
|
|
797
|
+
return this.w3j(encoder, value instanceof SimpleType ? value : THROW_CCE());
|
|
798
798
|
};
|
|
799
|
-
protoOf($serializer_0).
|
|
800
|
-
var tmp0_desc = this.
|
|
799
|
+
protoOf($serializer_0).l21 = function (decoder) {
|
|
800
|
+
var tmp0_desc = this.v3j_1;
|
|
801
801
|
var tmp1_flag = true;
|
|
802
802
|
var tmp2_index = 0;
|
|
803
803
|
var tmp3_bitMask0 = 0;
|
|
804
804
|
var tmp4_local0 = null;
|
|
805
|
-
var tmp5_input = decoder.
|
|
806
|
-
if (tmp5_input.
|
|
807
|
-
tmp4_local0 = tmp5_input.
|
|
805
|
+
var tmp5_input = decoder.j24(tmp0_desc);
|
|
806
|
+
if (tmp5_input.z24()) {
|
|
807
|
+
tmp4_local0 = tmp5_input.t24(tmp0_desc, 0);
|
|
808
808
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
809
809
|
} else
|
|
810
810
|
while (tmp1_flag) {
|
|
811
|
-
tmp2_index = tmp5_input.
|
|
811
|
+
tmp2_index = tmp5_input.a25(tmp0_desc);
|
|
812
812
|
switch (tmp2_index) {
|
|
813
813
|
case -1:
|
|
814
814
|
tmp1_flag = false;
|
|
815
815
|
break;
|
|
816
816
|
case 0:
|
|
817
|
-
tmp4_local0 = tmp5_input.
|
|
817
|
+
tmp4_local0 = tmp5_input.t24(tmp0_desc, 0);
|
|
818
818
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
819
819
|
break;
|
|
820
820
|
default:
|
|
821
821
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
822
822
|
}
|
|
823
823
|
}
|
|
824
|
-
tmp5_input.
|
|
824
|
+
tmp5_input.k24(tmp0_desc);
|
|
825
825
|
return SimpleType_init_$Create$(tmp3_bitMask0, tmp4_local0, null);
|
|
826
826
|
};
|
|
827
|
-
protoOf($serializer_0).
|
|
828
|
-
return this.
|
|
827
|
+
protoOf($serializer_0).j21 = function () {
|
|
828
|
+
return this.v3j_1;
|
|
829
829
|
};
|
|
830
|
-
protoOf($serializer_0).
|
|
830
|
+
protoOf($serializer_0).m2c = function () {
|
|
831
831
|
// Inline function 'kotlin.arrayOf' call
|
|
832
832
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
833
833
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -841,9 +841,9 @@ function $serializer_getInstance_0() {
|
|
|
841
841
|
}
|
|
842
842
|
function SimpleType_init_$Init$(seen0, value, serializationConstructorMarker, $this) {
|
|
843
843
|
if (!(1 === (1 & seen0))) {
|
|
844
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_0().
|
|
844
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_0().v3j_1);
|
|
845
845
|
}
|
|
846
|
-
$this.
|
|
846
|
+
$this.m3i_1 = value;
|
|
847
847
|
return $this;
|
|
848
848
|
}
|
|
849
849
|
function SimpleType_init_$Create$(seen0, value, serializationConstructorMarker) {
|
|
@@ -859,9 +859,9 @@ function Companion_3() {
|
|
|
859
859
|
// Inline function 'kotlin.arrayOf' call
|
|
860
860
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
861
861
|
// Inline function 'kotlin.js.asDynamic' call
|
|
862
|
-
tmp.
|
|
862
|
+
tmp.x3j_1 = [null, null, null, lazy(tmp_0, AvroModel$RecordType$Companion$$childSerializers$_anonymous__y3fmeq), null];
|
|
863
863
|
}
|
|
864
|
-
protoOf(Companion_3).
|
|
864
|
+
protoOf(Companion_3).v2n = function () {
|
|
865
865
|
return $serializer_getInstance_1();
|
|
866
866
|
};
|
|
867
867
|
var Companion_instance_3;
|
|
@@ -873,33 +873,33 @@ function Companion_getInstance_3() {
|
|
|
873
873
|
function $serializer_1() {
|
|
874
874
|
$serializer_instance_1 = this;
|
|
875
875
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.RecordType', this, 5);
|
|
876
|
-
tmp0_serialDesc.
|
|
877
|
-
tmp0_serialDesc.
|
|
878
|
-
tmp0_serialDesc.
|
|
879
|
-
tmp0_serialDesc.
|
|
880
|
-
tmp0_serialDesc.
|
|
881
|
-
this.
|
|
882
|
-
}
|
|
883
|
-
protoOf($serializer_1).
|
|
884
|
-
var tmp0_desc = this.
|
|
885
|
-
var tmp1_output = encoder.
|
|
886
|
-
var tmp2_cached = Companion_getInstance_3().
|
|
887
|
-
tmp1_output.
|
|
888
|
-
tmp1_output.
|
|
889
|
-
if (tmp1_output.
|
|
890
|
-
tmp1_output.
|
|
876
|
+
tmp0_serialDesc.t2b('type', false);
|
|
877
|
+
tmp0_serialDesc.t2b('name', false);
|
|
878
|
+
tmp0_serialDesc.t2b('namespace', true);
|
|
879
|
+
tmp0_serialDesc.t2b('fields', false);
|
|
880
|
+
tmp0_serialDesc.t2b('doc', true);
|
|
881
|
+
this.y3j_1 = tmp0_serialDesc;
|
|
882
|
+
}
|
|
883
|
+
protoOf($serializer_1).z3j = function (encoder, value) {
|
|
884
|
+
var tmp0_desc = this.y3j_1;
|
|
885
|
+
var tmp1_output = encoder.j24(tmp0_desc);
|
|
886
|
+
var tmp2_cached = Companion_getInstance_3().x3j_1;
|
|
887
|
+
tmp1_output.y25(tmp0_desc, 0, value.z3i_1);
|
|
888
|
+
tmp1_output.y25(tmp0_desc, 1, value.a3j_1);
|
|
889
|
+
if (tmp1_output.g26(tmp0_desc, 2) ? true : !(value.b3j_1 == null)) {
|
|
890
|
+
tmp1_output.c26(tmp0_desc, 2, StringSerializer_getInstance(), value.b3j_1);
|
|
891
891
|
}
|
|
892
|
-
tmp1_output.
|
|
893
|
-
if (tmp1_output.
|
|
894
|
-
tmp1_output.
|
|
892
|
+
tmp1_output.a26(tmp0_desc, 3, tmp2_cached[3].l1(), value.c3j_1);
|
|
893
|
+
if (tmp1_output.g26(tmp0_desc, 4) ? true : !(value.d3j_1 == null)) {
|
|
894
|
+
tmp1_output.c26(tmp0_desc, 4, StringSerializer_getInstance(), value.d3j_1);
|
|
895
895
|
}
|
|
896
|
-
tmp1_output.
|
|
896
|
+
tmp1_output.k24(tmp0_desc);
|
|
897
897
|
};
|
|
898
|
-
protoOf($serializer_1).
|
|
899
|
-
return this.
|
|
898
|
+
protoOf($serializer_1).k21 = function (encoder, value) {
|
|
899
|
+
return this.z3j(encoder, value instanceof RecordType ? value : THROW_CCE());
|
|
900
900
|
};
|
|
901
|
-
protoOf($serializer_1).
|
|
902
|
-
var tmp0_desc = this.
|
|
901
|
+
protoOf($serializer_1).l21 = function (decoder) {
|
|
902
|
+
var tmp0_desc = this.y3j_1;
|
|
903
903
|
var tmp1_flag = true;
|
|
904
904
|
var tmp2_index = 0;
|
|
905
905
|
var tmp3_bitMask0 = 0;
|
|
@@ -908,62 +908,62 @@ protoOf($serializer_1).f21 = function (decoder) {
|
|
|
908
908
|
var tmp6_local2 = null;
|
|
909
909
|
var tmp7_local3 = null;
|
|
910
910
|
var tmp8_local4 = null;
|
|
911
|
-
var tmp9_input = decoder.
|
|
912
|
-
var tmp10_cached = Companion_getInstance_3().
|
|
913
|
-
if (tmp9_input.
|
|
914
|
-
tmp4_local0 = tmp9_input.
|
|
911
|
+
var tmp9_input = decoder.j24(tmp0_desc);
|
|
912
|
+
var tmp10_cached = Companion_getInstance_3().x3j_1;
|
|
913
|
+
if (tmp9_input.z24()) {
|
|
914
|
+
tmp4_local0 = tmp9_input.t24(tmp0_desc, 0);
|
|
915
915
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
916
|
-
tmp5_local1 = tmp9_input.
|
|
916
|
+
tmp5_local1 = tmp9_input.t24(tmp0_desc, 1);
|
|
917
917
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
918
|
-
tmp6_local2 = tmp9_input.
|
|
918
|
+
tmp6_local2 = tmp9_input.x24(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
919
919
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
920
|
-
tmp7_local3 = tmp9_input.
|
|
920
|
+
tmp7_local3 = tmp9_input.v24(tmp0_desc, 3, tmp10_cached[3].l1(), tmp7_local3);
|
|
921
921
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
922
|
-
tmp8_local4 = tmp9_input.
|
|
922
|
+
tmp8_local4 = tmp9_input.x24(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
|
|
923
923
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
924
924
|
} else
|
|
925
925
|
while (tmp1_flag) {
|
|
926
|
-
tmp2_index = tmp9_input.
|
|
926
|
+
tmp2_index = tmp9_input.a25(tmp0_desc);
|
|
927
927
|
switch (tmp2_index) {
|
|
928
928
|
case -1:
|
|
929
929
|
tmp1_flag = false;
|
|
930
930
|
break;
|
|
931
931
|
case 0:
|
|
932
|
-
tmp4_local0 = tmp9_input.
|
|
932
|
+
tmp4_local0 = tmp9_input.t24(tmp0_desc, 0);
|
|
933
933
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
934
934
|
break;
|
|
935
935
|
case 1:
|
|
936
|
-
tmp5_local1 = tmp9_input.
|
|
936
|
+
tmp5_local1 = tmp9_input.t24(tmp0_desc, 1);
|
|
937
937
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
938
938
|
break;
|
|
939
939
|
case 2:
|
|
940
|
-
tmp6_local2 = tmp9_input.
|
|
940
|
+
tmp6_local2 = tmp9_input.x24(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
941
941
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
942
942
|
break;
|
|
943
943
|
case 3:
|
|
944
|
-
tmp7_local3 = tmp9_input.
|
|
944
|
+
tmp7_local3 = tmp9_input.v24(tmp0_desc, 3, tmp10_cached[3].l1(), tmp7_local3);
|
|
945
945
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
946
946
|
break;
|
|
947
947
|
case 4:
|
|
948
|
-
tmp8_local4 = tmp9_input.
|
|
948
|
+
tmp8_local4 = tmp9_input.x24(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
|
|
949
949
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
950
950
|
break;
|
|
951
951
|
default:
|
|
952
952
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
953
953
|
}
|
|
954
954
|
}
|
|
955
|
-
tmp9_input.
|
|
955
|
+
tmp9_input.k24(tmp0_desc);
|
|
956
956
|
return RecordType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null);
|
|
957
957
|
};
|
|
958
|
-
protoOf($serializer_1).
|
|
959
|
-
return this.
|
|
958
|
+
protoOf($serializer_1).j21 = function () {
|
|
959
|
+
return this.y3j_1;
|
|
960
960
|
};
|
|
961
|
-
protoOf($serializer_1).
|
|
962
|
-
var tmp0_cached = Companion_getInstance_3().
|
|
961
|
+
protoOf($serializer_1).m2c = function () {
|
|
962
|
+
var tmp0_cached = Companion_getInstance_3().x3j_1;
|
|
963
963
|
// Inline function 'kotlin.arrayOf' call
|
|
964
964
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
965
965
|
// Inline function 'kotlin.js.asDynamic' call
|
|
966
|
-
return [StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), tmp0_cached[3].
|
|
966
|
+
return [StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), tmp0_cached[3].l1(), get_nullable(StringSerializer_getInstance())];
|
|
967
967
|
};
|
|
968
968
|
var $serializer_instance_1;
|
|
969
969
|
function $serializer_getInstance_1() {
|
|
@@ -973,19 +973,19 @@ function $serializer_getInstance_1() {
|
|
|
973
973
|
}
|
|
974
974
|
function RecordType_init_$Init$(seen0, type, name, namespace, fields, doc, serializationConstructorMarker, $this) {
|
|
975
975
|
if (!(11 === (11 & seen0))) {
|
|
976
|
-
throwMissingFieldException(seen0, 11, $serializer_getInstance_1().
|
|
976
|
+
throwMissingFieldException(seen0, 11, $serializer_getInstance_1().y3j_1);
|
|
977
977
|
}
|
|
978
|
-
$this.
|
|
979
|
-
$this.
|
|
978
|
+
$this.z3i_1 = type;
|
|
979
|
+
$this.a3j_1 = name;
|
|
980
980
|
if (0 === (seen0 & 4))
|
|
981
|
-
$this.
|
|
981
|
+
$this.b3j_1 = null;
|
|
982
982
|
else
|
|
983
|
-
$this.
|
|
984
|
-
$this.
|
|
983
|
+
$this.b3j_1 = namespace;
|
|
984
|
+
$this.c3j_1 = fields;
|
|
985
985
|
if (0 === (seen0 & 16))
|
|
986
|
-
$this.
|
|
986
|
+
$this.d3j_1 = null;
|
|
987
987
|
else
|
|
988
|
-
$this.
|
|
988
|
+
$this.d3j_1 = doc;
|
|
989
989
|
return $this;
|
|
990
990
|
}
|
|
991
991
|
function RecordType_init_$Create$(seen0, type, name, namespace, fields, doc, serializationConstructorMarker) {
|
|
@@ -993,7 +993,7 @@ function RecordType_init_$Create$(seen0, type, name, namespace, fields, doc, ser
|
|
|
993
993
|
}
|
|
994
994
|
function Companion_4() {
|
|
995
995
|
}
|
|
996
|
-
protoOf(Companion_4).
|
|
996
|
+
protoOf(Companion_4).v2n = function () {
|
|
997
997
|
return $serializer_getInstance_2();
|
|
998
998
|
};
|
|
999
999
|
var Companion_instance_4;
|
|
@@ -1003,59 +1003,59 @@ function Companion_getInstance_4() {
|
|
|
1003
1003
|
function $serializer_2() {
|
|
1004
1004
|
$serializer_instance_2 = this;
|
|
1005
1005
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.ArrayType', this, 2);
|
|
1006
|
-
tmp0_serialDesc.
|
|
1007
|
-
tmp0_serialDesc.
|
|
1008
|
-
this.
|
|
1006
|
+
tmp0_serialDesc.t2b('type', false);
|
|
1007
|
+
tmp0_serialDesc.t2b('items', false);
|
|
1008
|
+
this.a3k_1 = tmp0_serialDesc;
|
|
1009
1009
|
}
|
|
1010
|
-
protoOf($serializer_2).
|
|
1011
|
-
var tmp0_desc = this.
|
|
1012
|
-
var tmp1_output = encoder.
|
|
1013
|
-
tmp1_output.
|
|
1014
|
-
tmp1_output.
|
|
1015
|
-
tmp1_output.
|
|
1010
|
+
protoOf($serializer_2).b3k = function (encoder, value) {
|
|
1011
|
+
var tmp0_desc = this.a3k_1;
|
|
1012
|
+
var tmp1_output = encoder.j24(tmp0_desc);
|
|
1013
|
+
tmp1_output.y25(tmp0_desc, 0, value.e3j_1);
|
|
1014
|
+
tmp1_output.a26(tmp0_desc, 1, TypeSerializer_getInstance(), value.f3j_1);
|
|
1015
|
+
tmp1_output.k24(tmp0_desc);
|
|
1016
1016
|
};
|
|
1017
|
-
protoOf($serializer_2).
|
|
1018
|
-
return this.
|
|
1017
|
+
protoOf($serializer_2).k21 = function (encoder, value) {
|
|
1018
|
+
return this.b3k(encoder, value instanceof ArrayType ? value : THROW_CCE());
|
|
1019
1019
|
};
|
|
1020
|
-
protoOf($serializer_2).
|
|
1021
|
-
var tmp0_desc = this.
|
|
1020
|
+
protoOf($serializer_2).l21 = function (decoder) {
|
|
1021
|
+
var tmp0_desc = this.a3k_1;
|
|
1022
1022
|
var tmp1_flag = true;
|
|
1023
1023
|
var tmp2_index = 0;
|
|
1024
1024
|
var tmp3_bitMask0 = 0;
|
|
1025
1025
|
var tmp4_local0 = null;
|
|
1026
1026
|
var tmp5_local1 = null;
|
|
1027
|
-
var tmp6_input = decoder.
|
|
1028
|
-
if (tmp6_input.
|
|
1029
|
-
tmp4_local0 = tmp6_input.
|
|
1027
|
+
var tmp6_input = decoder.j24(tmp0_desc);
|
|
1028
|
+
if (tmp6_input.z24()) {
|
|
1029
|
+
tmp4_local0 = tmp6_input.t24(tmp0_desc, 0);
|
|
1030
1030
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1031
|
-
tmp5_local1 = tmp6_input.
|
|
1031
|
+
tmp5_local1 = tmp6_input.v24(tmp0_desc, 1, TypeSerializer_getInstance(), tmp5_local1);
|
|
1032
1032
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1033
1033
|
} else
|
|
1034
1034
|
while (tmp1_flag) {
|
|
1035
|
-
tmp2_index = tmp6_input.
|
|
1035
|
+
tmp2_index = tmp6_input.a25(tmp0_desc);
|
|
1036
1036
|
switch (tmp2_index) {
|
|
1037
1037
|
case -1:
|
|
1038
1038
|
tmp1_flag = false;
|
|
1039
1039
|
break;
|
|
1040
1040
|
case 0:
|
|
1041
|
-
tmp4_local0 = tmp6_input.
|
|
1041
|
+
tmp4_local0 = tmp6_input.t24(tmp0_desc, 0);
|
|
1042
1042
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1043
1043
|
break;
|
|
1044
1044
|
case 1:
|
|
1045
|
-
tmp5_local1 = tmp6_input.
|
|
1045
|
+
tmp5_local1 = tmp6_input.v24(tmp0_desc, 1, TypeSerializer_getInstance(), tmp5_local1);
|
|
1046
1046
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1047
1047
|
break;
|
|
1048
1048
|
default:
|
|
1049
1049
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1050
1050
|
}
|
|
1051
1051
|
}
|
|
1052
|
-
tmp6_input.
|
|
1052
|
+
tmp6_input.k24(tmp0_desc);
|
|
1053
1053
|
return ArrayType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1054
1054
|
};
|
|
1055
|
-
protoOf($serializer_2).
|
|
1056
|
-
return this.
|
|
1055
|
+
protoOf($serializer_2).j21 = function () {
|
|
1056
|
+
return this.a3k_1;
|
|
1057
1057
|
};
|
|
1058
|
-
protoOf($serializer_2).
|
|
1058
|
+
protoOf($serializer_2).m2c = function () {
|
|
1059
1059
|
// Inline function 'kotlin.arrayOf' call
|
|
1060
1060
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1061
1061
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1069,10 +1069,10 @@ function $serializer_getInstance_2() {
|
|
|
1069
1069
|
}
|
|
1070
1070
|
function ArrayType_init_$Init$(seen0, type, items, serializationConstructorMarker, $this) {
|
|
1071
1071
|
if (!(3 === (3 & seen0))) {
|
|
1072
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().
|
|
1072
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().a3k_1);
|
|
1073
1073
|
}
|
|
1074
|
-
$this.
|
|
1075
|
-
$this.
|
|
1074
|
+
$this.e3j_1 = type;
|
|
1075
|
+
$this.f3j_1 = items;
|
|
1076
1076
|
return $this;
|
|
1077
1077
|
}
|
|
1078
1078
|
function ArrayType_init_$Create$(seen0, type, items, serializationConstructorMarker) {
|
|
@@ -1080,7 +1080,7 @@ function ArrayType_init_$Create$(seen0, type, items, serializationConstructorMar
|
|
|
1080
1080
|
}
|
|
1081
1081
|
function Companion_5() {
|
|
1082
1082
|
}
|
|
1083
|
-
protoOf(Companion_5).
|
|
1083
|
+
protoOf(Companion_5).v2n = function () {
|
|
1084
1084
|
return $serializer_getInstance_3();
|
|
1085
1085
|
};
|
|
1086
1086
|
var Companion_instance_5;
|
|
@@ -1090,59 +1090,59 @@ function Companion_getInstance_5() {
|
|
|
1090
1090
|
function $serializer_3() {
|
|
1091
1091
|
$serializer_instance_3 = this;
|
|
1092
1092
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.MapType', this, 2);
|
|
1093
|
-
tmp0_serialDesc.
|
|
1094
|
-
tmp0_serialDesc.
|
|
1095
|
-
this.
|
|
1096
|
-
}
|
|
1097
|
-
protoOf($serializer_3).
|
|
1098
|
-
var tmp0_desc = this.
|
|
1099
|
-
var tmp1_output = encoder.
|
|
1100
|
-
tmp1_output.
|
|
1101
|
-
tmp1_output.
|
|
1102
|
-
tmp1_output.
|
|
1103
|
-
};
|
|
1104
|
-
protoOf($serializer_3).
|
|
1105
|
-
return this.
|
|
1106
|
-
};
|
|
1107
|
-
protoOf($serializer_3).
|
|
1108
|
-
var tmp0_desc = this.
|
|
1093
|
+
tmp0_serialDesc.t2b('type', false);
|
|
1094
|
+
tmp0_serialDesc.t2b('values', false);
|
|
1095
|
+
this.c3k_1 = tmp0_serialDesc;
|
|
1096
|
+
}
|
|
1097
|
+
protoOf($serializer_3).d3k = function (encoder, value) {
|
|
1098
|
+
var tmp0_desc = this.c3k_1;
|
|
1099
|
+
var tmp1_output = encoder.j24(tmp0_desc);
|
|
1100
|
+
tmp1_output.y25(tmp0_desc, 0, value.p3i_1);
|
|
1101
|
+
tmp1_output.a26(tmp0_desc, 1, TypeSerializer_getInstance(), value.q3i_1);
|
|
1102
|
+
tmp1_output.k24(tmp0_desc);
|
|
1103
|
+
};
|
|
1104
|
+
protoOf($serializer_3).k21 = function (encoder, value) {
|
|
1105
|
+
return this.d3k(encoder, value instanceof MapType ? value : THROW_CCE());
|
|
1106
|
+
};
|
|
1107
|
+
protoOf($serializer_3).l21 = function (decoder) {
|
|
1108
|
+
var tmp0_desc = this.c3k_1;
|
|
1109
1109
|
var tmp1_flag = true;
|
|
1110
1110
|
var tmp2_index = 0;
|
|
1111
1111
|
var tmp3_bitMask0 = 0;
|
|
1112
1112
|
var tmp4_local0 = null;
|
|
1113
1113
|
var tmp5_local1 = null;
|
|
1114
|
-
var tmp6_input = decoder.
|
|
1115
|
-
if (tmp6_input.
|
|
1116
|
-
tmp4_local0 = tmp6_input.
|
|
1114
|
+
var tmp6_input = decoder.j24(tmp0_desc);
|
|
1115
|
+
if (tmp6_input.z24()) {
|
|
1116
|
+
tmp4_local0 = tmp6_input.t24(tmp0_desc, 0);
|
|
1117
1117
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1118
|
-
tmp5_local1 = tmp6_input.
|
|
1118
|
+
tmp5_local1 = tmp6_input.v24(tmp0_desc, 1, TypeSerializer_getInstance(), tmp5_local1);
|
|
1119
1119
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1120
1120
|
} else
|
|
1121
1121
|
while (tmp1_flag) {
|
|
1122
|
-
tmp2_index = tmp6_input.
|
|
1122
|
+
tmp2_index = tmp6_input.a25(tmp0_desc);
|
|
1123
1123
|
switch (tmp2_index) {
|
|
1124
1124
|
case -1:
|
|
1125
1125
|
tmp1_flag = false;
|
|
1126
1126
|
break;
|
|
1127
1127
|
case 0:
|
|
1128
|
-
tmp4_local0 = tmp6_input.
|
|
1128
|
+
tmp4_local0 = tmp6_input.t24(tmp0_desc, 0);
|
|
1129
1129
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1130
1130
|
break;
|
|
1131
1131
|
case 1:
|
|
1132
|
-
tmp5_local1 = tmp6_input.
|
|
1132
|
+
tmp5_local1 = tmp6_input.v24(tmp0_desc, 1, TypeSerializer_getInstance(), tmp5_local1);
|
|
1133
1133
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1134
1134
|
break;
|
|
1135
1135
|
default:
|
|
1136
1136
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1137
1137
|
}
|
|
1138
1138
|
}
|
|
1139
|
-
tmp6_input.
|
|
1139
|
+
tmp6_input.k24(tmp0_desc);
|
|
1140
1140
|
return MapType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1141
1141
|
};
|
|
1142
|
-
protoOf($serializer_3).
|
|
1143
|
-
return this.
|
|
1142
|
+
protoOf($serializer_3).j21 = function () {
|
|
1143
|
+
return this.c3k_1;
|
|
1144
1144
|
};
|
|
1145
|
-
protoOf($serializer_3).
|
|
1145
|
+
protoOf($serializer_3).m2c = function () {
|
|
1146
1146
|
// Inline function 'kotlin.arrayOf' call
|
|
1147
1147
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1148
1148
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1156,10 +1156,10 @@ function $serializer_getInstance_3() {
|
|
|
1156
1156
|
}
|
|
1157
1157
|
function MapType_init_$Init$(seen0, type, values, serializationConstructorMarker, $this) {
|
|
1158
1158
|
if (!(3 === (3 & seen0))) {
|
|
1159
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_3().
|
|
1159
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_3().c3k_1);
|
|
1160
1160
|
}
|
|
1161
|
-
$this.
|
|
1162
|
-
$this.
|
|
1161
|
+
$this.p3i_1 = type;
|
|
1162
|
+
$this.q3i_1 = values;
|
|
1163
1163
|
return $this;
|
|
1164
1164
|
}
|
|
1165
1165
|
function MapType_init_$Create$(seen0, type, values, serializationConstructorMarker) {
|
|
@@ -1175,9 +1175,9 @@ function Companion_6() {
|
|
|
1175
1175
|
// Inline function 'kotlin.arrayOf' call
|
|
1176
1176
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1177
1177
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1178
|
-
tmp.
|
|
1178
|
+
tmp.e3k_1 = [null, null, null, lazy(tmp_0, AvroModel$EnumType$Companion$$childSerializers$_anonymous__vqfr9a)];
|
|
1179
1179
|
}
|
|
1180
|
-
protoOf(Companion_6).
|
|
1180
|
+
protoOf(Companion_6).v2n = function () {
|
|
1181
1181
|
return $serializer_getInstance_4();
|
|
1182
1182
|
};
|
|
1183
1183
|
var Companion_instance_6;
|
|
@@ -1189,29 +1189,29 @@ function Companion_getInstance_6() {
|
|
|
1189
1189
|
function $serializer_4() {
|
|
1190
1190
|
$serializer_instance_4 = this;
|
|
1191
1191
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.EnumType', this, 4);
|
|
1192
|
-
tmp0_serialDesc.
|
|
1193
|
-
tmp0_serialDesc.
|
|
1194
|
-
tmp0_serialDesc.
|
|
1195
|
-
tmp0_serialDesc.
|
|
1196
|
-
this.
|
|
1197
|
-
}
|
|
1198
|
-
protoOf($serializer_4).
|
|
1199
|
-
var tmp0_desc = this.
|
|
1200
|
-
var tmp1_output = encoder.
|
|
1201
|
-
var tmp2_cached = Companion_getInstance_6().
|
|
1202
|
-
tmp1_output.
|
|
1203
|
-
tmp1_output.
|
|
1204
|
-
if (tmp1_output.
|
|
1205
|
-
tmp1_output.
|
|
1192
|
+
tmp0_serialDesc.t2b('type', false);
|
|
1193
|
+
tmp0_serialDesc.t2b('name', false);
|
|
1194
|
+
tmp0_serialDesc.t2b('doc', true);
|
|
1195
|
+
tmp0_serialDesc.t2b('symbols', false);
|
|
1196
|
+
this.f3k_1 = tmp0_serialDesc;
|
|
1197
|
+
}
|
|
1198
|
+
protoOf($serializer_4).g3k = function (encoder, value) {
|
|
1199
|
+
var tmp0_desc = this.f3k_1;
|
|
1200
|
+
var tmp1_output = encoder.j24(tmp0_desc);
|
|
1201
|
+
var tmp2_cached = Companion_getInstance_6().e3k_1;
|
|
1202
|
+
tmp1_output.y25(tmp0_desc, 0, value.v3i_1);
|
|
1203
|
+
tmp1_output.y25(tmp0_desc, 1, value.w3i_1);
|
|
1204
|
+
if (tmp1_output.g26(tmp0_desc, 2) ? true : !(value.x3i_1 == null)) {
|
|
1205
|
+
tmp1_output.c26(tmp0_desc, 2, StringSerializer_getInstance(), value.x3i_1);
|
|
1206
1206
|
}
|
|
1207
|
-
tmp1_output.
|
|
1208
|
-
tmp1_output.
|
|
1207
|
+
tmp1_output.a26(tmp0_desc, 3, tmp2_cached[3].l1(), value.y3i_1);
|
|
1208
|
+
tmp1_output.k24(tmp0_desc);
|
|
1209
1209
|
};
|
|
1210
|
-
protoOf($serializer_4).
|
|
1211
|
-
return this.
|
|
1210
|
+
protoOf($serializer_4).k21 = function (encoder, value) {
|
|
1211
|
+
return this.g3k(encoder, value instanceof EnumType ? value : THROW_CCE());
|
|
1212
1212
|
};
|
|
1213
|
-
protoOf($serializer_4).
|
|
1214
|
-
var tmp0_desc = this.
|
|
1213
|
+
protoOf($serializer_4).l21 = function (decoder) {
|
|
1214
|
+
var tmp0_desc = this.f3k_1;
|
|
1215
1215
|
var tmp1_flag = true;
|
|
1216
1216
|
var tmp2_index = 0;
|
|
1217
1217
|
var tmp3_bitMask0 = 0;
|
|
@@ -1219,56 +1219,56 @@ protoOf($serializer_4).f21 = function (decoder) {
|
|
|
1219
1219
|
var tmp5_local1 = null;
|
|
1220
1220
|
var tmp6_local2 = null;
|
|
1221
1221
|
var tmp7_local3 = null;
|
|
1222
|
-
var tmp8_input = decoder.
|
|
1223
|
-
var tmp9_cached = Companion_getInstance_6().
|
|
1224
|
-
if (tmp8_input.
|
|
1225
|
-
tmp4_local0 = tmp8_input.
|
|
1222
|
+
var tmp8_input = decoder.j24(tmp0_desc);
|
|
1223
|
+
var tmp9_cached = Companion_getInstance_6().e3k_1;
|
|
1224
|
+
if (tmp8_input.z24()) {
|
|
1225
|
+
tmp4_local0 = tmp8_input.t24(tmp0_desc, 0);
|
|
1226
1226
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1227
|
-
tmp5_local1 = tmp8_input.
|
|
1227
|
+
tmp5_local1 = tmp8_input.t24(tmp0_desc, 1);
|
|
1228
1228
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1229
|
-
tmp6_local2 = tmp8_input.
|
|
1229
|
+
tmp6_local2 = tmp8_input.x24(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1230
1230
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1231
|
-
tmp7_local3 = tmp8_input.
|
|
1231
|
+
tmp7_local3 = tmp8_input.v24(tmp0_desc, 3, tmp9_cached[3].l1(), tmp7_local3);
|
|
1232
1232
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1233
1233
|
} else
|
|
1234
1234
|
while (tmp1_flag) {
|
|
1235
|
-
tmp2_index = tmp8_input.
|
|
1235
|
+
tmp2_index = tmp8_input.a25(tmp0_desc);
|
|
1236
1236
|
switch (tmp2_index) {
|
|
1237
1237
|
case -1:
|
|
1238
1238
|
tmp1_flag = false;
|
|
1239
1239
|
break;
|
|
1240
1240
|
case 0:
|
|
1241
|
-
tmp4_local0 = tmp8_input.
|
|
1241
|
+
tmp4_local0 = tmp8_input.t24(tmp0_desc, 0);
|
|
1242
1242
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1243
1243
|
break;
|
|
1244
1244
|
case 1:
|
|
1245
|
-
tmp5_local1 = tmp8_input.
|
|
1245
|
+
tmp5_local1 = tmp8_input.t24(tmp0_desc, 1);
|
|
1246
1246
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1247
1247
|
break;
|
|
1248
1248
|
case 2:
|
|
1249
|
-
tmp6_local2 = tmp8_input.
|
|
1249
|
+
tmp6_local2 = tmp8_input.x24(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1250
1250
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1251
1251
|
break;
|
|
1252
1252
|
case 3:
|
|
1253
|
-
tmp7_local3 = tmp8_input.
|
|
1253
|
+
tmp7_local3 = tmp8_input.v24(tmp0_desc, 3, tmp9_cached[3].l1(), tmp7_local3);
|
|
1254
1254
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1255
1255
|
break;
|
|
1256
1256
|
default:
|
|
1257
1257
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1258
1258
|
}
|
|
1259
1259
|
}
|
|
1260
|
-
tmp8_input.
|
|
1260
|
+
tmp8_input.k24(tmp0_desc);
|
|
1261
1261
|
return EnumType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
1262
1262
|
};
|
|
1263
|
-
protoOf($serializer_4).
|
|
1264
|
-
return this.
|
|
1263
|
+
protoOf($serializer_4).j21 = function () {
|
|
1264
|
+
return this.f3k_1;
|
|
1265
1265
|
};
|
|
1266
|
-
protoOf($serializer_4).
|
|
1267
|
-
var tmp0_cached = Companion_getInstance_6().
|
|
1266
|
+
protoOf($serializer_4).m2c = function () {
|
|
1267
|
+
var tmp0_cached = Companion_getInstance_6().e3k_1;
|
|
1268
1268
|
// Inline function 'kotlin.arrayOf' call
|
|
1269
1269
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1270
1270
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1271
|
-
return [StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), tmp0_cached[3].
|
|
1271
|
+
return [StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), tmp0_cached[3].l1()];
|
|
1272
1272
|
};
|
|
1273
1273
|
var $serializer_instance_4;
|
|
1274
1274
|
function $serializer_getInstance_4() {
|
|
@@ -1278,15 +1278,15 @@ function $serializer_getInstance_4() {
|
|
|
1278
1278
|
}
|
|
1279
1279
|
function EnumType_init_$Init$(seen0, type, name, doc, symbols, serializationConstructorMarker, $this) {
|
|
1280
1280
|
if (!(11 === (11 & seen0))) {
|
|
1281
|
-
throwMissingFieldException(seen0, 11, $serializer_getInstance_4().
|
|
1281
|
+
throwMissingFieldException(seen0, 11, $serializer_getInstance_4().f3k_1);
|
|
1282
1282
|
}
|
|
1283
|
-
$this.
|
|
1284
|
-
$this.
|
|
1283
|
+
$this.v3i_1 = type;
|
|
1284
|
+
$this.w3i_1 = name;
|
|
1285
1285
|
if (0 === (seen0 & 4))
|
|
1286
|
-
$this.
|
|
1286
|
+
$this.x3i_1 = null;
|
|
1287
1287
|
else
|
|
1288
|
-
$this.
|
|
1289
|
-
$this.
|
|
1288
|
+
$this.x3i_1 = doc;
|
|
1289
|
+
$this.y3i_1 = symbols;
|
|
1290
1290
|
return $this;
|
|
1291
1291
|
}
|
|
1292
1292
|
function EnumType_init_$Create$(seen0, type, name, doc, symbols, serializationConstructorMarker) {
|
|
@@ -1294,7 +1294,7 @@ function EnumType_init_$Create$(seen0, type, name, doc, symbols, serializationCo
|
|
|
1294
1294
|
}
|
|
1295
1295
|
function Companion_7() {
|
|
1296
1296
|
}
|
|
1297
|
-
protoOf(Companion_7).
|
|
1297
|
+
protoOf(Companion_7).v2n = function () {
|
|
1298
1298
|
return $serializer_getInstance_5();
|
|
1299
1299
|
};
|
|
1300
1300
|
var Companion_instance_7;
|
|
@@ -1304,59 +1304,59 @@ function Companion_getInstance_7() {
|
|
|
1304
1304
|
function $serializer_5() {
|
|
1305
1305
|
$serializer_instance_5 = this;
|
|
1306
1306
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.UnionType', this, 2);
|
|
1307
|
-
tmp0_serialDesc.
|
|
1308
|
-
tmp0_serialDesc.
|
|
1309
|
-
this.
|
|
1310
|
-
}
|
|
1311
|
-
protoOf($serializer_5).
|
|
1312
|
-
var tmp0_desc = this.
|
|
1313
|
-
var tmp1_output = encoder.
|
|
1314
|
-
tmp1_output.
|
|
1315
|
-
tmp1_output.
|
|
1316
|
-
tmp1_output.
|
|
1317
|
-
};
|
|
1318
|
-
protoOf($serializer_5).
|
|
1319
|
-
return this.
|
|
1320
|
-
};
|
|
1321
|
-
protoOf($serializer_5).
|
|
1322
|
-
var tmp0_desc = this.
|
|
1307
|
+
tmp0_serialDesc.t2b('name', false);
|
|
1308
|
+
tmp0_serialDesc.t2b('type', false);
|
|
1309
|
+
this.h3k_1 = tmp0_serialDesc;
|
|
1310
|
+
}
|
|
1311
|
+
protoOf($serializer_5).i3k = function (encoder, value) {
|
|
1312
|
+
var tmp0_desc = this.h3k_1;
|
|
1313
|
+
var tmp1_output = encoder.j24(tmp0_desc);
|
|
1314
|
+
tmp1_output.y25(tmp0_desc, 0, value.n3i_1);
|
|
1315
|
+
tmp1_output.a26(tmp0_desc, 1, TypeListSerializer_getInstance(), value.o3i_1);
|
|
1316
|
+
tmp1_output.k24(tmp0_desc);
|
|
1317
|
+
};
|
|
1318
|
+
protoOf($serializer_5).k21 = function (encoder, value) {
|
|
1319
|
+
return this.i3k(encoder, value instanceof UnionType ? value : THROW_CCE());
|
|
1320
|
+
};
|
|
1321
|
+
protoOf($serializer_5).l21 = function (decoder) {
|
|
1322
|
+
var tmp0_desc = this.h3k_1;
|
|
1323
1323
|
var tmp1_flag = true;
|
|
1324
1324
|
var tmp2_index = 0;
|
|
1325
1325
|
var tmp3_bitMask0 = 0;
|
|
1326
1326
|
var tmp4_local0 = null;
|
|
1327
1327
|
var tmp5_local1 = null;
|
|
1328
|
-
var tmp6_input = decoder.
|
|
1329
|
-
if (tmp6_input.
|
|
1330
|
-
tmp4_local0 = tmp6_input.
|
|
1328
|
+
var tmp6_input = decoder.j24(tmp0_desc);
|
|
1329
|
+
if (tmp6_input.z24()) {
|
|
1330
|
+
tmp4_local0 = tmp6_input.t24(tmp0_desc, 0);
|
|
1331
1331
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1332
|
-
tmp5_local1 = tmp6_input.
|
|
1332
|
+
tmp5_local1 = tmp6_input.v24(tmp0_desc, 1, TypeListSerializer_getInstance(), tmp5_local1);
|
|
1333
1333
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1334
1334
|
} else
|
|
1335
1335
|
while (tmp1_flag) {
|
|
1336
|
-
tmp2_index = tmp6_input.
|
|
1336
|
+
tmp2_index = tmp6_input.a25(tmp0_desc);
|
|
1337
1337
|
switch (tmp2_index) {
|
|
1338
1338
|
case -1:
|
|
1339
1339
|
tmp1_flag = false;
|
|
1340
1340
|
break;
|
|
1341
1341
|
case 0:
|
|
1342
|
-
tmp4_local0 = tmp6_input.
|
|
1342
|
+
tmp4_local0 = tmp6_input.t24(tmp0_desc, 0);
|
|
1343
1343
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1344
1344
|
break;
|
|
1345
1345
|
case 1:
|
|
1346
|
-
tmp5_local1 = tmp6_input.
|
|
1346
|
+
tmp5_local1 = tmp6_input.v24(tmp0_desc, 1, TypeListSerializer_getInstance(), tmp5_local1);
|
|
1347
1347
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1348
1348
|
break;
|
|
1349
1349
|
default:
|
|
1350
1350
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1351
1351
|
}
|
|
1352
1352
|
}
|
|
1353
|
-
tmp6_input.
|
|
1353
|
+
tmp6_input.k24(tmp0_desc);
|
|
1354
1354
|
return UnionType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1355
1355
|
};
|
|
1356
|
-
protoOf($serializer_5).
|
|
1357
|
-
return this.
|
|
1356
|
+
protoOf($serializer_5).j21 = function () {
|
|
1357
|
+
return this.h3k_1;
|
|
1358
1358
|
};
|
|
1359
|
-
protoOf($serializer_5).
|
|
1359
|
+
protoOf($serializer_5).m2c = function () {
|
|
1360
1360
|
// Inline function 'kotlin.arrayOf' call
|
|
1361
1361
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1362
1362
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1370,10 +1370,10 @@ function $serializer_getInstance_5() {
|
|
|
1370
1370
|
}
|
|
1371
1371
|
function UnionType_init_$Init$(seen0, name, type, serializationConstructorMarker, $this) {
|
|
1372
1372
|
if (!(3 === (3 & seen0))) {
|
|
1373
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_5().
|
|
1373
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_5().h3k_1);
|
|
1374
1374
|
}
|
|
1375
|
-
$this.
|
|
1376
|
-
$this.
|
|
1375
|
+
$this.n3i_1 = name;
|
|
1376
|
+
$this.o3i_1 = type;
|
|
1377
1377
|
return $this;
|
|
1378
1378
|
}
|
|
1379
1379
|
function UnionType_init_$Create$(seen0, name, type, serializationConstructorMarker) {
|
|
@@ -1381,7 +1381,7 @@ function UnionType_init_$Create$(seen0, name, type, serializationConstructorMark
|
|
|
1381
1381
|
}
|
|
1382
1382
|
function Companion_8() {
|
|
1383
1383
|
}
|
|
1384
|
-
protoOf(Companion_8).
|
|
1384
|
+
protoOf(Companion_8).v2n = function () {
|
|
1385
1385
|
return $serializer_getInstance_6();
|
|
1386
1386
|
};
|
|
1387
1387
|
var Companion_instance_8;
|
|
@@ -1391,30 +1391,30 @@ function Companion_getInstance_8() {
|
|
|
1391
1391
|
function $serializer_6() {
|
|
1392
1392
|
$serializer_instance_6 = this;
|
|
1393
1393
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.LogicalType', this, 4);
|
|
1394
|
-
tmp0_serialDesc.
|
|
1395
|
-
tmp0_serialDesc.
|
|
1396
|
-
tmp0_serialDesc.
|
|
1397
|
-
tmp0_serialDesc.
|
|
1398
|
-
this.
|
|
1399
|
-
}
|
|
1400
|
-
protoOf($serializer_6).
|
|
1401
|
-
var tmp0_desc = this.
|
|
1402
|
-
var tmp1_output = encoder.
|
|
1403
|
-
tmp1_output.
|
|
1404
|
-
tmp1_output.
|
|
1405
|
-
if (tmp1_output.
|
|
1406
|
-
tmp1_output.
|
|
1394
|
+
tmp0_serialDesc.t2b('type', false);
|
|
1395
|
+
tmp0_serialDesc.t2b('logicalType', false);
|
|
1396
|
+
tmp0_serialDesc.t2b('precision', true);
|
|
1397
|
+
tmp0_serialDesc.t2b('scale', true);
|
|
1398
|
+
this.j3k_1 = tmp0_serialDesc;
|
|
1399
|
+
}
|
|
1400
|
+
protoOf($serializer_6).k3k = function (encoder, value) {
|
|
1401
|
+
var tmp0_desc = this.j3k_1;
|
|
1402
|
+
var tmp1_output = encoder.j24(tmp0_desc);
|
|
1403
|
+
tmp1_output.y25(tmp0_desc, 0, value.r3i_1);
|
|
1404
|
+
tmp1_output.y25(tmp0_desc, 1, value.s3i_1);
|
|
1405
|
+
if (tmp1_output.g26(tmp0_desc, 2) ? true : !(value.t3i_1 == null)) {
|
|
1406
|
+
tmp1_output.c26(tmp0_desc, 2, IntSerializer_getInstance(), value.t3i_1);
|
|
1407
1407
|
}
|
|
1408
|
-
if (tmp1_output.
|
|
1409
|
-
tmp1_output.
|
|
1408
|
+
if (tmp1_output.g26(tmp0_desc, 3) ? true : !(value.u3i_1 == null)) {
|
|
1409
|
+
tmp1_output.c26(tmp0_desc, 3, IntSerializer_getInstance(), value.u3i_1);
|
|
1410
1410
|
}
|
|
1411
|
-
tmp1_output.
|
|
1411
|
+
tmp1_output.k24(tmp0_desc);
|
|
1412
1412
|
};
|
|
1413
|
-
protoOf($serializer_6).
|
|
1414
|
-
return this.
|
|
1413
|
+
protoOf($serializer_6).k21 = function (encoder, value) {
|
|
1414
|
+
return this.k3k(encoder, value instanceof LogicalType ? value : THROW_CCE());
|
|
1415
1415
|
};
|
|
1416
|
-
protoOf($serializer_6).
|
|
1417
|
-
var tmp0_desc = this.
|
|
1416
|
+
protoOf($serializer_6).l21 = function (decoder) {
|
|
1417
|
+
var tmp0_desc = this.j3k_1;
|
|
1418
1418
|
var tmp1_flag = true;
|
|
1419
1419
|
var tmp2_index = 0;
|
|
1420
1420
|
var tmp3_bitMask0 = 0;
|
|
@@ -1422,50 +1422,50 @@ protoOf($serializer_6).f21 = function (decoder) {
|
|
|
1422
1422
|
var tmp5_local1 = null;
|
|
1423
1423
|
var tmp6_local2 = null;
|
|
1424
1424
|
var tmp7_local3 = null;
|
|
1425
|
-
var tmp8_input = decoder.
|
|
1426
|
-
if (tmp8_input.
|
|
1427
|
-
tmp4_local0 = tmp8_input.
|
|
1425
|
+
var tmp8_input = decoder.j24(tmp0_desc);
|
|
1426
|
+
if (tmp8_input.z24()) {
|
|
1427
|
+
tmp4_local0 = tmp8_input.t24(tmp0_desc, 0);
|
|
1428
1428
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1429
|
-
tmp5_local1 = tmp8_input.
|
|
1429
|
+
tmp5_local1 = tmp8_input.t24(tmp0_desc, 1);
|
|
1430
1430
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1431
|
-
tmp6_local2 = tmp8_input.
|
|
1431
|
+
tmp6_local2 = tmp8_input.x24(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
|
|
1432
1432
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1433
|
-
tmp7_local3 = tmp8_input.
|
|
1433
|
+
tmp7_local3 = tmp8_input.x24(tmp0_desc, 3, IntSerializer_getInstance(), tmp7_local3);
|
|
1434
1434
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1435
1435
|
} else
|
|
1436
1436
|
while (tmp1_flag) {
|
|
1437
|
-
tmp2_index = tmp8_input.
|
|
1437
|
+
tmp2_index = tmp8_input.a25(tmp0_desc);
|
|
1438
1438
|
switch (tmp2_index) {
|
|
1439
1439
|
case -1:
|
|
1440
1440
|
tmp1_flag = false;
|
|
1441
1441
|
break;
|
|
1442
1442
|
case 0:
|
|
1443
|
-
tmp4_local0 = tmp8_input.
|
|
1443
|
+
tmp4_local0 = tmp8_input.t24(tmp0_desc, 0);
|
|
1444
1444
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1445
1445
|
break;
|
|
1446
1446
|
case 1:
|
|
1447
|
-
tmp5_local1 = tmp8_input.
|
|
1447
|
+
tmp5_local1 = tmp8_input.t24(tmp0_desc, 1);
|
|
1448
1448
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1449
1449
|
break;
|
|
1450
1450
|
case 2:
|
|
1451
|
-
tmp6_local2 = tmp8_input.
|
|
1451
|
+
tmp6_local2 = tmp8_input.x24(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
|
|
1452
1452
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1453
1453
|
break;
|
|
1454
1454
|
case 3:
|
|
1455
|
-
tmp7_local3 = tmp8_input.
|
|
1455
|
+
tmp7_local3 = tmp8_input.x24(tmp0_desc, 3, IntSerializer_getInstance(), tmp7_local3);
|
|
1456
1456
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1457
1457
|
break;
|
|
1458
1458
|
default:
|
|
1459
1459
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1460
1460
|
}
|
|
1461
1461
|
}
|
|
1462
|
-
tmp8_input.
|
|
1462
|
+
tmp8_input.k24(tmp0_desc);
|
|
1463
1463
|
return LogicalType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
1464
1464
|
};
|
|
1465
|
-
protoOf($serializer_6).
|
|
1466
|
-
return this.
|
|
1465
|
+
protoOf($serializer_6).j21 = function () {
|
|
1466
|
+
return this.j3k_1;
|
|
1467
1467
|
};
|
|
1468
|
-
protoOf($serializer_6).
|
|
1468
|
+
protoOf($serializer_6).m2c = function () {
|
|
1469
1469
|
// Inline function 'kotlin.arrayOf' call
|
|
1470
1470
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1471
1471
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1479,18 +1479,18 @@ function $serializer_getInstance_6() {
|
|
|
1479
1479
|
}
|
|
1480
1480
|
function LogicalType_init_$Init$(seen0, type, logicalType, precision, scale, serializationConstructorMarker, $this) {
|
|
1481
1481
|
if (!(3 === (3 & seen0))) {
|
|
1482
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_6().
|
|
1482
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_6().j3k_1);
|
|
1483
1483
|
}
|
|
1484
|
-
$this.
|
|
1485
|
-
$this.
|
|
1484
|
+
$this.r3i_1 = type;
|
|
1485
|
+
$this.s3i_1 = logicalType;
|
|
1486
1486
|
if (0 === (seen0 & 4))
|
|
1487
|
-
$this.
|
|
1487
|
+
$this.t3i_1 = null;
|
|
1488
1488
|
else
|
|
1489
|
-
$this.
|
|
1489
|
+
$this.t3i_1 = precision;
|
|
1490
1490
|
if (0 === (seen0 & 8))
|
|
1491
|
-
$this.
|
|
1491
|
+
$this.u3i_1 = null;
|
|
1492
1492
|
else
|
|
1493
|
-
$this.
|
|
1493
|
+
$this.u3i_1 = scale;
|
|
1494
1494
|
return $this;
|
|
1495
1495
|
}
|
|
1496
1496
|
function LogicalType_init_$Create$(seen0, type, logicalType, precision, scale, serializationConstructorMarker) {
|
|
@@ -1499,19 +1499,19 @@ function LogicalType_init_$Create$(seen0, type, logicalType, precision, scale, s
|
|
|
1499
1499
|
function Field_0(name, type, doc, default_0) {
|
|
1500
1500
|
doc = doc === VOID ? null : doc;
|
|
1501
1501
|
default_0 = default_0 === VOID ? null : default_0;
|
|
1502
|
-
this.
|
|
1503
|
-
this.
|
|
1504
|
-
this.
|
|
1505
|
-
this.
|
|
1502
|
+
this.g3j_1 = name;
|
|
1503
|
+
this.h3j_1 = type;
|
|
1504
|
+
this.i3j_1 = doc;
|
|
1505
|
+
this.j3j_1 = default_0;
|
|
1506
1506
|
}
|
|
1507
1507
|
protoOf(Field_0).toString = function () {
|
|
1508
|
-
return 'Field(name=' + this.
|
|
1508
|
+
return 'Field(name=' + this.g3j_1 + ', type=' + this.h3j_1.toString() + ', doc=' + this.i3j_1 + ', default=' + this.j3j_1 + ')';
|
|
1509
1509
|
};
|
|
1510
1510
|
protoOf(Field_0).hashCode = function () {
|
|
1511
|
-
var result = getStringHashCode(this.
|
|
1512
|
-
result = imul(result, 31) + this.
|
|
1513
|
-
result = imul(result, 31) + (this.
|
|
1514
|
-
result = imul(result, 31) + (this.
|
|
1511
|
+
var result = getStringHashCode(this.g3j_1);
|
|
1512
|
+
result = imul(result, 31) + this.h3j_1.hashCode() | 0;
|
|
1513
|
+
result = imul(result, 31) + (this.i3j_1 == null ? 0 : getStringHashCode(this.i3j_1)) | 0;
|
|
1514
|
+
result = imul(result, 31) + (this.j3j_1 == null ? 0 : getStringHashCode(this.j3j_1)) | 0;
|
|
1515
1515
|
return result;
|
|
1516
1516
|
};
|
|
1517
1517
|
protoOf(Field_0).equals = function (other) {
|
|
@@ -1519,44 +1519,44 @@ protoOf(Field_0).equals = function (other) {
|
|
|
1519
1519
|
return true;
|
|
1520
1520
|
if (!(other instanceof Field_0))
|
|
1521
1521
|
return false;
|
|
1522
|
-
if (!(this.
|
|
1522
|
+
if (!(this.g3j_1 === other.g3j_1))
|
|
1523
1523
|
return false;
|
|
1524
|
-
if (!this.
|
|
1524
|
+
if (!this.h3j_1.equals(other.h3j_1))
|
|
1525
1525
|
return false;
|
|
1526
|
-
if (!(this.
|
|
1526
|
+
if (!(this.i3j_1 == other.i3j_1))
|
|
1527
1527
|
return false;
|
|
1528
|
-
if (!(this.
|
|
1528
|
+
if (!(this.j3j_1 == other.j3j_1))
|
|
1529
1529
|
return false;
|
|
1530
1530
|
return true;
|
|
1531
1531
|
};
|
|
1532
1532
|
function TypeList(type) {
|
|
1533
1533
|
AbstractList.call(this);
|
|
1534
|
-
this.
|
|
1535
|
-
this.
|
|
1534
|
+
this.l3k_1 = toList_0(type);
|
|
1535
|
+
this.m3k_1 = this.l3k_1.a1();
|
|
1536
1536
|
}
|
|
1537
1537
|
protoOf(TypeList).a1 = function () {
|
|
1538
|
-
return this.
|
|
1538
|
+
return this.m3k_1;
|
|
1539
1539
|
};
|
|
1540
1540
|
protoOf(TypeList).f1 = function (index) {
|
|
1541
|
-
return this.
|
|
1541
|
+
return this.l3k_1.f1(index);
|
|
1542
1542
|
};
|
|
1543
1543
|
function Type_0() {
|
|
1544
1544
|
}
|
|
1545
1545
|
function SimpleType(value) {
|
|
1546
|
-
this.
|
|
1546
|
+
this.m3i_1 = value;
|
|
1547
1547
|
}
|
|
1548
1548
|
protoOf(SimpleType).toString = function () {
|
|
1549
|
-
return 'SimpleType(value=' + this.
|
|
1549
|
+
return 'SimpleType(value=' + this.m3i_1 + ')';
|
|
1550
1550
|
};
|
|
1551
1551
|
protoOf(SimpleType).hashCode = function () {
|
|
1552
|
-
return getStringHashCode(this.
|
|
1552
|
+
return getStringHashCode(this.m3i_1);
|
|
1553
1553
|
};
|
|
1554
1554
|
protoOf(SimpleType).equals = function (other) {
|
|
1555
1555
|
if (this === other)
|
|
1556
1556
|
return true;
|
|
1557
1557
|
if (!(other instanceof SimpleType))
|
|
1558
1558
|
return false;
|
|
1559
|
-
if (!(this.
|
|
1559
|
+
if (!(this.m3i_1 === other.m3i_1))
|
|
1560
1560
|
return false;
|
|
1561
1561
|
return true;
|
|
1562
1562
|
};
|
|
@@ -1564,21 +1564,21 @@ function RecordType(type, name, namespace, fields, doc) {
|
|
|
1564
1564
|
Companion_getInstance_3();
|
|
1565
1565
|
namespace = namespace === VOID ? null : namespace;
|
|
1566
1566
|
doc = doc === VOID ? null : doc;
|
|
1567
|
-
this.
|
|
1568
|
-
this.
|
|
1569
|
-
this.
|
|
1570
|
-
this.
|
|
1571
|
-
this.
|
|
1567
|
+
this.z3i_1 = type;
|
|
1568
|
+
this.a3j_1 = name;
|
|
1569
|
+
this.b3j_1 = namespace;
|
|
1570
|
+
this.c3j_1 = fields;
|
|
1571
|
+
this.d3j_1 = doc;
|
|
1572
1572
|
}
|
|
1573
1573
|
protoOf(RecordType).toString = function () {
|
|
1574
|
-
return 'RecordType(type=' + this.
|
|
1574
|
+
return 'RecordType(type=' + this.z3i_1 + ', name=' + this.a3j_1 + ', namespace=' + this.b3j_1 + ', fields=' + toString(this.c3j_1) + ', doc=' + this.d3j_1 + ')';
|
|
1575
1575
|
};
|
|
1576
1576
|
protoOf(RecordType).hashCode = function () {
|
|
1577
|
-
var result = getStringHashCode(this.
|
|
1578
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1579
|
-
result = imul(result, 31) + (this.
|
|
1580
|
-
result = imul(result, 31) + hashCode(this.
|
|
1581
|
-
result = imul(result, 31) + (this.
|
|
1577
|
+
var result = getStringHashCode(this.z3i_1);
|
|
1578
|
+
result = imul(result, 31) + getStringHashCode(this.a3j_1) | 0;
|
|
1579
|
+
result = imul(result, 31) + (this.b3j_1 == null ? 0 : getStringHashCode(this.b3j_1)) | 0;
|
|
1580
|
+
result = imul(result, 31) + hashCode(this.c3j_1) | 0;
|
|
1581
|
+
result = imul(result, 31) + (this.d3j_1 == null ? 0 : getStringHashCode(this.d3j_1)) | 0;
|
|
1582
1582
|
return result;
|
|
1583
1583
|
};
|
|
1584
1584
|
protoOf(RecordType).equals = function (other) {
|
|
@@ -1586,28 +1586,28 @@ protoOf(RecordType).equals = function (other) {
|
|
|
1586
1586
|
return true;
|
|
1587
1587
|
if (!(other instanceof RecordType))
|
|
1588
1588
|
return false;
|
|
1589
|
-
if (!(this.
|
|
1589
|
+
if (!(this.z3i_1 === other.z3i_1))
|
|
1590
1590
|
return false;
|
|
1591
|
-
if (!(this.
|
|
1591
|
+
if (!(this.a3j_1 === other.a3j_1))
|
|
1592
1592
|
return false;
|
|
1593
|
-
if (!(this.
|
|
1593
|
+
if (!(this.b3j_1 == other.b3j_1))
|
|
1594
1594
|
return false;
|
|
1595
|
-
if (!equals(this.
|
|
1595
|
+
if (!equals(this.c3j_1, other.c3j_1))
|
|
1596
1596
|
return false;
|
|
1597
|
-
if (!(this.
|
|
1597
|
+
if (!(this.d3j_1 == other.d3j_1))
|
|
1598
1598
|
return false;
|
|
1599
1599
|
return true;
|
|
1600
1600
|
};
|
|
1601
1601
|
function ArrayType(type, items) {
|
|
1602
|
-
this.
|
|
1603
|
-
this.
|
|
1602
|
+
this.e3j_1 = type;
|
|
1603
|
+
this.f3j_1 = items;
|
|
1604
1604
|
}
|
|
1605
1605
|
protoOf(ArrayType).toString = function () {
|
|
1606
|
-
return 'ArrayType(type=' + this.
|
|
1606
|
+
return 'ArrayType(type=' + this.e3j_1 + ', items=' + toString(this.f3j_1) + ')';
|
|
1607
1607
|
};
|
|
1608
1608
|
protoOf(ArrayType).hashCode = function () {
|
|
1609
|
-
var result = getStringHashCode(this.
|
|
1610
|
-
result = imul(result, 31) + hashCode(this.
|
|
1609
|
+
var result = getStringHashCode(this.e3j_1);
|
|
1610
|
+
result = imul(result, 31) + hashCode(this.f3j_1) | 0;
|
|
1611
1611
|
return result;
|
|
1612
1612
|
};
|
|
1613
1613
|
protoOf(ArrayType).equals = function (other) {
|
|
@@ -1615,22 +1615,22 @@ protoOf(ArrayType).equals = function (other) {
|
|
|
1615
1615
|
return true;
|
|
1616
1616
|
if (!(other instanceof ArrayType))
|
|
1617
1617
|
return false;
|
|
1618
|
-
if (!(this.
|
|
1618
|
+
if (!(this.e3j_1 === other.e3j_1))
|
|
1619
1619
|
return false;
|
|
1620
|
-
if (!equals(this.
|
|
1620
|
+
if (!equals(this.f3j_1, other.f3j_1))
|
|
1621
1621
|
return false;
|
|
1622
1622
|
return true;
|
|
1623
1623
|
};
|
|
1624
1624
|
function MapType(type, values) {
|
|
1625
|
-
this.
|
|
1626
|
-
this.
|
|
1625
|
+
this.p3i_1 = type;
|
|
1626
|
+
this.q3i_1 = values;
|
|
1627
1627
|
}
|
|
1628
1628
|
protoOf(MapType).toString = function () {
|
|
1629
|
-
return 'MapType(type=' + this.
|
|
1629
|
+
return 'MapType(type=' + this.p3i_1 + ', values=' + toString(this.q3i_1) + ')';
|
|
1630
1630
|
};
|
|
1631
1631
|
protoOf(MapType).hashCode = function () {
|
|
1632
|
-
var result = getStringHashCode(this.
|
|
1633
|
-
result = imul(result, 31) + hashCode(this.
|
|
1632
|
+
var result = getStringHashCode(this.p3i_1);
|
|
1633
|
+
result = imul(result, 31) + hashCode(this.q3i_1) | 0;
|
|
1634
1634
|
return result;
|
|
1635
1635
|
};
|
|
1636
1636
|
protoOf(MapType).equals = function (other) {
|
|
@@ -1638,28 +1638,28 @@ protoOf(MapType).equals = function (other) {
|
|
|
1638
1638
|
return true;
|
|
1639
1639
|
if (!(other instanceof MapType))
|
|
1640
1640
|
return false;
|
|
1641
|
-
if (!(this.
|
|
1641
|
+
if (!(this.p3i_1 === other.p3i_1))
|
|
1642
1642
|
return false;
|
|
1643
|
-
if (!equals(this.
|
|
1643
|
+
if (!equals(this.q3i_1, other.q3i_1))
|
|
1644
1644
|
return false;
|
|
1645
1645
|
return true;
|
|
1646
1646
|
};
|
|
1647
1647
|
function EnumType(type, name, doc, symbols) {
|
|
1648
1648
|
Companion_getInstance_6();
|
|
1649
1649
|
doc = doc === VOID ? null : doc;
|
|
1650
|
-
this.
|
|
1651
|
-
this.
|
|
1652
|
-
this.
|
|
1653
|
-
this.
|
|
1650
|
+
this.v3i_1 = type;
|
|
1651
|
+
this.w3i_1 = name;
|
|
1652
|
+
this.x3i_1 = doc;
|
|
1653
|
+
this.y3i_1 = symbols;
|
|
1654
1654
|
}
|
|
1655
1655
|
protoOf(EnumType).toString = function () {
|
|
1656
|
-
return 'EnumType(type=' + this.
|
|
1656
|
+
return 'EnumType(type=' + this.v3i_1 + ', name=' + this.w3i_1 + ', doc=' + this.x3i_1 + ', symbols=' + toString(this.y3i_1) + ')';
|
|
1657
1657
|
};
|
|
1658
1658
|
protoOf(EnumType).hashCode = function () {
|
|
1659
|
-
var result = getStringHashCode(this.
|
|
1660
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1661
|
-
result = imul(result, 31) + (this.
|
|
1662
|
-
result = imul(result, 31) + hashCode(this.
|
|
1659
|
+
var result = getStringHashCode(this.v3i_1);
|
|
1660
|
+
result = imul(result, 31) + getStringHashCode(this.w3i_1) | 0;
|
|
1661
|
+
result = imul(result, 31) + (this.x3i_1 == null ? 0 : getStringHashCode(this.x3i_1)) | 0;
|
|
1662
|
+
result = imul(result, 31) + hashCode(this.y3i_1) | 0;
|
|
1663
1663
|
return result;
|
|
1664
1664
|
};
|
|
1665
1665
|
protoOf(EnumType).equals = function (other) {
|
|
@@ -1667,26 +1667,26 @@ protoOf(EnumType).equals = function (other) {
|
|
|
1667
1667
|
return true;
|
|
1668
1668
|
if (!(other instanceof EnumType))
|
|
1669
1669
|
return false;
|
|
1670
|
-
if (!(this.
|
|
1670
|
+
if (!(this.v3i_1 === other.v3i_1))
|
|
1671
1671
|
return false;
|
|
1672
|
-
if (!(this.
|
|
1672
|
+
if (!(this.w3i_1 === other.w3i_1))
|
|
1673
1673
|
return false;
|
|
1674
|
-
if (!(this.
|
|
1674
|
+
if (!(this.x3i_1 == other.x3i_1))
|
|
1675
1675
|
return false;
|
|
1676
|
-
if (!equals(this.
|
|
1676
|
+
if (!equals(this.y3i_1, other.y3i_1))
|
|
1677
1677
|
return false;
|
|
1678
1678
|
return true;
|
|
1679
1679
|
};
|
|
1680
1680
|
function UnionType(name, type) {
|
|
1681
|
-
this.
|
|
1682
|
-
this.
|
|
1681
|
+
this.n3i_1 = name;
|
|
1682
|
+
this.o3i_1 = type;
|
|
1683
1683
|
}
|
|
1684
1684
|
protoOf(UnionType).toString = function () {
|
|
1685
|
-
return 'UnionType(name=' + this.
|
|
1685
|
+
return 'UnionType(name=' + this.n3i_1 + ', type=' + this.o3i_1.toString() + ')';
|
|
1686
1686
|
};
|
|
1687
1687
|
protoOf(UnionType).hashCode = function () {
|
|
1688
|
-
var result = getStringHashCode(this.
|
|
1689
|
-
result = imul(result, 31) + this.
|
|
1688
|
+
var result = getStringHashCode(this.n3i_1);
|
|
1689
|
+
result = imul(result, 31) + this.o3i_1.hashCode() | 0;
|
|
1690
1690
|
return result;
|
|
1691
1691
|
};
|
|
1692
1692
|
protoOf(UnionType).equals = function (other) {
|
|
@@ -1694,22 +1694,22 @@ protoOf(UnionType).equals = function (other) {
|
|
|
1694
1694
|
return true;
|
|
1695
1695
|
if (!(other instanceof UnionType))
|
|
1696
1696
|
return false;
|
|
1697
|
-
if (!(this.
|
|
1697
|
+
if (!(this.n3i_1 === other.n3i_1))
|
|
1698
1698
|
return false;
|
|
1699
|
-
if (!this.
|
|
1699
|
+
if (!this.o3i_1.equals(other.o3i_1))
|
|
1700
1700
|
return false;
|
|
1701
1701
|
return true;
|
|
1702
1702
|
};
|
|
1703
1703
|
function LogicalType() {
|
|
1704
1704
|
}
|
|
1705
1705
|
protoOf(LogicalType).toString = function () {
|
|
1706
|
-
return 'LogicalType(type=' + this.
|
|
1706
|
+
return 'LogicalType(type=' + this.r3i_1 + ', logicalType=' + this.s3i_1 + ', precision=' + this.t3i_1 + ', scale=' + this.u3i_1 + ')';
|
|
1707
1707
|
};
|
|
1708
1708
|
protoOf(LogicalType).hashCode = function () {
|
|
1709
|
-
var result = getStringHashCode(this.
|
|
1710
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1711
|
-
result = imul(result, 31) + (this.
|
|
1712
|
-
result = imul(result, 31) + (this.
|
|
1709
|
+
var result = getStringHashCode(this.r3i_1);
|
|
1710
|
+
result = imul(result, 31) + getStringHashCode(this.s3i_1) | 0;
|
|
1711
|
+
result = imul(result, 31) + (this.t3i_1 == null ? 0 : this.t3i_1) | 0;
|
|
1712
|
+
result = imul(result, 31) + (this.u3i_1 == null ? 0 : this.u3i_1) | 0;
|
|
1713
1713
|
return result;
|
|
1714
1714
|
};
|
|
1715
1715
|
protoOf(LogicalType).equals = function (other) {
|
|
@@ -1717,34 +1717,34 @@ protoOf(LogicalType).equals = function (other) {
|
|
|
1717
1717
|
return true;
|
|
1718
1718
|
if (!(other instanceof LogicalType))
|
|
1719
1719
|
return false;
|
|
1720
|
-
if (!(this.
|
|
1720
|
+
if (!(this.r3i_1 === other.r3i_1))
|
|
1721
1721
|
return false;
|
|
1722
|
-
if (!(this.
|
|
1722
|
+
if (!(this.s3i_1 === other.s3i_1))
|
|
1723
1723
|
return false;
|
|
1724
|
-
if (!(this.
|
|
1724
|
+
if (!(this.t3i_1 == other.t3i_1))
|
|
1725
1725
|
return false;
|
|
1726
|
-
if (!(this.
|
|
1726
|
+
if (!(this.u3i_1 == other.u3i_1))
|
|
1727
1727
|
return false;
|
|
1728
1728
|
return true;
|
|
1729
1729
|
};
|
|
1730
1730
|
function TypeListSerializer() {
|
|
1731
1731
|
TypeListSerializer_instance = this;
|
|
1732
|
-
this.
|
|
1732
|
+
this.n3k_1 = buildSerialDescriptor('TypeListSerializer', SEALED_getInstance(), []);
|
|
1733
1733
|
}
|
|
1734
|
-
protoOf(TypeListSerializer).
|
|
1735
|
-
return this.
|
|
1734
|
+
protoOf(TypeListSerializer).j21 = function () {
|
|
1735
|
+
return this.n3k_1;
|
|
1736
1736
|
};
|
|
1737
|
-
protoOf(TypeListSerializer).
|
|
1738
|
-
if (value.
|
|
1739
|
-
encoder.
|
|
1737
|
+
protoOf(TypeListSerializer).o3k = function (encoder, value) {
|
|
1738
|
+
if (value.m3k_1 > 1) {
|
|
1739
|
+
encoder.b26(ListSerializer(Companion_instance_1.v2n()), value);
|
|
1740
1740
|
} else {
|
|
1741
|
-
encoder.
|
|
1741
|
+
encoder.b26(Companion_instance_1.v2n(), first(value));
|
|
1742
1742
|
}
|
|
1743
1743
|
};
|
|
1744
|
-
protoOf(TypeListSerializer).
|
|
1745
|
-
return this.
|
|
1744
|
+
protoOf(TypeListSerializer).k21 = function (encoder, value) {
|
|
1745
|
+
return this.o3k(encoder, value instanceof TypeList ? value : THROW_CCE());
|
|
1746
1746
|
};
|
|
1747
|
-
protoOf(TypeListSerializer).
|
|
1747
|
+
protoOf(TypeListSerializer).l21 = function (decoder) {
|
|
1748
1748
|
var tmp0_elvis_lhs = isInterface(decoder, JsonDecoder) ? decoder : null;
|
|
1749
1749
|
var tmp;
|
|
1750
1750
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -1753,10 +1753,10 @@ protoOf(TypeListSerializer).f21 = function (decoder) {
|
|
|
1753
1753
|
tmp = tmp0_elvis_lhs;
|
|
1754
1754
|
}
|
|
1755
1755
|
var input = tmp;
|
|
1756
|
-
var element = input.
|
|
1756
|
+
var element = input.o2n();
|
|
1757
1757
|
var tmp_0;
|
|
1758
1758
|
if (element instanceof JsonPrimitive) {
|
|
1759
|
-
tmp_0 = new TypeList([input.
|
|
1759
|
+
tmp_0 = new TypeList([input.n2n().n2l(Companion_instance_1.v2n(), element)]);
|
|
1760
1760
|
} else {
|
|
1761
1761
|
if (element instanceof JsonArray) {
|
|
1762
1762
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -1765,7 +1765,7 @@ protoOf(TypeListSerializer).f21 = function (decoder) {
|
|
|
1765
1765
|
var _iterator__ex2g4s = element.t();
|
|
1766
1766
|
while (_iterator__ex2g4s.u()) {
|
|
1767
1767
|
var item = _iterator__ex2g4s.v();
|
|
1768
|
-
var tmp$ret$0 = input.
|
|
1768
|
+
var tmp$ret$0 = input.n2n().n2l(Companion_instance_1.v2n(), item);
|
|
1769
1769
|
destination.x(tmp$ret$0);
|
|
1770
1770
|
}
|
|
1771
1771
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
@@ -1773,7 +1773,7 @@ protoOf(TypeListSerializer).f21 = function (decoder) {
|
|
|
1773
1773
|
tmp_0 = new TypeList(tmp$ret$3.slice());
|
|
1774
1774
|
} else {
|
|
1775
1775
|
if (element instanceof JsonObject) {
|
|
1776
|
-
tmp_0 = new TypeList([input.
|
|
1776
|
+
tmp_0 = new TypeList([input.n2n().n2l(Companion_instance_1.v2n(), element)]);
|
|
1777
1777
|
} else {
|
|
1778
1778
|
noWhenBranchMatchedException();
|
|
1779
1779
|
}
|
|
@@ -1789,29 +1789,29 @@ function TypeListSerializer_getInstance() {
|
|
|
1789
1789
|
}
|
|
1790
1790
|
function TypeSerializer() {
|
|
1791
1791
|
TypeSerializer_instance = this;
|
|
1792
|
-
this.
|
|
1792
|
+
this.p3k_1 = buildSerialDescriptor('TypeSerializer', SEALED_getInstance(), []);
|
|
1793
1793
|
}
|
|
1794
|
-
protoOf(TypeSerializer).
|
|
1795
|
-
return this.
|
|
1794
|
+
protoOf(TypeSerializer).j21 = function () {
|
|
1795
|
+
return this.p3k_1;
|
|
1796
1796
|
};
|
|
1797
|
-
protoOf(TypeSerializer).
|
|
1797
|
+
protoOf(TypeSerializer).q3k = function (encoder, value) {
|
|
1798
1798
|
if (value instanceof SimpleType) {
|
|
1799
|
-
encoder.
|
|
1799
|
+
encoder.b26(serializer_0(StringCompanionObject_instance), value.m3i_1);
|
|
1800
1800
|
} else {
|
|
1801
1801
|
if (value instanceof RecordType) {
|
|
1802
|
-
encoder.
|
|
1802
|
+
encoder.b26(Companion_getInstance_3().v2n(), value);
|
|
1803
1803
|
} else {
|
|
1804
1804
|
if (value instanceof ArrayType) {
|
|
1805
|
-
encoder.
|
|
1805
|
+
encoder.b26(Companion_instance_4.v2n(), value);
|
|
1806
1806
|
} else {
|
|
1807
1807
|
if (value instanceof MapType) {
|
|
1808
|
-
encoder.
|
|
1808
|
+
encoder.b26(Companion_instance_5.v2n(), value);
|
|
1809
1809
|
} else {
|
|
1810
1810
|
if (value instanceof EnumType) {
|
|
1811
|
-
encoder.
|
|
1811
|
+
encoder.b26(Companion_getInstance_6().v2n(), value);
|
|
1812
1812
|
} else {
|
|
1813
1813
|
if (value instanceof UnionType) {
|
|
1814
|
-
encoder.
|
|
1814
|
+
encoder.b26(Companion_instance_7.v2n(), value);
|
|
1815
1815
|
} else {
|
|
1816
1816
|
if (value instanceof LogicalType) {
|
|
1817
1817
|
// Inline function 'kotlin.TODO' call
|
|
@@ -1826,10 +1826,10 @@ protoOf(TypeSerializer).l3k = function (encoder, value) {
|
|
|
1826
1826
|
}
|
|
1827
1827
|
}
|
|
1828
1828
|
};
|
|
1829
|
-
protoOf(TypeSerializer).
|
|
1830
|
-
return this.
|
|
1829
|
+
protoOf(TypeSerializer).k21 = function (encoder, value) {
|
|
1830
|
+
return this.q3k(encoder, (!(value == null) ? isInterface(value, Type_0) : false) ? value : THROW_CCE());
|
|
1831
1831
|
};
|
|
1832
|
-
protoOf(TypeSerializer).
|
|
1832
|
+
protoOf(TypeSerializer).l21 = function (decoder) {
|
|
1833
1833
|
var tmp0_elvis_lhs = isInterface(decoder, JsonDecoder) ? decoder : null;
|
|
1834
1834
|
var tmp;
|
|
1835
1835
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -1838,18 +1838,18 @@ protoOf(TypeSerializer).f21 = function (decoder) {
|
|
|
1838
1838
|
tmp = tmp0_elvis_lhs;
|
|
1839
1839
|
}
|
|
1840
1840
|
var input = tmp;
|
|
1841
|
-
var element = input.
|
|
1841
|
+
var element = input.o2n();
|
|
1842
1842
|
var tmp_0;
|
|
1843
1843
|
if (element instanceof JsonObject) {
|
|
1844
1844
|
var tmp_1;
|
|
1845
|
-
if (element.
|
|
1846
|
-
tmp_1 = input.
|
|
1847
|
-
} else if (element.
|
|
1848
|
-
tmp_1 = input.
|
|
1849
|
-
} else if (element.
|
|
1850
|
-
tmp_1 = input.
|
|
1851
|
-
} else if (element.
|
|
1852
|
-
tmp_1 = input.
|
|
1845
|
+
if (element.s2n('items')) {
|
|
1846
|
+
tmp_1 = input.n2n().n2l(Companion_instance_4.v2n(), element);
|
|
1847
|
+
} else if (element.s2n('fields')) {
|
|
1848
|
+
tmp_1 = input.n2n().n2l(Companion_getInstance_3().v2n(), element);
|
|
1849
|
+
} else if (element.s2n('symbols')) {
|
|
1850
|
+
tmp_1 = input.n2n().n2l(Companion_getInstance_6().v2n(), element);
|
|
1851
|
+
} else if (element.s2n('logicalType')) {
|
|
1852
|
+
tmp_1 = input.n2n().n2l(Companion_instance_8.v2n(), element);
|
|
1853
1853
|
} else {
|
|
1854
1854
|
var reason = 'Unknown object type: ' + element.toString();
|
|
1855
1855
|
throw new NotImplementedError('An operation is not implemented: ' + reason);
|
|
@@ -1857,7 +1857,7 @@ protoOf(TypeSerializer).f21 = function (decoder) {
|
|
|
1857
1857
|
tmp_0 = tmp_1;
|
|
1858
1858
|
} else {
|
|
1859
1859
|
if (element instanceof JsonPrimitive) {
|
|
1860
|
-
tmp_0 = new SimpleType(element.
|
|
1860
|
+
tmp_0 = new SimpleType(element.ix());
|
|
1861
1861
|
} else {
|
|
1862
1862
|
if (element instanceof JsonArray) {
|
|
1863
1863
|
var reason_0 = 'Type can never be an array';
|
|
@@ -1876,26 +1876,26 @@ function TypeSerializer_getInstance() {
|
|
|
1876
1876
|
return TypeSerializer_instance;
|
|
1877
1877
|
}
|
|
1878
1878
|
function AvroParser$parse$lambda($this$Json) {
|
|
1879
|
-
$this$Json.
|
|
1880
|
-
$this$Json.
|
|
1879
|
+
$this$Json.f2m_1 = true;
|
|
1880
|
+
$this$Json.g2m_1 = true;
|
|
1881
1881
|
return Unit_instance;
|
|
1882
1882
|
}
|
|
1883
1883
|
function AvroParser() {
|
|
1884
1884
|
}
|
|
1885
|
-
protoOf(AvroParser).
|
|
1885
|
+
protoOf(AvroParser).f3i = function (moduleContent, strict) {
|
|
1886
1886
|
var json = Json(VOID, AvroParser$parse$lambda);
|
|
1887
1887
|
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
1888
|
-
var string = moduleContent.
|
|
1888
|
+
var string = moduleContent.ym_1;
|
|
1889
1889
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
1890
|
-
var this_0 = json.
|
|
1890
|
+
var this_0 = json.y24();
|
|
1891
1891
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
1892
1892
|
var this_1 = serializer(this_0, createKType(getKClass(Type_0), arrayOf([]), false));
|
|
1893
1893
|
var tmp$ret$1 = isInterface(this_1, KSerializer) ? this_1 : THROW_CCE();
|
|
1894
|
-
var avro = json.
|
|
1895
|
-
var tmp = AvroConverter_getInstance().
|
|
1894
|
+
var avro = json.m2l(tmp$ret$1, string);
|
|
1895
|
+
var tmp = AvroConverter_getInstance().l3j(avro);
|
|
1896
1896
|
var tmp_0;
|
|
1897
1897
|
if (avro instanceof RecordType) {
|
|
1898
|
-
tmp_0 = new Channel(null, emptyList(), new DefinitionIdentifier(avro.
|
|
1898
|
+
tmp_0 = new Channel(null, emptyList(), new DefinitionIdentifier(avro.a3j_1), new Custom(avro.a3j_1, false));
|
|
1899
1899
|
} else {
|
|
1900
1900
|
if (avro instanceof ArrayType) {
|
|
1901
1901
|
throw new NotImplementedError();
|
|
@@ -1933,21 +1933,21 @@ protoOf(AvroParser).a3i = function (moduleContent, strict) {
|
|
|
1933
1933
|
} else {
|
|
1934
1934
|
tmp_1 = tmp1_elvis_lhs;
|
|
1935
1935
|
}
|
|
1936
|
-
return new Root(nonEmptyListOf(new Module(moduleContent.
|
|
1936
|
+
return new Root(nonEmptyListOf(new Module(moduleContent.xm_1, tmp_1), []));
|
|
1937
1937
|
};
|
|
1938
1938
|
var AvroParser_instance;
|
|
1939
1939
|
function AvroParser_getInstance() {
|
|
1940
1940
|
return AvroParser_instance;
|
|
1941
1941
|
}
|
|
1942
1942
|
//region block: post-declaration
|
|
1943
|
-
protoOf($serializer).
|
|
1944
|
-
protoOf($serializer_0).
|
|
1945
|
-
protoOf($serializer_1).
|
|
1946
|
-
protoOf($serializer_2).
|
|
1947
|
-
protoOf($serializer_3).
|
|
1948
|
-
protoOf($serializer_4).
|
|
1949
|
-
protoOf($serializer_5).
|
|
1950
|
-
protoOf($serializer_6).
|
|
1943
|
+
protoOf($serializer).n2c = typeParametersSerializers;
|
|
1944
|
+
protoOf($serializer_0).n2c = typeParametersSerializers;
|
|
1945
|
+
protoOf($serializer_1).n2c = typeParametersSerializers;
|
|
1946
|
+
protoOf($serializer_2).n2c = typeParametersSerializers;
|
|
1947
|
+
protoOf($serializer_3).n2c = typeParametersSerializers;
|
|
1948
|
+
protoOf($serializer_4).n2c = typeParametersSerializers;
|
|
1949
|
+
protoOf($serializer_5).n2c = typeParametersSerializers;
|
|
1950
|
+
protoOf($serializer_6).n2c = typeParametersSerializers;
|
|
1951
1951
|
//endregion
|
|
1952
1952
|
//region block: init
|
|
1953
1953
|
Companion_instance = new Companion();
|