@flock/wirespec 0.22.1 → 0.22.2

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 (40) hide show
  1. package/arrow-arrow-core.mjs +11 -5
  2. package/arrow-arrow-core.mjs.map +1 -1
  3. package/clikt-clikt-mordant.mjs +79 -79
  4. package/clikt-clikt.mjs +1343 -1343
  5. package/colormath-root-colormath.mjs +437 -437
  6. package/kotlin-kotlin-stdlib.mjs +249 -243
  7. package/kotlin-kotlin-stdlib.mjs.map +1 -1
  8. package/kotlin-openapi-bindings.mjs +10004 -10004
  9. package/kotlin-rgxgen.mjs +1762 -1762
  10. package/kotlinx-io-kotlinx-io-core.mjs +404 -404
  11. package/kotlinx-serialization-kotlinx-serialization-core.mjs +1786 -1786
  12. package/kotlinx-serialization-kotlinx-serialization-json.mjs +1514 -1508
  13. package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
  14. package/mordant-mordant.mjs +1231 -1225
  15. package/mordant-mordant.mjs.map +1 -1
  16. package/package.json +1 -1
  17. package/wirespec-src-compiler-core.mjs +4940 -4889
  18. package/wirespec-src-compiler-core.mjs.map +1 -1
  19. package/wirespec-src-compiler-emitters-java.mjs +180 -180
  20. package/wirespec-src-compiler-emitters-kotlin.mjs +134 -134
  21. package/wirespec-src-compiler-emitters-python.mjs +157 -157
  22. package/wirespec-src-compiler-emitters-rust.mjs +392 -392
  23. package/wirespec-src-compiler-emitters-scala.mjs +168 -168
  24. package/wirespec-src-compiler-emitters-typescript.mjs +229 -229
  25. package/wirespec-src-compiler-emitters-wirespec.mjs +130 -130
  26. package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
  27. package/wirespec-src-compiler-lib.mjs +388 -326
  28. package/wirespec-src-compiler-lib.mjs.map +1 -1
  29. package/wirespec-src-converter-asyncapi.mjs +639 -639
  30. package/wirespec-src-converter-avro.mjs +548 -548
  31. package/wirespec-src-converter-common.mjs +16 -16
  32. package/wirespec-src-converter-graphql.mjs +2546 -1342
  33. package/wirespec-src-converter-graphql.mjs.map +1 -1
  34. package/wirespec-src-converter-openapi.mjs +593 -593
  35. package/wirespec-src-ide-lsp.mjs +1371 -1371
  36. package/wirespec-src-plugin-arguments.mjs +146 -146
  37. package/wirespec-src-plugin-cli.mjs +89 -89
  38. package/wirespec-src-plugin-npm.d.mts +21 -3
  39. package/wirespec-src-plugin-npm.mjs +26 -26
  40. package/wirespec-src-tools-generator.mjs +24 -24
@@ -127,14 +127,14 @@ initMetadataForCompanion(Companion);
127
127
  initMetadataForClass(KotlinEmitter, 'KotlinEmitter', KotlinEmitter, VOID, [IrEmitter]);
128
128
  //endregion
129
129
  function _get_sanitizationConfig__sns434($this) {
130
- var tmp0 = $this.f20_1;
130
+ var tmp0 = $this.j20_1;
131
131
  var tmp = KProperty1;
132
132
  // Inline function 'kotlin.getValue' call
133
133
  getPropertyCallableRef('sanitizationConfig', 1, tmp, KotlinEmitter$_get_sanitizationConfig_$ref_sjisty(), null);
134
134
  return tmp0.o1();
135
135
  }
