@flock/wirespec 0.11.0 → 0.11.2
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.js +1143 -1143
- package/colormath-root-colormath.js +418 -418
- package/kotlin-kotlin-stdlib.js +5 -5
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin-rgxgen.js +1767 -1767
- package/markdown.js +1850 -1850
- package/mordant-mordant.js +1585 -1585
- package/package.json +1 -1
- package/wirespec-src-compiler-core.js +1601 -1619
- package/wirespec-src-compiler-core.js.map +1 -1
- package/wirespec-src-compiler-lib.js +308 -308
- package/wirespec-src-converter-avro.js +201 -201
- package/wirespec-src-converter-openapi.js +339 -339
- package/wirespec-src-converter-openapi.js.map +1 -1
- package/wirespec-src-plugin-arguments.js +78 -78
- package/wirespec-src-plugin-cli.js +166 -147
- package/wirespec-src-plugin-cli.js.map +1 -1
- package/wirespec-src-plugin-npm.js +43 -32
- package/wirespec-src-plugin-npm.js.map +1 -1
- package/wirespec-src-tools-generator.js +23 -23
|
@@ -22,18 +22,18 @@
|
|
|
22
22
|
'use strict';
|
|
23
23
|
//region block: imports
|
|
24
24
|
var imul = Math.imul;
|
|
25
|
-
var Boolean_instance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
26
|
-
var Precision_P32_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
27
|
-
var Integer = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
28
|
-
var Precision_P64_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
29
|
-
var Number_0 = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
30
|
-
var Bytes_instance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
31
|
-
var String_instance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
25
|
+
var Boolean_instance = kotlin_community_flock_wirespec_compiler_core.$_$.k2;
|
|
26
|
+
var Precision_P32_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.b2;
|
|
27
|
+
var Integer = kotlin_community_flock_wirespec_compiler_core.$_$.a1;
|
|
28
|
+
var Precision_P64_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.c2;
|
|
29
|
+
var Number_0 = kotlin_community_flock_wirespec_compiler_core.$_$.b1;
|
|
30
|
+
var Bytes_instance = kotlin_community_flock_wirespec_compiler_core.$_$.l2;
|
|
31
|
+
var String_instance = kotlin_community_flock_wirespec_compiler_core.$_$.m2;
|
|
32
32
|
var NotImplementedError = kotlin_kotlin.$_$.ef;
|
|
33
33
|
var noWhenBranchMatchedException = kotlin_kotlin.$_$.fg;
|
|
34
|
-
var Custom = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
35
|
-
var Unit = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
36
|
-
var Primitive = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
34
|
+
var Custom = kotlin_community_flock_wirespec_compiler_core.$_$.x;
|
|
35
|
+
var Unit = kotlin_community_flock_wirespec_compiler_core.$_$.e1;
|
|
36
|
+
var Primitive = kotlin_community_flock_wirespec_compiler_core.$_$.d1;
|
|
37
37
|
var VOID = kotlin_kotlin.$_$.g;
|
|
38
38
|
var minus = kotlin_kotlin.$_$.k7;
|
|
39
39
|
var Collection = kotlin_kotlin.$_$.k4;
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.k;
|
|
50
50
|
var FieldIdentifier = kotlin_community_flock_wirespec_compiler_core.$_$.u;
|
|
51
51
|
var Field = kotlin_community_flock_wirespec_compiler_core.$_$.v;
|
|
52
|
-
var Shape = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
53
|
-
var Type = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
52
|
+
var Shape = kotlin_community_flock_wirespec_compiler_core.$_$.h1;
|
|
53
|
+
var Type = kotlin_community_flock_wirespec_compiler_core.$_$.i1;
|
|
54
54
|
var toSet = kotlin_kotlin.$_$.q8;
|
|
55
55
|
var Enum = kotlin_community_flock_wirespec_compiler_core.$_$.t;
|
|
56
56
|
var listOf = kotlin_kotlin.$_$.g7;
|
|
@@ -127,11 +127,11 @@
|
|
|
127
127
|
initMetadataForObject(AvroParser, 'AvroParser');
|
|
128
128
|
//endregion
|
|
129
129
|
function isNullable(_this__u8e3s4, $this) {
|
|
130
|
-
return _this__u8e3s4.p1($this.
|
|
130
|
+
return _this__u8e3s4.p1($this.z2c_1);
|
|
131
131
|
}
|
|
132
132
|
function toPrimitive(_this__u8e3s4, $this) {
|
|
133
133
|
var tmp;
|
|
134
|
-
switch (_this__u8e3s4.
|
|
134
|
+
switch (_this__u8e3s4.a2d_1) {
|
|
135
135
|
case 'boolean':
|
|
136
136
|
tmp = Boolean_instance;
|
|
137
137
|
break;
|
|
@@ -154,7 +154,7 @@
|
|
|
154
154
|
tmp = String_instance;
|
|
155
155
|
break;
|
|
156
156
|
default:
|
|
157
|
-
var reason = 'primitive not mapped ' + _this__u8e3s4.
|
|
157
|
+
var reason = 'primitive not mapped ' + _this__u8e3s4.a2d_1;
|
|
158
158
|
throw new NotImplementedError('An operation is not implemented: ' + reason);
|
|
159
159
|
}
|
|
160
160
|
return tmp;
|
|
@@ -162,7 +162,7 @@
|
|
|
162
162
|
function toReference(_this__u8e3s4, $this, isIterable) {
|
|
163
163
|
var tmp;
|
|
164
164
|
if (_this__u8e3s4 instanceof SimpleType) {
|
|
165
|
-
switch (_this__u8e3s4.
|
|
165
|
+
switch (_this__u8e3s4.a2d_1) {
|
|
166
166
|
case 'null':
|
|
167
167
|
tmp = new Unit(isIterable, false);
|
|
168
168
|
break;
|
|
@@ -176,21 +176,21 @@
|
|
|
176
176
|
tmp = new Primitive(toPrimitive(_this__u8e3s4, $this), isIterable, false);
|
|
177
177
|
break;
|
|
178
178
|
default:
|
|
179
|
-
tmp = new Custom(_this__u8e3s4.
|
|
179
|
+
tmp = new Custom(_this__u8e3s4.a2d_1, isIterable, false);
|
|
180
180
|
break;
|
|
181
181
|
}
|
|
182
182
|
} else {
|
|
183
183
|
if (_this__u8e3s4 instanceof ArrayType) {
|
|
184
|
-
tmp = toReference(_this__u8e3s4.
|
|
184
|
+
tmp = toReference(_this__u8e3s4.p2d_1, $this, true);
|
|
185
185
|
} else {
|
|
186
186
|
if (_this__u8e3s4 instanceof RecordType) {
|
|
187
|
-
tmp = new Custom(_this__u8e3s4.
|
|
187
|
+
tmp = new Custom(_this__u8e3s4.k2d_1, isIterable, false);
|
|
188
188
|
} else {
|
|
189
189
|
if (_this__u8e3s4 instanceof EnumType) {
|
|
190
|
-
tmp = new Custom(_this__u8e3s4.
|
|
190
|
+
tmp = new Custom(_this__u8e3s4.g2d_1, isIterable, false);
|
|
191
191
|
} else {
|
|
192
192
|
if (_this__u8e3s4 instanceof LogicalType) {
|
|
193
|
-
tmp = toReference$default(new SimpleType(_this__u8e3s4.
|
|
193
|
+
tmp = toReference$default(new SimpleType(_this__u8e3s4.b2d_1), $this);
|
|
194
194
|
} else {
|
|
195
195
|
noWhenBranchMatchedException();
|
|
196
196
|
}
|
|
@@ -205,7 +205,7 @@
|
|
|
205
205
|
return toReference(_this__u8e3s4, $this, isIterable);
|
|
206
206
|
}
|
|
207
207
|
function toReference_0(_this__u8e3s4, $this) {
|
|
208
|
-
var list = minus(_this__u8e3s4, $this.
|
|
208
|
+
var list = minus(_this__u8e3s4, $this.z2c_1);
|
|
209
209
|
var tmp;
|
|
210
210
|
if (list.j() === 1) {
|
|
211
211
|
tmp = toReference$default(first(list), $this);
|
|
@@ -245,30 +245,30 @@
|
|
|
245
245
|
return tmp;
|
|
246
246
|
}
|
|
247
247
|
function toType(_this__u8e3s4, $this) {
|
|
248
|
-
var tmp0_identifier = new DefinitionIdentifier(_this__u8e3s4.
|
|
248
|
+
var tmp0_identifier = new DefinitionIdentifier(_this__u8e3s4.k2d_1);
|
|
249
249
|
var tmp1_extends = emptyList();
|
|
250
250
|
// Inline function 'kotlin.collections.map' call
|
|
251
|
-
var this_0 = _this__u8e3s4.
|
|
251
|
+
var this_0 = _this__u8e3s4.m2d_1;
|
|
252
252
|
// Inline function 'kotlin.collections.mapTo' call
|
|
253
253
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
254
254
|
var tmp0_iterator = this_0.g();
|
|
255
255
|
while (tmp0_iterator.h()) {
|
|
256
256
|
var item = tmp0_iterator.i();
|
|
257
257
|
// Inline function 'community.flock.wirespec.converter.avro.AvroConverter.toType.<anonymous>' call
|
|
258
|
-
var tmp$ret$0 = new Field(new FieldIdentifier(item.
|
|
258
|
+
var tmp$ret$0 = new Field(new FieldIdentifier(item.q2d_1), toReference_0(item.r2d_1, AvroConverter_getInstance()), isNullable(item.r2d_1, AvroConverter_getInstance()));
|
|
259
259
|
destination.e(tmp$ret$0);
|
|
260
260
|
}
|
|
261
261
|
var tmp2_shape = new Shape(destination);
|
|
262
262
|
return new Type(null, tmp0_identifier, tmp2_shape, tmp1_extends);
|
|
263
263
|
}
|
|
264
264
|
function toEnum(_this__u8e3s4, $this) {
|
|
265
|
-
return new Enum(null, new DefinitionIdentifier(_this__u8e3s4.
|
|
265
|
+
return new Enum(null, new DefinitionIdentifier(_this__u8e3s4.g2d_1), toSet(_this__u8e3s4.i2d_1));
|
|
266
266
|
}
|
|
267
267
|
function AvroConverter() {
|
|
268
268
|
AvroConverter_instance = this;
|
|
269
|
-
this.
|
|
269
|
+
this.z2c_1 = new SimpleType('null');
|
|
270
270
|
}
|
|
271
|
-
protoOf(AvroConverter).
|
|
271
|
+
protoOf(AvroConverter).u2d = function (_this__u8e3s4) {
|
|
272
272
|
var tmp;
|
|
273
273
|
if (_this__u8e3s4 instanceof SimpleType) {
|
|
274
274
|
tmp = emptyList();
|
|
@@ -277,7 +277,7 @@
|
|
|
277
277
|
var tmp_0 = listOf(toType(_this__u8e3s4, this));
|
|
278
278
|
// Inline function 'kotlin.collections.flatMap' call
|
|
279
279
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
280
|
-
var this_0 = _this__u8e3s4.
|
|
280
|
+
var this_0 = _this__u8e3s4.m2d_1;
|
|
281
281
|
var destination = ArrayList_init_$Create$_0();
|
|
282
282
|
var tmp0_iterator = this_0.g();
|
|
283
283
|
while (tmp0_iterator.h()) {
|
|
@@ -285,13 +285,13 @@
|
|
|
285
285
|
// Inline function 'community.flock.wirespec.converter.avro.AvroConverter.flatten.<anonymous>' call
|
|
286
286
|
// Inline function 'kotlin.collections.flatMap' call
|
|
287
287
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
288
|
-
var this_1 = element.
|
|
288
|
+
var this_1 = element.r2d_1;
|
|
289
289
|
var destination_0 = ArrayList_init_$Create$_0();
|
|
290
290
|
var tmp0_iterator_0 = this_1.g();
|
|
291
291
|
while (tmp0_iterator_0.h()) {
|
|
292
292
|
var element_0 = tmp0_iterator_0.i();
|
|
293
293
|
// Inline function 'community.flock.wirespec.converter.avro.AvroConverter.flatten.<anonymous>.<anonymous>' call
|
|
294
|
-
var list = AvroConverter_getInstance().
|
|
294
|
+
var list = AvroConverter_getInstance().u2d(element_0);
|
|
295
295
|
addAll(destination_0, list);
|
|
296
296
|
}
|
|
297
297
|
var list_0 = destination_0;
|
|
@@ -300,7 +300,7 @@
|
|
|
300
300
|
tmp = plus(tmp_0, destination);
|
|
301
301
|
} else {
|
|
302
302
|
if (_this__u8e3s4 instanceof ArrayType) {
|
|
303
|
-
tmp = this.
|
|
303
|
+
tmp = this.u2d(_this__u8e3s4.p2d_1);
|
|
304
304
|
} else {
|
|
305
305
|
if (_this__u8e3s4 instanceof EnumType) {
|
|
306
306
|
tmp = listOf(toEnum(_this__u8e3s4, this));
|
|
@@ -329,26 +329,26 @@
|
|
|
329
329
|
tmp0_serialDesc.hv('type', false);
|
|
330
330
|
tmp0_serialDesc.hv('doc', true);
|
|
331
331
|
tmp0_serialDesc.hv('default', true);
|
|
332
|
-
this.
|
|
332
|
+
this.v2d_1 = tmp0_serialDesc;
|
|
333
333
|
}
|
|
334
|
-
protoOf($serializer).
|
|
335
|
-
var tmp0_desc = this.
|
|
334
|
+
protoOf($serializer).w2d = function (encoder, value) {
|
|
335
|
+
var tmp0_desc = this.v2d_1;
|
|
336
336
|
var tmp1_output = encoder.xn(tmp0_desc);
|
|
337
|
-
tmp1_output.mp(tmp0_desc, 0, value.
|
|
338
|
-
tmp1_output.op(tmp0_desc, 1, TypeListSerializer_getInstance(), value.
|
|
339
|
-
if (tmp1_output.up(tmp0_desc, 2) ? true : !(value.
|
|
340
|
-
tmp1_output.qp(tmp0_desc, 2, StringSerializer_getInstance(), value.
|
|
337
|
+
tmp1_output.mp(tmp0_desc, 0, value.q2d_1);
|
|
338
|
+
tmp1_output.op(tmp0_desc, 1, TypeListSerializer_getInstance(), value.r2d_1);
|
|
339
|
+
if (tmp1_output.up(tmp0_desc, 2) ? true : !(value.s2d_1 == null)) {
|
|
340
|
+
tmp1_output.qp(tmp0_desc, 2, StringSerializer_getInstance(), value.s2d_1);
|
|
341
341
|
}
|
|
342
|
-
if (tmp1_output.up(tmp0_desc, 3) ? true : !(value.
|
|
343
|
-
tmp1_output.qp(tmp0_desc, 3, StringSerializer_getInstance(), value.
|
|
342
|
+
if (tmp1_output.up(tmp0_desc, 3) ? true : !(value.t2d_1 == null)) {
|
|
343
|
+
tmp1_output.qp(tmp0_desc, 3, StringSerializer_getInstance(), value.t2d_1);
|
|
344
344
|
}
|
|
345
345
|
tmp1_output.yn(tmp0_desc);
|
|
346
346
|
};
|
|
347
347
|
protoOf($serializer).xk = function (encoder, value) {
|
|
348
|
-
return this.
|
|
348
|
+
return this.w2d(encoder, value instanceof Field_0 ? value : THROW_CCE());
|
|
349
349
|
};
|
|
350
350
|
protoOf($serializer).yk = function (decoder) {
|
|
351
|
-
var tmp0_desc = this.
|
|
351
|
+
var tmp0_desc = this.v2d_1;
|
|
352
352
|
var tmp1_flag = true;
|
|
353
353
|
var tmp2_index = 0;
|
|
354
354
|
var tmp3_bitMask0 = 0;
|
|
@@ -397,7 +397,7 @@
|
|
|
397
397
|
return Field_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
398
398
|
};
|
|
399
399
|
protoOf($serializer).wk = function () {
|
|
400
|
-
return this.
|
|
400
|
+
return this.v2d_1;
|
|
401
401
|
};
|
|
402
402
|
protoOf($serializer).aw = function () {
|
|
403
403
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -413,18 +413,18 @@
|
|
|
413
413
|
}
|
|
414
414
|
function Field_init_$Init$(seen0, name, type, doc, default_0, serializationConstructorMarker, $this) {
|
|
415
415
|
if (!(3 === (3 & seen0))) {
|
|
416
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance().
|
|
416
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance().v2d_1);
|
|
417
417
|
}
|
|
418
|
-
$this.
|
|
419
|
-
$this.
|
|
418
|
+
$this.q2d_1 = name;
|
|
419
|
+
$this.r2d_1 = type;
|
|
420
420
|
if (0 === (seen0 & 4))
|
|
421
|
-
$this.
|
|
421
|
+
$this.s2d_1 = null;
|
|
422
422
|
else
|
|
423
|
-
$this.
|
|
423
|
+
$this.s2d_1 = doc;
|
|
424
424
|
if (0 === (seen0 & 8))
|
|
425
|
-
$this.
|
|
425
|
+
$this.t2d_1 = null;
|
|
426
426
|
else
|
|
427
|
-
$this.
|
|
427
|
+
$this.t2d_1 = default_0;
|
|
428
428
|
return $this;
|
|
429
429
|
}
|
|
430
430
|
function Field_init_$Create$(seen0, name, type, doc, default_0, serializationConstructorMarker) {
|
|
@@ -458,19 +458,19 @@
|
|
|
458
458
|
$serializer_instance_0 = this;
|
|
459
459
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.SimpleType', this, 1);
|
|
460
460
|
tmp0_serialDesc.hv('value', false);
|
|
461
|
-
this.
|
|
461
|
+
this.x2d_1 = tmp0_serialDesc;
|
|
462
462
|
}
|
|
463
|
-
protoOf($serializer_0).
|
|
464
|
-
var tmp0_desc = this.
|
|
463
|
+
protoOf($serializer_0).y2d = function (encoder, value) {
|
|
464
|
+
var tmp0_desc = this.x2d_1;
|
|
465
465
|
var tmp1_output = encoder.xn(tmp0_desc);
|
|
466
|
-
tmp1_output.mp(tmp0_desc, 0, value.
|
|
466
|
+
tmp1_output.mp(tmp0_desc, 0, value.a2d_1);
|
|
467
467
|
tmp1_output.yn(tmp0_desc);
|
|
468
468
|
};
|
|
469
469
|
protoOf($serializer_0).xk = function (encoder, value) {
|
|
470
|
-
return this.
|
|
470
|
+
return this.y2d(encoder, value instanceof SimpleType ? value : THROW_CCE());
|
|
471
471
|
};
|
|
472
472
|
protoOf($serializer_0).yk = function (decoder) {
|
|
473
|
-
var tmp0_desc = this.
|
|
473
|
+
var tmp0_desc = this.x2d_1;
|
|
474
474
|
var tmp1_flag = true;
|
|
475
475
|
var tmp2_index = 0;
|
|
476
476
|
var tmp3_bitMask0 = 0;
|
|
@@ -498,7 +498,7 @@
|
|
|
498
498
|
return SimpleType_init_$Create$(tmp3_bitMask0, tmp4_local0, null);
|
|
499
499
|
};
|
|
500
500
|
protoOf($serializer_0).wk = function () {
|
|
501
|
-
return this.
|
|
501
|
+
return this.x2d_1;
|
|
502
502
|
};
|
|
503
503
|
protoOf($serializer_0).aw = function () {
|
|
504
504
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -514,9 +514,9 @@
|
|
|
514
514
|
}
|
|
515
515
|
function SimpleType_init_$Init$(seen0, value, serializationConstructorMarker, $this) {
|
|
516
516
|
if (!(1 === (1 & seen0))) {
|
|
517
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_0().
|
|
517
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_0().x2d_1);
|
|
518
518
|
}
|
|
519
|
-
$this.
|
|
519
|
+
$this.a2d_1 = value;
|
|
520
520
|
return $this;
|
|
521
521
|
}
|
|
522
522
|
function SimpleType_init_$Create$(seen0, value, serializationConstructorMarker) {
|
|
@@ -528,7 +528,7 @@
|
|
|
528
528
|
// Inline function 'kotlin.arrayOf' call
|
|
529
529
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
530
530
|
// Inline function 'kotlin.js.asDynamic' call
|
|
531
|
-
tmp.
|
|
531
|
+
tmp.z2d_1 = [null, null, null, new ArrayListSerializer($serializer_getInstance()), null];
|
|
532
532
|
}
|
|
533
533
|
protoOf(Companion_2).n17 = function () {
|
|
534
534
|
return $serializer_getInstance_1();
|
|
@@ -547,28 +547,28 @@
|
|
|
547
547
|
tmp0_serialDesc.hv('namespace', true);
|
|
548
548
|
tmp0_serialDesc.hv('fields', false);
|
|
549
549
|
tmp0_serialDesc.hv('doc', true);
|
|
550
|
-
this.
|
|
550
|
+
this.a2e_1 = tmp0_serialDesc;
|
|
551
551
|
}
|
|
552
|
-
protoOf($serializer_1).
|
|
553
|
-
var tmp0_desc = this.
|
|
552
|
+
protoOf($serializer_1).b2e = function (encoder, value) {
|
|
553
|
+
var tmp0_desc = this.a2e_1;
|
|
554
554
|
var tmp1_output = encoder.xn(tmp0_desc);
|
|
555
|
-
var tmp2_cached = Companion_getInstance_2().
|
|
556
|
-
tmp1_output.mp(tmp0_desc, 0, value.
|
|
557
|
-
tmp1_output.mp(tmp0_desc, 1, value.
|
|
558
|
-
if (tmp1_output.up(tmp0_desc, 2) ? true : !(value.
|
|
559
|
-
tmp1_output.qp(tmp0_desc, 2, StringSerializer_getInstance(), value.
|
|
555
|
+
var tmp2_cached = Companion_getInstance_2().z2d_1;
|
|
556
|
+
tmp1_output.mp(tmp0_desc, 0, value.j2d_1);
|
|
557
|
+
tmp1_output.mp(tmp0_desc, 1, value.k2d_1);
|
|
558
|
+
if (tmp1_output.up(tmp0_desc, 2) ? true : !(value.l2d_1 == null)) {
|
|
559
|
+
tmp1_output.qp(tmp0_desc, 2, StringSerializer_getInstance(), value.l2d_1);
|
|
560
560
|
}
|
|
561
|
-
tmp1_output.op(tmp0_desc, 3, tmp2_cached[3], value.
|
|
562
|
-
if (tmp1_output.up(tmp0_desc, 4) ? true : !(value.
|
|
563
|
-
tmp1_output.qp(tmp0_desc, 4, StringSerializer_getInstance(), value.
|
|
561
|
+
tmp1_output.op(tmp0_desc, 3, tmp2_cached[3], value.m2d_1);
|
|
562
|
+
if (tmp1_output.up(tmp0_desc, 4) ? true : !(value.n2d_1 == null)) {
|
|
563
|
+
tmp1_output.qp(tmp0_desc, 4, StringSerializer_getInstance(), value.n2d_1);
|
|
564
564
|
}
|
|
565
565
|
tmp1_output.yn(tmp0_desc);
|
|
566
566
|
};
|
|
567
567
|
protoOf($serializer_1).xk = function (encoder, value) {
|
|
568
|
-
return this.
|
|
568
|
+
return this.b2e(encoder, value instanceof RecordType ? value : THROW_CCE());
|
|
569
569
|
};
|
|
570
570
|
protoOf($serializer_1).yk = function (decoder) {
|
|
571
|
-
var tmp0_desc = this.
|
|
571
|
+
var tmp0_desc = this.a2e_1;
|
|
572
572
|
var tmp1_flag = true;
|
|
573
573
|
var tmp2_index = 0;
|
|
574
574
|
var tmp3_bitMask0 = 0;
|
|
@@ -578,7 +578,7 @@
|
|
|
578
578
|
var tmp7_local3 = null;
|
|
579
579
|
var tmp8_local4 = null;
|
|
580
580
|
var tmp9_input = decoder.xn(tmp0_desc);
|
|
581
|
-
var tmp10_cached = Companion_getInstance_2().
|
|
581
|
+
var tmp10_cached = Companion_getInstance_2().z2d_1;
|
|
582
582
|
if (tmp9_input.no()) {
|
|
583
583
|
tmp4_local0 = tmp9_input.ho(tmp0_desc, 0);
|
|
584
584
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -625,10 +625,10 @@
|
|
|
625
625
|
return RecordType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null);
|
|
626
626
|
};
|
|
627
627
|
protoOf($serializer_1).wk = function () {
|
|
628
|
-
return this.
|
|
628
|
+
return this.a2e_1;
|
|
629
629
|
};
|
|
630
630
|
protoOf($serializer_1).aw = function () {
|
|
631
|
-
var tmp0_cached = Companion_getInstance_2().
|
|
631
|
+
var tmp0_cached = Companion_getInstance_2().z2d_1;
|
|
632
632
|
// Inline function 'kotlin.arrayOf' call
|
|
633
633
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
634
634
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -642,19 +642,19 @@
|
|
|
642
642
|
}
|
|
643
643
|
function RecordType_init_$Init$(seen0, type, name, namespace, fields, doc, serializationConstructorMarker, $this) {
|
|
644
644
|
if (!(11 === (11 & seen0))) {
|
|
645
|
-
throwMissingFieldException(seen0, 11, $serializer_getInstance_1().
|
|
645
|
+
throwMissingFieldException(seen0, 11, $serializer_getInstance_1().a2e_1);
|
|
646
646
|
}
|
|
647
|
-
$this.
|
|
648
|
-
$this.
|
|
647
|
+
$this.j2d_1 = type;
|
|
648
|
+
$this.k2d_1 = name;
|
|
649
649
|
if (0 === (seen0 & 4))
|
|
650
|
-
$this.
|
|
650
|
+
$this.l2d_1 = null;
|
|
651
651
|
else
|
|
652
|
-
$this.
|
|
653
|
-
$this.
|
|
652
|
+
$this.l2d_1 = namespace;
|
|
653
|
+
$this.m2d_1 = fields;
|
|
654
654
|
if (0 === (seen0 & 16))
|
|
655
|
-
$this.
|
|
655
|
+
$this.n2d_1 = null;
|
|
656
656
|
else
|
|
657
|
-
$this.
|
|
657
|
+
$this.n2d_1 = doc;
|
|
658
658
|
return $this;
|
|
659
659
|
}
|
|
660
660
|
function RecordType_init_$Create$(seen0, type, name, namespace, fields, doc, serializationConstructorMarker) {
|
|
@@ -674,20 +674,20 @@
|
|
|
674
674
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.ArrayType', this, 2);
|
|
675
675
|
tmp0_serialDesc.hv('type', false);
|
|
676
676
|
tmp0_serialDesc.hv('items', false);
|
|
677
|
-
this.
|
|
677
|
+
this.c2e_1 = tmp0_serialDesc;
|
|
678
678
|
}
|
|
679
|
-
protoOf($serializer_2).
|
|
680
|
-
var tmp0_desc = this.
|
|
679
|
+
protoOf($serializer_2).d2e = function (encoder, value) {
|
|
680
|
+
var tmp0_desc = this.c2e_1;
|
|
681
681
|
var tmp1_output = encoder.xn(tmp0_desc);
|
|
682
|
-
tmp1_output.mp(tmp0_desc, 0, value.
|
|
683
|
-
tmp1_output.op(tmp0_desc, 1, TypeSerializer_getInstance(), value.
|
|
682
|
+
tmp1_output.mp(tmp0_desc, 0, value.o2d_1);
|
|
683
|
+
tmp1_output.op(tmp0_desc, 1, TypeSerializer_getInstance(), value.p2d_1);
|
|
684
684
|
tmp1_output.yn(tmp0_desc);
|
|
685
685
|
};
|
|
686
686
|
protoOf($serializer_2).xk = function (encoder, value) {
|
|
687
|
-
return this.
|
|
687
|
+
return this.d2e(encoder, value instanceof ArrayType ? value : THROW_CCE());
|
|
688
688
|
};
|
|
689
689
|
protoOf($serializer_2).yk = function (decoder) {
|
|
690
|
-
var tmp0_desc = this.
|
|
690
|
+
var tmp0_desc = this.c2e_1;
|
|
691
691
|
var tmp1_flag = true;
|
|
692
692
|
var tmp2_index = 0;
|
|
693
693
|
var tmp3_bitMask0 = 0;
|
|
@@ -722,7 +722,7 @@
|
|
|
722
722
|
return ArrayType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
723
723
|
};
|
|
724
724
|
protoOf($serializer_2).wk = function () {
|
|
725
|
-
return this.
|
|
725
|
+
return this.c2e_1;
|
|
726
726
|
};
|
|
727
727
|
protoOf($serializer_2).aw = function () {
|
|
728
728
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -738,10 +738,10 @@
|
|
|
738
738
|
}
|
|
739
739
|
function ArrayType_init_$Init$(seen0, type, items, serializationConstructorMarker, $this) {
|
|
740
740
|
if (!(3 === (3 & seen0))) {
|
|
741
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().
|
|
741
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().c2e_1);
|
|
742
742
|
}
|
|
743
|
-
$this.
|
|
744
|
-
$this.
|
|
743
|
+
$this.o2d_1 = type;
|
|
744
|
+
$this.p2d_1 = items;
|
|
745
745
|
return $this;
|
|
746
746
|
}
|
|
747
747
|
function ArrayType_init_$Create$(seen0, type, items, serializationConstructorMarker) {
|
|
@@ -753,7 +753,7 @@
|
|
|
753
753
|
// Inline function 'kotlin.arrayOf' call
|
|
754
754
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
755
755
|
// Inline function 'kotlin.js.asDynamic' call
|
|
756
|
-
tmp.
|
|
756
|
+
tmp.e2e_1 = [null, null, null, new ArrayListSerializer(StringSerializer_getInstance())];
|
|
757
757
|
}
|
|
758
758
|
protoOf(Companion_4).n17 = function () {
|
|
759
759
|
return $serializer_getInstance_3();
|
|
@@ -771,25 +771,25 @@
|
|
|
771
771
|
tmp0_serialDesc.hv('name', false);
|
|
772
772
|
tmp0_serialDesc.hv('doc', true);
|
|
773
773
|
tmp0_serialDesc.hv('symbols', false);
|
|
774
|
-
this.
|
|
774
|
+
this.f2e_1 = tmp0_serialDesc;
|
|
775
775
|
}
|
|
776
|
-
protoOf($serializer_3).
|
|
777
|
-
var tmp0_desc = this.
|
|
776
|
+
protoOf($serializer_3).g2e = function (encoder, value) {
|
|
777
|
+
var tmp0_desc = this.f2e_1;
|
|
778
778
|
var tmp1_output = encoder.xn(tmp0_desc);
|
|
779
|
-
var tmp2_cached = Companion_getInstance_4().
|
|
780
|
-
tmp1_output.mp(tmp0_desc, 0, value.
|
|
781
|
-
tmp1_output.mp(tmp0_desc, 1, value.
|
|
782
|
-
if (tmp1_output.up(tmp0_desc, 2) ? true : !(value.
|
|
783
|
-
tmp1_output.qp(tmp0_desc, 2, StringSerializer_getInstance(), value.
|
|
779
|
+
var tmp2_cached = Companion_getInstance_4().e2e_1;
|
|
780
|
+
tmp1_output.mp(tmp0_desc, 0, value.f2d_1);
|
|
781
|
+
tmp1_output.mp(tmp0_desc, 1, value.g2d_1);
|
|
782
|
+
if (tmp1_output.up(tmp0_desc, 2) ? true : !(value.h2d_1 == null)) {
|
|
783
|
+
tmp1_output.qp(tmp0_desc, 2, StringSerializer_getInstance(), value.h2d_1);
|
|
784
784
|
}
|
|
785
|
-
tmp1_output.op(tmp0_desc, 3, tmp2_cached[3], value.
|
|
785
|
+
tmp1_output.op(tmp0_desc, 3, tmp2_cached[3], value.i2d_1);
|
|
786
786
|
tmp1_output.yn(tmp0_desc);
|
|
787
787
|
};
|
|
788
788
|
protoOf($serializer_3).xk = function (encoder, value) {
|
|
789
|
-
return this.
|
|
789
|
+
return this.g2e(encoder, value instanceof EnumType ? value : THROW_CCE());
|
|
790
790
|
};
|
|
791
791
|
protoOf($serializer_3).yk = function (decoder) {
|
|
792
|
-
var tmp0_desc = this.
|
|
792
|
+
var tmp0_desc = this.f2e_1;
|
|
793
793
|
var tmp1_flag = true;
|
|
794
794
|
var tmp2_index = 0;
|
|
795
795
|
var tmp3_bitMask0 = 0;
|
|
@@ -798,7 +798,7 @@
|
|
|
798
798
|
var tmp6_local2 = null;
|
|
799
799
|
var tmp7_local3 = null;
|
|
800
800
|
var tmp8_input = decoder.xn(tmp0_desc);
|
|
801
|
-
var tmp9_cached = Companion_getInstance_4().
|
|
801
|
+
var tmp9_cached = Companion_getInstance_4().e2e_1;
|
|
802
802
|
if (tmp8_input.no()) {
|
|
803
803
|
tmp4_local0 = tmp8_input.ho(tmp0_desc, 0);
|
|
804
804
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -839,10 +839,10 @@
|
|
|
839
839
|
return EnumType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
840
840
|
};
|
|
841
841
|
protoOf($serializer_3).wk = function () {
|
|
842
|
-
return this.
|
|
842
|
+
return this.f2e_1;
|
|
843
843
|
};
|
|
844
844
|
protoOf($serializer_3).aw = function () {
|
|
845
|
-
var tmp0_cached = Companion_getInstance_4().
|
|
845
|
+
var tmp0_cached = Companion_getInstance_4().e2e_1;
|
|
846
846
|
// Inline function 'kotlin.arrayOf' call
|
|
847
847
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
848
848
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -856,15 +856,15 @@
|
|
|
856
856
|
}
|
|
857
857
|
function EnumType_init_$Init$(seen0, type, name, doc, symbols, serializationConstructorMarker, $this) {
|
|
858
858
|
if (!(11 === (11 & seen0))) {
|
|
859
|
-
throwMissingFieldException(seen0, 11, $serializer_getInstance_3().
|
|
859
|
+
throwMissingFieldException(seen0, 11, $serializer_getInstance_3().f2e_1);
|
|
860
860
|
}
|
|
861
|
-
$this.
|
|
862
|
-
$this.
|
|
861
|
+
$this.f2d_1 = type;
|
|
862
|
+
$this.g2d_1 = name;
|
|
863
863
|
if (0 === (seen0 & 4))
|
|
864
|
-
$this.
|
|
864
|
+
$this.h2d_1 = null;
|
|
865
865
|
else
|
|
866
|
-
$this.
|
|
867
|
-
$this.
|
|
866
|
+
$this.h2d_1 = doc;
|
|
867
|
+
$this.i2d_1 = symbols;
|
|
868
868
|
return $this;
|
|
869
869
|
}
|
|
870
870
|
function EnumType_init_$Create$(seen0, type, name, doc, symbols, serializationConstructorMarker) {
|
|
@@ -886,26 +886,26 @@
|
|
|
886
886
|
tmp0_serialDesc.hv('logicalType', false);
|
|
887
887
|
tmp0_serialDesc.hv('precision', true);
|
|
888
888
|
tmp0_serialDesc.hv('scale', true);
|
|
889
|
-
this.
|
|
889
|
+
this.h2e_1 = tmp0_serialDesc;
|
|
890
890
|
}
|
|
891
|
-
protoOf($serializer_4).
|
|
892
|
-
var tmp0_desc = this.
|
|
891
|
+
protoOf($serializer_4).i2e = function (encoder, value) {
|
|
892
|
+
var tmp0_desc = this.h2e_1;
|
|
893
893
|
var tmp1_output = encoder.xn(tmp0_desc);
|
|
894
|
-
tmp1_output.mp(tmp0_desc, 0, value.
|
|
895
|
-
tmp1_output.mp(tmp0_desc, 1, value.
|
|
896
|
-
if (tmp1_output.up(tmp0_desc, 2) ? true : !(value.
|
|
897
|
-
tmp1_output.qp(tmp0_desc, 2, IntSerializer_getInstance(), value.
|
|
894
|
+
tmp1_output.mp(tmp0_desc, 0, value.b2d_1);
|
|
895
|
+
tmp1_output.mp(tmp0_desc, 1, value.c2d_1);
|
|
896
|
+
if (tmp1_output.up(tmp0_desc, 2) ? true : !(value.d2d_1 == null)) {
|
|
897
|
+
tmp1_output.qp(tmp0_desc, 2, IntSerializer_getInstance(), value.d2d_1);
|
|
898
898
|
}
|
|
899
|
-
if (tmp1_output.up(tmp0_desc, 3) ? true : !(value.
|
|
900
|
-
tmp1_output.qp(tmp0_desc, 3, IntSerializer_getInstance(), value.
|
|
899
|
+
if (tmp1_output.up(tmp0_desc, 3) ? true : !(value.e2d_1 == null)) {
|
|
900
|
+
tmp1_output.qp(tmp0_desc, 3, IntSerializer_getInstance(), value.e2d_1);
|
|
901
901
|
}
|
|
902
902
|
tmp1_output.yn(tmp0_desc);
|
|
903
903
|
};
|
|
904
904
|
protoOf($serializer_4).xk = function (encoder, value) {
|
|
905
|
-
return this.
|
|
905
|
+
return this.i2e(encoder, value instanceof LogicalType ? value : THROW_CCE());
|
|
906
906
|
};
|
|
907
907
|
protoOf($serializer_4).yk = function (decoder) {
|
|
908
|
-
var tmp0_desc = this.
|
|
908
|
+
var tmp0_desc = this.h2e_1;
|
|
909
909
|
var tmp1_flag = true;
|
|
910
910
|
var tmp2_index = 0;
|
|
911
911
|
var tmp3_bitMask0 = 0;
|
|
@@ -954,7 +954,7 @@
|
|
|
954
954
|
return LogicalType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
955
955
|
};
|
|
956
956
|
protoOf($serializer_4).wk = function () {
|
|
957
|
-
return this.
|
|
957
|
+
return this.h2e_1;
|
|
958
958
|
};
|
|
959
959
|
protoOf($serializer_4).aw = function () {
|
|
960
960
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -970,18 +970,18 @@
|
|
|
970
970
|
}
|
|
971
971
|
function LogicalType_init_$Init$(seen0, type, logicalType, precision, scale, serializationConstructorMarker, $this) {
|
|
972
972
|
if (!(3 === (3 & seen0))) {
|
|
973
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_4().
|
|
973
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_4().h2e_1);
|
|
974
974
|
}
|
|
975
|
-
$this.
|
|
976
|
-
$this.
|
|
975
|
+
$this.b2d_1 = type;
|
|
976
|
+
$this.c2d_1 = logicalType;
|
|
977
977
|
if (0 === (seen0 & 4))
|
|
978
|
-
$this.
|
|
978
|
+
$this.d2d_1 = null;
|
|
979
979
|
else
|
|
980
|
-
$this.
|
|
980
|
+
$this.d2d_1 = precision;
|
|
981
981
|
if (0 === (seen0 & 8))
|
|
982
|
-
$this.
|
|
982
|
+
$this.e2d_1 = null;
|
|
983
983
|
else
|
|
984
|
-
$this.
|
|
984
|
+
$this.e2d_1 = scale;
|
|
985
985
|
return $this;
|
|
986
986
|
}
|
|
987
987
|
function LogicalType_init_$Create$(seen0, type, logicalType, precision, scale, serializationConstructorMarker) {
|
|
@@ -990,13 +990,13 @@
|
|
|
990
990
|
function Field_0() {
|
|
991
991
|
}
|
|
992
992
|
protoOf(Field_0).toString = function () {
|
|
993
|
-
return 'Field(name=' + this.
|
|
993
|
+
return 'Field(name=' + this.q2d_1 + ', type=' + this.r2d_1.toString() + ', doc=' + this.s2d_1 + ', default=' + this.t2d_1 + ')';
|
|
994
994
|
};
|
|
995
995
|
protoOf(Field_0).hashCode = function () {
|
|
996
|
-
var result = getStringHashCode(this.
|
|
997
|
-
result = imul(result, 31) + this.
|
|
998
|
-
result = imul(result, 31) + (this.
|
|
999
|
-
result = imul(result, 31) + (this.
|
|
996
|
+
var result = getStringHashCode(this.q2d_1);
|
|
997
|
+
result = imul(result, 31) + this.r2d_1.hashCode() | 0;
|
|
998
|
+
result = imul(result, 31) + (this.s2d_1 == null ? 0 : getStringHashCode(this.s2d_1)) | 0;
|
|
999
|
+
result = imul(result, 31) + (this.t2d_1 == null ? 0 : getStringHashCode(this.t2d_1)) | 0;
|
|
1000
1000
|
return result;
|
|
1001
1001
|
};
|
|
1002
1002
|
protoOf(Field_0).equals = function (other) {
|
|
@@ -1005,37 +1005,37 @@
|
|
|
1005
1005
|
if (!(other instanceof Field_0))
|
|
1006
1006
|
return false;
|
|
1007
1007
|
var tmp0_other_with_cast = other instanceof Field_0 ? other : THROW_CCE();
|
|
1008
|
-
if (!(this.
|
|
1008
|
+
if (!(this.q2d_1 === tmp0_other_with_cast.q2d_1))
|
|
1009
1009
|
return false;
|
|
1010
|
-
if (!this.
|
|
1010
|
+
if (!this.r2d_1.equals(tmp0_other_with_cast.r2d_1))
|
|
1011
1011
|
return false;
|
|
1012
|
-
if (!(this.
|
|
1012
|
+
if (!(this.s2d_1 == tmp0_other_with_cast.s2d_1))
|
|
1013
1013
|
return false;
|
|
1014
|
-
if (!(this.
|
|
1014
|
+
if (!(this.t2d_1 == tmp0_other_with_cast.t2d_1))
|
|
1015
1015
|
return false;
|
|
1016
1016
|
return true;
|
|
1017
1017
|
};
|
|
1018
1018
|
function TypeList(type) {
|
|
1019
1019
|
AbstractList.call(this);
|
|
1020
|
-
this.
|
|
1021
|
-
this.
|
|
1020
|
+
this.j2e_1 = toList(type);
|
|
1021
|
+
this.k2e_1 = this.j2e_1.j();
|
|
1022
1022
|
}
|
|
1023
1023
|
protoOf(TypeList).j = function () {
|
|
1024
|
-
return this.
|
|
1024
|
+
return this.k2e_1;
|
|
1025
1025
|
};
|
|
1026
1026
|
protoOf(TypeList).k = function (index) {
|
|
1027
|
-
return this.
|
|
1027
|
+
return this.j2e_1.k(index);
|
|
1028
1028
|
};
|
|
1029
1029
|
function Type_0() {
|
|
1030
1030
|
}
|
|
1031
1031
|
function SimpleType(value) {
|
|
1032
|
-
this.
|
|
1032
|
+
this.a2d_1 = value;
|
|
1033
1033
|
}
|
|
1034
1034
|
protoOf(SimpleType).toString = function () {
|
|
1035
|
-
return 'SimpleType(value=' + this.
|
|
1035
|
+
return 'SimpleType(value=' + this.a2d_1 + ')';
|
|
1036
1036
|
};
|
|
1037
1037
|
protoOf(SimpleType).hashCode = function () {
|
|
1038
|
-
return getStringHashCode(this.
|
|
1038
|
+
return getStringHashCode(this.a2d_1);
|
|
1039
1039
|
};
|
|
1040
1040
|
protoOf(SimpleType).equals = function (other) {
|
|
1041
1041
|
if (this === other)
|
|
@@ -1043,21 +1043,21 @@
|
|
|
1043
1043
|
if (!(other instanceof SimpleType))
|
|
1044
1044
|
return false;
|
|
1045
1045
|
var tmp0_other_with_cast = other instanceof SimpleType ? other : THROW_CCE();
|
|
1046
|
-
if (!(this.
|
|
1046
|
+
if (!(this.a2d_1 === tmp0_other_with_cast.a2d_1))
|
|
1047
1047
|
return false;
|
|
1048
1048
|
return true;
|
|
1049
1049
|
};
|
|
1050
1050
|
function RecordType() {
|
|
1051
1051
|
}
|
|
1052
1052
|
protoOf(RecordType).toString = function () {
|
|
1053
|
-
return 'RecordType(type=' + this.
|
|
1053
|
+
return 'RecordType(type=' + this.j2d_1 + ', name=' + this.k2d_1 + ', namespace=' + this.l2d_1 + ', fields=' + toString(this.m2d_1) + ', doc=' + this.n2d_1 + ')';
|
|
1054
1054
|
};
|
|
1055
1055
|
protoOf(RecordType).hashCode = function () {
|
|
1056
|
-
var result = getStringHashCode(this.
|
|
1057
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1058
|
-
result = imul(result, 31) + (this.j2d_1 == null ? 0 : getStringHashCode(this.j2d_1)) | 0;
|
|
1059
|
-
result = imul(result, 31) + hashCode(this.k2d_1) | 0;
|
|
1056
|
+
var result = getStringHashCode(this.j2d_1);
|
|
1057
|
+
result = imul(result, 31) + getStringHashCode(this.k2d_1) | 0;
|
|
1060
1058
|
result = imul(result, 31) + (this.l2d_1 == null ? 0 : getStringHashCode(this.l2d_1)) | 0;
|
|
1059
|
+
result = imul(result, 31) + hashCode(this.m2d_1) | 0;
|
|
1060
|
+
result = imul(result, 31) + (this.n2d_1 == null ? 0 : getStringHashCode(this.n2d_1)) | 0;
|
|
1061
1061
|
return result;
|
|
1062
1062
|
};
|
|
1063
1063
|
protoOf(RecordType).equals = function (other) {
|
|
@@ -1066,26 +1066,26 @@
|
|
|
1066
1066
|
if (!(other instanceof RecordType))
|
|
1067
1067
|
return false;
|
|
1068
1068
|
var tmp0_other_with_cast = other instanceof RecordType ? other : THROW_CCE();
|
|
1069
|
-
if (!(this.
|
|
1069
|
+
if (!(this.j2d_1 === tmp0_other_with_cast.j2d_1))
|
|
1070
1070
|
return false;
|
|
1071
|
-
if (!(this.
|
|
1071
|
+
if (!(this.k2d_1 === tmp0_other_with_cast.k2d_1))
|
|
1072
1072
|
return false;
|
|
1073
|
-
if (!(this.
|
|
1073
|
+
if (!(this.l2d_1 == tmp0_other_with_cast.l2d_1))
|
|
1074
1074
|
return false;
|
|
1075
|
-
if (!equals(this.
|
|
1075
|
+
if (!equals(this.m2d_1, tmp0_other_with_cast.m2d_1))
|
|
1076
1076
|
return false;
|
|
1077
|
-
if (!(this.
|
|
1077
|
+
if (!(this.n2d_1 == tmp0_other_with_cast.n2d_1))
|
|
1078
1078
|
return false;
|
|
1079
1079
|
return true;
|
|
1080
1080
|
};
|
|
1081
1081
|
function ArrayType() {
|
|
1082
1082
|
}
|
|
1083
1083
|
protoOf(ArrayType).toString = function () {
|
|
1084
|
-
return 'ArrayType(type=' + this.
|
|
1084
|
+
return 'ArrayType(type=' + this.o2d_1 + ', items=' + toString(this.p2d_1) + ')';
|
|
1085
1085
|
};
|
|
1086
1086
|
protoOf(ArrayType).hashCode = function () {
|
|
1087
|
-
var result = getStringHashCode(this.
|
|
1088
|
-
result = imul(result, 31) + hashCode(this.
|
|
1087
|
+
var result = getStringHashCode(this.o2d_1);
|
|
1088
|
+
result = imul(result, 31) + hashCode(this.p2d_1) | 0;
|
|
1089
1089
|
return result;
|
|
1090
1090
|
};
|
|
1091
1091
|
protoOf(ArrayType).equals = function (other) {
|
|
@@ -1094,22 +1094,22 @@
|
|
|
1094
1094
|
if (!(other instanceof ArrayType))
|
|
1095
1095
|
return false;
|
|
1096
1096
|
var tmp0_other_with_cast = other instanceof ArrayType ? other : THROW_CCE();
|
|
1097
|
-
if (!(this.
|
|
1097
|
+
if (!(this.o2d_1 === tmp0_other_with_cast.o2d_1))
|
|
1098
1098
|
return false;
|
|
1099
|
-
if (!equals(this.
|
|
1099
|
+
if (!equals(this.p2d_1, tmp0_other_with_cast.p2d_1))
|
|
1100
1100
|
return false;
|
|
1101
1101
|
return true;
|
|
1102
1102
|
};
|
|
1103
1103
|
function EnumType() {
|
|
1104
1104
|
}
|
|
1105
1105
|
protoOf(EnumType).toString = function () {
|
|
1106
|
-
return 'EnumType(type=' + this.
|
|
1106
|
+
return 'EnumType(type=' + this.f2d_1 + ', name=' + this.g2d_1 + ', doc=' + this.h2d_1 + ', symbols=' + toString(this.i2d_1) + ')';
|
|
1107
1107
|
};
|
|
1108
1108
|
protoOf(EnumType).hashCode = function () {
|
|
1109
|
-
var result = getStringHashCode(this.
|
|
1110
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1111
|
-
result = imul(result, 31) + (this.
|
|
1112
|
-
result = imul(result, 31) + hashCode(this.
|
|
1109
|
+
var result = getStringHashCode(this.f2d_1);
|
|
1110
|
+
result = imul(result, 31) + getStringHashCode(this.g2d_1) | 0;
|
|
1111
|
+
result = imul(result, 31) + (this.h2d_1 == null ? 0 : getStringHashCode(this.h2d_1)) | 0;
|
|
1112
|
+
result = imul(result, 31) + hashCode(this.i2d_1) | 0;
|
|
1113
1113
|
return result;
|
|
1114
1114
|
};
|
|
1115
1115
|
protoOf(EnumType).equals = function (other) {
|
|
@@ -1118,26 +1118,26 @@
|
|
|
1118
1118
|
if (!(other instanceof EnumType))
|
|
1119
1119
|
return false;
|
|
1120
1120
|
var tmp0_other_with_cast = other instanceof EnumType ? other : THROW_CCE();
|
|
1121
|
-
if (!(this.
|
|
1121
|
+
if (!(this.f2d_1 === tmp0_other_with_cast.f2d_1))
|
|
1122
1122
|
return false;
|
|
1123
|
-
if (!(this.
|
|
1123
|
+
if (!(this.g2d_1 === tmp0_other_with_cast.g2d_1))
|
|
1124
1124
|
return false;
|
|
1125
|
-
if (!(this.
|
|
1125
|
+
if (!(this.h2d_1 == tmp0_other_with_cast.h2d_1))
|
|
1126
1126
|
return false;
|
|
1127
|
-
if (!equals(this.
|
|
1127
|
+
if (!equals(this.i2d_1, tmp0_other_with_cast.i2d_1))
|
|
1128
1128
|
return false;
|
|
1129
1129
|
return true;
|
|
1130
1130
|
};
|
|
1131
1131
|
function LogicalType() {
|
|
1132
1132
|
}
|
|
1133
1133
|
protoOf(LogicalType).toString = function () {
|
|
1134
|
-
return 'LogicalType(type=' + this.
|
|
1134
|
+
return 'LogicalType(type=' + this.b2d_1 + ', logicalType=' + this.c2d_1 + ', precision=' + this.d2d_1 + ', scale=' + this.e2d_1 + ')';
|
|
1135
1135
|
};
|
|
1136
1136
|
protoOf(LogicalType).hashCode = function () {
|
|
1137
|
-
var result = getStringHashCode(this.
|
|
1138
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1139
|
-
result = imul(result, 31) + (this.
|
|
1140
|
-
result = imul(result, 31) + (this.
|
|
1137
|
+
var result = getStringHashCode(this.b2d_1);
|
|
1138
|
+
result = imul(result, 31) + getStringHashCode(this.c2d_1) | 0;
|
|
1139
|
+
result = imul(result, 31) + (this.d2d_1 == null ? 0 : this.d2d_1) | 0;
|
|
1140
|
+
result = imul(result, 31) + (this.e2d_1 == null ? 0 : this.e2d_1) | 0;
|
|
1141
1141
|
return result;
|
|
1142
1142
|
};
|
|
1143
1143
|
protoOf(LogicalType).equals = function (other) {
|
|
@@ -1146,32 +1146,32 @@
|
|
|
1146
1146
|
if (!(other instanceof LogicalType))
|
|
1147
1147
|
return false;
|
|
1148
1148
|
var tmp0_other_with_cast = other instanceof LogicalType ? other : THROW_CCE();
|
|
1149
|
-
if (!(this.
|
|
1149
|
+
if (!(this.b2d_1 === tmp0_other_with_cast.b2d_1))
|
|
1150
1150
|
return false;
|
|
1151
|
-
if (!(this.
|
|
1151
|
+
if (!(this.c2d_1 === tmp0_other_with_cast.c2d_1))
|
|
1152
1152
|
return false;
|
|
1153
|
-
if (!(this.
|
|
1153
|
+
if (!(this.d2d_1 == tmp0_other_with_cast.d2d_1))
|
|
1154
1154
|
return false;
|
|
1155
|
-
if (!(this.
|
|
1155
|
+
if (!(this.e2d_1 == tmp0_other_with_cast.e2d_1))
|
|
1156
1156
|
return false;
|
|
1157
1157
|
return true;
|
|
1158
1158
|
};
|
|
1159
1159
|
function TypeListSerializer() {
|
|
1160
1160
|
TypeListSerializer_instance = this;
|
|
1161
|
-
this.
|
|
1161
|
+
this.l2e_1 = buildSerialDescriptor('TypeListSerializer', SEALED_getInstance(), []);
|
|
1162
1162
|
}
|
|
1163
1163
|
protoOf(TypeListSerializer).wk = function () {
|
|
1164
|
-
return this.
|
|
1164
|
+
return this.l2e_1;
|
|
1165
1165
|
};
|
|
1166
|
-
protoOf(TypeListSerializer).
|
|
1167
|
-
if (value.
|
|
1166
|
+
protoOf(TypeListSerializer).m2e = function (encoder, value) {
|
|
1167
|
+
if (value.k2e_1 > 1) {
|
|
1168
1168
|
encoder.pp(ListSerializer(Companion_instance_0.n17()), value);
|
|
1169
1169
|
} else {
|
|
1170
1170
|
encoder.pp(Companion_instance_0.n17(), first(value));
|
|
1171
1171
|
}
|
|
1172
1172
|
};
|
|
1173
1173
|
protoOf(TypeListSerializer).xk = function (encoder, value) {
|
|
1174
|
-
return this.
|
|
1174
|
+
return this.m2e(encoder, value instanceof TypeList ? value : THROW_CCE());
|
|
1175
1175
|
};
|
|
1176
1176
|
protoOf(TypeListSerializer).yk = function (decoder) {
|
|
1177
1177
|
var tmp0_elvis_lhs = isInterface(decoder, JsonDecoder) ? decoder : null;
|
|
@@ -1219,14 +1219,14 @@
|
|
|
1219
1219
|
}
|
|
1220
1220
|
function TypeSerializer() {
|
|
1221
1221
|
TypeSerializer_instance = this;
|
|
1222
|
-
this.
|
|
1222
|
+
this.n2e_1 = buildSerialDescriptor('TypeSerializer', SEALED_getInstance(), []);
|
|
1223
1223
|
}
|
|
1224
1224
|
protoOf(TypeSerializer).wk = function () {
|
|
1225
|
-
return this.
|
|
1225
|
+
return this.n2e_1;
|
|
1226
1226
|
};
|
|
1227
|
-
protoOf(TypeSerializer).
|
|
1227
|
+
protoOf(TypeSerializer).o2e = function (encoder, value) {
|
|
1228
1228
|
if (value instanceof SimpleType) {
|
|
1229
|
-
encoder.pp(serializer(StringCompanionObject_instance), value.
|
|
1229
|
+
encoder.pp(serializer(StringCompanionObject_instance), value.a2d_1);
|
|
1230
1230
|
} else {
|
|
1231
1231
|
if (value instanceof RecordType) {
|
|
1232
1232
|
encoder.pp(Companion_getInstance_2().n17(), value);
|
|
@@ -1249,7 +1249,7 @@
|
|
|
1249
1249
|
}
|
|
1250
1250
|
};
|
|
1251
1251
|
protoOf(TypeSerializer).xk = function (encoder, value) {
|
|
1252
|
-
return this.
|
|
1252
|
+
return this.o2e(encoder, (!(value == null) ? isInterface(value, Type_0) : false) ? value : THROW_CCE());
|
|
1253
1253
|
};
|
|
1254
1254
|
protoOf(TypeSerializer).yk = function (decoder) {
|
|
1255
1255
|
var tmp0_elvis_lhs = isInterface(decoder, JsonDecoder) ? decoder : null;
|
|
@@ -1304,7 +1304,7 @@
|
|
|
1304
1304
|
}
|
|
1305
1305
|
function AvroParser() {
|
|
1306
1306
|
}
|
|
1307
|
-
protoOf(AvroParser).
|
|
1307
|
+
protoOf(AvroParser).g2b = function (schemaContent, strict) {
|
|
1308
1308
|
var json = Json(VOID, AvroParser$parse$lambda);
|
|
1309
1309
|
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
1310
1310
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
@@ -1313,10 +1313,10 @@
|
|
|
1313
1313
|
var this_1 = serializer_0(this_0, createKType(getKClass(Type_0), arrayOf([]), false));
|
|
1314
1314
|
var tmp$ret$1 = isInterface(this_1, KSerializer) ? this_1 : THROW_CCE();
|
|
1315
1315
|
var avro = json.c15(tmp$ret$1, schemaContent);
|
|
1316
|
-
var tmp = AvroConverter_getInstance().
|
|
1316
|
+
var tmp = AvroConverter_getInstance().u2d(avro);
|
|
1317
1317
|
var tmp_0;
|
|
1318
1318
|
if (avro instanceof RecordType) {
|
|
1319
|
-
tmp_0 = new Channel(null, new DefinitionIdentifier(avro.
|
|
1319
|
+
tmp_0 = new Channel(null, new DefinitionIdentifier(avro.k2d_1), false, new Custom(avro.k2d_1, false, false));
|
|
1320
1320
|
} else {
|
|
1321
1321
|
if (avro instanceof ArrayType) {
|
|
1322
1322
|
throw new NotImplementedError();
|
|
@@ -1338,9 +1338,9 @@
|
|
|
1338
1338
|
}
|
|
1339
1339
|
return plus_0(tmp, tmp_0);
|
|
1340
1340
|
};
|
|
1341
|
-
protoOf(AvroParser).
|
|
1341
|
+
protoOf(AvroParser).p2e = function (schemaContent, strict, $super) {
|
|
1342
1342
|
strict = strict === VOID ? true : strict;
|
|
1343
|
-
return $super === VOID ? this.
|
|
1343
|
+
return $super === VOID ? this.g2b(schemaContent, strict) : $super.g2b.call(this, schemaContent, strict);
|
|
1344
1344
|
};
|
|
1345
1345
|
var AvroParser_instance;
|
|
1346
1346
|
function AvroParser_getInstance() {
|