@flock/wirespec 0.8.52 → 0.8.54

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.
@@ -40,6 +40,7 @@
40
40
  var ArrayList_init_$Create$ = kotlin_kotlin.$_$.i;
41
41
  var copyToArray = kotlin_kotlin.$_$.d5;
42
42
  var noWhenBranchMatchedException = kotlin_kotlin.$_$.ge;
43
+ var Union = kotlin_community_flock_wirespec_compiler_core.$_$.a1;
43
44
  var Refined = kotlin_community_flock_wirespec_compiler_core.$_$.r;
44
45
  var Enum_0 = kotlin_community_flock_wirespec_compiler_core.$_$.p;
45
46
  var Endpoint = kotlin_community_flock_wirespec_compiler_core.$_$.o;
@@ -50,14 +51,16 @@
50
51
  var Custom = kotlin_community_flock_wirespec_compiler_core.$_$.u;
51
52
  var Unit = kotlin_community_flock_wirespec_compiler_core.$_$.w;
52
53
  var Any = kotlin_community_flock_wirespec_compiler_core.$_$.t;
53
- var Logger = kotlin_community_flock_wirespec_compiler_core.$_$.d1;
54
+ var Logger = kotlin_community_flock_wirespec_compiler_core.$_$.e1;
54
55
  var objectMeta = kotlin_kotlin.$_$.p9;
55
- var Wirespec_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.k1;
56
- var compile = kotlin_community_flock_wirespec_compiler_core.$_$.b1;
57
- var tokenize = kotlin_community_flock_wirespec_compiler_core.$_$.a1;
56
+ var Wirespec_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.l1;
57
+ var compile = kotlin_community_flock_wirespec_compiler_core.$_$.c1;
58
+ var tokenize = kotlin_community_flock_wirespec_compiler_core.$_$.b1;
58
59
  var Parser = kotlin_community_flock_wirespec_compiler_core.$_$.q;
59
60
  var KotlinEmitter = kotlin_community_flock_wirespec_compiler_core.$_$.d;
60
61
  var TypeScriptEmitter = kotlin_community_flock_wirespec_compiler_core.$_$.f;
62
+ var ScalaEmitter = kotlin_community_flock_wirespec_compiler_core.$_$.e;
63
+ var JavaEmitter = kotlin_community_flock_wirespec_compiler_core.$_$.c;
61
64
  var WirespecEmitter = kotlin_community_flock_wirespec_compiler_core.$_$.g;
62
65
  var Companion_getInstance = kotlin_community_flock_wirespec_converter_openapi.$_$.a;
63
66
  var Companion_getInstance_0 = kotlin_community_flock_wirespec_converter_openapi.$_$.b;
@@ -99,6 +102,10 @@
99
102
  setMetadataFor(Companion_1, 'Companion', objectMeta);
100
103
  setMetadataFor(WsToTypeScript, 'WsToTypeScript', classMeta, Compiler);
101
104
  setMetadataFor(Companion_2, 'Companion', objectMeta);
105
+ setMetadataFor(WsToScala, 'WsToScala', classMeta, Compiler);
106
+ setMetadataFor(Companion_3, 'Companion', objectMeta);
107
+ setMetadataFor(WsToJava, 'WsToJava', classMeta, Compiler);
108
+ setMetadataFor(Companion_4, 'Companion', objectMeta);
102
109
  setMetadataFor(WsToWirespec, 'WsToWirespec', classMeta, Compiler);
103
110
  setMetadataFor(OpenApiV2Parser, 'OpenApiV2Parser', objectMeta);
104
111
  setMetadataFor(OpenApiV3Parser, 'OpenApiV3Parser', objectMeta);
@@ -118,34 +125,34 @@
118
125
  function WsNode() {
119
126
  }
120
127
  function WsType(name, shape) {
121
- this.p23_1 = name;
128
+ this.g23_1 = name;
122
129
  this.shape = shape;
123
130
  }
124
131
  protoOf(WsType).bh = function () {
125
- return this.p23_1;
132
+ return this.g23_1;
126
133
  };
