@flock/wirespec 0.17.20 → 0.18.1-RC.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-annotations.mjs.map +1 -1
- package/arrow-arrow-atomic.mjs +13 -13
- package/arrow-arrow-atomic.mjs.map +1 -1
- package/arrow-arrow-core.mjs +588 -431
- package/arrow-arrow-core.mjs.map +1 -1
- package/arrow-arrow-exception-utils.mjs +30 -0
- package/arrow-arrow-exception-utils.mjs.map +1 -0
- package/clikt-clikt-mordant.mjs +318 -0
- package/clikt-clikt-mordant.mjs.map +1 -0
- package/clikt-clikt.mjs +3834 -3696
- package/clikt-clikt.mjs.map +1 -1
- package/colormath-root-colormath.mjs +619 -682
- package/colormath-root-colormath.mjs.map +1 -1
- package/kotlin-js-core.mjs +4 -0
- package/kotlin-js-core.mjs.map +1 -0
- package/kotlin-js.mjs +4 -0
- package/kotlin-js.mjs.map +1 -0
- package/kotlin-kotlin-stdlib.mjs +6284 -5825
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +8163 -8198
- package/kotlin-openapi-bindings.mjs.map +1 -1
- package/kotlin-plugins-js-plain-objects-runtime.mjs +4 -0
- package/kotlin-plugins-js-plain-objects-runtime.mjs.map +1 -0
- package/kotlin-rgxgen.mjs +2007 -2062
- package/kotlin-rgxgen.mjs.map +1 -1
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.mjs.map +1 -1
- package/kotlinx-atomicfu.mjs +4 -0
- package/kotlinx-atomicfu.mjs.map +1 -0
- package/kotlinx-coroutines-core.mjs +4 -0
- package/kotlinx-coroutines-core.mjs.map +1 -0
- package/kotlinx-io-kotlinx-io-bytestring.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core.mjs +803 -839
- package/kotlinx-io-kotlinx-io-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +2483 -2553
- package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1861 -1928
- package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
- package/mordant-mordant-omnibus.mjs +4 -0
- package/mordant-mordant-omnibus.mjs.map +1 -0
- package/mordant-mordant.mjs +2525 -4426
- package/mordant-mordant.mjs.map +1 -1
- package/package.json +4 -7
- package/seskar-core.mjs +4 -0
- package/seskar-core.mjs.map +1 -0
- package/wirespec-bin.mjs +13 -1
- package/wirespec-fetch.d.ts +4 -1
- package/wirespec-fetch.mjs +34 -0
- package/wirespec-serialization.d.ts +13 -2
- package/wirespec-serialization.mjs +22 -1
- package/wirespec-src-compiler-core.mjs +2857 -3909
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-java.mjs +1370 -413
- package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-kotlin.mjs +1015 -337
- package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-python.mjs +1465 -387
- package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-rust.mjs +2461 -0
- package/wirespec-src-compiler-emitters-rust.mjs.map +1 -0
- package/wirespec-src-compiler-emitters-scala.mjs +1010 -0
- package/wirespec-src-compiler-emitters-scala.mjs.map +1 -0
- package/wirespec-src-compiler-emitters-typescript.mjs +1533 -450
- package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-wirespec.mjs +122 -144
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-ir.mjs +17369 -0
- package/wirespec-src-compiler-ir.mjs.map +1 -0
- package/wirespec-src-compiler-lib.mjs +662 -728
- package/wirespec-src-compiler-lib.mjs.map +1 -1
- package/wirespec-src-converter-avro.mjs +630 -656
- package/wirespec-src-converter-avro.mjs.map +1 -1
- package/wirespec-src-converter-common.mjs.map +1 -1
- package/wirespec-src-converter-openapi.mjs +1705 -2024
- package/wirespec-src-converter-openapi.mjs.map +1 -1
- package/wirespec-src-plugin-arguments.mjs +418 -459
- package/wirespec-src-plugin-arguments.mjs.map +1 -1
- package/wirespec-src-plugin-cli.mjs +367 -331
- package/wirespec-src-plugin-cli.mjs.map +1 -1
- package/{wirespec-src-plugin-npm.d.ts → wirespec-src-plugin-npm.d.mts} +247 -0
- package/wirespec-src-plugin-npm.mjs +166 -359
- package/wirespec-src-plugin-npm.mjs.map +1 -1
- package/wirespec-src-tools-generator.mjs +79 -106
- package/wirespec-src-tools-generator.mjs.map +1 -1
- package/arrow-arrow-continuations.mjs +0 -18
- package/arrow-arrow-continuations.mjs.map +0 -1
- package/markdown.mjs +0 -6756
- package/markdown.mjs.map +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
Boolean_instance237vwt01w3hs8 as Boolean_instance,
|
|
3
|
+
Precision_P32_getInstance14q7j3bd2fxd5 as Precision_P32_getInstance,
|
|
4
4
|
Integer39lqx4uc63u28 as Integer,
|
|
5
|
-
|
|
5
|
+
Precision_P64_getInstanceoi1ashg00his as Precision_P64_getInstance,
|
|
6
6
|
Number1mui0heypwdhp as Number_0,
|
|
7
|
-
|
|
7
|
+
Bytes_instance1o9u095wd3kx6 as Bytes_instance,
|
|
8
8
|
String1czvr8pxnm6on as String_0,
|
|
9
9
|
Custom1lu6o8txpimqz as Custom,
|
|
10
10
|
Dict3g7w5wia7rncj as Dict,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
Type12n1gx16iqtcu as Type,
|
|
19
19
|
Enum3l2iuc342kle6 as Enum,
|
|
20
20
|
Unionccsavx6nrdr2 as Union,
|
|
21
|
-
|
|
21
|
+
FileExtension_JSON_getInstance34944ido213py as FileExtension_JSON_getInstance,
|
|
22
22
|
Emitted12h24rpo4uifw as Emitted,
|
|
23
23
|
Anyv7qdq63z63rc as Any,
|
|
24
24
|
Refined1lkzc0dg6wey7 as Refined,
|
|
@@ -35,31 +35,33 @@ import {
|
|
|
35
35
|
Collection1k04j3hzsbod0 as Collection,
|
|
36
36
|
isInterface3d6p8outrmvmk as isInterface,
|
|
37
37
|
checkCountOverflow1ro2fe1r4xvgf as checkCountOverflow,
|
|
38
|
-
|
|
38
|
+
Unit_instance28fytmsmm6r23 as Unit_instance,
|
|
39
39
|
first58ocm7j58k3q as first,
|
|
40
40
|
toString1pkumu07cwy4m as toString,
|
|
41
|
-
IllegalStateException_init_$Create$
|
|
41
|
+
IllegalStateException_init_$Create$2429fvs1h56dm as IllegalStateException_init_$Create$,
|
|
42
42
|
emptyList1g2z5xcrvp2zy as emptyList,
|
|
43
43
|
collectionSizeOrDefault36dulx8yinfqm as collectionSizeOrDefault,
|
|
44
|
-
ArrayList_init_$Create$
|
|
44
|
+
ArrayList_init_$Create$3ivpeip4ouddx as ArrayList_init_$Create$,
|
|
45
45
|
toSet2orjxp16sotqu as toSet,
|
|
46
46
|
listOfvhqybd2zx248 as listOf,
|
|
47
|
-
ArrayList_init_$Create$
|
|
47
|
+
ArrayList_init_$Create$1jemgvhi5v0js as ArrayList_init_$Create$_0,
|
|
48
48
|
addAll1k27qatfgp3k5 as addAll,
|
|
49
49
|
plus310ted5e4i90h as plus,
|
|
50
50
|
protoOf180f3jzyo7rfj as protoOf,
|
|
51
|
-
|
|
51
|
+
VOID3gxj6tk5isa35 as VOID,
|
|
52
52
|
initMetadataForObject1cxne3s9w65el as initMetadataForObject,
|
|
53
53
|
KtList3hktaavzmj137 as KtList,
|
|
54
|
-
|
|
54
|
+
getKClass3t8tygqu4lcxf as getKClass,
|
|
55
55
|
arrayOf1akklvh2at202 as arrayOf,
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
createKType31ecntyyaay3k as createKType,
|
|
57
|
+
createInvariantKTypeProjection3h5364czc0a8w as createInvariantKTypeProjection,
|
|
58
58
|
THROW_CCE2g6jy02ryeudk as THROW_CCE,
|
|
59
59
|
toList3jhuyej2anx2q as toList,
|
|
60
60
|
initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
|
|
61
61
|
objectCreate1ve4bgxiu4x98 as objectCreate,
|
|
62
62
|
copyToArray2j022khrow2yi as copyToArray,
|
|
63
|
+
LazyThreadSafetyMode_PUBLICATION_getInstance1vspt3xrdob1a as LazyThreadSafetyMode_PUBLICATION_getInstance,
|
|
64
|
+
lazy1261dae0bgscp as lazy,
|
|
63
65
|
getStringHashCode26igk1bx568vk as getStringHashCode,
|
|
64
66
|
initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
|
|
65
67
|
AbstractList3ck35puwbp1e9 as AbstractList,
|
|
@@ -67,16 +69,19 @@ import {
|
|
|
67
69
|
initMetadataForInterface1egvbzx539z91 as initMetadataForInterface,
|
|
68
70
|
hashCodeq5arwsb9dgti as hashCode,
|
|
69
71
|
equals2au1ep9vhcato as equals,
|
|
70
|
-
|
|
72
|
+
StringCompanionObject_instance3sox3h548pjra as StringCompanionObject_instance,
|
|
71
73
|
plus20p0vtfmu0596 as plus_0,
|
|
72
74
|
} from './kotlin-kotlin-stdlib.mjs';
|
|
73
75
|
import {
|
|
74
|
-
|
|
76
|
+
NonEmptyList__toList_impl_t5xcy2362qtlja6arn8 as NonEmptyList__toList_impl_t5xcy2,
|
|
77
|
+
_NonEmptyList___get_all__impl__pmf5092svcdxelgy1aa as _NonEmptyList___get_all__impl__pmf509,
|
|
78
|
+
_NonEmptyList___init__impl__fxd0xp3qwfhfa83yk9f as _NonEmptyList___init__impl__fxd0xp,
|
|
75
79
|
toNonEmptyListOrNull2ovnnazjb3msz as toNonEmptyListOrNull,
|
|
80
|
+
NonEmptyList3ak25ihy2gcvs as NonEmptyList,
|
|
76
81
|
nonEmptyListOf17xawqyzwrlrt as nonEmptyListOf,
|
|
77
82
|
} from './arrow-arrow-core.mjs';
|
|
78
83
|
import {
|
|
79
|
-
|
|
84
|
+
Default_getInstancejkv49nkel8hp as Default_getInstance,
|
|
80
85
|
JsonDecoder1rijst5ne6qla as JsonDecoder,
|
|
81
86
|
JsonObjectee06ihoeeiqj as JsonObject,
|
|
82
87
|
JsonArray2urf8ey7u44sd as JsonArray,
|
|
@@ -87,19 +92,19 @@ import {
|
|
|
87
92
|
serializer1i4e9ym37oxmo as serializer,
|
|
88
93
|
KSerializerzf77vz1967fq as KSerializer,
|
|
89
94
|
PluginGeneratedSerialDescriptorqdzeg5asqhfg as PluginGeneratedSerialDescriptor,
|
|
90
|
-
|
|
91
|
-
UnknownFieldException_init_$Create$
|
|
95
|
+
StringSerializer_getInstance2hpyx1v3alnih as StringSerializer_getInstance,
|
|
96
|
+
UnknownFieldException_init_$Create$2dwzk7svpmqo1 as UnknownFieldException_init_$Create$,
|
|
92
97
|
get_nullable197rfua9r7fsz as get_nullable,
|
|
93
98
|
typeParametersSerializers2likxjr48tr7y as typeParametersSerializers,
|
|
94
99
|
GeneratedSerializer1f7t7hssdd2ws as GeneratedSerializer,
|
|
95
100
|
throwMissingFieldException2cmke0v3ynf14 as throwMissingFieldException,
|
|
96
101
|
SerializerFactory1qv9hivitncuv as SerializerFactory,
|
|
97
102
|
ArrayListSerializer7k5wnrulb3y6 as ArrayListSerializer,
|
|
98
|
-
|
|
99
|
-
|
|
103
|
+
IntSerializer_getInstance3pev8isxtkhc2 as IntSerializer_getInstance,
|
|
104
|
+
SEALED_getInstance1vxvpfzfxmg5m as SEALED_getInstance,
|
|
100
105
|
buildSerialDescriptor2873qmkp8r2ib as buildSerialDescriptor,
|
|
101
106
|
ListSerializer1hxuk9dx5n9du as ListSerializer,
|
|
102
|
-
SerializationException_init_$Create$
|
|
107
|
+
SerializationException_init_$Create$2gf2fbfh3gfxm as SerializationException_init_$Create$,
|
|
103
108
|
serializer1x79l67jvwntn as serializer_0,
|
|
104
109
|
} from './kotlinx-serialization-kotlinx-serialization-core.mjs';
|
|
105
110
|
//region block: imports
|
|
@@ -140,12 +145,12 @@ initMetadataForObject(TypeListSerializer, 'TypeListSerializer', VOID, VOID, [KSe
|
|
|
140
145
|
initMetadataForObject(TypeSerializer, 'TypeSerializer', VOID, VOID, [KSerializer]);
|
|
141
146
|
initMetadataForObject(AvroParser, 'AvroParser');
|
|
142
147
|
//endregion
|
|
143
|
-
function isNullable(
|
|
144
|
-
return _this__u8e3s4.
|
|
148
|
+
function isNullable($this, _this__u8e3s4) {
|
|
149
|
+
return _this__u8e3s4.u1($this.l3i_1);
|
|
145
150
|
}
|
|
146
|
-
function toPrimitive(
|
|
151
|
+
function toPrimitive($this, _this__u8e3s4) {
|
|
147
152
|
var tmp;
|
|
148
|
-
switch (_this__u8e3s4.
|
|
153
|
+
switch (_this__u8e3s4.m3i_1) {
|
|
149
154
|
case 'boolean':
|
|
150
155
|
tmp = Boolean_instance;
|
|
151
156
|
break;
|
|
@@ -168,15 +173,15 @@ function toPrimitive(_this__u8e3s4, $this) {
|
|
|
168
173
|
tmp = new String_0(null);
|
|
169
174
|
break;
|
|
170
175
|
default:
|
|
171
|
-
var reason = 'primitive not mapped ' + _this__u8e3s4.
|
|
176
|
+
var reason = 'primitive not mapped ' + _this__u8e3s4.m3i_1;
|
|
172
177
|
throw new NotImplementedError('An operation is not implemented: ' + reason);
|
|
173
178
|
}
|
|
174
179
|
return tmp;
|
|
175
180
|
}
|
|
176
|
-
function toReference(
|
|
181
|
+
function toReference($this, _this__u8e3s4, isNullable) {
|
|
177
182
|
var tmp;
|
|
178
183
|
if (_this__u8e3s4 instanceof SimpleType) {
|
|
179
|
-
switch (_this__u8e3s4.
|
|
184
|
+
switch (_this__u8e3s4.m3i_1) {
|
|
180
185
|
case 'null':
|
|
181
186
|
tmp = new Unit(isNullable);
|
|
182
187
|
break;
|
|
@@ -187,30 +192,30 @@ function toReference(_this__u8e3s4, $this, isNullable) {
|
|
|
187
192
|
case 'double':
|
|
188
193
|
case 'bytes':
|
|
189
194
|
case 'string':
|
|
190
|
-
tmp = new Primitive(toPrimitive(
|
|
195
|
+
tmp = new Primitive(toPrimitive($this, _this__u8e3s4), isNullable);
|
|
191
196
|
break;
|
|
192
197
|
default:
|
|
193
|
-
tmp = new Custom(_this__u8e3s4.
|
|
198
|
+
tmp = new Custom(_this__u8e3s4.m3i_1, isNullable);
|
|
194
199
|
break;
|
|
195
200
|
}
|
|
196
201
|
} else {
|
|
197
202
|
if (_this__u8e3s4 instanceof ArrayType) {
|
|
198
|
-
tmp = new Iterable(toReference(_this__u8e3s4.
|
|
203
|
+
tmp = new Iterable(toReference($this, _this__u8e3s4.f3j_1, false), isNullable);
|
|
199
204
|
} else {
|
|
200
205
|
if (_this__u8e3s4 instanceof RecordType) {
|
|
201
|
-
tmp = new Custom(_this__u8e3s4.
|
|
206
|
+
tmp = new Custom(_this__u8e3s4.a3j_1, isNullable);
|
|
202
207
|
} else {
|
|
203
208
|
if (_this__u8e3s4 instanceof EnumType) {
|
|
204
|
-
tmp = new Custom(_this__u8e3s4.
|
|
209
|
+
tmp = new Custom(_this__u8e3s4.w3i_1, isNullable);
|
|
205
210
|
} else {
|
|
206
211
|
if (_this__u8e3s4 instanceof LogicalType) {
|
|
207
|
-
tmp = toReference(new SimpleType(_this__u8e3s4.
|
|
212
|
+
tmp = toReference($this, new SimpleType(_this__u8e3s4.r3i_1), isNullable);
|
|
208
213
|
} else {
|
|
209
214
|
if (_this__u8e3s4 instanceof MapType) {
|
|
210
|
-
tmp = new Dict(toReference(_this__u8e3s4.
|
|
215
|
+
tmp = new Dict(toReference($this, _this__u8e3s4.q3i_1, false), isNullable);
|
|
211
216
|
} else {
|
|
212
217
|
if (_this__u8e3s4 instanceof UnionType) {
|
|
213
|
-
tmp = new Custom(_this__u8e3s4.
|
|
218
|
+
tmp = new Custom(_this__u8e3s4.n3i_1, isNullable);
|
|
214
219
|
} else {
|
|
215
220
|
noWhenBranchMatchedException();
|
|
216
221
|
}
|
|
@@ -222,18 +227,18 @@ function toReference(_this__u8e3s4, $this, isNullable) {
|
|
|
222
227
|
}
|
|
223
228
|
return tmp;
|
|
224
229
|
}
|
|
225
|
-
function toReference_0(
|
|
226
|
-
var list = minus(_this__u8e3s4, $this.
|
|
230
|
+
function toReference_0($this, _this__u8e3s4) {
|
|
231
|
+
var list = minus(_this__u8e3s4, $this.l3i_1);
|
|
227
232
|
var tmp;
|
|
228
|
-
if (list.
|
|
229
|
-
tmp = toReference(first(list), $this,
|
|
233
|
+
if (list.a1() === 1) {
|
|
234
|
+
tmp = toReference($this, first(list), isNullable($this, _this__u8e3s4));
|
|
230
235
|
} else {
|
|
231
236
|
var tmp$ret$0;
|
|
232
237
|
$l$block: {
|
|
233
238
|
// Inline function 'kotlin.collections.count' call
|
|
234
239
|
var tmp_0;
|
|
235
240
|
if (isInterface(list, Collection)) {
|
|
236
|
-
tmp_0 = list.
|
|
241
|
+
tmp_0 = list.r();
|
|
237
242
|
} else {
|
|
238
243
|
tmp_0 = false;
|
|
239
244
|
}
|
|
@@ -242,10 +247,9 @@ function toReference_0(_this__u8e3s4, $this) {
|
|
|
242
247
|
break $l$block;
|
|
243
248
|
}
|
|
244
249
|
var count = 0;
|
|
245
|
-
var
|
|
246
|
-
while (
|
|
247
|
-
var element =
|
|
248
|
-
// Inline function 'community.flock.wirespec.converter.avro.AvroConverter.toReference.<anonymous>' call
|
|
250
|
+
var _iterator__ex2g4s = list.t();
|
|
251
|
+
while (_iterator__ex2g4s.u()) {
|
|
252
|
+
var element = _iterator__ex2g4s.v();
|
|
249
253
|
if (element instanceof SimpleType) {
|
|
250
254
|
count = count + 1 | 0;
|
|
251
255
|
checkCountOverflow(count);
|
|
@@ -257,79 +261,75 @@ function toReference_0(_this__u8e3s4, $this) {
|
|
|
257
261
|
var message = 'Cannot have multiple SimpleTypes in Union';
|
|
258
262
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
259
263
|
} else {
|
|
260
|
-
tmp = toReference(first(list), $this,
|
|
264
|
+
tmp = toReference($this, first(list), isNullable($this, _this__u8e3s4));
|
|
261
265
|
}
|
|
262
266
|
}
|
|
263
267
|
return tmp;
|
|
264
268
|
}
|
|
265
|
-
function toType(
|
|
269
|
+
function toType($this, _this__u8e3s4) {
|
|
266
270
|
var tmp0_annotations = emptyList();
|
|
267
|
-
var tmp1_identifier = new DefinitionIdentifier(_this__u8e3s4.
|
|
271
|
+
var tmp1_identifier = new DefinitionIdentifier(_this__u8e3s4.a3j_1);
|
|
268
272
|
var tmp2_extends = emptyList();
|
|
269
273
|
// Inline function 'kotlin.collections.map' call
|
|
270
|
-
var this_0 = _this__u8e3s4.
|
|
274
|
+
var this_0 = _this__u8e3s4.c3j_1;
|
|
271
275
|
// Inline function 'kotlin.collections.mapTo' call
|
|
272
276
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
273
|
-
var
|
|
274
|
-
while (
|
|
275
|
-
var item =
|
|
276
|
-
|
|
277
|
-
var tmp0_identifier = new FieldIdentifier(item.l2d_1);
|
|
277
|
+
var _iterator__ex2g4s = this_0.t();
|
|
278
|
+
while (_iterator__ex2g4s.u()) {
|
|
279
|
+
var item = _iterator__ex2g4s.v();
|
|
280
|
+
var tmp0_identifier = new FieldIdentifier(item.g3j_1);
|
|
278
281
|
var tmp1_annotations = emptyList();
|
|
279
|
-
var tmp2_reference = toReference_0(
|
|
282
|
+
var tmp2_reference = toReference_0(AvroConverter_getInstance(), item.h3j_1);
|
|
280
283
|
var tmp$ret$0 = new Field(tmp1_annotations, tmp0_identifier, tmp2_reference);
|
|
281
|
-
destination.
|
|
284
|
+
destination.x(tmp$ret$0);
|
|
282
285
|
}
|
|
283
286
|
var tmp3_shape = new Shape(destination);
|
|
284
287
|
return new Type(null, tmp0_annotations, tmp1_identifier, tmp3_shape, tmp2_extends);
|
|
285
288
|
}
|
|
286
|
-
function toEnum(
|
|
287
|
-
return new Enum(null, emptyList(), new DefinitionIdentifier(_this__u8e3s4.
|
|
289
|
+
function toEnum($this, _this__u8e3s4) {
|
|
290
|
+
return new Enum(null, emptyList(), new DefinitionIdentifier(_this__u8e3s4.w3i_1), toSet(_this__u8e3s4.y3i_1));
|
|
288
291
|
}
|
|
289
|
-
function toUnion(
|
|
292
|
+
function toUnion($this, _this__u8e3s4, name) {
|
|
290
293
|
var tmp = emptyList();
|
|
291
294
|
var tmp_0 = new DefinitionIdentifier(name);
|
|
292
295
|
// Inline function 'kotlin.collections.map' call
|
|
293
|
-
var this_0 = _this__u8e3s4.
|
|
296
|
+
var this_0 = _this__u8e3s4.o3i_1;
|
|
294
297
|
// Inline function 'kotlin.collections.mapTo' call
|
|
295
298
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
296
|
-
var
|
|
297
|
-
while (
|
|
298
|
-
var item =
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
destination.e(tmp$ret$0);
|
|
299
|
+
var _iterator__ex2g4s = this_0.t();
|
|
300
|
+
while (_iterator__ex2g4s.u()) {
|
|
301
|
+
var item = _iterator__ex2g4s.v();
|
|
302
|
+
var tmp$ret$0 = toReference(AvroConverter_getInstance(), item, false);
|
|
303
|
+
destination.x(tmp$ret$0);
|
|
302
304
|
}
|
|
303
305
|
return new Union(null, tmp, tmp_0, toSet(destination));
|
|
304
306
|
}
|
|
305
307
|
function AvroConverter() {
|
|
306
308
|
AvroConverter_instance = this;
|
|
307
|
-
this.
|
|
309
|
+
this.l3i_1 = new SimpleType('null');
|
|
308
310
|
}
|
|
309
|
-
protoOf(AvroConverter).
|
|
311
|
+
protoOf(AvroConverter).k3j = function (_this__u8e3s4, name) {
|
|
310
312
|
var tmp;
|
|
311
313
|
if (_this__u8e3s4 instanceof SimpleType) {
|
|
312
314
|
tmp = emptyList();
|
|
313
315
|
} else {
|
|
314
316
|
if (_this__u8e3s4 instanceof RecordType) {
|
|
315
|
-
var tmp_0 = listOf(toType(
|
|
317
|
+
var tmp_0 = listOf(toType(this, _this__u8e3s4));
|
|
316
318
|
// Inline function 'kotlin.collections.flatMap' call
|
|
319
|
+
var tmp0 = _this__u8e3s4.c3j_1;
|
|
317
320
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
318
|
-
var this_0 = _this__u8e3s4.h2d_1;
|
|
319
321
|
var destination = ArrayList_init_$Create$_0();
|
|
320
|
-
var
|
|
321
|
-
while (
|
|
322
|
-
var element =
|
|
323
|
-
// Inline function 'community.flock.wirespec.converter.avro.AvroConverter.flatten.<anonymous>' call
|
|
322
|
+
var _iterator__ex2g4s = tmp0.t();
|
|
323
|
+
while (_iterator__ex2g4s.u()) {
|
|
324
|
+
var element = _iterator__ex2g4s.v();
|
|
324
325
|
// Inline function 'kotlin.collections.flatMap' call
|
|
326
|
+
var tmp0_0 = element.h3j_1;
|
|
325
327
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
326
|
-
var this_1 = element.m2d_1;
|
|
327
328
|
var destination_0 = ArrayList_init_$Create$_0();
|
|
328
|
-
var
|
|
329
|
-
while (
|
|
330
|
-
var element_0 =
|
|
331
|
-
|
|
332
|
-
var list = AvroConverter_getInstance().p2d(element_0, name);
|
|
329
|
+
var _iterator__ex2g4s_0 = tmp0_0.t();
|
|
330
|
+
while (_iterator__ex2g4s_0.u()) {
|
|
331
|
+
var element_0 = _iterator__ex2g4s_0.v();
|
|
332
|
+
var list = AvroConverter_getInstance().k3j(element_0, name);
|
|
333
333
|
addAll(destination_0, list);
|
|
334
334
|
}
|
|
335
335
|
var list_0 = destination_0;
|
|
@@ -338,19 +338,19 @@ protoOf(AvroConverter).p2d = function (_this__u8e3s4, name) {
|
|
|
338
338
|
tmp = plus(tmp_0, destination);
|
|
339
339
|
} else {
|
|
340
340
|
if (_this__u8e3s4 instanceof ArrayType) {
|
|
341
|
-
tmp = this.
|
|
341
|
+
tmp = this.k3j(_this__u8e3s4.f3j_1, name);
|
|
342
342
|
} else {
|
|
343
343
|
if (_this__u8e3s4 instanceof EnumType) {
|
|
344
|
-
tmp = listOf(toEnum(
|
|
344
|
+
tmp = listOf(toEnum(this, _this__u8e3s4));
|
|
345
345
|
} else {
|
|
346
346
|
if (_this__u8e3s4 instanceof LogicalType) {
|
|
347
347
|
tmp = emptyList();
|
|
348
348
|
} else {
|
|
349
349
|
if (_this__u8e3s4 instanceof MapType) {
|
|
350
|
-
tmp = this.
|
|
350
|
+
tmp = this.k3j(_this__u8e3s4.q3i_1, name);
|
|
351
351
|
} else {
|
|
352
352
|
if (_this__u8e3s4 instanceof UnionType) {
|
|
353
|
-
tmp = listOf(toUnion(
|
|
353
|
+
tmp = listOf(toUnion(this, _this__u8e3s4, name));
|
|
354
354
|
} else {
|
|
355
355
|
noWhenBranchMatchedException();
|
|
356
356
|
}
|
|
@@ -362,9 +362,9 @@ protoOf(AvroConverter).p2d = function (_this__u8e3s4, name) {
|
|
|
362
362
|
}
|
|
363
363
|
return tmp;
|
|
364
364
|
};
|
|
365
|
-
protoOf(AvroConverter).
|
|
365
|
+
protoOf(AvroConverter).l3j = function (_this__u8e3s4, name, $super) {
|
|
366
366
|
name = name === VOID ? '' : name;
|
|
367
|
-
return $super === VOID ? this.
|
|
367
|
+
return $super === VOID ? this.k3j(_this__u8e3s4, name) : $super.k3j.call(this, _this__u8e3s4, name);
|
|
368
368
|
};
|
|
369
369
|
var AvroConverter_instance;
|
|
370
370
|
function AvroConverter_getInstance() {
|
|
@@ -372,17 +372,16 @@ function AvroConverter_getInstance() {
|
|
|
372
372
|
new AvroConverter();
|
|
373
373
|
return AvroConverter_instance;
|
|
374
374
|
}
|
|
375
|
-
function findType(
|
|
375
|
+
function findType($this, _this__u8e3s4, name) {
|
|
376
376
|
// Inline function 'kotlin.collections.find' call
|
|
377
|
-
var
|
|
377
|
+
var tmp0 = NonEmptyList__toList_impl_t5xcy2(_this__u8e3s4.dq_1);
|
|
378
378
|
var tmp$ret$1;
|
|
379
379
|
$l$block: {
|
|
380
380
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
381
|
-
var
|
|
382
|
-
while (
|
|
383
|
-
var element =
|
|
384
|
-
|
|
385
|
-
if (element.x25().b1() === name) {
|
|
381
|
+
var _iterator__ex2g4s = tmp0.t();
|
|
382
|
+
while (_iterator__ex2g4s.u()) {
|
|
383
|
+
var element = _iterator__ex2g4s.v();
|
|
384
|
+
if (element.vq().l1() === name) {
|
|
386
385
|
tmp$ret$1 = element;
|
|
387
386
|
break $l$block;
|
|
388
387
|
}
|
|
@@ -393,110 +392,92 @@ function findType(_this__u8e3s4, $this, name) {
|
|
|
393
392
|
}
|
|
394
393
|
function AvroEmitter() {
|
|
395
394
|
AvroEmitter_instance = this;
|
|
396
|
-
this.
|
|
395
|
+
this.m3j_1 = FileExtension_JSON_getInstance();
|
|
397
396
|
}
|
|
398
|
-
protoOf(AvroEmitter).
|
|
399
|
-
|
|
400
|
-
|
|
397
|
+
protoOf(AvroEmitter).eq = function () {
|
|
398
|
+
return this.m3j_1;
|
|
399
|
+
};
|
|
400
|
+
protoOf(AvroEmitter).on = function (ast, logger) {
|
|
401
401
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
402
|
-
var this_0 = ast.
|
|
403
|
-
// Inline function 'community.flock.wirespec.converter.avro.AvroEmitter.emit.<anonymous>' call
|
|
404
|
-
var it = this_0.pk_1;
|
|
405
|
-
logger.u25('Emitting Nodes from ' + it.e25_1.c22_1 + ' ');
|
|
406
|
-
var tmp = AvroEmitter_getInstance().s2d(it);
|
|
402
|
+
var this_0 = ast.bq_1;
|
|
407
403
|
// Inline function 'kotlin.collections.map' call
|
|
408
|
-
var this_1 = this_0
|
|
404
|
+
var this_1 = _NonEmptyList___get_all__impl__pmf509(this_0);
|
|
409
405
|
// Inline function 'kotlin.collections.mapTo' call
|
|
410
406
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_1, 10));
|
|
411
|
-
var
|
|
412
|
-
while (
|
|
413
|
-
var item =
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
destination.e(tmp$ret$1);
|
|
407
|
+
var _iterator__ex2g4s = this_1.t();
|
|
408
|
+
while (_iterator__ex2g4s.u()) {
|
|
409
|
+
var item = _iterator__ex2g4s.v();
|
|
410
|
+
logger.sq('Emitting Nodes from ' + item.cq_1.dn_1 + ' ');
|
|
411
|
+
var tmp$ret$0 = AvroEmitter_getInstance().n3j(item);
|
|
412
|
+
destination.x(tmp$ret$0);
|
|
418
413
|
}
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
var it_0 = this_2.pk_1;
|
|
422
|
-
// Inline function 'kotlinx.serialization.encodeToString' call
|
|
423
|
-
var this_3 = Default_getInstance();
|
|
424
|
-
// Inline function 'kotlinx.serialization.serializer' call
|
|
425
|
-
var this_4 = this_3.zo();
|
|
426
|
-
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
427
|
-
var this_5 = serializer(this_4, createKType(getKClass(KtList), arrayOf([createInvariantKTypeProjection(createKType(getKClass(Type_0), arrayOf([]), false))]), false));
|
|
428
|
-
var tmp$ret$6 = isInterface(this_5, KSerializer) ? this_5 : THROW_CCE();
|
|
429
|
-
var tmp_0 = this_3.m15(tmp$ret$6, it_0);
|
|
414
|
+
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
415
|
+
var this_2 = _NonEmptyList___init__impl__fxd0xp(destination);
|
|
430
416
|
// Inline function 'kotlin.collections.map' call
|
|
431
|
-
var
|
|
417
|
+
var this_3 = _NonEmptyList___get_all__impl__pmf509(this_2);
|
|
432
418
|
// Inline function 'kotlin.collections.mapTo' call
|
|
433
|
-
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(
|
|
434
|
-
var
|
|
435
|
-
while (
|
|
436
|
-
var item_0 =
|
|
437
|
-
// Inline function 'community.flock.wirespec.converter.avro.AvroEmitter.emit.<anonymous>' call
|
|
419
|
+
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(this_3, 10));
|
|
420
|
+
var _iterator__ex2g4s_0 = this_3.t();
|
|
421
|
+
while (_iterator__ex2g4s_0.u()) {
|
|
422
|
+
var item_0 = _iterator__ex2g4s_0.v();
|
|
438
423
|
// Inline function 'kotlinx.serialization.encodeToString' call
|
|
439
|
-
var
|
|
424
|
+
var this_4 = Default_getInstance();
|
|
440
425
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
441
|
-
var
|
|
426
|
+
var this_5 = this_4.y24();
|
|
442
427
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
443
|
-
var
|
|
444
|
-
var tmp$ret$
|
|
445
|
-
var tmp$ret$
|
|
446
|
-
destination_0.
|
|
428
|
+
var this_6 = serializer(this_5, createKType(getKClass(KtList), arrayOf([createInvariantKTypeProjection(createKType(getKClass(Type_0), arrayOf([]), false))]), false));
|
|
429
|
+
var tmp$ret$5 = isInterface(this_6, KSerializer) ? this_6 : THROW_CCE();
|
|
430
|
+
var tmp$ret$7 = this_4.l2l(tmp$ret$5, item_0);
|
|
431
|
+
destination_0.x(tmp$ret$7);
|
|
447
432
|
}
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
var it_1 = this_10.pk_1;
|
|
451
|
-
var tmp_1 = new Emitted('schema.avsc', it_1);
|
|
433
|
+
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
434
|
+
var this_7 = _NonEmptyList___init__impl__fxd0xp(destination_0);
|
|
452
435
|
// Inline function 'kotlin.collections.map' call
|
|
453
|
-
var
|
|
436
|
+
var this_8 = _NonEmptyList___get_all__impl__pmf509(this_7);
|
|
454
437
|
// Inline function 'kotlin.collections.mapTo' call
|
|
455
|
-
var destination_1 = ArrayList_init_$Create$(collectionSizeOrDefault(
|
|
456
|
-
var
|
|
457
|
-
while (
|
|
458
|
-
var item_1 =
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
destination_1.e(tmp$ret$17);
|
|
438
|
+
var destination_1 = ArrayList_init_$Create$(collectionSizeOrDefault(this_8, 10));
|
|
439
|
+
var _iterator__ex2g4s_1 = this_8.t();
|
|
440
|
+
while (_iterator__ex2g4s_1.u()) {
|
|
441
|
+
var item_1 = _iterator__ex2g4s_1.v();
|
|
442
|
+
var tmp$ret$11 = new Emitted('schema.avsc', item_1);
|
|
443
|
+
destination_1.x(tmp$ret$11);
|
|
462
444
|
}
|
|
463
|
-
return
|
|
445
|
+
return _NonEmptyList___init__impl__fxd0xp(destination_1);
|
|
464
446
|
};
|
|
465
|
-
protoOf(AvroEmitter).
|
|
466
|
-
return new EnumType('enum', _this__u8e3s4.
|
|
447
|
+
protoOf(AvroEmitter).o3j = function (_this__u8e3s4) {
|
|
448
|
+
return new EnumType('enum', _this__u8e3s4.gr_1.l1(), VOID, toList(_this__u8e3s4.hr_1));
|
|
467
449
|
};
|
|
468
|
-
protoOf(AvroEmitter).
|
|
469
|
-
var tmp = _this__u8e3s4.
|
|
450
|
+
protoOf(AvroEmitter).p3j = function (_this__u8e3s4) {
|
|
451
|
+
var tmp = _this__u8e3s4.qo_1.l1();
|
|
470
452
|
// Inline function 'kotlin.collections.map' call
|
|
471
|
-
var this_0 = _this__u8e3s4.
|
|
453
|
+
var this_0 = _this__u8e3s4.ro_1;
|
|
472
454
|
// Inline function 'kotlin.collections.mapTo' call
|
|
473
455
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
474
|
-
var
|
|
475
|
-
while (
|
|
476
|
-
var item =
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
destination.e(tmp$ret$0);
|
|
456
|
+
var _iterator__ex2g4s = this_0.t();
|
|
457
|
+
while (_iterator__ex2g4s.u()) {
|
|
458
|
+
var item = _iterator__ex2g4s.v();
|
|
459
|
+
var tmp$ret$0 = new SimpleType(item.l1());
|
|
460
|
+
destination.x(tmp$ret$0);
|
|
480
461
|
}
|
|
481
462
|
return new UnionType(tmp, TypeList_init_$Create$(destination));
|
|
482
463
|
};
|
|
483
|
-
protoOf(AvroEmitter).
|
|
464
|
+
protoOf(AvroEmitter).q3j = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
484
465
|
var tmp;
|
|
485
466
|
if (_this__u8e3s4 instanceof Dict) {
|
|
486
|
-
tmp = new MapType('map', this.
|
|
467
|
+
tmp = new MapType('map', this.q3j(_this__u8e3s4.co_1, module_0, hasEmitted));
|
|
487
468
|
} else {
|
|
488
469
|
if (_this__u8e3s4 instanceof Iterable) {
|
|
489
|
-
tmp = new ArrayType('array', this.
|
|
470
|
+
tmp = new ArrayType('array', this.q3j(_this__u8e3s4.zn_1, module_0, hasEmitted));
|
|
490
471
|
} else {
|
|
491
472
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
492
|
-
var type = _this__u8e3s4.
|
|
473
|
+
var type = _this__u8e3s4.pu_1;
|
|
493
474
|
var tmp_0;
|
|
494
475
|
if (type instanceof String_0) {
|
|
495
476
|
tmp_0 = new SimpleType('string');
|
|
496
477
|
} else {
|
|
497
478
|
if (type instanceof Integer) {
|
|
498
479
|
var tmp_1;
|
|
499
|
-
switch (type.
|
|
480
|
+
switch (type.tt_1.b3_1) {
|
|
500
481
|
case 0:
|
|
501
482
|
tmp_1 = new SimpleType('int');
|
|
502
483
|
break;
|
|
@@ -511,7 +492,7 @@ protoOf(AvroEmitter).v2d = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
|
511
492
|
} else {
|
|
512
493
|
if (type instanceof Number_0) {
|
|
513
494
|
var tmp_2;
|
|
514
|
-
switch (type.
|
|
495
|
+
switch (type.wt_1.b3_1) {
|
|
515
496
|
case 0:
|
|
516
497
|
tmp_2 = new SimpleType('float');
|
|
517
498
|
break;
|
|
@@ -539,31 +520,28 @@ protoOf(AvroEmitter).v2d = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
|
539
520
|
tmp = tmp_0;
|
|
540
521
|
} else {
|
|
541
522
|
if (_this__u8e3s4 instanceof Custom) {
|
|
542
|
-
var def = findType(
|
|
523
|
+
var def = findType(this, module_0, _this__u8e3s4.lu_1);
|
|
543
524
|
var tmp_3;
|
|
544
525
|
if (def instanceof Type) {
|
|
545
526
|
var tmp_4;
|
|
546
|
-
if (hasEmitted.
|
|
527
|
+
if (hasEmitted.u1(def.vo_1.l1())) {
|
|
547
528
|
// Inline function 'kotlin.let' call
|
|
548
|
-
|
|
549
|
-
var p0 = def.x23_1.b1();
|
|
529
|
+
var p0 = def.vo_1.l1();
|
|
550
530
|
tmp_4 = new SimpleType(p0);
|
|
551
531
|
} else {
|
|
552
532
|
// Inline function 'kotlin.also' call
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
hasEmitted.e(def.x23_1.b1());
|
|
556
|
-
tmp_4 = this.w2d(def, module_0, hasEmitted);
|
|
533
|
+
hasEmitted.x(def.vo_1.l1());
|
|
534
|
+
tmp_4 = this.r3j(def, module_0, hasEmitted);
|
|
557
535
|
}
|
|
558
536
|
tmp_3 = tmp_4;
|
|
559
537
|
} else {
|
|
560
538
|
if (def instanceof Enum) {
|
|
561
|
-
tmp_3 = new SimpleType(def.
|
|
539
|
+
tmp_3 = new SimpleType(def.gr_1.l1());
|
|
562
540
|
} else {
|
|
563
541
|
if (def instanceof Refined) {
|
|
564
542
|
tmp_3 = new SimpleType('string');
|
|
565
543
|
} else {
|
|
566
|
-
tmp_3 = new SimpleType(_this__u8e3s4.
|
|
544
|
+
tmp_3 = new SimpleType(_this__u8e3s4.lu_1);
|
|
567
545
|
}
|
|
568
546
|
}
|
|
569
547
|
}
|
|
@@ -584,60 +562,57 @@ protoOf(AvroEmitter).v2d = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
|
584
562
|
}
|
|
585
563
|
return tmp;
|
|
586
564
|
};
|
|
587
|
-
protoOf(AvroEmitter).
|
|
588
|
-
var ref = _this__u8e3s4.
|
|
565
|
+
protoOf(AvroEmitter).s3j = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
566
|
+
var ref = _this__u8e3s4.bp_1;
|
|
589
567
|
var tmp;
|
|
590
568
|
if (ref instanceof Iterable) {
|
|
591
|
-
tmp = new ArrayType('array', this.
|
|
569
|
+
tmp = new ArrayType('array', this.q3j(ref.zn_1, module_0, hasEmitted));
|
|
592
570
|
} else {
|
|
593
|
-
tmp = this.
|
|
571
|
+
tmp = this.q3j(ref, module_0, hasEmitted);
|
|
594
572
|
}
|
|
595
573
|
return tmp;
|
|
596
574
|
};
|
|
597
|
-
protoOf(AvroEmitter).
|
|
598
|
-
var tmp0_name = _this__u8e3s4.
|
|
575
|
+
protoOf(AvroEmitter).r3j = function (_this__u8e3s4, module_0, hasEmitted) {
|
|
576
|
+
var tmp0_name = _this__u8e3s4.vo_1.l1();
|
|
599
577
|
// Inline function 'kotlin.collections.map' call
|
|
600
|
-
var this_0 = _this__u8e3s4.
|
|
578
|
+
var this_0 = _this__u8e3s4.wo_1.so_1;
|
|
601
579
|
// Inline function 'kotlin.collections.mapTo' call
|
|
602
580
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
603
|
-
var
|
|
604
|
-
while (
|
|
605
|
-
var item =
|
|
606
|
-
|
|
607
|
-
var tmp = item.c24_1.b1();
|
|
581
|
+
var _iterator__ex2g4s = this_0.t();
|
|
582
|
+
while (_iterator__ex2g4s.u()) {
|
|
583
|
+
var item = _iterator__ex2g4s.v();
|
|
584
|
+
var tmp = item.ap_1.l1();
|
|
608
585
|
var tmp_0;
|
|
609
|
-
if (item.
|
|
610
|
-
tmp_0 = new TypeList([new SimpleType('null'), AvroEmitter_getInstance().
|
|
586
|
+
if (item.bp_1.du()) {
|
|
587
|
+
tmp_0 = new TypeList([new SimpleType('null'), AvroEmitter_getInstance().s3j(item, module_0, hasEmitted)]);
|
|
611
588
|
} else {
|
|
612
|
-
tmp_0 = new TypeList([AvroEmitter_getInstance().
|
|
589
|
+
tmp_0 = new TypeList([AvroEmitter_getInstance().s3j(item, module_0, hasEmitted)]);
|
|
613
590
|
}
|
|
614
591
|
var tmp$ret$0 = new Field_0(tmp, tmp_0);
|
|
615
|
-
destination.
|
|
592
|
+
destination.x(tmp$ret$0);
|
|
616
593
|
}
|
|
617
594
|
return new RecordType('record', tmp0_name, VOID, destination);
|
|
618
595
|
};
|
|
619
|
-
protoOf(AvroEmitter).
|
|
596
|
+
protoOf(AvroEmitter).n3j = function (module_0) {
|
|
620
597
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
621
598
|
var hasEmitted = ArrayList_init_$Create$_0();
|
|
622
599
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
600
|
+
var tmp0 = NonEmptyList__toList_impl_t5xcy2(module_0.dq_1);
|
|
623
601
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
624
|
-
var this_0 = module_0.f25_1.tk();
|
|
625
602
|
var destination = ArrayList_init_$Create$_0();
|
|
626
603
|
// Inline function 'kotlin.collections.forEach' call
|
|
627
|
-
var
|
|
628
|
-
while (
|
|
629
|
-
var element =
|
|
630
|
-
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
631
|
-
// Inline function 'community.flock.wirespec.converter.avro.AvroEmitter.emit.<anonymous>' call
|
|
604
|
+
var _iterator__ex2g4s = tmp0.t();
|
|
605
|
+
while (_iterator__ex2g4s.u()) {
|
|
606
|
+
var element = _iterator__ex2g4s.v();
|
|
632
607
|
var tmp;
|
|
633
608
|
if (element instanceof Type) {
|
|
634
|
-
tmp = AvroEmitter_getInstance().
|
|
609
|
+
tmp = AvroEmitter_getInstance().r3j(element, module_0, hasEmitted);
|
|
635
610
|
} else {
|
|
636
611
|
if (element instanceof Enum) {
|
|
637
|
-
tmp = AvroEmitter_getInstance().
|
|
612
|
+
tmp = AvroEmitter_getInstance().o3j(element);
|
|
638
613
|
} else {
|
|
639
614
|
if (element instanceof Union) {
|
|
640
|
-
tmp = AvroEmitter_getInstance().
|
|
615
|
+
tmp = AvroEmitter_getInstance().p3j(element);
|
|
641
616
|
} else {
|
|
642
617
|
tmp = null;
|
|
643
618
|
}
|
|
@@ -648,8 +623,7 @@ protoOf(AvroEmitter).s2d = function (module_0) {
|
|
|
648
623
|
null;
|
|
649
624
|
else {
|
|
650
625
|
// Inline function 'kotlin.let' call
|
|
651
|
-
|
|
652
|
-
destination.e(tmp0_safe_receiver);
|
|
626
|
+
destination.x(tmp0_safe_receiver);
|
|
653
627
|
}
|
|
654
628
|
}
|
|
655
629
|
return destination;
|
|
@@ -669,30 +643,30 @@ function Companion_getInstance() {
|
|
|
669
643
|
function $serializer() {
|
|
670
644
|
$serializer_instance = this;
|
|
671
645
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.Field', this, 4);
|
|
672
|
-
tmp0_serialDesc.
|
|
673
|
-
tmp0_serialDesc.
|
|
674
|
-
tmp0_serialDesc.
|
|
675
|
-
tmp0_serialDesc.
|
|
676
|
-
this.
|
|
677
|
-
}
|
|
678
|
-
protoOf($serializer).
|
|
679
|
-
var tmp0_desc = this.
|
|
680
|
-
var tmp1_output = encoder.
|
|
681
|
-
tmp1_output.
|
|
682
|
-
tmp1_output.
|
|
683
|
-
if (tmp1_output.
|
|
684
|
-
tmp1_output.
|
|
646
|
+
tmp0_serialDesc.t2b('name', false);
|
|
647
|
+
tmp0_serialDesc.t2b('type', false);
|
|
648
|
+
tmp0_serialDesc.t2b('doc', true);
|
|
649
|
+
tmp0_serialDesc.t2b('default', true);
|
|
650
|
+
this.t3j_1 = tmp0_serialDesc;
|
|
651
|
+
}
|
|
652
|
+
protoOf($serializer).u3j = function (encoder, value) {
|
|
653
|
+
var tmp0_desc = this.t3j_1;
|
|
654
|
+
var tmp1_output = encoder.j24(tmp0_desc);
|
|
655
|
+
tmp1_output.y25(tmp0_desc, 0, value.g3j_1);
|
|
656
|
+
tmp1_output.a26(tmp0_desc, 1, TypeListSerializer_getInstance(), value.h3j_1);
|
|
657
|
+
if (tmp1_output.g26(tmp0_desc, 2) ? true : !(value.i3j_1 == null)) {
|
|
658
|
+
tmp1_output.c26(tmp0_desc, 2, StringSerializer_getInstance(), value.i3j_1);
|
|
685
659
|
}
|
|
686
|
-
if (tmp1_output.
|
|
687
|
-
tmp1_output.
|
|
660
|
+
if (tmp1_output.g26(tmp0_desc, 3) ? true : !(value.j3j_1 == null)) {
|
|
661
|
+
tmp1_output.c26(tmp0_desc, 3, StringSerializer_getInstance(), value.j3j_1);
|
|
688
662
|
}
|
|
689
|
-
tmp1_output.
|
|
663
|
+
tmp1_output.k24(tmp0_desc);
|
|
690
664
|
};
|
|
691
|
-
protoOf($serializer).
|
|
692
|
-
return this.
|
|
665
|
+
protoOf($serializer).k21 = function (encoder, value) {
|
|
666
|
+
return this.u3j(encoder, value instanceof Field_0 ? value : THROW_CCE());
|
|
693
667
|
};
|
|
694
|
-
protoOf($serializer).
|
|
695
|
-
var tmp0_desc = this.
|
|
668
|
+
protoOf($serializer).l21 = function (decoder) {
|
|
669
|
+
var tmp0_desc = this.t3j_1;
|
|
696
670
|
var tmp1_flag = true;
|
|
697
671
|
var tmp2_index = 0;
|
|
698
672
|
var tmp3_bitMask0 = 0;
|
|
@@ -700,50 +674,50 @@ protoOf($serializer).ll = function (decoder) {
|
|
|
700
674
|
var tmp5_local1 = null;
|
|
701
675
|
var tmp6_local2 = null;
|
|
702
676
|
var tmp7_local3 = null;
|
|
703
|
-
var tmp8_input = decoder.
|
|
704
|
-
if (tmp8_input.
|
|
705
|
-
tmp4_local0 = tmp8_input.
|
|
677
|
+
var tmp8_input = decoder.j24(tmp0_desc);
|
|
678
|
+
if (tmp8_input.z24()) {
|
|
679
|
+
tmp4_local0 = tmp8_input.t24(tmp0_desc, 0);
|
|
706
680
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
707
|
-
tmp5_local1 = tmp8_input.
|
|
681
|
+
tmp5_local1 = tmp8_input.v24(tmp0_desc, 1, TypeListSerializer_getInstance(), tmp5_local1);
|
|
708
682
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
709
|
-
tmp6_local2 = tmp8_input.
|
|
683
|
+
tmp6_local2 = tmp8_input.x24(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
710
684
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
711
|
-
tmp7_local3 = tmp8_input.
|
|
685
|
+
tmp7_local3 = tmp8_input.x24(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
|
|
712
686
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
713
687
|
} else
|
|
714
688
|
while (tmp1_flag) {
|
|
715
|
-
tmp2_index = tmp8_input.
|
|
689
|
+
tmp2_index = tmp8_input.a25(tmp0_desc);
|
|
716
690
|
switch (tmp2_index) {
|
|
717
691
|
case -1:
|
|
718
692
|
tmp1_flag = false;
|
|
719
693
|
break;
|
|
720
694
|
case 0:
|
|
721
|
-
tmp4_local0 = tmp8_input.
|
|
695
|
+
tmp4_local0 = tmp8_input.t24(tmp0_desc, 0);
|
|
722
696
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
723
697
|
break;
|
|
724
698
|
case 1:
|
|
725
|
-
tmp5_local1 = tmp8_input.
|
|
699
|
+
tmp5_local1 = tmp8_input.v24(tmp0_desc, 1, TypeListSerializer_getInstance(), tmp5_local1);
|
|
726
700
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
727
701
|
break;
|
|
728
702
|
case 2:
|
|
729
|
-
tmp6_local2 = tmp8_input.
|
|
703
|
+
tmp6_local2 = tmp8_input.x24(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
730
704
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
731
705
|
break;
|
|
732
706
|
case 3:
|
|
733
|
-
tmp7_local3 = tmp8_input.
|
|
707
|
+
tmp7_local3 = tmp8_input.x24(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
|
|
734
708
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
735
709
|
break;
|
|
736
710
|
default:
|
|
737
711
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
738
712
|
}
|
|
739
713
|
}
|
|
740
|
-
tmp8_input.
|
|
714
|
+
tmp8_input.k24(tmp0_desc);
|
|
741
715
|
return Field_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
742
716
|
};
|
|
743
|
-
protoOf($serializer).
|
|
744
|
-
return this.
|
|
717
|
+
protoOf($serializer).j21 = function () {
|
|
718
|
+
return this.t3j_1;
|
|
745
719
|
};
|
|
746
|
-
protoOf($serializer).
|
|
720
|
+
protoOf($serializer).m2c = function () {
|
|
747
721
|
// Inline function 'kotlin.arrayOf' call
|
|
748
722
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
749
723
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -757,18 +731,18 @@ function $serializer_getInstance() {
|
|
|
757
731
|
}
|
|
758
732
|
function Field_init_$Init$(seen0, name, type, doc, default_0, serializationConstructorMarker, $this) {
|
|
759
733
|
if (!(3 === (3 & seen0))) {
|
|
760
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance().
|
|
734
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance().t3j_1);
|
|
761
735
|
}
|
|
762
|
-
$this.
|
|
763
|
-
$this.
|
|
736
|
+
$this.g3j_1 = name;
|
|
737
|
+
$this.h3j_1 = type;
|
|
764
738
|
if (0 === (seen0 & 4))
|
|
765
|
-
$this.
|
|
739
|
+
$this.i3j_1 = null;
|
|
766
740
|
else
|
|
767
|
-
$this.
|
|
741
|
+
$this.i3j_1 = doc;
|
|
768
742
|
if (0 === (seen0 & 8))
|
|
769
|
-
$this.
|
|
743
|
+
$this.j3j_1 = null;
|
|
770
744
|
else
|
|
771
|
-
$this.
|
|
745
|
+
$this.j3j_1 = default_0;
|
|
772
746
|
return $this;
|
|
773
747
|
}
|
|
774
748
|
function Field_init_$Create$(seen0, name, type, doc, default_0, serializationConstructorMarker) {
|
|
@@ -791,11 +765,11 @@ function Companion_getInstance_0() {
|
|
|
791
765
|
}
|
|
792
766
|
function Companion_1() {
|
|
793
767
|
}
|
|
794
|
-
protoOf(Companion_1).
|
|
768
|
+
protoOf(Companion_1).v2n = function () {
|
|
795
769
|
return TypeSerializer_getInstance();
|
|
796
770
|
};
|
|
797
|
-
protoOf(Companion_1).
|
|
798
|
-
return this.
|
|
771
|
+
protoOf(Companion_1).x2c = function (typeParamsSerializers) {
|
|
772
|
+
return this.v2n();
|
|
799
773
|
};
|
|
800
774
|
var Companion_instance_1;
|
|
801
775
|
function Companion_getInstance_1() {
|
|
@@ -810,50 +784,50 @@ function Companion_getInstance_2() {
|
|
|
810
784
|
function $serializer_0() {
|
|
811
785
|
$serializer_instance_0 = this;
|
|
812
786
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.SimpleType', this, 1);
|
|
813
|
-
tmp0_serialDesc.
|
|
814
|
-
this.
|
|
787
|
+
tmp0_serialDesc.t2b('value', false);
|
|
788
|
+
this.v3j_1 = tmp0_serialDesc;
|
|
815
789
|
}
|
|
816
|
-
protoOf($serializer_0).
|
|
817
|
-
var tmp0_desc = this.
|
|
818
|
-
var tmp1_output = encoder.
|
|
819
|
-
tmp1_output.
|
|
820
|
-
tmp1_output.
|
|
790
|
+
protoOf($serializer_0).w3j = function (encoder, value) {
|
|
791
|
+
var tmp0_desc = this.v3j_1;
|
|
792
|
+
var tmp1_output = encoder.j24(tmp0_desc);
|
|
793
|
+
tmp1_output.y25(tmp0_desc, 0, value.m3i_1);
|
|
794
|
+
tmp1_output.k24(tmp0_desc);
|
|
821
795
|
};
|
|
822
|
-
protoOf($serializer_0).
|
|
823
|
-
return this.
|
|
796
|
+
protoOf($serializer_0).k21 = function (encoder, value) {
|
|
797
|
+
return this.w3j(encoder, value instanceof SimpleType ? value : THROW_CCE());
|
|
824
798
|
};
|
|
825
|
-
protoOf($serializer_0).
|
|
826
|
-
var tmp0_desc = this.
|
|
799
|
+
protoOf($serializer_0).l21 = function (decoder) {
|
|
800
|
+
var tmp0_desc = this.v3j_1;
|
|
827
801
|
var tmp1_flag = true;
|
|
828
802
|
var tmp2_index = 0;
|
|
829
803
|
var tmp3_bitMask0 = 0;
|
|
830
804
|
var tmp4_local0 = null;
|
|
831
|
-
var tmp5_input = decoder.
|
|
832
|
-
if (tmp5_input.
|
|
833
|
-
tmp4_local0 = tmp5_input.
|
|
805
|
+
var tmp5_input = decoder.j24(tmp0_desc);
|
|
806
|
+
if (tmp5_input.z24()) {
|
|
807
|
+
tmp4_local0 = tmp5_input.t24(tmp0_desc, 0);
|
|
834
808
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
835
809
|
} else
|
|
836
810
|
while (tmp1_flag) {
|
|
837
|
-
tmp2_index = tmp5_input.
|
|
811
|
+
tmp2_index = tmp5_input.a25(tmp0_desc);
|
|
838
812
|
switch (tmp2_index) {
|
|
839
813
|
case -1:
|
|
840
814
|
tmp1_flag = false;
|
|
841
815
|
break;
|
|
842
816
|
case 0:
|
|
843
|
-
tmp4_local0 = tmp5_input.
|
|
817
|
+
tmp4_local0 = tmp5_input.t24(tmp0_desc, 0);
|
|
844
818
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
845
819
|
break;
|
|
846
820
|
default:
|
|
847
821
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
848
822
|
}
|
|
849
823
|
}
|
|
850
|
-
tmp5_input.
|
|
824
|
+
tmp5_input.k24(tmp0_desc);
|
|
851
825
|
return SimpleType_init_$Create$(tmp3_bitMask0, tmp4_local0, null);
|
|
852
826
|
};
|
|
853
|
-
protoOf($serializer_0).
|
|
854
|
-
return this.
|
|
827
|
+
protoOf($serializer_0).j21 = function () {
|
|
828
|
+
return this.v3j_1;
|
|
855
829
|
};
|
|
856
|
-
protoOf($serializer_0).
|
|
830
|
+
protoOf($serializer_0).m2c = function () {
|
|
857
831
|
// Inline function 'kotlin.arrayOf' call
|
|
858
832
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
859
833
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -867,23 +841,27 @@ function $serializer_getInstance_0() {
|
|
|
867
841
|
}
|
|
868
842
|
function SimpleType_init_$Init$(seen0, value, serializationConstructorMarker, $this) {
|
|
869
843
|
if (!(1 === (1 & seen0))) {
|
|
870
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_0().
|
|
844
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_0().v3j_1);
|
|
871
845
|
}
|
|
872
|
-
$this.
|
|
846
|
+
$this.m3i_1 = value;
|
|
873
847
|
return $this;
|
|
874
848
|
}
|
|
875
849
|
function SimpleType_init_$Create$(seen0, value, serializationConstructorMarker) {
|
|
876
850
|
return SimpleType_init_$Init$(seen0, value, serializationConstructorMarker, objectCreate(protoOf(SimpleType)));
|
|
877
851
|
}
|
|
852
|
+
function AvroModel$RecordType$Companion$$childSerializers$_anonymous__y3fmeq() {
|
|
853
|
+
return new ArrayListSerializer($serializer_getInstance());
|
|
854
|
+
}
|
|
878
855
|
function Companion_3() {
|
|
879
856
|
Companion_instance_3 = this;
|
|
880
857
|
var tmp = this;
|
|
858
|
+
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
881
859
|
// Inline function 'kotlin.arrayOf' call
|
|
882
860
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
883
861
|
// Inline function 'kotlin.js.asDynamic' call
|
|
884
|
-
tmp.
|
|
862
|
+
tmp.x3j_1 = [null, null, null, lazy(tmp_0, AvroModel$RecordType$Companion$$childSerializers$_anonymous__y3fmeq), null];
|
|
885
863
|
}
|
|
886
|
-
protoOf(Companion_3).
|
|
864
|
+
protoOf(Companion_3).v2n = function () {
|
|
887
865
|
return $serializer_getInstance_1();
|
|
888
866
|
};
|
|
889
867
|
var Companion_instance_3;
|
|
@@ -895,33 +873,33 @@ function Companion_getInstance_3() {
|
|
|
895
873
|
function $serializer_1() {
|
|
896
874
|
$serializer_instance_1 = this;
|
|
897
875
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.RecordType', this, 5);
|
|
898
|
-
tmp0_serialDesc.
|
|
899
|
-
tmp0_serialDesc.
|
|
900
|
-
tmp0_serialDesc.
|
|
901
|
-
tmp0_serialDesc.
|
|
902
|
-
tmp0_serialDesc.
|
|
903
|
-
this.
|
|
904
|
-
}
|
|
905
|
-
protoOf($serializer_1).
|
|
906
|
-
var tmp0_desc = this.
|
|
907
|
-
var tmp1_output = encoder.
|
|
908
|
-
var tmp2_cached = Companion_getInstance_3().
|
|
909
|
-
tmp1_output.
|
|
910
|
-
tmp1_output.
|
|
911
|
-
if (tmp1_output.
|
|
912
|
-
tmp1_output.
|
|
876
|
+
tmp0_serialDesc.t2b('type', false);
|
|
877
|
+
tmp0_serialDesc.t2b('name', false);
|
|
878
|
+
tmp0_serialDesc.t2b('namespace', true);
|
|
879
|
+
tmp0_serialDesc.t2b('fields', false);
|
|
880
|
+
tmp0_serialDesc.t2b('doc', true);
|
|
881
|
+
this.y3j_1 = tmp0_serialDesc;
|
|
882
|
+
}
|
|
883
|
+
protoOf($serializer_1).z3j = function (encoder, value) {
|
|
884
|
+
var tmp0_desc = this.y3j_1;
|
|
885
|
+
var tmp1_output = encoder.j24(tmp0_desc);
|
|
886
|
+
var tmp2_cached = Companion_getInstance_3().x3j_1;
|
|
887
|
+
tmp1_output.y25(tmp0_desc, 0, value.z3i_1);
|
|
888
|
+
tmp1_output.y25(tmp0_desc, 1, value.a3j_1);
|
|
889
|
+
if (tmp1_output.g26(tmp0_desc, 2) ? true : !(value.b3j_1 == null)) {
|
|
890
|
+
tmp1_output.c26(tmp0_desc, 2, StringSerializer_getInstance(), value.b3j_1);
|
|
913
891
|
}
|
|
914
|
-
tmp1_output.
|
|
915
|
-
if (tmp1_output.
|
|
916
|
-
tmp1_output.
|
|
892
|
+
tmp1_output.a26(tmp0_desc, 3, tmp2_cached[3].l1(), value.c3j_1);
|
|
893
|
+
if (tmp1_output.g26(tmp0_desc, 4) ? true : !(value.d3j_1 == null)) {
|
|
894
|
+
tmp1_output.c26(tmp0_desc, 4, StringSerializer_getInstance(), value.d3j_1);
|
|
917
895
|
}
|
|
918
|
-
tmp1_output.
|
|
896
|
+
tmp1_output.k24(tmp0_desc);
|
|
919
897
|
};
|
|
920
|
-
protoOf($serializer_1).
|
|
921
|
-
return this.
|
|
898
|
+
protoOf($serializer_1).k21 = function (encoder, value) {
|
|
899
|
+
return this.z3j(encoder, value instanceof RecordType ? value : THROW_CCE());
|
|
922
900
|
};
|
|
923
|
-
protoOf($serializer_1).
|
|
924
|
-
var tmp0_desc = this.
|
|
901
|
+
protoOf($serializer_1).l21 = function (decoder) {
|
|
902
|
+
var tmp0_desc = this.y3j_1;
|
|
925
903
|
var tmp1_flag = true;
|
|
926
904
|
var tmp2_index = 0;
|
|
927
905
|
var tmp3_bitMask0 = 0;
|
|
@@ -930,62 +908,62 @@ protoOf($serializer_1).ll = function (decoder) {
|
|
|
930
908
|
var tmp6_local2 = null;
|
|
931
909
|
var tmp7_local3 = null;
|
|
932
910
|
var tmp8_local4 = null;
|
|
933
|
-
var tmp9_input = decoder.
|
|
934
|
-
var tmp10_cached = Companion_getInstance_3().
|
|
935
|
-
if (tmp9_input.
|
|
936
|
-
tmp4_local0 = tmp9_input.
|
|
911
|
+
var tmp9_input = decoder.j24(tmp0_desc);
|
|
912
|
+
var tmp10_cached = Companion_getInstance_3().x3j_1;
|
|
913
|
+
if (tmp9_input.z24()) {
|
|
914
|
+
tmp4_local0 = tmp9_input.t24(tmp0_desc, 0);
|
|
937
915
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
938
|
-
tmp5_local1 = tmp9_input.
|
|
916
|
+
tmp5_local1 = tmp9_input.t24(tmp0_desc, 1);
|
|
939
917
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
940
|
-
tmp6_local2 = tmp9_input.
|
|
918
|
+
tmp6_local2 = tmp9_input.x24(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
941
919
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
942
|
-
tmp7_local3 = tmp9_input.
|
|
920
|
+
tmp7_local3 = tmp9_input.v24(tmp0_desc, 3, tmp10_cached[3].l1(), tmp7_local3);
|
|
943
921
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
944
|
-
tmp8_local4 = tmp9_input.
|
|
922
|
+
tmp8_local4 = tmp9_input.x24(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
|
|
945
923
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
946
924
|
} else
|
|
947
925
|
while (tmp1_flag) {
|
|
948
|
-
tmp2_index = tmp9_input.
|
|
926
|
+
tmp2_index = tmp9_input.a25(tmp0_desc);
|
|
949
927
|
switch (tmp2_index) {
|
|
950
928
|
case -1:
|
|
951
929
|
tmp1_flag = false;
|
|
952
930
|
break;
|
|
953
931
|
case 0:
|
|
954
|
-
tmp4_local0 = tmp9_input.
|
|
932
|
+
tmp4_local0 = tmp9_input.t24(tmp0_desc, 0);
|
|
955
933
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
956
934
|
break;
|
|
957
935
|
case 1:
|
|
958
|
-
tmp5_local1 = tmp9_input.
|
|
936
|
+
tmp5_local1 = tmp9_input.t24(tmp0_desc, 1);
|
|
959
937
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
960
938
|
break;
|
|
961
939
|
case 2:
|
|
962
|
-
tmp6_local2 = tmp9_input.
|
|
940
|
+
tmp6_local2 = tmp9_input.x24(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
963
941
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
964
942
|
break;
|
|
965
943
|
case 3:
|
|
966
|
-
tmp7_local3 = tmp9_input.
|
|
944
|
+
tmp7_local3 = tmp9_input.v24(tmp0_desc, 3, tmp10_cached[3].l1(), tmp7_local3);
|
|
967
945
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
968
946
|
break;
|
|
969
947
|
case 4:
|
|
970
|
-
tmp8_local4 = tmp9_input.
|
|
948
|
+
tmp8_local4 = tmp9_input.x24(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
|
|
971
949
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
972
950
|
break;
|
|
973
951
|
default:
|
|
974
952
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
975
953
|
}
|
|
976
954
|
}
|
|
977
|
-
tmp9_input.
|
|
955
|
+
tmp9_input.k24(tmp0_desc);
|
|
978
956
|
return RecordType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null);
|
|
979
957
|
};
|
|
980
|
-
protoOf($serializer_1).
|
|
981
|
-
return this.
|
|
958
|
+
protoOf($serializer_1).j21 = function () {
|
|
959
|
+
return this.y3j_1;
|
|
982
960
|
};
|
|
983
|
-
protoOf($serializer_1).
|
|
984
|
-
var tmp0_cached = Companion_getInstance_3().
|
|
961
|
+
protoOf($serializer_1).m2c = function () {
|
|
962
|
+
var tmp0_cached = Companion_getInstance_3().x3j_1;
|
|
985
963
|
// Inline function 'kotlin.arrayOf' call
|
|
986
964
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
987
965
|
// Inline function 'kotlin.js.asDynamic' call
|
|
988
|
-
return [StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), tmp0_cached[3], get_nullable(StringSerializer_getInstance())];
|
|
966
|
+
return [StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), tmp0_cached[3].l1(), get_nullable(StringSerializer_getInstance())];
|
|
989
967
|
};
|
|
990
968
|
var $serializer_instance_1;
|
|
991
969
|
function $serializer_getInstance_1() {
|
|
@@ -995,19 +973,19 @@ function $serializer_getInstance_1() {
|
|
|
995
973
|
}
|
|
996
974
|
function RecordType_init_$Init$(seen0, type, name, namespace, fields, doc, serializationConstructorMarker, $this) {
|
|
997
975
|
if (!(11 === (11 & seen0))) {
|
|
998
|
-
throwMissingFieldException(seen0, 11, $serializer_getInstance_1().
|
|
976
|
+
throwMissingFieldException(seen0, 11, $serializer_getInstance_1().y3j_1);
|
|
999
977
|
}
|
|
1000
|
-
$this.
|
|
1001
|
-
$this.
|
|
978
|
+
$this.z3i_1 = type;
|
|
979
|
+
$this.a3j_1 = name;
|
|
1002
980
|
if (0 === (seen0 & 4))
|
|
1003
|
-
$this.
|
|
981
|
+
$this.b3j_1 = null;
|
|
1004
982
|
else
|
|
1005
|
-
$this.
|
|
1006
|
-
$this.
|
|
983
|
+
$this.b3j_1 = namespace;
|
|
984
|
+
$this.c3j_1 = fields;
|
|
1007
985
|
if (0 === (seen0 & 16))
|
|
1008
|
-
$this.
|
|
986
|
+
$this.d3j_1 = null;
|
|
1009
987
|
else
|
|
1010
|
-
$this.
|
|
988
|
+
$this.d3j_1 = doc;
|
|
1011
989
|
return $this;
|
|
1012
990
|
}
|
|
1013
991
|
function RecordType_init_$Create$(seen0, type, name, namespace, fields, doc, serializationConstructorMarker) {
|
|
@@ -1015,7 +993,7 @@ function RecordType_init_$Create$(seen0, type, name, namespace, fields, doc, ser
|
|
|
1015
993
|
}
|
|
1016
994
|
function Companion_4() {
|
|
1017
995
|
}
|
|
1018
|
-
protoOf(Companion_4).
|
|
996
|
+
protoOf(Companion_4).v2n = function () {
|
|
1019
997
|
return $serializer_getInstance_2();
|
|
1020
998
|
};
|
|
1021
999
|
var Companion_instance_4;
|
|
@@ -1025,59 +1003,59 @@ function Companion_getInstance_4() {
|
|
|
1025
1003
|
function $serializer_2() {
|
|
1026
1004
|
$serializer_instance_2 = this;
|
|
1027
1005
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.ArrayType', this, 2);
|
|
1028
|
-
tmp0_serialDesc.
|
|
1029
|
-
tmp0_serialDesc.
|
|
1030
|
-
this.
|
|
1031
|
-
}
|
|
1032
|
-
protoOf($serializer_2).
|
|
1033
|
-
var tmp0_desc = this.
|
|
1034
|
-
var tmp1_output = encoder.
|
|
1035
|
-
tmp1_output.
|
|
1036
|
-
tmp1_output.
|
|
1037
|
-
tmp1_output.
|
|
1038
|
-
};
|
|
1039
|
-
protoOf($serializer_2).
|
|
1040
|
-
return this.
|
|
1041
|
-
};
|
|
1042
|
-
protoOf($serializer_2).
|
|
1043
|
-
var tmp0_desc = this.
|
|
1006
|
+
tmp0_serialDesc.t2b('type', false);
|
|
1007
|
+
tmp0_serialDesc.t2b('items', false);
|
|
1008
|
+
this.a3k_1 = tmp0_serialDesc;
|
|
1009
|
+
}
|
|
1010
|
+
protoOf($serializer_2).b3k = function (encoder, value) {
|
|
1011
|
+
var tmp0_desc = this.a3k_1;
|
|
1012
|
+
var tmp1_output = encoder.j24(tmp0_desc);
|
|
1013
|
+
tmp1_output.y25(tmp0_desc, 0, value.e3j_1);
|
|
1014
|
+
tmp1_output.a26(tmp0_desc, 1, TypeSerializer_getInstance(), value.f3j_1);
|
|
1015
|
+
tmp1_output.k24(tmp0_desc);
|
|
1016
|
+
};
|
|
1017
|
+
protoOf($serializer_2).k21 = function (encoder, value) {
|
|
1018
|
+
return this.b3k(encoder, value instanceof ArrayType ? value : THROW_CCE());
|
|
1019
|
+
};
|
|
1020
|
+
protoOf($serializer_2).l21 = function (decoder) {
|
|
1021
|
+
var tmp0_desc = this.a3k_1;
|
|
1044
1022
|
var tmp1_flag = true;
|
|
1045
1023
|
var tmp2_index = 0;
|
|
1046
1024
|
var tmp3_bitMask0 = 0;
|
|
1047
1025
|
var tmp4_local0 = null;
|
|
1048
1026
|
var tmp5_local1 = null;
|
|
1049
|
-
var tmp6_input = decoder.
|
|
1050
|
-
if (tmp6_input.
|
|
1051
|
-
tmp4_local0 = tmp6_input.
|
|
1027
|
+
var tmp6_input = decoder.j24(tmp0_desc);
|
|
1028
|
+
if (tmp6_input.z24()) {
|
|
1029
|
+
tmp4_local0 = tmp6_input.t24(tmp0_desc, 0);
|
|
1052
1030
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1053
|
-
tmp5_local1 = tmp6_input.
|
|
1031
|
+
tmp5_local1 = tmp6_input.v24(tmp0_desc, 1, TypeSerializer_getInstance(), tmp5_local1);
|
|
1054
1032
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1055
1033
|
} else
|
|
1056
1034
|
while (tmp1_flag) {
|
|
1057
|
-
tmp2_index = tmp6_input.
|
|
1035
|
+
tmp2_index = tmp6_input.a25(tmp0_desc);
|
|
1058
1036
|
switch (tmp2_index) {
|
|
1059
1037
|
case -1:
|
|
1060
1038
|
tmp1_flag = false;
|
|
1061
1039
|
break;
|
|
1062
1040
|
case 0:
|
|
1063
|
-
tmp4_local0 = tmp6_input.
|
|
1041
|
+
tmp4_local0 = tmp6_input.t24(tmp0_desc, 0);
|
|
1064
1042
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1065
1043
|
break;
|
|
1066
1044
|
case 1:
|
|
1067
|
-
tmp5_local1 = tmp6_input.
|
|
1045
|
+
tmp5_local1 = tmp6_input.v24(tmp0_desc, 1, TypeSerializer_getInstance(), tmp5_local1);
|
|
1068
1046
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1069
1047
|
break;
|
|
1070
1048
|
default:
|
|
1071
1049
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1072
1050
|
}
|
|
1073
1051
|
}
|
|
1074
|
-
tmp6_input.
|
|
1052
|
+
tmp6_input.k24(tmp0_desc);
|
|
1075
1053
|
return ArrayType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1076
1054
|
};
|
|
1077
|
-
protoOf($serializer_2).
|
|
1078
|
-
return this.
|
|
1055
|
+
protoOf($serializer_2).j21 = function () {
|
|
1056
|
+
return this.a3k_1;
|
|
1079
1057
|
};
|
|
1080
|
-
protoOf($serializer_2).
|
|
1058
|
+
protoOf($serializer_2).m2c = function () {
|
|
1081
1059
|
// Inline function 'kotlin.arrayOf' call
|
|
1082
1060
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1083
1061
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1091,10 +1069,10 @@ function $serializer_getInstance_2() {
|
|
|
1091
1069
|
}
|
|
1092
1070
|
function ArrayType_init_$Init$(seen0, type, items, serializationConstructorMarker, $this) {
|
|
1093
1071
|
if (!(3 === (3 & seen0))) {
|
|
1094
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().
|
|
1072
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().a3k_1);
|
|
1095
1073
|
}
|
|
1096
|
-
$this.
|
|
1097
|
-
$this.
|
|
1074
|
+
$this.e3j_1 = type;
|
|
1075
|
+
$this.f3j_1 = items;
|
|
1098
1076
|
return $this;
|
|
1099
1077
|
}
|
|
1100
1078
|
function ArrayType_init_$Create$(seen0, type, items, serializationConstructorMarker) {
|
|
@@ -1102,7 +1080,7 @@ function ArrayType_init_$Create$(seen0, type, items, serializationConstructorMar
|
|
|
1102
1080
|
}
|
|
1103
1081
|
function Companion_5() {
|
|
1104
1082
|
}
|
|
1105
|
-
protoOf(Companion_5).
|
|
1083
|
+
protoOf(Companion_5).v2n = function () {
|
|
1106
1084
|
return $serializer_getInstance_3();
|
|
1107
1085
|
};
|
|
1108
1086
|
var Companion_instance_5;
|
|
@@ -1112,59 +1090,59 @@ function Companion_getInstance_5() {
|
|
|
1112
1090
|
function $serializer_3() {
|
|
1113
1091
|
$serializer_instance_3 = this;
|
|
1114
1092
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.MapType', this, 2);
|
|
1115
|
-
tmp0_serialDesc.
|
|
1116
|
-
tmp0_serialDesc.
|
|
1117
|
-
this.
|
|
1118
|
-
}
|
|
1119
|
-
protoOf($serializer_3).
|
|
1120
|
-
var tmp0_desc = this.
|
|
1121
|
-
var tmp1_output = encoder.
|
|
1122
|
-
tmp1_output.
|
|
1123
|
-
tmp1_output.
|
|
1124
|
-
tmp1_output.
|
|
1125
|
-
};
|
|
1126
|
-
protoOf($serializer_3).
|
|
1127
|
-
return this.
|
|
1128
|
-
};
|
|
1129
|
-
protoOf($serializer_3).
|
|
1130
|
-
var tmp0_desc = this.
|
|
1093
|
+
tmp0_serialDesc.t2b('type', false);
|
|
1094
|
+
tmp0_serialDesc.t2b('values', false);
|
|
1095
|
+
this.c3k_1 = tmp0_serialDesc;
|
|
1096
|
+
}
|
|
1097
|
+
protoOf($serializer_3).d3k = function (encoder, value) {
|
|
1098
|
+
var tmp0_desc = this.c3k_1;
|
|
1099
|
+
var tmp1_output = encoder.j24(tmp0_desc);
|
|
1100
|
+
tmp1_output.y25(tmp0_desc, 0, value.p3i_1);
|
|
1101
|
+
tmp1_output.a26(tmp0_desc, 1, TypeSerializer_getInstance(), value.q3i_1);
|
|
1102
|
+
tmp1_output.k24(tmp0_desc);
|
|
1103
|
+
};
|
|
1104
|
+
protoOf($serializer_3).k21 = function (encoder, value) {
|
|
1105
|
+
return this.d3k(encoder, value instanceof MapType ? value : THROW_CCE());
|
|
1106
|
+
};
|
|
1107
|
+
protoOf($serializer_3).l21 = function (decoder) {
|
|
1108
|
+
var tmp0_desc = this.c3k_1;
|
|
1131
1109
|
var tmp1_flag = true;
|
|
1132
1110
|
var tmp2_index = 0;
|
|
1133
1111
|
var tmp3_bitMask0 = 0;
|
|
1134
1112
|
var tmp4_local0 = null;
|
|
1135
1113
|
var tmp5_local1 = null;
|
|
1136
|
-
var tmp6_input = decoder.
|
|
1137
|
-
if (tmp6_input.
|
|
1138
|
-
tmp4_local0 = tmp6_input.
|
|
1114
|
+
var tmp6_input = decoder.j24(tmp0_desc);
|
|
1115
|
+
if (tmp6_input.z24()) {
|
|
1116
|
+
tmp4_local0 = tmp6_input.t24(tmp0_desc, 0);
|
|
1139
1117
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1140
|
-
tmp5_local1 = tmp6_input.
|
|
1118
|
+
tmp5_local1 = tmp6_input.v24(tmp0_desc, 1, TypeSerializer_getInstance(), tmp5_local1);
|
|
1141
1119
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1142
1120
|
} else
|
|
1143
1121
|
while (tmp1_flag) {
|
|
1144
|
-
tmp2_index = tmp6_input.
|
|
1122
|
+
tmp2_index = tmp6_input.a25(tmp0_desc);
|
|
1145
1123
|
switch (tmp2_index) {
|
|
1146
1124
|
case -1:
|
|
1147
1125
|
tmp1_flag = false;
|
|
1148
1126
|
break;
|
|
1149
1127
|
case 0:
|
|
1150
|
-
tmp4_local0 = tmp6_input.
|
|
1128
|
+
tmp4_local0 = tmp6_input.t24(tmp0_desc, 0);
|
|
1151
1129
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1152
1130
|
break;
|
|
1153
1131
|
case 1:
|
|
1154
|
-
tmp5_local1 = tmp6_input.
|
|
1132
|
+
tmp5_local1 = tmp6_input.v24(tmp0_desc, 1, TypeSerializer_getInstance(), tmp5_local1);
|
|
1155
1133
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1156
1134
|
break;
|
|
1157
1135
|
default:
|
|
1158
1136
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1159
1137
|
}
|
|
1160
1138
|
}
|
|
1161
|
-
tmp6_input.
|
|
1139
|
+
tmp6_input.k24(tmp0_desc);
|
|
1162
1140
|
return MapType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1163
1141
|
};
|
|
1164
|
-
protoOf($serializer_3).
|
|
1165
|
-
return this.
|
|
1142
|
+
protoOf($serializer_3).j21 = function () {
|
|
1143
|
+
return this.c3k_1;
|
|
1166
1144
|
};
|
|
1167
|
-
protoOf($serializer_3).
|
|
1145
|
+
protoOf($serializer_3).m2c = function () {
|
|
1168
1146
|
// Inline function 'kotlin.arrayOf' call
|
|
1169
1147
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1170
1148
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1178,24 +1156,28 @@ function $serializer_getInstance_3() {
|
|
|
1178
1156
|
}
|
|
1179
1157
|
function MapType_init_$Init$(seen0, type, values, serializationConstructorMarker, $this) {
|
|
1180
1158
|
if (!(3 === (3 & seen0))) {
|
|
1181
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_3().
|
|
1159
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_3().c3k_1);
|
|
1182
1160
|
}
|
|
1183
|
-
$this.
|
|
1184
|
-
$this.
|
|
1161
|
+
$this.p3i_1 = type;
|
|
1162
|
+
$this.q3i_1 = values;
|
|
1185
1163
|
return $this;
|
|
1186
1164
|
}
|
|
1187
1165
|
function MapType_init_$Create$(seen0, type, values, serializationConstructorMarker) {
|
|
1188
1166
|
return MapType_init_$Init$(seen0, type, values, serializationConstructorMarker, objectCreate(protoOf(MapType)));
|
|
1189
1167
|
}
|
|
1168
|
+
function AvroModel$EnumType$Companion$$childSerializers$_anonymous__vqfr9a() {
|
|
1169
|
+
return new ArrayListSerializer(StringSerializer_getInstance());
|
|
1170
|
+
}
|
|
1190
1171
|
function Companion_6() {
|
|
1191
1172
|
Companion_instance_6 = this;
|
|
1192
1173
|
var tmp = this;
|
|
1174
|
+
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
1193
1175
|
// Inline function 'kotlin.arrayOf' call
|
|
1194
1176
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1195
1177
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1196
|
-
tmp.
|
|
1178
|
+
tmp.e3k_1 = [null, null, null, lazy(tmp_0, AvroModel$EnumType$Companion$$childSerializers$_anonymous__vqfr9a)];
|
|
1197
1179
|
}
|
|
1198
|
-
protoOf(Companion_6).
|
|
1180
|
+
protoOf(Companion_6).v2n = function () {
|
|
1199
1181
|
return $serializer_getInstance_4();
|
|
1200
1182
|
};
|
|
1201
1183
|
var Companion_instance_6;
|
|
@@ -1207,29 +1189,29 @@ function Companion_getInstance_6() {
|
|
|
1207
1189
|
function $serializer_4() {
|
|
1208
1190
|
$serializer_instance_4 = this;
|
|
1209
1191
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.EnumType', this, 4);
|
|
1210
|
-
tmp0_serialDesc.
|
|
1211
|
-
tmp0_serialDesc.
|
|
1212
|
-
tmp0_serialDesc.
|
|
1213
|
-
tmp0_serialDesc.
|
|
1214
|
-
this.
|
|
1215
|
-
}
|
|
1216
|
-
protoOf($serializer_4).
|
|
1217
|
-
var tmp0_desc = this.
|
|
1218
|
-
var tmp1_output = encoder.
|
|
1219
|
-
var tmp2_cached = Companion_getInstance_6().
|
|
1220
|
-
tmp1_output.
|
|
1221
|
-
tmp1_output.
|
|
1222
|
-
if (tmp1_output.
|
|
1223
|
-
tmp1_output.
|
|
1192
|
+
tmp0_serialDesc.t2b('type', false);
|
|
1193
|
+
tmp0_serialDesc.t2b('name', false);
|
|
1194
|
+
tmp0_serialDesc.t2b('doc', true);
|
|
1195
|
+
tmp0_serialDesc.t2b('symbols', false);
|
|
1196
|
+
this.f3k_1 = tmp0_serialDesc;
|
|
1197
|
+
}
|
|
1198
|
+
protoOf($serializer_4).g3k = function (encoder, value) {
|
|
1199
|
+
var tmp0_desc = this.f3k_1;
|
|
1200
|
+
var tmp1_output = encoder.j24(tmp0_desc);
|
|
1201
|
+
var tmp2_cached = Companion_getInstance_6().e3k_1;
|
|
1202
|
+
tmp1_output.y25(tmp0_desc, 0, value.v3i_1);
|
|
1203
|
+
tmp1_output.y25(tmp0_desc, 1, value.w3i_1);
|
|
1204
|
+
if (tmp1_output.g26(tmp0_desc, 2) ? true : !(value.x3i_1 == null)) {
|
|
1205
|
+
tmp1_output.c26(tmp0_desc, 2, StringSerializer_getInstance(), value.x3i_1);
|
|
1224
1206
|
}
|
|
1225
|
-
tmp1_output.
|
|
1226
|
-
tmp1_output.
|
|
1207
|
+
tmp1_output.a26(tmp0_desc, 3, tmp2_cached[3].l1(), value.y3i_1);
|
|
1208
|
+
tmp1_output.k24(tmp0_desc);
|
|
1227
1209
|
};
|
|
1228
|
-
protoOf($serializer_4).
|
|
1229
|
-
return this.
|
|
1210
|
+
protoOf($serializer_4).k21 = function (encoder, value) {
|
|
1211
|
+
return this.g3k(encoder, value instanceof EnumType ? value : THROW_CCE());
|
|
1230
1212
|
};
|
|
1231
|
-
protoOf($serializer_4).
|
|
1232
|
-
var tmp0_desc = this.
|
|
1213
|
+
protoOf($serializer_4).l21 = function (decoder) {
|
|
1214
|
+
var tmp0_desc = this.f3k_1;
|
|
1233
1215
|
var tmp1_flag = true;
|
|
1234
1216
|
var tmp2_index = 0;
|
|
1235
1217
|
var tmp3_bitMask0 = 0;
|
|
@@ -1237,56 +1219,56 @@ protoOf($serializer_4).ll = function (decoder) {
|
|
|
1237
1219
|
var tmp5_local1 = null;
|
|
1238
1220
|
var tmp6_local2 = null;
|
|
1239
1221
|
var tmp7_local3 = null;
|
|
1240
|
-
var tmp8_input = decoder.
|
|
1241
|
-
var tmp9_cached = Companion_getInstance_6().
|
|
1242
|
-
if (tmp8_input.
|
|
1243
|
-
tmp4_local0 = tmp8_input.
|
|
1222
|
+
var tmp8_input = decoder.j24(tmp0_desc);
|
|
1223
|
+
var tmp9_cached = Companion_getInstance_6().e3k_1;
|
|
1224
|
+
if (tmp8_input.z24()) {
|
|
1225
|
+
tmp4_local0 = tmp8_input.t24(tmp0_desc, 0);
|
|
1244
1226
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1245
|
-
tmp5_local1 = tmp8_input.
|
|
1227
|
+
tmp5_local1 = tmp8_input.t24(tmp0_desc, 1);
|
|
1246
1228
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1247
|
-
tmp6_local2 = tmp8_input.
|
|
1229
|
+
tmp6_local2 = tmp8_input.x24(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1248
1230
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1249
|
-
tmp7_local3 = tmp8_input.
|
|
1231
|
+
tmp7_local3 = tmp8_input.v24(tmp0_desc, 3, tmp9_cached[3].l1(), tmp7_local3);
|
|
1250
1232
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1251
1233
|
} else
|
|
1252
1234
|
while (tmp1_flag) {
|
|
1253
|
-
tmp2_index = tmp8_input.
|
|
1235
|
+
tmp2_index = tmp8_input.a25(tmp0_desc);
|
|
1254
1236
|
switch (tmp2_index) {
|
|
1255
1237
|
case -1:
|
|
1256
1238
|
tmp1_flag = false;
|
|
1257
1239
|
break;
|
|
1258
1240
|
case 0:
|
|
1259
|
-
tmp4_local0 = tmp8_input.
|
|
1241
|
+
tmp4_local0 = tmp8_input.t24(tmp0_desc, 0);
|
|
1260
1242
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1261
1243
|
break;
|
|
1262
1244
|
case 1:
|
|
1263
|
-
tmp5_local1 = tmp8_input.
|
|
1245
|
+
tmp5_local1 = tmp8_input.t24(tmp0_desc, 1);
|
|
1264
1246
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1265
1247
|
break;
|
|
1266
1248
|
case 2:
|
|
1267
|
-
tmp6_local2 = tmp8_input.
|
|
1249
|
+
tmp6_local2 = tmp8_input.x24(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1268
1250
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1269
1251
|
break;
|
|
1270
1252
|
case 3:
|
|
1271
|
-
tmp7_local3 = tmp8_input.
|
|
1253
|
+
tmp7_local3 = tmp8_input.v24(tmp0_desc, 3, tmp9_cached[3].l1(), tmp7_local3);
|
|
1272
1254
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1273
1255
|
break;
|
|
1274
1256
|
default:
|
|
1275
1257
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1276
1258
|
}
|
|
1277
1259
|
}
|
|
1278
|
-
tmp8_input.
|
|
1260
|
+
tmp8_input.k24(tmp0_desc);
|
|
1279
1261
|
return EnumType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
1280
1262
|
};
|
|
1281
|
-
protoOf($serializer_4).
|
|
1282
|
-
return this.
|
|
1263
|
+
protoOf($serializer_4).j21 = function () {
|
|
1264
|
+
return this.f3k_1;
|
|
1283
1265
|
};
|
|
1284
|
-
protoOf($serializer_4).
|
|
1285
|
-
var tmp0_cached = Companion_getInstance_6().
|
|
1266
|
+
protoOf($serializer_4).m2c = function () {
|
|
1267
|
+
var tmp0_cached = Companion_getInstance_6().e3k_1;
|
|
1286
1268
|
// Inline function 'kotlin.arrayOf' call
|
|
1287
1269
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1288
1270
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1289
|
-
return [StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), tmp0_cached[3]];
|
|
1271
|
+
return [StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), tmp0_cached[3].l1()];
|
|
1290
1272
|
};
|
|
1291
1273
|
var $serializer_instance_4;
|
|
1292
1274
|
function $serializer_getInstance_4() {
|
|
@@ -1296,15 +1278,15 @@ function $serializer_getInstance_4() {
|
|
|
1296
1278
|
}
|
|
1297
1279
|
function EnumType_init_$Init$(seen0, type, name, doc, symbols, serializationConstructorMarker, $this) {
|
|
1298
1280
|
if (!(11 === (11 & seen0))) {
|
|
1299
|
-
throwMissingFieldException(seen0, 11, $serializer_getInstance_4().
|
|
1281
|
+
throwMissingFieldException(seen0, 11, $serializer_getInstance_4().f3k_1);
|
|
1300
1282
|
}
|
|
1301
|
-
$this.
|
|
1302
|
-
$this.
|
|
1283
|
+
$this.v3i_1 = type;
|
|
1284
|
+
$this.w3i_1 = name;
|
|
1303
1285
|
if (0 === (seen0 & 4))
|
|
1304
|
-
$this.
|
|
1286
|
+
$this.x3i_1 = null;
|
|
1305
1287
|
else
|
|
1306
|
-
$this.
|
|
1307
|
-
$this.
|
|
1288
|
+
$this.x3i_1 = doc;
|
|
1289
|
+
$this.y3i_1 = symbols;
|
|
1308
1290
|
return $this;
|
|
1309
1291
|
}
|
|
1310
1292
|
function EnumType_init_$Create$(seen0, type, name, doc, symbols, serializationConstructorMarker) {
|
|
@@ -1312,7 +1294,7 @@ function EnumType_init_$Create$(seen0, type, name, doc, symbols, serializationCo
|
|
|
1312
1294
|
}
|
|
1313
1295
|
function Companion_7() {
|
|
1314
1296
|
}
|
|
1315
|
-
protoOf(Companion_7).
|
|
1297
|
+
protoOf(Companion_7).v2n = function () {
|
|
1316
1298
|
return $serializer_getInstance_5();
|
|
1317
1299
|
};
|
|
1318
1300
|
var Companion_instance_7;
|
|
@@ -1322,59 +1304,59 @@ function Companion_getInstance_7() {
|
|
|
1322
1304
|
function $serializer_5() {
|
|
1323
1305
|
$serializer_instance_5 = this;
|
|
1324
1306
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.UnionType', this, 2);
|
|
1325
|
-
tmp0_serialDesc.
|
|
1326
|
-
tmp0_serialDesc.
|
|
1327
|
-
this.
|
|
1328
|
-
}
|
|
1329
|
-
protoOf($serializer_5).
|
|
1330
|
-
var tmp0_desc = this.
|
|
1331
|
-
var tmp1_output = encoder.
|
|
1332
|
-
tmp1_output.
|
|
1333
|
-
tmp1_output.
|
|
1334
|
-
tmp1_output.
|
|
1335
|
-
};
|
|
1336
|
-
protoOf($serializer_5).
|
|
1337
|
-
return this.
|
|
1338
|
-
};
|
|
1339
|
-
protoOf($serializer_5).
|
|
1340
|
-
var tmp0_desc = this.
|
|
1307
|
+
tmp0_serialDesc.t2b('name', false);
|
|
1308
|
+
tmp0_serialDesc.t2b('type', false);
|
|
1309
|
+
this.h3k_1 = tmp0_serialDesc;
|
|
1310
|
+
}
|
|
1311
|
+
protoOf($serializer_5).i3k = function (encoder, value) {
|
|
1312
|
+
var tmp0_desc = this.h3k_1;
|
|
1313
|
+
var tmp1_output = encoder.j24(tmp0_desc);
|
|
1314
|
+
tmp1_output.y25(tmp0_desc, 0, value.n3i_1);
|
|
1315
|
+
tmp1_output.a26(tmp0_desc, 1, TypeListSerializer_getInstance(), value.o3i_1);
|
|
1316
|
+
tmp1_output.k24(tmp0_desc);
|
|
1317
|
+
};
|
|
1318
|
+
protoOf($serializer_5).k21 = function (encoder, value) {
|
|
1319
|
+
return this.i3k(encoder, value instanceof UnionType ? value : THROW_CCE());
|
|
1320
|
+
};
|
|
1321
|
+
protoOf($serializer_5).l21 = function (decoder) {
|
|
1322
|
+
var tmp0_desc = this.h3k_1;
|
|
1341
1323
|
var tmp1_flag = true;
|
|
1342
1324
|
var tmp2_index = 0;
|
|
1343
1325
|
var tmp3_bitMask0 = 0;
|
|
1344
1326
|
var tmp4_local0 = null;
|
|
1345
1327
|
var tmp5_local1 = null;
|
|
1346
|
-
var tmp6_input = decoder.
|
|
1347
|
-
if (tmp6_input.
|
|
1348
|
-
tmp4_local0 = tmp6_input.
|
|
1328
|
+
var tmp6_input = decoder.j24(tmp0_desc);
|
|
1329
|
+
if (tmp6_input.z24()) {
|
|
1330
|
+
tmp4_local0 = tmp6_input.t24(tmp0_desc, 0);
|
|
1349
1331
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1350
|
-
tmp5_local1 = tmp6_input.
|
|
1332
|
+
tmp5_local1 = tmp6_input.v24(tmp0_desc, 1, TypeListSerializer_getInstance(), tmp5_local1);
|
|
1351
1333
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1352
1334
|
} else
|
|
1353
1335
|
while (tmp1_flag) {
|
|
1354
|
-
tmp2_index = tmp6_input.
|
|
1336
|
+
tmp2_index = tmp6_input.a25(tmp0_desc);
|
|
1355
1337
|
switch (tmp2_index) {
|
|
1356
1338
|
case -1:
|
|
1357
1339
|
tmp1_flag = false;
|
|
1358
1340
|
break;
|
|
1359
1341
|
case 0:
|
|
1360
|
-
tmp4_local0 = tmp6_input.
|
|
1342
|
+
tmp4_local0 = tmp6_input.t24(tmp0_desc, 0);
|
|
1361
1343
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1362
1344
|
break;
|
|
1363
1345
|
case 1:
|
|
1364
|
-
tmp5_local1 = tmp6_input.
|
|
1346
|
+
tmp5_local1 = tmp6_input.v24(tmp0_desc, 1, TypeListSerializer_getInstance(), tmp5_local1);
|
|
1365
1347
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1366
1348
|
break;
|
|
1367
1349
|
default:
|
|
1368
1350
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1369
1351
|
}
|
|
1370
1352
|
}
|
|
1371
|
-
tmp6_input.
|
|
1353
|
+
tmp6_input.k24(tmp0_desc);
|
|
1372
1354
|
return UnionType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1373
1355
|
};
|
|
1374
|
-
protoOf($serializer_5).
|
|
1375
|
-
return this.
|
|
1356
|
+
protoOf($serializer_5).j21 = function () {
|
|
1357
|
+
return this.h3k_1;
|
|
1376
1358
|
};
|
|
1377
|
-
protoOf($serializer_5).
|
|
1359
|
+
protoOf($serializer_5).m2c = function () {
|
|
1378
1360
|
// Inline function 'kotlin.arrayOf' call
|
|
1379
1361
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1380
1362
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1388,10 +1370,10 @@ function $serializer_getInstance_5() {
|
|
|
1388
1370
|
}
|
|
1389
1371
|
function UnionType_init_$Init$(seen0, name, type, serializationConstructorMarker, $this) {
|
|
1390
1372
|
if (!(3 === (3 & seen0))) {
|
|
1391
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_5().
|
|
1373
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_5().h3k_1);
|
|
1392
1374
|
}
|
|
1393
|
-
$this.
|
|
1394
|
-
$this.
|
|
1375
|
+
$this.n3i_1 = name;
|
|
1376
|
+
$this.o3i_1 = type;
|
|
1395
1377
|
return $this;
|
|
1396
1378
|
}
|
|
1397
1379
|
function UnionType_init_$Create$(seen0, name, type, serializationConstructorMarker) {
|
|
@@ -1399,7 +1381,7 @@ function UnionType_init_$Create$(seen0, name, type, serializationConstructorMark
|
|
|
1399
1381
|
}
|
|
1400
1382
|
function Companion_8() {
|
|
1401
1383
|
}
|
|
1402
|
-
protoOf(Companion_8).
|
|
1384
|
+
protoOf(Companion_8).v2n = function () {
|
|
1403
1385
|
return $serializer_getInstance_6();
|
|
1404
1386
|
};
|
|
1405
1387
|
var Companion_instance_8;
|
|
@@ -1409,30 +1391,30 @@ function Companion_getInstance_8() {
|
|
|
1409
1391
|
function $serializer_6() {
|
|
1410
1392
|
$serializer_instance_6 = this;
|
|
1411
1393
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.LogicalType', this, 4);
|
|
1412
|
-
tmp0_serialDesc.
|
|
1413
|
-
tmp0_serialDesc.
|
|
1414
|
-
tmp0_serialDesc.
|
|
1415
|
-
tmp0_serialDesc.
|
|
1416
|
-
this.
|
|
1417
|
-
}
|
|
1418
|
-
protoOf($serializer_6).
|
|
1419
|
-
var tmp0_desc = this.
|
|
1420
|
-
var tmp1_output = encoder.
|
|
1421
|
-
tmp1_output.
|
|
1422
|
-
tmp1_output.
|
|
1423
|
-
if (tmp1_output.
|
|
1424
|
-
tmp1_output.
|
|
1394
|
+
tmp0_serialDesc.t2b('type', false);
|
|
1395
|
+
tmp0_serialDesc.t2b('logicalType', false);
|
|
1396
|
+
tmp0_serialDesc.t2b('precision', true);
|
|
1397
|
+
tmp0_serialDesc.t2b('scale', true);
|
|
1398
|
+
this.j3k_1 = tmp0_serialDesc;
|
|
1399
|
+
}
|
|
1400
|
+
protoOf($serializer_6).k3k = function (encoder, value) {
|
|
1401
|
+
var tmp0_desc = this.j3k_1;
|
|
1402
|
+
var tmp1_output = encoder.j24(tmp0_desc);
|
|
1403
|
+
tmp1_output.y25(tmp0_desc, 0, value.r3i_1);
|
|
1404
|
+
tmp1_output.y25(tmp0_desc, 1, value.s3i_1);
|
|
1405
|
+
if (tmp1_output.g26(tmp0_desc, 2) ? true : !(value.t3i_1 == null)) {
|
|
1406
|
+
tmp1_output.c26(tmp0_desc, 2, IntSerializer_getInstance(), value.t3i_1);
|
|
1425
1407
|
}
|
|
1426
|
-
if (tmp1_output.
|
|
1427
|
-
tmp1_output.
|
|
1408
|
+
if (tmp1_output.g26(tmp0_desc, 3) ? true : !(value.u3i_1 == null)) {
|
|
1409
|
+
tmp1_output.c26(tmp0_desc, 3, IntSerializer_getInstance(), value.u3i_1);
|
|
1428
1410
|
}
|
|
1429
|
-
tmp1_output.
|
|
1411
|
+
tmp1_output.k24(tmp0_desc);
|
|
1430
1412
|
};
|
|
1431
|
-
protoOf($serializer_6).
|
|
1432
|
-
return this.
|
|
1413
|
+
protoOf($serializer_6).k21 = function (encoder, value) {
|
|
1414
|
+
return this.k3k(encoder, value instanceof LogicalType ? value : THROW_CCE());
|
|
1433
1415
|
};
|
|
1434
|
-
protoOf($serializer_6).
|
|
1435
|
-
var tmp0_desc = this.
|
|
1416
|
+
protoOf($serializer_6).l21 = function (decoder) {
|
|
1417
|
+
var tmp0_desc = this.j3k_1;
|
|
1436
1418
|
var tmp1_flag = true;
|
|
1437
1419
|
var tmp2_index = 0;
|
|
1438
1420
|
var tmp3_bitMask0 = 0;
|
|
@@ -1440,50 +1422,50 @@ protoOf($serializer_6).ll = function (decoder) {
|
|
|
1440
1422
|
var tmp5_local1 = null;
|
|
1441
1423
|
var tmp6_local2 = null;
|
|
1442
1424
|
var tmp7_local3 = null;
|
|
1443
|
-
var tmp8_input = decoder.
|
|
1444
|
-
if (tmp8_input.
|
|
1445
|
-
tmp4_local0 = tmp8_input.
|
|
1425
|
+
var tmp8_input = decoder.j24(tmp0_desc);
|
|
1426
|
+
if (tmp8_input.z24()) {
|
|
1427
|
+
tmp4_local0 = tmp8_input.t24(tmp0_desc, 0);
|
|
1446
1428
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1447
|
-
tmp5_local1 = tmp8_input.
|
|
1429
|
+
tmp5_local1 = tmp8_input.t24(tmp0_desc, 1);
|
|
1448
1430
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1449
|
-
tmp6_local2 = tmp8_input.
|
|
1431
|
+
tmp6_local2 = tmp8_input.x24(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
|
|
1450
1432
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1451
|
-
tmp7_local3 = tmp8_input.
|
|
1433
|
+
tmp7_local3 = tmp8_input.x24(tmp0_desc, 3, IntSerializer_getInstance(), tmp7_local3);
|
|
1452
1434
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1453
1435
|
} else
|
|
1454
1436
|
while (tmp1_flag) {
|
|
1455
|
-
tmp2_index = tmp8_input.
|
|
1437
|
+
tmp2_index = tmp8_input.a25(tmp0_desc);
|
|
1456
1438
|
switch (tmp2_index) {
|
|
1457
1439
|
case -1:
|
|
1458
1440
|
tmp1_flag = false;
|
|
1459
1441
|
break;
|
|
1460
1442
|
case 0:
|
|
1461
|
-
tmp4_local0 = tmp8_input.
|
|
1443
|
+
tmp4_local0 = tmp8_input.t24(tmp0_desc, 0);
|
|
1462
1444
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1463
1445
|
break;
|
|
1464
1446
|
case 1:
|
|
1465
|
-
tmp5_local1 = tmp8_input.
|
|
1447
|
+
tmp5_local1 = tmp8_input.t24(tmp0_desc, 1);
|
|
1466
1448
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1467
1449
|
break;
|
|
1468
1450
|
case 2:
|
|
1469
|
-
tmp6_local2 = tmp8_input.
|
|
1451
|
+
tmp6_local2 = tmp8_input.x24(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
|
|
1470
1452
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1471
1453
|
break;
|
|
1472
1454
|
case 3:
|
|
1473
|
-
tmp7_local3 = tmp8_input.
|
|
1455
|
+
tmp7_local3 = tmp8_input.x24(tmp0_desc, 3, IntSerializer_getInstance(), tmp7_local3);
|
|
1474
1456
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1475
1457
|
break;
|
|
1476
1458
|
default:
|
|
1477
1459
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1478
1460
|
}
|
|
1479
1461
|
}
|
|
1480
|
-
tmp8_input.
|
|
1462
|
+
tmp8_input.k24(tmp0_desc);
|
|
1481
1463
|
return LogicalType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
1482
1464
|
};
|
|
1483
|
-
protoOf($serializer_6).
|
|
1484
|
-
return this.
|
|
1465
|
+
protoOf($serializer_6).j21 = function () {
|
|
1466
|
+
return this.j3k_1;
|
|
1485
1467
|
};
|
|
1486
|
-
protoOf($serializer_6).
|
|
1468
|
+
protoOf($serializer_6).m2c = function () {
|
|
1487
1469
|
// Inline function 'kotlin.arrayOf' call
|
|
1488
1470
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1489
1471
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1497,18 +1479,18 @@ function $serializer_getInstance_6() {
|
|
|
1497
1479
|
}
|
|
1498
1480
|
function LogicalType_init_$Init$(seen0, type, logicalType, precision, scale, serializationConstructorMarker, $this) {
|
|
1499
1481
|
if (!(3 === (3 & seen0))) {
|
|
1500
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_6().
|
|
1482
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_6().j3k_1);
|
|
1501
1483
|
}
|
|
1502
|
-
$this.
|
|
1503
|
-
$this.
|
|
1484
|
+
$this.r3i_1 = type;
|
|
1485
|
+
$this.s3i_1 = logicalType;
|
|
1504
1486
|
if (0 === (seen0 & 4))
|
|
1505
|
-
$this.
|
|
1487
|
+
$this.t3i_1 = null;
|
|
1506
1488
|
else
|
|
1507
|
-
$this.
|
|
1489
|
+
$this.t3i_1 = precision;
|
|
1508
1490
|
if (0 === (seen0 & 8))
|
|
1509
|
-
$this.
|
|
1491
|
+
$this.u3i_1 = null;
|
|
1510
1492
|
else
|
|
1511
|
-
$this.
|
|
1493
|
+
$this.u3i_1 = scale;
|
|
1512
1494
|
return $this;
|
|
1513
1495
|
}
|
|
1514
1496
|
function LogicalType_init_$Create$(seen0, type, logicalType, precision, scale, serializationConstructorMarker) {
|
|
@@ -1517,19 +1499,19 @@ function LogicalType_init_$Create$(seen0, type, logicalType, precision, scale, s
|
|
|
1517
1499
|
function Field_0(name, type, doc, default_0) {
|
|
1518
1500
|
doc = doc === VOID ? null : doc;
|
|
1519
1501
|
default_0 = default_0 === VOID ? null : default_0;
|
|
1520
|
-
this.
|
|
1521
|
-
this.
|
|
1522
|
-
this.
|
|
1523
|
-
this.
|
|
1502
|
+
this.g3j_1 = name;
|
|
1503
|
+
this.h3j_1 = type;
|
|
1504
|
+
this.i3j_1 = doc;
|
|
1505
|
+
this.j3j_1 = default_0;
|
|
1524
1506
|
}
|
|
1525
1507
|
protoOf(Field_0).toString = function () {
|
|
1526
|
-
return 'Field(name=' + this.
|
|
1508
|
+
return 'Field(name=' + this.g3j_1 + ', type=' + this.h3j_1.toString() + ', doc=' + this.i3j_1 + ', default=' + this.j3j_1 + ')';
|
|
1527
1509
|
};
|
|
1528
1510
|
protoOf(Field_0).hashCode = function () {
|
|
1529
|
-
var result = getStringHashCode(this.
|
|
1530
|
-
result = imul(result, 31) + this.
|
|
1531
|
-
result = imul(result, 31) + (this.
|
|
1532
|
-
result = imul(result, 31) + (this.
|
|
1511
|
+
var result = getStringHashCode(this.g3j_1);
|
|
1512
|
+
result = imul(result, 31) + this.h3j_1.hashCode() | 0;
|
|
1513
|
+
result = imul(result, 31) + (this.i3j_1 == null ? 0 : getStringHashCode(this.i3j_1)) | 0;
|
|
1514
|
+
result = imul(result, 31) + (this.j3j_1 == null ? 0 : getStringHashCode(this.j3j_1)) | 0;
|
|
1533
1515
|
return result;
|
|
1534
1516
|
};
|
|
1535
1517
|
protoOf(Field_0).equals = function (other) {
|
|
@@ -1537,46 +1519,44 @@ protoOf(Field_0).equals = function (other) {
|
|
|
1537
1519
|
return true;
|
|
1538
1520
|
if (!(other instanceof Field_0))
|
|
1539
1521
|
return false;
|
|
1540
|
-
|
|
1541
|
-
if (!(this.l2d_1 === tmp0_other_with_cast.l2d_1))
|
|
1522
|
+
if (!(this.g3j_1 === other.g3j_1))
|
|
1542
1523
|
return false;
|
|
1543
|
-
if (!this.
|
|
1524
|
+
if (!this.h3j_1.equals(other.h3j_1))
|
|
1544
1525
|
return false;
|
|
1545
|
-
if (!(this.
|
|
1526
|
+
if (!(this.i3j_1 == other.i3j_1))
|
|
1546
1527
|
return false;
|
|
1547
|
-
if (!(this.
|
|
1528
|
+
if (!(this.j3j_1 == other.j3j_1))
|
|
1548
1529
|
return false;
|
|
1549
1530
|
return true;
|
|
1550
1531
|
};
|
|
1551
1532
|
function TypeList(type) {
|
|
1552
1533
|
AbstractList.call(this);
|
|
1553
|
-
this.
|
|
1554
|
-
this.
|
|
1534
|
+
this.l3k_1 = toList_0(type);
|
|
1535
|
+
this.m3k_1 = this.l3k_1.a1();
|
|
1555
1536
|
}
|
|
1556
|
-
protoOf(TypeList).
|
|
1557
|
-
return this.
|
|
1537
|
+
protoOf(TypeList).a1 = function () {
|
|
1538
|
+
return this.m3k_1;
|
|
1558
1539
|
};
|
|
1559
|
-
protoOf(TypeList).
|
|
1560
|
-
return this.
|
|
1540
|
+
protoOf(TypeList).f1 = function (index) {
|
|
1541
|
+
return this.l3k_1.f1(index);
|
|
1561
1542
|
};
|
|
1562
1543
|
function Type_0() {
|
|
1563
1544
|
}
|
|
1564
1545
|
function SimpleType(value) {
|
|
1565
|
-
this.
|
|
1546
|
+
this.m3i_1 = value;
|
|
1566
1547
|
}
|
|
1567
1548
|
protoOf(SimpleType).toString = function () {
|
|
1568
|
-
return 'SimpleType(value=' + this.
|
|
1549
|
+
return 'SimpleType(value=' + this.m3i_1 + ')';
|
|
1569
1550
|
};
|
|
1570
1551
|
protoOf(SimpleType).hashCode = function () {
|
|
1571
|
-
return getStringHashCode(this.
|
|
1552
|
+
return getStringHashCode(this.m3i_1);
|
|
1572
1553
|
};
|
|
1573
1554
|
protoOf(SimpleType).equals = function (other) {
|
|
1574
1555
|
if (this === other)
|
|
1575
1556
|
return true;
|
|
1576
1557
|
if (!(other instanceof SimpleType))
|
|
1577
1558
|
return false;
|
|
1578
|
-
|
|
1579
|
-
if (!(this.r2c_1 === tmp0_other_with_cast.r2c_1))
|
|
1559
|
+
if (!(this.m3i_1 === other.m3i_1))
|
|
1580
1560
|
return false;
|
|
1581
1561
|
return true;
|
|
1582
1562
|
};
|
|
@@ -1584,21 +1564,21 @@ function RecordType(type, name, namespace, fields, doc) {
|
|
|
1584
1564
|
Companion_getInstance_3();
|
|
1585
1565
|
namespace = namespace === VOID ? null : namespace;
|
|
1586
1566
|
doc = doc === VOID ? null : doc;
|
|
1587
|
-
this.
|
|
1588
|
-
this.
|
|
1589
|
-
this.
|
|
1590
|
-
this.
|
|
1591
|
-
this.
|
|
1567
|
+
this.z3i_1 = type;
|
|
1568
|
+
this.a3j_1 = name;
|
|
1569
|
+
this.b3j_1 = namespace;
|
|
1570
|
+
this.c3j_1 = fields;
|
|
1571
|
+
this.d3j_1 = doc;
|
|
1592
1572
|
}
|
|
1593
1573
|
protoOf(RecordType).toString = function () {
|
|
1594
|
-
return 'RecordType(type=' + this.
|
|
1574
|
+
return 'RecordType(type=' + this.z3i_1 + ', name=' + this.a3j_1 + ', namespace=' + this.b3j_1 + ', fields=' + toString(this.c3j_1) + ', doc=' + this.d3j_1 + ')';
|
|
1595
1575
|
};
|
|
1596
1576
|
protoOf(RecordType).hashCode = function () {
|
|
1597
|
-
var result = getStringHashCode(this.
|
|
1598
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1599
|
-
result = imul(result, 31) + (this.
|
|
1600
|
-
result = imul(result, 31) + hashCode(this.
|
|
1601
|
-
result = imul(result, 31) + (this.
|
|
1577
|
+
var result = getStringHashCode(this.z3i_1);
|
|
1578
|
+
result = imul(result, 31) + getStringHashCode(this.a3j_1) | 0;
|
|
1579
|
+
result = imul(result, 31) + (this.b3j_1 == null ? 0 : getStringHashCode(this.b3j_1)) | 0;
|
|
1580
|
+
result = imul(result, 31) + hashCode(this.c3j_1) | 0;
|
|
1581
|
+
result = imul(result, 31) + (this.d3j_1 == null ? 0 : getStringHashCode(this.d3j_1)) | 0;
|
|
1602
1582
|
return result;
|
|
1603
1583
|
};
|
|
1604
1584
|
protoOf(RecordType).equals = function (other) {
|
|
@@ -1606,29 +1586,28 @@ protoOf(RecordType).equals = function (other) {
|
|
|
1606
1586
|
return true;
|
|
1607
1587
|
if (!(other instanceof RecordType))
|
|
1608
1588
|
return false;
|
|
1609
|
-
|
|
1610
|
-
if (!(this.e2d_1 === tmp0_other_with_cast.e2d_1))
|
|
1589
|
+
if (!(this.z3i_1 === other.z3i_1))
|
|
1611
1590
|
return false;
|
|
1612
|
-
if (!(this.
|
|
1591
|
+
if (!(this.a3j_1 === other.a3j_1))
|
|
1613
1592
|
return false;
|
|
1614
|
-
if (!(this.
|
|
1593
|
+
if (!(this.b3j_1 == other.b3j_1))
|
|
1615
1594
|
return false;
|
|
1616
|
-
if (!equals(this.
|
|
1595
|
+
if (!equals(this.c3j_1, other.c3j_1))
|
|
1617
1596
|
return false;
|
|
1618
|
-
if (!(this.
|
|
1597
|
+
if (!(this.d3j_1 == other.d3j_1))
|
|
1619
1598
|
return false;
|
|
1620
1599
|
return true;
|
|
1621
1600
|
};
|
|
1622
1601
|
function ArrayType(type, items) {
|
|
1623
|
-
this.
|
|
1624
|
-
this.
|
|
1602
|
+
this.e3j_1 = type;
|
|
1603
|
+
this.f3j_1 = items;
|
|
1625
1604
|
}
|
|
1626
1605
|
protoOf(ArrayType).toString = function () {
|
|
1627
|
-
return 'ArrayType(type=' + this.
|
|
1606
|
+
return 'ArrayType(type=' + this.e3j_1 + ', items=' + toString(this.f3j_1) + ')';
|
|
1628
1607
|
};
|
|
1629
1608
|
protoOf(ArrayType).hashCode = function () {
|
|
1630
|
-
var result = getStringHashCode(this.
|
|
1631
|
-
result = imul(result, 31) + hashCode(this.
|
|
1609
|
+
var result = getStringHashCode(this.e3j_1);
|
|
1610
|
+
result = imul(result, 31) + hashCode(this.f3j_1) | 0;
|
|
1632
1611
|
return result;
|
|
1633
1612
|
};
|
|
1634
1613
|
protoOf(ArrayType).equals = function (other) {
|
|
@@ -1636,23 +1615,22 @@ protoOf(ArrayType).equals = function (other) {
|
|
|
1636
1615
|
return true;
|
|
1637
1616
|
if (!(other instanceof ArrayType))
|
|
1638
1617
|
return false;
|
|
1639
|
-
|
|
1640
|
-
if (!(this.j2d_1 === tmp0_other_with_cast.j2d_1))
|
|
1618
|
+
if (!(this.e3j_1 === other.e3j_1))
|
|
1641
1619
|
return false;
|
|
1642
|
-
if (!equals(this.
|
|
1620
|
+
if (!equals(this.f3j_1, other.f3j_1))
|
|
1643
1621
|
return false;
|
|
1644
1622
|
return true;
|
|
1645
1623
|
};
|
|
1646
1624
|
function MapType(type, values) {
|
|
1647
|
-
this.
|
|
1648
|
-
this.
|
|
1625
|
+
this.p3i_1 = type;
|
|
1626
|
+
this.q3i_1 = values;
|
|
1649
1627
|
}
|
|
1650
1628
|
protoOf(MapType).toString = function () {
|
|
1651
|
-
return 'MapType(type=' + this.
|
|
1629
|
+
return 'MapType(type=' + this.p3i_1 + ', values=' + toString(this.q3i_1) + ')';
|
|
1652
1630
|
};
|
|
1653
1631
|
protoOf(MapType).hashCode = function () {
|
|
1654
|
-
var result = getStringHashCode(this.
|
|
1655
|
-
result = imul(result, 31) + hashCode(this.
|
|
1632
|
+
var result = getStringHashCode(this.p3i_1);
|
|
1633
|
+
result = imul(result, 31) + hashCode(this.q3i_1) | 0;
|
|
1656
1634
|
return result;
|
|
1657
1635
|
};
|
|
1658
1636
|
protoOf(MapType).equals = function (other) {
|
|
@@ -1660,29 +1638,28 @@ protoOf(MapType).equals = function (other) {
|
|
|
1660
1638
|
return true;
|
|
1661
1639
|
if (!(other instanceof MapType))
|
|
1662
1640
|
return false;
|
|
1663
|
-
|
|
1664
|
-
if (!(this.u2c_1 === tmp0_other_with_cast.u2c_1))
|
|
1641
|
+
if (!(this.p3i_1 === other.p3i_1))
|
|
1665
1642
|
return false;
|
|
1666
|
-
if (!equals(this.
|
|
1643
|
+
if (!equals(this.q3i_1, other.q3i_1))
|
|
1667
1644
|
return false;
|
|
1668
1645
|
return true;
|
|
1669
1646
|
};
|
|
1670
1647
|
function EnumType(type, name, doc, symbols) {
|
|
1671
1648
|
Companion_getInstance_6();
|
|
1672
1649
|
doc = doc === VOID ? null : doc;
|
|
1673
|
-
this.
|
|
1674
|
-
this.
|
|
1675
|
-
this.
|
|
1676
|
-
this.
|
|
1650
|
+
this.v3i_1 = type;
|
|
1651
|
+
this.w3i_1 = name;
|
|
1652
|
+
this.x3i_1 = doc;
|
|
1653
|
+
this.y3i_1 = symbols;
|
|
1677
1654
|
}
|
|
1678
1655
|
protoOf(EnumType).toString = function () {
|
|
1679
|
-
return 'EnumType(type=' + this.
|
|
1656
|
+
return 'EnumType(type=' + this.v3i_1 + ', name=' + this.w3i_1 + ', doc=' + this.x3i_1 + ', symbols=' + toString(this.y3i_1) + ')';
|
|
1680
1657
|
};
|
|
1681
1658
|
protoOf(EnumType).hashCode = function () {
|
|
1682
|
-
var result = getStringHashCode(this.
|
|
1683
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1684
|
-
result = imul(result, 31) + (this.
|
|
1685
|
-
result = imul(result, 31) + hashCode(this.
|
|
1659
|
+
var result = getStringHashCode(this.v3i_1);
|
|
1660
|
+
result = imul(result, 31) + getStringHashCode(this.w3i_1) | 0;
|
|
1661
|
+
result = imul(result, 31) + (this.x3i_1 == null ? 0 : getStringHashCode(this.x3i_1)) | 0;
|
|
1662
|
+
result = imul(result, 31) + hashCode(this.y3i_1) | 0;
|
|
1686
1663
|
return result;
|
|
1687
1664
|
};
|
|
1688
1665
|
protoOf(EnumType).equals = function (other) {
|
|
@@ -1690,27 +1667,26 @@ protoOf(EnumType).equals = function (other) {
|
|
|
1690
1667
|
return true;
|
|
1691
1668
|
if (!(other instanceof EnumType))
|
|
1692
1669
|
return false;
|
|
1693
|
-
|
|
1694
|
-
if (!(this.a2d_1 === tmp0_other_with_cast.a2d_1))
|
|
1670
|
+
if (!(this.v3i_1 === other.v3i_1))
|
|
1695
1671
|
return false;
|
|
1696
|
-
if (!(this.
|
|
1672
|
+
if (!(this.w3i_1 === other.w3i_1))
|
|
1697
1673
|
return false;
|
|
1698
|
-
if (!(this.
|
|
1674
|
+
if (!(this.x3i_1 == other.x3i_1))
|
|
1699
1675
|
return false;
|
|
1700
|
-
if (!equals(this.
|
|
1676
|
+
if (!equals(this.y3i_1, other.y3i_1))
|
|
1701
1677
|
return false;
|
|
1702
1678
|
return true;
|
|
1703
1679
|
};
|
|
1704
1680
|
function UnionType(name, type) {
|
|
1705
|
-
this.
|
|
1706
|
-
this.
|
|
1681
|
+
this.n3i_1 = name;
|
|
1682
|
+
this.o3i_1 = type;
|
|
1707
1683
|
}
|
|
1708
1684
|
protoOf(UnionType).toString = function () {
|
|
1709
|
-
return 'UnionType(name=' + this.
|
|
1685
|
+
return 'UnionType(name=' + this.n3i_1 + ', type=' + this.o3i_1.toString() + ')';
|
|
1710
1686
|
};
|
|
1711
1687
|
protoOf(UnionType).hashCode = function () {
|
|
1712
|
-
var result = getStringHashCode(this.
|
|
1713
|
-
result = imul(result, 31) + this.
|
|
1688
|
+
var result = getStringHashCode(this.n3i_1);
|
|
1689
|
+
result = imul(result, 31) + this.o3i_1.hashCode() | 0;
|
|
1714
1690
|
return result;
|
|
1715
1691
|
};
|
|
1716
1692
|
protoOf(UnionType).equals = function (other) {
|
|
@@ -1718,23 +1694,22 @@ protoOf(UnionType).equals = function (other) {
|
|
|
1718
1694
|
return true;
|
|
1719
1695
|
if (!(other instanceof UnionType))
|
|
1720
1696
|
return false;
|
|
1721
|
-
|
|
1722
|
-
if (!(this.s2c_1 === tmp0_other_with_cast.s2c_1))
|
|
1697
|
+
if (!(this.n3i_1 === other.n3i_1))
|
|
1723
1698
|
return false;
|
|
1724
|
-
if (!this.
|
|
1699
|
+
if (!this.o3i_1.equals(other.o3i_1))
|
|
1725
1700
|
return false;
|
|
1726
1701
|
return true;
|
|
1727
1702
|
};
|
|
1728
1703
|
function LogicalType() {
|
|
1729
1704
|
}
|
|
1730
1705
|
protoOf(LogicalType).toString = function () {
|
|
1731
|
-
return 'LogicalType(type=' + this.
|
|
1706
|
+
return 'LogicalType(type=' + this.r3i_1 + ', logicalType=' + this.s3i_1 + ', precision=' + this.t3i_1 + ', scale=' + this.u3i_1 + ')';
|
|
1732
1707
|
};
|
|
1733
1708
|
protoOf(LogicalType).hashCode = function () {
|
|
1734
|
-
var result = getStringHashCode(this.
|
|
1735
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1736
|
-
result = imul(result, 31) + (this.
|
|
1737
|
-
result = imul(result, 31) + (this.
|
|
1709
|
+
var result = getStringHashCode(this.r3i_1);
|
|
1710
|
+
result = imul(result, 31) + getStringHashCode(this.s3i_1) | 0;
|
|
1711
|
+
result = imul(result, 31) + (this.t3i_1 == null ? 0 : this.t3i_1) | 0;
|
|
1712
|
+
result = imul(result, 31) + (this.u3i_1 == null ? 0 : this.u3i_1) | 0;
|
|
1738
1713
|
return result;
|
|
1739
1714
|
};
|
|
1740
1715
|
protoOf(LogicalType).equals = function (other) {
|
|
@@ -1742,35 +1717,34 @@ protoOf(LogicalType).equals = function (other) {
|
|
|
1742
1717
|
return true;
|
|
1743
1718
|
if (!(other instanceof LogicalType))
|
|
1744
1719
|
return false;
|
|
1745
|
-
|
|
1746
|
-
if (!(this.w2c_1 === tmp0_other_with_cast.w2c_1))
|
|
1720
|
+
if (!(this.r3i_1 === other.r3i_1))
|
|
1747
1721
|
return false;
|
|
1748
|
-
if (!(this.
|
|
1722
|
+
if (!(this.s3i_1 === other.s3i_1))
|
|
1749
1723
|
return false;
|
|
1750
|
-
if (!(this.
|
|
1724
|
+
if (!(this.t3i_1 == other.t3i_1))
|
|
1751
1725
|
return false;
|
|
1752
|
-
if (!(this.
|
|
1726
|
+
if (!(this.u3i_1 == other.u3i_1))
|
|
1753
1727
|
return false;
|
|
1754
1728
|
return true;
|
|
1755
1729
|
};
|
|
1756
1730
|
function TypeListSerializer() {
|
|
1757
1731
|
TypeListSerializer_instance = this;
|
|
1758
|
-
this.
|
|
1732
|
+
this.n3k_1 = buildSerialDescriptor('TypeListSerializer', SEALED_getInstance(), []);
|
|
1759
1733
|
}
|
|
1760
|
-
protoOf(TypeListSerializer).
|
|
1761
|
-
return this.
|
|
1734
|
+
protoOf(TypeListSerializer).j21 = function () {
|
|
1735
|
+
return this.n3k_1;
|
|
1762
1736
|
};
|
|
1763
|
-
protoOf(TypeListSerializer).
|
|
1764
|
-
if (value.
|
|
1765
|
-
encoder.
|
|
1737
|
+
protoOf(TypeListSerializer).o3k = function (encoder, value) {
|
|
1738
|
+
if (value.m3k_1 > 1) {
|
|
1739
|
+
encoder.b26(ListSerializer(Companion_instance_1.v2n()), value);
|
|
1766
1740
|
} else {
|
|
1767
|
-
encoder.
|
|
1741
|
+
encoder.b26(Companion_instance_1.v2n(), first(value));
|
|
1768
1742
|
}
|
|
1769
1743
|
};
|
|
1770
|
-
protoOf(TypeListSerializer).
|
|
1771
|
-
return this.
|
|
1744
|
+
protoOf(TypeListSerializer).k21 = function (encoder, value) {
|
|
1745
|
+
return this.o3k(encoder, value instanceof TypeList ? value : THROW_CCE());
|
|
1772
1746
|
};
|
|
1773
|
-
protoOf(TypeListSerializer).
|
|
1747
|
+
protoOf(TypeListSerializer).l21 = function (decoder) {
|
|
1774
1748
|
var tmp0_elvis_lhs = isInterface(decoder, JsonDecoder) ? decoder : null;
|
|
1775
1749
|
var tmp;
|
|
1776
1750
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -1779,28 +1753,27 @@ protoOf(TypeListSerializer).ll = function (decoder) {
|
|
|
1779
1753
|
tmp = tmp0_elvis_lhs;
|
|
1780
1754
|
}
|
|
1781
1755
|
var input = tmp;
|
|
1782
|
-
var element = input.
|
|
1756
|
+
var element = input.o2n();
|
|
1783
1757
|
var tmp_0;
|
|
1784
1758
|
if (element instanceof JsonPrimitive) {
|
|
1785
|
-
tmp_0 = new TypeList([input.
|
|
1759
|
+
tmp_0 = new TypeList([input.n2n().n2l(Companion_instance_1.v2n(), element)]);
|
|
1786
1760
|
} else {
|
|
1787
1761
|
if (element instanceof JsonArray) {
|
|
1788
|
-
// Inline function 'kotlin.collections.toTypedArray' call
|
|
1789
1762
|
// Inline function 'kotlin.collections.map' call
|
|
1790
1763
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1791
1764
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(element, 10));
|
|
1792
|
-
var
|
|
1793
|
-
while (
|
|
1794
|
-
var item =
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
destination.e(tmp$ret$0);
|
|
1765
|
+
var _iterator__ex2g4s = element.t();
|
|
1766
|
+
while (_iterator__ex2g4s.u()) {
|
|
1767
|
+
var item = _iterator__ex2g4s.v();
|
|
1768
|
+
var tmp$ret$0 = input.n2n().n2l(Companion_instance_1.v2n(), item);
|
|
1769
|
+
destination.x(tmp$ret$0);
|
|
1798
1770
|
}
|
|
1771
|
+
// Inline function 'kotlin.collections.toTypedArray' call
|
|
1799
1772
|
var tmp$ret$3 = copyToArray(destination);
|
|
1800
1773
|
tmp_0 = new TypeList(tmp$ret$3.slice());
|
|
1801
1774
|
} else {
|
|
1802
1775
|
if (element instanceof JsonObject) {
|
|
1803
|
-
tmp_0 = new TypeList([input.
|
|
1776
|
+
tmp_0 = new TypeList([input.n2n().n2l(Companion_instance_1.v2n(), element)]);
|
|
1804
1777
|
} else {
|
|
1805
1778
|
noWhenBranchMatchedException();
|
|
1806
1779
|
}
|
|
@@ -1816,29 +1789,29 @@ function TypeListSerializer_getInstance() {
|
|
|
1816
1789
|
}
|
|
1817
1790
|
function TypeSerializer() {
|
|
1818
1791
|
TypeSerializer_instance = this;
|
|
1819
|
-
this.
|
|
1792
|
+
this.p3k_1 = buildSerialDescriptor('TypeSerializer', SEALED_getInstance(), []);
|
|
1820
1793
|
}
|
|
1821
|
-
protoOf(TypeSerializer).
|
|
1822
|
-
return this.
|
|
1794
|
+
protoOf(TypeSerializer).j21 = function () {
|
|
1795
|
+
return this.p3k_1;
|
|
1823
1796
|
};
|
|
1824
|
-
protoOf(TypeSerializer).
|
|
1797
|
+
protoOf(TypeSerializer).q3k = function (encoder, value) {
|
|
1825
1798
|
if (value instanceof SimpleType) {
|
|
1826
|
-
encoder.
|
|
1799
|
+
encoder.b26(serializer_0(StringCompanionObject_instance), value.m3i_1);
|
|
1827
1800
|
} else {
|
|
1828
1801
|
if (value instanceof RecordType) {
|
|
1829
|
-
encoder.
|
|
1802
|
+
encoder.b26(Companion_getInstance_3().v2n(), value);
|
|
1830
1803
|
} else {
|
|
1831
1804
|
if (value instanceof ArrayType) {
|
|
1832
|
-
encoder.
|
|
1805
|
+
encoder.b26(Companion_instance_4.v2n(), value);
|
|
1833
1806
|
} else {
|
|
1834
1807
|
if (value instanceof MapType) {
|
|
1835
|
-
encoder.
|
|
1808
|
+
encoder.b26(Companion_instance_5.v2n(), value);
|
|
1836
1809
|
} else {
|
|
1837
1810
|
if (value instanceof EnumType) {
|
|
1838
|
-
encoder.
|
|
1811
|
+
encoder.b26(Companion_getInstance_6().v2n(), value);
|
|
1839
1812
|
} else {
|
|
1840
1813
|
if (value instanceof UnionType) {
|
|
1841
|
-
encoder.
|
|
1814
|
+
encoder.b26(Companion_instance_7.v2n(), value);
|
|
1842
1815
|
} else {
|
|
1843
1816
|
if (value instanceof LogicalType) {
|
|
1844
1817
|
// Inline function 'kotlin.TODO' call
|
|
@@ -1853,10 +1826,10 @@ protoOf(TypeSerializer).v2e = function (encoder, value) {
|
|
|
1853
1826
|
}
|
|
1854
1827
|
}
|
|
1855
1828
|
};
|
|
1856
|
-
protoOf(TypeSerializer).
|
|
1857
|
-
return this.
|
|
1829
|
+
protoOf(TypeSerializer).k21 = function (encoder, value) {
|
|
1830
|
+
return this.q3k(encoder, (!(value == null) ? isInterface(value, Type_0) : false) ? value : THROW_CCE());
|
|
1858
1831
|
};
|
|
1859
|
-
protoOf(TypeSerializer).
|
|
1832
|
+
protoOf(TypeSerializer).l21 = function (decoder) {
|
|
1860
1833
|
var tmp0_elvis_lhs = isInterface(decoder, JsonDecoder) ? decoder : null;
|
|
1861
1834
|
var tmp;
|
|
1862
1835
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -1865,18 +1838,18 @@ protoOf(TypeSerializer).ll = function (decoder) {
|
|
|
1865
1838
|
tmp = tmp0_elvis_lhs;
|
|
1866
1839
|
}
|
|
1867
1840
|
var input = tmp;
|
|
1868
|
-
var element = input.
|
|
1841
|
+
var element = input.o2n();
|
|
1869
1842
|
var tmp_0;
|
|
1870
1843
|
if (element instanceof JsonObject) {
|
|
1871
1844
|
var tmp_1;
|
|
1872
|
-
if (element.
|
|
1873
|
-
tmp_1 = input.
|
|
1874
|
-
} else if (element.
|
|
1875
|
-
tmp_1 = input.
|
|
1876
|
-
} else if (element.
|
|
1877
|
-
tmp_1 = input.
|
|
1878
|
-
} else if (element.
|
|
1879
|
-
tmp_1 = input.
|
|
1845
|
+
if (element.s2n('items')) {
|
|
1846
|
+
tmp_1 = input.n2n().n2l(Companion_instance_4.v2n(), element);
|
|
1847
|
+
} else if (element.s2n('fields')) {
|
|
1848
|
+
tmp_1 = input.n2n().n2l(Companion_getInstance_3().v2n(), element);
|
|
1849
|
+
} else if (element.s2n('symbols')) {
|
|
1850
|
+
tmp_1 = input.n2n().n2l(Companion_getInstance_6().v2n(), element);
|
|
1851
|
+
} else if (element.s2n('logicalType')) {
|
|
1852
|
+
tmp_1 = input.n2n().n2l(Companion_instance_8.v2n(), element);
|
|
1880
1853
|
} else {
|
|
1881
1854
|
var reason = 'Unknown object type: ' + element.toString();
|
|
1882
1855
|
throw new NotImplementedError('An operation is not implemented: ' + reason);
|
|
@@ -1884,7 +1857,7 @@ protoOf(TypeSerializer).ll = function (decoder) {
|
|
|
1884
1857
|
tmp_0 = tmp_1;
|
|
1885
1858
|
} else {
|
|
1886
1859
|
if (element instanceof JsonPrimitive) {
|
|
1887
|
-
tmp_0 = new SimpleType(element.
|
|
1860
|
+
tmp_0 = new SimpleType(element.ix());
|
|
1888
1861
|
} else {
|
|
1889
1862
|
if (element instanceof JsonArray) {
|
|
1890
1863
|
var reason_0 = 'Type can never be an array';
|
|
@@ -1903,26 +1876,26 @@ function TypeSerializer_getInstance() {
|
|
|
1903
1876
|
return TypeSerializer_instance;
|
|
1904
1877
|
}
|
|
1905
1878
|
function AvroParser$parse$lambda($this$Json) {
|
|
1906
|
-
$this$Json.
|
|
1907
|
-
$this$Json.
|
|
1879
|
+
$this$Json.f2m_1 = true;
|
|
1880
|
+
$this$Json.g2m_1 = true;
|
|
1908
1881
|
return Unit_instance;
|
|
1909
1882
|
}
|
|
1910
1883
|
function AvroParser() {
|
|
1911
1884
|
}
|
|
1912
|
-
protoOf(AvroParser).
|
|
1885
|
+
protoOf(AvroParser).f3i = function (moduleContent, strict) {
|
|
1913
1886
|
var json = Json(VOID, AvroParser$parse$lambda);
|
|
1914
1887
|
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
1915
|
-
var string = moduleContent.
|
|
1888
|
+
var string = moduleContent.ym_1;
|
|
1916
1889
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
1917
|
-
var this_0 = json.
|
|
1890
|
+
var this_0 = json.y24();
|
|
1918
1891
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
1919
1892
|
var this_1 = serializer(this_0, createKType(getKClass(Type_0), arrayOf([]), false));
|
|
1920
1893
|
var tmp$ret$1 = isInterface(this_1, KSerializer) ? this_1 : THROW_CCE();
|
|
1921
|
-
var avro = json.
|
|
1922
|
-
var tmp = AvroConverter_getInstance().
|
|
1894
|
+
var avro = json.m2l(tmp$ret$1, string);
|
|
1895
|
+
var tmp = AvroConverter_getInstance().l3j(avro);
|
|
1923
1896
|
var tmp_0;
|
|
1924
1897
|
if (avro instanceof RecordType) {
|
|
1925
|
-
tmp_0 = new Channel(null, emptyList(), new DefinitionIdentifier(avro.
|
|
1898
|
+
tmp_0 = new Channel(null, emptyList(), new DefinitionIdentifier(avro.a3j_1), new Custom(avro.a3j_1, false));
|
|
1926
1899
|
} else {
|
|
1927
1900
|
if (avro instanceof ArrayType) {
|
|
1928
1901
|
throw new NotImplementedError();
|
|
@@ -1953,27 +1926,28 @@ protoOf(AvroParser).w2e = function (moduleContent, strict) {
|
|
|
1953
1926
|
var result = plus_0(tmp, tmp_0);
|
|
1954
1927
|
var tmp1_elvis_lhs = toNonEmptyListOrNull(result);
|
|
1955
1928
|
var tmp_1;
|
|
1956
|
-
|
|
1929
|
+
var tmp_2 = tmp1_elvis_lhs;
|
|
1930
|
+
if ((tmp_2 == null ? null : new NonEmptyList(tmp_2)) == null) {
|
|
1957
1931
|
var message = 'Cannot yield non empty AST';
|
|
1958
1932
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
1959
1933
|
} else {
|
|
1960
1934
|
tmp_1 = tmp1_elvis_lhs;
|
|
1961
1935
|
}
|
|
1962
|
-
return new Root(nonEmptyListOf(new Module(moduleContent.
|
|
1936
|
+
return new Root(nonEmptyListOf(new Module(moduleContent.xm_1, tmp_1), []));
|
|
1963
1937
|
};
|
|
1964
1938
|
var AvroParser_instance;
|
|
1965
1939
|
function AvroParser_getInstance() {
|
|
1966
1940
|
return AvroParser_instance;
|
|
1967
1941
|
}
|
|
1968
1942
|
//region block: post-declaration
|
|
1969
|
-
protoOf($serializer).
|
|
1970
|
-
protoOf($serializer_0).
|
|
1971
|
-
protoOf($serializer_1).
|
|
1972
|
-
protoOf($serializer_2).
|
|
1973
|
-
protoOf($serializer_3).
|
|
1974
|
-
protoOf($serializer_4).
|
|
1975
|
-
protoOf($serializer_5).
|
|
1976
|
-
protoOf($serializer_6).
|
|
1943
|
+
protoOf($serializer).n2c = typeParametersSerializers;
|
|
1944
|
+
protoOf($serializer_0).n2c = typeParametersSerializers;
|
|
1945
|
+
protoOf($serializer_1).n2c = typeParametersSerializers;
|
|
1946
|
+
protoOf($serializer_2).n2c = typeParametersSerializers;
|
|
1947
|
+
protoOf($serializer_3).n2c = typeParametersSerializers;
|
|
1948
|
+
protoOf($serializer_4).n2c = typeParametersSerializers;
|
|
1949
|
+
protoOf($serializer_5).n2c = typeParametersSerializers;
|
|
1950
|
+
protoOf($serializer_6).n2c = typeParametersSerializers;
|
|
1977
1951
|
//endregion
|
|
1978
1952
|
//region block: init
|
|
1979
1953
|
Companion_instance = new Companion();
|
|
@@ -1989,8 +1963,8 @@ AvroParser_instance = new AvroParser();
|
|
|
1989
1963
|
//region block: exports
|
|
1990
1964
|
export {
|
|
1991
1965
|
Type_0 as Typel89stdvlxo83,
|
|
1992
|
-
AvroEmitter_getInstance as
|
|
1993
|
-
AvroParser_instance as
|
|
1966
|
+
AvroEmitter_getInstance as AvroEmitter_getInstancesm3gayvnct4k,
|
|
1967
|
+
AvroParser_instance as AvroParser_instanceyxg9ykrsu04j,
|
|
1994
1968
|
};
|
|
1995
1969
|
//endregion
|
|
1996
1970
|
|