@flock/wirespec 0.11.9 → 0.12.1

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.
Files changed (100) hide show
  1. package/arrow-arrow-annotations.mjs +4 -0
  2. package/{kotlinx-io-kotlinx-io-bytestring.js.map → arrow-arrow-annotations.mjs.map} +1 -1
  3. package/arrow-arrow-atomic.mjs +43 -0
  4. package/arrow-arrow-atomic.mjs.map +1 -0
  5. package/arrow-arrow-continuations.mjs +18 -0
  6. package/{kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js.map → arrow-arrow-continuations.mjs.map} +1 -1
  7. package/arrow-arrow-core.mjs +532 -0
  8. package/arrow-arrow-core.mjs.map +1 -0
  9. package/clikt-clikt.mjs +6648 -0
  10. package/clikt-clikt.mjs.map +1 -0
  11. package/colormath-root-colormath.mjs +1696 -0
  12. package/colormath-root-colormath.mjs.map +1 -0
  13. package/kotlin-kotlin-stdlib.mjs +13106 -0
  14. package/kotlin-kotlin-stdlib.mjs.map +1 -0
  15. package/kotlin-openapi-bindings.mjs +13769 -0
  16. package/kotlin-openapi-bindings.mjs.map +1 -0
  17. package/kotlin-rgxgen.mjs +4298 -0
  18. package/kotlin-rgxgen.mjs.map +1 -0
  19. package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.mjs +4 -0
  20. package/{arrow-arrow-annotations.js.map → kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.mjs.map} +1 -1
  21. package/kotlinx-io-kotlinx-io-bytestring.mjs +4 -0
  22. package/{kotlin-kotlin-test.js.map → kotlinx-io-kotlinx-io-bytestring.mjs.map} +1 -1
  23. package/kotlinx-io-kotlinx-io-core.mjs +2201 -0
  24. package/kotlinx-io-kotlinx-io-core.mjs.map +1 -0
  25. package/kotlinx-serialization-kotlinx-serialization-core.mjs +5880 -0
  26. package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -0
  27. package/kotlinx-serialization-kotlinx-serialization-json.mjs +5109 -0
  28. package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -0
  29. package/markdown.mjs +6753 -0
  30. package/markdown.mjs.map +1 -0
  31. package/mordant-mordant.mjs +11839 -0
  32. package/mordant-mordant.mjs.map +1 -0
  33. package/package.json +4 -6
  34. package/wirespec-bin.mjs +18 -0
  35. package/wirespec-src-compiler-core.mjs +8313 -0
  36. package/wirespec-src-compiler-core.mjs.map +1 -0
  37. package/wirespec-src-compiler-lib.mjs +2565 -0
  38. package/wirespec-src-compiler-lib.mjs.map +1 -0
  39. package/wirespec-src-converter-avro.mjs +1933 -0
  40. package/wirespec-src-converter-avro.mjs.map +1 -0
  41. package/wirespec-src-converter-openapi.mjs +5301 -0
  42. package/wirespec-src-converter-openapi.mjs.map +1 -0
  43. package/wirespec-src-plugin-arguments.mjs +587 -0
  44. package/wirespec-src-plugin-arguments.mjs.map +1 -0
  45. package/wirespec-src-plugin-cli.mjs +1487 -0
  46. package/wirespec-src-plugin-cli.mjs.map +1 -0
  47. package/wirespec-src-plugin-npm.d.ts +485 -466
  48. package/wirespec-src-plugin-npm.mjs +622 -0
  49. package/wirespec-src-plugin-npm.mjs.map +1 -0
  50. package/wirespec-src-tools-generator.mjs +284 -0
  51. package/wirespec-src-tools-generator.mjs.map +1 -0
  52. package/arrow-arrow-annotations.js +0 -15
  53. package/arrow-arrow-atomic.js +0 -55
  54. package/arrow-arrow-atomic.js.map +0 -1
  55. package/arrow-arrow-continuations.js +0 -30
  56. package/arrow-arrow-continuations.js.map +0 -1
  57. package/arrow-arrow-core.js +0 -410
  58. package/arrow-arrow-core.js.map +0 -1
  59. package/clikt-clikt.js +0 -6713
  60. package/clikt-clikt.js.map +0 -1
  61. package/colormath-root-colormath.js +0 -1727
  62. package/colormath-root-colormath.js.map +0 -1
  63. package/kotlin-kotlin-stdlib.js +0 -13263
  64. package/kotlin-kotlin-stdlib.js.map +0 -1
  65. package/kotlin-kotlin-test.js +0 -15
  66. package/kotlin-openapi-bindings.js +0 -13787
  67. package/kotlin-openapi-bindings.js.map +0 -1
  68. package/kotlin-rgxgen.js +0 -4315
  69. package/kotlin-rgxgen.js.map +0 -1
  70. package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +0 -15
  71. package/kotlinx-io-kotlinx-io-bytestring.js +0 -15
  72. package/kotlinx-io-kotlinx-io-core.js +0 -2219
  73. package/kotlinx-io-kotlinx-io-core.js.map +0 -1
  74. package/kotlinx-serialization-kotlinx-serialization-core.js +0 -5914
  75. package/kotlinx-serialization-kotlinx-serialization-core.js.map +0 -1
  76. package/kotlinx-serialization-kotlinx-serialization-json.js +0 -5126
  77. package/kotlinx-serialization-kotlinx-serialization-json.js.map +0 -1
  78. package/markdown.js +0 -6768
  79. package/markdown.js.map +0 -1
  80. package/mordant-mordant.js +0 -11981
  81. package/mordant-mordant.js.map +0 -1
  82. package/resources-library.js +0 -15
  83. package/resources-library.js.map +0 -1
  84. package/wirespec-bin.js +0 -3
  85. package/wirespec-src-compiler-core.js +0 -7894
  86. package/wirespec-src-compiler-core.js.map +0 -1
  87. package/wirespec-src-compiler-lib.js +0 -2603
  88. package/wirespec-src-compiler-lib.js.map +0 -1
  89. package/wirespec-src-converter-avro.js +0 -1650
  90. package/wirespec-src-converter-avro.js.map +0 -1
  91. package/wirespec-src-converter-openapi.js +0 -5366
  92. package/wirespec-src-converter-openapi.js.map +0 -1
  93. package/wirespec-src-plugin-arguments.js +0 -640
  94. package/wirespec-src-plugin-arguments.js.map +0 -1
  95. package/wirespec-src-plugin-cli.js +0 -1222
  96. package/wirespec-src-plugin-cli.js.map +0 -1
  97. package/wirespec-src-plugin-npm.js +0 -480
  98. package/wirespec-src-plugin-npm.js.map +0 -1
  99. package/wirespec-src-tools-generator.js +0 -306
  100. package/wirespec-src-tools-generator.js.map +0 -1
