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