@flock/wirespec 0.20.0-RC.9 → 0.21.0

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 (51) hide show
  1. package/arrow-arrow-atomic.mjs +12 -12
  2. package/arrow-arrow-core.mjs +163 -163
  3. package/clikt-clikt-mordant.mjs +80 -80
  4. package/clikt-clikt-mordant.mjs.map +1 -1
  5. package/clikt-clikt.mjs +1571 -1571
  6. package/clikt-clikt.mjs.map +1 -1
  7. package/colormath-root-colormath.mjs +444 -444
  8. package/kotlin-kotlin-stdlib.mjs +2001 -1948
  9. package/kotlin-kotlin-stdlib.mjs.map +1 -1
  10. package/kotlin-openapi-bindings.mjs +10257 -10257
  11. package/kotlin-rgxgen.mjs +1819 -1819
  12. package/kotlinx-io-kotlinx-io-core.mjs +440 -440
  13. package/kotlinx-serialization-kotlinx-serialization-core.mjs +1890 -1890
  14. package/kotlinx-serialization-kotlinx-serialization-json.mjs +1576 -1576
  15. package/mordant-mordant.mjs +1362 -1362
  16. package/package.json +2 -2
  17. package/wirespec-src-compiler-core.mjs +2462 -2388
  18. package/wirespec-src-compiler-core.mjs.map +1 -1
  19. package/wirespec-src-compiler-emitters-java.mjs +482 -1337
  20. package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
  21. package/wirespec-src-compiler-emitters-kotlin.mjs +376 -1060
  22. package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
  23. package/wirespec-src-compiler-emitters-python.mjs +424 -1417
  24. package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
  25. package/wirespec-src-compiler-emitters-rust.mjs +479 -417
  26. package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
  27. package/wirespec-src-compiler-emitters-scala.mjs +224 -184
  28. package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
  29. package/wirespec-src-compiler-emitters-typescript.mjs +568 -1404
  30. package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
  31. package/wirespec-src-compiler-emitters-wirespec.mjs +113 -86
  32. package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
  33. package/wirespec-src-compiler-ir.mjs +4311 -4417
  34. package/wirespec-src-compiler-ir.mjs.map +1 -1
  35. package/wirespec-src-compiler-lib.mjs +352 -1141
  36. package/wirespec-src-compiler-lib.mjs.map +1 -1
  37. package/wirespec-src-converter-avro.mjs +512 -512
  38. package/wirespec-src-converter-avro.mjs.map +1 -1
  39. package/wirespec-src-converter-openapi.mjs +772 -760
  40. package/wirespec-src-converter-openapi.mjs.map +1 -1
  41. package/wirespec-src-ide-lsp.mjs +1411 -1396
  42. package/wirespec-src-ide-lsp.mjs.map +1 -1
  43. package/wirespec-src-plugin-arguments.mjs +185 -245
  44. package/wirespec-src-plugin-arguments.mjs.map +1 -1
  45. package/wirespec-src-plugin-cli.mjs +102 -128
  46. package/wirespec-src-plugin-cli.mjs.map +1 -1
  47. package/wirespec-src-plugin-npm.d.mts +15 -104
  48. package/wirespec-src-plugin-npm.mjs +40 -40
  49. package/wirespec-src-plugin-npm.mjs.map +1 -1
  50. package/wirespec-src-tools-generator.mjs +40 -35
  51. package/wirespec-src-tools-generator.mjs.map +1 -1
