@flock/wirespec 0.15.1 → 0.15.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-atomic.mjs.map +1 -1
- package/arrow-arrow-core.mjs +92 -92
- package/arrow-arrow-core.mjs.map +1 -1
- package/clikt-clikt-mordant.mjs +314 -0
- package/clikt-clikt-mordant.mjs.map +1 -0
- package/clikt-clikt.mjs +3487 -3071
- package/clikt-clikt.mjs.map +1 -1
- package/colormath-root-colormath.mjs +459 -529
- package/colormath-root-colormath.mjs.map +1 -1
- package/kotlin-kotlin-stdlib.mjs +2419 -2239
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +4978 -4978
- package/kotlin-openapi-bindings.mjs.map +1 -1
- package/kotlin-rgxgen.mjs +1829 -1829
- package/kotlin-rgxgen.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core.mjs +490 -434
- package/kotlinx-io-kotlinx-io-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1778 -1778
- package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1463 -1460
- package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
- package/mordant-mordant-omnibus.mjs +4 -0
- package/mordant-mordant-omnibus.mjs.map +1 -0
- package/mordant-mordant.mjs +1821 -3396
- package/mordant-mordant.mjs.map +1 -1
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +1908 -1884
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +425 -425
- package/wirespec-src-compiler-lib.mjs.map +1 -1
- package/wirespec-src-converter-avro.mjs +509 -513
- package/wirespec-src-converter-avro.mjs.map +1 -1
- package/wirespec-src-converter-common.mjs +4 -0
- package/wirespec-src-converter-common.mjs.map +1 -0
- package/wirespec-src-converter-openapi.mjs +709 -717
- package/wirespec-src-converter-openapi.mjs.map +1 -1
- package/wirespec-src-plugin-arguments.mjs +201 -238
- package/wirespec-src-plugin-arguments.mjs.map +1 -1
- package/wirespec-src-plugin-cli.mjs +232 -130
- package/wirespec-src-plugin-cli.mjs.map +1 -1
- package/wirespec-src-plugin-npm.mjs +35 -35
- package/wirespec-src-plugin-npm.mjs.map +1 -1
- package/wirespec-src-tools-generator.mjs +25 -25
- package/wirespec-src-tools-generator.mjs.map +1 -1
- package/markdown.mjs +0 -6753
- package/markdown.mjs.map +0 -1
|
@@ -138,11 +138,11 @@ initMetadataForObject(TypeSerializer, 'TypeSerializer', VOID, VOID, [KSerializer
|
|
|
138
138
|
initMetadataForObject(AvroParser, 'AvroParser');
|
|
139
139
|
//endregion
|
|
140
140
|
function isNullable(_this__u8e3s4, $this) {
|
|
141
|
-
return _this__u8e3s4.
|
|
141
|
+
return _this__u8e3s4.h1($this.n2d_1);
|
|
142
142
|
}
|
|
143
143
|
function toPrimitive(_this__u8e3s4, $this) {
|
|
144
144
|
var tmp;
|
|
145
|
-
switch (_this__u8e3s4.
|
|
145
|
+
switch (_this__u8e3s4.o2d_1) {
|
|
146
146
|
case 'boolean':
|
|
147
147
|
tmp = Boolean_instance;
|
|
148
148
|
break;
|
|
@@ -165,7 +165,7 @@ function toPrimitive(_this__u8e3s4, $this) {
|
|
|
165
165
|
tmp = String_instance;
|
|
166
166
|
break;
|
|
167
167
|
default:
|
|
168
|
-
var reason = 'primitive not mapped ' + _this__u8e3s4.
|
|
168
|
+
var reason = 'primitive not mapped ' + _this__u8e3s4.o2d_1;
|
|
169
169
|
throw new NotImplementedError('An operation is not implemented: ' + reason);
|
|
170
170
|
}
|
|
171
171
|
return tmp;
|
|
@@ -173,7 +173,7 @@ function toPrimitive(_this__u8e3s4, $this) {
|
|
|
173
173
|
function toReference(_this__u8e3s4, $this, isNullable) {
|
|
174
174
|
var tmp;
|
|
175
175
|
if (_this__u8e3s4 instanceof SimpleType) {
|
|
176
|
-
switch (_this__u8e3s4.
|
|
176
|
+
switch (_this__u8e3s4.o2d_1) {
|
|
177
177
|
case 'null':
|
|
178
178
|
tmp = new Unit(isNullable);
|
|
179
179
|
break;
|
|
@@ -187,27 +187,27 @@ function toReference(_this__u8e3s4, $this, isNullable) {
|
|
|
187
187
|
tmp = new Primitive(toPrimitive(_this__u8e3s4, $this), isNullable);
|
|
188
188
|
break;
|
|
189
189
|
default:
|
|
190
|
-
tmp = new Custom(_this__u8e3s4.
|
|
190
|
+
tmp = new Custom(_this__u8e3s4.o2d_1, isNullable);
|
|
191
191
|
break;
|
|
192
192
|
}
|
|
193
193
|
} else {
|
|
194
194
|
if (_this__u8e3s4 instanceof ArrayType) {
|
|
195
|
-
tmp = new Iterable(toReference(_this__u8e3s4.
|
|
195
|
+
tmp = new Iterable(toReference(_this__u8e3s4.h2e_1, $this, false), isNullable);
|
|
196
196
|
} else {
|
|
197
197
|
if (_this__u8e3s4 instanceof RecordType) {
|
|
198
|
-
tmp = new Custom(_this__u8e3s4.
|
|
198
|
+
tmp = new Custom(_this__u8e3s4.c2e_1, isNullable);
|
|
199
199
|
} else {
|
|
200
200
|
if (_this__u8e3s4 instanceof EnumType) {
|
|
201
|
-
tmp = new Custom(_this__u8e3s4.
|
|
201
|
+
tmp = new Custom(_this__u8e3s4.y2d_1, isNullable);
|
|
202
202
|
} else {
|
|
203
203
|
if (_this__u8e3s4 instanceof LogicalType) {
|
|
204
|
-
tmp = toReference(new SimpleType(_this__u8e3s4.
|
|
204
|
+
tmp = toReference(new SimpleType(_this__u8e3s4.t2d_1), $this, isNullable);
|
|
205
205
|
} else {
|
|
206
206
|
if (_this__u8e3s4 instanceof MapType) {
|
|
207
|
-
tmp = new Dict(toReference(_this__u8e3s4.
|
|
207
|
+
tmp = new Dict(toReference(_this__u8e3s4.s2d_1, $this, false), isNullable);
|
|
208
208
|
} else {
|
|
209
209
|
if (_this__u8e3s4 instanceof UnionType) {
|
|
210
|
-
tmp = new Custom(_this__u8e3s4.
|
|
210
|
+
tmp = new Custom(_this__u8e3s4.p2d_1, isNullable);
|
|
211
211
|
} else {
|
|
212
212
|
noWhenBranchMatchedException();
|
|
213
213
|
}
|
|
@@ -220,7 +220,7 @@ function toReference(_this__u8e3s4, $this, isNullable) {
|
|
|
220
220
|
return tmp;
|
|
221
221
|
}
|
|
222
222
|
function toReference_0(_this__u8e3s4, $this) {
|
|
223
|
-
var list = minus(_this__u8e3s4, $this.
|
|
223
|
+
var list = minus(_this__u8e3s4, $this.n2d_1);
|
|
224
224
|
var tmp;
|
|
225
225
|
if (list.j() === 1) {
|
|
226
226
|
tmp = toReference(first(list), $this, isNullable(_this__u8e3s4, $this));
|
|
@@ -260,29 +260,29 @@ function toReference_0(_this__u8e3s4, $this) {
|
|
|
260
260
|
return tmp;
|
|
261
261
|
}
|
|
262
262
|
function toType(_this__u8e3s4, $this) {
|
|
263
|
-
var tmp0_identifier = new DefinitionIdentifier(_this__u8e3s4.
|
|
263
|
+
var tmp0_identifier = new DefinitionIdentifier(_this__u8e3s4.c2e_1);
|
|
264
264
|
var tmp1_extends = emptyList();
|
|
265
265
|
// Inline function 'kotlin.collections.map' call
|
|
266
|
-
var this_0 = _this__u8e3s4.
|
|
266
|
+
var this_0 = _this__u8e3s4.e2e_1;
|
|
267
267
|
// Inline function 'kotlin.collections.mapTo' call
|
|
268
268
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
269
269
|
var _iterator__ex2g4s = this_0.g();
|
|
270
270
|
while (_iterator__ex2g4s.h()) {
|
|
271
271
|
var item = _iterator__ex2g4s.i();
|
|
272
272
|
// Inline function 'community.flock.wirespec.converter.avro.AvroConverter.toType.<anonymous>' call
|
|
273
|
-
var tmp$ret$0 = new Field(new FieldIdentifier(item.
|
|
273
|
+
var tmp$ret$0 = new Field(new FieldIdentifier(item.i2e_1), toReference_0(item.j2e_1, AvroConverter_getInstance()));
|
|
274
274
|
destination.e(tmp$ret$0);
|
|
275
275
|
}
|
|
276
276
|
var tmp2_shape = new Shape(destination);
|
|
277
277
|
return new Type(null, tmp0_identifier, tmp2_shape, tmp1_extends);
|
|
278
278
|
}
|
|
279
279
|
function toEnum(_this__u8e3s4, $this) {
|
|
280
|
-
return new Enum(null, new DefinitionIdentifier(_this__u8e3s4.
|
|
280
|
+
return new Enum(null, new DefinitionIdentifier(_this__u8e3s4.y2d_1), toSet(_this__u8e3s4.a2e_1));
|
|
281
281
|
}
|
|
282
282
|
function toUnion(_this__u8e3s4, $this, name) {
|
|
283
283
|
var tmp = new DefinitionIdentifier(name);
|
|
284
284
|
// Inline function 'kotlin.collections.map' call
|
|
285
|
-
var this_0 = _this__u8e3s4.
|
|
285
|
+
var this_0 = _this__u8e3s4.q2d_1;
|
|
286
286
|
// Inline function 'kotlin.collections.mapTo' call
|
|
287
287
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
288
288
|
var _iterator__ex2g4s = this_0.g();
|
|
@@ -296,9 +296,9 @@ function toUnion(_this__u8e3s4, $this, name) {
|
|
|
296
296
|
}
|
|
297
297
|
function AvroConverter() {
|
|
298
298
|
AvroConverter_instance = this;
|
|
299
|
-
this.
|
|
299
|
+
this.n2d_1 = new SimpleType('null');
|
|
300
300
|
}
|
|
301
|
-
protoOf(AvroConverter).
|
|
301
|
+
protoOf(AvroConverter).m2e = function (_this__u8e3s4, name) {
|
|
302
302
|
var tmp;
|
|
303
303
|
if (_this__u8e3s4 instanceof SimpleType) {
|
|
304
304
|
tmp = emptyList();
|
|
@@ -306,7 +306,7 @@ protoOf(AvroConverter).i2d = function (_this__u8e3s4, name) {
|
|
|
306
306
|
if (_this__u8e3s4 instanceof RecordType) {
|
|
307
307
|
var tmp_0 = listOf(toType(_this__u8e3s4, this));
|
|
308
308
|
// Inline function 'kotlin.collections.flatMap' call
|
|
309
|
-
var tmp0 = _this__u8e3s4.
|
|
309
|
+
var tmp0 = _this__u8e3s4.e2e_1;
|
|
310
310
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
311
311
|
var destination = ArrayList_init_$Create$_0();
|
|
312
312
|
var _iterator__ex2g4s = tmp0.g();
|
|
@@ -314,14 +314,14 @@ protoOf(AvroConverter).i2d = function (_this__u8e3s4, name) {
|
|
|
314
314
|
var element = _iterator__ex2g4s.i();
|
|
315
315
|
// Inline function 'community.flock.wirespec.converter.avro.AvroConverter.flatten.<anonymous>' call
|
|
316
316
|
// Inline function 'kotlin.collections.flatMap' call
|
|
317
|
-
var tmp0_0 = element.
|
|
317
|
+
var tmp0_0 = element.j2e_1;
|
|
318
318
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
319
319
|
var destination_0 = ArrayList_init_$Create$_0();
|
|
320
320
|
var _iterator__ex2g4s_0 = tmp0_0.g();
|
|
321
321
|
while (_iterator__ex2g4s_0.h()) {
|
|
322
322
|
var element_0 = _iterator__ex2g4s_0.i();
|
|
323
323
|
// Inline function 'community.flock.wirespec.converter.avro.AvroConverter.flatten.<anonymous>.<anonymous>' call
|
|
324
|
-
var list = AvroConverter_getInstance().
|
|
324
|
+
var list = AvroConverter_getInstance().m2e(element_0, name);
|
|
325
325
|
addAll(destination_0, list);
|
|
326
326
|
}
|
|
327
327
|
var list_0 = destination_0;
|
|
@@ -330,7 +330,7 @@ protoOf(AvroConverter).i2d = function (_this__u8e3s4, name) {
|
|
|
330
330
|
tmp = plus(tmp_0, destination);
|
|
331
331
|
} else {
|
|
332
332
|
if (_this__u8e3s4 instanceof ArrayType) {
|
|
333
|
-
tmp = this.
|
|
333
|
+
tmp = this.m2e(_this__u8e3s4.h2e_1, name);
|
|
334
334
|
} else {
|
|
335
335
|
if (_this__u8e3s4 instanceof EnumType) {
|
|
336
336
|
tmp = listOf(toEnum(_this__u8e3s4, this));
|
|
@@ -339,7 +339,7 @@ protoOf(AvroConverter).i2d = function (_this__u8e3s4, name) {
|
|
|
339
339
|
tmp = emptyList();
|
|
340
340
|
} else {
|
|
341
341
|
if (_this__u8e3s4 instanceof MapType) {
|
|
342
|
-
tmp = this.
|
|
342
|
+
tmp = this.m2e(_this__u8e3s4.s2d_1, name);
|
|
343
343
|
} else {
|
|
344
344
|
if (_this__u8e3s4 instanceof UnionType) {
|
|
345
345
|
tmp = listOf(toUnion(_this__u8e3s4, this, name));
|
|
@@ -354,9 +354,9 @@ protoOf(AvroConverter).i2d = function (_this__u8e3s4, name) {
|
|
|
354
354
|
}
|
|
355
355
|
return tmp;
|
|
356
356
|
};
|
|
357
|
-
protoOf(AvroConverter).
|
|
357
|
+
protoOf(AvroConverter).n2e = function (_this__u8e3s4, name, $super) {
|
|
358
358
|
name = name === VOID ? '' : name;
|
|
359
|
-
return $super === VOID ? this.
|
|
359
|
+
return $super === VOID ? this.m2e(_this__u8e3s4, name) : $super.m2e.call(this, _this__u8e3s4, name);
|
|
360
360
|
};
|
|
361
361
|
var AvroConverter_instance;
|
|
362
362
|
function AvroConverter_getInstance() {
|
|
@@ -366,7 +366,7 @@ function AvroConverter_getInstance() {
|
|
|
366
366
|
}
|
|
367
367
|
function findType(_this__u8e3s4, $this, name) {
|
|
368
368
|
// Inline function 'kotlin.collections.find' call
|
|
369
|
-
var tmp0 = _this__u8e3s4.
|
|
369
|
+
var tmp0 = _this__u8e3s4.j28_1.dm();
|
|
370
370
|
var tmp$ret$1;
|
|
371
371
|
$l$block: {
|
|
372
372
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
@@ -374,7 +374,7 @@ function findType(_this__u8e3s4, $this, name) {
|
|
|
374
374
|
while (_iterator__ex2g4s.h()) {
|
|
375
375
|
var element = _iterator__ex2g4s.i();
|
|
376
376
|
// Inline function 'community.flock.wirespec.converter.avro.AvroEmitter.findType.<anonymous>' call
|
|
377
|
-
if (element.
|
|
377
|
+
if (element.b26().v() === name) {
|
|
378
378
|
tmp$ret$1 = element;
|
|
379
379
|
break $l$block;
|
|
380
380
|
}
|
|
@@ -386,52 +386,52 @@ function findType(_this__u8e3s4, $this, name) {
|
|
|
386
386
|
function AvroEmitter() {
|
|
387
387
|
AvroEmitter_instance = this;
|
|
388
388
|
Emitter.call(this);
|
|
389
|
-
this.
|
|
390
|
-
this.
|
|
389
|
+
this.o2e_1 = FileExtension_JSON_getInstance();
|
|
390
|
+
this.p2e_1 = null;
|
|
391
391
|
}
|
|
392
|
-
protoOf(AvroEmitter).
|
|
393
|
-
return this.
|
|
392
|
+
protoOf(AvroEmitter).p27 = function () {
|
|
393
|
+
return this.o2e_1;
|
|
394
394
|
};
|
|
395
|
-
protoOf(AvroEmitter).
|
|
395
|
+
protoOf(AvroEmitter).b28 = function (type, module_0) {
|
|
396
396
|
// Inline function 'kotlin.TODO' call
|
|
397
397
|
var reason = 'Not yet implemented';
|
|
398
398
|
throw new NotImplementedError('An operation is not implemented: ' + reason);
|
|
399
399
|
};
|
|
400
|
-
protoOf(AvroEmitter).
|
|
401
|
-
return new EnumType('enum', _this__u8e3s4.
|
|
400
|
+
protoOf(AvroEmitter).q2e = function (_this__u8e3s4) {
|
|
401
|
+
return new EnumType('enum', _this__u8e3s4.y28_1.v(), VOID, toList(_this__u8e3s4.z28_1));
|
|
402
402
|
};
|
|
403
|
-
protoOf(AvroEmitter).
|
|
404
|
-
var tmp = _this__u8e3s4.
|
|
403
|
+
protoOf(AvroEmitter).r2e = function (_this__u8e3s4) {
|
|
404
|
+
var tmp = _this__u8e3s4.l28_1.v();
|
|
405
405
|
// Inline function 'kotlin.collections.map' call
|
|
406
|
-
var this_0 = _this__u8e3s4.
|
|
406
|
+
var this_0 = _this__u8e3s4.m28_1;
|
|
407
407
|
// Inline function 'kotlin.collections.mapTo' call
|
|
408
408
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
409
409
|
var _iterator__ex2g4s = this_0.g();
|
|
410
410
|
while (_iterator__ex2g4s.h()) {
|
|
411
411
|
var item = _iterator__ex2g4s.i();
|
|
412
412
|
// Inline function 'community.flock.wirespec.converter.avro.AvroEmitter.emit.<anonymous>' call
|
|
413
|
-
var tmp$ret$0 = new SimpleType(item.
|
|
413
|
+
var tmp$ret$0 = new SimpleType(item.v());
|
|
414
414
|
destination.e(tmp$ret$0);
|
|
415
415
|
}
|
|
416
416
|
return new UnionType(tmp, TypeList_init_$Create$(destination));
|
|
417
417
|
};
|
|
418
|
-
protoOf(AvroEmitter).
|
|
418
|
+
protoOf(AvroEmitter).s2e = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
419
419
|
var tmp;
|
|
420
420
|
if (_this__u8e3s4 instanceof Dict) {
|
|
421
|
-
tmp = new MapType('map', this.
|
|
421
|
+
tmp = new MapType('map', this.s2e(_this__u8e3s4.p25_1, module_0, hasEmitted));
|
|
422
422
|
} else {
|
|
423
423
|
if (_this__u8e3s4 instanceof Iterable) {
|
|
424
|
-
tmp = new ArrayType('array', this.
|
|
424
|
+
tmp = new ArrayType('array', this.s2e(_this__u8e3s4.f25_1, module_0, hasEmitted));
|
|
425
425
|
} else {
|
|
426
426
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
427
|
-
var type = _this__u8e3s4.
|
|
427
|
+
var type = _this__u8e3s4.s25_1;
|
|
428
428
|
var tmp_0;
|
|
429
429
|
if (type instanceof String_0) {
|
|
430
430
|
tmp_0 = new SimpleType('string');
|
|
431
431
|
} else {
|
|
432
432
|
if (type instanceof Integer) {
|
|
433
433
|
var tmp_1;
|
|
434
|
-
switch (type.
|
|
434
|
+
switch (type.x25_1.q2_1) {
|
|
435
435
|
case 0:
|
|
436
436
|
tmp_1 = new SimpleType('int');
|
|
437
437
|
break;
|
|
@@ -446,7 +446,7 @@ protoOf(AvroEmitter).o2d = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
|
446
446
|
} else {
|
|
447
447
|
if (type instanceof Number_0) {
|
|
448
448
|
var tmp_2;
|
|
449
|
-
switch (type.
|
|
449
|
+
switch (type.v25_1.q2_1) {
|
|
450
450
|
case 0:
|
|
451
451
|
tmp_2 = new SimpleType('float');
|
|
452
452
|
break;
|
|
@@ -474,30 +474,30 @@ protoOf(AvroEmitter).o2d = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
|
474
474
|
tmp = tmp_0;
|
|
475
475
|
} else {
|
|
476
476
|
if (_this__u8e3s4 instanceof Custom) {
|
|
477
|
-
var def = findType(module_0, this, _this__u8e3s4.
|
|
477
|
+
var def = findType(module_0, this, _this__u8e3s4.d25_1);
|
|
478
478
|
var tmp_3;
|
|
479
479
|
if (def instanceof Type) {
|
|
480
480
|
var tmp_4;
|
|
481
|
-
if (hasEmitted.
|
|
481
|
+
if (hasEmitted.h1(def.d28_1.v())) {
|
|
482
482
|
// Inline function 'kotlin.let' call
|
|
483
483
|
// Inline function 'community.flock.wirespec.converter.avro.AvroEmitter.emit.stub_for_inlining' call
|
|
484
|
-
var p0 = def.
|
|
484
|
+
var p0 = def.d28_1.v();
|
|
485
485
|
tmp_4 = new SimpleType(p0);
|
|
486
486
|
} else {
|
|
487
487
|
// Inline function 'kotlin.also' call
|
|
488
488
|
// Inline function 'community.flock.wirespec.converter.avro.AvroEmitter.emit.<anonymous>' call
|
|
489
|
-
hasEmitted.e(def.
|
|
490
|
-
tmp_4 = this.
|
|
489
|
+
hasEmitted.e(def.d28_1.v());
|
|
490
|
+
tmp_4 = this.t2e(def, module_0, hasEmitted);
|
|
491
491
|
}
|
|
492
492
|
tmp_3 = tmp_4;
|
|
493
493
|
} else {
|
|
494
494
|
if (def instanceof Enum) {
|
|
495
|
-
tmp_3 = new SimpleType(def.
|
|
495
|
+
tmp_3 = new SimpleType(def.y28_1.v());
|
|
496
496
|
} else {
|
|
497
497
|
if (def instanceof Refined) {
|
|
498
498
|
tmp_3 = new SimpleType('string');
|
|
499
499
|
} else {
|
|
500
|
-
tmp_3 = new SimpleType(_this__u8e3s4.
|
|
500
|
+
tmp_3 = new SimpleType(_this__u8e3s4.d25_1);
|
|
501
501
|
}
|
|
502
502
|
}
|
|
503
503
|
}
|
|
@@ -518,43 +518,43 @@ protoOf(AvroEmitter).o2d = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
|
518
518
|
}
|
|
519
519
|
return tmp;
|
|
520
520
|
};
|
|
521
|
-
protoOf(AvroEmitter).
|
|
522
|
-
var ref = _this__u8e3s4.
|
|
521
|
+
protoOf(AvroEmitter).u2e = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
522
|
+
var ref = _this__u8e3s4.a27_1;
|
|
523
523
|
var tmp;
|
|
524
524
|
if (ref instanceof Iterable) {
|
|
525
|
-
tmp = new ArrayType('array', this.
|
|
525
|
+
tmp = new ArrayType('array', this.s2e(ref.f25_1, module_0, hasEmitted));
|
|
526
526
|
} else {
|
|
527
|
-
tmp = this.
|
|
527
|
+
tmp = this.s2e(ref, module_0, hasEmitted);
|
|
528
528
|
}
|
|
529
529
|
return tmp;
|
|
530
530
|
};
|
|
531
|
-
protoOf(AvroEmitter).
|
|
532
|
-
var tmp0_name = _this__u8e3s4.
|
|
531
|
+
protoOf(AvroEmitter).t2e = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
532
|
+
var tmp0_name = _this__u8e3s4.d28_1.v();
|
|
533
533
|
// Inline function 'kotlin.collections.map' call
|
|
534
|
-
var this_0 = _this__u8e3s4.
|
|
534
|
+
var this_0 = _this__u8e3s4.e28_1.n28_1;
|
|
535
535
|
// Inline function 'kotlin.collections.mapTo' call
|
|
536
536
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
537
537
|
var _iterator__ex2g4s = this_0.g();
|
|
538
538
|
while (_iterator__ex2g4s.h()) {
|
|
539
539
|
var item = _iterator__ex2g4s.i();
|
|
540
540
|
// Inline function 'community.flock.wirespec.converter.avro.AvroEmitter.emit.<anonymous>' call
|
|
541
|
-
var tmp = item.
|
|
541
|
+
var tmp = item.z26_1.v();
|
|
542
542
|
var tmp_0;
|
|
543
|
-
if (item.
|
|
544
|
-
tmp_0 = new TypeList([new SimpleType('null'), AvroEmitter_getInstance().
|
|
543
|
+
if (item.a27_1.xn()) {
|
|
544
|
+
tmp_0 = new TypeList([new SimpleType('null'), AvroEmitter_getInstance().u2e(item, module_0, hasEmitted)]);
|
|
545
545
|
} else {
|
|
546
|
-
tmp_0 = new TypeList([AvroEmitter_getInstance().
|
|
546
|
+
tmp_0 = new TypeList([AvroEmitter_getInstance().u2e(item, module_0, hasEmitted)]);
|
|
547
547
|
}
|
|
548
548
|
var tmp$ret$0 = new Field_0(tmp, tmp_0);
|
|
549
549
|
destination.e(tmp$ret$0);
|
|
550
550
|
}
|
|
551
551
|
return new RecordType('record', tmp0_name, VOID, destination);
|
|
552
552
|
};
|
|
553
|
-
protoOf(AvroEmitter).
|
|
553
|
+
protoOf(AvroEmitter).v2e = function (module_0) {
|
|
554
554
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
555
555
|
var hasEmitted = ArrayList_init_$Create$_0();
|
|
556
556
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
557
|
-
var tmp0 = module_0.
|
|
557
|
+
var tmp0 = module_0.j28_1.dm();
|
|
558
558
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
559
559
|
var destination = ArrayList_init_$Create$_0();
|
|
560
560
|
// Inline function 'kotlin.collections.forEach' call
|
|
@@ -565,13 +565,13 @@ protoOf(AvroEmitter).r2d = function (module_0) {
|
|
|
565
565
|
// Inline function 'community.flock.wirespec.converter.avro.AvroEmitter.emit.<anonymous>' call
|
|
566
566
|
var tmp;
|
|
567
567
|
if (element instanceof Type) {
|
|
568
|
-
tmp = AvroEmitter_getInstance().
|
|
568
|
+
tmp = AvroEmitter_getInstance().t2e(element, module_0, hasEmitted);
|
|
569
569
|
} else {
|
|
570
570
|
if (element instanceof Enum) {
|
|
571
|
-
tmp = AvroEmitter_getInstance().
|
|
571
|
+
tmp = AvroEmitter_getInstance().q2e(element);
|
|
572
572
|
} else {
|
|
573
573
|
if (element instanceof Union) {
|
|
574
|
-
tmp = AvroEmitter_getInstance().
|
|
574
|
+
tmp = AvroEmitter_getInstance().r2e(element);
|
|
575
575
|
} else {
|
|
576
576
|
tmp = null;
|
|
577
577
|
}
|
|
@@ -588,37 +588,37 @@ protoOf(AvroEmitter).r2d = function (module_0) {
|
|
|
588
588
|
}
|
|
589
589
|
return destination;
|
|
590
590
|
};
|
|
591
|
-
protoOf(AvroEmitter).
|
|
591
|
+
protoOf(AvroEmitter).w28 = function (enum_0, module_0) {
|
|
592
592
|
// Inline function 'kotlin.TODO' call
|
|
593
593
|
var reason = 'Not yet implemented';
|
|
594
594
|
throw new NotImplementedError('An operation is not implemented: ' + reason);
|
|
595
595
|
};
|
|
596
|
-
protoOf(AvroEmitter).
|
|
596
|
+
protoOf(AvroEmitter).p28 = function (refined) {
|
|
597
597
|
// Inline function 'kotlin.TODO' call
|
|
598
598
|
var reason = 'Not yet implemented';
|
|
599
599
|
throw new NotImplementedError('An operation is not implemented: ' + reason);
|
|
600
600
|
};
|
|
601
|
-
protoOf(AvroEmitter).
|
|
601
|
+
protoOf(AvroEmitter).g29 = function (endpoint) {
|
|
602
602
|
// Inline function 'kotlin.TODO' call
|
|
603
603
|
var reason = 'Not yet implemented';
|
|
604
604
|
throw new NotImplementedError('An operation is not implemented: ' + reason);
|
|
605
605
|
};
|
|
606
|
-
protoOf(AvroEmitter).
|
|
606
|
+
protoOf(AvroEmitter).b29 = function (union) {
|
|
607
607
|
// Inline function 'kotlin.TODO' call
|
|
608
608
|
var reason = 'Not yet implemented';
|
|
609
609
|
throw new NotImplementedError('An operation is not implemented: ' + reason);
|
|
610
610
|
};
|
|
611
|
-
protoOf(AvroEmitter).
|
|
611
|
+
protoOf(AvroEmitter).b27 = function (identifier) {
|
|
612
612
|
// Inline function 'kotlin.TODO' call
|
|
613
613
|
var reason = 'Not yet implemented';
|
|
614
614
|
throw new NotImplementedError('An operation is not implemented: ' + reason);
|
|
615
615
|
};
|
|
616
|
-
protoOf(AvroEmitter).
|
|
616
|
+
protoOf(AvroEmitter).c29 = function (channel) {
|
|
617
617
|
// Inline function 'kotlin.TODO' call
|
|
618
618
|
var reason = 'Not yet implemented';
|
|
619
619
|
throw new NotImplementedError('An operation is not implemented: ' + reason);
|
|
620
620
|
};
|
|
621
|
-
protoOf(AvroEmitter).
|
|
621
|
+
protoOf(AvroEmitter).r27 = function () {
|
|
622
622
|
var reason = 'Not yet implemented';
|
|
623
623
|
throw new NotImplementedError('An operation is not implemented: ' + reason);
|
|
624
624
|
};
|
|
@@ -637,30 +637,30 @@ function Companion_getInstance() {
|
|
|
637
637
|
function $serializer() {
|
|
638
638
|
$serializer_instance = this;
|
|
639
639
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.Field', this, 4);
|
|
640
|
-
tmp0_serialDesc.
|
|
641
|
-
tmp0_serialDesc.
|
|
642
|
-
tmp0_serialDesc.
|
|
643
|
-
tmp0_serialDesc.
|
|
644
|
-
this.
|
|
645
|
-
}
|
|
646
|
-
protoOf($serializer).
|
|
647
|
-
var tmp0_desc = this.
|
|
648
|
-
var tmp1_output = encoder.
|
|
649
|
-
tmp1_output.
|
|
650
|
-
tmp1_output.
|
|
651
|
-
if (tmp1_output.
|
|
652
|
-
tmp1_output.
|
|
640
|
+
tmp0_serialDesc.ix('name', false);
|
|
641
|
+
tmp0_serialDesc.ix('type', false);
|
|
642
|
+
tmp0_serialDesc.ix('doc', true);
|
|
643
|
+
tmp0_serialDesc.ix('default', true);
|
|
644
|
+
this.w2e_1 = tmp0_serialDesc;
|
|
645
|
+
}
|
|
646
|
+
protoOf($serializer).x2e = function (encoder, value) {
|
|
647
|
+
var tmp0_desc = this.w2e_1;
|
|
648
|
+
var tmp1_output = encoder.yp(tmp0_desc);
|
|
649
|
+
tmp1_output.nr(tmp0_desc, 0, value.i2e_1);
|
|
650
|
+
tmp1_output.pr(tmp0_desc, 1, TypeListSerializer_getInstance(), value.j2e_1);
|
|
651
|
+
if (tmp1_output.vr(tmp0_desc, 2) ? true : !(value.k2e_1 == null)) {
|
|
652
|
+
tmp1_output.rr(tmp0_desc, 2, StringSerializer_getInstance(), value.k2e_1);
|
|
653
653
|
}
|
|
654
|
-
if (tmp1_output.
|
|
655
|
-
tmp1_output.
|
|
654
|
+
if (tmp1_output.vr(tmp0_desc, 3) ? true : !(value.l2e_1 == null)) {
|
|
655
|
+
tmp1_output.rr(tmp0_desc, 3, StringSerializer_getInstance(), value.l2e_1);
|
|
656
656
|
}
|
|
657
|
-
tmp1_output.
|
|
657
|
+
tmp1_output.zp(tmp0_desc);
|
|
658
658
|
};
|
|
659
|
-
protoOf($serializer).
|
|
660
|
-
return this.
|
|
659
|
+
protoOf($serializer).ym = function (encoder, value) {
|
|
660
|
+
return this.x2e(encoder, value instanceof Field_0 ? value : THROW_CCE());
|
|
661
661
|
};
|
|
662
|
-
protoOf($serializer).
|
|
663
|
-
var tmp0_desc = this.
|
|
662
|
+
protoOf($serializer).zm = function (decoder) {
|
|
663
|
+
var tmp0_desc = this.w2e_1;
|
|
664
664
|
var tmp1_flag = true;
|
|
665
665
|
var tmp2_index = 0;
|
|
666
666
|
var tmp3_bitMask0 = 0;
|
|
@@ -668,50 +668,50 @@ protoOf($serializer).ul = function (decoder) {
|
|
|
668
668
|
var tmp5_local1 = null;
|
|
669
669
|
var tmp6_local2 = null;
|
|
670
670
|
var tmp7_local3 = null;
|
|
671
|
-
var tmp8_input = decoder.
|
|
672
|
-
if (tmp8_input.
|
|
673
|
-
tmp4_local0 = tmp8_input.
|
|
671
|
+
var tmp8_input = decoder.yp(tmp0_desc);
|
|
672
|
+
if (tmp8_input.oq()) {
|
|
673
|
+
tmp4_local0 = tmp8_input.iq(tmp0_desc, 0);
|
|
674
674
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
675
|
-
tmp5_local1 = tmp8_input.
|
|
675
|
+
tmp5_local1 = tmp8_input.kq(tmp0_desc, 1, TypeListSerializer_getInstance(), tmp5_local1);
|
|
676
676
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
677
|
-
tmp6_local2 = tmp8_input.
|
|
677
|
+
tmp6_local2 = tmp8_input.mq(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
678
678
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
679
|
-
tmp7_local3 = tmp8_input.
|
|
679
|
+
tmp7_local3 = tmp8_input.mq(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
|
|
680
680
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
681
681
|
} else
|
|
682
682
|
while (tmp1_flag) {
|
|
683
|
-
tmp2_index = tmp8_input.
|
|
683
|
+
tmp2_index = tmp8_input.pq(tmp0_desc);
|
|
684
684
|
switch (tmp2_index) {
|
|
685
685
|
case -1:
|
|
686
686
|
tmp1_flag = false;
|
|
687
687
|
break;
|
|
688
688
|
case 0:
|
|
689
|
-
tmp4_local0 = tmp8_input.
|
|
689
|
+
tmp4_local0 = tmp8_input.iq(tmp0_desc, 0);
|
|
690
690
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
691
691
|
break;
|
|
692
692
|
case 1:
|
|
693
|
-
tmp5_local1 = tmp8_input.
|
|
693
|
+
tmp5_local1 = tmp8_input.kq(tmp0_desc, 1, TypeListSerializer_getInstance(), tmp5_local1);
|
|
694
694
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
695
695
|
break;
|
|
696
696
|
case 2:
|
|
697
|
-
tmp6_local2 = tmp8_input.
|
|
697
|
+
tmp6_local2 = tmp8_input.mq(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
698
698
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
699
699
|
break;
|
|
700
700
|
case 3:
|
|
701
|
-
tmp7_local3 = tmp8_input.
|
|
701
|
+
tmp7_local3 = tmp8_input.mq(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
|
|
702
702
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
703
703
|
break;
|
|
704
704
|
default:
|
|
705
705
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
706
706
|
}
|
|
707
707
|
}
|
|
708
|
-
tmp8_input.
|
|
708
|
+
tmp8_input.zp(tmp0_desc);
|
|
709
709
|
return Field_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
710
710
|
};
|
|
711
|
-
protoOf($serializer).
|
|
712
|
-
return this.
|
|
711
|
+
protoOf($serializer).xm = function () {
|
|
712
|
+
return this.w2e_1;
|
|
713
713
|
};
|
|
714
|
-
protoOf($serializer).
|
|
714
|
+
protoOf($serializer).by = function () {
|
|
715
715
|
// Inline function 'kotlin.arrayOf' call
|
|
716
716
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
717
717
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -725,18 +725,18 @@ function $serializer_getInstance() {
|
|
|
725
725
|
}
|
|
726
726
|
function Field_init_$Init$(seen0, name, type, doc, default_0, serializationConstructorMarker, $this) {
|
|
727
727
|
if (!(3 === (3 & seen0))) {
|
|
728
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance().
|
|
728
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance().w2e_1);
|
|
729
729
|
}
|
|
730
|
-
$this.
|
|
731
|
-
$this.
|
|
730
|
+
$this.i2e_1 = name;
|
|
731
|
+
$this.j2e_1 = type;
|
|
732
732
|
if (0 === (seen0 & 4))
|
|
733
|
-
$this.
|
|
733
|
+
$this.k2e_1 = null;
|
|
734
734
|
else
|
|
735
|
-
$this.
|
|
735
|
+
$this.k2e_1 = doc;
|
|
736
736
|
if (0 === (seen0 & 8))
|
|
737
|
-
$this.
|
|
737
|
+
$this.l2e_1 = null;
|
|
738
738
|
else
|
|
739
|
-
$this.
|
|
739
|
+
$this.l2e_1 = default_0;
|
|
740
740
|
return $this;
|
|
741
741
|
}
|
|
742
742
|
function Field_init_$Create$(seen0, name, type, doc, default_0, serializationConstructorMarker) {
|
|
@@ -759,11 +759,11 @@ function Companion_getInstance_0() {
|
|
|
759
759
|
}
|
|
760
760
|
function Companion_1() {
|
|
761
761
|
}
|
|
762
|
-
protoOf(Companion_1).
|
|
762
|
+
protoOf(Companion_1).l19 = function () {
|
|
763
763
|
return TypeSerializer_getInstance();
|
|
764
764
|
};
|
|
765
|
-
protoOf(Companion_1).
|
|
766
|
-
return this.
|
|
765
|
+
protoOf(Companion_1).my = function (typeParamsSerializers) {
|
|
766
|
+
return this.l19();
|
|
767
767
|
};
|
|
768
768
|
var Companion_instance_1;
|
|
769
769
|
function Companion_getInstance_1() {
|
|
@@ -778,50 +778,50 @@ function Companion_getInstance_2() {
|
|
|
778
778
|
function $serializer_0() {
|
|
779
779
|
$serializer_instance_0 = this;
|
|
780
780
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.SimpleType', this, 1);
|
|
781
|
-
tmp0_serialDesc.
|
|
782
|
-
this.
|
|
781
|
+
tmp0_serialDesc.ix('value', false);
|
|
782
|
+
this.y2e_1 = tmp0_serialDesc;
|
|
783
783
|
}
|
|
784
|
-
protoOf($serializer_0).
|
|
785
|
-
var tmp0_desc = this.
|
|
786
|
-
var tmp1_output = encoder.
|
|
787
|
-
tmp1_output.
|
|
788
|
-
tmp1_output.
|
|
784
|
+
protoOf($serializer_0).z2e = function (encoder, value) {
|
|
785
|
+
var tmp0_desc = this.y2e_1;
|
|
786
|
+
var tmp1_output = encoder.yp(tmp0_desc);
|
|
787
|
+
tmp1_output.nr(tmp0_desc, 0, value.o2d_1);
|
|
788
|
+
tmp1_output.zp(tmp0_desc);
|
|
789
789
|
};
|
|
790
|
-
protoOf($serializer_0).
|
|
791
|
-
return this.
|
|
790
|
+
protoOf($serializer_0).ym = function (encoder, value) {
|
|
791
|
+
return this.z2e(encoder, value instanceof SimpleType ? value : THROW_CCE());
|
|
792
792
|
};
|
|
793
|
-
protoOf($serializer_0).
|
|
794
|
-
var tmp0_desc = this.
|
|
793
|
+
protoOf($serializer_0).zm = function (decoder) {
|
|
794
|
+
var tmp0_desc = this.y2e_1;
|
|
795
795
|
var tmp1_flag = true;
|
|
796
796
|
var tmp2_index = 0;
|
|
797
797
|
var tmp3_bitMask0 = 0;
|
|
798
798
|
var tmp4_local0 = null;
|
|
799
|
-
var tmp5_input = decoder.
|
|
800
|
-
if (tmp5_input.
|
|
801
|
-
tmp4_local0 = tmp5_input.
|
|
799
|
+
var tmp5_input = decoder.yp(tmp0_desc);
|
|
800
|
+
if (tmp5_input.oq()) {
|
|
801
|
+
tmp4_local0 = tmp5_input.iq(tmp0_desc, 0);
|
|
802
802
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
803
803
|
} else
|
|
804
804
|
while (tmp1_flag) {
|
|
805
|
-
tmp2_index = tmp5_input.
|
|
805
|
+
tmp2_index = tmp5_input.pq(tmp0_desc);
|
|
806
806
|
switch (tmp2_index) {
|
|
807
807
|
case -1:
|
|
808
808
|
tmp1_flag = false;
|
|
809
809
|
break;
|
|
810
810
|
case 0:
|
|
811
|
-
tmp4_local0 = tmp5_input.
|
|
811
|
+
tmp4_local0 = tmp5_input.iq(tmp0_desc, 0);
|
|
812
812
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
813
813
|
break;
|
|
814
814
|
default:
|
|
815
815
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
816
816
|
}
|
|
817
817
|
}
|
|
818
|
-
tmp5_input.
|
|
818
|
+
tmp5_input.zp(tmp0_desc);
|
|
819
819
|
return SimpleType_init_$Create$(tmp3_bitMask0, tmp4_local0, null);
|
|
820
820
|
};
|
|
821
|
-
protoOf($serializer_0).
|
|
822
|
-
return this.
|
|
821
|
+
protoOf($serializer_0).xm = function () {
|
|
822
|
+
return this.y2e_1;
|
|
823
823
|
};
|
|
824
|
-
protoOf($serializer_0).
|
|
824
|
+
protoOf($serializer_0).by = function () {
|
|
825
825
|
// Inline function 'kotlin.arrayOf' call
|
|
826
826
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
827
827
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -835,9 +835,9 @@ function $serializer_getInstance_0() {
|
|
|
835
835
|
}
|
|
836
836
|
function SimpleType_init_$Init$(seen0, value, serializationConstructorMarker, $this) {
|
|
837
837
|
if (!(1 === (1 & seen0))) {
|
|
838
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_0().
|
|
838
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_0().y2e_1);
|
|
839
839
|
}
|
|
840
|
-
$this.
|
|
840
|
+
$this.o2d_1 = value;
|
|
841
841
|
return $this;
|
|
842
842
|
}
|
|
843
843
|
function SimpleType_init_$Create$(seen0, value, serializationConstructorMarker) {
|
|
@@ -849,9 +849,9 @@ function Companion_3() {
|
|
|
849
849
|
// Inline function 'kotlin.arrayOf' call
|
|
850
850
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
851
851
|
// Inline function 'kotlin.js.asDynamic' call
|
|
852
|
-
tmp.
|
|
852
|
+
tmp.a2f_1 = [null, null, null, new ArrayListSerializer($serializer_getInstance()), null];
|
|
853
853
|
}
|
|
854
|
-
protoOf(Companion_3).
|
|
854
|
+
protoOf(Companion_3).l19 = function () {
|
|
855
855
|
return $serializer_getInstance_1();
|
|
856
856
|
};
|
|
857
857
|
var Companion_instance_3;
|
|
@@ -863,33 +863,33 @@ function Companion_getInstance_3() {
|
|
|
863
863
|
function $serializer_1() {
|
|
864
864
|
$serializer_instance_1 = this;
|
|
865
865
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.RecordType', this, 5);
|
|
866
|
-
tmp0_serialDesc.
|
|
867
|
-
tmp0_serialDesc.
|
|
868
|
-
tmp0_serialDesc.
|
|
869
|
-
tmp0_serialDesc.
|
|
870
|
-
tmp0_serialDesc.
|
|
871
|
-
this.
|
|
872
|
-
}
|
|
873
|
-
protoOf($serializer_1).
|
|
874
|
-
var tmp0_desc = this.
|
|
875
|
-
var tmp1_output = encoder.
|
|
876
|
-
var tmp2_cached = Companion_getInstance_3().
|
|
877
|
-
tmp1_output.
|
|
878
|
-
tmp1_output.
|
|
879
|
-
if (tmp1_output.
|
|
880
|
-
tmp1_output.
|
|
866
|
+
tmp0_serialDesc.ix('type', false);
|
|
867
|
+
tmp0_serialDesc.ix('name', false);
|
|
868
|
+
tmp0_serialDesc.ix('namespace', true);
|
|
869
|
+
tmp0_serialDesc.ix('fields', false);
|
|
870
|
+
tmp0_serialDesc.ix('doc', true);
|
|
871
|
+
this.b2f_1 = tmp0_serialDesc;
|
|
872
|
+
}
|
|
873
|
+
protoOf($serializer_1).c2f = function (encoder, value) {
|
|
874
|
+
var tmp0_desc = this.b2f_1;
|
|
875
|
+
var tmp1_output = encoder.yp(tmp0_desc);
|
|
876
|
+
var tmp2_cached = Companion_getInstance_3().a2f_1;
|
|
877
|
+
tmp1_output.nr(tmp0_desc, 0, value.b2e_1);
|
|
878
|
+
tmp1_output.nr(tmp0_desc, 1, value.c2e_1);
|
|
879
|
+
if (tmp1_output.vr(tmp0_desc, 2) ? true : !(value.d2e_1 == null)) {
|
|
880
|
+
tmp1_output.rr(tmp0_desc, 2, StringSerializer_getInstance(), value.d2e_1);
|
|
881
881
|
}
|
|
882
|
-
tmp1_output.
|
|
883
|
-
if (tmp1_output.
|
|
884
|
-
tmp1_output.
|
|
882
|
+
tmp1_output.pr(tmp0_desc, 3, tmp2_cached[3], value.e2e_1);
|
|
883
|
+
if (tmp1_output.vr(tmp0_desc, 4) ? true : !(value.f2e_1 == null)) {
|
|
884
|
+
tmp1_output.rr(tmp0_desc, 4, StringSerializer_getInstance(), value.f2e_1);
|
|
885
885
|
}
|
|
886
|
-
tmp1_output.
|
|
886
|
+
tmp1_output.zp(tmp0_desc);
|
|
887
887
|
};
|
|
888
|
-
protoOf($serializer_1).
|
|
889
|
-
return this.
|
|
888
|
+
protoOf($serializer_1).ym = function (encoder, value) {
|
|
889
|
+
return this.c2f(encoder, value instanceof RecordType ? value : THROW_CCE());
|
|
890
890
|
};
|
|
891
|
-
protoOf($serializer_1).
|
|
892
|
-
var tmp0_desc = this.
|
|
891
|
+
protoOf($serializer_1).zm = function (decoder) {
|
|
892
|
+
var tmp0_desc = this.b2f_1;
|
|
893
893
|
var tmp1_flag = true;
|
|
894
894
|
var tmp2_index = 0;
|
|
895
895
|
var tmp3_bitMask0 = 0;
|
|
@@ -898,58 +898,58 @@ protoOf($serializer_1).ul = function (decoder) {
|
|
|
898
898
|
var tmp6_local2 = null;
|
|
899
899
|
var tmp7_local3 = null;
|
|
900
900
|
var tmp8_local4 = null;
|
|
901
|
-
var tmp9_input = decoder.
|
|
902
|
-
var tmp10_cached = Companion_getInstance_3().
|
|
903
|
-
if (tmp9_input.
|
|
904
|
-
tmp4_local0 = tmp9_input.
|
|
901
|
+
var tmp9_input = decoder.yp(tmp0_desc);
|
|
902
|
+
var tmp10_cached = Companion_getInstance_3().a2f_1;
|
|
903
|
+
if (tmp9_input.oq()) {
|
|
904
|
+
tmp4_local0 = tmp9_input.iq(tmp0_desc, 0);
|
|
905
905
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
906
|
-
tmp5_local1 = tmp9_input.
|
|
906
|
+
tmp5_local1 = tmp9_input.iq(tmp0_desc, 1);
|
|
907
907
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
908
|
-
tmp6_local2 = tmp9_input.
|
|
908
|
+
tmp6_local2 = tmp9_input.mq(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
909
909
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
910
|
-
tmp7_local3 = tmp9_input.
|
|
910
|
+
tmp7_local3 = tmp9_input.kq(tmp0_desc, 3, tmp10_cached[3], tmp7_local3);
|
|
911
911
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
912
|
-
tmp8_local4 = tmp9_input.
|
|
912
|
+
tmp8_local4 = tmp9_input.mq(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
|
|
913
913
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
914
914
|
} else
|
|
915
915
|
while (tmp1_flag) {
|
|
916
|
-
tmp2_index = tmp9_input.
|
|
916
|
+
tmp2_index = tmp9_input.pq(tmp0_desc);
|
|
917
917
|
switch (tmp2_index) {
|
|
918
918
|
case -1:
|
|
919
919
|
tmp1_flag = false;
|
|
920
920
|
break;
|
|
921
921
|
case 0:
|
|
922
|
-
tmp4_local0 = tmp9_input.
|
|
922
|
+
tmp4_local0 = tmp9_input.iq(tmp0_desc, 0);
|
|
923
923
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
924
924
|
break;
|
|
925
925
|
case 1:
|
|
926
|
-
tmp5_local1 = tmp9_input.
|
|
926
|
+
tmp5_local1 = tmp9_input.iq(tmp0_desc, 1);
|
|
927
927
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
928
928
|
break;
|
|
929
929
|
case 2:
|
|
930
|
-
tmp6_local2 = tmp9_input.
|
|
930
|
+
tmp6_local2 = tmp9_input.mq(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
931
931
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
932
932
|
break;
|
|
933
933
|
case 3:
|
|
934
|
-
tmp7_local3 = tmp9_input.
|
|
934
|
+
tmp7_local3 = tmp9_input.kq(tmp0_desc, 3, tmp10_cached[3], tmp7_local3);
|
|
935
935
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
936
936
|
break;
|
|
937
937
|
case 4:
|
|
938
|
-
tmp8_local4 = tmp9_input.
|
|
938
|
+
tmp8_local4 = tmp9_input.mq(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
|
|
939
939
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
940
940
|
break;
|
|
941
941
|
default:
|
|
942
942
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
943
943
|
}
|
|
944
944
|
}
|
|
945
|
-
tmp9_input.
|
|
945
|
+
tmp9_input.zp(tmp0_desc);
|
|
946
946
|
return RecordType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null);
|
|
947
947
|
};
|
|
948
|
-
protoOf($serializer_1).
|
|
949
|
-
return this.
|
|
948
|
+
protoOf($serializer_1).xm = function () {
|
|
949
|
+
return this.b2f_1;
|
|
950
950
|
};
|
|
951
|
-
protoOf($serializer_1).
|
|
952
|
-
var tmp0_cached = Companion_getInstance_3().
|
|
951
|
+
protoOf($serializer_1).by = function () {
|
|
952
|
+
var tmp0_cached = Companion_getInstance_3().a2f_1;
|
|
953
953
|
// Inline function 'kotlin.arrayOf' call
|
|
954
954
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
955
955
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -963,19 +963,19 @@ function $serializer_getInstance_1() {
|
|
|
963
963
|
}
|
|
964
964
|
function RecordType_init_$Init$(seen0, type, name, namespace, fields, doc, serializationConstructorMarker, $this) {
|
|
965
965
|
if (!(11 === (11 & seen0))) {
|
|
966
|
-
throwMissingFieldException(seen0, 11, $serializer_getInstance_1().
|
|
966
|
+
throwMissingFieldException(seen0, 11, $serializer_getInstance_1().b2f_1);
|
|
967
967
|
}
|
|
968
|
-
$this.
|
|
969
|
-
$this.
|
|
968
|
+
$this.b2e_1 = type;
|
|
969
|
+
$this.c2e_1 = name;
|
|
970
970
|
if (0 === (seen0 & 4))
|
|
971
|
-
$this.
|
|
971
|
+
$this.d2e_1 = null;
|
|
972
972
|
else
|
|
973
|
-
$this.
|
|
974
|
-
$this.
|
|
973
|
+
$this.d2e_1 = namespace;
|
|
974
|
+
$this.e2e_1 = fields;
|
|
975
975
|
if (0 === (seen0 & 16))
|
|
976
|
-
$this.
|
|
976
|
+
$this.f2e_1 = null;
|
|
977
977
|
else
|
|
978
|
-
$this.
|
|
978
|
+
$this.f2e_1 = doc;
|
|
979
979
|
return $this;
|
|
980
980
|
}
|
|
981
981
|
function RecordType_init_$Create$(seen0, type, name, namespace, fields, doc, serializationConstructorMarker) {
|
|
@@ -983,7 +983,7 @@ function RecordType_init_$Create$(seen0, type, name, namespace, fields, doc, ser
|
|
|
983
983
|
}
|
|
984
984
|
function Companion_4() {
|
|
985
985
|
}
|
|
986
|
-
protoOf(Companion_4).
|
|
986
|
+
protoOf(Companion_4).l19 = function () {
|
|
987
987
|
return $serializer_getInstance_2();
|
|
988
988
|
};
|
|
989
989
|
var Companion_instance_4;
|
|
@@ -993,59 +993,59 @@ function Companion_getInstance_4() {
|
|
|
993
993
|
function $serializer_2() {
|
|
994
994
|
$serializer_instance_2 = this;
|
|
995
995
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.ArrayType', this, 2);
|
|
996
|
-
tmp0_serialDesc.
|
|
997
|
-
tmp0_serialDesc.
|
|
998
|
-
this.
|
|
999
|
-
}
|
|
1000
|
-
protoOf($serializer_2).
|
|
1001
|
-
var tmp0_desc = this.
|
|
1002
|
-
var tmp1_output = encoder.
|
|
1003
|
-
tmp1_output.
|
|
1004
|
-
tmp1_output.
|
|
1005
|
-
tmp1_output.
|
|
1006
|
-
};
|
|
1007
|
-
protoOf($serializer_2).
|
|
1008
|
-
return this.
|
|
1009
|
-
};
|
|
1010
|
-
protoOf($serializer_2).
|
|
1011
|
-
var tmp0_desc = this.
|
|
996
|
+
tmp0_serialDesc.ix('type', false);
|
|
997
|
+
tmp0_serialDesc.ix('items', false);
|
|
998
|
+
this.d2f_1 = tmp0_serialDesc;
|
|
999
|
+
}
|
|
1000
|
+
protoOf($serializer_2).e2f = function (encoder, value) {
|
|
1001
|
+
var tmp0_desc = this.d2f_1;
|
|
1002
|
+
var tmp1_output = encoder.yp(tmp0_desc);
|
|
1003
|
+
tmp1_output.nr(tmp0_desc, 0, value.g2e_1);
|
|
1004
|
+
tmp1_output.pr(tmp0_desc, 1, TypeSerializer_getInstance(), value.h2e_1);
|
|
1005
|
+
tmp1_output.zp(tmp0_desc);
|
|
1006
|
+
};
|
|
1007
|
+
protoOf($serializer_2).ym = function (encoder, value) {
|
|
1008
|
+
return this.e2f(encoder, value instanceof ArrayType ? value : THROW_CCE());
|
|
1009
|
+
};
|
|
1010
|
+
protoOf($serializer_2).zm = function (decoder) {
|
|
1011
|
+
var tmp0_desc = this.d2f_1;
|
|
1012
1012
|
var tmp1_flag = true;
|
|
1013
1013
|
var tmp2_index = 0;
|
|
1014
1014
|
var tmp3_bitMask0 = 0;
|
|
1015
1015
|
var tmp4_local0 = null;
|
|
1016
1016
|
var tmp5_local1 = null;
|
|
1017
|
-
var tmp6_input = decoder.
|
|
1018
|
-
if (tmp6_input.
|
|
1019
|
-
tmp4_local0 = tmp6_input.
|
|
1017
|
+
var tmp6_input = decoder.yp(tmp0_desc);
|
|
1018
|
+
if (tmp6_input.oq()) {
|
|
1019
|
+
tmp4_local0 = tmp6_input.iq(tmp0_desc, 0);
|
|
1020
1020
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1021
|
-
tmp5_local1 = tmp6_input.
|
|
1021
|
+
tmp5_local1 = tmp6_input.kq(tmp0_desc, 1, TypeSerializer_getInstance(), tmp5_local1);
|
|
1022
1022
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1023
1023
|
} else
|
|
1024
1024
|
while (tmp1_flag) {
|
|
1025
|
-
tmp2_index = tmp6_input.
|
|
1025
|
+
tmp2_index = tmp6_input.pq(tmp0_desc);
|
|
1026
1026
|
switch (tmp2_index) {
|
|
1027
1027
|
case -1:
|
|
1028
1028
|
tmp1_flag = false;
|
|
1029
1029
|
break;
|
|
1030
1030
|
case 0:
|
|
1031
|
-
tmp4_local0 = tmp6_input.
|
|
1031
|
+
tmp4_local0 = tmp6_input.iq(tmp0_desc, 0);
|
|
1032
1032
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1033
1033
|
break;
|
|
1034
1034
|
case 1:
|
|
1035
|
-
tmp5_local1 = tmp6_input.
|
|
1035
|
+
tmp5_local1 = tmp6_input.kq(tmp0_desc, 1, TypeSerializer_getInstance(), tmp5_local1);
|
|
1036
1036
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1037
1037
|
break;
|
|
1038
1038
|
default:
|
|
1039
1039
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1040
1040
|
}
|
|
1041
1041
|
}
|
|
1042
|
-
tmp6_input.
|
|
1042
|
+
tmp6_input.zp(tmp0_desc);
|
|
1043
1043
|
return ArrayType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1044
1044
|
};
|
|
1045
|
-
protoOf($serializer_2).
|
|
1046
|
-
return this.
|
|
1045
|
+
protoOf($serializer_2).xm = function () {
|
|
1046
|
+
return this.d2f_1;
|
|
1047
1047
|
};
|
|
1048
|
-
protoOf($serializer_2).
|
|
1048
|
+
protoOf($serializer_2).by = function () {
|
|
1049
1049
|
// Inline function 'kotlin.arrayOf' call
|
|
1050
1050
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1051
1051
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1059,10 +1059,10 @@ function $serializer_getInstance_2() {
|
|
|
1059
1059
|
}
|
|
1060
1060
|
function ArrayType_init_$Init$(seen0, type, items, serializationConstructorMarker, $this) {
|
|
1061
1061
|
if (!(3 === (3 & seen0))) {
|
|
1062
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().
|
|
1062
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().d2f_1);
|
|
1063
1063
|
}
|
|
1064
|
-
$this.
|
|
1065
|
-
$this.
|
|
1064
|
+
$this.g2e_1 = type;
|
|
1065
|
+
$this.h2e_1 = items;
|
|
1066
1066
|
return $this;
|
|
1067
1067
|
}
|
|
1068
1068
|
function ArrayType_init_$Create$(seen0, type, items, serializationConstructorMarker) {
|
|
@@ -1070,7 +1070,7 @@ function ArrayType_init_$Create$(seen0, type, items, serializationConstructorMar
|
|
|
1070
1070
|
}
|
|
1071
1071
|
function Companion_5() {
|
|
1072
1072
|
}
|
|
1073
|
-
protoOf(Companion_5).
|
|
1073
|
+
protoOf(Companion_5).l19 = function () {
|
|
1074
1074
|
return $serializer_getInstance_3();
|
|
1075
1075
|
};
|
|
1076
1076
|
var Companion_instance_5;
|
|
@@ -1080,59 +1080,59 @@ function Companion_getInstance_5() {
|
|
|
1080
1080
|
function $serializer_3() {
|
|
1081
1081
|
$serializer_instance_3 = this;
|
|
1082
1082
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.MapType', this, 2);
|
|
1083
|
-
tmp0_serialDesc.
|
|
1084
|
-
tmp0_serialDesc.
|
|
1085
|
-
this.
|
|
1086
|
-
}
|
|
1087
|
-
protoOf($serializer_3).
|
|
1088
|
-
var tmp0_desc = this.
|
|
1089
|
-
var tmp1_output = encoder.
|
|
1090
|
-
tmp1_output.
|
|
1091
|
-
tmp1_output.
|
|
1092
|
-
tmp1_output.
|
|
1093
|
-
};
|
|
1094
|
-
protoOf($serializer_3).
|
|
1095
|
-
return this.
|
|
1096
|
-
};
|
|
1097
|
-
protoOf($serializer_3).
|
|
1098
|
-
var tmp0_desc = this.
|
|
1083
|
+
tmp0_serialDesc.ix('type', false);
|
|
1084
|
+
tmp0_serialDesc.ix('values', false);
|
|
1085
|
+
this.f2f_1 = tmp0_serialDesc;
|
|
1086
|
+
}
|
|
1087
|
+
protoOf($serializer_3).g2f = function (encoder, value) {
|
|
1088
|
+
var tmp0_desc = this.f2f_1;
|
|
1089
|
+
var tmp1_output = encoder.yp(tmp0_desc);
|
|
1090
|
+
tmp1_output.nr(tmp0_desc, 0, value.r2d_1);
|
|
1091
|
+
tmp1_output.pr(tmp0_desc, 1, TypeSerializer_getInstance(), value.s2d_1);
|
|
1092
|
+
tmp1_output.zp(tmp0_desc);
|
|
1093
|
+
};
|
|
1094
|
+
protoOf($serializer_3).ym = function (encoder, value) {
|
|
1095
|
+
return this.g2f(encoder, value instanceof MapType ? value : THROW_CCE());
|
|
1096
|
+
};
|
|
1097
|
+
protoOf($serializer_3).zm = function (decoder) {
|
|
1098
|
+
var tmp0_desc = this.f2f_1;
|
|
1099
1099
|
var tmp1_flag = true;
|
|
1100
1100
|
var tmp2_index = 0;
|
|
1101
1101
|
var tmp3_bitMask0 = 0;
|
|
1102
1102
|
var tmp4_local0 = null;
|
|
1103
1103
|
var tmp5_local1 = null;
|
|
1104
|
-
var tmp6_input = decoder.
|
|
1105
|
-
if (tmp6_input.
|
|
1106
|
-
tmp4_local0 = tmp6_input.
|
|
1104
|
+
var tmp6_input = decoder.yp(tmp0_desc);
|
|
1105
|
+
if (tmp6_input.oq()) {
|
|
1106
|
+
tmp4_local0 = tmp6_input.iq(tmp0_desc, 0);
|
|
1107
1107
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1108
|
-
tmp5_local1 = tmp6_input.
|
|
1108
|
+
tmp5_local1 = tmp6_input.kq(tmp0_desc, 1, TypeSerializer_getInstance(), tmp5_local1);
|
|
1109
1109
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1110
1110
|
} else
|
|
1111
1111
|
while (tmp1_flag) {
|
|
1112
|
-
tmp2_index = tmp6_input.
|
|
1112
|
+
tmp2_index = tmp6_input.pq(tmp0_desc);
|
|
1113
1113
|
switch (tmp2_index) {
|
|
1114
1114
|
case -1:
|
|
1115
1115
|
tmp1_flag = false;
|
|
1116
1116
|
break;
|
|
1117
1117
|
case 0:
|
|
1118
|
-
tmp4_local0 = tmp6_input.
|
|
1118
|
+
tmp4_local0 = tmp6_input.iq(tmp0_desc, 0);
|
|
1119
1119
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1120
1120
|
break;
|
|
1121
1121
|
case 1:
|
|
1122
|
-
tmp5_local1 = tmp6_input.
|
|
1122
|
+
tmp5_local1 = tmp6_input.kq(tmp0_desc, 1, TypeSerializer_getInstance(), tmp5_local1);
|
|
1123
1123
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1124
1124
|
break;
|
|
1125
1125
|
default:
|
|
1126
1126
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1127
1127
|
}
|
|
1128
1128
|
}
|
|
1129
|
-
tmp6_input.
|
|
1129
|
+
tmp6_input.zp(tmp0_desc);
|
|
1130
1130
|
return MapType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1131
1131
|
};
|
|
1132
|
-
protoOf($serializer_3).
|
|
1133
|
-
return this.
|
|
1132
|
+
protoOf($serializer_3).xm = function () {
|
|
1133
|
+
return this.f2f_1;
|
|
1134
1134
|
};
|
|
1135
|
-
protoOf($serializer_3).
|
|
1135
|
+
protoOf($serializer_3).by = function () {
|
|
1136
1136
|
// Inline function 'kotlin.arrayOf' call
|
|
1137
1137
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1138
1138
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1146,10 +1146,10 @@ function $serializer_getInstance_3() {
|
|
|
1146
1146
|
}
|
|
1147
1147
|
function MapType_init_$Init$(seen0, type, values, serializationConstructorMarker, $this) {
|
|
1148
1148
|
if (!(3 === (3 & seen0))) {
|
|
1149
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_3().
|
|
1149
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_3().f2f_1);
|
|
1150
1150
|
}
|
|
1151
|
-
$this.
|
|
1152
|
-
$this.
|
|
1151
|
+
$this.r2d_1 = type;
|
|
1152
|
+
$this.s2d_1 = values;
|
|
1153
1153
|
return $this;
|
|
1154
1154
|
}
|
|
1155
1155
|
function MapType_init_$Create$(seen0, type, values, serializationConstructorMarker) {
|
|
@@ -1161,9 +1161,9 @@ function Companion_6() {
|
|
|
1161
1161
|
// Inline function 'kotlin.arrayOf' call
|
|
1162
1162
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1163
1163
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1164
|
-
tmp.
|
|
1164
|
+
tmp.h2f_1 = [null, null, null, new ArrayListSerializer(StringSerializer_getInstance())];
|
|
1165
1165
|
}
|
|
1166
|
-
protoOf(Companion_6).
|
|
1166
|
+
protoOf(Companion_6).l19 = function () {
|
|
1167
1167
|
return $serializer_getInstance_4();
|
|
1168
1168
|
};
|
|
1169
1169
|
var Companion_instance_6;
|
|
@@ -1175,29 +1175,29 @@ function Companion_getInstance_6() {
|
|
|
1175
1175
|
function $serializer_4() {
|
|
1176
1176
|
$serializer_instance_4 = this;
|
|
1177
1177
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.EnumType', this, 4);
|
|
1178
|
-
tmp0_serialDesc.
|
|
1179
|
-
tmp0_serialDesc.
|
|
1180
|
-
tmp0_serialDesc.
|
|
1181
|
-
tmp0_serialDesc.
|
|
1182
|
-
this.
|
|
1183
|
-
}
|
|
1184
|
-
protoOf($serializer_4).
|
|
1185
|
-
var tmp0_desc = this.
|
|
1186
|
-
var tmp1_output = encoder.
|
|
1187
|
-
var tmp2_cached = Companion_getInstance_6().
|
|
1188
|
-
tmp1_output.
|
|
1189
|
-
tmp1_output.
|
|
1190
|
-
if (tmp1_output.
|
|
1191
|
-
tmp1_output.
|
|
1178
|
+
tmp0_serialDesc.ix('type', false);
|
|
1179
|
+
tmp0_serialDesc.ix('name', false);
|
|
1180
|
+
tmp0_serialDesc.ix('doc', true);
|
|
1181
|
+
tmp0_serialDesc.ix('symbols', false);
|
|
1182
|
+
this.i2f_1 = tmp0_serialDesc;
|
|
1183
|
+
}
|
|
1184
|
+
protoOf($serializer_4).j2f = function (encoder, value) {
|
|
1185
|
+
var tmp0_desc = this.i2f_1;
|
|
1186
|
+
var tmp1_output = encoder.yp(tmp0_desc);
|
|
1187
|
+
var tmp2_cached = Companion_getInstance_6().h2f_1;
|
|
1188
|
+
tmp1_output.nr(tmp0_desc, 0, value.x2d_1);
|
|
1189
|
+
tmp1_output.nr(tmp0_desc, 1, value.y2d_1);
|
|
1190
|
+
if (tmp1_output.vr(tmp0_desc, 2) ? true : !(value.z2d_1 == null)) {
|
|
1191
|
+
tmp1_output.rr(tmp0_desc, 2, StringSerializer_getInstance(), value.z2d_1);
|
|
1192
1192
|
}
|
|
1193
|
-
tmp1_output.
|
|
1194
|
-
tmp1_output.
|
|
1193
|
+
tmp1_output.pr(tmp0_desc, 3, tmp2_cached[3], value.a2e_1);
|
|
1194
|
+
tmp1_output.zp(tmp0_desc);
|
|
1195
1195
|
};
|
|
1196
|
-
protoOf($serializer_4).
|
|
1197
|
-
return this.
|
|
1196
|
+
protoOf($serializer_4).ym = function (encoder, value) {
|
|
1197
|
+
return this.j2f(encoder, value instanceof EnumType ? value : THROW_CCE());
|
|
1198
1198
|
};
|
|
1199
|
-
protoOf($serializer_4).
|
|
1200
|
-
var tmp0_desc = this.
|
|
1199
|
+
protoOf($serializer_4).zm = function (decoder) {
|
|
1200
|
+
var tmp0_desc = this.i2f_1;
|
|
1201
1201
|
var tmp1_flag = true;
|
|
1202
1202
|
var tmp2_index = 0;
|
|
1203
1203
|
var tmp3_bitMask0 = 0;
|
|
@@ -1205,52 +1205,52 @@ protoOf($serializer_4).ul = function (decoder) {
|
|
|
1205
1205
|
var tmp5_local1 = null;
|
|
1206
1206
|
var tmp6_local2 = null;
|
|
1207
1207
|
var tmp7_local3 = null;
|
|
1208
|
-
var tmp8_input = decoder.
|
|
1209
|
-
var tmp9_cached = Companion_getInstance_6().
|
|
1210
|
-
if (tmp8_input.
|
|
1211
|
-
tmp4_local0 = tmp8_input.
|
|
1208
|
+
var tmp8_input = decoder.yp(tmp0_desc);
|
|
1209
|
+
var tmp9_cached = Companion_getInstance_6().h2f_1;
|
|
1210
|
+
if (tmp8_input.oq()) {
|
|
1211
|
+
tmp4_local0 = tmp8_input.iq(tmp0_desc, 0);
|
|
1212
1212
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1213
|
-
tmp5_local1 = tmp8_input.
|
|
1213
|
+
tmp5_local1 = tmp8_input.iq(tmp0_desc, 1);
|
|
1214
1214
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1215
|
-
tmp6_local2 = tmp8_input.
|
|
1215
|
+
tmp6_local2 = tmp8_input.mq(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1216
1216
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1217
|
-
tmp7_local3 = tmp8_input.
|
|
1217
|
+
tmp7_local3 = tmp8_input.kq(tmp0_desc, 3, tmp9_cached[3], tmp7_local3);
|
|
1218
1218
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1219
1219
|
} else
|
|
1220
1220
|
while (tmp1_flag) {
|
|
1221
|
-
tmp2_index = tmp8_input.
|
|
1221
|
+
tmp2_index = tmp8_input.pq(tmp0_desc);
|
|
1222
1222
|
switch (tmp2_index) {
|
|
1223
1223
|
case -1:
|
|
1224
1224
|
tmp1_flag = false;
|
|
1225
1225
|
break;
|
|
1226
1226
|
case 0:
|
|
1227
|
-
tmp4_local0 = tmp8_input.
|
|
1227
|
+
tmp4_local0 = tmp8_input.iq(tmp0_desc, 0);
|
|
1228
1228
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1229
1229
|
break;
|
|
1230
1230
|
case 1:
|
|
1231
|
-
tmp5_local1 = tmp8_input.
|
|
1231
|
+
tmp5_local1 = tmp8_input.iq(tmp0_desc, 1);
|
|
1232
1232
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1233
1233
|
break;
|
|
1234
1234
|
case 2:
|
|
1235
|
-
tmp6_local2 = tmp8_input.
|
|
1235
|
+
tmp6_local2 = tmp8_input.mq(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1236
1236
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1237
1237
|
break;
|
|
1238
1238
|
case 3:
|
|
1239
|
-
tmp7_local3 = tmp8_input.
|
|
1239
|
+
tmp7_local3 = tmp8_input.kq(tmp0_desc, 3, tmp9_cached[3], tmp7_local3);
|
|
1240
1240
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1241
1241
|
break;
|
|
1242
1242
|
default:
|
|
1243
1243
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1244
1244
|
}
|
|
1245
1245
|
}
|
|
1246
|
-
tmp8_input.
|
|
1246
|
+
tmp8_input.zp(tmp0_desc);
|
|
1247
1247
|
return EnumType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
1248
1248
|
};
|
|
1249
|
-
protoOf($serializer_4).
|
|
1250
|
-
return this.
|
|
1249
|
+
protoOf($serializer_4).xm = function () {
|
|
1250
|
+
return this.i2f_1;
|
|
1251
1251
|
};
|
|
1252
|
-
protoOf($serializer_4).
|
|
1253
|
-
var tmp0_cached = Companion_getInstance_6().
|
|
1252
|
+
protoOf($serializer_4).by = function () {
|
|
1253
|
+
var tmp0_cached = Companion_getInstance_6().h2f_1;
|
|
1254
1254
|
// Inline function 'kotlin.arrayOf' call
|
|
1255
1255
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1256
1256
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1264,15 +1264,15 @@ function $serializer_getInstance_4() {
|
|
|
1264
1264
|
}
|
|
1265
1265
|
function EnumType_init_$Init$(seen0, type, name, doc, symbols, serializationConstructorMarker, $this) {
|
|
1266
1266
|
if (!(11 === (11 & seen0))) {
|
|
1267
|
-
throwMissingFieldException(seen0, 11, $serializer_getInstance_4().
|
|
1267
|
+
throwMissingFieldException(seen0, 11, $serializer_getInstance_4().i2f_1);
|
|
1268
1268
|
}
|
|
1269
|
-
$this.
|
|
1270
|
-
$this.
|
|
1269
|
+
$this.x2d_1 = type;
|
|
1270
|
+
$this.y2d_1 = name;
|
|
1271
1271
|
if (0 === (seen0 & 4))
|
|
1272
|
-
$this.
|
|
1272
|
+
$this.z2d_1 = null;
|
|
1273
1273
|
else
|
|
1274
|
-
$this.
|
|
1275
|
-
$this.
|
|
1274
|
+
$this.z2d_1 = doc;
|
|
1275
|
+
$this.a2e_1 = symbols;
|
|
1276
1276
|
return $this;
|
|
1277
1277
|
}
|
|
1278
1278
|
function EnumType_init_$Create$(seen0, type, name, doc, symbols, serializationConstructorMarker) {
|
|
@@ -1280,7 +1280,7 @@ function EnumType_init_$Create$(seen0, type, name, doc, symbols, serializationCo
|
|
|
1280
1280
|
}
|
|
1281
1281
|
function Companion_7() {
|
|
1282
1282
|
}
|
|
1283
|
-
protoOf(Companion_7).
|
|
1283
|
+
protoOf(Companion_7).l19 = function () {
|
|
1284
1284
|
return $serializer_getInstance_5();
|
|
1285
1285
|
};
|
|
1286
1286
|
var Companion_instance_7;
|
|
@@ -1290,59 +1290,59 @@ function Companion_getInstance_7() {
|
|
|
1290
1290
|
function $serializer_5() {
|
|
1291
1291
|
$serializer_instance_5 = this;
|
|
1292
1292
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.UnionType', this, 2);
|
|
1293
|
-
tmp0_serialDesc.
|
|
1294
|
-
tmp0_serialDesc.
|
|
1295
|
-
this.
|
|
1296
|
-
}
|
|
1297
|
-
protoOf($serializer_5).
|
|
1298
|
-
var tmp0_desc = this.
|
|
1299
|
-
var tmp1_output = encoder.
|
|
1300
|
-
tmp1_output.
|
|
1301
|
-
tmp1_output.
|
|
1302
|
-
tmp1_output.
|
|
1303
|
-
};
|
|
1304
|
-
protoOf($serializer_5).
|
|
1305
|
-
return this.
|
|
1306
|
-
};
|
|
1307
|
-
protoOf($serializer_5).
|
|
1308
|
-
var tmp0_desc = this.
|
|
1293
|
+
tmp0_serialDesc.ix('name', false);
|
|
1294
|
+
tmp0_serialDesc.ix('type', false);
|
|
1295
|
+
this.k2f_1 = tmp0_serialDesc;
|
|
1296
|
+
}
|
|
1297
|
+
protoOf($serializer_5).l2f = function (encoder, value) {
|
|
1298
|
+
var tmp0_desc = this.k2f_1;
|
|
1299
|
+
var tmp1_output = encoder.yp(tmp0_desc);
|
|
1300
|
+
tmp1_output.nr(tmp0_desc, 0, value.p2d_1);
|
|
1301
|
+
tmp1_output.pr(tmp0_desc, 1, TypeListSerializer_getInstance(), value.q2d_1);
|
|
1302
|
+
tmp1_output.zp(tmp0_desc);
|
|
1303
|
+
};
|
|
1304
|
+
protoOf($serializer_5).ym = function (encoder, value) {
|
|
1305
|
+
return this.l2f(encoder, value instanceof UnionType ? value : THROW_CCE());
|
|
1306
|
+
};
|
|
1307
|
+
protoOf($serializer_5).zm = function (decoder) {
|
|
1308
|
+
var tmp0_desc = this.k2f_1;
|
|
1309
1309
|
var tmp1_flag = true;
|
|
1310
1310
|
var tmp2_index = 0;
|
|
1311
1311
|
var tmp3_bitMask0 = 0;
|
|
1312
1312
|
var tmp4_local0 = null;
|
|
1313
1313
|
var tmp5_local1 = null;
|
|
1314
|
-
var tmp6_input = decoder.
|
|
1315
|
-
if (tmp6_input.
|
|
1316
|
-
tmp4_local0 = tmp6_input.
|
|
1314
|
+
var tmp6_input = decoder.yp(tmp0_desc);
|
|
1315
|
+
if (tmp6_input.oq()) {
|
|
1316
|
+
tmp4_local0 = tmp6_input.iq(tmp0_desc, 0);
|
|
1317
1317
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1318
|
-
tmp5_local1 = tmp6_input.
|
|
1318
|
+
tmp5_local1 = tmp6_input.kq(tmp0_desc, 1, TypeListSerializer_getInstance(), tmp5_local1);
|
|
1319
1319
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1320
1320
|
} else
|
|
1321
1321
|
while (tmp1_flag) {
|
|
1322
|
-
tmp2_index = tmp6_input.
|
|
1322
|
+
tmp2_index = tmp6_input.pq(tmp0_desc);
|
|
1323
1323
|
switch (tmp2_index) {
|
|
1324
1324
|
case -1:
|
|
1325
1325
|
tmp1_flag = false;
|
|
1326
1326
|
break;
|
|
1327
1327
|
case 0:
|
|
1328
|
-
tmp4_local0 = tmp6_input.
|
|
1328
|
+
tmp4_local0 = tmp6_input.iq(tmp0_desc, 0);
|
|
1329
1329
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1330
1330
|
break;
|
|
1331
1331
|
case 1:
|
|
1332
|
-
tmp5_local1 = tmp6_input.
|
|
1332
|
+
tmp5_local1 = tmp6_input.kq(tmp0_desc, 1, TypeListSerializer_getInstance(), tmp5_local1);
|
|
1333
1333
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1334
1334
|
break;
|
|
1335
1335
|
default:
|
|
1336
1336
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1337
1337
|
}
|
|
1338
1338
|
}
|
|
1339
|
-
tmp6_input.
|
|
1339
|
+
tmp6_input.zp(tmp0_desc);
|
|
1340
1340
|
return UnionType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1341
1341
|
};
|
|
1342
|
-
protoOf($serializer_5).
|
|
1343
|
-
return this.
|
|
1342
|
+
protoOf($serializer_5).xm = function () {
|
|
1343
|
+
return this.k2f_1;
|
|
1344
1344
|
};
|
|
1345
|
-
protoOf($serializer_5).
|
|
1345
|
+
protoOf($serializer_5).by = function () {
|
|
1346
1346
|
// Inline function 'kotlin.arrayOf' call
|
|
1347
1347
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1348
1348
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1356,10 +1356,10 @@ function $serializer_getInstance_5() {
|
|
|
1356
1356
|
}
|
|
1357
1357
|
function UnionType_init_$Init$(seen0, name, type, serializationConstructorMarker, $this) {
|
|
1358
1358
|
if (!(3 === (3 & seen0))) {
|
|
1359
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_5().
|
|
1359
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_5().k2f_1);
|
|
1360
1360
|
}
|
|
1361
|
-
$this.
|
|
1362
|
-
$this.
|
|
1361
|
+
$this.p2d_1 = name;
|
|
1362
|
+
$this.q2d_1 = type;
|
|
1363
1363
|
return $this;
|
|
1364
1364
|
}
|
|
1365
1365
|
function UnionType_init_$Create$(seen0, name, type, serializationConstructorMarker) {
|
|
@@ -1367,7 +1367,7 @@ function UnionType_init_$Create$(seen0, name, type, serializationConstructorMark
|
|
|
1367
1367
|
}
|
|
1368
1368
|
function Companion_8() {
|
|
1369
1369
|
}
|
|
1370
|
-
protoOf(Companion_8).
|
|
1370
|
+
protoOf(Companion_8).l19 = function () {
|
|
1371
1371
|
return $serializer_getInstance_6();
|
|
1372
1372
|
};
|
|
1373
1373
|
var Companion_instance_8;
|
|
@@ -1377,30 +1377,30 @@ function Companion_getInstance_8() {
|
|
|
1377
1377
|
function $serializer_6() {
|
|
1378
1378
|
$serializer_instance_6 = this;
|
|
1379
1379
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.LogicalType', this, 4);
|
|
1380
|
-
tmp0_serialDesc.
|
|
1381
|
-
tmp0_serialDesc.
|
|
1382
|
-
tmp0_serialDesc.
|
|
1383
|
-
tmp0_serialDesc.
|
|
1384
|
-
this.
|
|
1385
|
-
}
|
|
1386
|
-
protoOf($serializer_6).
|
|
1387
|
-
var tmp0_desc = this.
|
|
1388
|
-
var tmp1_output = encoder.
|
|
1389
|
-
tmp1_output.
|
|
1390
|
-
tmp1_output.
|
|
1391
|
-
if (tmp1_output.
|
|
1392
|
-
tmp1_output.
|
|
1380
|
+
tmp0_serialDesc.ix('type', false);
|
|
1381
|
+
tmp0_serialDesc.ix('logicalType', false);
|
|
1382
|
+
tmp0_serialDesc.ix('precision', true);
|
|
1383
|
+
tmp0_serialDesc.ix('scale', true);
|
|
1384
|
+
this.m2f_1 = tmp0_serialDesc;
|
|
1385
|
+
}
|
|
1386
|
+
protoOf($serializer_6).n2f = function (encoder, value) {
|
|
1387
|
+
var tmp0_desc = this.m2f_1;
|
|
1388
|
+
var tmp1_output = encoder.yp(tmp0_desc);
|
|
1389
|
+
tmp1_output.nr(tmp0_desc, 0, value.t2d_1);
|
|
1390
|
+
tmp1_output.nr(tmp0_desc, 1, value.u2d_1);
|
|
1391
|
+
if (tmp1_output.vr(tmp0_desc, 2) ? true : !(value.v2d_1 == null)) {
|
|
1392
|
+
tmp1_output.rr(tmp0_desc, 2, IntSerializer_getInstance(), value.v2d_1);
|
|
1393
1393
|
}
|
|
1394
|
-
if (tmp1_output.
|
|
1395
|
-
tmp1_output.
|
|
1394
|
+
if (tmp1_output.vr(tmp0_desc, 3) ? true : !(value.w2d_1 == null)) {
|
|
1395
|
+
tmp1_output.rr(tmp0_desc, 3, IntSerializer_getInstance(), value.w2d_1);
|
|
1396
1396
|
}
|
|
1397
|
-
tmp1_output.
|
|
1397
|
+
tmp1_output.zp(tmp0_desc);
|
|
1398
1398
|
};
|
|
1399
|
-
protoOf($serializer_6).
|
|
1400
|
-
return this.
|
|
1399
|
+
protoOf($serializer_6).ym = function (encoder, value) {
|
|
1400
|
+
return this.n2f(encoder, value instanceof LogicalType ? value : THROW_CCE());
|
|
1401
1401
|
};
|
|
1402
|
-
protoOf($serializer_6).
|
|
1403
|
-
var tmp0_desc = this.
|
|
1402
|
+
protoOf($serializer_6).zm = function (decoder) {
|
|
1403
|
+
var tmp0_desc = this.m2f_1;
|
|
1404
1404
|
var tmp1_flag = true;
|
|
1405
1405
|
var tmp2_index = 0;
|
|
1406
1406
|
var tmp3_bitMask0 = 0;
|
|
@@ -1408,50 +1408,50 @@ protoOf($serializer_6).ul = function (decoder) {
|
|
|
1408
1408
|
var tmp5_local1 = null;
|
|
1409
1409
|
var tmp6_local2 = null;
|
|
1410
1410
|
var tmp7_local3 = null;
|
|
1411
|
-
var tmp8_input = decoder.
|
|
1412
|
-
if (tmp8_input.
|
|
1413
|
-
tmp4_local0 = tmp8_input.
|
|
1411
|
+
var tmp8_input = decoder.yp(tmp0_desc);
|
|
1412
|
+
if (tmp8_input.oq()) {
|
|
1413
|
+
tmp4_local0 = tmp8_input.iq(tmp0_desc, 0);
|
|
1414
1414
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1415
|
-
tmp5_local1 = tmp8_input.
|
|
1415
|
+
tmp5_local1 = tmp8_input.iq(tmp0_desc, 1);
|
|
1416
1416
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1417
|
-
tmp6_local2 = tmp8_input.
|
|
1417
|
+
tmp6_local2 = tmp8_input.mq(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
|
|
1418
1418
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1419
|
-
tmp7_local3 = tmp8_input.
|
|
1419
|
+
tmp7_local3 = tmp8_input.mq(tmp0_desc, 3, IntSerializer_getInstance(), tmp7_local3);
|
|
1420
1420
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1421
1421
|
} else
|
|
1422
1422
|
while (tmp1_flag) {
|
|
1423
|
-
tmp2_index = tmp8_input.
|
|
1423
|
+
tmp2_index = tmp8_input.pq(tmp0_desc);
|
|
1424
1424
|
switch (tmp2_index) {
|
|
1425
1425
|
case -1:
|
|
1426
1426
|
tmp1_flag = false;
|
|
1427
1427
|
break;
|
|
1428
1428
|
case 0:
|
|
1429
|
-
tmp4_local0 = tmp8_input.
|
|
1429
|
+
tmp4_local0 = tmp8_input.iq(tmp0_desc, 0);
|
|
1430
1430
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1431
1431
|
break;
|
|
1432
1432
|
case 1:
|
|
1433
|
-
tmp5_local1 = tmp8_input.
|
|
1433
|
+
tmp5_local1 = tmp8_input.iq(tmp0_desc, 1);
|
|
1434
1434
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1435
1435
|
break;
|
|
1436
1436
|
case 2:
|
|
1437
|
-
tmp6_local2 = tmp8_input.
|
|
1437
|
+
tmp6_local2 = tmp8_input.mq(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
|
|
1438
1438
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1439
1439
|
break;
|
|
1440
1440
|
case 3:
|
|
1441
|
-
tmp7_local3 = tmp8_input.
|
|
1441
|
+
tmp7_local3 = tmp8_input.mq(tmp0_desc, 3, IntSerializer_getInstance(), tmp7_local3);
|
|
1442
1442
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1443
1443
|
break;
|
|
1444
1444
|
default:
|
|
1445
1445
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1446
1446
|
}
|
|
1447
1447
|
}
|
|
1448
|
-
tmp8_input.
|
|
1448
|
+
tmp8_input.zp(tmp0_desc);
|
|
1449
1449
|
return LogicalType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
1450
1450
|
};
|
|
1451
|
-
protoOf($serializer_6).
|
|
1452
|
-
return this.
|
|
1451
|
+
protoOf($serializer_6).xm = function () {
|
|
1452
|
+
return this.m2f_1;
|
|
1453
1453
|
};
|
|
1454
|
-
protoOf($serializer_6).
|
|
1454
|
+
protoOf($serializer_6).by = function () {
|
|
1455
1455
|
// Inline function 'kotlin.arrayOf' call
|
|
1456
1456
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1457
1457
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1465,18 +1465,18 @@ function $serializer_getInstance_6() {
|
|
|
1465
1465
|
}
|
|
1466
1466
|
function LogicalType_init_$Init$(seen0, type, logicalType, precision, scale, serializationConstructorMarker, $this) {
|
|
1467
1467
|
if (!(3 === (3 & seen0))) {
|
|
1468
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_6().
|
|
1468
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_6().m2f_1);
|
|
1469
1469
|
}
|
|
1470
|
-
$this.
|
|
1471
|
-
$this.
|
|
1470
|
+
$this.t2d_1 = type;
|
|
1471
|
+
$this.u2d_1 = logicalType;
|
|
1472
1472
|
if (0 === (seen0 & 4))
|
|
1473
|
-
$this.
|
|
1473
|
+
$this.v2d_1 = null;
|
|
1474
1474
|
else
|
|
1475
|
-
$this.
|
|
1475
|
+
$this.v2d_1 = precision;
|
|
1476
1476
|
if (0 === (seen0 & 8))
|
|
1477
|
-
$this.
|
|
1477
|
+
$this.w2d_1 = null;
|
|
1478
1478
|
else
|
|
1479
|
-
$this.
|
|
1479
|
+
$this.w2d_1 = scale;
|
|
1480
1480
|
return $this;
|
|
1481
1481
|
}
|
|
1482
1482
|
function LogicalType_init_$Create$(seen0, type, logicalType, precision, scale, serializationConstructorMarker) {
|
|
@@ -1485,19 +1485,19 @@ function LogicalType_init_$Create$(seen0, type, logicalType, precision, scale, s
|
|
|
1485
1485
|
function Field_0(name, type, doc, default_0) {
|
|
1486
1486
|
doc = doc === VOID ? null : doc;
|
|
1487
1487
|
default_0 = default_0 === VOID ? null : default_0;
|
|
1488
|
-
this.
|
|
1489
|
-
this.
|
|
1490
|
-
this.
|
|
1491
|
-
this.
|
|
1488
|
+
this.i2e_1 = name;
|
|
1489
|
+
this.j2e_1 = type;
|
|
1490
|
+
this.k2e_1 = doc;
|
|
1491
|
+
this.l2e_1 = default_0;
|
|
1492
1492
|
}
|
|
1493
1493
|
protoOf(Field_0).toString = function () {
|
|
1494
|
-
return 'Field(name=' + this.
|
|
1494
|
+
return 'Field(name=' + this.i2e_1 + ', type=' + this.j2e_1.toString() + ', doc=' + this.k2e_1 + ', default=' + this.l2e_1 + ')';
|
|
1495
1495
|
};
|
|
1496
1496
|
protoOf(Field_0).hashCode = function () {
|
|
1497
|
-
var result = getStringHashCode(this.
|
|
1498
|
-
result = imul(result, 31) + this.
|
|
1499
|
-
result = imul(result, 31) + (this.
|
|
1500
|
-
result = imul(result, 31) + (this.
|
|
1497
|
+
var result = getStringHashCode(this.i2e_1);
|
|
1498
|
+
result = imul(result, 31) + this.j2e_1.hashCode() | 0;
|
|
1499
|
+
result = imul(result, 31) + (this.k2e_1 == null ? 0 : getStringHashCode(this.k2e_1)) | 0;
|
|
1500
|
+
result = imul(result, 31) + (this.l2e_1 == null ? 0 : getStringHashCode(this.l2e_1)) | 0;
|
|
1501
1501
|
return result;
|
|
1502
1502
|
};
|
|
1503
1503
|
protoOf(Field_0).equals = function (other) {
|
|
@@ -1506,37 +1506,37 @@ protoOf(Field_0).equals = function (other) {
|
|
|
1506
1506
|
if (!(other instanceof Field_0))
|
|
1507
1507
|
return false;
|
|
1508
1508
|
var tmp0_other_with_cast = other instanceof Field_0 ? other : THROW_CCE();
|
|
1509
|
-
if (!(this.
|
|
1509
|
+
if (!(this.i2e_1 === tmp0_other_with_cast.i2e_1))
|
|
1510
1510
|
return false;
|
|
1511
|
-
if (!this.
|
|
1511
|
+
if (!this.j2e_1.equals(tmp0_other_with_cast.j2e_1))
|
|
1512
1512
|
return false;
|
|
1513
|
-
if (!(this.
|
|
1513
|
+
if (!(this.k2e_1 == tmp0_other_with_cast.k2e_1))
|
|
1514
1514
|
return false;
|
|
1515
|
-
if (!(this.
|
|
1515
|
+
if (!(this.l2e_1 == tmp0_other_with_cast.l2e_1))
|
|
1516
1516
|
return false;
|
|
1517
1517
|
return true;
|
|
1518
1518
|
};
|
|
1519
1519
|
function TypeList(type) {
|
|
1520
1520
|
AbstractList.call(this);
|
|
1521
|
-
this.
|
|
1522
|
-
this.
|
|
1521
|
+
this.o2f_1 = toList_0(type);
|
|
1522
|
+
this.p2f_1 = this.o2f_1.j();
|
|
1523
1523
|
}
|
|
1524
1524
|
protoOf(TypeList).j = function () {
|
|
1525
|
-
return this.
|
|
1525
|
+
return this.p2f_1;
|
|
1526
1526
|
};
|
|
1527
1527
|
protoOf(TypeList).k = function (index) {
|
|
1528
|
-
return this.
|
|
1528
|
+
return this.o2f_1.k(index);
|
|
1529
1529
|
};
|
|
1530
1530
|
function Type_0() {
|
|
1531
1531
|
}
|
|
1532
1532
|
function SimpleType(value) {
|
|
1533
|
-
this.
|
|
1533
|
+
this.o2d_1 = value;
|
|
1534
1534
|
}
|
|
1535
1535
|
protoOf(SimpleType).toString = function () {
|
|
1536
|
-
return 'SimpleType(value=' + this.
|
|
1536
|
+
return 'SimpleType(value=' + this.o2d_1 + ')';
|
|
1537
1537
|
};
|
|
1538
1538
|
protoOf(SimpleType).hashCode = function () {
|
|
1539
|
-
return getStringHashCode(this.
|
|
1539
|
+
return getStringHashCode(this.o2d_1);
|
|
1540
1540
|
};
|
|
1541
1541
|
protoOf(SimpleType).equals = function (other) {
|
|
1542
1542
|
if (this === other)
|
|
@@ -1544,7 +1544,7 @@ protoOf(SimpleType).equals = function (other) {
|
|
|
1544
1544
|
if (!(other instanceof SimpleType))
|
|
1545
1545
|
return false;
|
|
1546
1546
|
var tmp0_other_with_cast = other instanceof SimpleType ? other : THROW_CCE();
|
|
1547
|
-
if (!(this.
|
|
1547
|
+
if (!(this.o2d_1 === tmp0_other_with_cast.o2d_1))
|
|
1548
1548
|
return false;
|
|
1549
1549
|
return true;
|
|
1550
1550
|
};
|
|
@@ -1552,21 +1552,21 @@ function RecordType(type, name, namespace, fields, doc) {
|
|
|
1552
1552
|
Companion_getInstance_3();
|
|
1553
1553
|
namespace = namespace === VOID ? null : namespace;
|
|
1554
1554
|
doc = doc === VOID ? null : doc;
|
|
1555
|
-
this.
|
|
1556
|
-
this.
|
|
1557
|
-
this.
|
|
1558
|
-
this.
|
|
1559
|
-
this.
|
|
1555
|
+
this.b2e_1 = type;
|
|
1556
|
+
this.c2e_1 = name;
|
|
1557
|
+
this.d2e_1 = namespace;
|
|
1558
|
+
this.e2e_1 = fields;
|
|
1559
|
+
this.f2e_1 = doc;
|
|
1560
1560
|
}
|
|
1561
1561
|
protoOf(RecordType).toString = function () {
|
|
1562
|
-
return 'RecordType(type=' + this.
|
|
1562
|
+
return 'RecordType(type=' + this.b2e_1 + ', name=' + this.c2e_1 + ', namespace=' + this.d2e_1 + ', fields=' + toString(this.e2e_1) + ', doc=' + this.f2e_1 + ')';
|
|
1563
1563
|
};
|
|
1564
1564
|
protoOf(RecordType).hashCode = function () {
|
|
1565
|
-
var result = getStringHashCode(this.
|
|
1566
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1567
|
-
result = imul(result, 31) + (this.
|
|
1568
|
-
result = imul(result, 31) + hashCode(this.
|
|
1569
|
-
result = imul(result, 31) + (this.
|
|
1565
|
+
var result = getStringHashCode(this.b2e_1);
|
|
1566
|
+
result = imul(result, 31) + getStringHashCode(this.c2e_1) | 0;
|
|
1567
|
+
result = imul(result, 31) + (this.d2e_1 == null ? 0 : getStringHashCode(this.d2e_1)) | 0;
|
|
1568
|
+
result = imul(result, 31) + hashCode(this.e2e_1) | 0;
|
|
1569
|
+
result = imul(result, 31) + (this.f2e_1 == null ? 0 : getStringHashCode(this.f2e_1)) | 0;
|
|
1570
1570
|
return result;
|
|
1571
1571
|
};
|
|
1572
1572
|
protoOf(RecordType).equals = function (other) {
|
|
@@ -1575,28 +1575,28 @@ protoOf(RecordType).equals = function (other) {
|
|
|
1575
1575
|
if (!(other instanceof RecordType))
|
|
1576
1576
|
return false;
|
|
1577
1577
|
var tmp0_other_with_cast = other instanceof RecordType ? other : THROW_CCE();
|
|
1578
|
-
if (!(this.
|
|
1578
|
+
if (!(this.b2e_1 === tmp0_other_with_cast.b2e_1))
|
|
1579
1579
|
return false;
|
|
1580
|
-
if (!(this.
|
|
1580
|
+
if (!(this.c2e_1 === tmp0_other_with_cast.c2e_1))
|
|
1581
1581
|
return false;
|
|
1582
|
-
if (!(this.
|
|
1582
|
+
if (!(this.d2e_1 == tmp0_other_with_cast.d2e_1))
|
|
1583
1583
|
return false;
|
|
1584
|
-
if (!equals(this.
|
|
1584
|
+
if (!equals(this.e2e_1, tmp0_other_with_cast.e2e_1))
|
|
1585
1585
|
return false;
|
|
1586
|
-
if (!(this.
|
|
1586
|
+
if (!(this.f2e_1 == tmp0_other_with_cast.f2e_1))
|
|
1587
1587
|
return false;
|
|
1588
1588
|
return true;
|
|
1589
1589
|
};
|
|
1590
1590
|
function ArrayType(type, items) {
|
|
1591
|
-
this.
|
|
1592
|
-
this.
|
|
1591
|
+
this.g2e_1 = type;
|
|
1592
|
+
this.h2e_1 = items;
|
|
1593
1593
|
}
|
|
1594
1594
|
protoOf(ArrayType).toString = function () {
|
|
1595
|
-
return 'ArrayType(type=' + this.
|
|
1595
|
+
return 'ArrayType(type=' + this.g2e_1 + ', items=' + toString(this.h2e_1) + ')';
|
|
1596
1596
|
};
|
|
1597
1597
|
protoOf(ArrayType).hashCode = function () {
|
|
1598
|
-
var result = getStringHashCode(this.
|
|
1599
|
-
result = imul(result, 31) + hashCode(this.
|
|
1598
|
+
var result = getStringHashCode(this.g2e_1);
|
|
1599
|
+
result = imul(result, 31) + hashCode(this.h2e_1) | 0;
|
|
1600
1600
|
return result;
|
|
1601
1601
|
};
|
|
1602
1602
|
protoOf(ArrayType).equals = function (other) {
|
|
@@ -1605,22 +1605,22 @@ protoOf(ArrayType).equals = function (other) {
|
|
|
1605
1605
|
if (!(other instanceof ArrayType))
|
|
1606
1606
|
return false;
|
|
1607
1607
|
var tmp0_other_with_cast = other instanceof ArrayType ? other : THROW_CCE();
|
|
1608
|
-
if (!(this.
|
|
1608
|
+
if (!(this.g2e_1 === tmp0_other_with_cast.g2e_1))
|
|
1609
1609
|
return false;
|
|
1610
|
-
if (!equals(this.
|
|
1610
|
+
if (!equals(this.h2e_1, tmp0_other_with_cast.h2e_1))
|
|
1611
1611
|
return false;
|
|
1612
1612
|
return true;
|
|
1613
1613
|
};
|
|
1614
1614
|
function MapType(type, values) {
|
|
1615
|
-
this.
|
|
1616
|
-
this.
|
|
1615
|
+
this.r2d_1 = type;
|
|
1616
|
+
this.s2d_1 = values;
|
|
1617
1617
|
}
|
|
1618
1618
|
protoOf(MapType).toString = function () {
|
|
1619
|
-
return 'MapType(type=' + this.
|
|
1619
|
+
return 'MapType(type=' + this.r2d_1 + ', values=' + toString(this.s2d_1) + ')';
|
|
1620
1620
|
};
|
|
1621
1621
|
protoOf(MapType).hashCode = function () {
|
|
1622
|
-
var result = getStringHashCode(this.
|
|
1623
|
-
result = imul(result, 31) + hashCode(this.
|
|
1622
|
+
var result = getStringHashCode(this.r2d_1);
|
|
1623
|
+
result = imul(result, 31) + hashCode(this.s2d_1) | 0;
|
|
1624
1624
|
return result;
|
|
1625
1625
|
};
|
|
1626
1626
|
protoOf(MapType).equals = function (other) {
|
|
@@ -1629,28 +1629,28 @@ protoOf(MapType).equals = function (other) {
|
|
|
1629
1629
|
if (!(other instanceof MapType))
|
|
1630
1630
|
return false;
|
|
1631
1631
|
var tmp0_other_with_cast = other instanceof MapType ? other : THROW_CCE();
|
|
1632
|
-
if (!(this.
|
|
1632
|
+
if (!(this.r2d_1 === tmp0_other_with_cast.r2d_1))
|
|
1633
1633
|
return false;
|
|
1634
|
-
if (!equals(this.
|
|
1634
|
+
if (!equals(this.s2d_1, tmp0_other_with_cast.s2d_1))
|
|
1635
1635
|
return false;
|
|
1636
1636
|
return true;
|
|
1637
1637
|
};
|
|
1638
1638
|
function EnumType(type, name, doc, symbols) {
|
|
1639
1639
|
Companion_getInstance_6();
|
|
1640
1640
|
doc = doc === VOID ? null : doc;
|
|
1641
|
-
this.
|
|
1642
|
-
this.
|
|
1643
|
-
this.
|
|
1644
|
-
this.
|
|
1641
|
+
this.x2d_1 = type;
|
|
1642
|
+
this.y2d_1 = name;
|
|
1643
|
+
this.z2d_1 = doc;
|
|
1644
|
+
this.a2e_1 = symbols;
|
|
1645
1645
|
}
|
|
1646
1646
|
protoOf(EnumType).toString = function () {
|
|
1647
|
-
return 'EnumType(type=' + this.
|
|
1647
|
+
return 'EnumType(type=' + this.x2d_1 + ', name=' + this.y2d_1 + ', doc=' + this.z2d_1 + ', symbols=' + toString(this.a2e_1) + ')';
|
|
1648
1648
|
};
|
|
1649
1649
|
protoOf(EnumType).hashCode = function () {
|
|
1650
|
-
var result = getStringHashCode(this.
|
|
1651
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1652
|
-
result = imul(result, 31) + (this.
|
|
1653
|
-
result = imul(result, 31) + hashCode(this.
|
|
1650
|
+
var result = getStringHashCode(this.x2d_1);
|
|
1651
|
+
result = imul(result, 31) + getStringHashCode(this.y2d_1) | 0;
|
|
1652
|
+
result = imul(result, 31) + (this.z2d_1 == null ? 0 : getStringHashCode(this.z2d_1)) | 0;
|
|
1653
|
+
result = imul(result, 31) + hashCode(this.a2e_1) | 0;
|
|
1654
1654
|
return result;
|
|
1655
1655
|
};
|
|
1656
1656
|
protoOf(EnumType).equals = function (other) {
|
|
@@ -1659,26 +1659,26 @@ protoOf(EnumType).equals = function (other) {
|
|
|
1659
1659
|
if (!(other instanceof EnumType))
|
|
1660
1660
|
return false;
|
|
1661
1661
|
var tmp0_other_with_cast = other instanceof EnumType ? other : THROW_CCE();
|
|
1662
|
-
if (!(this.
|
|
1662
|
+
if (!(this.x2d_1 === tmp0_other_with_cast.x2d_1))
|
|
1663
1663
|
return false;
|
|
1664
|
-
if (!(this.
|
|
1664
|
+
if (!(this.y2d_1 === tmp0_other_with_cast.y2d_1))
|
|
1665
1665
|
return false;
|
|
1666
|
-
if (!(this.
|
|
1666
|
+
if (!(this.z2d_1 == tmp0_other_with_cast.z2d_1))
|
|
1667
1667
|
return false;
|
|
1668
|
-
if (!equals(this.
|
|
1668
|
+
if (!equals(this.a2e_1, tmp0_other_with_cast.a2e_1))
|
|
1669
1669
|
return false;
|
|
1670
1670
|
return true;
|
|
1671
1671
|
};
|
|
1672
1672
|
function UnionType(name, type) {
|
|
1673
|
-
this.
|
|
1674
|
-
this.
|
|
1673
|
+
this.p2d_1 = name;
|
|
1674
|
+
this.q2d_1 = type;
|
|
1675
1675
|
}
|
|
1676
1676
|
protoOf(UnionType).toString = function () {
|
|
1677
|
-
return 'UnionType(name=' + this.
|
|
1677
|
+
return 'UnionType(name=' + this.p2d_1 + ', type=' + this.q2d_1.toString() + ')';
|
|
1678
1678
|
};
|
|
1679
1679
|
protoOf(UnionType).hashCode = function () {
|
|
1680
|
-
var result = getStringHashCode(this.
|
|
1681
|
-
result = imul(result, 31) + this.
|
|
1680
|
+
var result = getStringHashCode(this.p2d_1);
|
|
1681
|
+
result = imul(result, 31) + this.q2d_1.hashCode() | 0;
|
|
1682
1682
|
return result;
|
|
1683
1683
|
};
|
|
1684
1684
|
protoOf(UnionType).equals = function (other) {
|
|
@@ -1687,22 +1687,22 @@ protoOf(UnionType).equals = function (other) {
|
|
|
1687
1687
|
if (!(other instanceof UnionType))
|
|
1688
1688
|
return false;
|
|
1689
1689
|
var tmp0_other_with_cast = other instanceof UnionType ? other : THROW_CCE();
|
|
1690
|
-
if (!(this.
|
|
1690
|
+
if (!(this.p2d_1 === tmp0_other_with_cast.p2d_1))
|
|
1691
1691
|
return false;
|
|
1692
|
-
if (!this.
|
|
1692
|
+
if (!this.q2d_1.equals(tmp0_other_with_cast.q2d_1))
|
|
1693
1693
|
return false;
|
|
1694
1694
|
return true;
|
|
1695
1695
|
};
|
|
1696
1696
|
function LogicalType() {
|
|
1697
1697
|
}
|
|
1698
1698
|
protoOf(LogicalType).toString = function () {
|
|
1699
|
-
return 'LogicalType(type=' + this.
|
|
1699
|
+
return 'LogicalType(type=' + this.t2d_1 + ', logicalType=' + this.u2d_1 + ', precision=' + this.v2d_1 + ', scale=' + this.w2d_1 + ')';
|
|
1700
1700
|
};
|
|
1701
1701
|
protoOf(LogicalType).hashCode = function () {
|
|
1702
|
-
var result = getStringHashCode(this.
|
|
1703
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1704
|
-
result = imul(result, 31) + (this.
|
|
1705
|
-
result = imul(result, 31) + (this.
|
|
1702
|
+
var result = getStringHashCode(this.t2d_1);
|
|
1703
|
+
result = imul(result, 31) + getStringHashCode(this.u2d_1) | 0;
|
|
1704
|
+
result = imul(result, 31) + (this.v2d_1 == null ? 0 : this.v2d_1) | 0;
|
|
1705
|
+
result = imul(result, 31) + (this.w2d_1 == null ? 0 : this.w2d_1) | 0;
|
|
1706
1706
|
return result;
|
|
1707
1707
|
};
|
|
1708
1708
|
protoOf(LogicalType).equals = function (other) {
|
|
@@ -1711,34 +1711,34 @@ protoOf(LogicalType).equals = function (other) {
|
|
|
1711
1711
|
if (!(other instanceof LogicalType))
|
|
1712
1712
|
return false;
|
|
1713
1713
|
var tmp0_other_with_cast = other instanceof LogicalType ? other : THROW_CCE();
|
|
1714
|
-
if (!(this.
|
|
1714
|
+
if (!(this.t2d_1 === tmp0_other_with_cast.t2d_1))
|
|
1715
1715
|
return false;
|
|
1716
|
-
if (!(this.
|
|
1716
|
+
if (!(this.u2d_1 === tmp0_other_with_cast.u2d_1))
|
|
1717
1717
|
return false;
|
|
1718
|
-
if (!(this.
|
|
1718
|
+
if (!(this.v2d_1 == tmp0_other_with_cast.v2d_1))
|
|
1719
1719
|
return false;
|
|
1720
|
-
if (!(this.
|
|
1720
|
+
if (!(this.w2d_1 == tmp0_other_with_cast.w2d_1))
|
|
1721
1721
|
return false;
|
|
1722
1722
|
return true;
|
|
1723
1723
|
};
|
|
1724
1724
|
function TypeListSerializer() {
|
|
1725
1725
|
TypeListSerializer_instance = this;
|
|
1726
|
-
this.
|
|
1726
|
+
this.q2f_1 = buildSerialDescriptor('TypeListSerializer', SEALED_getInstance(), []);
|
|
1727
1727
|
}
|
|
1728
|
-
protoOf(TypeListSerializer).
|
|
1729
|
-
return this.
|
|
1728
|
+
protoOf(TypeListSerializer).xm = function () {
|
|
1729
|
+
return this.q2f_1;
|
|
1730
1730
|
};
|
|
1731
|
-
protoOf(TypeListSerializer).
|
|
1732
|
-
if (value.
|
|
1733
|
-
encoder.
|
|
1731
|
+
protoOf(TypeListSerializer).r2f = function (encoder, value) {
|
|
1732
|
+
if (value.p2f_1 > 1) {
|
|
1733
|
+
encoder.qr(ListSerializer(Companion_instance_1.l19()), value);
|
|
1734
1734
|
} else {
|
|
1735
|
-
encoder.
|
|
1735
|
+
encoder.qr(Companion_instance_1.l19(), first(value));
|
|
1736
1736
|
}
|
|
1737
1737
|
};
|
|
1738
|
-
protoOf(TypeListSerializer).
|
|
1739
|
-
return this.
|
|
1738
|
+
protoOf(TypeListSerializer).ym = function (encoder, value) {
|
|
1739
|
+
return this.r2f(encoder, value instanceof TypeList ? value : THROW_CCE());
|
|
1740
1740
|
};
|
|
1741
|
-
protoOf(TypeListSerializer).
|
|
1741
|
+
protoOf(TypeListSerializer).zm = function (decoder) {
|
|
1742
1742
|
var tmp0_elvis_lhs = isInterface(decoder, JsonDecoder) ? decoder : null;
|
|
1743
1743
|
var tmp;
|
|
1744
1744
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -1747,10 +1747,10 @@ protoOf(TypeListSerializer).ul = function (decoder) {
|
|
|
1747
1747
|
tmp = tmp0_elvis_lhs;
|
|
1748
1748
|
}
|
|
1749
1749
|
var input = tmp;
|
|
1750
|
-
var element = input.
|
|
1750
|
+
var element = input.d19();
|
|
1751
1751
|
var tmp_0;
|
|
1752
1752
|
if (element instanceof JsonPrimitive) {
|
|
1753
|
-
tmp_0 = new TypeList([input.
|
|
1753
|
+
tmp_0 = new TypeList([input.c19().c17(Companion_instance_1.l19(), element)]);
|
|
1754
1754
|
} else {
|
|
1755
1755
|
if (element instanceof JsonArray) {
|
|
1756
1756
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -1760,7 +1760,7 @@ protoOf(TypeListSerializer).ul = function (decoder) {
|
|
|
1760
1760
|
while (_iterator__ex2g4s.h()) {
|
|
1761
1761
|
var item = _iterator__ex2g4s.i();
|
|
1762
1762
|
// Inline function 'community.flock.wirespec.converter.avro.TypeListSerializer.deserialize.<anonymous>' call
|
|
1763
|
-
var tmp$ret$0 = input.
|
|
1763
|
+
var tmp$ret$0 = input.c19().c17(Companion_instance_1.l19(), item);
|
|
1764
1764
|
destination.e(tmp$ret$0);
|
|
1765
1765
|
}
|
|
1766
1766
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
@@ -1768,7 +1768,7 @@ protoOf(TypeListSerializer).ul = function (decoder) {
|
|
|
1768
1768
|
tmp_0 = new TypeList(tmp$ret$3.slice());
|
|
1769
1769
|
} else {
|
|
1770
1770
|
if (element instanceof JsonObject) {
|
|
1771
|
-
tmp_0 = new TypeList([input.
|
|
1771
|
+
tmp_0 = new TypeList([input.c19().c17(Companion_instance_1.l19(), element)]);
|
|
1772
1772
|
} else {
|
|
1773
1773
|
noWhenBranchMatchedException();
|
|
1774
1774
|
}
|
|
@@ -1784,29 +1784,29 @@ function TypeListSerializer_getInstance() {
|
|
|
1784
1784
|
}
|
|
1785
1785
|
function TypeSerializer() {
|
|
1786
1786
|
TypeSerializer_instance = this;
|
|
1787
|
-
this.
|
|
1787
|
+
this.s2f_1 = buildSerialDescriptor('TypeSerializer', SEALED_getInstance(), []);
|
|
1788
1788
|
}
|
|
1789
|
-
protoOf(TypeSerializer).
|
|
1790
|
-
return this.
|
|
1789
|
+
protoOf(TypeSerializer).xm = function () {
|
|
1790
|
+
return this.s2f_1;
|
|
1791
1791
|
};
|
|
1792
|
-
protoOf(TypeSerializer).
|
|
1792
|
+
protoOf(TypeSerializer).t2f = function (encoder, value) {
|
|
1793
1793
|
if (value instanceof SimpleType) {
|
|
1794
|
-
encoder.
|
|
1794
|
+
encoder.qr(serializer(StringCompanionObject_instance), value.o2d_1);
|
|
1795
1795
|
} else {
|
|
1796
1796
|
if (value instanceof RecordType) {
|
|
1797
|
-
encoder.
|
|
1797
|
+
encoder.qr(Companion_getInstance_3().l19(), value);
|
|
1798
1798
|
} else {
|
|
1799
1799
|
if (value instanceof ArrayType) {
|
|
1800
|
-
encoder.
|
|
1800
|
+
encoder.qr(Companion_instance_4.l19(), value);
|
|
1801
1801
|
} else {
|
|
1802
1802
|
if (value instanceof MapType) {
|
|
1803
|
-
encoder.
|
|
1803
|
+
encoder.qr(Companion_instance_5.l19(), value);
|
|
1804
1804
|
} else {
|
|
1805
1805
|
if (value instanceof EnumType) {
|
|
1806
|
-
encoder.
|
|
1806
|
+
encoder.qr(Companion_getInstance_6().l19(), value);
|
|
1807
1807
|
} else {
|
|
1808
1808
|
if (value instanceof UnionType) {
|
|
1809
|
-
encoder.
|
|
1809
|
+
encoder.qr(Companion_instance_7.l19(), value);
|
|
1810
1810
|
} else {
|
|
1811
1811
|
if (value instanceof LogicalType) {
|
|
1812
1812
|
// Inline function 'kotlin.TODO' call
|
|
@@ -1821,10 +1821,10 @@ protoOf(TypeSerializer).p2e = function (encoder, value) {
|
|
|
1821
1821
|
}
|
|
1822
1822
|
}
|
|
1823
1823
|
};
|
|
1824
|
-
protoOf(TypeSerializer).
|
|
1825
|
-
return this.
|
|
1824
|
+
protoOf(TypeSerializer).ym = function (encoder, value) {
|
|
1825
|
+
return this.t2f(encoder, (!(value == null) ? isInterface(value, Type_0) : false) ? value : THROW_CCE());
|
|
1826
1826
|
};
|
|
1827
|
-
protoOf(TypeSerializer).
|
|
1827
|
+
protoOf(TypeSerializer).zm = function (decoder) {
|
|
1828
1828
|
var tmp0_elvis_lhs = isInterface(decoder, JsonDecoder) ? decoder : null;
|
|
1829
1829
|
var tmp;
|
|
1830
1830
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -1833,18 +1833,18 @@ protoOf(TypeSerializer).ul = function (decoder) {
|
|
|
1833
1833
|
tmp = tmp0_elvis_lhs;
|
|
1834
1834
|
}
|
|
1835
1835
|
var input = tmp;
|
|
1836
|
-
var element = input.
|
|
1836
|
+
var element = input.d19();
|
|
1837
1837
|
var tmp_0;
|
|
1838
1838
|
if (element instanceof JsonObject) {
|
|
1839
1839
|
var tmp_1;
|
|
1840
|
-
if (element.
|
|
1841
|
-
tmp_1 = input.
|
|
1842
|
-
} else if (element.
|
|
1843
|
-
tmp_1 = input.
|
|
1844
|
-
} else if (element.
|
|
1845
|
-
tmp_1 = input.
|
|
1846
|
-
} else if (element.
|
|
1847
|
-
tmp_1 = input.
|
|
1840
|
+
if (element.g19('items')) {
|
|
1841
|
+
tmp_1 = input.c19().c17(Companion_instance_4.l19(), element);
|
|
1842
|
+
} else if (element.g19('fields')) {
|
|
1843
|
+
tmp_1 = input.c19().c17(Companion_getInstance_3().l19(), element);
|
|
1844
|
+
} else if (element.g19('symbols')) {
|
|
1845
|
+
tmp_1 = input.c19().c17(Companion_getInstance_6().l19(), element);
|
|
1846
|
+
} else if (element.g19('logicalType')) {
|
|
1847
|
+
tmp_1 = input.c19().c17(Companion_instance_8.l19(), element);
|
|
1848
1848
|
} else {
|
|
1849
1849
|
var reason = 'Unknown object type: ' + element.toString();
|
|
1850
1850
|
throw new NotImplementedError('An operation is not implemented: ' + reason);
|
|
@@ -1852,7 +1852,7 @@ protoOf(TypeSerializer).ul = function (decoder) {
|
|
|
1852
1852
|
tmp_0 = tmp_1;
|
|
1853
1853
|
} else {
|
|
1854
1854
|
if (element instanceof JsonPrimitive) {
|
|
1855
|
-
tmp_0 = new SimpleType(element.
|
|
1855
|
+
tmp_0 = new SimpleType(element.e19());
|
|
1856
1856
|
} else {
|
|
1857
1857
|
if (element instanceof JsonArray) {
|
|
1858
1858
|
var reason_0 = 'Type can never be an array';
|
|
@@ -1871,26 +1871,26 @@ function TypeSerializer_getInstance() {
|
|
|
1871
1871
|
return TypeSerializer_instance;
|
|
1872
1872
|
}
|
|
1873
1873
|
function AvroParser$parse$lambda($this$Json) {
|
|
1874
|
-
$this$Json.
|
|
1875
|
-
$this$Json.
|
|
1874
|
+
$this$Json.u17_1 = true;
|
|
1875
|
+
$this$Json.v17_1 = true;
|
|
1876
1876
|
return Unit_instance;
|
|
1877
1877
|
}
|
|
1878
1878
|
function AvroParser() {
|
|
1879
1879
|
}
|
|
1880
|
-
protoOf(AvroParser).
|
|
1880
|
+
protoOf(AvroParser).u2f = function (moduleContent, strict) {
|
|
1881
1881
|
var json = Json(VOID, AvroParser$parse$lambda);
|
|
1882
1882
|
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
1883
|
-
var string = moduleContent.
|
|
1883
|
+
var string = moduleContent.z23_1;
|
|
1884
1884
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
1885
|
-
var this_0 = json.
|
|
1885
|
+
var this_0 = json.nq();
|
|
1886
1886
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
1887
1887
|
var this_1 = serializer_0(this_0, createKType(getKClass(Type_0), arrayOf([]), false));
|
|
1888
1888
|
var tmp$ret$1 = isInterface(this_1, KSerializer) ? this_1 : THROW_CCE();
|
|
1889
|
-
var avro = json.
|
|
1890
|
-
var tmp = AvroConverter_getInstance().
|
|
1889
|
+
var avro = json.b17(tmp$ret$1, string);
|
|
1890
|
+
var tmp = AvroConverter_getInstance().n2e(avro);
|
|
1891
1891
|
var tmp_0;
|
|
1892
1892
|
if (avro instanceof RecordType) {
|
|
1893
|
-
tmp_0 = new Channel(null, new DefinitionIdentifier(avro.
|
|
1893
|
+
tmp_0 = new Channel(null, new DefinitionIdentifier(avro.c2e_1), new Custom(avro.c2e_1, false));
|
|
1894
1894
|
} else {
|
|
1895
1895
|
if (avro instanceof ArrayType) {
|
|
1896
1896
|
throw new NotImplementedError();
|
|
@@ -1927,25 +1927,21 @@ protoOf(AvroParser).q2e = function (moduleContent, strict) {
|
|
|
1927
1927
|
} else {
|
|
1928
1928
|
tmp_1 = tmp1_elvis_lhs;
|
|
1929
1929
|
}
|
|
1930
|
-
return new AST(nonEmptyListOf(new Module(moduleContent.
|
|
1931
|
-
};
|
|
1932
|
-
protoOf(AvroParser).r2e = function (moduleContent, strict, $super) {
|
|
1933
|
-
strict = strict === VOID ? true : strict;
|
|
1934
|
-
return $super === VOID ? this.q2e(moduleContent, strict) : $super.q2e.call(this, moduleContent, strict);
|
|
1930
|
+
return new AST(nonEmptyListOf(new Module(moduleContent.y23_1, tmp_1), []));
|
|
1935
1931
|
};
|
|
1936
1932
|
var AvroParser_instance;
|
|
1937
1933
|
function AvroParser_getInstance() {
|
|
1938
1934
|
return AvroParser_instance;
|
|
1939
1935
|
}
|
|
1940
1936
|
//region block: post-declaration
|
|
1941
|
-
protoOf($serializer).
|
|
1942
|
-
protoOf($serializer_0).
|
|
1943
|
-
protoOf($serializer_1).
|
|
1944
|
-
protoOf($serializer_2).
|
|
1945
|
-
protoOf($serializer_3).
|
|
1946
|
-
protoOf($serializer_4).
|
|
1947
|
-
protoOf($serializer_5).
|
|
1948
|
-
protoOf($serializer_6).
|
|
1937
|
+
protoOf($serializer).cy = typeParametersSerializers;
|
|
1938
|
+
protoOf($serializer_0).cy = typeParametersSerializers;
|
|
1939
|
+
protoOf($serializer_1).cy = typeParametersSerializers;
|
|
1940
|
+
protoOf($serializer_2).cy = typeParametersSerializers;
|
|
1941
|
+
protoOf($serializer_3).cy = typeParametersSerializers;
|
|
1942
|
+
protoOf($serializer_4).cy = typeParametersSerializers;
|
|
1943
|
+
protoOf($serializer_5).cy = typeParametersSerializers;
|
|
1944
|
+
protoOf($serializer_6).cy = typeParametersSerializers;
|
|
1949
1945
|
//endregion
|
|
1950
1946
|
//region block: init
|
|
1951
1947
|
Companion_instance = new Companion();
|