136
136
  function _get_modelSanitizationConfig__vgg831($this) {
137
- var tmp0 = $this.g20_1;
137
+ var tmp0 = $this.k20_1;
138
138
  var tmp = KProperty1;
139
139
  // Inline function 'kotlin.getValue' call
140
140
  getPropertyCallableRef('modelSanitizationConfig', 1, tmp, KotlinEmitter$_get_modelSanitizationConfig_$ref_pvjfk5(), null);
@@ -146,14 +146,14 @@ function withExplicitVisibility($this, $receiver) {
146
146
  // Inline function 'community.flock.wirespec.compiler.core.ir.TransformScope.matchingElements' call
147
147
  var tmp = scope;
148
148
  // Inline function 'community.flock.wirespec.compiler.core.ir.transformMatchingElements' call
149
- var this_0 = scope.t17_1;
149
+ var this_0 = scope.u17_1;
150
150
  // Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
151
151
  // Inline function 'kotlin.apply' call
152
152
  var this_1 = new TransformerBuilder();
153
- this_1.n18(KotlinEmitter$withExplicitVisibility$lambda);
154
- var tmp$ret$4 = this_1.i18();
155
- tmp.t17_1 = transform(this_0, tmp$ret$4);
156
- var tmp_0 = scope.t17_1;
153
+ this_1.o18(KotlinEmitter$withExplicitVisibility$lambda);
154
+ var tmp$ret$4 = this_1.j18();
155
+ tmp.u17_1 = transform(this_0, tmp$ret$4);
156
+ var tmp_0 = scope.u17_1;
157
157
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
158
158
  }
159
159
  function sanitize($this, $receiver) {
@@ -167,7 +167,7 @@ function sanitize($this, $receiver) {
167
167
  var item = _iterator__ex2g4s.v();
168
168
  var _unary__edvuaz = index;
169
169
  index = _unary__edvuaz + 1 | 0;
170
- var tmp$ret$2 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance.xr(item) : item;
170
+ var tmp$ret$2 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance.yr(item) : item;
171
171
  destination.x(tmp$ret$2);
172
172
  }
173
173
  // Inline function 'kotlin.text.filter' call
@@ -215,7 +215,7 @@ function sanitizeFirstIsDigit($this, $receiver) {
215
215
  return tmp;
216
216
  }
217
217
  function sanitizeKeywords($this, $receiver) {
218
- return Companion_getInstance_0().r1z().i1($receiver) ? addBackticks($receiver) : $receiver;
218
+ return Companion_getInstance_0().v1z().i1($receiver) ? addBackticks($receiver) : $receiver;
219
219
  }
220
220
  function sanitizeSymbol($this, $receiver) {
221
221
  // Inline function 'kotlin.collections.mapIndexed' call
@@ -228,7 +228,7 @@ function sanitizeSymbol($this, $receiver) {
228
228
  var item = _iterator__ex2g4s.v();
229
229
  var _unary__edvuaz = index;
230
230
  index = _unary__edvuaz + 1 | 0;
231
- var tmp$ret$2 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance.xr(item) : item;
231
+ var tmp$ret$2 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance.yr(item) : item;
232
232
  destination.x(tmp$ret$2);
233
233
  }
234
234
  // Inline function 'kotlin.text.filter' call
@@ -288,10 +288,10 @@ function sanitizeEnum($this, $receiver) {
288
288
  }
289
289
  function Companion() {
290
290
  Companion_instance_2 = this;
291
- this.h20_1 = KotlinGenerator_getInstance();
291
+ this.l20_1 = KotlinGenerator_getInstance();
292
292
  }
293
- protoOf(Companion).r1z = function () {
294
- return this.h20_1.m1a_1;
293
+ protoOf(Companion).v1z = function () {
294
+ return this.l20_1.n1a_1;
295
295
  };
296
296
  var Companion_instance_2;
297
297
  function Companion_getInstance_0() {
@@ -304,13 +304,13 @@ function KotlinEmitter$sanitizationConfig$delegate$lambda$lambda(it) {
304
304
  }
305
305
  function KotlinEmitter$sanitizationConfig$delegate$lambda$lambda_0(this$0) {
306
306
  return function (name) {
307
- var sanitized = name.tt_1.b1() > 1 ? name.xt() : sanitizeSymbol(this$0, name.wt());
307
+ var sanitized = name.ut_1.b1() > 1 ? name.yt() : sanitizeSymbol(this$0, name.xt());
308
308
  return new Name(listOf(sanitized));
309
309
  };
310
310
  }
311
311
  function KotlinEmitter$sanitizationConfig$delegate$lambda$lambda_1(this$0) {
312
312
  return function (name) {
313
- var sanitized = name.tt_1.b1() > 1 ? name.xt() : sanitizeSymbol(this$0, name.wt());
313
+ var sanitized = name.ut_1.b1() > 1 ? name.yt() : sanitizeSymbol(this$0, name.xt());
314
314
  return new Name(listOf(sanitized));
315
315
  };
316
316
  }
@@ -324,17 +324,17 @@ function KotlinEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
324
324
  var tmp;
325
325
  var tmp_0;
326
326
  if (stmt instanceof FunctionCall) {
327
- tmp_0 = stmt.du_1.wt() === 'validate';
327
+ tmp_0 = stmt.eu_1.xt() === 'validate';
328
328
  } else {
329
329
  tmp_0 = false;
330
330
  }
331
331
  if (tmp_0) {
332
- tmp = transformChildren(stmt.hu(VOID, emptyList()), tr);
332
+ tmp = transformChildren(stmt.iu(VOID, emptyList()), tr);
333
333
  } else {
334
334
  if (stmt instanceof ConstructorStatement) {
335
- var tmp_1 = tr.l17(stmt.cv_1);
335
+ var tmp_1 = tr.m17(stmt.dv_1);
336
336
  // Inline function 'kotlin.collections.map' call
337
- var this_0 = stmt.dv_1;
337
+ var this_0 = stmt.ev_1;
338
338
  // Inline function 'kotlin.collections.mapTo' call
339
339
  var destination = ArrayList_init_$Create$(this_0.b1());
340
340
  // Inline function 'kotlin.collections.iterator' call
@@ -345,15 +345,15 @@ function KotlinEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
345
345
  var name = item.n1();
346
346
  // Inline function 'kotlin.collections.component2' call
347
347
  var expr = item.o1();
348
- var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), name), tr.o17(expr));
348
+ var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), name), tr.p17(expr));
349
349
  destination.x(tmp$ret$3);
350
350
  }
351
351
  tmp = new ConstructorStatement(tmp_1, toMap(destination));