127
- protoOf(WsType).q23 = function () {
134
+ protoOf(WsType).h23 = function () {
128
135
  return this.shape;
129
136
  };
130
137
  protoOf(WsType).e3 = function () {
131
- return this.p23_1;
138
+ return this.g23_1;
132
139
  };
133
140
  protoOf(WsType).f3 = function () {
134
141
  return this.shape;
135
142
  };
136
- protoOf(WsType).r23 = function (name, shape) {
143
+ protoOf(WsType).i23 = function (name, shape) {
137
144
  return new WsType(name, shape);
138
145
  };
139
146
  protoOf(WsType).copy = function (name, shape, $super) {
140
- name = name === VOID ? this.p23_1 : name;
147
+ name = name === VOID ? this.g23_1 : name;
141
148
  shape = shape === VOID ? this.shape : shape;
142
- return this.r23(name, shape);
149
+ return this.i23(name, shape);
143
150
  };
144
151
  protoOf(WsType).toString = function () {
145
- return 'WsType(name=' + this.p23_1 + ', shape=' + this.shape + ')';
152
+ return 'WsType(name=' + this.g23_1 + ', shape=' + this.shape + ')';
146
153
  };
147
154
  protoOf(WsType).hashCode = function () {
148
- var result = getStringHashCode(this.p23_1);
155
+ var result = getStringHashCode(this.g23_1);
149
156
  result = imul(result, 31) + this.shape.hashCode() | 0;
150
157
  return result;
151
158
  };
@@ -155,7 +162,7 @@
155
162
  if (!(other instanceof WsType))
156
163
  return false;
157
164
  var tmp0_other_with_cast = other instanceof WsType ? other : THROW_CCE();
158
- if (!(this.p23_1 === tmp0_other_with_cast.p23_1))
165
+ if (!(this.g23_1 === tmp0_other_with_cast.g23_1))
159
166
  return false;
160
167
  if (!this.shape.equals(tmp0_other_with_cast.shape))
161
168
  return false;
@@ -170,12 +177,12 @@
170
177
  protoOf(WsShape).e3 = function () {
171
178
  return this.value;
172
179
  };
173
- protoOf(WsShape).s23 = function (value) {
180
+ protoOf(WsShape).j23 = function (value) {
174
181
  return new WsShape(value);
175
182
  };
176
183
  protoOf(WsShape).copy = function (value, $super) {
177
184
  value = value === VOID ? this.value : value;
178
- return this.s23(value);
185
+ return this.j23(value);
179
186
  };
180
187
  protoOf(WsShape).toString = function () {
181
188
  return 'WsShape(value=' + toString(this.value) + ')';
@@ -194,7 +201,7 @@
194
201
  return true;
195
202
  };
196
203
  function WsEndpoint(name, method, path, query, headers, cookies, requests, responses) {
197
- this.t23_1 = name;
204
+ this.k23_1 = name;
198
205
  this.method = method;
199
206
  this.path = path;
200
207
  this.query = query;
@@ -204,31 +211,31 @@
204
211
  this.responses = responses;
205
212
  }
206
213
  protoOf(WsEndpoint).bh = function () {
207
- return this.t23_1;
214
+ return this.k23_1;
208
215
  };
209
- protoOf(WsEndpoint).u23 = function () {
216
+ protoOf(WsEndpoint).l23 = function () {
210
217
  return this.method;
211
218
  };
212
- protoOf(WsEndpoint).v23 = function () {
219
+ protoOf(WsEndpoint).m23 = function () {
213
220
  return this.path;
214
221
  };
215
- protoOf(WsEndpoint).w23 = function () {
222
+ protoOf(WsEndpoint).n23 = function () {
216
223
  return this.query;
217
224
  };
218
- protoOf(WsEndpoint).x23 = function () {
225
+ protoOf(WsEndpoint).o23 = function () {
219
226
  return this.headers;
220
227
  };
221
- protoOf(WsEndpoint).y23 = function () {
228
+ protoOf(WsEndpoint).p23 = function () {
222
229
  return this.cookies;
223
230
  };
224
- protoOf(WsEndpoint).z23 = function () {
231
+ protoOf(WsEndpoint).q23 = function () {
225
232
  return this.requests;
226
233
  };
227
- protoOf(WsEndpoint).a24 = function () {
234
+ protoOf(WsEndpoint).r23 = function () {
228
235
  return this.responses;
229
236
  };
230
237
  protoOf(WsEndpoint).e3 = function () {
231
- return this.t23_1;
238
+ return this.k23_1;
232
239
  };
233
240
  protoOf(WsEndpoint).f3 = function () {
234
241
  return this.method;
@@ -236,26 +243,26 @@
236
243
  protoOf(WsEndpoint).c8 = function () {
237
244
  return this.path;
238
245
  };
239
- protoOf(WsEndpoint).b24 = function () {
246
+ protoOf(WsEndpoint).s23 = function () {
240
247
  return this.query;
241
248
  };
242
- protoOf(WsEndpoint).c24 = function () {
249
+ protoOf(WsEndpoint).t23 = function () {
243
250
  return this.headers;
244
251
  };
245
- protoOf(WsEndpoint).d24 = function () {
252
+ protoOf(WsEndpoint).u23 = function () {
246
253
  return this.cookies;
247
254
  };
248
- protoOf(WsEndpoint).e24 = function () {
255
+ protoOf(WsEndpoint).v23 = function () {
249
256
  return this.requests;
250
257
  };
251
- protoOf(WsEndpoint).f24 = function () {
258
+ protoOf(WsEndpoint).w23 = function () {
252
259
  return this.responses;
253
260
  };
254
- protoOf(WsEndpoint).g24 = function (name, method, path, query, headers, cookies, requests, responses) {
261
+ protoOf(WsEndpoint).x23 = function (name, method, path, query, headers, cookies, requests, responses) {
255
262
  return new WsEndpoint(name, method, path, query, headers, cookies, requests, responses);
256
263
  };
257
264
  protoOf(WsEndpoint).copy = function (name, method, path, query, headers, cookies, requests, responses, $super) {
258
- name = name === VOID ? this.t23_1 : name;
265
+ name = name === VOID ? this.k23_1 : name;
259
266
  method = method === VOID ? this.method : method;
260
267
  path = path === VOID ? this.path : path;
261
268
  query = query === VOID ? this.query : query;
@@ -263,13 +270,13 @@
263
270
  cookies = cookies === VOID ? this.cookies : cookies;
264
271
  requests = requests === VOID ? this.requests : requests;
265
272
  responses = responses === VOID ? this.responses : responses;
266
- return this.g24(name, method, path, query, headers, cookies, requests, responses);
273
+ return this.x23(name, method, path, query, headers, cookies, requests, responses);
267
274
  };
268
275
  protoOf(WsEndpoint).toString = function () {
269
- return 'WsEndpoint(name=' + this.t23_1 + ', method=' + this.method + ', path=' + toString(this.path) + ', query=' + toString(this.query) + ', headers=' + toString(this.headers) + ', cookies=' + toString(this.cookies) + ', requests=' + toString(this.requests) + ', responses=' + toString(this.responses) + ')';
276
+ return 'WsEndpoint(name=' + this.k23_1 + ', method=' + this.method + ', path=' + toString(this.path) + ', query=' + toString(this.query) + ', headers=' + toString(this.headers) + ', cookies=' + toString(this.cookies) + ', requests=' + toString(this.requests) + ', responses=' + toString(this.responses) + ')';
270
277
  };
271
278
  protoOf(WsEndpoint).hashCode = function () {
272
- var result = getStringHashCode(this.t23_1);
279
+ var result = getStringHashCode(this.k23_1);
273
280
  result = imul(result, 31) + this.method.hashCode() | 0;
274
281
  result = imul(result, 31) + hashCode(this.path) | 0;
275
282
  result = imul(result, 31) + hashCode(this.query) | 0;
@@ -285,7 +292,7 @@
285
292
  if (!(other instanceof WsEndpoint))
286
293
  return false;
287
294
  var tmp0_other_with_cast = other instanceof WsEndpoint ? other : THROW_CCE();
288
- if (!(this.t23_1 === tmp0_other_with_cast.t23_1))
295
+ if (!(this.k23_1 === tmp0_other_with_cast.k23_1))
289
296
  return false;
290
297
  if (!this.method.equals(tmp0_other_with_cast.method))
291
298
  return false;
@@ -304,34 +311,34 @@
304
311
  return true;
305
312
  };
306
313
  function WsEnum(name, entries) {
307
- this.h24_1 = name;
314
+ this.y23_1 = name;
308
315
  this.entries = entries;
309
316
  }
310
317
  protoOf(WsEnum).bh = function () {
311
- return this.h24_1;
318
+ return this.y23_1;
312
319
  };
313
320
  protoOf(WsEnum).w = function () {
314
321
  return this.entries;
315
322
  };
316
323
  protoOf(WsEnum).e3 = function () {
317
- return this.h24_1;
324
+ return this.y23_1;
318
325
  };
319
326
  protoOf(WsEnum).f3 = function () {
320
327
  return this.entries;
321
328
  };
322
- protoOf(WsEnum).i24 = function (name, entries) {
329
+ protoOf(WsEnum).z23 = function (name, entries) {
323
330
  return new WsEnum(name, entries);
324
331
  };
325
332
  protoOf(WsEnum).copy = function (name, entries, $super) {
326
- name = name === VOID ? this.h24_1 : name;
333
+ name = name === VOID ? this.y23_1 : name;
327
334
  entries = entries === VOID ? this.entries : entries;
328
- return this.i24(name, entries);
335
+ return this.z23(name, entries);
329
336
  };
330
337
  protoOf(WsEnum).toString = function () {
331
- return 'WsEnum(name=' + this.h24_1 + ', entries=' + toString(this.entries) + ')';
338
+ return 'WsEnum(name=' + this.y23_1 + ', entries=' + toString(this.entries) + ')';
332
339
  };
333
340
  protoOf(WsEnum).hashCode = function () {
334
- var result = getStringHashCode(this.h24_1);
341
+ var result = getStringHashCode(this.y23_1);
335
342
  result = imul(result, 31) + hashCode(this.entries) | 0;
336
343
  return result;
337
344
  };
@@ -341,41 +348,41 @@
341
348
  if (!(other instanceof WsEnum))
342
349
  return false;
343
350
  var tmp0_other_with_cast = other instanceof WsEnum ? other : THROW_CCE();
344
- if (!(this.h24_1 === tmp0_other_with_cast.h24_1))
351
+ if (!(this.y23_1 === tmp0_other_with_cast.y23_1))
345
352
  return false;
346
353
  if (!equals(this.entries, tmp0_other_with_cast.entries))
347
354
  return false;
348
355
  return true;
349
356
  };
350
357
  function WsRefined(name, validator) {
351
- this.j24_1 = name;
358
+ this.a24_1 = name;
352
359
  this.validator = validator;
353
360
  }
354
361
  protoOf(WsRefined).bh = function () {
355
- return this.j24_1;
362
+ return this.a24_1;
356
363
  };
357
- protoOf(WsRefined).k24 = function () {
364
+ protoOf(WsRefined).b24 = function () {
358
365
  return this.validator;
359
366
  };
360
367
  protoOf(WsRefined).e3 = function () {
361
- return this.j24_1;
368
+ return this.a24_1;
362
369
  };
363
370
  protoOf(WsRefined).f3 = function () {
364
371
  return this.validator;
365
372
  };
366
- protoOf(WsRefined).l24 = function (name, validator) {
373
+ protoOf(WsRefined).c24 = function (name, validator) {
367
374
  return new WsRefined(name, validator);
368
375
  };
369
376
  protoOf(WsRefined).copy = function (name, validator, $super) {
370
- name = name === VOID ? this.j24_1 : name;
377
+ name = name === VOID ? this.a24_1 : name;
371
378
  validator = validator === VOID ? this.validator : validator;
372
- return this.l24(name, validator);
379
+ return this.c24(name, validator);
373
380
  };
374
381
  protoOf(WsRefined).toString = function () {
375
- return 'WsRefined(name=' + this.j24_1 + ', validator=' + this.validator + ')';
382
+ return 'WsRefined(name=' + this.a24_1 + ', validator=' + this.validator + ')';
376
383
  };
377
384
  protoOf(WsRefined).hashCode = function () {
378
- var result = getStringHashCode(this.j24_1);
385
+ var result = getStringHashCode(this.a24_1);
379
386
  result = imul(result, 31) + getStringHashCode(this.validator) | 0;
380
387
  return result;
381
388
  };
@@ -385,7 +392,7 @@
385
392
  if (!(other instanceof WsRefined))
386
393
  return false;
387
394
  var tmp0_other_with_cast = other instanceof WsRefined ? other : THROW_CCE();
388
- if (!(this.j24_1 === tmp0_other_with_cast.j24_1))
395
+ if (!(this.a24_1 === tmp0_other_with_cast.a24_1))
389
396
  return false;
390
397
  if (!(this.validator === tmp0_other_with_cast.validator))
391
398
  return false;
@@ -454,12 +461,12 @@
454
461
  protoOf(WsLiteral).e3 = function () {
455
462
  return this.value;
456
463
  };
457
- protoOf(WsLiteral).o24 = function (value) {
464
+ protoOf(WsLiteral).f24 = function (value) {
458
465
  return new WsLiteral(value);
459
466
  };
460
467
  protoOf(WsLiteral).copy = function (value, $super) {
461
468
  value = value === VOID ? this.value : value;
462
- return this.o24(value);
469
+ return this.f24(value);
463
470
  };
464
471
  protoOf(WsLiteral).toString = function () {
465
472
  return 'WsLiteral(value=' + this.value + ')';
@@ -481,10 +488,10 @@
481
488
  this.identifier = identifier;
482
489
  this.reference = reference;
483
490
  }
484
- protoOf(WsParam).p24 = function () {
491
+ protoOf(WsParam).g24 = function () {
485
492
  return this.identifier;
486
493
  };
487
- protoOf(WsParam).q24 = function () {
494
+ protoOf(WsParam).h24 = function () {
488
495
  return this.reference;
489
496
  };
490
497
  protoOf(WsParam).e3 = function () {
@@ -493,13 +500,13 @@
493
500
  protoOf(WsParam).f3 = function () {
494
501
  return this.reference;
495
502
  };
496
- protoOf(WsParam).r24 = function (identifier, reference) {
503
+ protoOf(WsParam).i24 = function (identifier, reference) {
497
504
  return new WsParam(identifier, reference);
498
505
  };
499
506
  protoOf(WsParam).copy = function (identifier, reference, $super) {
500
507
  identifier = identifier === VOID ? this.identifier : identifier;
501
508
  reference = reference === VOID ? this.reference : reference;
502
- return this.r24(identifier, reference);
509
+ return this.i24(identifier, reference);
503
510
  };
504
511
  protoOf(WsParam).toString = function () {
505
512
  return 'WsParam(identifier=' + this.identifier + ', reference=' + this.reference + ')';
@@ -530,12 +537,12 @@
530
537
  protoOf(Shape).e3 = function () {
531
538
  return this.value;
532
539
  };
533
- protoOf(Shape).s23 = function (value) {
540
+ protoOf(Shape).j23 = function (value) {
534
541
  return new Shape(value);
535
542
  };
536
543
  protoOf(Shape).copy = function (value, $super) {
537
544
  value = value === VOID ? this.value : value;
538
- return this.s23(value);
545
+ return this.j23(value);
539
546
  };
540
547
  protoOf(Shape).toString = function () {
541
548
  return 'Shape(value=' + toString(this.value) + ')';
@@ -558,10 +565,10 @@
558
565
  this.reference = reference;
559
566
  this.isNullable = isNullable;
560
567
  }
561
- protoOf(WsField).p24 = function () {
568
+ protoOf(WsField).g24 = function () {
562
569
  return this.identifier;
563
570
  };
564
- protoOf(WsField).q24 = function () {
571
+ protoOf(WsField).h24 = function () {
565
572
  return this.reference;
566
573
  };
567
574
  protoOf(WsField).aj = function () {
@@ -576,14 +583,14 @@
576
583
  protoOf(WsField).c8 = function () {
577
584
  return this.isNullable;
578
585
  };
579
- protoOf(WsField).s24 = function (identifier, reference, isNullable) {
586
+ protoOf(WsField).j24 = function (identifier, reference, isNullable) {
580
587
  return new WsField(identifier, reference, isNullable);
581
588
  };
582
589
  protoOf(WsField).copy = function (identifier, reference, isNullable, $super) {
583
590
  identifier = identifier === VOID ? this.identifier : identifier;
584
591
  reference = reference === VOID ? this.reference : reference;
585
592
  isNullable = isNullable === VOID ? this.isNullable : isNullable;
586
- return this.s24(identifier, reference, isNullable);
593
+ return this.j24(identifier, reference, isNullable);
587
594
  };
588
595
  protoOf(WsField).toString = function () {
589
596
  return 'WsField(identifier=' + this.identifier + ', reference=' + this.reference + ', isNullable=' + this.isNullable + ')';
@@ -617,12 +624,12 @@
617
624
  protoOf(WsIdentifier).e3 = function () {
618
625
  return this.value;
619
626
  };
620
- protoOf(WsIdentifier).o24 = function (value) {
627
+ protoOf(WsIdentifier).f24 = function (value) {
621
628
  return new WsIdentifier(value);
622
629
  };
623
630
  protoOf(WsIdentifier).copy = function (value, $super) {
624
631
  value = value === VOID ? this.value : value;
625
- return this.o24(value);
632
+ return this.f24(value);
626
633
  };
627
634
  protoOf(WsIdentifier).toString = function () {
628
635
  return 'WsIdentifier(value=' + this.value + ')';
@@ -644,35 +651,35 @@
644
651
  }
645
652
  function WsAny(isIterable, isMap) {
646
653
  isMap = isMap === VOID ? false : isMap;
647
- this.t24_1 = isIterable;
648
- this.u24_1 = isMap;
654
+ this.k24_1 = isIterable;
655
+ this.l24_1 = isMap;
649
656
  }
650
- protoOf(WsAny).q1r = function () {
651
- return this.t24_1;
657
+ protoOf(WsAny).p1r = function () {
658
+ return this.k24_1;
652
659
  };
653
- protoOf(WsAny).k1z = function () {
654
- return this.u24_1;
660
+ protoOf(WsAny).d1z = function () {
661
+ return this.l24_1;
655
662
  };
656
663
  protoOf(WsAny).e3 = function () {
657
- return this.t24_1;
664
+ return this.k24_1;
658
665
  };
659
666
  protoOf(WsAny).f3 = function () {
660
- return this.u24_1;
667
+ return this.l24_1;
661
668
  };
662
- protoOf(WsAny).b21 = function (isIterable, isMap) {
669
+ protoOf(WsAny).u20 = function (isIterable, isMap) {
663
670
  return new WsAny(isIterable, isMap);
664
671
  };
665
672
  protoOf(WsAny).copy = function (isIterable, isMap, $super) {
666
- isIterable = isIterable === VOID ? this.t24_1 : isIterable;
667
- isMap = isMap === VOID ? this.u24_1 : isMap;
668
- return this.b21(isIterable, isMap);
673
+ isIterable = isIterable === VOID ? this.k24_1 : isIterable;
674
+ isMap = isMap === VOID ? this.l24_1 : isMap;
675
+ return this.u20(isIterable, isMap);
669
676
  };
670
677
  protoOf(WsAny).toString = function () {
671
- return 'WsAny(isIterable=' + this.t24_1 + ', isMap=' + this.u24_1 + ')';
678
+ return 'WsAny(isIterable=' + this.k24_1 + ', isMap=' + this.l24_1 + ')';
672
679
  };
673
680
  protoOf(WsAny).hashCode = function () {
674
- var result = this.t24_1 | 0;
675
- result = imul(result, 31) + (this.u24_1 | 0) | 0;
681
+ var result = this.k24_1 | 0;
682
+ result = imul(result, 31) + (this.l24_1 | 0) | 0;
676
683
  return result;
677
684
  };
678
685
  protoOf(WsAny).equals = function (other) {
@@ -681,43 +688,43 @@
681
688
  if (!(other instanceof WsAny))
682
689
  return false;
683
690
  var tmp0_other_with_cast = other instanceof WsAny ? other : THROW_CCE();
684
- if (!(this.t24_1 === tmp0_other_with_cast.t24_1))
691
+ if (!(this.k24_1 === tmp0_other_with_cast.k24_1))
685
692
  return false;
686
- if (!(this.u24_1 === tmp0_other_with_cast.u24_1))
693
+ if (!(this.l24_1 === tmp0_other_with_cast.l24_1))
687
694
  return false;
688
695
  return true;
689
696
  };
690
697
  function WsUnit(isIterable, isMap) {
691
698
  isMap = isMap === VOID ? false : isMap;
692
- this.v24_1 = isIterable;
693
- this.w24_1 = isMap;
699
+ this.m24_1 = isIterable;
700
+ this.n24_1 = isMap;
694
701
  }
695
- protoOf(WsUnit).q1r = function () {
696
- return this.v24_1;
702
+ protoOf(WsUnit).p1r = function () {
703
+ return this.m24_1;
697
704
  };
698
- protoOf(WsUnit).k1z = function () {
699
- return this.w24_1;
705
+ protoOf(WsUnit).d1z = function () {
706
+ return this.n24_1;
700
707
  };
701
708
  protoOf(WsUnit).e3 = function () {
702
- return this.v24_1;
709
+ return this.m24_1;
703
710
  };
704
711
  protoOf(WsUnit).f3 = function () {
705
- return this.w24_1;
712
+ return this.n24_1;
706
713
  };
707
- protoOf(WsUnit).b21 = function (isIterable, isMap) {
714
+ protoOf(WsUnit).u20 = function (isIterable, isMap) {
708
715
  return new WsUnit(isIterable, isMap);
709
716
  };
710
717
  protoOf(WsUnit).copy = function (isIterable, isMap, $super) {
711
- isIterable = isIterable === VOID ? this.v24_1 : isIterable;
712
- isMap = isMap === VOID ? this.w24_1 : isMap;
713
- return this.b21(isIterable, isMap);
718
+ isIterable = isIterable === VOID ? this.m24_1 : isIterable;
719
+ isMap = isMap === VOID ? this.n24_1 : isMap;
720
+ return this.u20(isIterable, isMap);
714
721
  };
715
722
  protoOf(WsUnit).toString = function () {
716
- return 'WsUnit(isIterable=' + this.v24_1 + ', isMap=' + this.w24_1 + ')';
723
+ return 'WsUnit(isIterable=' + this.m24_1 + ', isMap=' + this.n24_1 + ')';
717
724
  };
718
725
  protoOf(WsUnit).hashCode = function () {
719
- var result = this.v24_1 | 0;
720
- result = imul(result, 31) + (this.w24_1 | 0) | 0;
726
+ var result = this.m24_1 | 0;
727
+ result = imul(result, 31) + (this.n24_1 | 0) | 0;
721
728
  return result;
722
729
  };
723
730
  protoOf(WsUnit).equals = function (other) {
@@ -726,52 +733,52 @@
726
733
  if (!(other instanceof WsUnit))
727
734
  return false;
728
735
  var tmp0_other_with_cast = other instanceof WsUnit ? other : THROW_CCE();
729
- if (!(this.v24_1 === tmp0_other_with_cast.v24_1))
736
+ if (!(this.m24_1 === tmp0_other_with_cast.m24_1))
730
737
  return false;
731
- if (!(this.w24_1 === tmp0_other_with_cast.w24_1))
738
+ if (!(this.n24_1 === tmp0_other_with_cast.n24_1))
732
739
  return false;
733
740
  return true;
734
741
  };
735
742
  function WsCustom(value, isIterable, isMap) {
736
743
  isMap = isMap === VOID ? false : isMap;
737
744
  this.value = value;
738
- this.x24_1 = isIterable;
739
- this.y24_1 = isMap;
745
+ this.o24_1 = isIterable;
746
+ this.p24_1 = isMap;
740
747
  }
741
748
  protoOf(WsCustom).y = function () {
742
749
  return this.value;
743
750
  };
744
- protoOf(WsCustom).q1r = function () {
745
- return this.x24_1;
751
+ protoOf(WsCustom).p1r = function () {
752
+ return this.o24_1;
746
753
  };
747
- protoOf(WsCustom).k1z = function () {
748
- return this.y24_1;
754
+ protoOf(WsCustom).d1z = function () {
755
+ return this.p24_1;
749
756
  };
750
757
  protoOf(WsCustom).e3 = function () {
751
758
  return this.value;
752
759
  };
753
760
  protoOf(WsCustom).f3 = function () {
754
- return this.x24_1;
761
+ return this.o24_1;
755
762
  };
756
763
  protoOf(WsCustom).c8 = function () {
757
- return this.y24_1;
764
+ return this.p24_1;
758
765
  };
759
- protoOf(WsCustom).g21 = function (value, isIterable, isMap) {
766
+ protoOf(WsCustom).z20 = function (value, isIterable, isMap) {
760
767
  return new WsCustom(value, isIterable, isMap);
761
768
  };
762
769
  protoOf(WsCustom).copy = function (value, isIterable, isMap, $super) {
763
770
  value = value === VOID ? this.value : value;
764
- isIterable = isIterable === VOID ? this.x24_1 : isIterable;
765
- isMap = isMap === VOID ? this.y24_1 : isMap;
766
- return this.g21(value, isIterable, isMap);
771
+ isIterable = isIterable === VOID ? this.o24_1 : isIterable;
772
+ isMap = isMap === VOID ? this.p24_1 : isMap;
773
+ return this.z20(value, isIterable, isMap);
767
774
  };
768
775
  protoOf(WsCustom).toString = function () {
769
- return 'WsCustom(value=' + this.value + ', isIterable=' + this.x24_1 + ', isMap=' + this.y24_1 + ')';
776
+ return 'WsCustom(value=' + this.value + ', isIterable=' + this.o24_1 + ', isMap=' + this.p24_1 + ')';
770
777
  };
771
778
  protoOf(WsCustom).hashCode = function () {
772
779
  var result = getStringHashCode(this.value);
773
- result = imul(result, 31) + (this.x24_1 | 0) | 0;
774
- result = imul(result, 31) + (this.y24_1 | 0) | 0;
780
+ result = imul(result, 31) + (this.o24_1 | 0) | 0;
781
+ result = imul(result, 31) + (this.p24_1 | 0) | 0;
775
782
  return result;
776
783
  };
777
784
  protoOf(WsCustom).equals = function (other) {
@@ -782,52 +789,52 @@
782
789
  var tmp0_other_with_cast = other instanceof WsCustom ? other : THROW_CCE();
783
790
  if (!(this.value === tmp0_other_with_cast.value))
784
791
  return false;
785
- if (!(this.x24_1 === tmp0_other_with_cast.x24_1))
792
+ if (!(this.o24_1 === tmp0_other_with_cast.o24_1))
786
793
  return false;
787
- if (!(this.y24_1 === tmp0_other_with_cast.y24_1))
794
+ if (!(this.p24_1 === tmp0_other_with_cast.p24_1))
788
795
  return false;
789
796
  return true;
790
797
  };
791
798
  function WsPrimitive(type, isIterable, isMap) {
792
799
  isMap = isMap === VOID ? false : isMap;
793
800
  this.type = type;
794
- this.z24_1 = isIterable;
795
- this.a25_1 = isMap;
801
+ this.q24_1 = isIterable;
802
+ this.r24_1 = isMap;
796
803
  }
797
- protoOf(WsPrimitive).b25 = function () {
804
+ protoOf(WsPrimitive).s24 = function () {
798
805
  return this.type;
799
806
  };
800
- protoOf(WsPrimitive).q1r = function () {
801
- return this.z24_1;
807
+ protoOf(WsPrimitive).p1r = function () {
808
+ return this.q24_1;
802
809
  };
803
- protoOf(WsPrimitive).k1z = function () {
804
- return this.a25_1;
810
+ protoOf(WsPrimitive).d1z = function () {
811
+ return this.r24_1;
805
812
  };
806
813
  protoOf(WsPrimitive).e3 = function () {
807
814
  return this.type;
808
815
  };
809
816
  protoOf(WsPrimitive).f3 = function () {
810
- return this.z24_1;
817
+ return this.q24_1;
811
818
  };
812
819
  protoOf(WsPrimitive).c8 = function () {
813
- return this.a25_1;
820
+ return this.r24_1;
814
821
  };
815
- protoOf(WsPrimitive).c25 = function (type, isIterable, isMap) {
822
+ protoOf(WsPrimitive).t24 = function (type, isIterable, isMap) {
816
823
  return new WsPrimitive(type, isIterable, isMap);
817
824
  };
818
825
  protoOf(WsPrimitive).copy = function (type, isIterable, isMap, $super) {
819
826
  type = type === VOID ? this.type : type;
820
- isIterable = isIterable === VOID ? this.z24_1 : isIterable;
821
- isMap = isMap === VOID ? this.a25_1 : isMap;
822
- return this.c25(type, isIterable, isMap);
827
+ isIterable = isIterable === VOID ? this.q24_1 : isIterable;
828
+ isMap = isMap === VOID ? this.r24_1 : isMap;
829
+ return this.t24(type, isIterable, isMap);
823
830
  };
824
831
  protoOf(WsPrimitive).toString = function () {
825
- return 'WsPrimitive(type=' + this.type + ', isIterable=' + this.z24_1 + ', isMap=' + this.a25_1 + ')';
832
+ return 'WsPrimitive(type=' + this.type + ', isIterable=' + this.q24_1 + ', isMap=' + this.r24_1 + ')';
826
833
  };
827
834
  protoOf(WsPrimitive).hashCode = function () {
828
835
  var result = this.type.hashCode();
829
- result = imul(result, 31) + (this.z24_1 | 0) | 0;
830
- result = imul(result, 31) + (this.a25_1 | 0) | 0;
836
+ result = imul(result, 31) + (this.q24_1 | 0) | 0;
837
+ result = imul(result, 31) + (this.r24_1 | 0) | 0;
831
838
  return result;
832
839
  };
833
840
  protoOf(WsPrimitive).equals = function (other) {
@@ -838,9 +845,9 @@
838
845
  var tmp0_other_with_cast = other instanceof WsPrimitive ? other : THROW_CCE();
839
846
  if (!this.type.equals(tmp0_other_with_cast.type))
840
847
  return false;
841
- if (!(this.z24_1 === tmp0_other_with_cast.z24_1))
848
+ if (!(this.q24_1 === tmp0_other_with_cast.q24_1))
842
849
  return false;
843
- if (!(this.a25_1 === tmp0_other_with_cast.a25_1))
850
+ if (!(this.r24_1 === tmp0_other_with_cast.r24_1))
844
851
  return false;
845
852
  return true;
846
853
  };
@@ -889,12 +896,12 @@
889
896
  protoOf(WsRequest).e3 = function () {
890
897
  return this.content;
891
898
  };
892
- protoOf(WsRequest).f25 = function (content) {
899
+ protoOf(WsRequest).w24 = function (content) {
893
900
  return new WsRequest(content);
894
901
  };
895
902
  protoOf(WsRequest).copy = function (content, $super) {
896
903
  content = content === VOID ? this.content : content;
897
- return this.f25(content);
904
+ return this.w24(content);
898
905
  };
899
906
  protoOf(WsRequest).toString = function () {
900
907
  return 'WsRequest(content=' + this.content + ')';
@@ -916,7 +923,7 @@
916
923
  this.status = status;
917
924
  this.content = content;
918
925
  }
919
- protoOf(WsResponse).g25 = function () {
926
+ protoOf(WsResponse).x24 = function () {
920
927
  return this.status;
921
928
  };
922
929
  protoOf(WsResponse).uz = function () {
@@ -928,13 +935,13 @@
928
935
  protoOf(WsResponse).f3 = function () {
929
936
  return this.content;
930
937
  };
931
- protoOf(WsResponse).h25 = function (status, content) {
938
+ protoOf(WsResponse).y24 = function (status, content) {
932
939
  return new WsResponse(status, content);
933
940
  };
934
941
  protoOf(WsResponse).copy = function (status, content, $super) {
935
942
  status = status === VOID ? this.status : status;
936
943
  content = content === VOID ? this.content : content;
937
- return this.h25(status, content);
944
+ return this.y24(status, content);
938
945
  };
939
946
  protoOf(WsResponse).toString = function () {
940
947
  return 'WsResponse(status=' + this.status + ', content=' + this.content + ')';
@@ -962,10 +969,10 @@
962
969
  this.reference = reference;
963
970
  this.isNullable = isNullable;
964
971
  }
965
- protoOf(WsContent).b25 = function () {
972
+ protoOf(WsContent).s24 = function () {
966
973
  return this.type;
967
974
  };
968
- protoOf(WsContent).q24 = function () {
975
+ protoOf(WsContent).h24 = function () {
969
976
  return this.reference;
970
977
  };
971
978
  protoOf(WsContent).aj = function () {
@@ -980,14 +987,14 @@
980
987
  protoOf(WsContent).c8 = function () {
981
988
  return this.isNullable;
982
989
  };
983
- protoOf(WsContent).i25 = function (type, reference, isNullable) {
990
+ protoOf(WsContent).z24 = function (type, reference, isNullable) {
984
991
  return new WsContent(type, reference, isNullable);
985
992
  };
986
993
  protoOf(WsContent).copy = function (type, reference, isNullable, $super) {
987
994
  type = type === VOID ? this.type : type;
988
995
  reference = reference === VOID ? this.reference : reference;
989
996
  isNullable = isNullable === VOID ? this.isNullable : isNullable;
990
- return this.i25(type, reference, isNullable);
997
+ return this.z24(type, reference, isNullable);
991
998
  };
992
999
  protoOf(WsContent).toString = function () {
993
1000
  return 'WsContent(type=' + this.type + ', reference=' + this.reference + ', isNullable=' + this.isNullable + ')';
@@ -1030,22 +1037,30 @@
1030
1037
  function produce_0(_this__u8e3s4) {
1031
1038
  var tmp;
1032
1039
  if (_this__u8e3s4 instanceof Type) {
1033
- tmp = new WsType(_this__u8e3s4.t1w_1, produce_1(_this__u8e3s4.u1w_1));
1040
+ tmp = new WsType(_this__u8e3s4.l1x_1, produce_1(_this__u8e3s4.m1x_1));
1034
1041
  } else {
1035
1042
  if (_this__u8e3s4 instanceof Endpoint) {
1036
- tmp = new WsEndpoint(_this__u8e3s4.x1w_1, produce_2(_this__u8e3s4.y1w_1), produce_3(_this__u8e3s4.z1w_1), produce_4(_this__u8e3s4.a1x_1), produce_4(_this__u8e3s4.b1x_1), produce_4(_this__u8e3s4.c1x_1), produce_5(_this__u8e3s4.d1x_1), produce_6(_this__u8e3s4.e1x_1));
1043
+ tmp = new WsEndpoint(_this__u8e3s4.r1y_1, produce_2(_this__u8e3s4.s1y_1), produce_3(_this__u8e3s4.t1y_1), produce_4(_this__u8e3s4.u1y_1), produce_4(_this__u8e3s4.v1y_1), produce_4(_this__u8e3s4.w1y_1), produce_5(_this__u8e3s4.x1y_1), produce_6(_this__u8e3s4.y1y_1));
1037
1044
  } else {
1038
1045
  if (_this__u8e3s4 instanceof Enum_0) {
1039
1046
  var tmp$ret$0;
1040
1047
  // Inline function 'kotlin.collections.toTypedArray' call
1041
- var tmp0_toTypedArray = _this__u8e3s4.c1t_1;
1048
+ var tmp0_toTypedArray = _this__u8e3s4.k1x_1;
1042
1049
  tmp$ret$0 = copyToArray(tmp0_toTypedArray);
1043
- tmp = new WsEnum(_this__u8e3s4.b1t_1, tmp$ret$0);
1050
+ tmp = new WsEnum(_this__u8e3s4.j1x_1, tmp$ret$0);
1044
1051
  } else {
1045
1052
  if (_this__u8e3s4 instanceof Refined) {
1046
- tmp = new WsRefined(_this__u8e3s4.v1w_1, _this__u8e3s4.w1w_1.k1y_1);
1053
+ tmp = new WsRefined(_this__u8e3s4.b1y_1, _this__u8e3s4.c1y_1.e1y_1);
1047
1054
  } else {
1048
- noWhenBranchMatchedException();
1055
+ if (_this__u8e3s4 instanceof Union) {
1056
+ var tmp$ret$1;
1057
+ // Inline function 'kotlin.collections.toTypedArray' call
1058
+ var tmp1_toTypedArray = _this__u8e3s4.f1z_1;
1059
+ tmp$ret$1 = copyToArray(tmp1_toTypedArray);
1060
+ tmp = new WsEnum(_this__u8e3s4.e1z_1, tmp$ret$1);
1061
+ } else {
1062
+ noWhenBranchMatchedException();
1063
+ }
1049
1064
  }
1050
1065
  }
1051
1066
  }
@@ -1056,7 +1071,7 @@
1056
1071
  var tmp$ret$3;
1057
1072
  // Inline function 'kotlin.collections.toTypedArray' call
1058
1073
  // Inline function 'kotlin.collections.map' call
1059
- var tmp0_map = _this__u8e3s4.w1x_1;
1074
+ var tmp0_map = _this__u8e3s4.o1x_1;
1060
1075
  // Inline function 'kotlin.collections.mapTo' call
1061
1076
  var tmp0_mapTo = ArrayList_init_$Create$(collectionSizeOrDefault(tmp0_map, 10));
1062
1077
  var tmp0_iterator = tmp0_map.c();
@@ -1115,10 +1130,10 @@
1115
1130
  // Inline function 'community.flock.wirespec.compiler.lib.produce.<anonymous>' call
1116
1131
  var tmp;
1117
1132
  if (item instanceof Literal) {
1118
- tmp = new WsLiteral(item.l1z_1);
1133
+ tmp = new WsLiteral(item.l1y_1);
1119
1134
  } else {
1120
1135
  if (item instanceof Param) {
1121
- tmp = new WsParam(produce_8(item.a1z_1), produce_9(item.b1z_1));
1136
+ tmp = new WsParam(produce_8(item.f1y_1), produce_9(item.g1y_1));
1122
1137
  } else {
1123
1138
  noWhenBranchMatchedException();
1124
1139
  }
@@ -1174,24 +1189,24 @@
1174
1189
  return copyToArray(tmp0_mapTo);
1175
1190
  }
1176
1191
  function produce_7(_this__u8e3s4) {
1177
- return new WsField(produce_8(_this__u8e3s4.x1x_1), produce_9(_this__u8e3s4.y1x_1), _this__u8e3s4.z1x_1);
1192
+ return new WsField(produce_8(_this__u8e3s4.p1x_1), produce_9(_this__u8e3s4.q1x_1), _this__u8e3s4.r1x_1);
1178
1193
  }
1179
1194
  function produce_8(_this__u8e3s4) {
1180
- return new WsIdentifier(_this__u8e3s4.c1y_1);
1195
+ return new WsIdentifier(_this__u8e3s4.u1x_1);
1181
1196
  }
1182
1197
  function produce_9(_this__u8e3s4) {
1183
1198
  var tmp;
1184
1199
  if (_this__u8e3s4 instanceof Any) {
1185
- tmp = new WsAny(_this__u8e3s4.q1r(), _this__u8e3s4.k1z());
1200
+ tmp = new WsAny(_this__u8e3s4.p1r(), _this__u8e3s4.d1z());
1186
1201
  } else {
1187
1202
  if (_this__u8e3s4 instanceof Unit) {
1188
- tmp = new WsUnit(_this__u8e3s4.q1r(), _this__u8e3s4.k1z());
1203
+ tmp = new WsUnit(_this__u8e3s4.p1r(), _this__u8e3s4.d1z());
1189
1204
  } else {
1190
1205
  if (_this__u8e3s4 instanceof Custom) {
1191
- tmp = new WsCustom(_this__u8e3s4.g1y_1, _this__u8e3s4.q1r(), _this__u8e3s4.k1z());
1206
+ tmp = new WsCustom(_this__u8e3s4.y1x_1, _this__u8e3s4.p1r(), _this__u8e3s4.d1z());
1192
1207
  } else {
1193
1208
  if (_this__u8e3s4 instanceof Primitive) {
1194
- tmp = new WsPrimitive(produce_12(_this__u8e3s4.d1y_1), _this__u8e3s4.q1r(), _this__u8e3s4.k1z());
1209
+ tmp = new WsPrimitive(produce_12(_this__u8e3s4.v1x_1), _this__u8e3s4.p1r(), _this__u8e3s4.d1z());
1195
1210
  } else {
1196
1211
  noWhenBranchMatchedException();
1197
1212
  }
@@ -1201,12 +1216,12 @@
1201
1216
  return tmp;
1202
1217
  }
1203
1218
  function produce_10(_this__u8e3s4) {
1204
- var tmp0_safe_receiver = _this__u8e3s4.v1y_1;
1219
+ var tmp0_safe_receiver = _this__u8e3s4.m1y_1;
1205
1220
  return new WsRequest(tmp0_safe_receiver == null ? null : produce_13(tmp0_safe_receiver));
1206
1221
  }
1207
1222
  function produce_11(_this__u8e3s4) {
1208
- var tmp0_safe_receiver = _this__u8e3s4.z1y_1;
1209
- return new WsResponse(_this__u8e3s4.x1y_1, tmp0_safe_receiver == null ? null : produce_13(tmp0_safe_receiver));
1223
+ var tmp0_safe_receiver = _this__u8e3s4.q1y_1;
1224
+ return new WsResponse(_this__u8e3s4.o1y_1, tmp0_safe_receiver == null ? null : produce_13(tmp0_safe_receiver));
1210
1225
  }
1211
1226
  function produce_12(_this__u8e3s4) {
1212
1227
  var tmp;
@@ -1230,7 +1245,7 @@
1230
1245
  return tmp;
1231
1246
  }
1232
1247
  function produce_13(_this__u8e3s4) {
1233
- return new WsContent(_this__u8e3s4.c1z_1, produce_9(_this__u8e3s4.d1z_1), _this__u8e3s4.e1z_1);
1248
+ return new WsContent(_this__u8e3s4.z1y_1, produce_9(_this__u8e3s4.a1z_1), _this__u8e3s4.b1z_1);
1234
1249
  }
1235
1250
  function WsMethod_GET_getInstance() {
1236
1251
  WsMethod_initEntries();
@@ -1288,7 +1303,7 @@
1288
1303
  var tmp = this;
1289
1304
  tmp.logger = new Compiler$Companion$logger$1();
1290
1305
  }
1291
- protoOf(Companion).j25 = function () {
1306
+ protoOf(Companion).a25 = function () {
1292
1307
  return this.logger;
1293
1308
  };
1294
1309
  var Companion_instance;
@@ -1311,11 +1326,11 @@
1311
1326
  var tmp0_let = tokenize(Wirespec_getInstance(), source);
1312
1327
  // Inline function 'kotlin.contracts.contract' call
1313
1328
  // Inline function 'community.flock.wirespec.compiler.lib.Compiler.parse.<anonymous>' call
1314
- return produce_14((new Parser(Companion_getInstance_1().logger)).e1r(tmp0_let));
1329
+ return produce_14((new Parser(Companion_getInstance_1().logger)).d1r(tmp0_let));
1315
1330
  };
1316
1331
  function Companion_0() {
1317
1332
  Companion_instance_0 = this;
1318
- this.k25_1 = new KotlinEmitter(VOID, Companion_getInstance_1().logger);
1333
+ this.b25_1 = new KotlinEmitter(VOID, Companion_getInstance_1().logger);
1319
1334
  }
1320
1335
  var Companion_instance_0;
1321
1336
  function Companion_getInstance_2() {
@@ -1328,11 +1343,11 @@
1328
1343
  Compiler.call(this);
1329
1344
  }
1330
1345
  protoOf(WsToKotlin).compile = function (source) {
1331
- return produce_15(this.preCompile(source)(Companion_getInstance_2().k25_1));
1346
+ return produce_15(this.preCompile(source)(Companion_getInstance_2().b25_1));
1332
1347
  };
1333
1348
  function Companion_1() {
1334
1349
  Companion_instance_1 = this;
1335
- this.l25_1 = new TypeScriptEmitter(Companion_getInstance_1().logger);
1350
+ this.c25_1 = new TypeScriptEmitter(Companion_getInstance_1().logger);
1336
1351
  }
1337
1352
  var Companion_instance_1;
1338
1353
  function Companion_getInstance_3() {
@@ -1345,11 +1360,11 @@
1345
1360
  Compiler.call(this);
1346
1361
  }
1347
1362
  protoOf(WsToTypeScript).compile = function (source) {
1348
- return produce_15(this.preCompile(source)(Companion_getInstance_3().l25_1));
1363
+ return produce_15(this.preCompile(source)(Companion_getInstance_3().c25_1));
1349
1364
  };
1350
1365
  function Companion_2() {
1351
1366
  Companion_instance_2 = this;
1352
- this.m25_1 = new WirespecEmitter(Companion_getInstance_1().logger);
1367
+ this.d25_1 = new ScalaEmitter(VOID, Companion_getInstance_1().logger);
1353
1368
  }
1354
1369
  var Companion_instance_2;
1355
1370
  function Companion_getInstance_4() {
@@ -1357,18 +1372,52 @@
1357
1372
  new Companion_2();
1358
1373
  return Companion_instance_2;
1359
1374
  }
1360
- function WsToWirespec() {
1375
+ function WsToScala() {
1361
1376
  Companion_getInstance_4();
1362
1377
  Compiler.call(this);
1363
1378
  }
1379
+ protoOf(WsToScala).compile = function (source) {
1380
+ return produce_15(this.preCompile(source)(Companion_getInstance_4().d25_1));
1381
+ };
1382
+ function Companion_3() {
1383
+ Companion_instance_3 = this;
1384
+ this.e25_1 = new JavaEmitter(VOID, Companion_getInstance_1().logger);
1385
+ }
1386
+ var Companion_instance_3;
1387
+ function Companion_getInstance_5() {
1388
+ if (Companion_instance_3 == null)
1389
+ new Companion_3();
1390
+ return Companion_instance_3;
1391
+ }
1392
+ function WsToJava() {
1393
+ Companion_getInstance_5();
1394
+ Compiler.call(this);
1395
+ }
1396
+ protoOf(WsToJava).compile = function (source) {
1397
+ return produce_15(this.preCompile(source)(Companion_getInstance_5().e25_1));
1398
+ };
1399
+ function Companion_4() {
1400
+ Companion_instance_4 = this;
1401
+ this.f25_1 = new WirespecEmitter(Companion_getInstance_1().logger);
1402
+ }
1403
+ var Companion_instance_4;
1404
+ function Companion_getInstance_6() {
1405
+ if (Companion_instance_4 == null)
1406
+ new Companion_4();
1407
+ return Companion_instance_4;
1408
+ }
1409
+ function WsToWirespec() {
1410
+ Companion_getInstance_6();
1411
+ Compiler.call(this);
1412
+ }
1364
1413
  protoOf(WsToWirespec).compile = function (source) {
1365
- return produce_15(this.preCompile(source)(Companion_getInstance_4().m25_1));
1414
+ return produce_15(this.preCompile(source)(Companion_getInstance_6().f25_1));
1366
1415
  };
1367
1416
  function OpenApiV2Parser() {
1368
1417
  OpenApiV2Parser_instance = this;
1369
1418
  }
1370
1419
  protoOf(OpenApiV2Parser).parse = function (source) {
1371
- return produce(Companion_getInstance().q22(source));
1420
+ return produce(Companion_getInstance().h22(source));
1372
1421
  };
1373
1422
  var OpenApiV2Parser_instance;
1374
1423
  function OpenApiV2Parser_getInstance() {
@@ -1380,7 +1429,7 @@
1380
1429
  OpenApiV3Parser_instance = this;
1381
1430
  }
1382
1431
  protoOf(OpenApiV3Parser).parse = function (source) {
1383
- return produce(Companion_getInstance_0().d23(source));
1432
+ return produce(Companion_getInstance_0().u22(source));
1384
1433
  };
1385
1434
  var OpenApiV3Parser_instance;
1386
1435
  function OpenApiV3Parser_getInstance() {
@@ -1395,16 +1444,16 @@
1395
1444
  OpenApiV3ToTypescript_instance = this;
1396
1445
  var tmp = this;
1397
1446
  tmp.logger = new OpenApiV3ToTypescript$logger$1();
1398
- this.n25_1 = new TypeScriptEmitter(this.logger);
1447
+ this.g25_1 = new TypeScriptEmitter(this.logger);
1399
1448
  }
1400
- protoOf(OpenApiV3ToTypescript).j25 = function () {
1449
+ protoOf(OpenApiV3ToTypescript).a25 = function () {
1401
1450
  return this.logger;
1402
1451
  };
1403
1452
  protoOf(OpenApiV3ToTypescript).compile = function (source) {
1404
- var ast = Companion_getInstance_0().d23(source);
1453
+ var ast = Companion_getInstance_0().u22(source);
1405
1454
  // Inline function 'kotlin.collections.toTypedArray' call
1406
1455
  // Inline function 'kotlin.collections.map' call
1407
- var tmp0_map = this.n25_1.y1q(ast);
1456
+ var tmp0_map = this.g25_1.y1q(ast);
1408
1457
  // Inline function 'kotlin.collections.mapTo' call
1409
1458
  var tmp0_mapTo = ArrayList_init_$Create$(collectionSizeOrDefault(tmp0_map, 10));
1410
1459
  var tmp0_iterator = tmp0_map.c();
@@ -1438,10 +1487,10 @@
1438
1487
  this.result = result;
1439
1488
  this.errors = errors;
1440
1489
  }
1441
- protoOf(WsCompilationResult).o25 = function () {
1490
+ protoOf(WsCompilationResult).h25 = function () {
1442
1491
  return this.result;
1443
1492
  };
1444
- protoOf(WsCompilationResult).p25 = function () {
1493
+ protoOf(WsCompilationResult).i25 = function () {
1445
1494
  return this.errors;
1446
1495
  };
1447
1496
  function WsCompiled(value) {
@@ -1466,10 +1515,10 @@
1466
1515
  this.result = result;
1467
1516
  this.errors = errors;
1468
1517
  }
1469
- protoOf(WsParseResult).o25 = function () {
1518
+ protoOf(WsParseResult).h25 = function () {
1470
1519
  return this.result;
1471
1520
  };
1472
- protoOf(WsParseResult).p25 = function () {
1521
+ protoOf(WsParseResult).i25 = function () {
1473
1522
  return this.errors;
1474
1523
  };
1475
1524
  function produce_14(_this__u8e3s4) {
@@ -1561,10 +1610,10 @@
1561
1610
  this.tokens = tokens;
1562
1611
  this.error = error;
1563
1612
  }
1564
- protoOf(WsTokenResult).q25 = function () {
1613
+ protoOf(WsTokenResult).j25 = function () {
1565
1614
  return this.tokens;
1566
1615
  };
1567
- protoOf(WsTokenResult).r25 = function () {
1616
+ protoOf(WsTokenResult).k25 = function () {
1568
1617
  return this.error;
1569
1618
  };
1570
1619
  protoOf(WsTokenResult).e3 = function () {
@@ -1573,13 +1622,13 @@
1573
1622
  protoOf(WsTokenResult).f3 = function () {
1574
1623
  return this.error;
1575
1624
  };
1576
- protoOf(WsTokenResult).s25 = function (tokens, error) {
1625
+ protoOf(WsTokenResult).l25 = function (tokens, error) {
1577
1626
  return new WsTokenResult(tokens, error);
1578
1627
  };
1579
1628
  protoOf(WsTokenResult).copy = function (tokens, error, $super) {
1580
1629
  tokens = tokens === VOID ? this.tokens : tokens;
1581
1630
  error = error === VOID ? this.error : error;
1582
- return this.s25(tokens, error);
1631
+ return this.l25(tokens, error);
1583
1632
  };
1584
1633
  protoOf(WsTokenResult).toString = function () {
1585
1634
  return 'WsTokenResult(tokens=' + this.tokens + ', error=' + this.error + ')';
@@ -1624,12 +1673,12 @@
1624
1673
  protoOf(WsTokens).e3 = function () {
1625
1674
  return this.value;
1626
1675
  };
1627
- protoOf(WsTokens).t25 = function (value) {
1676
+ protoOf(WsTokens).m25 = function (value) {
1628
1677
  return new WsTokens(value);
1629
1678
  };
1630
1679
  protoOf(WsTokens).copy = function (value, $super) {
1631
1680
  value = value === VOID ? this.value : value;
1632
- return this.t25(value);
1681
+ return this.m25(value);
1633
1682
  };
1634
1683
  protoOf(WsTokens).toString = function () {
1635
1684
  return 'WsTokens(value=' + toString(this.value) + ')';
@@ -1640,13 +1689,13 @@
1640
1689
  this.value = value;
1641
1690
  this.coordinates = coordinates;
1642
1691
  }
1643
- protoOf(WsToken).b25 = function () {
1692
+ protoOf(WsToken).s24 = function () {
1644
1693
  return this.type;
1645
1694
  };
1646
1695
  protoOf(WsToken).y = function () {
1647
1696
  return this.value;
1648
1697
  };
1649
- protoOf(WsToken).u25 = function () {
1698
+ protoOf(WsToken).n25 = function () {
1650
1699
  return this.coordinates;
1651
1700
  };
1652
1701
  protoOf(WsToken).e3 = function () {
@@ -1658,14 +1707,14 @@
1658
1707
  protoOf(WsToken).c8 = function () {
1659
1708
  return this.coordinates;
1660
1709
  };
1661
- protoOf(WsToken).v25 = function (type, value, coordinates) {
1710
+ protoOf(WsToken).o25 = function (type, value, coordinates) {
1662
1711
  return new WsToken(type, value, coordinates);
1663
1712
  };
1664
1713
  protoOf(WsToken).copy = function (type, value, coordinates, $super) {
1665
1714
  type = type === VOID ? this.type : type;
1666
1715
  value = value === VOID ? this.value : value;
1667
1716
  coordinates = coordinates === VOID ? this.coordinates : coordinates;
1668
- return this.v25(type, value, coordinates);
1717
+ return this.o25(type, value, coordinates);
1669
1718
  };
1670
1719
  protoOf(WsToken).toString = function () {
1671
1720
  return 'WsToken(type=' + this.type + ', value=' + this.value + ', coordinates=' + this.coordinates + ')';
@@ -1698,13 +1747,13 @@
1698
1747
  this.position = position;
1699
1748
  this.idxAndLength = idxAndLength;
1700
1749
  }
1701
- protoOf(WsCoordinates).w25 = function () {
1750
+ protoOf(WsCoordinates).p25 = function () {
1702
1751
  return this.line;
1703
1752
  };
1704
1753
  protoOf(WsCoordinates).vo = function () {
1705
1754
  return this.position;
1706
1755
  };
1707
- protoOf(WsCoordinates).x25 = function () {
1756
+ protoOf(WsCoordinates).q25 = function () {
1708
1757
  return this.idxAndLength;
1709
1758
  };
1710
1759
  protoOf(WsCoordinates).e3 = function () {
@@ -1716,14 +1765,14 @@
1716
1765
  protoOf(WsCoordinates).c8 = function () {
1717
1766
  return this.idxAndLength;
1718
1767
  };
1719
- protoOf(WsCoordinates).y25 = function (line, position, idxAndLength) {
1768
+ protoOf(WsCoordinates).r25 = function (line, position, idxAndLength) {
1720
1769
  return new WsCoordinates(line, position, idxAndLength);
1721
1770
  };
1722
1771
  protoOf(WsCoordinates).copy = function (line, position, idxAndLength, $super) {
1723
1772
  line = line === VOID ? this.line : line;
1724
1773
  position = position === VOID ? this.position : position;
1725
1774
  idxAndLength = idxAndLength === VOID ? this.idxAndLength : idxAndLength;
1726
- return this.y25(line, position, idxAndLength);
1775
+ return this.r25(line, position, idxAndLength);
1727
1776
  };
1728
1777
  protoOf(WsCoordinates).toString = function () {
1729
1778
  return 'WsCoordinates(line=' + this.line + ', position=' + this.position + ', idxAndLength=' + this.idxAndLength + ')';
@@ -1754,7 +1803,7 @@
1754
1803
  this.idx = idx;
1755
1804
  this.length = length;
1756
1805
  }
1757
- protoOf(WsIndex).z25 = function () {
1806
+ protoOf(WsIndex).s25 = function () {
1758
1807
  return this.idx;
1759
1808
  };
1760
1809
  protoOf(WsIndex).ba = function () {
@@ -1766,13 +1815,13 @@
1766
1815
  protoOf(WsIndex).f3 = function () {
1767
1816
  return this.length;
1768
1817
  };
1769
- protoOf(WsIndex).a26 = function (idx, length) {
1818
+ protoOf(WsIndex).t25 = function (idx, length) {
1770
1819
  return new WsIndex(idx, length);
1771
1820
  };
1772
1821
  protoOf(WsIndex).copy = function (idx, length, $super) {
1773
1822
  idx = idx === VOID ? this.idx : idx;
1774
1823
  length = length === VOID ? this.length : length;
1775
- return this.a26(idx, length);
1824
+ return this.t25(idx, length);
1776
1825
  };
1777
1826
  protoOf(WsIndex).toString = function () {
1778
1827
  return 'WsIndex(idx=' + this.idx + ', length=' + this.length + ')';
@@ -1812,20 +1861,20 @@
1812
1861
  return new WsTokenResult(new WsTokens(tmp$ret$3));
1813
1862
  }
1814
1863
  function produce_17(_this__u8e3s4) {
1815
- return new WsToken(_this__u8e3s4.c20_1.f20(), _this__u8e3s4.d20_1, produce_18(_this__u8e3s4.e20_1));
1864
+ return new WsToken(_this__u8e3s4.v1z_1.y1z(), _this__u8e3s4.w1z_1, produce_18(_this__u8e3s4.x1z_1));
1816
1865
  }
1817
1866
  function produce_18(_this__u8e3s4) {
1818
- return new WsCoordinates(_this__u8e3s4.g20_1, _this__u8e3s4.h20_1, produce_19(_this__u8e3s4.i20_1));
1867
+ return new WsCoordinates(_this__u8e3s4.z1z_1, _this__u8e3s4.a20_1, produce_19(_this__u8e3s4.b20_1));
1819
1868
  }
1820
1869
  function produce_19(_this__u8e3s4) {
1821
- return new WsIndex(_this__u8e3s4.o21_1, _this__u8e3s4.p21_1);
1870
+ return new WsIndex(_this__u8e3s4.f21_1, _this__u8e3s4.g21_1);
1822
1871
  }
1823
1872
  function WsError(index, length, value) {
1824
1873
  this.index = index;
1825
1874
  this.length = length;
1826
1875
  this.value = value;
1827
1876
  }
1828
- protoOf(WsError).b26 = function () {
1877
+ protoOf(WsError).u25 = function () {
1829
1878
  return this.index;
1830
1879
  };
1831
1880
  protoOf(WsError).ba = function () {
@@ -1843,14 +1892,14 @@
1843
1892
  protoOf(WsError).c8 = function () {
1844
1893
  return this.value;
1845
1894
  };
1846
- protoOf(WsError).c26 = function (index, length, value) {
1895
+ protoOf(WsError).v25 = function (index, length, value) {
1847
1896
  return new WsError(index, length, value);
1848
1897
  };
1849
1898
  protoOf(WsError).copy = function (index, length, value, $super) {
1850
1899
  index = index === VOID ? this.index : index;
1851
1900
  length = length === VOID ? this.length : length;
1852
1901
  value = value === VOID ? this.value : value;
1853
- return this.c26(index, length, value);
1902
+ return this.v25(index, length, value);
1854
1903
  };
1855
1904
  protoOf(WsError).toString = function () {
1856
1905
  return 'WsError(index=' + this.index + ', length=' + this.length + ', value=' + this.value + ')';
@@ -1876,9 +1925,9 @@
1876
1925
  return true;
1877
1926
  };
1878
1927
  function produce_20(_this__u8e3s4) {
1879
- var tmp = _this__u8e3s4.j20_1.i20_1.o21_1 - _this__u8e3s4.j20_1.i20_1.p21_1 | 0;
1928
+ var tmp = _this__u8e3s4.c20_1.b20_1.f21_1 - _this__u8e3s4.c20_1.b20_1.g21_1 | 0;
1880
1929
  var tmp0_elvis_lhs = _this__u8e3s4.message;
1881
- return new WsError(tmp, _this__u8e3s4.j20_1.i20_1.p21_1, tmp0_elvis_lhs == null ? 'No message' : tmp0_elvis_lhs);
1930
+ return new WsError(tmp, _this__u8e3s4.c20_1.b20_1.g21_1, tmp0_elvis_lhs == null ? 'No message' : tmp0_elvis_lhs);
1882
1931
  }
1883
1932
  //region block: post-declaration
1884
1933
  defineProp(protoOf(WsType), 'name', function () {
@@ -1896,28 +1945,28 @@
1896
1945
  defineProp(protoOf(WsMethod), 'name', protoOf(WsMethod).bh, VOID);
1897
1946
  defineProp(protoOf(WsMethod), 'ordinal', protoOf(WsMethod).ch, VOID);
1898
1947
  defineProp(protoOf(WsAny), 'isIterable', function () {
1899
- return this.q1r();
1948
+ return this.p1r();
1900
1949
  }, VOID);
1901
1950
  defineProp(protoOf(WsAny), 'isMap', function () {
1902
- return this.k1z();
1951
+ return this.d1z();
1903
1952
  }, VOID);
1904
1953
  defineProp(protoOf(WsUnit), 'isIterable', function () {
1905
- return this.q1r();
1954
+ return this.p1r();
1906
1955
  }, VOID);
1907
1956
  defineProp(protoOf(WsUnit), 'isMap', function () {
1908
- return this.k1z();
1957
+ return this.d1z();
1909
1958
  }, VOID);
1910
1959
  defineProp(protoOf(WsCustom), 'isIterable', function () {
1911
- return this.q1r();
1960
+ return this.p1r();
1912
1961
  }, VOID);
1913
1962
  defineProp(protoOf(WsCustom), 'isMap', function () {
1914
- return this.k1z();
1963
+ return this.d1z();
1915
1964
  }, VOID);
1916
1965
  defineProp(protoOf(WsPrimitive), 'isIterable', function () {
1917
- return this.q1r();
1966
+ return this.p1r();
1918
1967
  }, VOID);
1919
1968
  defineProp(protoOf(WsPrimitive), 'isMap', function () {
1920
- return this.k1z();
1969
+ return this.d1z();
1921
1970
  }, VOID);
1922
1971
  defineProp(protoOf(WsPrimitiveType), 'name', protoOf(WsPrimitiveType).bh, VOID);
1923
1972
  defineProp(protoOf(WsPrimitiveType), 'ordinal', protoOf(WsPrimitiveType).ch, VOID);
@@ -1975,8 +2024,12 @@
1975
2024
  defineProp($community$flock$wirespec$compiler$lib.WsToKotlin, 'Companion', Companion_getInstance_2, VOID);
1976
2025
  $community$flock$wirespec$compiler$lib.WsToTypeScript = WsToTypeScript;
1977
2026
  defineProp($community$flock$wirespec$compiler$lib.WsToTypeScript, 'Companion', Companion_getInstance_3, VOID);
2027
+ $community$flock$wirespec$compiler$lib.WsToScala = WsToScala;
2028
+ defineProp($community$flock$wirespec$compiler$lib.WsToScala, 'Companion', Companion_getInstance_4, VOID);
2029
+ $community$flock$wirespec$compiler$lib.WsToJava = WsToJava;
2030
+ defineProp($community$flock$wirespec$compiler$lib.WsToJava, 'Companion', Companion_getInstance_5, VOID);
1978
2031
  $community$flock$wirespec$compiler$lib.WsToWirespec = WsToWirespec;
1979
- defineProp($community$flock$wirespec$compiler$lib.WsToWirespec, 'Companion', Companion_getInstance_4, VOID);
2032
+ defineProp($community$flock$wirespec$compiler$lib.WsToWirespec, 'Companion', Companion_getInstance_6, VOID);
1980
2033
  defineProp($community$flock$wirespec$compiler$lib, 'OpenApiV2Parser', OpenApiV2Parser_getInstance, VOID);
1981
2034
  defineProp($community$flock$wirespec$compiler$lib, 'OpenApiV3Parser', OpenApiV3Parser_getInstance, VOID);
1982
2035
  defineProp($community$flock$wirespec$compiler$lib, 'OpenApiV3ToTypescript', OpenApiV3ToTypescript_getInstance, VOID);