@flock/wirespec 0.19.2 → 0.19.3

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 (34) hide show
  1. package/clikt-clikt-mordant.mjs +39 -39
  2. package/colormath-root-colormath.mjs +432 -432
  3. package/kotlin-kotlin-stdlib.mjs +6 -6
  4. package/kotlin-kotlin-stdlib.mjs.map +1 -1
  5. package/kotlin-openapi-bindings.mjs +9765 -9765
  6. package/kotlin-rgxgen.mjs +1756 -1756
  7. package/kotlinx-io-kotlinx-io-core.mjs +403 -403
  8. package/kotlinx-serialization-kotlinx-serialization-core.mjs +1759 -1759
  9. package/kotlinx-serialization-kotlinx-serialization-json.mjs +1468 -1468
  10. package/mordant-mordant.mjs +1181 -1181
  11. package/package.json +1 -1
  12. package/wirespec-src-compiler-emitters-java.mjs +238 -236
  13. package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
  14. package/wirespec-src-compiler-emitters-kotlin.mjs +139 -137
  15. package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
  16. package/wirespec-src-compiler-emitters-python.mjs +176 -174
  17. package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
  18. package/wirespec-src-compiler-emitters-rust.mjs +305 -303
  19. package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
  20. package/wirespec-src-compiler-emitters-scala.mjs +112 -110
  21. package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
  22. package/wirespec-src-compiler-emitters-typescript.mjs +179 -177
  23. package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
  24. package/wirespec-src-compiler-emitters-wirespec.mjs +24 -24
  25. package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
  26. package/wirespec-src-compiler-ir.mjs +2626 -2578
  27. package/wirespec-src-compiler-ir.mjs.map +1 -1
  28. package/wirespec-src-converter-avro.mjs +479 -479
  29. package/wirespec-src-converter-openapi.mjs +338 -338
  30. package/wirespec-src-ide-lsp.mjs +1351 -1351
  31. package/wirespec-src-plugin-arguments.mjs +134 -134
  32. package/wirespec-src-plugin-cli.mjs +84 -84
  33. package/wirespec-src-plugin-npm.mjs +18 -18
  34. package/wirespec-src-tools-generator.mjs +2 -2
@@ -128,6 +128,7 @@ import {
128
128
  convert1cn4bolzoed8c as convert_4,
129
129
  emitEndpointClient1meajc90wf3el as emitEndpointClient,
130
130
  emitClient32kfwzg2hm5vj as emitClient,
131
+ get_extensions31c4or738wbxz as get_extensions,
131
132
  emit1oxjujel6f3jb as emit_0,
132
133
  emit3bzdcd0f6nwtj as emit_1,
133
134
  IrEmitterh2m93ojzvkep as IrEmitter,
@@ -145,7 +146,7 @@ initMetadataForCompanion(Companion);
145
146
  initMetadataForClass(ScalaIrEmitter, 'ScalaIrEmitter', ScalaIrEmitter, VOID, [IrEmitter]);
146
147
  //endregion
147
148
  function _get_sanitizationConfig__sns434($this) {
148
- var tmp0 = $this.k20_1;
149
+ var tmp0 = $this.n20_1;
149
150
  var tmp = KProperty1;
150
151
  // Inline function 'kotlin.getValue' call
151
152
  getPropertyCallableRef('sanitizationConfig', 1, tmp, ScalaIrEmitter$_get_sanitizationConfig_$ref_ydarb0(), null);
@@ -210,7 +211,7 @@ function sanitizeFirstIsDigit($this, _this__u8e3s4) {
210
211
  return tmp;
211
212
  }
212
213
  function sanitizeKeywords($this, _this__u8e3s4) {
213
- return Companion_getInstance_0().l20_1.u1(_this__u8e3s4) ? addBackticks(_this__u8e3s4) : _this__u8e3s4;
214
+ return Companion_getInstance_0().o20_1.u1(_this__u8e3s4) ? addBackticks(_this__u8e3s4) : _this__u8e3s4;
214
215
  }
215
216
  function sanitizeSymbol($this, _this__u8e3s4) {
216
217
  // Inline function 'kotlin.collections.mapIndexed' call
@@ -250,7 +251,7 @@ function sanitizeEnum($this, _this__u8e3s4) {
250
251
  }
251
252
  function Companion() {
252
253
  Companion_instance_2 = this;
253
- this.l20_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']);
254
+ this.o20_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']);
254
255
  }
255
256
  var Companion_instance_2;
256
257
  function Companion_getInstance_0() {
@@ -282,17 +283,17 @@ function ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
282
283
  var tmp;
283
284
  var tmp_0;
284
285
  if (stmt instanceof FunctionCall) {
285
- tmp_0 = stmt.z1m_1.j1j() === 'validate';
286
+ tmp_0 = stmt.a1n_1.j1j() === 'validate';
286
287
  } else {
287
288
  tmp_0 = false;
288
289
  }
289
290
  if (tmp_0) {
290
- tmp = transformChildren(stmt.d1n(VOID, emptyList()), tr);
291
+ tmp = transformChildren(stmt.e1n(VOID, emptyList()), tr);
291
292
  } else {
292
293
  if (stmt instanceof ConstructorStatement) {
293
- var tmp_1 = tr.x1u(stmt.r1n_1);
294
+ var tmp_1 = tr.y1u(stmt.s1n_1);
294
295
  // Inline function 'kotlin.collections.map' call
295
- var this_0 = stmt.s1n_1;
296
+ var this_0 = stmt.t1n_1;
296
297
  // Inline function 'kotlin.collections.mapTo' call
297
298
  var destination = ArrayList_init_$Create$(this_0.a1());
298
299
  // Inline function 'kotlin.collections.iterator' call
@@ -303,7 +304,7 @@ function ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
303
304
  var name = item.k1();
304
305
  // Inline function 'kotlin.collections.component2' call
305
306
  var expr = item.l1();
306
- var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), name), tr.a1v(expr));
307
+ var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), name), tr.b1v(expr));
307
308
  destination.x(tmp$ret$3);
