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