@flock/wirespec 0.14.8 → 0.14.10
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-core.mjs +1 -0
- package/clikt-clikt.mjs +1155 -1155
- package/colormath-root-colormath.mjs +425 -425
- package/kotlin-kotlin-stdlib.mjs +10 -10
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +0 -1
- package/kotlin-rgxgen.mjs +1767 -1767
- package/kotlinx-io-kotlinx-io-core.mjs +380 -380
- package/markdown.mjs +1870 -1870
- package/mordant-mordant.mjs +1634 -1634
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +2314 -2226
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +328 -353
- package/wirespec-src-compiler-lib.mjs.map +1 -1
- package/wirespec-src-converter-avro.mjs +294 -292
- package/wirespec-src-converter-avro.mjs.map +1 -1
- package/wirespec-src-converter-openapi.mjs +338 -361
- package/wirespec-src-converter-openapi.mjs.map +1 -1
- package/wirespec-src-plugin-arguments.mjs +137 -143
- package/wirespec-src-plugin-arguments.mjs.map +1 -1
- package/wirespec-src-plugin-cli.mjs +79 -86
- package/wirespec-src-plugin-cli.mjs.map +1 -1
- package/wirespec-src-plugin-npm.d.ts +12 -21
- package/wirespec-src-plugin-npm.mjs +22 -45
- package/wirespec-src-plugin-npm.mjs.map +1 -1
- package/wirespec-src-tools-generator.mjs +14 -14
|
@@ -138,11 +138,11 @@ initMetadataForObject(TypeSerializer, 'TypeSerializer', VOID, VOID, [KSerializer
|
|
|
138
138
|
initMetadataForObject(AvroParser, 'AvroParser');
|
|
139
139
|
//endregion
|
|
140
140
|
function isNullable(_this__u8e3s4, $this) {
|
|
141
|
-
return _this__u8e3s4.o1($this.
|
|
141
|
+
return _this__u8e3s4.o1($this.g2c_1);
|
|
142
142
|
}
|
|
143
143
|
function toPrimitive(_this__u8e3s4, $this) {
|
|
144
144
|
var tmp;
|
|
145
|
-
switch (_this__u8e3s4.
|
|
145
|
+
switch (_this__u8e3s4.h2c_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.h2c_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.h2c_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.h2c_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.a2d_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.v2c_1, isNullable);
|
|
199
199
|
} else {
|
|
200
200
|
if (_this__u8e3s4 instanceof EnumType) {
|
|
201
|
-
tmp = new Custom(_this__u8e3s4.
|
|
201
|
+
tmp = new Custom(_this__u8e3s4.r2c_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.m2c_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.l2c_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.i2c_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.g2c_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.v2c_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.x2c_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.b2d_1), toReference_0(item.c2d_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.r2c_1), toSet(_this__u8e3s4.t2c_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.j2c_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.g2c_1 = new SimpleType('null');
|
|
300
300
|
}
|
|
301
|
-
protoOf(AvroConverter).
|
|
301
|
+
protoOf(AvroConverter).f2d = 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).j2d = 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.x2c_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).j2d = 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.c2d_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().f2d(element_0, name);
|
|
325
325
|
addAll(destination_0, list);
|
|
326
326
|
}
|
|
327
327
|
var list_0 = destination_0;
|
|
@@ -330,7 +330,7 @@ protoOf(AvroConverter).j2d = 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.f2d(_this__u8e3s4.a2d_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).j2d = function (_this__u8e3s4, name) {
|
|
|
339
339
|
tmp = emptyList();
|
|
340
340
|
} else {
|
|
341
341
|
if (_this__u8e3s4 instanceof MapType) {
|
|
342
|
-
tmp = this.
|
|
342
|
+
tmp = this.f2d(_this__u8e3s4.l2c_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).j2d = function (_this__u8e3s4, name) {
|
|
|
354
354
|
}
|
|
355
355
|
return tmp;
|
|
356
356
|
};
|
|
357
|
-
protoOf(AvroConverter).
|
|
357
|
+
protoOf(AvroConverter).g2d = function (_this__u8e3s4, name, $super) {
|
|
358
358
|
name = name === VOID ? '' : name;
|
|
359
|
-
return $super === VOID ? this.
|
|
359
|
+
return $super === VOID ? this.f2d(_this__u8e3s4, name) : $super.f2d.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.b27_1.yk();
|
|
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.w24().b1() === name) {
|
|
378
378
|
tmp$ret$1 = element;
|
|
379
379
|
break $l$block;
|
|
380
380
|
}
|
|
@@ -386,27 +386,24 @@ 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.h2d_1 = FileExtension_JSON_getInstance();
|
|
390
|
+
this.i2d_1 = null;
|
|
391
391
|
}
|
|
392
|
-
protoOf(AvroEmitter).
|
|
393
|
-
return this.
|
|
392
|
+
protoOf(AvroEmitter).i26 = function () {
|
|
393
|
+
return this.h2d_1;
|
|
394
394
|
};
|
|
395
|
-
protoOf(AvroEmitter).
|
|
396
|
-
return this.n29();
|
|
397
|
-
};
|
|
398
|
-
protoOf(AvroEmitter).j27 = function (type, module_0) {
|
|
395
|
+
protoOf(AvroEmitter).t26 = function (type, module_0) {
|
|
399
396
|
// Inline function 'kotlin.TODO' call
|
|
400
397
|
var reason = 'Not yet implemented';
|
|
401
398
|
throw new NotImplementedError('An operation is not implemented: ' + reason);
|
|
402
399
|
};
|
|
403
|
-
protoOf(AvroEmitter).
|
|
404
|
-
return new EnumType('enum', _this__u8e3s4.
|
|
400
|
+
protoOf(AvroEmitter).j2d = function (_this__u8e3s4) {
|
|
401
|
+
return new EnumType('enum', _this__u8e3s4.p27_1.b1(), VOID, toList(_this__u8e3s4.q27_1));
|
|
405
402
|
};
|
|
406
|
-
protoOf(AvroEmitter).
|
|
407
|
-
var tmp = _this__u8e3s4.
|
|
403
|
+
protoOf(AvroEmitter).k2d = function (_this__u8e3s4) {
|
|
404
|
+
var tmp = _this__u8e3s4.d27_1.b1();
|
|
408
405
|
// Inline function 'kotlin.collections.map' call
|
|
409
|
-
var this_0 = _this__u8e3s4.
|
|
406
|
+
var this_0 = _this__u8e3s4.e27_1;
|
|
410
407
|
// Inline function 'kotlin.collections.mapTo' call
|
|
411
408
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
412
409
|
var _iterator__ex2g4s = this_0.g();
|
|
@@ -418,13 +415,13 @@ protoOf(AvroEmitter).o2d = function (_this__u8e3s4) {
|
|
|
418
415
|
}
|
|
419
416
|
return new UnionType(tmp, TypeList_init_$Create$(destination));
|
|
420
417
|
};
|
|
421
|
-
protoOf(AvroEmitter).
|
|
418
|
+
protoOf(AvroEmitter).l2d = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
422
419
|
var tmp;
|
|
423
420
|
if (_this__u8e3s4 instanceof Dict) {
|
|
424
|
-
tmp = new MapType('map', this.
|
|
421
|
+
tmp = new MapType('map', this.l2d(_this__u8e3s4.k24_1, module_0, hasEmitted));
|
|
425
422
|
} else {
|
|
426
423
|
if (_this__u8e3s4 instanceof Iterable) {
|
|
427
|
-
tmp = new ArrayType('array', this.
|
|
424
|
+
tmp = new ArrayType('array', this.l2d(_this__u8e3s4.a24_1, module_0, hasEmitted));
|
|
428
425
|
} else {
|
|
429
426
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
430
427
|
var type = _this__u8e3s4.n24_1;
|
|
@@ -481,21 +478,21 @@ protoOf(AvroEmitter).p2d = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
|
481
478
|
var tmp_3;
|
|
482
479
|
if (def instanceof Type) {
|
|
483
480
|
var tmp_4;
|
|
484
|
-
if (hasEmitted.o1(def.
|
|
481
|
+
if (hasEmitted.o1(def.v26_1.b1())) {
|
|
485
482
|
// Inline function 'kotlin.let' call
|
|
486
483
|
// Inline function 'community.flock.wirespec.converter.avro.AvroEmitter.emit.stub_for_inlining' call
|
|
487
|
-
var p0 = def.
|
|
484
|
+
var p0 = def.v26_1.b1();
|
|
488
485
|
tmp_4 = new SimpleType(p0);
|
|
489
486
|
} else {
|
|
490
487
|
// Inline function 'kotlin.also' call
|
|
491
488
|
// Inline function 'community.flock.wirespec.converter.avro.AvroEmitter.emit.<anonymous>' call
|
|
492
|
-
hasEmitted.e(def.
|
|
493
|
-
tmp_4 = this.
|
|
489
|
+
hasEmitted.e(def.v26_1.b1());
|
|
490
|
+
tmp_4 = this.m2d(def, module_0, hasEmitted);
|
|
494
491
|
}
|
|
495
492
|
tmp_3 = tmp_4;
|
|
496
493
|
} else {
|
|
497
494
|
if (def instanceof Enum) {
|
|
498
|
-
tmp_3 = new SimpleType(def.
|
|
495
|
+
tmp_3 = new SimpleType(def.p27_1.b1());
|
|
499
496
|
} else {
|
|
500
497
|
if (def instanceof Refined) {
|
|
501
498
|
tmp_3 = new SimpleType('string');
|
|
@@ -521,43 +518,43 @@ protoOf(AvroEmitter).p2d = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
|
521
518
|
}
|
|
522
519
|
return tmp;
|
|
523
520
|
};
|
|
524
|
-
protoOf(AvroEmitter).
|
|
525
|
-
var ref = _this__u8e3s4.
|
|
521
|
+
protoOf(AvroEmitter).n2d = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
522
|
+
var ref = _this__u8e3s4.t25_1;
|
|
526
523
|
var tmp;
|
|
527
524
|
if (ref instanceof Iterable) {
|
|
528
|
-
tmp = new ArrayType('array', this.
|
|
525
|
+
tmp = new ArrayType('array', this.l2d(ref.a24_1, module_0, hasEmitted));
|
|
529
526
|
} else {
|
|
530
|
-
tmp = this.
|
|
527
|
+
tmp = this.l2d(ref, module_0, hasEmitted);
|
|
531
528
|
}
|
|
532
529
|
return tmp;
|
|
533
530
|
};
|
|
534
|
-
protoOf(AvroEmitter).
|
|
535
|
-
var tmp0_name = _this__u8e3s4.
|
|
531
|
+
protoOf(AvroEmitter).m2d = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
532
|
+
var tmp0_name = _this__u8e3s4.v26_1.b1();
|
|
536
533
|
// Inline function 'kotlin.collections.map' call
|
|
537
|
-
var this_0 = _this__u8e3s4.
|
|
534
|
+
var this_0 = _this__u8e3s4.w26_1.f27_1;
|
|
538
535
|
// Inline function 'kotlin.collections.mapTo' call
|
|
539
536
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
540
537
|
var _iterator__ex2g4s = this_0.g();
|
|
541
538
|
while (_iterator__ex2g4s.h()) {
|
|
542
539
|
var item = _iterator__ex2g4s.i();
|
|
543
540
|
// Inline function 'community.flock.wirespec.converter.avro.AvroEmitter.emit.<anonymous>' call
|
|
544
|
-
var tmp = item.
|
|
541
|
+
var tmp = item.s25_1.b1();
|
|
545
542
|
var tmp_0;
|
|
546
|
-
if (item.
|
|
547
|
-
tmp_0 = new TypeList([new SimpleType('null'), AvroEmitter_getInstance().
|
|
543
|
+
if (item.t25_1.sm()) {
|
|
544
|
+
tmp_0 = new TypeList([new SimpleType('null'), AvroEmitter_getInstance().n2d(item, module_0, hasEmitted)]);
|
|
548
545
|
} else {
|
|
549
|
-
tmp_0 = new TypeList([AvroEmitter_getInstance().
|
|
546
|
+
tmp_0 = new TypeList([AvroEmitter_getInstance().n2d(item, module_0, hasEmitted)]);
|
|
550
547
|
}
|
|
551
548
|
var tmp$ret$0 = new Field_0(tmp, tmp_0);
|
|
552
549
|
destination.e(tmp$ret$0);
|
|
553
550
|
}
|
|
554
551
|
return new RecordType('record', tmp0_name, VOID, destination);
|
|
555
552
|
};
|
|
556
|
-
protoOf(AvroEmitter).
|
|
553
|
+
protoOf(AvroEmitter).o2d = function (module_0) {
|
|
557
554
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
558
555
|
var hasEmitted = ArrayList_init_$Create$_0();
|
|
559
556
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
560
|
-
var tmp0 = module_0.
|
|
557
|
+
var tmp0 = module_0.b27_1.yk();
|
|
561
558
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
562
559
|
var destination = ArrayList_init_$Create$_0();
|
|
563
560
|
// Inline function 'kotlin.collections.forEach' call
|
|
@@ -568,13 +565,13 @@ protoOf(AvroEmitter).s2d = function (module_0) {
|
|
|
568
565
|
// Inline function 'community.flock.wirespec.converter.avro.AvroEmitter.emit.<anonymous>' call
|
|
569
566
|
var tmp;
|
|
570
567
|
if (element instanceof Type) {
|
|
571
|
-
tmp = AvroEmitter_getInstance().
|
|
568
|
+
tmp = AvroEmitter_getInstance().m2d(element, module_0, hasEmitted);
|
|
572
569
|
} else {
|
|
573
570
|
if (element instanceof Enum) {
|
|
574
|
-
tmp = AvroEmitter_getInstance().
|
|
571
|
+
tmp = AvroEmitter_getInstance().j2d(element);
|
|
575
572
|
} else {
|
|
576
573
|
if (element instanceof Union) {
|
|
577
|
-
tmp = AvroEmitter_getInstance().
|
|
574
|
+
tmp = AvroEmitter_getInstance().k2d(element);
|
|
578
575
|
} else {
|
|
579
576
|
tmp = null;
|
|
580
577
|
}
|
|
@@ -591,32 +588,37 @@ protoOf(AvroEmitter).s2d = function (module_0) {
|
|
|
591
588
|
}
|
|
592
589
|
return destination;
|
|
593
590
|
};
|
|
594
|
-
protoOf(AvroEmitter).
|
|
591
|
+
protoOf(AvroEmitter).n27 = function (enum_0, module_0) {
|
|
592
|
+
// Inline function 'kotlin.TODO' call
|
|
593
|
+
var reason = 'Not yet implemented';
|
|
594
|
+
throw new NotImplementedError('An operation is not implemented: ' + reason);
|
|
595
|
+
};
|
|
596
|
+
protoOf(AvroEmitter).g27 = function (refined) {
|
|
595
597
|
// Inline function 'kotlin.TODO' call
|
|
596
598
|
var reason = 'Not yet implemented';
|
|
597
599
|
throw new NotImplementedError('An operation is not implemented: ' + reason);
|
|
598
600
|
};
|
|
599
|
-
protoOf(AvroEmitter).
|
|
601
|
+
protoOf(AvroEmitter).z27 = function (endpoint) {
|
|
600
602
|
// Inline function 'kotlin.TODO' call
|
|
601
603
|
var reason = 'Not yet implemented';
|
|
602
604
|
throw new NotImplementedError('An operation is not implemented: ' + reason);
|
|
603
605
|
};
|
|
604
|
-
protoOf(AvroEmitter).
|
|
606
|
+
protoOf(AvroEmitter).s27 = function (union) {
|
|
605
607
|
// Inline function 'kotlin.TODO' call
|
|
606
608
|
var reason = 'Not yet implemented';
|
|
607
609
|
throw new NotImplementedError('An operation is not implemented: ' + reason);
|
|
608
610
|
};
|
|
609
|
-
protoOf(AvroEmitter).
|
|
611
|
+
protoOf(AvroEmitter).u25 = function (identifier) {
|
|
610
612
|
// Inline function 'kotlin.TODO' call
|
|
611
613
|
var reason = 'Not yet implemented';
|
|
612
614
|
throw new NotImplementedError('An operation is not implemented: ' + reason);
|
|
613
615
|
};
|
|
614
|
-
protoOf(AvroEmitter).
|
|
616
|
+
protoOf(AvroEmitter).t27 = function (channel) {
|
|
615
617
|
// Inline function 'kotlin.TODO' call
|
|
616
618
|
var reason = 'Not yet implemented';
|
|
617
619
|
throw new NotImplementedError('An operation is not implemented: ' + reason);
|
|
618
620
|
};
|
|
619
|
-
protoOf(AvroEmitter).
|
|
621
|
+
protoOf(AvroEmitter).k26 = function () {
|
|
620
622
|
var reason = 'Not yet implemented';
|
|
621
623
|
throw new NotImplementedError('An operation is not implemented: ' + reason);
|
|
622
624
|
};
|
|
@@ -639,26 +641,26 @@ function $serializer() {
|
|
|
639
641
|
tmp0_serialDesc.dw('type', false);
|
|
640
642
|
tmp0_serialDesc.dw('doc', true);
|
|
641
643
|
tmp0_serialDesc.dw('default', true);
|
|
642
|
-
this.
|
|
644
|
+
this.p2d_1 = tmp0_serialDesc;
|
|
643
645
|
}
|
|
644
|
-
protoOf($serializer).
|
|
645
|
-
var tmp0_desc = this.
|
|
646
|
+
protoOf($serializer).q2d = function (encoder, value) {
|
|
647
|
+
var tmp0_desc = this.p2d_1;
|
|
646
648
|
var tmp1_output = encoder.to(tmp0_desc);
|
|
647
|
-
tmp1_output.iq(tmp0_desc, 0, value.
|
|
648
|
-
tmp1_output.kq(tmp0_desc, 1, TypeListSerializer_getInstance(), value.
|
|
649
|
-
if (tmp1_output.qq(tmp0_desc, 2) ? true : !(value.
|
|
650
|
-
tmp1_output.mq(tmp0_desc, 2, StringSerializer_getInstance(), value.
|
|
649
|
+
tmp1_output.iq(tmp0_desc, 0, value.b2d_1);
|
|
650
|
+
tmp1_output.kq(tmp0_desc, 1, TypeListSerializer_getInstance(), value.c2d_1);
|
|
651
|
+
if (tmp1_output.qq(tmp0_desc, 2) ? true : !(value.d2d_1 == null)) {
|
|
652
|
+
tmp1_output.mq(tmp0_desc, 2, StringSerializer_getInstance(), value.d2d_1);
|
|
651
653
|
}
|
|
652
|
-
if (tmp1_output.qq(tmp0_desc, 3) ? true : !(value.
|
|
653
|
-
tmp1_output.mq(tmp0_desc, 3, StringSerializer_getInstance(), value.
|
|
654
|
+
if (tmp1_output.qq(tmp0_desc, 3) ? true : !(value.e2d_1 == null)) {
|
|
655
|
+
tmp1_output.mq(tmp0_desc, 3, StringSerializer_getInstance(), value.e2d_1);
|
|
654
656
|
}
|
|
655
657
|
tmp1_output.uo(tmp0_desc);
|
|
656
658
|
};
|
|
657
659
|
protoOf($serializer).tl = function (encoder, value) {
|
|
658
|
-
return this.
|
|
660
|
+
return this.q2d(encoder, value instanceof Field_0 ? value : THROW_CCE());
|
|
659
661
|
};
|
|
660
662
|
protoOf($serializer).ul = function (decoder) {
|
|
661
|
-
var tmp0_desc = this.
|
|
663
|
+
var tmp0_desc = this.p2d_1;
|
|
662
664
|
var tmp1_flag = true;
|
|
663
665
|
var tmp2_index = 0;
|
|
664
666
|
var tmp3_bitMask0 = 0;
|
|
@@ -707,7 +709,7 @@ protoOf($serializer).ul = function (decoder) {
|
|
|
707
709
|
return Field_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
708
710
|
};
|
|
709
711
|
protoOf($serializer).sl = function () {
|
|
710
|
-
return this.
|
|
712
|
+
return this.p2d_1;
|
|
711
713
|
};
|
|
712
714
|
protoOf($serializer).ww = function () {
|
|
713
715
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -723,18 +725,18 @@ function $serializer_getInstance() {
|
|
|
723
725
|
}
|
|
724
726
|
function Field_init_$Init$(seen0, name, type, doc, default_0, serializationConstructorMarker, $this) {
|
|
725
727
|
if (!(3 === (3 & seen0))) {
|
|
726
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance().
|
|
728
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance().p2d_1);
|
|
727
729
|
}
|
|
728
|
-
$this.
|
|
729
|
-
$this.
|
|
730
|
+
$this.b2d_1 = name;
|
|
731
|
+
$this.c2d_1 = type;
|
|
730
732
|
if (0 === (seen0 & 4))
|
|
731
|
-
$this.
|
|
733
|
+
$this.d2d_1 = null;
|
|
732
734
|
else
|
|
733
|
-
$this.
|
|
735
|
+
$this.d2d_1 = doc;
|
|
734
736
|
if (0 === (seen0 & 8))
|
|
735
|
-
$this.
|
|
737
|
+
$this.e2d_1 = null;
|
|
736
738
|
else
|
|
737
|
-
$this.
|
|
739
|
+
$this.e2d_1 = default_0;
|
|
738
740
|
return $this;
|
|
739
741
|
}
|
|
740
742
|
function Field_init_$Create$(seen0, name, type, doc, default_0, serializationConstructorMarker) {
|
|
@@ -777,19 +779,19 @@ function $serializer_0() {
|
|
|
777
779
|
$serializer_instance_0 = this;
|
|
778
780
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.SimpleType', this, 1);
|
|
779
781
|
tmp0_serialDesc.dw('value', false);
|
|
780
|
-
this.
|
|
782
|
+
this.r2d_1 = tmp0_serialDesc;
|
|
781
783
|
}
|
|
782
|
-
protoOf($serializer_0).
|
|
783
|
-
var tmp0_desc = this.
|
|
784
|
+
protoOf($serializer_0).s2d = function (encoder, value) {
|
|
785
|
+
var tmp0_desc = this.r2d_1;
|
|
784
786
|
var tmp1_output = encoder.to(tmp0_desc);
|
|
785
|
-
tmp1_output.iq(tmp0_desc, 0, value.
|
|
787
|
+
tmp1_output.iq(tmp0_desc, 0, value.h2c_1);
|
|
786
788
|
tmp1_output.uo(tmp0_desc);
|
|
787
789
|
};
|
|
788
790
|
protoOf($serializer_0).tl = function (encoder, value) {
|
|
789
|
-
return this.
|
|
791
|
+
return this.s2d(encoder, value instanceof SimpleType ? value : THROW_CCE());
|
|
790
792
|
};
|
|
791
793
|
protoOf($serializer_0).ul = function (decoder) {
|
|
792
|
-
var tmp0_desc = this.
|
|
794
|
+
var tmp0_desc = this.r2d_1;
|
|
793
795
|
var tmp1_flag = true;
|
|
794
796
|
var tmp2_index = 0;
|
|
795
797
|
var tmp3_bitMask0 = 0;
|
|
@@ -817,7 +819,7 @@ protoOf($serializer_0).ul = function (decoder) {
|
|
|
817
819
|
return SimpleType_init_$Create$(tmp3_bitMask0, tmp4_local0, null);
|
|
818
820
|
};
|
|
819
821
|
protoOf($serializer_0).sl = function () {
|
|
820
|
-
return this.
|
|
822
|
+
return this.r2d_1;
|
|
821
823
|
};
|
|
822
824
|
protoOf($serializer_0).ww = function () {
|
|
823
825
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -833,9 +835,9 @@ function $serializer_getInstance_0() {
|
|
|
833
835
|
}
|
|
834
836
|
function SimpleType_init_$Init$(seen0, value, serializationConstructorMarker, $this) {
|
|
835
837
|
if (!(1 === (1 & seen0))) {
|
|
836
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_0().
|
|
838
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_0().r2d_1);
|
|
837
839
|
}
|
|
838
|
-
$this.
|
|
840
|
+
$this.h2c_1 = value;
|
|
839
841
|
return $this;
|
|
840
842
|
}
|
|
841
843
|
function SimpleType_init_$Create$(seen0, value, serializationConstructorMarker) {
|
|
@@ -847,7 +849,7 @@ function Companion_3() {
|
|
|
847
849
|
// Inline function 'kotlin.arrayOf' call
|
|
848
850
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
849
851
|
// Inline function 'kotlin.js.asDynamic' call
|
|
850
|
-
tmp.
|
|
852
|
+
tmp.t2d_1 = [null, null, null, new ArrayListSerializer($serializer_getInstance()), null];
|
|
851
853
|
}
|
|
852
854
|
protoOf(Companion_3).g18 = function () {
|
|
853
855
|
return $serializer_getInstance_1();
|
|
@@ -866,28 +868,28 @@ function $serializer_1() {
|
|
|
866
868
|
tmp0_serialDesc.dw('namespace', true);
|
|
867
869
|
tmp0_serialDesc.dw('fields', false);
|
|
868
870
|
tmp0_serialDesc.dw('doc', true);
|
|
869
|
-
this.
|
|
871
|
+
this.u2d_1 = tmp0_serialDesc;
|
|
870
872
|
}
|
|
871
|
-
protoOf($serializer_1).
|
|
872
|
-
var tmp0_desc = this.
|
|
873
|
+
protoOf($serializer_1).v2d = function (encoder, value) {
|
|
874
|
+
var tmp0_desc = this.u2d_1;
|
|
873
875
|
var tmp1_output = encoder.to(tmp0_desc);
|
|
874
|
-
var tmp2_cached = Companion_getInstance_3().
|
|
875
|
-
tmp1_output.iq(tmp0_desc, 0, value.
|
|
876
|
-
tmp1_output.iq(tmp0_desc, 1, value.
|
|
877
|
-
if (tmp1_output.qq(tmp0_desc, 2) ? true : !(value.
|
|
878
|
-
tmp1_output.mq(tmp0_desc, 2, StringSerializer_getInstance(), value.
|
|
876
|
+
var tmp2_cached = Companion_getInstance_3().t2d_1;
|
|
877
|
+
tmp1_output.iq(tmp0_desc, 0, value.u2c_1);
|
|
878
|
+
tmp1_output.iq(tmp0_desc, 1, value.v2c_1);
|
|
879
|
+
if (tmp1_output.qq(tmp0_desc, 2) ? true : !(value.w2c_1 == null)) {
|
|
880
|
+
tmp1_output.mq(tmp0_desc, 2, StringSerializer_getInstance(), value.w2c_1);
|
|
879
881
|
}
|
|
880
|
-
tmp1_output.kq(tmp0_desc, 3, tmp2_cached[3], value.
|
|
881
|
-
if (tmp1_output.qq(tmp0_desc, 4) ? true : !(value.
|
|
882
|
-
tmp1_output.mq(tmp0_desc, 4, StringSerializer_getInstance(), value.
|
|
882
|
+
tmp1_output.kq(tmp0_desc, 3, tmp2_cached[3], value.x2c_1);
|
|
883
|
+
if (tmp1_output.qq(tmp0_desc, 4) ? true : !(value.y2c_1 == null)) {
|
|
884
|
+
tmp1_output.mq(tmp0_desc, 4, StringSerializer_getInstance(), value.y2c_1);
|
|
883
885
|
}
|
|
884
886
|
tmp1_output.uo(tmp0_desc);
|
|
885
887
|
};
|
|
886
888
|
protoOf($serializer_1).tl = function (encoder, value) {
|
|
887
|
-
return this.
|
|
889
|
+
return this.v2d(encoder, value instanceof RecordType ? value : THROW_CCE());
|
|
888
890
|
};
|
|
889
891
|
protoOf($serializer_1).ul = function (decoder) {
|
|
890
|
-
var tmp0_desc = this.
|
|
892
|
+
var tmp0_desc = this.u2d_1;
|
|
891
893
|
var tmp1_flag = true;
|
|
892
894
|
var tmp2_index = 0;
|
|
893
895
|
var tmp3_bitMask0 = 0;
|
|
@@ -897,7 +899,7 @@ protoOf($serializer_1).ul = function (decoder) {
|
|
|
897
899
|
var tmp7_local3 = null;
|
|
898
900
|
var tmp8_local4 = null;
|
|
899
901
|
var tmp9_input = decoder.to(tmp0_desc);
|
|
900
|
-
var tmp10_cached = Companion_getInstance_3().
|
|
902
|
+
var tmp10_cached = Companion_getInstance_3().t2d_1;
|
|
901
903
|
if (tmp9_input.jp()) {
|
|
902
904
|
tmp4_local0 = tmp9_input.dp(tmp0_desc, 0);
|
|
903
905
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -944,10 +946,10 @@ protoOf($serializer_1).ul = function (decoder) {
|
|
|
944
946
|
return RecordType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null);
|
|
945
947
|
};
|
|
946
948
|
protoOf($serializer_1).sl = function () {
|
|
947
|
-
return this.
|
|
949
|
+
return this.u2d_1;
|
|
948
950
|
};
|
|
949
951
|
protoOf($serializer_1).ww = function () {
|
|
950
|
-
var tmp0_cached = Companion_getInstance_3().
|
|
952
|
+
var tmp0_cached = Companion_getInstance_3().t2d_1;
|
|
951
953
|
// Inline function 'kotlin.arrayOf' call
|
|
952
954
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
953
955
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -961,19 +963,19 @@ function $serializer_getInstance_1() {
|
|
|
961
963
|
}
|
|
962
964
|
function RecordType_init_$Init$(seen0, type, name, namespace, fields, doc, serializationConstructorMarker, $this) {
|
|
963
965
|
if (!(11 === (11 & seen0))) {
|
|
964
|
-
throwMissingFieldException(seen0, 11, $serializer_getInstance_1().
|
|
966
|
+
throwMissingFieldException(seen0, 11, $serializer_getInstance_1().u2d_1);
|
|
965
967
|
}
|
|
966
|
-
$this.
|
|
967
|
-
$this.
|
|
968
|
+
$this.u2c_1 = type;
|
|
969
|
+
$this.v2c_1 = name;
|
|
968
970
|
if (0 === (seen0 & 4))
|
|
969
|
-
$this.
|
|
971
|
+
$this.w2c_1 = null;
|
|
970
972
|
else
|
|
971
|
-
$this.
|
|
972
|
-
$this.
|
|
973
|
+
$this.w2c_1 = namespace;
|
|
974
|
+
$this.x2c_1 = fields;
|
|
973
975
|
if (0 === (seen0 & 16))
|
|
974
|
-
$this.
|
|
976
|
+
$this.y2c_1 = null;
|
|
975
977
|
else
|
|
976
|
-
$this.
|
|
978
|
+
$this.y2c_1 = doc;
|
|
977
979
|
return $this;
|
|
978
980
|
}
|
|
979
981
|
function RecordType_init_$Create$(seen0, type, name, namespace, fields, doc, serializationConstructorMarker) {
|
|
@@ -993,20 +995,20 @@ function $serializer_2() {
|
|
|
993
995
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.ArrayType', this, 2);
|
|
994
996
|
tmp0_serialDesc.dw('type', false);
|
|
995
997
|
tmp0_serialDesc.dw('items', false);
|
|
996
|
-
this.
|
|
998
|
+
this.w2d_1 = tmp0_serialDesc;
|
|
997
999
|
}
|
|
998
|
-
protoOf($serializer_2).
|
|
999
|
-
var tmp0_desc = this.
|
|
1000
|
+
protoOf($serializer_2).x2d = function (encoder, value) {
|
|
1001
|
+
var tmp0_desc = this.w2d_1;
|
|
1000
1002
|
var tmp1_output = encoder.to(tmp0_desc);
|
|
1001
|
-
tmp1_output.iq(tmp0_desc, 0, value.
|
|
1002
|
-
tmp1_output.kq(tmp0_desc, 1, TypeSerializer_getInstance(), value.
|
|
1003
|
+
tmp1_output.iq(tmp0_desc, 0, value.z2c_1);
|
|
1004
|
+
tmp1_output.kq(tmp0_desc, 1, TypeSerializer_getInstance(), value.a2d_1);
|
|
1003
1005
|
tmp1_output.uo(tmp0_desc);
|
|
1004
1006
|
};
|
|
1005
1007
|
protoOf($serializer_2).tl = function (encoder, value) {
|
|
1006
|
-
return this.
|
|
1008
|
+
return this.x2d(encoder, value instanceof ArrayType ? value : THROW_CCE());
|
|
1007
1009
|
};
|
|
1008
1010
|
protoOf($serializer_2).ul = function (decoder) {
|
|
1009
|
-
var tmp0_desc = this.
|
|
1011
|
+
var tmp0_desc = this.w2d_1;
|
|
1010
1012
|
var tmp1_flag = true;
|
|
1011
1013
|
var tmp2_index = 0;
|
|
1012
1014
|
var tmp3_bitMask0 = 0;
|
|
@@ -1041,7 +1043,7 @@ protoOf($serializer_2).ul = function (decoder) {
|
|
|
1041
1043
|
return ArrayType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1042
1044
|
};
|
|
1043
1045
|
protoOf($serializer_2).sl = function () {
|
|
1044
|
-
return this.
|
|
1046
|
+
return this.w2d_1;
|
|
1045
1047
|
};
|
|
1046
1048
|
protoOf($serializer_2).ww = function () {
|
|
1047
1049
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -1057,10 +1059,10 @@ function $serializer_getInstance_2() {
|
|
|
1057
1059
|
}
|
|
1058
1060
|
function ArrayType_init_$Init$(seen0, type, items, serializationConstructorMarker, $this) {
|
|
1059
1061
|
if (!(3 === (3 & seen0))) {
|
|
1060
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().
|
|
1062
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().w2d_1);
|
|
1061
1063
|
}
|
|
1062
|
-
$this.
|
|
1063
|
-
$this.
|
|
1064
|
+
$this.z2c_1 = type;
|
|
1065
|
+
$this.a2d_1 = items;
|
|
1064
1066
|
return $this;
|
|
1065
1067
|
}
|
|
1066
1068
|
function ArrayType_init_$Create$(seen0, type, items, serializationConstructorMarker) {
|
|
@@ -1080,20 +1082,20 @@ function $serializer_3() {
|
|
|
1080
1082
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.MapType', this, 2);
|
|
1081
1083
|
tmp0_serialDesc.dw('type', false);
|
|
1082
1084
|
tmp0_serialDesc.dw('values', false);
|
|
1083
|
-
this.
|
|
1085
|
+
this.y2d_1 = tmp0_serialDesc;
|
|
1084
1086
|
}
|
|
1085
|
-
protoOf($serializer_3).
|
|
1086
|
-
var tmp0_desc = this.
|
|
1087
|
+
protoOf($serializer_3).z2d = function (encoder, value) {
|
|
1088
|
+
var tmp0_desc = this.y2d_1;
|
|
1087
1089
|
var tmp1_output = encoder.to(tmp0_desc);
|
|
1088
|
-
tmp1_output.iq(tmp0_desc, 0, value.
|
|
1089
|
-
tmp1_output.kq(tmp0_desc, 1, TypeSerializer_getInstance(), value.
|
|
1090
|
+
tmp1_output.iq(tmp0_desc, 0, value.k2c_1);
|
|
1091
|
+
tmp1_output.kq(tmp0_desc, 1, TypeSerializer_getInstance(), value.l2c_1);
|
|
1090
1092
|
tmp1_output.uo(tmp0_desc);
|
|
1091
1093
|
};
|
|
1092
1094
|
protoOf($serializer_3).tl = function (encoder, value) {
|
|
1093
|
-
return this.
|
|
1095
|
+
return this.z2d(encoder, value instanceof MapType ? value : THROW_CCE());
|
|
1094
1096
|
};
|
|
1095
1097
|
protoOf($serializer_3).ul = function (decoder) {
|
|
1096
|
-
var tmp0_desc = this.
|
|
1098
|
+
var tmp0_desc = this.y2d_1;
|
|
1097
1099
|
var tmp1_flag = true;
|
|
1098
1100
|
var tmp2_index = 0;
|
|
1099
1101
|
var tmp3_bitMask0 = 0;
|
|
@@ -1128,7 +1130,7 @@ protoOf($serializer_3).ul = function (decoder) {
|
|
|
1128
1130
|
return MapType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1129
1131
|
};
|
|
1130
1132
|
protoOf($serializer_3).sl = function () {
|
|
1131
|
-
return this.
|
|
1133
|
+
return this.y2d_1;
|
|
1132
1134
|
};
|
|
1133
1135
|
protoOf($serializer_3).ww = function () {
|
|
1134
1136
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -1144,10 +1146,10 @@ function $serializer_getInstance_3() {
|
|
|
1144
1146
|
}
|
|
1145
1147
|
function MapType_init_$Init$(seen0, type, values, serializationConstructorMarker, $this) {
|
|
1146
1148
|
if (!(3 === (3 & seen0))) {
|
|
1147
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_3().
|
|
1149
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_3().y2d_1);
|
|
1148
1150
|
}
|
|
1149
|
-
$this.
|
|
1150
|
-
$this.
|
|
1151
|
+
$this.k2c_1 = type;
|
|
1152
|
+
$this.l2c_1 = values;
|
|
1151
1153
|
return $this;
|
|
1152
1154
|
}
|
|
1153
1155
|
function MapType_init_$Create$(seen0, type, values, serializationConstructorMarker) {
|
|
@@ -1159,7 +1161,7 @@ function Companion_6() {
|
|
|
1159
1161
|
// Inline function 'kotlin.arrayOf' call
|
|
1160
1162
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1161
1163
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1162
|
-
tmp.
|
|
1164
|
+
tmp.a2e_1 = [null, null, null, new ArrayListSerializer(StringSerializer_getInstance())];
|
|
1163
1165
|
}
|
|
1164
1166
|
protoOf(Companion_6).g18 = function () {
|
|
1165
1167
|
return $serializer_getInstance_4();
|
|
@@ -1177,25 +1179,25 @@ function $serializer_4() {
|
|
|
1177
1179
|
tmp0_serialDesc.dw('name', false);
|
|
1178
1180
|
tmp0_serialDesc.dw('doc', true);
|
|
1179
1181
|
tmp0_serialDesc.dw('symbols', false);
|
|
1180
|
-
this.
|
|
1182
|
+
this.b2e_1 = tmp0_serialDesc;
|
|
1181
1183
|
}
|
|
1182
|
-
protoOf($serializer_4).
|
|
1183
|
-
var tmp0_desc = this.
|
|
1184
|
+
protoOf($serializer_4).c2e = function (encoder, value) {
|
|
1185
|
+
var tmp0_desc = this.b2e_1;
|
|
1184
1186
|
var tmp1_output = encoder.to(tmp0_desc);
|
|
1185
|
-
var tmp2_cached = Companion_getInstance_6().
|
|
1186
|
-
tmp1_output.iq(tmp0_desc, 0, value.
|
|
1187
|
-
tmp1_output.iq(tmp0_desc, 1, value.
|
|
1188
|
-
if (tmp1_output.qq(tmp0_desc, 2) ? true : !(value.
|
|
1189
|
-
tmp1_output.mq(tmp0_desc, 2, StringSerializer_getInstance(), value.
|
|
1187
|
+
var tmp2_cached = Companion_getInstance_6().a2e_1;
|
|
1188
|
+
tmp1_output.iq(tmp0_desc, 0, value.q2c_1);
|
|
1189
|
+
tmp1_output.iq(tmp0_desc, 1, value.r2c_1);
|
|
1190
|
+
if (tmp1_output.qq(tmp0_desc, 2) ? true : !(value.s2c_1 == null)) {
|
|
1191
|
+
tmp1_output.mq(tmp0_desc, 2, StringSerializer_getInstance(), value.s2c_1);
|
|
1190
1192
|
}
|
|
1191
|
-
tmp1_output.kq(tmp0_desc, 3, tmp2_cached[3], value.
|
|
1193
|
+
tmp1_output.kq(tmp0_desc, 3, tmp2_cached[3], value.t2c_1);
|
|
1192
1194
|
tmp1_output.uo(tmp0_desc);
|
|
1193
1195
|
};
|
|
1194
1196
|
protoOf($serializer_4).tl = function (encoder, value) {
|
|
1195
|
-
return this.
|
|
1197
|
+
return this.c2e(encoder, value instanceof EnumType ? value : THROW_CCE());
|
|
1196
1198
|
};
|
|
1197
1199
|
protoOf($serializer_4).ul = function (decoder) {
|
|
1198
|
-
var tmp0_desc = this.
|
|
1200
|
+
var tmp0_desc = this.b2e_1;
|
|
1199
1201
|
var tmp1_flag = true;
|
|
1200
1202
|
var tmp2_index = 0;
|
|
1201
1203
|
var tmp3_bitMask0 = 0;
|
|
@@ -1204,7 +1206,7 @@ protoOf($serializer_4).ul = function (decoder) {
|
|
|
1204
1206
|
var tmp6_local2 = null;
|
|
1205
1207
|
var tmp7_local3 = null;
|
|
1206
1208
|
var tmp8_input = decoder.to(tmp0_desc);
|
|
1207
|
-
var tmp9_cached = Companion_getInstance_6().
|
|
1209
|
+
var tmp9_cached = Companion_getInstance_6().a2e_1;
|
|
1208
1210
|
if (tmp8_input.jp()) {
|
|
1209
1211
|
tmp4_local0 = tmp8_input.dp(tmp0_desc, 0);
|
|
1210
1212
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -1245,10 +1247,10 @@ protoOf($serializer_4).ul = function (decoder) {
|
|
|
1245
1247
|
return EnumType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
1246
1248
|
};
|
|
1247
1249
|
protoOf($serializer_4).sl = function () {
|
|
1248
|
-
return this.
|
|
1250
|
+
return this.b2e_1;
|
|
1249
1251
|
};
|
|
1250
1252
|
protoOf($serializer_4).ww = function () {
|
|
1251
|
-
var tmp0_cached = Companion_getInstance_6().
|
|
1253
|
+
var tmp0_cached = Companion_getInstance_6().a2e_1;
|
|
1252
1254
|
// Inline function 'kotlin.arrayOf' call
|
|
1253
1255
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1254
1256
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1262,15 +1264,15 @@ function $serializer_getInstance_4() {
|
|
|
1262
1264
|
}
|
|
1263
1265
|
function EnumType_init_$Init$(seen0, type, name, doc, symbols, serializationConstructorMarker, $this) {
|
|
1264
1266
|
if (!(11 === (11 & seen0))) {
|
|
1265
|
-
throwMissingFieldException(seen0, 11, $serializer_getInstance_4().
|
|
1267
|
+
throwMissingFieldException(seen0, 11, $serializer_getInstance_4().b2e_1);
|
|
1266
1268
|
}
|
|
1267
|
-
$this.
|
|
1268
|
-
$this.
|
|
1269
|
+
$this.q2c_1 = type;
|
|
1270
|
+
$this.r2c_1 = name;
|
|
1269
1271
|
if (0 === (seen0 & 4))
|
|
1270
|
-
$this.
|
|
1272
|
+
$this.s2c_1 = null;
|
|
1271
1273
|
else
|
|
1272
|
-
$this.
|
|
1273
|
-
$this.
|
|
1274
|
+
$this.s2c_1 = doc;
|
|
1275
|
+
$this.t2c_1 = symbols;
|
|
1274
1276
|
return $this;
|
|
1275
1277
|
}
|
|
1276
1278
|
function EnumType_init_$Create$(seen0, type, name, doc, symbols, serializationConstructorMarker) {
|
|
@@ -1290,20 +1292,20 @@ function $serializer_5() {
|
|
|
1290
1292
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.UnionType', this, 2);
|
|
1291
1293
|
tmp0_serialDesc.dw('name', false);
|
|
1292
1294
|
tmp0_serialDesc.dw('type', false);
|
|
1293
|
-
this.
|
|
1295
|
+
this.d2e_1 = tmp0_serialDesc;
|
|
1294
1296
|
}
|
|
1295
|
-
protoOf($serializer_5).
|
|
1296
|
-
var tmp0_desc = this.
|
|
1297
|
+
protoOf($serializer_5).e2e = function (encoder, value) {
|
|
1298
|
+
var tmp0_desc = this.d2e_1;
|
|
1297
1299
|
var tmp1_output = encoder.to(tmp0_desc);
|
|
1298
|
-
tmp1_output.iq(tmp0_desc, 0, value.
|
|
1299
|
-
tmp1_output.kq(tmp0_desc, 1, TypeListSerializer_getInstance(), value.
|
|
1300
|
+
tmp1_output.iq(tmp0_desc, 0, value.i2c_1);
|
|
1301
|
+
tmp1_output.kq(tmp0_desc, 1, TypeListSerializer_getInstance(), value.j2c_1);
|
|
1300
1302
|
tmp1_output.uo(tmp0_desc);
|
|
1301
1303
|
};
|
|
1302
1304
|
protoOf($serializer_5).tl = function (encoder, value) {
|
|
1303
|
-
return this.
|
|
1305
|
+
return this.e2e(encoder, value instanceof UnionType ? value : THROW_CCE());
|
|
1304
1306
|
};
|
|
1305
1307
|
protoOf($serializer_5).ul = function (decoder) {
|
|
1306
|
-
var tmp0_desc = this.
|
|
1308
|
+
var tmp0_desc = this.d2e_1;
|
|
1307
1309
|
var tmp1_flag = true;
|
|
1308
1310
|
var tmp2_index = 0;
|
|
1309
1311
|
var tmp3_bitMask0 = 0;
|
|
@@ -1338,7 +1340,7 @@ protoOf($serializer_5).ul = function (decoder) {
|
|
|
1338
1340
|
return UnionType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1339
1341
|
};
|
|
1340
1342
|
protoOf($serializer_5).sl = function () {
|
|
1341
|
-
return this.
|
|
1343
|
+
return this.d2e_1;
|
|
1342
1344
|
};
|
|
1343
1345
|
protoOf($serializer_5).ww = function () {
|
|
1344
1346
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -1354,10 +1356,10 @@ function $serializer_getInstance_5() {
|
|
|
1354
1356
|
}
|
|
1355
1357
|
function UnionType_init_$Init$(seen0, name, type, serializationConstructorMarker, $this) {
|
|
1356
1358
|
if (!(3 === (3 & seen0))) {
|
|
1357
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_5().
|
|
1359
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_5().d2e_1);
|
|
1358
1360
|
}
|
|
1359
|
-
$this.
|
|
1360
|
-
$this.
|
|
1361
|
+
$this.i2c_1 = name;
|
|
1362
|
+
$this.j2c_1 = type;
|
|
1361
1363
|
return $this;
|
|
1362
1364
|
}
|
|
1363
1365
|
function UnionType_init_$Create$(seen0, name, type, serializationConstructorMarker) {
|
|
@@ -1379,26 +1381,26 @@ function $serializer_6() {
|
|
|
1379
1381
|
tmp0_serialDesc.dw('logicalType', false);
|
|
1380
1382
|
tmp0_serialDesc.dw('precision', true);
|
|
1381
1383
|
tmp0_serialDesc.dw('scale', true);
|
|
1382
|
-
this.
|
|
1384
|
+
this.f2e_1 = tmp0_serialDesc;
|
|
1383
1385
|
}
|
|
1384
|
-
protoOf($serializer_6).
|
|
1385
|
-
var tmp0_desc = this.
|
|
1386
|
+
protoOf($serializer_6).g2e = function (encoder, value) {
|
|
1387
|
+
var tmp0_desc = this.f2e_1;
|
|
1386
1388
|
var tmp1_output = encoder.to(tmp0_desc);
|
|
1387
|
-
tmp1_output.iq(tmp0_desc, 0, value.
|
|
1388
|
-
tmp1_output.iq(tmp0_desc, 1, value.
|
|
1389
|
-
if (tmp1_output.qq(tmp0_desc, 2) ? true : !(value.
|
|
1390
|
-
tmp1_output.mq(tmp0_desc, 2, IntSerializer_getInstance(), value.
|
|
1389
|
+
tmp1_output.iq(tmp0_desc, 0, value.m2c_1);
|
|
1390
|
+
tmp1_output.iq(tmp0_desc, 1, value.n2c_1);
|
|
1391
|
+
if (tmp1_output.qq(tmp0_desc, 2) ? true : !(value.o2c_1 == null)) {
|
|
1392
|
+
tmp1_output.mq(tmp0_desc, 2, IntSerializer_getInstance(), value.o2c_1);
|
|
1391
1393
|
}
|
|
1392
|
-
if (tmp1_output.qq(tmp0_desc, 3) ? true : !(value.
|
|
1393
|
-
tmp1_output.mq(tmp0_desc, 3, IntSerializer_getInstance(), value.
|
|
1394
|
+
if (tmp1_output.qq(tmp0_desc, 3) ? true : !(value.p2c_1 == null)) {
|
|
1395
|
+
tmp1_output.mq(tmp0_desc, 3, IntSerializer_getInstance(), value.p2c_1);
|
|
1394
1396
|
}
|
|
1395
1397
|
tmp1_output.uo(tmp0_desc);
|
|
1396
1398
|
};
|
|
1397
1399
|
protoOf($serializer_6).tl = function (encoder, value) {
|
|
1398
|
-
return this.
|
|
1400
|
+
return this.g2e(encoder, value instanceof LogicalType ? value : THROW_CCE());
|
|
1399
1401
|
};
|
|
1400
1402
|
protoOf($serializer_6).ul = function (decoder) {
|
|
1401
|
-
var tmp0_desc = this.
|
|
1403
|
+
var tmp0_desc = this.f2e_1;
|
|
1402
1404
|
var tmp1_flag = true;
|
|
1403
1405
|
var tmp2_index = 0;
|
|
1404
1406
|
var tmp3_bitMask0 = 0;
|
|
@@ -1447,7 +1449,7 @@ protoOf($serializer_6).ul = function (decoder) {
|
|
|
1447
1449
|
return LogicalType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
1448
1450
|
};
|
|
1449
1451
|
protoOf($serializer_6).sl = function () {
|
|
1450
|
-
return this.
|
|
1452
|
+
return this.f2e_1;
|
|
1451
1453
|
};
|
|
1452
1454
|
protoOf($serializer_6).ww = function () {
|
|
1453
1455
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -1463,18 +1465,18 @@ function $serializer_getInstance_6() {
|
|
|
1463
1465
|
}
|
|
1464
1466
|
function LogicalType_init_$Init$(seen0, type, logicalType, precision, scale, serializationConstructorMarker, $this) {
|
|
1465
1467
|
if (!(3 === (3 & seen0))) {
|
|
1466
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_6().
|
|
1468
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_6().f2e_1);
|
|
1467
1469
|
}
|
|
1468
|
-
$this.
|
|
1469
|
-
$this.
|
|
1470
|
+
$this.m2c_1 = type;
|
|
1471
|
+
$this.n2c_1 = logicalType;
|
|
1470
1472
|
if (0 === (seen0 & 4))
|
|
1471
|
-
$this.
|
|
1473
|
+
$this.o2c_1 = null;
|
|
1472
1474
|
else
|
|
1473
|
-
$this.
|
|
1475
|
+
$this.o2c_1 = precision;
|
|
1474
1476
|
if (0 === (seen0 & 8))
|
|
1475
|
-
$this.
|
|
1477
|
+
$this.p2c_1 = null;
|
|
1476
1478
|
else
|
|
1477
|
-
$this.
|
|
1479
|
+
$this.p2c_1 = scale;
|
|
1478
1480
|
return $this;
|
|
1479
1481
|
}
|
|
1480
1482
|
function LogicalType_init_$Create$(seen0, type, logicalType, precision, scale, serializationConstructorMarker) {
|
|
@@ -1483,19 +1485,19 @@ function LogicalType_init_$Create$(seen0, type, logicalType, precision, scale, s
|
|
|
1483
1485
|
function Field_0(name, type, doc, default_0) {
|
|
1484
1486
|
doc = doc === VOID ? null : doc;
|
|
1485
1487
|
default_0 = default_0 === VOID ? null : default_0;
|
|
1486
|
-
this.
|
|
1487
|
-
this.
|
|
1488
|
-
this.
|
|
1489
|
-
this.
|
|
1488
|
+
this.b2d_1 = name;
|
|
1489
|
+
this.c2d_1 = type;
|
|
1490
|
+
this.d2d_1 = doc;
|
|
1491
|
+
this.e2d_1 = default_0;
|
|
1490
1492
|
}
|
|
1491
1493
|
protoOf(Field_0).toString = function () {
|
|
1492
|
-
return 'Field(name=' + this.
|
|
1494
|
+
return 'Field(name=' + this.b2d_1 + ', type=' + this.c2d_1.toString() + ', doc=' + this.d2d_1 + ', default=' + this.e2d_1 + ')';
|
|
1493
1495
|
};
|
|
1494
1496
|
protoOf(Field_0).hashCode = function () {
|
|
1495
|
-
var result = getStringHashCode(this.
|
|
1496
|
-
result = imul(result, 31) + this.
|
|
1497
|
-
result = imul(result, 31) + (this.
|
|
1498
|
-
result = imul(result, 31) + (this.
|
|
1497
|
+
var result = getStringHashCode(this.b2d_1);
|
|
1498
|
+
result = imul(result, 31) + this.c2d_1.hashCode() | 0;
|
|
1499
|
+
result = imul(result, 31) + (this.d2d_1 == null ? 0 : getStringHashCode(this.d2d_1)) | 0;
|
|
1500
|
+
result = imul(result, 31) + (this.e2d_1 == null ? 0 : getStringHashCode(this.e2d_1)) | 0;
|
|
1499
1501
|
return result;
|
|
1500
1502
|
};
|
|
1501
1503
|
protoOf(Field_0).equals = function (other) {
|
|
@@ -1504,37 +1506,37 @@ protoOf(Field_0).equals = function (other) {
|
|
|
1504
1506
|
if (!(other instanceof Field_0))
|
|
1505
1507
|
return false;
|
|
1506
1508
|
var tmp0_other_with_cast = other instanceof Field_0 ? other : THROW_CCE();
|
|
1507
|
-
if (!(this.
|
|
1509
|
+
if (!(this.b2d_1 === tmp0_other_with_cast.b2d_1))
|
|
1508
1510
|
return false;
|
|
1509
|
-
if (!this.
|
|
1511
|
+
if (!this.c2d_1.equals(tmp0_other_with_cast.c2d_1))
|
|
1510
1512
|
return false;
|
|
1511
|
-
if (!(this.
|
|
1513
|
+
if (!(this.d2d_1 == tmp0_other_with_cast.d2d_1))
|
|
1512
1514
|
return false;
|
|
1513
|
-
if (!(this.
|
|
1515
|
+
if (!(this.e2d_1 == tmp0_other_with_cast.e2d_1))
|
|
1514
1516
|
return false;
|
|
1515
1517
|
return true;
|
|
1516
1518
|
};
|
|
1517
1519
|
function TypeList(type) {
|
|
1518
1520
|
AbstractList.call(this);
|
|
1519
|
-
this.
|
|
1520
|
-
this.
|
|
1521
|
+
this.h2e_1 = toList_0(type);
|
|
1522
|
+
this.i2e_1 = this.h2e_1.j();
|
|
1521
1523
|
}
|
|
1522
1524
|
protoOf(TypeList).j = function () {
|
|
1523
|
-
return this.
|
|
1525
|
+
return this.i2e_1;
|
|
1524
1526
|
};
|
|
1525
1527
|
protoOf(TypeList).k = function (index) {
|
|
1526
|
-
return this.
|
|
1528
|
+
return this.h2e_1.k(index);
|
|
1527
1529
|
};
|
|
1528
1530
|
function Type_0() {
|
|
1529
1531
|
}
|
|
1530
1532
|
function SimpleType(value) {
|
|
1531
|
-
this.
|
|
1533
|
+
this.h2c_1 = value;
|
|
1532
1534
|
}
|
|
1533
1535
|
protoOf(SimpleType).toString = function () {
|
|
1534
|
-
return 'SimpleType(value=' + this.
|
|
1536
|
+
return 'SimpleType(value=' + this.h2c_1 + ')';
|
|
1535
1537
|
};
|
|
1536
1538
|
protoOf(SimpleType).hashCode = function () {
|
|
1537
|
-
return getStringHashCode(this.
|
|
1539
|
+
return getStringHashCode(this.h2c_1);
|
|
1538
1540
|
};
|
|
1539
1541
|
protoOf(SimpleType).equals = function (other) {
|
|
1540
1542
|
if (this === other)
|
|
@@ -1542,7 +1544,7 @@ protoOf(SimpleType).equals = function (other) {
|
|
|
1542
1544
|
if (!(other instanceof SimpleType))
|
|
1543
1545
|
return false;
|
|
1544
1546
|
var tmp0_other_with_cast = other instanceof SimpleType ? other : THROW_CCE();
|
|
1545
|
-
if (!(this.
|
|
1547
|
+
if (!(this.h2c_1 === tmp0_other_with_cast.h2c_1))
|
|
1546
1548
|
return false;
|
|
1547
1549
|
return true;
|
|
1548
1550
|
};
|
|
@@ -1550,21 +1552,21 @@ function RecordType(type, name, namespace, fields, doc) {
|
|
|
1550
1552
|
Companion_getInstance_3();
|
|
1551
1553
|
namespace = namespace === VOID ? null : namespace;
|
|
1552
1554
|
doc = doc === VOID ? null : doc;
|
|
1553
|
-
this.
|
|
1554
|
-
this.
|
|
1555
|
-
this.
|
|
1556
|
-
this.
|
|
1557
|
-
this.
|
|
1555
|
+
this.u2c_1 = type;
|
|
1556
|
+
this.v2c_1 = name;
|
|
1557
|
+
this.w2c_1 = namespace;
|
|
1558
|
+
this.x2c_1 = fields;
|
|
1559
|
+
this.y2c_1 = doc;
|
|
1558
1560
|
}
|
|
1559
1561
|
protoOf(RecordType).toString = function () {
|
|
1560
|
-
return 'RecordType(type=' + this.
|
|
1562
|
+
return 'RecordType(type=' + this.u2c_1 + ', name=' + this.v2c_1 + ', namespace=' + this.w2c_1 + ', fields=' + toString(this.x2c_1) + ', doc=' + this.y2c_1 + ')';
|
|
1561
1563
|
};
|
|
1562
1564
|
protoOf(RecordType).hashCode = function () {
|
|
1563
|
-
var result = getStringHashCode(this.
|
|
1564
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1565
|
-
result = imul(result, 31) + (this.
|
|
1566
|
-
result = imul(result, 31) + hashCode(this.
|
|
1567
|
-
result = imul(result, 31) + (this.
|
|
1565
|
+
var result = getStringHashCode(this.u2c_1);
|
|
1566
|
+
result = imul(result, 31) + getStringHashCode(this.v2c_1) | 0;
|
|
1567
|
+
result = imul(result, 31) + (this.w2c_1 == null ? 0 : getStringHashCode(this.w2c_1)) | 0;
|
|
1568
|
+
result = imul(result, 31) + hashCode(this.x2c_1) | 0;
|
|
1569
|
+
result = imul(result, 31) + (this.y2c_1 == null ? 0 : getStringHashCode(this.y2c_1)) | 0;
|
|
1568
1570
|
return result;
|
|
1569
1571
|
};
|
|
1570
1572
|
protoOf(RecordType).equals = function (other) {
|
|
@@ -1573,28 +1575,28 @@ protoOf(RecordType).equals = function (other) {
|
|
|
1573
1575
|
if (!(other instanceof RecordType))
|
|
1574
1576
|
return false;
|
|
1575
1577
|
var tmp0_other_with_cast = other instanceof RecordType ? other : THROW_CCE();
|
|
1576
|
-
if (!(this.
|
|
1578
|
+
if (!(this.u2c_1 === tmp0_other_with_cast.u2c_1))
|
|
1577
1579
|
return false;
|
|
1578
|
-
if (!(this.
|
|
1580
|
+
if (!(this.v2c_1 === tmp0_other_with_cast.v2c_1))
|
|
1579
1581
|
return false;
|
|
1580
|
-
if (!(this.
|
|
1582
|
+
if (!(this.w2c_1 == tmp0_other_with_cast.w2c_1))
|
|
1581
1583
|
return false;
|
|
1582
|
-
if (!equals(this.
|
|
1584
|
+
if (!equals(this.x2c_1, tmp0_other_with_cast.x2c_1))
|
|
1583
1585
|
return false;
|
|
1584
|
-
if (!(this.
|
|
1586
|
+
if (!(this.y2c_1 == tmp0_other_with_cast.y2c_1))
|
|
1585
1587
|
return false;
|
|
1586
1588
|
return true;
|
|
1587
1589
|
};
|
|
1588
1590
|
function ArrayType(type, items) {
|
|
1589
|
-
this.
|
|
1590
|
-
this.
|
|
1591
|
+
this.z2c_1 = type;
|
|
1592
|
+
this.a2d_1 = items;
|
|
1591
1593
|
}
|
|
1592
1594
|
protoOf(ArrayType).toString = function () {
|
|
1593
|
-
return 'ArrayType(type=' + this.
|
|
1595
|
+
return 'ArrayType(type=' + this.z2c_1 + ', items=' + toString(this.a2d_1) + ')';
|
|
1594
1596
|
};
|
|
1595
1597
|
protoOf(ArrayType).hashCode = function () {
|
|
1596
|
-
var result = getStringHashCode(this.
|
|
1597
|
-
result = imul(result, 31) + hashCode(this.
|
|
1598
|
+
var result = getStringHashCode(this.z2c_1);
|
|
1599
|
+
result = imul(result, 31) + hashCode(this.a2d_1) | 0;
|
|
1598
1600
|
return result;
|
|
1599
1601
|
};
|
|
1600
1602
|
protoOf(ArrayType).equals = function (other) {
|
|
@@ -1603,22 +1605,22 @@ protoOf(ArrayType).equals = function (other) {
|
|
|
1603
1605
|
if (!(other instanceof ArrayType))
|
|
1604
1606
|
return false;
|
|
1605
1607
|
var tmp0_other_with_cast = other instanceof ArrayType ? other : THROW_CCE();
|
|
1606
|
-
if (!(this.
|
|
1608
|
+
if (!(this.z2c_1 === tmp0_other_with_cast.z2c_1))
|
|
1607
1609
|
return false;
|
|
1608
|
-
if (!equals(this.
|
|
1610
|
+
if (!equals(this.a2d_1, tmp0_other_with_cast.a2d_1))
|
|
1609
1611
|
return false;
|
|
1610
1612
|
return true;
|
|
1611
1613
|
};
|
|
1612
1614
|
function MapType(type, values) {
|
|
1613
|
-
this.
|
|
1614
|
-
this.
|
|
1615
|
+
this.k2c_1 = type;
|
|
1616
|
+
this.l2c_1 = values;
|
|
1615
1617
|
}
|
|
1616
1618
|
protoOf(MapType).toString = function () {
|
|
1617
|
-
return 'MapType(type=' + this.
|
|
1619
|
+
return 'MapType(type=' + this.k2c_1 + ', values=' + toString(this.l2c_1) + ')';
|
|
1618
1620
|
};
|
|
1619
1621
|
protoOf(MapType).hashCode = function () {
|
|
1620
|
-
var result = getStringHashCode(this.
|
|
1621
|
-
result = imul(result, 31) + hashCode(this.
|
|
1622
|
+
var result = getStringHashCode(this.k2c_1);
|
|
1623
|
+
result = imul(result, 31) + hashCode(this.l2c_1) | 0;
|
|
1622
1624
|
return result;
|
|
1623
1625
|
};
|
|
1624
1626
|
protoOf(MapType).equals = function (other) {
|
|
@@ -1627,28 +1629,28 @@ protoOf(MapType).equals = function (other) {
|
|
|
1627
1629
|
if (!(other instanceof MapType))
|
|
1628
1630
|
return false;
|
|
1629
1631
|
var tmp0_other_with_cast = other instanceof MapType ? other : THROW_CCE();
|
|
1630
|
-
if (!(this.
|
|
1632
|
+
if (!(this.k2c_1 === tmp0_other_with_cast.k2c_1))
|
|
1631
1633
|
return false;
|
|
1632
|
-
if (!equals(this.
|
|
1634
|
+
if (!equals(this.l2c_1, tmp0_other_with_cast.l2c_1))
|
|
1633
1635
|
return false;
|
|
1634
1636
|
return true;
|
|
1635
1637
|
};
|
|
1636
1638
|
function EnumType(type, name, doc, symbols) {
|
|
1637
1639
|
Companion_getInstance_6();
|
|
1638
1640
|
doc = doc === VOID ? null : doc;
|
|
1639
|
-
this.
|
|
1640
|
-
this.
|
|
1641
|
-
this.
|
|
1642
|
-
this.
|
|
1641
|
+
this.q2c_1 = type;
|
|
1642
|
+
this.r2c_1 = name;
|
|
1643
|
+
this.s2c_1 = doc;
|
|
1644
|
+
this.t2c_1 = symbols;
|
|
1643
1645
|
}
|
|
1644
1646
|
protoOf(EnumType).toString = function () {
|
|
1645
|
-
return 'EnumType(type=' + this.
|
|
1647
|
+
return 'EnumType(type=' + this.q2c_1 + ', name=' + this.r2c_1 + ', doc=' + this.s2c_1 + ', symbols=' + toString(this.t2c_1) + ')';
|
|
1646
1648
|
};
|
|
1647
1649
|
protoOf(EnumType).hashCode = function () {
|
|
1648
|
-
var result = getStringHashCode(this.
|
|
1649
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1650
|
-
result = imul(result, 31) + (this.
|
|
1651
|
-
result = imul(result, 31) + hashCode(this.
|
|
1650
|
+
var result = getStringHashCode(this.q2c_1);
|
|
1651
|
+
result = imul(result, 31) + getStringHashCode(this.r2c_1) | 0;
|
|
1652
|
+
result = imul(result, 31) + (this.s2c_1 == null ? 0 : getStringHashCode(this.s2c_1)) | 0;
|
|
1653
|
+
result = imul(result, 31) + hashCode(this.t2c_1) | 0;
|
|
1652
1654
|
return result;
|
|
1653
1655
|
};
|
|
1654
1656
|
protoOf(EnumType).equals = function (other) {
|
|
@@ -1657,26 +1659,26 @@ protoOf(EnumType).equals = function (other) {
|
|
|
1657
1659
|
if (!(other instanceof EnumType))
|
|
1658
1660
|
return false;
|
|
1659
1661
|
var tmp0_other_with_cast = other instanceof EnumType ? other : THROW_CCE();
|
|
1660
|
-
if (!(this.
|
|
1662
|
+
if (!(this.q2c_1 === tmp0_other_with_cast.q2c_1))
|
|
1661
1663
|
return false;
|
|
1662
|
-
if (!(this.
|
|
1664
|
+
if (!(this.r2c_1 === tmp0_other_with_cast.r2c_1))
|
|
1663
1665
|
return false;
|
|
1664
|
-
if (!(this.
|
|
1666
|
+
if (!(this.s2c_1 == tmp0_other_with_cast.s2c_1))
|
|
1665
1667
|
return false;
|
|
1666
|
-
if (!equals(this.
|
|
1668
|
+
if (!equals(this.t2c_1, tmp0_other_with_cast.t2c_1))
|
|
1667
1669
|
return false;
|
|
1668
1670
|
return true;
|
|
1669
1671
|
};
|
|
1670
1672
|
function UnionType(name, type) {
|
|
1671
|
-
this.
|
|
1672
|
-
this.
|
|
1673
|
+
this.i2c_1 = name;
|
|
1674
|
+
this.j2c_1 = type;
|
|
1673
1675
|
}
|
|
1674
1676
|
protoOf(UnionType).toString = function () {
|
|
1675
|
-
return 'UnionType(name=' + this.
|
|
1677
|
+
return 'UnionType(name=' + this.i2c_1 + ', type=' + this.j2c_1.toString() + ')';
|
|
1676
1678
|
};
|
|
1677
1679
|
protoOf(UnionType).hashCode = function () {
|
|
1678
|
-
var result = getStringHashCode(this.
|
|
1679
|
-
result = imul(result, 31) + this.
|
|
1680
|
+
var result = getStringHashCode(this.i2c_1);
|
|
1681
|
+
result = imul(result, 31) + this.j2c_1.hashCode() | 0;
|
|
1680
1682
|
return result;
|
|
1681
1683
|
};
|
|
1682
1684
|
protoOf(UnionType).equals = function (other) {
|
|
@@ -1685,22 +1687,22 @@ protoOf(UnionType).equals = function (other) {
|
|
|
1685
1687
|
if (!(other instanceof UnionType))
|
|
1686
1688
|
return false;
|
|
1687
1689
|
var tmp0_other_with_cast = other instanceof UnionType ? other : THROW_CCE();
|
|
1688
|
-
if (!(this.
|
|
1690
|
+
if (!(this.i2c_1 === tmp0_other_with_cast.i2c_1))
|
|
1689
1691
|
return false;
|
|
1690
|
-
if (!this.
|
|
1692
|
+
if (!this.j2c_1.equals(tmp0_other_with_cast.j2c_1))
|
|
1691
1693
|
return false;
|
|
1692
1694
|
return true;
|
|
1693
1695
|
};
|
|
1694
1696
|
function LogicalType() {
|
|
1695
1697
|
}
|
|
1696
1698
|
protoOf(LogicalType).toString = function () {
|
|
1697
|
-
return 'LogicalType(type=' + this.
|
|
1699
|
+
return 'LogicalType(type=' + this.m2c_1 + ', logicalType=' + this.n2c_1 + ', precision=' + this.o2c_1 + ', scale=' + this.p2c_1 + ')';
|
|
1698
1700
|
};
|
|
1699
1701
|
protoOf(LogicalType).hashCode = function () {
|
|
1700
|
-
var result = getStringHashCode(this.
|
|
1701
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1702
|
-
result = imul(result, 31) + (this.
|
|
1703
|
-
result = imul(result, 31) + (this.
|
|
1702
|
+
var result = getStringHashCode(this.m2c_1);
|
|
1703
|
+
result = imul(result, 31) + getStringHashCode(this.n2c_1) | 0;
|
|
1704
|
+
result = imul(result, 31) + (this.o2c_1 == null ? 0 : this.o2c_1) | 0;
|
|
1705
|
+
result = imul(result, 31) + (this.p2c_1 == null ? 0 : this.p2c_1) | 0;
|
|
1704
1706
|
return result;
|
|
1705
1707
|
};
|
|
1706
1708
|
protoOf(LogicalType).equals = function (other) {
|
|
@@ -1709,32 +1711,32 @@ protoOf(LogicalType).equals = function (other) {
|
|
|
1709
1711
|
if (!(other instanceof LogicalType))
|
|
1710
1712
|
return false;
|
|
1711
1713
|
var tmp0_other_with_cast = other instanceof LogicalType ? other : THROW_CCE();
|
|
1712
|
-
if (!(this.
|
|
1714
|
+
if (!(this.m2c_1 === tmp0_other_with_cast.m2c_1))
|
|
1713
1715
|
return false;
|
|
1714
|
-
if (!(this.
|
|
1716
|
+
if (!(this.n2c_1 === tmp0_other_with_cast.n2c_1))
|
|
1715
1717
|
return false;
|
|
1716
|
-
if (!(this.
|
|
1718
|
+
if (!(this.o2c_1 == tmp0_other_with_cast.o2c_1))
|
|
1717
1719
|
return false;
|
|
1718
|
-
if (!(this.
|
|
1720
|
+
if (!(this.p2c_1 == tmp0_other_with_cast.p2c_1))
|
|
1719
1721
|
return false;
|
|
1720
1722
|
return true;
|
|
1721
1723
|
};
|
|
1722
1724
|
function TypeListSerializer() {
|
|
1723
1725
|
TypeListSerializer_instance = this;
|
|
1724
|
-
this.
|
|
1726
|
+
this.j2e_1 = buildSerialDescriptor('TypeListSerializer', SEALED_getInstance(), []);
|
|
1725
1727
|
}
|
|
1726
1728
|
protoOf(TypeListSerializer).sl = function () {
|
|
1727
|
-
return this.
|
|
1729
|
+
return this.j2e_1;
|
|
1728
1730
|
};
|
|
1729
|
-
protoOf(TypeListSerializer).
|
|
1730
|
-
if (value.
|
|
1731
|
+
protoOf(TypeListSerializer).k2e = function (encoder, value) {
|
|
1732
|
+
if (value.i2e_1 > 1) {
|
|
1731
1733
|
encoder.lq(ListSerializer(Companion_instance_1.g18()), value);
|
|
1732
1734
|
} else {
|
|
1733
1735
|
encoder.lq(Companion_instance_1.g18(), first(value));
|
|
1734
1736
|
}
|
|
1735
1737
|
};
|
|
1736
1738
|
protoOf(TypeListSerializer).tl = function (encoder, value) {
|
|
1737
|
-
return this.
|
|
1739
|
+
return this.k2e(encoder, value instanceof TypeList ? value : THROW_CCE());
|
|
1738
1740
|
};
|
|
1739
1741
|
protoOf(TypeListSerializer).ul = function (decoder) {
|
|
1740
1742
|
var tmp0_elvis_lhs = isInterface(decoder, JsonDecoder) ? decoder : null;
|
|
@@ -1782,14 +1784,14 @@ function TypeListSerializer_getInstance() {
|
|
|
1782
1784
|
}
|
|
1783
1785
|
function TypeSerializer() {
|
|
1784
1786
|
TypeSerializer_instance = this;
|
|
1785
|
-
this.
|
|
1787
|
+
this.l2e_1 = buildSerialDescriptor('TypeSerializer', SEALED_getInstance(), []);
|
|
1786
1788
|
}
|
|
1787
1789
|
protoOf(TypeSerializer).sl = function () {
|
|
1788
|
-
return this.
|
|
1790
|
+
return this.l2e_1;
|
|
1789
1791
|
};
|
|
1790
|
-
protoOf(TypeSerializer).
|
|
1792
|
+
protoOf(TypeSerializer).m2e = function (encoder, value) {
|
|
1791
1793
|
if (value instanceof SimpleType) {
|
|
1792
|
-
encoder.lq(serializer(StringCompanionObject_instance), value.
|
|
1794
|
+
encoder.lq(serializer(StringCompanionObject_instance), value.h2c_1);
|
|
1793
1795
|
} else {
|
|
1794
1796
|
if (value instanceof RecordType) {
|
|
1795
1797
|
encoder.lq(Companion_getInstance_3().g18(), value);
|
|
@@ -1820,7 +1822,7 @@ protoOf(TypeSerializer).q2e = function (encoder, value) {
|
|
|
1820
1822
|
}
|
|
1821
1823
|
};
|
|
1822
1824
|
protoOf(TypeSerializer).tl = function (encoder, value) {
|
|
1823
|
-
return this.
|
|
1825
|
+
return this.m2e(encoder, (!(value == null) ? isInterface(value, Type_0) : false) ? value : THROW_CCE());
|
|
1824
1826
|
};
|
|
1825
1827
|
protoOf(TypeSerializer).ul = function (decoder) {
|
|
1826
1828
|
var tmp0_elvis_lhs = isInterface(decoder, JsonDecoder) ? decoder : null;
|
|
@@ -1875,7 +1877,7 @@ function AvroParser$parse$lambda($this$Json) {
|
|
|
1875
1877
|
}
|
|
1876
1878
|
function AvroParser() {
|
|
1877
1879
|
}
|
|
1878
|
-
protoOf(AvroParser).
|
|
1880
|
+
protoOf(AvroParser).n2e = function (moduleContent, strict) {
|
|
1879
1881
|
var json = Json(VOID, AvroParser$parse$lambda);
|
|
1880
1882
|
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
1881
1883
|
var string = moduleContent.u22_1;
|
|
@@ -1885,10 +1887,10 @@ protoOf(AvroParser).r2e = function (moduleContent, strict) {
|
|
|
1885
1887
|
var this_1 = serializer_0(this_0, createKType(getKClass(Type_0), arrayOf([]), false));
|
|
1886
1888
|
var tmp$ret$1 = isInterface(this_1, KSerializer) ? this_1 : THROW_CCE();
|
|
1887
1889
|
var avro = json.w15(tmp$ret$1, string);
|
|
1888
|
-
var tmp = AvroConverter_getInstance().
|
|
1890
|
+
var tmp = AvroConverter_getInstance().g2d(avro);
|
|
1889
1891
|
var tmp_0;
|
|
1890
1892
|
if (avro instanceof RecordType) {
|
|
1891
|
-
tmp_0 = new Channel(null, new DefinitionIdentifier(avro.
|
|
1893
|
+
tmp_0 = new Channel(null, new DefinitionIdentifier(avro.v2c_1), new Custom(avro.v2c_1, false));
|
|
1892
1894
|
} else {
|
|
1893
1895
|
if (avro instanceof ArrayType) {
|
|
1894
1896
|
throw new NotImplementedError();
|
|
@@ -1927,9 +1929,9 @@ protoOf(AvroParser).r2e = function (moduleContent, strict) {
|
|
|
1927
1929
|
}
|
|
1928
1930
|
return new AST(nonEmptyListOf(new Module(moduleContent.t22_1, tmp_1), []));
|
|
1929
1931
|
};
|
|
1930
|
-
protoOf(AvroParser).
|
|
1932
|
+
protoOf(AvroParser).o2e = function (moduleContent, strict, $super) {
|
|
1931
1933
|
strict = strict === VOID ? true : strict;
|
|
1932
|
-
return $super === VOID ? this.
|
|
1934
|
+
return $super === VOID ? this.n2e(moduleContent, strict) : $super.n2e.call(this, moduleContent, strict);
|
|
1933
1935
|
};
|
|
1934
1936
|
var AvroParser_instance;
|
|
1935
1937
|
function AvroParser_getInstance() {
|