@@ -1,2603 +0,0 @@
1
- (function (factory) {
2
- if (typeof define === 'function' && define.amd)
3
- define(['exports', './kotlin-kotlin-stdlib.js', './wirespec-src-compiler-core.js', './arrow-arrow-core.js'], factory);
4
- else if (typeof exports === 'object')
5
- factory(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./wirespec-src-compiler-core.js'), require('./arrow-arrow-core.js'));
6
- else {
7
- if (typeof globalThis['kotlin-kotlin-stdlib'] === 'undefined') {
8
- throw new Error("Error loading module 'wirespec-src-compiler-lib'. Its dependency 'kotlin-kotlin-stdlib' was not found. Please, check whether 'kotlin-kotlin-stdlib' is loaded prior to 'wirespec-src-compiler-lib'.");
9
- }
10
- if (typeof globalThis['wirespec-src-compiler-core'] === 'undefined') {
11
- throw new Error("Error loading module 'wirespec-src-compiler-lib'. Its dependency 'wirespec-src-compiler-core' was not found. Please, check whether 'wirespec-src-compiler-core' is loaded prior to 'wirespec-src-compiler-lib'.");
12
- }
13
- if (typeof globalThis['arrow-arrow-core'] === 'undefined') {
14
- throw new Error("Error loading module 'wirespec-src-compiler-lib'. Its dependency 'arrow-arrow-core' was not found. Please, check whether 'arrow-arrow-core' is loaded prior to 'wirespec-src-compiler-lib'.");
15
- }
16
- globalThis['wirespec-src-compiler-lib'] = factory(typeof globalThis['wirespec-src-compiler-lib'] === 'undefined' ? {} : globalThis['wirespec-src-compiler-lib'], globalThis['kotlin-kotlin-stdlib'], globalThis['wirespec-src-compiler-core'], globalThis['arrow-arrow-core']);
17
- }
18
- }(function (_, kotlin_kotlin, kotlin_community_flock_wirespec_compiler_core, kotlin_io_arrow_kt_arrow_core) {
19
- 'use strict';
20
- //region block: imports
21
- var imul = Math.imul;
22
- var protoOf = kotlin_kotlin.$_$.cb;
23
- var initMetadataForInterface = kotlin_kotlin.$_$.ga;
24
- var VOID = kotlin_kotlin.$_$.g;
25
- var getStringHashCode = kotlin_kotlin.$_$.ba;
26
- var THROW_CCE = kotlin_kotlin.$_$.of;
27
- var defineProp = kotlin_kotlin.$_$.v9;
28
- var initMetadataForClass = kotlin_kotlin.$_$.da;
29
- var toString = kotlin_kotlin.$_$.gb;
30
- var hashCode = kotlin_kotlin.$_$.ca;
31
- var equals = kotlin_kotlin.$_$.w9;
32
- var THROW_IAE = kotlin_kotlin.$_$.pf;
33
- var Unit_instance = kotlin_kotlin.$_$.l4;
34
- var Enum = kotlin_kotlin.$_$.ef;
35
- var getBooleanHashCode = kotlin_kotlin.$_$.y9;
36
- var toString_0 = kotlin_kotlin.$_$.mg;
37
- var noWhenBranchMatchedException = kotlin_kotlin.$_$.kg;
38
- var _Comment___get_value__impl__8r3pla = kotlin_community_flock_wirespec_compiler_core.$_$.j2;
39
- var Comment = kotlin_community_flock_wirespec_compiler_core.$_$.j;
40
- var Channel = kotlin_community_flock_wirespec_compiler_core.$_$.i;
41
- var collectionSizeOrDefault = kotlin_kotlin.$_$.n5;
42
- var ArrayList_init_$Create$ = kotlin_kotlin.$_$.k;
43
- var copyToArray = kotlin_kotlin.$_$.c6;
44
- var Union = kotlin_community_flock_wirespec_compiler_core.$_$.l1;
45
- var Refined = kotlin_community_flock_wirespec_compiler_core.$_$.i1;
46
- var Enum_0 = kotlin_community_flock_wirespec_compiler_core.$_$.t;
47
- var Endpoint = kotlin_community_flock_wirespec_compiler_core.$_$.s;
48
- var Type = kotlin_community_flock_wirespec_compiler_core.$_$.k1;
49
- var Param = kotlin_community_flock_wirespec_compiler_core.$_$.r;
50
- var Literal = kotlin_community_flock_wirespec_compiler_core.$_$.q;
51
- var Iterable = kotlin_community_flock_wirespec_compiler_core.$_$.z;
52
- var Dict = kotlin_community_flock_wirespec_compiler_core.$_$.y;
53
- var Primitive = kotlin_community_flock_wirespec_compiler_core.$_$.f1;
54
- var Custom = kotlin_community_flock_wirespec_compiler_core.$_$.x;
55
- var Unit = kotlin_community_flock_wirespec_compiler_core.$_$.g1;
56
- var Any = kotlin_community_flock_wirespec_compiler_core.$_$.w;
57
- var Companion_instance = kotlin_community_flock_wirespec_compiler_core.$_$.l2;
58
- var DefinitionIdentifier = kotlin_community_flock_wirespec_compiler_core.$_$.k;
59
- var toSet = kotlin_kotlin.$_$.w8;
60
- var Validator = kotlin_community_flock_wirespec_compiler_core.$_$.h1;
61
- var Shape = kotlin_community_flock_wirespec_compiler_core.$_$.j1;
62
- var emptyList = kotlin_kotlin.$_$.g6;
63
- var toSet_0 = kotlin_kotlin.$_$.v8;
64
- var Bytes = kotlin_community_flock_wirespec_compiler_core.$_$.b1;
65
- var Boolean_0 = kotlin_community_flock_wirespec_compiler_core.$_$.a1;
66
- var Number_0 = kotlin_community_flock_wirespec_compiler_core.$_$.d1;
67
- var Integer = kotlin_community_flock_wirespec_compiler_core.$_$.c1;
68
- var String_0 = kotlin_community_flock_wirespec_compiler_core.$_$.e1;
69
- var Method_GET_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.w1;
70
- var Method_POST_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.a2;
71
- var Method_PUT_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.b2;
72
- var Method_DELETE_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.v1;
73
- var Method_OPTIONS_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.y1;
74
- var Method_HEAD_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.x1;
75
- var Method_PATCH_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.z1;
76
- var Method_TRACE_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.c2;
77
- var Field = kotlin_community_flock_wirespec_compiler_core.$_$.v;
78
- var Request = kotlin_community_flock_wirespec_compiler_core.$_$.o;
79
- var Response = kotlin_community_flock_wirespec_compiler_core.$_$.p;
80
- var FieldIdentifier = kotlin_community_flock_wirespec_compiler_core.$_$.u;
81
- var Content = kotlin_community_flock_wirespec_compiler_core.$_$.m;
82
- var String_instance = kotlin_community_flock_wirespec_compiler_core.$_$.o2;
83
- var Boolean_instance = kotlin_community_flock_wirespec_compiler_core.$_$.m2;
84
- var Bytes_instance = kotlin_community_flock_wirespec_compiler_core.$_$.n2;
85
- var Right = kotlin_io_arrow_kt_arrow_core.$_$.e;
86
- var NonEmptyList = kotlin_io_arrow_kt_arrow_core.$_$.f;
87
- var Left = kotlin_io_arrow_kt_arrow_core.$_$.d;
88
- var contentEquals = kotlin_kotlin.$_$.p5;
89
- var contentHashCode = kotlin_kotlin.$_$.r5;
90
- var name = kotlin_community_flock_wirespec_compiler_core.$_$.m1;
91
- //endregion
92
- //region block: pre-declaration
93
- initMetadataForInterface(WsNode, 'WsNode');
94
- initMetadataForClass(WsType, 'WsType', VOID, VOID, [WsNode]);
95
- initMetadataForClass(WsShape, 'WsShape');
96
- initMetadataForClass(WsEndpoint, 'WsEndpoint', VOID, VOID, [WsNode]);
97
- initMetadataForClass(WsEnum, 'WsEnum', VOID, VOID, [WsNode]);
98
- initMetadataForClass(WsUnion, 'WsUnion', VOID, VOID, [WsNode]);
99
- initMetadataForClass(WsChannel, 'WsChannel', VOID, VOID, [WsNode]);
100
- initMetadataForClass(WsRefined, 'WsRefined', VOID, VOID, [WsNode]);
101
- initMetadataForClass(WsMethod, 'WsMethod', VOID, Enum);
102
- initMetadataForInterface(WsSegment, 'WsSegment');
103
- initMetadataForClass(WsLiteral, 'WsLiteral', VOID, VOID, [WsSegment]);
104
- initMetadataForClass(WsParam, 'WsParam', VOID, VOID, [WsSegment]);
105
- initMetadataForClass(Shape_0, 'Shape');
106
- initMetadataForClass(WsField, 'WsField');
107
- initMetadataForInterface(WsIdentifier, 'WsIdentifier');
108
- initMetadataForClass(WsClassIdentifier, 'WsClassIdentifier', VOID, VOID, [WsIdentifier]);
109
- initMetadataForClass(WsFieldIdentifier, 'WsFieldIdentifier', VOID, VOID, [WsIdentifier]);
110
- initMetadataForInterface(WsReference, 'WsReference');
111
- initMetadataForClass(WsAny, 'WsAny', VOID, VOID, [WsReference]);
112
- initMetadataForClass(WsUnit, 'WsUnit', VOID, VOID, [WsReference]);
113
- initMetadataForClass(WsIterable, 'WsIterable', VOID, VOID, [WsReference]);
114
- initMetadataForClass(WsDict, 'WsDict', VOID, VOID, [WsReference]);
115
- initMetadataForClass(WsCustom, 'WsCustom', VOID, VOID, [WsReference]);
116
- initMetadataForClass(WsPrimitive, 'WsPrimitive', VOID, VOID, [WsReference]);
117
- initMetadataForClass(WsPrimitiveType, 'WsPrimitiveType', VOID, Enum);
118
- initMetadataForClass(WsRequest, 'WsRequest');
119
- initMetadataForClass(WsResponse, 'WsResponse');
120
- initMetadataForClass(WsContent, 'WsContent');
121
- initMetadataForClass(WsCompilationResult, 'WsCompilationResult', WsCompilationResult);
122
- initMetadataForClass(WsCompiled, 'WsCompiled');
123
- initMetadataForClass(WsCompiledFile, 'WsCompiledFile');
124
- initMetadataForClass(WsParseResult, 'WsParseResult', WsParseResult);
125
- initMetadataForClass(WsStringResult, 'WsStringResult', WsStringResult);
126
- initMetadataForClass(WsEmitted, 'WsEmitted');
127
- initMetadataForClass(WsTokenResult, 'WsTokenResult', WsTokenResult);
128
- initMetadataForClass(WsTokens, 'WsTokens');
129
- initMetadataForClass(WsToken, 'WsToken');
130
- initMetadataForClass(WsCoordinates, 'WsCoordinates', WsCoordinates);
131
- initMetadataForClass(WsIndex, 'WsIndex', WsIndex);
132
- initMetadataForClass(WsError, 'WsError');
133
- //endregion
134
- function WsNode() {
135
- }
136
- function WsType(identifier, comment, shape) {
137
- this.m2e_1 = identifier;
138
- this.comment = comment;
139
- this.shape = shape;
140
- }
141
- protoOf(WsType).v28 = function () {
142
- return this.m2e_1;
143
- };
144
- protoOf(WsType).n2e = function () {
145
- return this.comment;
146
- };
147
- protoOf(WsType).o2e = function () {
148
- return this.shape;
149
- };
150
- protoOf(WsType).qd = function () {
151
- return this.m2e_1;
152
- };
153
- protoOf(WsType).rd = function () {
154
- return this.comment;
155
- };
156
- protoOf(WsType).ph = function () {
157
- return this.shape;
158
- };
159
- protoOf(WsType).p2e = function (identifier, comment, shape) {
160
- return new WsType(identifier, comment, shape);
161
- };
162
- protoOf(WsType).copy = function (identifier, comment, shape, $super) {
163
- identifier = identifier === VOID ? this.m2e_1 : identifier;
164
- comment = comment === VOID ? this.comment : comment;
165
- shape = shape === VOID ? this.shape : shape;
166
- return this.p2e(identifier, comment, shape);
167
- };
168
- protoOf(WsType).toString = function () {
169
- return 'WsType(identifier=' + this.m2e_1 + ', comment=' + this.comment + ', shape=' + this.shape.toString() + ')';
170
- };
171
- protoOf(WsType).hashCode = function () {
172
- var result = getStringHashCode(this.m2e_1);
173
- result = imul(result, 31) + (this.comment == null ? 0 : getStringHashCode(this.comment)) | 0;
174
- result = imul(result, 31) + this.shape.hashCode() | 0;
175
- return result;
176
- };
177
- protoOf(WsType).equals = function (other) {
178
- if (this === other)
179
- return true;
180
- if (!(other instanceof WsType))
181
- return false;
182
- var tmp0_other_with_cast = other instanceof WsType ? other : THROW_CCE();
183
- if (!(this.m2e_1 === tmp0_other_with_cast.m2e_1))
184
- return false;
185
- if (!(this.comment == tmp0_other_with_cast.comment))
186
- return false;
187
- if (!this.shape.equals(tmp0_other_with_cast.shape))
188
- return false;
189
- return true;
190
- };
191
- function WsShape(value) {
192
- this.value = value;
193
- }
194
- protoOf(WsShape).b1 = function () {
195
- return this.value;
196
- };
197
- protoOf(WsShape).qd = function () {
198
- return this.value;
199
- };
200
- protoOf(WsShape).q2e = function (value) {
201
- return new WsShape(value);
202
- };
203
- protoOf(WsShape).copy = function (value, $super) {
204
- value = value === VOID ? this.value : value;
205
- return this.q2e(value);
206
- };
207
- protoOf(WsShape).toString = function () {
208
- return 'WsShape(value=' + toString(this.value) + ')';
209
- };
210
- protoOf(WsShape).hashCode = function () {
211
- return hashCode(this.value);
212
- };
213
- protoOf(WsShape).equals = function (other) {
214
- if (this === other)
215
- return true;
216
- if (!(other instanceof WsShape))
217
- return false;
218
- var tmp0_other_with_cast = other instanceof WsShape ? other : THROW_CCE();
219
- if (!equals(this.value, tmp0_other_with_cast.value))
220
- return false;
221
- return true;
222
- };
223
- function WsEndpoint(identifier, comment, method, path, query, headers, cookies, requests, responses) {
224
- this.r2e_1 = identifier;
225
- this.comment = comment;
226
- this.method = method;
227
- this.path = path;
228
- this.query = query;
229
- this.headers = headers;
230
- this.cookies = cookies;
231
- this.requests = requests;
232
- this.responses = responses;
233
- }
234
- protoOf(WsEndpoint).v28 = function () {
235
- return this.r2e_1;
236
- };
237
- protoOf(WsEndpoint).n2e = function () {
238
- return this.comment;
239
- };
240
- protoOf(WsEndpoint).s2e = function () {
241
- return this.method;
242
- };
243
- protoOf(WsEndpoint).t2e = function () {
244
- return this.path;
245
- };
246
- protoOf(WsEndpoint).u2e = function () {
247
- return this.query;
248
- };
249
- protoOf(WsEndpoint).v2e = function () {
250
- return this.headers;
251
- };
252
- protoOf(WsEndpoint).w2e = function () {
253
- return this.cookies;
254
- };
255
- protoOf(WsEndpoint).x2e = function () {
256
- return this.requests;
257
- };
258
- protoOf(WsEndpoint).y2e = function () {
259
- return this.responses;
260
- };
261
- protoOf(WsEndpoint).qd = function () {
262
- return this.r2e_1;
263
- };
264
- protoOf(WsEndpoint).rd = function () {
265
- return this.comment;
266
- };
267
- protoOf(WsEndpoint).ph = function () {
268
- return this.method;
269
- };
270
- protoOf(WsEndpoint).z2e = function () {
271
- return this.path;
272
- };
273
- protoOf(WsEndpoint).a2f = function () {
274
- return this.query;
275
- };
276
- protoOf(WsEndpoint).b2f = function () {
277
- return this.headers;
278
- };
279
- protoOf(WsEndpoint).c2f = function () {
280
- return this.cookies;
281
- };
282
- protoOf(WsEndpoint).d2f = function () {
283
- return this.requests;
284
- };
285
- protoOf(WsEndpoint).e2f = function () {
286
- return this.responses;
287
- };
288
- protoOf(WsEndpoint).f2f = function (identifier, comment, method, path, query, headers, cookies, requests, responses) {
289
- return new WsEndpoint(identifier, comment, method, path, query, headers, cookies, requests, responses);
290
- };
291
- protoOf(WsEndpoint).copy = function (identifier, comment, method, path, query, headers, cookies, requests, responses, $super) {
292
- identifier = identifier === VOID ? this.r2e_1 : identifier;
293
- comment = comment === VOID ? this.comment : comment;
294
- method = method === VOID ? this.method : method;
295
- path = path === VOID ? this.path : path;
296
- query = query === VOID ? this.query : query;
297
- headers = headers === VOID ? this.headers : headers;
298
- cookies = cookies === VOID ? this.cookies : cookies;
299
- requests = requests === VOID ? this.requests : requests;
300
- responses = responses === VOID ? this.responses : responses;
301
- return this.f2f(identifier, comment, method, path, query, headers, cookies, requests, responses);
302
- };
303
- protoOf(WsEndpoint).toString = function () {
304
- return 'WsEndpoint(identifier=' + this.r2e_1 + ', comment=' + this.comment + ', method=' + this.method.toString() + ', path=' + toString(this.path) + ', query=' + toString(this.query) + ', headers=' + toString(this.headers) + ', cookies=' + toString(this.cookies) + ', requests=' + toString(this.requests) + ', responses=' + toString(this.responses) + ')';
305
- };
306
- protoOf(WsEndpoint).hashCode = function () {
307
- var result = getStringHashCode(this.r2e_1);
308
- result = imul(result, 31) + (this.comment == null ? 0 : getStringHashCode(this.comment)) | 0;
309
- result = imul(result, 31) + this.method.hashCode() | 0;
310
- result = imul(result, 31) + hashCode(this.path) | 0;
311
- result = imul(result, 31) + hashCode(this.query) | 0;
312
- result = imul(result, 31) + hashCode(this.headers) | 0;
313
- result = imul(result, 31) + hashCode(this.cookies) | 0;
314
- result = imul(result, 31) + hashCode(this.requests) | 0;
315
- result = imul(result, 31) + hashCode(this.responses) | 0;
316
- return result;
317
- };
318
- protoOf(WsEndpoint).equals = function (other) {
319
- if (this === other)
320
- return true;
321
- if (!(other instanceof WsEndpoint))
322
- return false;
323
- var tmp0_other_with_cast = other instanceof WsEndpoint ? other : THROW_CCE();
324
- if (!(this.r2e_1 === tmp0_other_with_cast.r2e_1))
325
- return false;
326
- if (!(this.comment == tmp0_other_with_cast.comment))
327
- return false;
328
- if (!this.method.equals(tmp0_other_with_cast.method))
329
- return false;
330
- if (!equals(this.path, tmp0_other_with_cast.path))
331
- return false;
332
- if (!equals(this.query, tmp0_other_with_cast.query))
333
- return false;
334
- if (!equals(this.headers, tmp0_other_with_cast.headers))
335
- return false;
336
- if (!equals(this.cookies, tmp0_other_with_cast.cookies))
337
- return false;
338
- if (!equals(this.requests, tmp0_other_with_cast.requests))
339
- return false;
340
- if (!equals(this.responses, tmp0_other_with_cast.responses))
341
- return false;
342
- return true;
343
- };
344
- function WsEnum(identifier, comment, entries) {
345
- this.g2f_1 = identifier;
346
- this.comment = comment;
347
- this.entries = entries;
348
- }
349
- protoOf(WsEnum).v28 = function () {
350
- return this.g2f_1;
351
- };
352
- protoOf(WsEnum).n2e = function () {
353
- return this.comment;
354
- };
355
- protoOf(WsEnum).z = function () {
356
- return this.entries;
357
- };
358
- protoOf(WsEnum).qd = function () {
359
- return this.g2f_1;
360
- };
361
- protoOf(WsEnum).rd = function () {
362
- return this.comment;
363
- };
364
- protoOf(WsEnum).ph = function () {
365
- return this.entries;
366
- };
367
- protoOf(WsEnum).h2f = function (identifier, comment, entries) {
368
- return new WsEnum(identifier, comment, entries);
369
- };
370
- protoOf(WsEnum).copy = function (identifier, comment, entries, $super) {
371
- identifier = identifier === VOID ? this.g2f_1 : identifier;
372
- comment = comment === VOID ? this.comment : comment;
373
- entries = entries === VOID ? this.entries : entries;
374
- return this.h2f(identifier, comment, entries);
375
- };
376
- protoOf(WsEnum).toString = function () {
377
- return 'WsEnum(identifier=' + this.g2f_1 + ', comment=' + this.comment + ', entries=' + toString(this.entries) + ')';
378
- };
379
- protoOf(WsEnum).hashCode = function () {
380
- var result = getStringHashCode(this.g2f_1);
381
- result = imul(result, 31) + (this.comment == null ? 0 : getStringHashCode(this.comment)) | 0;
382
- result = imul(result, 31) + hashCode(this.entries) | 0;
383
- return result;
384
- };
385
- protoOf(WsEnum).equals = function (other) {
386
- if (this === other)
387
- return true;
388
- if (!(other instanceof WsEnum))
389
- return false;
390
- var tmp0_other_with_cast = other instanceof WsEnum ? other : THROW_CCE();
391
- if (!(this.g2f_1 === tmp0_other_with_cast.g2f_1))
392
- return false;
393
- if (!(this.comment == tmp0_other_with_cast.comment))
394
- return false;
395
- if (!equals(this.entries, tmp0_other_with_cast.entries))
396
- return false;
397
- return true;
398
- };
399
- function WsUnion(identifier, comment, entries) {
400
- this.i2f_1 = identifier;
401
- this.comment = comment;
402
- this.entries = entries;
403
- }
404
- protoOf(WsUnion).v28 = function () {
405
- return this.i2f_1;
406
- };
407
- protoOf(WsUnion).n2e = function () {
408
- return this.comment;
409
- };
410
- protoOf(WsUnion).z = function () {
411
- return this.entries;
412
- };
413
- protoOf(WsUnion).qd = function () {
414
- return this.i2f_1;
415
- };
416
- protoOf(WsUnion).rd = function () {
417
- return this.comment;
418
- };
419
- protoOf(WsUnion).ph = function () {
420
- return this.entries;
421
- };
422
- protoOf(WsUnion).j2f = function (identifier, comment, entries) {
423
- return new WsUnion(identifier, comment, entries);
424
- };
425
- protoOf(WsUnion).copy = function (identifier, comment, entries, $super) {
426
- identifier = identifier === VOID ? this.i2f_1 : identifier;
427
- comment = comment === VOID ? this.comment : comment;
428
- entries = entries === VOID ? this.entries : entries;
429
- return this.j2f(identifier, comment, entries);
430
- };
431
- protoOf(WsUnion).toString = function () {
432
- return 'WsUnion(identifier=' + this.i2f_1 + ', comment=' + this.comment + ', entries=' + toString(this.entries) + ')';
433
- };
434
- protoOf(WsUnion).hashCode = function () {
435
- var result = getStringHashCode(this.i2f_1);
436
- result = imul(result, 31) + (this.comment == null ? 0 : getStringHashCode(this.comment)) | 0;
437
- result = imul(result, 31) + hashCode(this.entries) | 0;
438
- return result;
439
- };
440
- protoOf(WsUnion).equals = function (other) {
441
- if (this === other)
442
- return true;
443
- if (!(other instanceof WsUnion))
444
- return false;
445
- var tmp0_other_with_cast = other instanceof WsUnion ? other : THROW_CCE();
446
- if (!(this.i2f_1 === tmp0_other_with_cast.i2f_1))
447
- return false;
448
- if (!(this.comment == tmp0_other_with_cast.comment))
449
- return false;
450
- if (!equals(this.entries, tmp0_other_with_cast.entries))
451
- return false;
452
- return true;
453
- };
454
- function WsChannel(identifier, comment, reference) {
455
- this.k2f_1 = identifier;
456
- this.comment = comment;
457
- this.reference = reference;
458
- }
459
- protoOf(WsChannel).v28 = function () {
460
- return this.k2f_1;
461
- };
462
- protoOf(WsChannel).n2e = function () {
463
- return this.comment;
464
- };
465
- protoOf(WsChannel).l2f = function () {
466
- return this.reference;
467
- };
468
- protoOf(WsChannel).qd = function () {
469
- return this.k2f_1;
470
- };
471
- protoOf(WsChannel).rd = function () {
472
- return this.comment;
473
- };
474
- protoOf(WsChannel).ph = function () {
475
- return this.reference;
476
- };
477
- protoOf(WsChannel).m2f = function (identifier, comment, reference) {
478
- return new WsChannel(identifier, comment, reference);
479
- };
480
- protoOf(WsChannel).copy = function (identifier, comment, reference, $super) {
481
- identifier = identifier === VOID ? this.k2f_1 : identifier;
482
- comment = comment === VOID ? this.comment : comment;
483
- reference = reference === VOID ? this.reference : reference;
484
- return this.m2f(identifier, comment, reference);
485
- };
486
- protoOf(WsChannel).toString = function () {
487
- return 'WsChannel(identifier=' + this.k2f_1 + ', comment=' + this.comment + ', reference=' + toString(this.reference) + ')';
488
- };
489
- protoOf(WsChannel).hashCode = function () {
490
- var result = getStringHashCode(this.k2f_1);
491
- result = imul(result, 31) + (this.comment == null ? 0 : getStringHashCode(this.comment)) | 0;
492
- result = imul(result, 31) + hashCode(this.reference) | 0;
493
- return result;
494
- };
495
- protoOf(WsChannel).equals = function (other) {
496
- if (this === other)
497
- return true;
498
- if (!(other instanceof WsChannel))
499
- return false;
500
- var tmp0_other_with_cast = other instanceof WsChannel ? other : THROW_CCE();
501
- if (!(this.k2f_1 === tmp0_other_with_cast.k2f_1))
502
- return false;
503
- if (!(this.comment == tmp0_other_with_cast.comment))
504
- return false;
505
- if (!equals(this.reference, tmp0_other_with_cast.reference))
506
- return false;
507
- return true;
508
- };
509
- function WsRefined(identifier, comment, validator) {
510
- this.n2f_1 = identifier;
511
- this.comment = comment;
512
- this.validator = validator;
513
- }
514
- protoOf(WsRefined).v28 = function () {
515
- return this.n2f_1;
516
- };
517
- protoOf(WsRefined).n2e = function () {
518
- return this.comment;
519
- };
520
- protoOf(WsRefined).o2f = function () {
521
- return this.validator;
522
- };
523
- protoOf(WsRefined).qd = function () {
524
- return this.n2f_1;
525
- };
526
- protoOf(WsRefined).rd = function () {
527
- return this.comment;
528
- };
529
- protoOf(WsRefined).ph = function () {
530
- return this.validator;
531
- };
532
- protoOf(WsRefined).p2f = function (identifier, comment, validator) {
533
- return new WsRefined(identifier, comment, validator);
534
- };
535
- protoOf(WsRefined).copy = function (identifier, comment, validator, $super) {
536
- identifier = identifier === VOID ? this.n2f_1 : identifier;
537
- comment = comment === VOID ? this.comment : comment;
538
- validator = validator === VOID ? this.validator : validator;
539
- return this.p2f(identifier, comment, validator);
540
- };
541
- protoOf(WsRefined).toString = function () {
542
- return 'WsRefined(identifier=' + this.n2f_1 + ', comment=' + this.comment + ', validator=' + this.validator + ')';
543
- };
544
- protoOf(WsRefined).hashCode = function () {
545
- var result = getStringHashCode(this.n2f_1);
546
- result = imul(result, 31) + (this.comment == null ? 0 : getStringHashCode(this.comment)) | 0;
547
- result = imul(result, 31) + getStringHashCode(this.validator) | 0;
548
- return result;
549
- };
550
- protoOf(WsRefined).equals = function (other) {
551
- if (this === other)
552
- return true;
553
- if (!(other instanceof WsRefined))
554
- return false;
555
- var tmp0_other_with_cast = other instanceof WsRefined ? other : THROW_CCE();
556
- if (!(this.n2f_1 === tmp0_other_with_cast.n2f_1))
557
- return false;
558
- if (!(this.comment == tmp0_other_with_cast.comment))
559
- return false;
560
- if (!(this.validator === tmp0_other_with_cast.validator))
561
- return false;
562
- return true;
563
- };
564
- var WsMethod_GET_instance;
565
- var WsMethod_POST_instance;
566
- var WsMethod_PUT_instance;
567
- var WsMethod_DELETE_instance;
568
- var WsMethod_OPTIONS_instance;
569
- var WsMethod_HEAD_instance;
570
- var WsMethod_PATCH_instance;
571
- var WsMethod_TRACE_instance;
572
- function values() {
573
- return [WsMethod_GET_getInstance(), WsMethod_POST_getInstance(), WsMethod_PUT_getInstance(), WsMethod_DELETE_getInstance(), WsMethod_OPTIONS_getInstance(), WsMethod_HEAD_getInstance(), WsMethod_PATCH_getInstance(), WsMethod_TRACE_getInstance()];
574
- }
575
- function valueOf(value) {
576
- switch (value) {
577
- case 'GET':
578
- return WsMethod_GET_getInstance();
579
- case 'POST':
580
- return WsMethod_POST_getInstance();
581
- case 'PUT':
582
- return WsMethod_PUT_getInstance();
583
- case 'DELETE':
584
- return WsMethod_DELETE_getInstance();
585
- case 'OPTIONS':
586
- return WsMethod_OPTIONS_getInstance();
587
- case 'HEAD':
588
- return WsMethod_HEAD_getInstance();
589
- case 'PATCH':
590
- return WsMethod_PATCH_getInstance();
591
- case 'TRACE':
592
- return WsMethod_TRACE_getInstance();
593
- default:
594
- WsMethod_initEntries();
595
- THROW_IAE('No enum constant value.');
596
- break;
597
- }
598
- }
599
- var WsMethod_entriesInitialized;
600
- function WsMethod_initEntries() {
601
- if (WsMethod_entriesInitialized)
602
- return Unit_instance;
603
- WsMethod_entriesInitialized = true;
604
- WsMethod_GET_instance = new WsMethod('GET', 0);
605
- WsMethod_POST_instance = new WsMethod('POST', 1);
606
- WsMethod_PUT_instance = new WsMethod('PUT', 2);
607
- WsMethod_DELETE_instance = new WsMethod('DELETE', 3);
608
- WsMethod_OPTIONS_instance = new WsMethod('OPTIONS', 4);
609
- WsMethod_HEAD_instance = new WsMethod('HEAD', 5);
610
- WsMethod_PATCH_instance = new WsMethod('PATCH', 6);
611
- WsMethod_TRACE_instance = new WsMethod('TRACE', 7);
612
- }
613
- function WsMethod(name, ordinal) {
614
- Enum.call(this, name, ordinal);
615
- }
616
- function WsSegment() {
617
- }
618
- function WsLiteral(value) {
619
- this.value = value;
620
- }
621
- protoOf(WsLiteral).b1 = function () {
622
- return this.value;
623
- };
624
- protoOf(WsLiteral).qd = function () {
625
- return this.value;
626
- };
627
- protoOf(WsLiteral).s2f = function (value) {
628
- return new WsLiteral(value);
629
- };
630
- protoOf(WsLiteral).copy = function (value, $super) {
631
- value = value === VOID ? this.value : value;
632
- return this.s2f(value);
633
- };
634
- protoOf(WsLiteral).toString = function () {
635
- return 'WsLiteral(value=' + this.value + ')';
636
- };
637
- protoOf(WsLiteral).hashCode = function () {
638
- return getStringHashCode(this.value);
639
- };
640
- protoOf(WsLiteral).equals = function (other) {
641
- if (this === other)
642
- return true;
643
- if (!(other instanceof WsLiteral))
644
- return false;
645
- var tmp0_other_with_cast = other instanceof WsLiteral ? other : THROW_CCE();
646
- if (!(this.value === tmp0_other_with_cast.value))
647
- return false;
648
- return true;
649
- };
650
- function WsParam(identifier, reference) {
651
- this.identifier = identifier;
652
- this.reference = reference;
653
- }
654
- protoOf(WsParam).v28 = function () {
655
- return this.identifier;
656
- };
657
- protoOf(WsParam).l2f = function () {
658
- return this.reference;
659
- };
660
- protoOf(WsParam).qd = function () {
661
- return this.identifier;
662
- };
663
- protoOf(WsParam).rd = function () {
664
- return this.reference;
665
- };
666
- protoOf(WsParam).t2f = function (identifier, reference) {
667
- return new WsParam(identifier, reference);
668
- };
669
- protoOf(WsParam).copy = function (identifier, reference, $super) {
670
- identifier = identifier === VOID ? this.identifier : identifier;
671
- reference = reference === VOID ? this.reference : reference;
672
- return this.t2f(identifier, reference);
673
- };
674
- protoOf(WsParam).toString = function () {
675
- return 'WsParam(identifier=' + this.identifier.toString() + ', reference=' + toString(this.reference) + ')';
676
- };
677
- protoOf(WsParam).hashCode = function () {
678
- var result = this.identifier.hashCode();
679
- result = imul(result, 31) + hashCode(this.reference) | 0;
680
- return result;
681
- };
682
- protoOf(WsParam).equals = function (other) {
683
- if (this === other)
684
- return true;
685
- if (!(other instanceof WsParam))
686
- return false;
687
- var tmp0_other_with_cast = other instanceof WsParam ? other : THROW_CCE();
688
- if (!this.identifier.equals(tmp0_other_with_cast.identifier))
689
- return false;
690
- if (!equals(this.reference, tmp0_other_with_cast.reference))
691
- return false;
692
- return true;
693
- };
694
- function Shape_0(value) {
695
- this.value = value;
696
- }
697
- protoOf(Shape_0).b1 = function () {
698
- return this.value;
699
- };
700
- protoOf(Shape_0).qd = function () {
701
- return this.value;
702
- };
703
- protoOf(Shape_0).q2e = function (value) {
704
- return new Shape_0(value);
705
- };
706
- protoOf(Shape_0).copy = function (value, $super) {
707
- value = value === VOID ? this.value : value;
708
- return this.q2e(value);
709
- };
710
- protoOf(Shape_0).toString = function () {
711
- return 'Shape(value=' + toString(this.value) + ')';
712
- };
713
- protoOf(Shape_0).hashCode = function () {
714
- return hashCode(this.value);
715
- };
716
- protoOf(Shape_0).equals = function (other) {
717
- if (this === other)
718
- return true;
719
- if (!(other instanceof Shape_0))
720
- return false;
721
- var tmp0_other_with_cast = other instanceof Shape_0 ? other : THROW_CCE();
722
- if (!equals(this.value, tmp0_other_with_cast.value))
723
- return false;
724
- return true;
725
- };
726
- function WsField(identifier, reference) {
727
- this.identifier = identifier;
728
- this.reference = reference;
729
- }
730
- protoOf(WsField).v28 = function () {
731
- return this.identifier;
732
- };
733
- protoOf(WsField).l2f = function () {
734
- return this.reference;
735
- };
736
- protoOf(WsField).qd = function () {
737
- return this.identifier;
738
- };
739
- protoOf(WsField).rd = function () {
740
- return this.reference;
741
- };
742
- protoOf(WsField).t2f = function (identifier, reference) {
743
- return new WsField(identifier, reference);
744
- };
745
- protoOf(WsField).copy = function (identifier, reference, $super) {
746
- identifier = identifier === VOID ? this.identifier : identifier;
747
- reference = reference === VOID ? this.reference : reference;
748
- return this.t2f(identifier, reference);
749
- };
750
- protoOf(WsField).toString = function () {
751
- return 'WsField(identifier=' + this.identifier.toString() + ', reference=' + toString(this.reference) + ')';
752
- };
753
- protoOf(WsField).hashCode = function () {
754
- var result = this.identifier.hashCode();
755
- result = imul(result, 31) + hashCode(this.reference) | 0;
756
- return result;
757
- };
758
- protoOf(WsField).equals = function (other) {
759
- if (this === other)
760
- return true;
761
- if (!(other instanceof WsField))
762
- return false;
763
- var tmp0_other_with_cast = other instanceof WsField ? other : THROW_CCE();
764
- if (!this.identifier.equals(tmp0_other_with_cast.identifier))
765
- return false;
766
- if (!equals(this.reference, tmp0_other_with_cast.reference))
767
- return false;
768
- return true;
769
- };
770
- function WsIdentifier() {
771
- }
772
- function WsClassIdentifier(value) {
773
- this.value = value;
774
- }
775
- protoOf(WsClassIdentifier).b1 = function () {
776
- return this.value;
777
- };
778
- protoOf(WsClassIdentifier).qd = function () {
779
- return this.value;
780
- };
781
- protoOf(WsClassIdentifier).s2f = function (value) {
782
- return new WsClassIdentifier(value);
783
- };
784
- protoOf(WsClassIdentifier).copy = function (value, $super) {
785
- value = value === VOID ? this.value : value;
786
- return this.s2f(value);
787
- };
788
- protoOf(WsClassIdentifier).toString = function () {
789
- return 'WsClassIdentifier(value=' + this.value + ')';
790
- };
791
- protoOf(WsClassIdentifier).hashCode = function () {
792
- return getStringHashCode(this.value);
793
- };
794
- protoOf(WsClassIdentifier).equals = function (other) {
795
- if (this === other)
796
- return true;
797
- if (!(other instanceof WsClassIdentifier))
798
- return false;
799
- var tmp0_other_with_cast = other instanceof WsClassIdentifier ? other : THROW_CCE();
800
- if (!(this.value === tmp0_other_with_cast.value))
801
- return false;
802
- return true;
803
- };
804
- function WsFieldIdentifier(value) {
805
- this.value = value;
806
- }
807
- protoOf(WsFieldIdentifier).b1 = function () {
808
- return this.value;
809
- };
810
- protoOf(WsFieldIdentifier).qd = function () {
811
- return this.value;
812
- };
813
- protoOf(WsFieldIdentifier).s2f = function (value) {
814
- return new WsFieldIdentifier(value);
815
- };
816
- protoOf(WsFieldIdentifier).copy = function (value, $super) {
817
- value = value === VOID ? this.value : value;
818
- return this.s2f(value);
819
- };
820
- protoOf(WsFieldIdentifier).toString = function () {
821
- return 'WsFieldIdentifier(value=' + this.value + ')';
822
- };
823
- protoOf(WsFieldIdentifier).hashCode = function () {
824
- return getStringHashCode(this.value);
825
- };
826
- protoOf(WsFieldIdentifier).equals = function (other) {
827
- if (this === other)
828
- return true;
829
- if (!(other instanceof WsFieldIdentifier))
830
- return false;
831
- var tmp0_other_with_cast = other instanceof WsFieldIdentifier ? other : THROW_CCE();
832
- if (!(this.value === tmp0_other_with_cast.value))
833
- return false;
834
- return true;
835
- };
836
- function WsReference() {
837
- }
838
- function WsAny(isNullable) {
839
- this.u2f_1 = isNullable;
840
- }
841
- protoOf(WsAny).vl = function () {
842
- return this.u2f_1;
843
- };
844
- protoOf(WsAny).qd = function () {
845
- return this.u2f_1;
846
- };
847
- protoOf(WsAny).v2f = function (isNullable) {
848
- return new WsAny(isNullable);
849
- };
850
- protoOf(WsAny).copy = function (isNullable, $super) {
851
- isNullable = isNullable === VOID ? this.u2f_1 : isNullable;
852
- return this.v2f(isNullable);
853
- };
854
- protoOf(WsAny).toString = function () {
855
- return 'WsAny(isNullable=' + this.u2f_1 + ')';
856
- };
857
- protoOf(WsAny).hashCode = function () {
858
- return getBooleanHashCode(this.u2f_1);
859
- };
860
- protoOf(WsAny).equals = function (other) {
861
- if (this === other)
862
- return true;
863
- if (!(other instanceof WsAny))
864
- return false;
865
- var tmp0_other_with_cast = other instanceof WsAny ? other : THROW_CCE();
866
- if (!(this.u2f_1 === tmp0_other_with_cast.u2f_1))
867
- return false;
868
- return true;
869
- };
870
- function WsUnit(isNullable) {
871
- this.w2f_1 = isNullable;
872
- }
873
- protoOf(WsUnit).vl = function () {
874
- return this.w2f_1;
875
- };
876
- protoOf(WsUnit).qd = function () {
877
- return this.w2f_1;
878
- };
879
- protoOf(WsUnit).v2f = function (isNullable) {
880
- return new WsUnit(isNullable);
881
- };
882
- protoOf(WsUnit).copy = function (isNullable, $super) {
883
- isNullable = isNullable === VOID ? this.w2f_1 : isNullable;
884
- return this.v2f(isNullable);
885
- };
886
- protoOf(WsUnit).toString = function () {
887
- return 'WsUnit(isNullable=' + this.w2f_1 + ')';
888
- };
889
- protoOf(WsUnit).hashCode = function () {
890
- return getBooleanHashCode(this.w2f_1);
891
- };
892
- protoOf(WsUnit).equals = function (other) {
893
- if (this === other)
894
- return true;
895
- if (!(other instanceof WsUnit))
896
- return false;
897
- var tmp0_other_with_cast = other instanceof WsUnit ? other : THROW_CCE();
898
- if (!(this.w2f_1 === tmp0_other_with_cast.w2f_1))
899
- return false;
900
- return true;
901
- };
902
- function WsIterable(reference, isNullable) {
903
- this.reference = reference;
904
- this.x2f_1 = isNullable;
905
- }
906
- protoOf(WsIterable).l2f = function () {
907
- return this.reference;
908
- };
909
- protoOf(WsIterable).vl = function () {
910
- return this.x2f_1;
911
- };
912
- protoOf(WsIterable).qd = function () {
913
- return this.reference;
914
- };
915
- protoOf(WsIterable).rd = function () {
916
- return this.x2f_1;
917
- };
918
- protoOf(WsIterable).y2f = function (reference, isNullable) {
919
- return new WsIterable(reference, isNullable);
920
- };
921
- protoOf(WsIterable).copy = function (reference, isNullable, $super) {
922
- reference = reference === VOID ? this.reference : reference;
923
- isNullable = isNullable === VOID ? this.x2f_1 : isNullable;
924
- return this.y2f(reference, isNullable);
925
- };
926
- protoOf(WsIterable).toString = function () {
927
- return 'WsIterable(reference=' + toString(this.reference) + ', isNullable=' + this.x2f_1 + ')';
928
- };
929
- protoOf(WsIterable).hashCode = function () {
930
- var result = hashCode(this.reference);
931
- result = imul(result, 31) + getBooleanHashCode(this.x2f_1) | 0;
932
- return result;
933
- };
934
- protoOf(WsIterable).equals = function (other) {
935
- if (this === other)
936
- return true;
937
- if (!(other instanceof WsIterable))
938
- return false;
939
- var tmp0_other_with_cast = other instanceof WsIterable ? other : THROW_CCE();
940
- if (!equals(this.reference, tmp0_other_with_cast.reference))
941
- return false;
942
- if (!(this.x2f_1 === tmp0_other_with_cast.x2f_1))
943
- return false;
944
- return true;
945
- };
946
- function WsDict(reference, isNullable) {
947
- this.reference = reference;
948
- this.z2f_1 = isNullable;
949
- }
950
- protoOf(WsDict).l2f = function () {
951
- return this.reference;
952
- };
953
- protoOf(WsDict).vl = function () {
954
- return this.z2f_1;
955
- };
956
- protoOf(WsDict).qd = function () {
957
- return this.reference;
958
- };
959
- protoOf(WsDict).rd = function () {
960
- return this.z2f_1;
961
- };
962
- protoOf(WsDict).y2f = function (reference, isNullable) {
963
- return new WsDict(reference, isNullable);
964
- };
965
- protoOf(WsDict).copy = function (reference, isNullable, $super) {
966
- reference = reference === VOID ? this.reference : reference;
967
- isNullable = isNullable === VOID ? this.z2f_1 : isNullable;
968
- return this.y2f(reference, isNullable);
969
- };
970
- protoOf(WsDict).toString = function () {
971
- return 'WsDict(reference=' + toString(this.reference) + ', isNullable=' + this.z2f_1 + ')';
972
- };
973
- protoOf(WsDict).hashCode = function () {
974
- var result = hashCode(this.reference);
975
- result = imul(result, 31) + getBooleanHashCode(this.z2f_1) | 0;
976
- return result;
977
- };
978
- protoOf(WsDict).equals = function (other) {
979
- if (this === other)
980
- return true;
981
- if (!(other instanceof WsDict))
982
- return false;
983
- var tmp0_other_with_cast = other instanceof WsDict ? other : THROW_CCE();
984
- if (!equals(this.reference, tmp0_other_with_cast.reference))
985
- return false;
986
- if (!(this.z2f_1 === tmp0_other_with_cast.z2f_1))
987
- return false;
988
- return true;
989
- };
990
- function WsCustom(value, isNullable) {
991
- this.value = value;
992
- this.a2g_1 = isNullable;
993
- }
994
- protoOf(WsCustom).b1 = function () {
995
- return this.value;
996
- };
997
- protoOf(WsCustom).vl = function () {
998
- return this.a2g_1;
999
- };
1000
- protoOf(WsCustom).qd = function () {
1001
- return this.value;
1002
- };
1003
- protoOf(WsCustom).rd = function () {
1004
- return this.a2g_1;
1005
- };
1006
- protoOf(WsCustom).b2g = function (value, isNullable) {
1007
- return new WsCustom(value, isNullable);
1008
- };
1009
- protoOf(WsCustom).copy = function (value, isNullable, $super) {
1010
- value = value === VOID ? this.value : value;
1011
- isNullable = isNullable === VOID ? this.a2g_1 : isNullable;
1012
- return this.b2g(value, isNullable);
1013
- };
1014
- protoOf(WsCustom).toString = function () {
1015
- return 'WsCustom(value=' + this.value + ', isNullable=' + this.a2g_1 + ')';
1016
- };
1017
- protoOf(WsCustom).hashCode = function () {
1018
- var result = getStringHashCode(this.value);
1019
- result = imul(result, 31) + getBooleanHashCode(this.a2g_1) | 0;
1020
- return result;
1021
- };
1022
- protoOf(WsCustom).equals = function (other) {
1023
- if (this === other)
1024
- return true;
1025
- if (!(other instanceof WsCustom))
1026
- return false;
1027
- var tmp0_other_with_cast = other instanceof WsCustom ? other : THROW_CCE();
1028
- if (!(this.value === tmp0_other_with_cast.value))
1029
- return false;
1030
- if (!(this.a2g_1 === tmp0_other_with_cast.a2g_1))
1031
- return false;
1032
- return true;
1033
- };
1034
- function WsPrimitive(type, isNullable) {
1035
- this.type = type;
1036
- this.c2g_1 = isNullable;
1037
- }
1038
- protoOf(WsPrimitive).d2g = function () {
1039
- return this.type;
1040
- };
1041
- protoOf(WsPrimitive).vl = function () {
1042
- return this.c2g_1;
1043
- };
1044
- protoOf(WsPrimitive).qd = function () {
1045
- return this.type;
1046
- };
1047
- protoOf(WsPrimitive).rd = function () {
1048
- return this.c2g_1;
1049
- };
1050
- protoOf(WsPrimitive).e2g = function (type, isNullable) {
1051
- return new WsPrimitive(type, isNullable);
1052
- };
1053
- protoOf(WsPrimitive).copy = function (type, isNullable, $super) {
1054
- type = type === VOID ? this.type : type;
1055
- isNullable = isNullable === VOID ? this.c2g_1 : isNullable;
1056
- return this.e2g(type, isNullable);
1057
- };
1058
- protoOf(WsPrimitive).toString = function () {
1059
- return 'WsPrimitive(type=' + this.type.toString() + ', isNullable=' + this.c2g_1 + ')';
1060
- };
1061
- protoOf(WsPrimitive).hashCode = function () {
1062
- var result = this.type.hashCode();
1063
- result = imul(result, 31) + getBooleanHashCode(this.c2g_1) | 0;
1064
- return result;
1065
- };
1066
- protoOf(WsPrimitive).equals = function (other) {
1067
- if (this === other)
1068
- return true;
1069
- if (!(other instanceof WsPrimitive))
1070
- return false;
1071
- var tmp0_other_with_cast = other instanceof WsPrimitive ? other : THROW_CCE();
1072
- if (!this.type.equals(tmp0_other_with_cast.type))
1073
- return false;
1074
- if (!(this.c2g_1 === tmp0_other_with_cast.c2g_1))
1075
- return false;
1076
- return true;
1077
- };
1078
- var WsPrimitiveType_String_instance;
1079
- var WsPrimitiveType_Integer_instance;
1080
- var WsPrimitiveType_Number_instance;
1081
- var WsPrimitiveType_Boolean_instance;
1082
- var WsPrimitiveType_Bytes_instance;
1083
- function values_0() {
1084
- return [WsPrimitiveType_String_getInstance(), WsPrimitiveType_Integer_getInstance(), WsPrimitiveType_Number_getInstance(), WsPrimitiveType_Boolean_getInstance(), WsPrimitiveType_Bytes_getInstance()];
1085
- }
1086
- function valueOf_0(value) {
1087
- switch (value) {
1088
- case 'String':
1089
- return WsPrimitiveType_String_getInstance();
1090
- case 'Integer':
1091
- return WsPrimitiveType_Integer_getInstance();
1092
- case 'Number':
1093
- return WsPrimitiveType_Number_getInstance();
1094
- case 'Boolean':
1095
- return WsPrimitiveType_Boolean_getInstance();
1096
- case 'Bytes':
1097
- return WsPrimitiveType_Bytes_getInstance();
1098
- default:
1099
- WsPrimitiveType_initEntries();
1100
- THROW_IAE('No enum constant value.');
1101
- break;
1102
- }
1103
- }
1104
- var WsPrimitiveType_entriesInitialized;
1105
- function WsPrimitiveType_initEntries() {
1106
- if (WsPrimitiveType_entriesInitialized)
1107
- return Unit_instance;
1108
- WsPrimitiveType_entriesInitialized = true;
1109
- WsPrimitiveType_String_instance = new WsPrimitiveType('String', 0);
1110
- WsPrimitiveType_Integer_instance = new WsPrimitiveType('Integer', 1);
1111
- WsPrimitiveType_Number_instance = new WsPrimitiveType('Number', 2);
1112
- WsPrimitiveType_Boolean_instance = new WsPrimitiveType('Boolean', 3);
1113
- WsPrimitiveType_Bytes_instance = new WsPrimitiveType('Bytes', 4);
1114
- }
1115
- function WsPrimitiveType(name, ordinal) {
1116
- Enum.call(this, name, ordinal);
1117
- }
1118
- function WsRequest(content) {
1119
- this.content = content;
1120
- }
1121
- protoOf(WsRequest).e17 = function () {
1122
- return this.content;
1123
- };
1124
- protoOf(WsRequest).qd = function () {
1125
- return this.content;
1126
- };
1127
- protoOf(WsRequest).h2g = function (content) {
1128
- return new WsRequest(content);
1129
- };
1130
- protoOf(WsRequest).copy = function (content, $super) {
1131
- content = content === VOID ? this.content : content;
1132
- return this.h2g(content);
1133
- };
1134
- protoOf(WsRequest).toString = function () {
1135
- return 'WsRequest(content=' + toString_0(this.content) + ')';
1136
- };
1137
- protoOf(WsRequest).hashCode = function () {
1138
- return this.content == null ? 0 : this.content.hashCode();
1139
- };
1140
- protoOf(WsRequest).equals = function (other) {
1141
- if (this === other)
1142
- return true;
1143
- if (!(other instanceof WsRequest))
1144
- return false;
1145
- var tmp0_other_with_cast = other instanceof WsRequest ? other : THROW_CCE();
1146
- if (!equals(this.content, tmp0_other_with_cast.content))
1147
- return false;
1148
- return true;
1149
- };
1150
- function WsResponse(status, headers, content) {
1151
- this.status = status;
1152
- this.headers = headers;
1153
- this.content = content;
1154
- }
1155
- protoOf(WsResponse).i2g = function () {
1156
- return this.status;
1157
- };
1158
- protoOf(WsResponse).v2e = function () {
1159
- return this.headers;
1160
- };
1161
- protoOf(WsResponse).e17 = function () {
1162
- return this.content;
1163
- };
1164
- protoOf(WsResponse).qd = function () {
1165
- return this.status;
1166
- };
1167
- protoOf(WsResponse).rd = function () {
1168
- return this.headers;
1169
- };
1170
- protoOf(WsResponse).ph = function () {
1171
- return this.content;
1172
- };
1173
- protoOf(WsResponse).j2g = function (status, headers, content) {
1174
- return new WsResponse(status, headers, content);
1175
- };
1176
- protoOf(WsResponse).copy = function (status, headers, content, $super) {
1177
- status = status === VOID ? this.status : status;
1178
- headers = headers === VOID ? this.headers : headers;
1179
- content = content === VOID ? this.content : content;
1180
- return this.j2g(status, headers, content);
1181
- };
1182
- protoOf(WsResponse).toString = function () {
1183
- return 'WsResponse(status=' + this.status + ', headers=' + toString(this.headers) + ', content=' + toString_0(this.content) + ')';
1184
- };
1185
- protoOf(WsResponse).hashCode = function () {
1186
- var result = getStringHashCode(this.status);
1187
- result = imul(result, 31) + hashCode(this.headers) | 0;
1188
- result = imul(result, 31) + (this.content == null ? 0 : this.content.hashCode()) | 0;
1189
- return result;
1190
- };
1191
- protoOf(WsResponse).equals = function (other) {
1192
- if (this === other)
1193
- return true;
1194
- if (!(other instanceof WsResponse))
1195
- return false;
1196
- var tmp0_other_with_cast = other instanceof WsResponse ? other : THROW_CCE();
1197
- if (!(this.status === tmp0_other_with_cast.status))
1198
- return false;
1199
- if (!equals(this.headers, tmp0_other_with_cast.headers))
1200
- return false;
1201
- if (!equals(this.content, tmp0_other_with_cast.content))
1202
- return false;
1203
- return true;
1204
- };
1205
- function WsContent(type, reference, isNullable) {
1206
- isNullable = isNullable === VOID ? false : isNullable;
1207
- this.type = type;
1208
- this.reference = reference;
1209
- this.isNullable = isNullable;
1210
- }
1211
- protoOf(WsContent).d2g = function () {
1212
- return this.type;
1213
- };
1214
- protoOf(WsContent).l2f = function () {
1215
- return this.reference;
1216
- };
1217
- protoOf(WsContent).vl = function () {
1218
- return this.isNullable;
1219
- };
1220
- protoOf(WsContent).qd = function () {
1221
- return this.type;
1222
- };
1223
- protoOf(WsContent).rd = function () {
1224
- return this.reference;
1225
- };
1226
- protoOf(WsContent).ph = function () {
1227
- return this.isNullable;
1228
- };
1229
- protoOf(WsContent).k2g = function (type, reference, isNullable) {
1230
- return new WsContent(type, reference, isNullable);
1231
- };
1232
- protoOf(WsContent).copy = function (type, reference, isNullable, $super) {
1233
- type = type === VOID ? this.type : type;
1234
- reference = reference === VOID ? this.reference : reference;
1235
- isNullable = isNullable === VOID ? this.isNullable : isNullable;
1236
- return this.k2g(type, reference, isNullable);
1237
- };
1238
- protoOf(WsContent).toString = function () {
1239
- return 'WsContent(type=' + this.type + ', reference=' + toString(this.reference) + ', isNullable=' + this.isNullable + ')';
1240
- };
1241
- protoOf(WsContent).hashCode = function () {
1242
- var result = getStringHashCode(this.type);
1243
- result = imul(result, 31) + hashCode(this.reference) | 0;
1244
- result = imul(result, 31) + getBooleanHashCode(this.isNullable) | 0;
1245
- return result;
1246
- };
1247
- protoOf(WsContent).equals = function (other) {
1248
- if (this === other)
1249
- return true;
1250
- if (!(other instanceof WsContent))
1251
- return false;
1252
- var tmp0_other_with_cast = other instanceof WsContent ? other : THROW_CCE();
1253
- if (!(this.type === tmp0_other_with_cast.type))
1254
- return false;
1255
- if (!equals(this.reference, tmp0_other_with_cast.reference))
1256
- return false;
1257
- if (!(this.isNullable === tmp0_other_with_cast.isNullable))
1258
- return false;
1259
- return true;
1260
- };
1261
- function produce(_this__u8e3s4) {
1262
- var tmp;
1263
- if (_this__u8e3s4 instanceof Type) {
1264
- var tmp_0 = _this__u8e3s4.d25_1.b1();
1265
- var tmp1_safe_receiver = _this__u8e3s4.c25_1;
1266
- var tmp_1;
1267
- var tmp_2 = tmp1_safe_receiver;
1268
- if ((tmp_2 == null ? null : new Comment(tmp_2)) == null) {
1269
- tmp_1 = null;
1270
- } else {
1271
- tmp_1 = _Comment___get_value__impl__8r3pla(tmp1_safe_receiver);
1272
- }
1273
- tmp = new WsType(tmp_0, tmp_1, produce_1(_this__u8e3s4.e25_1));
1274
- } else {
1275
- if (_this__u8e3s4 instanceof Endpoint) {
1276
- var tmp_3 = _this__u8e3s4.o23_1.b1();
1277
- var tmp2_safe_receiver = _this__u8e3s4.n23_1;
1278
- var tmp_4;
1279
- var tmp_5 = tmp2_safe_receiver;
1280
- if ((tmp_5 == null ? null : new Comment(tmp_5)) == null) {
1281
- tmp_4 = null;
1282
- } else {
1283
- tmp_4 = _Comment___get_value__impl__8r3pla(tmp2_safe_receiver);
1284
- }
1285
- tmp = new WsEndpoint(tmp_3, tmp_4, produce_2(_this__u8e3s4.p23_1), produce_3(_this__u8e3s4.q23_1), produce_4(_this__u8e3s4.r23_1), produce_4(_this__u8e3s4.s23_1), produce_4(_this__u8e3s4.t23_1), produce_5(_this__u8e3s4.u23_1), produce_6(_this__u8e3s4.v23_1));
1286
- } else {
1287
- if (_this__u8e3s4 instanceof Enum_0) {
1288
- var tmp_6 = _this__u8e3s4.k25_1.b1();
1289
- var tmp3_safe_receiver = _this__u8e3s4.j25_1;
1290
- var tmp_7;
1291
- var tmp_8 = tmp3_safe_receiver;
1292
- if ((tmp_8 == null ? null : new Comment(tmp_8)) == null) {
1293
- tmp_7 = null;
1294
- } else {
1295
- tmp_7 = _Comment___get_value__impl__8r3pla(tmp3_safe_receiver);
1296
- }
1297
- var tmp_9 = tmp_7;
1298
- // Inline function 'kotlin.collections.toTypedArray' call
1299
- var this_0 = _this__u8e3s4.l25_1;
1300
- var tmp$ret$0 = copyToArray(this_0);
1301
- tmp = new WsEnum(tmp_6, tmp_9, tmp$ret$0);
1302
- } else {
1303
- if (_this__u8e3s4 instanceof Refined) {
1304
- var tmp_10 = _this__u8e3s4.h25_1.b1();
1305
- var tmp4_safe_receiver = _this__u8e3s4.g25_1;
1306
- var tmp_11;
1307
- var tmp_12 = tmp4_safe_receiver;
1308
- if ((tmp_12 == null ? null : new Comment(tmp_12)) == null) {
1309
- tmp_11 = null;
1310
- } else {
1311
- tmp_11 = _Comment___get_value__impl__8r3pla(tmp4_safe_receiver);
1312
- }
1313
- tmp = new WsRefined(tmp_10, tmp_11, _this__u8e3s4.i25_1.f26_1);
1314
- } else {
1315
- if (_this__u8e3s4 instanceof Union) {
1316
- var tmp_13 = _this__u8e3s4.a25_1.b1();
1317
- var tmp5_safe_receiver = _this__u8e3s4.z24_1;
1318
- var tmp_14;
1319
- var tmp_15 = tmp5_safe_receiver;
1320
- if ((tmp_15 == null ? null : new Comment(tmp_15)) == null) {
1321
- tmp_14 = null;
1322
- } else {
1323
- tmp_14 = _Comment___get_value__impl__8r3pla(tmp5_safe_receiver);
1324
- }
1325
- var tmp_16 = tmp_14;
1326
- // Inline function 'kotlin.collections.toTypedArray' call
1327
- // Inline function 'kotlin.collections.map' call
1328
- var this_1 = _this__u8e3s4.b25_1;
1329
- // Inline function 'kotlin.collections.mapTo' call
1330
- var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_1, 10));
1331
- var tmp0_iterator = this_1.g();
1332
- while (tmp0_iterator.h()) {
1333
- var item = tmp0_iterator.i();
1334
- // Inline function 'community.flock.wirespec.compiler.lib.produce.<anonymous>' call
1335
- var tmp$ret$1 = produce_7(item);
1336
- destination.e(tmp$ret$1);
1337
- }
1338
- var tmp$ret$4 = copyToArray(destination);
1339
- tmp = new WsUnion(tmp_13, tmp_16, tmp$ret$4);
1340
- } else {
1341
- if (_this__u8e3s4 instanceof Channel) {
1342
- var tmp_17 = _this__u8e3s4.n25_1.b1();
1343
- var tmp6_safe_receiver = _this__u8e3s4.m25_1;
1344
- var tmp_18;
1345
- var tmp_19 = tmp6_safe_receiver;
1346
- if ((tmp_19 == null ? null : new Comment(tmp_19)) == null) {
1347
- tmp_18 = null;
1348
- } else {
1349
- tmp_18 = _Comment___get_value__impl__8r3pla(tmp6_safe_receiver);
1350
- }
1351
- tmp = new WsChannel(tmp_17, tmp_18, produce_7(_this__u8e3s4.o25_1));
1352
- } else {
1353
- noWhenBranchMatchedException();
1354
- }
1355
- }
1356
- }
1357
- }
1358
- }
1359
- }
1360
- return tmp;
1361
- }
1362
- function produce_0(_this__u8e3s4) {
1363
- // Inline function 'kotlin.collections.toTypedArray' call
1364
- // Inline function 'kotlin.collections.map' call
1365
- // Inline function 'kotlin.collections.mapTo' call
1366
- var destination = ArrayList_init_$Create$(collectionSizeOrDefault(_this__u8e3s4, 10));
1367
- var tmp0_iterator = _this__u8e3s4.g();
1368
- while (tmp0_iterator.h()) {
1369
- var item = tmp0_iterator.i();
1370
- // Inline function 'community.flock.wirespec.compiler.lib.produce.<anonymous>' call
1371
- var tmp$ret$0 = produce(item);
1372
- destination.e(tmp$ret$0);
1373
- }
1374
- return copyToArray(destination);
1375
- }
1376
- function consume(_this__u8e3s4) {
1377
- var tmp;
1378
- if (_this__u8e3s4 instanceof WsEndpoint) {
1379
- tmp = consume_0(_this__u8e3s4);
1380
- } else {
1381
- if (_this__u8e3s4 instanceof WsEnum) {
1382
- tmp = consume_1(_this__u8e3s4);
1383
- } else {
1384
- if (_this__u8e3s4 instanceof WsRefined) {
1385
- tmp = consume_2(_this__u8e3s4);
1386
- } else {
1387
- if (_this__u8e3s4 instanceof WsType) {
1388
- tmp = consume_3(_this__u8e3s4);
1389
- } else {
1390
- if (_this__u8e3s4 instanceof WsUnion) {
1391
- tmp = consume_4(_this__u8e3s4);
1392
- } else {
1393
- if (_this__u8e3s4 instanceof WsChannel) {
1394
- tmp = consume_5(_this__u8e3s4);
1395
- } else {
1396
- noWhenBranchMatchedException();
1397
- }
1398
- }
1399
- }
1400
- }
1401
- }
1402
- }
1403
- return tmp;
1404
- }
1405
- function produce_1(_this__u8e3s4) {
1406
- // Inline function 'kotlin.collections.toTypedArray' call
1407
- // Inline function 'kotlin.collections.map' call
1408
- var this_0 = _this__u8e3s4.w25_1;
1409
- // Inline function 'kotlin.collections.mapTo' call
1410
- var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
1411
- var tmp0_iterator = this_0.g();
1412
- while (tmp0_iterator.h()) {
1413
- var item = tmp0_iterator.i();
1414
- // Inline function 'community.flock.wirespec.compiler.lib.produce.<anonymous>' call
1415
- var tmp$ret$0 = produce_8(item);
1416
- destination.e(tmp$ret$0);
1417
- }
1418
- var tmp$ret$3 = copyToArray(destination);
1419
- return new WsShape(tmp$ret$3);
1420
- }
1421
- function produce_2(_this__u8e3s4) {
1422
- var tmp;
1423
- switch (_this__u8e3s4.q2_1) {
1424
- case 0:
1425
- tmp = WsMethod_GET_getInstance();
1426
- break;
1427
- case 1:
1428
- tmp = WsMethod_POST_getInstance();
1429
- break;
1430
- case 2:
1431
- tmp = WsMethod_PUT_getInstance();
1432
- break;
1433
- case 3:
1434
- tmp = WsMethod_DELETE_getInstance();
1435
- break;
1436
- case 4:
1437
- tmp = WsMethod_OPTIONS_getInstance();
1438
- break;
1439
- case 5:
1440
- tmp = WsMethod_HEAD_getInstance();
1441
- break;
1442
- case 6:
1443
- tmp = WsMethod_PATCH_getInstance();
1444
- break;
1445
- case 7:
1446
- tmp = WsMethod_TRACE_getInstance();
1447
- break;
1448
- default:
1449
- noWhenBranchMatchedException();
1450
- break;
1451
- }
1452
- return tmp;
1453
- }
1454
- function produce_3(_this__u8e3s4) {
1455
- // Inline function 'kotlin.collections.toTypedArray' call
1456
- // Inline function 'kotlin.collections.map' call
1457
- // Inline function 'kotlin.collections.mapTo' call
1458
- var destination = ArrayList_init_$Create$(collectionSizeOrDefault(_this__u8e3s4, 10));
1459
- var tmp0_iterator = _this__u8e3s4.g();
1460
- while (tmp0_iterator.h()) {
1461
- var item = tmp0_iterator.i();
1462
- // Inline function 'community.flock.wirespec.compiler.lib.produce.<anonymous>' call
1463
- var tmp;
1464
- if (item instanceof Literal) {
1465
- tmp = new WsLiteral(item.x24_1);
1466
- } else {
1467
- if (item instanceof Param) {
1468
- tmp = new WsParam(produce_9(item.n24_1), produce_7(item.o24_1));
1469
- } else {
1470
- noWhenBranchMatchedException();
1471
- }
1472
- }
1473
- var tmp$ret$0 = tmp;
1474
- destination.e(tmp$ret$0);
1475
- }
1476
- return copyToArray(destination);
1477
- }
1478
- function produce_4(_this__u8e3s4) {
1479
- // Inline function 'kotlin.collections.toTypedArray' call
1480
- // Inline function 'kotlin.collections.map' call
1481
- // Inline function 'kotlin.collections.mapTo' call
1482
- var destination = ArrayList_init_$Create$(collectionSizeOrDefault(_this__u8e3s4, 10));
1483
- var tmp0_iterator = _this__u8e3s4.g();
1484
- while (tmp0_iterator.h()) {
1485
- var item = tmp0_iterator.i();
1486
- // Inline function 'community.flock.wirespec.compiler.lib.produce.<anonymous>' call
1487
- var tmp$ret$0 = produce_8(item);
1488
- destination.e(tmp$ret$0);
1489
- }
1490
- return copyToArray(destination);
1491
- }
1492
- function produce_5(_this__u8e3s4) {
1493
- // Inline function 'kotlin.collections.toTypedArray' call
1494
- // Inline function 'kotlin.collections.map' call
1495
- // Inline function 'kotlin.collections.mapTo' call
1496
- var destination = ArrayList_init_$Create$(collectionSizeOrDefault(_this__u8e3s4, 10));
1497
- var tmp0_iterator = _this__u8e3s4.g();
1498
- while (tmp0_iterator.h()) {
1499
- var item = tmp0_iterator.i();
1500
- // Inline function 'community.flock.wirespec.compiler.lib.produce.<anonymous>' call
1501
- var tmp$ret$0 = produce_10(item);
1502
- destination.e(tmp$ret$0);
1503
- }
1504
- return copyToArray(destination);
1505
- }
1506
- function produce_6(_this__u8e3s4) {
1507
- // Inline function 'kotlin.collections.toTypedArray' call
1508
- // Inline function 'kotlin.collections.map' call
1509
- // Inline function 'kotlin.collections.mapTo' call
1510
- var destination = ArrayList_init_$Create$(collectionSizeOrDefault(_this__u8e3s4, 10));
1511
- var tmp0_iterator = _this__u8e3s4.g();
1512
- while (tmp0_iterator.h()) {
1513
- var item = tmp0_iterator.i();
1514
- // Inline function 'community.flock.wirespec.compiler.lib.produce.<anonymous>' call
1515
- var tmp$ret$0 = produce_11(item);
1516
- destination.e(tmp$ret$0);
1517
- }
1518
- return copyToArray(destination);
1519
- }
1520
- function produce_7(_this__u8e3s4) {
1521
- var tmp;
1522
- if (_this__u8e3s4 instanceof Any) {
1523
- tmp = new WsAny(_this__u8e3s4.b29_1);
1524
- } else {
1525
- if (_this__u8e3s4 instanceof Unit) {
1526
- tmp = new WsUnit(_this__u8e3s4.d29_1);
1527
- } else {
1528
- if (_this__u8e3s4 instanceof Custom) {
1529
- tmp = new WsCustom(_this__u8e3s4.y22_1, _this__u8e3s4.z22_1);
1530
- } else {
1531
- if (_this__u8e3s4 instanceof Primitive) {
1532
- tmp = new WsPrimitive(produce_12(_this__u8e3s4.g23_1), _this__u8e3s4.h23_1);
1533
- } else {
1534
- if (_this__u8e3s4 instanceof Dict) {
1535
- tmp = new WsDict(produce_7(_this__u8e3s4.a26_1), _this__u8e3s4.b26_1);
1536
- } else {
1537
- if (_this__u8e3s4 instanceof Iterable) {
1538
- tmp = new WsIterable(produce_7(_this__u8e3s4.x25_1), _this__u8e3s4.y25_1);
1539
- } else {
1540
- noWhenBranchMatchedException();
1541
- }
1542
- }
1543
- }
1544
- }
1545
- }
1546
- }
1547
- return tmp;
1548
- }
1549
- function consume_0(_this__u8e3s4) {
1550
- var tmp0_safe_receiver = _this__u8e3s4.comment;
1551
- var tmp;
1552
- if (tmp0_safe_receiver == null) {
1553
- tmp = null;
1554
- } else {
1555
- // Inline function 'kotlin.let' call
1556
- // Inline function 'kotlin.contracts.contract' call
1557
- // Inline function 'community.flock.wirespec.compiler.lib.consume.<anonymous>' call
1558
- tmp = Companion_instance.w28(tmp0_safe_receiver);
1559
- }
1560
- var tmp_0 = tmp;
1561
- var tmp_1 = new DefinitionIdentifier(_this__u8e3s4.r2e_1);
1562
- var tmp_2 = consume_6(_this__u8e3s4.method);
1563
- // Inline function 'kotlin.collections.map' call
1564
- var this_0 = _this__u8e3s4.path;
1565
- // Inline function 'kotlin.collections.mapTo' call
1566
- var destination = ArrayList_init_$Create$(this_0.length);
1567
- var inductionVariable = 0;
1568
- var last = this_0.length;
1569
- while (inductionVariable < last) {
1570
- var item = this_0[inductionVariable];
1571
- inductionVariable = inductionVariable + 1 | 0;
1572
- // Inline function 'community.flock.wirespec.compiler.lib.consume.<anonymous>' call
1573
- var tmp$ret$2 = consume_7(item);
1574
- destination.e(tmp$ret$2);
1575
- }
1576
- var tmp_3 = destination;
1577
- // Inline function 'kotlin.collections.map' call
1578
- var this_1 = _this__u8e3s4.query;
1579
- // Inline function 'kotlin.collections.mapTo' call
1580
- var destination_0 = ArrayList_init_$Create$(this_1.length);
1581
- var inductionVariable_0 = 0;
1582
- var last_0 = this_1.length;
1583
- while (inductionVariable_0 < last_0) {
1584
- var item_0 = this_1[inductionVariable_0];
1585
- inductionVariable_0 = inductionVariable_0 + 1 | 0;
1586
- // Inline function 'community.flock.wirespec.compiler.lib.consume.<anonymous>' call
1587
- var tmp$ret$5 = consume_8(item_0);
1588
- destination_0.e(tmp$ret$5);
1589
- }
1590
- var tmp_4 = destination_0;
1591
- // Inline function 'kotlin.collections.map' call
1592
- var this_2 = _this__u8e3s4.query;
1593
- // Inline function 'kotlin.collections.mapTo' call
1594
- var destination_1 = ArrayList_init_$Create$(this_2.length);
1595
- var inductionVariable_1 = 0;
1596
- var last_1 = this_2.length;
1597
- while (inductionVariable_1 < last_1) {
1598
- var item_1 = this_2[inductionVariable_1];
1599
- inductionVariable_1 = inductionVariable_1 + 1 | 0;
1600
- // Inline function 'community.flock.wirespec.compiler.lib.consume.<anonymous>' call
1601
- var tmp$ret$8 = consume_8(item_1);
1602
- destination_1.e(tmp$ret$8);
1603
- }
1604
- var tmp_5 = destination_1;
1605
- // Inline function 'kotlin.collections.map' call
1606
- var this_3 = _this__u8e3s4.query;
1607
- // Inline function 'kotlin.collections.mapTo' call
1608
- var destination_2 = ArrayList_init_$Create$(this_3.length);
1609
- var inductionVariable_2 = 0;
1610
- var last_2 = this_3.length;
1611
- while (inductionVariable_2 < last_2) {
1612
- var item_2 = this_3[inductionVariable_2];
1613
- inductionVariable_2 = inductionVariable_2 + 1 | 0;
1614
- // Inline function 'community.flock.wirespec.compiler.lib.consume.<anonymous>' call
1615
- var tmp$ret$11 = consume_8(item_2);
1616
- destination_2.e(tmp$ret$11);
1617
- }
1618
- var tmp_6 = destination_2;
1619
- // Inline function 'kotlin.collections.map' call
1620
- var this_4 = _this__u8e3s4.requests;
1621
- // Inline function 'kotlin.collections.mapTo' call
1622
- var destination_3 = ArrayList_init_$Create$(this_4.length);
1623
- var inductionVariable_3 = 0;
1624
- var last_3 = this_4.length;
1625
- while (inductionVariable_3 < last_3) {
1626
- var item_3 = this_4[inductionVariable_3];
1627
- inductionVariable_3 = inductionVariable_3 + 1 | 0;
1628
- // Inline function 'community.flock.wirespec.compiler.lib.consume.<anonymous>' call
1629
- var tmp$ret$14 = consume_9(item_3);
1630
- destination_3.e(tmp$ret$14);
1631
- }
1632
- var tmp_7 = destination_3;
1633
- // Inline function 'kotlin.collections.map' call
1634
- var this_5 = _this__u8e3s4.responses;
1635
- // Inline function 'kotlin.collections.mapTo' call
1636
- var destination_4 = ArrayList_init_$Create$(this_5.length);
1637
- var inductionVariable_4 = 0;
1638
- var last_4 = this_5.length;
1639
- while (inductionVariable_4 < last_4) {
1640
- var item_4 = this_5[inductionVariable_4];
1641
- inductionVariable_4 = inductionVariable_4 + 1 | 0;
1642
- // Inline function 'community.flock.wirespec.compiler.lib.consume.<anonymous>' call
1643
- var tmp$ret$17 = consume_10(item_4);
1644
- destination_4.e(tmp$ret$17);
1645
- }
1646
- return new Endpoint(tmp_0, tmp_1, tmp_2, tmp_3, tmp_4, tmp_5, tmp_6, tmp_7, destination_4);
1647
- }
1648
- function consume_1(_this__u8e3s4) {
1649
- var tmp1_identifier = new DefinitionIdentifier(_this__u8e3s4.g2f_1);
1650
- var tmp0_safe_receiver = _this__u8e3s4.comment;
1651
- var tmp;
1652
- if (tmp0_safe_receiver == null) {
1653
- tmp = null;
1654
- } else {
1655
- // Inline function 'kotlin.let' call
1656
- // Inline function 'kotlin.contracts.contract' call
1657
- // Inline function 'community.flock.wirespec.compiler.lib.consume.<anonymous>' call
1658
- tmp = Companion_instance.w28(tmp0_safe_receiver);
1659
- }
1660
- var tmp2_comment = tmp;
1661
- var tmp3_entries = toSet(_this__u8e3s4.entries);
1662
- return new Enum_0(tmp2_comment, tmp1_identifier, tmp3_entries);
1663
- }
1664
- function consume_2(_this__u8e3s4) {
1665
- var tmp1_identifier = new DefinitionIdentifier(_this__u8e3s4.n2f_1);
1666
- var tmp0_safe_receiver = _this__u8e3s4.comment;
1667
- var tmp;
1668
- if (tmp0_safe_receiver == null) {
1669
- tmp = null;
1670
- } else {
1671
- // Inline function 'kotlin.let' call
1672
- // Inline function 'kotlin.contracts.contract' call
1673
- // Inline function 'community.flock.wirespec.compiler.lib.consume.<anonymous>' call
1674
- tmp = Companion_instance.w28(tmp0_safe_receiver);
1675
- }
1676
- var tmp2_comment = tmp;
1677
- var tmp3_validator = new Validator(_this__u8e3s4.validator);
1678
- return new Refined(tmp2_comment, tmp1_identifier, tmp3_validator);
1679
- }
1680
- function consume_3(_this__u8e3s4) {
1681
- var tmp1_identifier = new DefinitionIdentifier(_this__u8e3s4.m2e_1);
1682
- var tmp0_safe_receiver = _this__u8e3s4.comment;
1683
- var tmp;
1684
- if (tmp0_safe_receiver == null) {
1685
- tmp = null;
1686
- } else {
1687
- // Inline function 'kotlin.let' call
1688
- // Inline function 'kotlin.contracts.contract' call
1689
- // Inline function 'community.flock.wirespec.compiler.lib.consume.<anonymous>' call
1690
- tmp = Companion_instance.w28(tmp0_safe_receiver);
1691
- }
1692
- var tmp2_comment = tmp;
1693
- // Inline function 'kotlin.collections.map' call
1694
- var this_0 = _this__u8e3s4.shape.value;
1695
- // Inline function 'kotlin.collections.mapTo' call
1696
- var destination = ArrayList_init_$Create$(this_0.length);
1697
- var inductionVariable = 0;
1698
- var last = this_0.length;
1699
- while (inductionVariable < last) {
1700
- var item = this_0[inductionVariable];
1701
- inductionVariable = inductionVariable + 1 | 0;
1702
- // Inline function 'community.flock.wirespec.compiler.lib.consume.<anonymous>' call
1703
- var tmp$ret$2 = consume_8(item);
1704
- destination.e(tmp$ret$2);
1705
- }
1706
- var tmp3_shape = new Shape(destination);
1707
- var tmp4_extends = emptyList();
1708
- return new Type(tmp2_comment, tmp1_identifier, tmp3_shape, tmp4_extends);
1709
- }
1710
- function consume_4(_this__u8e3s4) {
1711
- var tmp1_identifier = new DefinitionIdentifier(_this__u8e3s4.i2f_1);
1712
- var tmp0_safe_receiver = _this__u8e3s4.comment;
1713
- var tmp;
1714
- if (tmp0_safe_receiver == null) {
1715
- tmp = null;
1716
- } else {
1717
- // Inline function 'kotlin.let' call
1718
- // Inline function 'kotlin.contracts.contract' call
1719
- // Inline function 'community.flock.wirespec.compiler.lib.consume.<anonymous>' call
1720
- tmp = Companion_instance.w28(tmp0_safe_receiver);
1721
- }
1722
- var tmp2_comment = tmp;
1723
- // Inline function 'kotlin.collections.map' call
1724
- var this_0 = _this__u8e3s4.entries;
1725
- // Inline function 'kotlin.collections.mapTo' call
1726
- var destination = ArrayList_init_$Create$(this_0.length);
1727
- var inductionVariable = 0;
1728
- var last = this_0.length;
1729
- while (inductionVariable < last) {
1730
- var item = this_0[inductionVariable];
1731
- inductionVariable = inductionVariable + 1 | 0;
1732
- // Inline function 'community.flock.wirespec.compiler.lib.consume.<anonymous>' call
1733
- var tmp$ret$2 = consume_11(item);
1734
- destination.e(tmp$ret$2);
1735
- }
1736
- var tmp3_entries = toSet_0(destination);
1737
- return new Union(tmp2_comment, tmp1_identifier, tmp3_entries);
1738
- }
1739
- function consume_5(_this__u8e3s4) {
1740
- var tmp1_identifier = new DefinitionIdentifier(_this__u8e3s4.k2f_1);
1741
- var tmp0_safe_receiver = _this__u8e3s4.comment;
1742
- var tmp;
1743
- if (tmp0_safe_receiver == null) {
1744
- tmp = null;
1745
- } else {
1746
- // Inline function 'kotlin.let' call
1747
- // Inline function 'kotlin.contracts.contract' call
1748
- // Inline function 'community.flock.wirespec.compiler.lib.consume.<anonymous>' call
1749
- tmp = Companion_instance.w28(tmp0_safe_receiver);
1750
- }
1751
- var tmp2_comment = tmp;
1752
- var tmp3_reference = consume_11(_this__u8e3s4.reference);
1753
- return new Channel(tmp2_comment, tmp1_identifier, tmp3_reference);
1754
- }
1755
- function produce_8(_this__u8e3s4) {
1756
- return new WsField(produce_9(_this__u8e3s4.i24_1), produce_7(_this__u8e3s4.j24_1));
1757
- }
1758
- function produce_9(_this__u8e3s4) {
1759
- return new WsFieldIdentifier(_this__u8e3s4.b1());
1760
- }
1761
- function produce_10(_this__u8e3s4) {
1762
- var tmp0_safe_receiver = _this__u8e3s4.b24_1;
1763
- return new WsRequest(tmp0_safe_receiver == null ? null : produce_13(tmp0_safe_receiver));
1764
- }
1765
- function produce_11(_this__u8e3s4) {
1766
- // Inline function 'kotlin.collections.toTypedArray' call
1767
- // Inline function 'kotlin.collections.map' call
1768
- var this_0 = _this__u8e3s4.x23_1;
1769
- // Inline function 'kotlin.collections.mapTo' call
1770
- var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
1771
- var tmp0_iterator = this_0.g();
1772
- while (tmp0_iterator.h()) {
1773
- var item = tmp0_iterator.i();
1774
- // Inline function 'community.flock.wirespec.compiler.lib.produce.<anonymous>' call
1775
- var tmp$ret$0 = produce_8(item);
1776
- destination.e(tmp$ret$0);
1777
- }
1778
- var tmp = copyToArray(destination);
1779
- var tmp0_safe_receiver = _this__u8e3s4.y23_1;
1780
- return new WsResponse(_this__u8e3s4.w23_1, tmp, tmp0_safe_receiver == null ? null : produce_13(tmp0_safe_receiver));
1781
- }
1782
- function produce_12(_this__u8e3s4) {
1783
- var tmp;
1784
- if (_this__u8e3s4 instanceof String_0) {
1785
- tmp = WsPrimitiveType_String_getInstance();
1786
- } else {
1787
- if (_this__u8e3s4 instanceof Integer) {
1788
- tmp = WsPrimitiveType_Integer_getInstance();
1789
- } else {
1790
- if (_this__u8e3s4 instanceof Number_0) {
1791
- tmp = WsPrimitiveType_Number_getInstance();
1792
- } else {
1793
- if (_this__u8e3s4 instanceof Boolean_0) {
1794
- tmp = WsPrimitiveType_Boolean_getInstance();
1795
- } else {
1796
- if (_this__u8e3s4 instanceof Bytes) {
1797
- tmp = WsPrimitiveType_Bytes_getInstance();
1798
- } else {
1799
- noWhenBranchMatchedException();
1800
- }
1801
- }
1802
- }
1803
- }
1804
- }
1805
- return tmp;
1806
- }
1807
- function consume_6(_this__u8e3s4) {
1808
- var tmp;
1809
- switch (_this__u8e3s4.q2_1) {
1810
- case 0:
1811
- tmp = Method_GET_getInstance();
1812
- break;
1813
- case 1:
1814
- tmp = Method_POST_getInstance();
1815
- break;
1816
- case 2:
1817
- tmp = Method_PUT_getInstance();
1818
- break;
1819
- case 3:
1820
- tmp = Method_DELETE_getInstance();
1821
- break;
1822
- case 4:
1823
- tmp = Method_OPTIONS_getInstance();
1824
- break;
1825
- case 5:
1826
- tmp = Method_HEAD_getInstance();
1827
- break;
1828
- case 6:
1829
- tmp = Method_PATCH_getInstance();
1830
- break;
1831
- case 7:
1832
- tmp = Method_TRACE_getInstance();
1833
- break;
1834
- default:
1835
- noWhenBranchMatchedException();
1836
- break;
1837
- }
1838
- return tmp;
1839
- }
1840
- function consume_7(_this__u8e3s4) {
1841
- var tmp;
1842
- if (_this__u8e3s4 instanceof WsLiteral) {
1843
- tmp = new Literal(_this__u8e3s4.value);
1844
- } else {
1845
- if (_this__u8e3s4 instanceof WsParam) {
1846
- tmp = new Param(consume_12(_this__u8e3s4.identifier), consume_11(_this__u8e3s4.reference));
1847
- } else {
1848
- noWhenBranchMatchedException();
1849
- }
1850
- }
1851
- return tmp;
1852
- }
1853
- function consume_8(_this__u8e3s4) {
1854
- return new Field(consume_12(_this__u8e3s4.identifier), consume_11(_this__u8e3s4.reference));
1855
- }
1856
- function consume_9(_this__u8e3s4) {
1857
- var tmp0_safe_receiver = _this__u8e3s4.content;
1858
- return new Request(tmp0_safe_receiver == null ? null : consume_13(tmp0_safe_receiver));
1859
- }
1860
- function consume_10(_this__u8e3s4) {
1861
- // Inline function 'kotlin.collections.map' call
1862
- var this_0 = _this__u8e3s4.headers;
1863
- // Inline function 'kotlin.collections.mapTo' call
1864
- var destination = ArrayList_init_$Create$(this_0.length);
1865
- var inductionVariable = 0;
1866
- var last = this_0.length;
1867
- while (inductionVariable < last) {
1868
- var item = this_0[inductionVariable];
1869
- inductionVariable = inductionVariable + 1 | 0;
1870
- // Inline function 'community.flock.wirespec.compiler.lib.consume.<anonymous>' call
1871
- var tmp$ret$0 = consume_8(item);
1872
- destination.e(tmp$ret$0);
1873
- }
1874
- var tmp = destination;
1875
- var tmp0_safe_receiver = _this__u8e3s4.content;
1876
- return new Response(_this__u8e3s4.status, tmp, tmp0_safe_receiver == null ? null : consume_13(tmp0_safe_receiver));
1877
- }
1878
- function consume_11(_this__u8e3s4) {
1879
- var tmp;
1880
- if (_this__u8e3s4 instanceof WsAny) {
1881
- tmp = new Any(_this__u8e3s4.u2f_1);
1882
- } else {
1883
- if (_this__u8e3s4 instanceof WsUnit) {
1884
- tmp = new Unit(_this__u8e3s4.w2f_1);
1885
- } else {
1886
- if (_this__u8e3s4 instanceof WsCustom) {
1887
- tmp = new Custom(_this__u8e3s4.value, _this__u8e3s4.a2g_1);
1888
- } else {
1889
- if (_this__u8e3s4 instanceof WsPrimitive) {
1890
- tmp = new Primitive(consume_14(_this__u8e3s4.type), _this__u8e3s4.c2g_1);
1891
- } else {
1892
- if (_this__u8e3s4 instanceof WsDict) {
1893
- tmp = new Dict(consume_11(_this__u8e3s4.reference), _this__u8e3s4.z2f_1);
1894
- } else {
1895
- if (_this__u8e3s4 instanceof WsIterable) {
1896
- tmp = new Iterable(consume_11(_this__u8e3s4.reference), _this__u8e3s4.x2f_1);
1897
- } else {
1898
- noWhenBranchMatchedException();
1899
- }
1900
- }
1901
- }
1902
- }
1903
- }
1904
- }
1905
- return tmp;
1906
- }
1907
- function produce_13(_this__u8e3s4) {
1908
- return new WsContent(_this__u8e3s4.c24_1, produce_7(_this__u8e3s4.d24_1));
1909
- }
1910
- function consume_12(_this__u8e3s4) {
1911
- return new FieldIdentifier(_this__u8e3s4.value);
1912
- }
1913
- function consume_13(_this__u8e3s4) {
1914
- return new Content(_this__u8e3s4.type, consume_11(_this__u8e3s4.reference));
1915
- }
1916
- function consume_14(_this__u8e3s4) {
1917
- var tmp;
1918
- switch (_this__u8e3s4.q2_1) {
1919
- case 0:
1920
- tmp = String_instance;
1921
- break;
1922
- case 1:
1923
- tmp = new Integer();
1924
- break;
1925
- case 2:
1926
- tmp = new Number_0();
1927
- break;
1928
- case 3:
1929
- tmp = Boolean_instance;
1930
- break;
1931
- case 4:
1932
- tmp = Bytes_instance;
1933
- break;
1934
- default:
1935
- noWhenBranchMatchedException();
1936
- break;
1937
- }
1938
- return tmp;
1939
- }
1940
- function WsMethod_GET_getInstance() {
1941
- WsMethod_initEntries();
1942
- return WsMethod_GET_instance;
1943
- }
1944
- function WsMethod_POST_getInstance() {
1945
- WsMethod_initEntries();
1946
- return WsMethod_POST_instance;
1947
- }
1948
- function WsMethod_PUT_getInstance() {
1949
- WsMethod_initEntries();
1950
- return WsMethod_PUT_instance;
1951
- }
1952
- function WsMethod_DELETE_getInstance() {
1953
- WsMethod_initEntries();
1954
- return WsMethod_DELETE_instance;
1955
- }
1956
- function WsMethod_OPTIONS_getInstance() {
1957
- WsMethod_initEntries();
1958
- return WsMethod_OPTIONS_instance;
1959
- }
1960
- function WsMethod_HEAD_getInstance() {
1961
- WsMethod_initEntries();
1962
- return WsMethod_HEAD_instance;
1963
- }
1964
- function WsMethod_PATCH_getInstance() {
1965
- WsMethod_initEntries();
1966
- return WsMethod_PATCH_instance;
1967
- }
1968
- function WsMethod_TRACE_getInstance() {
1969
- WsMethod_initEntries();
1970
- return WsMethod_TRACE_instance;
1971
- }
1972
- function WsPrimitiveType_String_getInstance() {
1973
- WsPrimitiveType_initEntries();
1974
- return WsPrimitiveType_String_instance;
1975
- }
1976
- function WsPrimitiveType_Integer_getInstance() {
1977
- WsPrimitiveType_initEntries();
1978
- return WsPrimitiveType_Integer_instance;
1979
- }
1980
- function WsPrimitiveType_Number_getInstance() {
1981
- WsPrimitiveType_initEntries();
1982
- return WsPrimitiveType_Number_instance;
1983
- }
1984
- function WsPrimitiveType_Boolean_getInstance() {
1985
- WsPrimitiveType_initEntries();
1986
- return WsPrimitiveType_Boolean_instance;
1987
- }
1988
- function WsPrimitiveType_Bytes_getInstance() {
1989
- WsPrimitiveType_initEntries();
1990
- return WsPrimitiveType_Bytes_instance;
1991
- }
1992
- function WsCompilationResult(result, errors) {
1993
- result = result === VOID ? null : result;
1994
- var tmp;
1995
- if (errors === VOID) {
1996
- // Inline function 'kotlin.emptyArray' call
1997
- tmp = [];
1998
- } else {
1999
- tmp = errors;
2000
- }
2001
- errors = tmp;
2002
- this.result = result;
2003
- this.errors = errors;
2004
- }
2005
- protoOf(WsCompilationResult).l2g = function () {
2006
- return this.result;
2007
- };
2008
- protoOf(WsCompilationResult).m2g = function () {
2009
- return this.errors;
2010
- };
2011
- function WsCompiled(value) {
2012
- this.value = value;
2013
- }
2014
- protoOf(WsCompiled).b1 = function () {
2015
- return this.value;
2016
- };
2017
- function WsCompiledFile(name, value) {
2018
- this.name = name;
2019
- this.value = value;
2020
- }
2021
- protoOf(WsCompiledFile).r2 = function () {
2022
- return this.name;
2023
- };
2024
- protoOf(WsCompiledFile).b1 = function () {
2025
- return this.value;
2026
- };
2027
- function WsParseResult(result, errors) {
2028
- result = result === VOID ? null : result;
2029
- errors = errors === VOID ? null : errors;
2030
- this.result = result;
2031
- this.errors = errors;
2032
- }
2033
- protoOf(WsParseResult).l2g = function () {
2034
- return this.result;
2035
- };
2036
- protoOf(WsParseResult).m2g = function () {
2037
- return this.errors;
2038
- };
2039
- function WsStringResult(result, errors) {
2040
- result = result === VOID ? null : result;
2041
- errors = errors === VOID ? null : errors;
2042
- this.result = result;
2043
- this.errors = errors;
2044
- }
2045
- protoOf(WsStringResult).l2g = function () {
2046
- return this.result;
2047
- };
2048
- protoOf(WsStringResult).m2g = function () {
2049
- return this.errors;
2050
- };
2051
- function WsEmitted(typeName, result) {
2052
- this.typeName = typeName;
2053
- this.result = result;
2054
- }
2055
- protoOf(WsEmitted).n2g = function () {
2056
- return this.typeName;
2057
- };
2058
- protoOf(WsEmitted).l2g = function () {
2059
- return this.result;
2060
- };
2061
- function produce_14(_this__u8e3s4) {
2062
- var tmp;
2063
- if (_this__u8e3s4 instanceof Left) {
2064
- // Inline function 'kotlin.collections.toTypedArray' call
2065
- // Inline function 'arrow.core.NonEmptyList.map' call
2066
- var this_0 = _this__u8e3s4.tj_1;
2067
- // Inline function 'community.flock.wirespec.compiler.lib.produce.<anonymous>' call
2068
- var it = this_0.dk_1;
2069
- var tmp_0 = produce_20(it);
2070
- // Inline function 'kotlin.collections.map' call
2071
- var this_1 = this_0.ek_1;
2072
- // Inline function 'kotlin.collections.mapTo' call
2073
- var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_1, 10));
2074
- var tmp0_iterator = this_1.g();
2075
- while (tmp0_iterator.h()) {
2076
- var item = tmp0_iterator.i();
2077
- // Inline function 'community.flock.wirespec.compiler.lib.produce.<anonymous>' call
2078
- var tmp$ret$1 = produce_20(item);
2079
- destination.e(tmp$ret$1);
2080
- }
2081
- var this_2 = new NonEmptyList(tmp_0, destination);
2082
- var tmp$ret$5 = copyToArray(this_2);
2083
- tmp = new WsParseResult(VOID, tmp$ret$5);
2084
- } else {
2085
- if (_this__u8e3s4 instanceof Right) {
2086
- // Inline function 'kotlin.collections.toTypedArray' call
2087
- // Inline function 'kotlin.collections.map' call
2088
- var this_3 = _this__u8e3s4.zj_1;
2089
- // Inline function 'kotlin.collections.mapTo' call
2090
- var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(this_3, 10));
2091
- var tmp0_iterator_0 = this_3.g();
2092
- while (tmp0_iterator_0.h()) {
2093
- var item_0 = tmp0_iterator_0.i();
2094
- // Inline function 'community.flock.wirespec.compiler.lib.produce.<anonymous>' call
2095
- var tmp$ret$6 = produce(item_0);
2096
- destination_0.e(tmp$ret$6);
2097
- }
2098
- var tmp$ret$9 = copyToArray(destination_0);
2099
- tmp = new WsParseResult(tmp$ret$9);
2100
- } else {
2101
- noWhenBranchMatchedException();
2102
- }
2103
- }
2104
- return tmp;
2105
- }
2106
- function produce_15(_this__u8e3s4) {
2107
- var tmp;
2108
- if (_this__u8e3s4 instanceof Left) {
2109
- // Inline function 'kotlin.collections.toTypedArray' call
2110
- // Inline function 'arrow.core.NonEmptyList.map' call
2111
- var this_0 = _this__u8e3s4.tj_1;
2112
- // Inline function 'community.flock.wirespec.compiler.lib.produce.<anonymous>' call
2113
- var it = this_0.dk_1;
2114
- var tmp_0 = produce_20(it);
2115
- // Inline function 'kotlin.collections.map' call
2116
- var this_1 = this_0.ek_1;
2117
- // Inline function 'kotlin.collections.mapTo' call
2118
- var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_1, 10));
2119
- var tmp0_iterator = this_1.g();
2120
- while (tmp0_iterator.h()) {
2121
- var item = tmp0_iterator.i();
2122
- // Inline function 'community.flock.wirespec.compiler.lib.produce.<anonymous>' call
2123
- var tmp$ret$1 = produce_20(item);
2124
- destination.e(tmp$ret$1);
2125
- }
2126
- var this_2 = new NonEmptyList(tmp_0, destination);
2127
- var tmp$ret$5 = copyToArray(this_2);
2128
- tmp = new WsStringResult(VOID, tmp$ret$5);
2129
- } else {
2130
- if (_this__u8e3s4 instanceof Right) {
2131
- tmp = new WsStringResult(_this__u8e3s4.zj_1);
2132
- } else {
2133
- noWhenBranchMatchedException();
2134
- }
2135
- }
2136
- return tmp;
2137
- }
2138
- function produce_16(_this__u8e3s4) {
2139
- return new WsEmitted(_this__u8e3s4.q25_1, _this__u8e3s4.r25_1);
2140
- }
2141
- function WsTokenResult(tokens, error) {
2142
- tokens = tokens === VOID ? null : tokens;
2143
- error = error === VOID ? null : error;
2144
- this.tokens = tokens;
2145
- this.error = error;
2146
- }
2147
- protoOf(WsTokenResult).o2g = function () {
2148
- return this.tokens;
2149
- };
2150
- protoOf(WsTokenResult).p2g = function () {
2151
- return this.error;
2152
- };
2153
- protoOf(WsTokenResult).qd = function () {
2154
- return this.tokens;
2155
- };
2156
- protoOf(WsTokenResult).rd = function () {
2157
- return this.error;
2158
- };
2159
- protoOf(WsTokenResult).q2g = function (tokens, error) {
2160
- return new WsTokenResult(tokens, error);
2161
- };
2162
- protoOf(WsTokenResult).copy = function (tokens, error, $super) {
2163
- tokens = tokens === VOID ? this.tokens : tokens;
2164
- error = error === VOID ? this.error : error;
2165
- return this.q2g(tokens, error);
2166
- };
2167
- protoOf(WsTokenResult).toString = function () {
2168
- return 'WsTokenResult(tokens=' + toString_0(this.tokens) + ', error=' + toString_0(this.error) + ')';
2169
- };
2170
- protoOf(WsTokenResult).hashCode = function () {
2171
- var result = this.tokens == null ? 0 : this.tokens.hashCode();
2172
- result = imul(result, 31) + (this.error == null ? 0 : this.error.hashCode()) | 0;
2173
- return result;
2174
- };
2175
- protoOf(WsTokenResult).equals = function (other) {
2176
- if (this === other)
2177
- return true;
2178
- if (!(other instanceof WsTokenResult))
2179
- return false;
2180
- var tmp0_other_with_cast = other instanceof WsTokenResult ? other : THROW_CCE();
2181
- if (!equals(this.tokens, tmp0_other_with_cast.tokens))
2182
- return false;
2183
- if (!equals(this.error, tmp0_other_with_cast.error))
2184
- return false;
2185
- return true;
2186
- };
2187
- function WsTokens(value) {
2188
- this.value = value;
2189
- }
2190
- protoOf(WsTokens).b1 = function () {
2191
- return this.value;
2192
- };
2193
- protoOf(WsTokens).equals = function (other) {
2194
- if (this === other)
2195
- return true;
2196
- if (other == null || !(this.constructor == other.constructor))
2197
- return false;
2198
- if (!(other instanceof WsTokens))
2199
- THROW_CCE();
2200
- if (!contentEquals(this.value, other.value))
2201
- return false;
2202
- return true;
2203
- };
2204
- protoOf(WsTokens).hashCode = function () {
2205
- return contentHashCode(this.value);
2206
- };
2207
- protoOf(WsTokens).qd = function () {
2208
- return this.value;
2209
- };
2210
- protoOf(WsTokens).r2g = function (value) {
2211
- return new WsTokens(value);
2212
- };
2213
- protoOf(WsTokens).copy = function (value, $super) {
2214
- value = value === VOID ? this.value : value;
2215
- return this.r2g(value);
2216
- };
2217
- protoOf(WsTokens).toString = function () {
2218
- return 'WsTokens(value=' + toString(this.value) + ')';
2219
- };
2220
- function WsToken(type, value, coordinates) {
2221
- coordinates = coordinates === VOID ? new WsCoordinates() : coordinates;
2222
- this.type = type;
2223
- this.value = value;
2224
- this.coordinates = coordinates;
2225
- }
2226
- protoOf(WsToken).d2g = function () {
2227
- return this.type;
2228
- };
2229
- protoOf(WsToken).b1 = function () {
2230
- return this.value;
2231
- };
2232
- protoOf(WsToken).s2g = function () {
2233
- return this.coordinates;
2234
- };
2235
- protoOf(WsToken).qd = function () {
2236
- return this.type;
2237
- };
2238
- protoOf(WsToken).rd = function () {
2239
- return this.value;
2240
- };
2241
- protoOf(WsToken).ph = function () {
2242
- return this.coordinates;
2243
- };
2244
- protoOf(WsToken).t2g = function (type, value, coordinates) {
2245
- return new WsToken(type, value, coordinates);
2246
- };
2247
- protoOf(WsToken).copy = function (type, value, coordinates, $super) {
2248
- type = type === VOID ? this.type : type;
2249
- value = value === VOID ? this.value : value;
2250
- coordinates = coordinates === VOID ? this.coordinates : coordinates;
2251
- return this.t2g(type, value, coordinates);
2252
- };
2253
- protoOf(WsToken).toString = function () {
2254
- return 'WsToken(type=' + this.type + ', value=' + this.value + ', coordinates=' + this.coordinates.toString() + ')';
2255
- };
2256
- protoOf(WsToken).hashCode = function () {
2257
- var result = getStringHashCode(this.type);
2258
- result = imul(result, 31) + getStringHashCode(this.value) | 0;
2259
- result = imul(result, 31) + this.coordinates.hashCode() | 0;
2260
- return result;
2261
- };
2262
- protoOf(WsToken).equals = function (other) {
2263
- if (this === other)
2264
- return true;
2265
- if (!(other instanceof WsToken))
2266
- return false;
2267
- var tmp0_other_with_cast = other instanceof WsToken ? other : THROW_CCE();
2268
- if (!(this.type === tmp0_other_with_cast.type))
2269
- return false;
2270
- if (!(this.value === tmp0_other_with_cast.value))
2271
- return false;
2272
- if (!this.coordinates.equals(tmp0_other_with_cast.coordinates))
2273
- return false;
2274
- return true;
2275
- };
2276
- function WsCoordinates(line, position, idxAndLength) {
2277
- line = line === VOID ? 1 : line;
2278
- position = position === VOID ? 1 : position;
2279
- idxAndLength = idxAndLength === VOID ? new WsIndex() : idxAndLength;
2280
- this.line = line;
2281
- this.position = position;
2282
- this.idxAndLength = idxAndLength;
2283
- }
2284
- protoOf(WsCoordinates).u2g = function () {
2285
- return this.line;
2286
- };
2287
- protoOf(WsCoordinates).v2g = function () {
2288
- return this.position;
2289
- };
2290
- protoOf(WsCoordinates).w2g = function () {
2291
- return this.idxAndLength;
2292
- };
2293
- protoOf(WsCoordinates).qd = function () {
2294
- return this.line;
2295
- };
2296
- protoOf(WsCoordinates).rd = function () {
2297
- return this.position;
2298
- };
2299
- protoOf(WsCoordinates).ph = function () {
2300
- return this.idxAndLength;
2301
- };
2302
- protoOf(WsCoordinates).x2g = function (line, position, idxAndLength) {
2303
- return new WsCoordinates(line, position, idxAndLength);
2304
- };
2305
- protoOf(WsCoordinates).copy = function (line, position, idxAndLength, $super) {
2306
- line = line === VOID ? this.line : line;
2307
- position = position === VOID ? this.position : position;
2308
- idxAndLength = idxAndLength === VOID ? this.idxAndLength : idxAndLength;
2309
- return this.x2g(line, position, idxAndLength);
2310
- };
2311
- protoOf(WsCoordinates).toString = function () {
2312
- return 'WsCoordinates(line=' + this.line + ', position=' + this.position + ', idxAndLength=' + this.idxAndLength.toString() + ')';
2313
- };
2314
- protoOf(WsCoordinates).hashCode = function () {
2315
- var result = this.line;
2316
- result = imul(result, 31) + this.position | 0;
2317
- result = imul(result, 31) + this.idxAndLength.hashCode() | 0;
2318
- return result;
2319
- };
2320
- protoOf(WsCoordinates).equals = function (other) {
2321
- if (this === other)
2322
- return true;
2323
- if (!(other instanceof WsCoordinates))
2324
- return false;
2325
- var tmp0_other_with_cast = other instanceof WsCoordinates ? other : THROW_CCE();
2326
- if (!(this.line === tmp0_other_with_cast.line))
2327
- return false;
2328
- if (!(this.position === tmp0_other_with_cast.position))
2329
- return false;
2330
- if (!this.idxAndLength.equals(tmp0_other_with_cast.idxAndLength))
2331
- return false;
2332
- return true;
2333
- };
2334
- function WsIndex(idx, length) {
2335
- idx = idx === VOID ? 0 : idx;
2336
- length = length === VOID ? 0 : length;
2337
- this.idx = idx;
2338
- this.length = length;
2339
- }
2340
- protoOf(WsIndex).y2g = function () {
2341
- return this.idx;
2342
- };
2343
- protoOf(WsIndex).a = function () {
2344
- return this.length;
2345
- };
2346
- protoOf(WsIndex).qd = function () {
2347
- return this.idx;
2348
- };
2349
- protoOf(WsIndex).rd = function () {
2350
- return this.length;
2351
- };
2352
- protoOf(WsIndex).z2g = function (idx, length) {
2353
- return new WsIndex(idx, length);
2354
- };
2355
- protoOf(WsIndex).copy = function (idx, length, $super) {
2356
- idx = idx === VOID ? this.idx : idx;
2357
- length = length === VOID ? this.length : length;
2358
- return this.z2g(idx, length);
2359
- };
2360
- protoOf(WsIndex).toString = function () {
2361
- return 'WsIndex(idx=' + this.idx + ', length=' + this.length + ')';
2362
- };
2363
- protoOf(WsIndex).hashCode = function () {
2364
- var result = this.idx;
2365
- result = imul(result, 31) + this.length | 0;
2366
- return result;
2367
- };
2368
- protoOf(WsIndex).equals = function (other) {
2369
- if (this === other)
2370
- return true;
2371
- if (!(other instanceof WsIndex))
2372
- return false;
2373
- var tmp0_other_with_cast = other instanceof WsIndex ? other : THROW_CCE();
2374
- if (!(this.idx === tmp0_other_with_cast.idx))
2375
- return false;
2376
- if (!(this.length === tmp0_other_with_cast.length))
2377
- return false;
2378
- return true;
2379
- };
2380
- function produce_17(_this__u8e3s4) {
2381
- return new WsToken(name(_this__u8e3s4.v27_1), _this__u8e3s4.u27_1, produce_18(_this__u8e3s4.w27_1));
2382
- }
2383
- function produce_18(_this__u8e3s4) {
2384
- return new WsCoordinates(_this__u8e3s4.x27_1, _this__u8e3s4.y27_1, produce_19(_this__u8e3s4.z27_1));
2385
- }
2386
- function produce_19(_this__u8e3s4) {
2387
- return new WsIndex(_this__u8e3s4.p29_1, _this__u8e3s4.q29_1);
2388
- }
2389
- function WsError(line, position, index, length, value) {
2390
- this.line = line;
2391
- this.position = position;
2392
- this.index = index;
2393
- this.length = length;
2394
- this.value = value;
2395
- }
2396
- protoOf(WsError).u2g = function () {
2397
- return this.line;
2398
- };
2399
- protoOf(WsError).v2g = function () {
2400
- return this.position;
2401
- };
2402
- protoOf(WsError).a2h = function () {
2403
- return this.index;
2404
- };
2405
- protoOf(WsError).a = function () {
2406
- return this.length;
2407
- };
2408
- protoOf(WsError).b1 = function () {
2409
- return this.value;
2410
- };
2411
- protoOf(WsError).qd = function () {
2412
- return this.line;
2413
- };
2414
- protoOf(WsError).rd = function () {
2415
- return this.position;
2416
- };
2417
- protoOf(WsError).ph = function () {
2418
- return this.index;
2419
- };
2420
- protoOf(WsError).z2e = function () {
2421
- return this.length;
2422
- };
2423
- protoOf(WsError).a2f = function () {
2424
- return this.value;
2425
- };
2426
- protoOf(WsError).b2h = function (line, position, index, length, value) {
2427
- return new WsError(line, position, index, length, value);
2428
- };
2429
- protoOf(WsError).copy = function (line, position, index, length, value, $super) {
2430
- line = line === VOID ? this.line : line;
2431
- position = position === VOID ? this.position : position;
2432
- index = index === VOID ? this.index : index;
2433
- length = length === VOID ? this.length : length;
2434
- value = value === VOID ? this.value : value;
2435
- return this.b2h(line, position, index, length, value);
2436
- };
2437
- protoOf(WsError).toString = function () {
2438
- return 'WsError(line=' + this.line + ', position=' + this.position + ', index=' + this.index + ', length=' + this.length + ', value=' + this.value + ')';
2439
- };
2440
- protoOf(WsError).hashCode = function () {
2441
- var result = this.line;
2442
- result = imul(result, 31) + this.position | 0;
2443
- result = imul(result, 31) + this.index | 0;
2444
- result = imul(result, 31) + this.length | 0;
2445
- result = imul(result, 31) + getStringHashCode(this.value) | 0;
2446
- return result;
2447
- };
2448
- protoOf(WsError).equals = function (other) {
2449
- if (this === other)
2450
- return true;
2451
- if (!(other instanceof WsError))
2452
- return false;
2453
- var tmp0_other_with_cast = other instanceof WsError ? other : THROW_CCE();
2454
- if (!(this.line === tmp0_other_with_cast.line))
2455
- return false;
2456
- if (!(this.position === tmp0_other_with_cast.position))
2457
- return false;
2458
- if (!(this.index === tmp0_other_with_cast.index))
2459
- return false;
2460
- if (!(this.length === tmp0_other_with_cast.length))
2461
- return false;
2462
- if (!(this.value === tmp0_other_with_cast.value))
2463
- return false;
2464
- return true;
2465
- };
2466
- function produce_20(_this__u8e3s4) {
2467
- var tmp = _this__u8e3s4.a28_1.z27_1.p29_1 - _this__u8e3s4.a28_1.z27_1.q29_1 | 0;
2468
- var tmp0_elvis_lhs = _this__u8e3s4.message;
2469
- return new WsError(_this__u8e3s4.a28_1.x27_1, _this__u8e3s4.a28_1.y27_1, tmp, _this__u8e3s4.a28_1.z27_1.q29_1, tmp0_elvis_lhs == null ? 'No message' : tmp0_elvis_lhs);
2470
- }
2471
- //region block: post-declaration
2472
- defineProp(protoOf(WsType), 'identifier', function () {
2473
- return this.v28();
2474
- });
2475
- defineProp(protoOf(WsEndpoint), 'identifier', function () {
2476
- return this.v28();
2477
- });
2478
- defineProp(protoOf(WsEnum), 'identifier', function () {
2479
- return this.v28();
2480
- });
2481
- defineProp(protoOf(WsUnion), 'identifier', function () {
2482
- return this.v28();
2483
- });
2484
- defineProp(protoOf(WsChannel), 'identifier', function () {
2485
- return this.v28();
2486
- });
2487
- defineProp(protoOf(WsRefined), 'identifier', function () {
2488
- return this.v28();
2489
- });
2490
- defineProp(protoOf(WsMethod), 'name', protoOf(WsMethod).r2);
2491
- defineProp(protoOf(WsMethod), 'ordinal', protoOf(WsMethod).s2);
2492
- defineProp(protoOf(WsAny), 'isNullable', function () {
2493
- return this.vl();
2494
- });
2495
- defineProp(protoOf(WsUnit), 'isNullable', function () {
2496
- return this.vl();
2497
- });
2498
- defineProp(protoOf(WsIterable), 'isNullable', function () {
2499
- return this.vl();
2500
- });
2501
- defineProp(protoOf(WsDict), 'isNullable', function () {
2502
- return this.vl();
2503
- });
2504
- defineProp(protoOf(WsCustom), 'isNullable', function () {
2505
- return this.vl();
2506
- });
2507
- defineProp(protoOf(WsPrimitive), 'isNullable', function () {
2508
- return this.vl();
2509
- });
2510
- defineProp(protoOf(WsPrimitiveType), 'name', protoOf(WsPrimitiveType).r2);
2511
- defineProp(protoOf(WsPrimitiveType), 'ordinal', protoOf(WsPrimitiveType).s2);
2512
- //endregion
2513
- //region block: exports
2514
- function $jsExportAll$(_) {
2515
- var $community = _.community || (_.community = {});
2516
- var $community$flock = $community.flock || ($community.flock = {});
2517
- var $community$flock$wirespec = $community$flock.wirespec || ($community$flock.wirespec = {});
2518
- var $community$flock$wirespec$compiler = $community$flock$wirespec.compiler || ($community$flock$wirespec.compiler = {});
2519
- var $community$flock$wirespec$compiler$lib = $community$flock$wirespec$compiler.lib || ($community$flock$wirespec$compiler.lib = {});
2520
- $community$flock$wirespec$compiler$lib.WsType = WsType;
2521
- $community$flock$wirespec$compiler$lib.WsShape = WsShape;
2522
- $community$flock$wirespec$compiler$lib.WsEndpoint = WsEndpoint;
2523
- $community$flock$wirespec$compiler$lib.WsEnum = WsEnum;
2524
- $community$flock$wirespec$compiler$lib.WsUnion = WsUnion;
2525
- $community$flock$wirespec$compiler$lib.WsChannel = WsChannel;
2526
- $community$flock$wirespec$compiler$lib.WsRefined = WsRefined;
2527
- $community$flock$wirespec$compiler$lib.WsMethod = WsMethod;
2528
- $community$flock$wirespec$compiler$lib.WsMethod.values = values;
2529
- $community$flock$wirespec$compiler$lib.WsMethod.valueOf = valueOf;
2530
- defineProp($community$flock$wirespec$compiler$lib.WsMethod, 'GET', WsMethod_GET_getInstance);
2531
- defineProp($community$flock$wirespec$compiler$lib.WsMethod, 'POST', WsMethod_POST_getInstance);
2532
- defineProp($community$flock$wirespec$compiler$lib.WsMethod, 'PUT', WsMethod_PUT_getInstance);
2533
- defineProp($community$flock$wirespec$compiler$lib.WsMethod, 'DELETE', WsMethod_DELETE_getInstance);
2534
- defineProp($community$flock$wirespec$compiler$lib.WsMethod, 'OPTIONS', WsMethod_OPTIONS_getInstance);
2535
- defineProp($community$flock$wirespec$compiler$lib.WsMethod, 'HEAD', WsMethod_HEAD_getInstance);
2536
- defineProp($community$flock$wirespec$compiler$lib.WsMethod, 'PATCH', WsMethod_PATCH_getInstance);
2537
- defineProp($community$flock$wirespec$compiler$lib.WsMethod, 'TRACE', WsMethod_TRACE_getInstance);
2538
- $community$flock$wirespec$compiler$lib.WsLiteral = WsLiteral;
2539
- $community$flock$wirespec$compiler$lib.WsParam = WsParam;
2540
- $community$flock$wirespec$compiler$lib.Shape = Shape_0;
2541
- $community$flock$wirespec$compiler$lib.WsField = WsField;
2542
- $community$flock$wirespec$compiler$lib.WsClassIdentifier = WsClassIdentifier;
2543
- $community$flock$wirespec$compiler$lib.WsFieldIdentifier = WsFieldIdentifier;
2544
- $community$flock$wirespec$compiler$lib.WsAny = WsAny;
2545
- $community$flock$wirespec$compiler$lib.WsUnit = WsUnit;
2546
- $community$flock$wirespec$compiler$lib.WsIterable = WsIterable;
2547
- $community$flock$wirespec$compiler$lib.WsDict = WsDict;
2548
- $community$flock$wirespec$compiler$lib.WsCustom = WsCustom;
2549
- $community$flock$wirespec$compiler$lib.WsPrimitive = WsPrimitive;
2550
- $community$flock$wirespec$compiler$lib.WsPrimitiveType = WsPrimitiveType;
2551
- $community$flock$wirespec$compiler$lib.WsPrimitiveType.values = values_0;
2552
- $community$flock$wirespec$compiler$lib.WsPrimitiveType.valueOf = valueOf_0;
2553
- defineProp($community$flock$wirespec$compiler$lib.WsPrimitiveType, 'String', WsPrimitiveType_String_getInstance);
2554
- defineProp($community$flock$wirespec$compiler$lib.WsPrimitiveType, 'Integer', WsPrimitiveType_Integer_getInstance);
2555
- defineProp($community$flock$wirespec$compiler$lib.WsPrimitiveType, 'Number', WsPrimitiveType_Number_getInstance);
2556
- defineProp($community$flock$wirespec$compiler$lib.WsPrimitiveType, 'Boolean', WsPrimitiveType_Boolean_getInstance);
2557
- defineProp($community$flock$wirespec$compiler$lib.WsPrimitiveType, 'Bytes', WsPrimitiveType_Bytes_getInstance);
2558
- $community$flock$wirespec$compiler$lib.WsRequest = WsRequest;
2559
- $community$flock$wirespec$compiler$lib.WsResponse = WsResponse;
2560
- $community$flock$wirespec$compiler$lib.WsContent = WsContent;
2561
- var $community = _.community || (_.community = {});
2562
- var $community$flock = $community.flock || ($community.flock = {});
2563
- var $community$flock$wirespec = $community$flock.wirespec || ($community$flock.wirespec = {});
2564
- var $community$flock$wirespec$compiler = $community$flock$wirespec.compiler || ($community$flock$wirespec.compiler = {});
2565
- var $community$flock$wirespec$compiler$lib = $community$flock$wirespec$compiler.lib || ($community$flock$wirespec$compiler.lib = {});
2566
- $community$flock$wirespec$compiler$lib.WsCompilationResult = WsCompilationResult;
2567
- $community$flock$wirespec$compiler$lib.WsCompiled = WsCompiled;
2568
- $community$flock$wirespec$compiler$lib.WsCompiledFile = WsCompiledFile;
2569
- $community$flock$wirespec$compiler$lib.WsParseResult = WsParseResult;
2570
- $community$flock$wirespec$compiler$lib.WsStringResult = WsStringResult;
2571
- $community$flock$wirespec$compiler$lib.WsEmitted = WsEmitted;
2572
- var $community = _.community || (_.community = {});
2573
- var $community$flock = $community.flock || ($community.flock = {});
2574
- var $community$flock$wirespec = $community$flock.wirespec || ($community$flock.wirespec = {});
2575
- var $community$flock$wirespec$compiler = $community$flock$wirespec.compiler || ($community$flock$wirespec.compiler = {});
2576
- var $community$flock$wirespec$compiler$lib = $community$flock$wirespec$compiler.lib || ($community$flock$wirespec$compiler.lib = {});
2577
- $community$flock$wirespec$compiler$lib.WsTokenResult = WsTokenResult;
2578
- $community$flock$wirespec$compiler$lib.WsTokens = WsTokens;
2579
- $community$flock$wirespec$compiler$lib.WsToken = WsToken;
2580
- $community$flock$wirespec$compiler$lib.WsCoordinates = WsCoordinates;
2581
- $community$flock$wirespec$compiler$lib.WsIndex = WsIndex;
2582
- var $community = _.community || (_.community = {});
2583
- var $community$flock = $community.flock || ($community.flock = {});
2584
- var $community$flock$wirespec = $community$flock.wirespec || ($community$flock.wirespec = {});
2585
- var $community$flock$wirespec$compiler = $community$flock$wirespec.compiler || ($community$flock$wirespec.compiler = {});
2586
- var $community$flock$wirespec$compiler$lib = $community$flock$wirespec$compiler.lib || ($community$flock$wirespec$compiler.lib = {});
2587
- $community$flock$wirespec$compiler$lib.WsError = WsError;
2588
- }
2589
- $jsExportAll$(_);
2590
- _.$jsExportAll$ = $jsExportAll$;
2591
- _.$_$ = _.$_$ || {};
2592
- _.$_$.a = consume;
2593
- _.$_$.b = produce_14;
2594
- _.$_$.c = produce_0;
2595
- _.$_$.d = produce_15;
2596
- _.$_$.e = produce;
2597
- _.$_$.f = produce_17;
2598
- _.$_$.g = produce_16;
2599
- //endregion
2600
- return _;
2601
- }));
2602
-
2603
- //# sourceMappingURL=wirespec-src-compiler-lib.js.map