352
352
  } else {
353
353
  if (stmt instanceof VariableReference) {
354
- var cased = _get_sanitizationConfig__sns434(this$0).b1b_1(stmt.fv_1);
355
- var sanitized = _get_sanitizationConfig__sns434(this$0).c1b_1(cased.wt());
356
- var escaped = Companion_getInstance_0().r1z().i1(sanitized) ? addBackticks(sanitized) : sanitized;
354
+ var cased = _get_sanitizationConfig__sns434(this$0).c1b_1(stmt.gv_1);
355
+ var sanitized = _get_sanitizationConfig__sns434(this$0).d1b_1(cased.xt());
356
+ var escaped = Companion_getInstance_0().v1z().i1(sanitized) ? addBackticks(sanitized) : sanitized;
357
357
  tmp = new VariableReference(new Name(listOf(escaped)));
358
358
  } else {
359
359
  tmp = transformChildren(stmt, tr);
@@ -365,7 +365,7 @@ function KotlinEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
365
365
  }
366
366
  function KotlinEmitter$sanitizationConfig$delegate$lambda(this$0) {
367
367
  return function () {
368
- var tmp = Companion_getInstance_0().r1z();
368
+ var tmp = Companion_getInstance_0().v1z();
369
369
  var tmp_0 = KotlinEmitter$sanitizationConfig$delegate$lambda$lambda;
370
370
  var tmp_1 = KotlinEmitter$sanitizationConfig$delegate$lambda$lambda_0(this$0);
371
371
  var tmp_2 = KotlinEmitter$sanitizationConfig$delegate$lambda$lambda_1(this$0);
@@ -379,7 +379,7 @@ function KotlinEmitter$_get_sanitizationConfig_$ref_sjisty() {
379
379
  };
380
380
  }
381
381
  function KotlinEmitter$modelSanitizationConfig$delegate$lambda$lambda(name) {
382
- return new Name(listOf(name.wt()));
382
+ return new Name(listOf(name.xt()));
383
383
  }
384
384
  function KotlinEmitter$modelSanitizationConfig$delegate$lambda$lambda_0(this$0) {
385
385
  return function (it) {
@@ -390,7 +390,7 @@ function KotlinEmitter$modelSanitizationConfig$delegate$lambda(this$0) {
390
390
  return function () {
391
391
  var tmp = _get_sanitizationConfig__sns434(this$0);
392
392
  var tmp_0 = KotlinEmitter$modelSanitizationConfig$delegate$lambda$lambda;
393
- return tmp.g1b(VOID, VOID, tmp_0, VOID, KotlinEmitter$modelSanitizationConfig$delegate$lambda$lambda_0(this$0));
393
+ return tmp.h1b(VOID, VOID, tmp_0, VOID, KotlinEmitter$modelSanitizationConfig$delegate$lambda$lambda_0(this$0));
394
394
  };
395
395
  }
396
396
  function KotlinEmitter$_get_modelSanitizationConfig_$ref_pvjfk5() {
@@ -402,7 +402,7 @@ function KotlinEmitter$emitShared$lambda(element, transformer) {
402
402
  var tmp;
403
403
  if (element instanceof File) {
404
404
  // Inline function 'kotlin.collections.partition' call
405
- var this_0 = element.hv_1;
405
+ var this_0 = element.iv_1;
406
406
  var first = ArrayList_init_$Create$_0();
407
407
  var second = ArrayList_init_$Create$_0();
408
408
  var _iterator__ex2g4s = this_0.t();
@@ -415,9 +415,9 @@ function KotlinEmitter$emitShared$lambda(element, transformer) {
415
415
  }
416
416
  }
417
417
  var _destruct__k2r9zo = new Pair(first, second);
418
- var packageElements = _destruct__k2r9zo.ye();
419
- var rest = _destruct__k2r9zo.ze();
420
- tmp = element.kv(VOID, plus_0(plus(packageElements, import_0('kotlin.reflect', 'KType')), rest));
418
+ var packageElements = _destruct__k2r9zo.ze();
419
+ var rest = _destruct__k2r9zo.af();
420
+ tmp = element.lv(VOID, plus_0(plus(packageElements, import_0('kotlin.reflect', 'KType')), rest));
421
421
  } else {
422
422
  tmp = element;
423
423
  }
@@ -428,27 +428,27 @@ function KotlinEmitter$emitShared$lambda_0($clientServer) {
428
428
  return function (element, transformer) {
429
429
  var tmp;
430
430
  if (element instanceof Namespace) {
431
- var injected = element.mv_1.equals(Companion_getInstance().vt('Wirespec')) ? $clientServer : emptyList();
431
+ var injected = element.nv_1.equals(Companion_getInstance().wt('Wirespec')) ? $clientServer : emptyList();
432
432
  var tmp_0;
433
433
  // Inline function 'kotlin.collections.isNotEmpty' call
434
434
  if (!injected.r()) {
435
435
  // Inline function 'community.flock.wirespec.compiler.core.ir.withElements' call
436
- var elements = plus_0(element.iv(), injected);
436
+ var elements = plus_0(element.jv(), injected);
437
437
  var tmp_1;
438
438
  if (element instanceof File) {
439
- tmp_1 = element.kv(VOID, elements);
439
+ tmp_1 = element.lv(VOID, elements);
440
440
  } else {
441
441
  if (element instanceof Struct) {
442
- tmp_1 = element.rx(VOID, VOID, VOID, VOID, elements);
442
+ tmp_1 = element.sx(VOID, VOID, VOID, VOID, elements);
443
443
  } else {
444
444
  if (element instanceof Namespace) {
445
- tmp_1 = element.rv(VOID, elements);
445
+ tmp_1 = element.sv(VOID, elements);
446
446
  } else {
447
447
  if (element instanceof Interface) {
448
- tmp_1 = element.aw(VOID, elements);
448
+ tmp_1 = element.bw(VOID, elements);
449
449
  } else {
450
450
  if (element instanceof Enum) {
451
- tmp_1 = element.fx(VOID, VOID, VOID, VOID, VOID, elements);
451
+ tmp_1 = element.gx(VOID, VOID, VOID, VOID, VOID, elements);
452
452
  } else {
453
453
  if (element instanceof Main) {
454
454
  tmp_1 = element;
@@ -478,33 +478,33 @@ function KotlinEmitter$withExplicitVisibility$lambda(element, transformer) {
478
478
  if (isInterface(element, Element)) {
479
479
  var tmp_0;
480
480
  if (element instanceof Namespace) {
481
- tmp_0 = element.rv(VOID, VOID, VOID, Visibility_PUBLIC_getInstance());
481
+ tmp_0 = element.sv(VOID, VOID, VOID, Visibility_PUBLIC_getInstance());
482
482
  } else {
483
483
  if (element instanceof Interface) {
484
484
  var tmp2_visibility = Visibility_PUBLIC_getInstance();
485
485
  // Inline function 'kotlin.collections.map' call
486
- var this_0 = element.xv_1;
486
+ var this_0 = element.yv_1;
487
487
  // Inline function 'kotlin.collections.mapTo' call
488
488
  var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
489
489
  var _iterator__ex2g4s = this_0.t();
490
490
  while (_iterator__ex2g4s.u()) {
491
491
  var item = _iterator__ex2g4s.v();
492
- var tmp$ret$3 = item.lw(VOID, VOID, VOID, VOID, Visibility_PUBLIC_getInstance());
492
+ var tmp$ret$3 = item.mw(VOID, VOID, VOID, VOID, Visibility_PUBLIC_getInstance());
493
493
  destination.x(tmp$ret$3);
494
494
  }
495
- tmp_0 = element.aw(VOID, VOID, VOID, VOID, VOID, destination, tmp2_visibility);
495
+ tmp_0 = element.bw(VOID, VOID, VOID, VOID, VOID, destination, tmp2_visibility);
496
496
  } else {
497
497
  if (element instanceof Union) {
498
- tmp_0 = element.sw(VOID, VOID, VOID, VOID, Visibility_PUBLIC_getInstance());
498
+ tmp_0 = element.tw(VOID, VOID, VOID, VOID, Visibility_PUBLIC_getInstance());
499
499
  } else {
500
500
  if (element instanceof Enum) {
501
- tmp_0 = element.fx(VOID, VOID, VOID, VOID, VOID, VOID, Visibility_PUBLIC_getInstance());
501
+ tmp_0 = element.gx(VOID, VOID, VOID, VOID, VOID, VOID, Visibility_PUBLIC_getInstance());
502
502
  } else {
503
503
  if (element instanceof Struct) {
504
- tmp_0 = element.rx(VOID, VOID, VOID, VOID, VOID, VOID, Visibility_PUBLIC_getInstance());
504
+ tmp_0 = element.sx(VOID, VOID, VOID, VOID, VOID, VOID, Visibility_PUBLIC_getInstance());
505
505
  } else {
506
506
  if (element instanceof Function) {
507
- tmp_0 = element.ey(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Visibility_PUBLIC_getInstance());
507
+ tmp_0 = element.fy(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Visibility_PUBLIC_getInstance());
508
508
  } else {
509
509
  tmp_0 = element;
510
510
  }
@@ -533,7 +533,7 @@ function KotlinEmitter$emitGenerator$lambda_1(it) {
533
533
  }
534
534
  function KotlinEmitter$emitGenerator$lambda_2(this$0) {
535
535
  return function (it) {
536
- return import_0(this$0.y1z().at_1 + '.model', it);
536
+ return import_0(this$0.c20().bt_1 + '.model', it);
537
537
  };
538
538
  }
539
539
  function KotlinEmitter$emit$lambda(this$0) {
@@ -548,33 +548,33 @@ function KotlinEmitter$emit$lambda_0(this$0) {
548
548
  }
549
549
  function KotlinEmitter(packageName, emitShared) {
550
550
  Companion_getInstance_0();
551
- packageName = packageName === VOID ? Companion_instance_0.zs('community.flock.wirespec.generated') : packageName;
552
- emitShared = emitShared === VOID ? Companion_instance_1.eq() : emitShared;
553
- this.z1z_1 = packageName;
554
- this.a20_1 = emitShared;
555
- this.b20_1 = KotlinGenerator_getInstance();
556
- this.c20_1 = FileExtension_Kotlin_getInstance();
557
- this.d20_1 = true;
558
- this.e20_1 = listOf_0([import_0('community.flock.wirespec.kotlin', 'Wirespec'), import_0('kotlin.reflect', 'typeOf')]);
551
+ packageName = packageName === VOID ? Companion_instance_0.at('community.flock.wirespec.generated') : packageName;
552
+ emitShared = emitShared === VOID ? Companion_instance_1.fq() : emitShared;
553
+ this.d20_1 = packageName;
554
+ this.e20_1 = emitShared;
555
+ this.f20_1 = KotlinGenerator_getInstance();
556
+ this.g20_1 = FileExtension_Kotlin_getInstance();
557
+ this.h20_1 = true;
558
+ this.i20_1 = listOf_0([import_0('community.flock.wirespec.kotlin', 'Wirespec'), import_0('kotlin.reflect', 'typeOf')]);
559
559
  var tmp = this;
560
- tmp.f20_1 = lazy(KotlinEmitter$sanitizationConfig$delegate$lambda(this));
560
+ tmp.j20_1 = lazy(KotlinEmitter$sanitizationConfig$delegate$lambda(this));
561
561
  var tmp_0 = this;
562
- tmp_0.g20_1 = lazy(KotlinEmitter$modelSanitizationConfig$delegate$lambda(this));
562
+ tmp_0.k20_1 = lazy(KotlinEmitter$modelSanitizationConfig$delegate$lambda(this));
563
563
  }
564
- protoOf(KotlinEmitter).y1z = function () {
565
- return this.z1z_1;
564
+ protoOf(KotlinEmitter).c20 = function () {
565
+ return this.d20_1;
566
566
  };
567
- protoOf(KotlinEmitter).g1a = function () {
568
- return this.b20_1;
567
+ protoOf(KotlinEmitter).h1a = function () {
568
+ return this.f20_1;
569
569
  };
570
- protoOf(KotlinEmitter).vp = function () {
571
- return this.c20_1;
570
+ protoOf(KotlinEmitter).wp = function () {
571
+ return this.g20_1;
572
572
  };
573
- protoOf(KotlinEmitter).up = function () {
574
- return this.d20_1;
573
+ protoOf(KotlinEmitter).vp = function () {
574
+ return this.h20_1;
575
575
  };
576
- protoOf(KotlinEmitter).b1a = function () {
577
- var packageName = Companion_instance_0.zs('community.flock.wirespec.kotlin');
576
+ protoOf(KotlinEmitter).c1a = function () {
577
+ var packageName = Companion_instance_0.at('community.flock.wirespec.kotlin');
578
578
  var clientServer = convertClientServer();
579
579
  // Inline function 'community.flock.wirespec.compiler.core.ir.transform' call
580
580
  var this_0 = convert(packageName);
@@ -582,48 +582,48 @@ protoOf(KotlinEmitter).b1a = function () {
582
582
  // Inline function 'community.flock.wirespec.compiler.core.ir.TransformScope.matchingElements' call
583
583
  var tmp = scope;
584
584
  // Inline function 'community.flock.wirespec.compiler.core.ir.transformMatchingElements' call
585
- var this_1 = scope.t17_1;
585
+ var this_1 = scope.u17_1;
586
586
  // Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
587
587
  // Inline function 'kotlin.apply' call
588
588
  var this_2 = new TransformerBuilder();
589
- this_2.n18(KotlinEmitter$emitShared$lambda);
590
- var tmp$ret$4 = this_2.i18();
591
- tmp.t17_1 = transform(this_1, tmp$ret$4);
589
+ this_2.o18(KotlinEmitter$emitShared$lambda);
590
+ var tmp$ret$4 = this_2.j18();
591
+ tmp.u17_1 = transform(this_1, tmp$ret$4);
592
592
  // Inline function 'community.flock.wirespec.compiler.core.ir.TransformScope.injectAfter' call
593
593
  var tmp_0 = scope;
594
594
  // Inline function 'community.flock.wirespec.compiler.core.ir.injectAfter' call
595
595
  // Inline function 'community.flock.wirespec.compiler.core.ir.transformMatchingElements' call
596
- var this_3 = scope.t17_1;
596
+ var this_3 = scope.u17_1;
597
597
  // Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
598
598
  // Inline function 'kotlin.apply' call
599
599
  var this_4 = new TransformerBuilder();
600
- this_4.n18(KotlinEmitter$emitShared$lambda_0(clientServer));
601
- var tmp$ret$10 = this_4.i18();
602
- tmp_0.t17_1 = transform(this_3, tmp$ret$10);
603
- var tmp_1 = scope.t17_1;
600
+ this_4.o18(KotlinEmitter$emitShared$lambda_0(clientServer));
601
+ var tmp$ret$10 = this_4.j18();
602
+ tmp_0.u17_1 = transform(this_3, tmp$ret$10);
603
+ var tmp_1 = scope.u17_1;
604
604
  var wirespecShared = isInterface(tmp_1, Element) ? tmp_1 : THROW_CCE();
605
605
  var tmp_2;
606
- if (this.a20_1.fq_1) {
606
+ if (this.e20_1.gq_1) {
607
607
  tmp_2 = withExplicitVisibility(this, wirespecShared);
608
608
  } else {
609
609
  tmp_2 = null;
610
610
  }
611
611
  return tmp_2;
612
612
  };
613
- protoOf(KotlinEmitter).bs = function (definition, module_0, logger) {
613
+ protoOf(KotlinEmitter).cs = function (definition, module_0, logger) {
614
614
  var file = emit.call(this, definition, module_0, logger);
615
615
  // Inline function 'kotlin.takeIf' call
616
- var this_0 = this.e20_1;
616
+ var this_0 = this.i20_1;
617
617
  var tmp;
618
- if (Companion_instance.yr(module_0)) {
618
+ if (Companion_instance.zr(module_0)) {
619
619
  tmp = this_0;
620
620
  } else {
621
621
  tmp = null;
622
622
  }
623
623
  var tmp$ret$0 = tmp;
624
- return placeInPackage(prependImports(file, tmp$ret$0), this.y1z(), definition);
624
+ return placeInPackage(prependImports(file, tmp$ret$0), this.c20(), definition);
625
625
  };
626
- protoOf(KotlinEmitter).j1a = function (definition, module_0) {
626
+ protoOf(KotlinEmitter).k1a = function (definition, module_0) {
627
627
  var tmp;
628
628
  if (definition instanceof Type) {
629
629
  tmp = convertToGenerator_2(definition, module_0);
@@ -644,30 +644,30 @@ protoOf(KotlinEmitter).j1a = function (definition, module_0) {
644
644
  }
645
645
  var generatorFile = tmp;
646
646
  var sanitized = sanitizeNames(generatorFile, _get_sanitizationConfig__sns434(this));
647
- var generatorOwnName = definition.cs().o1() + 'Generator';
647
+ var generatorOwnName = definition.ds().o1() + 'Generator';
648
648
  var tmp_0 = asSequence(collectCustomTypeNames(sanitized));
649
649
  var tmp_1 = filterNot(tmp_0, KotlinEmitter$emitGenerator$lambda);
650
650
  var tmp_2 = filterNot(tmp_1, KotlinEmitter$emitGenerator$lambda_0(generatorOwnName));
651
651
  var tmp_3 = distinct(map(tmp_2, KotlinEmitter$emitGenerator$lambda_1));
652
652
  var modelImports = toList(map(tmp_3, KotlinEmitter$emitGenerator$lambda_2(this)));
653
- return placeInPackage_0(prependImports(sanitized, plus_0(this.e20_1, modelImports)), this.y1z(), 'generator');
653
+ return placeInPackage_0(prependImports(sanitized, plus_0(this.i20_1, modelImports)), this.c20(), 'generator');
654
654
  };
655
- protoOf(KotlinEmitter).ts = function (type, module_0) {
655
+ protoOf(KotlinEmitter).us = function (type, module_0) {
656
656
  var tmp = sanitizeNames(convertWithValidation(type, module_0), _get_modelSanitizationConfig__vgg831(this));
657
657
  return ensureEmptyStructHasConstructor(sanitizeEnumDefaults(tmp, KotlinEmitter$emit$lambda(this)));
658
658
  };
659
- protoOf(KotlinEmitter).rs = function (enum_0, module_0) {
659
+ protoOf(KotlinEmitter).ss = function (enum_0, module_0) {
660
660
  var tmp = sanitizeNames(convert_0(enum_0), _get_sanitizationConfig__sns434(this));
661
661
  return injectEnumLabelField(tmp, KotlinEmitter$emit$lambda_0(this));
662
662
  };
663
- protoOf(KotlinEmitter).hs = function (union) {
663
+ protoOf(KotlinEmitter).is = function (union) {
664
664
  return sanitizeNames(convert_1(union), _get_sanitizationConfig__sns434(this));
665
665
  };
666
- protoOf(KotlinEmitter).ms = function (refined) {
666
+ protoOf(KotlinEmitter).ns = function (refined) {
667
667
  var file = sanitizeNames(convert_2(refined), _get_sanitizationConfig__sns434(this));
668
668
  // Inline function 'community.flock.wirespec.compiler.core.ir.findElement' call
669
669
  // Inline function 'kotlin.collections.filterIsInstance' call
670
- var tmp0 = file.iv();
670
+ var tmp0 = file.jv();
671
671
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
672
672
  var destination = ArrayList_init_$Create$_0();
673
673
  var _iterator__ex2g4s = tmp0.t();
@@ -679,13 +679,13 @@ protoOf(KotlinEmitter).ms = function (refined) {
679
679
  }
680
680
  var tmp0_safe_receiver = firstOrNull_0(destination);
681
681
  var updatedStruct = tmp0_safe_receiver == null ? null : markMembersAsOverride(tmp0_safe_receiver);
682
- return new File(Companion_getInstance().vt(sanitize(this, refined.ks_1)), listOfNotNull(updatedStruct));
682
+ return new File(Companion_getInstance().wt(sanitize(this, refined.ls_1)), listOfNotNull(updatedStruct));
683
683
  };
684
- protoOf(KotlinEmitter).ss = function (endpoint) {
685
- var imports = buildModelImports(endpoint, this.y1z());
684
+ protoOf(KotlinEmitter).ts = function (endpoint) {
685
+ var imports = buildModelImports(endpoint, this.c20());
686
686
  // Inline function 'community.flock.wirespec.compiler.core.ir.findElement' call
687
687
  // Inline function 'kotlin.collections.filterIsInstance' call
688
- var tmp0 = convert_3(endpoint).iv();
688
+ var tmp0 = convert_3(endpoint).jv();
689
689
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
690
690
  var destination = ArrayList_init_$Create$_0();
691
691
  var _iterator__ex2g4s = tmp0.t();
@@ -698,7 +698,7 @@ protoOf(KotlinEmitter).ss = function (endpoint) {
698
698
  var tmp$ret$0 = firstOrNull_0(destination);
699
699
  var endpointNamespace = ensureNotNull(tmp$ret$0);
700
700
  var body = injectApiObject(endpointNamespace, endpoint);
701
- var tmp = sanitizeNames(new File(Companion_getInstance().vt(sanitize(this, endpoint.er_1)), listOf(body)), _get_sanitizationConfig__sns434(this));
701
+ var tmp = sanitizeNames(new File(Companion_getInstance().wt(sanitize(this, endpoint.fr_1)), listOf(body)), _get_sanitizationConfig__sns434(this));
702
702
  // Inline function 'kotlin.takeIf' call
703
703
  var tmp_0;
704
704
  // Inline function 'kotlin.collections.isNotEmpty' call
@@ -710,10 +710,10 @@ protoOf(KotlinEmitter).ss = function (endpoint) {
710
710
  var tmp$ret$3 = tmp_0;
711
711
  return prependImports(tmp, tmp$ret$3);
712
712
  };
713
- protoOf(KotlinEmitter).gs = function (channel) {
713
+ protoOf(KotlinEmitter).hs = function (channel) {
714
714
  var tmp = sanitizeNames(convert_4(channel), _get_sanitizationConfig__sns434(this));
715
715
  // Inline function 'kotlin.takeIf' call
716
- var this_0 = buildModelImports(channel, this.y1z());
716
+ var this_0 = buildModelImports(channel, this.c20());
717
717
  var tmp_0;
718
718
  // Inline function 'kotlin.collections.isNotEmpty' call
719
719
  if (!this_0.r()) {
@@ -724,10 +724,10 @@ protoOf(KotlinEmitter).gs = function (channel) {
724
724
  var tmp$ret$0 = tmp_0;
725
725
  return prependImports(tmp, tmp$ret$0);
726
726
  };
727
- protoOf(KotlinEmitter).fs = function (rpc) {
727
+ protoOf(KotlinEmitter).gs = function (rpc) {
728
728
  var tmp = sanitizeNames(convert_5(rpc), _get_sanitizationConfig__sns434(this));
729
729
  // Inline function 'kotlin.takeIf' call
730
- var this_0 = buildModelImports(rpc, this.y1z());
730
+ var this_0 = buildModelImports(rpc, this.c20());
731
731
  var tmp_0;
732
732
  // Inline function 'kotlin.collections.isNotEmpty' call
733
733
  if (!this_0.r()) {
@@ -738,25 +738,25 @@ protoOf(KotlinEmitter).fs = function (rpc) {
738
738
  var tmp$ret$0 = tmp_0;
739
739
  return prependImports(tmp, tmp$ret$0);
740
740
  };
741
- protoOf(KotlinEmitter).i1a = function (endpoint) {
742
- var imports = buildModelImports(endpoint, this.y1z());
743
- var endpointImport = import_0(this.y1z().at_1 + '.endpoint', endpoint.er_1.o1());
741
+ protoOf(KotlinEmitter).j1a = function (endpoint) {
742
+ var imports = buildModelImports(endpoint, this.c20());
743
+ var endpointImport = import_0(this.c20().bt_1 + '.endpoint', endpoint.fr_1.o1());
744
744
  var file = sanitizeNames(emitEndpointClient.call(this, endpoint), _get_sanitizationConfig__sns434(this));
745
- var subPackageName = plus_1(this.y1z(), 'client');
746
- var tmp = Companion_getInstance().vt(subPackageName.ct() + file.gv_1.yt());
745
+ var subPackageName = plus_1(this.c20(), 'client');
746
+ var tmp = Companion_getInstance().wt(subPackageName.dt() + file.hv_1.zt());
747
747
  // Inline function 'kotlin.collections.buildList' call
748
748
  // Inline function 'kotlin.collections.buildListInternal' call
749
749
  // Inline function 'kotlin.apply' call
750
750
  var this_0 = ArrayList_init_$Create$_0();
751
- this_0.x(new Package(subPackageName.at_1));
752
- this_0.g1(this.e20_1);
751
+ this_0.x(new Package(subPackageName.bt_1));
752
+ this_0.g1(this.i20_1);
753
753
  this_0.g1(imports);
754
754
  this_0.x(endpointImport);
755
- this_0.g1(file.hv_1);
755
+ this_0.g1(file.iv_1);
756
756
  var tmp$ret$0 = this_0.q5();
757
757
  return new File(tmp, tmp$ret$0);
758
758
  };
759
- protoOf(KotlinEmitter).c1a = function (endpoints, logger) {
759
+ protoOf(KotlinEmitter).d1a = function (endpoints, logger) {
760
760
  // Inline function 'kotlin.collections.flatMap' call
761
761
  // Inline function 'kotlin.collections.flatMapTo' call
762
762
  var destination = ArrayList_init_$Create$_0();
@@ -772,7 +772,7 @@ protoOf(KotlinEmitter).c1a = function (endpoints, logger) {
772
772
  var _iterator__ex2g4s_0 = destination.t();
773
773
  while (_iterator__ex2g4s_0.u()) {
774
774
  var e = _iterator__ex2g4s_0.v();
775
- var key = e.q18_1;
775
+ var key = e.r18_1;
776
776
  if (set.x(key)) {
777
777
  list_0.x(e);
778
778
  }
@@ -783,7 +783,7 @@ protoOf(KotlinEmitter).c1a = function (endpoints, logger) {
783
783
  var _iterator__ex2g4s_1 = list_0.t();
784
784
  while (_iterator__ex2g4s_1.u()) {
785
785
  var item = _iterator__ex2g4s_1.v();
786
- var tmp$ret$7 = import_0(this.y1z().at_1 + '.model', item.q18_1);
786
+ var tmp$ret$7 = import_0(this.c20().bt_1 + '.model', item.r18_1);
787
787
  destination_0.x(tmp$ret$7);
788
788
  }
789
789
  var imports = destination_0;
@@ -793,7 +793,7 @@ protoOf(KotlinEmitter).c1a = function (endpoints, logger) {
793
793
  var _iterator__ex2g4s_2 = endpoints.t();
794
794
  while (_iterator__ex2g4s_2.u()) {
795
795
  var item_0 = _iterator__ex2g4s_2.v();
796
- var tmp$ret$10 = import_0(this.y1z().at_1 + '.endpoint', item_0.er_1.o1());
796
+ var tmp$ret$10 = import_0(this.c20().bt_1 + '.endpoint', item_0.fr_1.o1());
797
797
  destination_1.x(tmp$ret$10);
798
798
  }
799
799
  var endpointImports = destination_1;
@@ -803,21 +803,21 @@ protoOf(KotlinEmitter).c1a = function (endpoints, logger) {
803
803
  var _iterator__ex2g4s_3 = endpoints.t();
804
804
  while (_iterator__ex2g4s_3.u()) {
805
805
  var item_1 = _iterator__ex2g4s_3.v();
806
- var tmp$ret$13 = import_0(this.y1z().at_1 + '.client', item_1.er_1.o1() + 'Client');
806
+ var tmp$ret$13 = import_0(this.c20().bt_1 + '.client', item_1.fr_1.o1() + 'Client');
807
807
  destination_2.x(tmp$ret$13);
808
808
  }
809
809
  var clientImports = destination_2;
810
810
  var allImports = plus_0(plus_0(imports, endpointImports), clientImports);
811
811
  var file = sanitizeNames(emitClient.call(this, endpoints, logger), _get_sanitizationConfig__sns434(this));
812
- var tmp = Companion_getInstance().vt(this.y1z().ct() + file.gv_1.yt());
812
+ var tmp = Companion_getInstance().wt(this.c20().dt() + file.hv_1.zt());
813
813
  // Inline function 'kotlin.collections.buildList' call
814
814
  // Inline function 'kotlin.collections.buildListInternal' call
815
815
  // Inline function 'kotlin.apply' call
816
816
  var this_0 = ArrayList_init_$Create$_0();
817
- this_0.x(new Package(this.y1z().at_1));
818
- this_0.g1(this.e20_1);
817
+ this_0.x(new Package(this.c20().bt_1));
818
+ this_0.g1(this.i20_1);
819
819
  this_0.g1(allImports);
820
- this_0.g1(file.hv_1);
820
+ this_0.g1(file.iv_1);
821
821
  var tmp$ret$14 = this_0.q5();
822
822
  return new File(tmp, tmp$ret$14);
823
823
  };
@@ -829,7 +829,7 @@ function buildModelImports(_this__u8e3s4, packageName) {
829
829
  var _iterator__ex2g4s = this_0.t();
830
830
  while (_iterator__ex2g4s.u()) {
831
831
  var e = _iterator__ex2g4s.v();
832
- var key = e.q18_1;
832
+ var key = e.r18_1;
833
833
  if (set.x(key)) {
834
834
  list.x(e);
835
835
  }
@@ -840,7 +840,7 @@ function buildModelImports(_this__u8e3s4, packageName) {
840
840
  var _iterator__ex2g4s_0 = list.t();
841
841
  while (_iterator__ex2g4s_0.u()) {
842
842
  var item = _iterator__ex2g4s_0.v();
843
- var tmp$ret$4 = import_0(packageName.at_1 + '.model', Companion_getInstance().vt(item.q18_1).yt());
843
+ var tmp$ret$4 = import_0(packageName.bt_1 + '.model', Companion_getInstance().wt(item.r18_1).zt());
844
844
  destination.x(tmp$ret$4);
845
845
  }
846
846
  return destination;
@@ -852,20 +852,20 @@ function injectApiObject(_this__u8e3s4, endpoint) {
852
852
  var tmp = scope;
853
853
  // Inline function 'community.flock.wirespec.compiler.core.ir.injectAfter' call
854
854
  // Inline function 'community.flock.wirespec.compiler.core.ir.transformMatchingElements' call
855
- var this_0 = scope.t17_1;
855
+ var this_0 = scope.u17_1;
856
856
  // Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
857
857
  // Inline function 'kotlin.apply' call
858
858
  var this_1 = new TransformerBuilder();
859
- this_1.n18(injectApiObject$lambda(endpoint));
860
- var tmp$ret$5 = this_1.i18();
861
- tmp.t17_1 = transform(this_0, tmp$ret$5);
862
- var tmp_0 = scope.t17_1;
859
+ this_1.o18(injectApiObject$lambda(endpoint));
860
+ var tmp$ret$5 = this_1.j18();
861
+ tmp.u17_1 = transform(this_0, tmp$ret$5);
862
+ var tmp_0 = scope.u17_1;
863
863
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
864
864
  }
865
865
  function buildApiObject(endpoint) {
866
- var pathTemplate = '/' + joinToString(endpoint.gr_1, '/', VOID, VOID, VOID, VOID, buildApiObject$lambda);
866
+ var pathTemplate = '/' + joinToString(endpoint.hr_1, '/', VOID, VOID, VOID, VOID, buildApiObject$lambda);
867
867
  // Inline function 'kotlin.let' call
868
- var p0 = trimMargin('\n |object api : Wirespec.Server<Request, Response<*>>, Wirespec.Client<Request, Response<*>> {\n | override val pathTemplate = "' + pathTemplate + '"\n | override val method = "' + endpoint.fr_1.toString() + '"\n | override fun server(serialization: Wirespec.Serialization) = object : Wirespec.ServerEdge<Request, Response<*>> {\n | override fun from(request: Wirespec.RawRequest) = fromRawRequest(serialization, request)\n | override fun to(response: Response<*>) = toRawResponse(serialization, response)\n | }\n | override fun client(serialization: Wirespec.Serialization) = object : Wirespec.ClientEdge<Request, Response<*>> {\n | override fun to(request: Request) = toRawRequest(serialization, request)\n | override fun from(response: Wirespec.RawResponse) = fromRawResponse(serialization, response)\n | }\n |}\n ');
868
+ var p0 = trimMargin('\n |object api : Wirespec.Server<Request, Response<*>>, Wirespec.Client<Request, Response<*>> {\n | override val pathTemplate = "' + pathTemplate + '"\n | override val method = "' + endpoint.gr_1.toString() + '"\n | override fun server(serialization: Wirespec.Serialization) = object : Wirespec.ServerEdge<Request, Response<*>> {\n | override fun from(request: Wirespec.RawRequest) = fromRawRequest(serialization, request)\n | override fun to(response: Response<*>) = toRawResponse(serialization, response)\n | }\n | override fun client(serialization: Wirespec.Serialization) = object : Wirespec.ClientEdge<Request, Response<*>> {\n | override fun to(request: Request) = toRawRequest(serialization, request)\n | override fun from(response: Wirespec.RawResponse) = fromRawResponse(serialization, response)\n | }\n |}\n ');
869
869
  return raw(p0);
870
870
  }
871
871
  function injectApiObject$lambda($endpoint) {
@@ -877,22 +877,22 @@ function injectApiObject$lambda($endpoint) {
877
877
  // Inline function 'kotlin.collections.isNotEmpty' call
878
878
  if (!injected.r()) {
879
879
  // Inline function 'community.flock.wirespec.compiler.core.ir.withElements' call
880
- var elements = plus_0(element.iv(), injected);
880
+ var elements = plus_0(element.jv(), injected);
881
881
  var tmp_1;
882
882
  if (element instanceof File) {
883
- tmp_1 = element.kv(VOID, elements);
883
+ tmp_1 = element.lv(VOID, elements);
884
884
  } else {
885
885
  if (element instanceof Struct) {
886
- tmp_1 = element.rx(VOID, VOID, VOID, VOID, elements);
886
+ tmp_1 = element.sx(VOID, VOID, VOID, VOID, elements);
887
887
  } else {
888
888
  if (element instanceof Namespace) {
889
- tmp_1 = element.rv(VOID, elements);
889
+ tmp_1 = element.sv(VOID, elements);
890
890
  } else {
891
891
  if (element instanceof Interface) {
892
- tmp_1 = element.aw(VOID, elements);
892
+ tmp_1 = element.bw(VOID, elements);
893
893
  } else {
894
894
  if (element instanceof Enum) {
895
- tmp_1 = element.fx(VOID, VOID, VOID, VOID, VOID, elements);
895
+ tmp_1 = element.gx(VOID, VOID, VOID, VOID, VOID, elements);
896
896
  } else {
897
897
  if (element instanceof Main) {
898
898
  tmp_1 = element;
@@ -920,10 +920,10 @@ function injectApiObject$lambda($endpoint) {
920
920
  function buildApiObject$lambda(it) {
921
921
  var tmp;
922
922
  if (it instanceof Literal) {
923
- tmp = it.z19_1;
923
+ tmp = it.a1a_1;
924
924
  } else {
925
925
  if (it instanceof Param) {
926
- tmp = '{' + it.lr_1.o1() + '}';
926
+ tmp = '{' + it.mr_1.o1() + '}';
927
927
  } else {
928
928
  noWhenBranchMatchedException();
929
929
  }
@@ -931,10 +931,10 @@ function buildApiObject$lambda(it) {
931
931
  return tmp;
932
932
  }
933
933
  //region block: post-declaration
934
- protoOf(KotlinEmitter).d1a = get_extensions;
934
+ protoOf(KotlinEmitter).e1a = get_extensions;
935
935
  protoOf(KotlinEmitter).to = emit_0;
936
- protoOf(KotlinEmitter).a1a = emit_1;
937
- protoOf(KotlinEmitter).f1a = beforeGenerate;
936
+ protoOf(KotlinEmitter).b1a = emit_1;
937
+ protoOf(KotlinEmitter).g1a = beforeGenerate;
938
938
  //endregion
939
939
  //region block: exports
940
940
  export {