@flock/wirespec 0.22.4 → 0.22.5
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.
- package/arrow-arrow-core.mjs +5 -0
- package/arrow-arrow-core.mjs.map +1 -1
- package/clikt-clikt-mordant.mjs +79 -79
- package/clikt-clikt.mjs +1335 -1335
- package/colormath-root-colormath.mjs +433 -433
- package/kotlin-kotlin-stdlib.mjs +114 -50
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +10209 -10209
- package/kotlin-rgxgen.mjs +1760 -1760
- package/kotlinx-io-kotlinx-io-core.mjs +404 -404
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1802 -1802
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1503 -1503
- package/mordant-mordant.mjs +1202 -1202
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +2897 -2620
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-java.mjs +106 -106
- package/wirespec-src-compiler-emitters-kotlin.mjs +136 -116
- package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-python.mjs +84 -84
- package/wirespec-src-compiler-emitters-rust.mjs +209 -209
- package/wirespec-src-compiler-emitters-scala.mjs +85 -85
- package/wirespec-src-compiler-emitters-typescript.mjs +108 -108
- package/wirespec-src-compiler-emitters-wirespec.mjs +78 -78
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +194 -194
- package/wirespec-src-converter-asyncapi.mjs +532 -532
- package/wirespec-src-converter-avro.mjs +566 -510
- package/wirespec-src-converter-avro.mjs.map +1 -1
- package/wirespec-src-converter-common.mjs +11 -11
- package/wirespec-src-converter-graphql.mjs +936 -936
- package/wirespec-src-converter-openapi.mjs +435 -435
- package/wirespec-src-ide-lsp.mjs +1358 -1358
- package/wirespec-src-plugin-arguments.mjs +413 -214
- package/wirespec-src-plugin-arguments.mjs.map +1 -1
- package/wirespec-src-plugin-cli.mjs +135 -99
- package/wirespec-src-plugin-cli.mjs.map +1 -1
- package/wirespec-src-plugin-extensions.mjs +4357 -0
- package/wirespec-src-plugin-extensions.mjs.map +1 -0
- package/wirespec-src-plugin-npm.d.mts +43 -1
- package/wirespec-src-plugin-npm.mjs +230 -54
- package/wirespec-src-plugin-npm.mjs.map +1 -1
- package/wirespec-src-tools-generator.mjs +13 -13
|
@@ -146,7 +146,7 @@ initMetadataForCompanion(Companion);
|
|
|
146
146
|
initMetadataForClass(ScalaEmitter, 'ScalaEmitter', ScalaEmitter, VOID, [IrEmitter]);
|
|
147
147
|
//endregion
|
|
148
148
|
function _get_sanitizationConfig__sns434($this) {
|
|
149
|
-
var tmp0 = $this.
|
|
149
|
+
var tmp0 = $this.x36_1;
|
|
150
150
|
var tmp = KProperty1;
|
|
151
151
|
// Inline function 'kotlin.getValue' call
|
|
152
152
|
getPropertyCallableRef('sanitizationConfig', 1, tmp, ScalaEmitter$_get_sanitizationConfig_$ref_u7mbyd(), null);
|
|
@@ -211,7 +211,7 @@ function sanitizeFirstIsDigit($this, $receiver) {
|
|
|
211
211
|
return tmp;
|
|
212
212
|
}
|
|
213
213
|
function sanitizeKeywords($this, $receiver) {
|
|
214
|
-
return Companion_getInstance_0().
|
|
214
|
+
return Companion_getInstance_0().z34().i1($receiver) ? addBackticks($receiver) : $receiver;
|
|
215
215
|
}
|
|
216
216
|
function sanitizeSymbol($this, $receiver) {
|
|
217
217
|
// Inline function 'kotlin.collections.mapIndexed' call
|
|
@@ -251,10 +251,10 @@ function sanitizeEnum($this, $receiver) {
|
|
|
251
251
|
}
|
|
252
252
|
function Companion() {
|
|
253
253
|
Companion_instance_2 = this;
|
|
254
|
-
this.
|
|
254
|
+
this.y36_1 = ScalaGenerator_getInstance();
|
|
255
255
|
}
|
|
256
|
-
protoOf(Companion).
|
|
257
|
-
return this.
|
|
256
|
+
protoOf(Companion).z34 = function () {
|
|
257
|
+
return this.y36_1.p1b_1;
|
|
258
258
|
};
|
|
259
259
|
var Companion_instance_2;
|
|
260
260
|
function Companion_getInstance_0() {
|
|
@@ -294,7 +294,7 @@ function ScalaEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
|
|
|
294
294
|
tmp = transformChildren(stmt.iu(VOID, emptyList()), tr);
|
|
295
295
|
} else {
|
|
296
296
|
if (stmt instanceof ConstructorStatement) {
|
|
297
|
-
var tmp_1 = tr.
|
|
297
|
+
var tmp_1 = tr.i18(stmt.dv_1);
|
|
298
298
|
// Inline function 'kotlin.collections.map' call
|
|
299
299
|
var this_0 = stmt.ev_1;
|
|
300
300
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -307,7 +307,7 @@ function ScalaEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
|
|
|
307
307
|
var name = item.n1();
|
|
308
308
|
// Inline function 'kotlin.collections.component2' call
|
|
309
309
|
var expr = item.o1();
|
|
310
|
-
var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), name), tr.
|
|
310
|
+
var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), name), tr.l18(expr));
|
|
311
311
|
destination.x(tmp$ret$3);
|
|
312
312
|
}
|
|
313
313
|
tmp = new ConstructorStatement(tmp_1, toMap(destination));
|
|
@@ -320,7 +320,7 @@ function ScalaEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
|
|
|
320
320
|
}
|
|
321
321
|
function ScalaEmitter$sanitizationConfig$delegate$lambda(this$0) {
|
|
322
322
|
return function () {
|
|
323
|
-
var tmp = Companion_getInstance_0().
|
|
323
|
+
var tmp = Companion_getInstance_0().z34();
|
|
324
324
|
var tmp_0 = ScalaEmitter$sanitizationConfig$delegate$lambda$lambda;
|
|
325
325
|
var tmp_1 = ScalaEmitter$sanitizationConfig$delegate$lambda$lambda_0(this$0);
|
|
326
326
|
var tmp_2 = ScalaEmitter$sanitizationConfig$delegate$lambda$lambda_1(this$0);
|
|
@@ -334,14 +334,14 @@ function ScalaEmitter$_get_sanitizationConfig_$ref_u7mbyd() {
|
|
|
334
334
|
};
|
|
335
335
|
}
|
|
336
336
|
function ScalaEmitter$emitShared$lambda($this$struct) {
|
|
337
|
-
$this$struct.
|
|
338
|
-
$this$struct.
|
|
337
|
+
$this$struct.j15(Custom_init_$Create$('PathSegment'));
|
|
338
|
+
$this$struct.l15('value', String_instance);
|
|
339
339
|
return Unit_instance;
|
|
340
340
|
}
|
|
341
341
|
function ScalaEmitter$emitShared$lambda_0($this$struct) {
|
|
342
|
-
$this$struct.
|
|
343
|
-
$this$struct.
|
|
344
|
-
$this$struct.
|
|
342
|
+
$this$struct.j15(Custom_init_$Create$('PathSegment'));
|
|
343
|
+
$this$struct.l15('name', String_instance);
|
|
344
|
+
$this$struct.l15('type', Reflect_instance);
|
|
345
345
|
return Unit_instance;
|
|
346
346
|
}
|
|
347
347
|
function ScalaEmitter$emitShared$lambda_1(element, transformer) {
|
|
@@ -550,27 +550,27 @@ function ScalaEmitter(packageName, emitShared) {
|
|
|
550
550
|
Companion_getInstance_0();
|
|
551
551
|
packageName = packageName === VOID ? Companion_instance_0.at('community.flock.wirespec.generated') : packageName;
|
|
552
552
|
emitShared = emitShared === VOID ? Companion_instance_1.fq() : emitShared;
|
|
553
|
-
this.
|
|
554
|
-
this.
|
|
555
|
-
this.
|
|
556
|
-
this.
|
|
557
|
-
this.
|
|
553
|
+
this.s36_1 = packageName;
|
|
554
|
+
this.t36_1 = emitShared;
|
|
555
|
+
this.u36_1 = ScalaGenerator_getInstance();
|
|
556
|
+
this.v36_1 = FileExtension_Scala_getInstance();
|
|
557
|
+
this.w36_1 = listOf_0([import_0('community.flock.wirespec.scala', 'Wirespec'), import_0('scala.reflect', 'ClassTag')]);
|
|
558
558
|
var tmp = this;
|
|
559
|
-
tmp.
|
|
559
|
+
tmp.x36_1 = lazy(ScalaEmitter$sanitizationConfig$delegate$lambda(this));
|
|
560
560
|
}
|
|
561
|
-
protoOf(ScalaEmitter).
|
|
562
|
-
return this.
|
|
561
|
+
protoOf(ScalaEmitter).g35 = function () {
|
|
562
|
+
return this.s36_1;
|
|
563
563
|
};
|
|
564
|
-
protoOf(ScalaEmitter).
|
|
565
|
-
return this.
|
|
564
|
+
protoOf(ScalaEmitter).d1b = function () {
|
|
565
|
+
return this.u36_1;
|
|
566
566
|
};
|
|
567
567
|
protoOf(ScalaEmitter).wp = function () {
|
|
568
|
-
return this.
|
|
568
|
+
return this.v36_1;
|
|
569
569
|
};
|
|
570
|
-
protoOf(ScalaEmitter).
|
|
571
|
-
ScalaGenerator_getInstance().
|
|
570
|
+
protoOf(ScalaEmitter).c1b = function (allFiles) {
|
|
571
|
+
ScalaGenerator_getInstance().t1b(allFiles);
|
|
572
572
|
};
|
|
573
|
-
protoOf(ScalaEmitter).
|
|
573
|
+
protoOf(ScalaEmitter).y1a = function () {
|
|
574
574
|
var packageName = Companion_instance_0.at('community.flock.wirespec.scala');
|
|
575
575
|
var tmp = interface_0('PathSegment', true);
|
|
576
576
|
var tmp_0 = struct('Literal', ScalaEmitter$emitShared$lambda);
|
|
@@ -604,38 +604,38 @@ protoOf(ScalaEmitter).c1a = function () {
|
|
|
604
604
|
// Inline function 'community.flock.wirespec.compiler.core.ir.TransformScope.matchingElements' call
|
|
605
605
|
var tmp_3 = scope;
|
|
606
606
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transformMatchingElements' call
|
|
607
|
-
var this_2 = scope.
|
|
607
|
+
var this_2 = scope.q18_1;
|
|
608
608
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
|
|
609
609
|
// Inline function 'kotlin.apply' call
|
|
610
610
|
var this_3 = new TransformerBuilder();
|
|
611
|
-
this_3.
|
|
612
|
-
var tmp$ret$7 = this_3.
|
|
613
|
-
tmp_3.
|
|
611
|
+
this_3.k19(ScalaEmitter$emitShared$lambda_1);
|
|
612
|
+
var tmp$ret$7 = this_3.f19();
|
|
613
|
+
tmp_3.q18_1 = transform(this_2, tmp$ret$7);
|
|
614
614
|
// Inline function 'community.flock.wirespec.compiler.core.ir.TransformScope.matchingElements' call
|
|
615
615
|
var tmp_4 = scope;
|
|
616
616
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transformMatchingElements' call
|
|
617
|
-
var this_4 = scope.
|
|
617
|
+
var this_4 = scope.q18_1;
|
|
618
618
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
|
|
619
619
|
// Inline function 'kotlin.apply' call
|
|
620
620
|
var this_5 = new TransformerBuilder();
|
|
621
|
-
this_5.
|
|
622
|
-
var tmp$ret$12 = this_5.
|
|
623
|
-
tmp_4.
|
|
621
|
+
this_5.k19(ScalaEmitter$emitShared$lambda_2);
|
|
622
|
+
var tmp$ret$12 = this_5.f19();
|
|
623
|
+
tmp_4.q18_1 = transform(this_4, tmp$ret$12);
|
|
624
624
|
// Inline function 'community.flock.wirespec.compiler.core.ir.TransformScope.injectAfter' call
|
|
625
625
|
var tmp_5 = scope;
|
|
626
626
|
// Inline function 'community.flock.wirespec.compiler.core.ir.injectAfter' call
|
|
627
627
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transformMatchingElements' call
|
|
628
|
-
var this_6 = scope.
|
|
628
|
+
var this_6 = scope.q18_1;
|
|
629
629
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
|
|
630
630
|
// Inline function 'kotlin.apply' call
|
|
631
631
|
var this_7 = new TransformerBuilder();
|
|
632
|
-
this_7.
|
|
633
|
-
var tmp$ret$18 = this_7.
|
|
634
|
-
tmp_5.
|
|
635
|
-
var tmp_6 = scope.
|
|
632
|
+
this_7.k19(ScalaEmitter$emitShared$lambda_3(clientServer));
|
|
633
|
+
var tmp$ret$18 = this_7.f19();
|
|
634
|
+
tmp_5.q18_1 = transform(this_6, tmp$ret$18);
|
|
635
|
+
var tmp_6 = scope.q18_1;
|
|
636
636
|
var wirespecShared = isInterface(tmp_6, Element) ? tmp_6 : THROW_CCE();
|
|
637
637
|
var tmp_7;
|
|
638
|
-
if (this.
|
|
638
|
+
if (this.t36_1.gq_1) {
|
|
639
639
|
tmp_7 = wirespecShared.lv(Companion_getInstance().wt(packageName.dt() + 'Wirespec'));
|
|
640
640
|
} else {
|
|
641
641
|
tmp_7 = null;
|
|
@@ -645,7 +645,7 @@ protoOf(ScalaEmitter).c1a = function () {
|
|
|
645
645
|
protoOf(ScalaEmitter).cs = function (definition, module_0, logger) {
|
|
646
646
|
var file = emit.call(this, definition, module_0, logger);
|
|
647
647
|
// Inline function 'kotlin.takeIf' call
|
|
648
|
-
var this_0 = this.
|
|
648
|
+
var this_0 = this.w36_1;
|
|
649
649
|
var tmp;
|
|
650
650
|
if (Companion_instance.zr(module_0)) {
|
|
651
651
|
tmp = this_0;
|
|
@@ -653,9 +653,9 @@ protoOf(ScalaEmitter).cs = function (definition, module_0, logger) {
|
|
|
653
653
|
tmp = null;
|
|
654
654
|
}
|
|
655
655
|
var tmp$ret$0 = tmp;
|
|
656
|
-
return placeInPackage(prependImports(file, tmp$ret$0), this.
|
|
656
|
+
return placeInPackage(prependImports(file, tmp$ret$0), this.g35(), definition);
|
|
657
657
|
};
|
|
658
|
-
protoOf(ScalaEmitter).
|
|
658
|
+
protoOf(ScalaEmitter).g1b = function (definition, module_0) {
|
|
659
659
|
var tmp;
|
|
660
660
|
if (definition instanceof Type) {
|
|
661
661
|
tmp = convertToGenerator_2(definition, module_0);
|
|
@@ -697,11 +697,11 @@ protoOf(ScalaEmitter).k1a = function (definition, module_0) {
|
|
|
697
697
|
var _iterator__ex2g4s_0 = destination.t();
|
|
698
698
|
while (_iterator__ex2g4s_0.u()) {
|
|
699
699
|
var item = _iterator__ex2g4s_0.v();
|
|
700
|
-
var tmp$ret$5 = import_0(this.
|
|
700
|
+
var tmp$ret$5 = import_0(this.g35().bt_1 + '.model', item);
|
|
701
701
|
destination_0.x(tmp$ret$5);
|
|
702
702
|
}
|
|
703
703
|
var modelImports = destination_0;
|
|
704
|
-
return placeInPackage_0(prependImports(sanitized, plus(this.
|
|
704
|
+
return placeInPackage_0(prependImports(sanitized, plus(this.w36_1, modelImports)), this.g35(), 'generator');
|
|
705
705
|
};
|
|
706
706
|
protoOf(ScalaEmitter).us = function (type, module_0) {
|
|
707
707
|
return ensureEmptyStructHasConstructor(sanitizeNames(convertWithValidation(type, module_0), _get_sanitizationConfig__sns434(this)));
|
|
@@ -749,7 +749,7 @@ protoOf(ScalaEmitter).ts = function (endpoint) {
|
|
|
749
749
|
var body = appendClientServerObjects(injectHandleFunction(endpointNamespace), endpoint, isRequestObject(endpointNamespace));
|
|
750
750
|
var tmp = sanitizeNames(new File(Companion_getInstance().wt(sanitize(this, endpoint.fr_1)), listOf(body)), _get_sanitizationConfig__sns434(this));
|
|
751
751
|
// Inline function 'kotlin.takeIf' call
|
|
752
|
-
var this_0 = buildModelImports(endpoint, this.
|
|
752
|
+
var this_0 = buildModelImports(endpoint, this.g35());
|
|
753
753
|
var tmp_0;
|
|
754
754
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
755
755
|
if (!this_0.r()) {
|
|
@@ -763,7 +763,7 @@ protoOf(ScalaEmitter).ts = function (endpoint) {
|
|
|
763
763
|
protoOf(ScalaEmitter).hs = function (channel) {
|
|
764
764
|
var tmp = sanitizeNames(convert_4(channel), _get_sanitizationConfig__sns434(this));
|
|
765
765
|
// Inline function 'kotlin.takeIf' call
|
|
766
|
-
var this_0 = buildModelImports(channel, this.
|
|
766
|
+
var this_0 = buildModelImports(channel, this.g35());
|
|
767
767
|
var tmp_0;
|
|
768
768
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
769
769
|
if (!this_0.r()) {
|
|
@@ -777,7 +777,7 @@ protoOf(ScalaEmitter).hs = function (channel) {
|
|
|
777
777
|
protoOf(ScalaEmitter).gs = function (rpc) {
|
|
778
778
|
var tmp = sanitizeNames(convert_5(rpc), _get_sanitizationConfig__sns434(this));
|
|
779
779
|
// Inline function 'kotlin.takeIf' call
|
|
780
|
-
var this_0 = buildModelImports(rpc, this.
|
|
780
|
+
var this_0 = buildModelImports(rpc, this.g35());
|
|
781
781
|
var tmp_0;
|
|
782
782
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
783
783
|
if (!this_0.r()) {
|
|
@@ -788,25 +788,25 @@ protoOf(ScalaEmitter).gs = function (rpc) {
|
|
|
788
788
|
var tmp$ret$0 = tmp_0;
|
|
789
789
|
return prependImports(tmp, tmp$ret$0);
|
|
790
790
|
};
|
|
791
|
-
protoOf(ScalaEmitter).
|
|
792
|
-
var imports = buildModelImports(endpoint, this.
|
|
793
|
-
var endpointImport = import_0(this.
|
|
791
|
+
protoOf(ScalaEmitter).f1b = function (endpoint) {
|
|
792
|
+
var imports = buildModelImports(endpoint, this.g35());
|
|
793
|
+
var endpointImport = import_0(this.g35().bt_1 + '.endpoint', endpoint.fr_1.o1());
|
|
794
794
|
var file = addIdentityTypeToCall(sanitizeNames(emitEndpointClient.call(this, endpoint), _get_sanitizationConfig__sns434(this)));
|
|
795
|
-
var subPackageName = plus_1(this.
|
|
795
|
+
var subPackageName = plus_1(this.g35(), 'client');
|
|
796
796
|
var tmp = Companion_getInstance().wt(subPackageName.dt() + file.hv_1.zt());
|
|
797
797
|
// Inline function 'kotlin.collections.buildList' call
|
|
798
798
|
// Inline function 'kotlin.collections.buildListInternal' call
|
|
799
799
|
// Inline function 'kotlin.apply' call
|
|
800
800
|
var this_0 = ArrayList_init_$Create$_0();
|
|
801
801
|
this_0.x(new Package(subPackageName.bt_1));
|
|
802
|
-
this_0.g1(this.
|
|
802
|
+
this_0.g1(this.w36_1);
|
|
803
803
|
this_0.g1(imports);
|
|
804
804
|
this_0.x(endpointImport);
|
|
805
805
|
this_0.g1(file.iv_1);
|
|
806
806
|
var tmp$ret$0 = this_0.q5();
|
|
807
807
|
return new File(tmp, tmp$ret$0);
|
|
808
808
|
};
|
|
809
|
-
protoOf(ScalaEmitter).
|
|
809
|
+
protoOf(ScalaEmitter).z1a = function (endpoints, logger) {
|
|
810
810
|
// Inline function 'kotlin.collections.flatMap' call
|
|
811
811
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
812
812
|
var destination = ArrayList_init_$Create$_0();
|
|
@@ -822,7 +822,7 @@ protoOf(ScalaEmitter).d1a = function (endpoints, logger) {
|
|
|
822
822
|
var _iterator__ex2g4s_0 = destination.t();
|
|
823
823
|
while (_iterator__ex2g4s_0.u()) {
|
|
824
824
|
var e = _iterator__ex2g4s_0.v();
|
|
825
|
-
var key = e.
|
|
825
|
+
var key = e.n19_1;
|
|
826
826
|
if (set.x(key)) {
|
|
827
827
|
list_0.x(e);
|
|
828
828
|
}
|
|
@@ -833,7 +833,7 @@ protoOf(ScalaEmitter).d1a = function (endpoints, logger) {
|
|
|
833
833
|
var _iterator__ex2g4s_1 = list_0.t();
|
|
834
834
|
while (_iterator__ex2g4s_1.u()) {
|
|
835
835
|
var item = _iterator__ex2g4s_1.v();
|
|
836
|
-
var tmp$ret$7 = import_0(this.
|
|
836
|
+
var tmp$ret$7 = import_0(this.g35().bt_1 + '.model', item.n19_1);
|
|
837
837
|
destination_0.x(tmp$ret$7);
|
|
838
838
|
}
|
|
839
839
|
var imports = destination_0;
|
|
@@ -843,7 +843,7 @@ protoOf(ScalaEmitter).d1a = function (endpoints, logger) {
|
|
|
843
843
|
var _iterator__ex2g4s_2 = endpoints.t();
|
|
844
844
|
while (_iterator__ex2g4s_2.u()) {
|
|
845
845
|
var item_0 = _iterator__ex2g4s_2.v();
|
|
846
|
-
var tmp$ret$10 = import_0(this.
|
|
846
|
+
var tmp$ret$10 = import_0(this.g35().bt_1 + '.endpoint', item_0.fr_1.o1());
|
|
847
847
|
destination_1.x(tmp$ret$10);
|
|
848
848
|
}
|
|
849
849
|
var endpointImports = destination_1;
|
|
@@ -853,19 +853,19 @@ protoOf(ScalaEmitter).d1a = function (endpoints, logger) {
|
|
|
853
853
|
var _iterator__ex2g4s_3 = endpoints.t();
|
|
854
854
|
while (_iterator__ex2g4s_3.u()) {
|
|
855
855
|
var item_1 = _iterator__ex2g4s_3.v();
|
|
856
|
-
var tmp$ret$13 = import_0(this.
|
|
856
|
+
var tmp$ret$13 = import_0(this.g35().bt_1 + '.client', item_1.fr_1.o1() + 'Client');
|
|
857
857
|
destination_2.x(tmp$ret$13);
|
|
858
858
|
}
|
|
859
859
|
var clientImports = destination_2;
|
|
860
860
|
var allImports = plus(plus(imports, endpointImports), clientImports);
|
|
861
861
|
var file = addIdentityTypeToCall(sanitizeNames(emitClient.call(this, endpoints, logger), _get_sanitizationConfig__sns434(this)));
|
|
862
|
-
var tmp = Companion_getInstance().wt(this.
|
|
862
|
+
var tmp = Companion_getInstance().wt(this.g35().dt() + file.hv_1.zt());
|
|
863
863
|
// Inline function 'kotlin.collections.buildList' call
|
|
864
864
|
// Inline function 'kotlin.collections.buildListInternal' call
|
|
865
865
|
// Inline function 'kotlin.apply' call
|
|
866
866
|
var this_0 = ArrayList_init_$Create$_0();
|
|
867
|
-
this_0.x(new Package(this.
|
|
868
|
-
this_0.g1(this.
|
|
867
|
+
this_0.x(new Package(this.g35().bt_1));
|
|
868
|
+
this_0.g1(this.w36_1);
|
|
869
869
|
this_0.g1(allImports);
|
|
870
870
|
this_0.g1(file.iv_1);
|
|
871
871
|
var tmp$ret$14 = this_0.q5();
|
|
@@ -874,8 +874,8 @@ protoOf(ScalaEmitter).d1a = function (endpoints, logger) {
|
|
|
874
874
|
function convertToStringCallsToFieldAccess(_this__u8e3s4) {
|
|
875
875
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transform' call
|
|
876
876
|
var scope = new TransformScope(_this__u8e3s4);
|
|
877
|
-
scope.
|
|
878
|
-
var tmp = scope.
|
|
877
|
+
scope.h19(convertToStringCallsToFieldAccess$lambda);
|
|
878
|
+
var tmp = scope.q18_1;
|
|
879
879
|
return isInterface(tmp, Element) ? tmp : THROW_CCE();
|
|
880
880
|
}
|
|
881
881
|
function appendClientServerObjects(_this__u8e3s4, endpoint, requestIsObject) {
|
|
@@ -892,14 +892,14 @@ function injectHandleFunction(_this__u8e3s4) {
|
|
|
892
892
|
// Inline function 'community.flock.wirespec.compiler.core.ir.TransformScope.matchingElements' call
|
|
893
893
|
var tmp = scope;
|
|
894
894
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transformMatchingElements' call
|
|
895
|
-
var this_0 = scope.
|
|
895
|
+
var this_0 = scope.q18_1;
|
|
896
896
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
|
|
897
897
|
// Inline function 'kotlin.apply' call
|
|
898
898
|
var this_1 = new TransformerBuilder();
|
|
899
|
-
this_1.
|
|
900
|
-
var tmp$ret$4 = this_1.
|
|
901
|
-
tmp.
|
|
902
|
-
var tmp_0 = scope.
|
|
899
|
+
this_1.k19(injectHandleFunction$lambda);
|
|
900
|
+
var tmp$ret$4 = this_1.f19();
|
|
901
|
+
tmp.q18_1 = transform(this_0, tmp$ret$4);
|
|
902
|
+
var tmp_0 = scope.q18_1;
|
|
903
903
|
return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
|
|
904
904
|
}
|
|
905
905
|
function isRequestObject(namespace) {
|
|
@@ -945,7 +945,7 @@ function buildModelImports(_this__u8e3s4, packageName) {
|
|
|
945
945
|
var _iterator__ex2g4s = this_0.t();
|
|
946
946
|
while (_iterator__ex2g4s.u()) {
|
|
947
947
|
var e = _iterator__ex2g4s.v();
|
|
948
|
-
var key = e.
|
|
948
|
+
var key = e.n19_1;
|
|
949
949
|
if (set.x(key)) {
|
|
950
950
|
list.x(e);
|
|
951
951
|
}
|
|
@@ -956,7 +956,7 @@ function buildModelImports(_this__u8e3s4, packageName) {
|
|
|
956
956
|
var _iterator__ex2g4s_0 = list.t();
|
|
957
957
|
while (_iterator__ex2g4s_0.u()) {
|
|
958
958
|
var item = _iterator__ex2g4s_0.v();
|
|
959
|
-
var tmp$ret$4 = import_0(packageName.bt_1 + '.model', Companion_getInstance().wt(item.
|
|
959
|
+
var tmp$ret$4 = import_0(packageName.bt_1 + '.model', Companion_getInstance().wt(item.n19_1).zt());
|
|
960
960
|
destination.x(tmp$ret$4);
|
|
961
961
|
}
|
|
962
962
|
return destination;
|
|
@@ -967,29 +967,29 @@ function addIdentityTypeToCall(_this__u8e3s4) {
|
|
|
967
967
|
// Inline function 'community.flock.wirespec.compiler.core.ir.TransformScope.matchingElements' call
|
|
968
968
|
var tmp = scope;
|
|
969
969
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transformMatchingElements' call
|
|
970
|
-
var this_0 = scope.
|
|
970
|
+
var this_0 = scope.q18_1;
|
|
971
971
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
|
|
972
972
|
// Inline function 'kotlin.apply' call
|
|
973
973
|
var this_1 = new TransformerBuilder();
|
|
974
|
-
this_1.
|
|
975
|
-
var tmp$ret$4 = this_1.
|
|
976
|
-
tmp.
|
|
977
|
-
var tmp_0 = scope.
|
|
974
|
+
this_1.k19(addIdentityTypeToCall$lambda);
|
|
975
|
+
var tmp$ret$4 = this_1.f19();
|
|
976
|
+
tmp.q18_1 = transform(this_0, tmp$ret$4);
|
|
977
|
+
var tmp_0 = scope.q18_1;
|
|
978
978
|
return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
|
|
979
979
|
}
|
|
980
980
|
function toScalaTypeName(_this__u8e3s4) {
|
|
981
981
|
var tmp;
|
|
982
982
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
983
|
-
var t = _this__u8e3s4.
|
|
983
|
+
var t = _this__u8e3s4.p19_1;
|
|
984
984
|
var tmp_0;
|
|
985
985
|
if (t instanceof String_0) {
|
|
986
986
|
tmp_0 = 'String';
|
|
987
987
|
} else {
|
|
988
988
|
if (t instanceof Integer) {
|
|
989
|
-
tmp_0 = t.
|
|
989
|
+
tmp_0 = t.x19_1.equals(Precision_P32_getInstance()) ? 'Int' : 'Long';
|
|
990
990
|
} else {
|
|
991
991
|
if (t instanceof Number_0) {
|
|
992
|
-
tmp_0 = t.
|
|
992
|
+
tmp_0 = t.s19_1.equals(Precision_P32_getInstance()) ? 'Float' : 'Double';
|
|
993
993
|
} else {
|
|
994
994
|
if (equals(t, Boolean_instance)) {
|
|
995
995
|
tmp_0 = 'Boolean';
|
|
@@ -1006,7 +1006,7 @@ function toScalaTypeName(_this__u8e3s4) {
|
|
|
1006
1006
|
tmp = tmp_0;
|
|
1007
1007
|
} else {
|
|
1008
1008
|
if (_this__u8e3s4 instanceof Custom) {
|
|
1009
|
-
tmp = _this__u8e3s4.
|
|
1009
|
+
tmp = _this__u8e3s4.n19_1;
|
|
1010
1010
|
} else {
|
|
1011
1011
|
if (_this__u8e3s4 instanceof Iterable) {
|
|
1012
1012
|
tmp = 'List[' + toScalaTypeName(_this__u8e3s4.yp_1) + ']';
|
|
@@ -1051,7 +1051,7 @@ function convertToStringCallsToFieldAccess$lambda(expr, tr) {
|
|
|
1051
1051
|
tmp_2 = null;
|
|
1052
1052
|
} else {
|
|
1053
1053
|
// Inline function 'kotlin.let' call
|
|
1054
|
-
tmp_2 = tr.
|
|
1054
|
+
tmp_2 = tr.l18(tmp0_safe_receiver);
|
|
1055
1055
|
}
|
|
1056
1056
|
tmp = new FieldCall(tmp_2, Companion_getInstance().wt('toString'));
|
|
1057
1057
|
} else {
|
|
@@ -1062,7 +1062,7 @@ function convertToStringCallsToFieldAccess$lambda(expr, tr) {
|
|
|
1062
1062
|
function appendClientServerObjects$lambda(it) {
|
|
1063
1063
|
var tmp;
|
|
1064
1064
|
if (it instanceof Literal) {
|
|
1065
|
-
tmp = it.
|
|
1065
|
+
tmp = it.w1a_1;
|
|
1066
1066
|
} else {
|
|
1067
1067
|
if (it instanceof Param) {
|
|
1068
1068
|
tmp = '{' + it.mr_1.o1() + '}';
|
|
@@ -1075,7 +1075,7 @@ function appendClientServerObjects$lambda(it) {
|
|
|
1075
1075
|
function appendClientServerObjects$lambda_0(segment) {
|
|
1076
1076
|
var tmp;
|
|
1077
1077
|
if (segment instanceof Literal) {
|
|
1078
|
-
tmp = 'Wirespec.Literal("' + segment.
|
|
1078
|
+
tmp = 'Wirespec.Literal("' + segment.w1a_1 + '")';
|
|
1079
1079
|
} else {
|
|
1080
1080
|
if (segment instanceof Param) {
|
|
1081
1081
|
tmp = 'Wirespec.Param("' + segment.mr_1.o1() + '", scala.reflect.classTag[' + toScalaTypeName(segment.nr_1) + '])';
|
|
@@ -1161,9 +1161,9 @@ function addIdentityTypeToCall$lambda(element, transformer) {
|
|
|
1161
1161
|
return transformChildren_0(transformed, transformer);
|
|
1162
1162
|
}
|
|
1163
1163
|
//region block: post-declaration
|
|
1164
|
-
protoOf(ScalaEmitter).
|
|
1164
|
+
protoOf(ScalaEmitter).a1b = get_extensions;
|
|
1165
1165
|
protoOf(ScalaEmitter).to = emit_0;
|
|
1166
|
-
protoOf(ScalaEmitter).
|
|
1166
|
+
protoOf(ScalaEmitter).x1a = emit_1;
|
|
1167
1167
|
protoOf(ScalaEmitter).vp = get_supportsDefaults;
|
|
1168
1168
|
//endregion
|
|
1169
1169
|
//region block: exports
|