@flock/wirespec 0.22.0 → 0.22.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/arrow-arrow-atomic.mjs +12 -12
- package/arrow-arrow-core.mjs +166 -154
- package/arrow-arrow-core.mjs.map +1 -1
- package/clikt-clikt-mordant.mjs +80 -80
- package/clikt-clikt.mjs +1559 -1559
- package/colormath-root-colormath.mjs +441 -441
- package/kotlin-kotlin-stdlib.mjs +2239 -1951
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +10246 -10246
- package/kotlin-rgxgen.mjs +1808 -1808
- package/kotlinx-io-kotlinx-io-core.mjs +419 -419
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1868 -1868
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1607 -1586
- package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
- package/mordant-mordant.mjs +1335 -1321
- package/mordant-mordant.mjs.map +1 -1
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +6432 -6170
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-java.mjs +181 -181
- package/wirespec-src-compiler-emitters-kotlin.mjs +143 -143
- package/wirespec-src-compiler-emitters-python.mjs +179 -179
- package/wirespec-src-compiler-emitters-rust.mjs +423 -423
- package/wirespec-src-compiler-emitters-scala.mjs +176 -176
- package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-typescript.mjs +254 -255
- package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-wirespec.mjs +361 -163
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +937 -405
- package/wirespec-src-compiler-lib.mjs.map +1 -1
- package/wirespec-src-converter-asyncapi.mjs +5382 -0
- package/wirespec-src-converter-asyncapi.mjs.map +1 -0
- package/wirespec-src-converter-avro.mjs +1075 -508
- package/wirespec-src-converter-avro.mjs.map +1 -1
- package/wirespec-src-converter-common.mjs +20 -20
- package/wirespec-src-converter-common.mjs.map +1 -1
- package/wirespec-src-converter-graphql.mjs +6895 -0
- package/wirespec-src-converter-graphql.mjs.map +1 -0
- package/wirespec-src-converter-openapi.mjs +786 -777
- package/wirespec-src-converter-openapi.mjs.map +1 -1
- package/wirespec-src-ide-lsp.mjs +1395 -1395
- package/wirespec-src-plugin-arguments.mjs +204 -184
- package/wirespec-src-plugin-arguments.mjs.map +1 -1
- package/wirespec-src-plugin-cli.mjs +111 -108
- package/wirespec-src-plugin-cli.mjs.map +1 -1
- package/wirespec-src-plugin-npm.d.mts +219 -27
- package/wirespec-src-plugin-npm.mjs +144 -49
- package/wirespec-src-plugin-npm.mjs.map +1 -1
- package/wirespec-src-tools-generator.mjs +35 -35
|
@@ -14,19 +14,22 @@ import {
|
|
|
14
14
|
DefinitionIdentifiervfasqdb33qef as DefinitionIdentifier,
|
|
15
15
|
FieldIdentifier34k7iphndcnl0 as FieldIdentifier,
|
|
16
16
|
Field2nwjpxu9j2svq as Field,
|
|
17
|
-
|
|
17
|
+
Shape2rkbve9uak0g8 as Shape,
|
|
18
18
|
Type12n1gx16iqtcu as Type,
|
|
19
19
|
Enum3l2iuc342kle6 as Enum,
|
|
20
20
|
Unionccsavx6nrdr2 as Union,
|
|
21
|
+
_Comment___get_value__impl__8r3pla1b4ywrwtg22m7 as _Comment___get_value__impl__8r3pla,
|
|
22
|
+
Comment3jy4x02mtqi9b as Comment,
|
|
23
|
+
get_fields1vhfmr41isbcc as get_fields,
|
|
21
24
|
NullValue_instance1ek1wzdv4iv3a as NullValue_instance,
|
|
22
|
-
FileExtension_JSON_getInstancel2q389n0axuc as FileExtension_JSON_getInstance,
|
|
23
|
-
Emitted12h24rpo4uifw as Emitted,
|
|
24
25
|
Anyv7qdq63z63rc as Any,
|
|
25
|
-
Refined1lkzc0dg6wey7 as Refined,
|
|
26
26
|
Bytes3eoc50vgt1uem as Bytes,
|
|
27
27
|
Boolean1fpfi8m5jt3fg as Boolean_0,
|
|
28
|
-
|
|
28
|
+
FileExtension_AvroIdl_getInstancecpnmzljs3b85 as FileExtension_AvroIdl_getInstance,
|
|
29
|
+
Emitted12h24rpo4uifw as Emitted,
|
|
30
|
+
Refined1lkzc0dg6wey7 as Refined,
|
|
29
31
|
Emitterpslsvv25okcl as Emitter,
|
|
32
|
+
FileExtension_JSON_getInstancel2q389n0axuc as FileExtension_JSON_getInstance,
|
|
30
33
|
Channel2fhxi4a4pwb64 as Channel,
|
|
31
34
|
Module3a9i9fqinyump as Module,
|
|
32
35
|
Root195zt6zclzd3o as Root,
|
|
@@ -53,7 +56,18 @@ import {
|
|
|
53
56
|
protoOf180f3jzyo7rfj as protoOf,
|
|
54
57
|
VOID3gxj6tk5isa35 as VOID,
|
|
55
58
|
initMetadataForObject1cxne3s9w65el as initMetadataForObject,
|
|
59
|
+
_Char___init__impl__6a9atx2gndcvjvc5pke as _Char___init__impl__6a9atx,
|
|
60
|
+
substringAfterLast3r0t0my8cpqhk as substringAfterLast,
|
|
61
|
+
substringBeforeLastqh7oeuvefdek as substringBeforeLast,
|
|
62
|
+
isBlank1dvkhjjvox3p0 as isBlank,
|
|
63
|
+
charSequenceLength3278n89t01tmv as charSequenceLength,
|
|
64
|
+
charCodeAt1yspne1d8erbm as charCodeAt,
|
|
65
|
+
uppercaseChar6lahngw3wvwg as uppercaseChar,
|
|
66
|
+
substring3saq8ornu0luv as substring,
|
|
67
|
+
toString22rbkbhdb5cl2 as toString_0,
|
|
68
|
+
joinToString1cxrrlmo0chqs as joinToString,
|
|
56
69
|
equals2au1ep9vhcato as equals,
|
|
70
|
+
lines3g90sq0zeq43v as lines,
|
|
57
71
|
KtList3hktaavzmj137 as KtList,
|
|
58
72
|
getKClass3t8tygqu4lcxf as getKClass,
|
|
59
73
|
arrayOf1akklvh2at202 as arrayOf,
|
|
@@ -67,7 +81,7 @@ import {
|
|
|
67
81
|
objectCreate1ve4bgxiu4x98 as objectCreate,
|
|
68
82
|
LazyThreadSafetyMode_PUBLICATION_getInstance3qslfm3vqg6y3 as LazyThreadSafetyMode_PUBLICATION_getInstance,
|
|
69
83
|
lazy1261dae0bgscp as lazy,
|
|
70
|
-
toString30pk9tzaqopn as
|
|
84
|
+
toString30pk9tzaqopn as toString_1,
|
|
71
85
|
getStringHashCode26igk1bx568vk as getStringHashCode,
|
|
72
86
|
hashCodeq5arwsb9dgti as hashCode,
|
|
73
87
|
initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
|
|
@@ -76,6 +90,11 @@ import {
|
|
|
76
90
|
initMetadataForInterface1egvbzx539z91 as initMetadataForInterface,
|
|
77
91
|
getValue48kllevslyh6 as getValue,
|
|
78
92
|
StringCompanionObject_instance1v0ht40fz3tq0 as StringCompanionObject_instance,
|
|
93
|
+
mapCapacity1h45rc3eh9p2l as mapCapacity,
|
|
94
|
+
coerceAtLeast2bkz8m9ik7hep as coerceAtLeast,
|
|
95
|
+
LinkedHashMap_init_$Create$1gzy1x4a46gd4 as LinkedHashMap_init_$Create$,
|
|
96
|
+
emptySetcxexqki71qfa as emptySet,
|
|
97
|
+
plus18eogev54fmsa as plus_1,
|
|
79
98
|
} from './kotlin-kotlin-stdlib.mjs';
|
|
80
99
|
import {
|
|
81
100
|
toDefaultValue3275mygjoueae as toDefaultValue,
|
|
@@ -83,9 +102,9 @@ import {
|
|
|
83
102
|
withValidEnumDefaults1a27sgh5tk9q4 as withValidEnumDefaults,
|
|
84
103
|
} from './wirespec-src-converter-common.mjs';
|
|
85
104
|
import {
|
|
86
|
-
NonEmptyList__toList_impl_t5xcy266xhxpenbpfx as NonEmptyList__toList_impl_t5xcy2,
|
|
87
105
|
_NonEmptyList___get_all__impl__pmf5092xnz0i2teaa6d as _NonEmptyList___get_all__impl__pmf509,
|
|
88
106
|
_NonEmptyList___init__impl__fxd0xprpnd63likgzm as _NonEmptyList___init__impl__fxd0xp,
|
|
107
|
+
NonEmptyList__toList_impl_t5xcy266xhxpenbpfx as NonEmptyList__toList_impl_t5xcy2,
|
|
89
108
|
toNonEmptyListOrNull2ovnnazjb3msz as toNonEmptyListOrNull,
|
|
90
109
|
NonEmptyList3ak25ihy2gcvs as NonEmptyList,
|
|
91
110
|
nonEmptyListOf17xawqyzwrlrt as nonEmptyListOf,
|
|
@@ -130,6 +149,7 @@ var imul = Math.imul;
|
|
|
130
149
|
//endregion
|
|
131
150
|
//region block: pre-declaration
|
|
132
151
|
initMetadataForObject(AvroConverter, 'AvroConverter');
|
|
152
|
+
initMetadataForObject(AvroIdlEmitter, 'AvroIdlEmitter', VOID, VOID, [Emitter]);
|
|
133
153
|
initMetadataForObject(AvroJsonEmitter, 'AvroJsonEmitter', VOID, VOID, [Emitter]);
|
|
134
154
|
initMetadataForObject(AvroJsonParser, 'AvroJsonParser');
|
|
135
155
|
initMetadataForCompanion(Companion);
|
|
@@ -162,13 +182,14 @@ initMetadataForClass(LogicalType, 'LogicalType', VOID, VOID, [Type_0], VOID, VOI
|
|
|
162
182
|
initMetadataForObject(FieldSerializer, 'FieldSerializer', VOID, VOID, [KSerializer]);
|
|
163
183
|
initMetadataForObject(TypeListSerializer, 'TypeListSerializer', VOID, VOID, [KSerializer]);
|
|
164
184
|
initMetadataForObject(TypeSerializer, 'TypeSerializer', VOID, VOID, [KSerializer]);
|
|
185
|
+
initMetadataForClass(Ordering, 'Ordering', Ordering);
|
|
165
186
|
//endregion
|
|
166
187
|
function isNullable($this, $receiver) {
|
|
167
|
-
return $receiver.
|
|
188
|
+
return $receiver.i1($this.d49_1);
|
|
168
189
|
}
|
|
169
190
|
function toPrimitive($this, $receiver) {
|
|
170
191
|
var tmp;
|
|
171
|
-
switch ($receiver.
|
|
192
|
+
switch ($receiver.e49_1) {
|
|
172
193
|
case 'boolean':
|
|
173
194
|
tmp = Boolean_instance;
|
|
174
195
|
break;
|
|
@@ -193,7 +214,7 @@ function toPrimitive($this, $receiver) {
|
|
|
193
214
|
default:
|
|
194
215
|
// Inline function 'kotlin.TODO' call
|
|
195
216
|
|
|
196
|
-
var reason = 'primitive not mapped ' + $receiver.
|
|
217
|
+
var reason = 'primitive not mapped ' + $receiver.e49_1;
|
|
197
218
|
throw new NotImplementedError('An operation is not implemented: ' + reason);
|
|
198
219
|
}
|
|
199
220
|
return tmp;
|
|
@@ -201,7 +222,7 @@ function toPrimitive($this, $receiver) {
|
|
|
201
222
|
function toReference($this, $receiver, isNullable) {
|
|
202
223
|
var tmp;
|
|
203
224
|
if ($receiver instanceof SimpleType) {
|
|
204
|
-
switch ($receiver.
|
|
225
|
+
switch ($receiver.e49_1) {
|
|
205
226
|
case 'null':
|
|
206
227
|
tmp = new Unit(isNullable);
|
|
207
228
|
break;
|
|
@@ -215,27 +236,27 @@ function toReference($this, $receiver, isNullable) {
|
|
|
215
236
|
tmp = new Primitive(toPrimitive($this, $receiver), isNullable);
|
|
216
237
|
break;
|
|
217
238
|
default:
|
|
218
|
-
tmp = new Custom($receiver.
|
|
239
|
+
tmp = new Custom($receiver.e49_1, isNullable);
|
|
219
240
|
break;
|
|
220
241
|
}
|
|
221
242
|
} else {
|
|
222
243
|
if ($receiver instanceof ArrayType) {
|
|
223
|
-
tmp = new Iterable(toReference($this, $receiver.
|
|
244
|
+
tmp = new Iterable(toReference($this, $receiver.x49_1, false), isNullable);
|
|
224
245
|
} else {
|
|
225
246
|
if ($receiver instanceof RecordType) {
|
|
226
|
-
tmp = new Custom($receiver.
|
|
247
|
+
tmp = new Custom($receiver.s49_1, isNullable);
|
|
227
248
|
} else {
|
|
228
249
|
if ($receiver instanceof EnumType) {
|
|
229
|
-
tmp = new Custom($receiver.
|
|
250
|
+
tmp = new Custom($receiver.o49_1, isNullable);
|
|
230
251
|
} else {
|
|
231
252
|
if ($receiver instanceof LogicalType) {
|
|
232
|
-
tmp = toReference($this, new SimpleType($receiver.
|
|
253
|
+
tmp = toReference($this, new SimpleType($receiver.j49_1), isNullable);
|
|
233
254
|
} else {
|
|
234
255
|
if ($receiver instanceof MapType) {
|
|
235
|
-
tmp = new Dict(toReference($this, $receiver.
|
|
256
|
+
tmp = new Dict(toReference($this, $receiver.i49_1, false), isNullable);
|
|
236
257
|
} else {
|
|
237
258
|
if ($receiver instanceof UnionType) {
|
|
238
|
-
tmp = new Custom($receiver.
|
|
259
|
+
tmp = new Custom($receiver.f49_1, isNullable);
|
|
239
260
|
} else {
|
|
240
261
|
noWhenBranchMatchedException();
|
|
241
262
|
}
|
|
@@ -248,7 +269,7 @@ function toReference($this, $receiver, isNullable) {
|
|
|
248
269
|
return tmp;
|
|
249
270
|
}
|
|
250
271
|
function toReference_0($this, $receiver) {
|
|
251
|
-
var list = minus($receiver, $this.
|
|
272
|
+
var list = minus($receiver, $this.d49_1);
|
|
252
273
|
var tmp;
|
|
253
274
|
if (list.b1() === 1) {
|
|
254
275
|
tmp = toReference($this, first(list), isNullable($this, $receiver));
|
|
@@ -289,20 +310,20 @@ function toReference_0($this, $receiver) {
|
|
|
289
310
|
}
|
|
290
311
|
function toType($this, $receiver) {
|
|
291
312
|
var tmp0_annotations = emptyList();
|
|
292
|
-
var tmp1_identifier = new DefinitionIdentifier($receiver.
|
|
313
|
+
var tmp1_identifier = new DefinitionIdentifier($receiver.s49_1);
|
|
293
314
|
var tmp2_extends = emptyList();
|
|
294
315
|
// Inline function 'kotlin.collections.map' call
|
|
295
|
-
var this_0 = $receiver.
|
|
316
|
+
var this_0 = $receiver.u49_1;
|
|
296
317
|
// Inline function 'kotlin.collections.mapTo' call
|
|
297
318
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
298
319
|
var _iterator__ex2g4s = this_0.t();
|
|
299
320
|
while (_iterator__ex2g4s.u()) {
|
|
300
321
|
var item = _iterator__ex2g4s.v();
|
|
301
322
|
// Inline function 'kotlin.let' call
|
|
302
|
-
var reference = toReference_0(AvroConverter_getInstance(), item.
|
|
303
|
-
var tmp1_identifier_0 = new FieldIdentifier(item.
|
|
323
|
+
var reference = toReference_0(AvroConverter_getInstance(), item.z49_1);
|
|
324
|
+
var tmp1_identifier_0 = new FieldIdentifier(item.y49_1);
|
|
304
325
|
var tmp2_annotations = emptyList();
|
|
305
|
-
var tmp0_safe_receiver = item.
|
|
326
|
+
var tmp0_safe_receiver = item.b4a_1;
|
|
306
327
|
var tmp3_defaultValue = tmp0_safe_receiver == null ? null : toDefaultValue(tmp0_safe_receiver, reference);
|
|
307
328
|
var tmp$ret$2 = new Field(tmp2_annotations, tmp1_identifier_0, reference, tmp3_defaultValue);
|
|
308
329
|
destination.x(tmp$ret$2);
|
|
@@ -311,13 +332,13 @@ function toType($this, $receiver) {
|
|
|
311
332
|
return new Type(null, tmp0_annotations, tmp1_identifier, tmp3_shape, tmp2_extends);
|
|
312
333
|
}
|
|
313
334
|
function toEnum($this, $receiver) {
|
|
314
|
-
return new Enum(null, emptyList(), new DefinitionIdentifier($receiver.
|
|
335
|
+
return new Enum(null, emptyList(), new DefinitionIdentifier($receiver.o49_1), toSet($receiver.q49_1));
|
|
315
336
|
}
|
|
316
337
|
function toUnion($this, $receiver, name) {
|
|
317
338
|
var tmp = emptyList();
|
|
318
339
|
var tmp_0 = new DefinitionIdentifier(name);
|
|
319
340
|
// Inline function 'kotlin.collections.map' call
|
|
320
|
-
var this_0 = $receiver.
|
|
341
|
+
var this_0 = $receiver.g49_1;
|
|
321
342
|
// Inline function 'kotlin.collections.mapTo' call
|
|
322
343
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
323
344
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -330,9 +351,9 @@ function toUnion($this, $receiver, name) {
|
|
|
330
351
|
}
|
|
331
352
|
function AvroConverter() {
|
|
332
353
|
AvroConverter_instance = this;
|
|
333
|
-
this.
|
|
354
|
+
this.d49_1 = new SimpleType('null');
|
|
334
355
|
}
|
|
335
|
-
protoOf(AvroConverter).
|
|
356
|
+
protoOf(AvroConverter).c4a = function (_this__u8e3s4, name) {
|
|
336
357
|
var tmp;
|
|
337
358
|
if (_this__u8e3s4 instanceof SimpleType) {
|
|
338
359
|
tmp = emptyList();
|
|
@@ -340,20 +361,20 @@ protoOf(AvroConverter).b49 = function (_this__u8e3s4, name) {
|
|
|
340
361
|
if (_this__u8e3s4 instanceof RecordType) {
|
|
341
362
|
var tmp_0 = listOf(toType(this, _this__u8e3s4));
|
|
342
363
|
// Inline function 'kotlin.collections.flatMap' call
|
|
343
|
-
var tmp0 = _this__u8e3s4.
|
|
364
|
+
var tmp0 = _this__u8e3s4.u49_1;
|
|
344
365
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
345
366
|
var destination = ArrayList_init_$Create$_0();
|
|
346
367
|
var _iterator__ex2g4s = tmp0.t();
|
|
347
368
|
while (_iterator__ex2g4s.u()) {
|
|
348
369
|
var element = _iterator__ex2g4s.v();
|
|
349
370
|
// Inline function 'kotlin.collections.flatMap' call
|
|
350
|
-
var tmp0_0 = element.
|
|
371
|
+
var tmp0_0 = element.z49_1;
|
|
351
372
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
352
373
|
var destination_0 = ArrayList_init_$Create$_0();
|
|
353
374
|
var _iterator__ex2g4s_0 = tmp0_0.t();
|
|
354
375
|
while (_iterator__ex2g4s_0.u()) {
|
|
355
376
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
356
|
-
var list = AvroConverter_getInstance().
|
|
377
|
+
var list = AvroConverter_getInstance().c4a(element_0, name);
|
|
357
378
|
addAll(destination_0, list);
|
|
358
379
|
}
|
|
359
380
|
var list_0 = destination_0;
|
|
@@ -362,7 +383,7 @@ protoOf(AvroConverter).b49 = function (_this__u8e3s4, name) {
|
|
|
362
383
|
tmp = plus(tmp_0, destination);
|
|
363
384
|
} else {
|
|
364
385
|
if (_this__u8e3s4 instanceof ArrayType) {
|
|
365
|
-
tmp = this.
|
|
386
|
+
tmp = this.c4a(_this__u8e3s4.x49_1, name);
|
|
366
387
|
} else {
|
|
367
388
|
if (_this__u8e3s4 instanceof EnumType) {
|
|
368
389
|
tmp = listOf(toEnum(this, _this__u8e3s4));
|
|
@@ -371,7 +392,7 @@ protoOf(AvroConverter).b49 = function (_this__u8e3s4, name) {
|
|
|
371
392
|
tmp = emptyList();
|
|
372
393
|
} else {
|
|
373
394
|
if (_this__u8e3s4 instanceof MapType) {
|
|
374
|
-
tmp = this.
|
|
395
|
+
tmp = this.c4a(_this__u8e3s4.i49_1, name);
|
|
375
396
|
} else {
|
|
376
397
|
if (_this__u8e3s4 instanceof UnionType) {
|
|
377
398
|
tmp = listOf(toUnion(this, _this__u8e3s4, name));
|
|
@@ -386,9 +407,9 @@ protoOf(AvroConverter).b49 = function (_this__u8e3s4, name) {
|
|
|
386
407
|
}
|
|
387
408
|
return tmp;
|
|
388
409
|
};
|
|
389
|
-
protoOf(AvroConverter).
|
|
410
|
+
protoOf(AvroConverter).d4a = function (_this__u8e3s4, name, $super) {
|
|
390
411
|
name = name === VOID ? '' : name;
|
|
391
|
-
return $super === VOID ? this.
|
|
412
|
+
return $super === VOID ? this.c4a(_this__u8e3s4, name) : $super.c4a.call(this, _this__u8e3s4, name);
|
|
392
413
|
};
|
|
393
414
|
var AvroConverter_instance;
|
|
394
415
|
function AvroConverter_getInstance() {
|
|
@@ -396,19 +417,359 @@ function AvroConverter_getInstance() {
|
|
|
396
417
|
new AvroConverter();
|
|
397
418
|
return AvroConverter_instance;
|
|
398
419
|
}
|
|
420
|
+
function deriveProtocolName($this, module_0) {
|
|
421
|
+
// Inline function 'kotlin.takeIf' call
|
|
422
|
+
var this_0 = substringBeforeLast(substringAfterLast(module_0.fp_1.io_1, _Char___init__impl__6a9atx(47)), _Char___init__impl__6a9atx(46));
|
|
423
|
+
var tmp;
|
|
424
|
+
var tmp_0;
|
|
425
|
+
// Inline function 'kotlin.text.isNotBlank' call
|
|
426
|
+
if (!isBlank(this_0)) {
|
|
427
|
+
tmp_0 = !(this_0 === 'unknown');
|
|
428
|
+
} else {
|
|
429
|
+
tmp_0 = false;
|
|
430
|
+
}
|
|
431
|
+
if (tmp_0) {
|
|
432
|
+
tmp = this_0;
|
|
433
|
+
} else {
|
|
434
|
+
tmp = null;
|
|
435
|
+
}
|
|
436
|
+
var tmp0_safe_receiver = tmp;
|
|
437
|
+
var tmp_1;
|
|
438
|
+
if (tmp0_safe_receiver == null) {
|
|
439
|
+
tmp_1 = null;
|
|
440
|
+
} else {
|
|
441
|
+
// Inline function 'kotlin.let' call
|
|
442
|
+
// Inline function 'kotlin.text.replaceFirstChar' call
|
|
443
|
+
var tmp_2;
|
|
444
|
+
// Inline function 'kotlin.text.isNotEmpty' call
|
|
445
|
+
if (charSequenceLength(tmp0_safe_receiver) > 0) {
|
|
446
|
+
var c = charCodeAt(tmp0_safe_receiver, 0);
|
|
447
|
+
var tmp0 = uppercaseChar(c);
|
|
448
|
+
// Inline function 'kotlin.text.plus' call
|
|
449
|
+
var other = substring(tmp0_safe_receiver, 1);
|
|
450
|
+
tmp_2 = toString_0(tmp0) + other;
|
|
451
|
+
} else {
|
|
452
|
+
tmp_2 = tmp0_safe_receiver;
|
|
453
|
+
}
|
|
454
|
+
tmp_1 = tmp_2 + 'Protocol';
|
|
455
|
+
}
|
|
456
|
+
var tmp1_elvis_lhs = tmp_1;
|
|
457
|
+
return tmp1_elvis_lhs == null ? 'WirespecProtocol' : tmp1_elvis_lhs;
|
|
458
|
+
}
|
|
459
|
+
function renderRecord($this, $receiver, type) {
|
|
460
|
+
var tmp0_safe_receiver = type.ip_1;
|
|
461
|
+
var tmp;
|
|
462
|
+
var tmp_0 = tmp0_safe_receiver;
|
|
463
|
+
if ((tmp_0 == null ? null : new Comment(tmp_0)) == null) {
|
|
464
|
+
tmp = null;
|
|
465
|
+
} else {
|
|
466
|
+
tmp = _Comment___get_value__impl__8r3pla(tmp0_safe_receiver);
|
|
467
|
+
}
|
|
468
|
+
var tmp1_safe_receiver = tmp;
|
|
469
|
+
var tmp_1;
|
|
470
|
+
if (tmp1_safe_receiver == null) {
|
|
471
|
+
tmp_1 = null;
|
|
472
|
+
} else {
|
|
473
|
+
// Inline function 'kotlin.let' call
|
|
474
|
+
tmp_1 = renderDoc(AvroIdlEmitter_getInstance(), tmp1_safe_receiver, ' ');
|
|
475
|
+
}
|
|
476
|
+
// Inline function 'kotlin.text.orEmpty' call
|
|
477
|
+
var tmp0_elvis_lhs = tmp_1;
|
|
478
|
+
var doc = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs;
|
|
479
|
+
var tmp_2 = get_fields(type.lp_1);
|
|
480
|
+
var fields = joinToString(tmp_2, '', VOID, VOID, VOID, VOID, AvroIdlEmitter$renderRecord$lambda($receiver));
|
|
481
|
+
return doc + ' record ' + type.kp_1.o1() + ' {\n' + fields + ' }\n';
|
|
482
|
+
}
|
|
483
|
+
function renderFieldType($this, $receiver, field) {
|
|
484
|
+
return field.pp_1.ot() && isNonNull($this, field.qp_1) ? 'union { ' + renderReference($this, $receiver, field.pp_1.t19(false)) + ', null }' : renderReference($this, $receiver, field.pp_1);
|
|
485
|
+
}
|
|
399
486
|
function isNonNull($this, $receiver) {
|
|
400
487
|
return !($receiver == null) && !equals($receiver, NullValue_instance);
|
|
401
488
|
}
|
|
489
|
+
function renderDefault($this, default_0) {
|
|
490
|
+
var tmp;
|
|
491
|
+
if (default_0 == null) {
|
|
492
|
+
tmp = null;
|
|
493
|
+
} else {
|
|
494
|
+
// Inline function 'kotlin.let' call
|
|
495
|
+
tmp = ' = ' + toString(toJsonElement(default_0));
|
|
496
|
+
}
|
|
497
|
+
// Inline function 'kotlin.text.orEmpty' call
|
|
498
|
+
var tmp0_elvis_lhs = tmp;
|
|
499
|
+
return tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs;
|
|
500
|
+
}
|
|
501
|
+
function renderEnum($this, enum_0) {
|
|
502
|
+
var tmp0_safe_receiver = enum_0.os_1;
|
|
503
|
+
var tmp;
|
|
504
|
+
var tmp_0 = tmp0_safe_receiver;
|
|
505
|
+
if ((tmp_0 == null ? null : new Comment(tmp_0)) == null) {
|
|
506
|
+
tmp = null;
|
|
507
|
+
} else {
|
|
508
|
+
tmp = _Comment___get_value__impl__8r3pla(tmp0_safe_receiver);
|
|
509
|
+
}
|
|
510
|
+
var tmp1_safe_receiver = tmp;
|
|
511
|
+
var tmp_1;
|
|
512
|
+
if (tmp1_safe_receiver == null) {
|
|
513
|
+
tmp_1 = null;
|
|
514
|
+
} else {
|
|
515
|
+
// Inline function 'kotlin.let' call
|
|
516
|
+
tmp_1 = renderDoc(AvroIdlEmitter_getInstance(), tmp1_safe_receiver, ' ');
|
|
517
|
+
}
|
|
518
|
+
// Inline function 'kotlin.text.orEmpty' call
|
|
519
|
+
var tmp0_elvis_lhs = tmp_1;
|
|
520
|
+
var doc = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs;
|
|
521
|
+
var symbols = joinToString(enum_0.rs_1, ', ');
|
|
522
|
+
return doc + ' enum ' + enum_0.qs_1.o1() + ' {\n ' + symbols + '\n }\n';
|
|
523
|
+
}
|
|
524
|
+
function renderUnion($this, $receiver, union) {
|
|
525
|
+
var tmp0_safe_receiver = union.zq_1;
|
|
526
|
+
var tmp;
|
|
527
|
+
var tmp_0 = tmp0_safe_receiver;
|
|
528
|
+
if ((tmp_0 == null ? null : new Comment(tmp_0)) == null) {
|
|
529
|
+
tmp = null;
|
|
530
|
+
} else {
|
|
531
|
+
tmp = _Comment___get_value__impl__8r3pla(tmp0_safe_receiver);
|
|
532
|
+
}
|
|
533
|
+
var tmp1_safe_receiver = tmp;
|
|
534
|
+
var tmp_1;
|
|
535
|
+
if (tmp1_safe_receiver == null) {
|
|
536
|
+
tmp_1 = null;
|
|
537
|
+
} else {
|
|
538
|
+
// Inline function 'kotlin.let' call
|
|
539
|
+
tmp_1 = renderDoc(AvroIdlEmitter_getInstance(), tmp1_safe_receiver, ' ');
|
|
540
|
+
}
|
|
541
|
+
// Inline function 'kotlin.text.orEmpty' call
|
|
542
|
+
var tmp0_elvis_lhs = tmp_1;
|
|
543
|
+
var doc = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs;
|
|
544
|
+
var members = joinToString(union.cr_1, ', ', VOID, VOID, VOID, VOID, AvroIdlEmitter$renderUnion$lambda($receiver));
|
|
545
|
+
return doc + ' record ' + union.br_1.o1() + ' {\n union { ' + members + ' } value;\n }\n';
|
|
546
|
+
}
|
|
547
|
+
function renderRefined($this, refined) {
|
|
548
|
+
var tmp0_safe_receiver = refined.js_1;
|
|
549
|
+
var tmp;
|
|
550
|
+
var tmp_0 = tmp0_safe_receiver;
|
|
551
|
+
if ((tmp_0 == null ? null : new Comment(tmp_0)) == null) {
|
|
552
|
+
tmp = null;
|
|
553
|
+
} else {
|
|
554
|
+
tmp = _Comment___get_value__impl__8r3pla(tmp0_safe_receiver);
|
|
555
|
+
}
|
|
556
|
+
var tmp1_safe_receiver = tmp;
|
|
557
|
+
var tmp_1;
|
|
558
|
+
if (tmp1_safe_receiver == null) {
|
|
559
|
+
tmp_1 = null;
|
|
560
|
+
} else {
|
|
561
|
+
// Inline function 'kotlin.let' call
|
|
562
|
+
tmp_1 = renderDoc(AvroIdlEmitter_getInstance(), tmp1_safe_receiver, ' ');
|
|
563
|
+
}
|
|
564
|
+
// Inline function 'kotlin.text.orEmpty' call
|
|
565
|
+
var tmp0_elvis_lhs = tmp_1;
|
|
566
|
+
var doc = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs;
|
|
567
|
+
return doc + ' // refined ' + refined.ls_1.o1() + ' = ' + renderPrimitive($this, refined.ms_1.t18_1) + '\n';
|
|
568
|
+
}
|
|
569
|
+
function renderReference($this, $receiver, reference) {
|
|
570
|
+
var tmp;
|
|
571
|
+
if (reference instanceof Primitive) {
|
|
572
|
+
tmp = wrapNullable($this, renderPrimitive($this, reference.t18_1), reference.u18_1);
|
|
573
|
+
} else {
|
|
574
|
+
if (reference instanceof Custom) {
|
|
575
|
+
var tmp1_safe_receiver = findRefined($receiver, reference.r18_1);
|
|
576
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.ms_1;
|
|
577
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.t18_1;
|
|
578
|
+
var tmp_0;
|
|
579
|
+
if (tmp3_safe_receiver == null) {
|
|
580
|
+
tmp_0 = null;
|
|
581
|
+
} else {
|
|
582
|
+
// Inline function 'kotlin.let' call
|
|
583
|
+
tmp_0 = renderPrimitive($this, tmp3_safe_receiver);
|
|
584
|
+
}
|
|
585
|
+
var tmp4_elvis_lhs = tmp_0;
|
|
586
|
+
tmp = wrapNullable($this, tmp4_elvis_lhs == null ? reference.r18_1 : tmp4_elvis_lhs, reference.s18_1);
|
|
587
|
+
} else {
|
|
588
|
+
if (reference instanceof Iterable) {
|
|
589
|
+
tmp = wrapNullable($this, 'array<' + renderReference($this, $receiver, reference.yp_1.t19(false)) + '>', reference.zp_1);
|
|
590
|
+
} else {
|
|
591
|
+
if (reference instanceof Dict) {
|
|
592
|
+
tmp = wrapNullable($this, 'map<' + renderReference($this, $receiver, reference.bq_1.t19(false)) + '>', reference.cq_1);
|
|
593
|
+
} else {
|
|
594
|
+
if (reference instanceof Any) {
|
|
595
|
+
tmp = wrapNullable($this, 'bytes', reference.l1d_1);
|
|
596
|
+
} else {
|
|
597
|
+
if (reference instanceof Unit) {
|
|
598
|
+
tmp = 'null';
|
|
599
|
+
} else {
|
|
600
|
+
noWhenBranchMatchedException();
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
return tmp;
|
|
608
|
+
}
|
|
609
|
+
function renderPrimitive($this, type) {
|
|
610
|
+
var tmp;
|
|
611
|
+
if (type instanceof String_0) {
|
|
612
|
+
tmp = 'string';
|
|
613
|
+
} else {
|
|
614
|
+
if (type instanceof Boolean_0) {
|
|
615
|
+
tmp = 'boolean';
|
|
616
|
+
} else {
|
|
617
|
+
if (type instanceof Bytes) {
|
|
618
|
+
tmp = 'bytes';
|
|
619
|
+
} else {
|
|
620
|
+
if (type instanceof Integer) {
|
|
621
|
+
var tmp_0;
|
|
622
|
+
switch (type.b19_1.e3_1) {
|
|
623
|
+
case 0:
|
|
624
|
+
tmp_0 = 'int';
|
|
625
|
+
break;
|
|
626
|
+
case 1:
|
|
627
|
+
tmp_0 = 'long';
|
|
628
|
+
break;
|
|
629
|
+
default:
|
|
630
|
+
noWhenBranchMatchedException();
|
|
631
|
+
break;
|
|
632
|
+
}
|
|
633
|
+
tmp = tmp_0;
|
|
634
|
+
} else {
|
|
635
|
+
if (type instanceof Number_0) {
|
|
636
|
+
var tmp_1;
|
|
637
|
+
switch (type.w18_1.e3_1) {
|
|
638
|
+
case 0:
|
|
639
|
+
tmp_1 = 'float';
|
|
640
|
+
break;
|
|
641
|
+
case 1:
|
|
642
|
+
tmp_1 = 'double';
|
|
643
|
+
break;
|
|
644
|
+
default:
|
|
645
|
+
noWhenBranchMatchedException();
|
|
646
|
+
break;
|
|
647
|
+
}
|
|
648
|
+
tmp = tmp_1;
|
|
649
|
+
} else {
|
|
650
|
+
noWhenBranchMatchedException();
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
return tmp;
|
|
657
|
+
}
|
|
658
|
+
function wrapNullable($this, rendered, isNullable) {
|
|
659
|
+
return isNullable ? 'union { null, ' + rendered + ' }' : rendered;
|
|
660
|
+
}
|
|
661
|
+
function renderDoc($this, value, indent) {
|
|
662
|
+
var lines_0 = lines(value);
|
|
663
|
+
var tmp;
|
|
664
|
+
if (lines_0.b1() === 1) {
|
|
665
|
+
tmp = indent + '/** ' + first(lines_0) + ' */\n';
|
|
666
|
+
} else {
|
|
667
|
+
var body = joinToString(lines_0, '', VOID, VOID, VOID, VOID, AvroIdlEmitter$renderDoc$lambda(indent));
|
|
668
|
+
tmp = indent + '/**\n' + body + indent + ' */\n';
|
|
669
|
+
}
|
|
670
|
+
return tmp;
|
|
671
|
+
}
|
|
672
|
+
function AvroIdlEmitter$renderRecord$lambda($this_renderRecord) {
|
|
673
|
+
return function (field) {
|
|
674
|
+
return ' ' + renderFieldType(AvroIdlEmitter_getInstance(), $this_renderRecord, field) + ' ' + field.op_1.o1() + renderDefault(AvroIdlEmitter_getInstance(), field.qp_1) + ';\n';
|
|
675
|
+
};
|
|
676
|
+
}
|
|
677
|
+
function AvroIdlEmitter$renderUnion$lambda($this_renderUnion) {
|
|
678
|
+
return function (it) {
|
|
679
|
+
return renderReference(AvroIdlEmitter_getInstance(), $this_renderUnion, it);
|
|
680
|
+
};
|
|
681
|
+
}
|
|
682
|
+
function AvroIdlEmitter$renderDoc$lambda($indent) {
|
|
683
|
+
return function (it) {
|
|
684
|
+
return $indent + ' * ' + it + '\n';
|
|
685
|
+
};
|
|
686
|
+
}
|
|
687
|
+
function AvroIdlEmitter() {
|
|
688
|
+
AvroIdlEmitter_instance = this;
|
|
689
|
+
this.e4a_1 = FileExtension_AvroIdl_getInstance();
|
|
690
|
+
this.f4a_1 = true;
|
|
691
|
+
this.g4a_1 = ' ';
|
|
692
|
+
this.h4a_1 = 'unknown';
|
|
693
|
+
}
|
|
694
|
+
protoOf(AvroIdlEmitter).wp = function () {
|
|
695
|
+
return this.e4a_1;
|
|
696
|
+
};
|
|
697
|
+
protoOf(AvroIdlEmitter).vp = function () {
|
|
698
|
+
return this.f4a_1;
|
|
699
|
+
};
|
|
700
|
+
protoOf(AvroIdlEmitter).to = function (ast, logger) {
|
|
701
|
+
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
702
|
+
var this_0 = ast.ep_1;
|
|
703
|
+
// Inline function 'kotlin.collections.map' call
|
|
704
|
+
var this_1 = _NonEmptyList___get_all__impl__pmf509(this_0);
|
|
705
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
706
|
+
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_1, 10));
|
|
707
|
+
var _iterator__ex2g4s = this_1.t();
|
|
708
|
+
while (_iterator__ex2g4s.u()) {
|
|
709
|
+
var item = _iterator__ex2g4s.v();
|
|
710
|
+
logger.as('Emitting Avro IDL from ' + item.fp_1.io_1);
|
|
711
|
+
var tmp$ret$3 = new Emitted('schema.avdl', AvroIdlEmitter_getInstance().i4a(item, deriveProtocolName(AvroIdlEmitter_getInstance(), item)));
|
|
712
|
+
destination.x(tmp$ret$3);
|
|
713
|
+
}
|
|
714
|
+
return _NonEmptyList___init__impl__fxd0xp(destination);
|
|
715
|
+
};
|
|
716
|
+
protoOf(AvroIdlEmitter).i4a = function (module_0, protocolName) {
|
|
717
|
+
// Inline function 'kotlin.collections.mapNotNull' call
|
|
718
|
+
var tmp0 = inDependencyOrder(module_0);
|
|
719
|
+
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
720
|
+
var destination = ArrayList_init_$Create$_0();
|
|
721
|
+
// Inline function 'kotlin.collections.forEach' call
|
|
722
|
+
var _iterator__ex2g4s = tmp0.t();
|
|
723
|
+
while (_iterator__ex2g4s.u()) {
|
|
724
|
+
var element = _iterator__ex2g4s.v();
|
|
725
|
+
var tmp;
|
|
726
|
+
if (element instanceof Type) {
|
|
727
|
+
tmp = renderRecord(AvroIdlEmitter_getInstance(), module_0, element);
|
|
728
|
+
} else {
|
|
729
|
+
if (element instanceof Enum) {
|
|
730
|
+
tmp = renderEnum(AvroIdlEmitter_getInstance(), element);
|
|
731
|
+
} else {
|
|
732
|
+
if (element instanceof Union) {
|
|
733
|
+
tmp = renderUnion(AvroIdlEmitter_getInstance(), module_0, element);
|
|
734
|
+
} else {
|
|
735
|
+
if (element instanceof Refined) {
|
|
736
|
+
tmp = renderRefined(AvroIdlEmitter_getInstance(), element);
|
|
737
|
+
} else {
|
|
738
|
+
tmp = null;
|
|
739
|
+
}
|
|
740
|
+
}
|
|
741
|
+
}
|
|
742
|
+
}
|
|
743
|
+
var tmp0_safe_receiver = tmp;
|
|
744
|
+
if (tmp0_safe_receiver == null)
|
|
745
|
+
null;
|
|
746
|
+
else {
|
|
747
|
+
// Inline function 'kotlin.let' call
|
|
748
|
+
destination.x(tmp0_safe_receiver);
|
|
749
|
+
}
|
|
750
|
+
}
|
|
751
|
+
var body = joinToString(destination, '\n');
|
|
752
|
+
return 'protocol ' + protocolName + ' {\n' + body + '}\n';
|
|
753
|
+
};
|
|
754
|
+
var AvroIdlEmitter_instance;
|
|
755
|
+
function AvroIdlEmitter_getInstance() {
|
|
756
|
+
if (AvroIdlEmitter_instance == null)
|
|
757
|
+
new AvroIdlEmitter();
|
|
758
|
+
return AvroIdlEmitter_instance;
|
|
759
|
+
}
|
|
760
|
+
function isNonNull_0($this, $receiver) {
|
|
761
|
+
return !($receiver == null) && !equals($receiver, NullValue_instance);
|
|
762
|
+
}
|
|
402
763
|
function findType($this, $receiver, name) {
|
|
403
764
|
// Inline function 'kotlin.collections.find' call
|
|
404
|
-
var tmp0 = NonEmptyList__toList_impl_t5xcy2($receiver.
|
|
765
|
+
var tmp0 = NonEmptyList__toList_impl_t5xcy2($receiver.gp_1);
|
|
405
766
|
var tmp$ret$1;
|
|
406
767
|
$l$block: {
|
|
407
768
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
408
769
|
var _iterator__ex2g4s = tmp0.t();
|
|
409
770
|
while (_iterator__ex2g4s.u()) {
|
|
410
771
|
var element = _iterator__ex2g4s.v();
|
|
411
|
-
if (element.
|
|
772
|
+
if (element.ds().o1() === name) {
|
|
412
773
|
tmp$ret$1 = element;
|
|
413
774
|
break $l$block;
|
|
414
775
|
}
|
|
@@ -419,18 +780,18 @@ function findType($this, $receiver, name) {
|
|
|
419
780
|
}
|
|
420
781
|
function AvroJsonEmitter() {
|
|
421
782
|
AvroJsonEmitter_instance = this;
|
|
422
|
-
this.
|
|
423
|
-
this.
|
|
783
|
+
this.j4a_1 = FileExtension_JSON_getInstance();
|
|
784
|
+
this.k4a_1 = true;
|
|
424
785
|
}
|
|
425
|
-
protoOf(AvroJsonEmitter).
|
|
426
|
-
return this.
|
|
786
|
+
protoOf(AvroJsonEmitter).wp = function () {
|
|
787
|
+
return this.j4a_1;
|
|
427
788
|
};
|
|
428
|
-
protoOf(AvroJsonEmitter).
|
|
429
|
-
return this.
|
|
789
|
+
protoOf(AvroJsonEmitter).vp = function () {
|
|
790
|
+
return this.k4a_1;
|
|
430
791
|
};
|
|
431
|
-
protoOf(AvroJsonEmitter).
|
|
792
|
+
protoOf(AvroJsonEmitter).to = function (ast, logger) {
|
|
432
793
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
433
|
-
var this_0 = ast.
|
|
794
|
+
var this_0 = ast.ep_1;
|
|
434
795
|
// Inline function 'kotlin.collections.map' call
|
|
435
796
|
var this_1 = _NonEmptyList___get_all__impl__pmf509(this_0);
|
|
436
797
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -438,8 +799,8 @@ protoOf(AvroJsonEmitter).mo = function (ast, logger) {
|
|
|
438
799
|
var _iterator__ex2g4s = this_1.t();
|
|
439
800
|
while (_iterator__ex2g4s.u()) {
|
|
440
801
|
var item = _iterator__ex2g4s.v();
|
|
441
|
-
logger.
|
|
442
|
-
var tmp$ret$3 = AvroJsonEmitter_getInstance().
|
|
802
|
+
logger.as('Emitting Nodes from ' + item.fp_1.io_1 + ' ');
|
|
803
|
+
var tmp$ret$3 = AvroJsonEmitter_getInstance().l4a(item);
|
|
443
804
|
destination.x(tmp$ret$3);
|
|
444
805
|
}
|
|
445
806
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
@@ -454,11 +815,11 @@ protoOf(AvroJsonEmitter).mo = function (ast, logger) {
|
|
|
454
815
|
// Inline function 'kotlinx.serialization.encodeToString' call
|
|
455
816
|
var this_4 = Default_getInstance();
|
|
456
817
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
457
|
-
var this_5 = this_4.
|
|
818
|
+
var this_5 = this_4.b26();
|
|
458
819
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
459
820
|
var this_6 = serializer(this_5, createKType(getKClass(KtList), arrayOf([createInvariantKTypeProjection(createKType(getKClass(Type_0), arrayOf([]), false))]), false));
|
|
460
821
|
var tmp$ret$9 = isInterface(this_6, KSerializer) ? this_6 : THROW_CCE();
|
|
461
|
-
var tmp$ret$7 = this_4.
|
|
822
|
+
var tmp$ret$7 = this_4.g2n(tmp$ret$9, item_0);
|
|
462
823
|
destination_0.x(tmp$ret$7);
|
|
463
824
|
}
|
|
464
825
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
@@ -475,40 +836,40 @@ protoOf(AvroJsonEmitter).mo = function (ast, logger) {
|
|
|
475
836
|
}
|
|
476
837
|
return _NonEmptyList___init__impl__fxd0xp(destination_1);
|
|
477
838
|
};
|
|
478
|
-
protoOf(AvroJsonEmitter).
|
|
479
|
-
return new EnumType('enum', _this__u8e3s4.
|
|
839
|
+
protoOf(AvroJsonEmitter).m4a = function (_this__u8e3s4) {
|
|
840
|
+
return new EnumType('enum', _this__u8e3s4.qs_1.o1(), VOID, toList(_this__u8e3s4.rs_1));
|
|
480
841
|
};
|
|
481
|
-
protoOf(AvroJsonEmitter).
|
|
482
|
-
var tmp = _this__u8e3s4.
|
|
842
|
+
protoOf(AvroJsonEmitter).n4a = function (_this__u8e3s4) {
|
|
843
|
+
var tmp = _this__u8e3s4.br_1.o1();
|
|
483
844
|
// Inline function 'kotlin.collections.map' call
|
|
484
|
-
var this_0 = _this__u8e3s4.
|
|
845
|
+
var this_0 = _this__u8e3s4.cr_1;
|
|
485
846
|
// Inline function 'kotlin.collections.mapTo' call
|
|
486
847
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
487
848
|
var _iterator__ex2g4s = this_0.t();
|
|
488
849
|
while (_iterator__ex2g4s.u()) {
|
|
489
850
|
var item = _iterator__ex2g4s.v();
|
|
490
|
-
var tmp$ret$2 = new SimpleType(item.
|
|
851
|
+
var tmp$ret$2 = new SimpleType(item.o1());
|
|
491
852
|
destination.x(tmp$ret$2);
|
|
492
853
|
}
|
|
493
854
|
return new UnionType(tmp, TypeList_init_$Create$(destination));
|
|
494
855
|
};
|
|
495
|
-
protoOf(AvroJsonEmitter).
|
|
856
|
+
protoOf(AvroJsonEmitter).o4a = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
496
857
|
var tmp;
|
|
497
858
|
if (_this__u8e3s4 instanceof Dict) {
|
|
498
|
-
tmp = new MapType('map', this.
|
|
859
|
+
tmp = new MapType('map', this.o4a(_this__u8e3s4.bq_1, module_0, hasEmitted));
|
|
499
860
|
} else {
|
|
500
861
|
if (_this__u8e3s4 instanceof Iterable) {
|
|
501
|
-
tmp = new ArrayType('array', this.
|
|
862
|
+
tmp = new ArrayType('array', this.o4a(_this__u8e3s4.yp_1, module_0, hasEmitted));
|
|
502
863
|
} else {
|
|
503
864
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
504
|
-
var type = _this__u8e3s4.
|
|
865
|
+
var type = _this__u8e3s4.t18_1;
|
|
505
866
|
var tmp_0;
|
|
506
867
|
if (type instanceof String_0) {
|
|
507
868
|
tmp_0 = new SimpleType('string');
|
|
508
869
|
} else {
|
|
509
870
|
if (type instanceof Integer) {
|
|
510
871
|
var tmp_1;
|
|
511
|
-
switch (type.
|
|
872
|
+
switch (type.b19_1.e3_1) {
|
|
512
873
|
case 0:
|
|
513
874
|
tmp_1 = new SimpleType('int');
|
|
514
875
|
break;
|
|
@@ -523,7 +884,7 @@ protoOf(AvroJsonEmitter).i49 = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
|
523
884
|
} else {
|
|
524
885
|
if (type instanceof Number_0) {
|
|
525
886
|
var tmp_2;
|
|
526
|
-
switch (type.
|
|
887
|
+
switch (type.w18_1.e3_1) {
|
|
527
888
|
case 0:
|
|
528
889
|
tmp_2 = new SimpleType('float');
|
|
529
890
|
break;
|
|
@@ -551,28 +912,28 @@ protoOf(AvroJsonEmitter).i49 = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
|
551
912
|
tmp = tmp_0;
|
|
552
913
|
} else {
|
|
553
914
|
if (_this__u8e3s4 instanceof Custom) {
|
|
554
|
-
var def = findType(this, module_0, _this__u8e3s4.
|
|
915
|
+
var def = findType(this, module_0, _this__u8e3s4.r18_1);
|
|
555
916
|
var tmp_3;
|
|
556
917
|
if (def instanceof Type) {
|
|
557
918
|
var tmp_4;
|
|
558
|
-
if (hasEmitted.
|
|
919
|
+
if (hasEmitted.i1(def.kp_1.o1())) {
|
|
559
920
|
// Inline function 'kotlin.let' call
|
|
560
|
-
var p0 = def.
|
|
921
|
+
var p0 = def.kp_1.o1();
|
|
561
922
|
tmp_4 = new SimpleType(p0);
|
|
562
923
|
} else {
|
|
563
924
|
// Inline function 'kotlin.also' call
|
|
564
|
-
hasEmitted.x(def.
|
|
565
|
-
tmp_4 = this.
|
|
925
|
+
hasEmitted.x(def.kp_1.o1());
|
|
926
|
+
tmp_4 = this.p4a(def, module_0, hasEmitted);
|
|
566
927
|
}
|
|
567
928
|
tmp_3 = tmp_4;
|
|
568
929
|
} else {
|
|
569
930
|
if (def instanceof Enum) {
|
|
570
|
-
tmp_3 = new SimpleType(def.
|
|
931
|
+
tmp_3 = new SimpleType(def.qs_1.o1());
|
|
571
932
|
} else {
|
|
572
933
|
if (def instanceof Refined) {
|
|
573
|
-
tmp_3 =
|
|
934
|
+
tmp_3 = this.o4a(def.ms_1, module_0, hasEmitted);
|
|
574
935
|
} else {
|
|
575
|
-
tmp_3 = new SimpleType(_this__u8e3s4.
|
|
936
|
+
tmp_3 = new SimpleType(_this__u8e3s4.r18_1);
|
|
576
937
|
}
|
|
577
938
|
}
|
|
578
939
|
}
|
|
@@ -595,40 +956,40 @@ protoOf(AvroJsonEmitter).i49 = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
|
595
956
|
}
|
|
596
957
|
return tmp;
|
|
597
958
|
};
|
|
598
|
-
protoOf(AvroJsonEmitter).
|
|
599
|
-
var ref = _this__u8e3s4.
|
|
959
|
+
protoOf(AvroJsonEmitter).q4a = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
960
|
+
var ref = _this__u8e3s4.pp_1;
|
|
600
961
|
var tmp;
|
|
601
962
|
if (ref instanceof Iterable) {
|
|
602
|
-
tmp = new ArrayType('array', this.
|
|
963
|
+
tmp = new ArrayType('array', this.o4a(ref.yp_1, module_0, hasEmitted));
|
|
603
964
|
} else {
|
|
604
|
-
tmp = this.
|
|
965
|
+
tmp = this.o4a(ref, module_0, hasEmitted);
|
|
605
966
|
}
|
|
606
967
|
return tmp;
|
|
607
968
|
};
|
|
608
|
-
protoOf(AvroJsonEmitter).
|
|
609
|
-
var tmp0_name = _this__u8e3s4.
|
|
969
|
+
protoOf(AvroJsonEmitter).p4a = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
970
|
+
var tmp0_name = _this__u8e3s4.kp_1.o1();
|
|
610
971
|
// Inline function 'kotlin.collections.map' call
|
|
611
|
-
var this_0 = get_fields(_this__u8e3s4.
|
|
972
|
+
var this_0 = get_fields(_this__u8e3s4.lp_1);
|
|
612
973
|
// Inline function 'kotlin.collections.mapTo' call
|
|
613
974
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
614
975
|
var _iterator__ex2g4s = this_0.t();
|
|
615
976
|
while (_iterator__ex2g4s.u()) {
|
|
616
977
|
var item = _iterator__ex2g4s.v();
|
|
617
|
-
var tmp = item.
|
|
978
|
+
var tmp = item.op_1.o1();
|
|
618
979
|
// Inline function 'kotlin.let' call
|
|
619
|
-
var type = AvroJsonEmitter_getInstance().
|
|
620
|
-
var tmp_0 = !item.
|
|
621
|
-
var tmp0_safe_receiver = item.
|
|
980
|
+
var type = AvroJsonEmitter_getInstance().q4a(item, module_0, hasEmitted);
|
|
981
|
+
var tmp_0 = !item.pp_1.ot() ? new TypeList([type]) : isNonNull_0(AvroJsonEmitter_getInstance(), item.qp_1) ? new TypeList([type, new SimpleType('null')]) : new TypeList([new SimpleType('null'), type]);
|
|
982
|
+
var tmp0_safe_receiver = item.qp_1;
|
|
622
983
|
var tmp$ret$2 = new Field_0(tmp, tmp_0, VOID, tmp0_safe_receiver == null ? null : toJsonElement(tmp0_safe_receiver));
|
|
623
984
|
destination.x(tmp$ret$2);
|
|
624
985
|
}
|
|
625
986
|
return new RecordType('record', tmp0_name, VOID, destination);
|
|
626
987
|
};
|
|
627
|
-
protoOf(AvroJsonEmitter).
|
|
988
|
+
protoOf(AvroJsonEmitter).l4a = function (module_0) {
|
|
628
989
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
629
990
|
var hasEmitted = ArrayList_init_$Create$_0();
|
|
630
991
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
631
|
-
var tmp0 =
|
|
992
|
+
var tmp0 = inDependencyOrder(module_0);
|
|
632
993
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
633
994
|
var destination = ArrayList_init_$Create$_0();
|
|
634
995
|
// Inline function 'kotlin.collections.forEach' call
|
|
@@ -637,13 +998,30 @@ protoOf(AvroJsonEmitter).f49 = function (module_0) {
|
|
|
637
998
|
var element = _iterator__ex2g4s.v();
|
|
638
999
|
var tmp;
|
|
639
1000
|
if (element instanceof Type) {
|
|
640
|
-
|
|
1001
|
+
// Inline function 'kotlin.takeUnless' call
|
|
1002
|
+
var tmp_0;
|
|
1003
|
+
if (!hasEmitted.i1(element.kp_1.o1())) {
|
|
1004
|
+
tmp_0 = element;
|
|
1005
|
+
} else {
|
|
1006
|
+
tmp_0 = null;
|
|
1007
|
+
}
|
|
1008
|
+
var tmp1_safe_receiver = tmp_0;
|
|
1009
|
+
var tmp_1;
|
|
1010
|
+
if (tmp1_safe_receiver == null) {
|
|
1011
|
+
tmp_1 = null;
|
|
1012
|
+
} else {
|
|
1013
|
+
// Inline function 'kotlin.also' call
|
|
1014
|
+
hasEmitted.x(tmp1_safe_receiver.kp_1.o1());
|
|
1015
|
+
tmp_1 = tmp1_safe_receiver;
|
|
1016
|
+
}
|
|
1017
|
+
var tmp2_safe_receiver = tmp_1;
|
|
1018
|
+
tmp = tmp2_safe_receiver == null ? null : AvroJsonEmitter_getInstance().p4a(tmp2_safe_receiver, module_0, hasEmitted);
|
|
641
1019
|
} else {
|
|
642
1020
|
if (element instanceof Enum) {
|
|
643
|
-
tmp = AvroJsonEmitter_getInstance().
|
|
1021
|
+
tmp = AvroJsonEmitter_getInstance().m4a(element);
|
|
644
1022
|
} else {
|
|
645
1023
|
if (element instanceof Union) {
|
|
646
|
-
tmp = AvroJsonEmitter_getInstance().
|
|
1024
|
+
tmp = AvroJsonEmitter_getInstance().n4a(element);
|
|
647
1025
|
} else {
|
|
648
1026
|
tmp = null;
|
|
649
1027
|
}
|
|
@@ -666,26 +1044,26 @@ function AvroJsonEmitter_getInstance() {
|
|
|
666
1044
|
return AvroJsonEmitter_instance;
|
|
667
1045
|
}
|
|
668
1046
|
function AvroJsonParser$parse$lambda($this$Json) {
|
|
669
|
-
$this$Json.
|
|
670
|
-
$this$Json.
|
|
1047
|
+
$this$Json.c2o_1 = true;
|
|
1048
|
+
$this$Json.d2o_1 = true;
|
|
671
1049
|
return Unit_instance;
|
|
672
1050
|
}
|
|
673
1051
|
function AvroJsonParser() {
|
|
674
1052
|
}
|
|
675
|
-
protoOf(AvroJsonParser).
|
|
1053
|
+
protoOf(AvroJsonParser).w48 = function (moduleContent, strict) {
|
|
676
1054
|
var json = Json(VOID, AvroJsonParser$parse$lambda);
|
|
677
1055
|
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
678
|
-
var string = moduleContent.
|
|
1056
|
+
var string = moduleContent.do_1;
|
|
679
1057
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
680
|
-
var this_0 = json.
|
|
1058
|
+
var this_0 = json.b26();
|
|
681
1059
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
682
1060
|
var this_1 = serializer(this_0, createKType(getKClass(Type_0), arrayOf([]), false));
|
|
683
1061
|
var tmp$ret$1 = isInterface(this_1, KSerializer) ? this_1 : THROW_CCE();
|
|
684
|
-
var avro = json.
|
|
685
|
-
var tmp = AvroConverter_getInstance().
|
|
1062
|
+
var avro = json.h2n(tmp$ret$1, string);
|
|
1063
|
+
var tmp = AvroConverter_getInstance().d4a(avro);
|
|
686
1064
|
var tmp_0;
|
|
687
1065
|
if (avro instanceof RecordType) {
|
|
688
|
-
tmp_0 = new Channel(null, emptyList(), new DefinitionIdentifier(avro.
|
|
1066
|
+
tmp_0 = new Channel(null, emptyList(), new DefinitionIdentifier(avro.s49_1), new Custom(avro.s49_1, false));
|
|
689
1067
|
} else {
|
|
690
1068
|
if (avro instanceof ArrayType) {
|
|
691
1069
|
// Inline function 'kotlin.TODO' call
|
|
@@ -740,7 +1118,7 @@ protoOf(AvroJsonParser).v47 = function (moduleContent, strict) {
|
|
|
740
1118
|
} else {
|
|
741
1119
|
tmp_1 = tmp1_elvis_lhs;
|
|
742
1120
|
}
|
|
743
|
-
return new Root(nonEmptyListOf(new Module(moduleContent.
|
|
1121
|
+
return new Root(nonEmptyListOf(new Module(moduleContent.co_1, tmp_1), []));
|
|
744
1122
|
};
|
|
745
1123
|
var AvroJsonParser_instance;
|
|
746
1124
|
function AvroJsonParser_getInstance() {
|
|
@@ -769,11 +1147,11 @@ function Companion_getInstance_0() {
|
|
|
769
1147
|
}
|
|
770
1148
|
function Companion_1() {
|
|
771
1149
|
}
|
|
772
|
-
protoOf(Companion_1).
|
|
1150
|
+
protoOf(Companion_1).p2p = function () {
|
|
773
1151
|
return TypeSerializer_getInstance();
|
|
774
1152
|
};
|
|
775
|
-
protoOf(Companion_1).
|
|
776
|
-
return this.
|
|
1153
|
+
protoOf(Companion_1).a2e = function (typeParamsSerializers) {
|
|
1154
|
+
return this.p2p();
|
|
777
1155
|
};
|
|
778
1156
|
var Companion_instance_1;
|
|
779
1157
|
function Companion_getInstance_1() {
|
|
@@ -788,50 +1166,50 @@ function Companion_getInstance_2() {
|
|
|
788
1166
|
function $serializer() {
|
|
789
1167
|
$serializer_instance = this;
|
|
790
1168
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.SimpleType', this, 1);
|
|
791
|
-
tmp0_serialDesc.
|
|
792
|
-
this.
|
|
1169
|
+
tmp0_serialDesc.a2d('value', false);
|
|
1170
|
+
this.r4a_1 = tmp0_serialDesc;
|
|
793
1171
|
}
|
|
794
|
-
protoOf($serializer).
|
|
795
|
-
var tmp0_desc = this.
|
|
796
|
-
var tmp1_output = encoder.
|
|
797
|
-
tmp1_output.
|
|
798
|
-
tmp1_output.
|
|
1172
|
+
protoOf($serializer).s4a = function (encoder, value) {
|
|
1173
|
+
var tmp0_desc = this.r4a_1;
|
|
1174
|
+
var tmp1_output = encoder.m25(tmp0_desc);
|
|
1175
|
+
tmp1_output.b27(tmp0_desc, 0, value.e49_1);
|
|
1176
|
+
tmp1_output.n25(tmp0_desc);
|
|
799
1177
|
};
|
|
800
|
-
protoOf($serializer).
|
|
801
|
-
return this.
|
|
1178
|
+
protoOf($serializer).o22 = function (encoder, value) {
|
|
1179
|
+
return this.s4a(encoder, value instanceof SimpleType ? value : THROW_CCE());
|
|
802
1180
|
};
|
|
803
|
-
protoOf($serializer).
|
|
804
|
-
var tmp0_desc = this.
|
|
1181
|
+
protoOf($serializer).p22 = function (decoder) {
|
|
1182
|
+
var tmp0_desc = this.r4a_1;
|
|
805
1183
|
var tmp1_flag = true;
|
|
806
1184
|
var tmp2_index = 0;
|
|
807
1185
|
var tmp3_bitMask0 = 0;
|
|
808
1186
|
var tmp4_local0 = null;
|
|
809
|
-
var tmp5_input = decoder.
|
|
810
|
-
if (tmp5_input.
|
|
811
|
-
tmp4_local0 = tmp5_input.
|
|
1187
|
+
var tmp5_input = decoder.m25(tmp0_desc);
|
|
1188
|
+
if (tmp5_input.c26()) {
|
|
1189
|
+
tmp4_local0 = tmp5_input.w25(tmp0_desc, 0);
|
|
812
1190
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
813
1191
|
} else
|
|
814
1192
|
while (tmp1_flag) {
|
|
815
|
-
tmp2_index = tmp5_input.
|
|
1193
|
+
tmp2_index = tmp5_input.d26(tmp0_desc);
|
|
816
1194
|
switch (tmp2_index) {
|
|
817
1195
|
case -1:
|
|
818
1196
|
tmp1_flag = false;
|
|
819
1197
|
break;
|
|
820
1198
|
case 0:
|
|
821
|
-
tmp4_local0 = tmp5_input.
|
|
1199
|
+
tmp4_local0 = tmp5_input.w25(tmp0_desc, 0);
|
|
822
1200
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
823
1201
|
break;
|
|
824
1202
|
default:
|
|
825
1203
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
826
1204
|
}
|
|
827
1205
|
}
|
|
828
|
-
tmp5_input.
|
|
1206
|
+
tmp5_input.n25(tmp0_desc);
|
|
829
1207
|
return SimpleType_init_$Create$(tmp3_bitMask0, tmp4_local0, null);
|
|
830
1208
|
};
|
|
831
|
-
protoOf($serializer).
|
|
832
|
-
return this.
|
|
1209
|
+
protoOf($serializer).n22 = function () {
|
|
1210
|
+
return this.r4a_1;
|
|
833
1211
|
};
|
|
834
|
-
protoOf($serializer).
|
|
1212
|
+
protoOf($serializer).p2d = function () {
|
|
835
1213
|
// Inline function 'kotlin.arrayOf' call
|
|
836
1214
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
837
1215
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -845,9 +1223,9 @@ function $serializer_getInstance() {
|
|
|
845
1223
|
}
|
|
846
1224
|
function SimpleType_init_$Init$(seen0, value, serializationConstructorMarker, $this) {
|
|
847
1225
|
if (!(1 === (1 & seen0))) {
|
|
848
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance().
|
|
1226
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance().r4a_1);
|
|
849
1227
|
}
|
|
850
|
-
$this.
|
|
1228
|
+
$this.e49_1 = value;
|
|
851
1229
|
return $this;
|
|
852
1230
|
}
|
|
853
1231
|
function SimpleType_init_$Create$(seen0, value, serializationConstructorMarker) {
|
|
@@ -863,9 +1241,9 @@ function Companion_3() {
|
|
|
863
1241
|
// Inline function 'kotlin.arrayOf' call
|
|
864
1242
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
865
1243
|
// Inline function 'kotlin.js.asDynamic' call
|
|
866
|
-
tmp.
|
|
1244
|
+
tmp.t4a_1 = [null, null, null, lazy(tmp_0, AvroModel$RecordType$Companion$$childSerializers$_anonymous__y3fmeq), null];
|
|
867
1245
|
}
|
|
868
|
-
protoOf(Companion_3).
|
|
1246
|
+
protoOf(Companion_3).p2p = function () {
|
|
869
1247
|
return $serializer_getInstance_0();
|
|
870
1248
|
};
|
|
871
1249
|
var Companion_instance_3;
|
|
@@ -877,33 +1255,33 @@ function Companion_getInstance_3() {
|
|
|
877
1255
|
function $serializer_0() {
|
|
878
1256
|
$serializer_instance_0 = this;
|
|
879
1257
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.RecordType', this, 5);
|
|
880
|
-
tmp0_serialDesc.
|
|
881
|
-
tmp0_serialDesc.
|
|
882
|
-
tmp0_serialDesc.
|
|
883
|
-
tmp0_serialDesc.
|
|
884
|
-
tmp0_serialDesc.
|
|
885
|
-
this.
|
|
886
|
-
}
|
|
887
|
-
protoOf($serializer_0).
|
|
888
|
-
var tmp0_desc = this.
|
|
889
|
-
var tmp1_output = encoder.
|
|
890
|
-
var tmp2_cached = Companion_getInstance_3().
|
|
891
|
-
tmp1_output.
|
|
892
|
-
tmp1_output.
|
|
893
|
-
if (tmp1_output.
|
|
894
|
-
tmp1_output.
|
|
895
|
-
}
|
|
896
|
-
tmp1_output.
|
|
897
|
-
if (tmp1_output.
|
|
898
|
-
tmp1_output.
|
|
899
|
-
}
|
|
900
|
-
tmp1_output.
|
|
901
|
-
};
|
|
902
|
-
protoOf($serializer_0).
|
|
903
|
-
return this.
|
|
904
|
-
};
|
|
905
|
-
protoOf($serializer_0).
|
|
906
|
-
var tmp0_desc = this.
|
|
1258
|
+
tmp0_serialDesc.a2d('type', false);
|
|
1259
|
+
tmp0_serialDesc.a2d('name', false);
|
|
1260
|
+
tmp0_serialDesc.a2d('namespace', true);
|
|
1261
|
+
tmp0_serialDesc.a2d('fields', false);
|
|
1262
|
+
tmp0_serialDesc.a2d('doc', true);
|
|
1263
|
+
this.u4a_1 = tmp0_serialDesc;
|
|
1264
|
+
}
|
|
1265
|
+
protoOf($serializer_0).v4a = function (encoder, value) {
|
|
1266
|
+
var tmp0_desc = this.u4a_1;
|
|
1267
|
+
var tmp1_output = encoder.m25(tmp0_desc);
|
|
1268
|
+
var tmp2_cached = Companion_getInstance_3().t4a_1;
|
|
1269
|
+
tmp1_output.b27(tmp0_desc, 0, value.r49_1);
|
|
1270
|
+
tmp1_output.b27(tmp0_desc, 1, value.s49_1);
|
|
1271
|
+
if (tmp1_output.j27(tmp0_desc, 2) ? true : !(value.t49_1 == null)) {
|
|
1272
|
+
tmp1_output.f27(tmp0_desc, 2, StringSerializer_getInstance(), value.t49_1);
|
|
1273
|
+
}
|
|
1274
|
+
tmp1_output.d27(tmp0_desc, 3, tmp2_cached[3].o1(), value.u49_1);
|
|
1275
|
+
if (tmp1_output.j27(tmp0_desc, 4) ? true : !(value.v49_1 == null)) {
|
|
1276
|
+
tmp1_output.f27(tmp0_desc, 4, StringSerializer_getInstance(), value.v49_1);
|
|
1277
|
+
}
|
|
1278
|
+
tmp1_output.n25(tmp0_desc);
|
|
1279
|
+
};
|
|
1280
|
+
protoOf($serializer_0).o22 = function (encoder, value) {
|
|
1281
|
+
return this.v4a(encoder, value instanceof RecordType ? value : THROW_CCE());
|
|
1282
|
+
};
|
|
1283
|
+
protoOf($serializer_0).p22 = function (decoder) {
|
|
1284
|
+
var tmp0_desc = this.u4a_1;
|
|
907
1285
|
var tmp1_flag = true;
|
|
908
1286
|
var tmp2_index = 0;
|
|
909
1287
|
var tmp3_bitMask0 = 0;
|
|
@@ -912,62 +1290,62 @@ protoOf($serializer_0).p21 = function (decoder) {
|
|
|
912
1290
|
var tmp6_local2 = null;
|
|
913
1291
|
var tmp7_local3 = null;
|
|
914
1292
|
var tmp8_local4 = null;
|
|
915
|
-
var tmp9_input = decoder.
|
|
916
|
-
var tmp10_cached = Companion_getInstance_3().
|
|
917
|
-
if (tmp9_input.
|
|
918
|
-
tmp4_local0 = tmp9_input.
|
|
1293
|
+
var tmp9_input = decoder.m25(tmp0_desc);
|
|
1294
|
+
var tmp10_cached = Companion_getInstance_3().t4a_1;
|
|
1295
|
+
if (tmp9_input.c26()) {
|
|
1296
|
+
tmp4_local0 = tmp9_input.w25(tmp0_desc, 0);
|
|
919
1297
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
920
|
-
tmp5_local1 = tmp9_input.
|
|
1298
|
+
tmp5_local1 = tmp9_input.w25(tmp0_desc, 1);
|
|
921
1299
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
922
|
-
tmp6_local2 = tmp9_input.
|
|
1300
|
+
tmp6_local2 = tmp9_input.a26(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
923
1301
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
924
|
-
tmp7_local3 = tmp9_input.
|
|
1302
|
+
tmp7_local3 = tmp9_input.y25(tmp0_desc, 3, tmp10_cached[3].o1(), tmp7_local3);
|
|
925
1303
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
926
|
-
tmp8_local4 = tmp9_input.
|
|
1304
|
+
tmp8_local4 = tmp9_input.a26(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
|
|
927
1305
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
928
1306
|
} else
|
|
929
1307
|
while (tmp1_flag) {
|
|
930
|
-
tmp2_index = tmp9_input.
|
|
1308
|
+
tmp2_index = tmp9_input.d26(tmp0_desc);
|
|
931
1309
|
switch (tmp2_index) {
|
|
932
1310
|
case -1:
|
|
933
1311
|
tmp1_flag = false;
|
|
934
1312
|
break;
|
|
935
1313
|
case 0:
|
|
936
|
-
tmp4_local0 = tmp9_input.
|
|
1314
|
+
tmp4_local0 = tmp9_input.w25(tmp0_desc, 0);
|
|
937
1315
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
938
1316
|
break;
|
|
939
1317
|
case 1:
|
|
940
|
-
tmp5_local1 = tmp9_input.
|
|
1318
|
+
tmp5_local1 = tmp9_input.w25(tmp0_desc, 1);
|
|
941
1319
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
942
1320
|
break;
|
|
943
1321
|
case 2:
|
|
944
|
-
tmp6_local2 = tmp9_input.
|
|
1322
|
+
tmp6_local2 = tmp9_input.a26(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
945
1323
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
946
1324
|
break;
|
|
947
1325
|
case 3:
|
|
948
|
-
tmp7_local3 = tmp9_input.
|
|
1326
|
+
tmp7_local3 = tmp9_input.y25(tmp0_desc, 3, tmp10_cached[3].o1(), tmp7_local3);
|
|
949
1327
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
950
1328
|
break;
|
|
951
1329
|
case 4:
|
|
952
|
-
tmp8_local4 = tmp9_input.
|
|
1330
|
+
tmp8_local4 = tmp9_input.a26(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
|
|
953
1331
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
954
1332
|
break;
|
|
955
1333
|
default:
|
|
956
1334
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
957
1335
|
}
|
|
958
1336
|
}
|
|
959
|
-
tmp9_input.
|
|
1337
|
+
tmp9_input.n25(tmp0_desc);
|
|
960
1338
|
return RecordType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null);
|
|
961
1339
|
};
|
|
962
|
-
protoOf($serializer_0).
|
|
963
|
-
return this.
|
|
1340
|
+
protoOf($serializer_0).n22 = function () {
|
|
1341
|
+
return this.u4a_1;
|
|
964
1342
|
};
|
|
965
|
-
protoOf($serializer_0).
|
|
966
|
-
var tmp0_cached = Companion_getInstance_3().
|
|
1343
|
+
protoOf($serializer_0).p2d = function () {
|
|
1344
|
+
var tmp0_cached = Companion_getInstance_3().t4a_1;
|
|
967
1345
|
// Inline function 'kotlin.arrayOf' call
|
|
968
1346
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
969
1347
|
// Inline function 'kotlin.js.asDynamic' call
|
|
970
|
-
return [StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), tmp0_cached[3].
|
|
1348
|
+
return [StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), tmp0_cached[3].o1(), get_nullable(StringSerializer_getInstance())];
|
|
971
1349
|
};
|
|
972
1350
|
var $serializer_instance_0;
|
|
973
1351
|
function $serializer_getInstance_0() {
|
|
@@ -977,19 +1355,19 @@ function $serializer_getInstance_0() {
|
|
|
977
1355
|
}
|
|
978
1356
|
function RecordType_init_$Init$(seen0, type, name, namespace, fields, doc, serializationConstructorMarker, $this) {
|
|
979
1357
|
if (!(11 === (11 & seen0))) {
|
|
980
|
-
throwMissingFieldException(seen0, 11, $serializer_getInstance_0().
|
|
1358
|
+
throwMissingFieldException(seen0, 11, $serializer_getInstance_0().u4a_1);
|
|
981
1359
|
}
|
|
982
|
-
$this.
|
|
983
|
-
$this.
|
|
1360
|
+
$this.r49_1 = type;
|
|
1361
|
+
$this.s49_1 = name;
|
|
984
1362
|
if (0 === (seen0 & 4))
|
|
985
|
-
$this.
|
|
1363
|
+
$this.t49_1 = null;
|
|
986
1364
|
else
|
|
987
|
-
$this.
|
|
988
|
-
$this.
|
|
1365
|
+
$this.t49_1 = namespace;
|
|
1366
|
+
$this.u49_1 = fields;
|
|
989
1367
|
if (0 === (seen0 & 16))
|
|
990
|
-
$this.
|
|
1368
|
+
$this.v49_1 = null;
|
|
991
1369
|
else
|
|
992
|
-
$this.
|
|
1370
|
+
$this.v49_1 = doc;
|
|
993
1371
|
return $this;
|
|
994
1372
|
}
|
|
995
1373
|
function RecordType_init_$Create$(seen0, type, name, namespace, fields, doc, serializationConstructorMarker) {
|
|
@@ -997,7 +1375,7 @@ function RecordType_init_$Create$(seen0, type, name, namespace, fields, doc, ser
|
|
|
997
1375
|
}
|
|
998
1376
|
function Companion_4() {
|
|
999
1377
|
}
|
|
1000
|
-
protoOf(Companion_4).
|
|
1378
|
+
protoOf(Companion_4).p2p = function () {
|
|
1001
1379
|
return $serializer_getInstance_1();
|
|
1002
1380
|
};
|
|
1003
1381
|
var Companion_instance_4;
|
|
@@ -1007,59 +1385,59 @@ function Companion_getInstance_4() {
|
|
|
1007
1385
|
function $serializer_1() {
|
|
1008
1386
|
$serializer_instance_1 = this;
|
|
1009
1387
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.ArrayType', this, 2);
|
|
1010
|
-
tmp0_serialDesc.
|
|
1011
|
-
tmp0_serialDesc.
|
|
1012
|
-
this.
|
|
1013
|
-
}
|
|
1014
|
-
protoOf($serializer_1).
|
|
1015
|
-
var tmp0_desc = this.
|
|
1016
|
-
var tmp1_output = encoder.
|
|
1017
|
-
tmp1_output.
|
|
1018
|
-
tmp1_output.
|
|
1019
|
-
tmp1_output.
|
|
1020
|
-
};
|
|
1021
|
-
protoOf($serializer_1).
|
|
1022
|
-
return this.
|
|
1023
|
-
};
|
|
1024
|
-
protoOf($serializer_1).
|
|
1025
|
-
var tmp0_desc = this.
|
|
1388
|
+
tmp0_serialDesc.a2d('type', false);
|
|
1389
|
+
tmp0_serialDesc.a2d('items', false);
|
|
1390
|
+
this.w4a_1 = tmp0_serialDesc;
|
|
1391
|
+
}
|
|
1392
|
+
protoOf($serializer_1).x4a = function (encoder, value) {
|
|
1393
|
+
var tmp0_desc = this.w4a_1;
|
|
1394
|
+
var tmp1_output = encoder.m25(tmp0_desc);
|
|
1395
|
+
tmp1_output.b27(tmp0_desc, 0, value.w49_1);
|
|
1396
|
+
tmp1_output.d27(tmp0_desc, 1, TypeSerializer_getInstance(), value.x49_1);
|
|
1397
|
+
tmp1_output.n25(tmp0_desc);
|
|
1398
|
+
};
|
|
1399
|
+
protoOf($serializer_1).o22 = function (encoder, value) {
|
|
1400
|
+
return this.x4a(encoder, value instanceof ArrayType ? value : THROW_CCE());
|
|
1401
|
+
};
|
|
1402
|
+
protoOf($serializer_1).p22 = function (decoder) {
|
|
1403
|
+
var tmp0_desc = this.w4a_1;
|
|
1026
1404
|
var tmp1_flag = true;
|
|
1027
1405
|
var tmp2_index = 0;
|
|
1028
1406
|
var tmp3_bitMask0 = 0;
|
|
1029
1407
|
var tmp4_local0 = null;
|
|
1030
1408
|
var tmp5_local1 = null;
|
|
1031
|
-
var tmp6_input = decoder.
|
|
1032
|
-
if (tmp6_input.
|
|
1033
|
-
tmp4_local0 = tmp6_input.
|
|
1409
|
+
var tmp6_input = decoder.m25(tmp0_desc);
|
|
1410
|
+
if (tmp6_input.c26()) {
|
|
1411
|
+
tmp4_local0 = tmp6_input.w25(tmp0_desc, 0);
|
|
1034
1412
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1035
|
-
tmp5_local1 = tmp6_input.
|
|
1413
|
+
tmp5_local1 = tmp6_input.y25(tmp0_desc, 1, TypeSerializer_getInstance(), tmp5_local1);
|
|
1036
1414
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1037
1415
|
} else
|
|
1038
1416
|
while (tmp1_flag) {
|
|
1039
|
-
tmp2_index = tmp6_input.
|
|
1417
|
+
tmp2_index = tmp6_input.d26(tmp0_desc);
|
|
1040
1418
|
switch (tmp2_index) {
|
|
1041
1419
|
case -1:
|
|
1042
1420
|
tmp1_flag = false;
|
|
1043
1421
|
break;
|
|
1044
1422
|
case 0:
|
|
1045
|
-
tmp4_local0 = tmp6_input.
|
|
1423
|
+
tmp4_local0 = tmp6_input.w25(tmp0_desc, 0);
|
|
1046
1424
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1047
1425
|
break;
|
|
1048
1426
|
case 1:
|
|
1049
|
-
tmp5_local1 = tmp6_input.
|
|
1427
|
+
tmp5_local1 = tmp6_input.y25(tmp0_desc, 1, TypeSerializer_getInstance(), tmp5_local1);
|
|
1050
1428
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1051
1429
|
break;
|
|
1052
1430
|
default:
|
|
1053
1431
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1054
1432
|
}
|
|
1055
1433
|
}
|
|
1056
|
-
tmp6_input.
|
|
1434
|
+
tmp6_input.n25(tmp0_desc);
|
|
1057
1435
|
return ArrayType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1058
1436
|
};
|
|
1059
|
-
protoOf($serializer_1).
|
|
1060
|
-
return this.
|
|
1437
|
+
protoOf($serializer_1).n22 = function () {
|
|
1438
|
+
return this.w4a_1;
|
|
1061
1439
|
};
|
|
1062
|
-
protoOf($serializer_1).
|
|
1440
|
+
protoOf($serializer_1).p2d = function () {
|
|
1063
1441
|
// Inline function 'kotlin.arrayOf' call
|
|
1064
1442
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1065
1443
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1073,10 +1451,10 @@ function $serializer_getInstance_1() {
|
|
|
1073
1451
|
}
|
|
1074
1452
|
function ArrayType_init_$Init$(seen0, type, items, serializationConstructorMarker, $this) {
|
|
1075
1453
|
if (!(3 === (3 & seen0))) {
|
|
1076
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_1().
|
|
1454
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_1().w4a_1);
|
|
1077
1455
|
}
|
|
1078
|
-
$this.
|
|
1079
|
-
$this.
|
|
1456
|
+
$this.w49_1 = type;
|
|
1457
|
+
$this.x49_1 = items;
|
|
1080
1458
|
return $this;
|
|
1081
1459
|
}
|
|
1082
1460
|
function ArrayType_init_$Create$(seen0, type, items, serializationConstructorMarker) {
|
|
@@ -1084,7 +1462,7 @@ function ArrayType_init_$Create$(seen0, type, items, serializationConstructorMar
|
|
|
1084
1462
|
}
|
|
1085
1463
|
function Companion_5() {
|
|
1086
1464
|
}
|
|
1087
|
-
protoOf(Companion_5).
|
|
1465
|
+
protoOf(Companion_5).p2p = function () {
|
|
1088
1466
|
return $serializer_getInstance_2();
|
|
1089
1467
|
};
|
|
1090
1468
|
var Companion_instance_5;
|
|
@@ -1094,59 +1472,59 @@ function Companion_getInstance_5() {
|
|
|
1094
1472
|
function $serializer_2() {
|
|
1095
1473
|
$serializer_instance_2 = this;
|
|
1096
1474
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.MapType', this, 2);
|
|
1097
|
-
tmp0_serialDesc.
|
|
1098
|
-
tmp0_serialDesc.
|
|
1099
|
-
this.
|
|
1100
|
-
}
|
|
1101
|
-
protoOf($serializer_2).
|
|
1102
|
-
var tmp0_desc = this.
|
|
1103
|
-
var tmp1_output = encoder.
|
|
1104
|
-
tmp1_output.
|
|
1105
|
-
tmp1_output.
|
|
1106
|
-
tmp1_output.
|
|
1107
|
-
};
|
|
1108
|
-
protoOf($serializer_2).
|
|
1109
|
-
return this.
|
|
1110
|
-
};
|
|
1111
|
-
protoOf($serializer_2).
|
|
1112
|
-
var tmp0_desc = this.
|
|
1475
|
+
tmp0_serialDesc.a2d('type', false);
|
|
1476
|
+
tmp0_serialDesc.a2d('values', false);
|
|
1477
|
+
this.y4a_1 = tmp0_serialDesc;
|
|
1478
|
+
}
|
|
1479
|
+
protoOf($serializer_2).z4a = function (encoder, value) {
|
|
1480
|
+
var tmp0_desc = this.y4a_1;
|
|
1481
|
+
var tmp1_output = encoder.m25(tmp0_desc);
|
|
1482
|
+
tmp1_output.b27(tmp0_desc, 0, value.h49_1);
|
|
1483
|
+
tmp1_output.d27(tmp0_desc, 1, TypeSerializer_getInstance(), value.i49_1);
|
|
1484
|
+
tmp1_output.n25(tmp0_desc);
|
|
1485
|
+
};
|
|
1486
|
+
protoOf($serializer_2).o22 = function (encoder, value) {
|
|
1487
|
+
return this.z4a(encoder, value instanceof MapType ? value : THROW_CCE());
|
|
1488
|
+
};
|
|
1489
|
+
protoOf($serializer_2).p22 = function (decoder) {
|
|
1490
|
+
var tmp0_desc = this.y4a_1;
|
|
1113
1491
|
var tmp1_flag = true;
|
|
1114
1492
|
var tmp2_index = 0;
|
|
1115
1493
|
var tmp3_bitMask0 = 0;
|
|
1116
1494
|
var tmp4_local0 = null;
|
|
1117
1495
|
var tmp5_local1 = null;
|
|
1118
|
-
var tmp6_input = decoder.
|
|
1119
|
-
if (tmp6_input.
|
|
1120
|
-
tmp4_local0 = tmp6_input.
|
|
1496
|
+
var tmp6_input = decoder.m25(tmp0_desc);
|
|
1497
|
+
if (tmp6_input.c26()) {
|
|
1498
|
+
tmp4_local0 = tmp6_input.w25(tmp0_desc, 0);
|
|
1121
1499
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1122
|
-
tmp5_local1 = tmp6_input.
|
|
1500
|
+
tmp5_local1 = tmp6_input.y25(tmp0_desc, 1, TypeSerializer_getInstance(), tmp5_local1);
|
|
1123
1501
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1124
1502
|
} else
|
|
1125
1503
|
while (tmp1_flag) {
|
|
1126
|
-
tmp2_index = tmp6_input.
|
|
1504
|
+
tmp2_index = tmp6_input.d26(tmp0_desc);
|
|
1127
1505
|
switch (tmp2_index) {
|
|
1128
1506
|
case -1:
|
|
1129
1507
|
tmp1_flag = false;
|
|
1130
1508
|
break;
|
|
1131
1509
|
case 0:
|
|
1132
|
-
tmp4_local0 = tmp6_input.
|
|
1510
|
+
tmp4_local0 = tmp6_input.w25(tmp0_desc, 0);
|
|
1133
1511
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1134
1512
|
break;
|
|
1135
1513
|
case 1:
|
|
1136
|
-
tmp5_local1 = tmp6_input.
|
|
1514
|
+
tmp5_local1 = tmp6_input.y25(tmp0_desc, 1, TypeSerializer_getInstance(), tmp5_local1);
|
|
1137
1515
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1138
1516
|
break;
|
|
1139
1517
|
default:
|
|
1140
1518
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1141
1519
|
}
|
|
1142
1520
|
}
|
|
1143
|
-
tmp6_input.
|
|
1521
|
+
tmp6_input.n25(tmp0_desc);
|
|
1144
1522
|
return MapType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1145
1523
|
};
|
|
1146
|
-
protoOf($serializer_2).
|
|
1147
|
-
return this.
|
|
1524
|
+
protoOf($serializer_2).n22 = function () {
|
|
1525
|
+
return this.y4a_1;
|
|
1148
1526
|
};
|
|
1149
|
-
protoOf($serializer_2).
|
|
1527
|
+
protoOf($serializer_2).p2d = function () {
|
|
1150
1528
|
// Inline function 'kotlin.arrayOf' call
|
|
1151
1529
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1152
1530
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1160,10 +1538,10 @@ function $serializer_getInstance_2() {
|
|
|
1160
1538
|
}
|
|
1161
1539
|
function MapType_init_$Init$(seen0, type, values, serializationConstructorMarker, $this) {
|
|
1162
1540
|
if (!(3 === (3 & seen0))) {
|
|
1163
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().
|
|
1541
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().y4a_1);
|
|
1164
1542
|
}
|
|
1165
|
-
$this.
|
|
1166
|
-
$this.
|
|
1543
|
+
$this.h49_1 = type;
|
|
1544
|
+
$this.i49_1 = values;
|
|
1167
1545
|
return $this;
|
|
1168
1546
|
}
|
|
1169
1547
|
function MapType_init_$Create$(seen0, type, values, serializationConstructorMarker) {
|
|
@@ -1179,9 +1557,9 @@ function Companion_6() {
|
|
|
1179
1557
|
// Inline function 'kotlin.arrayOf' call
|
|
1180
1558
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1181
1559
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1182
|
-
tmp.
|
|
1560
|
+
tmp.a4b_1 = [null, null, null, lazy(tmp_0, AvroModel$EnumType$Companion$$childSerializers$_anonymous__vqfr9a)];
|
|
1183
1561
|
}
|
|
1184
|
-
protoOf(Companion_6).
|
|
1562
|
+
protoOf(Companion_6).p2p = function () {
|
|
1185
1563
|
return $serializer_getInstance_3();
|
|
1186
1564
|
};
|
|
1187
1565
|
var Companion_instance_6;
|
|
@@ -1193,29 +1571,29 @@ function Companion_getInstance_6() {
|
|
|
1193
1571
|
function $serializer_3() {
|
|
1194
1572
|
$serializer_instance_3 = this;
|
|
1195
1573
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.EnumType', this, 4);
|
|
1196
|
-
tmp0_serialDesc.
|
|
1197
|
-
tmp0_serialDesc.
|
|
1198
|
-
tmp0_serialDesc.
|
|
1199
|
-
tmp0_serialDesc.
|
|
1200
|
-
this.
|
|
1201
|
-
}
|
|
1202
|
-
protoOf($serializer_3).
|
|
1203
|
-
var tmp0_desc = this.
|
|
1204
|
-
var tmp1_output = encoder.
|
|
1205
|
-
var tmp2_cached = Companion_getInstance_6().
|
|
1206
|
-
tmp1_output.
|
|
1207
|
-
tmp1_output.
|
|
1208
|
-
if (tmp1_output.
|
|
1209
|
-
tmp1_output.
|
|
1210
|
-
}
|
|
1211
|
-
tmp1_output.
|
|
1212
|
-
tmp1_output.
|
|
1213
|
-
};
|
|
1214
|
-
protoOf($serializer_3).
|
|
1215
|
-
return this.
|
|
1216
|
-
};
|
|
1217
|
-
protoOf($serializer_3).
|
|
1218
|
-
var tmp0_desc = this.
|
|
1574
|
+
tmp0_serialDesc.a2d('type', false);
|
|
1575
|
+
tmp0_serialDesc.a2d('name', false);
|
|
1576
|
+
tmp0_serialDesc.a2d('doc', true);
|
|
1577
|
+
tmp0_serialDesc.a2d('symbols', false);
|
|
1578
|
+
this.b4b_1 = tmp0_serialDesc;
|
|
1579
|
+
}
|
|
1580
|
+
protoOf($serializer_3).c4b = function (encoder, value) {
|
|
1581
|
+
var tmp0_desc = this.b4b_1;
|
|
1582
|
+
var tmp1_output = encoder.m25(tmp0_desc);
|
|
1583
|
+
var tmp2_cached = Companion_getInstance_6().a4b_1;
|
|
1584
|
+
tmp1_output.b27(tmp0_desc, 0, value.n49_1);
|
|
1585
|
+
tmp1_output.b27(tmp0_desc, 1, value.o49_1);
|
|
1586
|
+
if (tmp1_output.j27(tmp0_desc, 2) ? true : !(value.p49_1 == null)) {
|
|
1587
|
+
tmp1_output.f27(tmp0_desc, 2, StringSerializer_getInstance(), value.p49_1);
|
|
1588
|
+
}
|
|
1589
|
+
tmp1_output.d27(tmp0_desc, 3, tmp2_cached[3].o1(), value.q49_1);
|
|
1590
|
+
tmp1_output.n25(tmp0_desc);
|
|
1591
|
+
};
|
|
1592
|
+
protoOf($serializer_3).o22 = function (encoder, value) {
|
|
1593
|
+
return this.c4b(encoder, value instanceof EnumType ? value : THROW_CCE());
|
|
1594
|
+
};
|
|
1595
|
+
protoOf($serializer_3).p22 = function (decoder) {
|
|
1596
|
+
var tmp0_desc = this.b4b_1;
|
|
1219
1597
|
var tmp1_flag = true;
|
|
1220
1598
|
var tmp2_index = 0;
|
|
1221
1599
|
var tmp3_bitMask0 = 0;
|
|
@@ -1223,56 +1601,56 @@ protoOf($serializer_3).p21 = function (decoder) {
|
|
|
1223
1601
|
var tmp5_local1 = null;
|
|
1224
1602
|
var tmp6_local2 = null;
|
|
1225
1603
|
var tmp7_local3 = null;
|
|
1226
|
-
var tmp8_input = decoder.
|
|
1227
|
-
var tmp9_cached = Companion_getInstance_6().
|
|
1228
|
-
if (tmp8_input.
|
|
1229
|
-
tmp4_local0 = tmp8_input.
|
|
1604
|
+
var tmp8_input = decoder.m25(tmp0_desc);
|
|
1605
|
+
var tmp9_cached = Companion_getInstance_6().a4b_1;
|
|
1606
|
+
if (tmp8_input.c26()) {
|
|
1607
|
+
tmp4_local0 = tmp8_input.w25(tmp0_desc, 0);
|
|
1230
1608
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1231
|
-
tmp5_local1 = tmp8_input.
|
|
1609
|
+
tmp5_local1 = tmp8_input.w25(tmp0_desc, 1);
|
|
1232
1610
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1233
|
-
tmp6_local2 = tmp8_input.
|
|
1611
|
+
tmp6_local2 = tmp8_input.a26(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1234
1612
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1235
|
-
tmp7_local3 = tmp8_input.
|
|
1613
|
+
tmp7_local3 = tmp8_input.y25(tmp0_desc, 3, tmp9_cached[3].o1(), tmp7_local3);
|
|
1236
1614
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1237
1615
|
} else
|
|
1238
1616
|
while (tmp1_flag) {
|
|
1239
|
-
tmp2_index = tmp8_input.
|
|
1617
|
+
tmp2_index = tmp8_input.d26(tmp0_desc);
|
|
1240
1618
|
switch (tmp2_index) {
|
|
1241
1619
|
case -1:
|
|
1242
1620
|
tmp1_flag = false;
|
|
1243
1621
|
break;
|
|
1244
1622
|
case 0:
|
|
1245
|
-
tmp4_local0 = tmp8_input.
|
|
1623
|
+
tmp4_local0 = tmp8_input.w25(tmp0_desc, 0);
|
|
1246
1624
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1247
1625
|
break;
|
|
1248
1626
|
case 1:
|
|
1249
|
-
tmp5_local1 = tmp8_input.
|
|
1627
|
+
tmp5_local1 = tmp8_input.w25(tmp0_desc, 1);
|
|
1250
1628
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1251
1629
|
break;
|
|
1252
1630
|
case 2:
|
|
1253
|
-
tmp6_local2 = tmp8_input.
|
|
1631
|
+
tmp6_local2 = tmp8_input.a26(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1254
1632
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1255
1633
|
break;
|
|
1256
1634
|
case 3:
|
|
1257
|
-
tmp7_local3 = tmp8_input.
|
|
1635
|
+
tmp7_local3 = tmp8_input.y25(tmp0_desc, 3, tmp9_cached[3].o1(), tmp7_local3);
|
|
1258
1636
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1259
1637
|
break;
|
|
1260
1638
|
default:
|
|
1261
1639
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1262
1640
|
}
|
|
1263
1641
|
}
|
|
1264
|
-
tmp8_input.
|
|
1642
|
+
tmp8_input.n25(tmp0_desc);
|
|
1265
1643
|
return EnumType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
1266
1644
|
};
|
|
1267
|
-
protoOf($serializer_3).
|
|
1268
|
-
return this.
|
|
1645
|
+
protoOf($serializer_3).n22 = function () {
|
|
1646
|
+
return this.b4b_1;
|
|
1269
1647
|
};
|
|
1270
|
-
protoOf($serializer_3).
|
|
1271
|
-
var tmp0_cached = Companion_getInstance_6().
|
|
1648
|
+
protoOf($serializer_3).p2d = function () {
|
|
1649
|
+
var tmp0_cached = Companion_getInstance_6().a4b_1;
|
|
1272
1650
|
// Inline function 'kotlin.arrayOf' call
|
|
1273
1651
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1274
1652
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1275
|
-
return [StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), tmp0_cached[3].
|
|
1653
|
+
return [StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), tmp0_cached[3].o1()];
|
|
1276
1654
|
};
|
|
1277
1655
|
var $serializer_instance_3;
|
|
1278
1656
|
function $serializer_getInstance_3() {
|
|
@@ -1282,15 +1660,15 @@ function $serializer_getInstance_3() {
|
|
|
1282
1660
|
}
|
|
1283
1661
|
function EnumType_init_$Init$(seen0, type, name, doc, symbols, serializationConstructorMarker, $this) {
|
|
1284
1662
|
if (!(11 === (11 & seen0))) {
|
|
1285
|
-
throwMissingFieldException(seen0, 11, $serializer_getInstance_3().
|
|
1663
|
+
throwMissingFieldException(seen0, 11, $serializer_getInstance_3().b4b_1);
|
|
1286
1664
|
}
|
|
1287
|
-
$this.
|
|
1288
|
-
$this.
|
|
1665
|
+
$this.n49_1 = type;
|
|
1666
|
+
$this.o49_1 = name;
|
|
1289
1667
|
if (0 === (seen0 & 4))
|
|
1290
|
-
$this.
|
|
1668
|
+
$this.p49_1 = null;
|
|
1291
1669
|
else
|
|
1292
|
-
$this.
|
|
1293
|
-
$this.
|
|
1670
|
+
$this.p49_1 = doc;
|
|
1671
|
+
$this.q49_1 = symbols;
|
|
1294
1672
|
return $this;
|
|
1295
1673
|
}
|
|
1296
1674
|
function EnumType_init_$Create$(seen0, type, name, doc, symbols, serializationConstructorMarker) {
|
|
@@ -1298,7 +1676,7 @@ function EnumType_init_$Create$(seen0, type, name, doc, symbols, serializationCo
|
|
|
1298
1676
|
}
|
|
1299
1677
|
function Companion_7() {
|
|
1300
1678
|
}
|
|
1301
|
-
protoOf(Companion_7).
|
|
1679
|
+
protoOf(Companion_7).p2p = function () {
|
|
1302
1680
|
return $serializer_getInstance_4();
|
|
1303
1681
|
};
|
|
1304
1682
|
var Companion_instance_7;
|
|
@@ -1308,59 +1686,59 @@ function Companion_getInstance_7() {
|
|
|
1308
1686
|
function $serializer_4() {
|
|
1309
1687
|
$serializer_instance_4 = this;
|
|
1310
1688
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.UnionType', this, 2);
|
|
1311
|
-
tmp0_serialDesc.
|
|
1312
|
-
tmp0_serialDesc.
|
|
1313
|
-
this.
|
|
1314
|
-
}
|
|
1315
|
-
protoOf($serializer_4).
|
|
1316
|
-
var tmp0_desc = this.
|
|
1317
|
-
var tmp1_output = encoder.
|
|
1318
|
-
tmp1_output.
|
|
1319
|
-
tmp1_output.
|
|
1320
|
-
tmp1_output.
|
|
1321
|
-
};
|
|
1322
|
-
protoOf($serializer_4).
|
|
1323
|
-
return this.
|
|
1324
|
-
};
|
|
1325
|
-
protoOf($serializer_4).
|
|
1326
|
-
var tmp0_desc = this.
|
|
1689
|
+
tmp0_serialDesc.a2d('name', false);
|
|
1690
|
+
tmp0_serialDesc.a2d('type', false);
|
|
1691
|
+
this.d4b_1 = tmp0_serialDesc;
|
|
1692
|
+
}
|
|
1693
|
+
protoOf($serializer_4).e4b = function (encoder, value) {
|
|
1694
|
+
var tmp0_desc = this.d4b_1;
|
|
1695
|
+
var tmp1_output = encoder.m25(tmp0_desc);
|
|
1696
|
+
tmp1_output.b27(tmp0_desc, 0, value.f49_1);
|
|
1697
|
+
tmp1_output.d27(tmp0_desc, 1, TypeListSerializer_getInstance(), value.g49_1);
|
|
1698
|
+
tmp1_output.n25(tmp0_desc);
|
|
1699
|
+
};
|
|
1700
|
+
protoOf($serializer_4).o22 = function (encoder, value) {
|
|
1701
|
+
return this.e4b(encoder, value instanceof UnionType ? value : THROW_CCE());
|
|
1702
|
+
};
|
|
1703
|
+
protoOf($serializer_4).p22 = function (decoder) {
|
|
1704
|
+
var tmp0_desc = this.d4b_1;
|
|
1327
1705
|
var tmp1_flag = true;
|
|
1328
1706
|
var tmp2_index = 0;
|
|
1329
1707
|
var tmp3_bitMask0 = 0;
|
|
1330
1708
|
var tmp4_local0 = null;
|
|
1331
1709
|
var tmp5_local1 = null;
|
|
1332
|
-
var tmp6_input = decoder.
|
|
1333
|
-
if (tmp6_input.
|
|
1334
|
-
tmp4_local0 = tmp6_input.
|
|
1710
|
+
var tmp6_input = decoder.m25(tmp0_desc);
|
|
1711
|
+
if (tmp6_input.c26()) {
|
|
1712
|
+
tmp4_local0 = tmp6_input.w25(tmp0_desc, 0);
|
|
1335
1713
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1336
|
-
tmp5_local1 = tmp6_input.
|
|
1714
|
+
tmp5_local1 = tmp6_input.y25(tmp0_desc, 1, TypeListSerializer_getInstance(), tmp5_local1);
|
|
1337
1715
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1338
1716
|
} else
|
|
1339
1717
|
while (tmp1_flag) {
|
|
1340
|
-
tmp2_index = tmp6_input.
|
|
1718
|
+
tmp2_index = tmp6_input.d26(tmp0_desc);
|
|
1341
1719
|
switch (tmp2_index) {
|
|
1342
1720
|
case -1:
|
|
1343
1721
|
tmp1_flag = false;
|
|
1344
1722
|
break;
|
|
1345
1723
|
case 0:
|
|
1346
|
-
tmp4_local0 = tmp6_input.
|
|
1724
|
+
tmp4_local0 = tmp6_input.w25(tmp0_desc, 0);
|
|
1347
1725
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1348
1726
|
break;
|
|
1349
1727
|
case 1:
|
|
1350
|
-
tmp5_local1 = tmp6_input.
|
|
1728
|
+
tmp5_local1 = tmp6_input.y25(tmp0_desc, 1, TypeListSerializer_getInstance(), tmp5_local1);
|
|
1351
1729
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1352
1730
|
break;
|
|
1353
1731
|
default:
|
|
1354
1732
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1355
1733
|
}
|
|
1356
1734
|
}
|
|
1357
|
-
tmp6_input.
|
|
1735
|
+
tmp6_input.n25(tmp0_desc);
|
|
1358
1736
|
return UnionType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1359
1737
|
};
|
|
1360
|
-
protoOf($serializer_4).
|
|
1361
|
-
return this.
|
|
1738
|
+
protoOf($serializer_4).n22 = function () {
|
|
1739
|
+
return this.d4b_1;
|
|
1362
1740
|
};
|
|
1363
|
-
protoOf($serializer_4).
|
|
1741
|
+
protoOf($serializer_4).p2d = function () {
|
|
1364
1742
|
// Inline function 'kotlin.arrayOf' call
|
|
1365
1743
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1366
1744
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1374,10 +1752,10 @@ function $serializer_getInstance_4() {
|
|
|
1374
1752
|
}
|
|
1375
1753
|
function UnionType_init_$Init$(seen0, name, type, serializationConstructorMarker, $this) {
|
|
1376
1754
|
if (!(3 === (3 & seen0))) {
|
|
1377
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_4().
|
|
1755
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_4().d4b_1);
|
|
1378
1756
|
}
|
|
1379
|
-
$this.
|
|
1380
|
-
$this.
|
|
1757
|
+
$this.f49_1 = name;
|
|
1758
|
+
$this.g49_1 = type;
|
|
1381
1759
|
return $this;
|
|
1382
1760
|
}
|
|
1383
1761
|
function UnionType_init_$Create$(seen0, name, type, serializationConstructorMarker) {
|
|
@@ -1385,7 +1763,7 @@ function UnionType_init_$Create$(seen0, name, type, serializationConstructorMark
|
|
|
1385
1763
|
}
|
|
1386
1764
|
function Companion_8() {
|
|
1387
1765
|
}
|
|
1388
|
-
protoOf(Companion_8).
|
|
1766
|
+
protoOf(Companion_8).p2p = function () {
|
|
1389
1767
|
return $serializer_getInstance_5();
|
|
1390
1768
|
};
|
|
1391
1769
|
var Companion_instance_8;
|
|
@@ -1395,30 +1773,30 @@ function Companion_getInstance_8() {
|
|
|
1395
1773
|
function $serializer_5() {
|
|
1396
1774
|
$serializer_instance_5 = this;
|
|
1397
1775
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.LogicalType', this, 4);
|
|
1398
|
-
tmp0_serialDesc.
|
|
1399
|
-
tmp0_serialDesc.
|
|
1400
|
-
tmp0_serialDesc.
|
|
1401
|
-
tmp0_serialDesc.
|
|
1402
|
-
this.
|
|
1403
|
-
}
|
|
1404
|
-
protoOf($serializer_5).
|
|
1405
|
-
var tmp0_desc = this.
|
|
1406
|
-
var tmp1_output = encoder.
|
|
1407
|
-
tmp1_output.
|
|
1408
|
-
tmp1_output.
|
|
1409
|
-
if (tmp1_output.
|
|
1410
|
-
tmp1_output.
|
|
1411
|
-
}
|
|
1412
|
-
if (tmp1_output.
|
|
1413
|
-
tmp1_output.
|
|
1414
|
-
}
|
|
1415
|
-
tmp1_output.
|
|
1416
|
-
};
|
|
1417
|
-
protoOf($serializer_5).
|
|
1418
|
-
return this.
|
|
1419
|
-
};
|
|
1420
|
-
protoOf($serializer_5).
|
|
1421
|
-
var tmp0_desc = this.
|
|
1776
|
+
tmp0_serialDesc.a2d('type', false);
|
|
1777
|
+
tmp0_serialDesc.a2d('logicalType', false);
|
|
1778
|
+
tmp0_serialDesc.a2d('precision', true);
|
|
1779
|
+
tmp0_serialDesc.a2d('scale', true);
|
|
1780
|
+
this.f4b_1 = tmp0_serialDesc;
|
|
1781
|
+
}
|
|
1782
|
+
protoOf($serializer_5).g4b = function (encoder, value) {
|
|
1783
|
+
var tmp0_desc = this.f4b_1;
|
|
1784
|
+
var tmp1_output = encoder.m25(tmp0_desc);
|
|
1785
|
+
tmp1_output.b27(tmp0_desc, 0, value.j49_1);
|
|
1786
|
+
tmp1_output.b27(tmp0_desc, 1, value.k49_1);
|
|
1787
|
+
if (tmp1_output.j27(tmp0_desc, 2) ? true : !(value.l49_1 == null)) {
|
|
1788
|
+
tmp1_output.f27(tmp0_desc, 2, IntSerializer_getInstance(), value.l49_1);
|
|
1789
|
+
}
|
|
1790
|
+
if (tmp1_output.j27(tmp0_desc, 3) ? true : !(value.m49_1 == null)) {
|
|
1791
|
+
tmp1_output.f27(tmp0_desc, 3, IntSerializer_getInstance(), value.m49_1);
|
|
1792
|
+
}
|
|
1793
|
+
tmp1_output.n25(tmp0_desc);
|
|
1794
|
+
};
|
|
1795
|
+
protoOf($serializer_5).o22 = function (encoder, value) {
|
|
1796
|
+
return this.g4b(encoder, value instanceof LogicalType ? value : THROW_CCE());
|
|
1797
|
+
};
|
|
1798
|
+
protoOf($serializer_5).p22 = function (decoder) {
|
|
1799
|
+
var tmp0_desc = this.f4b_1;
|
|
1422
1800
|
var tmp1_flag = true;
|
|
1423
1801
|
var tmp2_index = 0;
|
|
1424
1802
|
var tmp3_bitMask0 = 0;
|
|
@@ -1426,50 +1804,50 @@ protoOf($serializer_5).p21 = function (decoder) {
|
|
|
1426
1804
|
var tmp5_local1 = null;
|
|
1427
1805
|
var tmp6_local2 = null;
|
|
1428
1806
|
var tmp7_local3 = null;
|
|
1429
|
-
var tmp8_input = decoder.
|
|
1430
|
-
if (tmp8_input.
|
|
1431
|
-
tmp4_local0 = tmp8_input.
|
|
1807
|
+
var tmp8_input = decoder.m25(tmp0_desc);
|
|
1808
|
+
if (tmp8_input.c26()) {
|
|
1809
|
+
tmp4_local0 = tmp8_input.w25(tmp0_desc, 0);
|
|
1432
1810
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1433
|
-
tmp5_local1 = tmp8_input.
|
|
1811
|
+
tmp5_local1 = tmp8_input.w25(tmp0_desc, 1);
|
|
1434
1812
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1435
|
-
tmp6_local2 = tmp8_input.
|
|
1813
|
+
tmp6_local2 = tmp8_input.a26(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
|
|
1436
1814
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1437
|
-
tmp7_local3 = tmp8_input.
|
|
1815
|
+
tmp7_local3 = tmp8_input.a26(tmp0_desc, 3, IntSerializer_getInstance(), tmp7_local3);
|
|
1438
1816
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1439
1817
|
} else
|
|
1440
1818
|
while (tmp1_flag) {
|
|
1441
|
-
tmp2_index = tmp8_input.
|
|
1819
|
+
tmp2_index = tmp8_input.d26(tmp0_desc);
|
|
1442
1820
|
switch (tmp2_index) {
|
|
1443
1821
|
case -1:
|
|
1444
1822
|
tmp1_flag = false;
|
|
1445
1823
|
break;
|
|
1446
1824
|
case 0:
|
|
1447
|
-
tmp4_local0 = tmp8_input.
|
|
1825
|
+
tmp4_local0 = tmp8_input.w25(tmp0_desc, 0);
|
|
1448
1826
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1449
1827
|
break;
|
|
1450
1828
|
case 1:
|
|
1451
|
-
tmp5_local1 = tmp8_input.
|
|
1829
|
+
tmp5_local1 = tmp8_input.w25(tmp0_desc, 1);
|
|
1452
1830
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1453
1831
|
break;
|
|
1454
1832
|
case 2:
|
|
1455
|
-
tmp6_local2 = tmp8_input.
|
|
1833
|
+
tmp6_local2 = tmp8_input.a26(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
|
|
1456
1834
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1457
1835
|
break;
|
|
1458
1836
|
case 3:
|
|
1459
|
-
tmp7_local3 = tmp8_input.
|
|
1837
|
+
tmp7_local3 = tmp8_input.a26(tmp0_desc, 3, IntSerializer_getInstance(), tmp7_local3);
|
|
1460
1838
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1461
1839
|
break;
|
|
1462
1840
|
default:
|
|
1463
1841
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1464
1842
|
}
|
|
1465
1843
|
}
|
|
1466
|
-
tmp8_input.
|
|
1844
|
+
tmp8_input.n25(tmp0_desc);
|
|
1467
1845
|
return LogicalType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
1468
1846
|
};
|
|
1469
|
-
protoOf($serializer_5).
|
|
1470
|
-
return this.
|
|
1847
|
+
protoOf($serializer_5).n22 = function () {
|
|
1848
|
+
return this.f4b_1;
|
|
1471
1849
|
};
|
|
1472
|
-
protoOf($serializer_5).
|
|
1850
|
+
protoOf($serializer_5).p2d = function () {
|
|
1473
1851
|
// Inline function 'kotlin.arrayOf' call
|
|
1474
1852
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1475
1853
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1483,18 +1861,18 @@ function $serializer_getInstance_5() {
|
|
|
1483
1861
|
}
|
|
1484
1862
|
function LogicalType_init_$Init$(seen0, type, logicalType, precision, scale, serializationConstructorMarker, $this) {
|
|
1485
1863
|
if (!(3 === (3 & seen0))) {
|
|
1486
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_5().
|
|
1864
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_5().f4b_1);
|
|
1487
1865
|
}
|
|
1488
|
-
$this.
|
|
1489
|
-
$this.
|
|
1866
|
+
$this.j49_1 = type;
|
|
1867
|
+
$this.k49_1 = logicalType;
|
|
1490
1868
|
if (0 === (seen0 & 4))
|
|
1491
|
-
$this.
|
|
1869
|
+
$this.l49_1 = null;
|
|
1492
1870
|
else
|
|
1493
|
-
$this.
|
|
1871
|
+
$this.l49_1 = precision;
|
|
1494
1872
|
if (0 === (seen0 & 8))
|
|
1495
|
-
$this.
|
|
1873
|
+
$this.m49_1 = null;
|
|
1496
1874
|
else
|
|
1497
|
-
$this.
|
|
1875
|
+
$this.m49_1 = scale;
|
|
1498
1876
|
return $this;
|
|
1499
1877
|
}
|
|
1500
1878
|
function LogicalType_init_$Create$(seen0, type, logicalType, precision, scale, serializationConstructorMarker) {
|
|
@@ -1503,19 +1881,19 @@ function LogicalType_init_$Create$(seen0, type, logicalType, precision, scale, s
|
|
|
1503
1881
|
function Field_0(name, type, doc, default_0) {
|
|
1504
1882
|
doc = doc === VOID ? null : doc;
|
|
1505
1883
|
default_0 = default_0 === VOID ? null : default_0;
|
|
1506
|
-
this.
|
|
1507
|
-
this.
|
|
1508
|
-
this.
|
|
1509
|
-
this.
|
|
1884
|
+
this.y49_1 = name;
|
|
1885
|
+
this.z49_1 = type;
|
|
1886
|
+
this.a4a_1 = doc;
|
|
1887
|
+
this.b4a_1 = default_0;
|
|
1510
1888
|
}
|
|
1511
1889
|
protoOf(Field_0).toString = function () {
|
|
1512
|
-
return 'Field(name=' + this.
|
|
1890
|
+
return 'Field(name=' + this.y49_1 + ', type=' + this.z49_1.toString() + ', doc=' + this.a4a_1 + ', default=' + toString_1(this.b4a_1) + ')';
|
|
1513
1891
|
};
|
|
1514
1892
|
protoOf(Field_0).hashCode = function () {
|
|
1515
|
-
var result = getStringHashCode(this.
|
|
1516
|
-
result = imul(result, 31) + this.
|
|
1517
|
-
result = imul(result, 31) + (this.
|
|
1518
|
-
result = imul(result, 31) + (this.
|
|
1893
|
+
var result = getStringHashCode(this.y49_1);
|
|
1894
|
+
result = imul(result, 31) + this.z49_1.hashCode() | 0;
|
|
1895
|
+
result = imul(result, 31) + (this.a4a_1 == null ? 0 : getStringHashCode(this.a4a_1)) | 0;
|
|
1896
|
+
result = imul(result, 31) + (this.b4a_1 == null ? 0 : hashCode(this.b4a_1)) | 0;
|
|
1519
1897
|
return result;
|
|
1520
1898
|
};
|
|
1521
1899
|
protoOf(Field_0).equals = function (other) {
|
|
@@ -1523,44 +1901,44 @@ protoOf(Field_0).equals = function (other) {
|
|
|
1523
1901
|
return true;
|
|
1524
1902
|
if (!(other instanceof Field_0))
|
|
1525
1903
|
return false;
|
|
1526
|
-
if (!(this.
|
|
1904
|
+
if (!(this.y49_1 === other.y49_1))
|
|
1527
1905
|
return false;
|
|
1528
|
-
if (!this.
|
|
1906
|
+
if (!this.z49_1.equals(other.z49_1))
|
|
1529
1907
|
return false;
|
|
1530
|
-
if (!(this.
|
|
1908
|
+
if (!(this.a4a_1 == other.a4a_1))
|
|
1531
1909
|
return false;
|
|
1532
|
-
if (!equals(this.
|
|
1910
|
+
if (!equals(this.b4a_1, other.b4a_1))
|
|
1533
1911
|
return false;
|
|
1534
1912
|
return true;
|
|
1535
1913
|
};
|
|
1536
1914
|
function TypeList(type) {
|
|
1537
1915
|
AbstractList.call(this);
|
|
1538
|
-
this.
|
|
1539
|
-
this.
|
|
1916
|
+
this.h4b_1 = toList_0(type);
|
|
1917
|
+
this.i4b_1 = this.h4b_1.b1();
|
|
1540
1918
|
}
|
|
1541
1919
|
protoOf(TypeList).b1 = function () {
|
|
1542
|
-
return this.
|
|
1920
|
+
return this.i4b_1;
|
|
1543
1921
|
};
|
|
1544
1922
|
protoOf(TypeList).c1 = function (index) {
|
|
1545
|
-
return this.
|
|
1923
|
+
return this.h4b_1.c1(index);
|
|
1546
1924
|
};
|
|
1547
1925
|
function Type_0() {
|
|
1548
1926
|
}
|
|
1549
1927
|
function SimpleType(value) {
|
|
1550
|
-
this.
|
|
1928
|
+
this.e49_1 = value;
|
|
1551
1929
|
}
|
|
1552
1930
|
protoOf(SimpleType).toString = function () {
|
|
1553
|
-
return 'SimpleType(value=' + this.
|
|
1931
|
+
return 'SimpleType(value=' + this.e49_1 + ')';
|
|
1554
1932
|
};
|
|
1555
1933
|
protoOf(SimpleType).hashCode = function () {
|
|
1556
|
-
return getStringHashCode(this.
|
|
1934
|
+
return getStringHashCode(this.e49_1);
|
|
1557
1935
|
};
|
|
1558
1936
|
protoOf(SimpleType).equals = function (other) {
|
|
1559
1937
|
if (this === other)
|
|
1560
1938
|
return true;
|
|
1561
1939
|
if (!(other instanceof SimpleType))
|
|
1562
1940
|
return false;
|
|
1563
|
-
if (!(this.
|
|
1941
|
+
if (!(this.e49_1 === other.e49_1))
|
|
1564
1942
|
return false;
|
|
1565
1943
|
return true;
|
|
1566
1944
|
};
|
|
@@ -1568,21 +1946,21 @@ function RecordType(type, name, namespace, fields, doc) {
|
|
|
1568
1946
|
Companion_getInstance_3();
|
|
1569
1947
|
namespace = namespace === VOID ? null : namespace;
|
|
1570
1948
|
doc = doc === VOID ? null : doc;
|
|
1571
|
-
this.
|
|
1572
|
-
this.
|
|
1573
|
-
this.
|
|
1574
|
-
this.
|
|
1575
|
-
this.
|
|
1949
|
+
this.r49_1 = type;
|
|
1950
|
+
this.s49_1 = name;
|
|
1951
|
+
this.t49_1 = namespace;
|
|
1952
|
+
this.u49_1 = fields;
|
|
1953
|
+
this.v49_1 = doc;
|
|
1576
1954
|
}
|
|
1577
1955
|
protoOf(RecordType).toString = function () {
|
|
1578
|
-
return 'RecordType(type=' + this.
|
|
1956
|
+
return 'RecordType(type=' + this.r49_1 + ', name=' + this.s49_1 + ', namespace=' + this.t49_1 + ', fields=' + toString(this.u49_1) + ', doc=' + this.v49_1 + ')';
|
|
1579
1957
|
};
|
|
1580
1958
|
protoOf(RecordType).hashCode = function () {
|
|
1581
|
-
var result = getStringHashCode(this.
|
|
1582
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1583
|
-
result = imul(result, 31) + (this.
|
|
1584
|
-
result = imul(result, 31) + hashCode(this.
|
|
1585
|
-
result = imul(result, 31) + (this.
|
|
1959
|
+
var result = getStringHashCode(this.r49_1);
|
|
1960
|
+
result = imul(result, 31) + getStringHashCode(this.s49_1) | 0;
|
|
1961
|
+
result = imul(result, 31) + (this.t49_1 == null ? 0 : getStringHashCode(this.t49_1)) | 0;
|
|
1962
|
+
result = imul(result, 31) + hashCode(this.u49_1) | 0;
|
|
1963
|
+
result = imul(result, 31) + (this.v49_1 == null ? 0 : getStringHashCode(this.v49_1)) | 0;
|
|
1586
1964
|
return result;
|
|
1587
1965
|
};
|
|
1588
1966
|
protoOf(RecordType).equals = function (other) {
|
|
@@ -1590,28 +1968,28 @@ protoOf(RecordType).equals = function (other) {
|
|
|
1590
1968
|
return true;
|
|
1591
1969
|
if (!(other instanceof RecordType))
|
|
1592
1970
|
return false;
|
|
1593
|
-
if (!(this.
|
|
1971
|
+
if (!(this.r49_1 === other.r49_1))
|
|
1594
1972
|
return false;
|
|
1595
|
-
if (!(this.
|
|
1973
|
+
if (!(this.s49_1 === other.s49_1))
|
|
1596
1974
|
return false;
|
|
1597
|
-
if (!(this.
|
|
1975
|
+
if (!(this.t49_1 == other.t49_1))
|
|
1598
1976
|
return false;
|
|
1599
|
-
if (!equals(this.
|
|
1977
|
+
if (!equals(this.u49_1, other.u49_1))
|
|
1600
1978
|
return false;
|
|
1601
|
-
if (!(this.
|
|
1979
|
+
if (!(this.v49_1 == other.v49_1))
|
|
1602
1980
|
return false;
|
|
1603
1981
|
return true;
|
|
1604
1982
|
};
|
|
1605
1983
|
function ArrayType(type, items) {
|
|
1606
|
-
this.
|
|
1607
|
-
this.
|
|
1984
|
+
this.w49_1 = type;
|
|
1985
|
+
this.x49_1 = items;
|
|
1608
1986
|
}
|
|
1609
1987
|
protoOf(ArrayType).toString = function () {
|
|
1610
|
-
return 'ArrayType(type=' + this.
|
|
1988
|
+
return 'ArrayType(type=' + this.w49_1 + ', items=' + toString(this.x49_1) + ')';
|
|
1611
1989
|
};
|
|
1612
1990
|
protoOf(ArrayType).hashCode = function () {
|
|
1613
|
-
var result = getStringHashCode(this.
|
|
1614
|
-
result = imul(result, 31) + hashCode(this.
|
|
1991
|
+
var result = getStringHashCode(this.w49_1);
|
|
1992
|
+
result = imul(result, 31) + hashCode(this.x49_1) | 0;
|
|
1615
1993
|
return result;
|
|
1616
1994
|
};
|
|
1617
1995
|
protoOf(ArrayType).equals = function (other) {
|
|
@@ -1619,22 +1997,22 @@ protoOf(ArrayType).equals = function (other) {
|
|
|
1619
1997
|
return true;
|
|
1620
1998
|
if (!(other instanceof ArrayType))
|
|
1621
1999
|
return false;
|
|
1622
|
-
if (!(this.
|
|
2000
|
+
if (!(this.w49_1 === other.w49_1))
|
|
1623
2001
|
return false;
|
|
1624
|
-
if (!equals(this.
|
|
2002
|
+
if (!equals(this.x49_1, other.x49_1))
|
|
1625
2003
|
return false;
|
|
1626
2004
|
return true;
|
|
1627
2005
|
};
|
|
1628
2006
|
function MapType(type, values) {
|
|
1629
|
-
this.
|
|
1630
|
-
this.
|
|
2007
|
+
this.h49_1 = type;
|
|
2008
|
+
this.i49_1 = values;
|
|
1631
2009
|
}
|
|
1632
2010
|
protoOf(MapType).toString = function () {
|
|
1633
|
-
return 'MapType(type=' + this.
|
|
2011
|
+
return 'MapType(type=' + this.h49_1 + ', values=' + toString(this.i49_1) + ')';
|
|
1634
2012
|
};
|
|
1635
2013
|
protoOf(MapType).hashCode = function () {
|
|
1636
|
-
var result = getStringHashCode(this.
|
|
1637
|
-
result = imul(result, 31) + hashCode(this.
|
|
2014
|
+
var result = getStringHashCode(this.h49_1);
|
|
2015
|
+
result = imul(result, 31) + hashCode(this.i49_1) | 0;
|
|
1638
2016
|
return result;
|
|
1639
2017
|
};
|
|
1640
2018
|
protoOf(MapType).equals = function (other) {
|
|
@@ -1642,28 +2020,28 @@ protoOf(MapType).equals = function (other) {
|
|
|
1642
2020
|
return true;
|
|
1643
2021
|
if (!(other instanceof MapType))
|
|
1644
2022
|
return false;
|
|
1645
|
-
if (!(this.
|
|
2023
|
+
if (!(this.h49_1 === other.h49_1))
|
|
1646
2024
|
return false;
|
|
1647
|
-
if (!equals(this.
|
|
2025
|
+
if (!equals(this.i49_1, other.i49_1))
|
|
1648
2026
|
return false;
|
|
1649
2027
|
return true;
|
|
1650
2028
|
};
|
|
1651
2029
|
function EnumType(type, name, doc, symbols) {
|
|
1652
2030
|
Companion_getInstance_6();
|
|
1653
2031
|
doc = doc === VOID ? null : doc;
|
|
1654
|
-
this.
|
|
1655
|
-
this.
|
|
1656
|
-
this.
|
|
1657
|
-
this.
|
|
2032
|
+
this.n49_1 = type;
|
|
2033
|
+
this.o49_1 = name;
|
|
2034
|
+
this.p49_1 = doc;
|
|
2035
|
+
this.q49_1 = symbols;
|
|
1658
2036
|
}
|
|
1659
2037
|
protoOf(EnumType).toString = function () {
|
|
1660
|
-
return 'EnumType(type=' + this.
|
|
2038
|
+
return 'EnumType(type=' + this.n49_1 + ', name=' + this.o49_1 + ', doc=' + this.p49_1 + ', symbols=' + toString(this.q49_1) + ')';
|
|
1661
2039
|
};
|
|
1662
2040
|
protoOf(EnumType).hashCode = function () {
|
|
1663
|
-
var result = getStringHashCode(this.
|
|
1664
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1665
|
-
result = imul(result, 31) + (this.
|
|
1666
|
-
result = imul(result, 31) + hashCode(this.
|
|
2041
|
+
var result = getStringHashCode(this.n49_1);
|
|
2042
|
+
result = imul(result, 31) + getStringHashCode(this.o49_1) | 0;
|
|
2043
|
+
result = imul(result, 31) + (this.p49_1 == null ? 0 : getStringHashCode(this.p49_1)) | 0;
|
|
2044
|
+
result = imul(result, 31) + hashCode(this.q49_1) | 0;
|
|
1667
2045
|
return result;
|
|
1668
2046
|
};
|
|
1669
2047
|
protoOf(EnumType).equals = function (other) {
|
|
@@ -1671,26 +2049,26 @@ protoOf(EnumType).equals = function (other) {
|
|
|
1671
2049
|
return true;
|
|
1672
2050
|
if (!(other instanceof EnumType))
|
|
1673
2051
|
return false;
|
|
1674
|
-
if (!(this.
|
|
2052
|
+
if (!(this.n49_1 === other.n49_1))
|
|
1675
2053
|
return false;
|
|
1676
|
-
if (!(this.
|
|
2054
|
+
if (!(this.o49_1 === other.o49_1))
|
|
1677
2055
|
return false;
|
|
1678
|
-
if (!(this.
|
|
2056
|
+
if (!(this.p49_1 == other.p49_1))
|
|
1679
2057
|
return false;
|
|
1680
|
-
if (!equals(this.
|
|
2058
|
+
if (!equals(this.q49_1, other.q49_1))
|
|
1681
2059
|
return false;
|
|
1682
2060
|
return true;
|
|
1683
2061
|
};
|
|
1684
2062
|
function UnionType(name, type) {
|
|
1685
|
-
this.
|
|
1686
|
-
this.
|
|
2063
|
+
this.f49_1 = name;
|
|
2064
|
+
this.g49_1 = type;
|
|
1687
2065
|
}
|
|
1688
2066
|
protoOf(UnionType).toString = function () {
|
|
1689
|
-
return 'UnionType(name=' + this.
|
|
2067
|
+
return 'UnionType(name=' + this.f49_1 + ', type=' + this.g49_1.toString() + ')';
|
|
1690
2068
|
};
|
|
1691
2069
|
protoOf(UnionType).hashCode = function () {
|
|
1692
|
-
var result = getStringHashCode(this.
|
|
1693
|
-
result = imul(result, 31) + this.
|
|
2070
|
+
var result = getStringHashCode(this.f49_1);
|
|
2071
|
+
result = imul(result, 31) + this.g49_1.hashCode() | 0;
|
|
1694
2072
|
return result;
|
|
1695
2073
|
};
|
|
1696
2074
|
protoOf(UnionType).equals = function (other) {
|
|
@@ -1698,22 +2076,22 @@ protoOf(UnionType).equals = function (other) {
|
|
|
1698
2076
|
return true;
|
|
1699
2077
|
if (!(other instanceof UnionType))
|
|
1700
2078
|
return false;
|
|
1701
|
-
if (!(this.
|
|
2079
|
+
if (!(this.f49_1 === other.f49_1))
|
|
1702
2080
|
return false;
|
|
1703
|
-
if (!this.
|
|
2081
|
+
if (!this.g49_1.equals(other.g49_1))
|
|
1704
2082
|
return false;
|
|
1705
2083
|
return true;
|
|
1706
2084
|
};
|
|
1707
2085
|
function LogicalType() {
|
|
1708
2086
|
}
|
|
1709
2087
|
protoOf(LogicalType).toString = function () {
|
|
1710
|
-
return 'LogicalType(type=' + this.
|
|
2088
|
+
return 'LogicalType(type=' + this.j49_1 + ', logicalType=' + this.k49_1 + ', precision=' + this.l49_1 + ', scale=' + this.m49_1 + ')';
|
|
1711
2089
|
};
|
|
1712
2090
|
protoOf(LogicalType).hashCode = function () {
|
|
1713
|
-
var result = getStringHashCode(this.
|
|
1714
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1715
|
-
result = imul(result, 31) + (this.
|
|
1716
|
-
result = imul(result, 31) + (this.
|
|
2091
|
+
var result = getStringHashCode(this.j49_1);
|
|
2092
|
+
result = imul(result, 31) + getStringHashCode(this.k49_1) | 0;
|
|
2093
|
+
result = imul(result, 31) + (this.l49_1 == null ? 0 : this.l49_1) | 0;
|
|
2094
|
+
result = imul(result, 31) + (this.m49_1 == null ? 0 : this.m49_1) | 0;
|
|
1717
2095
|
return result;
|
|
1718
2096
|
};
|
|
1719
2097
|
protoOf(LogicalType).equals = function (other) {
|
|
@@ -1721,24 +2099,24 @@ protoOf(LogicalType).equals = function (other) {
|
|
|
1721
2099
|
return true;
|
|
1722
2100
|
if (!(other instanceof LogicalType))
|
|
1723
2101
|
return false;
|
|
1724
|
-
if (!(this.
|
|
2102
|
+
if (!(this.j49_1 === other.j49_1))
|
|
1725
2103
|
return false;
|
|
1726
|
-
if (!(this.
|
|
2104
|
+
if (!(this.k49_1 === other.k49_1))
|
|
1727
2105
|
return false;
|
|
1728
|
-
if (!(this.
|
|
2106
|
+
if (!(this.l49_1 == other.l49_1))
|
|
1729
2107
|
return false;
|
|
1730
|
-
if (!(this.
|
|
2108
|
+
if (!(this.m49_1 == other.m49_1))
|
|
1731
2109
|
return false;
|
|
1732
2110
|
return true;
|
|
1733
2111
|
};
|
|
1734
2112
|
function FieldSerializer() {
|
|
1735
2113
|
FieldSerializer_instance = this;
|
|
1736
|
-
this.
|
|
2114
|
+
this.j4b_1 = buildClassSerialDescriptor('Field', []);
|
|
1737
2115
|
}
|
|
1738
|
-
protoOf(FieldSerializer).
|
|
1739
|
-
return this.
|
|
2116
|
+
protoOf(FieldSerializer).n22 = function () {
|
|
2117
|
+
return this.j4b_1;
|
|
1740
2118
|
};
|
|
1741
|
-
protoOf(FieldSerializer).
|
|
2119
|
+
protoOf(FieldSerializer).k4b = function (encoder, value) {
|
|
1742
2120
|
var tmp0_elvis_lhs = isInterface(encoder, JsonEncoder) ? encoder : null;
|
|
1743
2121
|
var tmp;
|
|
1744
2122
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -1749,30 +2127,30 @@ protoOf(FieldSerializer).e4a = function (encoder, value) {
|
|
|
1749
2127
|
var output = tmp;
|
|
1750
2128
|
// Inline function 'kotlinx.serialization.json.buildJsonObject' call
|
|
1751
2129
|
var builder = new JsonObjectBuilder();
|
|
1752
|
-
put(builder, 'name', value.
|
|
1753
|
-
builder.
|
|
1754
|
-
var tmp0_safe_receiver = value.
|
|
2130
|
+
put(builder, 'name', value.y49_1);
|
|
2131
|
+
builder.b2q('type', output.k2p().i2n(TypeListSerializer_getInstance(), value.z49_1));
|
|
2132
|
+
var tmp0_safe_receiver = value.a4a_1;
|
|
1755
2133
|
if (tmp0_safe_receiver == null)
|
|
1756
2134
|
null;
|
|
1757
2135
|
else {
|
|
1758
2136
|
// Inline function 'kotlin.let' call
|
|
1759
2137
|
put(builder, 'doc', tmp0_safe_receiver);
|
|
1760
2138
|
}
|
|
1761
|
-
var tmp1_safe_receiver = value.
|
|
2139
|
+
var tmp1_safe_receiver = value.b4a_1;
|
|
1762
2140
|
if (tmp1_safe_receiver == null)
|
|
1763
2141
|
null;
|
|
1764
2142
|
else {
|
|
1765
2143
|
// Inline function 'kotlin.let' call
|
|
1766
|
-
builder.
|
|
2144
|
+
builder.b2q('default', tmp1_safe_receiver);
|
|
1767
2145
|
}
|
|
1768
2146
|
// Inline function 'kotlin.let' call
|
|
1769
|
-
var p0 = builder.
|
|
1770
|
-
output.
|
|
2147
|
+
var p0 = builder.s2o();
|
|
2148
|
+
output.t2q(p0);
|
|
1771
2149
|
};
|
|
1772
|
-
protoOf(FieldSerializer).
|
|
1773
|
-
return this.
|
|
2150
|
+
protoOf(FieldSerializer).o22 = function (encoder, value) {
|
|
2151
|
+
return this.k4b(encoder, value instanceof Field_0 ? value : THROW_CCE());
|
|
1774
2152
|
};
|
|
1775
|
-
protoOf(FieldSerializer).
|
|
2153
|
+
protoOf(FieldSerializer).p22 = function (decoder) {
|
|
1776
2154
|
var tmp0_elvis_lhs = isInterface(decoder, JsonDecoder) ? decoder : null;
|
|
1777
2155
|
var tmp;
|
|
1778
2156
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -1782,12 +2160,12 @@ protoOf(FieldSerializer).p21 = function (decoder) {
|
|
|
1782
2160
|
}
|
|
1783
2161
|
var input = tmp;
|
|
1784
2162
|
// Inline function 'kotlin.let' call
|
|
1785
|
-
var field = get_jsonObject(input.
|
|
1786
|
-
var tmp_0 = get_jsonPrimitive(getValue(field, 'name')).
|
|
1787
|
-
var tmp_1 = input.
|
|
1788
|
-
var tmp0_safe_receiver = field.
|
|
2163
|
+
var field = get_jsonObject(input.l2p());
|
|
2164
|
+
var tmp_0 = get_jsonPrimitive(getValue(field, 'name')).j1g();
|
|
2165
|
+
var tmp_1 = input.k2p().j2n(TypeListSerializer_getInstance(), getValue(field, 'type'));
|
|
2166
|
+
var tmp0_safe_receiver = field.kd('doc');
|
|
1789
2167
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : get_jsonPrimitive(tmp0_safe_receiver);
|
|
1790
|
-
return new Field_0(tmp_0, tmp_1, tmp1_safe_receiver == null ? null : get_contentOrNull(tmp1_safe_receiver), field.
|
|
2168
|
+
return new Field_0(tmp_0, tmp_1, tmp1_safe_receiver == null ? null : get_contentOrNull(tmp1_safe_receiver), field.kd('default'));
|
|
1791
2169
|
};
|
|
1792
2170
|
var FieldSerializer_instance;
|
|
1793
2171
|
function FieldSerializer_getInstance() {
|
|
@@ -1797,22 +2175,22 @@ function FieldSerializer_getInstance() {
|
|
|
1797
2175
|
}
|
|
1798
2176
|
function TypeListSerializer() {
|
|
1799
2177
|
TypeListSerializer_instance = this;
|
|
1800
|
-
this.
|
|
2178
|
+
this.l4b_1 = buildSerialDescriptor('TypeListSerializer', SEALED_getInstance(), []);
|
|
1801
2179
|
}
|
|
1802
|
-
protoOf(TypeListSerializer).
|
|
1803
|
-
return this.
|
|
2180
|
+
protoOf(TypeListSerializer).n22 = function () {
|
|
2181
|
+
return this.l4b_1;
|
|
1804
2182
|
};
|
|
1805
|
-
protoOf(TypeListSerializer).
|
|
1806
|
-
if (value.
|
|
1807
|
-
encoder.
|
|
2183
|
+
protoOf(TypeListSerializer).m4b = function (encoder, value) {
|
|
2184
|
+
if (value.i4b_1 > 1) {
|
|
2185
|
+
encoder.e27(ListSerializer(Companion_instance_1.p2p()), value);
|
|
1808
2186
|
} else {
|
|
1809
|
-
encoder.
|
|
2187
|
+
encoder.e27(Companion_instance_1.p2p(), first(value));
|
|
1810
2188
|
}
|
|
1811
2189
|
};
|
|
1812
|
-
protoOf(TypeListSerializer).
|
|
1813
|
-
return this.
|
|
2190
|
+
protoOf(TypeListSerializer).o22 = function (encoder, value) {
|
|
2191
|
+
return this.m4b(encoder, value instanceof TypeList ? value : THROW_CCE());
|
|
1814
2192
|
};
|
|
1815
|
-
protoOf(TypeListSerializer).
|
|
2193
|
+
protoOf(TypeListSerializer).p22 = function (decoder) {
|
|
1816
2194
|
var tmp0_elvis_lhs = isInterface(decoder, JsonDecoder) ? decoder : null;
|
|
1817
2195
|
var tmp;
|
|
1818
2196
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -1821,10 +2199,10 @@ protoOf(TypeListSerializer).p21 = function (decoder) {
|
|
|
1821
2199
|
tmp = tmp0_elvis_lhs;
|
|
1822
2200
|
}
|
|
1823
2201
|
var input = tmp;
|
|
1824
|
-
var element = input.
|
|
2202
|
+
var element = input.l2p();
|
|
1825
2203
|
var tmp_0;
|
|
1826
2204
|
if (element instanceof JsonPrimitive) {
|
|
1827
|
-
tmp_0 = new TypeList([input.
|
|
2205
|
+
tmp_0 = new TypeList([input.k2p().j2n(Companion_instance_1.p2p(), element)]);
|
|
1828
2206
|
} else {
|
|
1829
2207
|
if (element instanceof JsonArray) {
|
|
1830
2208
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -1833,7 +2211,7 @@ protoOf(TypeListSerializer).p21 = function (decoder) {
|
|
|
1833
2211
|
var _iterator__ex2g4s = element.t();
|
|
1834
2212
|
while (_iterator__ex2g4s.u()) {
|
|
1835
2213
|
var item = _iterator__ex2g4s.v();
|
|
1836
|
-
var tmp$ret$2 = input.
|
|
2214
|
+
var tmp$ret$2 = input.k2p().j2n(Companion_instance_1.p2p(), item);
|
|
1837
2215
|
destination.x(tmp$ret$2);
|
|
1838
2216
|
}
|
|
1839
2217
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
@@ -1841,7 +2219,7 @@ protoOf(TypeListSerializer).p21 = function (decoder) {
|
|
|
1841
2219
|
tmp_0 = new TypeList(tmp$ret$3.slice());
|
|
1842
2220
|
} else {
|
|
1843
2221
|
if (element instanceof JsonObject) {
|
|
1844
|
-
tmp_0 = new TypeList([input.
|
|
2222
|
+
tmp_0 = new TypeList([input.k2p().j2n(Companion_instance_1.p2p(), element)]);
|
|
1845
2223
|
} else {
|
|
1846
2224
|
noWhenBranchMatchedException();
|
|
1847
2225
|
}
|
|
@@ -1857,29 +2235,29 @@ function TypeListSerializer_getInstance() {
|
|
|
1857
2235
|
}
|
|
1858
2236
|
function TypeSerializer() {
|
|
1859
2237
|
TypeSerializer_instance = this;
|
|
1860
|
-
this.
|
|
2238
|
+
this.n4b_1 = buildSerialDescriptor('TypeSerializer', SEALED_getInstance(), []);
|
|
1861
2239
|
}
|
|
1862
|
-
protoOf(TypeSerializer).
|
|
1863
|
-
return this.
|
|
2240
|
+
protoOf(TypeSerializer).n22 = function () {
|
|
2241
|
+
return this.n4b_1;
|
|
1864
2242
|
};
|
|
1865
|
-
protoOf(TypeSerializer).
|
|
2243
|
+
protoOf(TypeSerializer).o4b = function (encoder, value) {
|
|
1866
2244
|
if (value instanceof SimpleType) {
|
|
1867
|
-
encoder.
|
|
2245
|
+
encoder.e27(serializer_0(StringCompanionObject_instance), value.e49_1);
|
|
1868
2246
|
} else {
|
|
1869
2247
|
if (value instanceof RecordType) {
|
|
1870
|
-
encoder.
|
|
2248
|
+
encoder.e27(Companion_getInstance_3().p2p(), value);
|
|
1871
2249
|
} else {
|
|
1872
2250
|
if (value instanceof ArrayType) {
|
|
1873
|
-
encoder.
|
|
2251
|
+
encoder.e27(Companion_instance_4.p2p(), value);
|
|
1874
2252
|
} else {
|
|
1875
2253
|
if (value instanceof MapType) {
|
|
1876
|
-
encoder.
|
|
2254
|
+
encoder.e27(Companion_instance_5.p2p(), value);
|
|
1877
2255
|
} else {
|
|
1878
2256
|
if (value instanceof EnumType) {
|
|
1879
|
-
encoder.
|
|
2257
|
+
encoder.e27(Companion_getInstance_6().p2p(), value);
|
|
1880
2258
|
} else {
|
|
1881
2259
|
if (value instanceof UnionType) {
|
|
1882
|
-
encoder.
|
|
2260
|
+
encoder.e27(Companion_instance_7.p2p(), value);
|
|
1883
2261
|
} else {
|
|
1884
2262
|
if (value instanceof LogicalType) {
|
|
1885
2263
|
// Inline function 'kotlin.TODO' call
|
|
@@ -1894,10 +2272,10 @@ protoOf(TypeSerializer).i4a = function (encoder, value) {
|
|
|
1894
2272
|
}
|
|
1895
2273
|
}
|
|
1896
2274
|
};
|
|
1897
|
-
protoOf(TypeSerializer).
|
|
1898
|
-
return this.
|
|
2275
|
+
protoOf(TypeSerializer).o22 = function (encoder, value) {
|
|
2276
|
+
return this.o4b(encoder, (!(value == null) ? isInterface(value, Type_0) : false) ? value : THROW_CCE());
|
|
1899
2277
|
};
|
|
1900
|
-
protoOf(TypeSerializer).
|
|
2278
|
+
protoOf(TypeSerializer).p22 = function (decoder) {
|
|
1901
2279
|
var tmp0_elvis_lhs = isInterface(decoder, JsonDecoder) ? decoder : null;
|
|
1902
2280
|
var tmp;
|
|
1903
2281
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -1906,18 +2284,18 @@ protoOf(TypeSerializer).p21 = function (decoder) {
|
|
|
1906
2284
|
tmp = tmp0_elvis_lhs;
|
|
1907
2285
|
}
|
|
1908
2286
|
var input = tmp;
|
|
1909
|
-
var element = input.
|
|
2287
|
+
var element = input.l2p();
|
|
1910
2288
|
var tmp_0;
|
|
1911
2289
|
if (element instanceof JsonObject) {
|
|
1912
2290
|
var tmp_1;
|
|
1913
|
-
if (element.
|
|
1914
|
-
tmp_1 = input.
|
|
1915
|
-
} else if (element.
|
|
1916
|
-
tmp_1 = input.
|
|
1917
|
-
} else if (element.
|
|
1918
|
-
tmp_1 = input.
|
|
1919
|
-
} else if (element.
|
|
1920
|
-
tmp_1 = input.
|
|
2291
|
+
if (element.r2p('items')) {
|
|
2292
|
+
tmp_1 = input.k2p().j2n(Companion_instance_4.p2p(), element);
|
|
2293
|
+
} else if (element.r2p('fields')) {
|
|
2294
|
+
tmp_1 = input.k2p().j2n(Companion_getInstance_3().p2p(), element);
|
|
2295
|
+
} else if (element.r2p('symbols')) {
|
|
2296
|
+
tmp_1 = input.k2p().j2n(Companion_getInstance_6().p2p(), element);
|
|
2297
|
+
} else if (element.r2p('logicalType')) {
|
|
2298
|
+
tmp_1 = input.k2p().j2n(Companion_instance_8.p2p(), element);
|
|
1921
2299
|
} else {
|
|
1922
2300
|
// Inline function 'kotlin.TODO' call
|
|
1923
2301
|
var reason = 'Unknown object type: ' + element.toString();
|
|
@@ -1926,7 +2304,7 @@ protoOf(TypeSerializer).p21 = function (decoder) {
|
|
|
1926
2304
|
tmp_0 = tmp_1;
|
|
1927
2305
|
} else {
|
|
1928
2306
|
if (element instanceof JsonPrimitive) {
|
|
1929
|
-
tmp_0 = new SimpleType(element.
|
|
2307
|
+
tmp_0 = new SimpleType(element.j1g());
|
|
1930
2308
|
} else {
|
|
1931
2309
|
if (element instanceof JsonArray) {
|
|
1932
2310
|
// Inline function 'kotlin.TODO' call
|
|
@@ -1945,14 +2323,202 @@ function TypeSerializer_getInstance() {
|
|
|
1945
2323
|
new TypeSerializer();
|
|
1946
2324
|
return TypeSerializer_instance;
|
|
1947
2325
|
}
|
|
2326
|
+
function inDependencyOrder(_this__u8e3s4) {
|
|
2327
|
+
// Inline function 'kotlin.collections.associateBy' call
|
|
2328
|
+
var this_0 = NonEmptyList__toList_impl_t5xcy2(_this__u8e3s4.gp_1);
|
|
2329
|
+
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
2330
|
+
// Inline function 'kotlin.collections.associateByTo' call
|
|
2331
|
+
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
2332
|
+
var _iterator__ex2g4s = this_0.t();
|
|
2333
|
+
while (_iterator__ex2g4s.u()) {
|
|
2334
|
+
var element = _iterator__ex2g4s.v();
|
|
2335
|
+
var tmp$ret$2 = element.ds().o1();
|
|
2336
|
+
destination.v2(tmp$ret$2, element);
|
|
2337
|
+
}
|
|
2338
|
+
var byName = destination;
|
|
2339
|
+
var tmp0 = NonEmptyList__toList_impl_t5xcy2(_this__u8e3s4.gp_1);
|
|
2340
|
+
// Inline function 'kotlin.collections.fold' call
|
|
2341
|
+
var accumulator = new Ordering();
|
|
2342
|
+
var _iterator__ex2g4s_0 = tmp0.t();
|
|
2343
|
+
while (_iterator__ex2g4s_0.u()) {
|
|
2344
|
+
var element_0 = _iterator__ex2g4s_0.v();
|
|
2345
|
+
var ordering = accumulator;
|
|
2346
|
+
accumulator = inDependencyOrder$visit(ordering, byName, element_0);
|
|
2347
|
+
}
|
|
2348
|
+
return accumulator.q4b_1;
|
|
2349
|
+
}
|
|
2350
|
+
function customNames(_this__u8e3s4) {
|
|
2351
|
+
var tmp;
|
|
2352
|
+
if (_this__u8e3s4 instanceof Custom) {
|
|
2353
|
+
tmp = listOf(_this__u8e3s4.r18_1);
|
|
2354
|
+
} else {
|
|
2355
|
+
if (_this__u8e3s4 instanceof Iterable) {
|
|
2356
|
+
tmp = customNames(_this__u8e3s4.yp_1);
|
|
2357
|
+
} else {
|
|
2358
|
+
if (_this__u8e3s4 instanceof Dict) {
|
|
2359
|
+
tmp = customNames(_this__u8e3s4.bq_1);
|
|
2360
|
+
} else {
|
|
2361
|
+
var tmp_0;
|
|
2362
|
+
if (_this__u8e3s4 instanceof Primitive) {
|
|
2363
|
+
tmp_0 = true;
|
|
2364
|
+
} else {
|
|
2365
|
+
var tmp_1;
|
|
2366
|
+
if (_this__u8e3s4 instanceof Any) {
|
|
2367
|
+
tmp_1 = true;
|
|
2368
|
+
} else {
|
|
2369
|
+
tmp_1 = _this__u8e3s4 instanceof Unit;
|
|
2370
|
+
}
|
|
2371
|
+
tmp_0 = tmp_1;
|
|
2372
|
+
}
|
|
2373
|
+
if (tmp_0) {
|
|
2374
|
+
tmp = emptyList();
|
|
2375
|
+
} else {
|
|
2376
|
+
noWhenBranchMatchedException();
|
|
2377
|
+
}
|
|
2378
|
+
}
|
|
2379
|
+
}
|
|
2380
|
+
}
|
|
2381
|
+
return tmp;
|
|
2382
|
+
}
|
|
2383
|
+
function Ordering(seen, ordered) {
|
|
2384
|
+
seen = seen === VOID ? emptySet() : seen;
|
|
2385
|
+
ordered = ordered === VOID ? emptyList() : ordered;
|
|
2386
|
+
this.p4b_1 = seen;
|
|
2387
|
+
this.q4b_1 = ordered;
|
|
2388
|
+
}
|
|
2389
|
+
protoOf(Ordering).r4b = function (seen, ordered) {
|
|
2390
|
+
return new Ordering(seen, ordered);
|
|
2391
|
+
};
|
|
2392
|
+
protoOf(Ordering).s4b = function (seen, ordered, $super) {
|
|
2393
|
+
seen = seen === VOID ? this.p4b_1 : seen;
|
|
2394
|
+
ordered = ordered === VOID ? this.q4b_1 : ordered;
|
|
2395
|
+
return $super === VOID ? this.r4b(seen, ordered) : $super.r4b.call(this, seen, ordered);
|
|
2396
|
+
};
|
|
2397
|
+
protoOf(Ordering).toString = function () {
|
|
2398
|
+
return 'Ordering(seen=' + toString(this.p4b_1) + ', ordered=' + toString(this.q4b_1) + ')';
|
|
2399
|
+
};
|
|
2400
|
+
protoOf(Ordering).hashCode = function () {
|
|
2401
|
+
var result = hashCode(this.p4b_1);
|
|
2402
|
+
result = imul(result, 31) + hashCode(this.q4b_1) | 0;
|
|
2403
|
+
return result;
|
|
2404
|
+
};
|
|
2405
|
+
protoOf(Ordering).equals = function (other) {
|
|
2406
|
+
if (this === other)
|
|
2407
|
+
return true;
|
|
2408
|
+
if (!(other instanceof Ordering))
|
|
2409
|
+
return false;
|
|
2410
|
+
if (!equals(this.p4b_1, other.p4b_1))
|
|
2411
|
+
return false;
|
|
2412
|
+
if (!equals(this.q4b_1, other.q4b_1))
|
|
2413
|
+
return false;
|
|
2414
|
+
return true;
|
|
2415
|
+
};
|
|
2416
|
+
function findRefined(_this__u8e3s4, name) {
|
|
2417
|
+
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
2418
|
+
var tmp0 = NonEmptyList__toList_impl_t5xcy2(_this__u8e3s4.gp_1);
|
|
2419
|
+
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
2420
|
+
var destination = ArrayList_init_$Create$_0();
|
|
2421
|
+
var _iterator__ex2g4s = tmp0.t();
|
|
2422
|
+
while (_iterator__ex2g4s.u()) {
|
|
2423
|
+
var element = _iterator__ex2g4s.v();
|
|
2424
|
+
if (element instanceof Refined) {
|
|
2425
|
+
destination.x(element);
|
|
2426
|
+
}
|
|
2427
|
+
}
|
|
2428
|
+
// Inline function 'kotlin.collections.find' call
|
|
2429
|
+
var tmp$ret$3;
|
|
2430
|
+
$l$block: {
|
|
2431
|
+
// Inline function 'kotlin.collections.firstOrNull' call
|
|
2432
|
+
var _iterator__ex2g4s_0 = destination.t();
|
|
2433
|
+
while (_iterator__ex2g4s_0.u()) {
|
|
2434
|
+
var element_0 = _iterator__ex2g4s_0.v();
|
|
2435
|
+
if (element_0.ls_1.o1() === name) {
|
|
2436
|
+
tmp$ret$3 = element_0;
|
|
2437
|
+
break $l$block;
|
|
2438
|
+
}
|
|
2439
|
+
}
|
|
2440
|
+
tmp$ret$3 = null;
|
|
2441
|
+
}
|
|
2442
|
+
return tmp$ret$3;
|
|
2443
|
+
}
|
|
2444
|
+
function inDependencyOrder$dependencies(_this__u8e3s4, byName) {
|
|
2445
|
+
var tmp;
|
|
2446
|
+
if (_this__u8e3s4 instanceof Type) {
|
|
2447
|
+
// Inline function 'kotlin.collections.flatMap' call
|
|
2448
|
+
var tmp0 = get_fields(_this__u8e3s4.lp_1);
|
|
2449
|
+
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2450
|
+
var destination = ArrayList_init_$Create$_0();
|
|
2451
|
+
var _iterator__ex2g4s = tmp0.t();
|
|
2452
|
+
while (_iterator__ex2g4s.u()) {
|
|
2453
|
+
var element = _iterator__ex2g4s.v();
|
|
2454
|
+
var list = customNames(element.pp_1);
|
|
2455
|
+
addAll(destination, list);
|
|
2456
|
+
}
|
|
2457
|
+
tmp = destination;
|
|
2458
|
+
} else {
|
|
2459
|
+
if (_this__u8e3s4 instanceof Union) {
|
|
2460
|
+
// Inline function 'kotlin.collections.flatMap' call
|
|
2461
|
+
var tmp0_0 = _this__u8e3s4.cr_1;
|
|
2462
|
+
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2463
|
+
var destination_0 = ArrayList_init_$Create$_0();
|
|
2464
|
+
var _iterator__ex2g4s_0 = tmp0_0.t();
|
|
2465
|
+
while (_iterator__ex2g4s_0.u()) {
|
|
2466
|
+
var element_0 = _iterator__ex2g4s_0.v();
|
|
2467
|
+
var list_0 = customNames(element_0);
|
|
2468
|
+
addAll(destination_0, list_0);
|
|
2469
|
+
}
|
|
2470
|
+
tmp = destination_0;
|
|
2471
|
+
} else {
|
|
2472
|
+
tmp = emptyList();
|
|
2473
|
+
}
|
|
2474
|
+
}
|
|
2475
|
+
// Inline function 'kotlin.collections.mapNotNull' call
|
|
2476
|
+
var tmp0_1 = tmp;
|
|
2477
|
+
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
2478
|
+
var destination_1 = ArrayList_init_$Create$_0();
|
|
2479
|
+
// Inline function 'kotlin.collections.forEach' call
|
|
2480
|
+
var _iterator__ex2g4s_1 = tmp0_1.t();
|
|
2481
|
+
while (_iterator__ex2g4s_1.u()) {
|
|
2482
|
+
var element_1 = _iterator__ex2g4s_1.v();
|
|
2483
|
+
var tmp0_safe_receiver = byName.s2(element_1);
|
|
2484
|
+
if (tmp0_safe_receiver == null)
|
|
2485
|
+
null;
|
|
2486
|
+
else {
|
|
2487
|
+
// Inline function 'kotlin.let' call
|
|
2488
|
+
destination_1.x(tmp0_safe_receiver);
|
|
2489
|
+
}
|
|
2490
|
+
}
|
|
2491
|
+
return destination_1;
|
|
2492
|
+
}
|
|
2493
|
+
function inDependencyOrder$visit(_this__u8e3s4, byName, definition) {
|
|
2494
|
+
var tmp0_subject = definition.ds().o1();
|
|
2495
|
+
var tmp;
|
|
2496
|
+
if (_this__u8e3s4.p4b_1.i1(tmp0_subject)) {
|
|
2497
|
+
tmp = _this__u8e3s4;
|
|
2498
|
+
} else {
|
|
2499
|
+
var tmp0 = inDependencyOrder$dependencies(definition, byName);
|
|
2500
|
+
// Inline function 'kotlin.collections.fold' call
|
|
2501
|
+
var accumulator = _this__u8e3s4.s4b(plus_1(_this__u8e3s4.p4b_1, definition.ds().o1()));
|
|
2502
|
+
var _iterator__ex2g4s = tmp0.t();
|
|
2503
|
+
while (_iterator__ex2g4s.u()) {
|
|
2504
|
+
var element = _iterator__ex2g4s.v();
|
|
2505
|
+
var ordering = accumulator;
|
|
2506
|
+
accumulator = inDependencyOrder$visit(ordering, byName, element);
|
|
2507
|
+
}
|
|
2508
|
+
// Inline function 'kotlin.let' call
|
|
2509
|
+
var it = accumulator;
|
|
2510
|
+
tmp = it.s4b(VOID, plus_0(it.q4b_1, definition));
|
|
2511
|
+
}
|
|
2512
|
+
return tmp;
|
|
2513
|
+
}
|
|
1948
2514
|
//region block: post-declaration
|
|
1949
|
-
protoOf($serializer).
|
|
1950
|
-
protoOf($serializer_0).
|
|
1951
|
-
protoOf($serializer_1).
|
|
1952
|
-
protoOf($serializer_2).
|
|
1953
|
-
protoOf($serializer_3).
|
|
1954
|
-
protoOf($serializer_4).
|
|
1955
|
-
protoOf($serializer_5).
|
|
2515
|
+
protoOf($serializer).q2d = typeParametersSerializers;
|
|
2516
|
+
protoOf($serializer_0).q2d = typeParametersSerializers;
|
|
2517
|
+
protoOf($serializer_1).q2d = typeParametersSerializers;
|
|
2518
|
+
protoOf($serializer_2).q2d = typeParametersSerializers;
|
|
2519
|
+
protoOf($serializer_3).q2d = typeParametersSerializers;
|
|
2520
|
+
protoOf($serializer_4).q2d = typeParametersSerializers;
|
|
2521
|
+
protoOf($serializer_5).q2d = typeParametersSerializers;
|
|
1956
2522
|
//endregion
|
|
1957
2523
|
//region block: init
|
|
1958
2524
|
AvroJsonParser_instance = new AvroJsonParser();
|
|
@@ -1968,6 +2534,7 @@ Companion_instance_8 = new Companion_8();
|
|
|
1968
2534
|
//region block: exports
|
|
1969
2535
|
export {
|
|
1970
2536
|
Type_0 as Typel89stdvlxo83,
|
|
2537
|
+
AvroIdlEmitter_getInstance as AvroIdlEmitter_getInstanceyu6o4eau2ce0,
|
|
1971
2538
|
AvroJsonEmitter_getInstance as AvroJsonEmitter_getInstanceqxb8ioshyd02,
|
|
1972
2539
|
AvroJsonParser_instance as AvroJsonParser_instance5zz3bwjsci7v,
|
|
1973
2540
|
};
|