@flock/wirespec 0.16.13 → 0.17.0
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 +1166 -1166
- package/colormath-root-colormath.mjs +425 -425
- package/kotlin-kotlin-stdlib.mjs +6 -2
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-rgxgen.mjs +1767 -1767
- package/kotlinx-io-kotlinx-io-core.mjs +380 -380
- package/markdown.mjs +1864 -1864
- package/mordant-mordant.mjs +1638 -1638
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +3947 -3030
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-java.mjs +245 -245
- package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-kotlin.mjs +181 -181
- package/wirespec-src-compiler-emitters-python.mjs +244 -244
- package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-typescript.mjs +227 -227
- package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-wirespec.mjs +72 -72
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +411 -397
- package/wirespec-src-compiler-lib.mjs.map +1 -1
- package/wirespec-src-converter-avro.mjs +295 -290
- package/wirespec-src-converter-avro.mjs.map +1 -1
- package/wirespec-src-converter-openapi.mjs +525 -497
- package/wirespec-src-converter-openapi.mjs.map +1 -1
- package/wirespec-src-plugin-arguments.mjs +136 -136
- package/wirespec-src-plugin-cli.mjs +75 -75
- package/wirespec-src-plugin-npm.d.ts +1 -1
- package/wirespec-src-plugin-npm.mjs +314 -195
- package/wirespec-src-plugin-npm.mjs.map +1 -1
- package/wirespec-src-tools-generator.mjs +24 -24
|
@@ -141,11 +141,11 @@ initMetadataForObject(TypeSerializer, 'TypeSerializer', VOID, VOID, [KSerializer
|
|
|
141
141
|
initMetadataForObject(AvroParser, 'AvroParser');
|
|
142
142
|
//endregion
|
|
143
143
|
function isNullable(_this__u8e3s4, $this) {
|
|
144
|
-
return _this__u8e3s4.o1($this.
|
|
144
|
+
return _this__u8e3s4.o1($this.a2d_1);
|
|
145
145
|
}
|
|
146
146
|
function toPrimitive(_this__u8e3s4, $this) {
|
|
147
147
|
var tmp;
|
|
148
|
-
switch (_this__u8e3s4.
|
|
148
|
+
switch (_this__u8e3s4.b2d_1) {
|
|
149
149
|
case 'boolean':
|
|
150
150
|
tmp = Boolean_instance;
|
|
151
151
|
break;
|
|
@@ -168,7 +168,7 @@ function toPrimitive(_this__u8e3s4, $this) {
|
|
|
168
168
|
tmp = new String_0(null);
|
|
169
169
|
break;
|
|
170
170
|
default:
|
|
171
|
-
var reason = 'primitive not mapped ' + _this__u8e3s4.
|
|
171
|
+
var reason = 'primitive not mapped ' + _this__u8e3s4.b2d_1;
|
|
172
172
|
throw new NotImplementedError('An operation is not implemented: ' + reason);
|
|
173
173
|
}
|
|
174
174
|
return tmp;
|
|
@@ -176,7 +176,7 @@ function toPrimitive(_this__u8e3s4, $this) {
|
|
|
176
176
|
function toReference(_this__u8e3s4, $this, isNullable) {
|
|
177
177
|
var tmp;
|
|
178
178
|
if (_this__u8e3s4 instanceof SimpleType) {
|
|
179
|
-
switch (_this__u8e3s4.
|
|
179
|
+
switch (_this__u8e3s4.b2d_1) {
|
|
180
180
|
case 'null':
|
|
181
181
|
tmp = new Unit(isNullable);
|
|
182
182
|
break;
|
|
@@ -190,27 +190,27 @@ function toReference(_this__u8e3s4, $this, isNullable) {
|
|
|
190
190
|
tmp = new Primitive(toPrimitive(_this__u8e3s4, $this), isNullable);
|
|
191
191
|
break;
|
|
192
192
|
default:
|
|
193
|
-
tmp = new Custom(_this__u8e3s4.
|
|
193
|
+
tmp = new Custom(_this__u8e3s4.b2d_1, isNullable);
|
|
194
194
|
break;
|
|
195
195
|
}
|
|
196
196
|
} else {
|
|
197
197
|
if (_this__u8e3s4 instanceof ArrayType) {
|
|
198
|
-
tmp = new Iterable(toReference(_this__u8e3s4.
|
|
198
|
+
tmp = new Iterable(toReference(_this__u8e3s4.u2d_1, $this, false), isNullable);
|
|
199
199
|
} else {
|
|
200
200
|
if (_this__u8e3s4 instanceof RecordType) {
|
|
201
|
-
tmp = new Custom(_this__u8e3s4.
|
|
201
|
+
tmp = new Custom(_this__u8e3s4.p2d_1, isNullable);
|
|
202
202
|
} else {
|
|
203
203
|
if (_this__u8e3s4 instanceof EnumType) {
|
|
204
|
-
tmp = new Custom(_this__u8e3s4.
|
|
204
|
+
tmp = new Custom(_this__u8e3s4.l2d_1, isNullable);
|
|
205
205
|
} else {
|
|
206
206
|
if (_this__u8e3s4 instanceof LogicalType) {
|
|
207
|
-
tmp = toReference(new SimpleType(_this__u8e3s4.
|
|
207
|
+
tmp = toReference(new SimpleType(_this__u8e3s4.g2d_1), $this, isNullable);
|
|
208
208
|
} else {
|
|
209
209
|
if (_this__u8e3s4 instanceof MapType) {
|
|
210
|
-
tmp = new Dict(toReference(_this__u8e3s4.
|
|
210
|
+
tmp = new Dict(toReference(_this__u8e3s4.f2d_1, $this, false), isNullable);
|
|
211
211
|
} else {
|
|
212
212
|
if (_this__u8e3s4 instanceof UnionType) {
|
|
213
|
-
tmp = new Custom(_this__u8e3s4.
|
|
213
|
+
tmp = new Custom(_this__u8e3s4.c2d_1, isNullable);
|
|
214
214
|
} else {
|
|
215
215
|
noWhenBranchMatchedException();
|
|
216
216
|
}
|
|
@@ -223,7 +223,7 @@ function toReference(_this__u8e3s4, $this, isNullable) {
|
|
|
223
223
|
return tmp;
|
|
224
224
|
}
|
|
225
225
|
function toReference_0(_this__u8e3s4, $this) {
|
|
226
|
-
var list = minus(_this__u8e3s4, $this.
|
|
226
|
+
var list = minus(_this__u8e3s4, $this.a2d_1);
|
|
227
227
|
var tmp;
|
|
228
228
|
if (list.j() === 1) {
|
|
229
229
|
tmp = toReference(first(list), $this, isNullable(_this__u8e3s4, $this));
|
|
@@ -263,29 +263,34 @@ function toReference_0(_this__u8e3s4, $this) {
|
|
|
263
263
|
return tmp;
|
|
264
264
|
}
|
|
265
265
|
function toType(_this__u8e3s4, $this) {
|
|
266
|
-
var
|
|
267
|
-
var
|
|
266
|
+
var tmp0_annotations = emptyList();
|
|
267
|
+
var tmp1_identifier = new DefinitionIdentifier(_this__u8e3s4.p2d_1);
|
|
268
|
+
var tmp2_extends = emptyList();
|
|
268
269
|
// Inline function 'kotlin.collections.map' call
|
|
269
|
-
var this_0 = _this__u8e3s4.
|
|
270
|
+
var this_0 = _this__u8e3s4.r2d_1;
|
|
270
271
|
// Inline function 'kotlin.collections.mapTo' call
|
|
271
272
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
272
273
|
var tmp0_iterator = this_0.g();
|
|
273
274
|
while (tmp0_iterator.h()) {
|
|
274
275
|
var item = tmp0_iterator.i();
|
|
275
276
|
// Inline function 'community.flock.wirespec.converter.avro.AvroConverter.toType.<anonymous>' call
|
|
276
|
-
var
|
|
277
|
+
var tmp0_identifier = new FieldIdentifier(item.v2d_1);
|
|
278
|
+
var tmp1_annotations = emptyList();
|
|
279
|
+
var tmp2_reference = toReference_0(item.w2d_1, AvroConverter_getInstance());
|
|
280
|
+
var tmp$ret$0 = new Field(tmp0_identifier, tmp2_reference, tmp1_annotations);
|
|
277
281
|
destination.e(tmp$ret$0);
|
|
278
282
|
}
|
|
279
|
-
var
|
|
280
|
-
return new Type(null,
|
|
283
|
+
var tmp3_shape = new Shape(destination);
|
|
284
|
+
return new Type(null, tmp0_annotations, tmp1_identifier, tmp3_shape, tmp2_extends);
|
|
281
285
|
}
|
|
282
286
|
function toEnum(_this__u8e3s4, $this) {
|
|
283
|
-
return new Enum(null, new DefinitionIdentifier(_this__u8e3s4.
|
|
287
|
+
return new Enum(null, emptyList(), new DefinitionIdentifier(_this__u8e3s4.l2d_1), toSet(_this__u8e3s4.n2d_1));
|
|
284
288
|
}
|
|
285
289
|
function toUnion(_this__u8e3s4, $this, name) {
|
|
286
|
-
var tmp =
|
|
290
|
+
var tmp = emptyList();
|
|
291
|
+
var tmp_0 = new DefinitionIdentifier(name);
|
|
287
292
|
// Inline function 'kotlin.collections.map' call
|
|
288
|
-
var this_0 = _this__u8e3s4.
|
|
293
|
+
var this_0 = _this__u8e3s4.d2d_1;
|
|
289
294
|
// Inline function 'kotlin.collections.mapTo' call
|
|
290
295
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
291
296
|
var tmp0_iterator = this_0.g();
|
|
@@ -295,13 +300,13 @@ function toUnion(_this__u8e3s4, $this, name) {
|
|
|
295
300
|
var tmp$ret$0 = toReference(item, AvroConverter_getInstance(), false);
|
|
296
301
|
destination.e(tmp$ret$0);
|
|
297
302
|
}
|
|
298
|
-
return new Union(null, tmp, toSet(destination));
|
|
303
|
+
return new Union(null, tmp, tmp_0, toSet(destination));
|
|
299
304
|
}
|
|
300
305
|
function AvroConverter() {
|
|
301
306
|
AvroConverter_instance = this;
|
|
302
|
-
this.
|
|
307
|
+
this.a2d_1 = new SimpleType('null');
|
|
303
308
|
}
|
|
304
|
-
protoOf(AvroConverter).
|
|
309
|
+
protoOf(AvroConverter).z2d = function (_this__u8e3s4, name) {
|
|
305
310
|
var tmp;
|
|
306
311
|
if (_this__u8e3s4 instanceof SimpleType) {
|
|
307
312
|
tmp = emptyList();
|
|
@@ -310,7 +315,7 @@ protoOf(AvroConverter).k2d = function (_this__u8e3s4, name) {
|
|
|
310
315
|
var tmp_0 = listOf(toType(_this__u8e3s4, this));
|
|
311
316
|
// Inline function 'kotlin.collections.flatMap' call
|
|
312
317
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
313
|
-
var this_0 = _this__u8e3s4.
|
|
318
|
+
var this_0 = _this__u8e3s4.r2d_1;
|
|
314
319
|
var destination = ArrayList_init_$Create$_0();
|
|
315
320
|
var tmp0_iterator = this_0.g();
|
|
316
321
|
while (tmp0_iterator.h()) {
|
|
@@ -318,13 +323,13 @@ protoOf(AvroConverter).k2d = function (_this__u8e3s4, name) {
|
|
|
318
323
|
// Inline function 'community.flock.wirespec.converter.avro.AvroConverter.flatten.<anonymous>' call
|
|
319
324
|
// Inline function 'kotlin.collections.flatMap' call
|
|
320
325
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
321
|
-
var this_1 = element.
|
|
326
|
+
var this_1 = element.w2d_1;
|
|
322
327
|
var destination_0 = ArrayList_init_$Create$_0();
|
|
323
328
|
var tmp0_iterator_0 = this_1.g();
|
|
324
329
|
while (tmp0_iterator_0.h()) {
|
|
325
330
|
var element_0 = tmp0_iterator_0.i();
|
|
326
331
|
// Inline function 'community.flock.wirespec.converter.avro.AvroConverter.flatten.<anonymous>.<anonymous>' call
|
|
327
|
-
var list = AvroConverter_getInstance().
|
|
332
|
+
var list = AvroConverter_getInstance().z2d(element_0, name);
|
|
328
333
|
addAll(destination_0, list);
|
|
329
334
|
}
|
|
330
335
|
var list_0 = destination_0;
|
|
@@ -333,7 +338,7 @@ protoOf(AvroConverter).k2d = function (_this__u8e3s4, name) {
|
|
|
333
338
|
tmp = plus(tmp_0, destination);
|
|
334
339
|
} else {
|
|
335
340
|
if (_this__u8e3s4 instanceof ArrayType) {
|
|
336
|
-
tmp = this.
|
|
341
|
+
tmp = this.z2d(_this__u8e3s4.u2d_1, name);
|
|
337
342
|
} else {
|
|
338
343
|
if (_this__u8e3s4 instanceof EnumType) {
|
|
339
344
|
tmp = listOf(toEnum(_this__u8e3s4, this));
|
|
@@ -342,7 +347,7 @@ protoOf(AvroConverter).k2d = function (_this__u8e3s4, name) {
|
|
|
342
347
|
tmp = emptyList();
|
|
343
348
|
} else {
|
|
344
349
|
if (_this__u8e3s4 instanceof MapType) {
|
|
345
|
-
tmp = this.
|
|
350
|
+
tmp = this.z2d(_this__u8e3s4.f2d_1, name);
|
|
346
351
|
} else {
|
|
347
352
|
if (_this__u8e3s4 instanceof UnionType) {
|
|
348
353
|
tmp = listOf(toUnion(_this__u8e3s4, this, name));
|
|
@@ -357,9 +362,9 @@ protoOf(AvroConverter).k2d = function (_this__u8e3s4, name) {
|
|
|
357
362
|
}
|
|
358
363
|
return tmp;
|
|
359
364
|
};
|
|
360
|
-
protoOf(AvroConverter).
|
|
365
|
+
protoOf(AvroConverter).a2e = function (_this__u8e3s4, name, $super) {
|
|
361
366
|
name = name === VOID ? '' : name;
|
|
362
|
-
return $super === VOID ? this.
|
|
367
|
+
return $super === VOID ? this.z2d(_this__u8e3s4, name) : $super.z2d.call(this, _this__u8e3s4, name);
|
|
363
368
|
};
|
|
364
369
|
var AvroConverter_instance;
|
|
365
370
|
function AvroConverter_getInstance() {
|
|
@@ -369,7 +374,7 @@ function AvroConverter_getInstance() {
|
|
|
369
374
|
}
|
|
370
375
|
function findType(_this__u8e3s4, $this, name) {
|
|
371
376
|
// Inline function 'kotlin.collections.find' call
|
|
372
|
-
var this_0 = _this__u8e3s4.
|
|
377
|
+
var this_0 = _this__u8e3s4.u25_1.tk();
|
|
373
378
|
var tmp$ret$1;
|
|
374
379
|
$l$block: {
|
|
375
380
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
@@ -377,7 +382,7 @@ function findType(_this__u8e3s4, $this, name) {
|
|
|
377
382
|
while (tmp0_iterator.h()) {
|
|
378
383
|
var element = tmp0_iterator.i();
|
|
379
384
|
// Inline function 'community.flock.wirespec.converter.avro.AvroEmitter.findType.<anonymous>' call
|
|
380
|
-
if (element.
|
|
385
|
+
if (element.l26().b1() === name) {
|
|
381
386
|
tmp$ret$1 = element;
|
|
382
387
|
break $l$block;
|
|
383
388
|
}
|
|
@@ -388,16 +393,16 @@ function findType(_this__u8e3s4, $this, name) {
|
|
|
388
393
|
}
|
|
389
394
|
function AvroEmitter() {
|
|
390
395
|
AvroEmitter_instance = this;
|
|
391
|
-
this.
|
|
396
|
+
this.b2e_1 = FileExtension_JSON_getInstance();
|
|
392
397
|
}
|
|
393
398
|
protoOf(AvroEmitter).g23 = function (ast, logger) {
|
|
394
399
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
395
400
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
396
401
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
397
|
-
var this_0 = ast.
|
|
402
|
+
var this_0 = ast.s25_1;
|
|
398
403
|
// Inline function 'community.flock.wirespec.converter.avro.AvroEmitter.emit.<anonymous>' call
|
|
399
404
|
var it = this_0.pk_1;
|
|
400
|
-
var tmp = AvroEmitter_getInstance().
|
|
405
|
+
var tmp = AvroEmitter_getInstance().c2e(it);
|
|
401
406
|
// Inline function 'kotlin.collections.map' call
|
|
402
407
|
var this_1 = this_0.qk_1;
|
|
403
408
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -406,7 +411,7 @@ protoOf(AvroEmitter).g23 = function (ast, logger) {
|
|
|
406
411
|
while (tmp0_iterator.h()) {
|
|
407
412
|
var item = tmp0_iterator.i();
|
|
408
413
|
// Inline function 'community.flock.wirespec.converter.avro.AvroEmitter.emit.<anonymous>' call
|
|
409
|
-
var tmp$ret$1 = AvroEmitter_getInstance().
|
|
414
|
+
var tmp$ret$1 = AvroEmitter_getInstance().c2e(item);
|
|
410
415
|
destination.e(tmp$ret$1);
|
|
411
416
|
}
|
|
412
417
|
var this_2 = new NonEmptyList(tmp, destination);
|
|
@@ -455,13 +460,13 @@ protoOf(AvroEmitter).g23 = function (ast, logger) {
|
|
|
455
460
|
}
|
|
456
461
|
return new NonEmptyList(tmp_1, destination_1);
|
|
457
462
|
};
|
|
458
|
-
protoOf(AvroEmitter).
|
|
459
|
-
return new EnumType('enum', _this__u8e3s4.
|
|
463
|
+
protoOf(AvroEmitter).d2e = function (_this__u8e3s4) {
|
|
464
|
+
return new EnumType('enum', _this__u8e3s4.x26_1.b1(), VOID, toList(_this__u8e3s4.y26_1));
|
|
460
465
|
};
|
|
461
|
-
protoOf(AvroEmitter).
|
|
462
|
-
var tmp = _this__u8e3s4.
|
|
466
|
+
protoOf(AvroEmitter).e2e = function (_this__u8e3s4) {
|
|
467
|
+
var tmp = _this__u8e3s4.i24_1.b1();
|
|
463
468
|
// Inline function 'kotlin.collections.map' call
|
|
464
|
-
var this_0 = _this__u8e3s4.
|
|
469
|
+
var this_0 = _this__u8e3s4.j24_1;
|
|
465
470
|
// Inline function 'kotlin.collections.mapTo' call
|
|
466
471
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
467
472
|
var tmp0_iterator = this_0.g();
|
|
@@ -473,23 +478,23 @@ protoOf(AvroEmitter).p2d = function (_this__u8e3s4) {
|
|
|
473
478
|
}
|
|
474
479
|
return new UnionType(tmp, TypeList_init_$Create$(destination));
|
|
475
480
|
};
|
|
476
|
-
protoOf(AvroEmitter).
|
|
481
|
+
protoOf(AvroEmitter).f2e = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
477
482
|
var tmp;
|
|
478
483
|
if (_this__u8e3s4 instanceof Dict) {
|
|
479
|
-
tmp = new MapType('map', this.
|
|
484
|
+
tmp = new MapType('map', this.f2e(_this__u8e3s4.u23_1, module_0, hasEmitted));
|
|
480
485
|
} else {
|
|
481
486
|
if (_this__u8e3s4 instanceof Iterable) {
|
|
482
|
-
tmp = new ArrayType('array', this.
|
|
487
|
+
tmp = new ArrayType('array', this.f2e(_this__u8e3s4.r23_1, module_0, hasEmitted));
|
|
483
488
|
} else {
|
|
484
489
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
485
|
-
var type = _this__u8e3s4.
|
|
490
|
+
var type = _this__u8e3s4.v29_1;
|
|
486
491
|
var tmp_0;
|
|
487
492
|
if (type instanceof String_0) {
|
|
488
493
|
tmp_0 = new SimpleType('string');
|
|
489
494
|
} else {
|
|
490
495
|
if (type instanceof Integer) {
|
|
491
496
|
var tmp_1;
|
|
492
|
-
switch (type.
|
|
497
|
+
switch (type.a29_1.r2_1) {
|
|
493
498
|
case 0:
|
|
494
499
|
tmp_1 = new SimpleType('int');
|
|
495
500
|
break;
|
|
@@ -504,7 +509,7 @@ protoOf(AvroEmitter).q2d = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
|
504
509
|
} else {
|
|
505
510
|
if (type instanceof Number_0) {
|
|
506
511
|
var tmp_2;
|
|
507
|
-
switch (type.
|
|
512
|
+
switch (type.d29_1.r2_1) {
|
|
508
513
|
case 0:
|
|
509
514
|
tmp_2 = new SimpleType('float');
|
|
510
515
|
break;
|
|
@@ -532,31 +537,31 @@ protoOf(AvroEmitter).q2d = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
|
532
537
|
tmp = tmp_0;
|
|
533
538
|
} else {
|
|
534
539
|
if (_this__u8e3s4 instanceof Custom) {
|
|
535
|
-
var def = findType(module_0, this, _this__u8e3s4.
|
|
540
|
+
var def = findType(module_0, this, _this__u8e3s4.r29_1);
|
|
536
541
|
var tmp_3;
|
|
537
542
|
if (def instanceof Type) {
|
|
538
543
|
var tmp_4;
|
|
539
|
-
if (hasEmitted.o1(def.
|
|
544
|
+
if (hasEmitted.o1(def.n24_1.b1())) {
|
|
540
545
|
// Inline function 'kotlin.let' call
|
|
541
546
|
// Inline function 'kotlin.contracts.contract' call
|
|
542
|
-
var p0 = def.
|
|
547
|
+
var p0 = def.n24_1.b1();
|
|
543
548
|
tmp_4 = new SimpleType(p0);
|
|
544
549
|
} else {
|
|
545
550
|
// Inline function 'kotlin.also' call
|
|
546
551
|
// Inline function 'kotlin.contracts.contract' call
|
|
547
552
|
// Inline function 'community.flock.wirespec.converter.avro.AvroEmitter.emit.<anonymous>' call
|
|
548
|
-
hasEmitted.e(def.
|
|
549
|
-
tmp_4 = this.
|
|
553
|
+
hasEmitted.e(def.n24_1.b1());
|
|
554
|
+
tmp_4 = this.g2e(def, module_0, hasEmitted);
|
|
550
555
|
}
|
|
551
556
|
tmp_3 = tmp_4;
|
|
552
557
|
} else {
|
|
553
558
|
if (def instanceof Enum) {
|
|
554
|
-
tmp_3 = new SimpleType(def.
|
|
559
|
+
tmp_3 = new SimpleType(def.x26_1.b1());
|
|
555
560
|
} else {
|
|
556
561
|
if (def instanceof Refined) {
|
|
557
562
|
tmp_3 = new SimpleType('string');
|
|
558
563
|
} else {
|
|
559
|
-
tmp_3 = new SimpleType(_this__u8e3s4.
|
|
564
|
+
tmp_3 = new SimpleType(_this__u8e3s4.r29_1);
|
|
560
565
|
}
|
|
561
566
|
}
|
|
562
567
|
}
|
|
@@ -577,44 +582,44 @@ protoOf(AvroEmitter).q2d = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
|
577
582
|
}
|
|
578
583
|
return tmp;
|
|
579
584
|
};
|
|
580
|
-
protoOf(AvroEmitter).
|
|
581
|
-
var ref = _this__u8e3s4.
|
|
585
|
+
protoOf(AvroEmitter).h2e = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
586
|
+
var ref = _this__u8e3s4.s24_1;
|
|
582
587
|
var tmp;
|
|
583
588
|
if (ref instanceof Iterable) {
|
|
584
|
-
tmp = new ArrayType('array', this.
|
|
589
|
+
tmp = new ArrayType('array', this.f2e(ref.r23_1, module_0, hasEmitted));
|
|
585
590
|
} else {
|
|
586
|
-
tmp = this.
|
|
591
|
+
tmp = this.f2e(ref, module_0, hasEmitted);
|
|
587
592
|
}
|
|
588
593
|
return tmp;
|
|
589
594
|
};
|
|
590
|
-
protoOf(AvroEmitter).
|
|
591
|
-
var tmp0_name = _this__u8e3s4.
|
|
595
|
+
protoOf(AvroEmitter).g2e = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
596
|
+
var tmp0_name = _this__u8e3s4.n24_1.b1();
|
|
592
597
|
// Inline function 'kotlin.collections.map' call
|
|
593
|
-
var this_0 = _this__u8e3s4.
|
|
598
|
+
var this_0 = _this__u8e3s4.o24_1.k24_1;
|
|
594
599
|
// Inline function 'kotlin.collections.mapTo' call
|
|
595
600
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
596
601
|
var tmp0_iterator = this_0.g();
|
|
597
602
|
while (tmp0_iterator.h()) {
|
|
598
603
|
var item = tmp0_iterator.i();
|
|
599
604
|
// Inline function 'community.flock.wirespec.converter.avro.AvroEmitter.emit.<anonymous>' call
|
|
600
|
-
var tmp = item.
|
|
605
|
+
var tmp = item.r24_1.b1();
|
|
601
606
|
var tmp_0;
|
|
602
|
-
if (item.
|
|
603
|
-
tmp_0 = new TypeList([new SimpleType('null'), AvroEmitter_getInstance().
|
|
607
|
+
if (item.s24_1.jm()) {
|
|
608
|
+
tmp_0 = new TypeList([new SimpleType('null'), AvroEmitter_getInstance().h2e(item, module_0, hasEmitted)]);
|
|
604
609
|
} else {
|
|
605
|
-
tmp_0 = new TypeList([AvroEmitter_getInstance().
|
|
610
|
+
tmp_0 = new TypeList([AvroEmitter_getInstance().h2e(item, module_0, hasEmitted)]);
|
|
606
611
|
}
|
|
607
612
|
var tmp$ret$0 = new Field_0(tmp, tmp_0);
|
|
608
613
|
destination.e(tmp$ret$0);
|
|
609
614
|
}
|
|
610
615
|
return new RecordType('record', tmp0_name, VOID, destination);
|
|
611
616
|
};
|
|
612
|
-
protoOf(AvroEmitter).
|
|
617
|
+
protoOf(AvroEmitter).c2e = function (module_0) {
|
|
613
618
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
614
619
|
var hasEmitted = ArrayList_init_$Create$_0();
|
|
615
620
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
616
621
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
617
|
-
var this_0 = module_0.
|
|
622
|
+
var this_0 = module_0.u25_1.tk();
|
|
618
623
|
var destination = ArrayList_init_$Create$_0();
|
|
619
624
|
// Inline function 'kotlin.collections.forEach' call
|
|
620
625
|
var tmp0_iterator = this_0.g();
|
|
@@ -624,13 +629,13 @@ protoOf(AvroEmitter).n2d = function (module_0) {
|
|
|
624
629
|
// Inline function 'community.flock.wirespec.converter.avro.AvroEmitter.emit.<anonymous>' call
|
|
625
630
|
var tmp;
|
|
626
631
|
if (element instanceof Type) {
|
|
627
|
-
tmp = AvroEmitter_getInstance().
|
|
632
|
+
tmp = AvroEmitter_getInstance().g2e(element, module_0, hasEmitted);
|
|
628
633
|
} else {
|
|
629
634
|
if (element instanceof Enum) {
|
|
630
|
-
tmp = AvroEmitter_getInstance().
|
|
635
|
+
tmp = AvroEmitter_getInstance().d2e(element);
|
|
631
636
|
} else {
|
|
632
637
|
if (element instanceof Union) {
|
|
633
|
-
tmp = AvroEmitter_getInstance().
|
|
638
|
+
tmp = AvroEmitter_getInstance().e2e(element);
|
|
634
639
|
} else {
|
|
635
640
|
tmp = null;
|
|
636
641
|
}
|
|
@@ -666,26 +671,26 @@ function $serializer() {
|
|
|
666
671
|
tmp0_serialDesc.uv('type', false);
|
|
667
672
|
tmp0_serialDesc.uv('doc', true);
|
|
668
673
|
tmp0_serialDesc.uv('default', true);
|
|
669
|
-
this.
|
|
674
|
+
this.i2e_1 = tmp0_serialDesc;
|
|
670
675
|
}
|
|
671
|
-
protoOf($serializer).
|
|
672
|
-
var tmp0_desc = this.
|
|
676
|
+
protoOf($serializer).j2e = function (encoder, value) {
|
|
677
|
+
var tmp0_desc = this.i2e_1;
|
|
673
678
|
var tmp1_output = encoder.ko(tmp0_desc);
|
|
674
|
-
tmp1_output.zp(tmp0_desc, 0, value.
|
|
675
|
-
tmp1_output.bq(tmp0_desc, 1, TypeListSerializer_getInstance(), value.
|
|
676
|
-
if (tmp1_output.hq(tmp0_desc, 2) ? true : !(value.
|
|
677
|
-
tmp1_output.dq(tmp0_desc, 2, StringSerializer_getInstance(), value.
|
|
679
|
+
tmp1_output.zp(tmp0_desc, 0, value.v2d_1);
|
|
680
|
+
tmp1_output.bq(tmp0_desc, 1, TypeListSerializer_getInstance(), value.w2d_1);
|
|
681
|
+
if (tmp1_output.hq(tmp0_desc, 2) ? true : !(value.x2d_1 == null)) {
|
|
682
|
+
tmp1_output.dq(tmp0_desc, 2, StringSerializer_getInstance(), value.x2d_1);
|
|
678
683
|
}
|
|
679
|
-
if (tmp1_output.hq(tmp0_desc, 3) ? true : !(value.
|
|
680
|
-
tmp1_output.dq(tmp0_desc, 3, StringSerializer_getInstance(), value.
|
|
684
|
+
if (tmp1_output.hq(tmp0_desc, 3) ? true : !(value.y2d_1 == null)) {
|
|
685
|
+
tmp1_output.dq(tmp0_desc, 3, StringSerializer_getInstance(), value.y2d_1);
|
|
681
686
|
}
|
|
682
687
|
tmp1_output.lo(tmp0_desc);
|
|
683
688
|
};
|
|
684
689
|
protoOf($serializer).kl = function (encoder, value) {
|
|
685
|
-
return this.
|
|
690
|
+
return this.j2e(encoder, value instanceof Field_0 ? value : THROW_CCE());
|
|
686
691
|
};
|
|
687
692
|
protoOf($serializer).ll = function (decoder) {
|
|
688
|
-
var tmp0_desc = this.
|
|
693
|
+
var tmp0_desc = this.i2e_1;
|
|
689
694
|
var tmp1_flag = true;
|
|
690
695
|
var tmp2_index = 0;
|
|
691
696
|
var tmp3_bitMask0 = 0;
|
|
@@ -734,7 +739,7 @@ protoOf($serializer).ll = function (decoder) {
|
|
|
734
739
|
return Field_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
735
740
|
};
|
|
736
741
|
protoOf($serializer).jl = function () {
|
|
737
|
-
return this.
|
|
742
|
+
return this.i2e_1;
|
|
738
743
|
};
|
|
739
744
|
protoOf($serializer).nw = function () {
|
|
740
745
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -750,18 +755,18 @@ function $serializer_getInstance() {
|
|
|
750
755
|
}
|
|
751
756
|
function Field_init_$Init$(seen0, name, type, doc, default_0, serializationConstructorMarker, $this) {
|
|
752
757
|
if (!(3 === (3 & seen0))) {
|
|
753
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance().
|
|
758
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance().i2e_1);
|
|
754
759
|
}
|
|
755
|
-
$this.
|
|
756
|
-
$this.
|
|
760
|
+
$this.v2d_1 = name;
|
|
761
|
+
$this.w2d_1 = type;
|
|
757
762
|
if (0 === (seen0 & 4))
|
|
758
|
-
$this.
|
|
763
|
+
$this.x2d_1 = null;
|
|
759
764
|
else
|
|
760
|
-
$this.
|
|
765
|
+
$this.x2d_1 = doc;
|
|
761
766
|
if (0 === (seen0 & 8))
|
|
762
|
-
$this.
|
|
767
|
+
$this.y2d_1 = null;
|
|
763
768
|
else
|
|
764
|
-
$this.
|
|
769
|
+
$this.y2d_1 = default_0;
|
|
765
770
|
return $this;
|
|
766
771
|
}
|
|
767
772
|
function Field_init_$Create$(seen0, name, type, doc, default_0, serializationConstructorMarker) {
|
|
@@ -804,19 +809,19 @@ function $serializer_0() {
|
|
|
804
809
|
$serializer_instance_0 = this;
|
|
805
810
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.SimpleType', this, 1);
|
|
806
811
|
tmp0_serialDesc.uv('value', false);
|
|
807
|
-
this.
|
|
812
|
+
this.k2e_1 = tmp0_serialDesc;
|
|
808
813
|
}
|
|
809
|
-
protoOf($serializer_0).
|
|
810
|
-
var tmp0_desc = this.
|
|
814
|
+
protoOf($serializer_0).l2e = function (encoder, value) {
|
|
815
|
+
var tmp0_desc = this.k2e_1;
|
|
811
816
|
var tmp1_output = encoder.ko(tmp0_desc);
|
|
812
|
-
tmp1_output.zp(tmp0_desc, 0, value.
|
|
817
|
+
tmp1_output.zp(tmp0_desc, 0, value.b2d_1);
|
|
813
818
|
tmp1_output.lo(tmp0_desc);
|
|
814
819
|
};
|
|
815
820
|
protoOf($serializer_0).kl = function (encoder, value) {
|
|
816
|
-
return this.
|
|
821
|
+
return this.l2e(encoder, value instanceof SimpleType ? value : THROW_CCE());
|
|
817
822
|
};
|
|
818
823
|
protoOf($serializer_0).ll = function (decoder) {
|
|
819
|
-
var tmp0_desc = this.
|
|
824
|
+
var tmp0_desc = this.k2e_1;
|
|
820
825
|
var tmp1_flag = true;
|
|
821
826
|
var tmp2_index = 0;
|
|
822
827
|
var tmp3_bitMask0 = 0;
|
|
@@ -844,7 +849,7 @@ protoOf($serializer_0).ll = function (decoder) {
|
|
|
844
849
|
return SimpleType_init_$Create$(tmp3_bitMask0, tmp4_local0, null);
|
|
845
850
|
};
|
|
846
851
|
protoOf($serializer_0).jl = function () {
|
|
847
|
-
return this.
|
|
852
|
+
return this.k2e_1;
|
|
848
853
|
};
|
|
849
854
|
protoOf($serializer_0).nw = function () {
|
|
850
855
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -860,9 +865,9 @@ function $serializer_getInstance_0() {
|
|
|
860
865
|
}
|
|
861
866
|
function SimpleType_init_$Init$(seen0, value, serializationConstructorMarker, $this) {
|
|
862
867
|
if (!(1 === (1 & seen0))) {
|
|
863
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_0().
|
|
868
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_0().k2e_1);
|
|
864
869
|
}
|
|
865
|
-
$this.
|
|
870
|
+
$this.b2d_1 = value;
|
|
866
871
|
return $this;
|
|
867
872
|
}
|
|
868
873
|
function SimpleType_init_$Create$(seen0, value, serializationConstructorMarker) {
|
|
@@ -874,7 +879,7 @@ function Companion_3() {
|
|
|
874
879
|
// Inline function 'kotlin.arrayOf' call
|
|
875
880
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
876
881
|
// Inline function 'kotlin.js.asDynamic' call
|
|
877
|
-
tmp.
|
|
882
|
+
tmp.m2e_1 = [null, null, null, new ArrayListSerializer($serializer_getInstance()), null];
|
|
878
883
|
}
|
|
879
884
|
protoOf(Companion_3).y17 = function () {
|
|
880
885
|
return $serializer_getInstance_1();
|
|
@@ -893,28 +898,28 @@ function $serializer_1() {
|
|
|
893
898
|
tmp0_serialDesc.uv('namespace', true);
|
|
894
899
|
tmp0_serialDesc.uv('fields', false);
|
|
895
900
|
tmp0_serialDesc.uv('doc', true);
|
|
896
|
-
this.
|
|
901
|
+
this.n2e_1 = tmp0_serialDesc;
|
|
897
902
|
}
|
|
898
|
-
protoOf($serializer_1).
|
|
899
|
-
var tmp0_desc = this.
|
|
903
|
+
protoOf($serializer_1).o2e = function (encoder, value) {
|
|
904
|
+
var tmp0_desc = this.n2e_1;
|
|
900
905
|
var tmp1_output = encoder.ko(tmp0_desc);
|
|
901
|
-
var tmp2_cached = Companion_getInstance_3().
|
|
902
|
-
tmp1_output.zp(tmp0_desc, 0, value.
|
|
903
|
-
tmp1_output.zp(tmp0_desc, 1, value.
|
|
904
|
-
if (tmp1_output.hq(tmp0_desc, 2) ? true : !(value.
|
|
905
|
-
tmp1_output.dq(tmp0_desc, 2, StringSerializer_getInstance(), value.
|
|
906
|
+
var tmp2_cached = Companion_getInstance_3().m2e_1;
|
|
907
|
+
tmp1_output.zp(tmp0_desc, 0, value.o2d_1);
|
|
908
|
+
tmp1_output.zp(tmp0_desc, 1, value.p2d_1);
|
|
909
|
+
if (tmp1_output.hq(tmp0_desc, 2) ? true : !(value.q2d_1 == null)) {
|
|
910
|
+
tmp1_output.dq(tmp0_desc, 2, StringSerializer_getInstance(), value.q2d_1);
|
|
906
911
|
}
|
|
907
|
-
tmp1_output.bq(tmp0_desc, 3, tmp2_cached[3], value.
|
|
908
|
-
if (tmp1_output.hq(tmp0_desc, 4) ? true : !(value.
|
|
909
|
-
tmp1_output.dq(tmp0_desc, 4, StringSerializer_getInstance(), value.
|
|
912
|
+
tmp1_output.bq(tmp0_desc, 3, tmp2_cached[3], value.r2d_1);
|
|
913
|
+
if (tmp1_output.hq(tmp0_desc, 4) ? true : !(value.s2d_1 == null)) {
|
|
914
|
+
tmp1_output.dq(tmp0_desc, 4, StringSerializer_getInstance(), value.s2d_1);
|
|
910
915
|
}
|
|
911
916
|
tmp1_output.lo(tmp0_desc);
|
|
912
917
|
};
|
|
913
918
|
protoOf($serializer_1).kl = function (encoder, value) {
|
|
914
|
-
return this.
|
|
919
|
+
return this.o2e(encoder, value instanceof RecordType ? value : THROW_CCE());
|
|
915
920
|
};
|
|
916
921
|
protoOf($serializer_1).ll = function (decoder) {
|
|
917
|
-
var tmp0_desc = this.
|
|
922
|
+
var tmp0_desc = this.n2e_1;
|
|
918
923
|
var tmp1_flag = true;
|
|
919
924
|
var tmp2_index = 0;
|
|
920
925
|
var tmp3_bitMask0 = 0;
|
|
@@ -924,7 +929,7 @@ protoOf($serializer_1).ll = function (decoder) {
|
|
|
924
929
|
var tmp7_local3 = null;
|
|
925
930
|
var tmp8_local4 = null;
|
|
926
931
|
var tmp9_input = decoder.ko(tmp0_desc);
|
|
927
|
-
var tmp10_cached = Companion_getInstance_3().
|
|
932
|
+
var tmp10_cached = Companion_getInstance_3().m2e_1;
|
|
928
933
|
if (tmp9_input.ap()) {
|
|
929
934
|
tmp4_local0 = tmp9_input.uo(tmp0_desc, 0);
|
|
930
935
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -971,10 +976,10 @@ protoOf($serializer_1).ll = function (decoder) {
|
|
|
971
976
|
return RecordType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null);
|
|
972
977
|
};
|
|
973
978
|
protoOf($serializer_1).jl = function () {
|
|
974
|
-
return this.
|
|
979
|
+
return this.n2e_1;
|
|
975
980
|
};
|
|
976
981
|
protoOf($serializer_1).nw = function () {
|
|
977
|
-
var tmp0_cached = Companion_getInstance_3().
|
|
982
|
+
var tmp0_cached = Companion_getInstance_3().m2e_1;
|
|
978
983
|
// Inline function 'kotlin.arrayOf' call
|
|
979
984
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
980
985
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -988,19 +993,19 @@ function $serializer_getInstance_1() {
|
|
|
988
993
|
}
|
|
989
994
|
function RecordType_init_$Init$(seen0, type, name, namespace, fields, doc, serializationConstructorMarker, $this) {
|
|
990
995
|
if (!(11 === (11 & seen0))) {
|
|
991
|
-
throwMissingFieldException(seen0, 11, $serializer_getInstance_1().
|
|
996
|
+
throwMissingFieldException(seen0, 11, $serializer_getInstance_1().n2e_1);
|
|
992
997
|
}
|
|
993
|
-
$this.
|
|
994
|
-
$this.
|
|
998
|
+
$this.o2d_1 = type;
|
|
999
|
+
$this.p2d_1 = name;
|
|
995
1000
|
if (0 === (seen0 & 4))
|
|
996
|
-
$this.
|
|
1001
|
+
$this.q2d_1 = null;
|
|
997
1002
|
else
|
|
998
|
-
$this.
|
|
999
|
-
$this.
|
|
1003
|
+
$this.q2d_1 = namespace;
|
|
1004
|
+
$this.r2d_1 = fields;
|
|
1000
1005
|
if (0 === (seen0 & 16))
|
|
1001
|
-
$this.
|
|
1006
|
+
$this.s2d_1 = null;
|
|
1002
1007
|
else
|
|
1003
|
-
$this.
|
|
1008
|
+
$this.s2d_1 = doc;
|
|
1004
1009
|
return $this;
|
|
1005
1010
|
}
|
|
1006
1011
|
function RecordType_init_$Create$(seen0, type, name, namespace, fields, doc, serializationConstructorMarker) {
|
|
@@ -1020,20 +1025,20 @@ function $serializer_2() {
|
|
|
1020
1025
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.ArrayType', this, 2);
|
|
1021
1026
|
tmp0_serialDesc.uv('type', false);
|
|
1022
1027
|
tmp0_serialDesc.uv('items', false);
|
|
1023
|
-
this.
|
|
1028
|
+
this.p2e_1 = tmp0_serialDesc;
|
|
1024
1029
|
}
|
|
1025
|
-
protoOf($serializer_2).
|
|
1026
|
-
var tmp0_desc = this.
|
|
1030
|
+
protoOf($serializer_2).q2e = function (encoder, value) {
|
|
1031
|
+
var tmp0_desc = this.p2e_1;
|
|
1027
1032
|
var tmp1_output = encoder.ko(tmp0_desc);
|
|
1028
|
-
tmp1_output.zp(tmp0_desc, 0, value.
|
|
1029
|
-
tmp1_output.bq(tmp0_desc, 1, TypeSerializer_getInstance(), value.
|
|
1033
|
+
tmp1_output.zp(tmp0_desc, 0, value.t2d_1);
|
|
1034
|
+
tmp1_output.bq(tmp0_desc, 1, TypeSerializer_getInstance(), value.u2d_1);
|
|
1030
1035
|
tmp1_output.lo(tmp0_desc);
|
|
1031
1036
|
};
|
|
1032
1037
|
protoOf($serializer_2).kl = function (encoder, value) {
|
|
1033
|
-
return this.
|
|
1038
|
+
return this.q2e(encoder, value instanceof ArrayType ? value : THROW_CCE());
|
|
1034
1039
|
};
|
|
1035
1040
|
protoOf($serializer_2).ll = function (decoder) {
|
|
1036
|
-
var tmp0_desc = this.
|
|
1041
|
+
var tmp0_desc = this.p2e_1;
|
|
1037
1042
|
var tmp1_flag = true;
|
|
1038
1043
|
var tmp2_index = 0;
|
|
1039
1044
|
var tmp3_bitMask0 = 0;
|
|
@@ -1068,7 +1073,7 @@ protoOf($serializer_2).ll = function (decoder) {
|
|
|
1068
1073
|
return ArrayType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1069
1074
|
};
|
|
1070
1075
|
protoOf($serializer_2).jl = function () {
|
|
1071
|
-
return this.
|
|
1076
|
+
return this.p2e_1;
|
|
1072
1077
|
};
|
|
1073
1078
|
protoOf($serializer_2).nw = function () {
|
|
1074
1079
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -1084,10 +1089,10 @@ function $serializer_getInstance_2() {
|
|
|
1084
1089
|
}
|
|
1085
1090
|
function ArrayType_init_$Init$(seen0, type, items, serializationConstructorMarker, $this) {
|
|
1086
1091
|
if (!(3 === (3 & seen0))) {
|
|
1087
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().
|
|
1092
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().p2e_1);
|
|
1088
1093
|
}
|
|
1089
|
-
$this.
|
|
1090
|
-
$this.
|
|
1094
|
+
$this.t2d_1 = type;
|
|
1095
|
+
$this.u2d_1 = items;
|
|
1091
1096
|
return $this;
|
|
1092
1097
|
}
|
|
1093
1098
|
function ArrayType_init_$Create$(seen0, type, items, serializationConstructorMarker) {
|
|
@@ -1107,20 +1112,20 @@ function $serializer_3() {
|
|
|
1107
1112
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.MapType', this, 2);
|
|
1108
1113
|
tmp0_serialDesc.uv('type', false);
|
|
1109
1114
|
tmp0_serialDesc.uv('values', false);
|
|
1110
|
-
this.
|
|
1115
|
+
this.r2e_1 = tmp0_serialDesc;
|
|
1111
1116
|
}
|
|
1112
|
-
protoOf($serializer_3).
|
|
1113
|
-
var tmp0_desc = this.
|
|
1117
|
+
protoOf($serializer_3).s2e = function (encoder, value) {
|
|
1118
|
+
var tmp0_desc = this.r2e_1;
|
|
1114
1119
|
var tmp1_output = encoder.ko(tmp0_desc);
|
|
1115
|
-
tmp1_output.zp(tmp0_desc, 0, value.
|
|
1116
|
-
tmp1_output.bq(tmp0_desc, 1, TypeSerializer_getInstance(), value.
|
|
1120
|
+
tmp1_output.zp(tmp0_desc, 0, value.e2d_1);
|
|
1121
|
+
tmp1_output.bq(tmp0_desc, 1, TypeSerializer_getInstance(), value.f2d_1);
|
|
1117
1122
|
tmp1_output.lo(tmp0_desc);
|
|
1118
1123
|
};
|
|
1119
1124
|
protoOf($serializer_3).kl = function (encoder, value) {
|
|
1120
|
-
return this.
|
|
1125
|
+
return this.s2e(encoder, value instanceof MapType ? value : THROW_CCE());
|
|
1121
1126
|
};
|
|
1122
1127
|
protoOf($serializer_3).ll = function (decoder) {
|
|
1123
|
-
var tmp0_desc = this.
|
|
1128
|
+
var tmp0_desc = this.r2e_1;
|
|
1124
1129
|
var tmp1_flag = true;
|
|
1125
1130
|
var tmp2_index = 0;
|
|
1126
1131
|
var tmp3_bitMask0 = 0;
|
|
@@ -1155,7 +1160,7 @@ protoOf($serializer_3).ll = function (decoder) {
|
|
|
1155
1160
|
return MapType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1156
1161
|
};
|
|
1157
1162
|
protoOf($serializer_3).jl = function () {
|
|
1158
|
-
return this.
|
|
1163
|
+
return this.r2e_1;
|
|
1159
1164
|
};
|
|
1160
1165
|
protoOf($serializer_3).nw = function () {
|
|
1161
1166
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -1171,10 +1176,10 @@ function $serializer_getInstance_3() {
|
|
|
1171
1176
|
}
|
|
1172
1177
|
function MapType_init_$Init$(seen0, type, values, serializationConstructorMarker, $this) {
|
|
1173
1178
|
if (!(3 === (3 & seen0))) {
|
|
1174
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_3().
|
|
1179
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_3().r2e_1);
|
|
1175
1180
|
}
|
|
1176
|
-
$this.
|
|
1177
|
-
$this.
|
|
1181
|
+
$this.e2d_1 = type;
|
|
1182
|
+
$this.f2d_1 = values;
|
|
1178
1183
|
return $this;
|
|
1179
1184
|
}
|
|
1180
1185
|
function MapType_init_$Create$(seen0, type, values, serializationConstructorMarker) {
|
|
@@ -1186,7 +1191,7 @@ function Companion_6() {
|
|
|
1186
1191
|
// Inline function 'kotlin.arrayOf' call
|
|
1187
1192
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1188
1193
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1189
|
-
tmp.
|
|
1194
|
+
tmp.t2e_1 = [null, null, null, new ArrayListSerializer(StringSerializer_getInstance())];
|
|
1190
1195
|
}
|
|
1191
1196
|
protoOf(Companion_6).y17 = function () {
|
|
1192
1197
|
return $serializer_getInstance_4();
|
|
@@ -1204,25 +1209,25 @@ function $serializer_4() {
|
|
|
1204
1209
|
tmp0_serialDesc.uv('name', false);
|
|
1205
1210
|
tmp0_serialDesc.uv('doc', true);
|
|
1206
1211
|
tmp0_serialDesc.uv('symbols', false);
|
|
1207
|
-
this.
|
|
1212
|
+
this.u2e_1 = tmp0_serialDesc;
|
|
1208
1213
|
}
|
|
1209
|
-
protoOf($serializer_4).
|
|
1210
|
-
var tmp0_desc = this.
|
|
1214
|
+
protoOf($serializer_4).v2e = function (encoder, value) {
|
|
1215
|
+
var tmp0_desc = this.u2e_1;
|
|
1211
1216
|
var tmp1_output = encoder.ko(tmp0_desc);
|
|
1212
|
-
var tmp2_cached = Companion_getInstance_6().
|
|
1213
|
-
tmp1_output.zp(tmp0_desc, 0, value.
|
|
1214
|
-
tmp1_output.zp(tmp0_desc, 1, value.
|
|
1215
|
-
if (tmp1_output.hq(tmp0_desc, 2) ? true : !(value.
|
|
1216
|
-
tmp1_output.dq(tmp0_desc, 2, StringSerializer_getInstance(), value.
|
|
1217
|
+
var tmp2_cached = Companion_getInstance_6().t2e_1;
|
|
1218
|
+
tmp1_output.zp(tmp0_desc, 0, value.k2d_1);
|
|
1219
|
+
tmp1_output.zp(tmp0_desc, 1, value.l2d_1);
|
|
1220
|
+
if (tmp1_output.hq(tmp0_desc, 2) ? true : !(value.m2d_1 == null)) {
|
|
1221
|
+
tmp1_output.dq(tmp0_desc, 2, StringSerializer_getInstance(), value.m2d_1);
|
|
1217
1222
|
}
|
|
1218
|
-
tmp1_output.bq(tmp0_desc, 3, tmp2_cached[3], value.
|
|
1223
|
+
tmp1_output.bq(tmp0_desc, 3, tmp2_cached[3], value.n2d_1);
|
|
1219
1224
|
tmp1_output.lo(tmp0_desc);
|
|
1220
1225
|
};
|
|
1221
1226
|
protoOf($serializer_4).kl = function (encoder, value) {
|
|
1222
|
-
return this.
|
|
1227
|
+
return this.v2e(encoder, value instanceof EnumType ? value : THROW_CCE());
|
|
1223
1228
|
};
|
|
1224
1229
|
protoOf($serializer_4).ll = function (decoder) {
|
|
1225
|
-
var tmp0_desc = this.
|
|
1230
|
+
var tmp0_desc = this.u2e_1;
|
|
1226
1231
|
var tmp1_flag = true;
|
|
1227
1232
|
var tmp2_index = 0;
|
|
1228
1233
|
var tmp3_bitMask0 = 0;
|
|
@@ -1231,7 +1236,7 @@ protoOf($serializer_4).ll = function (decoder) {
|
|
|
1231
1236
|
var tmp6_local2 = null;
|
|
1232
1237
|
var tmp7_local3 = null;
|
|
1233
1238
|
var tmp8_input = decoder.ko(tmp0_desc);
|
|
1234
|
-
var tmp9_cached = Companion_getInstance_6().
|
|
1239
|
+
var tmp9_cached = Companion_getInstance_6().t2e_1;
|
|
1235
1240
|
if (tmp8_input.ap()) {
|
|
1236
1241
|
tmp4_local0 = tmp8_input.uo(tmp0_desc, 0);
|
|
1237
1242
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -1272,10 +1277,10 @@ protoOf($serializer_4).ll = function (decoder) {
|
|
|
1272
1277
|
return EnumType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
1273
1278
|
};
|
|
1274
1279
|
protoOf($serializer_4).jl = function () {
|
|
1275
|
-
return this.
|
|
1280
|
+
return this.u2e_1;
|
|
1276
1281
|
};
|
|
1277
1282
|
protoOf($serializer_4).nw = function () {
|
|
1278
|
-
var tmp0_cached = Companion_getInstance_6().
|
|
1283
|
+
var tmp0_cached = Companion_getInstance_6().t2e_1;
|
|
1279
1284
|
// Inline function 'kotlin.arrayOf' call
|
|
1280
1285
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1281
1286
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1289,15 +1294,15 @@ function $serializer_getInstance_4() {
|
|
|
1289
1294
|
}
|
|
1290
1295
|
function EnumType_init_$Init$(seen0, type, name, doc, symbols, serializationConstructorMarker, $this) {
|
|
1291
1296
|
if (!(11 === (11 & seen0))) {
|
|
1292
|
-
throwMissingFieldException(seen0, 11, $serializer_getInstance_4().
|
|
1297
|
+
throwMissingFieldException(seen0, 11, $serializer_getInstance_4().u2e_1);
|
|
1293
1298
|
}
|
|
1294
|
-
$this.
|
|
1295
|
-
$this.
|
|
1299
|
+
$this.k2d_1 = type;
|
|
1300
|
+
$this.l2d_1 = name;
|
|
1296
1301
|
if (0 === (seen0 & 4))
|
|
1297
|
-
$this.
|
|
1302
|
+
$this.m2d_1 = null;
|
|
1298
1303
|
else
|
|
1299
|
-
$this.
|
|
1300
|
-
$this.
|
|
1304
|
+
$this.m2d_1 = doc;
|
|
1305
|
+
$this.n2d_1 = symbols;
|
|
1301
1306
|
return $this;
|
|
1302
1307
|
}
|
|
1303
1308
|
function EnumType_init_$Create$(seen0, type, name, doc, symbols, serializationConstructorMarker) {
|
|
@@ -1317,20 +1322,20 @@ function $serializer_5() {
|
|
|
1317
1322
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.UnionType', this, 2);
|
|
1318
1323
|
tmp0_serialDesc.uv('name', false);
|
|
1319
1324
|
tmp0_serialDesc.uv('type', false);
|
|
1320
|
-
this.
|
|
1325
|
+
this.w2e_1 = tmp0_serialDesc;
|
|
1321
1326
|
}
|
|
1322
|
-
protoOf($serializer_5).
|
|
1323
|
-
var tmp0_desc = this.
|
|
1327
|
+
protoOf($serializer_5).x2e = function (encoder, value) {
|
|
1328
|
+
var tmp0_desc = this.w2e_1;
|
|
1324
1329
|
var tmp1_output = encoder.ko(tmp0_desc);
|
|
1325
|
-
tmp1_output.zp(tmp0_desc, 0, value.
|
|
1326
|
-
tmp1_output.bq(tmp0_desc, 1, TypeListSerializer_getInstance(), value.
|
|
1330
|
+
tmp1_output.zp(tmp0_desc, 0, value.c2d_1);
|
|
1331
|
+
tmp1_output.bq(tmp0_desc, 1, TypeListSerializer_getInstance(), value.d2d_1);
|
|
1327
1332
|
tmp1_output.lo(tmp0_desc);
|
|
1328
1333
|
};
|
|
1329
1334
|
protoOf($serializer_5).kl = function (encoder, value) {
|
|
1330
|
-
return this.
|
|
1335
|
+
return this.x2e(encoder, value instanceof UnionType ? value : THROW_CCE());
|
|
1331
1336
|
};
|
|
1332
1337
|
protoOf($serializer_5).ll = function (decoder) {
|
|
1333
|
-
var tmp0_desc = this.
|
|
1338
|
+
var tmp0_desc = this.w2e_1;
|
|
1334
1339
|
var tmp1_flag = true;
|
|
1335
1340
|
var tmp2_index = 0;
|
|
1336
1341
|
var tmp3_bitMask0 = 0;
|
|
@@ -1365,7 +1370,7 @@ protoOf($serializer_5).ll = function (decoder) {
|
|
|
1365
1370
|
return UnionType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1366
1371
|
};
|
|
1367
1372
|
protoOf($serializer_5).jl = function () {
|
|
1368
|
-
return this.
|
|
1373
|
+
return this.w2e_1;
|
|
1369
1374
|
};
|
|
1370
1375
|
protoOf($serializer_5).nw = function () {
|
|
1371
1376
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -1381,10 +1386,10 @@ function $serializer_getInstance_5() {
|
|
|
1381
1386
|
}
|
|
1382
1387
|
function UnionType_init_$Init$(seen0, name, type, serializationConstructorMarker, $this) {
|
|
1383
1388
|
if (!(3 === (3 & seen0))) {
|
|
1384
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_5().
|
|
1389
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_5().w2e_1);
|
|
1385
1390
|
}
|
|
1386
|
-
$this.
|
|
1387
|
-
$this.
|
|
1391
|
+
$this.c2d_1 = name;
|
|
1392
|
+
$this.d2d_1 = type;
|
|
1388
1393
|
return $this;
|
|
1389
1394
|
}
|
|
1390
1395
|
function UnionType_init_$Create$(seen0, name, type, serializationConstructorMarker) {
|
|
@@ -1406,26 +1411,26 @@ function $serializer_6() {
|
|
|
1406
1411
|
tmp0_serialDesc.uv('logicalType', false);
|
|
1407
1412
|
tmp0_serialDesc.uv('precision', true);
|
|
1408
1413
|
tmp0_serialDesc.uv('scale', true);
|
|
1409
|
-
this.
|
|
1414
|
+
this.y2e_1 = tmp0_serialDesc;
|
|
1410
1415
|
}
|
|
1411
|
-
protoOf($serializer_6).
|
|
1412
|
-
var tmp0_desc = this.
|
|
1416
|
+
protoOf($serializer_6).z2e = function (encoder, value) {
|
|
1417
|
+
var tmp0_desc = this.y2e_1;
|
|
1413
1418
|
var tmp1_output = encoder.ko(tmp0_desc);
|
|
1414
|
-
tmp1_output.zp(tmp0_desc, 0, value.
|
|
1415
|
-
tmp1_output.zp(tmp0_desc, 1, value.
|
|
1416
|
-
if (tmp1_output.hq(tmp0_desc, 2) ? true : !(value.
|
|
1417
|
-
tmp1_output.dq(tmp0_desc, 2, IntSerializer_getInstance(), value.
|
|
1419
|
+
tmp1_output.zp(tmp0_desc, 0, value.g2d_1);
|
|
1420
|
+
tmp1_output.zp(tmp0_desc, 1, value.h2d_1);
|
|
1421
|
+
if (tmp1_output.hq(tmp0_desc, 2) ? true : !(value.i2d_1 == null)) {
|
|
1422
|
+
tmp1_output.dq(tmp0_desc, 2, IntSerializer_getInstance(), value.i2d_1);
|
|
1418
1423
|
}
|
|
1419
|
-
if (tmp1_output.hq(tmp0_desc, 3) ? true : !(value.
|
|
1420
|
-
tmp1_output.dq(tmp0_desc, 3, IntSerializer_getInstance(), value.
|
|
1424
|
+
if (tmp1_output.hq(tmp0_desc, 3) ? true : !(value.j2d_1 == null)) {
|
|
1425
|
+
tmp1_output.dq(tmp0_desc, 3, IntSerializer_getInstance(), value.j2d_1);
|
|
1421
1426
|
}
|
|
1422
1427
|
tmp1_output.lo(tmp0_desc);
|
|
1423
1428
|
};
|
|
1424
1429
|
protoOf($serializer_6).kl = function (encoder, value) {
|
|
1425
|
-
return this.
|
|
1430
|
+
return this.z2e(encoder, value instanceof LogicalType ? value : THROW_CCE());
|
|
1426
1431
|
};
|
|
1427
1432
|
protoOf($serializer_6).ll = function (decoder) {
|
|
1428
|
-
var tmp0_desc = this.
|
|
1433
|
+
var tmp0_desc = this.y2e_1;
|
|
1429
1434
|
var tmp1_flag = true;
|
|
1430
1435
|
var tmp2_index = 0;
|
|
1431
1436
|
var tmp3_bitMask0 = 0;
|
|
@@ -1474,7 +1479,7 @@ protoOf($serializer_6).ll = function (decoder) {
|
|
|
1474
1479
|
return LogicalType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
1475
1480
|
};
|
|
1476
1481
|
protoOf($serializer_6).jl = function () {
|
|
1477
|
-
return this.
|
|
1482
|
+
return this.y2e_1;
|
|
1478
1483
|
};
|
|
1479
1484
|
protoOf($serializer_6).nw = function () {
|
|
1480
1485
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -1490,18 +1495,18 @@ function $serializer_getInstance_6() {
|
|
|
1490
1495
|
}
|
|
1491
1496
|
function LogicalType_init_$Init$(seen0, type, logicalType, precision, scale, serializationConstructorMarker, $this) {
|
|
1492
1497
|
if (!(3 === (3 & seen0))) {
|
|
1493
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_6().
|
|
1498
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_6().y2e_1);
|
|
1494
1499
|
}
|
|
1495
|
-
$this.
|
|
1496
|
-
$this.
|
|
1500
|
+
$this.g2d_1 = type;
|
|
1501
|
+
$this.h2d_1 = logicalType;
|
|
1497
1502
|
if (0 === (seen0 & 4))
|
|
1498
|
-
$this.
|
|
1503
|
+
$this.i2d_1 = null;
|
|
1499
1504
|
else
|
|
1500
|
-
$this.
|
|
1505
|
+
$this.i2d_1 = precision;
|
|
1501
1506
|
if (0 === (seen0 & 8))
|
|
1502
|
-
$this.
|
|
1507
|
+
$this.j2d_1 = null;
|
|
1503
1508
|
else
|
|
1504
|
-
$this.
|
|
1509
|
+
$this.j2d_1 = scale;
|
|
1505
1510
|
return $this;
|
|
1506
1511
|
}
|
|
1507
1512
|
function LogicalType_init_$Create$(seen0, type, logicalType, precision, scale, serializationConstructorMarker) {
|
|
@@ -1510,19 +1515,19 @@ function LogicalType_init_$Create$(seen0, type, logicalType, precision, scale, s
|
|
|
1510
1515
|
function Field_0(name, type, doc, default_0) {
|
|
1511
1516
|
doc = doc === VOID ? null : doc;
|
|
1512
1517
|
default_0 = default_0 === VOID ? null : default_0;
|
|
1513
|
-
this.
|
|
1514
|
-
this.
|
|
1515
|
-
this.
|
|
1516
|
-
this.
|
|
1518
|
+
this.v2d_1 = name;
|
|
1519
|
+
this.w2d_1 = type;
|
|
1520
|
+
this.x2d_1 = doc;
|
|
1521
|
+
this.y2d_1 = default_0;
|
|
1517
1522
|
}
|
|
1518
1523
|
protoOf(Field_0).toString = function () {
|
|
1519
|
-
return 'Field(name=' + this.
|
|
1524
|
+
return 'Field(name=' + this.v2d_1 + ', type=' + this.w2d_1.toString() + ', doc=' + this.x2d_1 + ', default=' + this.y2d_1 + ')';
|
|
1520
1525
|
};
|
|
1521
1526
|
protoOf(Field_0).hashCode = function () {
|
|
1522
|
-
var result = getStringHashCode(this.
|
|
1523
|
-
result = imul(result, 31) + this.
|
|
1524
|
-
result = imul(result, 31) + (this.
|
|
1525
|
-
result = imul(result, 31) + (this.
|
|
1527
|
+
var result = getStringHashCode(this.v2d_1);
|
|
1528
|
+
result = imul(result, 31) + this.w2d_1.hashCode() | 0;
|
|
1529
|
+
result = imul(result, 31) + (this.x2d_1 == null ? 0 : getStringHashCode(this.x2d_1)) | 0;
|
|
1530
|
+
result = imul(result, 31) + (this.y2d_1 == null ? 0 : getStringHashCode(this.y2d_1)) | 0;
|
|
1526
1531
|
return result;
|
|
1527
1532
|
};
|
|
1528
1533
|
protoOf(Field_0).equals = function (other) {
|
|
@@ -1531,37 +1536,37 @@ protoOf(Field_0).equals = function (other) {
|
|
|
1531
1536
|
if (!(other instanceof Field_0))
|
|
1532
1537
|
return false;
|
|
1533
1538
|
var tmp0_other_with_cast = other instanceof Field_0 ? other : THROW_CCE();
|
|
1534
|
-
if (!(this.
|
|
1539
|
+
if (!(this.v2d_1 === tmp0_other_with_cast.v2d_1))
|
|
1535
1540
|
return false;
|
|
1536
|
-
if (!this.
|
|
1541
|
+
if (!this.w2d_1.equals(tmp0_other_with_cast.w2d_1))
|
|
1537
1542
|
return false;
|
|
1538
|
-
if (!(this.
|
|
1543
|
+
if (!(this.x2d_1 == tmp0_other_with_cast.x2d_1))
|
|
1539
1544
|
return false;
|
|
1540
|
-
if (!(this.
|
|
1545
|
+
if (!(this.y2d_1 == tmp0_other_with_cast.y2d_1))
|
|
1541
1546
|
return false;
|
|
1542
1547
|
return true;
|
|
1543
1548
|
};
|
|
1544
1549
|
function TypeList(type) {
|
|
1545
1550
|
AbstractList.call(this);
|
|
1546
|
-
this.
|
|
1547
|
-
this.
|
|
1551
|
+
this.a2f_1 = toList_0(type);
|
|
1552
|
+
this.b2f_1 = this.a2f_1.j();
|
|
1548
1553
|
}
|
|
1549
1554
|
protoOf(TypeList).j = function () {
|
|
1550
|
-
return this.
|
|
1555
|
+
return this.b2f_1;
|
|
1551
1556
|
};
|
|
1552
1557
|
protoOf(TypeList).k = function (index) {
|
|
1553
|
-
return this.
|
|
1558
|
+
return this.a2f_1.k(index);
|
|
1554
1559
|
};
|
|
1555
1560
|
function Type_0() {
|
|
1556
1561
|
}
|
|
1557
1562
|
function SimpleType(value) {
|
|
1558
|
-
this.
|
|
1563
|
+
this.b2d_1 = value;
|
|
1559
1564
|
}
|
|
1560
1565
|
protoOf(SimpleType).toString = function () {
|
|
1561
|
-
return 'SimpleType(value=' + this.
|
|
1566
|
+
return 'SimpleType(value=' + this.b2d_1 + ')';
|
|
1562
1567
|
};
|
|
1563
1568
|
protoOf(SimpleType).hashCode = function () {
|
|
1564
|
-
return getStringHashCode(this.
|
|
1569
|
+
return getStringHashCode(this.b2d_1);
|
|
1565
1570
|
};
|
|
1566
1571
|
protoOf(SimpleType).equals = function (other) {
|
|
1567
1572
|
if (this === other)
|
|
@@ -1569,7 +1574,7 @@ protoOf(SimpleType).equals = function (other) {
|
|
|
1569
1574
|
if (!(other instanceof SimpleType))
|
|
1570
1575
|
return false;
|
|
1571
1576
|
var tmp0_other_with_cast = other instanceof SimpleType ? other : THROW_CCE();
|
|
1572
|
-
if (!(this.
|
|
1577
|
+
if (!(this.b2d_1 === tmp0_other_with_cast.b2d_1))
|
|
1573
1578
|
return false;
|
|
1574
1579
|
return true;
|
|
1575
1580
|
};
|
|
@@ -1577,21 +1582,21 @@ function RecordType(type, name, namespace, fields, doc) {
|
|
|
1577
1582
|
Companion_getInstance_3();
|
|
1578
1583
|
namespace = namespace === VOID ? null : namespace;
|
|
1579
1584
|
doc = doc === VOID ? null : doc;
|
|
1580
|
-
this.
|
|
1581
|
-
this.
|
|
1582
|
-
this.
|
|
1583
|
-
this.
|
|
1584
|
-
this.
|
|
1585
|
+
this.o2d_1 = type;
|
|
1586
|
+
this.p2d_1 = name;
|
|
1587
|
+
this.q2d_1 = namespace;
|
|
1588
|
+
this.r2d_1 = fields;
|
|
1589
|
+
this.s2d_1 = doc;
|
|
1585
1590
|
}
|
|
1586
1591
|
protoOf(RecordType).toString = function () {
|
|
1587
|
-
return 'RecordType(type=' + this.
|
|
1592
|
+
return 'RecordType(type=' + this.o2d_1 + ', name=' + this.p2d_1 + ', namespace=' + this.q2d_1 + ', fields=' + toString(this.r2d_1) + ', doc=' + this.s2d_1 + ')';
|
|
1588
1593
|
};
|
|
1589
1594
|
protoOf(RecordType).hashCode = function () {
|
|
1590
|
-
var result = getStringHashCode(this.
|
|
1591
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1592
|
-
result = imul(result, 31) + (this.
|
|
1593
|
-
result = imul(result, 31) + hashCode(this.
|
|
1594
|
-
result = imul(result, 31) + (this.
|
|
1595
|
+
var result = getStringHashCode(this.o2d_1);
|
|
1596
|
+
result = imul(result, 31) + getStringHashCode(this.p2d_1) | 0;
|
|
1597
|
+
result = imul(result, 31) + (this.q2d_1 == null ? 0 : getStringHashCode(this.q2d_1)) | 0;
|
|
1598
|
+
result = imul(result, 31) + hashCode(this.r2d_1) | 0;
|
|
1599
|
+
result = imul(result, 31) + (this.s2d_1 == null ? 0 : getStringHashCode(this.s2d_1)) | 0;
|
|
1595
1600
|
return result;
|
|
1596
1601
|
};
|
|
1597
1602
|
protoOf(RecordType).equals = function (other) {
|
|
@@ -1600,28 +1605,28 @@ protoOf(RecordType).equals = function (other) {
|
|
|
1600
1605
|
if (!(other instanceof RecordType))
|
|
1601
1606
|
return false;
|
|
1602
1607
|
var tmp0_other_with_cast = other instanceof RecordType ? other : THROW_CCE();
|
|
1603
|
-
if (!(this.
|
|
1608
|
+
if (!(this.o2d_1 === tmp0_other_with_cast.o2d_1))
|
|
1604
1609
|
return false;
|
|
1605
|
-
if (!(this.
|
|
1610
|
+
if (!(this.p2d_1 === tmp0_other_with_cast.p2d_1))
|
|
1606
1611
|
return false;
|
|
1607
|
-
if (!(this.
|
|
1612
|
+
if (!(this.q2d_1 == tmp0_other_with_cast.q2d_1))
|
|
1608
1613
|
return false;
|
|
1609
|
-
if (!equals(this.
|
|
1614
|
+
if (!equals(this.r2d_1, tmp0_other_with_cast.r2d_1))
|
|
1610
1615
|
return false;
|
|
1611
|
-
if (!(this.
|
|
1616
|
+
if (!(this.s2d_1 == tmp0_other_with_cast.s2d_1))
|
|
1612
1617
|
return false;
|
|
1613
1618
|
return true;
|
|
1614
1619
|
};
|
|
1615
1620
|
function ArrayType(type, items) {
|
|
1616
|
-
this.
|
|
1617
|
-
this.
|
|
1621
|
+
this.t2d_1 = type;
|
|
1622
|
+
this.u2d_1 = items;
|
|
1618
1623
|
}
|
|
1619
1624
|
protoOf(ArrayType).toString = function () {
|
|
1620
|
-
return 'ArrayType(type=' + this.
|
|
1625
|
+
return 'ArrayType(type=' + this.t2d_1 + ', items=' + toString(this.u2d_1) + ')';
|
|
1621
1626
|
};
|
|
1622
1627
|
protoOf(ArrayType).hashCode = function () {
|
|
1623
|
-
var result = getStringHashCode(this.
|
|
1624
|
-
result = imul(result, 31) + hashCode(this.
|
|
1628
|
+
var result = getStringHashCode(this.t2d_1);
|
|
1629
|
+
result = imul(result, 31) + hashCode(this.u2d_1) | 0;
|
|
1625
1630
|
return result;
|
|
1626
1631
|
};
|
|
1627
1632
|
protoOf(ArrayType).equals = function (other) {
|
|
@@ -1630,22 +1635,22 @@ protoOf(ArrayType).equals = function (other) {
|
|
|
1630
1635
|
if (!(other instanceof ArrayType))
|
|
1631
1636
|
return false;
|
|
1632
1637
|
var tmp0_other_with_cast = other instanceof ArrayType ? other : THROW_CCE();
|
|
1633
|
-
if (!(this.
|
|
1638
|
+
if (!(this.t2d_1 === tmp0_other_with_cast.t2d_1))
|
|
1634
1639
|
return false;
|
|
1635
|
-
if (!equals(this.
|
|
1640
|
+
if (!equals(this.u2d_1, tmp0_other_with_cast.u2d_1))
|
|
1636
1641
|
return false;
|
|
1637
1642
|
return true;
|
|
1638
1643
|
};
|
|
1639
1644
|
function MapType(type, values) {
|
|
1640
|
-
this.
|
|
1641
|
-
this.
|
|
1645
|
+
this.e2d_1 = type;
|
|
1646
|
+
this.f2d_1 = values;
|
|
1642
1647
|
}
|
|
1643
1648
|
protoOf(MapType).toString = function () {
|
|
1644
|
-
return 'MapType(type=' + this.
|
|
1649
|
+
return 'MapType(type=' + this.e2d_1 + ', values=' + toString(this.f2d_1) + ')';
|
|
1645
1650
|
};
|
|
1646
1651
|
protoOf(MapType).hashCode = function () {
|
|
1647
|
-
var result = getStringHashCode(this.
|
|
1648
|
-
result = imul(result, 31) + hashCode(this.
|
|
1652
|
+
var result = getStringHashCode(this.e2d_1);
|
|
1653
|
+
result = imul(result, 31) + hashCode(this.f2d_1) | 0;
|
|
1649
1654
|
return result;
|
|
1650
1655
|
};
|
|
1651
1656
|
protoOf(MapType).equals = function (other) {
|
|
@@ -1654,28 +1659,28 @@ protoOf(MapType).equals = function (other) {
|
|
|
1654
1659
|
if (!(other instanceof MapType))
|
|
1655
1660
|
return false;
|
|
1656
1661
|
var tmp0_other_with_cast = other instanceof MapType ? other : THROW_CCE();
|
|
1657
|
-
if (!(this.
|
|
1662
|
+
if (!(this.e2d_1 === tmp0_other_with_cast.e2d_1))
|
|
1658
1663
|
return false;
|
|
1659
|
-
if (!equals(this.
|
|
1664
|
+
if (!equals(this.f2d_1, tmp0_other_with_cast.f2d_1))
|
|
1660
1665
|
return false;
|
|
1661
1666
|
return true;
|
|
1662
1667
|
};
|
|
1663
1668
|
function EnumType(type, name, doc, symbols) {
|
|
1664
1669
|
Companion_getInstance_6();
|
|
1665
1670
|
doc = doc === VOID ? null : doc;
|
|
1666
|
-
this.
|
|
1667
|
-
this.
|
|
1668
|
-
this.
|
|
1669
|
-
this.
|
|
1671
|
+
this.k2d_1 = type;
|
|
1672
|
+
this.l2d_1 = name;
|
|
1673
|
+
this.m2d_1 = doc;
|
|
1674
|
+
this.n2d_1 = symbols;
|
|
1670
1675
|
}
|
|
1671
1676
|
protoOf(EnumType).toString = function () {
|
|
1672
|
-
return 'EnumType(type=' + this.
|
|
1677
|
+
return 'EnumType(type=' + this.k2d_1 + ', name=' + this.l2d_1 + ', doc=' + this.m2d_1 + ', symbols=' + toString(this.n2d_1) + ')';
|
|
1673
1678
|
};
|
|
1674
1679
|
protoOf(EnumType).hashCode = function () {
|
|
1675
|
-
var result = getStringHashCode(this.
|
|
1676
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1677
|
-
result = imul(result, 31) + (this.
|
|
1678
|
-
result = imul(result, 31) + hashCode(this.
|
|
1680
|
+
var result = getStringHashCode(this.k2d_1);
|
|
1681
|
+
result = imul(result, 31) + getStringHashCode(this.l2d_1) | 0;
|
|
1682
|
+
result = imul(result, 31) + (this.m2d_1 == null ? 0 : getStringHashCode(this.m2d_1)) | 0;
|
|
1683
|
+
result = imul(result, 31) + hashCode(this.n2d_1) | 0;
|
|
1679
1684
|
return result;
|
|
1680
1685
|
};
|
|
1681
1686
|
protoOf(EnumType).equals = function (other) {
|
|
@@ -1684,26 +1689,26 @@ protoOf(EnumType).equals = function (other) {
|
|
|
1684
1689
|
if (!(other instanceof EnumType))
|
|
1685
1690
|
return false;
|
|
1686
1691
|
var tmp0_other_with_cast = other instanceof EnumType ? other : THROW_CCE();
|
|
1687
|
-
if (!(this.
|
|
1692
|
+
if (!(this.k2d_1 === tmp0_other_with_cast.k2d_1))
|
|
1688
1693
|
return false;
|
|
1689
|
-
if (!(this.
|
|
1694
|
+
if (!(this.l2d_1 === tmp0_other_with_cast.l2d_1))
|
|
1690
1695
|
return false;
|
|
1691
|
-
if (!(this.
|
|
1696
|
+
if (!(this.m2d_1 == tmp0_other_with_cast.m2d_1))
|
|
1692
1697
|
return false;
|
|
1693
|
-
if (!equals(this.
|
|
1698
|
+
if (!equals(this.n2d_1, tmp0_other_with_cast.n2d_1))
|
|
1694
1699
|
return false;
|
|
1695
1700
|
return true;
|
|
1696
1701
|
};
|
|
1697
1702
|
function UnionType(name, type) {
|
|
1698
|
-
this.
|
|
1699
|
-
this.
|
|
1703
|
+
this.c2d_1 = name;
|
|
1704
|
+
this.d2d_1 = type;
|
|
1700
1705
|
}
|
|
1701
1706
|
protoOf(UnionType).toString = function () {
|
|
1702
|
-
return 'UnionType(name=' + this.
|
|
1707
|
+
return 'UnionType(name=' + this.c2d_1 + ', type=' + this.d2d_1.toString() + ')';
|
|
1703
1708
|
};
|
|
1704
1709
|
protoOf(UnionType).hashCode = function () {
|
|
1705
|
-
var result = getStringHashCode(this.
|
|
1706
|
-
result = imul(result, 31) + this.
|
|
1710
|
+
var result = getStringHashCode(this.c2d_1);
|
|
1711
|
+
result = imul(result, 31) + this.d2d_1.hashCode() | 0;
|
|
1707
1712
|
return result;
|
|
1708
1713
|
};
|
|
1709
1714
|
protoOf(UnionType).equals = function (other) {
|
|
@@ -1712,22 +1717,22 @@ protoOf(UnionType).equals = function (other) {
|
|
|
1712
1717
|
if (!(other instanceof UnionType))
|
|
1713
1718
|
return false;
|
|
1714
1719
|
var tmp0_other_with_cast = other instanceof UnionType ? other : THROW_CCE();
|
|
1715
|
-
if (!(this.
|
|
1720
|
+
if (!(this.c2d_1 === tmp0_other_with_cast.c2d_1))
|
|
1716
1721
|
return false;
|
|
1717
|
-
if (!this.
|
|
1722
|
+
if (!this.d2d_1.equals(tmp0_other_with_cast.d2d_1))
|
|
1718
1723
|
return false;
|
|
1719
1724
|
return true;
|
|
1720
1725
|
};
|
|
1721
1726
|
function LogicalType() {
|
|
1722
1727
|
}
|
|
1723
1728
|
protoOf(LogicalType).toString = function () {
|
|
1724
|
-
return 'LogicalType(type=' + this.
|
|
1729
|
+
return 'LogicalType(type=' + this.g2d_1 + ', logicalType=' + this.h2d_1 + ', precision=' + this.i2d_1 + ', scale=' + this.j2d_1 + ')';
|
|
1725
1730
|
};
|
|
1726
1731
|
protoOf(LogicalType).hashCode = function () {
|
|
1727
|
-
var result = getStringHashCode(this.
|
|
1728
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1729
|
-
result = imul(result, 31) + (this.
|
|
1730
|
-
result = imul(result, 31) + (this.
|
|
1732
|
+
var result = getStringHashCode(this.g2d_1);
|
|
1733
|
+
result = imul(result, 31) + getStringHashCode(this.h2d_1) | 0;
|
|
1734
|
+
result = imul(result, 31) + (this.i2d_1 == null ? 0 : this.i2d_1) | 0;
|
|
1735
|
+
result = imul(result, 31) + (this.j2d_1 == null ? 0 : this.j2d_1) | 0;
|
|
1731
1736
|
return result;
|
|
1732
1737
|
};
|
|
1733
1738
|
protoOf(LogicalType).equals = function (other) {
|
|
@@ -1736,32 +1741,32 @@ protoOf(LogicalType).equals = function (other) {
|
|
|
1736
1741
|
if (!(other instanceof LogicalType))
|
|
1737
1742
|
return false;
|
|
1738
1743
|
var tmp0_other_with_cast = other instanceof LogicalType ? other : THROW_CCE();
|
|
1739
|
-
if (!(this.
|
|
1744
|
+
if (!(this.g2d_1 === tmp0_other_with_cast.g2d_1))
|
|
1740
1745
|
return false;
|
|
1741
|
-
if (!(this.
|
|
1746
|
+
if (!(this.h2d_1 === tmp0_other_with_cast.h2d_1))
|
|
1742
1747
|
return false;
|
|
1743
|
-
if (!(this.
|
|
1748
|
+
if (!(this.i2d_1 == tmp0_other_with_cast.i2d_1))
|
|
1744
1749
|
return false;
|
|
1745
|
-
if (!(this.
|
|
1750
|
+
if (!(this.j2d_1 == tmp0_other_with_cast.j2d_1))
|
|
1746
1751
|
return false;
|
|
1747
1752
|
return true;
|
|
1748
1753
|
};
|
|
1749
1754
|
function TypeListSerializer() {
|
|
1750
1755
|
TypeListSerializer_instance = this;
|
|
1751
|
-
this.
|
|
1756
|
+
this.c2f_1 = buildSerialDescriptor('TypeListSerializer', SEALED_getInstance(), []);
|
|
1752
1757
|
}
|
|
1753
1758
|
protoOf(TypeListSerializer).jl = function () {
|
|
1754
|
-
return this.
|
|
1759
|
+
return this.c2f_1;
|
|
1755
1760
|
};
|
|
1756
|
-
protoOf(TypeListSerializer).
|
|
1757
|
-
if (value.
|
|
1761
|
+
protoOf(TypeListSerializer).d2f = function (encoder, value) {
|
|
1762
|
+
if (value.b2f_1 > 1) {
|
|
1758
1763
|
encoder.cq(ListSerializer(Companion_instance_1.y17()), value);
|
|
1759
1764
|
} else {
|
|
1760
1765
|
encoder.cq(Companion_instance_1.y17(), first(value));
|
|
1761
1766
|
}
|
|
1762
1767
|
};
|
|
1763
1768
|
protoOf(TypeListSerializer).kl = function (encoder, value) {
|
|
1764
|
-
return this.
|
|
1769
|
+
return this.d2f(encoder, value instanceof TypeList ? value : THROW_CCE());
|
|
1765
1770
|
};
|
|
1766
1771
|
protoOf(TypeListSerializer).ll = function (decoder) {
|
|
1767
1772
|
var tmp0_elvis_lhs = isInterface(decoder, JsonDecoder) ? decoder : null;
|
|
@@ -1809,14 +1814,14 @@ function TypeListSerializer_getInstance() {
|
|
|
1809
1814
|
}
|
|
1810
1815
|
function TypeSerializer() {
|
|
1811
1816
|
TypeSerializer_instance = this;
|
|
1812
|
-
this.
|
|
1817
|
+
this.e2f_1 = buildSerialDescriptor('TypeSerializer', SEALED_getInstance(), []);
|
|
1813
1818
|
}
|
|
1814
1819
|
protoOf(TypeSerializer).jl = function () {
|
|
1815
|
-
return this.
|
|
1820
|
+
return this.e2f_1;
|
|
1816
1821
|
};
|
|
1817
|
-
protoOf(TypeSerializer).
|
|
1822
|
+
protoOf(TypeSerializer).f2f = function (encoder, value) {
|
|
1818
1823
|
if (value instanceof SimpleType) {
|
|
1819
|
-
encoder.cq(serializer_0(StringCompanionObject_instance), value.
|
|
1824
|
+
encoder.cq(serializer_0(StringCompanionObject_instance), value.b2d_1);
|
|
1820
1825
|
} else {
|
|
1821
1826
|
if (value instanceof RecordType) {
|
|
1822
1827
|
encoder.cq(Companion_getInstance_3().y17(), value);
|
|
@@ -1847,7 +1852,7 @@ protoOf(TypeSerializer).q2e = function (encoder, value) {
|
|
|
1847
1852
|
}
|
|
1848
1853
|
};
|
|
1849
1854
|
protoOf(TypeSerializer).kl = function (encoder, value) {
|
|
1850
|
-
return this.
|
|
1855
|
+
return this.f2f(encoder, (!(value == null) ? isInterface(value, Type_0) : false) ? value : THROW_CCE());
|
|
1851
1856
|
};
|
|
1852
1857
|
protoOf(TypeSerializer).ll = function (decoder) {
|
|
1853
1858
|
var tmp0_elvis_lhs = isInterface(decoder, JsonDecoder) ? decoder : null;
|
|
@@ -1902,7 +1907,7 @@ function AvroParser$parse$lambda($this$Json) {
|
|
|
1902
1907
|
}
|
|
1903
1908
|
function AvroParser() {
|
|
1904
1909
|
}
|
|
1905
|
-
protoOf(AvroParser).
|
|
1910
|
+
protoOf(AvroParser).g2f = function (moduleContent, strict) {
|
|
1906
1911
|
var json = Json(VOID, AvroParser$parse$lambda);
|
|
1907
1912
|
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
1908
1913
|
var string = moduleContent.q22_1;
|
|
@@ -1912,10 +1917,10 @@ protoOf(AvroParser).r2e = function (moduleContent, strict) {
|
|
|
1912
1917
|
var this_1 = serializer(this_0, createKType(getKClass(Type_0), arrayOf([]), false));
|
|
1913
1918
|
var tmp$ret$1 = isInterface(this_1, KSerializer) ? this_1 : THROW_CCE();
|
|
1914
1919
|
var avro = json.n15(tmp$ret$1, string);
|
|
1915
|
-
var tmp = AvroConverter_getInstance().
|
|
1920
|
+
var tmp = AvroConverter_getInstance().a2e(avro);
|
|
1916
1921
|
var tmp_0;
|
|
1917
1922
|
if (avro instanceof RecordType) {
|
|
1918
|
-
tmp_0 = new Channel(null, new DefinitionIdentifier(avro.
|
|
1923
|
+
tmp_0 = new Channel(null, emptyList(), new DefinitionIdentifier(avro.p2d_1), new Custom(avro.p2d_1, false));
|
|
1919
1924
|
} else {
|
|
1920
1925
|
if (avro instanceof ArrayType) {
|
|
1921
1926
|
throw new NotImplementedError();
|