@@ -15,7 +15,6 @@ import {
15
15
  firstOrNulltrxqttxfxqju as firstOrNull,
16
16
  isDigit3mimrri4wkzop as isDigit,
17
17
  Char19o2r8palgjof as Char,
18
- setOf45ia9pnfhe90 as setOf,
19
18
  protoOf180f3jzyo7rfj as protoOf,
20
19
  initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
21
20
  listOfvhqybd2zx248 as listOf,
@@ -26,13 +25,14 @@ import {
26
25
  ArrayList_init_$Create$1jemgvhi5v0js as ArrayList_init_$Create$_0,
27
26
  Paire9pteg33gng7 as Pair,
28
27
  plus310ted5e4i90h as plus,
28
+ setOf45ia9pnfhe90 as setOf,
29
29
  listOf1jh22dvmctj1r as listOf_0,
30
30
  addAll1k27qatfgp3k5 as addAll,
31
+ THROW_CCE2g6jy02ryeudk as THROW_CCE,
31
32
  startsWith26w8qjqapeeq6 as startsWith,
32
33
  substringBefore3n7kj60w69hju as substringBefore,
33
34
  lazy2hsh8ze7j6ikd as lazy,
34
35
  plus20p0vtfmu0596 as plus_0,
35
- THROW_CCE2g6jy02ryeudk as THROW_CCE,
36
36
  isInterface3d6p8outrmvmk as isInterface,
37
37
  asSequence2phdjljfh9jhx as asSequence,
38
38
  filterNot56uwv8hfomaa as filterNot,
@@ -78,6 +78,7 @@ import {
78
78
  Literal331hu9r04vptz as Literal,
79
79
  } from './wirespec-src-compiler-core.mjs';
80
80
  import {
81
+ ScalaGenerator_getInstance3tda4hcloy1pr as ScalaGenerator_getInstance,
81
82
  Nameoqr8dt2fim9d as Name,
82
83
  FunctionCall30872kpnbr7op as FunctionCall,
83
84
  transformChildren2mszeagj5nq4c as transformChildren,
@@ -93,12 +94,13 @@ import {
93
94
  Companion_getInstance3gvtuyxc9uhxj as Companion_getInstance,
94
95
  Interface3pn84xq686t2r as Interface,
95
96
  Namespace345pal554qu3j as Namespace,
96
- withElements2toq84v08e72 as withElements,
97
- ScalaGenerator_getInstance3tda4hcloy1pr as ScalaGenerator_getInstance,
97
+ Mainb4yvz4x0nrxd as Main,
98
+ Enumlszg09mwd24f as Enum_0,
99
+ Struct39wf79cwtn4ty as Struct,
98
100
  import5uhkz67bd8tt as import_0,
99
101
  interface24qlavvm81r6z as interface_0,
100
102
  structo1silz79n3nu as struct,
101
- convertClientServer1w4pgeabrnbb9 as convertClientServer,
103
+ convertClientServer1346neky3bhls as convertClientServer,
102
104
  Array2goj74t0aak7b as Array_0,
103
105
  Field354s1ceh5pvhf as Field,
104
106
  convertnty9x0e63d0u as convert,
@@ -122,10 +124,10 @@ import {
122
124
  injectEnumLabelFieldyfohidz6c88i as injectEnumLabelField,
123
125
  convert37aabdzvtv9vg as convert_1,
124
126
  convert17zcptkz4mhr4 as convert_2,
125
- Struct39wf79cwtn4ty as Struct,
126
127
  markMembersAsOverride3r1zpft8nbmxg as markMembersAsOverride,
127
128
  convert32tuiui3czihh as convert_3,
128
129
  convert1cn4bolzoed8c as convert_4,
130
+ convert3ewo9inue7gua as convert_5,
129
131
  emitEndpointClient1meajc90wf3el as emitEndpointClient,
130
132
  emitClient32kfwzg2hm5vj as emitClient,
131
133
  get_extensions31c4or738wbxz as get_extensions,
@@ -137,7 +139,6 @@ import {
137
139
  FieldCall1iz7z2fx2xo4p as FieldCall,
138
140
  TypeParameter1x56bawg1pg87 as TypeParameter,
139
141
  Function21cuq8qizkin7 as Function,
140
- Custom2si7lto3wompr as Custom_0,
141
142
  } from './wirespec-src-compiler-ir.mjs';
142
143
  //region block: imports
143
144
  //endregion
@@ -146,15 +147,15 @@ initMetadataForCompanion(Companion);
146
147
  initMetadataForClass(ScalaIrEmitter, 'ScalaIrEmitter', ScalaIrEmitter, VOID, [IrEmitter]);
147
148
  //endregion
148
149
  function _get_sanitizationConfig__sns434($this) {
149
- var tmp0 = $this.o21_1;
150
+ var tmp0 = $this.s1z_1;
150
151
  var tmp = KProperty1;
151
152
  // Inline function 'kotlin.getValue' call
152
153
  getPropertyCallableRef('sanitizationConfig', 1, tmp, ScalaIrEmitter$_get_sanitizationConfig_$ref_ydarb0(), null);
153
- return tmp0.l1();
154
+ return tmp0.m1();
154
155
  }
155
156
  function sanitize($this, _this__u8e3s4) {
156
157
  // Inline function 'kotlin.collections.mapIndexed' call
157
- var this_0 = split(_this__u8e3s4.l1(), ['.', ' ']);
158
+ var this_0 = split(_this__u8e3s4.m1(), ['.', ' ']);
158
159
  // Inline function 'kotlin.collections.mapIndexedTo' call
159
160
  var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
160
161
  var index = 0;
@@ -163,7 +164,7 @@ function sanitize($this, _this__u8e3s4) {
163
164
  var item = _iterator__ex2g4s.v();
164
165
  var _unary__edvuaz = index;
165
166
  index = _unary__edvuaz + 1 | 0;
166
- var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance.fr(item) : item;
167
+ var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance.dr(item) : item;
167
168
  destination.x(tmp$ret$0);
168
169
  }
169
170
  // Inline function 'kotlin.text.filter' call
@@ -211,7 +212,7 @@ function sanitizeFirstIsDigit($this, _this__u8e3s4) {
211
212
  return tmp;
212
213
  }
213
214
  function sanitizeKeywords($this, _this__u8e3s4) {
214
- return Companion_getInstance_0().p21_1.u1(_this__u8e3s4) ? addBackticks(_this__u8e3s4) : _this__u8e3s4;
215
+ return Companion_getInstance_0().v1x().v1(_this__u8e3s4) ? addBackticks(_this__u8e3s4) : _this__u8e3s4;
215
216
  }
216
217
  function sanitizeSymbol($this, _this__u8e3s4) {
217
218
  // Inline function 'kotlin.collections.mapIndexed' call
@@ -224,7 +225,7 @@ function sanitizeSymbol($this, _this__u8e3s4) {
224
225
  var item = _iterator__ex2g4s.v();
225
226
  var _unary__edvuaz = index;
226
227
  index = _unary__edvuaz + 1 | 0;
227
- var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance.fr(item) : item;
228
+ var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance.dr(item) : item;
228
229
  destination.x(tmp$ret$0);
229
230
  }
230
231
  // Inline function 'kotlin.text.filter' call
@@ -251,8 +252,11 @@ function sanitizeEnum($this, _this__u8e3s4) {
251
252
  }
252
253
  function Companion() {
253
254
  Companion_instance_2 = this;
254
- this.p21_1 = setOf(['abstract', 'case', 'class', 'def', 'do', 'else', 'extends', 'false', 'final', 'for', 'forSome', 'if', 'implicit', 'import', 'lazy', 'match', 'new', 'null', 'object', 'override', 'package', 'private', 'protected', 'return', 'sealed', 'super', 'this', 'throw', 'trait', 'true', 'try', 'type', 'val', 'var', 'while', 'with', 'yield', 'given', 'using', 'enum', 'export', 'then']);
255
+ this.t1z_1 = ScalaGenerator_getInstance();
255
256
  }
257
+ protoOf(Companion).v1x = function () {
258
+ return this.t1z_1.c1x_1;
259
+ };
256
260
  var Companion_instance_2;
257
261
  function Companion_getInstance_0() {
258
262
  if (Companion_instance_2 == null)
@@ -264,13 +268,13 @@ function ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda(it) {
264
268
  }
265
269
  function ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda_0(this$0) {
266
270
  return function (name) {
267
- var sanitized = name.q1h_1.a1() > 1 ? name.e1n() : sanitizeSymbol(this$0, name.r1j());
271
+ var sanitized = name.f1h_1.b1() > 1 ? name.t1m() : sanitizeSymbol(this$0, name.g1j());
268
272
  return new Name(listOf(sanitized));
269
273
  };
270
274
  }
271
275
  function ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda_1(this$0) {
272
276
  return function (name) {
273
- return new Name(listOf(sanitizeSymbol(this$0, name.e1n())));
277
+ return new Name(listOf(sanitizeSymbol(this$0, name.t1m())));
274
278
  };
275
279
  }
276
280
  function ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda_2(this$0) {
@@ -283,28 +287,28 @@ function ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
283
287
  var tmp;
284
288
  var tmp_0;
285
289
  if (stmt instanceof FunctionCall) {
286
- tmp_0 = stmt.o1n_1.r1j() === 'validate';
290
+ tmp_0 = stmt.d1n_1.g1j() === 'validate';
287
291
  } else {
288
292
  tmp_0 = false;
289
293
  }
290
294
  if (tmp_0) {
291
- tmp = transformChildren(stmt.s1n(VOID, emptyList()), tr);
295
+ tmp = transformChildren(stmt.h1n(VOID, emptyList()), tr);
292
296
  } else {
293
297
  if (stmt instanceof ConstructorStatement) {
294
- var tmp_1 = tr.z1v(stmt.j1o_1);
298
+ var tmp_1 = tr.s1v(stmt.y1n_1);
295
299
  // Inline function 'kotlin.collections.map' call
296
- var this_0 = stmt.k1o_1;
300
+ var this_0 = stmt.z1n_1;
297
301
  // Inline function 'kotlin.collections.mapTo' call
298
- var destination = ArrayList_init_$Create$(this_0.a1());
302
+ var destination = ArrayList_init_$Create$(this_0.b1());
299
303
  // Inline function 'kotlin.collections.iterator' call
300
- var _iterator__ex2g4s = this_0.j1().t();
304
+ var _iterator__ex2g4s = this_0.k1().t();
301
305
  while (_iterator__ex2g4s.u()) {
302
306
  var item = _iterator__ex2g4s.v();
303
307
  // Inline function 'kotlin.collections.component1' call
304
- var name = item.k1();
308
+ var name = item.l1();
305
309
  // Inline function 'kotlin.collections.component2' call
306
- var expr = item.l1();
307
- var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), name), tr.c1w(expr));
310
+ var expr = item.m1();
311
+ var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), name), tr.v1v(expr));
308
312
  destination.x(tmp$ret$3);
309
313
  }
310
314
  tmp = new ConstructorStatement(tmp_1, toMap(destination));
@@ -317,7 +321,7 @@ function ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
317
321
  }
318
322
  function ScalaIrEmitter$sanitizationConfig$delegate$lambda(this$0) {
319
323
  return function () {
320
- var tmp = Companion_getInstance_0().p21_1;
324
+ var tmp = Companion_getInstance_0().v1x();
321
325
  var tmp_0 = ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda;
322
326
  var tmp_1 = ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda_0(this$0);
323
327
  var tmp_2 = ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda_1(this$0);
@@ -331,21 +335,21 @@ function ScalaIrEmitter$_get_sanitizationConfig_$ref_ydarb0() {
331
335
  };
332
336
  }
333
337
  function ScalaIrEmitter$emitShared$lambda($this$struct) {
334
- $this$struct.g1l(Custom_init_$Create$('PathSegment'));
335
- $this$struct.b1l('value', String_instance);
338
+ $this$struct.v1k(Custom_init_$Create$('PathSegment'));
339
+ $this$struct.q1k('value', String_instance);
336
340
  return Unit_instance;
337
341
  }
338
342
  function ScalaIrEmitter$emitShared$lambda_0($this$struct) {
339
- $this$struct.g1l(Custom_init_$Create$('PathSegment'));
340
- $this$struct.b1l('name', String_instance);
341
- $this$struct.b1l('type', Reflect_instance);
343
+ $this$struct.v1k(Custom_init_$Create$('PathSegment'));
344
+ $this$struct.q1k('name', String_instance);
345
+ $this$struct.q1k('type', Reflect_instance);
342
346
  return Unit_instance;
343
347
  }
344
348
  function ScalaIrEmitter$emitShared$lambda_1(element, transformer) {
345
349
  var tmp;
346
350
  if (element instanceof File) {
347
351
  // Inline function 'kotlin.collections.partition' call
348
- var this_0 = element.n1o_1;
352
+ var this_0 = element.d1o_1;
349
353
  var first = ArrayList_init_$Create$_0();
350
354
  var second = ArrayList_init_$Create$_0();
351
355
  var _iterator__ex2g4s = this_0.t();
@@ -358,9 +362,9 @@ function ScalaIrEmitter$emitShared$lambda_1(element, transformer) {
358
362
  }
359
363
  }
360
364
  var _destruct__k2r9zo = new Pair(first, second);
361
- var packageElements = _destruct__k2r9zo.ve();
362
- var rest = _destruct__k2r9zo.we();
363
- tmp = element.q1o(VOID, plus(packageElements, rest));
365
+ var packageElements = _destruct__k2r9zo.we();
366
+ var rest = _destruct__k2r9zo.xe();
367
+ tmp = element.g1o(VOID, plus(packageElements, rest));
364
368
  } else {
365
369
  tmp = element;
366
370
  }
@@ -372,12 +376,12 @@ function ScalaIrEmitter$emitShared$lambda_2(element, transformer) {
372
376
  if (element instanceof Namespace) {
373
377
  var tmp$ret$0;
374
378
  $l$block: {
375
- if (!element.s1o_1.equals(Companion_getInstance().s1h('Wirespec'))) {
379
+ if (!element.i1o_1.equals(Companion_getInstance().h1h('Wirespec'))) {
376
380
  tmp$ret$0 = element;
377
381
  break $l$block;
378
382
  }
379
383
  // Inline function 'kotlin.collections.flatMap' call
380
- var tmp0 = element.t1o_1;
384
+ var tmp0 = element.j1o_1;
381
385
  // Inline function 'kotlin.collections.flatMapTo' call
382
386
  var destination = ArrayList_init_$Create$_0();
383
387
  var _iterator__ex2g4s = tmp0.t();
@@ -389,14 +393,14 @@ function ScalaIrEmitter$emitShared$lambda_2(element, transformer) {
389
393
  if (!(element_0 instanceof Interface)) {
390
394
  tmp_0 = true;
391
395
  } else {
392
- tmp_0 = !setOf(['Request', 'Response']).u1(element_0.k1p_1.t1h());
396
+ tmp_0 = !setOf(['Request', 'Response']).v1(element_0.o1o_1.i1h());
393
397
  }
394
398
  if (tmp_0) {
395
399
  tmp$ret$1 = listOf(element_0);
396
400
  break $l$block_2;
397
401
  }
398
402
  // Inline function 'kotlin.collections.filterIsInstance' call
399
- var tmp0_0 = element_0.l1p_1;
403
+ var tmp0_0 = element_0.p1o_1;
400
404
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
401
405
  var destination_0 = ArrayList_init_$Create$_0();
402
406
  var _iterator__ex2g4s_0 = tmp0_0.t();
@@ -412,7 +416,7 @@ function ScalaIrEmitter$emitShared$lambda_2(element, transformer) {
412
416
  var _iterator__ex2g4s_1 = destination_0.t();
413
417
  while (_iterator__ex2g4s_1.u()) {
414
418
  var element_2 = _iterator__ex2g4s_1.v();
415
- if (element_2.k1p_1.t1h() === 'Headers') {
419
+ if (element_2.o1o_1.i1h() === 'Headers') {
416
420
  tmp$ret$5 = element_2;
417
421
  break $l$block_1;
418
422
  }
@@ -428,9 +432,9 @@ function ScalaIrEmitter$emitShared$lambda_2(element, transformer) {
428
432
  tmp_1 = tmp0_elvis_lhs;
429
433
  }
430
434
  var nestedHeaders = tmp_1;
431
- var tmp_2 = new Namespace(element_0.k1p_1, listOf(nestedHeaders));
435
+ var tmp_2 = new Namespace(element_0.o1o_1, listOf(nestedHeaders));
432
436
  // Inline function 'kotlin.collections.filter' call
433
- var tmp0_1 = element_0.l1p_1;
437
+ var tmp0_1 = element_0.p1o_1;
434
438
  // Inline function 'kotlin.collections.filterTo' call
435
439
  var destination_1 = ArrayList_init_$Create$_0();
436
440
  var _iterator__ex2g4s_2 = tmp0_1.t();
@@ -438,7 +442,7 @@ function ScalaIrEmitter$emitShared$lambda_2(element, transformer) {
438
442
  var element_3 = _iterator__ex2g4s_2.v();
439
443
  var tmp_3;
440
444
  if (element_3 instanceof Interface) {
441
- tmp_3 = element_3.k1p_1.t1h() === 'Headers';
445
+ tmp_3 = element_3.o1o_1.i1h() === 'Headers';
442
446
  } else {
443
447
  tmp_3 = false;
444
448
  }
@@ -448,28 +452,28 @@ function ScalaIrEmitter$emitShared$lambda_2(element, transformer) {
448
452
  }
449
453
  var tmp_4 = destination_1;
450
454
  // Inline function 'kotlin.collections.map' call
451
- var this_0 = element_0.p1p_1;
455
+ var this_0 = element_0.t1o_1;
452
456
  // Inline function 'kotlin.collections.mapTo' call
453
457
  var destination_2 = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
454
458
  var _iterator__ex2g4s_3 = this_0.t();
455
459
  while (_iterator__ex2g4s_3.u()) {
456
460
  var item = _iterator__ex2g4s_3.v();
457
461
  var tmp_5;
458
- if (item.t1q_1.r1j() === 'headers') {
459
- tmp_5 = item.d1r(VOID, Custom_init_$Create$(element_0.k1p_1.t1h() + '.Headers'));
462
+ if (item.x1o_1.g1j() === 'headers') {
463
+ tmp_5 = item.h1p(VOID, Custom_init_$Create$(element_0.o1o_1.i1h() + '.Headers'));
460
464
  } else {
461
465
  tmp_5 = item;
462
466
  }
463
467
  var tmp$ret$9 = tmp_5;
464
468
  destination_2.x(tmp$ret$9);
465
469
  }
466
- tmp$ret$1 = listOf_0([tmp_2, element_0.r1p(VOID, tmp_4, VOID, VOID, VOID, destination_2)]);
470
+ tmp$ret$1 = listOf_0([tmp_2, element_0.w1o(VOID, tmp_4, VOID, VOID, VOID, destination_2)]);
467
471
  }
468
472
  var list = tmp$ret$1;
469
473
  addAll(destination, list);
470
474
  }
471
475
  var newElements = destination;
472
- tmp$ret$0 = element.w1o(VOID, newElements);
476
+ tmp$ret$0 = element.n1o(VOID, newElements);
473
477
  }
474
478
  tmp = tmp$ret$0;
475
479
  } else {
@@ -482,11 +486,40 @@ function ScalaIrEmitter$emitShared$lambda_3($clientServer) {
482
486
  return function (element, transformer) {
483
487
  var tmp;
484
488
  if (element instanceof Namespace) {
485
- var injected = element.s1o_1.equals(Companion_getInstance().s1h('Wirespec')) ? $clientServer : emptyList();
489
+ var injected = element.i1o_1.equals(Companion_getInstance().h1h('Wirespec')) ? $clientServer : emptyList();
486
490
  var tmp_0;
487
491
  // Inline function 'kotlin.collections.isNotEmpty' call
488
492
  if (!injected.r()) {
489
- tmp_0 = withElements(element, plus(element.o1o(), injected));
493
+ // Inline function 'community.flock.wirespec.ir.core.withElements' call
494
+ var elements = plus(element.e1o(), injected);
495
+ var tmp_1;
496
+ if (element instanceof File) {
497
+ tmp_1 = element.g1o(VOID, elements);
498
+ } else {
499
+ if (element instanceof Struct) {
500
+ tmp_1 = element.n1q(VOID, VOID, VOID, VOID, elements);
501
+ } else {
502
+ if (element instanceof Namespace) {
503
+ tmp_1 = element.n1o(VOID, elements);
504
+ } else {
505
+ if (element instanceof Interface) {
506
+ tmp_1 = element.w1o(VOID, elements);
507
+ } else {
508
+ if (element instanceof Enum_0) {
509
+ tmp_1 = element.b1q(VOID, VOID, VOID, VOID, VOID, elements);
510
+ } else {
511
+ if (element instanceof Main) {
512
+ tmp_1 = element;
513
+ } else {
514
+ tmp_1 = element;
515
+ }
516
+ }
517
+ }
518
+ }
519
+ }
520
+ }
521
+ var tmp_2 = tmp_1;
522
+ tmp_0 = tmp_2 instanceof Namespace ? tmp_2 : THROW_CCE();
490
523
  } else {
491
524
  tmp_0 = element;
492
525
  }
@@ -516,35 +549,35 @@ function ScalaIrEmitter$emit$lambda(this$0) {
516
549
  }
517
550
  function ScalaIrEmitter(packageName, emitShared) {
518
551
  Companion_getInstance_0();
519
- packageName = packageName === VOID ? Companion_instance_0.ds('community.flock.wirespec.generated') : packageName;
520
- emitShared = emitShared === VOID ? Companion_instance_1.wo() : emitShared;
521
- this.j21_1 = packageName;
522
- this.k21_1 = emitShared;
523
- this.l21_1 = ScalaGenerator_getInstance();
524
- this.m21_1 = FileExtension_Scala_getInstance();
525
- this.n21_1 = listOf_0([import_0('community.flock.wirespec.scala', 'Wirespec'), import_0('scala.reflect', 'ClassTag')]);
552
+ packageName = packageName === VOID ? Companion_instance_0.is('community.flock.wirespec.generated') : packageName;
553
+ emitShared = emitShared === VOID ? Companion_instance_1.fp() : emitShared;
554
+ this.n1z_1 = packageName;
555
+ this.o1z_1 = emitShared;
556
+ this.p1z_1 = ScalaGenerator_getInstance();
557
+ this.q1z_1 = FileExtension_Scala_getInstance();
558
+ this.r1z_1 = listOf_0([import_0('community.flock.wirespec.scala', 'Wirespec'), import_0('scala.reflect', 'ClassTag')]);
526
559
  var tmp = this;
527
- tmp.o21_1 = lazy(ScalaIrEmitter$sanitizationConfig$delegate$lambda(this));
560
+ tmp.s1z_1 = lazy(ScalaIrEmitter$sanitizationConfig$delegate$lambda(this));
528
561
  }
529
- protoOf(ScalaIrEmitter).v1x = function () {
530
- return this.j21_1;
562
+ protoOf(ScalaIrEmitter).c1y = function () {
563
+ return this.n1z_1;
531
564
  };
532
- protoOf(ScalaIrEmitter).u1w = function () {
533
- return this.l21_1;
565
+ protoOf(ScalaIrEmitter).n1w = function () {
566
+ return this.p1z_1;
534
567
  };
535
- protoOf(ScalaIrEmitter).vq = function () {
536
- return this.m21_1;
568
+ protoOf(ScalaIrEmitter).kr = function () {
569
+ return this.q1z_1;
537
570
  };
538
- protoOf(ScalaIrEmitter).b1x = function (allFiles) {
539
- ScalaGenerator_getInstance().i1x(allFiles);
571
+ protoOf(ScalaIrEmitter).u1w = function (allFiles) {
572
+ ScalaGenerator_getInstance().g1x(allFiles);
540
573
  };
541
- protoOf(ScalaIrEmitter).y1w = function () {
542
- var packageName = Companion_instance_0.ds('community.flock.wirespec.scala');
574
+ protoOf(ScalaIrEmitter).r1w = function () {
575
+ var packageName = Companion_instance_0.is('community.flock.wirespec.scala');
543
576
  var tmp = interface_0('PathSegment', true);
544
577
  var tmp_0 = struct('Literal', ScalaIrEmitter$emitShared$lambda);
545
578
  var pathSegmentTypes = listOf_0([tmp, tmp_0, struct('Param', ScalaIrEmitter$emitShared$lambda_0)]);
546
579
  // Inline function 'kotlin.collections.map' call
547
- var this_0 = convertClientServer(packageName);
580
+ var this_0 = convertClientServer();
548
581
  // Inline function 'kotlin.collections.mapTo' call
549
582
  var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
550
583
  var _iterator__ex2g4s = this_0.t();
@@ -553,12 +586,12 @@ protoOf(ScalaIrEmitter).y1w = function () {
553
586
  var tmp_1;
554
587
  var tmp_2;
555
588
  if (item instanceof Interface) {
556
- tmp_2 = setOf(['Client', 'Server']).u1(item.k1p_1.t1h());
589
+ tmp_2 = setOf(['Client', 'Server']).v1(item.o1o_1.i1h());
557
590
  } else {
558
591
  tmp_2 = false;
559
592
  }
560
593
  if (tmp_2) {
561
- tmp_1 = item.r1p(VOID, VOID, VOID, VOID, VOID, plus_0(item.p1p_1, new Field(Companion_getInstance().s1h('pathSegments'), new Array_0(Custom_init_$Create$('PathSegment')))));
594
+ tmp_1 = item.w1o(VOID, VOID, VOID, VOID, VOID, plus_0(item.t1o_1, new Field(Companion_getInstance().h1h('pathSegments'), new Array_0(Custom_init_$Create$('PathSegment')))));
562
595
  } else {
563
596
  tmp_1 = item;
564
597
  }
@@ -572,58 +605,58 @@ protoOf(ScalaIrEmitter).y1w = function () {
572
605
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
573
606
  var tmp_3 = scope;
574
607
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
575
- var this_2 = scope.h1w_1;
608
+ var this_2 = scope.a1w_1;
576
609
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
577
610
  // Inline function 'kotlin.apply' call
578
611
  var this_3 = new TransformerBuilder();
579
- this_3.f1j(ScalaIrEmitter$emitShared$lambda_1);
580
- var tmp$ret$5 = this_3.g1j();
581
- tmp_3.h1w_1 = transform(this_2, tmp$ret$5);
612
+ this_3.u1i(ScalaIrEmitter$emitShared$lambda_1);
613
+ var tmp$ret$5 = this_3.v1i();
614
+ tmp_3.a1w_1 = transform(this_2, tmp$ret$5);
582
615
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
583
616
  var tmp_4 = scope;
584
617
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
585
- var this_4 = scope.h1w_1;
618
+ var this_4 = scope.a1w_1;
586
619
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
587
620
  // Inline function 'kotlin.apply' call
588
621
  var this_5 = new TransformerBuilder();
589
- this_5.f1j(ScalaIrEmitter$emitShared$lambda_2);
590
- var tmp$ret$10 = this_5.g1j();
591
- tmp_4.h1w_1 = transform(this_4, tmp$ret$10);
622
+ this_5.u1i(ScalaIrEmitter$emitShared$lambda_2);
623
+ var tmp$ret$10 = this_5.v1i();
624
+ tmp_4.a1w_1 = transform(this_4, tmp$ret$10);
592
625
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.injectAfter' call
593
626
  var tmp_5 = scope;
594
627
  // Inline function 'community.flock.wirespec.ir.core.injectAfter' call
595
628
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
596
- var this_6 = scope.h1w_1;
629
+ var this_6 = scope.a1w_1;
597
630
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
598
631
  // Inline function 'kotlin.apply' call
599
632
  var this_7 = new TransformerBuilder();
600
- this_7.f1j(ScalaIrEmitter$emitShared$lambda_3(clientServer));
601
- var tmp$ret$15 = this_7.g1j();
602
- tmp_5.h1w_1 = transform(this_6, tmp$ret$15);
603
- var tmp_6 = scope.h1w_1;
633
+ this_7.u1i(ScalaIrEmitter$emitShared$lambda_3(clientServer));
634
+ var tmp$ret$15 = this_7.v1i();
635
+ tmp_5.a1w_1 = transform(this_6, tmp$ret$15);
636
+ var tmp_6 = scope.a1w_1;
604
637
  var wirespecShared = isInterface(tmp_6, Element) ? tmp_6 : THROW_CCE();
605
638
  var tmp_7;
606
- if (this.k21_1.xo_1) {
607
- tmp_7 = wirespecShared.q1o(Companion_getInstance().s1h(packageName.gs() + 'Wirespec'));
639
+ if (this.o1z_1.gp_1) {
640
+ tmp_7 = wirespecShared.g1o(Companion_getInstance().h1h(packageName.ls() + 'Wirespec'));
608
641
  } else {
609
642
  tmp_7 = null;
610
643
  }
611
644
  return tmp_7;
612
645
  };
613
- protoOf(ScalaIrEmitter).mr = function (definition, module_0, logger) {
646
+ protoOf(ScalaIrEmitter).lr = function (definition, module_0, logger) {
614
647
  var file = emit.call(this, definition, module_0, logger);
615
648
  // Inline function 'kotlin.takeIf' call
616
- var this_0 = this.n21_1;
649
+ var this_0 = this.r1z_1;
617
650
  var tmp;
618
- if (Companion_instance.ir(module_0)) {
651
+ if (Companion_instance.er(module_0)) {
619
652
  tmp = this_0;
620
653
  } else {
621
654
  tmp = null;
622
655
  }
623
656
  var tmp$ret$1 = tmp;
624
- return placeInPackage(prependImports(file, tmp$ret$1), this.v1x(), definition);
657
+ return placeInPackage(prependImports(file, tmp$ret$1), this.c1y(), definition);
625
658
  };
626
- protoOf(ScalaIrEmitter).d1x = function (definition, module_0) {
659
+ protoOf(ScalaIrEmitter).w1w = function (definition, module_0) {
627
660
  var tmp;
628
661
  if (definition instanceof Type) {
629
662
  tmp = convertToGenerator_2(definition, module_0);
@@ -644,7 +677,7 @@ protoOf(ScalaIrEmitter).d1x = function (definition, module_0) {
644
677
  }
645
678
  var generatorFile = tmp;
646
679
  var sanitized = sanitizeNames(generatorFile, _get_sanitizationConfig__sns434(this));
647
- var generatorOwnName = definition.nr().l1() + 'Generator';
680
+ var generatorOwnName = definition.mr().m1() + 'Generator';
648
681
  var tmp_0 = asSequence(collectCustomTypeNames(sanitized));
649
682
  var tmp_1 = filterNot(tmp_0, ScalaIrEmitter$emitGenerator$lambda);
650
683
  var tmp_2 = filterNot(tmp_1, ScalaIrEmitter$emitGenerator$lambda_0(generatorOwnName));
@@ -665,13 +698,13 @@ protoOf(ScalaIrEmitter).d1x = function (definition, module_0) {
665
698
  var _iterator__ex2g4s_0 = destination.t();
666
699
  while (_iterator__ex2g4s_0.u()) {
667
700
  var item = _iterator__ex2g4s_0.v();
668
- var tmp$ret$3 = import_0(this.v1x().es_1 + '.model', item);
701
+ var tmp$ret$3 = import_0(this.c1y().js_1 + '.model', item);
669
702
  destination_0.x(tmp$ret$3);
670
703
  }
671
704
  var modelImports = destination_0;
672
- return placeInPackage_0(prependImports(sanitized, plus(this.n21_1, modelImports)), this.v1x(), 'generator');
705
+ return placeInPackage_0(prependImports(sanitized, plus(this.r1z_1, modelImports)), this.c1y(), 'generator');
673
706
  };
674
- protoOf(ScalaIrEmitter).lq = function (type, module_0) {
707
+ protoOf(ScalaIrEmitter).cs = function (type, module_0) {
675
708
  return ensureEmptyStructHasConstructor(sanitizeNames(convertWithValidation(type, module_0), _get_sanitizationConfig__sns434(this)));
676
709
  };
677
710
  protoOf(ScalaIrEmitter).as = function (enum_0, module_0) {
@@ -685,7 +718,7 @@ protoOf(ScalaIrEmitter).vr = function (refined) {
685
718
  var file = sanitizeNames(convert_2(refined), _get_sanitizationConfig__sns434(this));
686
719
  // Inline function 'community.flock.wirespec.ir.core.findElement' call
687
720
  // Inline function 'kotlin.collections.filterIsInstance' call
688
- var tmp0 = file.o1o();
721
+ var tmp0 = file.e1o();
689
722
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
690
723
  var destination = ArrayList_init_$Create$_0();
691
724
  var _iterator__ex2g4s = tmp0.t();
@@ -697,12 +730,12 @@ protoOf(ScalaIrEmitter).vr = function (refined) {
697
730
  }
698
731
  var tmp$ret$2 = firstOrNull_0(destination);
699
732
  var updatedStruct = convertToStringCallsToFieldAccess(markMembersAsOverride(ensureNotNull(tmp$ret$2)));
700
- return new File(Companion_getInstance().s1h(sanitize(this, refined.tr_1)), listOf(updatedStruct));
733
+ return new File(Companion_getInstance().h1h(sanitize(this, refined.tr_1)), listOf(updatedStruct));
701
734
  };
702
735
  protoOf(ScalaIrEmitter).bs = function (endpoint) {
703
736
  // Inline function 'community.flock.wirespec.ir.core.findElement' call
704
737
  // Inline function 'kotlin.collections.filterIsInstance' call
705
- var tmp0 = convert_3(endpoint).o1o();
738
+ var tmp0 = convert_3(endpoint).e1o();
706
739
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
707
740
  var destination = ArrayList_init_$Create$_0();
708
741
  var _iterator__ex2g4s = tmp0.t();
@@ -715,9 +748,9 @@ protoOf(ScalaIrEmitter).bs = function (endpoint) {
715
748
  var tmp$ret$2 = firstOrNull_0(destination);
716
749
  var endpointNamespace = ensureNotNull(tmp$ret$2);
717
750
  var body = appendClientServerObjects(injectHandleFunction(endpointNamespace), endpoint, isRequestObject(endpointNamespace));
718
- var tmp = sanitizeNames(new File(Companion_getInstance().s1h(sanitize(this, endpoint.vp_1)), listOf(body)), _get_sanitizationConfig__sns434(this));
751
+ var tmp = sanitizeNames(new File(Companion_getInstance().h1h(sanitize(this, endpoint.kq_1)), listOf(body)), _get_sanitizationConfig__sns434(this));
719
752
  // Inline function 'kotlin.takeIf' call
720
- var this_0 = buildModelImports(endpoint, this.v1x());
753
+ var this_0 = buildModelImports(endpoint, this.c1y());
721
754
  var tmp_0;
722
755
  // Inline function 'kotlin.collections.isNotEmpty' call
723
756
  if (!this_0.r()) {
@@ -731,7 +764,7 @@ protoOf(ScalaIrEmitter).bs = function (endpoint) {
731
764
  protoOf(ScalaIrEmitter).pr = function (channel) {
732
765
  var tmp = sanitizeNames(convert_4(channel), _get_sanitizationConfig__sns434(this));
733
766
  // Inline function 'kotlin.takeIf' call
734
- var this_0 = buildModelImports(channel, this.v1x());
767
+ var this_0 = buildModelImports(channel, this.c1y());
735
768
  var tmp_0;
736
769
  // Inline function 'kotlin.collections.isNotEmpty' call
737
770
  if (!this_0.r()) {
@@ -742,25 +775,39 @@ protoOf(ScalaIrEmitter).pr = function (channel) {
742
775
  var tmp$ret$2 = tmp_0;
743
776
  return prependImports(tmp, tmp$ret$2);
744
777
  };
745
- protoOf(ScalaIrEmitter).c1x = function (endpoint) {
746
- var imports = buildModelImports(endpoint, this.v1x());
747
- var endpointImport = import_0(this.v1x().es_1 + '.endpoint', endpoint.vp_1.l1());
778
+ protoOf(ScalaIrEmitter).or = function (rpc) {
779
+ var tmp = sanitizeNames(convert_5(rpc), _get_sanitizationConfig__sns434(this));
780
+ // Inline function 'kotlin.takeIf' call
781
+ var this_0 = buildModelImports(rpc, this.c1y());
782
+ var tmp_0;
783
+ // Inline function 'kotlin.collections.isNotEmpty' call
784
+ if (!this_0.r()) {
785
+ tmp_0 = this_0;
786
+ } else {
787
+ tmp_0 = null;
788
+ }
789
+ var tmp$ret$2 = tmp_0;
790
+ return prependImports(tmp, tmp$ret$2);
791
+ };
792
+ protoOf(ScalaIrEmitter).v1w = function (endpoint) {
793
+ var imports = buildModelImports(endpoint, this.c1y());
794
+ var endpointImport = import_0(this.c1y().js_1 + '.endpoint', endpoint.kq_1.m1());
748
795
  var file = addIdentityTypeToCall(sanitizeNames(emitEndpointClient.call(this, endpoint), _get_sanitizationConfig__sns434(this)));
749
- var subPackageName = plus_1(this.v1x(), 'client');
750
- var tmp = Companion_getInstance().s1h(subPackageName.gs() + file.m1o_1.t1h());
796
+ var subPackageName = plus_1(this.c1y(), 'client');
797
+ var tmp = Companion_getInstance().h1h(subPackageName.ls() + file.c1o_1.i1h());
751
798
  // Inline function 'kotlin.collections.buildList' call
752
799
  // Inline function 'kotlin.collections.buildListInternal' call
753
800
  // Inline function 'kotlin.apply' call
754
801
  var this_0 = ArrayList_init_$Create$_0();
755
- this_0.x(new Package(subPackageName.es_1));
756
- this_0.f1(this.n21_1);
757
- this_0.f1(imports);
802
+ this_0.x(new Package(subPackageName.js_1));
803
+ this_0.g1(this.r1z_1);
804
+ this_0.g1(imports);
758
805
  this_0.x(endpointImport);
759
- this_0.f1(file.n1o_1);
760
- var tmp$ret$3 = this_0.o5();
806
+ this_0.g1(file.d1o_1);
807
+ var tmp$ret$3 = this_0.p5();
761
808
  return new File(tmp, tmp$ret$3);
762
809
  };
763
- protoOf(ScalaIrEmitter).z1w = function (endpoints, logger) {
810
+ protoOf(ScalaIrEmitter).s1w = function (endpoints, logger) {
764
811
  // Inline function 'kotlin.collections.flatMap' call
765
812
  // Inline function 'kotlin.collections.flatMapTo' call
766
813
  var destination = ArrayList_init_$Create$_0();
@@ -776,7 +823,7 @@ protoOf(ScalaIrEmitter).z1w = function (endpoints, logger) {
776
823
  var _iterator__ex2g4s_0 = destination.t();
777
824
  while (_iterator__ex2g4s_0.u()) {
778
825
  var e = _iterator__ex2g4s_0.v();
779
- var key = e.cv_1;
826
+ var key = e.lv_1;
780
827
  if (set.x(key)) {
781
828
  list_0.x(e);
782
829
  }
@@ -787,7 +834,7 @@ protoOf(ScalaIrEmitter).z1w = function (endpoints, logger) {
787
834
  var _iterator__ex2g4s_1 = list_0.t();
788
835
  while (_iterator__ex2g4s_1.u()) {
789
836
  var item = _iterator__ex2g4s_1.v();
790
- var tmp$ret$5 = import_0(this.v1x().es_1 + '.model', item.cv_1);
837
+ var tmp$ret$5 = import_0(this.c1y().js_1 + '.model', item.lv_1);
791
838
  destination_0.x(tmp$ret$5);
792
839
  }
793
840
  var imports = destination_0;
@@ -797,7 +844,7 @@ protoOf(ScalaIrEmitter).z1w = function (endpoints, logger) {
797
844
  var _iterator__ex2g4s_2 = endpoints.t();
798
845
  while (_iterator__ex2g4s_2.u()) {
799
846
  var item_0 = _iterator__ex2g4s_2.v();
800
- var tmp$ret$8 = import_0(this.v1x().es_1 + '.endpoint', item_0.vp_1.l1());
847
+ var tmp$ret$8 = import_0(this.c1y().js_1 + '.endpoint', item_0.kq_1.m1());
801
848
  destination_1.x(tmp$ret$8);
802
849
  }
803
850
  var endpointImports = destination_1;
@@ -807,38 +854,38 @@ protoOf(ScalaIrEmitter).z1w = function (endpoints, logger) {
807
854
  var _iterator__ex2g4s_3 = endpoints.t();
808
855
  while (_iterator__ex2g4s_3.u()) {
809
856
  var item_1 = _iterator__ex2g4s_3.v();
810
- var tmp$ret$11 = import_0(this.v1x().es_1 + '.client', item_1.vp_1.l1() + 'Client');
857
+ var tmp$ret$11 = import_0(this.c1y().js_1 + '.client', item_1.kq_1.m1() + 'Client');
811
858
  destination_2.x(tmp$ret$11);
812
859
  }
813
860
  var clientImports = destination_2;
814
861
  var allImports = plus(plus(imports, endpointImports), clientImports);
815
862
  var file = addIdentityTypeToCall(sanitizeNames(emitClient.call(this, endpoints, logger), _get_sanitizationConfig__sns434(this)));
816
- var tmp = Companion_getInstance().s1h(this.v1x().gs() + file.m1o_1.t1h());
863
+ var tmp = Companion_getInstance().h1h(this.c1y().ls() + file.c1o_1.i1h());
817
864
  // Inline function 'kotlin.collections.buildList' call
818
865
  // Inline function 'kotlin.collections.buildListInternal' call
819
866
  // Inline function 'kotlin.apply' call
820
867
  var this_0 = ArrayList_init_$Create$_0();
821
- this_0.x(new Package(this.v1x().es_1));
822
- this_0.f1(this.n21_1);
823
- this_0.f1(allImports);
824
- this_0.f1(file.n1o_1);
825
- var tmp$ret$17 = this_0.o5();
868
+ this_0.x(new Package(this.c1y().js_1));
869
+ this_0.g1(this.r1z_1);
870
+ this_0.g1(allImports);
871
+ this_0.g1(file.d1o_1);
872
+ var tmp$ret$17 = this_0.p5();
826
873
  return new File(tmp, tmp$ret$17);
827
874
  };
828
875
  function convertToStringCallsToFieldAccess(_this__u8e3s4) {
829
876
  // Inline function 'community.flock.wirespec.ir.core.transform' call
830
877
  var scope = new TransformScope(_this__u8e3s4);
831
- scope.p1w(convertToStringCallsToFieldAccess$lambda);
832
- var tmp = scope.h1w_1;
878
+ scope.i1w(convertToStringCallsToFieldAccess$lambda);
879
+ var tmp = scope.a1w_1;
833
880
  return isInterface(tmp, Element) ? tmp : THROW_CCE();
834
881
  }
835
882
  function appendClientServerObjects(_this__u8e3s4, endpoint, requestIsObject) {
836
883
  var reqType = requestIsObject ? 'Request.type' : 'Request';
837
- var pathTemplate = '/' + joinToString(endpoint.xp_1, '/', VOID, VOID, VOID, VOID, appendClientServerObjects$lambda);
838
- var pathSegmentsCode = joinToString(endpoint.xp_1, ', ', VOID, VOID, VOID, VOID, appendClientServerObjects$lambda_0);
839
- var clientObject = raw(trimMargin('\n |object Client extends Wirespec.Client[' + reqType + ', Response[?]] {\n | override val pathTemplate: String = "' + pathTemplate + '"\n | override val method: String = "' + endpoint.wp_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 '));
840
- var serverObject = raw(trimMargin('\n |object Server extends Wirespec.Server[' + reqType + ', Response[?]] {\n | override val pathTemplate: String = "' + pathTemplate + '"\n | override val method: String = "' + endpoint.wp_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 '));
841
- return _this__u8e3s4.w1o(VOID, plus_0(plus_0(_this__u8e3s4.t1o_1, clientObject), serverObject));
884
+ var pathTemplate = '/' + joinToString(endpoint.mq_1, '/', VOID, VOID, VOID, VOID, appendClientServerObjects$lambda);
885
+ var pathSegmentsCode = joinToString(endpoint.mq_1, ', ', VOID, VOID, VOID, VOID, appendClientServerObjects$lambda_0);
886
+ var clientObject = raw(trimMargin('\n |object Client extends Wirespec.Client[' + reqType + ', Response[?]] {\n | override val pathTemplate: String = "' + pathTemplate + '"\n | override val method: String = "' + endpoint.lq_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 '));
887
+ var serverObject = raw(trimMargin('\n |object Server extends Wirespec.Server[' + reqType + ', Response[?]] {\n | override val pathTemplate: String = "' + pathTemplate + '"\n | override val method: String = "' + endpoint.lq_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 '));
888
+ return _this__u8e3s4.n1o(VOID, plus_0(plus_0(_this__u8e3s4.j1o_1, clientObject), serverObject));
842
889
  }
843
890
  function injectHandleFunction(_this__u8e3s4) {
844
891
  // Inline function 'community.flock.wirespec.ir.core.transform' call
@@ -846,19 +893,19 @@ function injectHandleFunction(_this__u8e3s4) {
846
893
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
847
894
  var tmp = scope;
848
895
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
849
- var this_0 = scope.h1w_1;
896
+ var this_0 = scope.a1w_1;
850
897
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
851
898
  // Inline function 'kotlin.apply' call
852
899
  var this_1 = new TransformerBuilder();
853
- this_1.f1j(injectHandleFunction$lambda);
854
- var tmp$ret$2 = this_1.g1j();
855
- tmp.h1w_1 = transform(this_0, tmp$ret$2);
856
- var tmp_0 = scope.h1w_1;
900
+ this_1.u1i(injectHandleFunction$lambda);
901
+ var tmp$ret$2 = this_1.v1i();
902
+ tmp.a1w_1 = transform(this_0, tmp$ret$2);
903
+ var tmp_0 = scope.a1w_1;
857
904
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
858
905
  }
859
906
  function isRequestObject(namespace) {
860
907
  // Inline function 'kotlin.collections.filterIsInstance' call
861
- var tmp0 = namespace.t1o_1;
908
+ var tmp0 = namespace.j1o_1;
862
909
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
863
910
  var destination = ArrayList_init_$Create$_0();
864
911
  var _iterator__ex2g4s = tmp0.t();
@@ -874,7 +921,7 @@ function isRequestObject(namespace) {
874
921
  var _iterator__ex2g4s_0 = destination.t();
875
922
  while (_iterator__ex2g4s_0.u()) {
876
923
  var element_0 = _iterator__ex2g4s_0.v();
877
- if (element_0.x1o_1.t1h() === 'Request') {
924
+ if (element_0.c1q_1.i1h() === 'Request') {
878
925
  tmp$ret$3 = element_0;
879
926
  break $l$block;
880
927
  }
@@ -889,7 +936,7 @@ function isRequestObject(namespace) {
889
936
  tmp = tmp0_elvis_lhs;
890
937
  }
891
938
  var requestStruct = tmp;
892
- return requestStruct.z1o_1.a1() === 1 && single(requestStruct.z1o_1).r1s_1.r() || (requestStruct.y1o_1.r() && requestStruct.z1o_1.r());
939
+ return requestStruct.e1q_1.b1() === 1 && single(requestStruct.e1q_1).k1s_1.r() || (requestStruct.d1q_1.r() && requestStruct.e1q_1.r());
893
940
  }
894
941
  function buildModelImports(_this__u8e3s4, packageName) {
895
942
  // Inline function 'kotlin.collections.distinctBy' call
@@ -899,7 +946,7 @@ function buildModelImports(_this__u8e3s4, packageName) {
899
946
  var _iterator__ex2g4s = this_0.t();
900
947
  while (_iterator__ex2g4s.u()) {
901
948
  var e = _iterator__ex2g4s.v();
902
- var key = e.cv_1;
949
+ var key = e.lv_1;
903
950
  if (set.x(key)) {
904
951
  list.x(e);
905
952
  }
@@ -910,7 +957,7 @@ function buildModelImports(_this__u8e3s4, packageName) {
910
957
  var _iterator__ex2g4s_0 = list.t();
911
958
  while (_iterator__ex2g4s_0.u()) {
912
959
  var item = _iterator__ex2g4s_0.v();
913
- var tmp$ret$2 = import_0(packageName.es_1 + '.model', Companion_getInstance().s1h(item.cv_1).t1h());
960
+ var tmp$ret$2 = import_0(packageName.js_1 + '.model', Companion_getInstance().h1h(item.lv_1).i1h());
914
961
  destination.x(tmp$ret$2);
915
962
  }
916
963
  return destination;
@@ -921,29 +968,29 @@ function addIdentityTypeToCall(_this__u8e3s4) {
921
968
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
922
969
  var tmp = scope;
923
970
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
924
- var this_0 = scope.h1w_1;
971
+ var this_0 = scope.a1w_1;
925
972
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
926
973
  // Inline function 'kotlin.apply' call
927
974
  var this_1 = new TransformerBuilder();
928
- this_1.f1j(addIdentityTypeToCall$lambda);
929
- var tmp$ret$2 = this_1.g1j();
930
- tmp.h1w_1 = transform(this_0, tmp$ret$2);
931
- var tmp_0 = scope.h1w_1;
975
+ this_1.u1i(addIdentityTypeToCall$lambda);
976
+ var tmp$ret$2 = this_1.v1i();
977
+ tmp.a1w_1 = transform(this_0, tmp$ret$2);
978
+ var tmp_0 = scope.a1w_1;
932
979
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
933
980
  }
934
981
  function toScalaTypeName(_this__u8e3s4) {
935
982
  var tmp;
936
983
  if (_this__u8e3s4 instanceof Primitive) {
937
- var t = _this__u8e3s4.gv_1;
984
+ var t = _this__u8e3s4.wt_1;
938
985
  var tmp_0;
939
986
  if (t instanceof String_0) {
940
987
  tmp_0 = 'String';
941
988
  } else {
942
989
  if (t instanceof Integer) {
943
- tmp_0 = t.ku_1.equals(Precision_P32_getInstance()) ? 'Int' : 'Long';
990
+ tmp_0 = t.tu_1.equals(Precision_P32_getInstance()) ? 'Int' : 'Long';
944
991
  } else {
945
992
  if (t instanceof Number_0) {
946
- tmp_0 = t.nu_1.equals(Precision_P32_getInstance()) ? 'Float' : 'Double';
993
+ tmp_0 = t.wu_1.equals(Precision_P32_getInstance()) ? 'Float' : 'Double';
947
994
  } else {
948
995
  if (equals(t, Boolean_instance)) {
949
996
  tmp_0 = 'Boolean';
@@ -960,13 +1007,13 @@ function toScalaTypeName(_this__u8e3s4) {
960
1007
  tmp = tmp_0;
961
1008
  } else {
962
1009
  if (_this__u8e3s4 instanceof Custom) {
963
- tmp = _this__u8e3s4.cv_1;
1010
+ tmp = _this__u8e3s4.lv_1;
964
1011
  } else {
965
1012
  if (_this__u8e3s4 instanceof Iterable) {
966
- tmp = 'List[' + toScalaTypeName(_this__u8e3s4.po_1) + ']';
1013
+ tmp = 'List[' + toScalaTypeName(_this__u8e3s4.yo_1) + ']';
967
1014
  } else {
968
1015
  if (_this__u8e3s4 instanceof Dict) {
969
- tmp = 'Map[String, ' + toScalaTypeName(_this__u8e3s4.so_1) + ']';
1016
+ tmp = 'Map[String, ' + toScalaTypeName(_this__u8e3s4.bp_1) + ']';
970
1017
  } else {
971
1018
  if (_this__u8e3s4 instanceof Any) {
972
1019
  tmp = 'Any';
@@ -982,32 +1029,32 @@ function toScalaTypeName(_this__u8e3s4) {
982
1029
  }
983
1030
  }
984
1031
  var base = tmp;
985
- return _this__u8e3s4.uu() ? 'Option[' + base + ']' : base;
1032
+ return _this__u8e3s4.dv() ? 'Option[' + base + ']' : base;
986
1033
  }
987
1034
  function convertToStringCallsToFieldAccess$lambda(expr, tr) {
988
1035
  var tmp;
989
1036
  var tmp_0;
990
1037
  var tmp_1;
991
1038
  if (expr instanceof FunctionCall) {
992
- tmp_1 = expr.o1n_1.e1n() === 'toString';
1039
+ tmp_1 = expr.d1n_1.t1m() === 'toString';
993
1040
  } else {
994
1041
  tmp_1 = false;
995
1042
  }
996
1043
  if (tmp_1) {
997
- tmp_0 = !(expr.m1n_1 == null);
1044
+ tmp_0 = !(expr.b1n_1 == null);
998
1045
  } else {
999
1046
  tmp_0 = false;
1000
1047
  }
1001
1048
  if (tmp_0) {
1002
- var tmp0_safe_receiver = expr.m1n_1;
1049
+ var tmp0_safe_receiver = expr.b1n_1;
1003
1050
  var tmp_2;
1004
1051
  if (tmp0_safe_receiver == null) {
1005
1052
  tmp_2 = null;
1006
1053
  } else {
1007
1054
  // Inline function 'kotlin.let' call
1008
- tmp_2 = tr.c1w(tmp0_safe_receiver);
1055
+ tmp_2 = tr.v1v(tmp0_safe_receiver);
1009
1056
  }
1010
- tmp = new FieldCall(tmp_2, Companion_getInstance().s1h('toString'));
1057
+ tmp = new FieldCall(tmp_2, Companion_getInstance().h1h('toString'));
1011
1058
  } else {
1012
1059
  tmp = transformChildren_1(expr, tr);
1013
1060
  }
@@ -1016,10 +1063,10 @@ function convertToStringCallsToFieldAccess$lambda(expr, tr) {
1016
1063
  function appendClientServerObjects$lambda(it) {
1017
1064
  var tmp;
1018
1065
  if (it instanceof Literal) {
1019
- tmp = it.yq_1;
1066
+ tmp = it.bu_1;
1020
1067
  } else {
1021
1068
  if (it instanceof Param) {
1022
- tmp = '{' + it.cq_1.l1() + '}';
1069
+ tmp = '{' + it.rq_1.m1() + '}';
1023
1070
  } else {
1024
1071
  noWhenBranchMatchedException();
1025
1072
  }
@@ -1029,10 +1076,10 @@ function appendClientServerObjects$lambda(it) {
1029
1076
  function appendClientServerObjects$lambda_0(segment) {
1030
1077
  var tmp;
1031
1078
  if (segment instanceof Literal) {
1032
- tmp = 'Wirespec.Literal("' + segment.yq_1 + '")';
1079
+ tmp = 'Wirespec.Literal("' + segment.bu_1 + '")';
1033
1080
  } else {
1034
1081
  if (segment instanceof Param) {
1035
- tmp = 'Wirespec.Param("' + segment.cq_1.l1() + '", scala.reflect.classTag[' + toScalaTypeName(segment.dq_1) + '])';
1082
+ tmp = 'Wirespec.Param("' + segment.rq_1.m1() + '", scala.reflect.classTag[' + toScalaTypeName(segment.sq_1) + '])';
1036
1083
  } else {
1037
1084
  noWhenBranchMatchedException();
1038
1085
  }
@@ -1044,13 +1091,13 @@ function injectHandleFunction$lambda(element, transformer) {
1044
1091
  if (element instanceof Interface) {
1045
1092
  var tmp$ret$0;
1046
1093
  $l$block: {
1047
- if (!element.k1p_1.equals(Companion_getInstance().s1h('Handler')) && !element.k1p_1.equals(Companion_getInstance().s1h('Call'))) {
1094
+ if (!element.o1o_1.equals(Companion_getInstance().h1h('Handler')) && !element.o1o_1.equals(Companion_getInstance().h1h('Call'))) {
1048
1095
  tmp$ret$0 = element;
1049
1096
  break $l$block;
1050
1097
  }
1051
1098
  var tmp0_typeParameters = listOf(new TypeParameter(Custom_init_$Create$('F[_]')));
1052
1099
  // Inline function 'kotlin.collections.map' call
1053
- var this_0 = element.l1p_1;
1100
+ var this_0 = element.p1o_1;
1054
1101
  // Inline function 'kotlin.collections.mapTo' call
1055
1102
  var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
1056
1103
  var _iterator__ex2g4s = this_0.t();
@@ -1061,7 +1108,7 @@ function injectHandleFunction$lambda(element, transformer) {
1061
1108
  if (tmp0_safe_receiver == null) {
1062
1109
  tmp_0 = null;
1063
1110
  } else {
1064
- var tmp1_safe_receiver = item.s1l_1;
1111
+ var tmp1_safe_receiver = item.h1l_1;
1065
1112
  var tmp_1;
1066
1113
  if (tmp1_safe_receiver == null) {
1067
1114
  tmp_1 = null;
@@ -1070,13 +1117,13 @@ function injectHandleFunction$lambda(element, transformer) {
1070
1117
  tmp_1 = Custom_init_$Create$('F', listOf(tmp1_safe_receiver));
1071
1118
  }
1072
1119
  var tmp3_returnType = tmp_1;
1073
- tmp_0 = tmp0_safe_receiver.a1m(VOID, VOID, VOID, tmp3_returnType, VOID, false);
1120
+ tmp_0 = tmp0_safe_receiver.p1l(VOID, VOID, VOID, tmp3_returnType, VOID, false);
1074
1121
  }
1075
1122
  var tmp4_elvis_lhs = tmp_0;
1076
1123
  var tmp$ret$3 = tmp4_elvis_lhs == null ? item : tmp4_elvis_lhs;
1077
1124
  destination.x(tmp$ret$3);
1078
1125
  }
1079
- tmp$ret$0 = element.r1p(VOID, destination, VOID, VOID, tmp0_typeParameters);
1126
+ tmp$ret$0 = element.w1o(VOID, destination, VOID, VOID, tmp0_typeParameters);
1080
1127
  }
1081
1128
  tmp = tmp$ret$0;
1082
1129
  } else {
@@ -1089,32 +1136,25 @@ function addIdentityTypeToCall$lambda(element, transformer) {
1089
1136
  var tmp;
1090
1137
  if (element instanceof Struct) {
1091
1138
  // Inline function 'kotlin.collections.map' call
1092
- var this_0 = element.a1p_1;
1139
+ var this_0 = element.f1q_1;
1093
1140
  // Inline function 'kotlin.collections.mapTo' call
1094
1141
  var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
1095
1142
  var _iterator__ex2g4s = this_0.t();
1096
1143
  while (_iterator__ex2g4s.u()) {
1097
1144
  var item = _iterator__ex2g4s.v();
1098
- var tmp0_safe_receiver = item instanceof Custom_0 ? item : null;
1145
+ // Inline function 'kotlin.takeIf' call
1099
1146
  var tmp_0;
1100
- if (tmp0_safe_receiver == null) {
1101
- tmp_0 = null;
1147
+ if (endsWith(item.e1j_1.i1h(), '.Call')) {
1148
+ tmp_0 = item;
1102
1149
  } else {
1103
- // Inline function 'kotlin.takeIf' call
1104
- var tmp_1;
1105
- if (endsWith(tmp0_safe_receiver.p1j_1.t1h(), '.Call')) {
1106
- tmp_1 = tmp0_safe_receiver;
1107
- } else {
1108
- tmp_1 = null;
1109
- }
1110
- tmp_0 = tmp_1;
1150
+ tmp_0 = null;
1111
1151
  }
1112
- var tmp1_safe_receiver = tmp_0;
1113
- var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.a1o(VOID, listOf(Custom_init_$Create$('[A] =>> A')));
1114
- var tmp$ret$2 = tmp2_elvis_lhs == null ? item : tmp2_elvis_lhs;
1152
+ var tmp0_safe_receiver = tmp_0;
1153
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.p1n(VOID, listOf(Custom_init_$Create$('[A] =>> A')));
1154
+ var tmp$ret$2 = tmp1_elvis_lhs == null ? item : tmp1_elvis_lhs;
1115
1155
  destination.x(tmp$ret$2);
1116
1156
  }
1117
- tmp = element.i1p(VOID, VOID, VOID, destination);
1157
+ tmp = element.n1q(VOID, VOID, VOID, destination);
1118
1158
  } else {
1119
1159
  tmp = element;
1120
1160
  }
@@ -1122,9 +1162,9 @@ function addIdentityTypeToCall$lambda(element, transformer) {
1122
1162
  return transformChildren_0(transformed, transformer);
1123
1163
  }
1124
1164
  //region block: post-declaration
1125
- protoOf(ScalaIrEmitter).w1w = get_extensions;
1126
- protoOf(ScalaIrEmitter).eo = emit_0;
1127
- protoOf(ScalaIrEmitter).x1w = emit_1;
1165
+ protoOf(ScalaIrEmitter).p1w = get_extensions;
1166
+ protoOf(ScalaIrEmitter).no = emit_0;
1167
+ protoOf(ScalaIrEmitter).q1w = emit_1;
1128
1168
  //endregion
1129
1169
  //region block: exports
1130
1170
  export {