@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
|
@@ -194,7 +194,7 @@ initMetadataForClass(RustEmitter, 'RustEmitter', RustEmitter, VOID, [IrEmitter])
|
|
|
194
194
|
initMetadataForObject(RustTransform, 'RustTransform');
|
|
195
195
|
//endregion
|
|
196
196
|
function _get_sanitizationConfig__sns434($this) {
|
|
197
|
-
var tmp0 = $this.
|
|
197
|
+
var tmp0 = $this.c36_1;
|
|
198
198
|
var tmp = KProperty1;
|
|
199
199
|
// Inline function 'kotlin.getValue' call
|
|
200
200
|
getPropertyCallableRef('sanitizationConfig', 1, tmp, RustEmitter$_get_sanitizationConfig_$ref_1dtj2x(), null);
|
|
@@ -265,7 +265,7 @@ function toPascalCase($this, $receiver) {
|
|
|
265
265
|
return joinToString(tmp, '', VOID, VOID, VOID, VOID, RustEmitter$toPascalCase$lambda);
|
|
266
266
|
}
|
|
267
267
|
function sanitizeKeywords($this, $receiver) {
|
|
268
|
-
return Companion_getInstance_0().
|
|
268
|
+
return Companion_getInstance_0().z34().i1($receiver) ? 'r#' + $receiver : $receiver;
|
|
269
269
|
}
|
|
270
270
|
function sanitizeEnum($this, $receiver) {
|
|
271
271
|
// Inline function 'kotlin.let' call
|
|
@@ -416,10 +416,10 @@ function buildClientParams($this, $receiver) {
|
|
|
416
416
|
}
|
|
417
417
|
function Companion() {
|
|
418
418
|
Companion_instance_2 = this;
|
|
419
|
-
this.
|
|
419
|
+
this.f36_1 = RustGenerator_getInstance();
|
|
420
420
|
}
|
|
421
|
-
protoOf(Companion).
|
|
422
|
-
return this.
|
|
421
|
+
protoOf(Companion).z34 = function () {
|
|
422
|
+
return this.f36_1.o1b_1;
|
|
423
423
|
};
|
|
424
424
|
var Companion_instance_2;
|
|
425
425
|
function Companion_getInstance_0() {
|
|
@@ -428,16 +428,16 @@ function Companion_getInstance_0() {
|
|
|
428
428
|
return Companion_instance_2;
|
|
429
429
|
}
|
|
430
430
|
function sam$kotlin_Comparator$0(function_0) {
|
|
431
|
-
this.
|
|
431
|
+
this.g36_1 = function_0;
|
|
432
432
|
}
|
|
433
433
|
protoOf(sam$kotlin_Comparator$0).yd = function (a, b) {
|
|
434
|
-
return this.
|
|
434
|
+
return this.g36_1(a, b);
|
|
435
435
|
};
|
|
436
436
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
437
437
|
return this.yd(a, b);
|
|
438
438
|
};
|
|
439
439
|
protoOf(sam$kotlin_Comparator$0).o3 = function () {
|
|
440
|
-
return this.
|
|
440
|
+
return this.g36_1;
|
|
441
441
|
};
|
|
442
442
|
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
443
443
|
var tmp;
|
|
@@ -494,7 +494,7 @@ function RustEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
|
|
|
494
494
|
return function (stmt, tr) {
|
|
495
495
|
var tmp;
|
|
496
496
|
if (stmt instanceof ConstructorStatement) {
|
|
497
|
-
var tmp_0 = tr.
|
|
497
|
+
var tmp_0 = tr.i18(stmt.dv_1);
|
|
498
498
|
// Inline function 'kotlin.collections.map' call
|
|
499
499
|
var this_0 = stmt.ev_1;
|
|
500
500
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -507,7 +507,7 @@ function RustEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
|
|
|
507
507
|
var k = item.n1();
|
|
508
508
|
// Inline function 'kotlin.collections.component2' call
|
|
509
509
|
var v = item.o1();
|
|
510
|
-
var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), k), tr.
|
|
510
|
+
var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), k), tr.l18(v));
|
|
511
511
|
destination.x(tmp$ret$3);
|
|
512
512
|
}
|
|
513
513
|
tmp = new ConstructorStatement(tmp_0, toMap(destination));
|
|
@@ -519,7 +519,7 @@ function RustEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
|
|
|
519
519
|
}
|
|
520
520
|
function RustEmitter$sanitizationConfig$delegate$lambda(this$0) {
|
|
521
521
|
return function () {
|
|
522
|
-
var tmp0_reservedKeywords = minus(Companion_getInstance_0().
|
|
522
|
+
var tmp0_reservedKeywords = minus(Companion_getInstance_0().z34(), setOf(['self', 'Self']));
|
|
523
523
|
var tmp = RustEmitter$sanitizationConfig$delegate$lambda$lambda;
|
|
524
524
|
var tmp_0 = RustEmitter$sanitizationConfig$delegate$lambda$lambda_0;
|
|
525
525
|
var tmp_1 = RustEmitter$sanitizationConfig$delegate$lambda$lambda_1;
|
|
@@ -533,69 +533,69 @@ function RustEmitter$_get_sanitizationConfig_$ref_1dtj2x() {
|
|
|
533
533
|
};
|
|
534
534
|
}
|
|
535
535
|
function RustEmitter$emitShared$lambda($this$interface) {
|
|
536
|
-
$this$interface.
|
|
536
|
+
$this$interface.a17(Custom_init_$Create$('Headers'));
|
|
537
537
|
return Unit_instance;
|
|
538
538
|
}
|
|
539
539
|
function RustEmitter$emitShared$lambda_0($this$interface) {
|
|
540
|
-
$this$interface.
|
|
540
|
+
$this$interface.a17(Custom_init_$Create$('Headers'));
|
|
541
541
|
return Unit_instance;
|
|
542
542
|
}
|
|
543
543
|
function RustEmitter$emitShared$lambda_1($this$interface) {
|
|
544
|
-
$this$interface.
|
|
545
|
-
$this$interface.
|
|
546
|
-
$this$interface.
|
|
544
|
+
$this$interface.a17(Custom_init_$Create$('Sized'));
|
|
545
|
+
$this$interface.w15('label', VOID, VOID, RustEmitter$emitShared$lambda$lambda);
|
|
546
|
+
$this$interface.w15('from_label', true, VOID, RustEmitter$emitShared$lambda$lambda_0);
|
|
547
547
|
return Unit_instance;
|
|
548
548
|
}
|
|
549
549
|
function RustEmitter$emitShared$lambda$lambda($this$function) {
|
|
550
|
-
$this$function.
|
|
550
|
+
$this$function.m13('&self', Custom_init_$Create$(''));
|
|
551
551
|
$this$function.j13(Custom_init_$Create$('&str'));
|
|
552
552
|
return Unit_instance;
|
|
553
553
|
}
|
|
554
554
|
function RustEmitter$emitShared$lambda$lambda_0($this$function) {
|
|
555
|
-
$this$function.
|
|
555
|
+
$this$function.m13('s', Custom_init_$Create$('&str'));
|
|
556
556
|
$this$function.j13(Custom_init_$Create$('Option<Self>'));
|
|
557
557
|
return Unit_instance;
|
|
558
558
|
}
|
|
559
559
|
function RustEmitter$emitShared$lambda_2($this$interface) {
|
|
560
|
-
$this$interface.i13($this$interface.
|
|
561
|
-
$this$interface.
|
|
562
|
-
$this$interface.
|
|
560
|
+
$this$interface.i13($this$interface.q14('T', []), []);
|
|
561
|
+
$this$interface.w15('value', VOID, VOID, RustEmitter$emitShared$lambda$lambda_1);
|
|
562
|
+
$this$interface.w15('validate', VOID, VOID, RustEmitter$emitShared$lambda$lambda_2);
|
|
563
563
|
return Unit_instance;
|
|
564
564
|
}
|
|
565
565
|
function RustEmitter$emitShared$lambda$lambda_1($this$function) {
|
|
566
|
-
$this$function.
|
|
567
|
-
$this$function.j13(borrow($this$function.
|
|
566
|
+
$this$function.m13('&self', Custom_init_$Create$(''));
|
|
567
|
+
$this$function.j13(borrow($this$function.q14('T', [])));
|
|
568
568
|
return Unit_instance;
|
|
569
569
|
}
|
|
570
570
|
function RustEmitter$emitShared$lambda$lambda_2($this$function) {
|
|
571
|
-
$this$function.
|
|
572
|
-
$this$function.j13($this$function.
|
|
571
|
+
$this$function.m13('&self', Custom_init_$Create$(''));
|
|
572
|
+
$this$function.j13($this$function.k14());
|
|
573
573
|
return Unit_instance;
|
|
574
574
|
}
|
|
575
575
|
function RustEmitter$emitShared$lambda_3($this$interface) {
|
|
576
|
-
$this$interface.i13($this$interface.
|
|
577
|
-
$this$interface.
|
|
578
|
-
$this$interface.
|
|
579
|
-
$this$interface.
|
|
580
|
-
$this$interface.
|
|
581
|
-
$this$interface.
|
|
576
|
+
$this$interface.i13($this$interface.q14('T', []), []);
|
|
577
|
+
$this$interface.b17('path', borrowDyn($this$interface.q14('Path', [])));
|
|
578
|
+
$this$interface.b17('method', borrow($this$interface.q14('Method', [])));
|
|
579
|
+
$this$interface.b17('queries', borrowDyn($this$interface.q14('Queries', [])));
|
|
580
|
+
$this$interface.b17('headers', borrowDyn($this$interface.q14('RequestHeaders', [])));
|
|
581
|
+
$this$interface.b17('body', borrow($this$interface.q14('T', [])));
|
|
582
582
|
return Unit_instance;
|
|
583
583
|
}
|
|
584
584
|
function RustEmitter$emitShared$lambda_4($this$interface) {
|
|
585
|
-
$this$interface.i13($this$interface.
|
|
586
|
-
$this$interface.
|
|
587
|
-
$this$interface.
|
|
588
|
-
$this$interface.
|
|
585
|
+
$this$interface.i13($this$interface.q14('T', []), []);
|
|
586
|
+
$this$interface.b17('status', $this$interface.o16());
|
|
587
|
+
$this$interface.b17('headers', borrowDyn($this$interface.q14('ResponseHeaders', [])));
|
|
588
|
+
$this$interface.b17('body', borrow($this$interface.q14('T', [])));
|
|
589
589
|
return Unit_instance;
|
|
590
590
|
}
|
|
591
591
|
function RustEmitter$emitShared$lambda_5($this$interface) {
|
|
592
|
-
$this$interface.
|
|
592
|
+
$this$interface.a16('transport', VOID, VOID, RustEmitter$emitShared$lambda$lambda_3);
|
|
593
593
|
return Unit_instance;
|
|
594
594
|
}
|
|
595
595
|
function RustEmitter$emitShared$lambda$lambda_3($this$asyncFunction) {
|
|
596
|
-
$this$asyncFunction.
|
|
597
|
-
$this$asyncFunction.
|
|
598
|
-
$this$asyncFunction.j13($this$asyncFunction.
|
|
596
|
+
$this$asyncFunction.m13('&self', Custom_init_$Create$(''));
|
|
597
|
+
$this$asyncFunction.m13('request', borrow($this$asyncFunction.q14('RawRequest', [])));
|
|
598
|
+
$this$asyncFunction.j13($this$asyncFunction.q14('RawResponse', []));
|
|
599
599
|
return Unit_instance;
|
|
600
600
|
}
|
|
601
601
|
function RustEmitter$emitShared$lambda_6($rustImports) {
|
|
@@ -705,14 +705,14 @@ function RustEmitter$emitShared$lambda_9(element, transformer) {
|
|
|
705
705
|
// Inline function 'community.flock.wirespec.compiler.core.ir.TransformScope.matchingElements' call
|
|
706
706
|
var tmp_0 = scope;
|
|
707
707
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transformMatchingElements' call
|
|
708
|
-
var this_0 = scope.
|
|
708
|
+
var this_0 = scope.q18_1;
|
|
709
709
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
|
|
710
710
|
// Inline function 'kotlin.apply' call
|
|
711
711
|
var this_1 = new TransformerBuilder();
|
|
712
|
-
this_1.
|
|
713
|
-
var tmp$ret$5 = this_1.
|
|
714
|
-
tmp_0.
|
|
715
|
-
var tmp_1 = scope.
|
|
712
|
+
this_1.k19(RustEmitter$emitShared$lambda$lambda_4);
|
|
713
|
+
var tmp$ret$5 = this_1.f19();
|
|
714
|
+
tmp_0.q18_1 = transform(this_0, tmp$ret$5);
|
|
715
|
+
var tmp_1 = scope.q18_1;
|
|
716
716
|
tmp = isInterface(tmp_1, Element) ? tmp_1 : THROW_CCE();
|
|
717
717
|
} else {
|
|
718
718
|
tmp = element;
|
|
@@ -759,7 +759,7 @@ function RustEmitter$emitShared$lambda_10(group) {
|
|
|
759
759
|
return trimEnd(joinToString(group, '', VOID, VOID, VOID, VOID, RustEmitter$emitShared$lambda$lambda_5), charArrayOf([_Char___init__impl__6a9atx(10)]));
|
|
760
760
|
}
|
|
761
761
|
function RustEmitter$emitShared$lambda$lambda_5(it) {
|
|
762
|
-
return RustGenerator_getInstance().
|
|
762
|
+
return RustGenerator_getInstance().e1b(it);
|
|
763
763
|
}
|
|
764
764
|
function RustEmitter$emit$lambda(a, b) {
|
|
765
765
|
// Inline function 'kotlin.comparisons.compareValuesBy' call
|
|
@@ -850,29 +850,29 @@ function RustEmitter$buildClientParams$lambda_0(this$0) {
|
|
|
850
850
|
var type = _destruct__k2r9zo.af();
|
|
851
851
|
var tmp = sanitizeKeywords(this$0, name.au());
|
|
852
852
|
// Inline function 'kotlin.with' call
|
|
853
|
-
return tmp + ': ' + RustTransform_getInstance().
|
|
853
|
+
return tmp + ': ' + RustTransform_getInstance().m36(type);
|
|
854
854
|
};
|
|
855
855
|
}
|
|
856
856
|
function RustEmitter(packageName, emitShared) {
|
|
857
857
|
Companion_getInstance_0();
|
|
858
858
|
packageName = packageName === VOID ? Companion_instance_0.at('community.flock.wirespec.generated') : packageName;
|
|
859
859
|
emitShared = emitShared === VOID ? Companion_instance_1.fq() : emitShared;
|
|
860
|
-
this.
|
|
861
|
-
this.
|
|
862
|
-
this.
|
|
863
|
-
this.
|
|
860
|
+
this.y35_1 = packageName;
|
|
861
|
+
this.z35_1 = emitShared;
|
|
862
|
+
this.a36_1 = RustGenerator_getInstance();
|
|
863
|
+
this.b36_1 = FileExtension_Rust_getInstance();
|
|
864
864
|
var tmp = this;
|
|
865
|
-
tmp.
|
|
866
|
-
this.
|
|
867
|
-
this.
|
|
865
|
+
tmp.c36_1 = lazy(RustEmitter$sanitizationConfig$delegate$lambda(this));
|
|
866
|
+
this.d36_1 = listOf_0([import_0('super::super::wirespec', '*'), import_0('', 'regex')]);
|
|
867
|
+
this.e36_1 = listOf_0([import_0('super::super::wirespec', '*'), import_0('', 'regex')]);
|
|
868
868
|
}
|
|
869
|
-
protoOf(RustEmitter).
|
|
870
|
-
return this.
|
|
869
|
+
protoOf(RustEmitter).d1b = function () {
|
|
870
|
+
return this.a36_1;
|
|
871
871
|
};
|
|
872
872
|
protoOf(RustEmitter).wp = function () {
|
|
873
|
-
return this.
|
|
873
|
+
return this.b36_1;
|
|
874
874
|
};
|
|
875
|
-
protoOf(RustEmitter).
|
|
875
|
+
protoOf(RustEmitter).y1a = function () {
|
|
876
876
|
var rustImports = listOf_0([import_0('std::any', 'TypeId'), import_0('std::collections', 'HashMap')]);
|
|
877
877
|
var requestHeaders = interface_0('RequestHeaders', VOID, RustEmitter$emitShared$lambda);
|
|
878
878
|
var responseHeaders = interface_0('ResponseHeaders', VOID, RustEmitter$emitShared$lambda_0);
|
|
@@ -891,34 +891,34 @@ protoOf(RustEmitter).c1a = function () {
|
|
|
891
891
|
// Inline function 'community.flock.wirespec.compiler.core.ir.TransformScope.matchingElements' call
|
|
892
892
|
var tmp = scope;
|
|
893
893
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transformMatchingElements' call
|
|
894
|
-
var this_1 = scope.
|
|
894
|
+
var this_1 = scope.q18_1;
|
|
895
895
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
|
|
896
896
|
// Inline function 'kotlin.apply' call
|
|
897
897
|
var this_2 = new TransformerBuilder();
|
|
898
|
-
this_2.
|
|
899
|
-
var tmp$ret$4 = this_2.
|
|
900
|
-
tmp.
|
|
898
|
+
this_2.k19(RustEmitter$emitShared$lambda_6(rustImports));
|
|
899
|
+
var tmp$ret$4 = this_2.f19();
|
|
900
|
+
tmp.q18_1 = transform(this_1, tmp$ret$4);
|
|
901
901
|
// Inline function 'community.flock.wirespec.compiler.core.ir.TransformScope.matchingElements' call
|
|
902
902
|
var tmp_0 = scope;
|
|
903
903
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transformMatchingElements' call
|
|
904
|
-
var this_3 = scope.
|
|
904
|
+
var this_3 = scope.q18_1;
|
|
905
905
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
|
|
906
906
|
// Inline function 'kotlin.apply' call
|
|
907
907
|
var this_4 = new TransformerBuilder();
|
|
908
|
-
this_4.
|
|
909
|
-
var tmp$ret$9 = this_4.
|
|
910
|
-
tmp_0.
|
|
908
|
+
this_4.k19(RustEmitter$emitShared$lambda_7);
|
|
909
|
+
var tmp$ret$9 = this_4.f19();
|
|
910
|
+
tmp_0.q18_1 = transform(this_3, tmp$ret$9);
|
|
911
911
|
// Inline function 'community.flock.wirespec.compiler.core.ir.TransformScope.matchingElements' call
|
|
912
912
|
var tmp_1 = scope;
|
|
913
913
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transformMatchingElements' call
|
|
914
|
-
var this_5 = scope.
|
|
914
|
+
var this_5 = scope.q18_1;
|
|
915
915
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
|
|
916
916
|
// Inline function 'kotlin.apply' call
|
|
917
917
|
var this_6 = new TransformerBuilder();
|
|
918
|
-
this_6.
|
|
919
|
-
var tmp$ret$14 = this_6.
|
|
920
|
-
tmp_1.
|
|
921
|
-
var tmp_2 = scope.
|
|
918
|
+
this_6.k19(RustEmitter$emitShared$lambda_8(dslTraits, requestHeaders, responseHeaders, rawElementInterfaces, client, server));
|
|
919
|
+
var tmp$ret$14 = this_6.f19();
|
|
920
|
+
tmp_1.q18_1 = transform(this_5, tmp$ret$14);
|
|
921
|
+
var tmp_2 = scope.q18_1;
|
|
922
922
|
// Inline function 'kotlin.let' call
|
|
923
923
|
var file = isInterface(tmp_2, Element) ? tmp_2 : THROW_CCE();
|
|
924
924
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -1011,20 +1011,20 @@ protoOf(RustEmitter).c1a = function () {
|
|
|
1011
1011
|
}
|
|
1012
1012
|
var tmp0_0 = new File(file.hv_1, destination);
|
|
1013
1013
|
// Inline function 'kotlin.let' call
|
|
1014
|
-
var wirespecFile = RustTransform_getInstance().
|
|
1014
|
+
var wirespecFile = RustTransform_getInstance().n36(tmp0_0);
|
|
1015
1015
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transform' call
|
|
1016
1016
|
var scope_0 = new TransformScope(wirespecFile);
|
|
1017
1017
|
// Inline function 'community.flock.wirespec.compiler.core.ir.TransformScope.matchingElements' call
|
|
1018
1018
|
var tmp_7 = scope_0;
|
|
1019
1019
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transformMatchingElements' call
|
|
1020
|
-
var this_7 = scope_0.
|
|
1020
|
+
var this_7 = scope_0.q18_1;
|
|
1021
1021
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
|
|
1022
1022
|
// Inline function 'kotlin.apply' call
|
|
1023
1023
|
var this_8 = new TransformerBuilder();
|
|
1024
|
-
this_8.
|
|
1025
|
-
var tmp$ret$33 = this_8.
|
|
1026
|
-
tmp_7.
|
|
1027
|
-
var tmp_8 = scope_0.
|
|
1024
|
+
this_8.k19(RustEmitter$emitShared$lambda_9);
|
|
1025
|
+
var tmp$ret$33 = this_8.f19();
|
|
1026
|
+
tmp_7.q18_1 = transform(this_7, tmp$ret$33);
|
|
1027
|
+
var tmp_8 = scope_0.q18_1;
|
|
1028
1028
|
// Inline function 'kotlin.let' call
|
|
1029
1029
|
var tmp0_1 = (isInterface(tmp_8, Element) ? tmp_8 : THROW_CCE()).iv_1;
|
|
1030
1030
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
@@ -1047,14 +1047,14 @@ protoOf(RustEmitter).c1a = function () {
|
|
|
1047
1047
|
var groups = accumulator;
|
|
1048
1048
|
var source = joinToString(groups, '\n\n', VOID, VOID, VOID, VOID, RustEmitter$emitShared$lambda_10) + '\n';
|
|
1049
1049
|
var tmp_10;
|
|
1050
|
-
if (this.
|
|
1051
|
-
tmp_10 = new File(Companion_getInstance().wt(this.
|
|
1050
|
+
if (this.z35_1.gq_1) {
|
|
1051
|
+
tmp_10 = new File(Companion_getInstance().wt(this.y35_1.dt() + 'wirespec'), listOf(new RawElement(source)));
|
|
1052
1052
|
} else {
|
|
1053
1053
|
tmp_10 = null;
|
|
1054
1054
|
}
|
|
1055
1055
|
return tmp_10;
|
|
1056
1056
|
};
|
|
1057
|
-
protoOf(RustEmitter).
|
|
1057
|
+
protoOf(RustEmitter).x1a = function (module_0, logger) {
|
|
1058
1058
|
// Inline function 'kotlin.collections.sortedBy' call
|
|
1059
1059
|
var this_0 = new NonEmptyList(module_0.gp_1);
|
|
1060
1060
|
// Inline function 'kotlin.comparisons.compareBy' call
|
|
@@ -1086,9 +1086,9 @@ protoOf(RustEmitter).b1a = function (module_0, logger) {
|
|
|
1086
1086
|
tmp_1 = '';
|
|
1087
1087
|
}
|
|
1088
1088
|
var clientMod = tmp_1;
|
|
1089
|
-
var modRs = new File(Companion_getInstance().wt(this.
|
|
1090
|
-
var modEndpoint = new File(Companion_getInstance().wt(this.
|
|
1091
|
-
var tmp_2 = Companion_getInstance().wt(this.
|
|
1089
|
+
var modRs = new File(Companion_getInstance().wt(this.y35_1.dt() + 'mod'), listOf(new RawElement('#![allow(warnings)]\npub mod model;\npub mod endpoint;' + clientMod + '\npub mod wirespec;')));
|
|
1090
|
+
var modEndpoint = new File(Companion_getInstance().wt(this.y35_1.dt() + 'endpoint/' + 'mod'), listOf(new RawElement(endpointMods)));
|
|
1091
|
+
var tmp_2 = Companion_getInstance().wt(this.y35_1.dt() + 'model/' + 'mod');
|
|
1092
1092
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
1093
1093
|
var tmp0_0 = new NonEmptyList(module_0.gp_1);
|
|
1094
1094
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
@@ -1102,20 +1102,20 @@ protoOf(RustEmitter).b1a = function (module_0, logger) {
|
|
|
1102
1102
|
}
|
|
1103
1103
|
var tmp_3 = destination_0;
|
|
1104
1104
|
var modModel = new File(tmp_2, listOf(new RawElement(joinToString(tmp_3, '\n', VOID, VOID, VOID, VOID, RustEmitter$emit$lambda_1(this)))));
|
|
1105
|
-
return this.
|
|
1105
|
+
return this.z35_1.gq_1 ? NonEmptyList__plus_impl_xqmb9(NonEmptyList__plus_impl_xqmb9(NonEmptyList__plus_impl_xqmb9(files, modRs), modEndpoint), modModel) : NonEmptyList__plus_impl_xqmb9(files, modRs);
|
|
1106
1106
|
};
|
|
1107
1107
|
protoOf(RustEmitter).cs = function (definition, module_0, logger) {
|
|
1108
|
-
var subPackageName = plus_1(this.
|
|
1108
|
+
var subPackageName = plus_1(this.y35_1, definition);
|
|
1109
1109
|
var tmp;
|
|
1110
1110
|
if (definition instanceof Endpoint) {
|
|
1111
|
-
tmp = this.
|
|
1111
|
+
tmp = this.e36_1;
|
|
1112
1112
|
} else {
|
|
1113
|
-
tmp = this.
|
|
1113
|
+
tmp = this.d36_1;
|
|
1114
1114
|
}
|
|
1115
1115
|
var importHeader = tmp;
|
|
1116
1116
|
var tmp0 = emit_0.call(this, definition, module_0, logger);
|
|
1117
1117
|
// Inline function 'kotlin.let' call
|
|
1118
|
-
var file = RustTransform_getInstance().
|
|
1118
|
+
var file = RustTransform_getInstance().n36(tmp0);
|
|
1119
1119
|
var tmp_0 = Companion_getInstance().wt(subPackageName.dt() + toSnakeCase(this, file.hv_1.zt()));
|
|
1120
1120
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1121
1121
|
var tmp0_0 = file.iv_1;
|
|
@@ -1135,7 +1135,7 @@ protoOf(RustEmitter).cs = function (definition, module_0, logger) {
|
|
|
1135
1135
|
}
|
|
1136
1136
|
return new File(tmp_0, plus(importHeader, destination));
|
|
1137
1137
|
};
|
|
1138
|
-
protoOf(RustEmitter).
|
|
1138
|
+
protoOf(RustEmitter).g1b = function (definition, module_0) {
|
|
1139
1139
|
var tmp;
|
|
1140
1140
|
if (definition instanceof Type) {
|
|
1141
1141
|
tmp = convertToGenerator_2(definition, module_0);
|
|
@@ -1164,8 +1164,8 @@ protoOf(RustEmitter).k1a = function (definition, module_0) {
|
|
|
1164
1164
|
var generatorRefs = LinkedHashSet_init_$Create$();
|
|
1165
1165
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transform' call
|
|
1166
1166
|
var scope = new TransformScope(generatorFile);
|
|
1167
|
-
scope.
|
|
1168
|
-
var tmp_3 = scope.
|
|
1167
|
+
scope.h19(RustEmitter$emitGenerator$lambda_2(generatorOwnName, generatorRefs));
|
|
1168
|
+
var tmp_3 = scope.q18_1;
|
|
1169
1169
|
isInterface(tmp_3, Element) || THROW_CCE();
|
|
1170
1170
|
// Inline function 'kotlin.collections.filter' call
|
|
1171
1171
|
// Inline function 'kotlin.collections.filterTo' call
|
|
@@ -1208,8 +1208,8 @@ protoOf(RustEmitter).k1a = function (definition, module_0) {
|
|
|
1208
1208
|
destination_2.x(tmp$ret$14);
|
|
1209
1209
|
}
|
|
1210
1210
|
var typeImports = destination_2;
|
|
1211
|
-
var subPackageName = plus_2(this.
|
|
1212
|
-
return new File(Companion_getInstance().wt(subPackageName.dt() + toSnakeCase(this, generatorFile.hv_1.zt())), plus(plus(plus(this.
|
|
1211
|
+
var subPackageName = plus_2(this.y35_1, 'generator');
|
|
1212
|
+
return new File(Companion_getInstance().wt(subPackageName.dt() + toSnakeCase(this, generatorFile.hv_1.zt())), plus(plus(plus(this.d36_1, typeImports), generatorImports), generatorFile.iv_1));
|
|
1213
1213
|
};
|
|
1214
1214
|
protoOf(RustEmitter).us = function (type, module_0) {
|
|
1215
1215
|
var tmp = convertWithValidation(type, module_0);
|
|
@@ -1239,13 +1239,13 @@ protoOf(RustEmitter).ts = function (endpoint) {
|
|
|
1239
1239
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transform' call
|
|
1240
1240
|
var this_0 = stripResponseGenerics(stripHandlerExtends(convertSimpleRawExpressionsToVariableRefs(stripWirespecPrefix(flattenForRust(convert_3(endpoint))))));
|
|
1241
1241
|
var scope = new TransformScope(this_0);
|
|
1242
|
-
scope.
|
|
1243
|
-
var tmp = scope.
|
|
1242
|
+
scope.v18(fixResponseSwitchPatterns());
|
|
1243
|
+
var tmp = scope.q18_1;
|
|
1244
1244
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transform' call
|
|
1245
1245
|
var this_1 = isInterface(tmp, Element) ? tmp : THROW_CCE();
|
|
1246
1246
|
var scope_0 = new TransformScope(this_1);
|
|
1247
|
-
scope_0.
|
|
1248
|
-
var tmp_0 = scope_0.
|
|
1247
|
+
scope_0.v18(fixConstructorCalls());
|
|
1248
|
+
var tmp_0 = scope_0.q18_1;
|
|
1249
1249
|
var tmp$ret$2 = isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
|
|
1250
1250
|
return prependImports(this, sanitizeNames(injectApiStruct(injectResponseFromImpls(injectHandlerImplForClient(injectSelfToHandlerMethods(tmp$ret$2))), endpoint), _get_sanitizationConfig__sns434(this)), buildEndpointImports(endpoint));
|
|
1251
1251
|
};
|
|
@@ -1262,7 +1262,7 @@ protoOf(RustEmitter).gs = function (rpc) {
|
|
|
1262
1262
|
var _iterator__ex2g4s = this_0.t();
|
|
1263
1263
|
while (_iterator__ex2g4s.u()) {
|
|
1264
1264
|
var e = _iterator__ex2g4s.v();
|
|
1265
|
-
var key = e.
|
|
1265
|
+
var key = e.n19_1;
|
|
1266
1266
|
if (set.x(key)) {
|
|
1267
1267
|
list.x(e);
|
|
1268
1268
|
}
|
|
@@ -1273,7 +1273,7 @@ protoOf(RustEmitter).gs = function (rpc) {
|
|
|
1273
1273
|
var _iterator__ex2g4s_0 = list.t();
|
|
1274
1274
|
while (_iterator__ex2g4s_0.u()) {
|
|
1275
1275
|
var item = _iterator__ex2g4s_0.v();
|
|
1276
|
-
var tmp$ret$6 = import_0('super::super::model::' + toSnakeCase(this, item.
|
|
1276
|
+
var tmp$ret$6 = import_0('super::super::model::' + toSnakeCase(this, item.n19_1), Companion_getInstance().wt(item.n19_1).zt());
|
|
1277
1277
|
destination.x(tmp$ret$6);
|
|
1278
1278
|
}
|
|
1279
1279
|
var rpcImports = destination;
|
|
@@ -1311,7 +1311,7 @@ protoOf(RustEmitter).gs = function (rpc) {
|
|
|
1311
1311
|
}
|
|
1312
1312
|
return file.lv(VOID, plus(rpcImports, destination_0));
|
|
1313
1313
|
};
|
|
1314
|
-
protoOf(RustEmitter).
|
|
1314
|
+
protoOf(RustEmitter).f1b = function (endpoint) {
|
|
1315
1315
|
var endpointName = endpoint.fr_1.o1();
|
|
1316
1316
|
var endpointModuleName = toSnakeCase(this, endpointName);
|
|
1317
1317
|
var clientName = endpointName + 'Client';
|
|
@@ -1327,7 +1327,7 @@ protoOf(RustEmitter).j1a = function (endpoint) {
|
|
|
1327
1327
|
var _iterator__ex2g4s = this_0.t();
|
|
1328
1328
|
while (_iterator__ex2g4s.u()) {
|
|
1329
1329
|
var e = _iterator__ex2g4s.v();
|
|
1330
|
-
var key = e.
|
|
1330
|
+
var key = e.n19_1;
|
|
1331
1331
|
if (set.x(key)) {
|
|
1332
1332
|
list.x(e);
|
|
1333
1333
|
}
|
|
@@ -1338,7 +1338,7 @@ protoOf(RustEmitter).j1a = function (endpoint) {
|
|
|
1338
1338
|
var _iterator__ex2g4s_0 = list.t();
|
|
1339
1339
|
while (_iterator__ex2g4s_0.u()) {
|
|
1340
1340
|
var item = _iterator__ex2g4s_0.v();
|
|
1341
|
-
var tmp$ret$4 = import_0('super::super::model::' + toSnakeCase(this, item.
|
|
1341
|
+
var tmp$ret$4 = import_0('super::super::model::' + toSnakeCase(this, item.n19_1), item.n19_1);
|
|
1342
1342
|
destination.x(tmp$ret$4);
|
|
1343
1343
|
}
|
|
1344
1344
|
var modelImports = destination;
|
|
@@ -1361,7 +1361,7 @@ protoOf(RustEmitter).j1a = function (endpoint) {
|
|
|
1361
1361
|
this_1.x('}');
|
|
1362
1362
|
var tmp$ret$5 = this_1.q5();
|
|
1363
1363
|
var code = joinToString(tmp$ret$5, '\n');
|
|
1364
|
-
var subPackageName = plus_2(this.
|
|
1364
|
+
var subPackageName = plus_2(this.y35_1, 'client');
|
|
1365
1365
|
var tmp = Companion_getInstance().wt(subPackageName.dt() + toSnakeCase(this, clientName));
|
|
1366
1366
|
// Inline function 'kotlin.collections.buildList' call
|
|
1367
1367
|
// Inline function 'kotlin.collections.buildListInternal' call
|
|
@@ -1374,7 +1374,7 @@ protoOf(RustEmitter).j1a = function (endpoint) {
|
|
|
1374
1374
|
var tmp$ret$9 = this_2.q5();
|
|
1375
1375
|
return new File(tmp, tmp$ret$9);
|
|
1376
1376
|
};
|
|
1377
|
-
protoOf(RustEmitter).
|
|
1377
|
+
protoOf(RustEmitter).z1a = function (endpoints, logger) {
|
|
1378
1378
|
logger.as('Emitting main Client for ' + endpoints.b1() + ' endpoints');
|
|
1379
1379
|
var modDeclarations = joinToString(endpoints, '\n', VOID, VOID, VOID, VOID, RustEmitter$emitClient$lambda(this));
|
|
1380
1380
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -1392,7 +1392,7 @@ protoOf(RustEmitter).d1a = function (endpoints, logger) {
|
|
|
1392
1392
|
var _iterator__ex2g4s_0 = destination.t();
|
|
1393
1393
|
while (_iterator__ex2g4s_0.u()) {
|
|
1394
1394
|
var e = _iterator__ex2g4s_0.v();
|
|
1395
|
-
var key = e.
|
|
1395
|
+
var key = e.n19_1;
|
|
1396
1396
|
if (set.x(key)) {
|
|
1397
1397
|
list_0.x(e);
|
|
1398
1398
|
}
|
|
@@ -1419,7 +1419,7 @@ protoOf(RustEmitter).d1a = function (endpoints, logger) {
|
|
|
1419
1419
|
var _iterator__ex2g4s_2 = endpoints.t();
|
|
1420
1420
|
while (_iterator__ex2g4s_2.u()) {
|
|
1421
1421
|
var element_1 = _iterator__ex2g4s_2.v();
|
|
1422
|
-
if (element_1.fr_1.o1() === element_0.
|
|
1422
|
+
if (element_1.fr_1.o1() === element_0.n19_1) {
|
|
1423
1423
|
tmp$ret$8 = false;
|
|
1424
1424
|
break $l$block_0;
|
|
1425
1425
|
}
|
|
@@ -1436,7 +1436,7 @@ protoOf(RustEmitter).d1a = function (endpoints, logger) {
|
|
|
1436
1436
|
var _iterator__ex2g4s_3 = destination_0.t();
|
|
1437
1437
|
while (_iterator__ex2g4s_3.u()) {
|
|
1438
1438
|
var item = _iterator__ex2g4s_3.v();
|
|
1439
|
-
var tmp$ret$12 = import_0('super::model::' + toSnakeCase(this, item.
|
|
1439
|
+
var tmp$ret$12 = import_0('super::model::' + toSnakeCase(this, item.n19_1), item.n19_1);
|
|
1440
1440
|
destination_1.x(tmp$ret$12);
|
|
1441
1441
|
}
|
|
1442
1442
|
var modelImports = destination_1;
|
|
@@ -1471,7 +1471,7 @@ protoOf(RustEmitter).d1a = function (endpoints, logger) {
|
|
|
1471
1471
|
}
|
|
1472
1472
|
var implBlocks = destination_3;
|
|
1473
1473
|
var code = joinToString(plus(listOf_0(['pub struct Client<S: Serialization, T: Transportation> {', ' pub serialization: S,', ' pub transportation: T,', '}']), implBlocks), '\n');
|
|
1474
|
-
var tmp_0 = Companion_getInstance().wt(this.
|
|
1474
|
+
var tmp_0 = Companion_getInstance().wt(this.y35_1.dt() + 'client');
|
|
1475
1475
|
// Inline function 'kotlin.collections.buildList' call
|
|
1476
1476
|
// Inline function 'kotlin.collections.buildListInternal' call
|
|
1477
1477
|
// Inline function 'kotlin.apply' call
|
|
@@ -1499,8 +1499,8 @@ function fixResponseSwitchPatterns() {
|
|
|
1499
1499
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
|
|
1500
1500
|
// Inline function 'kotlin.apply' call
|
|
1501
1501
|
var this_0 = new TransformerBuilder();
|
|
1502
|
-
this_0.
|
|
1503
|
-
return this_0.
|
|
1502
|
+
this_0.g19(fixResponseSwitchPatterns$lambda);
|
|
1503
|
+
return this_0.f19();
|
|
1504
1504
|
}
|
|
1505
1505
|
function buildModelImports(_this__u8e3s4) {
|
|
1506
1506
|
_init_properties_RustIrTransformer_kt__rrvmwq();
|
|
@@ -1511,7 +1511,7 @@ function buildModelImports(_this__u8e3s4) {
|
|
|
1511
1511
|
var _iterator__ex2g4s = this_0.t();
|
|
1512
1512
|
while (_iterator__ex2g4s.u()) {
|
|
1513
1513
|
var e = _iterator__ex2g4s.v();
|
|
1514
|
-
var key = e.
|
|
1514
|
+
var key = e.n19_1;
|
|
1515
1515
|
if (set.x(key)) {
|
|
1516
1516
|
list.x(e);
|
|
1517
1517
|
}
|
|
@@ -1522,7 +1522,7 @@ function buildModelImports(_this__u8e3s4) {
|
|
|
1522
1522
|
var _iterator__ex2g4s_0 = list.t();
|
|
1523
1523
|
while (_iterator__ex2g4s_0.u()) {
|
|
1524
1524
|
var item = _iterator__ex2g4s_0.v();
|
|
1525
|
-
var tmp$ret$4 = import_0('super::' + toRustSnakeCase(item.
|
|
1525
|
+
var tmp$ret$4 = import_0('super::' + toRustSnakeCase(item.n19_1), Companion_getInstance().wt(item.n19_1).zt());
|
|
1526
1526
|
destination.x(tmp$ret$4);
|
|
1527
1527
|
}
|
|
1528
1528
|
return destination;
|
|
@@ -1534,14 +1534,14 @@ function replaceStructWithRefinedFunctions(_this__u8e3s4, refined) {
|
|
|
1534
1534
|
// Inline function 'community.flock.wirespec.compiler.core.ir.TransformScope.matchingElements' call
|
|
1535
1535
|
var tmp = scope;
|
|
1536
1536
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transformMatchingElements' call
|
|
1537
|
-
var this_0 = scope.
|
|
1537
|
+
var this_0 = scope.q18_1;
|
|
1538
1538
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
|
|
1539
1539
|
// Inline function 'kotlin.apply' call
|
|
1540
1540
|
var this_1 = new TransformerBuilder();
|
|
1541
|
-
this_1.
|
|
1542
|
-
var tmp$ret$4 = this_1.
|
|
1543
|
-
tmp.
|
|
1544
|
-
var tmp_0 = scope.
|
|
1541
|
+
this_1.k19(replaceStructWithRefinedFunctions$lambda(refined));
|
|
1542
|
+
var tmp$ret$4 = this_1.f19();
|
|
1543
|
+
tmp.q18_1 = transform(this_0, tmp$ret$4);
|
|
1544
|
+
var tmp_0 = scope.q18_1;
|
|
1545
1545
|
return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
|
|
1546
1546
|
}
|
|
1547
1547
|
function injectApiStruct(_this__u8e3s4, endpoint) {
|
|
@@ -1551,14 +1551,14 @@ function injectApiStruct(_this__u8e3s4, endpoint) {
|
|
|
1551
1551
|
// Inline function 'community.flock.wirespec.compiler.core.ir.TransformScope.matchingElements' call
|
|
1552
1552
|
var tmp = scope;
|
|
1553
1553
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transformMatchingElements' call
|
|
1554
|
-
var this_0 = scope.
|
|
1554
|
+
var this_0 = scope.q18_1;
|
|
1555
1555
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
|
|
1556
1556
|
// Inline function 'kotlin.apply' call
|
|
1557
1557
|
var this_1 = new TransformerBuilder();
|
|
1558
|
-
this_1.
|
|
1559
|
-
var tmp$ret$4 = this_1.
|
|
1560
|
-
tmp.
|
|
1561
|
-
var tmp_0 = scope.
|
|
1558
|
+
this_1.k19(injectApiStruct$lambda(endpoint));
|
|
1559
|
+
var tmp$ret$4 = this_1.f19();
|
|
1560
|
+
tmp.q18_1 = transform(this_0, tmp$ret$4);
|
|
1561
|
+
var tmp_0 = scope.q18_1;
|
|
1562
1562
|
return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
|
|
1563
1563
|
}
|
|
1564
1564
|
function injectResponseFromImpls(_this__u8e3s4) {
|
|
@@ -1568,14 +1568,14 @@ function injectResponseFromImpls(_this__u8e3s4) {
|
|
|
1568
1568
|
// Inline function 'community.flock.wirespec.compiler.core.ir.TransformScope.matchingElements' call
|
|
1569
1569
|
var tmp = scope;
|
|
1570
1570
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transformMatchingElements' call
|
|
1571
|
-
var this_0 = scope.
|
|
1571
|
+
var this_0 = scope.q18_1;
|
|
1572
1572
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
|
|
1573
1573
|
// Inline function 'kotlin.apply' call
|
|
1574
1574
|
var this_1 = new TransformerBuilder();
|
|
1575
|
-
this_1.
|
|
1576
|
-
var tmp$ret$4 = this_1.
|
|
1577
|
-
tmp.
|
|
1578
|
-
var tmp_0 = scope.
|
|
1575
|
+
this_1.k19(injectResponseFromImpls$lambda);
|
|
1576
|
+
var tmp$ret$4 = this_1.f19();
|
|
1577
|
+
tmp.q18_1 = transform(this_0, tmp$ret$4);
|
|
1578
|
+
var tmp_0 = scope.q18_1;
|
|
1579
1579
|
return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
|
|
1580
1580
|
}
|
|
1581
1581
|
function injectHandlerImplForClient(_this__u8e3s4) {
|
|
@@ -1585,14 +1585,14 @@ function injectHandlerImplForClient(_this__u8e3s4) {
|
|
|
1585
1585
|
// Inline function 'community.flock.wirespec.compiler.core.ir.TransformScope.matchingElements' call
|
|
1586
1586
|
var tmp = scope;
|
|
1587
1587
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transformMatchingElements' call
|
|
1588
|
-
var this_0 = scope.
|
|
1588
|
+
var this_0 = scope.q18_1;
|
|
1589
1589
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
|
|
1590
1590
|
// Inline function 'kotlin.apply' call
|
|
1591
1591
|
var this_1 = new TransformerBuilder();
|
|
1592
|
-
this_1.
|
|
1593
|
-
var tmp$ret$4 = this_1.
|
|
1594
|
-
tmp.
|
|
1595
|
-
var tmp_0 = scope.
|
|
1592
|
+
this_1.k19(injectHandlerImplForClient$lambda);
|
|
1593
|
+
var tmp$ret$4 = this_1.f19();
|
|
1594
|
+
tmp.q18_1 = transform(this_0, tmp$ret$4);
|
|
1595
|
+
var tmp_0 = scope.q18_1;
|
|
1596
1596
|
return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
|
|
1597
1597
|
}
|
|
1598
1598
|
function injectSelfToHandlerMethods(_this__u8e3s4) {
|
|
@@ -1602,14 +1602,14 @@ function injectSelfToHandlerMethods(_this__u8e3s4) {
|
|
|
1602
1602
|
// Inline function 'community.flock.wirespec.compiler.core.ir.TransformScope.matchingElements' call
|
|
1603
1603
|
var tmp = scope;
|
|
1604
1604
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transformMatchingElements' call
|
|
1605
|
-
var this_0 = scope.
|
|
1605
|
+
var this_0 = scope.q18_1;
|
|
1606
1606
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
|
|
1607
1607
|
// Inline function 'kotlin.apply' call
|
|
1608
1608
|
var this_1 = new TransformerBuilder();
|
|
1609
|
-
this_1.
|
|
1610
|
-
var tmp$ret$4 = this_1.
|
|
1611
|
-
tmp.
|
|
1612
|
-
var tmp_0 = scope.
|
|
1609
|
+
this_1.k19(injectSelfToHandlerMethods$lambda);
|
|
1610
|
+
var tmp$ret$4 = this_1.f19();
|
|
1611
|
+
tmp.q18_1 = transform(this_0, tmp$ret$4);
|
|
1612
|
+
var tmp_0 = scope.q18_1;
|
|
1613
1613
|
return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
|
|
1614
1614
|
}
|
|
1615
1615
|
function stripResponseGenerics(_this__u8e3s4) {
|
|
@@ -1619,14 +1619,14 @@ function stripResponseGenerics(_this__u8e3s4) {
|
|
|
1619
1619
|
// Inline function 'community.flock.wirespec.compiler.core.ir.TransformScope.matching' call
|
|
1620
1620
|
var tmp = scope;
|
|
1621
1621
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transformMatching' call
|
|
1622
|
-
var this_0 = scope.
|
|
1622
|
+
var this_0 = scope.q18_1;
|
|
1623
1623
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
|
|
1624
1624
|
// Inline function 'kotlin.apply' call
|
|
1625
1625
|
var this_1 = new TransformerBuilder();
|
|
1626
|
-
this_1.
|
|
1627
|
-
var tmp$ret$4 = this_1.
|
|
1628
|
-
tmp.
|
|
1629
|
-
var tmp_0 = scope.
|
|
1626
|
+
this_1.w18(stripResponseGenerics$lambda);
|
|
1627
|
+
var tmp$ret$4 = this_1.f19();
|
|
1628
|
+
tmp.q18_1 = transform(this_0, tmp$ret$4);
|
|
1629
|
+
var tmp_0 = scope.q18_1;
|
|
1630
1630
|
return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
|
|
1631
1631
|
}
|
|
1632
1632
|
function stripHandlerExtends(_this__u8e3s4) {
|
|
@@ -1636,14 +1636,14 @@ function stripHandlerExtends(_this__u8e3s4) {
|
|
|
1636
1636
|
// Inline function 'community.flock.wirespec.compiler.core.ir.TransformScope.matchingElements' call
|
|
1637
1637
|
var tmp = scope;
|
|
1638
1638
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transformMatchingElements' call
|
|
1639
|
-
var this_0 = scope.
|
|
1639
|
+
var this_0 = scope.q18_1;
|
|
1640
1640
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
|
|
1641
1641
|
// Inline function 'kotlin.apply' call
|
|
1642
1642
|
var this_1 = new TransformerBuilder();
|
|
1643
|
-
this_1.
|
|
1644
|
-
var tmp$ret$4 = this_1.
|
|
1645
|
-
tmp.
|
|
1646
|
-
var tmp_0 = scope.
|
|
1643
|
+
this_1.k19(stripHandlerExtends$lambda);
|
|
1644
|
+
var tmp$ret$4 = this_1.f19();
|
|
1645
|
+
tmp.q18_1 = transform(this_0, tmp$ret$4);
|
|
1646
|
+
var tmp_0 = scope.q18_1;
|
|
1647
1647
|
return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
|
|
1648
1648
|
}
|
|
1649
1649
|
function convertSimpleRawExpressionsToVariableRefs(_this__u8e3s4) {
|
|
@@ -1651,8 +1651,8 @@ function convertSimpleRawExpressionsToVariableRefs(_this__u8e3s4) {
|
|
|
1651
1651
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transform' call
|
|
1652
1652
|
var scope = new TransformScope(_this__u8e3s4);
|
|
1653
1653
|
var identifierPattern = Regex_init_$Create$('[a-zA-Z_][a-zA-Z0-9_]*');
|
|
1654
|
-
scope.
|
|
1655
|
-
var tmp = scope.
|
|
1654
|
+
scope.i19(convertSimpleRawExpressionsToVariableRefs$lambda(identifierPattern));
|
|
1655
|
+
var tmp = scope.q18_1;
|
|
1656
1656
|
return isInterface(tmp, Element) ? tmp : THROW_CCE();
|
|
1657
1657
|
}
|
|
1658
1658
|
function stripWirespecPrefix(_this__u8e3s4) {
|
|
@@ -1662,14 +1662,14 @@ function stripWirespecPrefix(_this__u8e3s4) {
|
|
|
1662
1662
|
// Inline function 'community.flock.wirespec.compiler.core.ir.TransformScope.matching' call
|
|
1663
1663
|
var tmp = scope;
|
|
1664
1664
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transformMatching' call
|
|
1665
|
-
var this_0 = scope.
|
|
1665
|
+
var this_0 = scope.q18_1;
|
|
1666
1666
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
|
|
1667
1667
|
// Inline function 'kotlin.apply' call
|
|
1668
1668
|
var this_1 = new TransformerBuilder();
|
|
1669
|
-
this_1.
|
|
1670
|
-
var tmp$ret$4 = this_1.
|
|
1671
|
-
tmp.
|
|
1672
|
-
var tmp_0 = scope.
|
|
1669
|
+
this_1.w18(stripWirespecPrefix$lambda);
|
|
1670
|
+
var tmp$ret$4 = this_1.f19();
|
|
1671
|
+
tmp.q18_1 = transform(this_0, tmp$ret$4);
|
|
1672
|
+
var tmp_0 = scope.q18_1;
|
|
1673
1673
|
return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
|
|
1674
1674
|
}
|
|
1675
1675
|
function flattenForRust(_this__u8e3s4) {
|
|
@@ -1796,8 +1796,8 @@ function fixConstructorCalls() {
|
|
|
1796
1796
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
|
|
1797
1797
|
// Inline function 'kotlin.apply' call
|
|
1798
1798
|
var this_0 = new TransformerBuilder();
|
|
1799
|
-
this_0.
|
|
1800
|
-
return this_0.
|
|
1799
|
+
this_0.i19(fixConstructorCalls$lambda);
|
|
1800
|
+
return this_0.f19();
|
|
1801
1801
|
}
|
|
1802
1802
|
function buildEndpointImports(_this__u8e3s4) {
|
|
1803
1803
|
_init_properties_RustIrTransformer_kt__rrvmwq();
|
|
@@ -1808,7 +1808,7 @@ function buildEndpointImports(_this__u8e3s4) {
|
|
|
1808
1808
|
var _iterator__ex2g4s = this_0.t();
|
|
1809
1809
|
while (_iterator__ex2g4s.u()) {
|
|
1810
1810
|
var e = _iterator__ex2g4s.v();
|
|
1811
|
-
var key = e.
|
|
1811
|
+
var key = e.n19_1;
|
|
1812
1812
|
if (set.x(key)) {
|
|
1813
1813
|
list.x(e);
|
|
1814
1814
|
}
|
|
@@ -1819,7 +1819,7 @@ function buildEndpointImports(_this__u8e3s4) {
|
|
|
1819
1819
|
var _iterator__ex2g4s_0 = list.t();
|
|
1820
1820
|
while (_iterator__ex2g4s_0.u()) {
|
|
1821
1821
|
var item = _iterator__ex2g4s_0.v();
|
|
1822
|
-
var tmp$ret$4 = import_0('super::super::model::' + toRustSnakeCase(item.
|
|
1822
|
+
var tmp$ret$4 = import_0('super::super::model::' + toRustSnakeCase(item.n19_1), Companion_getInstance().wt(item.n19_1).zt());
|
|
1823
1823
|
destination.x(tmp$ret$4);
|
|
1824
1824
|
}
|
|
1825
1825
|
return destination;
|
|
@@ -1836,7 +1836,7 @@ function buildValidateFunction(refined) {
|
|
|
1836
1836
|
function buildToStringFunction(refined) {
|
|
1837
1837
|
_init_properties_RustIrTransformer_kt__rrvmwq();
|
|
1838
1838
|
var tmp;
|
|
1839
|
-
if (refined.ms_1.
|
|
1839
|
+
if (refined.ms_1.p19_1 instanceof String_0) {
|
|
1840
1840
|
tmp = 'self.value.clone()';
|
|
1841
1841
|
} else {
|
|
1842
1842
|
tmp = 'format!("{}", self.value)';
|
|
@@ -1887,12 +1887,12 @@ function fixResponseSwitchPatterns$lambda(s, t) {
|
|
|
1887
1887
|
var _iterator__ex2g4s_0 = this_1.t();
|
|
1888
1888
|
while (_iterator__ex2g4s_0.u()) {
|
|
1889
1889
|
var item_0 = _iterator__ex2g4s_0.v();
|
|
1890
|
-
var tmp$ret$5 = t.
|
|
1890
|
+
var tmp$ret$5 = t.k18(item_0);
|
|
1891
1891
|
destination_0.x(tmp$ret$5);
|
|
1892
1892
|
}
|
|
1893
1893
|
tmp_1 = new Case(tmp_2, destination_0, null);
|
|
1894
1894
|
} else {
|
|
1895
|
-
var tmp_3 = t.
|
|
1895
|
+
var tmp_3 = t.l18(item.az_1);
|
|
1896
1896
|
// Inline function 'kotlin.collections.map' call
|
|
1897
1897
|
var this_2 = item.bz_1;
|
|
1898
1898
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -1900,7 +1900,7 @@ function fixResponseSwitchPatterns$lambda(s, t) {
|
|
|
1900
1900
|
var _iterator__ex2g4s_1 = this_2.t();
|
|
1901
1901
|
while (_iterator__ex2g4s_1.u()) {
|
|
1902
1902
|
var item_1 = _iterator__ex2g4s_1.v();
|
|
1903
|
-
var tmp$ret$8 = t.
|
|
1903
|
+
var tmp$ret$8 = t.k18(item_1);
|
|
1904
1904
|
destination_1.x(tmp$ret$8);
|
|
1905
1905
|
}
|
|
1906
1906
|
var tmp_4 = destination_1;
|
|
@@ -1910,7 +1910,7 @@ function fixResponseSwitchPatterns$lambda(s, t) {
|
|
|
1910
1910
|
tmp_5 = null;
|
|
1911
1911
|
} else {
|
|
1912
1912
|
// Inline function 'kotlin.let' call
|
|
1913
|
-
tmp_5 = t.
|
|
1913
|
+
tmp_5 = t.i18(tmp2_safe_receiver);
|
|
1914
1914
|
}
|
|
1915
1915
|
tmp_1 = new Case(tmp_3, tmp_4, tmp_5);
|
|
1916
1916
|
}
|
|
@@ -1918,7 +1918,7 @@ function fixResponseSwitchPatterns$lambda(s, t) {
|
|
|
1918
1918
|
destination.x(tmp$ret$2);
|
|
1919
1919
|
}
|
|
1920
1920
|
var transformedCases = destination;
|
|
1921
|
-
return s.zy(t.
|
|
1921
|
+
return s.zy(t.l18(s.uy_1), transformedCases, null);
|
|
1922
1922
|
}
|
|
1923
1923
|
function replaceStructWithRefinedFunctions$lambda($refined) {
|
|
1924
1924
|
return function (element, transformer) {
|
|
@@ -2080,14 +2080,14 @@ function injectSelfToHandlerMethods$lambda(element, transformer) {
|
|
|
2080
2080
|
// Inline function 'community.flock.wirespec.compiler.core.ir.TransformScope.matchingElements' call
|
|
2081
2081
|
var tmp_0 = scope;
|
|
2082
2082
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transformMatchingElements' call
|
|
2083
|
-
var this_0 = scope.
|
|
2083
|
+
var this_0 = scope.q18_1;
|
|
2084
2084
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
|
|
2085
2085
|
// Inline function 'kotlin.apply' call
|
|
2086
2086
|
var this_1 = new TransformerBuilder();
|
|
2087
|
-
this_1.
|
|
2088
|
-
var tmp$ret$5 = this_1.
|
|
2089
|
-
tmp_0.
|
|
2090
|
-
var tmp_1 = scope.
|
|
2087
|
+
this_1.k19(injectSelfToHandlerMethods$lambda$lambda);
|
|
2088
|
+
var tmp$ret$5 = this_1.f19();
|
|
2089
|
+
tmp_0.q18_1 = transform(this_0, tmp$ret$5);
|
|
2090
|
+
var tmp_1 = scope.q18_1;
|
|
2091
2091
|
tmp$ret$0 = isInterface(tmp_1, Element) ? tmp_1 : THROW_CCE();
|
|
2092
2092
|
}
|
|
2093
2093
|
tmp = tmp$ret$0;
|
|
@@ -2201,7 +2201,7 @@ function fixConstructorCalls$lambda(s, t) {
|
|
|
2201
2201
|
while (_iterator__ex2g4s.u()) {
|
|
2202
2202
|
var element = _iterator__ex2g4s.v();
|
|
2203
2203
|
var tmp_0 = element.n1();
|
|
2204
|
-
var tmp$ret$4 = t.
|
|
2204
|
+
var tmp$ret$4 = t.l18(element.o1());
|
|
2205
2205
|
destination.v2(tmp_0, tmp$ret$4);
|
|
2206
2206
|
}
|
|
2207
2207
|
var transformedArgs = destination;
|
|
@@ -2209,17 +2209,17 @@ function fixConstructorCalls$lambda(s, t) {
|
|
|
2209
2209
|
}
|
|
2210
2210
|
function buildValidateFunction$lambda($constraintExpr) {
|
|
2211
2211
|
return function ($this$function) {
|
|
2212
|
-
$this$function.
|
|
2212
|
+
$this$function.m13('&self', Custom_init_$Create$(''));
|
|
2213
2213
|
$this$function.j13(Boolean_instance);
|
|
2214
|
-
$this$function.
|
|
2214
|
+
$this$function.p13($constraintExpr);
|
|
2215
2215
|
return Unit_instance;
|
|
2216
2216
|
};
|
|
2217
2217
|
}
|
|
2218
2218
|
function buildToStringFunction$lambda($expr) {
|
|
2219
2219
|
return function ($this$function) {
|
|
2220
|
-
$this$function.
|
|
2220
|
+
$this$function.m13('&self', Custom_init_$Create$(''));
|
|
2221
2221
|
$this$function.j13(String_instance);
|
|
2222
|
-
$this$function.
|
|
2222
|
+
$this$function.p13(new RawExpression($expr));
|
|
2223
2223
|
return Unit_instance;
|
|
2224
2224
|
};
|
|
2225
2225
|
}
|
|
@@ -2227,7 +2227,7 @@ function generateApiStructCode$lambda(segment) {
|
|
|
2227
2227
|
_init_properties_RustIrTransformer_kt__rrvmwq();
|
|
2228
2228
|
var tmp;
|
|
2229
2229
|
if (segment instanceof Literal) {
|
|
2230
|
-
tmp = segment.
|
|
2230
|
+
tmp = segment.w1a_1;
|
|
2231
2231
|
} else {
|
|
2232
2232
|
if (segment instanceof Param) {
|
|
2233
2233
|
tmp = '{' + segment.mr_1.o1() + '}';
|
|
@@ -2254,7 +2254,7 @@ function borrowParamsOf($this, fn) {
|
|
|
2254
2254
|
while (_iterator__ex2g4s.u()) {
|
|
2255
2255
|
var item = _iterator__ex2g4s.v();
|
|
2256
2256
|
var tmp;
|
|
2257
|
-
if (RustTransform_getInstance().
|
|
2257
|
+
if (RustTransform_getInstance().o36(item.jz_1)) {
|
|
2258
2258
|
tmp = item;
|
|
2259
2259
|
} else {
|
|
2260
2260
|
tmp = item.nz(VOID, applyBorrowRule(RustTransform_getInstance(), item.kz_1));
|
|
@@ -2273,7 +2273,7 @@ function applyBorrowRule($this, type) {
|
|
|
2273
2273
|
tmp = Custom_init_$Create$('&str');
|
|
2274
2274
|
} else {
|
|
2275
2275
|
if (type instanceof Custom) {
|
|
2276
|
-
tmp = $this.
|
|
2276
|
+
tmp = $this.r36(type) ? type : $this.q36(type) ? borrowImpl(type) : $this.p36(type) ? ownedImpl(type) : type;
|
|
2277
2277
|
} else {
|
|
2278
2278
|
tmp = type;
|
|
2279
2279
|
}
|
|
@@ -2285,7 +2285,7 @@ function toBorrowedRaw($this, $receiver) {
|
|
|
2285
2285
|
return new RawExpression('&' + toRawCode($this, $receiver));
|
|
2286
2286
|
}
|
|
2287
2287
|
function sanitizeKeywords_0($this, $receiver) {
|
|
2288
|
-
return Companion_getInstance_0().
|
|
2288
|
+
return Companion_getInstance_0().z34().i1($receiver) ? 'r#' + $receiver : $receiver;
|
|
2289
2289
|
}
|
|
2290
2290
|
function toRawCode($this, $receiver) {
|
|
2291
2291
|
var tmp;
|
|
@@ -2467,7 +2467,7 @@ function RustTransform$serializationArgs$lambda(s, t) {
|
|
|
2467
2467
|
var tmp;
|
|
2468
2468
|
var tmp_0;
|
|
2469
2469
|
if (s instanceof FunctionCall) {
|
|
2470
|
-
tmp_0 = RustTransform_getInstance().
|
|
2470
|
+
tmp_0 = RustTransform_getInstance().k36_1.i1(s.eu_1.au());
|
|
2471
2471
|
} else {
|
|
2472
2472
|
tmp_0 = false;
|
|
2473
2473
|
}
|
|
@@ -2487,7 +2487,7 @@ function RustTransform$serializationArgs$lambda(s, t) {
|
|
|
2487
2487
|
var key = item.n1();
|
|
2488
2488
|
// Inline function 'kotlin.collections.component2' call
|
|
2489
2489
|
var value = item.o1();
|
|
2490
|
-
var transformed = t.
|
|
2490
|
+
var transformed = t.l18(value);
|
|
2491
2491
|
var tmp_1;
|
|
2492
2492
|
var tmp_2;
|
|
2493
2493
|
if (idx === 0) {
|
|
@@ -2517,10 +2517,10 @@ function RustTransform$serializationArgs$lambda(s, t) {
|
|
|
2517
2517
|
return tmp;
|
|
2518
2518
|
}
|
|
2519
2519
|
function RustTransform$rustName$lambda(it) {
|
|
2520
|
-
return RustTransform_getInstance().
|
|
2520
|
+
return RustTransform_getInstance().m36(it);
|
|
2521
2521
|
}
|
|
2522
2522
|
function RustTransform$rustName$lambda_0(it) {
|
|
2523
|
-
return RustTransform_getInstance().
|
|
2523
|
+
return RustTransform_getInstance().m36(it);
|
|
2524
2524
|
}
|
|
2525
2525
|
function RustTransform$toRawCode$lambda(it) {
|
|
2526
2526
|
return it.n1().au() + ': ' + toRawCode(RustTransform_getInstance(), it.o1());
|
|
@@ -2531,49 +2531,49 @@ function RustTransform() {
|
|
|
2531
2531
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
|
|
2532
2532
|
// Inline function 'kotlin.apply' call
|
|
2533
2533
|
var this_0 = new TransformerBuilder();
|
|
2534
|
-
this_0.
|
|
2535
|
-
tmp.
|
|
2534
|
+
this_0.w18(RustTransform$primitivesToCustom$lambda);
|
|
2535
|
+
tmp.h36_1 = this_0.f19();
|
|
2536
2536
|
var tmp_0 = this;
|
|
2537
2537
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
|
|
2538
2538
|
// Inline function 'kotlin.apply' call
|
|
2539
2539
|
var this_1 = new TransformerBuilder();
|
|
2540
|
-
this_1.
|
|
2541
|
-
tmp_0.
|
|
2540
|
+
this_1.k19(RustTransform$borrow$lambda);
|
|
2541
|
+
tmp_0.i36_1 = this_1.f19();
|
|
2542
2542
|
var tmp_1 = this;
|
|
2543
2543
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
|
|
2544
2544
|
// Inline function 'kotlin.apply' call
|
|
2545
|
-
tmp_1.
|
|
2546
|
-
this.
|
|
2545
|
+
tmp_1.j36_1 = (new TransformerBuilder()).f19();
|
|
2546
|
+
this.k36_1 = setOf(['serialize_path', 'serialize_param', 'serialize_body', 'deserialize_path', 'deserialize_param', 'deserialize_body']);
|
|
2547
2547
|
var tmp_2 = this;
|
|
2548
2548
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
|
|
2549
2549
|
// Inline function 'kotlin.apply' call
|
|
2550
2550
|
var this_2 = new TransformerBuilder();
|
|
2551
|
-
this_2.
|
|
2552
|
-
tmp_2.
|
|
2551
|
+
this_2.i19(RustTransform$serializationArgs$lambda);
|
|
2552
|
+
tmp_2.l36_1 = this_2.f19();
|
|
2553
2553
|
}
|
|
2554
|
-
protoOf(RustTransform).
|
|
2554
|
+
protoOf(RustTransform).n36 = function (element) {
|
|
2555
2555
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transform' call
|
|
2556
2556
|
var scope = new TransformScope(element);
|
|
2557
|
-
scope.
|
|
2558
|
-
var tmp = scope.
|
|
2557
|
+
scope.v18(RustTransform_getInstance().h36_1);
|
|
2558
|
+
var tmp = scope.q18_1;
|
|
2559
2559
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transform' call
|
|
2560
2560
|
var this_0 = isInterface(tmp, Element) ? tmp : THROW_CCE();
|
|
2561
2561
|
var scope_0 = new TransformScope(this_0);
|
|
2562
|
-
scope_0.
|
|
2563
|
-
var tmp_0 = scope_0.
|
|
2562
|
+
scope_0.v18(RustTransform_getInstance().i36_1);
|
|
2563
|
+
var tmp_0 = scope_0.q18_1;
|
|
2564
2564
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transform' call
|
|
2565
2565
|
var this_1 = isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
|
|
2566
2566
|
var scope_1 = new TransformScope(this_1);
|
|
2567
|
-
scope_1.
|
|
2568
|
-
var tmp_1 = scope_1.
|
|
2567
|
+
scope_1.v18(RustTransform_getInstance().j36_1);
|
|
2568
|
+
var tmp_1 = scope_1.q18_1;
|
|
2569
2569
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transform' call
|
|
2570
2570
|
var this_2 = isInterface(tmp_1, Element) ? tmp_1 : THROW_CCE();
|
|
2571
2571
|
var scope_2 = new TransformScope(this_2);
|
|
2572
|
-
scope_2.
|
|
2573
|
-
var tmp_2 = scope_2.
|
|
2572
|
+
scope_2.v18(RustTransform_getInstance().l36_1);
|
|
2573
|
+
var tmp_2 = scope_2.q18_1;
|
|
2574
2574
|
return isInterface(tmp_2, Element) ? tmp_2 : THROW_CCE();
|
|
2575
2575
|
};
|
|
2576
|
-
protoOf(RustTransform).
|
|
2576
|
+
protoOf(RustTransform).m36 = function (_this__u8e3s4) {
|
|
2577
2577
|
var tmp;
|
|
2578
2578
|
if (_this__u8e3s4 instanceof Custom) {
|
|
2579
2579
|
var pascalName = _this__u8e3s4.qu_1.zt();
|
|
@@ -2589,13 +2589,13 @@ protoOf(RustTransform).i21 = function (_this__u8e3s4) {
|
|
|
2589
2589
|
tmp = 'String';
|
|
2590
2590
|
} else {
|
|
2591
2591
|
if (_this__u8e3s4 instanceof Nullable) {
|
|
2592
|
-
tmp = 'Option<' + this.
|
|
2592
|
+
tmp = 'Option<' + this.m36(_this__u8e3s4.uu_1) + '>';
|
|
2593
2593
|
} else {
|
|
2594
2594
|
if (_this__u8e3s4 instanceof Array_0) {
|
|
2595
|
-
tmp = 'Vec<' + this.
|
|
2595
|
+
tmp = 'Vec<' + this.m36(_this__u8e3s4.lu_1) + '>';
|
|
2596
2596
|
} else {
|
|
2597
2597
|
if (_this__u8e3s4 instanceof Dict) {
|
|
2598
|
-
tmp = 'std::collections::HashMap<' + this.
|
|
2598
|
+
tmp = 'std::collections::HashMap<' + this.m36(_this__u8e3s4.nu_1) + ', ' + this.m36(_this__u8e3s4.ou_1) + '>';
|
|
2599
2599
|
} else {
|
|
2600
2600
|
if (equals(_this__u8e3s4, Any_instance)) {
|
|
2601
2601
|
tmp = 'Box<dyn std::any::Any>';
|
|
@@ -2652,7 +2652,7 @@ protoOf(RustTransform).i21 = function (_this__u8e3s4) {
|
|
|
2652
2652
|
tmp = 'String';
|
|
2653
2653
|
} else {
|
|
2654
2654
|
if (_this__u8e3s4 instanceof Function) {
|
|
2655
|
-
tmp = 'Box<dyn Fn(' + joinToString(_this__u8e3s4.xu_1, ', ', VOID, VOID, VOID, VOID, RustTransform$rustName$lambda_0) + ') -> ' + this.
|
|
2655
|
+
tmp = 'Box<dyn Fn(' + joinToString(_this__u8e3s4.xu_1, ', ', VOID, VOID, VOID, VOID, RustTransform$rustName$lambda_0) + ') -> ' + this.m36(_this__u8e3s4.yu_1) + '>';
|
|
2656
2656
|
} else {
|
|
2657
2657
|
noWhenBranchMatchedException();
|
|
2658
2658
|
}
|
|
@@ -2673,7 +2673,7 @@ protoOf(RustTransform).i21 = function (_this__u8e3s4) {
|
|
|
2673
2673
|
}
|
|
2674
2674
|
return tmp;
|
|
2675
2675
|
};
|
|
2676
|
-
protoOf(RustTransform).
|
|
2676
|
+
protoOf(RustTransform).r36 = function (_this__u8e3s4) {
|
|
2677
2677
|
var tmp;
|
|
2678
2678
|
if (_this__u8e3s4 instanceof Custom) {
|
|
2679
2679
|
// Inline function 'kotlin.let' call
|
|
@@ -2684,15 +2684,15 @@ protoOf(RustTransform).n21 = function (_this__u8e3s4) {
|
|
|
2684
2684
|
}
|
|
2685
2685
|
return tmp;
|
|
2686
2686
|
};
|
|
2687
|
-
protoOf(RustTransform).
|
|
2687
|
+
protoOf(RustTransform).q36 = function (_this__u8e3s4) {
|
|
2688
2688
|
// Inline function 'kotlin.let' call
|
|
2689
2689
|
var it = _this__u8e3s4.qu_1.zt();
|
|
2690
2690
|
return it === 'Serializer' || it === 'Deserializer';
|
|
2691
2691
|
};
|
|
2692
|
-
protoOf(RustTransform).
|
|
2692
|
+
protoOf(RustTransform).p36 = function (_this__u8e3s4) {
|
|
2693
2693
|
return _this__u8e3s4.qu_1.zt() === 'GeneratorField';
|
|
2694
2694
|
};
|
|
2695
|
-
protoOf(RustTransform).
|
|
2695
|
+
protoOf(RustTransform).o36 = function (_this__u8e3s4) {
|
|
2696
2696
|
var v = _this__u8e3s4.xt();
|
|
2697
2697
|
switch (v) {
|
|
2698
2698
|
case 'self':
|
|
@@ -2721,9 +2721,9 @@ function ownedImpl(_this__u8e3s4) {
|
|
|
2721
2721
|
return _this__u8e3s4.tu(new Name(listOf('impl ' + _this__u8e3s4.qu_1.zt())));
|
|
2722
2722
|
}
|
|
2723
2723
|
//region block: post-declaration
|
|
2724
|
-
protoOf(RustEmitter).
|
|
2724
|
+
protoOf(RustEmitter).a1b = get_extensions;
|
|
2725
2725
|
protoOf(RustEmitter).to = emit_1;
|
|
2726
|
-
protoOf(RustEmitter).
|
|
2726
|
+
protoOf(RustEmitter).c1b = beforeGenerate;
|
|
2727
2727
|
protoOf(RustEmitter).vp = get_supportsDefaults;
|
|
2728
2728
|
//endregion
|
|
2729
2729
|
//region block: exports
|