@flock/wirespec 0.22.5 → 0.22.7

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 (49) hide show
  1. package/arrow-arrow-atomic.mjs +11 -11
  2. package/arrow-arrow-core.mjs +157 -157
  3. package/clikt-clikt-mordant.mjs +80 -80
  4. package/clikt-clikt.mjs +1528 -1527
  5. package/clikt-clikt.mjs.map +1 -1
  6. package/colormath-root-colormath.mjs +444 -444
  7. package/kotlin-kotlin-stdlib.mjs +1780 -1757
  8. package/kotlin-kotlin-stdlib.mjs.map +1 -1
  9. package/kotlin-openapi-bindings.mjs +10202 -10202
  10. package/kotlin-rgxgen.mjs +1812 -1812
  11. package/kotlinx-io-kotlinx-io-core.mjs +435 -435
  12. package/kotlinx-serialization-kotlinx-serialization-core.mjs +1848 -1848
  13. package/kotlinx-serialization-kotlinx-serialization-json.mjs +1576 -1576
  14. package/mordant-mordant.mjs +1322 -1322
  15. package/package.json +1 -1
  16. package/wirespec-src-compiler-core.mjs +7497 -7034
  17. package/wirespec-src-compiler-core.mjs.map +1 -1
  18. package/wirespec-src-compiler-emitters-java.mjs +198 -214
  19. package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
  20. package/wirespec-src-compiler-emitters-kotlin.mjs +164 -175
  21. package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
  22. package/wirespec-src-compiler-emitters-python.mjs +185 -198
  23. package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
  24. package/wirespec-src-compiler-emitters-rust.mjs +425 -439
  25. package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
  26. package/wirespec-src-compiler-emitters-scala.mjs +197 -207
  27. package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
  28. package/wirespec-src-compiler-emitters-typescript.mjs +234 -360
  29. package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
  30. package/wirespec-src-compiler-emitters-wirespec.mjs +179 -199
  31. package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
  32. package/wirespec-src-compiler-lib.mjs +282 -282
  33. package/wirespec-src-converter-asyncapi.mjs +861 -779
  34. package/wirespec-src-converter-asyncapi.mjs.map +1 -1
  35. package/wirespec-src-converter-avro.mjs +603 -602
  36. package/wirespec-src-converter-avro.mjs.map +1 -1
  37. package/wirespec-src-converter-common.mjs +18 -18
  38. package/wirespec-src-converter-graphql.mjs +1070 -1070
  39. package/wirespec-src-converter-openapi.mjs +792 -680
  40. package/wirespec-src-converter-openapi.mjs.map +1 -1
  41. package/wirespec-src-ide-lsp.mjs +1383 -1383
  42. package/wirespec-src-plugin-arguments.mjs +207 -201
  43. package/wirespec-src-plugin-arguments.mjs.map +1 -1
  44. package/wirespec-src-plugin-cli.mjs +156 -159
  45. package/wirespec-src-plugin-cli.mjs.map +1 -1
  46. package/wirespec-src-plugin-extensions.mjs +1828 -1275
  47. package/wirespec-src-plugin-extensions.mjs.map +1 -1
  48. package/wirespec-src-plugin-npm.mjs +54 -54
  49. package/wirespec-src-tools-generator.mjs +32 -32
