@flock/wirespec 0.15.14 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/arrow-arrow-atomic.mjs +11 -11
- package/arrow-arrow-core.mjs +84 -84
- package/clikt-clikt.mjs +1164 -1164
- package/colormath-root-colormath.mjs +427 -427
- package/kotlin-kotlin-stdlib.mjs +368 -304
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +5729 -5657
- package/kotlin-openapi-bindings.mjs.map +1 -1
- package/kotlin-rgxgen.mjs +1772 -1772
- package/kotlinx-io-kotlinx-io-core.mjs +380 -380
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1625 -1625
- package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1295 -1295
- package/markdown.mjs +1880 -1880
- package/mordant-mordant.mjs +1630 -1630
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +3792 -2404
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +379 -371
- package/wirespec-src-compiler-lib.mjs.map +1 -1
- package/wirespec-src-converter-avro.mjs +513 -514
- package/wirespec-src-converter-avro.mjs.map +1 -1
- package/wirespec-src-converter-openapi.mjs +869 -673
- package/wirespec-src-converter-openapi.mjs.map +1 -1
- package/wirespec-src-plugin-arguments.mjs +182 -182
- package/wirespec-src-plugin-arguments.mjs.map +1 -1
- package/wirespec-src-plugin-cli.mjs +85 -85
- package/wirespec-src-plugin-npm.d.ts +3 -3
- package/wirespec-src-plugin-npm.mjs +27 -27
- package/wirespec-src-tools-generator.mjs +101 -31
- package/wirespec-src-tools-generator.mjs.map +1 -1
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
Precision_P64_getInstance24om6ftq5m2zr as Precision_P64_getInstance,
|
|
6
6
|
Number3i05nlui0wcz8 as Number_0,
|
|
7
7
|
Bytes_instance1at7binw0nl40 as Bytes_instance,
|
|
8
|
-
|
|
8
|
+
String23kqvhe3sk098 as String_0,
|
|
9
9
|
Custom37hvrfgd6b0uj as Custom,
|
|
10
10
|
Dict3l6tdihpke4rr as Dict,
|
|
11
11
|
Iterablerto606wd057m as Iterable,
|
|
@@ -24,7 +24,6 @@ import {
|
|
|
24
24
|
Refined3fn8nn8ume24i as Refined,
|
|
25
25
|
Bytes2moci2lqqzua3 as Bytes,
|
|
26
26
|
Boolean1v54w5v4qjba1 as Boolean_0,
|
|
27
|
-
String23kqvhe3sk098 as String_0,
|
|
28
27
|
Channel2rnyzzgwpojjq as Channel,
|
|
29
28
|
Module1hus0d150u4qt as Module,
|
|
30
29
|
ASTjmzmwcb0kkkg as AST,
|
|
@@ -138,34 +137,34 @@ initMetadataForObject(TypeSerializer, 'TypeSerializer', VOID, VOID, [KSerializer
|
|
|
138
137
|
initMetadataForObject(AvroParser, 'AvroParser');
|
|
139
138
|
//endregion
|
|
140
139
|
function isNullable(_this__u8e3s4, $this) {
|
|
141
|
-
return _this__u8e3s4.o1($this.
|
|
140
|
+
return _this__u8e3s4.o1($this.o2c_1);
|
|
142
141
|
}
|
|
143
142
|
function toPrimitive(_this__u8e3s4, $this) {
|
|
144
143
|
var tmp;
|
|
145
|
-
switch (_this__u8e3s4.
|
|
144
|
+
switch (_this__u8e3s4.p2c_1) {
|
|
146
145
|
case 'boolean':
|
|
147
146
|
tmp = Boolean_instance;
|
|
148
147
|
break;
|
|
149
148
|
case 'int':
|
|
150
|
-
tmp = new Integer(Precision_P32_getInstance());
|
|
149
|
+
tmp = new Integer(Precision_P32_getInstance(), null);
|
|
151
150
|
break;
|
|
152
151
|
case 'long':
|
|
153
|
-
tmp = new Integer(Precision_P64_getInstance());
|
|
152
|
+
tmp = new Integer(Precision_P64_getInstance(), null);
|
|
154
153
|
break;
|
|
155
154
|
case 'float':
|
|
156
|
-
tmp = new Number_0(Precision_P32_getInstance());
|
|
155
|
+
tmp = new Number_0(Precision_P32_getInstance(), null);
|
|
157
156
|
break;
|
|
158
157
|
case 'double':
|
|
159
|
-
tmp = new Number_0(Precision_P64_getInstance());
|
|
158
|
+
tmp = new Number_0(Precision_P64_getInstance(), null);
|
|
160
159
|
break;
|
|
161
160
|
case 'bytes':
|
|
162
161
|
tmp = Bytes_instance;
|
|
163
162
|
break;
|
|
164
163
|
case 'string':
|
|
165
|
-
tmp =
|
|
164
|
+
tmp = new String_0(null);
|
|
166
165
|
break;
|
|
167
166
|
default:
|
|
168
|
-
var reason = 'primitive not mapped ' + _this__u8e3s4.
|
|
167
|
+
var reason = 'primitive not mapped ' + _this__u8e3s4.p2c_1;
|
|
169
168
|
throw new NotImplementedError('An operation is not implemented: ' + reason);
|
|
170
169
|
}
|
|
171
170
|
return tmp;
|
|
@@ -173,7 +172,7 @@ function toPrimitive(_this__u8e3s4, $this) {
|
|
|
173
172
|
function toReference(_this__u8e3s4, $this, isNullable) {
|
|
174
173
|
var tmp;
|
|
175
174
|
if (_this__u8e3s4 instanceof SimpleType) {
|
|
176
|
-
switch (_this__u8e3s4.
|
|
175
|
+
switch (_this__u8e3s4.p2c_1) {
|
|
177
176
|
case 'null':
|
|
178
177
|
tmp = new Unit(isNullable);
|
|
179
178
|
break;
|
|
@@ -187,27 +186,27 @@ function toReference(_this__u8e3s4, $this, isNullable) {
|
|
|
187
186
|
tmp = new Primitive(toPrimitive(_this__u8e3s4, $this), isNullable);
|
|
188
187
|
break;
|
|
189
188
|
default:
|
|
190
|
-
tmp = new Custom(_this__u8e3s4.
|
|
189
|
+
tmp = new Custom(_this__u8e3s4.p2c_1, isNullable);
|
|
191
190
|
break;
|
|
192
191
|
}
|
|
193
192
|
} else {
|
|
194
193
|
if (_this__u8e3s4 instanceof ArrayType) {
|
|
195
|
-
tmp = new Iterable(toReference(_this__u8e3s4.
|
|
194
|
+
tmp = new Iterable(toReference(_this__u8e3s4.i2d_1, $this, false), isNullable);
|
|
196
195
|
} else {
|
|
197
196
|
if (_this__u8e3s4 instanceof RecordType) {
|
|
198
|
-
tmp = new Custom(_this__u8e3s4.
|
|
197
|
+
tmp = new Custom(_this__u8e3s4.d2d_1, isNullable);
|
|
199
198
|
} else {
|
|
200
199
|
if (_this__u8e3s4 instanceof EnumType) {
|
|
201
|
-
tmp = new Custom(_this__u8e3s4.
|
|
200
|
+
tmp = new Custom(_this__u8e3s4.z2c_1, isNullable);
|
|
202
201
|
} else {
|
|
203
202
|
if (_this__u8e3s4 instanceof LogicalType) {
|
|
204
|
-
tmp = toReference(new SimpleType(_this__u8e3s4.
|
|
203
|
+
tmp = toReference(new SimpleType(_this__u8e3s4.u2c_1), $this, isNullable);
|
|
205
204
|
} else {
|
|
206
205
|
if (_this__u8e3s4 instanceof MapType) {
|
|
207
|
-
tmp = new Dict(toReference(_this__u8e3s4.
|
|
206
|
+
tmp = new Dict(toReference(_this__u8e3s4.t2c_1, $this, false), isNullable);
|
|
208
207
|
} else {
|
|
209
208
|
if (_this__u8e3s4 instanceof UnionType) {
|
|
210
|
-
tmp = new Custom(_this__u8e3s4.
|
|
209
|
+
tmp = new Custom(_this__u8e3s4.q2c_1, isNullable);
|
|
211
210
|
} else {
|
|
212
211
|
noWhenBranchMatchedException();
|
|
213
212
|
}
|
|
@@ -220,7 +219,7 @@ function toReference(_this__u8e3s4, $this, isNullable) {
|
|
|
220
219
|
return tmp;
|
|
221
220
|
}
|
|
222
221
|
function toReference_0(_this__u8e3s4, $this) {
|
|
223
|
-
var list = minus(_this__u8e3s4, $this.
|
|
222
|
+
var list = minus(_this__u8e3s4, $this.o2c_1);
|
|
224
223
|
var tmp;
|
|
225
224
|
if (list.j() === 1) {
|
|
226
225
|
tmp = toReference(first(list), $this, isNullable(_this__u8e3s4, $this));
|
|
@@ -260,29 +259,29 @@ function toReference_0(_this__u8e3s4, $this) {
|
|
|
260
259
|
return tmp;
|
|
261
260
|
}
|
|
262
261
|
function toType(_this__u8e3s4, $this) {
|
|
263
|
-
var tmp0_identifier = new DefinitionIdentifier(_this__u8e3s4.
|
|
262
|
+
var tmp0_identifier = new DefinitionIdentifier(_this__u8e3s4.d2d_1);
|
|
264
263
|
var tmp1_extends = emptyList();
|
|
265
264
|
// Inline function 'kotlin.collections.map' call
|
|
266
|
-
var this_0 = _this__u8e3s4.
|
|
265
|
+
var this_0 = _this__u8e3s4.f2d_1;
|
|
267
266
|
// Inline function 'kotlin.collections.mapTo' call
|
|
268
267
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
269
268
|
var tmp0_iterator = this_0.g();
|
|
270
269
|
while (tmp0_iterator.h()) {
|
|
271
270
|
var item = tmp0_iterator.i();
|
|
272
271
|
// Inline function 'community.flock.wirespec.converter.avro.AvroConverter.toType.<anonymous>' call
|
|
273
|
-
var tmp$ret$0 = new Field(new FieldIdentifier(item.
|
|
272
|
+
var tmp$ret$0 = new Field(new FieldIdentifier(item.j2d_1), toReference_0(item.k2d_1, AvroConverter_getInstance()));
|
|
274
273
|
destination.e(tmp$ret$0);
|
|
275
274
|
}
|
|
276
275
|
var tmp2_shape = new Shape(destination);
|
|
277
276
|
return new Type(null, tmp0_identifier, tmp2_shape, tmp1_extends);
|
|
278
277
|
}
|
|
279
278
|
function toEnum(_this__u8e3s4, $this) {
|
|
280
|
-
return new Enum(null, new DefinitionIdentifier(_this__u8e3s4.
|
|
279
|
+
return new Enum(null, new DefinitionIdentifier(_this__u8e3s4.z2c_1), toSet(_this__u8e3s4.b2d_1));
|
|
281
280
|
}
|
|
282
281
|
function toUnion(_this__u8e3s4, $this, name) {
|
|
283
282
|
var tmp = new DefinitionIdentifier(name);
|
|
284
283
|
// Inline function 'kotlin.collections.map' call
|
|
285
|
-
var this_0 = _this__u8e3s4.
|
|
284
|
+
var this_0 = _this__u8e3s4.r2c_1;
|
|
286
285
|
// Inline function 'kotlin.collections.mapTo' call
|
|
287
286
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
288
287
|
var tmp0_iterator = this_0.g();
|
|
@@ -296,9 +295,9 @@ function toUnion(_this__u8e3s4, $this, name) {
|
|
|
296
295
|
}
|
|
297
296
|
function AvroConverter() {
|
|
298
297
|
AvroConverter_instance = this;
|
|
299
|
-
this.
|
|
298
|
+
this.o2c_1 = new SimpleType('null');
|
|
300
299
|
}
|
|
301
|
-
protoOf(AvroConverter).
|
|
300
|
+
protoOf(AvroConverter).n2d = function (_this__u8e3s4, name) {
|
|
302
301
|
var tmp;
|
|
303
302
|
if (_this__u8e3s4 instanceof SimpleType) {
|
|
304
303
|
tmp = emptyList();
|
|
@@ -307,7 +306,7 @@ protoOf(AvroConverter).f2d = function (_this__u8e3s4, name) {
|
|
|
307
306
|
var tmp_0 = listOf(toType(_this__u8e3s4, this));
|
|
308
307
|
// Inline function 'kotlin.collections.flatMap' call
|
|
309
308
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
310
|
-
var this_0 = _this__u8e3s4.
|
|
309
|
+
var this_0 = _this__u8e3s4.f2d_1;
|
|
311
310
|
var destination = ArrayList_init_$Create$_0();
|
|
312
311
|
var tmp0_iterator = this_0.g();
|
|
313
312
|
while (tmp0_iterator.h()) {
|
|
@@ -315,13 +314,13 @@ protoOf(AvroConverter).f2d = function (_this__u8e3s4, name) {
|
|
|
315
314
|
// Inline function 'community.flock.wirespec.converter.avro.AvroConverter.flatten.<anonymous>' call
|
|
316
315
|
// Inline function 'kotlin.collections.flatMap' call
|
|
317
316
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
318
|
-
var this_1 = element.
|
|
317
|
+
var this_1 = element.k2d_1;
|
|
319
318
|
var destination_0 = ArrayList_init_$Create$_0();
|
|
320
319
|
var tmp0_iterator_0 = this_1.g();
|
|
321
320
|
while (tmp0_iterator_0.h()) {
|
|
322
321
|
var element_0 = tmp0_iterator_0.i();
|
|
323
322
|
// Inline function 'community.flock.wirespec.converter.avro.AvroConverter.flatten.<anonymous>.<anonymous>' call
|
|
324
|
-
var list = AvroConverter_getInstance().
|
|
323
|
+
var list = AvroConverter_getInstance().n2d(element_0, name);
|
|
325
324
|
addAll(destination_0, list);
|
|
326
325
|
}
|
|
327
326
|
var list_0 = destination_0;
|
|
@@ -330,7 +329,7 @@ protoOf(AvroConverter).f2d = function (_this__u8e3s4, name) {
|
|
|
330
329
|
tmp = plus(tmp_0, destination);
|
|
331
330
|
} else {
|
|
332
331
|
if (_this__u8e3s4 instanceof ArrayType) {
|
|
333
|
-
tmp = this.
|
|
332
|
+
tmp = this.n2d(_this__u8e3s4.i2d_1, name);
|
|
334
333
|
} else {
|
|
335
334
|
if (_this__u8e3s4 instanceof EnumType) {
|
|
336
335
|
tmp = listOf(toEnum(_this__u8e3s4, this));
|
|
@@ -339,7 +338,7 @@ protoOf(AvroConverter).f2d = function (_this__u8e3s4, name) {
|
|
|
339
338
|
tmp = emptyList();
|
|
340
339
|
} else {
|
|
341
340
|
if (_this__u8e3s4 instanceof MapType) {
|
|
342
|
-
tmp = this.
|
|
341
|
+
tmp = this.n2d(_this__u8e3s4.t2c_1, name);
|
|
343
342
|
} else {
|
|
344
343
|
if (_this__u8e3s4 instanceof UnionType) {
|
|
345
344
|
tmp = listOf(toUnion(_this__u8e3s4, this, name));
|
|
@@ -354,9 +353,9 @@ protoOf(AvroConverter).f2d = function (_this__u8e3s4, name) {
|
|
|
354
353
|
}
|
|
355
354
|
return tmp;
|
|
356
355
|
};
|
|
357
|
-
protoOf(AvroConverter).
|
|
356
|
+
protoOf(AvroConverter).o2d = function (_this__u8e3s4, name, $super) {
|
|
358
357
|
name = name === VOID ? '' : name;
|
|
359
|
-
return $super === VOID ? this.
|
|
358
|
+
return $super === VOID ? this.n2d(_this__u8e3s4, name) : $super.n2d.call(this, _this__u8e3s4, name);
|
|
360
359
|
};
|
|
361
360
|
var AvroConverter_instance;
|
|
362
361
|
function AvroConverter_getInstance() {
|
|
@@ -366,7 +365,7 @@ function AvroConverter_getInstance() {
|
|
|
366
365
|
}
|
|
367
366
|
function findType(_this__u8e3s4, $this, name) {
|
|
368
367
|
// Inline function 'kotlin.collections.find' call
|
|
369
|
-
var this_0 = _this__u8e3s4.
|
|
368
|
+
var this_0 = _this__u8e3s4.w26_1.nk();
|
|
370
369
|
var tmp$ret$1;
|
|
371
370
|
$l$block: {
|
|
372
371
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
@@ -374,7 +373,7 @@ function findType(_this__u8e3s4, $this, name) {
|
|
|
374
373
|
while (tmp0_iterator.h()) {
|
|
375
374
|
var element = tmp0_iterator.i();
|
|
376
375
|
// Inline function 'community.flock.wirespec.converter.avro.AvroEmitter.findType.<anonymous>' call
|
|
377
|
-
if (element.
|
|
376
|
+
if (element.o24().b1() === name) {
|
|
378
377
|
tmp$ret$1 = element;
|
|
379
378
|
break $l$block;
|
|
380
379
|
}
|
|
@@ -386,24 +385,24 @@ function findType(_this__u8e3s4, $this, name) {
|
|
|
386
385
|
function AvroEmitter() {
|
|
387
386
|
AvroEmitter_instance = this;
|
|
388
387
|
Emitter.call(this);
|
|
389
|
-
this.
|
|
390
|
-
this.
|
|
388
|
+
this.p2d_1 = FileExtension_JSON_getInstance();
|
|
389
|
+
this.q2d_1 = null;
|
|
391
390
|
}
|
|
392
|
-
protoOf(AvroEmitter).
|
|
393
|
-
return this.
|
|
391
|
+
protoOf(AvroEmitter).c26 = function () {
|
|
392
|
+
return this.p2d_1;
|
|
394
393
|
};
|
|
395
|
-
protoOf(AvroEmitter).
|
|
394
|
+
protoOf(AvroEmitter).o26 = function (type, module_0) {
|
|
396
395
|
// Inline function 'kotlin.TODO' call
|
|
397
396
|
var reason = 'Not yet implemented';
|
|
398
397
|
throw new NotImplementedError('An operation is not implemented: ' + reason);
|
|
399
398
|
};
|
|
400
|
-
protoOf(AvroEmitter).
|
|
401
|
-
return new EnumType('enum', _this__u8e3s4.
|
|
399
|
+
protoOf(AvroEmitter).r2d = function (_this__u8e3s4) {
|
|
400
|
+
return new EnumType('enum', _this__u8e3s4.q27_1.b1(), VOID, toList(_this__u8e3s4.r27_1));
|
|
402
401
|
};
|
|
403
|
-
protoOf(AvroEmitter).
|
|
404
|
-
var tmp = _this__u8e3s4.
|
|
402
|
+
protoOf(AvroEmitter).s2d = function (_this__u8e3s4) {
|
|
403
|
+
var tmp = _this__u8e3s4.y26_1.b1();
|
|
405
404
|
// Inline function 'kotlin.collections.map' call
|
|
406
|
-
var this_0 = _this__u8e3s4.
|
|
405
|
+
var this_0 = _this__u8e3s4.z26_1;
|
|
407
406
|
// Inline function 'kotlin.collections.mapTo' call
|
|
408
407
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
409
408
|
var tmp0_iterator = this_0.g();
|
|
@@ -415,23 +414,23 @@ protoOf(AvroEmitter).k2d = function (_this__u8e3s4) {
|
|
|
415
414
|
}
|
|
416
415
|
return new UnionType(tmp, TypeList_init_$Create$(destination));
|
|
417
416
|
};
|
|
418
|
-
protoOf(AvroEmitter).
|
|
417
|
+
protoOf(AvroEmitter).t2d = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
419
418
|
var tmp;
|
|
420
419
|
if (_this__u8e3s4 instanceof Dict) {
|
|
421
|
-
tmp = new MapType('map', this.
|
|
420
|
+
tmp = new MapType('map', this.t2d(_this__u8e3s4.a24_1, module_0, hasEmitted));
|
|
422
421
|
} else {
|
|
423
422
|
if (_this__u8e3s4 instanceof Iterable) {
|
|
424
|
-
tmp = new ArrayType('array', this.
|
|
423
|
+
tmp = new ArrayType('array', this.t2d(_this__u8e3s4.q23_1, module_0, hasEmitted));
|
|
425
424
|
} else {
|
|
426
425
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
427
|
-
var type = _this__u8e3s4.
|
|
426
|
+
var type = _this__u8e3s4.d24_1;
|
|
428
427
|
var tmp_0;
|
|
429
428
|
if (type instanceof String_0) {
|
|
430
429
|
tmp_0 = new SimpleType('string');
|
|
431
430
|
} else {
|
|
432
431
|
if (type instanceof Integer) {
|
|
433
432
|
var tmp_1;
|
|
434
|
-
switch (type.
|
|
433
|
+
switch (type.j24_1.r2_1) {
|
|
435
434
|
case 0:
|
|
436
435
|
tmp_1 = new SimpleType('int');
|
|
437
436
|
break;
|
|
@@ -446,7 +445,7 @@ protoOf(AvroEmitter).l2d = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
|
446
445
|
} else {
|
|
447
446
|
if (type instanceof Number_0) {
|
|
448
447
|
var tmp_2;
|
|
449
|
-
switch (type.
|
|
448
|
+
switch (type.g24_1.r2_1) {
|
|
450
449
|
case 0:
|
|
451
450
|
tmp_2 = new SimpleType('float');
|
|
452
451
|
break;
|
|
@@ -474,31 +473,31 @@ protoOf(AvroEmitter).l2d = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
|
474
473
|
tmp = tmp_0;
|
|
475
474
|
} else {
|
|
476
475
|
if (_this__u8e3s4 instanceof Custom) {
|
|
477
|
-
var def = findType(module_0, this, _this__u8e3s4.
|
|
476
|
+
var def = findType(module_0, this, _this__u8e3s4.o23_1);
|
|
478
477
|
var tmp_3;
|
|
479
478
|
if (def instanceof Type) {
|
|
480
479
|
var tmp_4;
|
|
481
|
-
if (hasEmitted.o1(def.
|
|
480
|
+
if (hasEmitted.o1(def.q26_1.b1())) {
|
|
482
481
|
// Inline function 'kotlin.let' call
|
|
483
482
|
// Inline function 'kotlin.contracts.contract' call
|
|
484
|
-
var p0 = def.
|
|
483
|
+
var p0 = def.q26_1.b1();
|
|
485
484
|
tmp_4 = new SimpleType(p0);
|
|
486
485
|
} else {
|
|
487
486
|
// Inline function 'kotlin.also' call
|
|
488
487
|
// Inline function 'kotlin.contracts.contract' call
|
|
489
488
|
// Inline function 'community.flock.wirespec.converter.avro.AvroEmitter.emit.<anonymous>' call
|
|
490
|
-
hasEmitted.e(def.
|
|
491
|
-
tmp_4 = this.
|
|
489
|
+
hasEmitted.e(def.q26_1.b1());
|
|
490
|
+
tmp_4 = this.u2d(def, module_0, hasEmitted);
|
|
492
491
|
}
|
|
493
492
|
tmp_3 = tmp_4;
|
|
494
493
|
} else {
|
|
495
494
|
if (def instanceof Enum) {
|
|
496
|
-
tmp_3 = new SimpleType(def.
|
|
495
|
+
tmp_3 = new SimpleType(def.q27_1.b1());
|
|
497
496
|
} else {
|
|
498
497
|
if (def instanceof Refined) {
|
|
499
498
|
tmp_3 = new SimpleType('string');
|
|
500
499
|
} else {
|
|
501
|
-
tmp_3 = new SimpleType(_this__u8e3s4.
|
|
500
|
+
tmp_3 = new SimpleType(_this__u8e3s4.o23_1);
|
|
502
501
|
}
|
|
503
502
|
}
|
|
504
503
|
}
|
|
@@ -519,44 +518,44 @@ protoOf(AvroEmitter).l2d = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
|
519
518
|
}
|
|
520
519
|
return tmp;
|
|
521
520
|
};
|
|
522
|
-
protoOf(AvroEmitter).
|
|
523
|
-
var ref = _this__u8e3s4.
|
|
521
|
+
protoOf(AvroEmitter).v2d = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
522
|
+
var ref = _this__u8e3s4.n25_1;
|
|
524
523
|
var tmp;
|
|
525
524
|
if (ref instanceof Iterable) {
|
|
526
|
-
tmp = new ArrayType('array', this.
|
|
525
|
+
tmp = new ArrayType('array', this.t2d(ref.q23_1, module_0, hasEmitted));
|
|
527
526
|
} else {
|
|
528
|
-
tmp = this.
|
|
527
|
+
tmp = this.t2d(ref, module_0, hasEmitted);
|
|
529
528
|
}
|
|
530
529
|
return tmp;
|
|
531
530
|
};
|
|
532
|
-
protoOf(AvroEmitter).
|
|
533
|
-
var tmp0_name = _this__u8e3s4.
|
|
531
|
+
protoOf(AvroEmitter).u2d = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
532
|
+
var tmp0_name = _this__u8e3s4.q26_1.b1();
|
|
534
533
|
// Inline function 'kotlin.collections.map' call
|
|
535
|
-
var this_0 = _this__u8e3s4.
|
|
534
|
+
var this_0 = _this__u8e3s4.r26_1.a27_1;
|
|
536
535
|
// Inline function 'kotlin.collections.mapTo' call
|
|
537
536
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
538
537
|
var tmp0_iterator = this_0.g();
|
|
539
538
|
while (tmp0_iterator.h()) {
|
|
540
539
|
var item = tmp0_iterator.i();
|
|
541
540
|
// Inline function 'community.flock.wirespec.converter.avro.AvroEmitter.emit.<anonymous>' call
|
|
542
|
-
var tmp = item.
|
|
541
|
+
var tmp = item.m25_1.b1();
|
|
543
542
|
var tmp_0;
|
|
544
|
-
if (item.
|
|
545
|
-
tmp_0 = new TypeList([new SimpleType('null'), AvroEmitter_getInstance().
|
|
543
|
+
if (item.n25_1.hm()) {
|
|
544
|
+
tmp_0 = new TypeList([new SimpleType('null'), AvroEmitter_getInstance().v2d(item, module_0, hasEmitted)]);
|
|
546
545
|
} else {
|
|
547
|
-
tmp_0 = new TypeList([AvroEmitter_getInstance().
|
|
546
|
+
tmp_0 = new TypeList([AvroEmitter_getInstance().v2d(item, module_0, hasEmitted)]);
|
|
548
547
|
}
|
|
549
548
|
var tmp$ret$0 = new Field_0(tmp, tmp_0);
|
|
550
549
|
destination.e(tmp$ret$0);
|
|
551
550
|
}
|
|
552
551
|
return new RecordType('record', tmp0_name, VOID, destination);
|
|
553
552
|
};
|
|
554
|
-
protoOf(AvroEmitter).
|
|
553
|
+
protoOf(AvroEmitter).w2d = function (module_0) {
|
|
555
554
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
556
555
|
var hasEmitted = ArrayList_init_$Create$_0();
|
|
557
556
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
558
557
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
559
|
-
var this_0 = module_0.
|
|
558
|
+
var this_0 = module_0.w26_1.nk();
|
|
560
559
|
var destination = ArrayList_init_$Create$_0();
|
|
561
560
|
// Inline function 'kotlin.collections.forEach' call
|
|
562
561
|
var tmp0_iterator = this_0.g();
|
|
@@ -566,13 +565,13 @@ protoOf(AvroEmitter).o2d = function (module_0) {
|
|
|
566
565
|
// Inline function 'community.flock.wirespec.converter.avro.AvroEmitter.emit.<anonymous>' call
|
|
567
566
|
var tmp;
|
|
568
567
|
if (element instanceof Type) {
|
|
569
|
-
tmp = AvroEmitter_getInstance().
|
|
568
|
+
tmp = AvroEmitter_getInstance().u2d(element, module_0, hasEmitted);
|
|
570
569
|
} else {
|
|
571
570
|
if (element instanceof Enum) {
|
|
572
|
-
tmp = AvroEmitter_getInstance().
|
|
571
|
+
tmp = AvroEmitter_getInstance().r2d(element);
|
|
573
572
|
} else {
|
|
574
573
|
if (element instanceof Union) {
|
|
575
|
-
tmp = AvroEmitter_getInstance().
|
|
574
|
+
tmp = AvroEmitter_getInstance().s2d(element);
|
|
576
575
|
} else {
|
|
577
576
|
tmp = null;
|
|
578
577
|
}
|
|
@@ -589,37 +588,37 @@ protoOf(AvroEmitter).o2d = function (module_0) {
|
|
|
589
588
|
}
|
|
590
589
|
return destination;
|
|
591
590
|
};
|
|
592
|
-
protoOf(AvroEmitter).
|
|
591
|
+
protoOf(AvroEmitter).o27 = function (enum_0, module_0) {
|
|
593
592
|
// Inline function 'kotlin.TODO' call
|
|
594
593
|
var reason = 'Not yet implemented';
|
|
595
594
|
throw new NotImplementedError('An operation is not implemented: ' + reason);
|
|
596
595
|
};
|
|
597
|
-
protoOf(AvroEmitter).
|
|
596
|
+
protoOf(AvroEmitter).c27 = function (refined) {
|
|
598
597
|
// Inline function 'kotlin.TODO' call
|
|
599
598
|
var reason = 'Not yet implemented';
|
|
600
599
|
throw new NotImplementedError('An operation is not implemented: ' + reason);
|
|
601
600
|
};
|
|
602
|
-
protoOf(AvroEmitter).
|
|
601
|
+
protoOf(AvroEmitter).y27 = function (endpoint) {
|
|
603
602
|
// Inline function 'kotlin.TODO' call
|
|
604
603
|
var reason = 'Not yet implemented';
|
|
605
604
|
throw new NotImplementedError('An operation is not implemented: ' + reason);
|
|
606
605
|
};
|
|
607
|
-
protoOf(AvroEmitter).
|
|
606
|
+
protoOf(AvroEmitter).t27 = function (union) {
|
|
608
607
|
// Inline function 'kotlin.TODO' call
|
|
609
608
|
var reason = 'Not yet implemented';
|
|
610
609
|
throw new NotImplementedError('An operation is not implemented: ' + reason);
|
|
611
610
|
};
|
|
612
|
-
protoOf(AvroEmitter).
|
|
611
|
+
protoOf(AvroEmitter).o25 = function (identifier) {
|
|
613
612
|
// Inline function 'kotlin.TODO' call
|
|
614
613
|
var reason = 'Not yet implemented';
|
|
615
614
|
throw new NotImplementedError('An operation is not implemented: ' + reason);
|
|
616
615
|
};
|
|
617
|
-
protoOf(AvroEmitter).
|
|
616
|
+
protoOf(AvroEmitter).u27 = function (channel) {
|
|
618
617
|
// Inline function 'kotlin.TODO' call
|
|
619
618
|
var reason = 'Not yet implemented';
|
|
620
619
|
throw new NotImplementedError('An operation is not implemented: ' + reason);
|
|
621
620
|
};
|
|
622
|
-
protoOf(AvroEmitter).
|
|
621
|
+
protoOf(AvroEmitter).e26 = function () {
|
|
623
622
|
var reason = 'Not yet implemented';
|
|
624
623
|
throw new NotImplementedError('An operation is not implemented: ' + reason);
|
|
625
624
|
};
|
|
@@ -638,30 +637,30 @@ function Companion_getInstance() {
|
|
|
638
637
|
function $serializer() {
|
|
639
638
|
$serializer_instance = this;
|
|
640
639
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.Field', this, 4);
|
|
641
|
-
tmp0_serialDesc.
|
|
642
|
-
tmp0_serialDesc.
|
|
643
|
-
tmp0_serialDesc.
|
|
644
|
-
tmp0_serialDesc.
|
|
645
|
-
this.
|
|
646
|
-
}
|
|
647
|
-
protoOf($serializer).
|
|
648
|
-
var tmp0_desc = this.
|
|
649
|
-
var tmp1_output = encoder.
|
|
650
|
-
tmp1_output.
|
|
651
|
-
tmp1_output.
|
|
652
|
-
if (tmp1_output.
|
|
653
|
-
tmp1_output.
|
|
640
|
+
tmp0_serialDesc.sv('name', false);
|
|
641
|
+
tmp0_serialDesc.sv('type', false);
|
|
642
|
+
tmp0_serialDesc.sv('doc', true);
|
|
643
|
+
tmp0_serialDesc.sv('default', true);
|
|
644
|
+
this.x2d_1 = tmp0_serialDesc;
|
|
645
|
+
}
|
|
646
|
+
protoOf($serializer).y2d = function (encoder, value) {
|
|
647
|
+
var tmp0_desc = this.x2d_1;
|
|
648
|
+
var tmp1_output = encoder.io(tmp0_desc);
|
|
649
|
+
tmp1_output.xp(tmp0_desc, 0, value.j2d_1);
|
|
650
|
+
tmp1_output.zp(tmp0_desc, 1, TypeListSerializer_getInstance(), value.k2d_1);
|
|
651
|
+
if (tmp1_output.fq(tmp0_desc, 2) ? true : !(value.l2d_1 == null)) {
|
|
652
|
+
tmp1_output.bq(tmp0_desc, 2, StringSerializer_getInstance(), value.l2d_1);
|
|
654
653
|
}
|
|
655
|
-
if (tmp1_output.
|
|
656
|
-
tmp1_output.
|
|
654
|
+
if (tmp1_output.fq(tmp0_desc, 3) ? true : !(value.m2d_1 == null)) {
|
|
655
|
+
tmp1_output.bq(tmp0_desc, 3, StringSerializer_getInstance(), value.m2d_1);
|
|
657
656
|
}
|
|
658
|
-
tmp1_output.
|
|
657
|
+
tmp1_output.jo(tmp0_desc);
|
|
659
658
|
};
|
|
660
|
-
protoOf($serializer).
|
|
661
|
-
return this.
|
|
659
|
+
protoOf($serializer).il = function (encoder, value) {
|
|
660
|
+
return this.y2d(encoder, value instanceof Field_0 ? value : THROW_CCE());
|
|
662
661
|
};
|
|
663
|
-
protoOf($serializer).
|
|
664
|
-
var tmp0_desc = this.
|
|
662
|
+
protoOf($serializer).jl = function (decoder) {
|
|
663
|
+
var tmp0_desc = this.x2d_1;
|
|
665
664
|
var tmp1_flag = true;
|
|
666
665
|
var tmp2_index = 0;
|
|
667
666
|
var tmp3_bitMask0 = 0;
|
|
@@ -669,50 +668,50 @@ protoOf($serializer).il = function (decoder) {
|
|
|
669
668
|
var tmp5_local1 = null;
|
|
670
669
|
var tmp6_local2 = null;
|
|
671
670
|
var tmp7_local3 = null;
|
|
672
|
-
var tmp8_input = decoder.
|
|
673
|
-
if (tmp8_input.
|
|
674
|
-
tmp4_local0 = tmp8_input.
|
|
671
|
+
var tmp8_input = decoder.io(tmp0_desc);
|
|
672
|
+
if (tmp8_input.yo()) {
|
|
673
|
+
tmp4_local0 = tmp8_input.so(tmp0_desc, 0);
|
|
675
674
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
676
|
-
tmp5_local1 = tmp8_input.
|
|
675
|
+
tmp5_local1 = tmp8_input.uo(tmp0_desc, 1, TypeListSerializer_getInstance(), tmp5_local1);
|
|
677
676
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
678
|
-
tmp6_local2 = tmp8_input.
|
|
677
|
+
tmp6_local2 = tmp8_input.wo(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
679
678
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
680
|
-
tmp7_local3 = tmp8_input.
|
|
679
|
+
tmp7_local3 = tmp8_input.wo(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
|
|
681
680
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
682
681
|
} else
|
|
683
682
|
while (tmp1_flag) {
|
|
684
|
-
tmp2_index = tmp8_input.
|
|
683
|
+
tmp2_index = tmp8_input.zo(tmp0_desc);
|
|
685
684
|
switch (tmp2_index) {
|
|
686
685
|
case -1:
|
|
687
686
|
tmp1_flag = false;
|
|
688
687
|
break;
|
|
689
688
|
case 0:
|
|
690
|
-
tmp4_local0 = tmp8_input.
|
|
689
|
+
tmp4_local0 = tmp8_input.so(tmp0_desc, 0);
|
|
691
690
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
692
691
|
break;
|
|
693
692
|
case 1:
|
|
694
|
-
tmp5_local1 = tmp8_input.
|
|
693
|
+
tmp5_local1 = tmp8_input.uo(tmp0_desc, 1, TypeListSerializer_getInstance(), tmp5_local1);
|
|
695
694
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
696
695
|
break;
|
|
697
696
|
case 2:
|
|
698
|
-
tmp6_local2 = tmp8_input.
|
|
697
|
+
tmp6_local2 = tmp8_input.wo(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
699
698
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
700
699
|
break;
|
|
701
700
|
case 3:
|
|
702
|
-
tmp7_local3 = tmp8_input.
|
|
701
|
+
tmp7_local3 = tmp8_input.wo(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
|
|
703
702
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
704
703
|
break;
|
|
705
704
|
default:
|
|
706
705
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
707
706
|
}
|
|
708
707
|
}
|
|
709
|
-
tmp8_input.
|
|
708
|
+
tmp8_input.jo(tmp0_desc);
|
|
710
709
|
return Field_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
711
710
|
};
|
|
712
|
-
protoOf($serializer).
|
|
713
|
-
return this.
|
|
711
|
+
protoOf($serializer).hl = function () {
|
|
712
|
+
return this.x2d_1;
|
|
714
713
|
};
|
|
715
|
-
protoOf($serializer).
|
|
714
|
+
protoOf($serializer).lw = function () {
|
|
716
715
|
// Inline function 'kotlin.arrayOf' call
|
|
717
716
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
718
717
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -726,18 +725,18 @@ function $serializer_getInstance() {
|
|
|
726
725
|
}
|
|
727
726
|
function Field_init_$Init$(seen0, name, type, doc, default_0, serializationConstructorMarker, $this) {
|
|
728
727
|
if (!(3 === (3 & seen0))) {
|
|
729
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance().
|
|
728
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance().x2d_1);
|
|
730
729
|
}
|
|
731
|
-
$this.
|
|
732
|
-
$this.
|
|
730
|
+
$this.j2d_1 = name;
|
|
731
|
+
$this.k2d_1 = type;
|
|
733
732
|
if (0 === (seen0 & 4))
|
|
734
|
-
$this.
|
|
733
|
+
$this.l2d_1 = null;
|
|
735
734
|
else
|
|
736
|
-
$this.
|
|
735
|
+
$this.l2d_1 = doc;
|
|
737
736
|
if (0 === (seen0 & 8))
|
|
738
|
-
$this.
|
|
737
|
+
$this.m2d_1 = null;
|
|
739
738
|
else
|
|
740
|
-
$this.
|
|
739
|
+
$this.m2d_1 = default_0;
|
|
741
740
|
return $this;
|
|
742
741
|
}
|
|
743
742
|
function Field_init_$Create$(seen0, name, type, doc, default_0, serializationConstructorMarker) {
|
|
@@ -760,11 +759,11 @@ function Companion_getInstance_0() {
|
|
|
760
759
|
}
|
|
761
760
|
function Companion_1() {
|
|
762
761
|
}
|
|
763
|
-
protoOf(Companion_1).
|
|
762
|
+
protoOf(Companion_1).w17 = function () {
|
|
764
763
|
return TypeSerializer_getInstance();
|
|
765
764
|
};
|
|
766
|
-
protoOf(Companion_1).
|
|
767
|
-
return this.
|
|
765
|
+
protoOf(Companion_1).ww = function (typeParamsSerializers) {
|
|
766
|
+
return this.w17();
|
|
768
767
|
};
|
|
769
768
|
var Companion_instance_1;
|
|
770
769
|
function Companion_getInstance_1() {
|
|
@@ -779,50 +778,50 @@ function Companion_getInstance_2() {
|
|
|
779
778
|
function $serializer_0() {
|
|
780
779
|
$serializer_instance_0 = this;
|
|
781
780
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.SimpleType', this, 1);
|
|
782
|
-
tmp0_serialDesc.
|
|
783
|
-
this.
|
|
781
|
+
tmp0_serialDesc.sv('value', false);
|
|
782
|
+
this.z2d_1 = tmp0_serialDesc;
|
|
784
783
|
}
|
|
785
|
-
protoOf($serializer_0).
|
|
786
|
-
var tmp0_desc = this.
|
|
787
|
-
var tmp1_output = encoder.
|
|
788
|
-
tmp1_output.
|
|
789
|
-
tmp1_output.
|
|
784
|
+
protoOf($serializer_0).a2e = function (encoder, value) {
|
|
785
|
+
var tmp0_desc = this.z2d_1;
|
|
786
|
+
var tmp1_output = encoder.io(tmp0_desc);
|
|
787
|
+
tmp1_output.xp(tmp0_desc, 0, value.p2c_1);
|
|
788
|
+
tmp1_output.jo(tmp0_desc);
|
|
790
789
|
};
|
|
791
|
-
protoOf($serializer_0).
|
|
792
|
-
return this.
|
|
790
|
+
protoOf($serializer_0).il = function (encoder, value) {
|
|
791
|
+
return this.a2e(encoder, value instanceof SimpleType ? value : THROW_CCE());
|
|
793
792
|
};
|
|
794
|
-
protoOf($serializer_0).
|
|
795
|
-
var tmp0_desc = this.
|
|
793
|
+
protoOf($serializer_0).jl = function (decoder) {
|
|
794
|
+
var tmp0_desc = this.z2d_1;
|
|
796
795
|
var tmp1_flag = true;
|
|
797
796
|
var tmp2_index = 0;
|
|
798
797
|
var tmp3_bitMask0 = 0;
|
|
799
798
|
var tmp4_local0 = null;
|
|
800
|
-
var tmp5_input = decoder.
|
|
801
|
-
if (tmp5_input.
|
|
802
|
-
tmp4_local0 = tmp5_input.
|
|
799
|
+
var tmp5_input = decoder.io(tmp0_desc);
|
|
800
|
+
if (tmp5_input.yo()) {
|
|
801
|
+
tmp4_local0 = tmp5_input.so(tmp0_desc, 0);
|
|
803
802
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
804
803
|
} else
|
|
805
804
|
while (tmp1_flag) {
|
|
806
|
-
tmp2_index = tmp5_input.
|
|
805
|
+
tmp2_index = tmp5_input.zo(tmp0_desc);
|
|
807
806
|
switch (tmp2_index) {
|
|
808
807
|
case -1:
|
|
809
808
|
tmp1_flag = false;
|
|
810
809
|
break;
|
|
811
810
|
case 0:
|
|
812
|
-
tmp4_local0 = tmp5_input.
|
|
811
|
+
tmp4_local0 = tmp5_input.so(tmp0_desc, 0);
|
|
813
812
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
814
813
|
break;
|
|
815
814
|
default:
|
|
816
815
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
817
816
|
}
|
|
818
817
|
}
|
|
819
|
-
tmp5_input.
|
|
818
|
+
tmp5_input.jo(tmp0_desc);
|
|
820
819
|
return SimpleType_init_$Create$(tmp3_bitMask0, tmp4_local0, null);
|
|
821
820
|
};
|
|
822
|
-
protoOf($serializer_0).
|
|
823
|
-
return this.
|
|
821
|
+
protoOf($serializer_0).hl = function () {
|
|
822
|
+
return this.z2d_1;
|
|
824
823
|
};
|
|
825
|
-
protoOf($serializer_0).
|
|
824
|
+
protoOf($serializer_0).lw = function () {
|
|
826
825
|
// Inline function 'kotlin.arrayOf' call
|
|
827
826
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
828
827
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -836,9 +835,9 @@ function $serializer_getInstance_0() {
|
|
|
836
835
|
}
|
|
837
836
|
function SimpleType_init_$Init$(seen0, value, serializationConstructorMarker, $this) {
|
|
838
837
|
if (!(1 === (1 & seen0))) {
|
|
839
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_0().
|
|
838
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_0().z2d_1);
|
|
840
839
|
}
|
|
841
|
-
$this.
|
|
840
|
+
$this.p2c_1 = value;
|
|
842
841
|
return $this;
|
|
843
842
|
}
|
|
844
843
|
function SimpleType_init_$Create$(seen0, value, serializationConstructorMarker) {
|
|
@@ -850,9 +849,9 @@ function Companion_3() {
|
|
|
850
849
|
// Inline function 'kotlin.arrayOf' call
|
|
851
850
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
852
851
|
// Inline function 'kotlin.js.asDynamic' call
|
|
853
|
-
tmp.
|
|
852
|
+
tmp.b2e_1 = [null, null, null, new ArrayListSerializer($serializer_getInstance()), null];
|
|
854
853
|
}
|
|
855
|
-
protoOf(Companion_3).
|
|
854
|
+
protoOf(Companion_3).w17 = function () {
|
|
856
855
|
return $serializer_getInstance_1();
|
|
857
856
|
};
|
|
858
857
|
var Companion_instance_3;
|
|
@@ -864,33 +863,33 @@ function Companion_getInstance_3() {
|
|
|
864
863
|
function $serializer_1() {
|
|
865
864
|
$serializer_instance_1 = this;
|
|
866
865
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.RecordType', this, 5);
|
|
867
|
-
tmp0_serialDesc.
|
|
868
|
-
tmp0_serialDesc.
|
|
869
|
-
tmp0_serialDesc.
|
|
870
|
-
tmp0_serialDesc.
|
|
871
|
-
tmp0_serialDesc.
|
|
872
|
-
this.
|
|
873
|
-
}
|
|
874
|
-
protoOf($serializer_1).
|
|
875
|
-
var tmp0_desc = this.
|
|
876
|
-
var tmp1_output = encoder.
|
|
877
|
-
var tmp2_cached = Companion_getInstance_3().
|
|
878
|
-
tmp1_output.
|
|
879
|
-
tmp1_output.
|
|
880
|
-
if (tmp1_output.
|
|
881
|
-
tmp1_output.
|
|
866
|
+
tmp0_serialDesc.sv('type', false);
|
|
867
|
+
tmp0_serialDesc.sv('name', false);
|
|
868
|
+
tmp0_serialDesc.sv('namespace', true);
|
|
869
|
+
tmp0_serialDesc.sv('fields', false);
|
|
870
|
+
tmp0_serialDesc.sv('doc', true);
|
|
871
|
+
this.c2e_1 = tmp0_serialDesc;
|
|
872
|
+
}
|
|
873
|
+
protoOf($serializer_1).d2e = function (encoder, value) {
|
|
874
|
+
var tmp0_desc = this.c2e_1;
|
|
875
|
+
var tmp1_output = encoder.io(tmp0_desc);
|
|
876
|
+
var tmp2_cached = Companion_getInstance_3().b2e_1;
|
|
877
|
+
tmp1_output.xp(tmp0_desc, 0, value.c2d_1);
|
|
878
|
+
tmp1_output.xp(tmp0_desc, 1, value.d2d_1);
|
|
879
|
+
if (tmp1_output.fq(tmp0_desc, 2) ? true : !(value.e2d_1 == null)) {
|
|
880
|
+
tmp1_output.bq(tmp0_desc, 2, StringSerializer_getInstance(), value.e2d_1);
|
|
882
881
|
}
|
|
883
|
-
tmp1_output.
|
|
884
|
-
if (tmp1_output.
|
|
885
|
-
tmp1_output.
|
|
882
|
+
tmp1_output.zp(tmp0_desc, 3, tmp2_cached[3], value.f2d_1);
|
|
883
|
+
if (tmp1_output.fq(tmp0_desc, 4) ? true : !(value.g2d_1 == null)) {
|
|
884
|
+
tmp1_output.bq(tmp0_desc, 4, StringSerializer_getInstance(), value.g2d_1);
|
|
886
885
|
}
|
|
887
|
-
tmp1_output.
|
|
886
|
+
tmp1_output.jo(tmp0_desc);
|
|
888
887
|
};
|
|
889
|
-
protoOf($serializer_1).
|
|
890
|
-
return this.
|
|
888
|
+
protoOf($serializer_1).il = function (encoder, value) {
|
|
889
|
+
return this.d2e(encoder, value instanceof RecordType ? value : THROW_CCE());
|
|
891
890
|
};
|
|
892
|
-
protoOf($serializer_1).
|
|
893
|
-
var tmp0_desc = this.
|
|
891
|
+
protoOf($serializer_1).jl = function (decoder) {
|
|
892
|
+
var tmp0_desc = this.c2e_1;
|
|
894
893
|
var tmp1_flag = true;
|
|
895
894
|
var tmp2_index = 0;
|
|
896
895
|
var tmp3_bitMask0 = 0;
|
|
@@ -899,58 +898,58 @@ protoOf($serializer_1).il = function (decoder) {
|
|
|
899
898
|
var tmp6_local2 = null;
|
|
900
899
|
var tmp7_local3 = null;
|
|
901
900
|
var tmp8_local4 = null;
|
|
902
|
-
var tmp9_input = decoder.
|
|
903
|
-
var tmp10_cached = Companion_getInstance_3().
|
|
904
|
-
if (tmp9_input.
|
|
905
|
-
tmp4_local0 = tmp9_input.
|
|
901
|
+
var tmp9_input = decoder.io(tmp0_desc);
|
|
902
|
+
var tmp10_cached = Companion_getInstance_3().b2e_1;
|
|
903
|
+
if (tmp9_input.yo()) {
|
|
904
|
+
tmp4_local0 = tmp9_input.so(tmp0_desc, 0);
|
|
906
905
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
907
|
-
tmp5_local1 = tmp9_input.
|
|
906
|
+
tmp5_local1 = tmp9_input.so(tmp0_desc, 1);
|
|
908
907
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
909
|
-
tmp6_local2 = tmp9_input.
|
|
908
|
+
tmp6_local2 = tmp9_input.wo(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
910
909
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
911
|
-
tmp7_local3 = tmp9_input.
|
|
910
|
+
tmp7_local3 = tmp9_input.uo(tmp0_desc, 3, tmp10_cached[3], tmp7_local3);
|
|
912
911
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
913
|
-
tmp8_local4 = tmp9_input.
|
|
912
|
+
tmp8_local4 = tmp9_input.wo(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
|
|
914
913
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
915
914
|
} else
|
|
916
915
|
while (tmp1_flag) {
|
|
917
|
-
tmp2_index = tmp9_input.
|
|
916
|
+
tmp2_index = tmp9_input.zo(tmp0_desc);
|
|
918
917
|
switch (tmp2_index) {
|
|
919
918
|
case -1:
|
|
920
919
|
tmp1_flag = false;
|
|
921
920
|
break;
|
|
922
921
|
case 0:
|
|
923
|
-
tmp4_local0 = tmp9_input.
|
|
922
|
+
tmp4_local0 = tmp9_input.so(tmp0_desc, 0);
|
|
924
923
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
925
924
|
break;
|
|
926
925
|
case 1:
|
|
927
|
-
tmp5_local1 = tmp9_input.
|
|
926
|
+
tmp5_local1 = tmp9_input.so(tmp0_desc, 1);
|
|
928
927
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
929
928
|
break;
|
|
930
929
|
case 2:
|
|
931
|
-
tmp6_local2 = tmp9_input.
|
|
930
|
+
tmp6_local2 = tmp9_input.wo(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
932
931
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
933
932
|
break;
|
|
934
933
|
case 3:
|
|
935
|
-
tmp7_local3 = tmp9_input.
|
|
934
|
+
tmp7_local3 = tmp9_input.uo(tmp0_desc, 3, tmp10_cached[3], tmp7_local3);
|
|
936
935
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
937
936
|
break;
|
|
938
937
|
case 4:
|
|
939
|
-
tmp8_local4 = tmp9_input.
|
|
938
|
+
tmp8_local4 = tmp9_input.wo(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
|
|
940
939
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
941
940
|
break;
|
|
942
941
|
default:
|
|
943
942
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
944
943
|
}
|
|
945
944
|
}
|
|
946
|
-
tmp9_input.
|
|
945
|
+
tmp9_input.jo(tmp0_desc);
|
|
947
946
|
return RecordType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null);
|
|
948
947
|
};
|
|
949
|
-
protoOf($serializer_1).
|
|
950
|
-
return this.
|
|
948
|
+
protoOf($serializer_1).hl = function () {
|
|
949
|
+
return this.c2e_1;
|
|
951
950
|
};
|
|
952
|
-
protoOf($serializer_1).
|
|
953
|
-
var tmp0_cached = Companion_getInstance_3().
|
|
951
|
+
protoOf($serializer_1).lw = function () {
|
|
952
|
+
var tmp0_cached = Companion_getInstance_3().b2e_1;
|
|
954
953
|
// Inline function 'kotlin.arrayOf' call
|
|
955
954
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
956
955
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -964,19 +963,19 @@ function $serializer_getInstance_1() {
|
|
|
964
963
|
}
|
|
965
964
|
function RecordType_init_$Init$(seen0, type, name, namespace, fields, doc, serializationConstructorMarker, $this) {
|
|
966
965
|
if (!(11 === (11 & seen0))) {
|
|
967
|
-
throwMissingFieldException(seen0, 11, $serializer_getInstance_1().
|
|
966
|
+
throwMissingFieldException(seen0, 11, $serializer_getInstance_1().c2e_1);
|
|
968
967
|
}
|
|
969
|
-
$this.
|
|
970
|
-
$this.
|
|
968
|
+
$this.c2d_1 = type;
|
|
969
|
+
$this.d2d_1 = name;
|
|
971
970
|
if (0 === (seen0 & 4))
|
|
972
|
-
$this.
|
|
971
|
+
$this.e2d_1 = null;
|
|
973
972
|
else
|
|
974
|
-
$this.
|
|
975
|
-
$this.
|
|
973
|
+
$this.e2d_1 = namespace;
|
|
974
|
+
$this.f2d_1 = fields;
|
|
976
975
|
if (0 === (seen0 & 16))
|
|
977
|
-
$this.
|
|
976
|
+
$this.g2d_1 = null;
|
|
978
977
|
else
|
|
979
|
-
$this.
|
|
978
|
+
$this.g2d_1 = doc;
|
|
980
979
|
return $this;
|
|
981
980
|
}
|
|
982
981
|
function RecordType_init_$Create$(seen0, type, name, namespace, fields, doc, serializationConstructorMarker) {
|
|
@@ -984,7 +983,7 @@ function RecordType_init_$Create$(seen0, type, name, namespace, fields, doc, ser
|
|
|
984
983
|
}
|
|
985
984
|
function Companion_4() {
|
|
986
985
|
}
|
|
987
|
-
protoOf(Companion_4).
|
|
986
|
+
protoOf(Companion_4).w17 = function () {
|
|
988
987
|
return $serializer_getInstance_2();
|
|
989
988
|
};
|
|
990
989
|
var Companion_instance_4;
|
|
@@ -994,59 +993,59 @@ function Companion_getInstance_4() {
|
|
|
994
993
|
function $serializer_2() {
|
|
995
994
|
$serializer_instance_2 = this;
|
|
996
995
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.ArrayType', this, 2);
|
|
997
|
-
tmp0_serialDesc.
|
|
998
|
-
tmp0_serialDesc.
|
|
999
|
-
this.
|
|
1000
|
-
}
|
|
1001
|
-
protoOf($serializer_2).
|
|
1002
|
-
var tmp0_desc = this.
|
|
1003
|
-
var tmp1_output = encoder.
|
|
1004
|
-
tmp1_output.
|
|
1005
|
-
tmp1_output.
|
|
1006
|
-
tmp1_output.
|
|
1007
|
-
};
|
|
1008
|
-
protoOf($serializer_2).
|
|
1009
|
-
return this.
|
|
1010
|
-
};
|
|
1011
|
-
protoOf($serializer_2).
|
|
1012
|
-
var tmp0_desc = this.
|
|
996
|
+
tmp0_serialDesc.sv('type', false);
|
|
997
|
+
tmp0_serialDesc.sv('items', false);
|
|
998
|
+
this.e2e_1 = tmp0_serialDesc;
|
|
999
|
+
}
|
|
1000
|
+
protoOf($serializer_2).f2e = function (encoder, value) {
|
|
1001
|
+
var tmp0_desc = this.e2e_1;
|
|
1002
|
+
var tmp1_output = encoder.io(tmp0_desc);
|
|
1003
|
+
tmp1_output.xp(tmp0_desc, 0, value.h2d_1);
|
|
1004
|
+
tmp1_output.zp(tmp0_desc, 1, TypeSerializer_getInstance(), value.i2d_1);
|
|
1005
|
+
tmp1_output.jo(tmp0_desc);
|
|
1006
|
+
};
|
|
1007
|
+
protoOf($serializer_2).il = function (encoder, value) {
|
|
1008
|
+
return this.f2e(encoder, value instanceof ArrayType ? value : THROW_CCE());
|
|
1009
|
+
};
|
|
1010
|
+
protoOf($serializer_2).jl = function (decoder) {
|
|
1011
|
+
var tmp0_desc = this.e2e_1;
|
|
1013
1012
|
var tmp1_flag = true;
|
|
1014
1013
|
var tmp2_index = 0;
|
|
1015
1014
|
var tmp3_bitMask0 = 0;
|
|
1016
1015
|
var tmp4_local0 = null;
|
|
1017
1016
|
var tmp5_local1 = null;
|
|
1018
|
-
var tmp6_input = decoder.
|
|
1019
|
-
if (tmp6_input.
|
|
1020
|
-
tmp4_local0 = tmp6_input.
|
|
1017
|
+
var tmp6_input = decoder.io(tmp0_desc);
|
|
1018
|
+
if (tmp6_input.yo()) {
|
|
1019
|
+
tmp4_local0 = tmp6_input.so(tmp0_desc, 0);
|
|
1021
1020
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1022
|
-
tmp5_local1 = tmp6_input.
|
|
1021
|
+
tmp5_local1 = tmp6_input.uo(tmp0_desc, 1, TypeSerializer_getInstance(), tmp5_local1);
|
|
1023
1022
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1024
1023
|
} else
|
|
1025
1024
|
while (tmp1_flag) {
|
|
1026
|
-
tmp2_index = tmp6_input.
|
|
1025
|
+
tmp2_index = tmp6_input.zo(tmp0_desc);
|
|
1027
1026
|
switch (tmp2_index) {
|
|
1028
1027
|
case -1:
|
|
1029
1028
|
tmp1_flag = false;
|
|
1030
1029
|
break;
|
|
1031
1030
|
case 0:
|
|
1032
|
-
tmp4_local0 = tmp6_input.
|
|
1031
|
+
tmp4_local0 = tmp6_input.so(tmp0_desc, 0);
|
|
1033
1032
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1034
1033
|
break;
|
|
1035
1034
|
case 1:
|
|
1036
|
-
tmp5_local1 = tmp6_input.
|
|
1035
|
+
tmp5_local1 = tmp6_input.uo(tmp0_desc, 1, TypeSerializer_getInstance(), tmp5_local1);
|
|
1037
1036
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1038
1037
|
break;
|
|
1039
1038
|
default:
|
|
1040
1039
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1041
1040
|
}
|
|
1042
1041
|
}
|
|
1043
|
-
tmp6_input.
|
|
1042
|
+
tmp6_input.jo(tmp0_desc);
|
|
1044
1043
|
return ArrayType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1045
1044
|
};
|
|
1046
|
-
protoOf($serializer_2).
|
|
1047
|
-
return this.
|
|
1045
|
+
protoOf($serializer_2).hl = function () {
|
|
1046
|
+
return this.e2e_1;
|
|
1048
1047
|
};
|
|
1049
|
-
protoOf($serializer_2).
|
|
1048
|
+
protoOf($serializer_2).lw = function () {
|
|
1050
1049
|
// Inline function 'kotlin.arrayOf' call
|
|
1051
1050
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1052
1051
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1060,10 +1059,10 @@ function $serializer_getInstance_2() {
|
|
|
1060
1059
|
}
|
|
1061
1060
|
function ArrayType_init_$Init$(seen0, type, items, serializationConstructorMarker, $this) {
|
|
1062
1061
|
if (!(3 === (3 & seen0))) {
|
|
1063
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().
|
|
1062
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().e2e_1);
|
|
1064
1063
|
}
|
|
1065
|
-
$this.
|
|
1066
|
-
$this.
|
|
1064
|
+
$this.h2d_1 = type;
|
|
1065
|
+
$this.i2d_1 = items;
|
|
1067
1066
|
return $this;
|
|
1068
1067
|
}
|
|
1069
1068
|
function ArrayType_init_$Create$(seen0, type, items, serializationConstructorMarker) {
|
|
@@ -1071,7 +1070,7 @@ function ArrayType_init_$Create$(seen0, type, items, serializationConstructorMar
|
|
|
1071
1070
|
}
|
|
1072
1071
|
function Companion_5() {
|
|
1073
1072
|
}
|
|
1074
|
-
protoOf(Companion_5).
|
|
1073
|
+
protoOf(Companion_5).w17 = function () {
|
|
1075
1074
|
return $serializer_getInstance_3();
|
|
1076
1075
|
};
|
|
1077
1076
|
var Companion_instance_5;
|
|
@@ -1081,59 +1080,59 @@ function Companion_getInstance_5() {
|
|
|
1081
1080
|
function $serializer_3() {
|
|
1082
1081
|
$serializer_instance_3 = this;
|
|
1083
1082
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.MapType', this, 2);
|
|
1084
|
-
tmp0_serialDesc.
|
|
1085
|
-
tmp0_serialDesc.
|
|
1086
|
-
this.
|
|
1087
|
-
}
|
|
1088
|
-
protoOf($serializer_3).
|
|
1089
|
-
var tmp0_desc = this.
|
|
1090
|
-
var tmp1_output = encoder.
|
|
1091
|
-
tmp1_output.
|
|
1092
|
-
tmp1_output.
|
|
1093
|
-
tmp1_output.
|
|
1094
|
-
};
|
|
1095
|
-
protoOf($serializer_3).
|
|
1096
|
-
return this.
|
|
1097
|
-
};
|
|
1098
|
-
protoOf($serializer_3).
|
|
1099
|
-
var tmp0_desc = this.
|
|
1083
|
+
tmp0_serialDesc.sv('type', false);
|
|
1084
|
+
tmp0_serialDesc.sv('values', false);
|
|
1085
|
+
this.g2e_1 = tmp0_serialDesc;
|
|
1086
|
+
}
|
|
1087
|
+
protoOf($serializer_3).h2e = function (encoder, value) {
|
|
1088
|
+
var tmp0_desc = this.g2e_1;
|
|
1089
|
+
var tmp1_output = encoder.io(tmp0_desc);
|
|
1090
|
+
tmp1_output.xp(tmp0_desc, 0, value.s2c_1);
|
|
1091
|
+
tmp1_output.zp(tmp0_desc, 1, TypeSerializer_getInstance(), value.t2c_1);
|
|
1092
|
+
tmp1_output.jo(tmp0_desc);
|
|
1093
|
+
};
|
|
1094
|
+
protoOf($serializer_3).il = function (encoder, value) {
|
|
1095
|
+
return this.h2e(encoder, value instanceof MapType ? value : THROW_CCE());
|
|
1096
|
+
};
|
|
1097
|
+
protoOf($serializer_3).jl = function (decoder) {
|
|
1098
|
+
var tmp0_desc = this.g2e_1;
|
|
1100
1099
|
var tmp1_flag = true;
|
|
1101
1100
|
var tmp2_index = 0;
|
|
1102
1101
|
var tmp3_bitMask0 = 0;
|
|
1103
1102
|
var tmp4_local0 = null;
|
|
1104
1103
|
var tmp5_local1 = null;
|
|
1105
|
-
var tmp6_input = decoder.
|
|
1106
|
-
if (tmp6_input.
|
|
1107
|
-
tmp4_local0 = tmp6_input.
|
|
1104
|
+
var tmp6_input = decoder.io(tmp0_desc);
|
|
1105
|
+
if (tmp6_input.yo()) {
|
|
1106
|
+
tmp4_local0 = tmp6_input.so(tmp0_desc, 0);
|
|
1108
1107
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1109
|
-
tmp5_local1 = tmp6_input.
|
|
1108
|
+
tmp5_local1 = tmp6_input.uo(tmp0_desc, 1, TypeSerializer_getInstance(), tmp5_local1);
|
|
1110
1109
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1111
1110
|
} else
|
|
1112
1111
|
while (tmp1_flag) {
|
|
1113
|
-
tmp2_index = tmp6_input.
|
|
1112
|
+
tmp2_index = tmp6_input.zo(tmp0_desc);
|
|
1114
1113
|
switch (tmp2_index) {
|
|
1115
1114
|
case -1:
|
|
1116
1115
|
tmp1_flag = false;
|
|
1117
1116
|
break;
|
|
1118
1117
|
case 0:
|
|
1119
|
-
tmp4_local0 = tmp6_input.
|
|
1118
|
+
tmp4_local0 = tmp6_input.so(tmp0_desc, 0);
|
|
1120
1119
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1121
1120
|
break;
|
|
1122
1121
|
case 1:
|
|
1123
|
-
tmp5_local1 = tmp6_input.
|
|
1122
|
+
tmp5_local1 = tmp6_input.uo(tmp0_desc, 1, TypeSerializer_getInstance(), tmp5_local1);
|
|
1124
1123
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1125
1124
|
break;
|
|
1126
1125
|
default:
|
|
1127
1126
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1128
1127
|
}
|
|
1129
1128
|
}
|
|
1130
|
-
tmp6_input.
|
|
1129
|
+
tmp6_input.jo(tmp0_desc);
|
|
1131
1130
|
return MapType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1132
1131
|
};
|
|
1133
|
-
protoOf($serializer_3).
|
|
1134
|
-
return this.
|
|
1132
|
+
protoOf($serializer_3).hl = function () {
|
|
1133
|
+
return this.g2e_1;
|
|
1135
1134
|
};
|
|
1136
|
-
protoOf($serializer_3).
|
|
1135
|
+
protoOf($serializer_3).lw = function () {
|
|
1137
1136
|
// Inline function 'kotlin.arrayOf' call
|
|
1138
1137
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1139
1138
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1147,10 +1146,10 @@ function $serializer_getInstance_3() {
|
|
|
1147
1146
|
}
|
|
1148
1147
|
function MapType_init_$Init$(seen0, type, values, serializationConstructorMarker, $this) {
|
|
1149
1148
|
if (!(3 === (3 & seen0))) {
|
|
1150
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_3().
|
|
1149
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_3().g2e_1);
|
|
1151
1150
|
}
|
|
1152
|
-
$this.
|
|
1153
|
-
$this.
|
|
1151
|
+
$this.s2c_1 = type;
|
|
1152
|
+
$this.t2c_1 = values;
|
|
1154
1153
|
return $this;
|
|
1155
1154
|
}
|
|
1156
1155
|
function MapType_init_$Create$(seen0, type, values, serializationConstructorMarker) {
|
|
@@ -1162,9 +1161,9 @@ function Companion_6() {
|
|
|
1162
1161
|
// Inline function 'kotlin.arrayOf' call
|
|
1163
1162
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1164
1163
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1165
|
-
tmp.
|
|
1164
|
+
tmp.i2e_1 = [null, null, null, new ArrayListSerializer(StringSerializer_getInstance())];
|
|
1166
1165
|
}
|
|
1167
|
-
protoOf(Companion_6).
|
|
1166
|
+
protoOf(Companion_6).w17 = function () {
|
|
1168
1167
|
return $serializer_getInstance_4();
|
|
1169
1168
|
};
|
|
1170
1169
|
var Companion_instance_6;
|
|
@@ -1176,29 +1175,29 @@ function Companion_getInstance_6() {
|
|
|
1176
1175
|
function $serializer_4() {
|
|
1177
1176
|
$serializer_instance_4 = this;
|
|
1178
1177
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.EnumType', this, 4);
|
|
1179
|
-
tmp0_serialDesc.
|
|
1180
|
-
tmp0_serialDesc.
|
|
1181
|
-
tmp0_serialDesc.
|
|
1182
|
-
tmp0_serialDesc.
|
|
1183
|
-
this.
|
|
1184
|
-
}
|
|
1185
|
-
protoOf($serializer_4).
|
|
1186
|
-
var tmp0_desc = this.
|
|
1187
|
-
var tmp1_output = encoder.
|
|
1188
|
-
var tmp2_cached = Companion_getInstance_6().
|
|
1189
|
-
tmp1_output.
|
|
1190
|
-
tmp1_output.
|
|
1191
|
-
if (tmp1_output.
|
|
1192
|
-
tmp1_output.
|
|
1178
|
+
tmp0_serialDesc.sv('type', false);
|
|
1179
|
+
tmp0_serialDesc.sv('name', false);
|
|
1180
|
+
tmp0_serialDesc.sv('doc', true);
|
|
1181
|
+
tmp0_serialDesc.sv('symbols', false);
|
|
1182
|
+
this.j2e_1 = tmp0_serialDesc;
|
|
1183
|
+
}
|
|
1184
|
+
protoOf($serializer_4).k2e = function (encoder, value) {
|
|
1185
|
+
var tmp0_desc = this.j2e_1;
|
|
1186
|
+
var tmp1_output = encoder.io(tmp0_desc);
|
|
1187
|
+
var tmp2_cached = Companion_getInstance_6().i2e_1;
|
|
1188
|
+
tmp1_output.xp(tmp0_desc, 0, value.y2c_1);
|
|
1189
|
+
tmp1_output.xp(tmp0_desc, 1, value.z2c_1);
|
|
1190
|
+
if (tmp1_output.fq(tmp0_desc, 2) ? true : !(value.a2d_1 == null)) {
|
|
1191
|
+
tmp1_output.bq(tmp0_desc, 2, StringSerializer_getInstance(), value.a2d_1);
|
|
1193
1192
|
}
|
|
1194
|
-
tmp1_output.
|
|
1195
|
-
tmp1_output.
|
|
1193
|
+
tmp1_output.zp(tmp0_desc, 3, tmp2_cached[3], value.b2d_1);
|
|
1194
|
+
tmp1_output.jo(tmp0_desc);
|
|
1196
1195
|
};
|
|
1197
|
-
protoOf($serializer_4).
|
|
1198
|
-
return this.
|
|
1196
|
+
protoOf($serializer_4).il = function (encoder, value) {
|
|
1197
|
+
return this.k2e(encoder, value instanceof EnumType ? value : THROW_CCE());
|
|
1199
1198
|
};
|
|
1200
|
-
protoOf($serializer_4).
|
|
1201
|
-
var tmp0_desc = this.
|
|
1199
|
+
protoOf($serializer_4).jl = function (decoder) {
|
|
1200
|
+
var tmp0_desc = this.j2e_1;
|
|
1202
1201
|
var tmp1_flag = true;
|
|
1203
1202
|
var tmp2_index = 0;
|
|
1204
1203
|
var tmp3_bitMask0 = 0;
|
|
@@ -1206,52 +1205,52 @@ protoOf($serializer_4).il = function (decoder) {
|
|
|
1206
1205
|
var tmp5_local1 = null;
|
|
1207
1206
|
var tmp6_local2 = null;
|
|
1208
1207
|
var tmp7_local3 = null;
|
|
1209
|
-
var tmp8_input = decoder.
|
|
1210
|
-
var tmp9_cached = Companion_getInstance_6().
|
|
1211
|
-
if (tmp8_input.
|
|
1212
|
-
tmp4_local0 = tmp8_input.
|
|
1208
|
+
var tmp8_input = decoder.io(tmp0_desc);
|
|
1209
|
+
var tmp9_cached = Companion_getInstance_6().i2e_1;
|
|
1210
|
+
if (tmp8_input.yo()) {
|
|
1211
|
+
tmp4_local0 = tmp8_input.so(tmp0_desc, 0);
|
|
1213
1212
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1214
|
-
tmp5_local1 = tmp8_input.
|
|
1213
|
+
tmp5_local1 = tmp8_input.so(tmp0_desc, 1);
|
|
1215
1214
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1216
|
-
tmp6_local2 = tmp8_input.
|
|
1215
|
+
tmp6_local2 = tmp8_input.wo(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1217
1216
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1218
|
-
tmp7_local3 = tmp8_input.
|
|
1217
|
+
tmp7_local3 = tmp8_input.uo(tmp0_desc, 3, tmp9_cached[3], tmp7_local3);
|
|
1219
1218
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1220
1219
|
} else
|
|
1221
1220
|
while (tmp1_flag) {
|
|
1222
|
-
tmp2_index = tmp8_input.
|
|
1221
|
+
tmp2_index = tmp8_input.zo(tmp0_desc);
|
|
1223
1222
|
switch (tmp2_index) {
|
|
1224
1223
|
case -1:
|
|
1225
1224
|
tmp1_flag = false;
|
|
1226
1225
|
break;
|
|
1227
1226
|
case 0:
|
|
1228
|
-
tmp4_local0 = tmp8_input.
|
|
1227
|
+
tmp4_local0 = tmp8_input.so(tmp0_desc, 0);
|
|
1229
1228
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1230
1229
|
break;
|
|
1231
1230
|
case 1:
|
|
1232
|
-
tmp5_local1 = tmp8_input.
|
|
1231
|
+
tmp5_local1 = tmp8_input.so(tmp0_desc, 1);
|
|
1233
1232
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1234
1233
|
break;
|
|
1235
1234
|
case 2:
|
|
1236
|
-
tmp6_local2 = tmp8_input.
|
|
1235
|
+
tmp6_local2 = tmp8_input.wo(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1237
1236
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1238
1237
|
break;
|
|
1239
1238
|
case 3:
|
|
1240
|
-
tmp7_local3 = tmp8_input.
|
|
1239
|
+
tmp7_local3 = tmp8_input.uo(tmp0_desc, 3, tmp9_cached[3], tmp7_local3);
|
|
1241
1240
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1242
1241
|
break;
|
|
1243
1242
|
default:
|
|
1244
1243
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1245
1244
|
}
|
|
1246
1245
|
}
|
|
1247
|
-
tmp8_input.
|
|
1246
|
+
tmp8_input.jo(tmp0_desc);
|
|
1248
1247
|
return EnumType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
1249
1248
|
};
|
|
1250
|
-
protoOf($serializer_4).
|
|
1251
|
-
return this.
|
|
1249
|
+
protoOf($serializer_4).hl = function () {
|
|
1250
|
+
return this.j2e_1;
|
|
1252
1251
|
};
|
|
1253
|
-
protoOf($serializer_4).
|
|
1254
|
-
var tmp0_cached = Companion_getInstance_6().
|
|
1252
|
+
protoOf($serializer_4).lw = function () {
|
|
1253
|
+
var tmp0_cached = Companion_getInstance_6().i2e_1;
|
|
1255
1254
|
// Inline function 'kotlin.arrayOf' call
|
|
1256
1255
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1257
1256
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1265,15 +1264,15 @@ function $serializer_getInstance_4() {
|
|
|
1265
1264
|
}
|
|
1266
1265
|
function EnumType_init_$Init$(seen0, type, name, doc, symbols, serializationConstructorMarker, $this) {
|
|
1267
1266
|
if (!(11 === (11 & seen0))) {
|
|
1268
|
-
throwMissingFieldException(seen0, 11, $serializer_getInstance_4().
|
|
1267
|
+
throwMissingFieldException(seen0, 11, $serializer_getInstance_4().j2e_1);
|
|
1269
1268
|
}
|
|
1270
|
-
$this.
|
|
1271
|
-
$this.
|
|
1269
|
+
$this.y2c_1 = type;
|
|
1270
|
+
$this.z2c_1 = name;
|
|
1272
1271
|
if (0 === (seen0 & 4))
|
|
1273
|
-
$this.
|
|
1272
|
+
$this.a2d_1 = null;
|
|
1274
1273
|
else
|
|
1275
|
-
$this.
|
|
1276
|
-
$this.
|
|
1274
|
+
$this.a2d_1 = doc;
|
|
1275
|
+
$this.b2d_1 = symbols;
|
|
1277
1276
|
return $this;
|
|
1278
1277
|
}
|
|
1279
1278
|
function EnumType_init_$Create$(seen0, type, name, doc, symbols, serializationConstructorMarker) {
|
|
@@ -1281,7 +1280,7 @@ function EnumType_init_$Create$(seen0, type, name, doc, symbols, serializationCo
|
|
|
1281
1280
|
}
|
|
1282
1281
|
function Companion_7() {
|
|
1283
1282
|
}
|
|
1284
|
-
protoOf(Companion_7).
|
|
1283
|
+
protoOf(Companion_7).w17 = function () {
|
|
1285
1284
|
return $serializer_getInstance_5();
|
|
1286
1285
|
};
|
|
1287
1286
|
var Companion_instance_7;
|
|
@@ -1291,59 +1290,59 @@ function Companion_getInstance_7() {
|
|
|
1291
1290
|
function $serializer_5() {
|
|
1292
1291
|
$serializer_instance_5 = this;
|
|
1293
1292
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.UnionType', this, 2);
|
|
1294
|
-
tmp0_serialDesc.
|
|
1295
|
-
tmp0_serialDesc.
|
|
1296
|
-
this.
|
|
1297
|
-
}
|
|
1298
|
-
protoOf($serializer_5).
|
|
1299
|
-
var tmp0_desc = this.
|
|
1300
|
-
var tmp1_output = encoder.
|
|
1301
|
-
tmp1_output.
|
|
1302
|
-
tmp1_output.
|
|
1303
|
-
tmp1_output.
|
|
1304
|
-
};
|
|
1305
|
-
protoOf($serializer_5).
|
|
1306
|
-
return this.
|
|
1307
|
-
};
|
|
1308
|
-
protoOf($serializer_5).
|
|
1309
|
-
var tmp0_desc = this.
|
|
1293
|
+
tmp0_serialDesc.sv('name', false);
|
|
1294
|
+
tmp0_serialDesc.sv('type', false);
|
|
1295
|
+
this.l2e_1 = tmp0_serialDesc;
|
|
1296
|
+
}
|
|
1297
|
+
protoOf($serializer_5).m2e = function (encoder, value) {
|
|
1298
|
+
var tmp0_desc = this.l2e_1;
|
|
1299
|
+
var tmp1_output = encoder.io(tmp0_desc);
|
|
1300
|
+
tmp1_output.xp(tmp0_desc, 0, value.q2c_1);
|
|
1301
|
+
tmp1_output.zp(tmp0_desc, 1, TypeListSerializer_getInstance(), value.r2c_1);
|
|
1302
|
+
tmp1_output.jo(tmp0_desc);
|
|
1303
|
+
};
|
|
1304
|
+
protoOf($serializer_5).il = function (encoder, value) {
|
|
1305
|
+
return this.m2e(encoder, value instanceof UnionType ? value : THROW_CCE());
|
|
1306
|
+
};
|
|
1307
|
+
protoOf($serializer_5).jl = function (decoder) {
|
|
1308
|
+
var tmp0_desc = this.l2e_1;
|
|
1310
1309
|
var tmp1_flag = true;
|
|
1311
1310
|
var tmp2_index = 0;
|
|
1312
1311
|
var tmp3_bitMask0 = 0;
|
|
1313
1312
|
var tmp4_local0 = null;
|
|
1314
1313
|
var tmp5_local1 = null;
|
|
1315
|
-
var tmp6_input = decoder.
|
|
1316
|
-
if (tmp6_input.
|
|
1317
|
-
tmp4_local0 = tmp6_input.
|
|
1314
|
+
var tmp6_input = decoder.io(tmp0_desc);
|
|
1315
|
+
if (tmp6_input.yo()) {
|
|
1316
|
+
tmp4_local0 = tmp6_input.so(tmp0_desc, 0);
|
|
1318
1317
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1319
|
-
tmp5_local1 = tmp6_input.
|
|
1318
|
+
tmp5_local1 = tmp6_input.uo(tmp0_desc, 1, TypeListSerializer_getInstance(), tmp5_local1);
|
|
1320
1319
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1321
1320
|
} else
|
|
1322
1321
|
while (tmp1_flag) {
|
|
1323
|
-
tmp2_index = tmp6_input.
|
|
1322
|
+
tmp2_index = tmp6_input.zo(tmp0_desc);
|
|
1324
1323
|
switch (tmp2_index) {
|
|
1325
1324
|
case -1:
|
|
1326
1325
|
tmp1_flag = false;
|
|
1327
1326
|
break;
|
|
1328
1327
|
case 0:
|
|
1329
|
-
tmp4_local0 = tmp6_input.
|
|
1328
|
+
tmp4_local0 = tmp6_input.so(tmp0_desc, 0);
|
|
1330
1329
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1331
1330
|
break;
|
|
1332
1331
|
case 1:
|
|
1333
|
-
tmp5_local1 = tmp6_input.
|
|
1332
|
+
tmp5_local1 = tmp6_input.uo(tmp0_desc, 1, TypeListSerializer_getInstance(), tmp5_local1);
|
|
1334
1333
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1335
1334
|
break;
|
|
1336
1335
|
default:
|
|
1337
1336
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1338
1337
|
}
|
|
1339
1338
|
}
|
|
1340
|
-
tmp6_input.
|
|
1339
|
+
tmp6_input.jo(tmp0_desc);
|
|
1341
1340
|
return UnionType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1342
1341
|
};
|
|
1343
|
-
protoOf($serializer_5).
|
|
1344
|
-
return this.
|
|
1342
|
+
protoOf($serializer_5).hl = function () {
|
|
1343
|
+
return this.l2e_1;
|
|
1345
1344
|
};
|
|
1346
|
-
protoOf($serializer_5).
|
|
1345
|
+
protoOf($serializer_5).lw = function () {
|
|
1347
1346
|
// Inline function 'kotlin.arrayOf' call
|
|
1348
1347
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1349
1348
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1357,10 +1356,10 @@ function $serializer_getInstance_5() {
|
|
|
1357
1356
|
}
|
|
1358
1357
|
function UnionType_init_$Init$(seen0, name, type, serializationConstructorMarker, $this) {
|
|
1359
1358
|
if (!(3 === (3 & seen0))) {
|
|
1360
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_5().
|
|
1359
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_5().l2e_1);
|
|
1361
1360
|
}
|
|
1362
|
-
$this.
|
|
1363
|
-
$this.
|
|
1361
|
+
$this.q2c_1 = name;
|
|
1362
|
+
$this.r2c_1 = type;
|
|
1364
1363
|
return $this;
|
|
1365
1364
|
}
|
|
1366
1365
|
function UnionType_init_$Create$(seen0, name, type, serializationConstructorMarker) {
|
|
@@ -1368,7 +1367,7 @@ function UnionType_init_$Create$(seen0, name, type, serializationConstructorMark
|
|
|
1368
1367
|
}
|
|
1369
1368
|
function Companion_8() {
|
|
1370
1369
|
}
|
|
1371
|
-
protoOf(Companion_8).
|
|
1370
|
+
protoOf(Companion_8).w17 = function () {
|
|
1372
1371
|
return $serializer_getInstance_6();
|
|
1373
1372
|
};
|
|
1374
1373
|
var Companion_instance_8;
|
|
@@ -1378,30 +1377,30 @@ function Companion_getInstance_8() {
|
|
|
1378
1377
|
function $serializer_6() {
|
|
1379
1378
|
$serializer_instance_6 = this;
|
|
1380
1379
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.LogicalType', this, 4);
|
|
1381
|
-
tmp0_serialDesc.
|
|
1382
|
-
tmp0_serialDesc.
|
|
1383
|
-
tmp0_serialDesc.
|
|
1384
|
-
tmp0_serialDesc.
|
|
1385
|
-
this.
|
|
1386
|
-
}
|
|
1387
|
-
protoOf($serializer_6).
|
|
1388
|
-
var tmp0_desc = this.
|
|
1389
|
-
var tmp1_output = encoder.
|
|
1390
|
-
tmp1_output.
|
|
1391
|
-
tmp1_output.
|
|
1392
|
-
if (tmp1_output.
|
|
1393
|
-
tmp1_output.
|
|
1380
|
+
tmp0_serialDesc.sv('type', false);
|
|
1381
|
+
tmp0_serialDesc.sv('logicalType', false);
|
|
1382
|
+
tmp0_serialDesc.sv('precision', true);
|
|
1383
|
+
tmp0_serialDesc.sv('scale', true);
|
|
1384
|
+
this.n2e_1 = tmp0_serialDesc;
|
|
1385
|
+
}
|
|
1386
|
+
protoOf($serializer_6).o2e = function (encoder, value) {
|
|
1387
|
+
var tmp0_desc = this.n2e_1;
|
|
1388
|
+
var tmp1_output = encoder.io(tmp0_desc);
|
|
1389
|
+
tmp1_output.xp(tmp0_desc, 0, value.u2c_1);
|
|
1390
|
+
tmp1_output.xp(tmp0_desc, 1, value.v2c_1);
|
|
1391
|
+
if (tmp1_output.fq(tmp0_desc, 2) ? true : !(value.w2c_1 == null)) {
|
|
1392
|
+
tmp1_output.bq(tmp0_desc, 2, IntSerializer_getInstance(), value.w2c_1);
|
|
1394
1393
|
}
|
|
1395
|
-
if (tmp1_output.
|
|
1396
|
-
tmp1_output.
|
|
1394
|
+
if (tmp1_output.fq(tmp0_desc, 3) ? true : !(value.x2c_1 == null)) {
|
|
1395
|
+
tmp1_output.bq(tmp0_desc, 3, IntSerializer_getInstance(), value.x2c_1);
|
|
1397
1396
|
}
|
|
1398
|
-
tmp1_output.
|
|
1397
|
+
tmp1_output.jo(tmp0_desc);
|
|
1399
1398
|
};
|
|
1400
|
-
protoOf($serializer_6).
|
|
1401
|
-
return this.
|
|
1399
|
+
protoOf($serializer_6).il = function (encoder, value) {
|
|
1400
|
+
return this.o2e(encoder, value instanceof LogicalType ? value : THROW_CCE());
|
|
1402
1401
|
};
|
|
1403
|
-
protoOf($serializer_6).
|
|
1404
|
-
var tmp0_desc = this.
|
|
1402
|
+
protoOf($serializer_6).jl = function (decoder) {
|
|
1403
|
+
var tmp0_desc = this.n2e_1;
|
|
1405
1404
|
var tmp1_flag = true;
|
|
1406
1405
|
var tmp2_index = 0;
|
|
1407
1406
|
var tmp3_bitMask0 = 0;
|
|
@@ -1409,50 +1408,50 @@ protoOf($serializer_6).il = function (decoder) {
|
|
|
1409
1408
|
var tmp5_local1 = null;
|
|
1410
1409
|
var tmp6_local2 = null;
|
|
1411
1410
|
var tmp7_local3 = null;
|
|
1412
|
-
var tmp8_input = decoder.
|
|
1413
|
-
if (tmp8_input.
|
|
1414
|
-
tmp4_local0 = tmp8_input.
|
|
1411
|
+
var tmp8_input = decoder.io(tmp0_desc);
|
|
1412
|
+
if (tmp8_input.yo()) {
|
|
1413
|
+
tmp4_local0 = tmp8_input.so(tmp0_desc, 0);
|
|
1415
1414
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1416
|
-
tmp5_local1 = tmp8_input.
|
|
1415
|
+
tmp5_local1 = tmp8_input.so(tmp0_desc, 1);
|
|
1417
1416
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1418
|
-
tmp6_local2 = tmp8_input.
|
|
1417
|
+
tmp6_local2 = tmp8_input.wo(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
|
|
1419
1418
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1420
|
-
tmp7_local3 = tmp8_input.
|
|
1419
|
+
tmp7_local3 = tmp8_input.wo(tmp0_desc, 3, IntSerializer_getInstance(), tmp7_local3);
|
|
1421
1420
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1422
1421
|
} else
|
|
1423
1422
|
while (tmp1_flag) {
|
|
1424
|
-
tmp2_index = tmp8_input.
|
|
1423
|
+
tmp2_index = tmp8_input.zo(tmp0_desc);
|
|
1425
1424
|
switch (tmp2_index) {
|
|
1426
1425
|
case -1:
|
|
1427
1426
|
tmp1_flag = false;
|
|
1428
1427
|
break;
|
|
1429
1428
|
case 0:
|
|
1430
|
-
tmp4_local0 = tmp8_input.
|
|
1429
|
+
tmp4_local0 = tmp8_input.so(tmp0_desc, 0);
|
|
1431
1430
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1432
1431
|
break;
|
|
1433
1432
|
case 1:
|
|
1434
|
-
tmp5_local1 = tmp8_input.
|
|
1433
|
+
tmp5_local1 = tmp8_input.so(tmp0_desc, 1);
|
|
1435
1434
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1436
1435
|
break;
|
|
1437
1436
|
case 2:
|
|
1438
|
-
tmp6_local2 = tmp8_input.
|
|
1437
|
+
tmp6_local2 = tmp8_input.wo(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
|
|
1439
1438
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1440
1439
|
break;
|
|
1441
1440
|
case 3:
|
|
1442
|
-
tmp7_local3 = tmp8_input.
|
|
1441
|
+
tmp7_local3 = tmp8_input.wo(tmp0_desc, 3, IntSerializer_getInstance(), tmp7_local3);
|
|
1443
1442
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1444
1443
|
break;
|
|
1445
1444
|
default:
|
|
1446
1445
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1447
1446
|
}
|
|
1448
1447
|
}
|
|
1449
|
-
tmp8_input.
|
|
1448
|
+
tmp8_input.jo(tmp0_desc);
|
|
1450
1449
|
return LogicalType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
1451
1450
|
};
|
|
1452
|
-
protoOf($serializer_6).
|
|
1453
|
-
return this.
|
|
1451
|
+
protoOf($serializer_6).hl = function () {
|
|
1452
|
+
return this.n2e_1;
|
|
1454
1453
|
};
|
|
1455
|
-
protoOf($serializer_6).
|
|
1454
|
+
protoOf($serializer_6).lw = function () {
|
|
1456
1455
|
// Inline function 'kotlin.arrayOf' call
|
|
1457
1456
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1458
1457
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1466,18 +1465,18 @@ function $serializer_getInstance_6() {
|
|
|
1466
1465
|
}
|
|
1467
1466
|
function LogicalType_init_$Init$(seen0, type, logicalType, precision, scale, serializationConstructorMarker, $this) {
|
|
1468
1467
|
if (!(3 === (3 & seen0))) {
|
|
1469
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_6().
|
|
1468
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_6().n2e_1);
|
|
1470
1469
|
}
|
|
1471
|
-
$this.
|
|
1472
|
-
$this.
|
|
1470
|
+
$this.u2c_1 = type;
|
|
1471
|
+
$this.v2c_1 = logicalType;
|
|
1473
1472
|
if (0 === (seen0 & 4))
|
|
1474
|
-
$this.
|
|
1473
|
+
$this.w2c_1 = null;
|
|
1475
1474
|
else
|
|
1476
|
-
$this.
|
|
1475
|
+
$this.w2c_1 = precision;
|
|
1477
1476
|
if (0 === (seen0 & 8))
|
|
1478
|
-
$this.
|
|
1477
|
+
$this.x2c_1 = null;
|
|
1479
1478
|
else
|
|
1480
|
-
$this.
|
|
1479
|
+
$this.x2c_1 = scale;
|
|
1481
1480
|
return $this;
|
|
1482
1481
|
}
|
|
1483
1482
|
function LogicalType_init_$Create$(seen0, type, logicalType, precision, scale, serializationConstructorMarker) {
|
|
@@ -1486,19 +1485,19 @@ function LogicalType_init_$Create$(seen0, type, logicalType, precision, scale, s
|
|
|
1486
1485
|
function Field_0(name, type, doc, default_0) {
|
|
1487
1486
|
doc = doc === VOID ? null : doc;
|
|
1488
1487
|
default_0 = default_0 === VOID ? null : default_0;
|
|
1489
|
-
this.
|
|
1490
|
-
this.
|
|
1491
|
-
this.
|
|
1492
|
-
this.
|
|
1488
|
+
this.j2d_1 = name;
|
|
1489
|
+
this.k2d_1 = type;
|
|
1490
|
+
this.l2d_1 = doc;
|
|
1491
|
+
this.m2d_1 = default_0;
|
|
1493
1492
|
}
|
|
1494
1493
|
protoOf(Field_0).toString = function () {
|
|
1495
|
-
return 'Field(name=' + this.
|
|
1494
|
+
return 'Field(name=' + this.j2d_1 + ', type=' + this.k2d_1.toString() + ', doc=' + this.l2d_1 + ', default=' + this.m2d_1 + ')';
|
|
1496
1495
|
};
|
|
1497
1496
|
protoOf(Field_0).hashCode = function () {
|
|
1498
|
-
var result = getStringHashCode(this.
|
|
1499
|
-
result = imul(result, 31) + this.
|
|
1500
|
-
result = imul(result, 31) + (this.
|
|
1501
|
-
result = imul(result, 31) + (this.
|
|
1497
|
+
var result = getStringHashCode(this.j2d_1);
|
|
1498
|
+
result = imul(result, 31) + this.k2d_1.hashCode() | 0;
|
|
1499
|
+
result = imul(result, 31) + (this.l2d_1 == null ? 0 : getStringHashCode(this.l2d_1)) | 0;
|
|
1500
|
+
result = imul(result, 31) + (this.m2d_1 == null ? 0 : getStringHashCode(this.m2d_1)) | 0;
|
|
1502
1501
|
return result;
|
|
1503
1502
|
};
|
|
1504
1503
|
protoOf(Field_0).equals = function (other) {
|
|
@@ -1507,37 +1506,37 @@ protoOf(Field_0).equals = function (other) {
|
|
|
1507
1506
|
if (!(other instanceof Field_0))
|
|
1508
1507
|
return false;
|
|
1509
1508
|
var tmp0_other_with_cast = other instanceof Field_0 ? other : THROW_CCE();
|
|
1510
|
-
if (!(this.
|
|
1509
|
+
if (!(this.j2d_1 === tmp0_other_with_cast.j2d_1))
|
|
1511
1510
|
return false;
|
|
1512
|
-
if (!this.
|
|
1511
|
+
if (!this.k2d_1.equals(tmp0_other_with_cast.k2d_1))
|
|
1513
1512
|
return false;
|
|
1514
|
-
if (!(this.
|
|
1513
|
+
if (!(this.l2d_1 == tmp0_other_with_cast.l2d_1))
|
|
1515
1514
|
return false;
|
|
1516
|
-
if (!(this.
|
|
1515
|
+
if (!(this.m2d_1 == tmp0_other_with_cast.m2d_1))
|
|
1517
1516
|
return false;
|
|
1518
1517
|
return true;
|
|
1519
1518
|
};
|
|
1520
1519
|
function TypeList(type) {
|
|
1521
1520
|
AbstractList.call(this);
|
|
1522
|
-
this.
|
|
1523
|
-
this.
|
|
1521
|
+
this.p2e_1 = toList_0(type);
|
|
1522
|
+
this.q2e_1 = this.p2e_1.j();
|
|
1524
1523
|
}
|
|
1525
1524
|
protoOf(TypeList).j = function () {
|
|
1526
|
-
return this.
|
|
1525
|
+
return this.q2e_1;
|
|
1527
1526
|
};
|
|
1528
1527
|
protoOf(TypeList).k = function (index) {
|
|
1529
|
-
return this.
|
|
1528
|
+
return this.p2e_1.k(index);
|
|
1530
1529
|
};
|
|
1531
1530
|
function Type_0() {
|
|
1532
1531
|
}
|
|
1533
1532
|
function SimpleType(value) {
|
|
1534
|
-
this.
|
|
1533
|
+
this.p2c_1 = value;
|
|
1535
1534
|
}
|
|
1536
1535
|
protoOf(SimpleType).toString = function () {
|
|
1537
|
-
return 'SimpleType(value=' + this.
|
|
1536
|
+
return 'SimpleType(value=' + this.p2c_1 + ')';
|
|
1538
1537
|
};
|
|
1539
1538
|
protoOf(SimpleType).hashCode = function () {
|
|
1540
|
-
return getStringHashCode(this.
|
|
1539
|
+
return getStringHashCode(this.p2c_1);
|
|
1541
1540
|
};
|
|
1542
1541
|
protoOf(SimpleType).equals = function (other) {
|
|
1543
1542
|
if (this === other)
|
|
@@ -1545,7 +1544,7 @@ protoOf(SimpleType).equals = function (other) {
|
|
|
1545
1544
|
if (!(other instanceof SimpleType))
|
|
1546
1545
|
return false;
|
|
1547
1546
|
var tmp0_other_with_cast = other instanceof SimpleType ? other : THROW_CCE();
|
|
1548
|
-
if (!(this.
|
|
1547
|
+
if (!(this.p2c_1 === tmp0_other_with_cast.p2c_1))
|
|
1549
1548
|
return false;
|
|
1550
1549
|
return true;
|
|
1551
1550
|
};
|
|
@@ -1553,21 +1552,21 @@ function RecordType(type, name, namespace, fields, doc) {
|
|
|
1553
1552
|
Companion_getInstance_3();
|
|
1554
1553
|
namespace = namespace === VOID ? null : namespace;
|
|
1555
1554
|
doc = doc === VOID ? null : doc;
|
|
1556
|
-
this.
|
|
1557
|
-
this.
|
|
1558
|
-
this.
|
|
1559
|
-
this.
|
|
1560
|
-
this.
|
|
1555
|
+
this.c2d_1 = type;
|
|
1556
|
+
this.d2d_1 = name;
|
|
1557
|
+
this.e2d_1 = namespace;
|
|
1558
|
+
this.f2d_1 = fields;
|
|
1559
|
+
this.g2d_1 = doc;
|
|
1561
1560
|
}
|
|
1562
1561
|
protoOf(RecordType).toString = function () {
|
|
1563
|
-
return 'RecordType(type=' + this.
|
|
1562
|
+
return 'RecordType(type=' + this.c2d_1 + ', name=' + this.d2d_1 + ', namespace=' + this.e2d_1 + ', fields=' + toString(this.f2d_1) + ', doc=' + this.g2d_1 + ')';
|
|
1564
1563
|
};
|
|
1565
1564
|
protoOf(RecordType).hashCode = function () {
|
|
1566
|
-
var result = getStringHashCode(this.
|
|
1567
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1568
|
-
result = imul(result, 31) + (this.
|
|
1569
|
-
result = imul(result, 31) + hashCode(this.
|
|
1570
|
-
result = imul(result, 31) + (this.
|
|
1565
|
+
var result = getStringHashCode(this.c2d_1);
|
|
1566
|
+
result = imul(result, 31) + getStringHashCode(this.d2d_1) | 0;
|
|
1567
|
+
result = imul(result, 31) + (this.e2d_1 == null ? 0 : getStringHashCode(this.e2d_1)) | 0;
|
|
1568
|
+
result = imul(result, 31) + hashCode(this.f2d_1) | 0;
|
|
1569
|
+
result = imul(result, 31) + (this.g2d_1 == null ? 0 : getStringHashCode(this.g2d_1)) | 0;
|
|
1571
1570
|
return result;
|
|
1572
1571
|
};
|
|
1573
1572
|
protoOf(RecordType).equals = function (other) {
|
|
@@ -1576,28 +1575,28 @@ protoOf(RecordType).equals = function (other) {
|
|
|
1576
1575
|
if (!(other instanceof RecordType))
|
|
1577
1576
|
return false;
|
|
1578
1577
|
var tmp0_other_with_cast = other instanceof RecordType ? other : THROW_CCE();
|
|
1579
|
-
if (!(this.
|
|
1578
|
+
if (!(this.c2d_1 === tmp0_other_with_cast.c2d_1))
|
|
1580
1579
|
return false;
|
|
1581
|
-
if (!(this.
|
|
1580
|
+
if (!(this.d2d_1 === tmp0_other_with_cast.d2d_1))
|
|
1582
1581
|
return false;
|
|
1583
|
-
if (!(this.
|
|
1582
|
+
if (!(this.e2d_1 == tmp0_other_with_cast.e2d_1))
|
|
1584
1583
|
return false;
|
|
1585
|
-
if (!equals(this.
|
|
1584
|
+
if (!equals(this.f2d_1, tmp0_other_with_cast.f2d_1))
|
|
1586
1585
|
return false;
|
|
1587
|
-
if (!(this.
|
|
1586
|
+
if (!(this.g2d_1 == tmp0_other_with_cast.g2d_1))
|
|
1588
1587
|
return false;
|
|
1589
1588
|
return true;
|
|
1590
1589
|
};
|
|
1591
1590
|
function ArrayType(type, items) {
|
|
1592
|
-
this.
|
|
1593
|
-
this.
|
|
1591
|
+
this.h2d_1 = type;
|
|
1592
|
+
this.i2d_1 = items;
|
|
1594
1593
|
}
|
|
1595
1594
|
protoOf(ArrayType).toString = function () {
|
|
1596
|
-
return 'ArrayType(type=' + this.
|
|
1595
|
+
return 'ArrayType(type=' + this.h2d_1 + ', items=' + toString(this.i2d_1) + ')';
|
|
1597
1596
|
};
|
|
1598
1597
|
protoOf(ArrayType).hashCode = function () {
|
|
1599
|
-
var result = getStringHashCode(this.
|
|
1600
|
-
result = imul(result, 31) + hashCode(this.
|
|
1598
|
+
var result = getStringHashCode(this.h2d_1);
|
|
1599
|
+
result = imul(result, 31) + hashCode(this.i2d_1) | 0;
|
|
1601
1600
|
return result;
|
|
1602
1601
|
};
|
|
1603
1602
|
protoOf(ArrayType).equals = function (other) {
|
|
@@ -1606,22 +1605,22 @@ protoOf(ArrayType).equals = function (other) {
|
|
|
1606
1605
|
if (!(other instanceof ArrayType))
|
|
1607
1606
|
return false;
|
|
1608
1607
|
var tmp0_other_with_cast = other instanceof ArrayType ? other : THROW_CCE();
|
|
1609
|
-
if (!(this.
|
|
1608
|
+
if (!(this.h2d_1 === tmp0_other_with_cast.h2d_1))
|
|
1610
1609
|
return false;
|
|
1611
|
-
if (!equals(this.
|
|
1610
|
+
if (!equals(this.i2d_1, tmp0_other_with_cast.i2d_1))
|
|
1612
1611
|
return false;
|
|
1613
1612
|
return true;
|
|
1614
1613
|
};
|
|
1615
1614
|
function MapType(type, values) {
|
|
1616
|
-
this.
|
|
1617
|
-
this.
|
|
1615
|
+
this.s2c_1 = type;
|
|
1616
|
+
this.t2c_1 = values;
|
|
1618
1617
|
}
|
|
1619
1618
|
protoOf(MapType).toString = function () {
|
|
1620
|
-
return 'MapType(type=' + this.
|
|
1619
|
+
return 'MapType(type=' + this.s2c_1 + ', values=' + toString(this.t2c_1) + ')';
|
|
1621
1620
|
};
|
|
1622
1621
|
protoOf(MapType).hashCode = function () {
|
|
1623
|
-
var result = getStringHashCode(this.
|
|
1624
|
-
result = imul(result, 31) + hashCode(this.
|
|
1622
|
+
var result = getStringHashCode(this.s2c_1);
|
|
1623
|
+
result = imul(result, 31) + hashCode(this.t2c_1) | 0;
|
|
1625
1624
|
return result;
|
|
1626
1625
|
};
|
|
1627
1626
|
protoOf(MapType).equals = function (other) {
|
|
@@ -1630,28 +1629,28 @@ protoOf(MapType).equals = function (other) {
|
|
|
1630
1629
|
if (!(other instanceof MapType))
|
|
1631
1630
|
return false;
|
|
1632
1631
|
var tmp0_other_with_cast = other instanceof MapType ? other : THROW_CCE();
|
|
1633
|
-
if (!(this.
|
|
1632
|
+
if (!(this.s2c_1 === tmp0_other_with_cast.s2c_1))
|
|
1634
1633
|
return false;
|
|
1635
|
-
if (!equals(this.
|
|
1634
|
+
if (!equals(this.t2c_1, tmp0_other_with_cast.t2c_1))
|
|
1636
1635
|
return false;
|
|
1637
1636
|
return true;
|
|
1638
1637
|
};
|
|
1639
1638
|
function EnumType(type, name, doc, symbols) {
|
|
1640
1639
|
Companion_getInstance_6();
|
|
1641
1640
|
doc = doc === VOID ? null : doc;
|
|
1642
|
-
this.
|
|
1643
|
-
this.
|
|
1644
|
-
this.
|
|
1645
|
-
this.
|
|
1641
|
+
this.y2c_1 = type;
|
|
1642
|
+
this.z2c_1 = name;
|
|
1643
|
+
this.a2d_1 = doc;
|
|
1644
|
+
this.b2d_1 = symbols;
|
|
1646
1645
|
}
|
|
1647
1646
|
protoOf(EnumType).toString = function () {
|
|
1648
|
-
return 'EnumType(type=' + this.
|
|
1647
|
+
return 'EnumType(type=' + this.y2c_1 + ', name=' + this.z2c_1 + ', doc=' + this.a2d_1 + ', symbols=' + toString(this.b2d_1) + ')';
|
|
1649
1648
|
};
|
|
1650
1649
|
protoOf(EnumType).hashCode = function () {
|
|
1651
|
-
var result = getStringHashCode(this.
|
|
1652
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1653
|
-
result = imul(result, 31) + (this.
|
|
1654
|
-
result = imul(result, 31) + hashCode(this.
|
|
1650
|
+
var result = getStringHashCode(this.y2c_1);
|
|
1651
|
+
result = imul(result, 31) + getStringHashCode(this.z2c_1) | 0;
|
|
1652
|
+
result = imul(result, 31) + (this.a2d_1 == null ? 0 : getStringHashCode(this.a2d_1)) | 0;
|
|
1653
|
+
result = imul(result, 31) + hashCode(this.b2d_1) | 0;
|
|
1655
1654
|
return result;
|
|
1656
1655
|
};
|
|
1657
1656
|
protoOf(EnumType).equals = function (other) {
|
|
@@ -1660,26 +1659,26 @@ protoOf(EnumType).equals = function (other) {
|
|
|
1660
1659
|
if (!(other instanceof EnumType))
|
|
1661
1660
|
return false;
|
|
1662
1661
|
var tmp0_other_with_cast = other instanceof EnumType ? other : THROW_CCE();
|
|
1663
|
-
if (!(this.
|
|
1662
|
+
if (!(this.y2c_1 === tmp0_other_with_cast.y2c_1))
|
|
1664
1663
|
return false;
|
|
1665
|
-
if (!(this.
|
|
1664
|
+
if (!(this.z2c_1 === tmp0_other_with_cast.z2c_1))
|
|
1666
1665
|
return false;
|
|
1667
|
-
if (!(this.
|
|
1666
|
+
if (!(this.a2d_1 == tmp0_other_with_cast.a2d_1))
|
|
1668
1667
|
return false;
|
|
1669
|
-
if (!equals(this.
|
|
1668
|
+
if (!equals(this.b2d_1, tmp0_other_with_cast.b2d_1))
|
|
1670
1669
|
return false;
|
|
1671
1670
|
return true;
|
|
1672
1671
|
};
|
|
1673
1672
|
function UnionType(name, type) {
|
|
1674
|
-
this.
|
|
1675
|
-
this.
|
|
1673
|
+
this.q2c_1 = name;
|
|
1674
|
+
this.r2c_1 = type;
|
|
1676
1675
|
}
|
|
1677
1676
|
protoOf(UnionType).toString = function () {
|
|
1678
|
-
return 'UnionType(name=' + this.
|
|
1677
|
+
return 'UnionType(name=' + this.q2c_1 + ', type=' + this.r2c_1.toString() + ')';
|
|
1679
1678
|
};
|
|
1680
1679
|
protoOf(UnionType).hashCode = function () {
|
|
1681
|
-
var result = getStringHashCode(this.
|
|
1682
|
-
result = imul(result, 31) + this.
|
|
1680
|
+
var result = getStringHashCode(this.q2c_1);
|
|
1681
|
+
result = imul(result, 31) + this.r2c_1.hashCode() | 0;
|
|
1683
1682
|
return result;
|
|
1684
1683
|
};
|
|
1685
1684
|
protoOf(UnionType).equals = function (other) {
|
|
@@ -1688,22 +1687,22 @@ protoOf(UnionType).equals = function (other) {
|
|
|
1688
1687
|
if (!(other instanceof UnionType))
|
|
1689
1688
|
return false;
|
|
1690
1689
|
var tmp0_other_with_cast = other instanceof UnionType ? other : THROW_CCE();
|
|
1691
|
-
if (!(this.
|
|
1690
|
+
if (!(this.q2c_1 === tmp0_other_with_cast.q2c_1))
|
|
1692
1691
|
return false;
|
|
1693
|
-
if (!this.
|
|
1692
|
+
if (!this.r2c_1.equals(tmp0_other_with_cast.r2c_1))
|
|
1694
1693
|
return false;
|
|
1695
1694
|
return true;
|
|
1696
1695
|
};
|
|
1697
1696
|
function LogicalType() {
|
|
1698
1697
|
}
|
|
1699
1698
|
protoOf(LogicalType).toString = function () {
|
|
1700
|
-
return 'LogicalType(type=' + this.
|
|
1699
|
+
return 'LogicalType(type=' + this.u2c_1 + ', logicalType=' + this.v2c_1 + ', precision=' + this.w2c_1 + ', scale=' + this.x2c_1 + ')';
|
|
1701
1700
|
};
|
|
1702
1701
|
protoOf(LogicalType).hashCode = function () {
|
|
1703
|
-
var result = getStringHashCode(this.
|
|
1704
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1705
|
-
result = imul(result, 31) + (this.
|
|
1706
|
-
result = imul(result, 31) + (this.
|
|
1702
|
+
var result = getStringHashCode(this.u2c_1);
|
|
1703
|
+
result = imul(result, 31) + getStringHashCode(this.v2c_1) | 0;
|
|
1704
|
+
result = imul(result, 31) + (this.w2c_1 == null ? 0 : this.w2c_1) | 0;
|
|
1705
|
+
result = imul(result, 31) + (this.x2c_1 == null ? 0 : this.x2c_1) | 0;
|
|
1707
1706
|
return result;
|
|
1708
1707
|
};
|
|
1709
1708
|
protoOf(LogicalType).equals = function (other) {
|
|
@@ -1712,34 +1711,34 @@ protoOf(LogicalType).equals = function (other) {
|
|
|
1712
1711
|
if (!(other instanceof LogicalType))
|
|
1713
1712
|
return false;
|
|
1714
1713
|
var tmp0_other_with_cast = other instanceof LogicalType ? other : THROW_CCE();
|
|
1715
|
-
if (!(this.
|
|
1714
|
+
if (!(this.u2c_1 === tmp0_other_with_cast.u2c_1))
|
|
1716
1715
|
return false;
|
|
1717
|
-
if (!(this.
|
|
1716
|
+
if (!(this.v2c_1 === tmp0_other_with_cast.v2c_1))
|
|
1718
1717
|
return false;
|
|
1719
|
-
if (!(this.
|
|
1718
|
+
if (!(this.w2c_1 == tmp0_other_with_cast.w2c_1))
|
|
1720
1719
|
return false;
|
|
1721
|
-
if (!(this.
|
|
1720
|
+
if (!(this.x2c_1 == tmp0_other_with_cast.x2c_1))
|
|
1722
1721
|
return false;
|
|
1723
1722
|
return true;
|
|
1724
1723
|
};
|
|
1725
1724
|
function TypeListSerializer() {
|
|
1726
1725
|
TypeListSerializer_instance = this;
|
|
1727
|
-
this.
|
|
1726
|
+
this.r2e_1 = buildSerialDescriptor('TypeListSerializer', SEALED_getInstance(), []);
|
|
1728
1727
|
}
|
|
1729
|
-
protoOf(TypeListSerializer).
|
|
1730
|
-
return this.
|
|
1728
|
+
protoOf(TypeListSerializer).hl = function () {
|
|
1729
|
+
return this.r2e_1;
|
|
1731
1730
|
};
|
|
1732
|
-
protoOf(TypeListSerializer).
|
|
1733
|
-
if (value.
|
|
1734
|
-
encoder.
|
|
1731
|
+
protoOf(TypeListSerializer).s2e = function (encoder, value) {
|
|
1732
|
+
if (value.q2e_1 > 1) {
|
|
1733
|
+
encoder.aq(ListSerializer(Companion_instance_1.w17()), value);
|
|
1735
1734
|
} else {
|
|
1736
|
-
encoder.
|
|
1735
|
+
encoder.aq(Companion_instance_1.w17(), first(value));
|
|
1737
1736
|
}
|
|
1738
1737
|
};
|
|
1739
|
-
protoOf(TypeListSerializer).
|
|
1740
|
-
return this.
|
|
1738
|
+
protoOf(TypeListSerializer).il = function (encoder, value) {
|
|
1739
|
+
return this.s2e(encoder, value instanceof TypeList ? value : THROW_CCE());
|
|
1741
1740
|
};
|
|
1742
|
-
protoOf(TypeListSerializer).
|
|
1741
|
+
protoOf(TypeListSerializer).jl = function (decoder) {
|
|
1743
1742
|
var tmp0_elvis_lhs = isInterface(decoder, JsonDecoder) ? decoder : null;
|
|
1744
1743
|
var tmp;
|
|
1745
1744
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -1748,10 +1747,10 @@ protoOf(TypeListSerializer).il = function (decoder) {
|
|
|
1748
1747
|
tmp = tmp0_elvis_lhs;
|
|
1749
1748
|
}
|
|
1750
1749
|
var input = tmp;
|
|
1751
|
-
var element = input.
|
|
1750
|
+
var element = input.n17();
|
|
1752
1751
|
var tmp_0;
|
|
1753
1752
|
if (element instanceof JsonPrimitive) {
|
|
1754
|
-
tmp_0 = new TypeList([input.
|
|
1753
|
+
tmp_0 = new TypeList([input.m17().m15(Companion_instance_1.w17(), element)]);
|
|
1755
1754
|
} else {
|
|
1756
1755
|
if (element instanceof JsonArray) {
|
|
1757
1756
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
@@ -1762,14 +1761,14 @@ protoOf(TypeListSerializer).il = function (decoder) {
|
|
|
1762
1761
|
while (tmp0_iterator.h()) {
|
|
1763
1762
|
var item = tmp0_iterator.i();
|
|
1764
1763
|
// Inline function 'community.flock.wirespec.converter.avro.TypeListSerializer.deserialize.<anonymous>' call
|
|
1765
|
-
var tmp$ret$0 = input.
|
|
1764
|
+
var tmp$ret$0 = input.m17().m15(Companion_instance_1.w17(), item);
|
|
1766
1765
|
destination.e(tmp$ret$0);
|
|
1767
1766
|
}
|
|
1768
1767
|
var tmp$ret$3 = copyToArray(destination);
|
|
1769
1768
|
tmp_0 = new TypeList(tmp$ret$3.slice());
|
|
1770
1769
|
} else {
|
|
1771
1770
|
if (element instanceof JsonObject) {
|
|
1772
|
-
tmp_0 = new TypeList([input.
|
|
1771
|
+
tmp_0 = new TypeList([input.m17().m15(Companion_instance_1.w17(), element)]);
|
|
1773
1772
|
} else {
|
|
1774
1773
|
noWhenBranchMatchedException();
|
|
1775
1774
|
}
|
|
@@ -1785,29 +1784,29 @@ function TypeListSerializer_getInstance() {
|
|
|
1785
1784
|
}
|
|
1786
1785
|
function TypeSerializer() {
|
|
1787
1786
|
TypeSerializer_instance = this;
|
|
1788
|
-
this.
|
|
1787
|
+
this.t2e_1 = buildSerialDescriptor('TypeSerializer', SEALED_getInstance(), []);
|
|
1789
1788
|
}
|
|
1790
|
-
protoOf(TypeSerializer).
|
|
1791
|
-
return this.
|
|
1789
|
+
protoOf(TypeSerializer).hl = function () {
|
|
1790
|
+
return this.t2e_1;
|
|
1792
1791
|
};
|
|
1793
|
-
protoOf(TypeSerializer).
|
|
1792
|
+
protoOf(TypeSerializer).u2e = function (encoder, value) {
|
|
1794
1793
|
if (value instanceof SimpleType) {
|
|
1795
|
-
encoder.
|
|
1794
|
+
encoder.aq(serializer(StringCompanionObject_instance), value.p2c_1);
|
|
1796
1795
|
} else {
|
|
1797
1796
|
if (value instanceof RecordType) {
|
|
1798
|
-
encoder.
|
|
1797
|
+
encoder.aq(Companion_getInstance_3().w17(), value);
|
|
1799
1798
|
} else {
|
|
1800
1799
|
if (value instanceof ArrayType) {
|
|
1801
|
-
encoder.
|
|
1800
|
+
encoder.aq(Companion_instance_4.w17(), value);
|
|
1802
1801
|
} else {
|
|
1803
1802
|
if (value instanceof MapType) {
|
|
1804
|
-
encoder.
|
|
1803
|
+
encoder.aq(Companion_instance_5.w17(), value);
|
|
1805
1804
|
} else {
|
|
1806
1805
|
if (value instanceof EnumType) {
|
|
1807
|
-
encoder.
|
|
1806
|
+
encoder.aq(Companion_getInstance_6().w17(), value);
|
|
1808
1807
|
} else {
|
|
1809
1808
|
if (value instanceof UnionType) {
|
|
1810
|
-
encoder.
|
|
1809
|
+
encoder.aq(Companion_instance_7.w17(), value);
|
|
1811
1810
|
} else {
|
|
1812
1811
|
if (value instanceof LogicalType) {
|
|
1813
1812
|
// Inline function 'kotlin.TODO' call
|
|
@@ -1822,10 +1821,10 @@ protoOf(TypeSerializer).m2e = function (encoder, value) {
|
|
|
1822
1821
|
}
|
|
1823
1822
|
}
|
|
1824
1823
|
};
|
|
1825
|
-
protoOf(TypeSerializer).
|
|
1826
|
-
return this.
|
|
1824
|
+
protoOf(TypeSerializer).il = function (encoder, value) {
|
|
1825
|
+
return this.u2e(encoder, (!(value == null) ? isInterface(value, Type_0) : false) ? value : THROW_CCE());
|
|
1827
1826
|
};
|
|
1828
|
-
protoOf(TypeSerializer).
|
|
1827
|
+
protoOf(TypeSerializer).jl = function (decoder) {
|
|
1829
1828
|
var tmp0_elvis_lhs = isInterface(decoder, JsonDecoder) ? decoder : null;
|
|
1830
1829
|
var tmp;
|
|
1831
1830
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -1834,18 +1833,18 @@ protoOf(TypeSerializer).il = function (decoder) {
|
|
|
1834
1833
|
tmp = tmp0_elvis_lhs;
|
|
1835
1834
|
}
|
|
1836
1835
|
var input = tmp;
|
|
1837
|
-
var element = input.
|
|
1836
|
+
var element = input.n17();
|
|
1838
1837
|
var tmp_0;
|
|
1839
1838
|
if (element instanceof JsonObject) {
|
|
1840
1839
|
var tmp_1;
|
|
1841
|
-
if (element.
|
|
1842
|
-
tmp_1 = input.
|
|
1843
|
-
} else if (element.
|
|
1844
|
-
tmp_1 = input.
|
|
1845
|
-
} else if (element.
|
|
1846
|
-
tmp_1 = input.
|
|
1847
|
-
} else if (element.
|
|
1848
|
-
tmp_1 = input.
|
|
1840
|
+
if (element.q17('items')) {
|
|
1841
|
+
tmp_1 = input.m17().m15(Companion_instance_4.w17(), element);
|
|
1842
|
+
} else if (element.q17('fields')) {
|
|
1843
|
+
tmp_1 = input.m17().m15(Companion_getInstance_3().w17(), element);
|
|
1844
|
+
} else if (element.q17('symbols')) {
|
|
1845
|
+
tmp_1 = input.m17().m15(Companion_getInstance_6().w17(), element);
|
|
1846
|
+
} else if (element.q17('logicalType')) {
|
|
1847
|
+
tmp_1 = input.m17().m15(Companion_instance_8.w17(), element);
|
|
1849
1848
|
} else {
|
|
1850
1849
|
var reason = 'Unknown object type: ' + element.toString();
|
|
1851
1850
|
throw new NotImplementedError('An operation is not implemented: ' + reason);
|
|
@@ -1853,7 +1852,7 @@ protoOf(TypeSerializer).il = function (decoder) {
|
|
|
1853
1852
|
tmp_0 = tmp_1;
|
|
1854
1853
|
} else {
|
|
1855
1854
|
if (element instanceof JsonPrimitive) {
|
|
1856
|
-
tmp_0 = new SimpleType(element.
|
|
1855
|
+
tmp_0 = new SimpleType(element.o17());
|
|
1857
1856
|
} else {
|
|
1858
1857
|
if (element instanceof JsonArray) {
|
|
1859
1858
|
var reason_0 = 'Type can never be an array';
|
|
@@ -1872,26 +1871,26 @@ function TypeSerializer_getInstance() {
|
|
|
1872
1871
|
return TypeSerializer_instance;
|
|
1873
1872
|
}
|
|
1874
1873
|
function AvroParser$parse$lambda($this$Json) {
|
|
1875
|
-
$this$Json.d16_1 = true;
|
|
1876
1874
|
$this$Json.e16_1 = true;
|
|
1875
|
+
$this$Json.f16_1 = true;
|
|
1877
1876
|
return Unit_instance;
|
|
1878
1877
|
}
|
|
1879
1878
|
function AvroParser() {
|
|
1880
1879
|
}
|
|
1881
|
-
protoOf(AvroParser).
|
|
1880
|
+
protoOf(AvroParser).v2e = function (moduleContent, strict) {
|
|
1882
1881
|
var json = Json(VOID, AvroParser$parse$lambda);
|
|
1883
1882
|
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
1884
|
-
var string = moduleContent.
|
|
1883
|
+
var string = moduleContent.o22_1;
|
|
1885
1884
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
1886
|
-
var this_0 = json.
|
|
1885
|
+
var this_0 = json.xo();
|
|
1887
1886
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
1888
1887
|
var this_1 = serializer_0(this_0, createKType(getKClass(Type_0), arrayOf([]), false));
|
|
1889
1888
|
var tmp$ret$1 = isInterface(this_1, KSerializer) ? this_1 : THROW_CCE();
|
|
1890
|
-
var avro = json.
|
|
1891
|
-
var tmp = AvroConverter_getInstance().
|
|
1889
|
+
var avro = json.l15(tmp$ret$1, string);
|
|
1890
|
+
var tmp = AvroConverter_getInstance().o2d(avro);
|
|
1892
1891
|
var tmp_0;
|
|
1893
1892
|
if (avro instanceof RecordType) {
|
|
1894
|
-
tmp_0 = new Channel(null, new DefinitionIdentifier(avro.
|
|
1893
|
+
tmp_0 = new Channel(null, new DefinitionIdentifier(avro.d2d_1), new Custom(avro.d2d_1, false));
|
|
1895
1894
|
} else {
|
|
1896
1895
|
if (avro instanceof ArrayType) {
|
|
1897
1896
|
throw new NotImplementedError();
|
|
@@ -1928,21 +1927,21 @@ protoOf(AvroParser).n2e = function (moduleContent, strict) {
|
|
|
1928
1927
|
} else {
|
|
1929
1928
|
tmp_1 = tmp1_elvis_lhs;
|
|
1930
1929
|
}
|
|
1931
|
-
return new AST(nonEmptyListOf(new Module(moduleContent.
|
|
1930
|
+
return new AST(nonEmptyListOf(new Module(moduleContent.n22_1, tmp_1), []));
|
|
1932
1931
|
};
|
|
1933
1932
|
var AvroParser_instance;
|
|
1934
1933
|
function AvroParser_getInstance() {
|
|
1935
1934
|
return AvroParser_instance;
|
|
1936
1935
|
}
|
|
1937
1936
|
//region block: post-declaration
|
|
1938
|
-
protoOf($serializer).
|
|
1939
|
-
protoOf($serializer_0).
|
|
1940
|
-
protoOf($serializer_1).
|
|
1941
|
-
protoOf($serializer_2).
|
|
1942
|
-
protoOf($serializer_3).
|
|
1943
|
-
protoOf($serializer_4).
|
|
1944
|
-
protoOf($serializer_5).
|
|
1945
|
-
protoOf($serializer_6).
|
|
1937
|
+
protoOf($serializer).mw = typeParametersSerializers;
|
|
1938
|
+
protoOf($serializer_0).mw = typeParametersSerializers;
|
|
1939
|
+
protoOf($serializer_1).mw = typeParametersSerializers;
|
|
1940
|
+
protoOf($serializer_2).mw = typeParametersSerializers;
|
|
1941
|
+
protoOf($serializer_3).mw = typeParametersSerializers;
|
|
1942
|
+
protoOf($serializer_4).mw = typeParametersSerializers;
|
|
1943
|
+
protoOf($serializer_5).mw = typeParametersSerializers;
|
|
1944
|
+
protoOf($serializer_6).mw = typeParametersSerializers;
|
|
1946
1945
|
//endregion
|
|
1947
1946
|
//region block: init
|
|
1948
1947
|
Companion_instance = new Companion();
|