308
309
  }
309
310
  tmp = new ConstructorStatement(tmp_1, toMap(destination));
@@ -316,7 +317,7 @@ function ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
316
317
  }
317
318
  function ScalaIrEmitter$sanitizationConfig$delegate$lambda(this$0) {
318
319
  return function () {
319
- var tmp = Companion_getInstance_0().l20_1;
320
+ var tmp = Companion_getInstance_0().o20_1;
320
321
  var tmp_0 = ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda;
321
322
  var tmp_1 = ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda_0(this$0);
322
323
  var tmp_2 = ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda_1(this$0);
@@ -344,7 +345,7 @@ function ScalaIrEmitter$emitShared$lambda_1(element, transformer) {
344
345
  var tmp;
345
346
  if (element instanceof File) {
346
347
  // Inline function 'kotlin.collections.partition' call
347
- var this_0 = element.v1n_1;
348
+ var this_0 = element.w1n_1;
348
349
  var first = ArrayList_init_$Create$_0();
349
350
  var second = ArrayList_init_$Create$_0();
350
351
  var _iterator__ex2g4s = this_0.t();
@@ -359,7 +360,7 @@ function ScalaIrEmitter$emitShared$lambda_1(element, transformer) {
359
360
  var _destruct__k2r9zo = new Pair(first, second);
360
361
  var packageElements = _destruct__k2r9zo.ve();
361
362
  var rest = _destruct__k2r9zo.we();
362
- tmp = element.y1n(VOID, plus(packageElements, rest));
363
+ tmp = element.z1n(VOID, plus(packageElements, rest));
363
364
  } else {
364
365
  tmp = element;
365
366
  }
@@ -371,12 +372,12 @@ function ScalaIrEmitter$emitShared$lambda_2(element, transformer) {
371
372
  if (element instanceof Namespace) {
372
373
  var tmp$ret$0;
373
374
  $l$block: {
374
- if (!element.a1o_1.equals(Companion_getInstance().n1h('Wirespec'))) {
375
+ if (!element.b1o_1.equals(Companion_getInstance().n1h('Wirespec'))) {
375
376
  tmp$ret$0 = element;
376
377
  break $l$block;
377
378
  }
378
379
  // Inline function 'kotlin.collections.flatMap' call
379
- var tmp0 = element.b1o_1;
380
+ var tmp0 = element.c1o_1;
380
381
  // Inline function 'kotlin.collections.flatMapTo' call
381
382
  var destination = ArrayList_init_$Create$_0();
382
383
  var _iterator__ex2g4s = tmp0.t();
@@ -388,14 +389,14 @@ function ScalaIrEmitter$emitShared$lambda_2(element, transformer) {
388
389
  if (!(element_0 instanceof Interface)) {
389
390
  tmp_0 = true;
390
391
  } else {
391
- tmp_0 = !setOf(['Request', 'Response']).u1(element_0.o1o_1.y1i());
392
+ tmp_0 = !setOf(['Request', 'Response']).u1(element_0.p1o_1.o1h());
392
393
  }
393
394
  if (tmp_0) {
394
395
  tmp$ret$1 = listOf(element_0);
395
396
  break $l$block_2;
396
397
  }
397
398
  // Inline function 'kotlin.collections.filterIsInstance' call
398
- var tmp0_0 = element_0.p1o_1;
399
+ var tmp0_0 = element_0.q1o_1;
399
400
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
400
401
  var destination_0 = ArrayList_init_$Create$_0();
401
402
  var _iterator__ex2g4s_0 = tmp0_0.t();
@@ -411,7 +412,7 @@ function ScalaIrEmitter$emitShared$lambda_2(element, transformer) {
411
412
  var _iterator__ex2g4s_1 = destination_0.t();
412
413
  while (_iterator__ex2g4s_1.u()) {
413
414
  var element_2 = _iterator__ex2g4s_1.v();
414
- if (element_2.o1o_1.y1i() === 'Headers') {
415
+ if (element_2.p1o_1.o1h() === 'Headers') {
415
416
  tmp$ret$5 = element_2;
416
417
  break $l$block_1;
417
418
  }
@@ -427,9 +428,9 @@ function ScalaIrEmitter$emitShared$lambda_2(element, transformer) {
427
428
  tmp_1 = tmp0_elvis_lhs;
428
429
  }
429
430
  var nestedHeaders = tmp_1;
430
- var tmp_2 = new Namespace(element_0.o1o_1, listOf(nestedHeaders));
431
+ var tmp_2 = new Namespace(element_0.p1o_1, listOf(nestedHeaders));
431
432
  // Inline function 'kotlin.collections.filter' call
432
- var tmp0_1 = element_0.p1o_1;
433
+ var tmp0_1 = element_0.q1o_1;
433
434
  // Inline function 'kotlin.collections.filterTo' call
434
435
  var destination_1 = ArrayList_init_$Create$_0();
435
436
  var _iterator__ex2g4s_2 = tmp0_1.t();
@@ -437,7 +438,7 @@ function ScalaIrEmitter$emitShared$lambda_2(element, transformer) {
437
438
  var element_3 = _iterator__ex2g4s_2.v();
438
439
  var tmp_3;
439
440
  if (element_3 instanceof Interface) {
440
- tmp_3 = element_3.o1o_1.y1i() === 'Headers';
441
+ tmp_3 = element_3.p1o_1.o1h() === 'Headers';
441
442
  } else {
442
443
  tmp_3 = false;
443
444
  }
@@ -447,28 +448,28 @@ function ScalaIrEmitter$emitShared$lambda_2(element, transformer) {
447
448
  }
448
449
  var tmp_4 = destination_1;
449
450
  // Inline function 'kotlin.collections.map' call
450
- var this_0 = element_0.t1o_1;
451
+ var this_0 = element_0.u1o_1;
451
452
  // Inline function 'kotlin.collections.mapTo' call
452
453
  var destination_2 = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
453
454
  var _iterator__ex2g4s_3 = this_0.t();
454
455
  while (_iterator__ex2g4s_3.u()) {
455
456
  var item = _iterator__ex2g4s_3.v();
456
457
  var tmp_5;
457
- if (item.b1q_1.j1j() === 'headers') {
458
- tmp_5 = item.f1q(VOID, Custom_init_$Create$(element_0.o1o_1.y1i() + '.Headers'));
458
+ if (item.c1q_1.j1j() === 'headers') {
459
+ tmp_5 = item.g1q(VOID, Custom_init_$Create$(element_0.p1o_1.o1h() + '.Headers'));
459
460
  } else {
460
461
  tmp_5 = item;
461
462
  }
462
463
  var tmp$ret$9 = tmp_5;
463
464
  destination_2.x(tmp$ret$9);
464
465
  }
465
- tmp$ret$1 = listOf_0([tmp_2, element_0.v1o(VOID, tmp_4, VOID, VOID, VOID, destination_2)]);
466
+ tmp$ret$1 = listOf_0([tmp_2, element_0.w1o(VOID, tmp_4, VOID, VOID, VOID, destination_2)]);
466
467
  }
467
468
  var list = tmp$ret$1;
468
469
  addAll(destination, list);
469
470
  }
470
471
  var newElements = destination;
471
- tmp$ret$0 = element.e1o(VOID, newElements);
472
+ tmp$ret$0 = element.f1o(VOID, newElements);
472
473
  }
473
474
  tmp = tmp$ret$0;
474
475
  } else {
@@ -481,11 +482,11 @@ function ScalaIrEmitter$emitShared$lambda_3($clientServer) {
481
482
  return function (element, transformer) {
482
483
  var tmp;
483
484
  if (element instanceof Namespace) {
484
- var injected = element.a1o_1.equals(Companion_getInstance().n1h('Wirespec')) ? $clientServer : emptyList();
485
+ var injected = element.b1o_1.equals(Companion_getInstance().n1h('Wirespec')) ? $clientServer : emptyList();
485
486
  var tmp_0;
486
487
  // Inline function 'kotlin.collections.isNotEmpty' call
487
488
  if (!injected.r()) {
488
- tmp_0 = withElements(element, plus(element.w1n(), injected));
489
+ tmp_0 = withElements(element, plus(element.x1n(), injected));
489
490
  } else {
490
491
  tmp_0 = element;
491
492
  }
@@ -517,27 +518,27 @@ function ScalaIrEmitter(packageName, emitShared) {
517
518
  Companion_getInstance_0();
518
519
  packageName = packageName === VOID ? Companion_instance_0.cs('community.flock.wirespec.generated') : packageName;
519
520
  emitShared = emitShared === VOID ? Companion_instance_1.wo() : emitShared;
520
- this.f20_1 = packageName;
521
- this.g20_1 = emitShared;
522
- this.h20_1 = ScalaGenerator_getInstance();
523
- this.i20_1 = FileExtension_Scala_getInstance();
524
- this.j20_1 = listOf_0([import_0('community.flock.wirespec.scala', 'Wirespec'), import_0('scala.reflect', 'ClassTag')]);
521
+ this.i20_1 = packageName;
522
+ this.j20_1 = emitShared;
523
+ this.k20_1 = ScalaGenerator_getInstance();
524
+ this.l20_1 = FileExtension_Scala_getInstance();
525
+ this.m20_1 = listOf_0([import_0('community.flock.wirespec.scala', 'Wirespec'), import_0('scala.reflect', 'ClassTag')]);
525
526
  var tmp = this;
526
- tmp.k20_1 = lazy(ScalaIrEmitter$sanitizationConfig$delegate$lambda(this));
527
+ tmp.n20_1 = lazy(ScalaIrEmitter$sanitizationConfig$delegate$lambda(this));
527
528
  }
528
- protoOf(ScalaIrEmitter).r1w = function () {
529
- return this.f20_1;
529
+ protoOf(ScalaIrEmitter).u1w = function () {
530
+ return this.i20_1;
530
531
  };
531
- protoOf(ScalaIrEmitter).s1v = function () {
532
- return this.h20_1;
532
+ protoOf(ScalaIrEmitter).t1v = function () {
533
+ return this.k20_1;
533
534
  };
534
535
  protoOf(ScalaIrEmitter).uq = function () {
535
- return this.i20_1;
536
+ return this.l20_1;
536
537
  };
537
- protoOf(ScalaIrEmitter).x1v = function (allFiles) {
538
- ScalaGenerator_getInstance().e1w(allFiles);
538
+ protoOf(ScalaIrEmitter).a1w = function (allFiles) {
539
+ ScalaGenerator_getInstance().h1w(allFiles);
539
540
  };
540
- protoOf(ScalaIrEmitter).v1v = function () {
541
+ protoOf(ScalaIrEmitter).x1v = function () {
541
542
  var packageName = Companion_instance_0.cs('community.flock.wirespec.scala');
542
543
  var tmp = interface_0('PathSegment', true);
543
544
  var tmp_0 = struct('Literal', ScalaIrEmitter$emitShared$lambda);
@@ -552,12 +553,12 @@ protoOf(ScalaIrEmitter).v1v = function () {
552
553
  var tmp_1;
553
554
  var tmp_2;
554
555
  if (item instanceof Interface) {
555
- tmp_2 = setOf(['Client', 'Server']).u1(item.o1o_1.y1i());
556
+ tmp_2 = setOf(['Client', 'Server']).u1(item.p1o_1.o1h());
556
557
  } else {
557
558
  tmp_2 = false;
558
559
  }
559
560
  if (tmp_2) {
560
- tmp_1 = item.v1o(VOID, VOID, VOID, VOID, VOID, plus_0(item.t1o_1, new Field(Companion_getInstance().n1h('pathSegments'), new Array_0(Custom_init_$Create$('PathSegment')))));
561
+ tmp_1 = item.w1o(VOID, VOID, VOID, VOID, VOID, plus_0(item.u1o_1, new Field(Companion_getInstance().n1h('pathSegments'), new Array_0(Custom_init_$Create$('PathSegment')))));
561
562
  } else {
562
563
  tmp_1 = item;
563
564
  }
@@ -571,39 +572,39 @@ protoOf(ScalaIrEmitter).v1v = function () {
571
572
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
572
573
  var tmp_3 = scope;
573
574
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
574
- var this_2 = scope.f1v_1;
575
+ var this_2 = scope.g1v_1;
575
576
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
576
577
  // Inline function 'kotlin.apply' call
577
578
  var this_3 = new TransformerBuilder();
578
- this_3.w1i(ScalaIrEmitter$emitShared$lambda_1);
579
- var tmp$ret$5 = this_3.x1i();
580
- tmp_3.f1v_1 = transform(this_2, tmp$ret$5);
579
+ this_3.x1i(ScalaIrEmitter$emitShared$lambda_1);
580
+ var tmp$ret$5 = this_3.y1i();
581
+ tmp_3.g1v_1 = transform(this_2, tmp$ret$5);
581
582
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
582
583
  var tmp_4 = scope;
583
584
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
584
- var this_4 = scope.f1v_1;
585
+ var this_4 = scope.g1v_1;
585
586
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
586
587
  // Inline function 'kotlin.apply' call
587
588
  var this_5 = new TransformerBuilder();
588
- this_5.w1i(ScalaIrEmitter$emitShared$lambda_2);
589
- var tmp$ret$10 = this_5.x1i();
590
- tmp_4.f1v_1 = transform(this_4, tmp$ret$10);
589
+ this_5.x1i(ScalaIrEmitter$emitShared$lambda_2);
590
+ var tmp$ret$10 = this_5.y1i();
591
+ tmp_4.g1v_1 = transform(this_4, tmp$ret$10);
591
592
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.injectAfter' call
592
593
  var tmp_5 = scope;
593
594
  // Inline function 'community.flock.wirespec.ir.core.injectAfter' call
594
595
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
595
- var this_6 = scope.f1v_1;
596
+ var this_6 = scope.g1v_1;
596
597
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
597
598
  // Inline function 'kotlin.apply' call
598
599
  var this_7 = new TransformerBuilder();
599
- this_7.w1i(ScalaIrEmitter$emitShared$lambda_3(clientServer));
600
- var tmp$ret$15 = this_7.x1i();
601
- tmp_5.f1v_1 = transform(this_6, tmp$ret$15);
602
- var tmp_6 = scope.f1v_1;
600
+ this_7.x1i(ScalaIrEmitter$emitShared$lambda_3(clientServer));
601
+ var tmp$ret$15 = this_7.y1i();
602
+ tmp_5.g1v_1 = transform(this_6, tmp$ret$15);
603
+ var tmp_6 = scope.g1v_1;
603
604
  var wirespecShared = isInterface(tmp_6, Element) ? tmp_6 : THROW_CCE();
604
605
  var tmp_7;
605
- if (this.g20_1.xo_1) {
606
- tmp_7 = wirespecShared.y1n(Companion_getInstance().n1h(packageName.fs() + 'Wirespec'));
606
+ if (this.j20_1.xo_1) {
607
+ tmp_7 = wirespecShared.z1n(Companion_getInstance().n1h(packageName.fs() + 'Wirespec'));
607
608
  } else {
608
609
  tmp_7 = null;
609
610
  }
@@ -612,7 +613,7 @@ protoOf(ScalaIrEmitter).v1v = function () {
612
613
  protoOf(ScalaIrEmitter).lr = function (definition, module_0, logger) {
613
614
  var file = emit.call(this, definition, module_0, logger);
614
615
  // Inline function 'kotlin.takeIf' call
615
- var this_0 = this.j20_1;
616
+ var this_0 = this.m20_1;
616
617
  var tmp;
617
618
  if (Companion_instance.hr(module_0)) {
618
619
  tmp = this_0;
@@ -620,9 +621,9 @@ protoOf(ScalaIrEmitter).lr = function (definition, module_0, logger) {
620
621
  tmp = null;
621
622
  }
622
623
  var tmp$ret$1 = tmp;
623
- return placeInPackage(prependImports(file, tmp$ret$1), this.r1w(), definition);
624
+ return placeInPackage(prependImports(file, tmp$ret$1), this.u1w(), definition);
624
625
  };
625
- protoOf(ScalaIrEmitter).z1v = function (definition, module_0) {
626
+ protoOf(ScalaIrEmitter).c1w = function (definition, module_0) {
626
627
  var tmp;
627
628
  if (definition instanceof Type) {
628
629
  tmp = convertToGenerator_2(definition, module_0);
@@ -664,11 +665,11 @@ protoOf(ScalaIrEmitter).z1v = function (definition, module_0) {
664
665
  var _iterator__ex2g4s_0 = destination.t();
665
666
  while (_iterator__ex2g4s_0.u()) {
666
667
  var item = _iterator__ex2g4s_0.v();
667
- var tmp$ret$3 = import_0(this.r1w().ds_1 + '.model', item);
668
+ var tmp$ret$3 = import_0(this.u1w().ds_1 + '.model', item);
668
669
  destination_0.x(tmp$ret$3);
669
670
  }
670
671
  var modelImports = destination_0;
671
- return placeInPackage_0(prependImports(sanitized, plus(this.j20_1, modelImports)), this.r1w(), 'generator');
672
+ return placeInPackage_0(prependImports(sanitized, plus(this.m20_1, modelImports)), this.u1w(), 'generator');
672
673
  };
673
674
  protoOf(ScalaIrEmitter).kq = function (type, module_0) {
674
675
  return ensureEmptyStructHasConstructor(sanitizeNames(convertWithValidation(type, module_0), _get_sanitizationConfig__sns434(this)));
@@ -684,7 +685,7 @@ protoOf(ScalaIrEmitter).ur = function (refined) {
684
685
  var file = sanitizeNames(convert_2(refined), _get_sanitizationConfig__sns434(this));
685
686
  // Inline function 'community.flock.wirespec.ir.core.findElement' call
686
687
  // Inline function 'kotlin.collections.filterIsInstance' call
687
- var tmp0 = file.w1n();
688
+ var tmp0 = file.x1n();
688
689
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
689
690
  var destination = ArrayList_init_$Create$_0();
690
691
  var _iterator__ex2g4s = tmp0.t();
@@ -701,7 +702,7 @@ protoOf(ScalaIrEmitter).ur = function (refined) {
701
702
  protoOf(ScalaIrEmitter).as = function (endpoint) {
702
703
  // Inline function 'community.flock.wirespec.ir.core.findElement' call
703
704
  // Inline function 'kotlin.collections.filterIsInstance' call
704
- var tmp0 = convert_3(endpoint).w1n();
705
+ var tmp0 = convert_3(endpoint).x1n();
705
706
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
706
707
  var destination = ArrayList_init_$Create$_0();
707
708
  var _iterator__ex2g4s = tmp0.t();
@@ -716,7 +717,7 @@ protoOf(ScalaIrEmitter).as = function (endpoint) {
716
717
  var body = appendClientServerObjects(injectHandleFunction(endpointNamespace), endpoint, isRequestObject(endpointNamespace));
717
718
  var tmp = sanitizeNames(new File(Companion_getInstance().n1h(sanitize(this, endpoint.up_1)), listOf(body)), _get_sanitizationConfig__sns434(this));
718
719
  // Inline function 'kotlin.takeIf' call
719
- var this_0 = buildModelImports(endpoint, this.r1w());
720
+ var this_0 = buildModelImports(endpoint, this.u1w());
720
721
  var tmp_0;
721
722
  // Inline function 'kotlin.collections.isNotEmpty' call
722
723
  if (!this_0.r()) {
@@ -730,7 +731,7 @@ protoOf(ScalaIrEmitter).as = function (endpoint) {
730
731
  protoOf(ScalaIrEmitter).or = function (channel) {
731
732
  var tmp = sanitizeNames(convert_4(channel), _get_sanitizationConfig__sns434(this));
732
733
  // Inline function 'kotlin.takeIf' call
733
- var this_0 = buildModelImports(channel, this.r1w());
734
+ var this_0 = buildModelImports(channel, this.u1w());
734
735
  var tmp_0;
735
736
  // Inline function 'kotlin.collections.isNotEmpty' call
736
737
  if (!this_0.r()) {
@@ -741,25 +742,25 @@ protoOf(ScalaIrEmitter).or = function (channel) {
741
742
  var tmp$ret$2 = tmp_0;
742
743
  return prependImports(tmp, tmp$ret$2);
743
744
  };
744
- protoOf(ScalaIrEmitter).y1v = function (endpoint) {
745
- var imports = buildModelImports(endpoint, this.r1w());
746
- var endpointImport = import_0(this.r1w().ds_1 + '.endpoint', endpoint.up_1.l1());
745
+ protoOf(ScalaIrEmitter).b1w = function (endpoint) {
746
+ var imports = buildModelImports(endpoint, this.u1w());
747
+ var endpointImport = import_0(this.u1w().ds_1 + '.endpoint', endpoint.up_1.l1());
747
748
  var file = addIdentityTypeToCall(sanitizeNames(emitEndpointClient.call(this, endpoint), _get_sanitizationConfig__sns434(this)));
748
- var subPackageName = plus_1(this.r1w(), 'client');
749
- var tmp = Companion_getInstance().n1h(subPackageName.fs() + file.u1n_1.y1i());
749
+ var subPackageName = plus_1(this.u1w(), 'client');
750
+ var tmp = Companion_getInstance().n1h(subPackageName.fs() + file.v1n_1.o1h());
750
751
  // Inline function 'kotlin.collections.buildList' call
751
752
  // Inline function 'kotlin.collections.buildListInternal' call
752
753
  // Inline function 'kotlin.apply' call
753
754
  var this_0 = ArrayList_init_$Create$_0();
754
755
  this_0.x(new Package(subPackageName.ds_1));
755
- this_0.f1(this.j20_1);
756
+ this_0.f1(this.m20_1);
756
757
  this_0.f1(imports);
757
758
  this_0.x(endpointImport);
758
- this_0.f1(file.v1n_1);
759
+ this_0.f1(file.w1n_1);
759
760
  var tmp$ret$3 = this_0.o5();
760
761
  return new File(tmp, tmp$ret$3);
761
762
  };
762
- protoOf(ScalaIrEmitter).w1v = function (endpoints, logger) {
763
+ protoOf(ScalaIrEmitter).y1v = function (endpoints, logger) {
763
764
  // Inline function 'kotlin.collections.flatMap' call
764
765
  // Inline function 'kotlin.collections.flatMapTo' call
765
766
  var destination = ArrayList_init_$Create$_0();
@@ -786,7 +787,7 @@ protoOf(ScalaIrEmitter).w1v = function (endpoints, logger) {
786
787
  var _iterator__ex2g4s_1 = list_0.t();
787
788
  while (_iterator__ex2g4s_1.u()) {
788
789
  var item = _iterator__ex2g4s_1.v();
789
- var tmp$ret$5 = import_0(this.r1w().ds_1 + '.model', item.bv_1);
790
+ var tmp$ret$5 = import_0(this.u1w().ds_1 + '.model', item.bv_1);
790
791
  destination_0.x(tmp$ret$5);
791
792
  }
792
793
  var imports = destination_0;
@@ -796,7 +797,7 @@ protoOf(ScalaIrEmitter).w1v = function (endpoints, logger) {
796
797
  var _iterator__ex2g4s_2 = endpoints.t();
797
798
  while (_iterator__ex2g4s_2.u()) {
798
799
  var item_0 = _iterator__ex2g4s_2.v();
799
- var tmp$ret$8 = import_0(this.r1w().ds_1 + '.endpoint', item_0.up_1.l1());
800
+ var tmp$ret$8 = import_0(this.u1w().ds_1 + '.endpoint', item_0.up_1.l1());
800
801
  destination_1.x(tmp$ret$8);
801
802
  }
802
803
  var endpointImports = destination_1;
@@ -806,29 +807,29 @@ protoOf(ScalaIrEmitter).w1v = function (endpoints, logger) {
806
807
  var _iterator__ex2g4s_3 = endpoints.t();
807
808
  while (_iterator__ex2g4s_3.u()) {
808
809
  var item_1 = _iterator__ex2g4s_3.v();
809
- var tmp$ret$11 = import_0(this.r1w().ds_1 + '.client', item_1.up_1.l1() + 'Client');
810
+ var tmp$ret$11 = import_0(this.u1w().ds_1 + '.client', item_1.up_1.l1() + 'Client');
810
811
  destination_2.x(tmp$ret$11);
811
812
  }
812
813
  var clientImports = destination_2;
813
814
  var allImports = plus(plus(imports, endpointImports), clientImports);
814
815
  var file = addIdentityTypeToCall(sanitizeNames(emitClient.call(this, endpoints, logger), _get_sanitizationConfig__sns434(this)));
815
- var tmp = Companion_getInstance().n1h(this.r1w().fs() + file.u1n_1.y1i());
816
+ var tmp = Companion_getInstance().n1h(this.u1w().fs() + file.v1n_1.o1h());
816
817
  // Inline function 'kotlin.collections.buildList' call
817
818
  // Inline function 'kotlin.collections.buildListInternal' call
818
819
  // Inline function 'kotlin.apply' call
819
820
  var this_0 = ArrayList_init_$Create$_0();
820
- this_0.x(new Package(this.r1w().ds_1));
821
- this_0.f1(this.j20_1);
821
+ this_0.x(new Package(this.u1w().ds_1));
822
+ this_0.f1(this.m20_1);
822
823
  this_0.f1(allImports);
823
- this_0.f1(file.v1n_1);
824
+ this_0.f1(file.w1n_1);
824
825
  var tmp$ret$17 = this_0.o5();
825
826
  return new File(tmp, tmp$ret$17);
826
827
  };
827
828
  function convertToStringCallsToFieldAccess(_this__u8e3s4) {
828
829
  // Inline function 'community.flock.wirespec.ir.core.transform' call
829
830
  var scope = new TransformScope(_this__u8e3s4);
830
- scope.n1v(convertToStringCallsToFieldAccess$lambda);
831
- var tmp = scope.f1v_1;
831
+ scope.o1v(convertToStringCallsToFieldAccess$lambda);
832
+ var tmp = scope.g1v_1;
832
833
  return isInterface(tmp, Element) ? tmp : THROW_CCE();
833
834
  }
834
835
  function appendClientServerObjects(_this__u8e3s4, endpoint, requestIsObject) {
@@ -837,7 +838,7 @@ function appendClientServerObjects(_this__u8e3s4, endpoint, requestIsObject) {
837
838
  var pathSegmentsCode = joinToString(endpoint.wp_1, ', ', VOID, VOID, VOID, VOID, appendClientServerObjects$lambda_0);
838
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.vp_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 '));
839
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.vp_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 '));
840
- return _this__u8e3s4.e1o(VOID, plus_0(plus_0(_this__u8e3s4.b1o_1, clientObject), serverObject));
841
+ return _this__u8e3s4.f1o(VOID, plus_0(plus_0(_this__u8e3s4.c1o_1, clientObject), serverObject));
841
842
  }
842
843
  function injectHandleFunction(_this__u8e3s4) {
843
844
  // Inline function 'community.flock.wirespec.ir.core.transform' call
@@ -845,19 +846,19 @@ function injectHandleFunction(_this__u8e3s4) {
845
846
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
846
847
  var tmp = scope;
847
848
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
848
- var this_0 = scope.f1v_1;
849
+ var this_0 = scope.g1v_1;
849
850
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
850
851
  // Inline function 'kotlin.apply' call
851
852
  var this_1 = new TransformerBuilder();
852
- this_1.w1i(injectHandleFunction$lambda);
853
- var tmp$ret$2 = this_1.x1i();
854
- tmp.f1v_1 = transform(this_0, tmp$ret$2);
855
- var tmp_0 = scope.f1v_1;
853
+ this_1.x1i(injectHandleFunction$lambda);
854
+ var tmp$ret$2 = this_1.y1i();
855
+ tmp.g1v_1 = transform(this_0, tmp$ret$2);
856
+ var tmp_0 = scope.g1v_1;
856
857
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
857
858
  }
858
859
  function isRequestObject(namespace) {
859
860
  // Inline function 'kotlin.collections.filterIsInstance' call
860
- var tmp0 = namespace.b1o_1;
861
+ var tmp0 = namespace.c1o_1;
861
862
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
862
863
  var destination = ArrayList_init_$Create$_0();
863
864
  var _iterator__ex2g4s = tmp0.t();
@@ -873,7 +874,7 @@ function isRequestObject(namespace) {
873
874
  var _iterator__ex2g4s_0 = destination.t();
874
875
  while (_iterator__ex2g4s_0.u()) {
875
876
  var element_0 = _iterator__ex2g4s_0.v();
876
- if (element_0.f1o_1.y1i() === 'Request') {
877
+ if (element_0.g1o_1.o1h() === 'Request') {
877
878
  tmp$ret$3 = element_0;
878
879
  break $l$block;
879
880
  }
@@ -888,7 +889,7 @@ function isRequestObject(namespace) {
888
889
  tmp = tmp0_elvis_lhs;
889
890
  }
890
891
  var requestStruct = tmp;
891
- return requestStruct.h1o_1.a1() === 1 && single(requestStruct.h1o_1).o1r_1.r() || (requestStruct.g1o_1.r() && requestStruct.h1o_1.r());
892
+ return requestStruct.i1o_1.a1() === 1 && single(requestStruct.i1o_1).p1r_1.r() || (requestStruct.h1o_1.r() && requestStruct.i1o_1.r());
892
893
  }
893
894
  function buildModelImports(_this__u8e3s4, packageName) {
894
895
  // Inline function 'kotlin.collections.distinctBy' call
@@ -909,7 +910,7 @@ function buildModelImports(_this__u8e3s4, packageName) {
909
910
  var _iterator__ex2g4s_0 = list.t();
910
911
  while (_iterator__ex2g4s_0.u()) {
911
912
  var item = _iterator__ex2g4s_0.v();
912
- var tmp$ret$2 = import_0(packageName.ds_1 + '.model', Companion_getInstance().n1h(item.bv_1).y1i());
913
+ var tmp$ret$2 = import_0(packageName.ds_1 + '.model', Companion_getInstance().n1h(item.bv_1).o1h());
913
914
  destination.x(tmp$ret$2);
914
915
  }
915
916
  return destination;
@@ -920,14 +921,14 @@ function addIdentityTypeToCall(_this__u8e3s4) {
920
921
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
921
922
  var tmp = scope;
922
923
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
923
- var this_0 = scope.f1v_1;
924
+ var this_0 = scope.g1v_1;
924
925
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
925
926
  // Inline function 'kotlin.apply' call
926
927
  var this_1 = new TransformerBuilder();
927
- this_1.w1i(addIdentityTypeToCall$lambda);
928
- var tmp$ret$2 = this_1.x1i();
929
- tmp.f1v_1 = transform(this_0, tmp$ret$2);
930
- var tmp_0 = scope.f1v_1;
928
+ this_1.x1i(addIdentityTypeToCall$lambda);
929
+ var tmp$ret$2 = this_1.y1i();
930
+ tmp.g1v_1 = transform(this_0, tmp$ret$2);
931
+ var tmp_0 = scope.g1v_1;
931
932
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
932
933
  }
933
934
  function toScalaTypeName(_this__u8e3s4) {
@@ -988,23 +989,23 @@ function convertToStringCallsToFieldAccess$lambda(expr, tr) {
988
989
  var tmp_0;
989
990
  var tmp_1;
990
991
  if (expr instanceof FunctionCall) {
991
- tmp_1 = expr.z1m_1.q1m() === 'toString';
992
+ tmp_1 = expr.a1n_1.q1m() === 'toString';
992
993
  } else {
993
994
  tmp_1 = false;
994
995
  }
995
996
  if (tmp_1) {
996
- tmp_0 = !(expr.x1m_1 == null);
997
+ tmp_0 = !(expr.y1m_1 == null);
997
998
  } else {
998
999
  tmp_0 = false;
999
1000
  }
1000
1001
  if (tmp_0) {
1001
- var tmp0_safe_receiver = expr.x1m_1;
1002
+ var tmp0_safe_receiver = expr.y1m_1;
1002
1003
  var tmp_2;
1003
1004
  if (tmp0_safe_receiver == null) {
1004
1005
  tmp_2 = null;
1005
1006
  } else {
1006
1007
  // Inline function 'kotlin.let' call
1007
- tmp_2 = tr.a1v(tmp0_safe_receiver);
1008
+ tmp_2 = tr.b1v(tmp0_safe_receiver);
1008
1009
  }
1009
1010
  tmp = new FieldCall(tmp_2, Companion_getInstance().n1h('toString'));
1010
1011
  } else {
@@ -1043,13 +1044,13 @@ function injectHandleFunction$lambda(element, transformer) {
1043
1044
  if (element instanceof Interface) {
1044
1045
  var tmp$ret$0;
1045
1046
  $l$block: {
1046
- if (!element.o1o_1.equals(Companion_getInstance().n1h('Handler')) && !element.o1o_1.equals(Companion_getInstance().n1h('Call'))) {
1047
+ if (!element.p1o_1.equals(Companion_getInstance().n1h('Handler')) && !element.p1o_1.equals(Companion_getInstance().n1h('Call'))) {
1047
1048
  tmp$ret$0 = element;
1048
1049
  break $l$block;
1049
1050
  }
1050
1051
  var tmp0_typeParameters = listOf(new TypeParameter(Custom_init_$Create$('F[_]')));
1051
1052
  // Inline function 'kotlin.collections.map' call
1052
- var this_0 = element.p1o_1;
1053
+ var this_0 = element.q1o_1;
1053
1054
  // Inline function 'kotlin.collections.mapTo' call
1054
1055
  var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
1055
1056
  var _iterator__ex2g4s = this_0.t();
@@ -1075,7 +1076,7 @@ function injectHandleFunction$lambda(element, transformer) {
1075
1076
  var tmp$ret$3 = tmp4_elvis_lhs == null ? item : tmp4_elvis_lhs;
1076
1077
  destination.x(tmp$ret$3);
1077
1078
  }
1078
- tmp$ret$0 = element.v1o(VOID, destination, VOID, VOID, tmp0_typeParameters);
1079
+ tmp$ret$0 = element.w1o(VOID, destination, VOID, VOID, tmp0_typeParameters);
1079
1080
  }
1080
1081
  tmp = tmp$ret$0;
1081
1082
  } else {
@@ -1088,7 +1089,7 @@ function addIdentityTypeToCall$lambda(element, transformer) {
1088
1089
  var tmp;
1089
1090
  if (element instanceof Struct) {
1090
1091
  // Inline function 'kotlin.collections.map' call
1091
- var this_0 = element.i1o_1;
1092
+ var this_0 = element.j1o_1;
1092
1093
  // Inline function 'kotlin.collections.mapTo' call
1093
1094
  var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
1094
1095
  var _iterator__ex2g4s = this_0.t();
@@ -1101,7 +1102,7 @@ function addIdentityTypeToCall$lambda(element, transformer) {
1101
1102
  } else {
1102
1103
  // Inline function 'kotlin.takeIf' call
1103
1104
  var tmp_1;
1104
- if (endsWith(tmp0_safe_receiver.h1j_1.y1i(), '.Call')) {
1105
+ if (endsWith(tmp0_safe_receiver.h1j_1.o1h(), '.Call')) {
1105
1106
  tmp_1 = tmp0_safe_receiver;
1106
1107
  } else {
1107
1108
  tmp_1 = null;
@@ -1109,11 +1110,11 @@ function addIdentityTypeToCall$lambda(element, transformer) {
1109
1110
  tmp_0 = tmp_1;
1110
1111
  }
1111
1112
  var tmp1_safe_receiver = tmp_0;
1112
- var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.l1n(VOID, listOf(Custom_init_$Create$('[A] =>> A')));
1113
+ var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m1n(VOID, listOf(Custom_init_$Create$('[A] =>> A')));
1113
1114
  var tmp$ret$2 = tmp2_elvis_lhs == null ? item : tmp2_elvis_lhs;
1114
1115
  destination.x(tmp$ret$2);
1115
1116
  }
1116
- tmp = element.m1o(VOID, VOID, VOID, destination);
1117
+ tmp = element.n1o(VOID, VOID, VOID, destination);
1117
1118
  } else {
1118
1119
  tmp = element;
1119
1120
  }
@@ -1121,8 +1122,9 @@ function addIdentityTypeToCall$lambda(element, transformer) {
1121
1122
  return transformChildren_0(transformed, transformer);
1122
1123
  }
1123
1124
  //region block: post-declaration
1125
+ protoOf(ScalaIrEmitter).v1v = get_extensions;
1124
1126
  protoOf(ScalaIrEmitter).eo = emit_0;
1125
- protoOf(ScalaIrEmitter).u1v = emit_1;
1127
+ protoOf(ScalaIrEmitter).w1v = emit_1;
1126
1128
  //endregion
1127
1129
  //region block: exports
1128
1130
  export {