@@ -20,14 +20,14 @@ import {
20
20
  listOfvhqybd2zx248 as listOf,
21
21
  to2cs3ny02qtbcb as to,
22
22
  toMap1vec9topfei08 as toMap,
23
- emptyList1g2z5xcrvp2zy as emptyList,
24
- VOID3gxj6tk5isa35 as VOID,
25
23
  ArrayList_init_$Create$37gc04va6yfo2 as ArrayList_init_$Create$_0,
26
24
  Paire9pteg33gng7 as Pair,
27
25
  plus310ted5e4i90h as plus,
26
+ VOID3gxj6tk5isa35 as VOID,
28
27
  setOf45ia9pnfhe90 as setOf,
29
28
  listOf1jh22dvmctj1r as listOf_0,
30
29
  addAll1k27qatfgp3k5 as addAll,
30
+ emptyList1g2z5xcrvp2zy as emptyList,
31
31
  THROW_CCE2g6jy02ryeudk as THROW_CCE,
32
32
  startsWith26w8qjqapeeq6 as startsWith,
33
33
  substringBefore3n7kj60w69hju as substringBefore,
@@ -55,7 +55,6 @@ import {
55
55
  addBackticks1di5q03fw4yhx as addBackticks,
56
56
  ScalaGenerator_getInstance1imy4g5e4y6qp as ScalaGenerator_getInstance,
57
57
  Name1ijtblv1phm3y as Name,
58
- FunctionCall1a3g4e6bcljl6 as FunctionCall,
59
58
  transformChildren34heehtlmzzif as transformChildren,
60
59
  sanitizeFieldName333wgwu6tt90n as sanitizeFieldName,
61
60
  ConstructorStatement1edouznvc71xv as ConstructorStatement,
@@ -100,16 +99,16 @@ import {
100
99
  sanitizeNames1v55mz1p84psg as sanitizeNames,
101
100
  collectCustomTypeNames2atsrip288ol4 as collectCustomTypeNames,
102
101
  placeInPackagea1jcxre6uf77 as placeInPackage_0,
103
- convertWithValidation24mbxf4x2u6w4 as convertWithValidation,
102
+ convert23o50n5glj7h5 as convert_0,
104
103
  ensureEmptyStructHasConstructorftf9v01tnb2y as ensureEmptyStructHasConstructor,
105
- convert1ke01d6gmcvu7 as convert_0,
104
+ convert1ke01d6gmcvu7 as convert_1,
106
105
  injectEnumLabelField21kogrwccvlea as injectEnumLabelField,
107
- convert29zpebhuxz599 as convert_1,
108
- convert39lmqftdnlhsy as convert_2,
106
+ convert29zpebhuxz599 as convert_2,
107
+ convert39lmqftdnlhsy as convert_3,
109
108
  markMembersAsOverridessfchvibgdcx as markMembersAsOverride,
110
- convert333pgxr2q05n as convert_3,
111
- convert86y6uioox2cl as convert_4,
112
- convert1o5h4ulxoqycg as convert_5,
109
+ convert333pgxr2q05n as convert_4,
110
+ convert86y6uioox2cl as convert_5,
111
+ convert1o5h4ulxoqycg as convert_6,
113
112
  emitEndpointClient2og25opoka4ql as emitEndpointClient,
114
113
  plus14o24vdaiongg as plus_1,
115
114
  importReferencesy4xv7r53sjjs as importReferences,
@@ -132,6 +131,7 @@ import {
132
131
  Integer39lqx4uc63u28 as Integer,
133
132
  String1czvr8pxnm6on as String_0,
134
133
  Primitive1i8my14jkp3nk as Primitive,
134
+ FunctionCall1a3g4e6bcljl6 as FunctionCall,
135
135
  transformChildren21ucrga4lv4sn as transformChildren_1,
136
136
  FieldCall2nusnrnm7uuow as FieldCall,
137
137
  Paramvfwnys2w6aj1 as Param,
@@ -146,7 +146,7 @@ initMetadataForCompanion(Companion);
146
146
  initMetadataForClass(ScalaEmitter, 'ScalaEmitter', ScalaEmitter, VOID, [IrEmitter]);
147
147
  //endregion
148
148
  function _get_sanitizationConfig__sns434($this) {
149
- var tmp0 = $this.x36_1;
149
+ var tmp0 = $this.l39_1;
150
150
  var tmp = KProperty1;
151
151
  // Inline function 'kotlin.getValue' call
152
152
  getPropertyCallableRef('sanitizationConfig', 1, tmp, ScalaEmitter$_get_sanitizationConfig_$ref_u7mbyd(), null);
@@ -163,7 +163,7 @@ function sanitize($this, $receiver) {
163
163
  var item = _iterator__ex2g4s.v();
164
164
  var _unary__edvuaz = index;
165
165
  index = _unary__edvuaz + 1 | 0;
166
- var tmp$ret$2 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance.yr(item) : item;
166
+ var tmp$ret$2 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance.zr(item) : item;
167
167
  destination.x(tmp$ret$2);
168
168
  }
169
169
  // Inline function 'kotlin.text.filter' call
@@ -211,7 +211,7 @@ function sanitizeFirstIsDigit($this, $receiver) {
211
211
  return tmp;
212
212
  }
213
213
  function sanitizeKeywords($this, $receiver) {
214
- return Companion_getInstance_0().z34().i1($receiver) ? addBackticks($receiver) : $receiver;
214
+ return Companion_getInstance_0().n37().i1($receiver) ? addBackticks($receiver) : $receiver;
215
215
  }
216
216
  function sanitizeSymbol($this, $receiver) {
217
217
  // Inline function 'kotlin.collections.mapIndexed' call
@@ -224,7 +224,7 @@ function sanitizeSymbol($this, $receiver) {
224
224
  var item = _iterator__ex2g4s.v();
225
225
  var _unary__edvuaz = index;
226
226
  index = _unary__edvuaz + 1 | 0;
227
- var tmp$ret$2 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance.yr(item) : item;
227
+ var tmp$ret$2 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance.zr(item) : item;
228
228
  destination.x(tmp$ret$2);
229
229
  }
230
230
  // Inline function 'kotlin.text.filter' call
@@ -251,10 +251,10 @@ function sanitizeEnum($this, $receiver) {
251
251
  }
252
252
  function Companion() {
253
253
  Companion_instance_2 = this;
254
- this.y36_1 = ScalaGenerator_getInstance();
254
+ this.m39_1 = ScalaGenerator_getInstance();
255
255
  }
256
- protoOf(Companion).z34 = function () {
257
- return this.y36_1.p1b_1;
256
+ protoOf(Companion).n37 = function () {
257
+ return this.m39_1.s1c_1;
258
258
  };
259
259
  var Companion_instance_2;
260
260
  function Companion_getInstance_0() {
@@ -267,13 +267,13 @@ function ScalaEmitter$sanitizationConfig$delegate$lambda$lambda(it) {
267
267
  }
268
268
  function ScalaEmitter$sanitizationConfig$delegate$lambda$lambda_0(this$0) {
269
269
  return function (name) {
270
- var sanitized = name.ut_1.b1() > 1 ? name.yt() : sanitizeSymbol(this$0, name.xt());
270
+ var sanitized = name.yt_1.c1() > 1 ? name.cu() : sanitizeSymbol(this$0, name.bu());
271
271
  return new Name(listOf(sanitized));
272
272
  };
273
273
  }
274
274
  function ScalaEmitter$sanitizationConfig$delegate$lambda$lambda_1(this$0) {
275
275
  return function (name) {
276
- return new Name(listOf(sanitizeSymbol(this$0, name.yt())));
276
+ return new Name(listOf(sanitizeSymbol(this$0, name.cu())));
277
277
  };
278
278
  }
279
279
  function ScalaEmitter$sanitizationConfig$delegate$lambda$lambda_2(this$0) {
@@ -284,43 +284,33 @@ function ScalaEmitter$sanitizationConfig$delegate$lambda$lambda_2(this$0) {
284
284
  function ScalaEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
285
285
  return function (stmt, tr) {
286
286
  var tmp;
287
- var tmp_0;
288
- if (stmt instanceof FunctionCall) {
289
- tmp_0 = stmt.eu_1.xt() === 'validate';
290
- } else {
291
- tmp_0 = false;
292
- }
293
- if (tmp_0) {
294
- tmp = transformChildren(stmt.iu(VOID, emptyList()), tr);
295
- } else {
296
- if (stmt instanceof ConstructorStatement) {
297
- var tmp_1 = tr.i18(stmt.dv_1);
298
- // Inline function 'kotlin.collections.map' call
299
- var this_0 = stmt.ev_1;
300
- // Inline function 'kotlin.collections.mapTo' call
301
- var destination = ArrayList_init_$Create$(this_0.b1());
302
- // Inline function 'kotlin.collections.iterator' call
303
- var _iterator__ex2g4s = this_0.m1().t();
304
- while (_iterator__ex2g4s.u()) {
305
- var item = _iterator__ex2g4s.v();
306
- // Inline function 'kotlin.collections.component1' call
307
- var name = item.n1();
308
- // Inline function 'kotlin.collections.component2' call
309
- var expr = item.o1();
310
- var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), name), tr.l18(expr));
311
- destination.x(tmp$ret$3);
312
- }
313
- tmp = new ConstructorStatement(tmp_1, toMap(destination));
314
- } else {
315
- tmp = transformChildren(stmt, tr);
287
+ if (stmt instanceof ConstructorStatement) {
288
+ var tmp_0 = tr.w18(stmt.gu_1);
289
+ // Inline function 'kotlin.collections.map' call
290
+ var this_0 = stmt.hu_1;
291
+ // Inline function 'kotlin.collections.mapTo' call
292
+ var destination = ArrayList_init_$Create$(this_0.c1());
293
+ // Inline function 'kotlin.collections.iterator' call
294
+ var _iterator__ex2g4s = this_0.m1().t();
295
+ while (_iterator__ex2g4s.u()) {
296
+ var item = _iterator__ex2g4s.v();
297
+ // Inline function 'kotlin.collections.component1' call
298
+ var name = item.n1();
299
+ // Inline function 'kotlin.collections.component2' call
300
+ var expr = item.o1();
301
+ var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), name), tr.z18(expr));
302
+ destination.x(tmp$ret$3);
316
303
  }
304
+ tmp = new ConstructorStatement(tmp_0, toMap(destination));
305
+ } else {
306
+ tmp = transformChildren(stmt, tr);
317
307
  }
318
308
  return tmp;
319
309
  };
320
310
  }
321
311
  function ScalaEmitter$sanitizationConfig$delegate$lambda(this$0) {
322
312
  return function () {
323
- var tmp = Companion_getInstance_0().z34();
313
+ var tmp = Companion_getInstance_0().n37();
324
314
  var tmp_0 = ScalaEmitter$sanitizationConfig$delegate$lambda$lambda;
325
315
  var tmp_1 = ScalaEmitter$sanitizationConfig$delegate$lambda$lambda_0(this$0);
326
316
  var tmp_2 = ScalaEmitter$sanitizationConfig$delegate$lambda$lambda_1(this$0);
@@ -334,21 +324,21 @@ function ScalaEmitter$_get_sanitizationConfig_$ref_u7mbyd() {
334
324
  };
335
325
  }
336
326
  function ScalaEmitter$emitShared$lambda($this$struct) {
337
- $this$struct.j15(Custom_init_$Create$('PathSegment'));
338
- $this$struct.l15('value', String_instance);
327
+ $this$struct.x15(Custom_init_$Create$('PathSegment'));
328
+ $this$struct.z15('value', String_instance);
339
329
  return Unit_instance;
340
330
  }
341
331
  function ScalaEmitter$emitShared$lambda_0($this$struct) {
342
- $this$struct.j15(Custom_init_$Create$('PathSegment'));
343
- $this$struct.l15('name', String_instance);
344
- $this$struct.l15('type', Reflect_instance);
332
+ $this$struct.x15(Custom_init_$Create$('PathSegment'));
333
+ $this$struct.z15('name', String_instance);
334
+ $this$struct.z15('type', Reflect_instance);
345
335
  return Unit_instance;
346
336
  }
347
337
  function ScalaEmitter$emitShared$lambda_1(element, transformer) {
348
338
  var tmp;
349
339
  if (element instanceof File) {
350
340
  // Inline function 'kotlin.collections.partition' call
351
- var this_0 = element.iv_1;
341
+ var this_0 = element.gv_1;
352
342
  var first = ArrayList_init_$Create$_0();
353
343
  var second = ArrayList_init_$Create$_0();
354
344
  var _iterator__ex2g4s = this_0.t();
@@ -361,9 +351,9 @@ function ScalaEmitter$emitShared$lambda_1(element, transformer) {
361
351
  }
362
352
  }
363
353
  var _destruct__k2r9zo = new Pair(first, second);
364
- var packageElements = _destruct__k2r9zo.ze();
365
- var rest = _destruct__k2r9zo.af();
366
- tmp = element.lv(VOID, plus(packageElements, rest));
354
+ var packageElements = _destruct__k2r9zo.af();
355
+ var rest = _destruct__k2r9zo.bf();
356
+ tmp = element.jv(VOID, plus(packageElements, rest));
367
357
  } else {
368
358
  tmp = element;
369
359
  }
@@ -375,12 +365,12 @@ function ScalaEmitter$emitShared$lambda_2(element, transformer) {
375
365
  if (element instanceof Namespace) {
376
366
  var tmp$ret$0;
377
367
  $l$block: {
378
- if (!element.nv_1.equals(Companion_getInstance().wt('Wirespec'))) {
368
+ if (!element.lv_1.equals(Companion_getInstance().au('Wirespec'))) {
379
369
  tmp$ret$0 = element;
380
370
  break $l$block;
381
371
  }
382
372
  // Inline function 'kotlin.collections.flatMap' call
383
- var tmp0 = element.ov_1;
373
+ var tmp0 = element.mv_1;
384
374
  // Inline function 'kotlin.collections.flatMapTo' call
385
375
  var destination = ArrayList_init_$Create$_0();
386
376
  var _iterator__ex2g4s = tmp0.t();
@@ -392,14 +382,14 @@ function ScalaEmitter$emitShared$lambda_2(element, transformer) {
392
382
  if (!(element_0 instanceof Interface)) {
393
383
  tmp_0 = true;
394
384
  } else {
395
- tmp_0 = !setOf(['Request', 'Response']).i1(element_0.tv_1.zt());
385
+ tmp_0 = !setOf(['Request', 'Response']).i1(element_0.rv_1.du());
396
386
  }
397
387
  if (tmp_0) {
398
388
  tmp$ret$3 = listOf(element_0);
399
389
  break $l$block_2;
400
390
  }
401
391
  // Inline function 'kotlin.collections.filterIsInstance' call
402
- var tmp0_0 = element_0.uv_1;
392
+ var tmp0_0 = element_0.sv_1;
403
393
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
404
394
  var destination_0 = ArrayList_init_$Create$_0();
405
395
  var _iterator__ex2g4s_0 = tmp0_0.t();
@@ -415,7 +405,7 @@ function ScalaEmitter$emitShared$lambda_2(element, transformer) {
415
405
  var _iterator__ex2g4s_1 = destination_0.t();
416
406
  while (_iterator__ex2g4s_1.u()) {
417
407
  var element_2 = _iterator__ex2g4s_1.v();
418
- if (element_2.tv_1.zt() === 'Headers') {
408
+ if (element_2.rv_1.du() === 'Headers') {
419
409
  tmp$ret$6 = element_2;
420
410
  break $l$block_1;
421
411
  }
@@ -431,9 +421,9 @@ function ScalaEmitter$emitShared$lambda_2(element, transformer) {
431
421
  tmp_1 = tmp0_elvis_lhs;
432
422
  }
433
423
  var nestedHeaders = tmp_1;
434
- var tmp_2 = new Namespace(element_0.tv_1, listOf(nestedHeaders));
424
+ var tmp_2 = new Namespace(element_0.rv_1, listOf(nestedHeaders));
435
425
  // Inline function 'kotlin.collections.filter' call
436
- var tmp0_1 = element_0.uv_1;
426
+ var tmp0_1 = element_0.sv_1;
437
427
  // Inline function 'kotlin.collections.filterTo' call
438
428
  var destination_1 = ArrayList_init_$Create$_0();
439
429
  var _iterator__ex2g4s_2 = tmp0_1.t();
@@ -441,7 +431,7 @@ function ScalaEmitter$emitShared$lambda_2(element, transformer) {
441
431
  var element_3 = _iterator__ex2g4s_2.v();
442
432
  var tmp_3;
443
433
  if (element_3 instanceof Interface) {
444
- tmp_3 = element_3.tv_1.zt() === 'Headers';
434
+ tmp_3 = element_3.rv_1.du() === 'Headers';
445
435
  } else {
446
436
  tmp_3 = false;
447
437
  }
@@ -451,28 +441,28 @@ function ScalaEmitter$emitShared$lambda_2(element, transformer) {
451
441
  }
452
442
  var tmp_4 = destination_1;
453
443
  // Inline function 'kotlin.collections.map' call
454
- var this_0 = element_0.yv_1;
444
+ var this_0 = element_0.wv_1;
455
445
  // Inline function 'kotlin.collections.mapTo' call
456
446
  var destination_2 = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
457
447
  var _iterator__ex2g4s_3 = this_0.t();
458
448
  while (_iterator__ex2g4s_3.u()) {
459
449
  var item = _iterator__ex2g4s_3.v();
460
450
  var tmp_5;
461
- if (item.cw_1.xt() === 'headers') {
462
- tmp_5 = item.mw(VOID, Custom_init_$Create$(element_0.tv_1.zt() + '.Headers'));
451
+ if (item.aw_1.bu() === 'headers') {
452
+ tmp_5 = item.kw(VOID, Custom_init_$Create$(element_0.rv_1.du() + '.Headers'));
463
453
  } else {
464
454
  tmp_5 = item;
465
455
  }
466
456
  var tmp$ret$13 = tmp_5;
467
457
  destination_2.x(tmp$ret$13);
468
458
  }
469
- tmp$ret$3 = listOf_0([tmp_2, element_0.bw(VOID, tmp_4, VOID, VOID, VOID, destination_2)]);
459
+ tmp$ret$3 = listOf_0([tmp_2, element_0.zv(VOID, tmp_4, VOID, VOID, VOID, destination_2)]);
470
460
  }
471
461
  var list = tmp$ret$3;
472
462
  addAll(destination, list);
473
463
  }
474
464
  var newElements = destination;
475
- tmp$ret$0 = element.sv(VOID, newElements);
465
+ tmp$ret$0 = element.qv(VOID, newElements);
476
466
  }
477
467
  tmp = tmp$ret$0;
478
468
  } else {
@@ -485,27 +475,27 @@ function ScalaEmitter$emitShared$lambda_3($clientServer) {
485
475
  return function (element, transformer) {
486
476
  var tmp;
487
477
  if (element instanceof Namespace) {
488
- var injected = element.nv_1.equals(Companion_getInstance().wt('Wirespec')) ? $clientServer : emptyList();
478
+ var injected = element.lv_1.equals(Companion_getInstance().au('Wirespec')) ? $clientServer : emptyList();
489
479
  var tmp_0;
490
480
  // Inline function 'kotlin.collections.isNotEmpty' call
491
481
  if (!injected.r()) {
492
482
  // Inline function 'community.flock.wirespec.compiler.core.ir.withElements' call
493
- var elements = plus(element.jv(), injected);
483
+ var elements = plus(element.hv(), injected);
494
484
  var tmp_1;
495
485
  if (element instanceof File) {
496
- tmp_1 = element.lv(VOID, elements);
486
+ tmp_1 = element.jv(VOID, elements);
497
487
  } else {
498
488
  if (element instanceof Struct) {
499
- tmp_1 = element.sx(VOID, VOID, VOID, VOID, elements);
489
+ tmp_1 = element.qx(VOID, VOID, VOID, VOID, elements);
500
490
  } else {
501
491
  if (element instanceof Namespace) {
502
- tmp_1 = element.sv(VOID, elements);
492
+ tmp_1 = element.qv(VOID, elements);
503
493
  } else {
504
494
  if (element instanceof Interface) {
505
- tmp_1 = element.bw(VOID, elements);
495
+ tmp_1 = element.zv(VOID, elements);
506
496
  } else {
507
497
  if (element instanceof Enum) {
508
- tmp_1 = element.gx(VOID, VOID, VOID, VOID, VOID, elements);
498
+ tmp_1 = element.ex(VOID, VOID, VOID, VOID, VOID, elements);
509
499
  } else {
510
500
  if (element instanceof Main) {
511
501
  tmp_1 = element;
@@ -549,28 +539,28 @@ function ScalaEmitter$emit$lambda(this$0) {
549
539
  function ScalaEmitter(packageName, emitShared) {
550
540
  Companion_getInstance_0();
551
541
  packageName = packageName === VOID ? Companion_instance_0.at('community.flock.wirespec.generated') : packageName;
552
- emitShared = emitShared === VOID ? Companion_instance_1.fq() : emitShared;
553
- this.s36_1 = packageName;
554
- this.t36_1 = emitShared;
555
- this.u36_1 = ScalaGenerator_getInstance();
556
- this.v36_1 = FileExtension_Scala_getInstance();
557
- this.w36_1 = listOf_0([import_0('community.flock.wirespec.scala', 'Wirespec'), import_0('scala.reflect', 'ClassTag')]);
542
+ emitShared = emitShared === VOID ? Companion_instance_1.gq() : emitShared;
543
+ this.g39_1 = packageName;
544
+ this.h39_1 = emitShared;
545
+ this.i39_1 = ScalaGenerator_getInstance();
546
+ this.j39_1 = FileExtension_Scala_getInstance();
547
+ this.k39_1 = listOf_0([import_0('community.flock.wirespec.scala', 'Wirespec'), import_0('scala.reflect', 'ClassTag')]);
558
548
  var tmp = this;
559
- tmp.x36_1 = lazy(ScalaEmitter$sanitizationConfig$delegate$lambda(this));
549
+ tmp.l39_1 = lazy(ScalaEmitter$sanitizationConfig$delegate$lambda(this));
560
550
  }
561
- protoOf(ScalaEmitter).g35 = function () {
562
- return this.s36_1;
551
+ protoOf(ScalaEmitter).u37 = function () {
552
+ return this.g39_1;
563
553
  };
564
- protoOf(ScalaEmitter).d1b = function () {
565
- return this.u36_1;
554
+ protoOf(ScalaEmitter).l1b = function () {
555
+ return this.i39_1;
566
556
  };
567
- protoOf(ScalaEmitter).wp = function () {
568
- return this.v36_1;
557
+ protoOf(ScalaEmitter).xp = function () {
558
+ return this.j39_1;
569
559
  };
570
- protoOf(ScalaEmitter).c1b = function (allFiles) {
571
- ScalaGenerator_getInstance().t1b(allFiles);
560
+ protoOf(ScalaEmitter).k1b = function (allFiles) {
561
+ ScalaGenerator_getInstance().w1c(allFiles);
572
562
  };
573
- protoOf(ScalaEmitter).y1a = function () {
563
+ protoOf(ScalaEmitter).g1b = function () {
574
564
  var packageName = Companion_instance_0.at('community.flock.wirespec.scala');
575
565
  var tmp = interface_0('PathSegment', true);
576
566
  var tmp_0 = struct('Literal', ScalaEmitter$emitShared$lambda);
@@ -585,12 +575,12 @@ protoOf(ScalaEmitter).y1a = function () {
585
575
  var tmp_1;
586
576
  var tmp_2;
587
577
  if (item instanceof Interface) {
588
- tmp_2 = setOf(['Client', 'Server']).i1(item.tv_1.zt());
578
+ tmp_2 = setOf(['Client', 'Server']).i1(item.rv_1.du());
589
579
  } else {
590
580
  tmp_2 = false;
591
581
  }
592
582
  if (tmp_2) {
593
- tmp_1 = item.bw(VOID, VOID, VOID, VOID, VOID, plus_0(item.yv_1, new Field(Companion_getInstance().wt('pathSegments'), new Array_0(Custom_init_$Create$('PathSegment')))));
583
+ tmp_1 = item.zv(VOID, VOID, VOID, VOID, VOID, plus_0(item.wv_1, new Field(Companion_getInstance().au('pathSegments'), new Array_0(Custom_init_$Create$('PathSegment')))));
594
584
  } else {
595
585
  tmp_1 = item;
596
586
  }
@@ -604,58 +594,58 @@ protoOf(ScalaEmitter).y1a = function () {
604
594
  // Inline function 'community.flock.wirespec.compiler.core.ir.TransformScope.matchingElements' call
605
595
  var tmp_3 = scope;
606
596
  // Inline function 'community.flock.wirespec.compiler.core.ir.transformMatchingElements' call
607
- var this_2 = scope.q18_1;
597
+ var this_2 = scope.e19_1;
608
598
  // Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
609
599
  // Inline function 'kotlin.apply' call
610
600
  var this_3 = new TransformerBuilder();
611
- this_3.k19(ScalaEmitter$emitShared$lambda_1);
612
- var tmp$ret$7 = this_3.f19();
613
- tmp_3.q18_1 = transform(this_2, tmp$ret$7);
601
+ this_3.y19(ScalaEmitter$emitShared$lambda_1);
602
+ var tmp$ret$7 = this_3.t19();
603
+ tmp_3.e19_1 = transform(this_2, tmp$ret$7);
614
604
  // Inline function 'community.flock.wirespec.compiler.core.ir.TransformScope.matchingElements' call
615
605
  var tmp_4 = scope;
616
606
  // Inline function 'community.flock.wirespec.compiler.core.ir.transformMatchingElements' call
617
- var this_4 = scope.q18_1;
607
+ var this_4 = scope.e19_1;
618
608
  // Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
619
609
  // Inline function 'kotlin.apply' call
620
610
  var this_5 = new TransformerBuilder();
621
- this_5.k19(ScalaEmitter$emitShared$lambda_2);
622
- var tmp$ret$12 = this_5.f19();
623
- tmp_4.q18_1 = transform(this_4, tmp$ret$12);
611
+ this_5.y19(ScalaEmitter$emitShared$lambda_2);
612
+ var tmp$ret$12 = this_5.t19();
613
+ tmp_4.e19_1 = transform(this_4, tmp$ret$12);
624
614
  // Inline function 'community.flock.wirespec.compiler.core.ir.TransformScope.injectAfter' call
625
615
  var tmp_5 = scope;
626
616
  // Inline function 'community.flock.wirespec.compiler.core.ir.injectAfter' call
627
617
  // Inline function 'community.flock.wirespec.compiler.core.ir.transformMatchingElements' call
628
- var this_6 = scope.q18_1;
618
+ var this_6 = scope.e19_1;
629
619
  // Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
630
620
  // Inline function 'kotlin.apply' call
631
621
  var this_7 = new TransformerBuilder();
632
- this_7.k19(ScalaEmitter$emitShared$lambda_3(clientServer));
633
- var tmp$ret$18 = this_7.f19();
634
- tmp_5.q18_1 = transform(this_6, tmp$ret$18);
635
- var tmp_6 = scope.q18_1;
622
+ this_7.y19(ScalaEmitter$emitShared$lambda_3(clientServer));
623
+ var tmp$ret$18 = this_7.t19();
624
+ tmp_5.e19_1 = transform(this_6, tmp$ret$18);
625
+ var tmp_6 = scope.e19_1;
636
626
  var wirespecShared = isInterface(tmp_6, Element) ? tmp_6 : THROW_CCE();
637
627
  var tmp_7;
638
- if (this.t36_1.gq_1) {
639
- tmp_7 = wirespecShared.lv(Companion_getInstance().wt(packageName.dt() + 'Wirespec'));
628
+ if (this.h39_1.hq_1) {
629
+ tmp_7 = wirespecShared.jv(Companion_getInstance().au(packageName.dt() + 'Wirespec'));
640
630
  } else {
641
631
  tmp_7 = null;
642
632
  }
643
633
  return tmp_7;
644
634
  };
645
- protoOf(ScalaEmitter).cs = function (definition, module_0, logger) {
635
+ protoOf(ScalaEmitter).ds = function (definition, module_0, logger) {
646
636
  var file = emit.call(this, definition, module_0, logger);
647
637
  // Inline function 'kotlin.takeIf' call
648
- var this_0 = this.w36_1;
638
+ var this_0 = this.k39_1;
649
639
  var tmp;
650
- if (Companion_instance.zr(module_0)) {
640
+ if (Companion_instance.as(module_0)) {
651
641
  tmp = this_0;
652
642
  } else {
653
643
  tmp = null;
654
644
  }
655
645
  var tmp$ret$0 = tmp;
656
- return placeInPackage(prependImports(file, tmp$ret$0), this.g35(), definition);
646
+ return placeInPackage(prependImports(file, tmp$ret$0), this.u37(), definition);
657
647
  };
658
- protoOf(ScalaEmitter).g1b = function (definition, module_0) {
648
+ protoOf(ScalaEmitter).o1b = function (definition, module_0) {
659
649
  var tmp;
660
650
  if (definition instanceof Type) {
661
651
  tmp = convertToGenerator_2(definition, module_0);
@@ -676,7 +666,7 @@ protoOf(ScalaEmitter).g1b = function (definition, module_0) {
676
666
  }
677
667
  var generatorFile = tmp;
678
668
  var sanitized = sanitizeNames(generatorFile, _get_sanitizationConfig__sns434(this));
679
- var generatorOwnName = definition.ds().o1() + 'Generator';
669
+ var generatorOwnName = definition.es().o1() + 'Generator';
680
670
  var tmp_0 = asSequence(collectCustomTypeNames(sanitized));
681
671
  var tmp_1 = filterNot(tmp_0, ScalaEmitter$emitGenerator$lambda);
682
672
  var tmp_2 = filterNot(tmp_1, ScalaEmitter$emitGenerator$lambda_0(generatorOwnName));
@@ -697,27 +687,27 @@ protoOf(ScalaEmitter).g1b = function (definition, module_0) {
697
687
  var _iterator__ex2g4s_0 = destination.t();
698
688
  while (_iterator__ex2g4s_0.u()) {
699
689
  var item = _iterator__ex2g4s_0.v();
700
- var tmp$ret$5 = import_0(this.g35().bt_1 + '.model', item);
690
+ var tmp$ret$5 = import_0(this.u37().bt_1 + '.model', item);
701
691
  destination_0.x(tmp$ret$5);
702
692
  }
703
693
  var modelImports = destination_0;
704
- return placeInPackage_0(prependImports(sanitized, plus(this.w36_1, modelImports)), this.g35(), 'generator');
694
+ return placeInPackage_0(prependImports(sanitized, plus(this.k39_1, modelImports)), this.u37(), 'generator');
705
695
  };
706
- protoOf(ScalaEmitter).us = function (type, module_0) {
707
- return ensureEmptyStructHasConstructor(sanitizeNames(convertWithValidation(type, module_0), _get_sanitizationConfig__sns434(this)));
696
+ protoOf(ScalaEmitter).vs = function (type, module_0) {
697
+ return ensureEmptyStructHasConstructor(sanitizeNames(convert_0(type), _get_sanitizationConfig__sns434(this)));
708
698
  };
709
- protoOf(ScalaEmitter).ss = function (enum_0, module_0) {
710
- var tmp = sanitizeNames(convert_0(enum_0), _get_sanitizationConfig__sns434(this));
699
+ protoOf(ScalaEmitter).ts = function (enum_0, module_0) {
700
+ var tmp = sanitizeNames(convert_1(enum_0), _get_sanitizationConfig__sns434(this));
711
701
  return injectEnumLabelField(tmp, ScalaEmitter$emit$lambda(this));
712
702
  };
713
- protoOf(ScalaEmitter).is = function (union) {
714
- return sanitizeNames(convert_1(union), _get_sanitizationConfig__sns434(this));
703
+ protoOf(ScalaEmitter).js = function (union) {
704
+ return sanitizeNames(convert_2(union), _get_sanitizationConfig__sns434(this));
715
705
  };
716
- protoOf(ScalaEmitter).ns = function (refined) {
717
- var file = sanitizeNames(convert_2(refined), _get_sanitizationConfig__sns434(this));
706
+ protoOf(ScalaEmitter).os = function (refined) {
707
+ var file = sanitizeNames(convert_3(refined), _get_sanitizationConfig__sns434(this));
718
708
  // Inline function 'community.flock.wirespec.compiler.core.ir.findElement' call
719
709
  // Inline function 'kotlin.collections.filterIsInstance' call
720
- var tmp0 = file.jv();
710
+ var tmp0 = file.hv();
721
711
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
722
712
  var destination = ArrayList_init_$Create$_0();
723
713
  var _iterator__ex2g4s = tmp0.t();
@@ -729,12 +719,12 @@ protoOf(ScalaEmitter).ns = function (refined) {
729
719
  }
730
720
  var tmp$ret$0 = firstOrNull_0(destination);
731
721
  var updatedStruct = convertToStringCallsToFieldAccess(markMembersAsOverride(ensureNotNull(tmp$ret$0)));
732
- return new File(Companion_getInstance().wt(sanitize(this, refined.ls_1)), listOf(updatedStruct));
722
+ return new File(Companion_getInstance().au(sanitize(this, refined.ms_1)), listOf(updatedStruct));
733
723
  };
734
- protoOf(ScalaEmitter).ts = function (endpoint) {
724
+ protoOf(ScalaEmitter).us = function (endpoint) {
735
725
  // Inline function 'community.flock.wirespec.compiler.core.ir.findElement' call
736
726
  // Inline function 'kotlin.collections.filterIsInstance' call
737
- var tmp0 = convert_3(endpoint).jv();
727
+ var tmp0 = convert_4(endpoint).hv();
738
728
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
739
729
  var destination = ArrayList_init_$Create$_0();
740
730
  var _iterator__ex2g4s = tmp0.t();
@@ -747,9 +737,9 @@ protoOf(ScalaEmitter).ts = function (endpoint) {
747
737
  var tmp$ret$0 = firstOrNull_0(destination);
748
738
  var endpointNamespace = ensureNotNull(tmp$ret$0);
749
739
  var body = appendClientServerObjects(injectHandleFunction(endpointNamespace), endpoint, isRequestObject(endpointNamespace));
750
- var tmp = sanitizeNames(new File(Companion_getInstance().wt(sanitize(this, endpoint.fr_1)), listOf(body)), _get_sanitizationConfig__sns434(this));
740
+ var tmp = sanitizeNames(new File(Companion_getInstance().au(sanitize(this, endpoint.gr_1)), listOf(body)), _get_sanitizationConfig__sns434(this));
751
741
  // Inline function 'kotlin.takeIf' call
752
- var this_0 = buildModelImports(endpoint, this.g35());
742
+ var this_0 = buildModelImports(endpoint, this.u37());
753
743
  var tmp_0;
754
744
  // Inline function 'kotlin.collections.isNotEmpty' call
755
745
  if (!this_0.r()) {
@@ -760,10 +750,10 @@ protoOf(ScalaEmitter).ts = function (endpoint) {
760
750
  var tmp$ret$3 = tmp_0;
761
751
  return prependImports(tmp, tmp$ret$3);
762
752
  };
763
- protoOf(ScalaEmitter).hs = function (channel) {
764
- var tmp = sanitizeNames(convert_4(channel), _get_sanitizationConfig__sns434(this));
753
+ protoOf(ScalaEmitter).is = function (channel) {
754
+ var tmp = sanitizeNames(convert_5(channel), _get_sanitizationConfig__sns434(this));
765
755
  // Inline function 'kotlin.takeIf' call
766
- var this_0 = buildModelImports(channel, this.g35());
756
+ var this_0 = buildModelImports(channel, this.u37());
767
757
  var tmp_0;
768
758
  // Inline function 'kotlin.collections.isNotEmpty' call
769
759
  if (!this_0.r()) {
@@ -774,10 +764,10 @@ protoOf(ScalaEmitter).hs = function (channel) {
774
764
  var tmp$ret$0 = tmp_0;
775
765
  return prependImports(tmp, tmp$ret$0);
776
766
  };
777
- protoOf(ScalaEmitter).gs = function (rpc) {
778
- var tmp = sanitizeNames(convert_5(rpc), _get_sanitizationConfig__sns434(this));
767
+ protoOf(ScalaEmitter).hs = function (rpc) {
768
+ var tmp = sanitizeNames(convert_6(rpc), _get_sanitizationConfig__sns434(this));
779
769
  // Inline function 'kotlin.takeIf' call
780
- var this_0 = buildModelImports(rpc, this.g35());
770
+ var this_0 = buildModelImports(rpc, this.u37());
781
771
  var tmp_0;
782
772
  // Inline function 'kotlin.collections.isNotEmpty' call
783
773
  if (!this_0.r()) {
@@ -788,25 +778,25 @@ protoOf(ScalaEmitter).gs = function (rpc) {
788
778
  var tmp$ret$0 = tmp_0;
789
779
  return prependImports(tmp, tmp$ret$0);
790
780
  };
791
- protoOf(ScalaEmitter).f1b = function (endpoint) {
792
- var imports = buildModelImports(endpoint, this.g35());
793
- var endpointImport = import_0(this.g35().bt_1 + '.endpoint', endpoint.fr_1.o1());
781
+ protoOf(ScalaEmitter).n1b = function (endpoint) {
782
+ var imports = buildModelImports(endpoint, this.u37());
783
+ var endpointImport = import_0(this.u37().bt_1 + '.endpoint', endpoint.gr_1.o1());
794
784
  var file = addIdentityTypeToCall(sanitizeNames(emitEndpointClient.call(this, endpoint), _get_sanitizationConfig__sns434(this)));
795
- var subPackageName = plus_1(this.g35(), 'client');
796
- var tmp = Companion_getInstance().wt(subPackageName.dt() + file.hv_1.zt());
785
+ var subPackageName = plus_1(this.u37(), 'client');
786
+ var tmp = Companion_getInstance().au(subPackageName.dt() + file.fv_1.du());
797
787
  // Inline function 'kotlin.collections.buildList' call
798
788
  // Inline function 'kotlin.collections.buildListInternal' call
799
789
  // Inline function 'kotlin.apply' call
800
790
  var this_0 = ArrayList_init_$Create$_0();
801
791
  this_0.x(new Package(subPackageName.bt_1));
802
- this_0.g1(this.w36_1);
792
+ this_0.g1(this.k39_1);
803
793
  this_0.g1(imports);
804
794
  this_0.x(endpointImport);
805
- this_0.g1(file.iv_1);
806
- var tmp$ret$0 = this_0.q5();
795
+ this_0.g1(file.gv_1);
796
+ var tmp$ret$0 = this_0.r5();
807
797
  return new File(tmp, tmp$ret$0);
808
798
  };
809
- protoOf(ScalaEmitter).z1a = function (endpoints, logger) {
799
+ protoOf(ScalaEmitter).h1b = function (endpoints, logger) {
810
800
  // Inline function 'kotlin.collections.flatMap' call
811
801
  // Inline function 'kotlin.collections.flatMapTo' call
812
802
  var destination = ArrayList_init_$Create$_0();
@@ -822,7 +812,7 @@ protoOf(ScalaEmitter).z1a = function (endpoints, logger) {
822
812
  var _iterator__ex2g4s_0 = destination.t();
823
813
  while (_iterator__ex2g4s_0.u()) {
824
814
  var e = _iterator__ex2g4s_0.v();
825
- var key = e.n19_1;
815
+ var key = e.b1a_1;
826
816
  if (set.x(key)) {
827
817
  list_0.x(e);
828
818
  }
@@ -833,7 +823,7 @@ protoOf(ScalaEmitter).z1a = function (endpoints, logger) {
833
823
  var _iterator__ex2g4s_1 = list_0.t();
834
824
  while (_iterator__ex2g4s_1.u()) {
835
825
  var item = _iterator__ex2g4s_1.v();
836
- var tmp$ret$7 = import_0(this.g35().bt_1 + '.model', item.n19_1);
826
+ var tmp$ret$7 = import_0(this.u37().bt_1 + '.model', item.b1a_1);
837
827
  destination_0.x(tmp$ret$7);
838
828
  }
839
829
  var imports = destination_0;
@@ -843,7 +833,7 @@ protoOf(ScalaEmitter).z1a = function (endpoints, logger) {
843
833
  var _iterator__ex2g4s_2 = endpoints.t();
844
834
  while (_iterator__ex2g4s_2.u()) {
845
835
  var item_0 = _iterator__ex2g4s_2.v();
846
- var tmp$ret$10 = import_0(this.g35().bt_1 + '.endpoint', item_0.fr_1.o1());
836
+ var tmp$ret$10 = import_0(this.u37().bt_1 + '.endpoint', item_0.gr_1.o1());
847
837
  destination_1.x(tmp$ret$10);
848
838
  }
849
839
  var endpointImports = destination_1;
@@ -853,38 +843,38 @@ protoOf(ScalaEmitter).z1a = function (endpoints, logger) {
853
843
  var _iterator__ex2g4s_3 = endpoints.t();
854
844
  while (_iterator__ex2g4s_3.u()) {
855
845
  var item_1 = _iterator__ex2g4s_3.v();
856
- var tmp$ret$13 = import_0(this.g35().bt_1 + '.client', item_1.fr_1.o1() + 'Client');
846
+ var tmp$ret$13 = import_0(this.u37().bt_1 + '.client', item_1.gr_1.o1() + 'Client');
857
847
  destination_2.x(tmp$ret$13);
858
848
  }
859
849
  var clientImports = destination_2;
860
850
  var allImports = plus(plus(imports, endpointImports), clientImports);
861
851
  var file = addIdentityTypeToCall(sanitizeNames(emitClient.call(this, endpoints, logger), _get_sanitizationConfig__sns434(this)));
862
- var tmp = Companion_getInstance().wt(this.g35().dt() + file.hv_1.zt());
852
+ var tmp = Companion_getInstance().au(this.u37().dt() + file.fv_1.du());
863
853
  // Inline function 'kotlin.collections.buildList' call
864
854
  // Inline function 'kotlin.collections.buildListInternal' call
865
855
  // Inline function 'kotlin.apply' call
866
856
  var this_0 = ArrayList_init_$Create$_0();
867
- this_0.x(new Package(this.g35().bt_1));
868
- this_0.g1(this.w36_1);
857
+ this_0.x(new Package(this.u37().bt_1));
858
+ this_0.g1(this.k39_1);
869
859
  this_0.g1(allImports);
870
- this_0.g1(file.iv_1);
871
- var tmp$ret$14 = this_0.q5();
860
+ this_0.g1(file.gv_1);
861
+ var tmp$ret$14 = this_0.r5();
872
862
  return new File(tmp, tmp$ret$14);
873
863
  };
874
864
  function convertToStringCallsToFieldAccess(_this__u8e3s4) {
875
865
  // Inline function 'community.flock.wirespec.compiler.core.ir.transform' call
876
866
  var scope = new TransformScope(_this__u8e3s4);
877
- scope.h19(convertToStringCallsToFieldAccess$lambda);
878
- var tmp = scope.q18_1;
867
+ scope.v19(convertToStringCallsToFieldAccess$lambda);
868
+ var tmp = scope.e19_1;
879
869
  return isInterface(tmp, Element) ? tmp : THROW_CCE();
880
870
  }
881
871
  function appendClientServerObjects(_this__u8e3s4, endpoint, requestIsObject) {
882
872
  var reqType = requestIsObject ? 'Request.type' : 'Request';
883
- var pathTemplate = '/' + joinToString(endpoint.hr_1, '/', VOID, VOID, VOID, VOID, appendClientServerObjects$lambda);
884
- var pathSegmentsCode = joinToString(endpoint.hr_1, ', ', VOID, VOID, VOID, VOID, appendClientServerObjects$lambda_0);
885
- var clientObject = raw(trimMargin('\n |object Client extends Wirespec.Client[' + reqType + ', Response[?]] {\n | override val pathTemplate: String = "' + pathTemplate + '"\n | override val method: String = "' + endpoint.gr_1.toString() + '"\n | override val pathSegments: List[Wirespec.PathSegment] = List(' + pathSegmentsCode + ')\n | override def client(serialization: Wirespec.Serialization): Wirespec.ClientEdge[' + reqType + ', Response[?]] = new Wirespec.ClientEdge[' + reqType + ', Response[?]] {\n | override def to(request: ' + reqType + '): Wirespec.RawRequest = toRawRequest(serialization, request)\n | override def from(response: Wirespec.RawResponse): Response[?] = fromRawResponse(serialization, response)\n | }\n |}\n '));
886
- var serverObject = raw(trimMargin('\n |object Server extends Wirespec.Server[' + reqType + ', Response[?]] {\n | override val pathTemplate: String = "' + pathTemplate + '"\n | override val method: String = "' + endpoint.gr_1.toString() + '"\n | override val pathSegments: List[Wirespec.PathSegment] = List(' + pathSegmentsCode + ')\n | override def server(serialization: Wirespec.Serialization): Wirespec.ServerEdge[' + reqType + ', Response[?]] = new Wirespec.ServerEdge[' + reqType + ', Response[?]] {\n | override def from(request: Wirespec.RawRequest): ' + reqType + ' = fromRawRequest(serialization, request)\n | override def to(response: Response[?]): Wirespec.RawResponse = toRawResponse(serialization, response)\n | }\n |}\n '));
887
- return _this__u8e3s4.sv(VOID, plus_0(plus_0(_this__u8e3s4.ov_1, clientObject), serverObject));
873
+ var pathTemplate = '/' + joinToString(endpoint.ir_1, '/', VOID, VOID, VOID, VOID, appendClientServerObjects$lambda);
874
+ var pathSegmentsCode = joinToString(endpoint.ir_1, ', ', VOID, VOID, VOID, VOID, appendClientServerObjects$lambda_0);
875
+ var clientObject = raw(trimMargin('\n |object Client extends Wirespec.Client[' + reqType + ', Response[?]] {\n | override val pathTemplate: String = "' + pathTemplate + '"\n | override val method: String = "' + endpoint.hr_1.toString() + '"\n | override val pathSegments: List[Wirespec.PathSegment] = List(' + pathSegmentsCode + ')\n | override def client(serialization: Wirespec.Serialization): Wirespec.ClientEdge[' + reqType + ', Response[?]] = new Wirespec.ClientEdge[' + reqType + ', Response[?]] {\n | override def to(request: ' + reqType + '): Wirespec.RawRequest = toRawRequest(serialization, request)\n | override def from(response: Wirespec.RawResponse): Response[?] = fromRawResponse(serialization, response)\n | }\n |}\n '));
876
+ var serverObject = raw(trimMargin('\n |object Server extends Wirespec.Server[' + reqType + ', Response[?]] {\n | override val pathTemplate: String = "' + pathTemplate + '"\n | override val method: String = "' + endpoint.hr_1.toString() + '"\n | override val pathSegments: List[Wirespec.PathSegment] = List(' + pathSegmentsCode + ')\n | override def server(serialization: Wirespec.Serialization): Wirespec.ServerEdge[' + reqType + ', Response[?]] = new Wirespec.ServerEdge[' + reqType + ', Response[?]] {\n | override def from(request: Wirespec.RawRequest): ' + reqType + ' = fromRawRequest(serialization, request)\n | override def to(response: Response[?]): Wirespec.RawResponse = toRawResponse(serialization, response)\n | }\n |}\n '));
877
+ return _this__u8e3s4.qv(VOID, plus_0(plus_0(_this__u8e3s4.mv_1, clientObject), serverObject));
888
878
  }
889
879
  function injectHandleFunction(_this__u8e3s4) {
890
880
  // Inline function 'community.flock.wirespec.compiler.core.ir.transform' call
@@ -892,19 +882,19 @@ function injectHandleFunction(_this__u8e3s4) {
892
882
  // Inline function 'community.flock.wirespec.compiler.core.ir.TransformScope.matchingElements' call
893
883
  var tmp = scope;
894
884
  // Inline function 'community.flock.wirespec.compiler.core.ir.transformMatchingElements' call
895
- var this_0 = scope.q18_1;
885
+ var this_0 = scope.e19_1;
896
886
  // Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
897
887
  // Inline function 'kotlin.apply' call
898
888
  var this_1 = new TransformerBuilder();
899
- this_1.k19(injectHandleFunction$lambda);
900
- var tmp$ret$4 = this_1.f19();
901
- tmp.q18_1 = transform(this_0, tmp$ret$4);
902
- var tmp_0 = scope.q18_1;
889
+ this_1.y19(injectHandleFunction$lambda);
890
+ var tmp$ret$4 = this_1.t19();
891
+ tmp.e19_1 = transform(this_0, tmp$ret$4);
892
+ var tmp_0 = scope.e19_1;
903
893
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
904
894
  }
905
895
  function isRequestObject(namespace) {
906
896
  // Inline function 'kotlin.collections.filterIsInstance' call
907
- var tmp0 = namespace.ov_1;
897
+ var tmp0 = namespace.mv_1;
908
898
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
909
899
  var destination = ArrayList_init_$Create$_0();
910
900
  var _iterator__ex2g4s = tmp0.t();
@@ -920,7 +910,7 @@ function isRequestObject(namespace) {
920
910
  var _iterator__ex2g4s_0 = destination.t();
921
911
  while (_iterator__ex2g4s_0.u()) {
922
912
  var element_0 = _iterator__ex2g4s_0.v();
923
- if (element_0.hx_1.zt() === 'Request') {
913
+ if (element_0.fx_1.du() === 'Request') {
924
914
  tmp$ret$2 = element_0;
925
915
  break $l$block;
926
916
  }
@@ -935,7 +925,7 @@ function isRequestObject(namespace) {
935
925
  tmp = tmp0_elvis_lhs;
936
926
  }
937
927
  var requestStruct = tmp;
938
- return requestStruct.jx_1.b1() === 1 && single(requestStruct.jx_1).b10_1.r() || (requestStruct.ix_1.r() && requestStruct.jx_1.r());
928
+ return requestStruct.hx_1.c1() === 1 && single(requestStruct.hx_1).g10_1.r() || (requestStruct.gx_1.r() && requestStruct.hx_1.r());
939
929
  }
940
930
  function buildModelImports(_this__u8e3s4, packageName) {
941
931
  // Inline function 'kotlin.collections.distinctBy' call
@@ -945,7 +935,7 @@ function buildModelImports(_this__u8e3s4, packageName) {
945
935
  var _iterator__ex2g4s = this_0.t();
946
936
  while (_iterator__ex2g4s.u()) {
947
937
  var e = _iterator__ex2g4s.v();
948
- var key = e.n19_1;
938
+ var key = e.b1a_1;
949
939
  if (set.x(key)) {
950
940
  list.x(e);
951
941
  }
@@ -956,7 +946,7 @@ function buildModelImports(_this__u8e3s4, packageName) {
956
946
  var _iterator__ex2g4s_0 = list.t();
957
947
  while (_iterator__ex2g4s_0.u()) {
958
948
  var item = _iterator__ex2g4s_0.v();
959
- var tmp$ret$4 = import_0(packageName.bt_1 + '.model', Companion_getInstance().wt(item.n19_1).zt());
949
+ var tmp$ret$4 = import_0(packageName.bt_1 + '.model', Companion_getInstance().au(item.b1a_1).du());
960
950
  destination.x(tmp$ret$4);
961
951
  }
962
952
  return destination;
@@ -967,29 +957,29 @@ function addIdentityTypeToCall(_this__u8e3s4) {
967
957
  // Inline function 'community.flock.wirespec.compiler.core.ir.TransformScope.matchingElements' call
968
958
  var tmp = scope;
969
959
  // Inline function 'community.flock.wirespec.compiler.core.ir.transformMatchingElements' call
970
- var this_0 = scope.q18_1;
960
+ var this_0 = scope.e19_1;
971
961
  // Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
972
962
  // Inline function 'kotlin.apply' call
973
963
  var this_1 = new TransformerBuilder();
974
- this_1.k19(addIdentityTypeToCall$lambda);
975
- var tmp$ret$4 = this_1.f19();
976
- tmp.q18_1 = transform(this_0, tmp$ret$4);
977
- var tmp_0 = scope.q18_1;
964
+ this_1.y19(addIdentityTypeToCall$lambda);
965
+ var tmp$ret$4 = this_1.t19();
966
+ tmp.e19_1 = transform(this_0, tmp$ret$4);
967
+ var tmp_0 = scope.e19_1;
978
968
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
979
969
  }
980
970
  function toScalaTypeName(_this__u8e3s4) {
981
971
  var tmp;
982
972
  if (_this__u8e3s4 instanceof Primitive) {
983
- var t = _this__u8e3s4.p19_1;
973
+ var t = _this__u8e3s4.d1a_1;
984
974
  var tmp_0;
985
975
  if (t instanceof String_0) {
986
976
  tmp_0 = 'String';
987
977
  } else {
988
978
  if (t instanceof Integer) {
989
- tmp_0 = t.x19_1.equals(Precision_P32_getInstance()) ? 'Int' : 'Long';
979
+ tmp_0 = t.l1a_1.equals(Precision_P32_getInstance()) ? 'Int' : 'Long';
990
980
  } else {
991
981
  if (t instanceof Number_0) {
992
- tmp_0 = t.s19_1.equals(Precision_P32_getInstance()) ? 'Float' : 'Double';
982
+ tmp_0 = t.g1a_1.equals(Precision_P32_getInstance()) ? 'Float' : 'Double';
993
983
  } else {
994
984
  if (equals(t, Boolean_instance)) {
995
985
  tmp_0 = 'Boolean';
@@ -1006,13 +996,13 @@ function toScalaTypeName(_this__u8e3s4) {
1006
996
  tmp = tmp_0;
1007
997
  } else {
1008
998
  if (_this__u8e3s4 instanceof Custom) {
1009
- tmp = _this__u8e3s4.n19_1;
999
+ tmp = _this__u8e3s4.b1a_1;
1010
1000
  } else {
1011
1001
  if (_this__u8e3s4 instanceof Iterable) {
1012
- tmp = 'List[' + toScalaTypeName(_this__u8e3s4.yp_1) + ']';
1002
+ tmp = 'List[' + toScalaTypeName(_this__u8e3s4.zp_1) + ']';
1013
1003
  } else {
1014
1004
  if (_this__u8e3s4 instanceof Dict) {
1015
- tmp = 'Map[String, ' + toScalaTypeName(_this__u8e3s4.bq_1) + ']';
1005
+ tmp = 'Map[String, ' + toScalaTypeName(_this__u8e3s4.cq_1) + ']';
1016
1006
  } else {
1017
1007
  if (_this__u8e3s4 instanceof Any) {
1018
1008
  tmp = 'Any';
@@ -1035,25 +1025,25 @@ function convertToStringCallsToFieldAccess$lambda(expr, tr) {
1035
1025
  var tmp_0;
1036
1026
  var tmp_1;
1037
1027
  if (expr instanceof FunctionCall) {
1038
- tmp_1 = expr.eu_1.yt() === 'toString';
1028
+ tmp_1 = expr.qy_1.cu() === 'toString';
1039
1029
  } else {
1040
1030
  tmp_1 = false;
1041
1031
  }
1042
1032
  if (tmp_1) {
1043
- tmp_0 = !(expr.cu_1 == null);
1033
+ tmp_0 = !(expr.oy_1 == null);
1044
1034
  } else {
1045
1035
  tmp_0 = false;
1046
1036
  }
1047
1037
  if (tmp_0) {
1048
- var tmp0_safe_receiver = expr.cu_1;
1038
+ var tmp0_safe_receiver = expr.oy_1;
1049
1039
  var tmp_2;
1050
1040
  if (tmp0_safe_receiver == null) {
1051
1041
  tmp_2 = null;
1052
1042
  } else {
1053
1043
  // Inline function 'kotlin.let' call
1054
- tmp_2 = tr.l18(tmp0_safe_receiver);
1044
+ tmp_2 = tr.z18(tmp0_safe_receiver);
1055
1045
  }
1056
- tmp = new FieldCall(tmp_2, Companion_getInstance().wt('toString'));
1046
+ tmp = new FieldCall(tmp_2, Companion_getInstance().au('toString'));
1057
1047
  } else {
1058
1048
  tmp = transformChildren_1(expr, tr);
1059
1049
  }
@@ -1062,10 +1052,10 @@ function convertToStringCallsToFieldAccess$lambda(expr, tr) {
1062
1052
  function appendClientServerObjects$lambda(it) {
1063
1053
  var tmp;
1064
1054
  if (it instanceof Literal) {
1065
- tmp = it.w1a_1;
1055
+ tmp = it.e1b_1;
1066
1056
  } else {
1067
1057
  if (it instanceof Param) {
1068
- tmp = '{' + it.mr_1.o1() + '}';
1058
+ tmp = '{' + it.nr_1.o1() + '}';
1069
1059
  } else {
1070
1060
  noWhenBranchMatchedException();
1071
1061
  }
@@ -1075,10 +1065,10 @@ function appendClientServerObjects$lambda(it) {
1075
1065
  function appendClientServerObjects$lambda_0(segment) {
1076
1066
  var tmp;
1077
1067
  if (segment instanceof Literal) {
1078
- tmp = 'Wirespec.Literal("' + segment.w1a_1 + '")';
1068
+ tmp = 'Wirespec.Literal("' + segment.e1b_1 + '")';
1079
1069
  } else {
1080
1070
  if (segment instanceof Param) {
1081
- tmp = 'Wirespec.Param("' + segment.mr_1.o1() + '", scala.reflect.classTag[' + toScalaTypeName(segment.nr_1) + '])';
1071
+ tmp = 'Wirespec.Param("' + segment.nr_1.o1() + '", scala.reflect.classTag[' + toScalaTypeName(segment.or_1) + '])';
1082
1072
  } else {
1083
1073
  noWhenBranchMatchedException();
1084
1074
  }
@@ -1090,13 +1080,13 @@ function injectHandleFunction$lambda(element, transformer) {
1090
1080
  if (element instanceof Interface) {
1091
1081
  var tmp$ret$0;
1092
1082
  $l$block: {
1093
- if (!element.tv_1.equals(Companion_getInstance().wt('Handler')) && !element.tv_1.equals(Companion_getInstance().wt('Call'))) {
1083
+ if (!element.rv_1.equals(Companion_getInstance().au('Handler')) && !element.rv_1.equals(Companion_getInstance().au('Call'))) {
1094
1084
  tmp$ret$0 = element;
1095
1085
  break $l$block;
1096
1086
  }
1097
1087
  var tmp0_typeParameters = listOf(new TypeParameter(Custom_init_$Create$('F[_]')));
1098
1088
  // Inline function 'kotlin.collections.map' call
1099
- var this_0 = element.uv_1;
1089
+ var this_0 = element.sv_1;
1100
1090
  // Inline function 'kotlin.collections.mapTo' call
1101
1091
  var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
1102
1092
  var _iterator__ex2g4s = this_0.t();
@@ -1107,7 +1097,7 @@ function injectHandleFunction$lambda(element, transformer) {
1107
1097
  if (tmp0_safe_receiver == null) {
1108
1098
  tmp_0 = null;
1109
1099
  } else {
1110
- var tmp1_safe_receiver = item.wx_1;
1100
+ var tmp1_safe_receiver = item.ux_1;
1111
1101
  var tmp_1;
1112
1102
  if (tmp1_safe_receiver == null) {
1113
1103
  tmp_1 = null;
@@ -1116,13 +1106,13 @@ function injectHandleFunction$lambda(element, transformer) {
1116
1106
  tmp_1 = Custom_init_$Create$('F', listOf(tmp1_safe_receiver));
1117
1107
  }
1118
1108
  var tmp3_returnType = tmp_1;
1119
- tmp_0 = tmp0_safe_receiver.fy(VOID, VOID, VOID, tmp3_returnType, VOID, false);
1109
+ tmp_0 = tmp0_safe_receiver.dy(VOID, VOID, VOID, tmp3_returnType, VOID, false);
1120
1110
  }
1121
1111
  var tmp4_elvis_lhs = tmp_0;
1122
1112
  var tmp$ret$3 = tmp4_elvis_lhs == null ? item : tmp4_elvis_lhs;
1123
1113
  destination.x(tmp$ret$3);
1124
1114
  }
1125
- tmp$ret$0 = element.bw(VOID, destination, VOID, VOID, tmp0_typeParameters);
1115
+ tmp$ret$0 = element.zv(VOID, destination, VOID, VOID, tmp0_typeParameters);
1126
1116
  }
1127
1117
  tmp = tmp$ret$0;
1128
1118
  } else {
@@ -1135,7 +1125,7 @@ function addIdentityTypeToCall$lambda(element, transformer) {
1135
1125
  var tmp;
1136
1126
  if (element instanceof Struct) {
1137
1127
  // Inline function 'kotlin.collections.map' call
1138
- var this_0 = element.kx_1;
1128
+ var this_0 = element.ix_1;
1139
1129
  // Inline function 'kotlin.collections.mapTo' call
1140
1130
  var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
1141
1131
  var _iterator__ex2g4s = this_0.t();
@@ -1143,17 +1133,17 @@ function addIdentityTypeToCall$lambda(element, transformer) {
1143
1133
  var item = _iterator__ex2g4s.v();
1144
1134
  // Inline function 'kotlin.takeIf' call
1145
1135
  var tmp_0;
1146
- if (endsWith(item.qu_1.zt(), '.Call')) {
1136
+ if (endsWith(item.ru_1.du(), '.Call')) {
1147
1137
  tmp_0 = item;
1148
1138
  } else {
1149
1139
  tmp_0 = null;
1150
1140
  }
1151
1141
  var tmp0_safe_receiver = tmp_0;
1152
- var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.tu(VOID, listOf(Custom_init_$Create$('[A] =>> A')));
1142
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.uu(VOID, listOf(Custom_init_$Create$('[A] =>> A')));
1153
1143
  var tmp$ret$3 = tmp1_elvis_lhs == null ? item : tmp1_elvis_lhs;
1154
1144
  destination.x(tmp$ret$3);
1155
1145
  }
1156
- tmp = element.sx(VOID, VOID, VOID, destination);
1146
+ tmp = element.qx(VOID, VOID, VOID, destination);
1157
1147
  } else {
1158
1148
  tmp = element;
1159
1149
  }
@@ -1161,10 +1151,10 @@ function addIdentityTypeToCall$lambda(element, transformer) {
1161
1151
  return transformChildren_0(transformed, transformer);
1162
1152
  }
1163
1153
  //region block: post-declaration
1164
- protoOf(ScalaEmitter).a1b = get_extensions;
1165
- protoOf(ScalaEmitter).to = emit_0;
1166
- protoOf(ScalaEmitter).x1a = emit_1;
1167
- protoOf(ScalaEmitter).vp = get_supportsDefaults;
1154
+ protoOf(ScalaEmitter).i1b = get_extensions;
1155
+ protoOf(ScalaEmitter).uo = emit_0;
1156
+ protoOf(ScalaEmitter).f1b = emit_1;
1157
+ protoOf(ScalaEmitter).wp = get_supportsDefaults;
1168
1158
  //endregion
1169
1159
  //region block: exports
1170
1160
  export {