@flock/wirespec 0.11.9 → 0.12.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 +4 -0
- package/{kotlinx-io-kotlinx-io-bytestring.js.map → arrow-arrow-annotations.mjs.map} +1 -1
- package/arrow-arrow-atomic.mjs +43 -0
- package/arrow-arrow-atomic.mjs.map +1 -0
- package/arrow-arrow-continuations.mjs +18 -0
- package/{kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js.map → arrow-arrow-continuations.mjs.map} +1 -1
- package/arrow-arrow-core.mjs +532 -0
- package/arrow-arrow-core.mjs.map +1 -0
- package/clikt-clikt.mjs +6648 -0
- package/clikt-clikt.mjs.map +1 -0
- package/colormath-root-colormath.mjs +1696 -0
- package/colormath-root-colormath.mjs.map +1 -0
- package/kotlin-kotlin-stdlib.mjs +13106 -0
- package/kotlin-kotlin-stdlib.mjs.map +1 -0
- package/kotlin-openapi-bindings.mjs +13769 -0
- package/kotlin-openapi-bindings.mjs.map +1 -0
- package/kotlin-rgxgen.mjs +4298 -0
- package/kotlin-rgxgen.mjs.map +1 -0
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.mjs +4 -0
- package/{arrow-arrow-annotations.js.map → kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.mjs.map} +1 -1
- package/kotlinx-io-kotlinx-io-bytestring.mjs +4 -0
- package/{kotlin-kotlin-test.js.map → kotlinx-io-kotlinx-io-bytestring.mjs.map} +1 -1
- package/kotlinx-io-kotlinx-io-core.mjs +2201 -0
- package/kotlinx-io-kotlinx-io-core.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +5880 -0
- package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +5109 -0
- package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -0
- package/markdown.mjs +6753 -0
- package/markdown.mjs.map +1 -0
- package/mordant-mordant.mjs +11839 -0
- package/mordant-mordant.mjs.map +1 -0
- package/package.json +4 -6
- package/wirespec-bin.mjs +18 -0
- package/wirespec-src-compiler-core.mjs +8313 -0
- package/wirespec-src-compiler-core.mjs.map +1 -0
- package/wirespec-src-compiler-lib.mjs +2565 -0
- package/wirespec-src-compiler-lib.mjs.map +1 -0
- package/wirespec-src-converter-avro.mjs +1933 -0
- package/wirespec-src-converter-avro.mjs.map +1 -0
- package/wirespec-src-converter-openapi.mjs +5301 -0
- package/wirespec-src-converter-openapi.mjs.map +1 -0
- package/wirespec-src-plugin-arguments.mjs +587 -0
- package/wirespec-src-plugin-arguments.mjs.map +1 -0
- package/wirespec-src-plugin-cli.mjs +1487 -0
- package/wirespec-src-plugin-cli.mjs.map +1 -0
- package/wirespec-src-plugin-npm.d.ts +485 -466
- package/wirespec-src-plugin-npm.mjs +622 -0
- package/wirespec-src-plugin-npm.mjs.map +1 -0
- package/wirespec-src-tools-generator.mjs +284 -0
- package/wirespec-src-tools-generator.mjs.map +1 -0
- package/arrow-arrow-annotations.js +0 -15
- package/arrow-arrow-atomic.js +0 -55
- package/arrow-arrow-atomic.js.map +0 -1
- package/arrow-arrow-continuations.js +0 -30
- package/arrow-arrow-continuations.js.map +0 -1
- package/arrow-arrow-core.js +0 -410
- package/arrow-arrow-core.js.map +0 -1
- package/clikt-clikt.js +0 -6713
- package/clikt-clikt.js.map +0 -1
- package/colormath-root-colormath.js +0 -1727
- package/colormath-root-colormath.js.map +0 -1
- package/kotlin-kotlin-stdlib.js +0 -13263
- package/kotlin-kotlin-stdlib.js.map +0 -1
- package/kotlin-kotlin-test.js +0 -15
- package/kotlin-openapi-bindings.js +0 -13787
- package/kotlin-openapi-bindings.js.map +0 -1
- package/kotlin-rgxgen.js +0 -4315
- package/kotlin-rgxgen.js.map +0 -1
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +0 -15
- package/kotlinx-io-kotlinx-io-bytestring.js +0 -15
- package/kotlinx-io-kotlinx-io-core.js +0 -2219
- package/kotlinx-io-kotlinx-io-core.js.map +0 -1
- package/kotlinx-serialization-kotlinx-serialization-core.js +0 -5914
- package/kotlinx-serialization-kotlinx-serialization-core.js.map +0 -1
- package/kotlinx-serialization-kotlinx-serialization-json.js +0 -5126
- package/kotlinx-serialization-kotlinx-serialization-json.js.map +0 -1
- package/markdown.js +0 -6768
- package/markdown.js.map +0 -1
- package/mordant-mordant.js +0 -11981
- package/mordant-mordant.js.map +0 -1
- package/resources-library.js +0 -15
- package/resources-library.js.map +0 -1
- package/wirespec-bin.js +0 -3
- package/wirespec-src-compiler-core.js +0 -7894
- package/wirespec-src-compiler-core.js.map +0 -1
- package/wirespec-src-compiler-lib.js +0 -2603
- package/wirespec-src-compiler-lib.js.map +0 -1
- package/wirespec-src-converter-avro.js +0 -1650
- package/wirespec-src-converter-avro.js.map +0 -1
- package/wirespec-src-converter-openapi.js +0 -5366
- package/wirespec-src-converter-openapi.js.map +0 -1
- package/wirespec-src-plugin-arguments.js +0 -640
- package/wirespec-src-plugin-arguments.js.map +0 -1
- package/wirespec-src-plugin-cli.js +0 -1222
- package/wirespec-src-plugin-cli.js.map +0 -1
- package/wirespec-src-plugin-npm.js +0 -480
- package/wirespec-src-plugin-npm.js.map +0 -1
- package/wirespec-src-tools-generator.js +0 -306
- package/wirespec-src-tools-generator.js.map +0 -1
|
@@ -1,1650 +0,0 @@
|
|
|
1
|
-
(function (factory) {
|
|
2
|
-
if (typeof define === 'function' && define.amd)
|
|
3
|
-
define(['exports', './wirespec-src-compiler-core.js', './kotlin-kotlin-stdlib.js', './kotlinx-serialization-kotlinx-serialization-core.js', './kotlinx-serialization-kotlinx-serialization-json.js'], factory);
|
|
4
|
-
else if (typeof exports === 'object')
|
|
5
|
-
factory(module.exports, require('./wirespec-src-compiler-core.js'), require('./kotlin-kotlin-stdlib.js'), require('./kotlinx-serialization-kotlinx-serialization-core.js'), require('./kotlinx-serialization-kotlinx-serialization-json.js'));
|
|
6
|
-
else {
|
|
7
|
-
if (typeof globalThis['wirespec-src-compiler-core'] === 'undefined') {
|
|
8
|
-
throw new Error("Error loading module 'wirespec-src-converter-avro'. Its dependency 'wirespec-src-compiler-core' was not found. Please, check whether 'wirespec-src-compiler-core' is loaded prior to 'wirespec-src-converter-avro'.");
|
|
9
|
-
}
|
|
10
|
-
if (typeof globalThis['kotlin-kotlin-stdlib'] === 'undefined') {
|
|
11
|
-
throw new Error("Error loading module 'wirespec-src-converter-avro'. Its dependency 'kotlin-kotlin-stdlib' was not found. Please, check whether 'kotlin-kotlin-stdlib' is loaded prior to 'wirespec-src-converter-avro'.");
|
|
12
|
-
}
|
|
13
|
-
if (typeof globalThis['kotlinx-serialization-kotlinx-serialization-core'] === 'undefined') {
|
|
14
|
-
throw new Error("Error loading module 'wirespec-src-converter-avro'. Its dependency 'kotlinx-serialization-kotlinx-serialization-core' was not found. Please, check whether 'kotlinx-serialization-kotlinx-serialization-core' is loaded prior to 'wirespec-src-converter-avro'.");
|
|
15
|
-
}
|
|
16
|
-
if (typeof globalThis['kotlinx-serialization-kotlinx-serialization-json'] === 'undefined') {
|
|
17
|
-
throw new Error("Error loading module 'wirespec-src-converter-avro'. Its dependency 'kotlinx-serialization-kotlinx-serialization-json' was not found. Please, check whether 'kotlinx-serialization-kotlinx-serialization-json' is loaded prior to 'wirespec-src-converter-avro'.");
|
|
18
|
-
}
|
|
19
|
-
globalThis['wirespec-src-converter-avro'] = factory(typeof globalThis['wirespec-src-converter-avro'] === 'undefined' ? {} : globalThis['wirespec-src-converter-avro'], globalThis['wirespec-src-compiler-core'], globalThis['kotlin-kotlin-stdlib'], globalThis['kotlinx-serialization-kotlinx-serialization-core'], globalThis['kotlinx-serialization-kotlinx-serialization-json']);
|
|
20
|
-
}
|
|
21
|
-
}(function (_, kotlin_community_flock_wirespec_compiler_core, kotlin_kotlin, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json) {
|
|
22
|
-
'use strict';
|
|
23
|
-
//region block: imports
|
|
24
|
-
var imul = Math.imul;
|
|
25
|
-
var Boolean_instance = kotlin_community_flock_wirespec_compiler_core.$_$.m2;
|
|
26
|
-
var Precision_P32_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.d2;
|
|
27
|
-
var Integer = kotlin_community_flock_wirespec_compiler_core.$_$.c1;
|
|
28
|
-
var Precision_P64_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.e2;
|
|
29
|
-
var Number_0 = kotlin_community_flock_wirespec_compiler_core.$_$.d1;
|
|
30
|
-
var Bytes_instance = kotlin_community_flock_wirespec_compiler_core.$_$.n2;
|
|
31
|
-
var String_instance = kotlin_community_flock_wirespec_compiler_core.$_$.o2;
|
|
32
|
-
var NotImplementedError = kotlin_kotlin.$_$.jf;
|
|
33
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.kg;
|
|
34
|
-
var Custom = kotlin_community_flock_wirespec_compiler_core.$_$.x;
|
|
35
|
-
var Dict = kotlin_community_flock_wirespec_compiler_core.$_$.y;
|
|
36
|
-
var Iterable = kotlin_community_flock_wirespec_compiler_core.$_$.z;
|
|
37
|
-
var Unit = kotlin_community_flock_wirespec_compiler_core.$_$.g1;
|
|
38
|
-
var Primitive = kotlin_community_flock_wirespec_compiler_core.$_$.f1;
|
|
39
|
-
var minus = kotlin_kotlin.$_$.p7;
|
|
40
|
-
var Collection = kotlin_kotlin.$_$.p4;
|
|
41
|
-
var isInterface = kotlin_kotlin.$_$.ra;
|
|
42
|
-
var checkCountOverflow = kotlin_kotlin.$_$.l5;
|
|
43
|
-
var Unit_instance = kotlin_kotlin.$_$.l4;
|
|
44
|
-
var first = kotlin_kotlin.$_$.m6;
|
|
45
|
-
var toString = kotlin_kotlin.$_$.gb;
|
|
46
|
-
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.p1;
|
|
47
|
-
var DefinitionIdentifier = kotlin_community_flock_wirespec_compiler_core.$_$.k;
|
|
48
|
-
var emptyList = kotlin_kotlin.$_$.g6;
|
|
49
|
-
var collectionSizeOrDefault = kotlin_kotlin.$_$.n5;
|
|
50
|
-
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.k;
|
|
51
|
-
var FieldIdentifier = kotlin_community_flock_wirespec_compiler_core.$_$.u;
|
|
52
|
-
var Field = kotlin_community_flock_wirespec_compiler_core.$_$.v;
|
|
53
|
-
var Shape = kotlin_community_flock_wirespec_compiler_core.$_$.j1;
|
|
54
|
-
var Type = kotlin_community_flock_wirespec_compiler_core.$_$.k1;
|
|
55
|
-
var toSet = kotlin_kotlin.$_$.v8;
|
|
56
|
-
var Enum = kotlin_community_flock_wirespec_compiler_core.$_$.t;
|
|
57
|
-
var Union = kotlin_community_flock_wirespec_compiler_core.$_$.l1;
|
|
58
|
-
var listOf = kotlin_kotlin.$_$.l7;
|
|
59
|
-
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.l;
|
|
60
|
-
var addAll = kotlin_kotlin.$_$.c5;
|
|
61
|
-
var plus = kotlin_kotlin.$_$.x7;
|
|
62
|
-
var protoOf = kotlin_kotlin.$_$.cb;
|
|
63
|
-
var VOID = kotlin_kotlin.$_$.g;
|
|
64
|
-
var initMetadataForObject = kotlin_kotlin.$_$.ia;
|
|
65
|
-
var PluginGeneratedSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.x1;
|
|
66
|
-
var StringSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.o;
|
|
67
|
-
var THROW_CCE = kotlin_kotlin.$_$.of;
|
|
68
|
-
var UnknownFieldException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.c;
|
|
69
|
-
var get_nullable = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.r;
|
|
70
|
-
var typeParametersSerializers = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.r1;
|
|
71
|
-
var GeneratedSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.s1;
|
|
72
|
-
var throwMissingFieldException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.c2;
|
|
73
|
-
var objectCreate = kotlin_kotlin.$_$.bb;
|
|
74
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.ea;
|
|
75
|
-
var SerializerFactory = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.y1;
|
|
76
|
-
var ArrayListSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.p1;
|
|
77
|
-
var IntSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.n;
|
|
78
|
-
var getStringHashCode = kotlin_kotlin.$_$.ba;
|
|
79
|
-
var initMetadataForClass = kotlin_kotlin.$_$.da;
|
|
80
|
-
var AbstractList = kotlin_kotlin.$_$.m4;
|
|
81
|
-
var toList = kotlin_kotlin.$_$.r8;
|
|
82
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.ga;
|
|
83
|
-
var hashCode = kotlin_kotlin.$_$.ca;
|
|
84
|
-
var equals = kotlin_kotlin.$_$.w9;
|
|
85
|
-
var SEALED_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.d;
|
|
86
|
-
var buildSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.g1;
|
|
87
|
-
var ListSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.p;
|
|
88
|
-
var JsonDecoder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.f;
|
|
89
|
-
var SerializationException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.b;
|
|
90
|
-
var JsonObject = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.g;
|
|
91
|
-
var copyToArray = kotlin_kotlin.$_$.c6;
|
|
92
|
-
var JsonArray = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.e;
|
|
93
|
-
var JsonPrimitive = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.k;
|
|
94
|
-
var KSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.h2;
|
|
95
|
-
var StringCompanionObject_instance = kotlin_kotlin.$_$.z3;
|
|
96
|
-
var serializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.s;
|
|
97
|
-
var Json = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.l;
|
|
98
|
-
var getKClass = kotlin_kotlin.$_$.e;
|
|
99
|
-
var arrayOf = kotlin_kotlin.$_$.bg;
|
|
100
|
-
var createKType = kotlin_kotlin.$_$.b;
|
|
101
|
-
var serializer_0 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.o2;
|
|
102
|
-
var Channel = kotlin_community_flock_wirespec_compiler_core.$_$.i;
|
|
103
|
-
var plus_0 = kotlin_kotlin.$_$.y7;
|
|
104
|
-
//endregion
|
|
105
|
-
//region block: pre-declaration
|
|
106
|
-
initMetadataForObject(AvroConverter, 'AvroConverter');
|
|
107
|
-
initMetadataForObject($serializer, '$serializer', VOID, VOID, [GeneratedSerializer]);
|
|
108
|
-
initMetadataForCompanion(Companion);
|
|
109
|
-
initMetadataForCompanion(Companion_0, VOID, [SerializerFactory]);
|
|
110
|
-
initMetadataForCompanion(Companion_1);
|
|
111
|
-
initMetadataForObject($serializer_0, '$serializer', VOID, VOID, [GeneratedSerializer]);
|
|
112
|
-
initMetadataForCompanion(Companion_2);
|
|
113
|
-
initMetadataForObject($serializer_1, '$serializer', VOID, VOID, [GeneratedSerializer]);
|
|
114
|
-
initMetadataForCompanion(Companion_3);
|
|
115
|
-
initMetadataForObject($serializer_2, '$serializer', VOID, VOID, [GeneratedSerializer]);
|
|
116
|
-
initMetadataForCompanion(Companion_4);
|
|
117
|
-
initMetadataForObject($serializer_3, '$serializer', VOID, VOID, [GeneratedSerializer]);
|
|
118
|
-
initMetadataForCompanion(Companion_5);
|
|
119
|
-
initMetadataForObject($serializer_4, '$serializer', VOID, VOID, [GeneratedSerializer]);
|
|
120
|
-
initMetadataForCompanion(Companion_6);
|
|
121
|
-
initMetadataForObject($serializer_5, '$serializer', VOID, VOID, [GeneratedSerializer]);
|
|
122
|
-
initMetadataForCompanion(Companion_7);
|
|
123
|
-
initMetadataForObject($serializer_6, '$serializer', VOID, VOID, [GeneratedSerializer]);
|
|
124
|
-
initMetadataForClass(Field_0, 'Field', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance});
|
|
125
|
-
initMetadataForClass(TypeList, 'TypeList', VOID, AbstractList, VOID, VOID, VOID, {0: TypeListSerializer_getInstance});
|
|
126
|
-
initMetadataForInterface(Type_0, 'Type', VOID, VOID, VOID, VOID, VOID, {0: TypeSerializer_getInstance});
|
|
127
|
-
initMetadataForClass(SimpleType, 'SimpleType', VOID, VOID, [Type_0], VOID, VOID, {0: $serializer_getInstance_0});
|
|
128
|
-
initMetadataForClass(RecordType, 'RecordType', VOID, VOID, [Type_0], VOID, VOID, {0: $serializer_getInstance_1});
|
|
129
|
-
initMetadataForClass(ArrayType, 'ArrayType', VOID, VOID, [Type_0], VOID, VOID, {0: $serializer_getInstance_2});
|
|
130
|
-
initMetadataForClass(MapType, 'MapType', VOID, VOID, [Type_0], VOID, VOID, {0: $serializer_getInstance_3});
|
|
131
|
-
initMetadataForClass(EnumType, 'EnumType', VOID, VOID, [Type_0], VOID, VOID, {0: $serializer_getInstance_4});
|
|
132
|
-
initMetadataForClass(UnionType, 'UnionType', VOID, VOID, [Type_0], VOID, VOID, {0: $serializer_getInstance_5});
|
|
133
|
-
initMetadataForClass(LogicalType, 'LogicalType', VOID, VOID, [Type_0], VOID, VOID, {0: $serializer_getInstance_6});
|
|
134
|
-
initMetadataForObject(TypeListSerializer, 'TypeListSerializer', VOID, VOID, [KSerializer]);
|
|
135
|
-
initMetadataForObject(TypeSerializer, 'TypeSerializer', VOID, VOID, [KSerializer]);
|
|
136
|
-
initMetadataForObject(AvroParser, 'AvroParser');
|
|
137
|
-
//endregion
|
|
138
|
-
function isNullable(_this__u8e3s4, $this) {
|
|
139
|
-
return _this__u8e3s4.p1($this.m2c_1);
|
|
140
|
-
}
|
|
141
|
-
function toPrimitive(_this__u8e3s4, $this) {
|
|
142
|
-
var tmp;
|
|
143
|
-
switch (_this__u8e3s4.n2c_1) {
|
|
144
|
-
case 'boolean':
|
|
145
|
-
tmp = Boolean_instance;
|
|
146
|
-
break;
|
|
147
|
-
case 'int':
|
|
148
|
-
tmp = new Integer(Precision_P32_getInstance());
|
|
149
|
-
break;
|
|
150
|
-
case 'long':
|
|
151
|
-
tmp = new Integer(Precision_P64_getInstance());
|
|
152
|
-
break;
|
|
153
|
-
case 'float':
|
|
154
|
-
tmp = new Number_0(Precision_P32_getInstance());
|
|
155
|
-
break;
|
|
156
|
-
case 'double':
|
|
157
|
-
tmp = new Number_0(Precision_P64_getInstance());
|
|
158
|
-
break;
|
|
159
|
-
case 'bytes':
|
|
160
|
-
tmp = Bytes_instance;
|
|
161
|
-
break;
|
|
162
|
-
case 'string':
|
|
163
|
-
tmp = String_instance;
|
|
164
|
-
break;
|
|
165
|
-
default:
|
|
166
|
-
var reason = 'primitive not mapped ' + _this__u8e3s4.n2c_1;
|
|
167
|
-
throw new NotImplementedError('An operation is not implemented: ' + reason);
|
|
168
|
-
}
|
|
169
|
-
return tmp;
|
|
170
|
-
}
|
|
171
|
-
function toReference(_this__u8e3s4, $this, isNullable) {
|
|
172
|
-
var tmp;
|
|
173
|
-
if (_this__u8e3s4 instanceof SimpleType) {
|
|
174
|
-
switch (_this__u8e3s4.n2c_1) {
|
|
175
|
-
case 'null':
|
|
176
|
-
tmp = new Unit(isNullable);
|
|
177
|
-
break;
|
|
178
|
-
case 'boolean':
|
|
179
|
-
case 'int':
|
|
180
|
-
case 'long':
|
|
181
|
-
case 'float':
|
|
182
|
-
case 'double':
|
|
183
|
-
case 'bytes':
|
|
184
|
-
case 'string':
|
|
185
|
-
tmp = new Primitive(toPrimitive(_this__u8e3s4, $this), isNullable);
|
|
186
|
-
break;
|
|
187
|
-
default:
|
|
188
|
-
tmp = new Custom(_this__u8e3s4.n2c_1, isNullable);
|
|
189
|
-
break;
|
|
190
|
-
}
|
|
191
|
-
} else {
|
|
192
|
-
if (_this__u8e3s4 instanceof ArrayType) {
|
|
193
|
-
tmp = new Iterable(toReference(_this__u8e3s4.g2d_1, $this, false), isNullable);
|
|
194
|
-
} else {
|
|
195
|
-
if (_this__u8e3s4 instanceof RecordType) {
|
|
196
|
-
tmp = new Custom(_this__u8e3s4.b2d_1, isNullable);
|
|
197
|
-
} else {
|
|
198
|
-
if (_this__u8e3s4 instanceof EnumType) {
|
|
199
|
-
tmp = new Custom(_this__u8e3s4.x2c_1, isNullable);
|
|
200
|
-
} else {
|
|
201
|
-
if (_this__u8e3s4 instanceof LogicalType) {
|
|
202
|
-
tmp = toReference(new SimpleType(_this__u8e3s4.s2c_1), $this, isNullable);
|
|
203
|
-
} else {
|
|
204
|
-
if (_this__u8e3s4 instanceof MapType) {
|
|
205
|
-
tmp = new Dict(toReference(_this__u8e3s4.r2c_1, $this, false), isNullable);
|
|
206
|
-
} else {
|
|
207
|
-
if (_this__u8e3s4 instanceof UnionType) {
|
|
208
|
-
tmp = new Custom(_this__u8e3s4.o2c_1, isNullable);
|
|
209
|
-
} else {
|
|
210
|
-
noWhenBranchMatchedException();
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
return tmp;
|
|
219
|
-
}
|
|
220
|
-
function toReference_0(_this__u8e3s4, $this) {
|
|
221
|
-
var list = minus(_this__u8e3s4, $this.m2c_1);
|
|
222
|
-
var tmp;
|
|
223
|
-
if (list.j() === 1) {
|
|
224
|
-
tmp = toReference(first(list), $this, isNullable(_this__u8e3s4, $this));
|
|
225
|
-
} else {
|
|
226
|
-
var tmp$ret$0;
|
|
227
|
-
$l$block: {
|
|
228
|
-
// Inline function 'kotlin.collections.count' call
|
|
229
|
-
var tmp_0;
|
|
230
|
-
if (isInterface(list, Collection)) {
|
|
231
|
-
tmp_0 = list.l();
|
|
232
|
-
} else {
|
|
233
|
-
tmp_0 = false;
|
|
234
|
-
}
|
|
235
|
-
if (tmp_0) {
|
|
236
|
-
tmp$ret$0 = 0;
|
|
237
|
-
break $l$block;
|
|
238
|
-
}
|
|
239
|
-
var count = 0;
|
|
240
|
-
var tmp0_iterator = list.g();
|
|
241
|
-
while (tmp0_iterator.h()) {
|
|
242
|
-
var element = tmp0_iterator.i();
|
|
243
|
-
// Inline function 'community.flock.wirespec.converter.avro.AvroConverter.toReference.<anonymous>' call
|
|
244
|
-
if (element instanceof SimpleType) {
|
|
245
|
-
count = count + 1 | 0;
|
|
246
|
-
checkCountOverflow(count);
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
tmp$ret$0 = count;
|
|
250
|
-
}
|
|
251
|
-
if (tmp$ret$0 > 1) {
|
|
252
|
-
var message = 'Cannot have multiple SimpleTypes in Union';
|
|
253
|
-
throw IllegalStateException_init_$Create$(toString(message));
|
|
254
|
-
} else {
|
|
255
|
-
tmp = toReference(first(list), $this, isNullable(_this__u8e3s4, $this));
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
return tmp;
|
|
259
|
-
}
|
|
260
|
-
function toType(_this__u8e3s4, $this) {
|
|
261
|
-
var tmp0_identifier = new DefinitionIdentifier(_this__u8e3s4.b2d_1);
|
|
262
|
-
var tmp1_extends = emptyList();
|
|
263
|
-
// Inline function 'kotlin.collections.map' call
|
|
264
|
-
var this_0 = _this__u8e3s4.d2d_1;
|
|
265
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
266
|
-
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
267
|
-
var tmp0_iterator = this_0.g();
|
|
268
|
-
while (tmp0_iterator.h()) {
|
|
269
|
-
var item = tmp0_iterator.i();
|
|
270
|
-
// Inline function 'community.flock.wirespec.converter.avro.AvroConverter.toType.<anonymous>' call
|
|
271
|
-
var tmp$ret$0 = new Field(new FieldIdentifier(item.h2d_1), toReference_0(item.i2d_1, AvroConverter_getInstance()));
|
|
272
|
-
destination.e(tmp$ret$0);
|
|
273
|
-
}
|
|
274
|
-
var tmp2_shape = new Shape(destination);
|
|
275
|
-
return new Type(null, tmp0_identifier, tmp2_shape, tmp1_extends);
|
|
276
|
-
}
|
|
277
|
-
function toEnum(_this__u8e3s4, $this) {
|
|
278
|
-
return new Enum(null, new DefinitionIdentifier(_this__u8e3s4.x2c_1), toSet(_this__u8e3s4.z2c_1));
|
|
279
|
-
}
|
|
280
|
-
function toUnion(_this__u8e3s4, $this, name) {
|
|
281
|
-
var tmp = new DefinitionIdentifier(name);
|
|
282
|
-
// Inline function 'kotlin.collections.map' call
|
|
283
|
-
var this_0 = _this__u8e3s4.p2c_1;
|
|
284
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
285
|
-
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
286
|
-
var tmp0_iterator = this_0.g();
|
|
287
|
-
while (tmp0_iterator.h()) {
|
|
288
|
-
var item = tmp0_iterator.i();
|
|
289
|
-
// Inline function 'community.flock.wirespec.converter.avro.AvroConverter.toUnion.<anonymous>' call
|
|
290
|
-
var tmp$ret$0 = toReference(item, AvroConverter_getInstance(), false);
|
|
291
|
-
destination.e(tmp$ret$0);
|
|
292
|
-
}
|
|
293
|
-
return new Union(null, tmp, toSet(destination));
|
|
294
|
-
}
|
|
295
|
-
function AvroConverter() {
|
|
296
|
-
AvroConverter_instance = this;
|
|
297
|
-
this.m2c_1 = new SimpleType('null');
|
|
298
|
-
}
|
|
299
|
-
protoOf(AvroConverter).l2d = function (_this__u8e3s4, name) {
|
|
300
|
-
var tmp;
|
|
301
|
-
if (_this__u8e3s4 instanceof SimpleType) {
|
|
302
|
-
tmp = emptyList();
|
|
303
|
-
} else {
|
|
304
|
-
if (_this__u8e3s4 instanceof RecordType) {
|
|
305
|
-
var tmp_0 = listOf(toType(_this__u8e3s4, this));
|
|
306
|
-
// Inline function 'kotlin.collections.flatMap' call
|
|
307
|
-
// Inline function 'kotlin.collections.flatMapTo' call
|
|
308
|
-
var this_0 = _this__u8e3s4.d2d_1;
|
|
309
|
-
var destination = ArrayList_init_$Create$_0();
|
|
310
|
-
var tmp0_iterator = this_0.g();
|
|
311
|
-
while (tmp0_iterator.h()) {
|
|
312
|
-
var element = tmp0_iterator.i();
|
|
313
|
-
// Inline function 'community.flock.wirespec.converter.avro.AvroConverter.flatten.<anonymous>' call
|
|
314
|
-
// Inline function 'kotlin.collections.flatMap' call
|
|
315
|
-
// Inline function 'kotlin.collections.flatMapTo' call
|
|
316
|
-
var this_1 = element.i2d_1;
|
|
317
|
-
var destination_0 = ArrayList_init_$Create$_0();
|
|
318
|
-
var tmp0_iterator_0 = this_1.g();
|
|
319
|
-
while (tmp0_iterator_0.h()) {
|
|
320
|
-
var element_0 = tmp0_iterator_0.i();
|
|
321
|
-
// Inline function 'community.flock.wirespec.converter.avro.AvroConverter.flatten.<anonymous>.<anonymous>' call
|
|
322
|
-
var list = AvroConverter_getInstance().l2d(element_0, name);
|
|
323
|
-
addAll(destination_0, list);
|
|
324
|
-
}
|
|
325
|
-
var list_0 = destination_0;
|
|
326
|
-
addAll(destination, list_0);
|
|
327
|
-
}
|
|
328
|
-
tmp = plus(tmp_0, destination);
|
|
329
|
-
} else {
|
|
330
|
-
if (_this__u8e3s4 instanceof ArrayType) {
|
|
331
|
-
tmp = this.l2d(_this__u8e3s4.g2d_1, name);
|
|
332
|
-
} else {
|
|
333
|
-
if (_this__u8e3s4 instanceof EnumType) {
|
|
334
|
-
tmp = listOf(toEnum(_this__u8e3s4, this));
|
|
335
|
-
} else {
|
|
336
|
-
if (_this__u8e3s4 instanceof LogicalType) {
|
|
337
|
-
tmp = emptyList();
|
|
338
|
-
} else {
|
|
339
|
-
if (_this__u8e3s4 instanceof MapType) {
|
|
340
|
-
tmp = this.l2d(_this__u8e3s4.r2c_1, name);
|
|
341
|
-
} else {
|
|
342
|
-
if (_this__u8e3s4 instanceof UnionType) {
|
|
343
|
-
tmp = listOf(toUnion(_this__u8e3s4, this, name));
|
|
344
|
-
} else {
|
|
345
|
-
noWhenBranchMatchedException();
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
}
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
return tmp;
|
|
354
|
-
};
|
|
355
|
-
protoOf(AvroConverter).m2d = function (_this__u8e3s4, name, $super) {
|
|
356
|
-
name = name === VOID ? '' : name;
|
|
357
|
-
return $super === VOID ? this.l2d(_this__u8e3s4, name) : $super.l2d.call(this, _this__u8e3s4, name);
|
|
358
|
-
};
|
|
359
|
-
var AvroConverter_instance;
|
|
360
|
-
function AvroConverter_getInstance() {
|
|
361
|
-
if (AvroConverter_instance == null)
|
|
362
|
-
new AvroConverter();
|
|
363
|
-
return AvroConverter_instance;
|
|
364
|
-
}
|
|
365
|
-
function $serializer() {
|
|
366
|
-
$serializer_instance = this;
|
|
367
|
-
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.Field', this, 4);
|
|
368
|
-
tmp0_serialDesc.gv('name', false);
|
|
369
|
-
tmp0_serialDesc.gv('type', false);
|
|
370
|
-
tmp0_serialDesc.gv('doc', true);
|
|
371
|
-
tmp0_serialDesc.gv('default', true);
|
|
372
|
-
this.n2d_1 = tmp0_serialDesc;
|
|
373
|
-
}
|
|
374
|
-
protoOf($serializer).o2d = function (encoder, value) {
|
|
375
|
-
var tmp0_desc = this.n2d_1;
|
|
376
|
-
var tmp1_output = encoder.wn(tmp0_desc);
|
|
377
|
-
tmp1_output.lp(tmp0_desc, 0, value.h2d_1);
|
|
378
|
-
tmp1_output.np(tmp0_desc, 1, TypeListSerializer_getInstance(), value.i2d_1);
|
|
379
|
-
if (tmp1_output.tp(tmp0_desc, 2) ? true : !(value.j2d_1 == null)) {
|
|
380
|
-
tmp1_output.pp(tmp0_desc, 2, StringSerializer_getInstance(), value.j2d_1);
|
|
381
|
-
}
|
|
382
|
-
if (tmp1_output.tp(tmp0_desc, 3) ? true : !(value.k2d_1 == null)) {
|
|
383
|
-
tmp1_output.pp(tmp0_desc, 3, StringSerializer_getInstance(), value.k2d_1);
|
|
384
|
-
}
|
|
385
|
-
tmp1_output.xn(tmp0_desc);
|
|
386
|
-
};
|
|
387
|
-
protoOf($serializer).wk = function (encoder, value) {
|
|
388
|
-
return this.o2d(encoder, value instanceof Field_0 ? value : THROW_CCE());
|
|
389
|
-
};
|
|
390
|
-
protoOf($serializer).xk = function (decoder) {
|
|
391
|
-
var tmp0_desc = this.n2d_1;
|
|
392
|
-
var tmp1_flag = true;
|
|
393
|
-
var tmp2_index = 0;
|
|
394
|
-
var tmp3_bitMask0 = 0;
|
|
395
|
-
var tmp4_local0 = null;
|
|
396
|
-
var tmp5_local1 = null;
|
|
397
|
-
var tmp6_local2 = null;
|
|
398
|
-
var tmp7_local3 = null;
|
|
399
|
-
var tmp8_input = decoder.wn(tmp0_desc);
|
|
400
|
-
if (tmp8_input.mo()) {
|
|
401
|
-
tmp4_local0 = tmp8_input.go(tmp0_desc, 0);
|
|
402
|
-
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
403
|
-
tmp5_local1 = tmp8_input.io(tmp0_desc, 1, TypeListSerializer_getInstance(), tmp5_local1);
|
|
404
|
-
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
405
|
-
tmp6_local2 = tmp8_input.ko(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
406
|
-
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
407
|
-
tmp7_local3 = tmp8_input.ko(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
|
|
408
|
-
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
409
|
-
} else
|
|
410
|
-
while (tmp1_flag) {
|
|
411
|
-
tmp2_index = tmp8_input.no(tmp0_desc);
|
|
412
|
-
switch (tmp2_index) {
|
|
413
|
-
case -1:
|
|
414
|
-
tmp1_flag = false;
|
|
415
|
-
break;
|
|
416
|
-
case 0:
|
|
417
|
-
tmp4_local0 = tmp8_input.go(tmp0_desc, 0);
|
|
418
|
-
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
419
|
-
break;
|
|
420
|
-
case 1:
|
|
421
|
-
tmp5_local1 = tmp8_input.io(tmp0_desc, 1, TypeListSerializer_getInstance(), tmp5_local1);
|
|
422
|
-
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
423
|
-
break;
|
|
424
|
-
case 2:
|
|
425
|
-
tmp6_local2 = tmp8_input.ko(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
426
|
-
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
427
|
-
break;
|
|
428
|
-
case 3:
|
|
429
|
-
tmp7_local3 = tmp8_input.ko(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
|
|
430
|
-
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
431
|
-
break;
|
|
432
|
-
default:
|
|
433
|
-
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
434
|
-
}
|
|
435
|
-
}
|
|
436
|
-
tmp8_input.xn(tmp0_desc);
|
|
437
|
-
return Field_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
438
|
-
};
|
|
439
|
-
protoOf($serializer).vk = function () {
|
|
440
|
-
return this.n2d_1;
|
|
441
|
-
};
|
|
442
|
-
protoOf($serializer).zv = function () {
|
|
443
|
-
// Inline function 'kotlin.arrayOf' call
|
|
444
|
-
// Inline function 'kotlin.js.unsafeCast' call
|
|
445
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
446
|
-
return [StringSerializer_getInstance(), TypeListSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance())];
|
|
447
|
-
};
|
|
448
|
-
var $serializer_instance;
|
|
449
|
-
function $serializer_getInstance() {
|
|
450
|
-
if ($serializer_instance == null)
|
|
451
|
-
new $serializer();
|
|
452
|
-
return $serializer_instance;
|
|
453
|
-
}
|
|
454
|
-
function Field_init_$Init$(seen0, name, type, doc, default_0, serializationConstructorMarker, $this) {
|
|
455
|
-
if (!(3 === (3 & seen0))) {
|
|
456
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance().n2d_1);
|
|
457
|
-
}
|
|
458
|
-
$this.h2d_1 = name;
|
|
459
|
-
$this.i2d_1 = type;
|
|
460
|
-
if (0 === (seen0 & 4))
|
|
461
|
-
$this.j2d_1 = null;
|
|
462
|
-
else
|
|
463
|
-
$this.j2d_1 = doc;
|
|
464
|
-
if (0 === (seen0 & 8))
|
|
465
|
-
$this.k2d_1 = null;
|
|
466
|
-
else
|
|
467
|
-
$this.k2d_1 = default_0;
|
|
468
|
-
return $this;
|
|
469
|
-
}
|
|
470
|
-
function Field_init_$Create$(seen0, name, type, doc, default_0, serializationConstructorMarker) {
|
|
471
|
-
return Field_init_$Init$(seen0, name, type, doc, default_0, serializationConstructorMarker, objectCreate(protoOf(Field_0)));
|
|
472
|
-
}
|
|
473
|
-
function Companion() {
|
|
474
|
-
}
|
|
475
|
-
var Companion_instance;
|
|
476
|
-
function Companion_getInstance() {
|
|
477
|
-
return Companion_instance;
|
|
478
|
-
}
|
|
479
|
-
function Companion_0() {
|
|
480
|
-
}
|
|
481
|
-
protoOf(Companion_0).m17 = function () {
|
|
482
|
-
return TypeSerializer_getInstance();
|
|
483
|
-
};
|
|
484
|
-
protoOf(Companion_0).mw = function (typeParamsSerializers) {
|
|
485
|
-
return this.m17();
|
|
486
|
-
};
|
|
487
|
-
var Companion_instance_0;
|
|
488
|
-
function Companion_getInstance_0() {
|
|
489
|
-
return Companion_instance_0;
|
|
490
|
-
}
|
|
491
|
-
function Companion_1() {
|
|
492
|
-
}
|
|
493
|
-
var Companion_instance_1;
|
|
494
|
-
function Companion_getInstance_1() {
|
|
495
|
-
return Companion_instance_1;
|
|
496
|
-
}
|
|
497
|
-
function $serializer_0() {
|
|
498
|
-
$serializer_instance_0 = this;
|
|
499
|
-
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.SimpleType', this, 1);
|
|
500
|
-
tmp0_serialDesc.gv('value', false);
|
|
501
|
-
this.p2d_1 = tmp0_serialDesc;
|
|
502
|
-
}
|
|
503
|
-
protoOf($serializer_0).q2d = function (encoder, value) {
|
|
504
|
-
var tmp0_desc = this.p2d_1;
|
|
505
|
-
var tmp1_output = encoder.wn(tmp0_desc);
|
|
506
|
-
tmp1_output.lp(tmp0_desc, 0, value.n2c_1);
|
|
507
|
-
tmp1_output.xn(tmp0_desc);
|
|
508
|
-
};
|
|
509
|
-
protoOf($serializer_0).wk = function (encoder, value) {
|
|
510
|
-
return this.q2d(encoder, value instanceof SimpleType ? value : THROW_CCE());
|
|
511
|
-
};
|
|
512
|
-
protoOf($serializer_0).xk = function (decoder) {
|
|
513
|
-
var tmp0_desc = this.p2d_1;
|
|
514
|
-
var tmp1_flag = true;
|
|
515
|
-
var tmp2_index = 0;
|
|
516
|
-
var tmp3_bitMask0 = 0;
|
|
517
|
-
var tmp4_local0 = null;
|
|
518
|
-
var tmp5_input = decoder.wn(tmp0_desc);
|
|
519
|
-
if (tmp5_input.mo()) {
|
|
520
|
-
tmp4_local0 = tmp5_input.go(tmp0_desc, 0);
|
|
521
|
-
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
522
|
-
} else
|
|
523
|
-
while (tmp1_flag) {
|
|
524
|
-
tmp2_index = tmp5_input.no(tmp0_desc);
|
|
525
|
-
switch (tmp2_index) {
|
|
526
|
-
case -1:
|
|
527
|
-
tmp1_flag = false;
|
|
528
|
-
break;
|
|
529
|
-
case 0:
|
|
530
|
-
tmp4_local0 = tmp5_input.go(tmp0_desc, 0);
|
|
531
|
-
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
532
|
-
break;
|
|
533
|
-
default:
|
|
534
|
-
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
535
|
-
}
|
|
536
|
-
}
|
|
537
|
-
tmp5_input.xn(tmp0_desc);
|
|
538
|
-
return SimpleType_init_$Create$(tmp3_bitMask0, tmp4_local0, null);
|
|
539
|
-
};
|
|
540
|
-
protoOf($serializer_0).vk = function () {
|
|
541
|
-
return this.p2d_1;
|
|
542
|
-
};
|
|
543
|
-
protoOf($serializer_0).zv = function () {
|
|
544
|
-
// Inline function 'kotlin.arrayOf' call
|
|
545
|
-
// Inline function 'kotlin.js.unsafeCast' call
|
|
546
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
547
|
-
return [StringSerializer_getInstance()];
|
|
548
|
-
};
|
|
549
|
-
var $serializer_instance_0;
|
|
550
|
-
function $serializer_getInstance_0() {
|
|
551
|
-
if ($serializer_instance_0 == null)
|
|
552
|
-
new $serializer_0();
|
|
553
|
-
return $serializer_instance_0;
|
|
554
|
-
}
|
|
555
|
-
function SimpleType_init_$Init$(seen0, value, serializationConstructorMarker, $this) {
|
|
556
|
-
if (!(1 === (1 & seen0))) {
|
|
557
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_0().p2d_1);
|
|
558
|
-
}
|
|
559
|
-
$this.n2c_1 = value;
|
|
560
|
-
return $this;
|
|
561
|
-
}
|
|
562
|
-
function SimpleType_init_$Create$(seen0, value, serializationConstructorMarker) {
|
|
563
|
-
return SimpleType_init_$Init$(seen0, value, serializationConstructorMarker, objectCreate(protoOf(SimpleType)));
|
|
564
|
-
}
|
|
565
|
-
function Companion_2() {
|
|
566
|
-
Companion_instance_2 = this;
|
|
567
|
-
var tmp = this;
|
|
568
|
-
// Inline function 'kotlin.arrayOf' call
|
|
569
|
-
// Inline function 'kotlin.js.unsafeCast' call
|
|
570
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
571
|
-
tmp.r2d_1 = [null, null, null, new ArrayListSerializer($serializer_getInstance()), null];
|
|
572
|
-
}
|
|
573
|
-
protoOf(Companion_2).m17 = function () {
|
|
574
|
-
return $serializer_getInstance_1();
|
|
575
|
-
};
|
|
576
|
-
var Companion_instance_2;
|
|
577
|
-
function Companion_getInstance_2() {
|
|
578
|
-
if (Companion_instance_2 == null)
|
|
579
|
-
new Companion_2();
|
|
580
|
-
return Companion_instance_2;
|
|
581
|
-
}
|
|
582
|
-
function $serializer_1() {
|
|
583
|
-
$serializer_instance_1 = this;
|
|
584
|
-
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.RecordType', this, 5);
|
|
585
|
-
tmp0_serialDesc.gv('type', false);
|
|
586
|
-
tmp0_serialDesc.gv('name', false);
|
|
587
|
-
tmp0_serialDesc.gv('namespace', true);
|
|
588
|
-
tmp0_serialDesc.gv('fields', false);
|
|
589
|
-
tmp0_serialDesc.gv('doc', true);
|
|
590
|
-
this.s2d_1 = tmp0_serialDesc;
|
|
591
|
-
}
|
|
592
|
-
protoOf($serializer_1).t2d = function (encoder, value) {
|
|
593
|
-
var tmp0_desc = this.s2d_1;
|
|
594
|
-
var tmp1_output = encoder.wn(tmp0_desc);
|
|
595
|
-
var tmp2_cached = Companion_getInstance_2().r2d_1;
|
|
596
|
-
tmp1_output.lp(tmp0_desc, 0, value.a2d_1);
|
|
597
|
-
tmp1_output.lp(tmp0_desc, 1, value.b2d_1);
|
|
598
|
-
if (tmp1_output.tp(tmp0_desc, 2) ? true : !(value.c2d_1 == null)) {
|
|
599
|
-
tmp1_output.pp(tmp0_desc, 2, StringSerializer_getInstance(), value.c2d_1);
|
|
600
|
-
}
|
|
601
|
-
tmp1_output.np(tmp0_desc, 3, tmp2_cached[3], value.d2d_1);
|
|
602
|
-
if (tmp1_output.tp(tmp0_desc, 4) ? true : !(value.e2d_1 == null)) {
|
|
603
|
-
tmp1_output.pp(tmp0_desc, 4, StringSerializer_getInstance(), value.e2d_1);
|
|
604
|
-
}
|
|
605
|
-
tmp1_output.xn(tmp0_desc);
|
|
606
|
-
};
|
|
607
|
-
protoOf($serializer_1).wk = function (encoder, value) {
|
|
608
|
-
return this.t2d(encoder, value instanceof RecordType ? value : THROW_CCE());
|
|
609
|
-
};
|
|
610
|
-
protoOf($serializer_1).xk = function (decoder) {
|
|
611
|
-
var tmp0_desc = this.s2d_1;
|
|
612
|
-
var tmp1_flag = true;
|
|
613
|
-
var tmp2_index = 0;
|
|
614
|
-
var tmp3_bitMask0 = 0;
|
|
615
|
-
var tmp4_local0 = null;
|
|
616
|
-
var tmp5_local1 = null;
|
|
617
|
-
var tmp6_local2 = null;
|
|
618
|
-
var tmp7_local3 = null;
|
|
619
|
-
var tmp8_local4 = null;
|
|
620
|
-
var tmp9_input = decoder.wn(tmp0_desc);
|
|
621
|
-
var tmp10_cached = Companion_getInstance_2().r2d_1;
|
|
622
|
-
if (tmp9_input.mo()) {
|
|
623
|
-
tmp4_local0 = tmp9_input.go(tmp0_desc, 0);
|
|
624
|
-
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
625
|
-
tmp5_local1 = tmp9_input.go(tmp0_desc, 1);
|
|
626
|
-
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
627
|
-
tmp6_local2 = tmp9_input.ko(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
628
|
-
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
629
|
-
tmp7_local3 = tmp9_input.io(tmp0_desc, 3, tmp10_cached[3], tmp7_local3);
|
|
630
|
-
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
631
|
-
tmp8_local4 = tmp9_input.ko(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
|
|
632
|
-
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
633
|
-
} else
|
|
634
|
-
while (tmp1_flag) {
|
|
635
|
-
tmp2_index = tmp9_input.no(tmp0_desc);
|
|
636
|
-
switch (tmp2_index) {
|
|
637
|
-
case -1:
|
|
638
|
-
tmp1_flag = false;
|
|
639
|
-
break;
|
|
640
|
-
case 0:
|
|
641
|
-
tmp4_local0 = tmp9_input.go(tmp0_desc, 0);
|
|
642
|
-
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
643
|
-
break;
|
|
644
|
-
case 1:
|
|
645
|
-
tmp5_local1 = tmp9_input.go(tmp0_desc, 1);
|
|
646
|
-
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
647
|
-
break;
|
|
648
|
-
case 2:
|
|
649
|
-
tmp6_local2 = tmp9_input.ko(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
650
|
-
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
651
|
-
break;
|
|
652
|
-
case 3:
|
|
653
|
-
tmp7_local3 = tmp9_input.io(tmp0_desc, 3, tmp10_cached[3], tmp7_local3);
|
|
654
|
-
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
655
|
-
break;
|
|
656
|
-
case 4:
|
|
657
|
-
tmp8_local4 = tmp9_input.ko(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
|
|
658
|
-
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
659
|
-
break;
|
|
660
|
-
default:
|
|
661
|
-
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
662
|
-
}
|
|
663
|
-
}
|
|
664
|
-
tmp9_input.xn(tmp0_desc);
|
|
665
|
-
return RecordType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null);
|
|
666
|
-
};
|
|
667
|
-
protoOf($serializer_1).vk = function () {
|
|
668
|
-
return this.s2d_1;
|
|
669
|
-
};
|
|
670
|
-
protoOf($serializer_1).zv = function () {
|
|
671
|
-
var tmp0_cached = Companion_getInstance_2().r2d_1;
|
|
672
|
-
// Inline function 'kotlin.arrayOf' call
|
|
673
|
-
// Inline function 'kotlin.js.unsafeCast' call
|
|
674
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
675
|
-
return [StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), tmp0_cached[3], get_nullable(StringSerializer_getInstance())];
|
|
676
|
-
};
|
|
677
|
-
var $serializer_instance_1;
|
|
678
|
-
function $serializer_getInstance_1() {
|
|
679
|
-
if ($serializer_instance_1 == null)
|
|
680
|
-
new $serializer_1();
|
|
681
|
-
return $serializer_instance_1;
|
|
682
|
-
}
|
|
683
|
-
function RecordType_init_$Init$(seen0, type, name, namespace, fields, doc, serializationConstructorMarker, $this) {
|
|
684
|
-
if (!(11 === (11 & seen0))) {
|
|
685
|
-
throwMissingFieldException(seen0, 11, $serializer_getInstance_1().s2d_1);
|
|
686
|
-
}
|
|
687
|
-
$this.a2d_1 = type;
|
|
688
|
-
$this.b2d_1 = name;
|
|
689
|
-
if (0 === (seen0 & 4))
|
|
690
|
-
$this.c2d_1 = null;
|
|
691
|
-
else
|
|
692
|
-
$this.c2d_1 = namespace;
|
|
693
|
-
$this.d2d_1 = fields;
|
|
694
|
-
if (0 === (seen0 & 16))
|
|
695
|
-
$this.e2d_1 = null;
|
|
696
|
-
else
|
|
697
|
-
$this.e2d_1 = doc;
|
|
698
|
-
return $this;
|
|
699
|
-
}
|
|
700
|
-
function RecordType_init_$Create$(seen0, type, name, namespace, fields, doc, serializationConstructorMarker) {
|
|
701
|
-
return RecordType_init_$Init$(seen0, type, name, namespace, fields, doc, serializationConstructorMarker, objectCreate(protoOf(RecordType)));
|
|
702
|
-
}
|
|
703
|
-
function Companion_3() {
|
|
704
|
-
}
|
|
705
|
-
protoOf(Companion_3).m17 = function () {
|
|
706
|
-
return $serializer_getInstance_2();
|
|
707
|
-
};
|
|
708
|
-
var Companion_instance_3;
|
|
709
|
-
function Companion_getInstance_3() {
|
|
710
|
-
return Companion_instance_3;
|
|
711
|
-
}
|
|
712
|
-
function $serializer_2() {
|
|
713
|
-
$serializer_instance_2 = this;
|
|
714
|
-
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.ArrayType', this, 2);
|
|
715
|
-
tmp0_serialDesc.gv('type', false);
|
|
716
|
-
tmp0_serialDesc.gv('items', false);
|
|
717
|
-
this.u2d_1 = tmp0_serialDesc;
|
|
718
|
-
}
|
|
719
|
-
protoOf($serializer_2).v2d = function (encoder, value) {
|
|
720
|
-
var tmp0_desc = this.u2d_1;
|
|
721
|
-
var tmp1_output = encoder.wn(tmp0_desc);
|
|
722
|
-
tmp1_output.lp(tmp0_desc, 0, value.f2d_1);
|
|
723
|
-
tmp1_output.np(tmp0_desc, 1, TypeSerializer_getInstance(), value.g2d_1);
|
|
724
|
-
tmp1_output.xn(tmp0_desc);
|
|
725
|
-
};
|
|
726
|
-
protoOf($serializer_2).wk = function (encoder, value) {
|
|
727
|
-
return this.v2d(encoder, value instanceof ArrayType ? value : THROW_CCE());
|
|
728
|
-
};
|
|
729
|
-
protoOf($serializer_2).xk = function (decoder) {
|
|
730
|
-
var tmp0_desc = this.u2d_1;
|
|
731
|
-
var tmp1_flag = true;
|
|
732
|
-
var tmp2_index = 0;
|
|
733
|
-
var tmp3_bitMask0 = 0;
|
|
734
|
-
var tmp4_local0 = null;
|
|
735
|
-
var tmp5_local1 = null;
|
|
736
|
-
var tmp6_input = decoder.wn(tmp0_desc);
|
|
737
|
-
if (tmp6_input.mo()) {
|
|
738
|
-
tmp4_local0 = tmp6_input.go(tmp0_desc, 0);
|
|
739
|
-
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
740
|
-
tmp5_local1 = tmp6_input.io(tmp0_desc, 1, TypeSerializer_getInstance(), tmp5_local1);
|
|
741
|
-
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
742
|
-
} else
|
|
743
|
-
while (tmp1_flag) {
|
|
744
|
-
tmp2_index = tmp6_input.no(tmp0_desc);
|
|
745
|
-
switch (tmp2_index) {
|
|
746
|
-
case -1:
|
|
747
|
-
tmp1_flag = false;
|
|
748
|
-
break;
|
|
749
|
-
case 0:
|
|
750
|
-
tmp4_local0 = tmp6_input.go(tmp0_desc, 0);
|
|
751
|
-
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
752
|
-
break;
|
|
753
|
-
case 1:
|
|
754
|
-
tmp5_local1 = tmp6_input.io(tmp0_desc, 1, TypeSerializer_getInstance(), tmp5_local1);
|
|
755
|
-
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
756
|
-
break;
|
|
757
|
-
default:
|
|
758
|
-
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
759
|
-
}
|
|
760
|
-
}
|
|
761
|
-
tmp6_input.xn(tmp0_desc);
|
|
762
|
-
return ArrayType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
763
|
-
};
|
|
764
|
-
protoOf($serializer_2).vk = function () {
|
|
765
|
-
return this.u2d_1;
|
|
766
|
-
};
|
|
767
|
-
protoOf($serializer_2).zv = function () {
|
|
768
|
-
// Inline function 'kotlin.arrayOf' call
|
|
769
|
-
// Inline function 'kotlin.js.unsafeCast' call
|
|
770
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
771
|
-
return [StringSerializer_getInstance(), TypeSerializer_getInstance()];
|
|
772
|
-
};
|
|
773
|
-
var $serializer_instance_2;
|
|
774
|
-
function $serializer_getInstance_2() {
|
|
775
|
-
if ($serializer_instance_2 == null)
|
|
776
|
-
new $serializer_2();
|
|
777
|
-
return $serializer_instance_2;
|
|
778
|
-
}
|
|
779
|
-
function ArrayType_init_$Init$(seen0, type, items, serializationConstructorMarker, $this) {
|
|
780
|
-
if (!(3 === (3 & seen0))) {
|
|
781
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().u2d_1);
|
|
782
|
-
}
|
|
783
|
-
$this.f2d_1 = type;
|
|
784
|
-
$this.g2d_1 = items;
|
|
785
|
-
return $this;
|
|
786
|
-
}
|
|
787
|
-
function ArrayType_init_$Create$(seen0, type, items, serializationConstructorMarker) {
|
|
788
|
-
return ArrayType_init_$Init$(seen0, type, items, serializationConstructorMarker, objectCreate(protoOf(ArrayType)));
|
|
789
|
-
}
|
|
790
|
-
function Companion_4() {
|
|
791
|
-
}
|
|
792
|
-
protoOf(Companion_4).m17 = function () {
|
|
793
|
-
return $serializer_getInstance_3();
|
|
794
|
-
};
|
|
795
|
-
var Companion_instance_4;
|
|
796
|
-
function Companion_getInstance_4() {
|
|
797
|
-
return Companion_instance_4;
|
|
798
|
-
}
|
|
799
|
-
function $serializer_3() {
|
|
800
|
-
$serializer_instance_3 = this;
|
|
801
|
-
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.MapType', this, 2);
|
|
802
|
-
tmp0_serialDesc.gv('type', false);
|
|
803
|
-
tmp0_serialDesc.gv('values', false);
|
|
804
|
-
this.w2d_1 = tmp0_serialDesc;
|
|
805
|
-
}
|
|
806
|
-
protoOf($serializer_3).x2d = function (encoder, value) {
|
|
807
|
-
var tmp0_desc = this.w2d_1;
|
|
808
|
-
var tmp1_output = encoder.wn(tmp0_desc);
|
|
809
|
-
tmp1_output.lp(tmp0_desc, 0, value.q2c_1);
|
|
810
|
-
tmp1_output.np(tmp0_desc, 1, TypeSerializer_getInstance(), value.r2c_1);
|
|
811
|
-
tmp1_output.xn(tmp0_desc);
|
|
812
|
-
};
|
|
813
|
-
protoOf($serializer_3).wk = function (encoder, value) {
|
|
814
|
-
return this.x2d(encoder, value instanceof MapType ? value : THROW_CCE());
|
|
815
|
-
};
|
|
816
|
-
protoOf($serializer_3).xk = function (decoder) {
|
|
817
|
-
var tmp0_desc = this.w2d_1;
|
|
818
|
-
var tmp1_flag = true;
|
|
819
|
-
var tmp2_index = 0;
|
|
820
|
-
var tmp3_bitMask0 = 0;
|
|
821
|
-
var tmp4_local0 = null;
|
|
822
|
-
var tmp5_local1 = null;
|
|
823
|
-
var tmp6_input = decoder.wn(tmp0_desc);
|
|
824
|
-
if (tmp6_input.mo()) {
|
|
825
|
-
tmp4_local0 = tmp6_input.go(tmp0_desc, 0);
|
|
826
|
-
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
827
|
-
tmp5_local1 = tmp6_input.io(tmp0_desc, 1, TypeSerializer_getInstance(), tmp5_local1);
|
|
828
|
-
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
829
|
-
} else
|
|
830
|
-
while (tmp1_flag) {
|
|
831
|
-
tmp2_index = tmp6_input.no(tmp0_desc);
|
|
832
|
-
switch (tmp2_index) {
|
|
833
|
-
case -1:
|
|
834
|
-
tmp1_flag = false;
|
|
835
|
-
break;
|
|
836
|
-
case 0:
|
|
837
|
-
tmp4_local0 = tmp6_input.go(tmp0_desc, 0);
|
|
838
|
-
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
839
|
-
break;
|
|
840
|
-
case 1:
|
|
841
|
-
tmp5_local1 = tmp6_input.io(tmp0_desc, 1, TypeSerializer_getInstance(), tmp5_local1);
|
|
842
|
-
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
843
|
-
break;
|
|
844
|
-
default:
|
|
845
|
-
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
846
|
-
}
|
|
847
|
-
}
|
|
848
|
-
tmp6_input.xn(tmp0_desc);
|
|
849
|
-
return MapType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
850
|
-
};
|
|
851
|
-
protoOf($serializer_3).vk = function () {
|
|
852
|
-
return this.w2d_1;
|
|
853
|
-
};
|
|
854
|
-
protoOf($serializer_3).zv = function () {
|
|
855
|
-
// Inline function 'kotlin.arrayOf' call
|
|
856
|
-
// Inline function 'kotlin.js.unsafeCast' call
|
|
857
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
858
|
-
return [StringSerializer_getInstance(), TypeSerializer_getInstance()];
|
|
859
|
-
};
|
|
860
|
-
var $serializer_instance_3;
|
|
861
|
-
function $serializer_getInstance_3() {
|
|
862
|
-
if ($serializer_instance_3 == null)
|
|
863
|
-
new $serializer_3();
|
|
864
|
-
return $serializer_instance_3;
|
|
865
|
-
}
|
|
866
|
-
function MapType_init_$Init$(seen0, type, values, serializationConstructorMarker, $this) {
|
|
867
|
-
if (!(3 === (3 & seen0))) {
|
|
868
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_3().w2d_1);
|
|
869
|
-
}
|
|
870
|
-
$this.q2c_1 = type;
|
|
871
|
-
$this.r2c_1 = values;
|
|
872
|
-
return $this;
|
|
873
|
-
}
|
|
874
|
-
function MapType_init_$Create$(seen0, type, values, serializationConstructorMarker) {
|
|
875
|
-
return MapType_init_$Init$(seen0, type, values, serializationConstructorMarker, objectCreate(protoOf(MapType)));
|
|
876
|
-
}
|
|
877
|
-
function Companion_5() {
|
|
878
|
-
Companion_instance_5 = this;
|
|
879
|
-
var tmp = this;
|
|
880
|
-
// Inline function 'kotlin.arrayOf' call
|
|
881
|
-
// Inline function 'kotlin.js.unsafeCast' call
|
|
882
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
883
|
-
tmp.y2d_1 = [null, null, null, new ArrayListSerializer(StringSerializer_getInstance())];
|
|
884
|
-
}
|
|
885
|
-
protoOf(Companion_5).m17 = function () {
|
|
886
|
-
return $serializer_getInstance_4();
|
|
887
|
-
};
|
|
888
|
-
var Companion_instance_5;
|
|
889
|
-
function Companion_getInstance_5() {
|
|
890
|
-
if (Companion_instance_5 == null)
|
|
891
|
-
new Companion_5();
|
|
892
|
-
return Companion_instance_5;
|
|
893
|
-
}
|
|
894
|
-
function $serializer_4() {
|
|
895
|
-
$serializer_instance_4 = this;
|
|
896
|
-
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.EnumType', this, 4);
|
|
897
|
-
tmp0_serialDesc.gv('type', false);
|
|
898
|
-
tmp0_serialDesc.gv('name', false);
|
|
899
|
-
tmp0_serialDesc.gv('doc', true);
|
|
900
|
-
tmp0_serialDesc.gv('symbols', false);
|
|
901
|
-
this.z2d_1 = tmp0_serialDesc;
|
|
902
|
-
}
|
|
903
|
-
protoOf($serializer_4).a2e = function (encoder, value) {
|
|
904
|
-
var tmp0_desc = this.z2d_1;
|
|
905
|
-
var tmp1_output = encoder.wn(tmp0_desc);
|
|
906
|
-
var tmp2_cached = Companion_getInstance_5().y2d_1;
|
|
907
|
-
tmp1_output.lp(tmp0_desc, 0, value.w2c_1);
|
|
908
|
-
tmp1_output.lp(tmp0_desc, 1, value.x2c_1);
|
|
909
|
-
if (tmp1_output.tp(tmp0_desc, 2) ? true : !(value.y2c_1 == null)) {
|
|
910
|
-
tmp1_output.pp(tmp0_desc, 2, StringSerializer_getInstance(), value.y2c_1);
|
|
911
|
-
}
|
|
912
|
-
tmp1_output.np(tmp0_desc, 3, tmp2_cached[3], value.z2c_1);
|
|
913
|
-
tmp1_output.xn(tmp0_desc);
|
|
914
|
-
};
|
|
915
|
-
protoOf($serializer_4).wk = function (encoder, value) {
|
|
916
|
-
return this.a2e(encoder, value instanceof EnumType ? value : THROW_CCE());
|
|
917
|
-
};
|
|
918
|
-
protoOf($serializer_4).xk = function (decoder) {
|
|
919
|
-
var tmp0_desc = this.z2d_1;
|
|
920
|
-
var tmp1_flag = true;
|
|
921
|
-
var tmp2_index = 0;
|
|
922
|
-
var tmp3_bitMask0 = 0;
|
|
923
|
-
var tmp4_local0 = null;
|
|
924
|
-
var tmp5_local1 = null;
|
|
925
|
-
var tmp6_local2 = null;
|
|
926
|
-
var tmp7_local3 = null;
|
|
927
|
-
var tmp8_input = decoder.wn(tmp0_desc);
|
|
928
|
-
var tmp9_cached = Companion_getInstance_5().y2d_1;
|
|
929
|
-
if (tmp8_input.mo()) {
|
|
930
|
-
tmp4_local0 = tmp8_input.go(tmp0_desc, 0);
|
|
931
|
-
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
932
|
-
tmp5_local1 = tmp8_input.go(tmp0_desc, 1);
|
|
933
|
-
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
934
|
-
tmp6_local2 = tmp8_input.ko(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
935
|
-
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
936
|
-
tmp7_local3 = tmp8_input.io(tmp0_desc, 3, tmp9_cached[3], tmp7_local3);
|
|
937
|
-
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
938
|
-
} else
|
|
939
|
-
while (tmp1_flag) {
|
|
940
|
-
tmp2_index = tmp8_input.no(tmp0_desc);
|
|
941
|
-
switch (tmp2_index) {
|
|
942
|
-
case -1:
|
|
943
|
-
tmp1_flag = false;
|
|
944
|
-
break;
|
|
945
|
-
case 0:
|
|
946
|
-
tmp4_local0 = tmp8_input.go(tmp0_desc, 0);
|
|
947
|
-
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
948
|
-
break;
|
|
949
|
-
case 1:
|
|
950
|
-
tmp5_local1 = tmp8_input.go(tmp0_desc, 1);
|
|
951
|
-
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
952
|
-
break;
|
|
953
|
-
case 2:
|
|
954
|
-
tmp6_local2 = tmp8_input.ko(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
955
|
-
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
956
|
-
break;
|
|
957
|
-
case 3:
|
|
958
|
-
tmp7_local3 = tmp8_input.io(tmp0_desc, 3, tmp9_cached[3], tmp7_local3);
|
|
959
|
-
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
960
|
-
break;
|
|
961
|
-
default:
|
|
962
|
-
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
963
|
-
}
|
|
964
|
-
}
|
|
965
|
-
tmp8_input.xn(tmp0_desc);
|
|
966
|
-
return EnumType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
967
|
-
};
|
|
968
|
-
protoOf($serializer_4).vk = function () {
|
|
969
|
-
return this.z2d_1;
|
|
970
|
-
};
|
|
971
|
-
protoOf($serializer_4).zv = function () {
|
|
972
|
-
var tmp0_cached = Companion_getInstance_5().y2d_1;
|
|
973
|
-
// Inline function 'kotlin.arrayOf' call
|
|
974
|
-
// Inline function 'kotlin.js.unsafeCast' call
|
|
975
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
976
|
-
return [StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), tmp0_cached[3]];
|
|
977
|
-
};
|
|
978
|
-
var $serializer_instance_4;
|
|
979
|
-
function $serializer_getInstance_4() {
|
|
980
|
-
if ($serializer_instance_4 == null)
|
|
981
|
-
new $serializer_4();
|
|
982
|
-
return $serializer_instance_4;
|
|
983
|
-
}
|
|
984
|
-
function EnumType_init_$Init$(seen0, type, name, doc, symbols, serializationConstructorMarker, $this) {
|
|
985
|
-
if (!(11 === (11 & seen0))) {
|
|
986
|
-
throwMissingFieldException(seen0, 11, $serializer_getInstance_4().z2d_1);
|
|
987
|
-
}
|
|
988
|
-
$this.w2c_1 = type;
|
|
989
|
-
$this.x2c_1 = name;
|
|
990
|
-
if (0 === (seen0 & 4))
|
|
991
|
-
$this.y2c_1 = null;
|
|
992
|
-
else
|
|
993
|
-
$this.y2c_1 = doc;
|
|
994
|
-
$this.z2c_1 = symbols;
|
|
995
|
-
return $this;
|
|
996
|
-
}
|
|
997
|
-
function EnumType_init_$Create$(seen0, type, name, doc, symbols, serializationConstructorMarker) {
|
|
998
|
-
return EnumType_init_$Init$(seen0, type, name, doc, symbols, serializationConstructorMarker, objectCreate(protoOf(EnumType)));
|
|
999
|
-
}
|
|
1000
|
-
function Companion_6() {
|
|
1001
|
-
}
|
|
1002
|
-
protoOf(Companion_6).m17 = function () {
|
|
1003
|
-
return $serializer_getInstance_5();
|
|
1004
|
-
};
|
|
1005
|
-
var Companion_instance_6;
|
|
1006
|
-
function Companion_getInstance_6() {
|
|
1007
|
-
return Companion_instance_6;
|
|
1008
|
-
}
|
|
1009
|
-
function $serializer_5() {
|
|
1010
|
-
$serializer_instance_5 = this;
|
|
1011
|
-
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.UnionType', this, 2);
|
|
1012
|
-
tmp0_serialDesc.gv('name', false);
|
|
1013
|
-
tmp0_serialDesc.gv('type', false);
|
|
1014
|
-
this.b2e_1 = tmp0_serialDesc;
|
|
1015
|
-
}
|
|
1016
|
-
protoOf($serializer_5).c2e = function (encoder, value) {
|
|
1017
|
-
var tmp0_desc = this.b2e_1;
|
|
1018
|
-
var tmp1_output = encoder.wn(tmp0_desc);
|
|
1019
|
-
tmp1_output.lp(tmp0_desc, 0, value.o2c_1);
|
|
1020
|
-
tmp1_output.np(tmp0_desc, 1, TypeListSerializer_getInstance(), value.p2c_1);
|
|
1021
|
-
tmp1_output.xn(tmp0_desc);
|
|
1022
|
-
};
|
|
1023
|
-
protoOf($serializer_5).wk = function (encoder, value) {
|
|
1024
|
-
return this.c2e(encoder, value instanceof UnionType ? value : THROW_CCE());
|
|
1025
|
-
};
|
|
1026
|
-
protoOf($serializer_5).xk = function (decoder) {
|
|
1027
|
-
var tmp0_desc = this.b2e_1;
|
|
1028
|
-
var tmp1_flag = true;
|
|
1029
|
-
var tmp2_index = 0;
|
|
1030
|
-
var tmp3_bitMask0 = 0;
|
|
1031
|
-
var tmp4_local0 = null;
|
|
1032
|
-
var tmp5_local1 = null;
|
|
1033
|
-
var tmp6_input = decoder.wn(tmp0_desc);
|
|
1034
|
-
if (tmp6_input.mo()) {
|
|
1035
|
-
tmp4_local0 = tmp6_input.go(tmp0_desc, 0);
|
|
1036
|
-
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1037
|
-
tmp5_local1 = tmp6_input.io(tmp0_desc, 1, TypeListSerializer_getInstance(), tmp5_local1);
|
|
1038
|
-
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1039
|
-
} else
|
|
1040
|
-
while (tmp1_flag) {
|
|
1041
|
-
tmp2_index = tmp6_input.no(tmp0_desc);
|
|
1042
|
-
switch (tmp2_index) {
|
|
1043
|
-
case -1:
|
|
1044
|
-
tmp1_flag = false;
|
|
1045
|
-
break;
|
|
1046
|
-
case 0:
|
|
1047
|
-
tmp4_local0 = tmp6_input.go(tmp0_desc, 0);
|
|
1048
|
-
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1049
|
-
break;
|
|
1050
|
-
case 1:
|
|
1051
|
-
tmp5_local1 = tmp6_input.io(tmp0_desc, 1, TypeListSerializer_getInstance(), tmp5_local1);
|
|
1052
|
-
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1053
|
-
break;
|
|
1054
|
-
default:
|
|
1055
|
-
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1056
|
-
}
|
|
1057
|
-
}
|
|
1058
|
-
tmp6_input.xn(tmp0_desc);
|
|
1059
|
-
return UnionType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1060
|
-
};
|
|
1061
|
-
protoOf($serializer_5).vk = function () {
|
|
1062
|
-
return this.b2e_1;
|
|
1063
|
-
};
|
|
1064
|
-
protoOf($serializer_5).zv = function () {
|
|
1065
|
-
// Inline function 'kotlin.arrayOf' call
|
|
1066
|
-
// Inline function 'kotlin.js.unsafeCast' call
|
|
1067
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
1068
|
-
return [StringSerializer_getInstance(), TypeListSerializer_getInstance()];
|
|
1069
|
-
};
|
|
1070
|
-
var $serializer_instance_5;
|
|
1071
|
-
function $serializer_getInstance_5() {
|
|
1072
|
-
if ($serializer_instance_5 == null)
|
|
1073
|
-
new $serializer_5();
|
|
1074
|
-
return $serializer_instance_5;
|
|
1075
|
-
}
|
|
1076
|
-
function UnionType_init_$Init$(seen0, name, type, serializationConstructorMarker, $this) {
|
|
1077
|
-
if (!(3 === (3 & seen0))) {
|
|
1078
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_5().b2e_1);
|
|
1079
|
-
}
|
|
1080
|
-
$this.o2c_1 = name;
|
|
1081
|
-
$this.p2c_1 = type;
|
|
1082
|
-
return $this;
|
|
1083
|
-
}
|
|
1084
|
-
function UnionType_init_$Create$(seen0, name, type, serializationConstructorMarker) {
|
|
1085
|
-
return UnionType_init_$Init$(seen0, name, type, serializationConstructorMarker, objectCreate(protoOf(UnionType)));
|
|
1086
|
-
}
|
|
1087
|
-
function Companion_7() {
|
|
1088
|
-
}
|
|
1089
|
-
protoOf(Companion_7).m17 = function () {
|
|
1090
|
-
return $serializer_getInstance_6();
|
|
1091
|
-
};
|
|
1092
|
-
var Companion_instance_7;
|
|
1093
|
-
function Companion_getInstance_7() {
|
|
1094
|
-
return Companion_instance_7;
|
|
1095
|
-
}
|
|
1096
|
-
function $serializer_6() {
|
|
1097
|
-
$serializer_instance_6 = this;
|
|
1098
|
-
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.LogicalType', this, 4);
|
|
1099
|
-
tmp0_serialDesc.gv('type', false);
|
|
1100
|
-
tmp0_serialDesc.gv('logicalType', false);
|
|
1101
|
-
tmp0_serialDesc.gv('precision', true);
|
|
1102
|
-
tmp0_serialDesc.gv('scale', true);
|
|
1103
|
-
this.d2e_1 = tmp0_serialDesc;
|
|
1104
|
-
}
|
|
1105
|
-
protoOf($serializer_6).e2e = function (encoder, value) {
|
|
1106
|
-
var tmp0_desc = this.d2e_1;
|
|
1107
|
-
var tmp1_output = encoder.wn(tmp0_desc);
|
|
1108
|
-
tmp1_output.lp(tmp0_desc, 0, value.s2c_1);
|
|
1109
|
-
tmp1_output.lp(tmp0_desc, 1, value.t2c_1);
|
|
1110
|
-
if (tmp1_output.tp(tmp0_desc, 2) ? true : !(value.u2c_1 == null)) {
|
|
1111
|
-
tmp1_output.pp(tmp0_desc, 2, IntSerializer_getInstance(), value.u2c_1);
|
|
1112
|
-
}
|
|
1113
|
-
if (tmp1_output.tp(tmp0_desc, 3) ? true : !(value.v2c_1 == null)) {
|
|
1114
|
-
tmp1_output.pp(tmp0_desc, 3, IntSerializer_getInstance(), value.v2c_1);
|
|
1115
|
-
}
|
|
1116
|
-
tmp1_output.xn(tmp0_desc);
|
|
1117
|
-
};
|
|
1118
|
-
protoOf($serializer_6).wk = function (encoder, value) {
|
|
1119
|
-
return this.e2e(encoder, value instanceof LogicalType ? value : THROW_CCE());
|
|
1120
|
-
};
|
|
1121
|
-
protoOf($serializer_6).xk = function (decoder) {
|
|
1122
|
-
var tmp0_desc = this.d2e_1;
|
|
1123
|
-
var tmp1_flag = true;
|
|
1124
|
-
var tmp2_index = 0;
|
|
1125
|
-
var tmp3_bitMask0 = 0;
|
|
1126
|
-
var tmp4_local0 = null;
|
|
1127
|
-
var tmp5_local1 = null;
|
|
1128
|
-
var tmp6_local2 = null;
|
|
1129
|
-
var tmp7_local3 = null;
|
|
1130
|
-
var tmp8_input = decoder.wn(tmp0_desc);
|
|
1131
|
-
if (tmp8_input.mo()) {
|
|
1132
|
-
tmp4_local0 = tmp8_input.go(tmp0_desc, 0);
|
|
1133
|
-
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1134
|
-
tmp5_local1 = tmp8_input.go(tmp0_desc, 1);
|
|
1135
|
-
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1136
|
-
tmp6_local2 = tmp8_input.ko(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
|
|
1137
|
-
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1138
|
-
tmp7_local3 = tmp8_input.ko(tmp0_desc, 3, IntSerializer_getInstance(), tmp7_local3);
|
|
1139
|
-
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1140
|
-
} else
|
|
1141
|
-
while (tmp1_flag) {
|
|
1142
|
-
tmp2_index = tmp8_input.no(tmp0_desc);
|
|
1143
|
-
switch (tmp2_index) {
|
|
1144
|
-
case -1:
|
|
1145
|
-
tmp1_flag = false;
|
|
1146
|
-
break;
|
|
1147
|
-
case 0:
|
|
1148
|
-
tmp4_local0 = tmp8_input.go(tmp0_desc, 0);
|
|
1149
|
-
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1150
|
-
break;
|
|
1151
|
-
case 1:
|
|
1152
|
-
tmp5_local1 = tmp8_input.go(tmp0_desc, 1);
|
|
1153
|
-
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1154
|
-
break;
|
|
1155
|
-
case 2:
|
|
1156
|
-
tmp6_local2 = tmp8_input.ko(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
|
|
1157
|
-
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1158
|
-
break;
|
|
1159
|
-
case 3:
|
|
1160
|
-
tmp7_local3 = tmp8_input.ko(tmp0_desc, 3, IntSerializer_getInstance(), tmp7_local3);
|
|
1161
|
-
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1162
|
-
break;
|
|
1163
|
-
default:
|
|
1164
|
-
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1165
|
-
}
|
|
1166
|
-
}
|
|
1167
|
-
tmp8_input.xn(tmp0_desc);
|
|
1168
|
-
return LogicalType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
1169
|
-
};
|
|
1170
|
-
protoOf($serializer_6).vk = function () {
|
|
1171
|
-
return this.d2e_1;
|
|
1172
|
-
};
|
|
1173
|
-
protoOf($serializer_6).zv = function () {
|
|
1174
|
-
// Inline function 'kotlin.arrayOf' call
|
|
1175
|
-
// Inline function 'kotlin.js.unsafeCast' call
|
|
1176
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
1177
|
-
return [StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable(IntSerializer_getInstance()), get_nullable(IntSerializer_getInstance())];
|
|
1178
|
-
};
|
|
1179
|
-
var $serializer_instance_6;
|
|
1180
|
-
function $serializer_getInstance_6() {
|
|
1181
|
-
if ($serializer_instance_6 == null)
|
|
1182
|
-
new $serializer_6();
|
|
1183
|
-
return $serializer_instance_6;
|
|
1184
|
-
}
|
|
1185
|
-
function LogicalType_init_$Init$(seen0, type, logicalType, precision, scale, serializationConstructorMarker, $this) {
|
|
1186
|
-
if (!(3 === (3 & seen0))) {
|
|
1187
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_6().d2e_1);
|
|
1188
|
-
}
|
|
1189
|
-
$this.s2c_1 = type;
|
|
1190
|
-
$this.t2c_1 = logicalType;
|
|
1191
|
-
if (0 === (seen0 & 4))
|
|
1192
|
-
$this.u2c_1 = null;
|
|
1193
|
-
else
|
|
1194
|
-
$this.u2c_1 = precision;
|
|
1195
|
-
if (0 === (seen0 & 8))
|
|
1196
|
-
$this.v2c_1 = null;
|
|
1197
|
-
else
|
|
1198
|
-
$this.v2c_1 = scale;
|
|
1199
|
-
return $this;
|
|
1200
|
-
}
|
|
1201
|
-
function LogicalType_init_$Create$(seen0, type, logicalType, precision, scale, serializationConstructorMarker) {
|
|
1202
|
-
return LogicalType_init_$Init$(seen0, type, logicalType, precision, scale, serializationConstructorMarker, objectCreate(protoOf(LogicalType)));
|
|
1203
|
-
}
|
|
1204
|
-
function Field_0() {
|
|
1205
|
-
}
|
|
1206
|
-
protoOf(Field_0).toString = function () {
|
|
1207
|
-
return 'Field(name=' + this.h2d_1 + ', type=' + this.i2d_1.toString() + ', doc=' + this.j2d_1 + ', default=' + this.k2d_1 + ')';
|
|
1208
|
-
};
|
|
1209
|
-
protoOf(Field_0).hashCode = function () {
|
|
1210
|
-
var result = getStringHashCode(this.h2d_1);
|
|
1211
|
-
result = imul(result, 31) + this.i2d_1.hashCode() | 0;
|
|
1212
|
-
result = imul(result, 31) + (this.j2d_1 == null ? 0 : getStringHashCode(this.j2d_1)) | 0;
|
|
1213
|
-
result = imul(result, 31) + (this.k2d_1 == null ? 0 : getStringHashCode(this.k2d_1)) | 0;
|
|
1214
|
-
return result;
|
|
1215
|
-
};
|
|
1216
|
-
protoOf(Field_0).equals = function (other) {
|
|
1217
|
-
if (this === other)
|
|
1218
|
-
return true;
|
|
1219
|
-
if (!(other instanceof Field_0))
|
|
1220
|
-
return false;
|
|
1221
|
-
var tmp0_other_with_cast = other instanceof Field_0 ? other : THROW_CCE();
|
|
1222
|
-
if (!(this.h2d_1 === tmp0_other_with_cast.h2d_1))
|
|
1223
|
-
return false;
|
|
1224
|
-
if (!this.i2d_1.equals(tmp0_other_with_cast.i2d_1))
|
|
1225
|
-
return false;
|
|
1226
|
-
if (!(this.j2d_1 == tmp0_other_with_cast.j2d_1))
|
|
1227
|
-
return false;
|
|
1228
|
-
if (!(this.k2d_1 == tmp0_other_with_cast.k2d_1))
|
|
1229
|
-
return false;
|
|
1230
|
-
return true;
|
|
1231
|
-
};
|
|
1232
|
-
function TypeList(type) {
|
|
1233
|
-
AbstractList.call(this);
|
|
1234
|
-
this.f2e_1 = toList(type);
|
|
1235
|
-
this.g2e_1 = this.f2e_1.j();
|
|
1236
|
-
}
|
|
1237
|
-
protoOf(TypeList).j = function () {
|
|
1238
|
-
return this.g2e_1;
|
|
1239
|
-
};
|
|
1240
|
-
protoOf(TypeList).k = function (index) {
|
|
1241
|
-
return this.f2e_1.k(index);
|
|
1242
|
-
};
|
|
1243
|
-
function Type_0() {
|
|
1244
|
-
}
|
|
1245
|
-
function SimpleType(value) {
|
|
1246
|
-
this.n2c_1 = value;
|
|
1247
|
-
}
|
|
1248
|
-
protoOf(SimpleType).toString = function () {
|
|
1249
|
-
return 'SimpleType(value=' + this.n2c_1 + ')';
|
|
1250
|
-
};
|
|
1251
|
-
protoOf(SimpleType).hashCode = function () {
|
|
1252
|
-
return getStringHashCode(this.n2c_1);
|
|
1253
|
-
};
|
|
1254
|
-
protoOf(SimpleType).equals = function (other) {
|
|
1255
|
-
if (this === other)
|
|
1256
|
-
return true;
|
|
1257
|
-
if (!(other instanceof SimpleType))
|
|
1258
|
-
return false;
|
|
1259
|
-
var tmp0_other_with_cast = other instanceof SimpleType ? other : THROW_CCE();
|
|
1260
|
-
if (!(this.n2c_1 === tmp0_other_with_cast.n2c_1))
|
|
1261
|
-
return false;
|
|
1262
|
-
return true;
|
|
1263
|
-
};
|
|
1264
|
-
function RecordType() {
|
|
1265
|
-
}
|
|
1266
|
-
protoOf(RecordType).toString = function () {
|
|
1267
|
-
return 'RecordType(type=' + this.a2d_1 + ', name=' + this.b2d_1 + ', namespace=' + this.c2d_1 + ', fields=' + toString(this.d2d_1) + ', doc=' + this.e2d_1 + ')';
|
|
1268
|
-
};
|
|
1269
|
-
protoOf(RecordType).hashCode = function () {
|
|
1270
|
-
var result = getStringHashCode(this.a2d_1);
|
|
1271
|
-
result = imul(result, 31) + getStringHashCode(this.b2d_1) | 0;
|
|
1272
|
-
result = imul(result, 31) + (this.c2d_1 == null ? 0 : getStringHashCode(this.c2d_1)) | 0;
|
|
1273
|
-
result = imul(result, 31) + hashCode(this.d2d_1) | 0;
|
|
1274
|
-
result = imul(result, 31) + (this.e2d_1 == null ? 0 : getStringHashCode(this.e2d_1)) | 0;
|
|
1275
|
-
return result;
|
|
1276
|
-
};
|
|
1277
|
-
protoOf(RecordType).equals = function (other) {
|
|
1278
|
-
if (this === other)
|
|
1279
|
-
return true;
|
|
1280
|
-
if (!(other instanceof RecordType))
|
|
1281
|
-
return false;
|
|
1282
|
-
var tmp0_other_with_cast = other instanceof RecordType ? other : THROW_CCE();
|
|
1283
|
-
if (!(this.a2d_1 === tmp0_other_with_cast.a2d_1))
|
|
1284
|
-
return false;
|
|
1285
|
-
if (!(this.b2d_1 === tmp0_other_with_cast.b2d_1))
|
|
1286
|
-
return false;
|
|
1287
|
-
if (!(this.c2d_1 == tmp0_other_with_cast.c2d_1))
|
|
1288
|
-
return false;
|
|
1289
|
-
if (!equals(this.d2d_1, tmp0_other_with_cast.d2d_1))
|
|
1290
|
-
return false;
|
|
1291
|
-
if (!(this.e2d_1 == tmp0_other_with_cast.e2d_1))
|
|
1292
|
-
return false;
|
|
1293
|
-
return true;
|
|
1294
|
-
};
|
|
1295
|
-
function ArrayType() {
|
|
1296
|
-
}
|
|
1297
|
-
protoOf(ArrayType).toString = function () {
|
|
1298
|
-
return 'ArrayType(type=' + this.f2d_1 + ', items=' + toString(this.g2d_1) + ')';
|
|
1299
|
-
};
|
|
1300
|
-
protoOf(ArrayType).hashCode = function () {
|
|
1301
|
-
var result = getStringHashCode(this.f2d_1);
|
|
1302
|
-
result = imul(result, 31) + hashCode(this.g2d_1) | 0;
|
|
1303
|
-
return result;
|
|
1304
|
-
};
|
|
1305
|
-
protoOf(ArrayType).equals = function (other) {
|
|
1306
|
-
if (this === other)
|
|
1307
|
-
return true;
|
|
1308
|
-
if (!(other instanceof ArrayType))
|
|
1309
|
-
return false;
|
|
1310
|
-
var tmp0_other_with_cast = other instanceof ArrayType ? other : THROW_CCE();
|
|
1311
|
-
if (!(this.f2d_1 === tmp0_other_with_cast.f2d_1))
|
|
1312
|
-
return false;
|
|
1313
|
-
if (!equals(this.g2d_1, tmp0_other_with_cast.g2d_1))
|
|
1314
|
-
return false;
|
|
1315
|
-
return true;
|
|
1316
|
-
};
|
|
1317
|
-
function MapType() {
|
|
1318
|
-
}
|
|
1319
|
-
protoOf(MapType).toString = function () {
|
|
1320
|
-
return 'MapType(type=' + this.q2c_1 + ', values=' + toString(this.r2c_1) + ')';
|
|
1321
|
-
};
|
|
1322
|
-
protoOf(MapType).hashCode = function () {
|
|
1323
|
-
var result = getStringHashCode(this.q2c_1);
|
|
1324
|
-
result = imul(result, 31) + hashCode(this.r2c_1) | 0;
|
|
1325
|
-
return result;
|
|
1326
|
-
};
|
|
1327
|
-
protoOf(MapType).equals = function (other) {
|
|
1328
|
-
if (this === other)
|
|
1329
|
-
return true;
|
|
1330
|
-
if (!(other instanceof MapType))
|
|
1331
|
-
return false;
|
|
1332
|
-
var tmp0_other_with_cast = other instanceof MapType ? other : THROW_CCE();
|
|
1333
|
-
if (!(this.q2c_1 === tmp0_other_with_cast.q2c_1))
|
|
1334
|
-
return false;
|
|
1335
|
-
if (!equals(this.r2c_1, tmp0_other_with_cast.r2c_1))
|
|
1336
|
-
return false;
|
|
1337
|
-
return true;
|
|
1338
|
-
};
|
|
1339
|
-
function EnumType() {
|
|
1340
|
-
}
|
|
1341
|
-
protoOf(EnumType).toString = function () {
|
|
1342
|
-
return 'EnumType(type=' + this.w2c_1 + ', name=' + this.x2c_1 + ', doc=' + this.y2c_1 + ', symbols=' + toString(this.z2c_1) + ')';
|
|
1343
|
-
};
|
|
1344
|
-
protoOf(EnumType).hashCode = function () {
|
|
1345
|
-
var result = getStringHashCode(this.w2c_1);
|
|
1346
|
-
result = imul(result, 31) + getStringHashCode(this.x2c_1) | 0;
|
|
1347
|
-
result = imul(result, 31) + (this.y2c_1 == null ? 0 : getStringHashCode(this.y2c_1)) | 0;
|
|
1348
|
-
result = imul(result, 31) + hashCode(this.z2c_1) | 0;
|
|
1349
|
-
return result;
|
|
1350
|
-
};
|
|
1351
|
-
protoOf(EnumType).equals = function (other) {
|
|
1352
|
-
if (this === other)
|
|
1353
|
-
return true;
|
|
1354
|
-
if (!(other instanceof EnumType))
|
|
1355
|
-
return false;
|
|
1356
|
-
var tmp0_other_with_cast = other instanceof EnumType ? other : THROW_CCE();
|
|
1357
|
-
if (!(this.w2c_1 === tmp0_other_with_cast.w2c_1))
|
|
1358
|
-
return false;
|
|
1359
|
-
if (!(this.x2c_1 === tmp0_other_with_cast.x2c_1))
|
|
1360
|
-
return false;
|
|
1361
|
-
if (!(this.y2c_1 == tmp0_other_with_cast.y2c_1))
|
|
1362
|
-
return false;
|
|
1363
|
-
if (!equals(this.z2c_1, tmp0_other_with_cast.z2c_1))
|
|
1364
|
-
return false;
|
|
1365
|
-
return true;
|
|
1366
|
-
};
|
|
1367
|
-
function UnionType() {
|
|
1368
|
-
}
|
|
1369
|
-
protoOf(UnionType).toString = function () {
|
|
1370
|
-
return 'UnionType(name=' + this.o2c_1 + ', type=' + this.p2c_1.toString() + ')';
|
|
1371
|
-
};
|
|
1372
|
-
protoOf(UnionType).hashCode = function () {
|
|
1373
|
-
var result = getStringHashCode(this.o2c_1);
|
|
1374
|
-
result = imul(result, 31) + this.p2c_1.hashCode() | 0;
|
|
1375
|
-
return result;
|
|
1376
|
-
};
|
|
1377
|
-
protoOf(UnionType).equals = function (other) {
|
|
1378
|
-
if (this === other)
|
|
1379
|
-
return true;
|
|
1380
|
-
if (!(other instanceof UnionType))
|
|
1381
|
-
return false;
|
|
1382
|
-
var tmp0_other_with_cast = other instanceof UnionType ? other : THROW_CCE();
|
|
1383
|
-
if (!(this.o2c_1 === tmp0_other_with_cast.o2c_1))
|
|
1384
|
-
return false;
|
|
1385
|
-
if (!this.p2c_1.equals(tmp0_other_with_cast.p2c_1))
|
|
1386
|
-
return false;
|
|
1387
|
-
return true;
|
|
1388
|
-
};
|
|
1389
|
-
function LogicalType() {
|
|
1390
|
-
}
|
|
1391
|
-
protoOf(LogicalType).toString = function () {
|
|
1392
|
-
return 'LogicalType(type=' + this.s2c_1 + ', logicalType=' + this.t2c_1 + ', precision=' + this.u2c_1 + ', scale=' + this.v2c_1 + ')';
|
|
1393
|
-
};
|
|
1394
|
-
protoOf(LogicalType).hashCode = function () {
|
|
1395
|
-
var result = getStringHashCode(this.s2c_1);
|
|
1396
|
-
result = imul(result, 31) + getStringHashCode(this.t2c_1) | 0;
|
|
1397
|
-
result = imul(result, 31) + (this.u2c_1 == null ? 0 : this.u2c_1) | 0;
|
|
1398
|
-
result = imul(result, 31) + (this.v2c_1 == null ? 0 : this.v2c_1) | 0;
|
|
1399
|
-
return result;
|
|
1400
|
-
};
|
|
1401
|
-
protoOf(LogicalType).equals = function (other) {
|
|
1402
|
-
if (this === other)
|
|
1403
|
-
return true;
|
|
1404
|
-
if (!(other instanceof LogicalType))
|
|
1405
|
-
return false;
|
|
1406
|
-
var tmp0_other_with_cast = other instanceof LogicalType ? other : THROW_CCE();
|
|
1407
|
-
if (!(this.s2c_1 === tmp0_other_with_cast.s2c_1))
|
|
1408
|
-
return false;
|
|
1409
|
-
if (!(this.t2c_1 === tmp0_other_with_cast.t2c_1))
|
|
1410
|
-
return false;
|
|
1411
|
-
if (!(this.u2c_1 == tmp0_other_with_cast.u2c_1))
|
|
1412
|
-
return false;
|
|
1413
|
-
if (!(this.v2c_1 == tmp0_other_with_cast.v2c_1))
|
|
1414
|
-
return false;
|
|
1415
|
-
return true;
|
|
1416
|
-
};
|
|
1417
|
-
function TypeListSerializer() {
|
|
1418
|
-
TypeListSerializer_instance = this;
|
|
1419
|
-
this.h2e_1 = buildSerialDescriptor('TypeListSerializer', SEALED_getInstance(), []);
|
|
1420
|
-
}
|
|
1421
|
-
protoOf(TypeListSerializer).vk = function () {
|
|
1422
|
-
return this.h2e_1;
|
|
1423
|
-
};
|
|
1424
|
-
protoOf(TypeListSerializer).i2e = function (encoder, value) {
|
|
1425
|
-
if (value.g2e_1 > 1) {
|
|
1426
|
-
encoder.op(ListSerializer(Companion_instance_0.m17()), value);
|
|
1427
|
-
} else {
|
|
1428
|
-
encoder.op(Companion_instance_0.m17(), first(value));
|
|
1429
|
-
}
|
|
1430
|
-
};
|
|
1431
|
-
protoOf(TypeListSerializer).wk = function (encoder, value) {
|
|
1432
|
-
return this.i2e(encoder, value instanceof TypeList ? value : THROW_CCE());
|
|
1433
|
-
};
|
|
1434
|
-
protoOf(TypeListSerializer).xk = function (decoder) {
|
|
1435
|
-
var tmp0_elvis_lhs = isInterface(decoder, JsonDecoder) ? decoder : null;
|
|
1436
|
-
var tmp;
|
|
1437
|
-
if (tmp0_elvis_lhs == null) {
|
|
1438
|
-
throw SerializationException_init_$Create$('This class can be loaded only by Json');
|
|
1439
|
-
} else {
|
|
1440
|
-
tmp = tmp0_elvis_lhs;
|
|
1441
|
-
}
|
|
1442
|
-
var input = tmp;
|
|
1443
|
-
var element = input.d17();
|
|
1444
|
-
var tmp_0;
|
|
1445
|
-
if (element instanceof JsonPrimitive) {
|
|
1446
|
-
tmp_0 = new TypeList([input.c17().c15(Companion_instance_0.m17(), element)]);
|
|
1447
|
-
} else {
|
|
1448
|
-
if (element instanceof JsonArray) {
|
|
1449
|
-
// Inline function 'kotlin.collections.toTypedArray' call
|
|
1450
|
-
// Inline function 'kotlin.collections.map' call
|
|
1451
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
1452
|
-
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(element, 10));
|
|
1453
|
-
var tmp0_iterator = element.g();
|
|
1454
|
-
while (tmp0_iterator.h()) {
|
|
1455
|
-
var item = tmp0_iterator.i();
|
|
1456
|
-
// Inline function 'community.flock.wirespec.converter.avro.TypeListSerializer.deserialize.<anonymous>' call
|
|
1457
|
-
var tmp$ret$0 = input.c17().c15(Companion_instance_0.m17(), item);
|
|
1458
|
-
destination.e(tmp$ret$0);
|
|
1459
|
-
}
|
|
1460
|
-
var tmp$ret$3 = copyToArray(destination);
|
|
1461
|
-
tmp_0 = new TypeList(tmp$ret$3.slice());
|
|
1462
|
-
} else {
|
|
1463
|
-
if (element instanceof JsonObject) {
|
|
1464
|
-
tmp_0 = new TypeList([input.c17().c15(Companion_instance_0.m17(), element)]);
|
|
1465
|
-
} else {
|
|
1466
|
-
noWhenBranchMatchedException();
|
|
1467
|
-
}
|
|
1468
|
-
}
|
|
1469
|
-
}
|
|
1470
|
-
return tmp_0;
|
|
1471
|
-
};
|
|
1472
|
-
var TypeListSerializer_instance;
|
|
1473
|
-
function TypeListSerializer_getInstance() {
|
|
1474
|
-
if (TypeListSerializer_instance == null)
|
|
1475
|
-
new TypeListSerializer();
|
|
1476
|
-
return TypeListSerializer_instance;
|
|
1477
|
-
}
|
|
1478
|
-
function TypeSerializer() {
|
|
1479
|
-
TypeSerializer_instance = this;
|
|
1480
|
-
this.j2e_1 = buildSerialDescriptor('TypeSerializer', SEALED_getInstance(), []);
|
|
1481
|
-
}
|
|
1482
|
-
protoOf(TypeSerializer).vk = function () {
|
|
1483
|
-
return this.j2e_1;
|
|
1484
|
-
};
|
|
1485
|
-
protoOf(TypeSerializer).k2e = function (encoder, value) {
|
|
1486
|
-
if (value instanceof SimpleType) {
|
|
1487
|
-
encoder.op(serializer(StringCompanionObject_instance), value.n2c_1);
|
|
1488
|
-
} else {
|
|
1489
|
-
if (value instanceof RecordType) {
|
|
1490
|
-
encoder.op(Companion_getInstance_2().m17(), value);
|
|
1491
|
-
} else {
|
|
1492
|
-
if (value instanceof ArrayType) {
|
|
1493
|
-
encoder.op(Companion_instance_3.m17(), value);
|
|
1494
|
-
} else {
|
|
1495
|
-
if (value instanceof MapType) {
|
|
1496
|
-
encoder.op(Companion_instance_4.m17(), value);
|
|
1497
|
-
} else {
|
|
1498
|
-
if (value instanceof EnumType) {
|
|
1499
|
-
encoder.op(Companion_getInstance_5().m17(), value);
|
|
1500
|
-
} else {
|
|
1501
|
-
if (value instanceof UnionType) {
|
|
1502
|
-
encoder.op(Companion_instance_6.m17(), value);
|
|
1503
|
-
} else {
|
|
1504
|
-
if (value instanceof LogicalType) {
|
|
1505
|
-
// Inline function 'kotlin.TODO' call
|
|
1506
|
-
throw new NotImplementedError();
|
|
1507
|
-
} else {
|
|
1508
|
-
noWhenBranchMatchedException();
|
|
1509
|
-
}
|
|
1510
|
-
}
|
|
1511
|
-
}
|
|
1512
|
-
}
|
|
1513
|
-
}
|
|
1514
|
-
}
|
|
1515
|
-
}
|
|
1516
|
-
};
|
|
1517
|
-
protoOf(TypeSerializer).wk = function (encoder, value) {
|
|
1518
|
-
return this.k2e(encoder, (!(value == null) ? isInterface(value, Type_0) : false) ? value : THROW_CCE());
|
|
1519
|
-
};
|
|
1520
|
-
protoOf(TypeSerializer).xk = function (decoder) {
|
|
1521
|
-
var tmp0_elvis_lhs = isInterface(decoder, JsonDecoder) ? decoder : null;
|
|
1522
|
-
var tmp;
|
|
1523
|
-
if (tmp0_elvis_lhs == null) {
|
|
1524
|
-
throw SerializationException_init_$Create$('This class can be loaded only by Json');
|
|
1525
|
-
} else {
|
|
1526
|
-
tmp = tmp0_elvis_lhs;
|
|
1527
|
-
}
|
|
1528
|
-
var input = tmp;
|
|
1529
|
-
var element = input.d17();
|
|
1530
|
-
var tmp_0;
|
|
1531
|
-
if (element instanceof JsonObject) {
|
|
1532
|
-
var tmp_1;
|
|
1533
|
-
if (element.g17('items')) {
|
|
1534
|
-
tmp_1 = input.c17().c15(Companion_instance_3.m17(), element);
|
|
1535
|
-
} else if (element.g17('fields')) {
|
|
1536
|
-
tmp_1 = input.c17().c15(Companion_getInstance_2().m17(), element);
|
|
1537
|
-
} else if (element.g17('symbols')) {
|
|
1538
|
-
tmp_1 = input.c17().c15(Companion_getInstance_5().m17(), element);
|
|
1539
|
-
} else if (element.g17('logicalType')) {
|
|
1540
|
-
tmp_1 = input.c17().c15(Companion_instance_7.m17(), element);
|
|
1541
|
-
} else {
|
|
1542
|
-
var reason = 'Unknown object type: ' + element.toString();
|
|
1543
|
-
throw new NotImplementedError('An operation is not implemented: ' + reason);
|
|
1544
|
-
}
|
|
1545
|
-
tmp_0 = tmp_1;
|
|
1546
|
-
} else {
|
|
1547
|
-
if (element instanceof JsonPrimitive) {
|
|
1548
|
-
tmp_0 = new SimpleType(element.e17());
|
|
1549
|
-
} else {
|
|
1550
|
-
if (element instanceof JsonArray) {
|
|
1551
|
-
var reason_0 = 'Type can never be an array';
|
|
1552
|
-
throw new NotImplementedError('An operation is not implemented: ' + reason_0);
|
|
1553
|
-
} else {
|
|
1554
|
-
noWhenBranchMatchedException();
|
|
1555
|
-
}
|
|
1556
|
-
}
|
|
1557
|
-
}
|
|
1558
|
-
return tmp_0;
|
|
1559
|
-
};
|
|
1560
|
-
var TypeSerializer_instance;
|
|
1561
|
-
function TypeSerializer_getInstance() {
|
|
1562
|
-
if (TypeSerializer_instance == null)
|
|
1563
|
-
new TypeSerializer();
|
|
1564
|
-
return TypeSerializer_instance;
|
|
1565
|
-
}
|
|
1566
|
-
function AvroParser$parse$lambda($this$Json) {
|
|
1567
|
-
$this$Json.u15_1 = true;
|
|
1568
|
-
$this$Json.v15_1 = true;
|
|
1569
|
-
return Unit_instance;
|
|
1570
|
-
}
|
|
1571
|
-
function AvroParser() {
|
|
1572
|
-
}
|
|
1573
|
-
protoOf(AvroParser).t2a = function (schemaContent, strict) {
|
|
1574
|
-
var json = Json(VOID, AvroParser$parse$lambda);
|
|
1575
|
-
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
1576
|
-
// Inline function 'kotlinx.serialization.serializer' call
|
|
1577
|
-
var this_0 = json.lo();
|
|
1578
|
-
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
1579
|
-
var this_1 = serializer_0(this_0, createKType(getKClass(Type_0), arrayOf([]), false));
|
|
1580
|
-
var tmp$ret$1 = isInterface(this_1, KSerializer) ? this_1 : THROW_CCE();
|
|
1581
|
-
var avro = json.b15(tmp$ret$1, schemaContent);
|
|
1582
|
-
var tmp = AvroConverter_getInstance().m2d(avro);
|
|
1583
|
-
var tmp_0;
|
|
1584
|
-
if (avro instanceof RecordType) {
|
|
1585
|
-
tmp_0 = new Channel(null, new DefinitionIdentifier(avro.b2d_1), new Custom(avro.b2d_1, false));
|
|
1586
|
-
} else {
|
|
1587
|
-
if (avro instanceof ArrayType) {
|
|
1588
|
-
throw new NotImplementedError();
|
|
1589
|
-
} else {
|
|
1590
|
-
if (avro instanceof EnumType) {
|
|
1591
|
-
throw new NotImplementedError();
|
|
1592
|
-
} else {
|
|
1593
|
-
if (avro instanceof SimpleType) {
|
|
1594
|
-
throw new NotImplementedError();
|
|
1595
|
-
} else {
|
|
1596
|
-
if (avro instanceof LogicalType) {
|
|
1597
|
-
throw new NotImplementedError();
|
|
1598
|
-
} else {
|
|
1599
|
-
if (avro instanceof MapType) {
|
|
1600
|
-
throw new NotImplementedError();
|
|
1601
|
-
} else {
|
|
1602
|
-
if (avro instanceof UnionType) {
|
|
1603
|
-
throw new NotImplementedError();
|
|
1604
|
-
} else {
|
|
1605
|
-
noWhenBranchMatchedException();
|
|
1606
|
-
}
|
|
1607
|
-
}
|
|
1608
|
-
}
|
|
1609
|
-
}
|
|
1610
|
-
}
|
|
1611
|
-
}
|
|
1612
|
-
}
|
|
1613
|
-
return plus_0(tmp, tmp_0);
|
|
1614
|
-
};
|
|
1615
|
-
protoOf(AvroParser).l2e = function (schemaContent, strict, $super) {
|
|
1616
|
-
strict = strict === VOID ? true : strict;
|
|
1617
|
-
return $super === VOID ? this.t2a(schemaContent, strict) : $super.t2a.call(this, schemaContent, strict);
|
|
1618
|
-
};
|
|
1619
|
-
var AvroParser_instance;
|
|
1620
|
-
function AvroParser_getInstance() {
|
|
1621
|
-
return AvroParser_instance;
|
|
1622
|
-
}
|
|
1623
|
-
//region block: post-declaration
|
|
1624
|
-
protoOf($serializer).aw = typeParametersSerializers;
|
|
1625
|
-
protoOf($serializer_0).aw = typeParametersSerializers;
|
|
1626
|
-
protoOf($serializer_1).aw = typeParametersSerializers;
|
|
1627
|
-
protoOf($serializer_2).aw = typeParametersSerializers;
|
|
1628
|
-
protoOf($serializer_3).aw = typeParametersSerializers;
|
|
1629
|
-
protoOf($serializer_4).aw = typeParametersSerializers;
|
|
1630
|
-
protoOf($serializer_5).aw = typeParametersSerializers;
|
|
1631
|
-
protoOf($serializer_6).aw = typeParametersSerializers;
|
|
1632
|
-
//endregion
|
|
1633
|
-
//region block: init
|
|
1634
|
-
Companion_instance = new Companion();
|
|
1635
|
-
Companion_instance_0 = new Companion_0();
|
|
1636
|
-
Companion_instance_1 = new Companion_1();
|
|
1637
|
-
Companion_instance_3 = new Companion_3();
|
|
1638
|
-
Companion_instance_4 = new Companion_4();
|
|
1639
|
-
Companion_instance_6 = new Companion_6();
|
|
1640
|
-
Companion_instance_7 = new Companion_7();
|
|
1641
|
-
AvroParser_instance = new AvroParser();
|
|
1642
|
-
//endregion
|
|
1643
|
-
//region block: exports
|
|
1644
|
-
_.$_$ = _.$_$ || {};
|
|
1645
|
-
_.$_$.a = AvroParser_instance;
|
|
1646
|
-
//endregion
|
|
1647
|
-
return _;
|
|
1648
|
-
}));
|
|
1649
|
-
|
|
1650
|
-
//# sourceMappingURL=wirespec-src-converter-avro.js.map
|