@flock/wirespec 0.9.2 → 0.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/clikt-clikt.js +1126 -1126
- package/colormath-root-colormath.js +335 -335
- package/kotlin-kotlin-stdlib.js +8 -8
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin-rgxgen.js +1760 -1760
- package/markdown.js +1792 -1792
- package/mordant-mordant.js +1498 -1498
- package/package.json +1 -1
- package/wirespec-src-compiler-core.js +1125 -1107
- package/wirespec-src-compiler-core.js.map +1 -1
- package/wirespec-src-compiler-lib.js +231 -231
- package/wirespec-src-converter-openapi.js +223 -231
- package/wirespec-src-converter-openapi.js.map +1 -1
- package/wirespec-src-generator.js +18 -18
- package/wirespec-src-plugin-arguments.js +72 -72
- package/wirespec-src-plugin-cli.js +105 -105
- package/wirespec-src-plugin-npm.js +1 -1
|
@@ -552,12 +552,12 @@
|
|
|
552
552
|
}
|
|
553
553
|
function JavaEmitter$emit$lambda(this$0) {
|
|
554
554
|
return function (it) {
|
|
555
|
-
return this$0.
|
|
555
|
+
return this$0.q1s(it);
|
|
556
556
|
};
|
|
557
557
|
}
|
|
558
558
|
function JavaEmitter$emit$lambda_0(this$0) {
|
|
559
559
|
return function (it) {
|
|
560
|
-
return this$0.
|
|
560
|
+
return this$0.f1s(it);
|
|
561
561
|
};
|
|
562
562
|
}
|
|
563
563
|
function JavaEmitter$emit$lambda_1(this$0) {
|
|
@@ -730,15 +730,15 @@
|
|
|
730
730
|
};
|
|
731
731
|
protoOf(JavaEmitter).e1t = function (_this__u8e3s4) {
|
|
732
732
|
var tmp = sanitizeSymbol(_this__u8e3s4.f1t_1, this);
|
|
733
|
-
var tmp_0;
|
|
733
|
+
var tmp_0 = this.i1t(joinToString(_this__u8e3s4.g1t_1, ',\n', VOID, VOID, VOID, VOID, JavaEmitter$emit$lambda(this)));
|
|
734
|
+
var tmp_1;
|
|
734
735
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
735
736
|
if (!_this__u8e3s4.h1t_1.c1()) {
|
|
736
|
-
|
|
737
|
+
tmp_1 = 'implements ' + joinToString(_this__u8e3s4.h1t_1, ', ', VOID, VOID, VOID, VOID, JavaEmitter$emit$lambda_0(this)) + ' ';
|
|
737
738
|
} else {
|
|
738
|
-
|
|
739
|
+
tmp_1 = '';
|
|
739
740
|
}
|
|
740
|
-
|
|
741
|
-
return trimMargin('\n |public record ' + tmp + tmp_1 + '(\n |' + this.i1t(joinToString(_this__u8e3s4.g1t_1, ',\n', VOID, VOID, VOID, VOID, JavaEmitter$emit$lambda_0(this))) + '\n |){\n |};\n ');
|
|
741
|
+
return trimMargin('\n |public record ' + tmp + ' (\n |' + tmp_0 + '\n |) ' + tmp_1 + '{\n |};\n ');
|
|
742
742
|
};
|
|
743
743
|
protoOf(JavaEmitter).j1t = function (_this__u8e3s4) {
|
|
744
744
|
return this.l1t(ClassModelTransformer_getInstance().k1t(_this__u8e3s4));
|
|
@@ -785,38 +785,38 @@
|
|
|
785
785
|
return this.x1t(ClassModelTransformer_getInstance().w1t(_this__u8e3s4));
|
|
786
786
|
};
|
|
787
787
|
protoOf(JavaEmitter).x1t = function (_this__u8e3s4) {
|
|
788
|
-
return trimMargin('\n |sealed interface ' + _this__u8e3s4.y1t_1 + ' {}\n ');
|
|
788
|
+
return trimMargin('\n |sealed interface ' + _this__u8e3s4.y1t_1 + ' permits ' + joinToString(_this__u8e3s4.z1t_1, ', ') + ' {}\n ');
|
|
789
789
|
};
|
|
790
|
-
protoOf(JavaEmitter).
|
|
791
|
-
return this.
|
|
790
|
+
protoOf(JavaEmitter).a1u = function (_this__u8e3s4) {
|
|
791
|
+
return this.c1u(ClassModelTransformer_getInstance().b1u(_this__u8e3s4));
|
|
792
792
|
};
|
|
793
|
-
protoOf(JavaEmitter).
|
|
794
|
-
var tmp = sanitizeSymbol(_this__u8e3s4.
|
|
793
|
+
protoOf(JavaEmitter).c1u = function (_this__u8e3s4) {
|
|
794
|
+
var tmp = sanitizeSymbol(_this__u8e3s4.d1u_1, this);
|
|
795
795
|
Companion_getInstance_4();
|
|
796
796
|
Companion_getInstance_4();
|
|
797
797
|
Companion_getInstance_4();
|
|
798
798
|
Companion_getInstance_4();
|
|
799
|
-
var tmp_0 = this.i1t(joinToString(_this__u8e3s4.
|
|
799
|
+
var tmp_0 = this.i1t(joinToString(_this__u8e3s4.h1u_1, '\n\n', VOID, VOID, VOID, VOID, JavaEmitter$emit$lambda_2(this)));
|
|
800
800
|
Companion_getInstance_4();
|
|
801
801
|
Companion_getInstance_4();
|
|
802
|
-
var tmp_1 = this.i1t(joinToString(_this__u8e3s4.
|
|
803
|
-
var tmp_2 = this.i1t(joinToString(_this__u8e3s4.
|
|
804
|
-
var tmp_3 = this.i1t(this.
|
|
805
|
-
var tmp_4 = this.i1t(this.
|
|
802
|
+
var tmp_1 = this.i1t(joinToString(_this__u8e3s4.i1u_1, '\n\n', VOID, VOID, VOID, VOID, JavaEmitter$emit$lambda_3(this)));
|
|
803
|
+
var tmp_2 = this.i1t(joinToString(_this__u8e3s4.j1u_1, '\n\n', VOID, VOID, VOID, VOID, JavaEmitter$emit$lambda_4(this)));
|
|
804
|
+
var tmp_3 = this.i1t(this.n1u(_this__u8e3s4.k1u_1));
|
|
805
|
+
var tmp_4 = this.i1t(this.o1u(_this__u8e3s4.l1u_1));
|
|
806
806
|
Companion_getInstance_4();
|
|
807
|
-
return trimMargin('\n |public interface ' + tmp + ' extends Wirespec.Endpoint {\n |' + ' ' + 'static String PATH = "' + _this__u8e3s4.
|
|
807
|
+
return trimMargin('\n |public interface ' + tmp + ' extends Wirespec.Endpoint {\n |' + ' ' + 'static String PATH = "' + _this__u8e3s4.e1u_1 + '";\n |' + ' ' + 'static String METHOD = "' + _this__u8e3s4.f1u_1 + '";\n |\n |' + ' ' + 'sealed interface Request<T> extends Wirespec.Request<T> {\n |' + ' ' + '}\n |\n |' + tmp_0 + '\n |\n |' + ' ' + 'sealed interface Response<T> extends Wirespec.Response<T> {\n |' + ' ' + '};\n |\n |' + tmp_1 + '\n |\n |' + tmp_2 + '\n |\n |' + tmp_3 + '\n |' + tmp_4 + '\n |\n |' + ' ' + 'public CompletableFuture<Response<?>> ' + _this__u8e3s4.g1u_1 + '(Request<?> request);\n |\n |}\n ');
|
|
808
808
|
};
|
|
809
809
|
protoOf(JavaEmitter).r1s = function (_this__u8e3s4) {
|
|
810
|
-
var tmp = sanitizeSymbol(_this__u8e3s4.
|
|
811
|
-
var tmp_0 = joinToString(_this__u8e3s4.
|
|
812
|
-
var tmp_1 = this.i1t(joinToString(_this__u8e3s4.
|
|
813
|
-
var tmp_2 = this.i1t(this.
|
|
814
|
-
var tmp_3 = this.i1t(this.
|
|
815
|
-
return trimMargin('\n |final class ' + tmp + ' implements ' + tmp_0 + ' {\n |' + tmp_1 + '\n |\n |' + tmp_2 + '\n |\n |' + tmp_3 + '\n |\n |' + this.i1t(joinToString(_this__u8e3s4.
|
|
816
|
-
};
|
|
817
|
-
protoOf(JavaEmitter).
|
|
818
|
-
var tmp = sanitizeSymbol(_this__u8e3s4.
|
|
819
|
-
var tmp_0 = this.i1t(joinToString(_this__u8e3s4.
|
|
810
|
+
var tmp = sanitizeSymbol(_this__u8e3s4.p1u_1, this);
|
|
811
|
+
var tmp_0 = joinToString(_this__u8e3s4.t1u_1, ', ', VOID, VOID, VOID, VOID, JavaEmitter$emit$lambda_5(this));
|
|
812
|
+
var tmp_1 = this.i1t(joinToString(_this__u8e3s4.q1u_1, '\n', VOID, VOID, VOID, VOID, JavaEmitter$emit$lambda_6(this)));
|
|
813
|
+
var tmp_2 = this.i1t(this.u1u(_this__u8e3s4.r1u_1));
|
|
814
|
+
var tmp_3 = this.i1t(this.v1u(_this__u8e3s4.s1u_1));
|
|
815
|
+
return trimMargin('\n |final class ' + tmp + ' implements ' + tmp_0 + ' {\n |' + tmp_1 + '\n |\n |' + tmp_2 + '\n |\n |' + tmp_3 + '\n |\n |' + this.i1t(joinToString(_this__u8e3s4.q1u_1, '\n\n', VOID, VOID, VOID, VOID, JavaEmitter$emit$lambda_7(this))) + '\n |}\n ');
|
|
816
|
+
};
|
|
817
|
+
protoOf(JavaEmitter).u1u = function (_this__u8e3s4) {
|
|
818
|
+
var tmp = sanitizeSymbol(_this__u8e3s4.w1u_1, this);
|
|
819
|
+
var tmp_0 = this.i1t(joinToString(_this__u8e3s4.x1u_1, ',\n', VOID, VOID, VOID, VOID, JavaEmitter$emit$lambda_8(this)));
|
|
820
820
|
Companion_getInstance_4();
|
|
821
821
|
Companion_getInstance_4();
|
|
822
822
|
Companion_getInstance_4();
|
|
@@ -824,103 +824,103 @@
|
|
|
824
824
|
Companion_getInstance_4();
|
|
825
825
|
return trimMargin('\n |public ' + tmp + '(\n |' + tmp_0 + '\n |) {\n |' + ' ' + 'this.path = path;\n |' + ' ' + 'this.method = method;\n |' + ' ' + 'this.query = query;\n |' + ' ' + 'this.headers = headers;\n |' + ' ' + 'this.content = content;\n |}\n ');
|
|
826
826
|
};
|
|
827
|
-
protoOf(JavaEmitter).
|
|
828
|
-
var tmp = sanitizeSymbol(_this__u8e3s4.
|
|
829
|
-
var tmp_0 = this.i1t(joinToString(_this__u8e3s4.
|
|
827
|
+
protoOf(JavaEmitter).v1u = function (_this__u8e3s4) {
|
|
828
|
+
var tmp = sanitizeSymbol(_this__u8e3s4.z1u_1, this);
|
|
829
|
+
var tmp_0 = this.i1t(joinToString(_this__u8e3s4.a1v_1, ',\n', VOID, VOID, VOID, VOID, JavaEmitter$emit$lambda_9(this)));
|
|
830
830
|
Companion_getInstance_4();
|
|
831
|
-
var tmp_1 = this.
|
|
831
|
+
var tmp_1 = this.g1v(_this__u8e3s4.b1v_1);
|
|
832
832
|
Companion_getInstance_4();
|
|
833
833
|
Companion_getInstance_4();
|
|
834
|
-
var tmp_2 = joinToString(_this__u8e3s4.
|
|
834
|
+
var tmp_2 = joinToString(_this__u8e3s4.d1v_1, ', ', VOID, VOID, VOID, VOID, JavaEmitter$emit$lambda_10(this));
|
|
835
835
|
Companion_getInstance_4();
|
|
836
|
-
var tmp_3 = joinToString(_this__u8e3s4.
|
|
836
|
+
var tmp_3 = joinToString(_this__u8e3s4.e1v_1, ', ', VOID, VOID, VOID, VOID, JavaEmitter$emit$lambda_11(this));
|
|
837
837
|
Companion_getInstance_4();
|
|
838
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
839
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : this.
|
|
840
|
-
return trimMargin('\n |public ' + tmp + '(\n |' + tmp_0 + '\n |) {\n |' + ' ' + 'this.path = ' + tmp_1 + ';\n |' + ' ' + 'this.method = Wirespec.Method.' + _this__u8e3s4.
|
|
838
|
+
var tmp0_safe_receiver = _this__u8e3s4.f1v_1;
|
|
839
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : this.h1v(tmp0_safe_receiver);
|
|
840
|
+
return trimMargin('\n |public ' + tmp + '(\n |' + tmp_0 + '\n |) {\n |' + ' ' + 'this.path = ' + tmp_1 + ';\n |' + ' ' + 'this.method = Wirespec.Method.' + _this__u8e3s4.c1v_1 + ';\n |' + ' ' + 'this.query = java.util.Map.ofEntries(' + tmp_2 + ');\n |' + ' ' + 'this.headers = java.util.Map.ofEntries(' + tmp_3 + ');\n |' + ' ' + 'this.content = ' + (tmp1_elvis_lhs == null ? 'null' : tmp1_elvis_lhs) + ';\n |}\n ');
|
|
841
841
|
};
|
|
842
|
-
protoOf(JavaEmitter).
|
|
842
|
+
protoOf(JavaEmitter).n1u = function (_this__u8e3s4) {
|
|
843
843
|
Companion_getInstance_4();
|
|
844
|
-
var tmp = this.
|
|
844
|
+
var tmp = this.k1v(joinToString(_this__u8e3s4.j1v_1, '\n', VOID, VOID, VOID, VOID, JavaEmitter$emit$lambda_12(this)), 2);
|
|
845
845
|
Companion_getInstance_4();
|
|
846
846
|
Companion_getInstance_4();
|
|
847
847
|
Companion_getInstance_4();
|
|
848
|
-
return trimMargin('\n |static <B, Req extends Request<?>> Function<Wirespec.Request<B>, Req> ' + _this__u8e3s4.
|
|
848
|
+
return trimMargin('\n |static <B, Req extends Request<?>> Function<Wirespec.Request<B>, Req> ' + _this__u8e3s4.i1v_1 + '(Wirespec.ContentMapper<B> contentMapper) {\n |' + ' ' + 'return request -> {\n |' + tmp + '\n |' + ' ' + ' ' + 'throw new IllegalStateException("Unknown response type");\n |' + ' ' + '};\n |}\n ');
|
|
849
849
|
};
|
|
850
850
|
protoOf(JavaEmitter).v1s = function (_this__u8e3s4) {
|
|
851
851
|
var tmp;
|
|
852
|
-
if (_this__u8e3s4.
|
|
852
|
+
if (_this__u8e3s4.n1v_1 == null) {
|
|
853
853
|
Companion_getInstance_4();
|
|
854
|
-
tmp = trimMargin('\n |if (request.getContent() == null) {\n |' + ' ' + 'return (Req) new ' + emitWrap(_this__u8e3s4.
|
|
854
|
+
tmp = trimMargin('\n |if (request.getContent() == null) {\n |' + ' ' + 'return (Req) new ' + emitWrap(_this__u8e3s4.o1v_1, this) + '(request.getPath(), request.getMethod(), request.getQuery(), request.getHeaders(), null);\n |}\n ');
|
|
855
855
|
} else {
|
|
856
856
|
Companion_getInstance_4();
|
|
857
|
-
var tmp_0 = emitWrap(_this__u8e3s4.m1v_1
|
|
858
|
-
var tmp_1 = this.f1s(_this__u8e3s4.m1v_1
|
|
857
|
+
var tmp_0 = emitWrap(_this__u8e3s4.n1v_1.m1v_1, this);
|
|
858
|
+
var tmp_1 = this.f1s(_this__u8e3s4.n1v_1.m1v_1);
|
|
859
859
|
Companion_getInstance_4();
|
|
860
|
-
tmp = trimMargin('\n |if (request.getContent().type().equals("' + _this__u8e3s4.
|
|
860
|
+
tmp = trimMargin('\n |if (request.getContent().type().equals("' + _this__u8e3s4.n1v_1.l1v_1 + '")) {\n |' + ' ' + 'Wirespec.Content<' + tmp_0 + '> content = contentMapper.read(request.getContent(), Wirespec.getType(' + tmp_1 + '.class, ' + _this__u8e3s4.p1v_1 + '));\n |' + ' ' + 'return (Req) new ' + emitWrap(_this__u8e3s4.o1v_1, this) + '(request.getPath(), request.getMethod(), request.getQuery(), request.getHeaders(), content);\n |}\n ');
|
|
861
861
|
}
|
|
862
862
|
return tmp;
|
|
863
863
|
};
|
|
864
864
|
protoOf(JavaEmitter).t1s = function (_this__u8e3s4) {
|
|
865
|
-
var tmp = emitWrap(_this__u8e3s4.
|
|
866
|
-
var tmp_0 = this.i1t(joinToString(_this__u8e3s4.
|
|
867
|
-
var tmp_1 = this.i1t(this.
|
|
868
|
-
var tmp_2 = this.i1t(this.
|
|
869
|
-
return trimMargin('\n |final class ' + _this__u8e3s4.
|
|
870
|
-
};
|
|
871
|
-
protoOf(JavaEmitter).
|
|
872
|
-
var tmp = joinToString(_this__u8e3s4.
|
|
865
|
+
var tmp = emitWrap(_this__u8e3s4.u1v_1, this);
|
|
866
|
+
var tmp_0 = this.i1t(joinToString(_this__u8e3s4.r1v_1, '\n', VOID, VOID, VOID, VOID, JavaEmitter$emit$lambda_13(this)));
|
|
867
|
+
var tmp_1 = this.i1t(this.x1v(_this__u8e3s4.s1v_1));
|
|
868
|
+
var tmp_2 = this.i1t(this.y1v(_this__u8e3s4.t1v_1));
|
|
869
|
+
return trimMargin('\n |final class ' + _this__u8e3s4.q1v_1 + ' implements ' + tmp + ' {\n |' + tmp_0 + '\n |\n |' + tmp_1 + '\n |\n |' + tmp_2 + '\n |\n |' + this.i1t(joinToString(_this__u8e3s4.r1v_1, '\n\n', VOID, VOID, VOID, VOID, JavaEmitter$emit$lambda_14(this))) + '\n |}\n ');
|
|
870
|
+
};
|
|
871
|
+
protoOf(JavaEmitter).x1v = function (_this__u8e3s4) {
|
|
872
|
+
var tmp = joinToString(_this__u8e3s4.a1w_1, ', ', VOID, VOID, VOID, VOID, JavaEmitter$emit$lambda_15(this));
|
|
873
873
|
Companion_getInstance_4();
|
|
874
874
|
Companion_getInstance_4();
|
|
875
875
|
Companion_getInstance_4();
|
|
876
|
-
return trimMargin('\n |public ' + _this__u8e3s4.
|
|
876
|
+
return trimMargin('\n |public ' + _this__u8e3s4.z1v_1 + '(' + tmp + ') {\n |' + ' ' + 'this.status = status;\n |' + ' ' + 'this.headers = headers;\n |' + ' ' + 'this.content = content;\n |}\n ');
|
|
877
877
|
};
|
|
878
|
-
protoOf(JavaEmitter).
|
|
879
|
-
var tmp = sanitizeSymbol(_this__u8e3s4.
|
|
880
|
-
var tmp_0 = this.i1t(joinToString(_this__u8e3s4.
|
|
878
|
+
protoOf(JavaEmitter).y1v = function (_this__u8e3s4) {
|
|
879
|
+
var tmp = sanitizeSymbol(_this__u8e3s4.d1w_1, this);
|
|
880
|
+
var tmp_0 = this.i1t(joinToString(_this__u8e3s4.e1w_1, ',\n', VOID, VOID, VOID, VOID, JavaEmitter$emit$lambda_16(this)));
|
|
881
881
|
Companion_getInstance_4();
|
|
882
|
-
var tmp_1 = Companion_getInstance_4().
|
|
882
|
+
var tmp_1 = Companion_getInstance_4().i1w(_this__u8e3s4.f1w_1) ? _this__u8e3s4.f1w_1 : 'status';
|
|
883
883
|
Companion_getInstance_4();
|
|
884
|
-
var tmp_2 = joinToString(_this__u8e3s4.
|
|
884
|
+
var tmp_2 = joinToString(_this__u8e3s4.g1w_1, ', ', VOID, VOID, VOID, VOID, JavaEmitter$emit$lambda_17(this));
|
|
885
885
|
Companion_getInstance_4();
|
|
886
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
887
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : this.
|
|
886
|
+
var tmp0_safe_receiver = _this__u8e3s4.h1w_1;
|
|
887
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : this.h1v(tmp0_safe_receiver);
|
|
888
888
|
return trimMargin('\n |public ' + tmp + '(\n |' + tmp_0 + '\n |) {\n |' + ' ' + 'this.status = ' + tmp_1 + ';\n |' + ' ' + 'this.headers = java.util.Map.ofEntries(' + tmp_2 + ');\n |' + ' ' + 'this.content = ' + (tmp1_elvis_lhs == null ? 'null' : tmp1_elvis_lhs) + ';\n |}\n ');
|
|
889
889
|
};
|
|
890
|
-
protoOf(JavaEmitter).
|
|
890
|
+
protoOf(JavaEmitter).o1u = function (_this__u8e3s4) {
|
|
891
891
|
Companion_getInstance_4();
|
|
892
|
-
var tmp = this.
|
|
892
|
+
var tmp = this.k1v(joinToString(_this__u8e3s4.k1w_1, '\n', VOID, VOID, VOID, VOID, JavaEmitter$emit$lambda_18(this)), 2);
|
|
893
893
|
Companion_getInstance_4();
|
|
894
894
|
Companion_getInstance_4();
|
|
895
895
|
Companion_getInstance_4();
|
|
896
|
-
return trimMargin('\n |static <B, Res extends Response<?>> Function<Wirespec.Response<B>, Res> ' + _this__u8e3s4.
|
|
896
|
+
return trimMargin('\n |static <B, Res extends Response<?>> Function<Wirespec.Response<B>, Res> ' + _this__u8e3s4.j1w_1 + '(Wirespec.ContentMapper<B> contentMapper) {\n |' + ' ' + 'return response -> {\n |' + tmp + '\n |' + ' ' + ' ' + 'throw new IllegalStateException("Unknown response type");\n |' + ' ' + '};\n |}\n ');
|
|
897
897
|
};
|
|
898
898
|
protoOf(JavaEmitter).w1s = function (_this__u8e3s4) {
|
|
899
899
|
var tmp;
|
|
900
|
-
if (_this__u8e3s4.
|
|
901
|
-
var tmp_0 = Companion_getInstance_4().
|
|
900
|
+
if (_this__u8e3s4.m1w_1 == null) {
|
|
901
|
+
var tmp_0 = Companion_getInstance_4().i1w(_this__u8e3s4.l1w_1) ? 'response.getStatus() == ' + _this__u8e3s4.l1w_1 + ' && ' : '';
|
|
902
902
|
Companion_getInstance_4();
|
|
903
|
-
tmp = trimMargin('\n |if (' + tmp_0 + 'response.getContent() == null) {\n |' + ' ' + 'return (Res) new ' + emitWrap(_this__u8e3s4.
|
|
903
|
+
tmp = trimMargin('\n |if (' + tmp_0 + 'response.getContent() == null) {\n |' + ' ' + 'return (Res) new ' + emitWrap(_this__u8e3s4.n1w_1, this) + '(response.getStatus(), response.getHeaders(), null);\n |}\n ');
|
|
904
904
|
} else {
|
|
905
|
-
var tmp_1 = Companion_getInstance_4().
|
|
905
|
+
var tmp_1 = Companion_getInstance_4().i1w(_this__u8e3s4.l1w_1) ? 'response.getStatus() == ' + _this__u8e3s4.l1w_1 + ' && ' : '';
|
|
906
906
|
Companion_getInstance_4();
|
|
907
|
-
var tmp_2 = emitWrap(_this__u8e3s4.
|
|
908
|
-
var tmp_3 = this.f1s(_this__u8e3s4.
|
|
907
|
+
var tmp_2 = emitWrap(_this__u8e3s4.m1w_1.m1v_1, this);
|
|
908
|
+
var tmp_3 = this.f1s(_this__u8e3s4.m1w_1.m1v_1);
|
|
909
909
|
Companion_getInstance_4();
|
|
910
|
-
tmp = trimMargin('\n |if (' + tmp_1 + 'response.getContent().type().equals("' + _this__u8e3s4.
|
|
910
|
+
tmp = trimMargin('\n |if (' + tmp_1 + 'response.getContent().type().equals("' + _this__u8e3s4.m1w_1.l1v_1 + '")) {\n |' + ' ' + 'Wirespec.Content<' + tmp_2 + '> content = contentMapper.read(response.getContent(), Wirespec.getType(' + tmp_3 + '.class, ' + _this__u8e3s4.o1w_1 + '));\n |' + ' ' + 'return (Res) new ' + emitWrap(_this__u8e3s4.n1w_1, this) + '(response.getStatus(), response.getHeaders(), content);\n |}\n ');
|
|
911
911
|
}
|
|
912
912
|
return tmp;
|
|
913
913
|
};
|
|
914
914
|
protoOf(JavaEmitter).s1s = function (_this__u8e3s4) {
|
|
915
|
-
return trimMargin('\n |sealed interface ' + emitWrap(_this__u8e3s4.
|
|
915
|
+
return trimMargin('\n |sealed interface ' + emitWrap(_this__u8e3s4.p1w_1, this) + ' extends ' + emitWrap(_this__u8e3s4.q1w_1, this) + ' {\n |};\n ');
|
|
916
916
|
};
|
|
917
917
|
protoOf(JavaEmitter).u1s = function (_this__u8e3s4) {
|
|
918
|
-
return emitWrap(_this__u8e3s4.
|
|
918
|
+
return emitWrap(_this__u8e3s4.s1w_1, this) + ' ' + sanitizeIdentifier(_this__u8e3s4.r1w_1, this);
|
|
919
919
|
};
|
|
920
|
-
protoOf(JavaEmitter).
|
|
920
|
+
protoOf(JavaEmitter).t1w = function (_this__u8e3s4) {
|
|
921
921
|
// Inline function 'kotlin.text.orEmpty' call
|
|
922
922
|
// Inline function 'kotlin.takeIf' call
|
|
923
|
-
var tmp0_takeIf = _this__u8e3s4.
|
|
923
|
+
var tmp0_takeIf = _this__u8e3s4.u1w_1;
|
|
924
924
|
// Inline function 'kotlin.contracts.contract' call
|
|
925
925
|
var tmp;
|
|
926
926
|
// Inline function 'community.flock.wirespec.compiler.core.emit.JavaEmitter.emit.<anonymous>' call
|
|
@@ -943,13 +943,13 @@
|
|
|
943
943
|
protoOf(JavaEmitter).f1s = function (_this__u8e3s4) {
|
|
944
944
|
var tmp;
|
|
945
945
|
if (_this__u8e3s4 instanceof Custom) {
|
|
946
|
-
tmp = this.
|
|
946
|
+
tmp = this.x1w(_this__u8e3s4);
|
|
947
947
|
} else {
|
|
948
948
|
if (_this__u8e3s4 instanceof Language) {
|
|
949
|
-
tmp = this.
|
|
949
|
+
tmp = this.w1w(_this__u8e3s4);
|
|
950
950
|
} else {
|
|
951
951
|
if (_this__u8e3s4 instanceof Wirespec) {
|
|
952
|
-
tmp = this.
|
|
952
|
+
tmp = this.v1w(_this__u8e3s4);
|
|
953
953
|
} else {
|
|
954
954
|
noWhenBranchMatchedException();
|
|
955
955
|
}
|
|
@@ -957,16 +957,16 @@
|
|
|
957
957
|
}
|
|
958
958
|
return tmp;
|
|
959
959
|
};
|
|
960
|
+
protoOf(JavaEmitter).x1w = function (_this__u8e3s4) {
|
|
961
|
+
return trimMargin('\n |' + sanitizeSymbol(_this__u8e3s4.y1w_1, this) + this.t1w(_this__u8e3s4.c1x_1) + '\n ');
|
|
962
|
+
};
|
|
960
963
|
protoOf(JavaEmitter).w1w = function (_this__u8e3s4) {
|
|
961
|
-
return trimMargin('\n |' +
|
|
964
|
+
return trimMargin('\n |' + this.i1x(_this__u8e3s4.d1x_1) + this.t1w(_this__u8e3s4.h1x_1) + '\n ');
|
|
962
965
|
};
|
|
963
966
|
protoOf(JavaEmitter).v1w = function (_this__u8e3s4) {
|
|
964
|
-
return
|
|
967
|
+
return 'Wirespec.' + _this__u8e3s4.j1x_1 + this.t1w(_this__u8e3s4.n1x_1);
|
|
965
968
|
};
|
|
966
|
-
protoOf(JavaEmitter).
|
|
967
|
-
return 'Wirespec.' + _this__u8e3s4.i1x_1 + this.s1w(_this__u8e3s4.m1x_1);
|
|
968
|
-
};
|
|
969
|
-
protoOf(JavaEmitter).h1x = function (_this__u8e3s4) {
|
|
969
|
+
protoOf(JavaEmitter).i1x = function (_this__u8e3s4) {
|
|
970
970
|
var tmp;
|
|
971
971
|
switch (_this__u8e3s4.c9_1) {
|
|
972
972
|
case 0:
|
|
@@ -1005,9 +1005,9 @@
|
|
|
1005
1005
|
}
|
|
1006
1006
|
return tmp;
|
|
1007
1007
|
};
|
|
1008
|
-
protoOf(JavaEmitter).
|
|
1008
|
+
protoOf(JavaEmitter).g1v = function (_this__u8e3s4) {
|
|
1009
1009
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1010
|
-
var tmp0_flatMap = _this__u8e3s4.
|
|
1010
|
+
var tmp0_flatMap = _this__u8e3s4.o1x_1;
|
|
1011
1011
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1012
1012
|
var tmp0_flatMapTo = ArrayList_init_$Create$_0();
|
|
1013
1013
|
var tmp0_iterator = tmp0_flatMap.v();
|
|
@@ -1020,8 +1020,8 @@
|
|
|
1020
1020
|
var tmp = tmp0_flatMapTo;
|
|
1021
1021
|
return joinToString(tmp, ' + ', VOID, VOID, VOID, VOID, JavaEmitter$emit$lambda_20);
|
|
1022
1022
|
};
|
|
1023
|
-
protoOf(JavaEmitter).
|
|
1024
|
-
return 'new Wirespec.Content("' + _this__u8e3s4.
|
|
1023
|
+
protoOf(JavaEmitter).h1v = function (_this__u8e3s4) {
|
|
1024
|
+
return 'new Wirespec.Content("' + _this__u8e3s4.l1v_1 + '", body)';
|
|
1025
1025
|
};
|
|
1026
1026
|
protoOf(JavaEmitter).q1s = function (_this__u8e3s4) {
|
|
1027
1027
|
return (_this__u8e3s4.l1s_1 ? 'private ' : '') + (_this__u8e3s4.m1s_1 ? 'final ' : '') + emitWrap(_this__u8e3s4.j1s_1, this) + ' ' + sanitizeIdentifier(_this__u8e3s4.i1s_1, this);
|
|
@@ -1061,7 +1061,7 @@
|
|
|
1061
1061
|
return tmp.o1s(sanitizeSymbol_0(sanitizeKeywords_0(joinToString(tmp0_mapIndexedTo, ''), $this), $this));
|
|
1062
1062
|
}
|
|
1063
1063
|
function sanitizeKeywords_0(_this__u8e3s4, $this) {
|
|
1064
|
-
return Companion_getInstance_1().
|
|
1064
|
+
return Companion_getInstance_1().t1x_1.r(_this__u8e3s4) ? '`' + _this__u8e3s4 + '`' : _this__u8e3s4;
|
|
1065
1065
|
}
|
|
1066
1066
|
function sanitizeSymbol_0(_this__u8e3s4, $this) {
|
|
1067
1067
|
var tmp = split(_this__u8e3s4, ['.', ' ']);
|
|
@@ -1087,7 +1087,7 @@
|
|
|
1087
1087
|
}
|
|
1088
1088
|
function Companion_0() {
|
|
1089
1089
|
Companion_instance_0 = this;
|
|
1090
|
-
this.
|
|
1090
|
+
this.t1x_1 = listOf(['as', 'break', 'class', 'continue', 'do', 'else', 'false', 'for', 'fun', 'if', 'in', 'interface', 'internal', 'is', 'null', 'object', 'open', 'package', 'return', 'super', 'this', 'throw', 'true', 'try', 'typealias', 'typeof', 'val', 'var', 'when', 'while']);
|
|
1091
1091
|
}
|
|
1092
1092
|
var Companion_instance_0;
|
|
1093
1093
|
function Companion_getInstance_1() {
|
|
@@ -1208,8 +1208,8 @@
|
|
|
1208
1208
|
packageName = packageName === VOID ? get_DEFAULT_PACKAGE_STRING() : packageName;
|
|
1209
1209
|
logger = logger === VOID ? get_noLogger() : logger;
|
|
1210
1210
|
Emitter.call(this, logger, false);
|
|
1211
|
-
this.
|
|
1212
|
-
this.
|
|
1211
|
+
this.r1x_1 = packageName;
|
|
1212
|
+
this.s1x_1 = '\nimport community.flock.wirespec.Wirespec\n';
|
|
1213
1213
|
}
|
|
1214
1214
|
protoOf(KotlinEmitter).z1s = function (_this__u8e3s4) {
|
|
1215
1215
|
var tmp;
|
|
@@ -1249,7 +1249,7 @@
|
|
|
1249
1249
|
var tmp = sanitizeSymbol_0(item.a1t_1, this);
|
|
1250
1250
|
var tmp$ret$0;
|
|
1251
1251
|
// Inline function 'kotlin.text.trimStart' call
|
|
1252
|
-
var tmp0_trimStart = trimMargin('\n |' + (isBlank(this.
|
|
1252
|
+
var tmp0_trimStart = trimMargin('\n |' + (isBlank(this.r1x_1) ? '' : 'package ' + this.r1x_1) + '\n |' + (Companion_getInstance_4().z1r(ast) ? this.s1x_1 : '') + '\n |' + item.b1t_1 + '\n |\n ');
|
|
1253
1253
|
tmp$ret$0 = toString(trimStart(isCharSequence(tmp0_trimStart) ? tmp0_trimStart : THROW_CCE()));
|
|
1254
1254
|
tmp$ret$1 = new Emitted(tmp, tmp$ret$0);
|
|
1255
1255
|
tmp0_mapTo.s(tmp$ret$1);
|
|
@@ -1303,101 +1303,101 @@
|
|
|
1303
1303
|
protoOf(KotlinEmitter).x1t = function (_this__u8e3s4) {
|
|
1304
1304
|
return trimMargin('\n |sealed interface ' + _this__u8e3s4.y1t_1 + '\n ');
|
|
1305
1305
|
};
|
|
1306
|
-
protoOf(KotlinEmitter).
|
|
1307
|
-
return this.
|
|
1306
|
+
protoOf(KotlinEmitter).a1u = function (_this__u8e3s4) {
|
|
1307
|
+
return this.c1u(ClassModelTransformer_getInstance().b1u(_this__u8e3s4));
|
|
1308
1308
|
};
|
|
1309
|
-
protoOf(KotlinEmitter).
|
|
1310
|
-
var tmp = sanitizeSymbol_0(_this__u8e3s4.
|
|
1311
|
-
var tmp_0 = joinToString(_this__u8e3s4.
|
|
1309
|
+
protoOf(KotlinEmitter).c1u = function (_this__u8e3s4) {
|
|
1310
|
+
var tmp = sanitizeSymbol_0(_this__u8e3s4.d1u_1, this);
|
|
1311
|
+
var tmp_0 = joinToString(_this__u8e3s4.m1u_1, ', ', VOID, VOID, VOID, VOID, KotlinEmitter$emit$lambda_2(this));
|
|
1312
1312
|
Companion_getInstance_4();
|
|
1313
|
-
var tmp_1 = this.i1t(joinToString(_this__u8e3s4.
|
|
1313
|
+
var tmp_1 = this.i1t(joinToString(_this__u8e3s4.h1u_1, '\n', VOID, VOID, VOID, VOID, KotlinEmitter$emit$lambda_3(this)));
|
|
1314
1314
|
Companion_getInstance_4();
|
|
1315
|
-
var tmp_2 = this.i1t(joinToString(_this__u8e3s4.
|
|
1316
|
-
var tmp_3 = this.i1t(joinToString(_this__u8e3s4.
|
|
1315
|
+
var tmp_2 = this.i1t(joinToString(_this__u8e3s4.i1u_1, '\n', VOID, VOID, VOID, VOID, KotlinEmitter$emit$lambda_4(this)));
|
|
1316
|
+
var tmp_3 = this.i1t(joinToString(_this__u8e3s4.j1u_1, '\n', VOID, VOID, VOID, VOID, KotlinEmitter$emit$lambda_5(this)));
|
|
1317
1317
|
Companion_getInstance_4();
|
|
1318
1318
|
Companion_getInstance_4();
|
|
1319
1319
|
Companion_getInstance_4();
|
|
1320
1320
|
Companion_getInstance_4();
|
|
1321
1321
|
Companion_getInstance_4();
|
|
1322
|
-
var tmp_4 = this.
|
|
1323
|
-
var tmp_5 = this.
|
|
1322
|
+
var tmp_4 = this.k1v(this.n1u(_this__u8e3s4.k1u_1), 2);
|
|
1323
|
+
var tmp_5 = this.k1v(this.o1u(_this__u8e3s4.l1u_1), 2);
|
|
1324
1324
|
Companion_getInstance_4();
|
|
1325
1325
|
Companion_getInstance_4();
|
|
1326
|
-
return trimMargin('\n |interface ' + tmp + ' : ' + tmp_0 + ' {\n |' + ' ' + 'sealed interface Request<T> : Wirespec.Request<T>\n |' + tmp_1 + '\n |\n |' + ' ' + 'sealed interface Response<T> : Wirespec.Response<T>\n |' + tmp_2 + '\n |' + tmp_3 + '\n |' + ' ' + 'companion object {\n |' + ' ' + ' ' + 'const val PATH = "' + _this__u8e3s4.
|
|
1326
|
+
return trimMargin('\n |interface ' + tmp + ' : ' + tmp_0 + ' {\n |' + ' ' + 'sealed interface Request<T> : Wirespec.Request<T>\n |' + tmp_1 + '\n |\n |' + ' ' + 'sealed interface Response<T> : Wirespec.Response<T>\n |' + tmp_2 + '\n |' + tmp_3 + '\n |' + ' ' + 'companion object {\n |' + ' ' + ' ' + 'const val PATH = "' + _this__u8e3s4.e1u_1 + '"\n |' + ' ' + ' ' + 'const val METHOD = "' + _this__u8e3s4.f1u_1 + '"\n |' + tmp_4 + '\n |' + tmp_5 + '\n |' + ' ' + '}\n |' + ' ' + 'suspend fun ' + _this__u8e3s4.g1u_1 + '(request: Request<*>): Response<*>\n |}\n ');
|
|
1327
1327
|
};
|
|
1328
1328
|
protoOf(KotlinEmitter).r1s = function (_this__u8e3s4) {
|
|
1329
|
-
var tmp = sanitizeSymbol_0(_this__u8e3s4.
|
|
1330
|
-
var tmp_0 = this.i1t(joinToString(_this__u8e3s4.
|
|
1331
|
-
return trimMargin('\n |data class ' + tmp + '(\n |' + tmp_0 + '\n |) : ' + joinToString(_this__u8e3s4.
|
|
1329
|
+
var tmp = sanitizeSymbol_0(_this__u8e3s4.p1u_1, this);
|
|
1330
|
+
var tmp_0 = this.i1t(joinToString(_this__u8e3s4.q1u_1, ',\n', VOID, VOID, VOID, VOID, KotlinEmitter$emit$lambda_6(this)));
|
|
1331
|
+
return trimMargin('\n |data class ' + tmp + '(\n |' + tmp_0 + '\n |) : ' + joinToString(_this__u8e3s4.t1u_1, ', ', VOID, VOID, VOID, VOID, KotlinEmitter$emit$lambda_7(this)) + ' {\n |' + this.i1t(this.v1u(_this__u8e3s4.s1u_1)) + '\n |}\n ');
|
|
1332
1332
|
};
|
|
1333
|
-
protoOf(KotlinEmitter).
|
|
1334
|
-
var tmp = joinToString(_this__u8e3s4.
|
|
1333
|
+
protoOf(KotlinEmitter).v1u = function (_this__u8e3s4) {
|
|
1334
|
+
var tmp = joinToString(_this__u8e3s4.a1v_1, ', ', VOID, VOID, VOID, VOID, KotlinEmitter$emit$lambda_8(this));
|
|
1335
1335
|
Companion_getInstance_4();
|
|
1336
|
-
var tmp_0 = this.
|
|
1336
|
+
var tmp_0 = this.g1v(_this__u8e3s4.b1v_1);
|
|
1337
1337
|
Companion_getInstance_4();
|
|
1338
1338
|
Companion_getInstance_4();
|
|
1339
|
-
var tmp_1 = joinToString(_this__u8e3s4.
|
|
1339
|
+
var tmp_1 = joinToString(_this__u8e3s4.d1v_1, ', ', VOID, VOID, VOID, VOID, KotlinEmitter$emit$lambda_9);
|
|
1340
1340
|
Companion_getInstance_4();
|
|
1341
|
-
var tmp_2 = joinToString(_this__u8e3s4.
|
|
1341
|
+
var tmp_2 = joinToString(_this__u8e3s4.e1v_1, ', ', VOID, VOID, VOID, VOID, KotlinEmitter$emit$lambda_10);
|
|
1342
1342
|
Companion_getInstance_4();
|
|
1343
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1344
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : this.
|
|
1345
|
-
return trimMargin('\n |constructor(' + tmp + ') : this(\n |' + ' ' + 'path = "' + tmp_0 + '",\n |' + ' ' + 'method = Wirespec.Method.' + _this__u8e3s4.
|
|
1343
|
+
var tmp0_safe_receiver = _this__u8e3s4.f1v_1;
|
|
1344
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : this.h1v(tmp0_safe_receiver);
|
|
1345
|
+
return trimMargin('\n |constructor(' + tmp + ') : this(\n |' + ' ' + 'path = "' + tmp_0 + '",\n |' + ' ' + 'method = Wirespec.Method.' + _this__u8e3s4.c1v_1 + ',\n |' + ' ' + 'query = mapOf<String, List<Any?>>(' + tmp_1 + '),\n |' + ' ' + 'headers = mapOf<String, List<Any?>>(' + tmp_2 + '),\n |' + ' ' + 'content = ' + (tmp1_elvis_lhs == null ? 'null' : tmp1_elvis_lhs) + '\n |)\n ');
|
|
1346
1346
|
};
|
|
1347
1347
|
protoOf(KotlinEmitter).s1s = function (_this__u8e3s4) {
|
|
1348
|
-
return trimMargin('\n |sealed interface ' + emitWrap_0(_this__u8e3s4.
|
|
1348
|
+
return trimMargin('\n |sealed interface ' + emitWrap_0(_this__u8e3s4.p1w_1, this) + ' : ' + emitWrap_0(_this__u8e3s4.q1w_1, this) + '\n ');
|
|
1349
1349
|
};
|
|
1350
1350
|
protoOf(KotlinEmitter).t1s = function (_this__u8e3s4) {
|
|
1351
|
-
var tmp = sanitizeSymbol_0(_this__u8e3s4.
|
|
1352
|
-
return trimMargin('\n |data class ' + tmp + '(' + joinToString(_this__u8e3s4.
|
|
1351
|
+
var tmp = sanitizeSymbol_0(_this__u8e3s4.q1v_1, this);
|
|
1352
|
+
return trimMargin('\n |data class ' + tmp + '(' + joinToString(_this__u8e3s4.r1v_1, ', ', VOID, VOID, VOID, VOID, KotlinEmitter$emit$lambda_11(this)) + ') : ' + emitWrap_0(_this__u8e3s4.u1v_1, this) + ' {\n |' + this.i1t(this.y1v(_this__u8e3s4.t1v_1)) + '\n |}\n ');
|
|
1353
1353
|
};
|
|
1354
|
-
protoOf(KotlinEmitter).
|
|
1355
|
-
var tmp = joinToString(_this__u8e3s4.
|
|
1354
|
+
protoOf(KotlinEmitter).y1v = function (_this__u8e3s4) {
|
|
1355
|
+
var tmp = joinToString(_this__u8e3s4.e1w_1, ', ', VOID, VOID, VOID, VOID, KotlinEmitter$emit$lambda_12(this));
|
|
1356
1356
|
Companion_getInstance_4();
|
|
1357
|
-
var tmp_0 = Companion_getInstance_4().
|
|
1357
|
+
var tmp_0 = Companion_getInstance_4().i1w(_this__u8e3s4.f1w_1) ? _this__u8e3s4.f1w_1 : 'status';
|
|
1358
1358
|
Companion_getInstance_4();
|
|
1359
|
-
var tmp_1 = joinToString(_this__u8e3s4.
|
|
1359
|
+
var tmp_1 = joinToString(_this__u8e3s4.g1w_1, ', ', VOID, VOID, VOID, VOID, KotlinEmitter$emit$lambda_13(this));
|
|
1360
1360
|
Companion_getInstance_4();
|
|
1361
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1362
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : this.
|
|
1361
|
+
var tmp0_safe_receiver = _this__u8e3s4.h1w_1;
|
|
1362
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : this.h1v(tmp0_safe_receiver);
|
|
1363
1363
|
return trimMargin('\n |constructor(' + tmp + ') : this(\n |' + ' ' + 'status = ' + tmp_0 + ',\n |' + ' ' + 'headers = mapOf<String, List<Any?>>(' + tmp_1 + '),\n |' + ' ' + 'content = ' + (tmp1_elvis_lhs == null ? 'null' : tmp1_elvis_lhs) + '\n |)\n ');
|
|
1364
1364
|
};
|
|
1365
|
-
protoOf(KotlinEmitter).f1v = function (_this__u8e3s4) {
|
|
1366
|
-
return joinToString(_this__u8e3s4.n1x_1, '/', '/', VOID, VOID, VOID, KotlinEmitter$emit$lambda_14);
|
|
1367
|
-
};
|
|
1368
1365
|
protoOf(KotlinEmitter).g1v = function (_this__u8e3s4) {
|
|
1369
|
-
return
|
|
1366
|
+
return joinToString(_this__u8e3s4.o1x_1, '/', '/', VOID, VOID, VOID, KotlinEmitter$emit$lambda_14);
|
|
1370
1367
|
};
|
|
1371
|
-
protoOf(KotlinEmitter).
|
|
1368
|
+
protoOf(KotlinEmitter).h1v = function (_this__u8e3s4) {
|
|
1369
|
+
return 'Wirespec.Content("' + _this__u8e3s4.l1v_1 + '", body)';
|
|
1370
|
+
};
|
|
1371
|
+
protoOf(KotlinEmitter).n1u = function (_this__u8e3s4) {
|
|
1372
1372
|
Companion_getInstance_4();
|
|
1373
|
-
var tmp = this.
|
|
1373
|
+
var tmp = this.k1v(joinToString(_this__u8e3s4.j1v_1, '\n', VOID, VOID, VOID, VOID, KotlinEmitter$emit$lambda_15(this)), 2);
|
|
1374
1374
|
Companion_getInstance_4();
|
|
1375
1375
|
Companion_getInstance_4();
|
|
1376
1376
|
Companion_getInstance_4();
|
|
1377
|
-
return trimMargin('\n |fun <B> ' + _this__u8e3s4.
|
|
1377
|
+
return trimMargin('\n |fun <B> ' + _this__u8e3s4.i1v_1 + '(contentMapper: Wirespec.ContentMapper<B>) = { request: Wirespec.Request<B> ->\n |' + ' ' + 'when {\n |' + tmp + '\n |' + ' ' + ' ' + 'else -> error("Cannot map request")\n |' + ' ' + '}\n |}\n ');
|
|
1378
1378
|
};
|
|
1379
1379
|
protoOf(KotlinEmitter).v1s = function (_this__u8e3s4) {
|
|
1380
|
-
return _this__u8e3s4.
|
|
1380
|
+
return _this__u8e3s4.n1v_1 == null ? 'request.content == null -> ' + emitWrap_0(_this__u8e3s4.o1v_1, this) + '(request.path, request.method, request.query, request.headers)' : trimMargin('\n |request.content?.type == "' + _this__u8e3s4.n1v_1.l1v_1 + '" -> contentMapper\n | .read<' + emitWrap_0(_this__u8e3s4.n1v_1.m1v_1, this) + '>(request.content!!, Wirespec.getType(' + this.f1s(_this__u8e3s4.n1v_1.m1v_1) + '::class.java, ' + _this__u8e3s4.p1v_1 + '))\n | .let { ' + emitWrap_0(_this__u8e3s4.o1v_1, this) + '(request.path, request.method, request.query, request.headers, it) }\n ');
|
|
1381
1381
|
};
|
|
1382
|
-
protoOf(KotlinEmitter).
|
|
1382
|
+
protoOf(KotlinEmitter).o1u = function (_this__u8e3s4) {
|
|
1383
1383
|
Companion_getInstance_4();
|
|
1384
|
-
var tmp = this.
|
|
1384
|
+
var tmp = this.k1v(joinToString(_this__u8e3s4.k1w_1, '\n', VOID, VOID, VOID, VOID, KotlinEmitter$emit$lambda_16(this)), 2);
|
|
1385
1385
|
Companion_getInstance_4();
|
|
1386
1386
|
Companion_getInstance_4();
|
|
1387
1387
|
Companion_getInstance_4();
|
|
1388
|
-
return trimMargin('\n |fun <B> ' + _this__u8e3s4.
|
|
1388
|
+
return trimMargin('\n |fun <B> ' + _this__u8e3s4.j1w_1 + '(contentMapper: Wirespec.ContentMapper<B>) = { response: Wirespec.Response<B> ->\n |' + ' ' + 'when {\n |' + tmp + '\n |' + ' ' + ' ' + 'else -> error("Cannot map response with status ${response.status}")\n |' + ' ' + '}\n |}\n ');
|
|
1389
1389
|
};
|
|
1390
1390
|
protoOf(KotlinEmitter).w1s = function (_this__u8e3s4) {
|
|
1391
|
-
return _this__u8e3s4.
|
|
1391
|
+
return _this__u8e3s4.m1w_1 == null ? trimMargin('\n |' + (Companion_getInstance_4().i1w(_this__u8e3s4.l1w_1) ? 'response.status == ' + _this__u8e3s4.l1w_1 + ' && ' : '') + 'response.content == null -> ' + emitWrap_0(_this__u8e3s4.n1w_1, this) + '(response.status, response.headers, null)\n ') : trimMargin('\n |' + (Companion_getInstance_4().i1w(_this__u8e3s4.l1w_1) ? 'response.status == ' + _this__u8e3s4.l1w_1 + ' && ' : '') + 'response.content?.type == "' + _this__u8e3s4.m1w_1.l1v_1 + '" -> contentMapper\n | .read<' + emitWrap_0(_this__u8e3s4.m1w_1.m1v_1, this) + '>(response.content!!, Wirespec.getType(' + this.f1s(_this__u8e3s4.m1w_1.m1v_1) + '::class.java, false))\n | .let { ' + emitWrap_0(_this__u8e3s4.n1w_1, this) + '(response.status, response.headers, it) }\n ');
|
|
1392
1392
|
};
|
|
1393
1393
|
protoOf(KotlinEmitter).u1s = function (_this__u8e3s4) {
|
|
1394
|
-
return sanitizeIdentifier_0(_this__u8e3s4.
|
|
1394
|
+
return sanitizeIdentifier_0(_this__u8e3s4.r1w_1, this) + ': ' + emitWrap_0(_this__u8e3s4.s1w_1, this);
|
|
1395
1395
|
};
|
|
1396
|
-
protoOf(KotlinEmitter).
|
|
1396
|
+
protoOf(KotlinEmitter).t1w = function (_this__u8e3s4) {
|
|
1397
1397
|
var tmp;
|
|
1398
1398
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
1399
|
-
if (!_this__u8e3s4.
|
|
1400
|
-
tmp = joinToString(_this__u8e3s4.
|
|
1399
|
+
if (!_this__u8e3s4.u1w_1.c1()) {
|
|
1400
|
+
tmp = joinToString(_this__u8e3s4.u1w_1, ', ', '<', '>', VOID, VOID, KotlinEmitter$emit$lambda_17(this));
|
|
1401
1401
|
} else {
|
|
1402
1402
|
tmp = '';
|
|
1403
1403
|
}
|
|
@@ -1406,13 +1406,13 @@
|
|
|
1406
1406
|
protoOf(KotlinEmitter).f1s = function (_this__u8e3s4) {
|
|
1407
1407
|
var tmp;
|
|
1408
1408
|
if (_this__u8e3s4 instanceof Custom) {
|
|
1409
|
-
tmp = this.
|
|
1409
|
+
tmp = this.x1w(_this__u8e3s4);
|
|
1410
1410
|
} else {
|
|
1411
1411
|
if (_this__u8e3s4 instanceof Language) {
|
|
1412
|
-
tmp = this.
|
|
1412
|
+
tmp = this.w1w(_this__u8e3s4);
|
|
1413
1413
|
} else {
|
|
1414
1414
|
if (_this__u8e3s4 instanceof Wirespec) {
|
|
1415
|
-
tmp = this.
|
|
1415
|
+
tmp = this.v1w(_this__u8e3s4);
|
|
1416
1416
|
} else {
|
|
1417
1417
|
noWhenBranchMatchedException();
|
|
1418
1418
|
}
|
|
@@ -1420,16 +1420,16 @@
|
|
|
1420
1420
|
}
|
|
1421
1421
|
return tmp;
|
|
1422
1422
|
};
|
|
1423
|
-
protoOf(KotlinEmitter).
|
|
1424
|
-
return 'Wirespec.' + _this__u8e3s4.
|
|
1423
|
+
protoOf(KotlinEmitter).v1w = function (_this__u8e3s4) {
|
|
1424
|
+
return 'Wirespec.' + _this__u8e3s4.j1x_1 + this.t1w(_this__u8e3s4.n1x_1);
|
|
1425
1425
|
};
|
|
1426
|
-
protoOf(KotlinEmitter).
|
|
1427
|
-
return trimMargin('\n |' + sanitizeSymbol_0(_this__u8e3s4.
|
|
1426
|
+
protoOf(KotlinEmitter).x1w = function (_this__u8e3s4) {
|
|
1427
|
+
return trimMargin('\n |' + sanitizeSymbol_0(_this__u8e3s4.y1w_1, this) + this.t1w(_this__u8e3s4.c1x_1) + '\n ');
|
|
1428
1428
|
};
|
|
1429
|
-
protoOf(KotlinEmitter).
|
|
1430
|
-
return trimMargin('\n |' + this.
|
|
1429
|
+
protoOf(KotlinEmitter).w1w = function (_this__u8e3s4) {
|
|
1430
|
+
return trimMargin('\n |' + this.i1x(_this__u8e3s4.d1x_1) + this.t1w(_this__u8e3s4.h1x_1) + '\n ');
|
|
1431
1431
|
};
|
|
1432
|
-
protoOf(KotlinEmitter).
|
|
1432
|
+
protoOf(KotlinEmitter).i1x = function (_this__u8e3s4) {
|
|
1433
1433
|
var tmp;
|
|
1434
1434
|
switch (_this__u8e3s4.c9_1) {
|
|
1435
1435
|
case 0:
|
|
@@ -1473,7 +1473,7 @@
|
|
|
1473
1473
|
};
|
|
1474
1474
|
function Companion_1() {
|
|
1475
1475
|
Companion_instance_1 = this;
|
|
1476
|
-
this.
|
|
1476
|
+
this.u1x_1 = listOf(['abstract', 'case', 'catch', 'class', 'def', 'do', 'else', 'extends', 'false', 'final', 'finally', 'for', 'forSome', 'if', 'implicit', 'import', 'lazy', 'match', 'new', 'null', 'object', 'override', 'package', 'private', 'protected', 'return', 'sealed', 'super', 'this', 'throw', 'trait', 'true', 'try', 'type', 'val', 'var', 'while', 'with', 'yield']);
|
|
1477
1477
|
}
|
|
1478
1478
|
var Companion_instance_1;
|
|
1479
1479
|
function Companion_getInstance_2() {
|
|
@@ -1490,7 +1490,7 @@
|
|
|
1490
1490
|
}
|
|
1491
1491
|
function ScalaEmitter$emit$lambda(this$0) {
|
|
1492
1492
|
return function (it) {
|
|
1493
|
-
return this$0.
|
|
1493
|
+
return this$0.y1x(it);
|
|
1494
1494
|
};
|
|
1495
1495
|
}
|
|
1496
1496
|
function ScalaEmitter$emit$lambda_0($this_emit) {
|
|
@@ -1503,7 +1503,7 @@
|
|
|
1503
1503
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1504
1504
|
tmp$ret$0 = tmp0_uppercase;
|
|
1505
1505
|
tmp$ret$1 = tmp$ret$0.toUpperCase();
|
|
1506
|
-
return ' ' + 'final case object ' + tmp$ret$1 + ' extends ' + $this_emit.
|
|
1506
|
+
return ' ' + 'final case object ' + tmp$ret$1 + ' extends ' + $this_emit.z1x_1 + '(label = "' + it + '")';
|
|
1507
1507
|
};
|
|
1508
1508
|
}
|
|
1509
1509
|
function ScalaEmitter(packageName, logger) {
|
|
@@ -1511,7 +1511,7 @@
|
|
|
1511
1511
|
packageName = packageName === VOID ? get_DEFAULT_PACKAGE_STRING() : packageName;
|
|
1512
1512
|
logger = logger === VOID ? get_noLogger() : logger;
|
|
1513
1513
|
Emitter.call(this, logger);
|
|
1514
|
-
this.
|
|
1514
|
+
this.x1x_1 = packageName;
|
|
1515
1515
|
}
|
|
1516
1516
|
protoOf(ScalaEmitter).z1s = function (_this__u8e3s4) {
|
|
1517
1517
|
var tmp;
|
|
@@ -1548,25 +1548,25 @@
|
|
|
1548
1548
|
var item = tmp0_iterator.y();
|
|
1549
1549
|
var tmp$ret$0;
|
|
1550
1550
|
// Inline function 'community.flock.wirespec.compiler.core.emit.ScalaEmitter.emit.<anonymous>' call
|
|
1551
|
-
tmp$ret$0 = new Emitted(item.a1t_1, isBlank(this.
|
|
1551
|
+
tmp$ret$0 = new Emitted(item.a1t_1, isBlank(this.x1x_1) ? '' : 'package ' + this.x1x_1 + '\n\n' + item.b1t_1);
|
|
1552
1552
|
tmp0_mapTo.s(tmp$ret$0);
|
|
1553
1553
|
}
|
|
1554
1554
|
return tmp0_mapTo;
|
|
1555
1555
|
};
|
|
1556
1556
|
protoOf(ScalaEmitter).c1t = function (_this__u8e3s4, ast) {
|
|
1557
|
-
return trimMargin('case class ' + this.z1s(_this__u8e3s4) + '(\n |' + this.
|
|
1557
|
+
return trimMargin('case class ' + this.z1s(_this__u8e3s4) + '(\n |' + this.d1y(_this__u8e3s4.c1y_1) + '\n |)\n |\n |');
|
|
1558
1558
|
};
|
|
1559
|
-
protoOf(ScalaEmitter).
|
|
1560
|
-
return dropLast(joinToString(_this__u8e3s4.
|
|
1559
|
+
protoOf(ScalaEmitter).d1y = function (_this__u8e3s4) {
|
|
1560
|
+
return dropLast(joinToString(_this__u8e3s4.e1y_1, '\n', VOID, VOID, VOID, VOID, ScalaEmitter$emit$lambda(this)), 1);
|
|
1561
1561
|
};
|
|
1562
|
-
protoOf(ScalaEmitter).
|
|
1562
|
+
protoOf(ScalaEmitter).y1x = function (_this__u8e3s4) {
|
|
1563
1563
|
Companion_getInstance_4();
|
|
1564
|
-
return ' ' + 'val ' + this.
|
|
1565
|
-
};
|
|
1566
|
-
protoOf(ScalaEmitter).h1y = function (_this__u8e3s4) {
|
|
1567
|
-
return Companion_getInstance_2().t1x_1.r(_this__u8e3s4.j1y_1) ? '`' + _this__u8e3s4.j1y_1 + '`' : _this__u8e3s4.j1y_1;
|
|
1564
|
+
return ' ' + 'val ' + this.i1y(_this__u8e3s4.f1y_1) + ': ' + (_this__u8e3s4.h1y_1 ? 'Option[' + this.j1y(_this__u8e3s4.g1y_1) + ']' : this.j1y(_this__u8e3s4.g1y_1)) + ',';
|
|
1568
1565
|
};
|
|
1569
1566
|
protoOf(ScalaEmitter).i1y = function (_this__u8e3s4) {
|
|
1567
|
+
return Companion_getInstance_2().u1x_1.r(_this__u8e3s4.k1y_1) ? '`' + _this__u8e3s4.k1y_1 + '`' : _this__u8e3s4.k1y_1;
|
|
1568
|
+
};
|
|
1569
|
+
protoOf(ScalaEmitter).j1y = function (_this__u8e3s4) {
|
|
1570
1570
|
// Inline function 'kotlin.let' call
|
|
1571
1571
|
var tmp;
|
|
1572
1572
|
if (_this__u8e3s4 instanceof Unit) {
|
|
@@ -1580,7 +1580,7 @@
|
|
|
1580
1580
|
} else {
|
|
1581
1581
|
if (_this__u8e3s4 instanceof Primitive_0) {
|
|
1582
1582
|
var tmp_0;
|
|
1583
|
-
switch (_this__u8e3s4.
|
|
1583
|
+
switch (_this__u8e3s4.l1y_1.c9_1) {
|
|
1584
1584
|
case 0:
|
|
1585
1585
|
tmp_0 = 'String';
|
|
1586
1586
|
break;
|
|
@@ -1614,25 +1614,25 @@
|
|
|
1614
1614
|
// Inline function 'kotlin.contracts.contract' call
|
|
1615
1615
|
// Inline function 'community.flock.wirespec.compiler.core.emit.ScalaEmitter.emit.<anonymous>' call
|
|
1616
1616
|
var tmp = this.z1s(_this__u8e3s4);
|
|
1617
|
-
return trimMargin('\n |sealed abstract class ' + tmp + '(val label: String)\n |object ' + _this__u8e3s4.
|
|
1617
|
+
return trimMargin('\n |sealed abstract class ' + tmp + '(val label: String)\n |object ' + _this__u8e3s4.z1x_1 + ' {\n |' + joinToString(_this__u8e3s4.a1y_1, '\n', VOID, VOID, VOID, VOID, ScalaEmitter$emit$lambda_0(_this__u8e3s4)) + '\n |}\n |');
|
|
1618
1618
|
};
|
|
1619
1619
|
protoOf(ScalaEmitter).j1t = function (_this__u8e3s4) {
|
|
1620
1620
|
var tmp = this.z1s(_this__u8e3s4);
|
|
1621
1621
|
Companion_getInstance_4();
|
|
1622
1622
|
var tmp_0 = this.z1s(_this__u8e3s4);
|
|
1623
1623
|
var tmp_1 = this.z1s(_this__u8e3s4);
|
|
1624
|
-
var tmp_2 = this.
|
|
1624
|
+
var tmp_2 = this.q1y(_this__u8e3s4.p1y_1);
|
|
1625
1625
|
Companion_getInstance_4();
|
|
1626
1626
|
return trimMargin('case class ' + tmp + '(val value: String) {\n |' + ' ' + 'implicit class ' + tmp_0 + 'Ops(val that: ' + tmp_1 + ') {\n |' + tmp_2 + '\n |' + ' ' + '}\n |}\n |\n |');
|
|
1627
1627
|
};
|
|
1628
|
-
protoOf(ScalaEmitter).
|
|
1628
|
+
protoOf(ScalaEmitter).q1y = function (_this__u8e3s4) {
|
|
1629
1629
|
Companion_getInstance_4();
|
|
1630
1630
|
Companion_getInstance_4();
|
|
1631
1631
|
Companion_getInstance_4();
|
|
1632
1632
|
Companion_getInstance_4();
|
|
1633
|
-
return trimMargin(' ' + ' ' + 'val regex = new scala.util.matching.Regex(""' + _this__u8e3s4.
|
|
1633
|
+
return trimMargin(' ' + ' ' + 'val regex = new scala.util.matching.Regex(""' + _this__u8e3s4.r1y_1 + '"")\n |' + ' ' + ' ' + 'regex.findFirstIn(that.value)');
|
|
1634
1634
|
};
|
|
1635
|
-
protoOf(ScalaEmitter).
|
|
1635
|
+
protoOf(ScalaEmitter).a1u = function (_this__u8e3s4) {
|
|
1636
1636
|
return '// TODO("Not yet implemented")\n';
|
|
1637
1637
|
};
|
|
1638
1638
|
protoOf(ScalaEmitter).v1t = function (_this__u8e3s4) {
|
|
@@ -1651,7 +1651,7 @@
|
|
|
1651
1651
|
} else {
|
|
1652
1652
|
if (_this__u8e3s4 instanceof Primitive_0) {
|
|
1653
1653
|
var tmp_0;
|
|
1654
|
-
switch (_this__u8e3s4.
|
|
1654
|
+
switch (_this__u8e3s4.l1y_1.c9_1) {
|
|
1655
1655
|
case 0:
|
|
1656
1656
|
tmp_0 = 'string';
|
|
1657
1657
|
break;
|
|
@@ -1683,10 +1683,10 @@
|
|
|
1683
1683
|
function emitType_0(_this__u8e3s4, $this) {
|
|
1684
1684
|
var tmp;
|
|
1685
1685
|
if (_this__u8e3s4 instanceof Literal_0) {
|
|
1686
|
-
tmp = _this__u8e3s4.
|
|
1686
|
+
tmp = _this__u8e3s4.x1y_1;
|
|
1687
1687
|
} else {
|
|
1688
1688
|
if (_this__u8e3s4 instanceof Param) {
|
|
1689
|
-
tmp = '${' + $this.
|
|
1689
|
+
tmp = '${' + $this.j1y(_this__u8e3s4.t1y_1) + '}';
|
|
1690
1690
|
} else {
|
|
1691
1691
|
noWhenBranchMatchedException();
|
|
1692
1692
|
}
|
|
@@ -1694,14 +1694,14 @@
|
|
|
1694
1694
|
return tmp;
|
|
1695
1695
|
}
|
|
1696
1696
|
function emitName(_this__u8e3s4, $this) {
|
|
1697
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1698
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : $this.
|
|
1697
|
+
var tmp0_safe_receiver = _this__u8e3s4.y1y_1;
|
|
1698
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : $this.z1y(tmp0_safe_receiver);
|
|
1699
1699
|
return 'Request' + (tmp1_elvis_lhs == null ? 'Undefined' : tmp1_elvis_lhs);
|
|
1700
1700
|
}
|
|
1701
1701
|
function emitName_0(_this__u8e3s4, $this) {
|
|
1702
|
-
var tmp = 'Response' + Companion_getInstance_4().n1s(_this__u8e3s4.
|
|
1703
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1704
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : $this.
|
|
1702
|
+
var tmp = 'Response' + Companion_getInstance_4().n1s(_this__u8e3s4.a1z_1);
|
|
1703
|
+
var tmp0_safe_receiver = _this__u8e3s4.c1z_1;
|
|
1704
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : $this.z1y(tmp0_safe_receiver);
|
|
1705
1705
|
return tmp + (tmp1_elvis_lhs == null ? 'Undefined' : tmp1_elvis_lhs);
|
|
1706
1706
|
}
|
|
1707
1707
|
function emitMap(_this__u8e3s4, $this) {
|
|
@@ -1713,10 +1713,10 @@
|
|
|
1713
1713
|
function emit(_this__u8e3s4, $this) {
|
|
1714
1714
|
var tmp;
|
|
1715
1715
|
if (_this__u8e3s4 instanceof Literal_0) {
|
|
1716
|
-
tmp = _this__u8e3s4.
|
|
1716
|
+
tmp = _this__u8e3s4.x1y_1;
|
|
1717
1717
|
} else {
|
|
1718
1718
|
if (_this__u8e3s4 instanceof Param) {
|
|
1719
|
-
tmp = '${props.' + Companion_getInstance_4().o1s(sanitizeSymbol_1(_this__u8e3s4.
|
|
1719
|
+
tmp = '${props.' + Companion_getInstance_4().o1s(sanitizeSymbol_1(_this__u8e3s4.s1y_1.k1y_1, $this)) + '}';
|
|
1720
1720
|
} else {
|
|
1721
1721
|
noWhenBranchMatchedException();
|
|
1722
1722
|
}
|
|
@@ -1726,7 +1726,7 @@
|
|
|
1726
1726
|
function joinParameters(_this__u8e3s4, $this, content, response) {
|
|
1727
1727
|
// Inline function 'kotlin.collections.map' call
|
|
1728
1728
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
1729
|
-
var tmp0_filterIsInstance = _this__u8e3s4.
|
|
1729
|
+
var tmp0_filterIsInstance = _this__u8e3s4.f1z_1;
|
|
1730
1730
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
1731
1731
|
var tmp0_filterIsInstanceTo = ArrayList_init_$Create$_0();
|
|
1732
1732
|
var tmp0_iterator = tmp0_filterIsInstance.v();
|
|
@@ -1743,14 +1743,14 @@
|
|
|
1743
1743
|
var item = tmp0_iterator_0.y();
|
|
1744
1744
|
var tmp$ret$2;
|
|
1745
1745
|
// Inline function 'community.flock.wirespec.compiler.core.emit.TypeScriptEmitter.joinParameters.<anonymous>' call
|
|
1746
|
-
tmp$ret$2 = new Field_0(item.
|
|
1746
|
+
tmp$ret$2 = new Field_0(item.s1y_1, item.t1y_1, false);
|
|
1747
1747
|
tmp0_mapTo.s(tmp$ret$2);
|
|
1748
1748
|
}
|
|
1749
1749
|
var pathField = tmp0_mapTo;
|
|
1750
|
-
var tmp1_elvis_lhs = response == null ? null : response.
|
|
1751
|
-
var parameters = tmp1_elvis_lhs == null ? plus(plus(plus(pathField, _this__u8e3s4.
|
|
1750
|
+
var tmp1_elvis_lhs = response == null ? null : response.b1z_1;
|
|
1751
|
+
var parameters = tmp1_elvis_lhs == null ? plus(plus(plus(pathField, _this__u8e3s4.g1z_1), _this__u8e3s4.h1z_1), _this__u8e3s4.i1z_1) : tmp1_elvis_lhs;
|
|
1752
1752
|
// Inline function 'kotlin.collections.map' call
|
|
1753
|
-
var tmp3_safe_receiver = content == null ? null : content.
|
|
1753
|
+
var tmp3_safe_receiver = content == null ? null : content.m1z_1;
|
|
1754
1754
|
var tmp2_map = filterNotNull(plus_0(parameters, tmp3_safe_receiver == null ? null : toField(tmp3_safe_receiver, $this, 'body', false)));
|
|
1755
1755
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1756
1756
|
var tmp0_mapTo_0 = ArrayList_init_$Create$(collectionSizeOrDefault(tmp2_map, 10));
|
|
@@ -1759,7 +1759,7 @@
|
|
|
1759
1759
|
var item_0 = tmp0_iterator_1.y();
|
|
1760
1760
|
var tmp$ret$5;
|
|
1761
1761
|
// Inline function 'community.flock.wirespec.compiler.core.emit.TypeScriptEmitter.joinParameters.<anonymous>' call
|
|
1762
|
-
tmp$ret$5 = item_0.
|
|
1762
|
+
tmp$ret$5 = item_0.p1z(Companion_getInstance_6().o1z(Companion_getInstance_4().o1s(sanitizeSymbol_1(item_0.f1y_1.k1y_1, $this))));
|
|
1763
1763
|
tmp0_mapTo_0.s(tmp$ret$5);
|
|
1764
1764
|
}
|
|
1765
1765
|
return tmp0_mapTo_0;
|
|
@@ -1769,23 +1769,23 @@
|
|
|
1769
1769
|
return joinToString_0(filter(tmp, TypeScriptEmitter$sanitizeSymbol$lambda), '');
|
|
1770
1770
|
}
|
|
1771
1771
|
function toField(_this__u8e3s4, $this, identifier, isNullable) {
|
|
1772
|
-
return new Field_0(Companion_getInstance_6().
|
|
1772
|
+
return new Field_0(Companion_getInstance_6().o1z(identifier), _this__u8e3s4, isNullable);
|
|
1773
1773
|
}
|
|
1774
1774
|
function TypeScriptEmitter$emit$lambda(it) {
|
|
1775
1775
|
return '"' + it + '"';
|
|
1776
1776
|
}
|
|
1777
1777
|
function TypeScriptEmitter$emit$lambda_0(this$0) {
|
|
1778
1778
|
return function (it) {
|
|
1779
|
-
return this$0.
|
|
1779
|
+
return this$0.y1x(it);
|
|
1780
1780
|
};
|
|
1781
1781
|
}
|
|
1782
1782
|
function TypeScriptEmitter$emit$lambda_1(it) {
|
|
1783
1783
|
var tmp;
|
|
1784
1784
|
if (it instanceof Literal_0) {
|
|
1785
|
-
tmp = it.
|
|
1785
|
+
tmp = it.x1y_1;
|
|
1786
1786
|
} else {
|
|
1787
1787
|
if (it instanceof Param) {
|
|
1788
|
-
tmp = ':' + it.
|
|
1788
|
+
tmp = ':' + it.s1y_1.k1y_1;
|
|
1789
1789
|
} else {
|
|
1790
1790
|
noWhenBranchMatchedException();
|
|
1791
1791
|
}
|
|
@@ -1794,18 +1794,18 @@
|
|
|
1794
1794
|
}
|
|
1795
1795
|
function TypeScriptEmitter$emit$lambda$lambda(this$0) {
|
|
1796
1796
|
return function (it) {
|
|
1797
|
-
return this$0.
|
|
1797
|
+
return this$0.y1x(it);
|
|
1798
1798
|
};
|
|
1799
1799
|
}
|
|
1800
1800
|
function TypeScriptEmitter$emit$lambda_2(this$0, $this_emit) {
|
|
1801
1801
|
return function (it) {
|
|
1802
1802
|
Companion_getInstance_4();
|
|
1803
1803
|
var tmp = emitName(it, this$0);
|
|
1804
|
-
var tmp_0 = emitType($this_emit.
|
|
1805
|
-
var tmp_1 = joinToString($this_emit.
|
|
1804
|
+
var tmp_0 = emitType($this_emit.f1z_1, this$0);
|
|
1805
|
+
var tmp_1 = joinToString($this_emit.h1z_1, ',', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda$lambda(this$0));
|
|
1806
1806
|
var tmp$ret$2;
|
|
1807
1807
|
// Inline function 'kotlin.collections.map' call
|
|
1808
|
-
var tmp0_map = $this_emit.
|
|
1808
|
+
var tmp0_map = $this_emit.g1z_1;
|
|
1809
1809
|
var tmp$ret$1;
|
|
1810
1810
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1811
1811
|
var tmp0_mapTo = ArrayList_init_$Create$(collectionSizeOrDefault(tmp0_map, 10));
|
|
@@ -1814,13 +1814,13 @@
|
|
|
1814
1814
|
var item = tmp0_iterator.y();
|
|
1815
1815
|
var tmp$ret$0;
|
|
1816
1816
|
// Inline function 'community.flock.wirespec.compiler.core.emit.TypeScriptEmitter.emit.<anonymous>.<anonymous>' call
|
|
1817
|
-
tmp$ret$0 = this$0.
|
|
1817
|
+
tmp$ret$0 = this$0.y1x(item);
|
|
1818
1818
|
tmp0_mapTo.s(tmp$ret$0);
|
|
1819
1819
|
}
|
|
1820
1820
|
tmp$ret$1 = tmp0_mapTo;
|
|
1821
1821
|
tmp$ret$2 = tmp$ret$1;
|
|
1822
1822
|
var tmp_2 = joinToString(tmp$ret$2, ',');
|
|
1823
|
-
var tmp0_safe_receiver = it.
|
|
1823
|
+
var tmp0_safe_receiver = it.y1y_1;
|
|
1824
1824
|
var tmp_3;
|
|
1825
1825
|
if (tmp0_safe_receiver == null) {
|
|
1826
1826
|
tmp_3 = null;
|
|
@@ -1830,12 +1830,12 @@
|
|
|
1830
1830
|
// Inline function 'kotlin.contracts.contract' call
|
|
1831
1831
|
var tmp$ret$3;
|
|
1832
1832
|
// Inline function 'community.flock.wirespec.compiler.core.emit.TypeScriptEmitter.emit.<anonymous>.<anonymous>' call
|
|
1833
|
-
tmp$ret$3 = ', content: { type: "' + tmp0_safe_receiver.
|
|
1833
|
+
tmp$ret$3 = ', content: { type: "' + tmp0_safe_receiver.l1z_1 + '", body: ' + this$0.j1y(tmp0_safe_receiver.m1z_1) + ' }';
|
|
1834
1834
|
tmp$ret$4 = tmp$ret$3;
|
|
1835
1835
|
tmp_3 = tmp$ret$4;
|
|
1836
1836
|
}
|
|
1837
1837
|
var tmp1_elvis_lhs = tmp_3;
|
|
1838
|
-
return ' ' + 'type ' + tmp + ' = { path: ' + tmp_0 + ', method: "' + $this_emit.
|
|
1838
|
+
return ' ' + 'type ' + tmp + ' = { path: ' + tmp_0 + ', method: "' + $this_emit.e1z_1 + '", headers: {' + tmp_1 + '}, query: {' + tmp_2 + '}' + (tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs) + ' } ';
|
|
1839
1839
|
};
|
|
1840
1840
|
}
|
|
1841
1841
|
function TypeScriptEmitter$emit$lambda_3(this$0) {
|
|
@@ -1847,8 +1847,8 @@
|
|
|
1847
1847
|
return function (it) {
|
|
1848
1848
|
Companion_getInstance_4();
|
|
1849
1849
|
var tmp = emitName_0(it, this$0);
|
|
1850
|
-
var tmp_0 = Companion_getInstance_4().
|
|
1851
|
-
var tmp0_safe_receiver = it.
|
|
1850
|
+
var tmp_0 = Companion_getInstance_4().i1w(it.a1z_1) ? it.a1z_1 : 'string';
|
|
1851
|
+
var tmp0_safe_receiver = it.c1z_1;
|
|
1852
1852
|
var tmp_1;
|
|
1853
1853
|
if (tmp0_safe_receiver == null) {
|
|
1854
1854
|
tmp_1 = null;
|
|
@@ -1858,7 +1858,7 @@
|
|
|
1858
1858
|
// Inline function 'kotlin.contracts.contract' call
|
|
1859
1859
|
var tmp$ret$0;
|
|
1860
1860
|
// Inline function 'community.flock.wirespec.compiler.core.emit.TypeScriptEmitter.emit.<anonymous>.<anonymous>' call
|
|
1861
|
-
tmp$ret$0 = ', content: { type: "' + tmp0_safe_receiver.
|
|
1861
|
+
tmp$ret$0 = ', content: { type: "' + tmp0_safe_receiver.l1z_1 + '", body: ' + this$0.j1y(tmp0_safe_receiver.m1z_1) + ' }';
|
|
1862
1862
|
tmp$ret$1 = tmp$ret$0;
|
|
1863
1863
|
tmp_1 = tmp$ret$1;
|
|
1864
1864
|
}
|
|
@@ -1873,7 +1873,7 @@
|
|
|
1873
1873
|
}
|
|
1874
1874
|
function TypeScriptEmitter$emit$lambda$lambda_0(this$0) {
|
|
1875
1875
|
return function (it) {
|
|
1876
|
-
return this$0.
|
|
1876
|
+
return this$0.y1x(it);
|
|
1877
1877
|
};
|
|
1878
1878
|
}
|
|
1879
1879
|
function TypeScriptEmitter$emit$lambda_6(this$0, $this_emit) {
|
|
@@ -1884,7 +1884,7 @@
|
|
|
1884
1884
|
// Inline function 'kotlin.text.orEmpty' call
|
|
1885
1885
|
var tmp$ret$2;
|
|
1886
1886
|
// Inline function 'kotlin.takeIf' call
|
|
1887
|
-
var tmp0_takeIf = joinParameters($this_emit, this$0, it.
|
|
1887
|
+
var tmp0_takeIf = joinParameters($this_emit, this$0, it.y1y_1, null);
|
|
1888
1888
|
// Inline function 'kotlin.contracts.contract' call
|
|
1889
1889
|
var tmp_0;
|
|
1890
1890
|
var tmp$ret$1;
|
|
@@ -1910,10 +1910,10 @@
|
|
|
1910
1910
|
var tmp0_elvis_lhs = tmp1_orEmpty;
|
|
1911
1911
|
tmp$ret$3 = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs;
|
|
1912
1912
|
var tmp_2 = tmp$ret$3;
|
|
1913
|
-
var tmp_3 = emitPath($this_emit.
|
|
1914
|
-
var tmp_4 = emitMap($this_emit.
|
|
1915
|
-
var tmp_5 = emitMap($this_emit.
|
|
1916
|
-
var tmp1_safe_receiver = it.
|
|
1913
|
+
var tmp_3 = emitPath($this_emit.f1z_1, this$0);
|
|
1914
|
+
var tmp_4 = emitMap($this_emit.g1z_1, this$0);
|
|
1915
|
+
var tmp_5 = emitMap($this_emit.h1z_1, this$0);
|
|
1916
|
+
var tmp1_safe_receiver = it.y1y_1;
|
|
1917
1917
|
var tmp_6;
|
|
1918
1918
|
if (tmp1_safe_receiver == null) {
|
|
1919
1919
|
tmp_6 = null;
|
|
@@ -1923,17 +1923,17 @@
|
|
|
1923
1923
|
// Inline function 'kotlin.contracts.contract' call
|
|
1924
1924
|
var tmp$ret$4;
|
|
1925
1925
|
// Inline function 'community.flock.wirespec.compiler.core.emit.TypeScriptEmitter.emit.<anonymous>.<anonymous>' call
|
|
1926
|
-
tmp$ret$4 = ', content: {type: "' + tmp1_safe_receiver.
|
|
1926
|
+
tmp$ret$4 = ', content: {type: "' + tmp1_safe_receiver.l1z_1 + '", body: props.body}';
|
|
1927
1927
|
tmp$ret$5 = tmp$ret$4;
|
|
1928
1928
|
tmp_6 = tmp$ret$5;
|
|
1929
1929
|
}
|
|
1930
1930
|
var tmp2_elvis_lhs = tmp_6;
|
|
1931
|
-
return ' ' + 'export const ' + tmp + ' = (' + tmp_2 + ') => ({path: `' + tmp_3 + '`, method: "' + $this_emit.
|
|
1931
|
+
return ' ' + 'export const ' + tmp + ' = (' + tmp_2 + ') => ({path: `' + tmp_3 + '`, method: "' + $this_emit.e1z_1.b9_1 + '", query: {' + tmp_4 + '}, headers: {' + tmp_5 + '}' + (tmp2_elvis_lhs == null ? '' : tmp2_elvis_lhs) + '} as const)';
|
|
1932
1932
|
};
|
|
1933
1933
|
}
|
|
1934
1934
|
function TypeScriptEmitter$emit$lambda$lambda_1(this$0) {
|
|
1935
1935
|
return function (it) {
|
|
1936
|
-
return this$0.
|
|
1936
|
+
return this$0.y1x(it);
|
|
1937
1937
|
};
|
|
1938
1938
|
}
|
|
1939
1939
|
function TypeScriptEmitter$emit$lambda_7(this$0, $this_emit) {
|
|
@@ -1944,7 +1944,7 @@
|
|
|
1944
1944
|
// Inline function 'kotlin.text.orEmpty' call
|
|
1945
1945
|
var tmp$ret$2;
|
|
1946
1946
|
// Inline function 'kotlin.takeIf' call
|
|
1947
|
-
var tmp0_takeIf = joinParameters($this_emit, this$0, it.
|
|
1947
|
+
var tmp0_takeIf = joinParameters($this_emit, this$0, it.c1z_1, it);
|
|
1948
1948
|
// Inline function 'kotlin.contracts.contract' call
|
|
1949
1949
|
var tmp_0;
|
|
1950
1950
|
var tmp$ret$1;
|
|
@@ -1970,9 +1970,9 @@
|
|
|
1970
1970
|
var tmp0_elvis_lhs = tmp1_orEmpty;
|
|
1971
1971
|
tmp$ret$3 = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs;
|
|
1972
1972
|
var tmp_2 = tmp$ret$3;
|
|
1973
|
-
var tmp_3 = Companion_getInstance_4().
|
|
1974
|
-
var tmp_4 = emitMap(it.
|
|
1975
|
-
var tmp1_safe_receiver = it.
|
|
1973
|
+
var tmp_3 = Companion_getInstance_4().i1w(it.a1z_1) ? it.a1z_1 : '`' + it.a1z_1 + '`';
|
|
1974
|
+
var tmp_4 = emitMap(it.b1z_1, this$0);
|
|
1975
|
+
var tmp1_safe_receiver = it.c1z_1;
|
|
1976
1976
|
var tmp_5;
|
|
1977
1977
|
if (tmp1_safe_receiver == null) {
|
|
1978
1978
|
tmp_5 = null;
|
|
@@ -1982,7 +1982,7 @@
|
|
|
1982
1982
|
// Inline function 'kotlin.contracts.contract' call
|
|
1983
1983
|
var tmp$ret$4;
|
|
1984
1984
|
// Inline function 'community.flock.wirespec.compiler.core.emit.TypeScriptEmitter.emit.<anonymous>.<anonymous>' call
|
|
1985
|
-
tmp$ret$4 = ', content: {type: "' + tmp1_safe_receiver.
|
|
1985
|
+
tmp$ret$4 = ', content: {type: "' + tmp1_safe_receiver.l1z_1 + '", body: props.body}';
|
|
1986
1986
|
tmp$ret$5 = tmp$ret$4;
|
|
1987
1987
|
tmp_5 = tmp$ret$5;
|
|
1988
1988
|
}
|
|
@@ -1992,7 +1992,7 @@
|
|
|
1992
1992
|
}
|
|
1993
1993
|
function TypeScriptEmitter$emit$lambda_8(this$0) {
|
|
1994
1994
|
return function (it) {
|
|
1995
|
-
return this$0.
|
|
1995
|
+
return this$0.j1y(it);
|
|
1996
1996
|
};
|
|
1997
1997
|
}
|
|
1998
1998
|
function TypeScriptEmitter$emitType$lambda(this$0) {
|
|
@@ -2002,7 +2002,7 @@
|
|
|
2002
2002
|
}
|
|
2003
2003
|
function TypeScriptEmitter$emitMap$lambda(this$0) {
|
|
2004
2004
|
return function (it) {
|
|
2005
|
-
return '"' + this$0.
|
|
2005
|
+
return '"' + this$0.i1y(it.f1y_1) + '": props.' + Companion_getInstance_4().o1s(sanitizeSymbol_1(this$0.i1y(it.f1y_1), this$0));
|
|
2006
2006
|
};
|
|
2007
2007
|
}
|
|
2008
2008
|
function TypeScriptEmitter$emitPath$lambda(this$0) {
|
|
@@ -2021,7 +2021,7 @@
|
|
|
2021
2021
|
Companion_getInstance_4();
|
|
2022
2022
|
Companion_getInstance_4();
|
|
2023
2023
|
Companion_getInstance_4();
|
|
2024
|
-
tmp.
|
|
2024
|
+
tmp.w1y_1 = trimMargin('\n |export module Wirespec {\n |' + ' ' + 'export type Method = "GET" | "PUT" | "POST" | "DELETE" | "OPTIONS" | "HEAD" | "PATCH" | "TRACE"\n |' + ' ' + 'export type Content<T> = { type:string, body:T }\n |' + ' ' + 'export type Request<T> = { path:string, method: Method, query?: Record<string, any[]>, headers?: Record<string, any[]>, content?:Content<T> }\n |' + ' ' + 'export type Response<T> = { status:number, headers?: Record<string, any[]>, content?:Content<T> }\n |}\n ');
|
|
2025
2025
|
}
|
|
2026
2026
|
protoOf(TypeScriptEmitter).z1s = function (_this__u8e3s4) {
|
|
2027
2027
|
var tmp;
|
|
@@ -2061,7 +2061,7 @@
|
|
|
2061
2061
|
var tmp = sanitizeSymbol_1(item.a1t_1, this);
|
|
2062
2062
|
var tmp$ret$0;
|
|
2063
2063
|
// Inline function 'kotlin.text.trimStart' call
|
|
2064
|
-
var tmp0_trimStart = trimMargin('\n |' + (Companion_getInstance_4().a1s(ast) ? this.
|
|
2064
|
+
var tmp0_trimStart = trimMargin('\n |' + (Companion_getInstance_4().a1s(ast) ? this.w1y_1 : '') + '\n |' + item.b1t_1 + '\n ');
|
|
2065
2065
|
tmp$ret$0 = toString(trimStart(isCharSequence(tmp0_trimStart) ? tmp0_trimStart : THROW_CCE()));
|
|
2066
2066
|
tmp$ret$1 = new Emitted(tmp, tmp$ret$0);
|
|
2067
2067
|
tmp0_mapTo.s(tmp$ret$1);
|
|
@@ -2069,23 +2069,23 @@
|
|
|
2069
2069
|
return tmp0_mapTo;
|
|
2070
2070
|
};
|
|
2071
2071
|
protoOf(TypeScriptEmitter).c1t = function (_this__u8e3s4, ast) {
|
|
2072
|
-
return trimMargin('export type ' + sanitizeSymbol_1(_this__u8e3s4.
|
|
2072
|
+
return trimMargin('export type ' + sanitizeSymbol_1(_this__u8e3s4.b1y_1, this) + ' = {\n |' + this.d1y(_this__u8e3s4.c1y_1) + '\n |}\n |\n |');
|
|
2073
2073
|
};
|
|
2074
2074
|
protoOf(TypeScriptEmitter).q1t = function (_this__u8e3s4) {
|
|
2075
|
-
var tmp = sanitizeSymbol_1(_this__u8e3s4.
|
|
2076
|
-
return 'export type ' + tmp + ' = ' + joinToString(_this__u8e3s4.
|
|
2075
|
+
var tmp = sanitizeSymbol_1(_this__u8e3s4.z1x_1, this);
|
|
2076
|
+
return 'export type ' + tmp + ' = ' + joinToString(_this__u8e3s4.a1y_1, ' | ', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda) + '\n';
|
|
2077
2077
|
};
|
|
2078
|
-
protoOf(TypeScriptEmitter).
|
|
2079
|
-
return joinToString(_this__u8e3s4.
|
|
2078
|
+
protoOf(TypeScriptEmitter).d1y = function (_this__u8e3s4) {
|
|
2079
|
+
return joinToString(_this__u8e3s4.e1y_1, ',\n', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda_0(this));
|
|
2080
2080
|
};
|
|
2081
|
-
protoOf(TypeScriptEmitter).
|
|
2081
|
+
protoOf(TypeScriptEmitter).y1x = function (_this__u8e3s4) {
|
|
2082
2082
|
Companion_getInstance_4();
|
|
2083
|
-
return ' ' + '"' + this.
|
|
2084
|
-
};
|
|
2085
|
-
protoOf(TypeScriptEmitter).h1y = function (_this__u8e3s4) {
|
|
2086
|
-
return _this__u8e3s4.j1y_1;
|
|
2083
|
+
return ' ' + '"' + this.i1y(_this__u8e3s4.f1y_1) + '"' + (_this__u8e3s4.h1y_1 ? '?' : '') + ': ' + this.j1y(_this__u8e3s4.g1y_1);
|
|
2087
2084
|
};
|
|
2088
2085
|
protoOf(TypeScriptEmitter).i1y = function (_this__u8e3s4) {
|
|
2086
|
+
return _this__u8e3s4.k1y_1;
|
|
2087
|
+
};
|
|
2088
|
+
protoOf(TypeScriptEmitter).j1y = function (_this__u8e3s4) {
|
|
2089
2089
|
// Inline function 'kotlin.let' call
|
|
2090
2090
|
// Inline function 'kotlin.let' call
|
|
2091
2091
|
var tmp0_let = emitSymbol(_this__u8e3s4, this);
|
|
@@ -2094,28 +2094,28 @@
|
|
|
2094
2094
|
var tmp1_let = _this__u8e3s4.g1s() ? tmp0_let + '[]' : tmp0_let;
|
|
2095
2095
|
// Inline function 'kotlin.contracts.contract' call
|
|
2096
2096
|
// Inline function 'community.flock.wirespec.compiler.core.emit.TypeScriptEmitter.emit.<anonymous>' call
|
|
2097
|
-
return _this__u8e3s4.
|
|
2097
|
+
return _this__u8e3s4.q1z() ? 'Record<string, ' + tmp1_let + '>' : tmp1_let;
|
|
2098
2098
|
};
|
|
2099
2099
|
protoOf(TypeScriptEmitter).j1t = function (_this__u8e3s4) {
|
|
2100
|
-
var tmp = sanitizeSymbol_1(_this__u8e3s4.
|
|
2101
|
-
var tmp_0 = this.
|
|
2102
|
-
var tmp_1 = sanitizeSymbol_1(_this__u8e3s4.
|
|
2100
|
+
var tmp = sanitizeSymbol_1(_this__u8e3s4.o1y_1, this);
|
|
2101
|
+
var tmp_0 = this.q1y(_this__u8e3s4.p1y_1);
|
|
2102
|
+
var tmp_1 = sanitizeSymbol_1(_this__u8e3s4.o1y_1, this);
|
|
2103
2103
|
Companion_getInstance_4();
|
|
2104
|
-
return trimMargin('export type ' + tmp + ' = string;\n |const regExp' + _this__u8e3s4.
|
|
2104
|
+
return trimMargin('export type ' + tmp + ' = string;\n |const regExp' + _this__u8e3s4.o1y_1 + ' = ' + tmp_0 + ';\n |export const validate' + _this__u8e3s4.o1y_1 + ' = (value: string): value is ' + tmp_1 + ' => \n |' + ' ' + 'regExp' + _this__u8e3s4.o1y_1 + '.test(value);\n |');
|
|
2105
2105
|
};
|
|
2106
|
-
protoOf(TypeScriptEmitter).
|
|
2107
|
-
return '/' + dropLast(drop(_this__u8e3s4.
|
|
2106
|
+
protoOf(TypeScriptEmitter).q1y = function (_this__u8e3s4) {
|
|
2107
|
+
return '/' + dropLast(drop(_this__u8e3s4.r1y_1, 1), 1) + '/g';
|
|
2108
2108
|
};
|
|
2109
|
-
protoOf(TypeScriptEmitter).
|
|
2110
|
-
var tmp = sanitizeSymbol_1(_this__u8e3s4.
|
|
2109
|
+
protoOf(TypeScriptEmitter).a1u = function (_this__u8e3s4) {
|
|
2110
|
+
var tmp = sanitizeSymbol_1(_this__u8e3s4.d1z_1, this);
|
|
2111
2111
|
Companion_getInstance_4();
|
|
2112
|
-
var tmp_0 = joinToString(_this__u8e3s4.
|
|
2112
|
+
var tmp_0 = joinToString(_this__u8e3s4.f1z_1, '/', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda_1);
|
|
2113
2113
|
Companion_getInstance_4();
|
|
2114
|
-
var tmp_1 = toSet(_this__u8e3s4.
|
|
2114
|
+
var tmp_1 = toSet(_this__u8e3s4.j1z_1);
|
|
2115
2115
|
var tmp_2 = joinToString(tmp_1, '\n', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda_2(this, _this__u8e3s4));
|
|
2116
2116
|
Companion_getInstance_4();
|
|
2117
2117
|
// Inline function 'kotlin.text.ifEmpty' call
|
|
2118
|
-
var tmp_3 = toSet(_this__u8e3s4.
|
|
2118
|
+
var tmp_3 = toSet(_this__u8e3s4.j1z_1);
|
|
2119
2119
|
var tmp0_ifEmpty = joinToString(tmp_3, ' | ', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda_3(this));
|
|
2120
2120
|
var tmp_4;
|
|
2121
2121
|
// Inline function 'kotlin.text.isEmpty' call
|
|
@@ -2126,11 +2126,11 @@
|
|
|
2126
2126
|
tmp_4 = tmp0_ifEmpty;
|
|
2127
2127
|
}
|
|
2128
2128
|
var tmp_5 = tmp_4;
|
|
2129
|
-
var tmp_6 = toSet(_this__u8e3s4.
|
|
2129
|
+
var tmp_6 = toSet(_this__u8e3s4.k1z_1);
|
|
2130
2130
|
var tmp_7 = joinToString(tmp_6, '\n', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda_4(this));
|
|
2131
2131
|
Companion_getInstance_4();
|
|
2132
2132
|
// Inline function 'kotlin.text.ifEmpty' call
|
|
2133
|
-
var tmp_8 = toSet(_this__u8e3s4.
|
|
2133
|
+
var tmp_8 = toSet(_this__u8e3s4.k1z_1);
|
|
2134
2134
|
var tmp1_ifEmpty = joinToString(tmp_8, ' | ', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda_5(this));
|
|
2135
2135
|
var tmp_9;
|
|
2136
2136
|
// Inline function 'kotlin.text.isEmpty' call
|
|
@@ -2145,16 +2145,16 @@
|
|
|
2145
2145
|
Companion_getInstance_4();
|
|
2146
2146
|
Companion_getInstance_4();
|
|
2147
2147
|
Companion_getInstance_4();
|
|
2148
|
-
var tmp_11 = Companion_getInstance_4().o1s(sanitizeSymbol_1(_this__u8e3s4.
|
|
2148
|
+
var tmp_11 = Companion_getInstance_4().o1s(sanitizeSymbol_1(_this__u8e3s4.d1z_1, this));
|
|
2149
2149
|
Companion_getInstance_4();
|
|
2150
|
-
var tmp_12 = distinct(_this__u8e3s4.
|
|
2150
|
+
var tmp_12 = distinct(_this__u8e3s4.j1z_1);
|
|
2151
2151
|
var tmp_13 = joinToString(tmp_12, '\n', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda_6(this, _this__u8e3s4));
|
|
2152
|
-
var tmp_14 = distinct(_this__u8e3s4.
|
|
2153
|
-
return trimMargin('\n |export module ' + tmp + ' {\n |' + ' ' + 'export const PATH = "/' + tmp_0 + '"\n |' + ' ' + 'export const METHOD = "' + _this__u8e3s4.
|
|
2152
|
+
var tmp_14 = distinct(_this__u8e3s4.k1z_1);
|
|
2153
|
+
return trimMargin('\n |export module ' + tmp + ' {\n |' + ' ' + 'export const PATH = "/' + tmp_0 + '"\n |' + ' ' + 'export const METHOD = "' + _this__u8e3s4.e1z_1.b9_1 + '"\n |' + tmp_2 + '\n |' + ' ' + 'export type Request = ' + tmp_5 + '\n |' + tmp_7 + '\n |' + ' ' + 'export type Response = ' + tmp_10 + '\n |' + ' ' + 'export type Handler = (request:Request) => Promise<Response>\n |' + ' ' + 'export type Call = {\n |' + ' ' + ' ' + tmp_11 + ': Handler\n |' + ' ' + '}\n |' + tmp_13 + '\n |' + joinToString(tmp_14, '\n', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda_7(this, _this__u8e3s4)) + '\n |}\n |\n ');
|
|
2154
2154
|
};
|
|
2155
2155
|
protoOf(TypeScriptEmitter).v1t = function (_this__u8e3s4) {
|
|
2156
|
-
var tmp = sanitizeSymbol_1(_this__u8e3s4.
|
|
2157
|
-
return 'export type ' + tmp + ' = ' + joinToString(_this__u8e3s4.
|
|
2156
|
+
var tmp = sanitizeSymbol_1(_this__u8e3s4.r1z_1, this);
|
|
2157
|
+
return 'export type ' + tmp + ' = ' + joinToString(_this__u8e3s4.s1z_1, ' | ', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda_8(this)) + '\n';
|
|
2158
2158
|
};
|
|
2159
2159
|
function fixStatus(_this__u8e3s4, $this) {
|
|
2160
2160
|
return _this__u8e3s4 === 'default' ? '200' : _this__u8e3s4;
|
|
@@ -2165,9 +2165,9 @@
|
|
|
2165
2165
|
function emitRequest(_this__u8e3s4, $this) {
|
|
2166
2166
|
// Inline function 'kotlin.text.orEmpty' call
|
|
2167
2167
|
var tmp0_safe_receiver = firstOrNull_0(_this__u8e3s4);
|
|
2168
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2169
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
2170
|
-
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : $this.
|
|
2168
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.y1y_1;
|
|
2169
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m1z_1;
|
|
2170
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : $this.j1y(tmp2_safe_receiver);
|
|
2171
2171
|
var tmp;
|
|
2172
2172
|
if (tmp3_safe_receiver == null) {
|
|
2173
2173
|
tmp = null;
|
|
@@ -2235,7 +2235,7 @@
|
|
|
2235
2235
|
}
|
|
2236
2236
|
function Companion_2() {
|
|
2237
2237
|
Companion_instance_2 = this;
|
|
2238
|
-
this.
|
|
2238
|
+
this.v1z_1 = listOf(['type', 'enum', 'endpoint']);
|
|
2239
2239
|
}
|
|
2240
2240
|
var Companion_instance_2;
|
|
2241
2241
|
function Companion_getInstance_3() {
|
|
@@ -2246,7 +2246,7 @@
|
|
|
2246
2246
|
function WirespecEmitter$emit$lambda(this$0) {
|
|
2247
2247
|
return function (it) {
|
|
2248
2248
|
Companion_getInstance_4();
|
|
2249
|
-
return ' ' + this$0.
|
|
2249
|
+
return ' ' + this$0.y1x(it);
|
|
2250
2250
|
};
|
|
2251
2251
|
}
|
|
2252
2252
|
function WirespecEmitter$emit$lambda_0(this$0) {
|
|
@@ -2257,14 +2257,14 @@
|
|
|
2257
2257
|
function WirespecEmitter$emit$lambda_1(this$0) {
|
|
2258
2258
|
return function (it) {
|
|
2259
2259
|
Companion_getInstance_4();
|
|
2260
|
-
var tmp = fixStatus(it.
|
|
2261
|
-
var tmp0_safe_receiver = it.
|
|
2262
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2263
|
-
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : this$0.
|
|
2260
|
+
var tmp = fixStatus(it.a1z_1, this$0);
|
|
2261
|
+
var tmp0_safe_receiver = it.c1z_1;
|
|
2262
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m1z_1;
|
|
2263
|
+
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : this$0.j1y(tmp1_safe_receiver);
|
|
2264
2264
|
var tmp_0 = tmp2_elvis_lhs == null ? 'Unit' : tmp2_elvis_lhs;
|
|
2265
2265
|
var tmp_1;
|
|
2266
|
-
var tmp3_safe_receiver = it.
|
|
2267
|
-
if ((tmp3_safe_receiver == null ? null : tmp3_safe_receiver.
|
|
2266
|
+
var tmp3_safe_receiver = it.c1z_1;
|
|
2267
|
+
if ((tmp3_safe_receiver == null ? null : tmp3_safe_receiver.n1z_1) === true) {
|
|
2268
2268
|
tmp_1 = '?';
|
|
2269
2269
|
} else {
|
|
2270
2270
|
tmp_1 = '';
|
|
@@ -2274,7 +2274,7 @@
|
|
|
2274
2274
|
}
|
|
2275
2275
|
function WirespecEmitter$emit$lambda_2(this$0) {
|
|
2276
2276
|
return function (it) {
|
|
2277
|
-
return this$0.
|
|
2277
|
+
return this$0.j1y(it);
|
|
2278
2278
|
};
|
|
2279
2279
|
}
|
|
2280
2280
|
function WirespecEmitter$emitPath$lambda(this$0) {
|
|
@@ -2282,10 +2282,10 @@
|
|
|
2282
2282
|
var tmp0_subject = it;
|
|
2283
2283
|
var tmp;
|
|
2284
2284
|
if (tmp0_subject instanceof Param) {
|
|
2285
|
-
tmp = '{' + it.
|
|
2285
|
+
tmp = '{' + it.s1y_1.k1y_1 + ': ' + this$0.j1y(it.t1y_1) + '}';
|
|
2286
2286
|
} else {
|
|
2287
2287
|
if (tmp0_subject instanceof Literal_0) {
|
|
2288
|
-
tmp = it.
|
|
2288
|
+
tmp = it.x1y_1;
|
|
2289
2289
|
} else {
|
|
2290
2290
|
noWhenBranchMatchedException();
|
|
2291
2291
|
}
|
|
@@ -2295,7 +2295,7 @@
|
|
|
2295
2295
|
}
|
|
2296
2296
|
function WirespecEmitter$emitQuery$lambda(this$0) {
|
|
2297
2297
|
return function (it) {
|
|
2298
|
-
return this$0.
|
|
2298
|
+
return this$0.y1x(it);
|
|
2299
2299
|
};
|
|
2300
2300
|
}
|
|
2301
2301
|
function WirespecEmitter(logger) {
|
|
@@ -2329,18 +2329,18 @@
|
|
|
2329
2329
|
return tmp;
|
|
2330
2330
|
};
|
|
2331
2331
|
protoOf(WirespecEmitter).c1t = function (_this__u8e3s4, ast) {
|
|
2332
|
-
return trimMargin('\n |type ' + _this__u8e3s4.
|
|
2332
|
+
return trimMargin('\n |type ' + _this__u8e3s4.b1y_1 + ' {\n |' + this.d1y(_this__u8e3s4.c1y_1) + '\n |}\n |');
|
|
2333
2333
|
};
|
|
2334
|
-
protoOf(WirespecEmitter).
|
|
2335
|
-
return joinToString(_this__u8e3s4.
|
|
2334
|
+
protoOf(WirespecEmitter).d1y = function (_this__u8e3s4) {
|
|
2335
|
+
return joinToString(_this__u8e3s4.e1y_1, ',\n', VOID, VOID, VOID, VOID, WirespecEmitter$emit$lambda(this));
|
|
2336
2336
|
};
|
|
2337
|
-
protoOf(WirespecEmitter).
|
|
2338
|
-
return this.
|
|
2339
|
-
};
|
|
2340
|
-
protoOf(WirespecEmitter).h1y = function (_this__u8e3s4) {
|
|
2341
|
-
return Companion_getInstance_3().u1z_1.r(_this__u8e3s4.j1y_1) ? addBackticks(_this__u8e3s4.j1y_1) : _this__u8e3s4.j1y_1;
|
|
2337
|
+
protoOf(WirespecEmitter).y1x = function (_this__u8e3s4) {
|
|
2338
|
+
return this.i1y(_this__u8e3s4.f1y_1) + ': ' + this.j1y(_this__u8e3s4.g1y_1) + (_this__u8e3s4.h1y_1 ? '?' : '');
|
|
2342
2339
|
};
|
|
2343
2340
|
protoOf(WirespecEmitter).i1y = function (_this__u8e3s4) {
|
|
2341
|
+
return Companion_getInstance_3().v1z_1.r(_this__u8e3s4.k1y_1) ? addBackticks(_this__u8e3s4.k1y_1) : _this__u8e3s4.k1y_1;
|
|
2342
|
+
};
|
|
2343
|
+
protoOf(WirespecEmitter).j1y = function (_this__u8e3s4) {
|
|
2344
2344
|
// Inline function 'kotlin.let' call
|
|
2345
2345
|
var tmp;
|
|
2346
2346
|
if (_this__u8e3s4 instanceof Unit) {
|
|
@@ -2354,7 +2354,7 @@
|
|
|
2354
2354
|
} else {
|
|
2355
2355
|
if (_this__u8e3s4 instanceof Primitive_0) {
|
|
2356
2356
|
var tmp_0;
|
|
2357
|
-
switch (_this__u8e3s4.
|
|
2357
|
+
switch (_this__u8e3s4.l1y_1.c9_1) {
|
|
2358
2358
|
case 0:
|
|
2359
2359
|
tmp_0 = 'String';
|
|
2360
2360
|
break;
|
|
@@ -2385,22 +2385,22 @@
|
|
|
2385
2385
|
};
|
|
2386
2386
|
protoOf(WirespecEmitter).q1t = function (_this__u8e3s4) {
|
|
2387
2387
|
Companion_getInstance_4();
|
|
2388
|
-
return 'enum ' + _this__u8e3s4.
|
|
2388
|
+
return 'enum ' + _this__u8e3s4.z1x_1 + ' {\n' + ' ' + joinToString(_this__u8e3s4.a1y_1, ', ', VOID, VOID, VOID, VOID, WirespecEmitter$emit$lambda_0(this)) + '\n}\n';
|
|
2389
2389
|
};
|
|
2390
2390
|
protoOf(WirespecEmitter).j1t = function (_this__u8e3s4) {
|
|
2391
|
-
return 'type ' + _this__u8e3s4.
|
|
2391
|
+
return 'type ' + _this__u8e3s4.o1y_1 + ' ' + this.q1y(_this__u8e3s4.p1y_1) + '\n';
|
|
2392
2392
|
};
|
|
2393
|
-
protoOf(WirespecEmitter).
|
|
2394
|
-
return '/' + dropLast(drop(_this__u8e3s4.
|
|
2393
|
+
protoOf(WirespecEmitter).q1y = function (_this__u8e3s4) {
|
|
2394
|
+
return '/' + dropLast(drop(_this__u8e3s4.r1y_1, 1), 1) + '/g';
|
|
2395
2395
|
};
|
|
2396
|
-
protoOf(WirespecEmitter).
|
|
2397
|
-
var tmp = emitRequest(_this__u8e3s4.
|
|
2398
|
-
var tmp_0 = emitPath_0(_this__u8e3s4.
|
|
2399
|
-
var tmp_1 = emitQuery(_this__u8e3s4.
|
|
2400
|
-
return trimMargin('\n |endpoint ' + _this__u8e3s4.
|
|
2396
|
+
protoOf(WirespecEmitter).a1u = function (_this__u8e3s4) {
|
|
2397
|
+
var tmp = emitRequest(_this__u8e3s4.j1z_1, this);
|
|
2398
|
+
var tmp_0 = emitPath_0(_this__u8e3s4.f1z_1, this);
|
|
2399
|
+
var tmp_1 = emitQuery(_this__u8e3s4.g1z_1, this);
|
|
2400
|
+
return trimMargin('\n |endpoint ' + _this__u8e3s4.d1z_1 + ' ' + _this__u8e3s4.e1z_1 + tmp + ' ' + tmp_0 + tmp_1 + ' -> {\n |' + joinToString(_this__u8e3s4.k1z_1, '\n', VOID, VOID, VOID, VOID, WirespecEmitter$emit$lambda_1(this)) + '\n |}\n |\n ');
|
|
2401
2401
|
};
|
|
2402
2402
|
protoOf(WirespecEmitter).v1t = function (_this__u8e3s4) {
|
|
2403
|
-
return 'type ' + _this__u8e3s4.
|
|
2403
|
+
return 'type ' + _this__u8e3s4.r1z_1 + ' = ' + joinToString(_this__u8e3s4.s1z_1, ' | ', VOID, VOID, VOID, VOID, WirespecEmitter$emit$lambda_2(this)) + '\n';
|
|
2404
2404
|
};
|
|
2405
2405
|
function get_DEFAULT_PACKAGE_STRING() {
|
|
2406
2406
|
return DEFAULT_PACKAGE_STRING;
|
|
@@ -2546,10 +2546,10 @@
|
|
|
2546
2546
|
}
|
|
2547
2547
|
return tmp$ret$0;
|
|
2548
2548
|
};
|
|
2549
|
-
protoOf(Companion_3).
|
|
2549
|
+
protoOf(Companion_3).i1w = function (_this__u8e3s4) {
|
|
2550
2550
|
return !(toIntOrNull(_this__u8e3s4) == null);
|
|
2551
2551
|
};
|
|
2552
|
-
protoOf(Companion_3).
|
|
2552
|
+
protoOf(Companion_3).w1z = function (_this__u8e3s4) {
|
|
2553
2553
|
var tmp0_safe_receiver = toIntOrNull(_this__u8e3s4);
|
|
2554
2554
|
var tmp;
|
|
2555
2555
|
if (tmp0_safe_receiver == null) {
|
|
@@ -2616,7 +2616,7 @@
|
|
|
2616
2616
|
tmp = new Emitted(this.z1s(item), this.c1t(item, ast));
|
|
2617
2617
|
} else {
|
|
2618
2618
|
if (item instanceof Endpoint) {
|
|
2619
|
-
tmp = new Emitted(this.z1s(item), this.
|
|
2619
|
+
tmp = new Emitted(this.z1s(item), this.a1u(item));
|
|
2620
2620
|
} else {
|
|
2621
2621
|
if (item instanceof Enum_0) {
|
|
2622
2622
|
tmp = new Emitted(this.z1s(item), this.q1t(item));
|
|
@@ -2646,17 +2646,17 @@
|
|
|
2646
2646
|
}
|
|
2647
2647
|
return tmp_0;
|
|
2648
2648
|
};
|
|
2649
|
-
protoOf(Emitter).
|
|
2650
|
-
var tmp = split(substringBefore(_this__u8e3s4.
|
|
2649
|
+
protoOf(Emitter).z1y = function (_this__u8e3s4) {
|
|
2650
|
+
var tmp = split(substringBefore(_this__u8e3s4.l1z_1, ';'), ['/', '-']);
|
|
2651
2651
|
return replace(joinToString(tmp, '', VOID, VOID, VOID, VOID, Emitter$emitContentType$lambda), '+', '');
|
|
2652
2652
|
};
|
|
2653
|
-
protoOf(Emitter).
|
|
2653
|
+
protoOf(Emitter).k1v = function (_this__u8e3s4, space) {
|
|
2654
2654
|
var tmp = split(_this__u8e3s4, ['\n']);
|
|
2655
2655
|
return joinToString(tmp, '\n', VOID, VOID, VOID, VOID, Emitter$spacer$lambda(space));
|
|
2656
2656
|
};
|
|
2657
2657
|
protoOf(Emitter).i1t = function (_this__u8e3s4, space, $super) {
|
|
2658
2658
|
space = space === VOID ? 1 : space;
|
|
2659
|
-
return $super === VOID ? this.
|
|
2659
|
+
return $super === VOID ? this.k1v(_this__u8e3s4, space) : $super.k1v.call(this, _this__u8e3s4, space);
|
|
2660
2660
|
};
|
|
2661
2661
|
function TypeClass(name, fields, supers) {
|
|
2662
2662
|
supers = supers === VOID ? emptyList() : supers;
|
|
@@ -2796,30 +2796,30 @@
|
|
|
2796
2796
|
isIterable = isIterable === VOID ? false : isIterable;
|
|
2797
2797
|
isOptional = isOptional === VOID ? false : isOptional;
|
|
2798
2798
|
generics = generics === VOID ? new Generics() : generics;
|
|
2799
|
-
this.
|
|
2800
|
-
this.
|
|
2801
|
-
this.
|
|
2802
|
-
this.
|
|
2803
|
-
this.
|
|
2799
|
+
this.d1x_1 = primitive;
|
|
2800
|
+
this.e1x_1 = isNullable;
|
|
2801
|
+
this.f1x_1 = isIterable;
|
|
2802
|
+
this.g1x_1 = isOptional;
|
|
2803
|
+
this.h1x_1 = generics;
|
|
2804
2804
|
}
|
|
2805
2805
|
protoOf(Language).tj = function () {
|
|
2806
|
-
return this.
|
|
2806
|
+
return this.e1x_1;
|
|
2807
2807
|
};
|
|
2808
2808
|
protoOf(Language).g1s = function () {
|
|
2809
|
-
return this.
|
|
2809
|
+
return this.f1x_1;
|
|
2810
2810
|
};
|
|
2811
2811
|
protoOf(Language).h1s = function () {
|
|
2812
|
-
return this.
|
|
2812
|
+
return this.g1x_1;
|
|
2813
2813
|
};
|
|
2814
2814
|
protoOf(Language).toString = function () {
|
|
2815
|
-
return 'Language(primitive=' + this.
|
|
2815
|
+
return 'Language(primitive=' + this.d1x_1 + ', isNullable=' + this.e1x_1 + ', isIterable=' + this.f1x_1 + ', isOptional=' + this.g1x_1 + ', generics=' + this.h1x_1 + ')';
|
|
2816
2816
|
};
|
|
2817
2817
|
protoOf(Language).hashCode = function () {
|
|
2818
|
-
var result = this.
|
|
2819
|
-
result = imul(result, 31) + (this.d1x_1 | 0) | 0;
|
|
2818
|
+
var result = this.d1x_1.hashCode();
|
|
2820
2819
|
result = imul(result, 31) + (this.e1x_1 | 0) | 0;
|
|
2821
2820
|
result = imul(result, 31) + (this.f1x_1 | 0) | 0;
|
|
2822
|
-
result = imul(result, 31) + this.g1x_1
|
|
2821
|
+
result = imul(result, 31) + (this.g1x_1 | 0) | 0;
|
|
2822
|
+
result = imul(result, 31) + this.h1x_1.hashCode() | 0;
|
|
2823
2823
|
return result;
|
|
2824
2824
|
};
|
|
2825
2825
|
protoOf(Language).equals = function (other) {
|
|
@@ -2828,15 +2828,15 @@
|
|
|
2828
2828
|
if (!(other instanceof Language))
|
|
2829
2829
|
return false;
|
|
2830
2830
|
var tmp0_other_with_cast = other instanceof Language ? other : THROW_CCE();
|
|
2831
|
-
if (!this.
|
|
2832
|
-
return false;
|
|
2833
|
-
if (!(this.d1x_1 === tmp0_other_with_cast.d1x_1))
|
|
2831
|
+
if (!this.d1x_1.equals(tmp0_other_with_cast.d1x_1))
|
|
2834
2832
|
return false;
|
|
2835
2833
|
if (!(this.e1x_1 === tmp0_other_with_cast.e1x_1))
|
|
2836
2834
|
return false;
|
|
2837
2835
|
if (!(this.f1x_1 === tmp0_other_with_cast.f1x_1))
|
|
2838
2836
|
return false;
|
|
2839
|
-
if (!this.g1x_1
|
|
2837
|
+
if (!(this.g1x_1 === tmp0_other_with_cast.g1x_1))
|
|
2838
|
+
return false;
|
|
2839
|
+
if (!this.h1x_1.equals(tmp0_other_with_cast.h1x_1))
|
|
2840
2840
|
return false;
|
|
2841
2841
|
return true;
|
|
2842
2842
|
};
|
|
@@ -2845,30 +2845,30 @@
|
|
|
2845
2845
|
isIterable = isIterable === VOID ? false : isIterable;
|
|
2846
2846
|
isOptional = isOptional === VOID ? false : isOptional;
|
|
2847
2847
|
generics = generics === VOID ? new Generics() : generics;
|
|
2848
|
-
this.
|
|
2849
|
-
this.
|
|
2850
|
-
this.
|
|
2851
|
-
this.
|
|
2852
|
-
this.
|
|
2848
|
+
this.y1w_1 = name;
|
|
2849
|
+
this.z1w_1 = isNullable;
|
|
2850
|
+
this.a1x_1 = isIterable;
|
|
2851
|
+
this.b1x_1 = isOptional;
|
|
2852
|
+
this.c1x_1 = generics;
|
|
2853
2853
|
}
|
|
2854
2854
|
protoOf(Custom).tj = function () {
|
|
2855
|
-
return this.
|
|
2855
|
+
return this.z1w_1;
|
|
2856
2856
|
};
|
|
2857
2857
|
protoOf(Custom).g1s = function () {
|
|
2858
|
-
return this.
|
|
2858
|
+
return this.a1x_1;
|
|
2859
2859
|
};
|
|
2860
2860
|
protoOf(Custom).h1s = function () {
|
|
2861
|
-
return this.
|
|
2861
|
+
return this.b1x_1;
|
|
2862
2862
|
};
|
|
2863
2863
|
protoOf(Custom).toString = function () {
|
|
2864
|
-
return 'Custom(name=' + this.
|
|
2864
|
+
return 'Custom(name=' + this.y1w_1 + ', isNullable=' + this.z1w_1 + ', isIterable=' + this.a1x_1 + ', isOptional=' + this.b1x_1 + ', generics=' + this.c1x_1 + ')';
|
|
2865
2865
|
};
|
|
2866
2866
|
protoOf(Custom).hashCode = function () {
|
|
2867
|
-
var result = getStringHashCode(this.
|
|
2868
|
-
result = imul(result, 31) + (this.y1w_1 | 0) | 0;
|
|
2867
|
+
var result = getStringHashCode(this.y1w_1);
|
|
2869
2868
|
result = imul(result, 31) + (this.z1w_1 | 0) | 0;
|
|
2870
2869
|
result = imul(result, 31) + (this.a1x_1 | 0) | 0;
|
|
2871
|
-
result = imul(result, 31) + this.b1x_1
|
|
2870
|
+
result = imul(result, 31) + (this.b1x_1 | 0) | 0;
|
|
2871
|
+
result = imul(result, 31) + this.c1x_1.hashCode() | 0;
|
|
2872
2872
|
return result;
|
|
2873
2873
|
};
|
|
2874
2874
|
protoOf(Custom).equals = function (other) {
|
|
@@ -2877,15 +2877,15 @@
|
|
|
2877
2877
|
if (!(other instanceof Custom))
|
|
2878
2878
|
return false;
|
|
2879
2879
|
var tmp0_other_with_cast = other instanceof Custom ? other : THROW_CCE();
|
|
2880
|
-
if (!(this.x1w_1 === tmp0_other_with_cast.x1w_1))
|
|
2881
|
-
return false;
|
|
2882
2880
|
if (!(this.y1w_1 === tmp0_other_with_cast.y1w_1))
|
|
2883
2881
|
return false;
|
|
2884
2882
|
if (!(this.z1w_1 === tmp0_other_with_cast.z1w_1))
|
|
2885
2883
|
return false;
|
|
2886
2884
|
if (!(this.a1x_1 === tmp0_other_with_cast.a1x_1))
|
|
2887
2885
|
return false;
|
|
2888
|
-
if (!this.b1x_1
|
|
2886
|
+
if (!(this.b1x_1 === tmp0_other_with_cast.b1x_1))
|
|
2887
|
+
return false;
|
|
2888
|
+
if (!this.c1x_1.equals(tmp0_other_with_cast.c1x_1))
|
|
2889
2889
|
return false;
|
|
2890
2890
|
return true;
|
|
2891
2891
|
};
|
|
@@ -2894,30 +2894,30 @@
|
|
|
2894
2894
|
isIterable = isIterable === VOID ? false : isIterable;
|
|
2895
2895
|
isOptional = isOptional === VOID ? false : isOptional;
|
|
2896
2896
|
generics = generics === VOID ? new Generics() : generics;
|
|
2897
|
-
this.
|
|
2898
|
-
this.
|
|
2899
|
-
this.
|
|
2900
|
-
this.
|
|
2901
|
-
this.
|
|
2897
|
+
this.j1x_1 = name;
|
|
2898
|
+
this.k1x_1 = isNullable;
|
|
2899
|
+
this.l1x_1 = isIterable;
|
|
2900
|
+
this.m1x_1 = isOptional;
|
|
2901
|
+
this.n1x_1 = generics;
|
|
2902
2902
|
}
|
|
2903
2903
|
protoOf(Wirespec).tj = function () {
|
|
2904
|
-
return this.
|
|
2904
|
+
return this.k1x_1;
|
|
2905
2905
|
};
|
|
2906
2906
|
protoOf(Wirespec).g1s = function () {
|
|
2907
|
-
return this.
|
|
2907
|
+
return this.l1x_1;
|
|
2908
2908
|
};
|
|
2909
2909
|
protoOf(Wirespec).h1s = function () {
|
|
2910
|
-
return this.
|
|
2910
|
+
return this.m1x_1;
|
|
2911
2911
|
};
|
|
2912
2912
|
protoOf(Wirespec).toString = function () {
|
|
2913
|
-
return 'Wirespec(name=' + this.
|
|
2913
|
+
return 'Wirespec(name=' + this.j1x_1 + ', isNullable=' + this.k1x_1 + ', isIterable=' + this.l1x_1 + ', isOptional=' + this.m1x_1 + ', generics=' + this.n1x_1 + ')';
|
|
2914
2914
|
};
|
|
2915
2915
|
protoOf(Wirespec).hashCode = function () {
|
|
2916
|
-
var result = getStringHashCode(this.
|
|
2917
|
-
result = imul(result, 31) + (this.j1x_1 | 0) | 0;
|
|
2916
|
+
var result = getStringHashCode(this.j1x_1);
|
|
2918
2917
|
result = imul(result, 31) + (this.k1x_1 | 0) | 0;
|
|
2919
2918
|
result = imul(result, 31) + (this.l1x_1 | 0) | 0;
|
|
2920
|
-
result = imul(result, 31) + this.m1x_1
|
|
2919
|
+
result = imul(result, 31) + (this.m1x_1 | 0) | 0;
|
|
2920
|
+
result = imul(result, 31) + this.n1x_1.hashCode() | 0;
|
|
2921
2921
|
return result;
|
|
2922
2922
|
};
|
|
2923
2923
|
protoOf(Wirespec).equals = function (other) {
|
|
@@ -2926,27 +2926,27 @@
|
|
|
2926
2926
|
if (!(other instanceof Wirespec))
|
|
2927
2927
|
return false;
|
|
2928
2928
|
var tmp0_other_with_cast = other instanceof Wirespec ? other : THROW_CCE();
|
|
2929
|
-
if (!(this.i1x_1 === tmp0_other_with_cast.i1x_1))
|
|
2930
|
-
return false;
|
|
2931
2929
|
if (!(this.j1x_1 === tmp0_other_with_cast.j1x_1))
|
|
2932
2930
|
return false;
|
|
2933
2931
|
if (!(this.k1x_1 === tmp0_other_with_cast.k1x_1))
|
|
2934
2932
|
return false;
|
|
2935
2933
|
if (!(this.l1x_1 === tmp0_other_with_cast.l1x_1))
|
|
2936
2934
|
return false;
|
|
2937
|
-
if (!this.m1x_1
|
|
2935
|
+
if (!(this.m1x_1 === tmp0_other_with_cast.m1x_1))
|
|
2936
|
+
return false;
|
|
2937
|
+
if (!this.n1x_1.equals(tmp0_other_with_cast.n1x_1))
|
|
2938
2938
|
return false;
|
|
2939
2939
|
return true;
|
|
2940
2940
|
};
|
|
2941
2941
|
function Generics(references) {
|
|
2942
2942
|
references = references === VOID ? emptyList() : references;
|
|
2943
|
-
this.
|
|
2943
|
+
this.u1w_1 = references;
|
|
2944
2944
|
}
|
|
2945
2945
|
protoOf(Generics).toString = function () {
|
|
2946
|
-
return 'Generics(references=' + this.
|
|
2946
|
+
return 'Generics(references=' + this.u1w_1 + ')';
|
|
2947
2947
|
};
|
|
2948
2948
|
protoOf(Generics).hashCode = function () {
|
|
2949
|
-
return hashCode(this.
|
|
2949
|
+
return hashCode(this.u1w_1);
|
|
2950
2950
|
};
|
|
2951
2951
|
protoOf(Generics).equals = function (other) {
|
|
2952
2952
|
if (this === other)
|
|
@@ -2954,7 +2954,7 @@
|
|
|
2954
2954
|
if (!(other instanceof Generics))
|
|
2955
2955
|
return false;
|
|
2956
2956
|
var tmp0_other_with_cast = other instanceof Generics ? other : THROW_CCE();
|
|
2957
|
-
if (!equals(this.
|
|
2957
|
+
if (!equals(this.u1w_1, tmp0_other_with_cast.u1w_1))
|
|
2958
2958
|
return false;
|
|
2959
2959
|
return true;
|
|
2960
2960
|
};
|
|
@@ -3028,14 +3028,17 @@
|
|
|
3028
3028
|
return false;
|
|
3029
3029
|
return true;
|
|
3030
3030
|
};
|
|
3031
|
-
function UnionClass(name) {
|
|
3031
|
+
function UnionClass(name, entries) {
|
|
3032
3032
|
this.y1t_1 = name;
|
|
3033
|
+
this.z1t_1 = entries;
|
|
3033
3034
|
}
|
|
3034
3035
|
protoOf(UnionClass).toString = function () {
|
|
3035
|
-
return 'UnionClass(name=' + this.y1t_1 + ')';
|
|
3036
|
+
return 'UnionClass(name=' + this.y1t_1 + ', entries=' + this.z1t_1 + ')';
|
|
3036
3037
|
};
|
|
3037
3038
|
protoOf(UnionClass).hashCode = function () {
|
|
3038
|
-
|
|
3039
|
+
var result = getStringHashCode(this.y1t_1);
|
|
3040
|
+
result = imul(result, 31) + hashCode(this.z1t_1) | 0;
|
|
3041
|
+
return result;
|
|
3039
3042
|
};
|
|
3040
3043
|
protoOf(UnionClass).equals = function (other) {
|
|
3041
3044
|
if (this === other)
|
|
@@ -3045,21 +3048,23 @@
|
|
|
3045
3048
|
var tmp0_other_with_cast = other instanceof UnionClass ? other : THROW_CCE();
|
|
3046
3049
|
if (!(this.y1t_1 === tmp0_other_with_cast.y1t_1))
|
|
3047
3050
|
return false;
|
|
3051
|
+
if (!equals(this.z1t_1, tmp0_other_with_cast.z1t_1))
|
|
3052
|
+
return false;
|
|
3048
3053
|
return true;
|
|
3049
3054
|
};
|
|
3050
3055
|
function RequestAllArgsConstructor(name, parameters, content) {
|
|
3051
3056
|
content = content === VOID ? null : content;
|
|
3052
|
-
this.
|
|
3053
|
-
this.
|
|
3054
|
-
this.
|
|
3057
|
+
this.w1u_1 = name;
|
|
3058
|
+
this.x1u_1 = parameters;
|
|
3059
|
+
this.y1u_1 = content;
|
|
3055
3060
|
}
|
|
3056
3061
|
protoOf(RequestAllArgsConstructor).toString = function () {
|
|
3057
|
-
return 'RequestAllArgsConstructor(name=' + this.
|
|
3062
|
+
return 'RequestAllArgsConstructor(name=' + this.w1u_1 + ', parameters=' + this.x1u_1 + ', content=' + this.y1u_1 + ')';
|
|
3058
3063
|
};
|
|
3059
3064
|
protoOf(RequestAllArgsConstructor).hashCode = function () {
|
|
3060
|
-
var result = getStringHashCode(this.
|
|
3061
|
-
result = imul(result, 31) + hashCode(this.
|
|
3062
|
-
result = imul(result, 31) + (this.
|
|
3065
|
+
var result = getStringHashCode(this.w1u_1);
|
|
3066
|
+
result = imul(result, 31) + hashCode(this.x1u_1) | 0;
|
|
3067
|
+
result = imul(result, 31) + (this.y1u_1 == null ? 0 : this.y1u_1.hashCode()) | 0;
|
|
3063
3068
|
return result;
|
|
3064
3069
|
};
|
|
3065
3070
|
protoOf(RequestAllArgsConstructor).equals = function (other) {
|
|
@@ -3068,35 +3073,35 @@
|
|
|
3068
3073
|
if (!(other instanceof RequestAllArgsConstructor))
|
|
3069
3074
|
return false;
|
|
3070
3075
|
var tmp0_other_with_cast = other instanceof RequestAllArgsConstructor ? other : THROW_CCE();
|
|
3071
|
-
if (!(this.
|
|
3072
|
-
return false;
|
|
3073
|
-
if (!equals(this.w1u_1, tmp0_other_with_cast.w1u_1))
|
|
3076
|
+
if (!(this.w1u_1 === tmp0_other_with_cast.w1u_1))
|
|
3074
3077
|
return false;
|
|
3075
3078
|
if (!equals(this.x1u_1, tmp0_other_with_cast.x1u_1))
|
|
3076
3079
|
return false;
|
|
3080
|
+
if (!equals(this.y1u_1, tmp0_other_with_cast.y1u_1))
|
|
3081
|
+
return false;
|
|
3077
3082
|
return true;
|
|
3078
3083
|
};
|
|
3079
3084
|
function RequestParameterConstructor(name, parameters, path, method, query, headers, content) {
|
|
3080
3085
|
content = content === VOID ? null : content;
|
|
3081
|
-
this.
|
|
3082
|
-
this.
|
|
3083
|
-
this.
|
|
3084
|
-
this.
|
|
3085
|
-
this.
|
|
3086
|
-
this.
|
|
3087
|
-
this.
|
|
3086
|
+
this.z1u_1 = name;
|
|
3087
|
+
this.a1v_1 = parameters;
|
|
3088
|
+
this.b1v_1 = path;
|
|
3089
|
+
this.c1v_1 = method;
|
|
3090
|
+
this.d1v_1 = query;
|
|
3091
|
+
this.e1v_1 = headers;
|
|
3092
|
+
this.f1v_1 = content;
|
|
3088
3093
|
}
|
|
3089
3094
|
protoOf(RequestParameterConstructor).toString = function () {
|
|
3090
|
-
return 'RequestParameterConstructor(name=' + this.
|
|
3095
|
+
return 'RequestParameterConstructor(name=' + this.z1u_1 + ', parameters=' + this.a1v_1 + ', path=' + this.b1v_1 + ', method=' + this.c1v_1 + ', query=' + this.d1v_1 + ', headers=' + this.e1v_1 + ', content=' + this.f1v_1 + ')';
|
|
3091
3096
|
};
|
|
3092
3097
|
protoOf(RequestParameterConstructor).hashCode = function () {
|
|
3093
|
-
var result = getStringHashCode(this.
|
|
3094
|
-
result = imul(result, 31) + hashCode(this.
|
|
3095
|
-
result = imul(result, 31) + this.
|
|
3096
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
3097
|
-
result = imul(result, 31) + hashCode(this.c1v_1) | 0;
|
|
3098
|
+
var result = getStringHashCode(this.z1u_1);
|
|
3099
|
+
result = imul(result, 31) + hashCode(this.a1v_1) | 0;
|
|
3100
|
+
result = imul(result, 31) + this.b1v_1.hashCode() | 0;
|
|
3101
|
+
result = imul(result, 31) + getStringHashCode(this.c1v_1) | 0;
|
|
3098
3102
|
result = imul(result, 31) + hashCode(this.d1v_1) | 0;
|
|
3099
|
-
result = imul(result, 31) + (this.e1v_1
|
|
3103
|
+
result = imul(result, 31) + hashCode(this.e1v_1) | 0;
|
|
3104
|
+
result = imul(result, 31) + (this.f1v_1 == null ? 0 : this.f1v_1.hashCode()) | 0;
|
|
3100
3105
|
return result;
|
|
3101
3106
|
};
|
|
3102
3107
|
protoOf(RequestParameterConstructor).equals = function (other) {
|
|
@@ -3105,34 +3110,34 @@
|
|
|
3105
3110
|
if (!(other instanceof RequestParameterConstructor))
|
|
3106
3111
|
return false;
|
|
3107
3112
|
var tmp0_other_with_cast = other instanceof RequestParameterConstructor ? other : THROW_CCE();
|
|
3108
|
-
if (!(this.
|
|
3109
|
-
return false;
|
|
3110
|
-
if (!equals(this.z1u_1, tmp0_other_with_cast.z1u_1))
|
|
3113
|
+
if (!(this.z1u_1 === tmp0_other_with_cast.z1u_1))
|
|
3111
3114
|
return false;
|
|
3112
|
-
if (!this.a1v_1
|
|
3115
|
+
if (!equals(this.a1v_1, tmp0_other_with_cast.a1v_1))
|
|
3113
3116
|
return false;
|
|
3114
|
-
if (!
|
|
3117
|
+
if (!this.b1v_1.equals(tmp0_other_with_cast.b1v_1))
|
|
3115
3118
|
return false;
|
|
3116
|
-
if (!
|
|
3119
|
+
if (!(this.c1v_1 === tmp0_other_with_cast.c1v_1))
|
|
3117
3120
|
return false;
|
|
3118
3121
|
if (!equals(this.d1v_1, tmp0_other_with_cast.d1v_1))
|
|
3119
3122
|
return false;
|
|
3120
3123
|
if (!equals(this.e1v_1, tmp0_other_with_cast.e1v_1))
|
|
3121
3124
|
return false;
|
|
3125
|
+
if (!equals(this.f1v_1, tmp0_other_with_cast.f1v_1))
|
|
3126
|
+
return false;
|
|
3122
3127
|
return true;
|
|
3123
3128
|
};
|
|
3124
3129
|
function RequestCondition(content, responseReference, isIterable) {
|
|
3125
|
-
this.
|
|
3126
|
-
this.
|
|
3127
|
-
this.
|
|
3130
|
+
this.n1v_1 = content;
|
|
3131
|
+
this.o1v_1 = responseReference;
|
|
3132
|
+
this.p1v_1 = isIterable;
|
|
3128
3133
|
}
|
|
3129
3134
|
protoOf(RequestCondition).toString = function () {
|
|
3130
|
-
return 'RequestCondition(content=' + this.
|
|
3135
|
+
return 'RequestCondition(content=' + this.n1v_1 + ', responseReference=' + this.o1v_1 + ', isIterable=' + this.p1v_1 + ')';
|
|
3131
3136
|
};
|
|
3132
3137
|
protoOf(RequestCondition).hashCode = function () {
|
|
3133
|
-
var result = this.
|
|
3134
|
-
result = imul(result, 31) + hashCode(this.
|
|
3135
|
-
result = imul(result, 31) + (this.
|
|
3138
|
+
var result = this.n1v_1 == null ? 0 : this.n1v_1.hashCode();
|
|
3139
|
+
result = imul(result, 31) + hashCode(this.o1v_1) | 0;
|
|
3140
|
+
result = imul(result, 31) + (this.p1v_1 | 0) | 0;
|
|
3136
3141
|
return result;
|
|
3137
3142
|
};
|
|
3138
3143
|
protoOf(RequestCondition).equals = function (other) {
|
|
@@ -3141,29 +3146,29 @@
|
|
|
3141
3146
|
if (!(other instanceof RequestCondition))
|
|
3142
3147
|
return false;
|
|
3143
3148
|
var tmp0_other_with_cast = other instanceof RequestCondition ? other : THROW_CCE();
|
|
3144
|
-
if (!equals(this.m1v_1, tmp0_other_with_cast.m1v_1))
|
|
3145
|
-
return false;
|
|
3146
3149
|
if (!equals(this.n1v_1, tmp0_other_with_cast.n1v_1))
|
|
3147
3150
|
return false;
|
|
3148
|
-
if (!(this.o1v_1
|
|
3151
|
+
if (!equals(this.o1v_1, tmp0_other_with_cast.o1v_1))
|
|
3152
|
+
return false;
|
|
3153
|
+
if (!(this.p1v_1 === tmp0_other_with_cast.p1v_1))
|
|
3149
3154
|
return false;
|
|
3150
3155
|
return true;
|
|
3151
3156
|
};
|
|
3152
3157
|
function ResponseAllArgsConstructor(name, parameters, statusCode, content) {
|
|
3153
3158
|
content = content === VOID ? null : content;
|
|
3154
|
-
this.
|
|
3155
|
-
this.
|
|
3156
|
-
this.
|
|
3157
|
-
this.
|
|
3159
|
+
this.z1v_1 = name;
|
|
3160
|
+
this.a1w_1 = parameters;
|
|
3161
|
+
this.b1w_1 = statusCode;
|
|
3162
|
+
this.c1w_1 = content;
|
|
3158
3163
|
}
|
|
3159
3164
|
protoOf(ResponseAllArgsConstructor).toString = function () {
|
|
3160
|
-
return 'ResponseAllArgsConstructor(name=' + this.
|
|
3165
|
+
return 'ResponseAllArgsConstructor(name=' + this.z1v_1 + ', parameters=' + this.a1w_1 + ', statusCode=' + this.b1w_1 + ', content=' + this.c1w_1 + ')';
|
|
3161
3166
|
};
|
|
3162
3167
|
protoOf(ResponseAllArgsConstructor).hashCode = function () {
|
|
3163
|
-
var result = getStringHashCode(this.
|
|
3164
|
-
result = imul(result, 31) + hashCode(this.
|
|
3165
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
3166
|
-
result = imul(result, 31) + (this.
|
|
3168
|
+
var result = getStringHashCode(this.z1v_1);
|
|
3169
|
+
result = imul(result, 31) + hashCode(this.a1w_1) | 0;
|
|
3170
|
+
result = imul(result, 31) + getStringHashCode(this.b1w_1) | 0;
|
|
3171
|
+
result = imul(result, 31) + (this.c1w_1 == null ? 0 : this.c1w_1.hashCode()) | 0;
|
|
3167
3172
|
return result;
|
|
3168
3173
|
};
|
|
3169
3174
|
protoOf(ResponseAllArgsConstructor).equals = function (other) {
|
|
@@ -3172,33 +3177,33 @@
|
|
|
3172
3177
|
if (!(other instanceof ResponseAllArgsConstructor))
|
|
3173
3178
|
return false;
|
|
3174
3179
|
var tmp0_other_with_cast = other instanceof ResponseAllArgsConstructor ? other : THROW_CCE();
|
|
3175
|
-
if (!(this.
|
|
3180
|
+
if (!(this.z1v_1 === tmp0_other_with_cast.z1v_1))
|
|
3176
3181
|
return false;
|
|
3177
|
-
if (!equals(this.
|
|
3182
|
+
if (!equals(this.a1w_1, tmp0_other_with_cast.a1w_1))
|
|
3178
3183
|
return false;
|
|
3179
|
-
if (!(this.
|
|
3184
|
+
if (!(this.b1w_1 === tmp0_other_with_cast.b1w_1))
|
|
3180
3185
|
return false;
|
|
3181
|
-
if (!equals(this.
|
|
3186
|
+
if (!equals(this.c1w_1, tmp0_other_with_cast.c1w_1))
|
|
3182
3187
|
return false;
|
|
3183
3188
|
return true;
|
|
3184
3189
|
};
|
|
3185
3190
|
function ResponseParameterConstructor(name, parameters, statusCode, headers, content) {
|
|
3186
3191
|
content = content === VOID ? null : content;
|
|
3187
|
-
this.
|
|
3188
|
-
this.
|
|
3189
|
-
this.
|
|
3190
|
-
this.
|
|
3191
|
-
this.
|
|
3192
|
+
this.d1w_1 = name;
|
|
3193
|
+
this.e1w_1 = parameters;
|
|
3194
|
+
this.f1w_1 = statusCode;
|
|
3195
|
+
this.g1w_1 = headers;
|
|
3196
|
+
this.h1w_1 = content;
|
|
3192
3197
|
}
|
|
3193
3198
|
protoOf(ResponseParameterConstructor).toString = function () {
|
|
3194
|
-
return 'ResponseParameterConstructor(name=' + this.
|
|
3199
|
+
return 'ResponseParameterConstructor(name=' + this.d1w_1 + ', parameters=' + this.e1w_1 + ', statusCode=' + this.f1w_1 + ', headers=' + this.g1w_1 + ', content=' + this.h1w_1 + ')';
|
|
3195
3200
|
};
|
|
3196
3201
|
protoOf(ResponseParameterConstructor).hashCode = function () {
|
|
3197
|
-
var result = getStringHashCode(this.
|
|
3198
|
-
result = imul(result, 31) + hashCode(this.
|
|
3199
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
3200
|
-
result = imul(result, 31) + hashCode(this.
|
|
3201
|
-
result = imul(result, 31) + (this.
|
|
3202
|
+
var result = getStringHashCode(this.d1w_1);
|
|
3203
|
+
result = imul(result, 31) + hashCode(this.e1w_1) | 0;
|
|
3204
|
+
result = imul(result, 31) + getStringHashCode(this.f1w_1) | 0;
|
|
3205
|
+
result = imul(result, 31) + hashCode(this.g1w_1) | 0;
|
|
3206
|
+
result = imul(result, 31) + (this.h1w_1 == null ? 0 : this.h1w_1.hashCode()) | 0;
|
|
3202
3207
|
return result;
|
|
3203
3208
|
};
|
|
3204
3209
|
protoOf(ResponseParameterConstructor).equals = function (other) {
|
|
@@ -3207,32 +3212,32 @@
|
|
|
3207
3212
|
if (!(other instanceof ResponseParameterConstructor))
|
|
3208
3213
|
return false;
|
|
3209
3214
|
var tmp0_other_with_cast = other instanceof ResponseParameterConstructor ? other : THROW_CCE();
|
|
3210
|
-
if (!(this.
|
|
3211
|
-
return false;
|
|
3212
|
-
if (!equals(this.d1w_1, tmp0_other_with_cast.d1w_1))
|
|
3215
|
+
if (!(this.d1w_1 === tmp0_other_with_cast.d1w_1))
|
|
3213
3216
|
return false;
|
|
3214
|
-
if (!(this.e1w_1
|
|
3217
|
+
if (!equals(this.e1w_1, tmp0_other_with_cast.e1w_1))
|
|
3215
3218
|
return false;
|
|
3216
|
-
if (!
|
|
3219
|
+
if (!(this.f1w_1 === tmp0_other_with_cast.f1w_1))
|
|
3217
3220
|
return false;
|
|
3218
3221
|
if (!equals(this.g1w_1, tmp0_other_with_cast.g1w_1))
|
|
3219
3222
|
return false;
|
|
3223
|
+
if (!equals(this.h1w_1, tmp0_other_with_cast.h1w_1))
|
|
3224
|
+
return false;
|
|
3220
3225
|
return true;
|
|
3221
3226
|
};
|
|
3222
3227
|
function ResponseCondition(statusCode, content, responseReference, isIterable) {
|
|
3223
|
-
this.
|
|
3224
|
-
this.
|
|
3225
|
-
this.
|
|
3226
|
-
this.
|
|
3228
|
+
this.l1w_1 = statusCode;
|
|
3229
|
+
this.m1w_1 = content;
|
|
3230
|
+
this.n1w_1 = responseReference;
|
|
3231
|
+
this.o1w_1 = isIterable;
|
|
3227
3232
|
}
|
|
3228
3233
|
protoOf(ResponseCondition).toString = function () {
|
|
3229
|
-
return 'ResponseCondition(statusCode=' + this.
|
|
3234
|
+
return 'ResponseCondition(statusCode=' + this.l1w_1 + ', content=' + this.m1w_1 + ', responseReference=' + this.n1w_1 + ', isIterable=' + this.o1w_1 + ')';
|
|
3230
3235
|
};
|
|
3231
3236
|
protoOf(ResponseCondition).hashCode = function () {
|
|
3232
|
-
var result = getStringHashCode(this.
|
|
3233
|
-
result = imul(result, 31) + (this.
|
|
3234
|
-
result = imul(result, 31) + hashCode(this.
|
|
3235
|
-
result = imul(result, 31) + (this.
|
|
3237
|
+
var result = getStringHashCode(this.l1w_1);
|
|
3238
|
+
result = imul(result, 31) + (this.m1w_1 == null ? 0 : this.m1w_1.hashCode()) | 0;
|
|
3239
|
+
result = imul(result, 31) + hashCode(this.n1w_1) | 0;
|
|
3240
|
+
result = imul(result, 31) + (this.o1w_1 | 0) | 0;
|
|
3236
3241
|
return result;
|
|
3237
3242
|
};
|
|
3238
3243
|
protoOf(ResponseCondition).equals = function (other) {
|
|
@@ -3241,13 +3246,13 @@
|
|
|
3241
3246
|
if (!(other instanceof ResponseCondition))
|
|
3242
3247
|
return false;
|
|
3243
3248
|
var tmp0_other_with_cast = other instanceof ResponseCondition ? other : THROW_CCE();
|
|
3244
|
-
if (!(this.
|
|
3245
|
-
return false;
|
|
3246
|
-
if (!equals(this.l1w_1, tmp0_other_with_cast.l1w_1))
|
|
3249
|
+
if (!(this.l1w_1 === tmp0_other_with_cast.l1w_1))
|
|
3247
3250
|
return false;
|
|
3248
3251
|
if (!equals(this.m1w_1, tmp0_other_with_cast.m1w_1))
|
|
3249
3252
|
return false;
|
|
3250
|
-
if (!(this.n1w_1
|
|
3253
|
+
if (!equals(this.n1w_1, tmp0_other_with_cast.n1w_1))
|
|
3254
|
+
return false;
|
|
3255
|
+
if (!(this.o1w_1 === tmp0_other_with_cast.o1w_1))
|
|
3251
3256
|
return false;
|
|
3252
3257
|
return true;
|
|
3253
3258
|
};
|
|
@@ -3296,21 +3301,21 @@
|
|
|
3296
3301
|
return true;
|
|
3297
3302
|
};
|
|
3298
3303
|
function RequestClass(name, fields, requestAllArgsConstructor, requestParameterConstructor, supers) {
|
|
3299
|
-
this.
|
|
3300
|
-
this.
|
|
3301
|
-
this.
|
|
3302
|
-
this.
|
|
3303
|
-
this.
|
|
3304
|
+
this.p1u_1 = name;
|
|
3305
|
+
this.q1u_1 = fields;
|
|
3306
|
+
this.r1u_1 = requestAllArgsConstructor;
|
|
3307
|
+
this.s1u_1 = requestParameterConstructor;
|
|
3308
|
+
this.t1u_1 = supers;
|
|
3304
3309
|
}
|
|
3305
3310
|
protoOf(RequestClass).toString = function () {
|
|
3306
|
-
return 'RequestClass(name=' + this.
|
|
3311
|
+
return 'RequestClass(name=' + this.p1u_1 + ', fields=' + this.q1u_1 + ', requestAllArgsConstructor=' + this.r1u_1 + ', requestParameterConstructor=' + this.s1u_1 + ', supers=' + this.t1u_1 + ')';
|
|
3307
3312
|
};
|
|
3308
3313
|
protoOf(RequestClass).hashCode = function () {
|
|
3309
|
-
var result = getStringHashCode(this.
|
|
3310
|
-
result = imul(result, 31) + hashCode(this.
|
|
3311
|
-
result = imul(result, 31) + this.q1u_1.hashCode() | 0;
|
|
3314
|
+
var result = getStringHashCode(this.p1u_1);
|
|
3315
|
+
result = imul(result, 31) + hashCode(this.q1u_1) | 0;
|
|
3312
3316
|
result = imul(result, 31) + this.r1u_1.hashCode() | 0;
|
|
3313
|
-
result = imul(result, 31) +
|
|
3317
|
+
result = imul(result, 31) + this.s1u_1.hashCode() | 0;
|
|
3318
|
+
result = imul(result, 31) + hashCode(this.t1u_1) | 0;
|
|
3314
3319
|
return result;
|
|
3315
3320
|
};
|
|
3316
3321
|
protoOf(RequestClass).equals = function (other) {
|
|
@@ -3319,28 +3324,28 @@
|
|
|
3319
3324
|
if (!(other instanceof RequestClass))
|
|
3320
3325
|
return false;
|
|
3321
3326
|
var tmp0_other_with_cast = other instanceof RequestClass ? other : THROW_CCE();
|
|
3322
|
-
if (!(this.
|
|
3323
|
-
return false;
|
|
3324
|
-
if (!equals(this.p1u_1, tmp0_other_with_cast.p1u_1))
|
|
3327
|
+
if (!(this.p1u_1 === tmp0_other_with_cast.p1u_1))
|
|
3325
3328
|
return false;
|
|
3326
|
-
if (!this.q1u_1
|
|
3329
|
+
if (!equals(this.q1u_1, tmp0_other_with_cast.q1u_1))
|
|
3327
3330
|
return false;
|
|
3328
3331
|
if (!this.r1u_1.equals(tmp0_other_with_cast.r1u_1))
|
|
3329
3332
|
return false;
|
|
3330
|
-
if (!
|
|
3333
|
+
if (!this.s1u_1.equals(tmp0_other_with_cast.s1u_1))
|
|
3334
|
+
return false;
|
|
3335
|
+
if (!equals(this.t1u_1, tmp0_other_with_cast.t1u_1))
|
|
3331
3336
|
return false;
|
|
3332
3337
|
return true;
|
|
3333
3338
|
};
|
|
3334
3339
|
function RequestMapper(name, conditions) {
|
|
3335
|
-
this.
|
|
3336
|
-
this.
|
|
3340
|
+
this.i1v_1 = name;
|
|
3341
|
+
this.j1v_1 = conditions;
|
|
3337
3342
|
}
|
|
3338
3343
|
protoOf(RequestMapper).toString = function () {
|
|
3339
|
-
return 'RequestMapper(name=' + this.
|
|
3344
|
+
return 'RequestMapper(name=' + this.i1v_1 + ', conditions=' + this.j1v_1 + ')';
|
|
3340
3345
|
};
|
|
3341
3346
|
protoOf(RequestMapper).hashCode = function () {
|
|
3342
|
-
var result = getStringHashCode(this.
|
|
3343
|
-
result = imul(result, 31) + hashCode(this.
|
|
3347
|
+
var result = getStringHashCode(this.i1v_1);
|
|
3348
|
+
result = imul(result, 31) + hashCode(this.j1v_1) | 0;
|
|
3344
3349
|
return result;
|
|
3345
3350
|
};
|
|
3346
3351
|
protoOf(RequestMapper).equals = function (other) {
|
|
@@ -3349,33 +3354,33 @@
|
|
|
3349
3354
|
if (!(other instanceof RequestMapper))
|
|
3350
3355
|
return false;
|
|
3351
3356
|
var tmp0_other_with_cast = other instanceof RequestMapper ? other : THROW_CCE();
|
|
3352
|
-
if (!(this.
|
|
3357
|
+
if (!(this.i1v_1 === tmp0_other_with_cast.i1v_1))
|
|
3353
3358
|
return false;
|
|
3354
|
-
if (!equals(this.
|
|
3359
|
+
if (!equals(this.j1v_1, tmp0_other_with_cast.j1v_1))
|
|
3355
3360
|
return false;
|
|
3356
3361
|
return true;
|
|
3357
3362
|
};
|
|
3358
3363
|
function ResponseClass(name, fields, responseAllArgsConstructor, responseParameterConstructor, super_0, statusCode, content) {
|
|
3359
3364
|
content = content === VOID ? null : content;
|
|
3360
|
-
this.
|
|
3361
|
-
this.
|
|
3362
|
-
this.
|
|
3363
|
-
this.
|
|
3364
|
-
this.
|
|
3365
|
-
this.
|
|
3366
|
-
this.
|
|
3365
|
+
this.q1v_1 = name;
|
|
3366
|
+
this.r1v_1 = fields;
|
|
3367
|
+
this.s1v_1 = responseAllArgsConstructor;
|
|
3368
|
+
this.t1v_1 = responseParameterConstructor;
|
|
3369
|
+
this.u1v_1 = super_0;
|
|
3370
|
+
this.v1v_1 = statusCode;
|
|
3371
|
+
this.w1v_1 = content;
|
|
3367
3372
|
}
|
|
3368
3373
|
protoOf(ResponseClass).toString = function () {
|
|
3369
|
-
return 'ResponseClass(name=' + this.
|
|
3374
|
+
return 'ResponseClass(name=' + this.q1v_1 + ', fields=' + this.r1v_1 + ', responseAllArgsConstructor=' + this.s1v_1 + ', responseParameterConstructor=' + this.t1v_1 + ', super=' + this.u1v_1 + ', statusCode=' + this.v1v_1 + ', content=' + this.w1v_1 + ')';
|
|
3370
3375
|
};
|
|
3371
3376
|
protoOf(ResponseClass).hashCode = function () {
|
|
3372
|
-
var result = getStringHashCode(this.
|
|
3373
|
-
result = imul(result, 31) + hashCode(this.
|
|
3374
|
-
result = imul(result, 31) + this.r1v_1.hashCode() | 0;
|
|
3377
|
+
var result = getStringHashCode(this.q1v_1);
|
|
3378
|
+
result = imul(result, 31) + hashCode(this.r1v_1) | 0;
|
|
3375
3379
|
result = imul(result, 31) + this.s1v_1.hashCode() | 0;
|
|
3376
|
-
result = imul(result, 31) +
|
|
3377
|
-
result = imul(result, 31) +
|
|
3378
|
-
result = imul(result, 31) + (this.v1v_1
|
|
3380
|
+
result = imul(result, 31) + this.t1v_1.hashCode() | 0;
|
|
3381
|
+
result = imul(result, 31) + hashCode(this.u1v_1) | 0;
|
|
3382
|
+
result = imul(result, 31) + getStringHashCode(this.v1v_1) | 0;
|
|
3383
|
+
result = imul(result, 31) + (this.w1v_1 == null ? 0 : this.w1v_1.hashCode()) | 0;
|
|
3379
3384
|
return result;
|
|
3380
3385
|
};
|
|
3381
3386
|
protoOf(ResponseClass).equals = function (other) {
|
|
@@ -3384,32 +3389,32 @@
|
|
|
3384
3389
|
if (!(other instanceof ResponseClass))
|
|
3385
3390
|
return false;
|
|
3386
3391
|
var tmp0_other_with_cast = other instanceof ResponseClass ? other : THROW_CCE();
|
|
3387
|
-
if (!(this.
|
|
3392
|
+
if (!(this.q1v_1 === tmp0_other_with_cast.q1v_1))
|
|
3388
3393
|
return false;
|
|
3389
|
-
if (!equals(this.
|
|
3390
|
-
return false;
|
|
3391
|
-
if (!this.r1v_1.equals(tmp0_other_with_cast.r1v_1))
|
|
3394
|
+
if (!equals(this.r1v_1, tmp0_other_with_cast.r1v_1))
|
|
3392
3395
|
return false;
|
|
3393
3396
|
if (!this.s1v_1.equals(tmp0_other_with_cast.s1v_1))
|
|
3394
3397
|
return false;
|
|
3395
|
-
if (!
|
|
3398
|
+
if (!this.t1v_1.equals(tmp0_other_with_cast.t1v_1))
|
|
3399
|
+
return false;
|
|
3400
|
+
if (!equals(this.u1v_1, tmp0_other_with_cast.u1v_1))
|
|
3396
3401
|
return false;
|
|
3397
|
-
if (!(this.
|
|
3402
|
+
if (!(this.v1v_1 === tmp0_other_with_cast.v1v_1))
|
|
3398
3403
|
return false;
|
|
3399
|
-
if (!equals(this.
|
|
3404
|
+
if (!equals(this.w1v_1, tmp0_other_with_cast.w1v_1))
|
|
3400
3405
|
return false;
|
|
3401
3406
|
return true;
|
|
3402
3407
|
};
|
|
3403
3408
|
function ResponseInterface(name, super_0) {
|
|
3404
|
-
this.
|
|
3405
|
-
this.
|
|
3409
|
+
this.p1w_1 = name;
|
|
3410
|
+
this.q1w_1 = super_0;
|
|
3406
3411
|
}
|
|
3407
3412
|
protoOf(ResponseInterface).toString = function () {
|
|
3408
|
-
return 'ResponseInterface(name=' + this.
|
|
3413
|
+
return 'ResponseInterface(name=' + this.p1w_1 + ', super=' + this.q1w_1 + ')';
|
|
3409
3414
|
};
|
|
3410
3415
|
protoOf(ResponseInterface).hashCode = function () {
|
|
3411
|
-
var result = hashCode(this.
|
|
3412
|
-
result = imul(result, 31) + hashCode(this.
|
|
3416
|
+
var result = hashCode(this.p1w_1);
|
|
3417
|
+
result = imul(result, 31) + hashCode(this.q1w_1) | 0;
|
|
3413
3418
|
return result;
|
|
3414
3419
|
};
|
|
3415
3420
|
protoOf(ResponseInterface).equals = function (other) {
|
|
@@ -3418,22 +3423,22 @@
|
|
|
3418
3423
|
if (!(other instanceof ResponseInterface))
|
|
3419
3424
|
return false;
|
|
3420
3425
|
var tmp0_other_with_cast = other instanceof ResponseInterface ? other : THROW_CCE();
|
|
3421
|
-
if (!equals(this.o1w_1, tmp0_other_with_cast.o1w_1))
|
|
3422
|
-
return false;
|
|
3423
3426
|
if (!equals(this.p1w_1, tmp0_other_with_cast.p1w_1))
|
|
3424
3427
|
return false;
|
|
3428
|
+
if (!equals(this.q1w_1, tmp0_other_with_cast.q1w_1))
|
|
3429
|
+
return false;
|
|
3425
3430
|
return true;
|
|
3426
3431
|
};
|
|
3427
3432
|
function ResponseMapper(name, conditions) {
|
|
3428
|
-
this.
|
|
3429
|
-
this.
|
|
3433
|
+
this.j1w_1 = name;
|
|
3434
|
+
this.k1w_1 = conditions;
|
|
3430
3435
|
}
|
|
3431
3436
|
protoOf(ResponseMapper).toString = function () {
|
|
3432
|
-
return 'ResponseMapper(name=' + this.
|
|
3437
|
+
return 'ResponseMapper(name=' + this.j1w_1 + ', conditions=' + this.k1w_1 + ')';
|
|
3433
3438
|
};
|
|
3434
3439
|
protoOf(ResponseMapper).hashCode = function () {
|
|
3435
|
-
var result = getStringHashCode(this.
|
|
3436
|
-
result = imul(result, 31) + hashCode(this.
|
|
3440
|
+
var result = getStringHashCode(this.j1w_1);
|
|
3441
|
+
result = imul(result, 31) + hashCode(this.k1w_1) | 0;
|
|
3437
3442
|
return result;
|
|
3438
3443
|
};
|
|
3439
3444
|
protoOf(ResponseMapper).equals = function (other) {
|
|
@@ -3442,22 +3447,22 @@
|
|
|
3442
3447
|
if (!(other instanceof ResponseMapper))
|
|
3443
3448
|
return false;
|
|
3444
3449
|
var tmp0_other_with_cast = other instanceof ResponseMapper ? other : THROW_CCE();
|
|
3445
|
-
if (!(this.
|
|
3450
|
+
if (!(this.j1w_1 === tmp0_other_with_cast.j1w_1))
|
|
3446
3451
|
return false;
|
|
3447
|
-
if (!equals(this.
|
|
3452
|
+
if (!equals(this.k1w_1, tmp0_other_with_cast.k1w_1))
|
|
3448
3453
|
return false;
|
|
3449
3454
|
return true;
|
|
3450
3455
|
};
|
|
3451
3456
|
function Content(type, reference) {
|
|
3452
|
-
this.
|
|
3453
|
-
this.
|
|
3457
|
+
this.l1v_1 = type;
|
|
3458
|
+
this.m1v_1 = reference;
|
|
3454
3459
|
}
|
|
3455
3460
|
protoOf(Content).toString = function () {
|
|
3456
|
-
return 'Content(type=' + this.
|
|
3461
|
+
return 'Content(type=' + this.l1v_1 + ', reference=' + this.m1v_1 + ')';
|
|
3457
3462
|
};
|
|
3458
3463
|
protoOf(Content).hashCode = function () {
|
|
3459
|
-
var result = getStringHashCode(this.
|
|
3460
|
-
result = imul(result, 31) + hashCode(this.
|
|
3464
|
+
var result = getStringHashCode(this.l1v_1);
|
|
3465
|
+
result = imul(result, 31) + hashCode(this.m1v_1) | 0;
|
|
3461
3466
|
return result;
|
|
3462
3467
|
};
|
|
3463
3468
|
protoOf(Content).equals = function (other) {
|
|
@@ -3466,23 +3471,23 @@
|
|
|
3466
3471
|
if (!(other instanceof Content))
|
|
3467
3472
|
return false;
|
|
3468
3473
|
var tmp0_other_with_cast = other instanceof Content ? other : THROW_CCE();
|
|
3469
|
-
if (!(this.
|
|
3474
|
+
if (!(this.l1v_1 === tmp0_other_with_cast.l1v_1))
|
|
3470
3475
|
return false;
|
|
3471
|
-
if (!equals(this.
|
|
3476
|
+
if (!equals(this.m1v_1, tmp0_other_with_cast.m1v_1))
|
|
3472
3477
|
return false;
|
|
3473
3478
|
return true;
|
|
3474
3479
|
};
|
|
3475
3480
|
function Path(value) {
|
|
3476
|
-
this.
|
|
3481
|
+
this.o1x_1 = value;
|
|
3477
3482
|
}
|
|
3478
3483
|
protoOf(Path).p2 = function () {
|
|
3479
|
-
return this.
|
|
3484
|
+
return this.o1x_1;
|
|
3480
3485
|
};
|
|
3481
3486
|
protoOf(Path).toString = function () {
|
|
3482
|
-
return 'Path(value=' + this.
|
|
3487
|
+
return 'Path(value=' + this.o1x_1 + ')';
|
|
3483
3488
|
};
|
|
3484
3489
|
protoOf(Path).hashCode = function () {
|
|
3485
|
-
return hashCode(this.
|
|
3490
|
+
return hashCode(this.o1x_1);
|
|
3486
3491
|
};
|
|
3487
3492
|
protoOf(Path).equals = function (other) {
|
|
3488
3493
|
if (this === other)
|
|
@@ -3490,36 +3495,36 @@
|
|
|
3490
3495
|
if (!(other instanceof Path))
|
|
3491
3496
|
return false;
|
|
3492
3497
|
var tmp0_other_with_cast = other instanceof Path ? other : THROW_CCE();
|
|
3493
|
-
if (!equals(this.
|
|
3498
|
+
if (!equals(this.o1x_1, tmp0_other_with_cast.o1x_1))
|
|
3494
3499
|
return false;
|
|
3495
3500
|
return true;
|
|
3496
3501
|
};
|
|
3497
3502
|
function EndpointClass(name, path, method, functionName, requestClasses, responseInterfaces, responseClasses, requestMapper, responseMapper, supers) {
|
|
3498
|
-
this.
|
|
3499
|
-
this.
|
|
3500
|
-
this.
|
|
3501
|
-
this.
|
|
3502
|
-
this.
|
|
3503
|
-
this.
|
|
3504
|
-
this.
|
|
3505
|
-
this.
|
|
3506
|
-
this.
|
|
3507
|
-
this.
|
|
3503
|
+
this.d1u_1 = name;
|
|
3504
|
+
this.e1u_1 = path;
|
|
3505
|
+
this.f1u_1 = method;
|
|
3506
|
+
this.g1u_1 = functionName;
|
|
3507
|
+
this.h1u_1 = requestClasses;
|
|
3508
|
+
this.i1u_1 = responseInterfaces;
|
|
3509
|
+
this.j1u_1 = responseClasses;
|
|
3510
|
+
this.k1u_1 = requestMapper;
|
|
3511
|
+
this.l1u_1 = responseMapper;
|
|
3512
|
+
this.m1u_1 = supers;
|
|
3508
3513
|
}
|
|
3509
3514
|
protoOf(EndpointClass).toString = function () {
|
|
3510
|
-
return 'EndpointClass(name=' + this.
|
|
3515
|
+
return 'EndpointClass(name=' + this.d1u_1 + ', path=' + this.e1u_1 + ', method=' + this.f1u_1 + ', functionName=' + this.g1u_1 + ', requestClasses=' + this.h1u_1 + ', responseInterfaces=' + this.i1u_1 + ', responseClasses=' + this.j1u_1 + ', requestMapper=' + this.k1u_1 + ', responseMapper=' + this.l1u_1 + ', supers=' + this.m1u_1 + ')';
|
|
3511
3516
|
};
|
|
3512
3517
|
protoOf(EndpointClass).hashCode = function () {
|
|
3513
|
-
var result = getStringHashCode(this.
|
|
3514
|
-
result = imul(result, 31) + getStringHashCode(this.d1u_1) | 0;
|
|
3518
|
+
var result = getStringHashCode(this.d1u_1);
|
|
3515
3519
|
result = imul(result, 31) + getStringHashCode(this.e1u_1) | 0;
|
|
3516
3520
|
result = imul(result, 31) + getStringHashCode(this.f1u_1) | 0;
|
|
3517
|
-
result = imul(result, 31) +
|
|
3521
|
+
result = imul(result, 31) + getStringHashCode(this.g1u_1) | 0;
|
|
3518
3522
|
result = imul(result, 31) + hashCode(this.h1u_1) | 0;
|
|
3519
3523
|
result = imul(result, 31) + hashCode(this.i1u_1) | 0;
|
|
3520
|
-
result = imul(result, 31) + this.j1u_1
|
|
3524
|
+
result = imul(result, 31) + hashCode(this.j1u_1) | 0;
|
|
3521
3525
|
result = imul(result, 31) + this.k1u_1.hashCode() | 0;
|
|
3522
|
-
result = imul(result, 31) +
|
|
3526
|
+
result = imul(result, 31) + this.l1u_1.hashCode() | 0;
|
|
3527
|
+
result = imul(result, 31) + hashCode(this.m1u_1) | 0;
|
|
3523
3528
|
return result;
|
|
3524
3529
|
};
|
|
3525
3530
|
protoOf(EndpointClass).equals = function (other) {
|
|
@@ -3528,38 +3533,38 @@
|
|
|
3528
3533
|
if (!(other instanceof EndpointClass))
|
|
3529
3534
|
return false;
|
|
3530
3535
|
var tmp0_other_with_cast = other instanceof EndpointClass ? other : THROW_CCE();
|
|
3531
|
-
if (!(this.c1u_1 === tmp0_other_with_cast.c1u_1))
|
|
3532
|
-
return false;
|
|
3533
3536
|
if (!(this.d1u_1 === tmp0_other_with_cast.d1u_1))
|
|
3534
3537
|
return false;
|
|
3535
3538
|
if (!(this.e1u_1 === tmp0_other_with_cast.e1u_1))
|
|
3536
3539
|
return false;
|
|
3537
3540
|
if (!(this.f1u_1 === tmp0_other_with_cast.f1u_1))
|
|
3538
3541
|
return false;
|
|
3539
|
-
if (!
|
|
3542
|
+
if (!(this.g1u_1 === tmp0_other_with_cast.g1u_1))
|
|
3540
3543
|
return false;
|
|
3541
3544
|
if (!equals(this.h1u_1, tmp0_other_with_cast.h1u_1))
|
|
3542
3545
|
return false;
|
|
3543
3546
|
if (!equals(this.i1u_1, tmp0_other_with_cast.i1u_1))
|
|
3544
3547
|
return false;
|
|
3545
|
-
if (!this.j1u_1
|
|
3548
|
+
if (!equals(this.j1u_1, tmp0_other_with_cast.j1u_1))
|
|
3546
3549
|
return false;
|
|
3547
3550
|
if (!this.k1u_1.equals(tmp0_other_with_cast.k1u_1))
|
|
3548
3551
|
return false;
|
|
3549
|
-
if (!
|
|
3552
|
+
if (!this.l1u_1.equals(tmp0_other_with_cast.l1u_1))
|
|
3553
|
+
return false;
|
|
3554
|
+
if (!equals(this.m1u_1, tmp0_other_with_cast.m1u_1))
|
|
3550
3555
|
return false;
|
|
3551
3556
|
return true;
|
|
3552
3557
|
};
|
|
3553
3558
|
function Parameter_0(identifier, reference) {
|
|
3554
|
-
this.
|
|
3555
|
-
this.
|
|
3559
|
+
this.r1w_1 = identifier;
|
|
3560
|
+
this.s1w_1 = reference;
|
|
3556
3561
|
}
|
|
3557
3562
|
protoOf(Parameter_0).toString = function () {
|
|
3558
|
-
return 'Parameter(identifier=' + this.
|
|
3563
|
+
return 'Parameter(identifier=' + this.r1w_1 + ', reference=' + this.s1w_1 + ')';
|
|
3559
3564
|
};
|
|
3560
3565
|
protoOf(Parameter_0).hashCode = function () {
|
|
3561
|
-
var result = getStringHashCode(this.
|
|
3562
|
-
result = imul(result, 31) + hashCode(this.
|
|
3566
|
+
var result = getStringHashCode(this.r1w_1);
|
|
3567
|
+
result = imul(result, 31) + hashCode(this.s1w_1) | 0;
|
|
3563
3568
|
return result;
|
|
3564
3569
|
};
|
|
3565
3570
|
protoOf(Parameter_0).equals = function (other) {
|
|
@@ -3568,18 +3573,18 @@
|
|
|
3568
3573
|
if (!(other instanceof Parameter_0))
|
|
3569
3574
|
return false;
|
|
3570
3575
|
var tmp0_other_with_cast = other instanceof Parameter_0 ? other : THROW_CCE();
|
|
3571
|
-
if (!(this.
|
|
3576
|
+
if (!(this.r1w_1 === tmp0_other_with_cast.r1w_1))
|
|
3572
3577
|
return false;
|
|
3573
|
-
if (!equals(this.
|
|
3578
|
+
if (!equals(this.s1w_1, tmp0_other_with_cast.s1w_1))
|
|
3574
3579
|
return false;
|
|
3575
3580
|
return true;
|
|
3576
3581
|
};
|
|
3577
3582
|
function transformParameter(_this__u8e3s4, $this) {
|
|
3578
|
-
return new Parameter_0(_this__u8e3s4.
|
|
3583
|
+
return new Parameter_0(_this__u8e3s4.f1y_1.k1y_1, transform_1(_this__u8e3s4.g1y_1, $this, false, _this__u8e3s4.h1y_1));
|
|
3579
3584
|
}
|
|
3580
3585
|
function transform(_this__u8e3s4, $this) {
|
|
3581
3586
|
// Inline function 'kotlin.collections.mapIndexed' call
|
|
3582
|
-
var tmp0_mapIndexed = split(_this__u8e3s4.
|
|
3587
|
+
var tmp0_mapIndexed = split(_this__u8e3s4.k1y_1, ['-', '.']);
|
|
3583
3588
|
// Inline function 'kotlin.collections.mapIndexedTo' call
|
|
3584
3589
|
var tmp0_mapIndexedTo = ArrayList_init_$Create$(collectionSizeOrDefault(tmp0_mapIndexed, 10));
|
|
3585
3590
|
var index = 0;
|
|
@@ -3596,7 +3601,7 @@
|
|
|
3596
3601
|
return joinToString(tmp0_mapIndexedTo, '');
|
|
3597
3602
|
}
|
|
3598
3603
|
function name_0(_this__u8e3s4, $this) {
|
|
3599
|
-
var tmp1_safe_receiver = _this__u8e3s4 == null ? null : _this__u8e3s4.
|
|
3604
|
+
var tmp1_safe_receiver = _this__u8e3s4 == null ? null : _this__u8e3s4.l1z_1;
|
|
3600
3605
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : substringBefore(tmp1_safe_receiver, ';');
|
|
3601
3606
|
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : split(tmp2_safe_receiver, ['/', '-']);
|
|
3602
3607
|
var tmp;
|
|
@@ -3610,7 +3615,7 @@
|
|
|
3610
3615
|
return tmp5_elvis_lhs == null ? 'Unit' : tmp5_elvis_lhs;
|
|
3611
3616
|
}
|
|
3612
3617
|
function transform_0(_this__u8e3s4, $this) {
|
|
3613
|
-
return new Content(_this__u8e3s4.
|
|
3618
|
+
return new Content(_this__u8e3s4.l1z_1, transform_1(_this__u8e3s4.m1z_1, $this, _this__u8e3s4.n1z_1, false));
|
|
3614
3619
|
}
|
|
3615
3620
|
function transform_1(_this__u8e3s4, $this, isNullable, isOptional) {
|
|
3616
3621
|
var tmp;
|
|
@@ -3626,7 +3631,7 @@
|
|
|
3626
3631
|
if (_this__u8e3s4 instanceof Primitive_0) {
|
|
3627
3632
|
// Inline function 'kotlin.let' call
|
|
3628
3633
|
var tmp_0;
|
|
3629
|
-
switch (_this__u8e3s4.
|
|
3634
|
+
switch (_this__u8e3s4.l1y_1.c9_1) {
|
|
3630
3635
|
case 0:
|
|
3631
3636
|
tmp_0 = Primitive_String_getInstance();
|
|
3632
3637
|
break;
|
|
@@ -3658,10 +3663,10 @@
|
|
|
3658
3663
|
function transform_2(_this__u8e3s4, $this) {
|
|
3659
3664
|
var tmp;
|
|
3660
3665
|
if (_this__u8e3s4 instanceof Literal_0) {
|
|
3661
|
-
tmp = new Literal(_this__u8e3s4.
|
|
3666
|
+
tmp = new Literal(_this__u8e3s4.x1y_1);
|
|
3662
3667
|
} else {
|
|
3663
3668
|
if (_this__u8e3s4 instanceof Param) {
|
|
3664
|
-
tmp = new Parameter(_this__u8e3s4.
|
|
3669
|
+
tmp = new Parameter(_this__u8e3s4.s1y_1.k1y_1);
|
|
3665
3670
|
} else {
|
|
3666
3671
|
noWhenBranchMatchedException();
|
|
3667
3672
|
}
|
|
@@ -3672,7 +3677,7 @@
|
|
|
3672
3677
|
return joinToString_1(args, '', VOID, VOID, VOID, VOID, ClassModelTransformer$className$lambda);
|
|
3673
3678
|
}
|
|
3674
3679
|
function toField_0(_this__u8e3s4, $this, identifier, isNullable) {
|
|
3675
|
-
return new Field_0(Companion_getInstance_6().
|
|
3680
|
+
return new Field_0(Companion_getInstance_6().o1z(identifier), _this__u8e3s4, isNullable);
|
|
3676
3681
|
}
|
|
3677
3682
|
function toField$default(_this__u8e3s4, $this, identifier, isNullable, $super) {
|
|
3678
3683
|
isNullable = isNullable === VOID ? false : isNullable;
|
|
@@ -3680,7 +3685,7 @@
|
|
|
3680
3685
|
}
|
|
3681
3686
|
function groupStatus(_this__u8e3s4, $this) {
|
|
3682
3687
|
var tmp;
|
|
3683
|
-
if (Companion_getInstance_4().
|
|
3688
|
+
if (Companion_getInstance_4().i1w(_this__u8e3s4)) {
|
|
3684
3689
|
// Inline function 'kotlin.text.substring' call
|
|
3685
3690
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3686
3691
|
tmp = _this__u8e3s4.substring(0, 1) + 'XX';
|
|
@@ -3690,10 +3695,10 @@
|
|
|
3690
3695
|
return tmp;
|
|
3691
3696
|
}
|
|
3692
3697
|
function sam$kotlin_Comparator$0(function_0) {
|
|
3693
|
-
this.
|
|
3698
|
+
this.x1z_1 = function_0;
|
|
3694
3699
|
}
|
|
3695
3700
|
protoOf(sam$kotlin_Comparator$0).t9 = function (a, b) {
|
|
3696
|
-
return this.
|
|
3701
|
+
return this.x1z_1(a, b);
|
|
3697
3702
|
};
|
|
3698
3703
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
3699
3704
|
return this.t9(a, b);
|
|
@@ -3701,10 +3706,10 @@
|
|
|
3701
3706
|
function ClassModelTransformer$transform$lambda(it) {
|
|
3702
3707
|
var tmp;
|
|
3703
3708
|
if (it instanceof Literal_0) {
|
|
3704
|
-
tmp = it.
|
|
3709
|
+
tmp = it.x1y_1;
|
|
3705
3710
|
} else {
|
|
3706
3711
|
if (it instanceof Param) {
|
|
3707
|
-
tmp = '{' + transform(it.
|
|
3712
|
+
tmp = '{' + transform(it.s1y_1, ClassModelTransformer_getInstance()) + '}';
|
|
3708
3713
|
} else {
|
|
3709
3714
|
noWhenBranchMatchedException();
|
|
3710
3715
|
}
|
|
@@ -3714,10 +3719,10 @@
|
|
|
3714
3719
|
function ClassModelTransformer$transform$lambda_0(a, b) {
|
|
3715
3720
|
// Inline function 'kotlin.comparisons.compareValuesBy' call
|
|
3716
3721
|
// Inline function 'community.flock.wirespec.compiler.core.emit.transformer.ClassModelTransformer.transform.<anonymous>' call
|
|
3717
|
-
var tmp = a.
|
|
3722
|
+
var tmp = a.a1z_1;
|
|
3718
3723
|
var tmp$ret$1;
|
|
3719
3724
|
// Inline function 'community.flock.wirespec.compiler.core.emit.transformer.ClassModelTransformer.transform.<anonymous>' call
|
|
3720
|
-
tmp$ret$1 = b.
|
|
3725
|
+
tmp$ret$1 = b.a1z_1;
|
|
3721
3726
|
return compareValues(tmp, tmp$ret$1);
|
|
3722
3727
|
}
|
|
3723
3728
|
function ClassModelTransformer$name$lambda(it) {
|
|
@@ -3730,9 +3735,9 @@
|
|
|
3730
3735
|
ClassModelTransformer_instance = this;
|
|
3731
3736
|
}
|
|
3732
3737
|
protoOf(ClassModelTransformer).d1t = function (_this__u8e3s4, ast) {
|
|
3733
|
-
var tmp = className(this, [_this__u8e3s4.
|
|
3738
|
+
var tmp = className(this, [_this__u8e3s4.b1y_1]);
|
|
3734
3739
|
// Inline function 'kotlin.collections.map' call
|
|
3735
|
-
var tmp0_map = _this__u8e3s4.
|
|
3740
|
+
var tmp0_map = _this__u8e3s4.c1y_1.e1y_1;
|
|
3736
3741
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3737
3742
|
var tmp0_mapTo = ArrayList_init_$Create$(collectionSizeOrDefault(tmp0_map, 10));
|
|
3738
3743
|
var tmp0_iterator = tmp0_map.v();
|
|
@@ -3740,7 +3745,7 @@
|
|
|
3740
3745
|
var item = tmp0_iterator.y();
|
|
3741
3746
|
var tmp$ret$0;
|
|
3742
3747
|
// Inline function 'community.flock.wirespec.compiler.core.emit.transformer.ClassModelTransformer.transform.<anonymous>' call
|
|
3743
|
-
tmp$ret$0 = new Field(item.
|
|
3748
|
+
tmp$ret$0 = new Field(item.f1y_1.k1y_1, transform_1(item.g1y_1, ClassModelTransformer_getInstance(), false, item.h1y_1));
|
|
3744
3749
|
tmp0_mapTo.s(tmp$ret$0);
|
|
3745
3750
|
}
|
|
3746
3751
|
var tmp_0 = tmp0_mapTo;
|
|
@@ -3763,7 +3768,7 @@
|
|
|
3763
3768
|
var element_0 = tmp0_iterator_1.y();
|
|
3764
3769
|
// Inline function 'community.flock.wirespec.compiler.core.emit.transformer.ClassModelTransformer.transform.<anonymous>' call
|
|
3765
3770
|
// Inline function 'kotlin.collections.map' call
|
|
3766
|
-
var tmp0_map_0 = element_0.
|
|
3771
|
+
var tmp0_map_0 = element_0.s1z_1;
|
|
3767
3772
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3768
3773
|
var tmp0_mapTo_0 = ArrayList_init_$Create$(collectionSizeOrDefault(tmp0_map_0, 10));
|
|
3769
3774
|
var tmp0_iterator_2 = tmp0_map_0.v();
|
|
@@ -3780,7 +3785,7 @@
|
|
|
3780
3785
|
tmp$ret$5 = tmp_1;
|
|
3781
3786
|
tmp0_mapTo_0.s(tmp$ret$5);
|
|
3782
3787
|
}
|
|
3783
|
-
if (tmp0_mapTo_0.r(_this__u8e3s4.
|
|
3788
|
+
if (tmp0_mapTo_0.r(_this__u8e3s4.b1y_1)) {
|
|
3784
3789
|
tmp0_filterTo.s(element_0);
|
|
3785
3790
|
}
|
|
3786
3791
|
}
|
|
@@ -3791,24 +3796,37 @@
|
|
|
3791
3796
|
var item_1 = tmp0_iterator_3.y();
|
|
3792
3797
|
var tmp$ret$11;
|
|
3793
3798
|
// Inline function 'community.flock.wirespec.compiler.core.emit.transformer.ClassModelTransformer.transform.<anonymous>' call
|
|
3794
|
-
tmp$ret$11 = new Custom(item_1.
|
|
3799
|
+
tmp$ret$11 = new Custom(item_1.r1z_1);
|
|
3795
3800
|
tmp0_mapTo_1.s(tmp$ret$11);
|
|
3796
3801
|
}
|
|
3797
3802
|
return new TypeClass(tmp, tmp_0, tmp0_mapTo_1);
|
|
3798
3803
|
};
|
|
3799
3804
|
protoOf(ClassModelTransformer).k1t = function (_this__u8e3s4) {
|
|
3800
|
-
return new RefinedClass(className(this, [_this__u8e3s4.
|
|
3805
|
+
return new RefinedClass(className(this, [_this__u8e3s4.o1y_1]), new Validator(_this__u8e3s4.p1y_1.r1y_1));
|
|
3801
3806
|
};
|
|
3802
3807
|
protoOf(ClassModelTransformer).w1t = function (_this__u8e3s4) {
|
|
3803
|
-
|
|
3808
|
+
var tmp = className(this, [_this__u8e3s4.r1z_1]);
|
|
3809
|
+
// Inline function 'kotlin.collections.map' call
|
|
3810
|
+
var tmp0_map = _this__u8e3s4.s1z_1;
|
|
3811
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
3812
|
+
var tmp0_mapTo = ArrayList_init_$Create$(collectionSizeOrDefault(tmp0_map, 10));
|
|
3813
|
+
var tmp0_iterator = tmp0_map.v();
|
|
3814
|
+
while (tmp0_iterator.w()) {
|
|
3815
|
+
var item = tmp0_iterator.y();
|
|
3816
|
+
var tmp$ret$0;
|
|
3817
|
+
// Inline function 'community.flock.wirespec.compiler.core.emit.transformer.ClassModelTransformer.transform.<anonymous>' call
|
|
3818
|
+
tmp$ret$0 = item.p2();
|
|
3819
|
+
tmp0_mapTo.s(tmp$ret$0);
|
|
3820
|
+
}
|
|
3821
|
+
return new UnionClass(tmp, tmp0_mapTo);
|
|
3804
3822
|
};
|
|
3805
3823
|
protoOf(ClassModelTransformer).r1t = function (_this__u8e3s4) {
|
|
3806
|
-
return new EnumClass(className(this, [_this__u8e3s4.
|
|
3824
|
+
return new EnumClass(className(this, [_this__u8e3s4.z1x_1]), _this__u8e3s4.a1y_1);
|
|
3807
3825
|
};
|
|
3808
|
-
protoOf(ClassModelTransformer).
|
|
3826
|
+
protoOf(ClassModelTransformer).b1u = function (_this__u8e3s4) {
|
|
3809
3827
|
// Inline function 'kotlin.collections.map' call
|
|
3810
3828
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
3811
|
-
var tmp0_filterIsInstance = _this__u8e3s4.
|
|
3829
|
+
var tmp0_filterIsInstance = _this__u8e3s4.f1z_1;
|
|
3812
3830
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
3813
3831
|
var tmp0_filterIsInstanceTo = ArrayList_init_$Create$_0();
|
|
3814
3832
|
var tmp0_iterator = tmp0_filterIsInstance.v();
|
|
@@ -3825,17 +3843,17 @@
|
|
|
3825
3843
|
var item = tmp0_iterator_0.y();
|
|
3826
3844
|
var tmp$ret$2;
|
|
3827
3845
|
// Inline function 'community.flock.wirespec.compiler.core.emit.transformer.ClassModelTransformer.transform.<anonymous>' call
|
|
3828
|
-
tmp$ret$2 = new Field_0(item.
|
|
3846
|
+
tmp$ret$2 = new Field_0(item.s1y_1, item.t1y_1, false);
|
|
3829
3847
|
tmp0_mapTo.s(tmp$ret$2);
|
|
3830
3848
|
}
|
|
3831
3849
|
var pathField = tmp0_mapTo;
|
|
3832
|
-
var parameters = plus(plus(plus(pathField, _this__u8e3s4.
|
|
3833
|
-
var tmp0_name = className(this, [_this__u8e3s4.
|
|
3834
|
-
var tmp1_path = joinToString(_this__u8e3s4.
|
|
3835
|
-
var tmp2_functionName = Companion_getInstance_4().o1s(_this__u8e3s4.
|
|
3836
|
-
var tmp3_method = _this__u8e3s4.
|
|
3850
|
+
var parameters = plus(plus(plus(pathField, _this__u8e3s4.g1z_1), _this__u8e3s4.h1z_1), _this__u8e3s4.i1z_1);
|
|
3851
|
+
var tmp0_name = className(this, [_this__u8e3s4.d1z_1, 'Endpoint']);
|
|
3852
|
+
var tmp1_path = joinToString(_this__u8e3s4.f1z_1, '/', '/', VOID, VOID, VOID, ClassModelTransformer$transform$lambda);
|
|
3853
|
+
var tmp2_functionName = Companion_getInstance_4().o1s(_this__u8e3s4.d1z_1);
|
|
3854
|
+
var tmp3_method = _this__u8e3s4.e1z_1.b9_1;
|
|
3837
3855
|
// Inline function 'kotlin.collections.map' call
|
|
3838
|
-
var tmp2_map = _this__u8e3s4.
|
|
3856
|
+
var tmp2_map = _this__u8e3s4.j1z_1;
|
|
3839
3857
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3840
3858
|
var tmp0_mapTo_0 = ArrayList_init_$Create$(collectionSizeOrDefault(tmp2_map, 10));
|
|
3841
3859
|
var tmp0_iterator_1 = tmp2_map.v();
|
|
@@ -3843,30 +3861,30 @@
|
|
|
3843
3861
|
var item_0 = tmp0_iterator_1.y();
|
|
3844
3862
|
var tmp$ret$17;
|
|
3845
3863
|
// Inline function 'community.flock.wirespec.compiler.core.emit.transformer.ClassModelTransformer.transform.<anonymous>' call
|
|
3846
|
-
var tmp = className(ClassModelTransformer_getInstance(), ['Request', name_0(item_0.
|
|
3864
|
+
var tmp = className(ClassModelTransformer_getInstance(), ['Request', name_0(item_0.y1y_1, ClassModelTransformer_getInstance())]);
|
|
3847
3865
|
var tmp_0 = new Field('path', new Language(Primitive_String_getInstance(), false), true, true, true);
|
|
3848
3866
|
var tmp_1 = new Field('method', new Wirespec('Method'), true, true, true);
|
|
3849
3867
|
var tmp_2 = new Field('query', new Language(Primitive_Map_getInstance(), VOID, VOID, VOID, new Generics(listOf([new Language(Primitive_String_getInstance(), false), new Language(Primitive_List_getInstance(), false, VOID, VOID, new Generics(listOf_0(new Language(Primitive_Any_getInstance(), true))))]))), true, true, true);
|
|
3850
3868
|
var tmp_3 = new Field('headers', new Language(Primitive_Map_getInstance(), VOID, VOID, VOID, new Generics(listOf([new Language(Primitive_String_getInstance(), false), new Language(Primitive_List_getInstance(), false, VOID, VOID, new Generics(listOf_0(new Language(Primitive_Any_getInstance(), true))))]))), true, true, true);
|
|
3851
|
-
var tmp_4 = item_0.
|
|
3852
|
-
var tmp0_safe_receiver = item_0.
|
|
3853
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
3854
|
-
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : transform_1(tmp1_safe_receiver, ClassModelTransformer_getInstance(), item_0.
|
|
3869
|
+
var tmp_4 = item_0.y1y_1 == null;
|
|
3870
|
+
var tmp0_safe_receiver = item_0.y1y_1;
|
|
3871
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m1z_1;
|
|
3872
|
+
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : transform_1(tmp1_safe_receiver, ClassModelTransformer_getInstance(), item_0.y1y_1.n1z_1, false);
|
|
3855
3873
|
var tmp_5 = listOf([tmp_0, tmp_1, tmp_2, tmp_3, new Field('content', new Wirespec('Content', tmp_4, VOID, VOID, new Generics(listOf_0(tmp2_elvis_lhs == null ? new Language(Primitive_Unit_getInstance()) : tmp2_elvis_lhs))), true, true, true)]);
|
|
3856
|
-
var tmp_6 = className(ClassModelTransformer_getInstance(), ['Request', name_0(item_0.
|
|
3874
|
+
var tmp_6 = className(ClassModelTransformer_getInstance(), ['Request', name_0(item_0.y1y_1, ClassModelTransformer_getInstance())]);
|
|
3857
3875
|
var tmp_7 = new Parameter_0('path', new Language(Primitive_String_getInstance(), false));
|
|
3858
3876
|
var tmp_8 = new Parameter_0('method', new Wirespec('Method', false));
|
|
3859
3877
|
var tmp_9 = new Parameter_0('query', new Language(Primitive_Map_getInstance(), VOID, VOID, VOID, new Generics(listOf([new Language(Primitive_String_getInstance(), false), new Language(Primitive_List_getInstance(), false, VOID, VOID, new Generics(listOf_0(new Language(Primitive_Any_getInstance(), true))))]))));
|
|
3860
3878
|
var tmp_10 = new Parameter_0('headers', new Language(Primitive_Map_getInstance(), VOID, VOID, VOID, new Generics(listOf([new Language(Primitive_String_getInstance(), false), new Language(Primitive_List_getInstance(), false, VOID, VOID, new Generics(listOf_0(new Language(Primitive_Any_getInstance(), true))))]))));
|
|
3861
|
-
var tmp_11 = item_0.
|
|
3862
|
-
var tmp3_safe_receiver = item_0.
|
|
3863
|
-
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.
|
|
3864
|
-
var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : transform_1(tmp4_safe_receiver, ClassModelTransformer_getInstance(), item_0.
|
|
3879
|
+
var tmp_11 = item_0.y1y_1 == null;
|
|
3880
|
+
var tmp3_safe_receiver = item_0.y1y_1;
|
|
3881
|
+
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.m1z_1;
|
|
3882
|
+
var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : transform_1(tmp4_safe_receiver, ClassModelTransformer_getInstance(), item_0.y1y_1.n1z_1, false);
|
|
3865
3883
|
var tmp_12 = new RequestAllArgsConstructor(tmp_6, listOf([tmp_7, tmp_8, tmp_9, tmp_10, new Parameter_0('content', new Wirespec('Content', tmp_11, VOID, VOID, new Generics(listOf_0(tmp5_elvis_lhs == null ? new Language(Primitive_Unit_getInstance()) : tmp5_elvis_lhs))))]));
|
|
3866
|
-
var tmp9_name = className(ClassModelTransformer_getInstance(), ['Request', name_0(item_0.
|
|
3884
|
+
var tmp9_name = className(ClassModelTransformer_getInstance(), ['Request', name_0(item_0.y1y_1, ClassModelTransformer_getInstance())]);
|
|
3867
3885
|
// Inline function 'kotlin.collections.map' call
|
|
3868
|
-
var tmp6_safe_receiver = item_0.
|
|
3869
|
-
var tmp7_safe_receiver = tmp6_safe_receiver == null ? null : tmp6_safe_receiver.
|
|
3886
|
+
var tmp6_safe_receiver = item_0.y1y_1;
|
|
3887
|
+
var tmp7_safe_receiver = tmp6_safe_receiver == null ? null : tmp6_safe_receiver.m1z_1;
|
|
3870
3888
|
var tmp0_map = filterNotNull(plus_0(parameters, tmp7_safe_receiver == null ? null : toField_0(tmp7_safe_receiver, ClassModelTransformer_getInstance(), 'body', false)));
|
|
3871
3889
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3872
3890
|
var tmp0_mapTo_1 = ArrayList_init_$Create$(collectionSizeOrDefault(tmp0_map, 10));
|
|
@@ -3878,10 +3896,10 @@
|
|
|
3878
3896
|
tmp$ret$5 = transformParameter(item_1, ClassModelTransformer_getInstance());
|
|
3879
3897
|
tmp0_mapTo_1.s(tmp$ret$5);
|
|
3880
3898
|
}
|
|
3881
|
-
var tmp8_safe_receiver = item_0.
|
|
3899
|
+
var tmp8_safe_receiver = item_0.y1y_1;
|
|
3882
3900
|
var tmp11_content = tmp8_safe_receiver == null ? null : transform_0(tmp8_safe_receiver, ClassModelTransformer_getInstance());
|
|
3883
3901
|
// Inline function 'kotlin.collections.map' call
|
|
3884
|
-
var tmp1_map = _this__u8e3s4.
|
|
3902
|
+
var tmp1_map = _this__u8e3s4.f1z_1;
|
|
3885
3903
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3886
3904
|
var tmp0_mapTo_2 = ArrayList_init_$Create$(collectionSizeOrDefault(tmp1_map, 10));
|
|
3887
3905
|
var tmp0_iterator_3 = tmp1_map.v();
|
|
@@ -3893,9 +3911,9 @@
|
|
|
3893
3911
|
tmp0_mapTo_2.s(tmp$ret$8);
|
|
3894
3912
|
}
|
|
3895
3913
|
var tmp12_path = new Path(tmp0_mapTo_2);
|
|
3896
|
-
var tmp13_method = _this__u8e3s4.
|
|
3914
|
+
var tmp13_method = _this__u8e3s4.e1z_1.b9_1;
|
|
3897
3915
|
// Inline function 'kotlin.collections.map' call
|
|
3898
|
-
var tmp2_map_0 = _this__u8e3s4.
|
|
3916
|
+
var tmp2_map_0 = _this__u8e3s4.g1z_1;
|
|
3899
3917
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3900
3918
|
var tmp0_mapTo_3 = ArrayList_init_$Create$(collectionSizeOrDefault(tmp2_map_0, 10));
|
|
3901
3919
|
var tmp0_iterator_4 = tmp2_map_0.v();
|
|
@@ -3903,11 +3921,11 @@
|
|
|
3903
3921
|
var item_3 = tmp0_iterator_4.y();
|
|
3904
3922
|
var tmp$ret$11;
|
|
3905
3923
|
// Inline function 'community.flock.wirespec.compiler.core.emit.transformer.ClassModelTransformer.transform.<anonymous>.<anonymous>' call
|
|
3906
|
-
tmp$ret$11 = item_3.
|
|
3924
|
+
tmp$ret$11 = item_3.f1y_1.k1y_1;
|
|
3907
3925
|
tmp0_mapTo_3.s(tmp$ret$11);
|
|
3908
3926
|
}
|
|
3909
3927
|
// Inline function 'kotlin.collections.map' call
|
|
3910
|
-
var tmp3_map = _this__u8e3s4.
|
|
3928
|
+
var tmp3_map = _this__u8e3s4.h1z_1;
|
|
3911
3929
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3912
3930
|
var tmp0_mapTo_4 = ArrayList_init_$Create$(collectionSizeOrDefault(tmp3_map, 10));
|
|
3913
3931
|
var tmp0_iterator_5 = tmp3_map.v();
|
|
@@ -3915,19 +3933,19 @@
|
|
|
3915
3933
|
var item_4 = tmp0_iterator_5.y();
|
|
3916
3934
|
var tmp$ret$14;
|
|
3917
3935
|
// Inline function 'community.flock.wirespec.compiler.core.emit.transformer.ClassModelTransformer.transform.<anonymous>.<anonymous>' call
|
|
3918
|
-
tmp$ret$14 = item_4.
|
|
3936
|
+
tmp$ret$14 = item_4.f1y_1.k1y_1;
|
|
3919
3937
|
tmp0_mapTo_4.s(tmp$ret$14);
|
|
3920
3938
|
}
|
|
3921
3939
|
var tmp_13 = new RequestParameterConstructor(tmp9_name, tmp0_mapTo_1, tmp12_path, tmp13_method, tmp0_mapTo_3, tmp0_mapTo_4, tmp11_content);
|
|
3922
3940
|
var tmp_14 = className(ClassModelTransformer_getInstance(), ['Request']);
|
|
3923
|
-
var tmp16_safe_receiver = item_0.
|
|
3924
|
-
var tmp17_safe_receiver = tmp16_safe_receiver == null ? null : tmp16_safe_receiver.
|
|
3925
|
-
var tmp18_elvis_lhs = tmp17_safe_receiver == null ? null : transform_1(tmp17_safe_receiver, ClassModelTransformer_getInstance(), item_0.
|
|
3941
|
+
var tmp16_safe_receiver = item_0.y1y_1;
|
|
3942
|
+
var tmp17_safe_receiver = tmp16_safe_receiver == null ? null : tmp16_safe_receiver.m1z_1;
|
|
3943
|
+
var tmp18_elvis_lhs = tmp17_safe_receiver == null ? null : transform_1(tmp17_safe_receiver, ClassModelTransformer_getInstance(), item_0.y1y_1.n1z_1, false);
|
|
3926
3944
|
tmp$ret$17 = new RequestClass(tmp, tmp_5, tmp_12, tmp_13, listOf_0(new Custom(tmp_14, VOID, VOID, VOID, new Generics(listOf_0(tmp18_elvis_lhs == null ? new Language(Primitive_Unit_getInstance()) : tmp18_elvis_lhs)))));
|
|
3927
3945
|
tmp0_mapTo_0.s(tmp$ret$17);
|
|
3928
3946
|
}
|
|
3929
3947
|
// Inline function 'kotlin.collections.map' call
|
|
3930
|
-
var tmp3_map_0 = _this__u8e3s4.
|
|
3948
|
+
var tmp3_map_0 = _this__u8e3s4.j1z_1;
|
|
3931
3949
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3932
3950
|
var tmp0_mapTo_5 = ArrayList_init_$Create$(collectionSizeOrDefault(tmp3_map_0, 10));
|
|
3933
3951
|
var tmp0_iterator_6 = tmp3_map_0.v();
|
|
@@ -3935,20 +3953,20 @@
|
|
|
3935
3953
|
var item_5 = tmp0_iterator_6.y();
|
|
3936
3954
|
var tmp$ret$20;
|
|
3937
3955
|
// Inline function 'community.flock.wirespec.compiler.core.emit.transformer.ClassModelTransformer.transform.<anonymous>' call
|
|
3938
|
-
var tmp0_safe_receiver_0 = item_5.
|
|
3956
|
+
var tmp0_safe_receiver_0 = item_5.y1y_1;
|
|
3939
3957
|
var tmp4_content = tmp0_safe_receiver_0 == null ? null : transform_0(tmp0_safe_receiver_0, ClassModelTransformer_getInstance());
|
|
3940
|
-
var tmp1_safe_receiver_0 = item_5.
|
|
3941
|
-
var tmp2_safe_receiver = tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.
|
|
3958
|
+
var tmp1_safe_receiver_0 = item_5.y1y_1;
|
|
3959
|
+
var tmp2_safe_receiver = tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.m1z_1;
|
|
3942
3960
|
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.g1s();
|
|
3943
3961
|
var tmp5_isIterable = tmp3_elvis_lhs == null ? false : tmp3_elvis_lhs;
|
|
3944
|
-
var tmp6_responseReference = new Custom(className(ClassModelTransformer_getInstance(), ['Request', name_0(item_5.
|
|
3962
|
+
var tmp6_responseReference = new Custom(className(ClassModelTransformer_getInstance(), ['Request', name_0(item_5.y1y_1, ClassModelTransformer_getInstance())]));
|
|
3945
3963
|
tmp$ret$20 = new RequestCondition(tmp4_content, tmp6_responseReference, tmp5_isIterable);
|
|
3946
3964
|
tmp0_mapTo_5.s(tmp$ret$20);
|
|
3947
3965
|
}
|
|
3948
3966
|
var tmp5_requestMapper = new RequestMapper('REQUEST_MAPPER', tmp0_mapTo_5);
|
|
3949
3967
|
// Inline function 'kotlin.collections.map' call
|
|
3950
3968
|
// Inline function 'kotlin.collections.sortedBy' call
|
|
3951
|
-
var tmp4_sortedBy = _this__u8e3s4.
|
|
3969
|
+
var tmp4_sortedBy = _this__u8e3s4.k1z_1;
|
|
3952
3970
|
var tmp$ret$23;
|
|
3953
3971
|
// Inline function 'kotlin.comparisons.compareBy' call
|
|
3954
3972
|
var tmp_15 = ClassModelTransformer$transform$lambda_0;
|
|
@@ -3961,21 +3979,21 @@
|
|
|
3961
3979
|
var item_6 = tmp0_iterator_7.y();
|
|
3962
3980
|
var tmp$ret$25;
|
|
3963
3981
|
// Inline function 'community.flock.wirespec.compiler.core.emit.transformer.ClassModelTransformer.transform.<anonymous>' call
|
|
3964
|
-
var tmp4_statusCode = item_6.
|
|
3965
|
-
var tmp0_safe_receiver_1 = item_6.
|
|
3982
|
+
var tmp4_statusCode = item_6.a1z_1;
|
|
3983
|
+
var tmp0_safe_receiver_1 = item_6.c1z_1;
|
|
3966
3984
|
var tmp5_content = tmp0_safe_receiver_1 == null ? null : transform_0(tmp0_safe_receiver_1, ClassModelTransformer_getInstance());
|
|
3967
|
-
var tmp1_safe_receiver_1 = item_6.
|
|
3968
|
-
var tmp2_safe_receiver_0 = tmp1_safe_receiver_1 == null ? null : tmp1_safe_receiver_1.
|
|
3985
|
+
var tmp1_safe_receiver_1 = item_6.c1z_1;
|
|
3986
|
+
var tmp2_safe_receiver_0 = tmp1_safe_receiver_1 == null ? null : tmp1_safe_receiver_1.m1z_1;
|
|
3969
3987
|
var tmp3_elvis_lhs_0 = tmp2_safe_receiver_0 == null ? null : tmp2_safe_receiver_0.g1s();
|
|
3970
3988
|
var tmp6_isIterable = tmp3_elvis_lhs_0 == null ? false : tmp3_elvis_lhs_0;
|
|
3971
|
-
var tmp7_responseReference = new Custom(className(ClassModelTransformer_getInstance(), ['Response', item_6.
|
|
3989
|
+
var tmp7_responseReference = new Custom(className(ClassModelTransformer_getInstance(), ['Response', item_6.a1z_1, name_0(item_6.c1z_1, ClassModelTransformer_getInstance())]));
|
|
3972
3990
|
tmp$ret$25 = new ResponseCondition(tmp4_statusCode, tmp5_content, tmp7_responseReference, tmp6_isIterable);
|
|
3973
3991
|
tmp0_mapTo_6.s(tmp$ret$25);
|
|
3974
3992
|
}
|
|
3975
3993
|
var tmp6_responseMapper = new ResponseMapper('RESPONSE_MAPPER', tmp0_mapTo_6);
|
|
3976
3994
|
// Inline function 'kotlin.collections.map' call
|
|
3977
3995
|
// Inline function 'kotlin.collections.map' call
|
|
3978
|
-
var tmp6_map = _this__u8e3s4.
|
|
3996
|
+
var tmp6_map = _this__u8e3s4.k1z_1;
|
|
3979
3997
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3980
3998
|
var tmp0_mapTo_7 = ArrayList_init_$Create$(collectionSizeOrDefault(tmp6_map, 10));
|
|
3981
3999
|
var tmp0_iterator_8 = tmp6_map.v();
|
|
@@ -3983,7 +4001,7 @@
|
|
|
3983
4001
|
var item_7 = tmp0_iterator_8.y();
|
|
3984
4002
|
var tmp$ret$28;
|
|
3985
4003
|
// Inline function 'community.flock.wirespec.compiler.core.emit.transformer.ClassModelTransformer.transform.<anonymous>' call
|
|
3986
|
-
tmp$ret$28 = groupStatus(item_7.
|
|
4004
|
+
tmp$ret$28 = groupStatus(item_7.a1z_1, ClassModelTransformer_getInstance());
|
|
3987
4005
|
tmp0_mapTo_7.s(tmp$ret$28);
|
|
3988
4006
|
}
|
|
3989
4007
|
var tmp7_map = distinct(tmp0_mapTo_7);
|
|
@@ -4001,14 +4019,14 @@
|
|
|
4001
4019
|
// Inline function 'kotlin.collections.map' call
|
|
4002
4020
|
// Inline function 'kotlin.collections.map' call
|
|
4003
4021
|
// Inline function 'kotlin.collections.filter' call
|
|
4004
|
-
var tmp8_filter = _this__u8e3s4.
|
|
4022
|
+
var tmp8_filter = _this__u8e3s4.k1z_1;
|
|
4005
4023
|
// Inline function 'kotlin.collections.filterTo' call
|
|
4006
4024
|
var tmp0_filterTo = ArrayList_init_$Create$_0();
|
|
4007
4025
|
var tmp0_iterator_10 = tmp8_filter.v();
|
|
4008
4026
|
while (tmp0_iterator_10.w()) {
|
|
4009
4027
|
var element_0 = tmp0_iterator_10.y();
|
|
4010
4028
|
// Inline function 'community.flock.wirespec.compiler.core.emit.transformer.ClassModelTransformer.transform.<anonymous>' call
|
|
4011
|
-
if (Companion_getInstance_4().
|
|
4029
|
+
if (Companion_getInstance_4().w1z(element_0.a1z_1)) {
|
|
4012
4030
|
tmp0_filterTo.s(element_0);
|
|
4013
4031
|
}
|
|
4014
4032
|
}
|
|
@@ -4019,7 +4037,7 @@
|
|
|
4019
4037
|
var item_9 = tmp0_iterator_11.y();
|
|
4020
4038
|
var tmp$ret$37;
|
|
4021
4039
|
// Inline function 'community.flock.wirespec.compiler.core.emit.transformer.ClassModelTransformer.transform.<anonymous>' call
|
|
4022
|
-
tmp$ret$37 = item_9.
|
|
4040
|
+
tmp$ret$37 = item_9.a1z_1;
|
|
4023
4041
|
tmp0_mapTo_9.s(tmp$ret$37);
|
|
4024
4042
|
}
|
|
4025
4043
|
var tmp10_map = distinct(tmp0_mapTo_9);
|
|
@@ -4035,7 +4053,7 @@
|
|
|
4035
4053
|
}
|
|
4036
4054
|
var tmp7_responseInterfaces = plus(tmp_16, tmp0_mapTo_10);
|
|
4037
4055
|
// Inline function 'kotlin.collections.map' call
|
|
4038
|
-
var tmp11_map = _this__u8e3s4.
|
|
4056
|
+
var tmp11_map = _this__u8e3s4.k1z_1;
|
|
4039
4057
|
// Inline function 'kotlin.collections.mapTo' call
|
|
4040
4058
|
var tmp0_mapTo_11 = ArrayList_init_$Create$(collectionSizeOrDefault(tmp11_map, 10));
|
|
4041
4059
|
var tmp0_iterator_13 = tmp11_map.v();
|
|
@@ -4043,33 +4061,33 @@
|
|
|
4043
4061
|
var item_11 = tmp0_iterator_13.y();
|
|
4044
4062
|
var tmp$ret$49;
|
|
4045
4063
|
// Inline function 'community.flock.wirespec.compiler.core.emit.transformer.ClassModelTransformer.transform.<anonymous>' call
|
|
4046
|
-
var tmp_17 = className(ClassModelTransformer_getInstance(), ['Response', item_11.
|
|
4064
|
+
var tmp_17 = className(ClassModelTransformer_getInstance(), ['Response', item_11.a1z_1, name_0(item_11.c1z_1, ClassModelTransformer_getInstance())]);
|
|
4047
4065
|
var tmp0_reference = new Language(Primitive_Integer_getInstance());
|
|
4048
4066
|
var tmp_18 = new Field('status', tmp0_reference, true, true, true);
|
|
4049
4067
|
var tmp_19 = new Field('headers', new Language(Primitive_Map_getInstance(), false, VOID, VOID, new Generics(listOf([new Language(Primitive_String_getInstance(), false), new Language(Primitive_List_getInstance(), false, VOID, VOID, new Generics(listOf_0(new Language(Primitive_Any_getInstance(), true))))]))), true, true, true);
|
|
4050
|
-
var tmp_20 = item_11.
|
|
4051
|
-
var tmp1_safe_receiver_2 = item_11.
|
|
4052
|
-
var tmp2_safe_receiver_1 = tmp1_safe_receiver_2 == null ? null : tmp1_safe_receiver_2.
|
|
4053
|
-
var tmp3_elvis_lhs_1 = tmp2_safe_receiver_1 == null ? null : transform_1(tmp2_safe_receiver_1, ClassModelTransformer_getInstance(), item_11.
|
|
4068
|
+
var tmp_20 = item_11.c1z_1 == null;
|
|
4069
|
+
var tmp1_safe_receiver_2 = item_11.c1z_1;
|
|
4070
|
+
var tmp2_safe_receiver_1 = tmp1_safe_receiver_2 == null ? null : tmp1_safe_receiver_2.m1z_1;
|
|
4071
|
+
var tmp3_elvis_lhs_1 = tmp2_safe_receiver_1 == null ? null : transform_1(tmp2_safe_receiver_1, ClassModelTransformer_getInstance(), item_11.c1z_1.n1z_1, false);
|
|
4054
4072
|
var tmp4_reference = new Wirespec('Content', tmp_20, VOID, VOID, new Generics(listOf_0(tmp3_elvis_lhs_1 == null ? new Language(Primitive_Unit_getInstance()) : tmp3_elvis_lhs_1)));
|
|
4055
4073
|
var tmp_21 = listOf([tmp_18, tmp_19, new Field('content', tmp4_reference, true, true, true)]);
|
|
4056
|
-
var tmp9_name_0 = className(ClassModelTransformer_getInstance(), ['Response', item_11.
|
|
4057
|
-
var tmp10_statusCode = item_11.
|
|
4074
|
+
var tmp9_name_0 = className(ClassModelTransformer_getInstance(), ['Response', item_11.a1z_1, name_0(item_11.c1z_1, ClassModelTransformer_getInstance())]);
|
|
4075
|
+
var tmp10_statusCode = item_11.a1z_1;
|
|
4058
4076
|
var tmp_22 = new Parameter_0('status', new Language(Primitive_Integer_getInstance()));
|
|
4059
4077
|
var tmp_23 = new Parameter_0('headers', new Language(Primitive_Map_getInstance(), false, VOID, VOID, new Generics(listOf([new Language(Primitive_String_getInstance(), false), new Language(Primitive_List_getInstance(), false, VOID, VOID, new Generics(listOf_0(new Language(Primitive_Any_getInstance(), true))))]))));
|
|
4060
|
-
var tmp_24 = item_11.
|
|
4061
|
-
var tmp5_safe_receiver = item_11.
|
|
4062
|
-
var tmp6_safe_receiver_0 = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.
|
|
4063
|
-
var tmp7_elvis_lhs = tmp6_safe_receiver_0 == null ? null : transform_1(tmp6_safe_receiver_0, ClassModelTransformer_getInstance(), item_11.
|
|
4078
|
+
var tmp_24 = item_11.c1z_1 == null;
|
|
4079
|
+
var tmp5_safe_receiver = item_11.c1z_1;
|
|
4080
|
+
var tmp6_safe_receiver_0 = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.m1z_1;
|
|
4081
|
+
var tmp7_elvis_lhs = tmp6_safe_receiver_0 == null ? null : transform_1(tmp6_safe_receiver_0, ClassModelTransformer_getInstance(), item_11.c1z_1.n1z_1, false);
|
|
4064
4082
|
var tmp11_parameters = listOf([tmp_22, tmp_23, new Parameter_0('content', new Wirespec('Content', tmp_24, VOID, VOID, new Generics(listOf_0(tmp7_elvis_lhs == null ? new Language(Primitive_Unit_getInstance()) : tmp7_elvis_lhs))))]);
|
|
4065
|
-
var tmp8_safe_receiver_0 = item_11.
|
|
4083
|
+
var tmp8_safe_receiver_0 = item_11.c1z_1;
|
|
4066
4084
|
var tmp12_content = tmp8_safe_receiver_0 == null ? null : transform_0(tmp8_safe_receiver_0, ClassModelTransformer_getInstance());
|
|
4067
4085
|
var tmp_25 = new ResponseAllArgsConstructor(tmp9_name_0, tmp11_parameters, tmp10_statusCode, tmp12_content);
|
|
4068
|
-
var tmp17_name = className(ClassModelTransformer_getInstance(), ['Response', item_11.
|
|
4069
|
-
var tmp18_statusCode = item_11.
|
|
4070
|
-
var tmp_26 = listOf_0(!Companion_getInstance_4().
|
|
4086
|
+
var tmp17_name = className(ClassModelTransformer_getInstance(), ['Response', item_11.a1z_1, name_0(item_11.c1z_1, ClassModelTransformer_getInstance())]);
|
|
4087
|
+
var tmp18_statusCode = item_11.a1z_1;
|
|
4088
|
+
var tmp_26 = listOf_0(!Companion_getInstance_4().i1w(item_11.a1z_1) ? new Parameter_0('status', new Language(Primitive_Integer_getInstance())) : null);
|
|
4071
4089
|
// Inline function 'kotlin.collections.map' call
|
|
4072
|
-
var tmp0_map_0 = item_11.
|
|
4090
|
+
var tmp0_map_0 = item_11.b1z_1;
|
|
4073
4091
|
// Inline function 'kotlin.collections.mapTo' call
|
|
4074
4092
|
var tmp0_mapTo_12 = ArrayList_init_$Create$(collectionSizeOrDefault(tmp0_map_0, 10));
|
|
4075
4093
|
var tmp0_iterator_14 = tmp0_map_0.v();
|
|
@@ -4081,12 +4099,12 @@
|
|
|
4081
4099
|
tmp0_mapTo_12.s(tmp$ret$43);
|
|
4082
4100
|
}
|
|
4083
4101
|
var tmp_27 = plus(tmp_26, tmp0_mapTo_12);
|
|
4084
|
-
var tmp13_safe_receiver = item_11.
|
|
4085
|
-
var tmp14_safe_receiver = tmp13_safe_receiver == null ? null : tmp13_safe_receiver.
|
|
4102
|
+
var tmp13_safe_receiver = item_11.c1z_1;
|
|
4103
|
+
var tmp14_safe_receiver = tmp13_safe_receiver == null ? null : tmp13_safe_receiver.m1z_1;
|
|
4086
4104
|
var tmp15_safe_receiver = tmp14_safe_receiver == null ? null : toField$default(tmp14_safe_receiver, ClassModelTransformer_getInstance(), 'body');
|
|
4087
4105
|
var tmp19_parameters = filterNotNull(plus_0(tmp_27, tmp15_safe_receiver == null ? null : transformParameter(tmp15_safe_receiver, ClassModelTransformer_getInstance())));
|
|
4088
4106
|
// Inline function 'kotlin.collections.map' call
|
|
4089
|
-
var tmp1_map_0 = item_11.
|
|
4107
|
+
var tmp1_map_0 = item_11.b1z_1;
|
|
4090
4108
|
// Inline function 'kotlin.collections.mapTo' call
|
|
4091
4109
|
var tmp0_mapTo_13 = ArrayList_init_$Create$(collectionSizeOrDefault(tmp1_map_0, 10));
|
|
4092
4110
|
var tmp0_iterator_15 = tmp1_map_0.v();
|
|
@@ -4094,20 +4112,20 @@
|
|
|
4094
4112
|
var item_13 = tmp0_iterator_15.y();
|
|
4095
4113
|
var tmp$ret$46;
|
|
4096
4114
|
// Inline function 'community.flock.wirespec.compiler.core.emit.transformer.ClassModelTransformer.transform.<anonymous>.<anonymous>' call
|
|
4097
|
-
tmp$ret$46 = item_13.
|
|
4115
|
+
tmp$ret$46 = item_13.f1y_1.k1y_1;
|
|
4098
4116
|
tmp0_mapTo_13.s(tmp$ret$46);
|
|
4099
4117
|
}
|
|
4100
|
-
var tmp16_safe_receiver_0 = item_11.
|
|
4118
|
+
var tmp16_safe_receiver_0 = item_11.c1z_1;
|
|
4101
4119
|
var tmp21_content = tmp16_safe_receiver_0 == null ? null : transform_0(tmp16_safe_receiver_0, ClassModelTransformer_getInstance());
|
|
4102
4120
|
var tmp_28 = new ResponseParameterConstructor(tmp17_name, tmp19_parameters, tmp18_statusCode, tmp0_mapTo_13, tmp21_content);
|
|
4103
|
-
var tmp25_name = className(ClassModelTransformer_getInstance(), ['Response', item_11.
|
|
4104
|
-
var tmp22_safe_receiver = item_11.
|
|
4105
|
-
var tmp23_safe_receiver = tmp22_safe_receiver == null ? null : tmp22_safe_receiver.
|
|
4106
|
-
var tmp24_elvis_lhs = tmp23_safe_receiver == null ? null : transform_1(tmp23_safe_receiver, ClassModelTransformer_getInstance(), item_11.
|
|
4121
|
+
var tmp25_name = className(ClassModelTransformer_getInstance(), ['Response', item_11.a1z_1]);
|
|
4122
|
+
var tmp22_safe_receiver = item_11.c1z_1;
|
|
4123
|
+
var tmp23_safe_receiver = tmp22_safe_receiver == null ? null : tmp22_safe_receiver.m1z_1;
|
|
4124
|
+
var tmp24_elvis_lhs = tmp23_safe_receiver == null ? null : transform_1(tmp23_safe_receiver, ClassModelTransformer_getInstance(), item_11.c1z_1.n1z_1, false);
|
|
4107
4125
|
var tmp26_generics = new Generics(listOf_0(tmp24_elvis_lhs == null ? new Language(Primitive_Unit_getInstance()) : tmp24_elvis_lhs));
|
|
4108
4126
|
var tmp_29 = new Custom(tmp25_name, false, VOID, VOID, tmp26_generics);
|
|
4109
|
-
var tmp27_safe_receiver = item_11.
|
|
4110
|
-
tmp$ret$49 = new ResponseClass(tmp_17, tmp_21, tmp_25, tmp_28, tmp_29, item_11.
|
|
4127
|
+
var tmp27_safe_receiver = item_11.c1z_1;
|
|
4128
|
+
tmp$ret$49 = new ResponseClass(tmp_17, tmp_21, tmp_25, tmp_28, tmp_29, item_11.a1z_1, tmp27_safe_receiver == null ? null : transform_0(tmp27_safe_receiver, ClassModelTransformer_getInstance()));
|
|
4111
4129
|
tmp0_mapTo_11.s(tmp$ret$49);
|
|
4112
4130
|
}
|
|
4113
4131
|
var tmp9_supers = listOf_0(new Wirespec('Endpoint'));
|
|
@@ -4134,7 +4152,7 @@
|
|
|
4134
4152
|
}
|
|
4135
4153
|
function WrongTokenException(expected, actual) {
|
|
4136
4154
|
Companion_getInstance_5();
|
|
4137
|
-
ParserException.call(this, actual.
|
|
4155
|
+
ParserException.call(this, actual.a20_1, '' + expected.d6() + ' expected, not: ' + actual.z1z_1.b20() + ' at line ' + actual.a20_1.c20_1 + ' and position ' + (actual.a20_1.d20_1 - actual.y1z_1.length | 0));
|
|
4138
4156
|
captureStack(this, WrongTokenException);
|
|
4139
4157
|
}
|
|
4140
4158
|
function DefinitionNotExistsException(referenceName, coordinates) {
|
|
@@ -4156,15 +4174,15 @@
|
|
|
4156
4174
|
function WirespecException(message, coordinates) {
|
|
4157
4175
|
RuntimeException_init_$Init$(message, this);
|
|
4158
4176
|
captureStack(this, WirespecException);
|
|
4159
|
-
this.
|
|
4177
|
+
this.f20_1 = coordinates;
|
|
4160
4178
|
}
|
|
4161
4179
|
function optimize(_this__u8e3s4) {
|
|
4162
4180
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
4163
4181
|
// Inline function 'community.flock.wirespec.compiler.core.optimize.optimize.<anonymous>' call
|
|
4164
4182
|
var tmp0_anonymous = _this__u8e3s4.t1q_1;
|
|
4165
4183
|
var tmp;
|
|
4166
|
-
if (tmp0_anonymous.
|
|
4167
|
-
tmp = tmp0_anonymous.
|
|
4184
|
+
if (tmp0_anonymous.z1z_1 instanceof CustomRegex) {
|
|
4185
|
+
tmp = tmp0_anonymous.g20('"' + dropLast(drop(tmp0_anonymous.y1z_1, 1), 2) + '"');
|
|
4168
4186
|
} else {
|
|
4169
4187
|
tmp = tmp0_anonymous;
|
|
4170
4188
|
}
|
|
@@ -4179,8 +4197,8 @@
|
|
|
4179
4197
|
var tmp$ret$1;
|
|
4180
4198
|
// Inline function 'community.flock.wirespec.compiler.core.optimize.optimize.<anonymous>' call
|
|
4181
4199
|
var tmp_1;
|
|
4182
|
-
if (item.
|
|
4183
|
-
tmp_1 = item.
|
|
4200
|
+
if (item.z1z_1 instanceof CustomRegex) {
|
|
4201
|
+
tmp_1 = item.g20('"' + dropLast(drop(item.y1z_1, 1), 2) + '"');
|
|
4184
4202
|
} else {
|
|
4185
4203
|
tmp_1 = item;
|
|
4186
4204
|
}
|
|
@@ -4200,31 +4218,31 @@
|
|
|
4200
4218
|
try {
|
|
4201
4219
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4202
4220
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointDefinition.<anonymous>' call
|
|
4203
|
-
raise.e1r(_this__u8e3s4.
|
|
4204
|
-
$this.
|
|
4221
|
+
raise.e1r(_this__u8e3s4.m20());
|
|
4222
|
+
$this.o20(_this__u8e3s4.j20_1);
|
|
4205
4223
|
// Inline function 'kotlin.also' call
|
|
4206
4224
|
var tmp_0;
|
|
4207
|
-
if (_this__u8e3s4.
|
|
4208
|
-
tmp_0 = valueOf(_this__u8e3s4.
|
|
4225
|
+
if (_this__u8e3s4.j20_1.z1z_1 instanceof Method_0) {
|
|
4226
|
+
tmp_0 = valueOf(_this__u8e3s4.j20_1.y1z_1);
|
|
4209
4227
|
} else {
|
|
4210
4228
|
var tmp$ret$0;
|
|
4211
4229
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
4212
4230
|
Companion_getInstance_5();
|
|
4213
|
-
var tmp1_invoke = _this__u8e3s4.
|
|
4231
|
+
var tmp1_invoke = _this__u8e3s4.j20_1;
|
|
4214
4232
|
tmp$ret$0 = new WrongTokenException(getKClass(Method_0), tmp1_invoke);
|
|
4215
4233
|
raise.d1r(tmp$ret$0);
|
|
4216
4234
|
}
|
|
4217
4235
|
var tmp2_also = tmp_0;
|
|
4218
4236
|
// Inline function 'kotlin.contracts.contract' call
|
|
4219
4237
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointDefinition.<anonymous>.<anonymous>' call
|
|
4220
|
-
raise.e1r(_this__u8e3s4.
|
|
4238
|
+
raise.e1r(_this__u8e3s4.m20());
|
|
4221
4239
|
var method = tmp2_also;
|
|
4222
4240
|
// Inline function 'kotlin.collections.map' call
|
|
4223
|
-
var tmp1_subject = _this__u8e3s4.
|
|
4241
|
+
var tmp1_subject = _this__u8e3s4.j20_1.z1z_1;
|
|
4224
4242
|
var tmp_1;
|
|
4225
4243
|
if (isInterface(tmp1_subject, WirespecType)) {
|
|
4226
|
-
var tmp_2 = _this__u8e3s4.
|
|
4227
|
-
tmp_1 = raise.e1r(parseReference(_this__u8e3s4, $this, isInterface(tmp_2, WirespecType) ? tmp_2 : THROW_CCE(), _this__u8e3s4.
|
|
4244
|
+
var tmp_2 = _this__u8e3s4.j20_1.z1z_1;
|
|
4245
|
+
tmp_1 = raise.e1r(parseReference(_this__u8e3s4, $this, isInterface(tmp_2, WirespecType) ? tmp_2 : THROW_CCE(), _this__u8e3s4.j20_1.y1z_1));
|
|
4228
4246
|
} else {
|
|
4229
4247
|
tmp_1 = null;
|
|
4230
4248
|
}
|
|
@@ -4257,15 +4275,15 @@
|
|
|
4257
4275
|
$l$loop: while (true) {
|
|
4258
4276
|
var tmp_4;
|
|
4259
4277
|
var tmp_5;
|
|
4260
|
-
var tmp_6 = _this__u8e3s4.
|
|
4278
|
+
var tmp_6 = _this__u8e3s4.j20_1.z1z_1;
|
|
4261
4279
|
if (!(tmp_6 instanceof QuestionMark)) {
|
|
4262
|
-
var tmp_7 = _this__u8e3s4.
|
|
4280
|
+
var tmp_7 = _this__u8e3s4.j20_1.z1z_1;
|
|
4263
4281
|
tmp_5 = !(tmp_7 instanceof Hash);
|
|
4264
4282
|
} else {
|
|
4265
4283
|
tmp_5 = false;
|
|
4266
4284
|
}
|
|
4267
4285
|
if (tmp_5) {
|
|
4268
|
-
var tmp_8 = _this__u8e3s4.
|
|
4286
|
+
var tmp_8 = _this__u8e3s4.j20_1.z1z_1;
|
|
4269
4287
|
tmp_4 = !(tmp_8 instanceof Arrow);
|
|
4270
4288
|
} else {
|
|
4271
4289
|
tmp_4 = false;
|
|
@@ -4277,20 +4295,20 @@
|
|
|
4277
4295
|
}
|
|
4278
4296
|
var segments = tmp4_apply;
|
|
4279
4297
|
var tmp_9;
|
|
4280
|
-
if (_this__u8e3s4.
|
|
4281
|
-
raise.e1r(_this__u8e3s4.
|
|
4298
|
+
if (_this__u8e3s4.j20_1.z1z_1 instanceof QuestionMark) {
|
|
4299
|
+
raise.e1r(_this__u8e3s4.m20());
|
|
4282
4300
|
var tmp_10;
|
|
4283
|
-
if (_this__u8e3s4.
|
|
4301
|
+
if (_this__u8e3s4.j20_1.z1z_1 instanceof LeftCurly) {
|
|
4284
4302
|
// Inline function 'kotlin.with' call
|
|
4285
|
-
var tmp5_with = $this.
|
|
4303
|
+
var tmp5_with = $this.q20_1;
|
|
4286
4304
|
// Inline function 'kotlin.contracts.contract' call
|
|
4287
4305
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointDefinition.<anonymous>.<anonymous>' call
|
|
4288
|
-
tmp_10 = raise.e1r(tmp5_with.
|
|
4306
|
+
tmp_10 = raise.e1r(tmp5_with.s20(_this__u8e3s4)).e1y_1;
|
|
4289
4307
|
} else {
|
|
4290
4308
|
var tmp$ret$11;
|
|
4291
4309
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
4292
4310
|
Companion_getInstance_5();
|
|
4293
|
-
var tmp7_invoke = _this__u8e3s4.
|
|
4311
|
+
var tmp7_invoke = _this__u8e3s4.j20_1;
|
|
4294
4312
|
tmp$ret$11 = new WrongTokenException(getKClass(LeftCurly), tmp7_invoke);
|
|
4295
4313
|
raise.d1r(tmp$ret$11);
|
|
4296
4314
|
}
|
|
@@ -4300,20 +4318,20 @@
|
|
|
4300
4318
|
}
|
|
4301
4319
|
var queryParams = tmp_9;
|
|
4302
4320
|
var tmp_11;
|
|
4303
|
-
if (_this__u8e3s4.
|
|
4304
|
-
raise.e1r(_this__u8e3s4.
|
|
4321
|
+
if (_this__u8e3s4.j20_1.z1z_1 instanceof Hash) {
|
|
4322
|
+
raise.e1r(_this__u8e3s4.m20());
|
|
4305
4323
|
var tmp_12;
|
|
4306
|
-
if (_this__u8e3s4.
|
|
4324
|
+
if (_this__u8e3s4.j20_1.z1z_1 instanceof LeftCurly) {
|
|
4307
4325
|
// Inline function 'kotlin.with' call
|
|
4308
|
-
var tmp8_with = $this.
|
|
4326
|
+
var tmp8_with = $this.q20_1;
|
|
4309
4327
|
// Inline function 'kotlin.contracts.contract' call
|
|
4310
4328
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointDefinition.<anonymous>.<anonymous>' call
|
|
4311
|
-
tmp_12 = raise.e1r(tmp8_with.
|
|
4329
|
+
tmp_12 = raise.e1r(tmp8_with.s20(_this__u8e3s4)).e1y_1;
|
|
4312
4330
|
} else {
|
|
4313
4331
|
var tmp$ret$14;
|
|
4314
4332
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
4315
4333
|
Companion_getInstance_5();
|
|
4316
|
-
var tmp10_invoke = _this__u8e3s4.
|
|
4334
|
+
var tmp10_invoke = _this__u8e3s4.j20_1;
|
|
4317
4335
|
tmp$ret$14 = new WrongTokenException(getKClass(LeftCurly), tmp10_invoke);
|
|
4318
4336
|
raise.d1r(tmp$ret$14);
|
|
4319
4337
|
}
|
|
@@ -4322,31 +4340,31 @@
|
|
|
4322
4340
|
tmp_11 = emptyList();
|
|
4323
4341
|
}
|
|
4324
4342
|
var headers = tmp_11;
|
|
4325
|
-
if (_this__u8e3s4.
|
|
4326
|
-
raise.e1r(_this__u8e3s4.
|
|
4343
|
+
if (_this__u8e3s4.j20_1.z1z_1 instanceof Arrow)
|
|
4344
|
+
raise.e1r(_this__u8e3s4.m20());
|
|
4327
4345
|
else {
|
|
4328
4346
|
var tmp$ret$15;
|
|
4329
4347
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
4330
4348
|
Companion_getInstance_5();
|
|
4331
|
-
var tmp12_invoke = _this__u8e3s4.
|
|
4349
|
+
var tmp12_invoke = _this__u8e3s4.j20_1;
|
|
4332
4350
|
tmp$ret$15 = new WrongTokenException(getKClass(Arrow), tmp12_invoke);
|
|
4333
4351
|
raise.d1r(tmp$ret$15);
|
|
4334
4352
|
}
|
|
4335
4353
|
// Inline function 'kotlin.also' call
|
|
4336
4354
|
var tmp_13;
|
|
4337
|
-
if (_this__u8e3s4.
|
|
4355
|
+
if (_this__u8e3s4.j20_1.z1z_1 instanceof LeftCurly) {
|
|
4338
4356
|
tmp_13 = Unit_getInstance();
|
|
4339
4357
|
} else {
|
|
4340
4358
|
var tmp$ret$16;
|
|
4341
4359
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
4342
4360
|
Companion_getInstance_5();
|
|
4343
|
-
var tmp14_invoke = _this__u8e3s4.
|
|
4361
|
+
var tmp14_invoke = _this__u8e3s4.j20_1;
|
|
4344
4362
|
tmp$ret$16 = new WrongTokenException(getKClass(LeftCurly), tmp14_invoke);
|
|
4345
4363
|
raise.d1r(tmp$ret$16);
|
|
4346
4364
|
}
|
|
4347
4365
|
// Inline function 'kotlin.contracts.contract' call
|
|
4348
4366
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointDefinition.<anonymous>.<anonymous>' call
|
|
4349
|
-
raise.e1r(_this__u8e3s4.
|
|
4367
|
+
raise.e1r(_this__u8e3s4.m20());
|
|
4350
4368
|
var responses = raise.e1r(parseEndpointResponses(_this__u8e3s4, $this));
|
|
4351
4369
|
var res = new Endpoint(name, method, segments, queryParams, headers, emptyList(), requests, responses);
|
|
4352
4370
|
raise.b1r();
|
|
@@ -4384,15 +4402,15 @@
|
|
|
4384
4402
|
try {
|
|
4385
4403
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4386
4404
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointSegments.<anonymous>' call
|
|
4387
|
-
$this.
|
|
4388
|
-
var tmp0_subject = _this__u8e3s4.
|
|
4405
|
+
$this.o20(_this__u8e3s4.j20_1);
|
|
4406
|
+
var tmp0_subject = _this__u8e3s4.j20_1.z1z_1;
|
|
4389
4407
|
var tmp_0;
|
|
4390
4408
|
if (tmp0_subject instanceof Path_0) {
|
|
4391
4409
|
// Inline function 'kotlin.also' call
|
|
4392
|
-
var tmp0_also = new Literal_0(drop(_this__u8e3s4.
|
|
4410
|
+
var tmp0_also = new Literal_0(drop(_this__u8e3s4.j20_1.y1z_1, 1));
|
|
4393
4411
|
// Inline function 'kotlin.contracts.contract' call
|
|
4394
4412
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointSegments.<anonymous>.<anonymous>' call
|
|
4395
|
-
raise.e1r(_this__u8e3s4.
|
|
4413
|
+
raise.e1r(_this__u8e3s4.m20());
|
|
4396
4414
|
tmp_0 = tmp0_also;
|
|
4397
4415
|
} else {
|
|
4398
4416
|
if (tmp0_subject instanceof ForwardSlash) {
|
|
@@ -4401,7 +4419,7 @@
|
|
|
4401
4419
|
var tmp$ret$1;
|
|
4402
4420
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
4403
4421
|
Companion_getInstance_5();
|
|
4404
|
-
var tmp2_invoke = _this__u8e3s4.
|
|
4422
|
+
var tmp2_invoke = _this__u8e3s4.j20_1;
|
|
4405
4423
|
tmp$ret$1 = new WrongTokenException(getKClass(Path_0), tmp2_invoke);
|
|
4406
4424
|
raise.d1r(tmp$ret$1);
|
|
4407
4425
|
}
|
|
@@ -4442,66 +4460,66 @@
|
|
|
4442
4460
|
try {
|
|
4443
4461
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4444
4462
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointSegmentParam.<anonymous>' call
|
|
4445
|
-
raise.e1r(_this__u8e3s4.
|
|
4446
|
-
$this.
|
|
4447
|
-
if (_this__u8e3s4.
|
|
4448
|
-
raise.e1r(_this__u8e3s4.
|
|
4463
|
+
raise.e1r(_this__u8e3s4.m20());
|
|
4464
|
+
$this.o20(_this__u8e3s4.j20_1);
|
|
4465
|
+
if (_this__u8e3s4.j20_1.z1z_1 instanceof LeftCurly)
|
|
4466
|
+
raise.e1r(_this__u8e3s4.m20());
|
|
4449
4467
|
else {
|
|
4450
4468
|
var tmp$ret$0;
|
|
4451
4469
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
4452
4470
|
Companion_getInstance_5();
|
|
4453
|
-
var tmp1_invoke = _this__u8e3s4.
|
|
4471
|
+
var tmp1_invoke = _this__u8e3s4.j20_1;
|
|
4454
4472
|
tmp$ret$0 = new WrongTokenException(getKClass(LeftCurly), tmp1_invoke);
|
|
4455
4473
|
raise.d1r(tmp$ret$0);
|
|
4456
4474
|
}
|
|
4457
4475
|
var tmp_0;
|
|
4458
|
-
if (_this__u8e3s4.
|
|
4476
|
+
if (_this__u8e3s4.j20_1.z1z_1 instanceof CustomValue) {
|
|
4459
4477
|
// Inline function 'kotlin.also' call
|
|
4460
|
-
var tmp2_also = Companion_getInstance_6().
|
|
4478
|
+
var tmp2_also = Companion_getInstance_6().o1z(_this__u8e3s4.j20_1.y1z_1);
|
|
4461
4479
|
// Inline function 'kotlin.contracts.contract' call
|
|
4462
4480
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointSegmentParam.<anonymous>.<anonymous>' call
|
|
4463
|
-
raise.e1r(_this__u8e3s4.
|
|
4481
|
+
raise.e1r(_this__u8e3s4.m20());
|
|
4464
4482
|
tmp_0 = tmp2_also;
|
|
4465
4483
|
} else {
|
|
4466
4484
|
var tmp$ret$2;
|
|
4467
4485
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
4468
4486
|
Companion_getInstance_5();
|
|
4469
|
-
var tmp4_invoke = _this__u8e3s4.
|
|
4487
|
+
var tmp4_invoke = _this__u8e3s4.j20_1;
|
|
4470
4488
|
tmp$ret$2 = new WrongTokenException(getKClass(CustomValue), tmp4_invoke);
|
|
4471
4489
|
raise.d1r(tmp$ret$2);
|
|
4472
4490
|
}
|
|
4473
4491
|
var identifier = tmp_0;
|
|
4474
|
-
if (_this__u8e3s4.
|
|
4475
|
-
raise.e1r(_this__u8e3s4.
|
|
4492
|
+
if (_this__u8e3s4.j20_1.z1z_1 instanceof Colon)
|
|
4493
|
+
raise.e1r(_this__u8e3s4.m20());
|
|
4476
4494
|
else {
|
|
4477
4495
|
var tmp$ret$3;
|
|
4478
4496
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
4479
4497
|
Companion_getInstance_5();
|
|
4480
|
-
var tmp6_invoke = _this__u8e3s4.
|
|
4498
|
+
var tmp6_invoke = _this__u8e3s4.j20_1;
|
|
4481
4499
|
tmp$ret$3 = new WrongTokenException(getKClass(Colon), tmp6_invoke);
|
|
4482
4500
|
raise.d1r(tmp$ret$3);
|
|
4483
4501
|
}
|
|
4484
|
-
var tmp3_subject = _this__u8e3s4.
|
|
4502
|
+
var tmp3_subject = _this__u8e3s4.j20_1.z1z_1;
|
|
4485
4503
|
var tmp_1;
|
|
4486
4504
|
if (isInterface(tmp3_subject, WirespecType)) {
|
|
4487
|
-
var tmp_2 = _this__u8e3s4.
|
|
4488
|
-
tmp_1 = raise.e1r(parseReference(_this__u8e3s4, $this, isInterface(tmp_2, WirespecType) ? tmp_2 : THROW_CCE(), _this__u8e3s4.
|
|
4505
|
+
var tmp_2 = _this__u8e3s4.j20_1.z1z_1;
|
|
4506
|
+
tmp_1 = raise.e1r(parseReference(_this__u8e3s4, $this, isInterface(tmp_2, WirespecType) ? tmp_2 : THROW_CCE(), _this__u8e3s4.j20_1.y1z_1));
|
|
4489
4507
|
} else {
|
|
4490
4508
|
var tmp$ret$4;
|
|
4491
4509
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
4492
4510
|
Companion_getInstance_5();
|
|
4493
|
-
var tmp8_invoke = _this__u8e3s4.
|
|
4511
|
+
var tmp8_invoke = _this__u8e3s4.j20_1;
|
|
4494
4512
|
tmp$ret$4 = new WrongTokenException(getKClass(WirespecType), tmp8_invoke);
|
|
4495
4513
|
raise.d1r(tmp$ret$4);
|
|
4496
4514
|
}
|
|
4497
4515
|
var reference = tmp_1;
|
|
4498
|
-
if (_this__u8e3s4.
|
|
4499
|
-
raise.e1r(_this__u8e3s4.
|
|
4516
|
+
if (_this__u8e3s4.j20_1.z1z_1 instanceof RightCurly)
|
|
4517
|
+
raise.e1r(_this__u8e3s4.m20());
|
|
4500
4518
|
else {
|
|
4501
4519
|
var tmp$ret$5;
|
|
4502
4520
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
4503
4521
|
Companion_getInstance_5();
|
|
4504
|
-
var tmp10_invoke = _this__u8e3s4.
|
|
4522
|
+
var tmp10_invoke = _this__u8e3s4.j20_1;
|
|
4505
4523
|
tmp$ret$5 = new WrongTokenException(getKClass(RightCurly), tmp10_invoke);
|
|
4506
4524
|
raise.d1r(tmp$ret$5);
|
|
4507
4525
|
}
|
|
@@ -4541,40 +4559,40 @@
|
|
|
4541
4559
|
try {
|
|
4542
4560
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4543
4561
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointResponses.<anonymous>' call
|
|
4544
|
-
$this.
|
|
4562
|
+
$this.o20(_this__u8e3s4.j20_1);
|
|
4545
4563
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
4546
4564
|
var responses = ArrayList_init_$Create$_0();
|
|
4547
4565
|
$l$loop: while (true) {
|
|
4548
|
-
var tmp_0 = _this__u8e3s4.
|
|
4566
|
+
var tmp_0 = _this__u8e3s4.j20_1.z1z_1;
|
|
4549
4567
|
if (!!(tmp_0 instanceof RightCurly)) {
|
|
4550
4568
|
break $l$loop;
|
|
4551
4569
|
}
|
|
4552
|
-
if (_this__u8e3s4.
|
|
4553
|
-
responses.s(raise.e1r(parseEndpointResponse(_this__u8e3s4, $this, _this__u8e3s4.
|
|
4570
|
+
if (_this__u8e3s4.j20_1.z1z_1 instanceof StatusCode) {
|
|
4571
|
+
responses.s(raise.e1r(parseEndpointResponse(_this__u8e3s4, $this, _this__u8e3s4.j20_1.y1z_1)));
|
|
4554
4572
|
} else {
|
|
4555
4573
|
var tmp$ret$1;
|
|
4556
4574
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
4557
4575
|
Companion_getInstance_5();
|
|
4558
|
-
var tmp1_invoke = _this__u8e3s4.
|
|
4576
|
+
var tmp1_invoke = _this__u8e3s4.j20_1;
|
|
4559
4577
|
tmp$ret$1 = new WrongTokenException(getKClass(StatusCode), tmp1_invoke);
|
|
4560
4578
|
raise.d1r(tmp$ret$1);
|
|
4561
4579
|
}
|
|
4562
4580
|
}
|
|
4563
4581
|
// Inline function 'kotlin.also' call
|
|
4564
4582
|
var tmp_1;
|
|
4565
|
-
if (_this__u8e3s4.
|
|
4583
|
+
if (_this__u8e3s4.j20_1.z1z_1 instanceof RightCurly) {
|
|
4566
4584
|
tmp_1 = Unit_getInstance();
|
|
4567
4585
|
} else {
|
|
4568
4586
|
var tmp$ret$2;
|
|
4569
4587
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
4570
4588
|
Companion_getInstance_5();
|
|
4571
|
-
var tmp3_invoke = _this__u8e3s4.
|
|
4589
|
+
var tmp3_invoke = _this__u8e3s4.j20_1;
|
|
4572
4590
|
tmp$ret$2 = new WrongTokenException(getKClass(RightCurly), tmp3_invoke);
|
|
4573
4591
|
raise.d1r(tmp$ret$2);
|
|
4574
4592
|
}
|
|
4575
4593
|
// Inline function 'kotlin.contracts.contract' call
|
|
4576
4594
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointResponses.<anonymous>.<anonymous>' call
|
|
4577
|
-
raise.e1r(_this__u8e3s4.
|
|
4595
|
+
raise.e1r(_this__u8e3s4.m20());
|
|
4578
4596
|
var res = toList(responses);
|
|
4579
4597
|
raise.b1r();
|
|
4580
4598
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
@@ -4611,28 +4629,28 @@
|
|
|
4611
4629
|
try {
|
|
4612
4630
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4613
4631
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointResponse.<anonymous>' call
|
|
4614
|
-
raise.e1r(_this__u8e3s4.
|
|
4615
|
-
$this.
|
|
4616
|
-
if (!(_this__u8e3s4.
|
|
4632
|
+
raise.e1r(_this__u8e3s4.m20());
|
|
4633
|
+
$this.o20(_this__u8e3s4.j20_1);
|
|
4634
|
+
if (!(_this__u8e3s4.j20_1.z1z_1 instanceof Arrow)) {
|
|
4617
4635
|
var tmp$ret$0;
|
|
4618
4636
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
4619
4637
|
Companion_getInstance_5();
|
|
4620
|
-
var tmp1_invoke = _this__u8e3s4.
|
|
4638
|
+
var tmp1_invoke = _this__u8e3s4.j20_1;
|
|
4621
4639
|
tmp$ret$0 = new WrongTokenException(getKClass(Arrow), tmp1_invoke);
|
|
4622
4640
|
raise.d1r(tmp$ret$0);
|
|
4623
4641
|
}
|
|
4624
|
-
raise.e1r(_this__u8e3s4.
|
|
4625
|
-
$this.
|
|
4626
|
-
var tmp1_subject = _this__u8e3s4.
|
|
4642
|
+
raise.e1r(_this__u8e3s4.m20());
|
|
4643
|
+
$this.o20(_this__u8e3s4.j20_1);
|
|
4644
|
+
var tmp1_subject = _this__u8e3s4.j20_1.z1z_1;
|
|
4627
4645
|
var tmp_0;
|
|
4628
4646
|
if (isInterface(tmp1_subject, WirespecType)) {
|
|
4629
|
-
var tmp_1 = _this__u8e3s4.
|
|
4630
|
-
tmp_0 = raise.e1r(parseContent(_this__u8e3s4, $this, isInterface(tmp_1, WirespecType) ? tmp_1 : THROW_CCE(), _this__u8e3s4.
|
|
4647
|
+
var tmp_1 = _this__u8e3s4.j20_1.z1z_1;
|
|
4648
|
+
tmp_0 = raise.e1r(parseContent(_this__u8e3s4, $this, isInterface(tmp_1, WirespecType) ? tmp_1 : THROW_CCE(), _this__u8e3s4.j20_1.y1z_1));
|
|
4631
4649
|
} else {
|
|
4632
4650
|
var tmp$ret$1;
|
|
4633
4651
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
4634
4652
|
Companion_getInstance_5();
|
|
4635
|
-
var tmp3_invoke = _this__u8e3s4.
|
|
4653
|
+
var tmp3_invoke = _this__u8e3s4.j20_1;
|
|
4636
4654
|
tmp$ret$1 = new WrongTokenException(getKClass(WirespecType), tmp3_invoke);
|
|
4637
4655
|
raise.d1r(tmp$ret$1);
|
|
4638
4656
|
}
|
|
@@ -4673,7 +4691,7 @@
|
|
|
4673
4691
|
try {
|
|
4674
4692
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4675
4693
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseContent.<anonymous>' call
|
|
4676
|
-
$this.
|
|
4694
|
+
$this.o20(_this__u8e3s4.j20_1);
|
|
4677
4695
|
var res = new Content_0('application/json', raise.e1r(parseReference(_this__u8e3s4, $this, wsType, value)));
|
|
4678
4696
|
raise.b1r();
|
|
4679
4697
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
@@ -4710,16 +4728,16 @@
|
|
|
4710
4728
|
try {
|
|
4711
4729
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4712
4730
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseReference.<anonymous>' call
|
|
4713
|
-
var previousToken = _this__u8e3s4.
|
|
4714
|
-
raise.e1r(_this__u8e3s4.
|
|
4715
|
-
$this.
|
|
4731
|
+
var previousToken = _this__u8e3s4.j20_1;
|
|
4732
|
+
raise.e1r(_this__u8e3s4.m20());
|
|
4733
|
+
$this.o20(_this__u8e3s4.j20_1);
|
|
4716
4734
|
// Inline function 'kotlin.also' call
|
|
4717
|
-
var tmp_0 = _this__u8e3s4.
|
|
4735
|
+
var tmp_0 = _this__u8e3s4.j20_1.z1z_1;
|
|
4718
4736
|
var tmp0_also = tmp_0 instanceof Brackets;
|
|
4719
4737
|
// Inline function 'kotlin.contracts.contract' call
|
|
4720
4738
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseReference.<anonymous>.<anonymous>' call
|
|
4721
4739
|
if (tmp0_also)
|
|
4722
|
-
raise.e1r(_this__u8e3s4.
|
|
4740
|
+
raise.e1r(_this__u8e3s4.m20());
|
|
4723
4741
|
var isIterable = tmp0_also;
|
|
4724
4742
|
var tmp_1;
|
|
4725
4743
|
if (wsType instanceof WsString) {
|
|
@@ -4738,7 +4756,7 @@
|
|
|
4738
4756
|
tmp_1 = new Unit(isIterable);
|
|
4739
4757
|
} else {
|
|
4740
4758
|
if (wsType instanceof CustomType) {
|
|
4741
|
-
raise.e1r(_this__u8e3s4.
|
|
4759
|
+
raise.e1r(_this__u8e3s4.t20(previousToken));
|
|
4742
4760
|
tmp_1 = new Custom_0(value, isIterable);
|
|
4743
4761
|
} else {
|
|
4744
4762
|
noWhenBranchMatchedException();
|
|
@@ -4775,9 +4793,9 @@
|
|
|
4775
4793
|
}
|
|
4776
4794
|
function EndpointParser(logger) {
|
|
4777
4795
|
AbstractParser.call(this, logger);
|
|
4778
|
-
this.
|
|
4796
|
+
this.q20_1 = new TypeParser(logger);
|
|
4779
4797
|
}
|
|
4780
|
-
protoOf(EndpointParser).
|
|
4798
|
+
protoOf(EndpointParser).u20 = function (_this__u8e3s4) {
|
|
4781
4799
|
// Inline function 'arrow.core.raise.either' call
|
|
4782
4800
|
// Inline function 'arrow.core.raise.fold' call
|
|
4783
4801
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -4788,20 +4806,20 @@
|
|
|
4788
4806
|
try {
|
|
4789
4807
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4790
4808
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpoint.<anonymous>' call
|
|
4791
|
-
raise.e1r(_this__u8e3s4.
|
|
4792
|
-
this.
|
|
4809
|
+
raise.e1r(_this__u8e3s4.m20());
|
|
4810
|
+
this.o20(_this__u8e3s4.j20_1);
|
|
4793
4811
|
var tmp_0;
|
|
4794
|
-
if (_this__u8e3s4.
|
|
4795
|
-
tmp_0 = raise.e1r(parseEndpointDefinition(_this__u8e3s4, this, _this__u8e3s4.
|
|
4812
|
+
if (_this__u8e3s4.j20_1.z1z_1 instanceof CustomType) {
|
|
4813
|
+
tmp_0 = raise.e1r(parseEndpointDefinition(_this__u8e3s4, this, _this__u8e3s4.j20_1.y1z_1));
|
|
4796
4814
|
} else {
|
|
4797
4815
|
// Inline function 'kotlin.also' call
|
|
4798
4816
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
4799
4817
|
Companion_getInstance_5();
|
|
4800
|
-
var tmp1_invoke = _this__u8e3s4.
|
|
4818
|
+
var tmp1_invoke = _this__u8e3s4.j20_1;
|
|
4801
4819
|
var tmp2_also = new WrongTokenException(getKClass(CustomType), tmp1_invoke);
|
|
4802
4820
|
// Inline function 'kotlin.contracts.contract' call
|
|
4803
4821
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpoint.<anonymous>.<anonymous>' call
|
|
4804
|
-
raise.e1r(_this__u8e3s4.
|
|
4822
|
+
raise.e1r(_this__u8e3s4.m20());
|
|
4805
4823
|
raise.d1r(tmp2_also);
|
|
4806
4824
|
}
|
|
4807
4825
|
var res = tmp_0;
|
|
@@ -4840,37 +4858,37 @@
|
|
|
4840
4858
|
try {
|
|
4841
4859
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4842
4860
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EnumParser.parseEnumTypeDefinition.<anonymous>' call
|
|
4843
|
-
raise.e1r(_this__u8e3s4.
|
|
4844
|
-
$this.
|
|
4861
|
+
raise.e1r(_this__u8e3s4.m20());
|
|
4862
|
+
$this.o20(_this__u8e3s4.j20_1);
|
|
4845
4863
|
// Inline function 'kotlin.also' call
|
|
4846
4864
|
var tmp_0;
|
|
4847
|
-
if (_this__u8e3s4.
|
|
4865
|
+
if (_this__u8e3s4.j20_1.z1z_1 instanceof LeftCurly) {
|
|
4848
4866
|
tmp_0 = new Enum_0(typeName, raise.e1r(parseEnumTypeEntries(_this__u8e3s4, $this)));
|
|
4849
4867
|
} else {
|
|
4850
4868
|
// Inline function 'kotlin.also' call
|
|
4851
4869
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
4852
4870
|
Companion_getInstance_5();
|
|
4853
|
-
var tmp1_invoke = _this__u8e3s4.
|
|
4871
|
+
var tmp1_invoke = _this__u8e3s4.j20_1;
|
|
4854
4872
|
var tmp2_also = new WrongTokenException(getKClass(LeftCurly), tmp1_invoke);
|
|
4855
4873
|
// Inline function 'kotlin.contracts.contract' call
|
|
4856
4874
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EnumParser.parseEnumTypeDefinition.<anonymous>.<anonymous>' call
|
|
4857
|
-
raise.e1r(_this__u8e3s4.
|
|
4875
|
+
raise.e1r(_this__u8e3s4.m20());
|
|
4858
4876
|
raise.d1r(tmp2_also);
|
|
4859
4877
|
}
|
|
4860
4878
|
var tmp3_also = tmp_0;
|
|
4861
4879
|
// Inline function 'kotlin.contracts.contract' call
|
|
4862
4880
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EnumParser.parseEnumTypeDefinition.<anonymous>.<anonymous>' call
|
|
4863
|
-
if (_this__u8e3s4.
|
|
4864
|
-
raise.e1r(_this__u8e3s4.
|
|
4881
|
+
if (_this__u8e3s4.j20_1.z1z_1 instanceof RightCurly)
|
|
4882
|
+
raise.e1r(_this__u8e3s4.m20());
|
|
4865
4883
|
else {
|
|
4866
4884
|
// Inline function 'kotlin.also' call
|
|
4867
4885
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
4868
4886
|
Companion_getInstance_5();
|
|
4869
|
-
var tmp1_invoke_0 = _this__u8e3s4.
|
|
4887
|
+
var tmp1_invoke_0 = _this__u8e3s4.j20_1;
|
|
4870
4888
|
var tmp2_also_0 = new WrongTokenException(getKClass(RightCurly), tmp1_invoke_0);
|
|
4871
4889
|
// Inline function 'kotlin.contracts.contract' call
|
|
4872
4890
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EnumParser.parseEnumTypeDefinition.<anonymous>.<anonymous>.<anonymous>' call
|
|
4873
|
-
raise.e1r(_this__u8e3s4.
|
|
4891
|
+
raise.e1r(_this__u8e3s4.m20());
|
|
4874
4892
|
raise.d1r(tmp2_also_0);
|
|
4875
4893
|
}
|
|
4876
4894
|
var res = tmp3_also;
|
|
@@ -4909,34 +4927,34 @@
|
|
|
4909
4927
|
try {
|
|
4910
4928
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4911
4929
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EnumParser.parseEnumTypeEntries.<anonymous>' call
|
|
4912
|
-
raise.e1r(_this__u8e3s4.
|
|
4913
|
-
$this.
|
|
4930
|
+
raise.e1r(_this__u8e3s4.m20());
|
|
4931
|
+
$this.o20(_this__u8e3s4.j20_1);
|
|
4914
4932
|
var tmp_0;
|
|
4915
|
-
if (_this__u8e3s4.
|
|
4933
|
+
if (_this__u8e3s4.j20_1.z1z_1 instanceof CustomType) {
|
|
4916
4934
|
// Inline function 'kotlin.apply' call
|
|
4917
4935
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
4918
4936
|
var tmp0_apply = ArrayList_init_$Create$_0();
|
|
4919
4937
|
// Inline function 'kotlin.contracts.contract' call
|
|
4920
4938
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EnumParser.parseEnumTypeEntries.<anonymous>.<anonymous>' call
|
|
4921
|
-
tmp0_apply.s(_this__u8e3s4.
|
|
4922
|
-
raise.e1r(_this__u8e3s4.
|
|
4923
|
-
while (equals(_this__u8e3s4.
|
|
4924
|
-
raise.e1r(_this__u8e3s4.
|
|
4925
|
-
if (_this__u8e3s4.
|
|
4939
|
+
tmp0_apply.s(_this__u8e3s4.j20_1.y1z_1);
|
|
4940
|
+
raise.e1r(_this__u8e3s4.m20());
|
|
4941
|
+
while (equals(_this__u8e3s4.j20_1.z1z_1, Comma_getInstance())) {
|
|
4942
|
+
raise.e1r(_this__u8e3s4.m20());
|
|
4943
|
+
if (_this__u8e3s4.j20_1.z1z_1 instanceof CustomType) {
|
|
4926
4944
|
// Inline function 'kotlin.also' call
|
|
4927
|
-
tmp0_apply.s(_this__u8e3s4.
|
|
4945
|
+
tmp0_apply.s(_this__u8e3s4.j20_1.y1z_1);
|
|
4928
4946
|
// Inline function 'kotlin.contracts.contract' call
|
|
4929
4947
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EnumParser.parseEnumTypeEntries.<anonymous>.<anonymous>.<anonymous>' call
|
|
4930
|
-
raise.e1r(_this__u8e3s4.
|
|
4948
|
+
raise.e1r(_this__u8e3s4.m20());
|
|
4931
4949
|
} else {
|
|
4932
4950
|
// Inline function 'kotlin.also' call
|
|
4933
4951
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
4934
4952
|
Companion_getInstance_5();
|
|
4935
|
-
var tmp2_invoke = _this__u8e3s4.
|
|
4953
|
+
var tmp2_invoke = _this__u8e3s4.j20_1;
|
|
4936
4954
|
var tmp3_also = new WrongTokenException(getKClass(CustomType), tmp2_invoke);
|
|
4937
4955
|
// Inline function 'kotlin.contracts.contract' call
|
|
4938
4956
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EnumParser.parseEnumTypeEntries.<anonymous>.<anonymous>.<anonymous>' call
|
|
4939
|
-
raise.e1r(_this__u8e3s4.
|
|
4957
|
+
raise.e1r(_this__u8e3s4.m20());
|
|
4940
4958
|
raise.d1r(tmp3_also);
|
|
4941
4959
|
}
|
|
4942
4960
|
}
|
|
@@ -4945,11 +4963,11 @@
|
|
|
4945
4963
|
// Inline function 'kotlin.also' call
|
|
4946
4964
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
4947
4965
|
Companion_getInstance_5();
|
|
4948
|
-
var tmp2_invoke_0 = _this__u8e3s4.
|
|
4966
|
+
var tmp2_invoke_0 = _this__u8e3s4.j20_1;
|
|
4949
4967
|
var tmp3_also_0 = new WrongTokenException(getKClass(CustomType), tmp2_invoke_0);
|
|
4950
4968
|
// Inline function 'kotlin.contracts.contract' call
|
|
4951
4969
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EnumParser.parseEnumTypeEntries.<anonymous>.<anonymous>' call
|
|
4952
|
-
raise.e1r(_this__u8e3s4.
|
|
4970
|
+
raise.e1r(_this__u8e3s4.m20());
|
|
4953
4971
|
raise.d1r(tmp3_also_0);
|
|
4954
4972
|
}
|
|
4955
4973
|
var res = toSet(tmp_0);
|
|
@@ -4980,7 +4998,7 @@
|
|
|
4980
4998
|
function EnumParser(logger) {
|
|
4981
4999
|
AbstractParser.call(this, logger);
|
|
4982
5000
|
}
|
|
4983
|
-
protoOf(EnumParser).
|
|
5001
|
+
protoOf(EnumParser).w20 = function (_this__u8e3s4) {
|
|
4984
5002
|
// Inline function 'arrow.core.raise.either' call
|
|
4985
5003
|
// Inline function 'arrow.core.raise.fold' call
|
|
4986
5004
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -4991,20 +5009,20 @@
|
|
|
4991
5009
|
try {
|
|
4992
5010
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4993
5011
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EnumParser.parseEnum.<anonymous>' call
|
|
4994
|
-
raise.e1r(_this__u8e3s4.
|
|
4995
|
-
this.
|
|
5012
|
+
raise.e1r(_this__u8e3s4.m20());
|
|
5013
|
+
this.o20(_this__u8e3s4.j20_1);
|
|
4996
5014
|
var tmp_0;
|
|
4997
|
-
if (_this__u8e3s4.
|
|
4998
|
-
tmp_0 = raise.e1r(parseEnumTypeDefinition(_this__u8e3s4, this, _this__u8e3s4.
|
|
5015
|
+
if (_this__u8e3s4.j20_1.z1z_1 instanceof CustomType) {
|
|
5016
|
+
tmp_0 = raise.e1r(parseEnumTypeDefinition(_this__u8e3s4, this, _this__u8e3s4.j20_1.y1z_1));
|
|
4999
5017
|
} else {
|
|
5000
5018
|
// Inline function 'kotlin.also' call
|
|
5001
5019
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
5002
5020
|
Companion_getInstance_5();
|
|
5003
|
-
var tmp1_invoke = _this__u8e3s4.
|
|
5021
|
+
var tmp1_invoke = _this__u8e3s4.j20_1;
|
|
5004
5022
|
var tmp2_also = new WrongTokenException(getKClass(CustomType), tmp1_invoke);
|
|
5005
5023
|
// Inline function 'kotlin.contracts.contract' call
|
|
5006
5024
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EnumParser.parseEnum.<anonymous>.<anonymous>' call
|
|
5007
|
-
raise.e1r(_this__u8e3s4.
|
|
5025
|
+
raise.e1r(_this__u8e3s4.m20());
|
|
5008
5026
|
raise.d1r(tmp2_also);
|
|
5009
5027
|
}
|
|
5010
5028
|
var res = tmp_0;
|
|
@@ -5035,7 +5053,7 @@
|
|
|
5035
5053
|
function Companion_5() {
|
|
5036
5054
|
Companion_instance_5 = this;
|
|
5037
5055
|
}
|
|
5038
|
-
protoOf(Companion_5).
|
|
5056
|
+
protoOf(Companion_5).o1z = function (s) {
|
|
5039
5057
|
// Inline function 'kotlin.let' call
|
|
5040
5058
|
// Inline function 'kotlin.run' call
|
|
5041
5059
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -5085,32 +5103,32 @@
|
|
|
5085
5103
|
}
|
|
5086
5104
|
function Any(isIterable, isMap) {
|
|
5087
5105
|
isMap = isMap === VOID ? false : isMap;
|
|
5088
|
-
this.
|
|
5089
|
-
this.
|
|
5106
|
+
this.x20_1 = isIterable;
|
|
5107
|
+
this.y20_1 = isMap;
|
|
5090
5108
|
}
|
|
5091
5109
|
protoOf(Any).g1s = function () {
|
|
5092
|
-
return this.w20_1;
|
|
5093
|
-
};
|
|
5094
|
-
protoOf(Any).p1z = function () {
|
|
5095
5110
|
return this.x20_1;
|
|
5096
5111
|
};
|
|
5112
|
+
protoOf(Any).q1z = function () {
|
|
5113
|
+
return this.y20_1;
|
|
5114
|
+
};
|
|
5097
5115
|
protoOf(Any).p2 = function () {
|
|
5098
5116
|
return 'Any';
|
|
5099
5117
|
};
|
|
5100
|
-
protoOf(Any).
|
|
5118
|
+
protoOf(Any).z20 = function (isIterable, isMap) {
|
|
5101
5119
|
return new Any(isIterable, isMap);
|
|
5102
5120
|
};
|
|
5103
|
-
protoOf(Any).
|
|
5104
|
-
isIterable = isIterable === VOID ? this.
|
|
5105
|
-
isMap = isMap === VOID ? this.
|
|
5106
|
-
return $super === VOID ? this.
|
|
5121
|
+
protoOf(Any).a21 = function (isIterable, isMap, $super) {
|
|
5122
|
+
isIterable = isIterable === VOID ? this.x20_1 : isIterable;
|
|
5123
|
+
isMap = isMap === VOID ? this.y20_1 : isMap;
|
|
5124
|
+
return $super === VOID ? this.z20(isIterable, isMap) : $super.z20.call(this, isIterable, isMap);
|
|
5107
5125
|
};
|
|
5108
5126
|
protoOf(Any).toString = function () {
|
|
5109
|
-
return 'Any(isIterable=' + this.
|
|
5127
|
+
return 'Any(isIterable=' + this.x20_1 + ', isMap=' + this.y20_1 + ')';
|
|
5110
5128
|
};
|
|
5111
5129
|
protoOf(Any).hashCode = function () {
|
|
5112
|
-
var result = this.
|
|
5113
|
-
result = imul(result, 31) + (this.
|
|
5130
|
+
var result = this.x20_1 | 0;
|
|
5131
|
+
result = imul(result, 31) + (this.y20_1 | 0) | 0;
|
|
5114
5132
|
return result;
|
|
5115
5133
|
};
|
|
5116
5134
|
protoOf(Any).equals = function (other) {
|
|
@@ -5119,40 +5137,40 @@
|
|
|
5119
5137
|
if (!(other instanceof Any))
|
|
5120
5138
|
return false;
|
|
5121
5139
|
var tmp0_other_with_cast = other instanceof Any ? other : THROW_CCE();
|
|
5122
|
-
if (!(this.w20_1 === tmp0_other_with_cast.w20_1))
|
|
5123
|
-
return false;
|
|
5124
5140
|
if (!(this.x20_1 === tmp0_other_with_cast.x20_1))
|
|
5125
5141
|
return false;
|
|
5142
|
+
if (!(this.y20_1 === tmp0_other_with_cast.y20_1))
|
|
5143
|
+
return false;
|
|
5126
5144
|
return true;
|
|
5127
5145
|
};
|
|
5128
5146
|
function Unit(isIterable, isMap) {
|
|
5129
5147
|
isMap = isMap === VOID ? false : isMap;
|
|
5130
|
-
this.
|
|
5131
|
-
this.
|
|
5148
|
+
this.b21_1 = isIterable;
|
|
5149
|
+
this.c21_1 = isMap;
|
|
5132
5150
|
}
|
|
5133
5151
|
protoOf(Unit).g1s = function () {
|
|
5134
|
-
return this.a21_1;
|
|
5135
|
-
};
|
|
5136
|
-
protoOf(Unit).p1z = function () {
|
|
5137
5152
|
return this.b21_1;
|
|
5138
5153
|
};
|
|
5154
|
+
protoOf(Unit).q1z = function () {
|
|
5155
|
+
return this.c21_1;
|
|
5156
|
+
};
|
|
5139
5157
|
protoOf(Unit).p2 = function () {
|
|
5140
5158
|
return 'Unit';
|
|
5141
5159
|
};
|
|
5142
|
-
protoOf(Unit).
|
|
5160
|
+
protoOf(Unit).z20 = function (isIterable, isMap) {
|
|
5143
5161
|
return new Unit(isIterable, isMap);
|
|
5144
5162
|
};
|
|
5145
|
-
protoOf(Unit).
|
|
5146
|
-
isIterable = isIterable === VOID ? this.
|
|
5147
|
-
isMap = isMap === VOID ? this.
|
|
5148
|
-
return $super === VOID ? this.
|
|
5163
|
+
protoOf(Unit).d21 = function (isIterable, isMap, $super) {
|
|
5164
|
+
isIterable = isIterable === VOID ? this.b21_1 : isIterable;
|
|
5165
|
+
isMap = isMap === VOID ? this.c21_1 : isMap;
|
|
5166
|
+
return $super === VOID ? this.z20(isIterable, isMap) : $super.z20.call(this, isIterable, isMap);
|
|
5149
5167
|
};
|
|
5150
5168
|
protoOf(Unit).toString = function () {
|
|
5151
|
-
return 'Unit(isIterable=' + this.
|
|
5169
|
+
return 'Unit(isIterable=' + this.b21_1 + ', isMap=' + this.c21_1 + ')';
|
|
5152
5170
|
};
|
|
5153
5171
|
protoOf(Unit).hashCode = function () {
|
|
5154
|
-
var result = this.
|
|
5155
|
-
result = imul(result, 31) + (this.
|
|
5172
|
+
var result = this.b21_1 | 0;
|
|
5173
|
+
result = imul(result, 31) + (this.c21_1 | 0) | 0;
|
|
5156
5174
|
return result;
|
|
5157
5175
|
};
|
|
5158
5176
|
protoOf(Unit).equals = function (other) {
|
|
@@ -5161,43 +5179,43 @@
|
|
|
5161
5179
|
if (!(other instanceof Unit))
|
|
5162
5180
|
return false;
|
|
5163
5181
|
var tmp0_other_with_cast = other instanceof Unit ? other : THROW_CCE();
|
|
5164
|
-
if (!(this.a21_1 === tmp0_other_with_cast.a21_1))
|
|
5165
|
-
return false;
|
|
5166
5182
|
if (!(this.b21_1 === tmp0_other_with_cast.b21_1))
|
|
5167
5183
|
return false;
|
|
5184
|
+
if (!(this.c21_1 === tmp0_other_with_cast.c21_1))
|
|
5185
|
+
return false;
|
|
5168
5186
|
return true;
|
|
5169
5187
|
};
|
|
5170
5188
|
function Custom_0(value, isIterable, isMap) {
|
|
5171
5189
|
isMap = isMap === VOID ? false : isMap;
|
|
5172
|
-
this.
|
|
5173
|
-
this.
|
|
5174
|
-
this.
|
|
5190
|
+
this.e21_1 = value;
|
|
5191
|
+
this.f21_1 = isIterable;
|
|
5192
|
+
this.g21_1 = isMap;
|
|
5175
5193
|
}
|
|
5176
5194
|
protoOf(Custom_0).p2 = function () {
|
|
5177
|
-
return this.d21_1;
|
|
5178
|
-
};
|
|
5179
|
-
protoOf(Custom_0).g1s = function () {
|
|
5180
5195
|
return this.e21_1;
|
|
5181
5196
|
};
|
|
5182
|
-
protoOf(Custom_0).
|
|
5197
|
+
protoOf(Custom_0).g1s = function () {
|
|
5183
5198
|
return this.f21_1;
|
|
5184
5199
|
};
|
|
5185
|
-
protoOf(Custom_0).
|
|
5200
|
+
protoOf(Custom_0).q1z = function () {
|
|
5201
|
+
return this.g21_1;
|
|
5202
|
+
};
|
|
5203
|
+
protoOf(Custom_0).h21 = function (value, isIterable, isMap) {
|
|
5186
5204
|
return new Custom_0(value, isIterable, isMap);
|
|
5187
5205
|
};
|
|
5188
|
-
protoOf(Custom_0).
|
|
5189
|
-
value = value === VOID ? this.
|
|
5190
|
-
isIterable = isIterable === VOID ? this.
|
|
5191
|
-
isMap = isMap === VOID ? this.
|
|
5192
|
-
return $super === VOID ? this.
|
|
5206
|
+
protoOf(Custom_0).i21 = function (value, isIterable, isMap, $super) {
|
|
5207
|
+
value = value === VOID ? this.e21_1 : value;
|
|
5208
|
+
isIterable = isIterable === VOID ? this.f21_1 : isIterable;
|
|
5209
|
+
isMap = isMap === VOID ? this.g21_1 : isMap;
|
|
5210
|
+
return $super === VOID ? this.h21(value, isIterable, isMap) : $super.h21.call(this, value, isIterable, isMap);
|
|
5193
5211
|
};
|
|
5194
5212
|
protoOf(Custom_0).toString = function () {
|
|
5195
|
-
return 'Custom(value=' + this.
|
|
5213
|
+
return 'Custom(value=' + this.e21_1 + ', isIterable=' + this.f21_1 + ', isMap=' + this.g21_1 + ')';
|
|
5196
5214
|
};
|
|
5197
5215
|
protoOf(Custom_0).hashCode = function () {
|
|
5198
|
-
var result = getStringHashCode(this.
|
|
5199
|
-
result = imul(result, 31) + (this.e21_1 | 0) | 0;
|
|
5216
|
+
var result = getStringHashCode(this.e21_1);
|
|
5200
5217
|
result = imul(result, 31) + (this.f21_1 | 0) | 0;
|
|
5218
|
+
result = imul(result, 31) + (this.g21_1 | 0) | 0;
|
|
5201
5219
|
return result;
|
|
5202
5220
|
};
|
|
5203
5221
|
protoOf(Custom_0).equals = function (other) {
|
|
@@ -5206,46 +5224,46 @@
|
|
|
5206
5224
|
if (!(other instanceof Custom_0))
|
|
5207
5225
|
return false;
|
|
5208
5226
|
var tmp0_other_with_cast = other instanceof Custom_0 ? other : THROW_CCE();
|
|
5209
|
-
if (!(this.d21_1 === tmp0_other_with_cast.d21_1))
|
|
5210
|
-
return false;
|
|
5211
5227
|
if (!(this.e21_1 === tmp0_other_with_cast.e21_1))
|
|
5212
5228
|
return false;
|
|
5213
5229
|
if (!(this.f21_1 === tmp0_other_with_cast.f21_1))
|
|
5214
5230
|
return false;
|
|
5231
|
+
if (!(this.g21_1 === tmp0_other_with_cast.g21_1))
|
|
5232
|
+
return false;
|
|
5215
5233
|
return true;
|
|
5216
5234
|
};
|
|
5217
5235
|
function Primitive_0(type, isIterable, isMap) {
|
|
5218
5236
|
isIterable = isIterable === VOID ? false : isIterable;
|
|
5219
5237
|
isMap = isMap === VOID ? false : isMap;
|
|
5220
|
-
this.
|
|
5221
|
-
this.
|
|
5222
|
-
this.
|
|
5238
|
+
this.l1y_1 = type;
|
|
5239
|
+
this.m1y_1 = isIterable;
|
|
5240
|
+
this.n1y_1 = isMap;
|
|
5223
5241
|
}
|
|
5224
5242
|
protoOf(Primitive_0).g1s = function () {
|
|
5225
|
-
return this.l1y_1;
|
|
5226
|
-
};
|
|
5227
|
-
protoOf(Primitive_0).p1z = function () {
|
|
5228
5243
|
return this.m1y_1;
|
|
5229
5244
|
};
|
|
5245
|
+
protoOf(Primitive_0).q1z = function () {
|
|
5246
|
+
return this.n1y_1;
|
|
5247
|
+
};
|
|
5230
5248
|
protoOf(Primitive_0).p2 = function () {
|
|
5231
|
-
return this.
|
|
5249
|
+
return this.l1y_1.b9_1;
|
|
5232
5250
|
};
|
|
5233
|
-
protoOf(Primitive_0).
|
|
5251
|
+
protoOf(Primitive_0).j21 = function (type, isIterable, isMap) {
|
|
5234
5252
|
return new Primitive_0(type, isIterable, isMap);
|
|
5235
5253
|
};
|
|
5236
|
-
protoOf(Primitive_0).
|
|
5237
|
-
type = type === VOID ? this.
|
|
5238
|
-
isIterable = isIterable === VOID ? this.
|
|
5239
|
-
isMap = isMap === VOID ? this.
|
|
5240
|
-
return $super === VOID ? this.
|
|
5254
|
+
protoOf(Primitive_0).k21 = function (type, isIterable, isMap, $super) {
|
|
5255
|
+
type = type === VOID ? this.l1y_1 : type;
|
|
5256
|
+
isIterable = isIterable === VOID ? this.m1y_1 : isIterable;
|
|
5257
|
+
isMap = isMap === VOID ? this.n1y_1 : isMap;
|
|
5258
|
+
return $super === VOID ? this.j21(type, isIterable, isMap) : $super.j21.call(this, type, isIterable, isMap);
|
|
5241
5259
|
};
|
|
5242
5260
|
protoOf(Primitive_0).toString = function () {
|
|
5243
|
-
return 'Primitive(type=' + this.
|
|
5261
|
+
return 'Primitive(type=' + this.l1y_1 + ', isIterable=' + this.m1y_1 + ', isMap=' + this.n1y_1 + ')';
|
|
5244
5262
|
};
|
|
5245
5263
|
protoOf(Primitive_0).hashCode = function () {
|
|
5246
|
-
var result = this.
|
|
5247
|
-
result = imul(result, 31) + (this.l1y_1 | 0) | 0;
|
|
5264
|
+
var result = this.l1y_1.hashCode();
|
|
5248
5265
|
result = imul(result, 31) + (this.m1y_1 | 0) | 0;
|
|
5266
|
+
result = imul(result, 31) + (this.n1y_1 | 0) | 0;
|
|
5249
5267
|
return result;
|
|
5250
5268
|
};
|
|
5251
5269
|
protoOf(Primitive_0).equals = function (other) {
|
|
@@ -5254,26 +5272,26 @@
|
|
|
5254
5272
|
if (!(other instanceof Primitive_0))
|
|
5255
5273
|
return false;
|
|
5256
5274
|
var tmp0_other_with_cast = other instanceof Primitive_0 ? other : THROW_CCE();
|
|
5257
|
-
if (!this.
|
|
5258
|
-
return false;
|
|
5259
|
-
if (!(this.l1y_1 === tmp0_other_with_cast.l1y_1))
|
|
5275
|
+
if (!this.l1y_1.equals(tmp0_other_with_cast.l1y_1))
|
|
5260
5276
|
return false;
|
|
5261
5277
|
if (!(this.m1y_1 === tmp0_other_with_cast.m1y_1))
|
|
5262
5278
|
return false;
|
|
5279
|
+
if (!(this.n1y_1 === tmp0_other_with_cast.n1y_1))
|
|
5280
|
+
return false;
|
|
5263
5281
|
return true;
|
|
5264
5282
|
};
|
|
5265
5283
|
function Identifier(value) {
|
|
5266
5284
|
Companion_getInstance_6();
|
|
5267
|
-
this.
|
|
5285
|
+
this.k1y_1 = value;
|
|
5268
5286
|
}
|
|
5269
5287
|
protoOf(Identifier).p2 = function () {
|
|
5270
|
-
return this.
|
|
5288
|
+
return this.k1y_1;
|
|
5271
5289
|
};
|
|
5272
5290
|
protoOf(Identifier).toString = function () {
|
|
5273
|
-
return 'Identifier(value=' + this.
|
|
5291
|
+
return 'Identifier(value=' + this.k1y_1 + ')';
|
|
5274
5292
|
};
|
|
5275
5293
|
protoOf(Identifier).hashCode = function () {
|
|
5276
|
-
return getStringHashCode(this.
|
|
5294
|
+
return getStringHashCode(this.k1y_1);
|
|
5277
5295
|
};
|
|
5278
5296
|
protoOf(Identifier).equals = function (other) {
|
|
5279
5297
|
if (this === other)
|
|
@@ -5281,31 +5299,31 @@
|
|
|
5281
5299
|
if (!(other instanceof Identifier))
|
|
5282
5300
|
return false;
|
|
5283
5301
|
var tmp0_other_with_cast = other instanceof Identifier ? other : THROW_CCE();
|
|
5284
|
-
if (!(this.
|
|
5302
|
+
if (!(this.k1y_1 === tmp0_other_with_cast.k1y_1))
|
|
5285
5303
|
return false;
|
|
5286
5304
|
return true;
|
|
5287
5305
|
};
|
|
5288
5306
|
function Field_0(identifier, reference, isNullable) {
|
|
5289
|
-
this.
|
|
5290
|
-
this.
|
|
5291
|
-
this.
|
|
5307
|
+
this.f1y_1 = identifier;
|
|
5308
|
+
this.g1y_1 = reference;
|
|
5309
|
+
this.h1y_1 = isNullable;
|
|
5292
5310
|
}
|
|
5293
|
-
protoOf(Field_0).
|
|
5311
|
+
protoOf(Field_0).l21 = function (identifier, reference, isNullable) {
|
|
5294
5312
|
return new Field_0(identifier, reference, isNullable);
|
|
5295
5313
|
};
|
|
5296
|
-
protoOf(Field_0).
|
|
5297
|
-
identifier = identifier === VOID ? this.
|
|
5298
|
-
reference = reference === VOID ? this.
|
|
5299
|
-
isNullable = isNullable === VOID ? this.
|
|
5300
|
-
return $super === VOID ? this.
|
|
5314
|
+
protoOf(Field_0).p1z = function (identifier, reference, isNullable, $super) {
|
|
5315
|
+
identifier = identifier === VOID ? this.f1y_1 : identifier;
|
|
5316
|
+
reference = reference === VOID ? this.g1y_1 : reference;
|
|
5317
|
+
isNullable = isNullable === VOID ? this.h1y_1 : isNullable;
|
|
5318
|
+
return $super === VOID ? this.l21(identifier, reference, isNullable) : $super.l21.call(this, identifier, reference, isNullable);
|
|
5301
5319
|
};
|
|
5302
5320
|
protoOf(Field_0).toString = function () {
|
|
5303
|
-
return 'Field(identifier=' + this.
|
|
5321
|
+
return 'Field(identifier=' + this.f1y_1 + ', reference=' + this.g1y_1 + ', isNullable=' + this.h1y_1 + ')';
|
|
5304
5322
|
};
|
|
5305
5323
|
protoOf(Field_0).hashCode = function () {
|
|
5306
|
-
var result = this.
|
|
5307
|
-
result = imul(result, 31) + hashCode(this.
|
|
5308
|
-
result = imul(result, 31) + (this.
|
|
5324
|
+
var result = this.f1y_1.hashCode();
|
|
5325
|
+
result = imul(result, 31) + hashCode(this.g1y_1) | 0;
|
|
5326
|
+
result = imul(result, 31) + (this.h1y_1 | 0) | 0;
|
|
5309
5327
|
return result;
|
|
5310
5328
|
};
|
|
5311
5329
|
protoOf(Field_0).equals = function (other) {
|
|
@@ -5314,25 +5332,25 @@
|
|
|
5314
5332
|
if (!(other instanceof Field_0))
|
|
5315
5333
|
return false;
|
|
5316
5334
|
var tmp0_other_with_cast = other instanceof Field_0 ? other : THROW_CCE();
|
|
5317
|
-
if (!this.
|
|
5335
|
+
if (!this.f1y_1.equals(tmp0_other_with_cast.f1y_1))
|
|
5318
5336
|
return false;
|
|
5319
|
-
if (!equals(this.
|
|
5337
|
+
if (!equals(this.g1y_1, tmp0_other_with_cast.g1y_1))
|
|
5320
5338
|
return false;
|
|
5321
|
-
if (!(this.
|
|
5339
|
+
if (!(this.h1y_1 === tmp0_other_with_cast.h1y_1))
|
|
5322
5340
|
return false;
|
|
5323
5341
|
return true;
|
|
5324
5342
|
};
|
|
5325
5343
|
function Shape(value) {
|
|
5326
|
-
this.
|
|
5344
|
+
this.e1y_1 = value;
|
|
5327
5345
|
}
|
|
5328
5346
|
protoOf(Shape).p2 = function () {
|
|
5329
|
-
return this.
|
|
5347
|
+
return this.e1y_1;
|
|
5330
5348
|
};
|
|
5331
5349
|
protoOf(Shape).toString = function () {
|
|
5332
|
-
return 'Shape(value=' + this.
|
|
5350
|
+
return 'Shape(value=' + this.e1y_1 + ')';
|
|
5333
5351
|
};
|
|
5334
5352
|
protoOf(Shape).hashCode = function () {
|
|
5335
|
-
return hashCode(this.
|
|
5353
|
+
return hashCode(this.e1y_1);
|
|
5336
5354
|
};
|
|
5337
5355
|
protoOf(Shape).equals = function (other) {
|
|
5338
5356
|
if (this === other)
|
|
@@ -5340,23 +5358,23 @@
|
|
|
5340
5358
|
if (!(other instanceof Shape))
|
|
5341
5359
|
return false;
|
|
5342
5360
|
var tmp0_other_with_cast = other instanceof Shape ? other : THROW_CCE();
|
|
5343
|
-
if (!equals(this.
|
|
5361
|
+
if (!equals(this.e1y_1, tmp0_other_with_cast.e1y_1))
|
|
5344
5362
|
return false;
|
|
5345
5363
|
return true;
|
|
5346
5364
|
};
|
|
5347
5365
|
function Type_0(name, shape) {
|
|
5348
|
-
this.
|
|
5349
|
-
this.
|
|
5366
|
+
this.b1y_1 = name;
|
|
5367
|
+
this.c1y_1 = shape;
|
|
5350
5368
|
}
|
|
5351
5369
|
protoOf(Type_0).va = function () {
|
|
5352
|
-
return this.
|
|
5370
|
+
return this.b1y_1;
|
|
5353
5371
|
};
|
|
5354
5372
|
protoOf(Type_0).toString = function () {
|
|
5355
|
-
return 'Type(name=' + this.
|
|
5373
|
+
return 'Type(name=' + this.b1y_1 + ', shape=' + this.c1y_1 + ')';
|
|
5356
5374
|
};
|
|
5357
5375
|
protoOf(Type_0).hashCode = function () {
|
|
5358
|
-
var result = getStringHashCode(this.
|
|
5359
|
-
result = imul(result, 31) + this.
|
|
5376
|
+
var result = getStringHashCode(this.b1y_1);
|
|
5377
|
+
result = imul(result, 31) + this.c1y_1.hashCode() | 0;
|
|
5360
5378
|
return result;
|
|
5361
5379
|
};
|
|
5362
5380
|
protoOf(Type_0).equals = function (other) {
|
|
@@ -5365,9 +5383,9 @@
|
|
|
5365
5383
|
if (!(other instanceof Type_0))
|
|
5366
5384
|
return false;
|
|
5367
5385
|
var tmp0_other_with_cast = other instanceof Type_0 ? other : THROW_CCE();
|
|
5368
|
-
if (!(this.
|
|
5386
|
+
if (!(this.b1y_1 === tmp0_other_with_cast.b1y_1))
|
|
5369
5387
|
return false;
|
|
5370
|
-
if (!this.
|
|
5388
|
+
if (!this.c1y_1.equals(tmp0_other_with_cast.c1y_1))
|
|
5371
5389
|
return false;
|
|
5372
5390
|
return true;
|
|
5373
5391
|
};
|
|
@@ -5427,16 +5445,16 @@
|
|
|
5427
5445
|
}
|
|
5428
5446
|
var $ENTRIES;
|
|
5429
5447
|
function Literal_0(value) {
|
|
5430
|
-
this.
|
|
5448
|
+
this.x1y_1 = value;
|
|
5431
5449
|
}
|
|
5432
5450
|
protoOf(Literal_0).p2 = function () {
|
|
5433
|
-
return this.
|
|
5451
|
+
return this.x1y_1;
|
|
5434
5452
|
};
|
|
5435
5453
|
protoOf(Literal_0).toString = function () {
|
|
5436
|
-
return 'Literal(value=' + this.
|
|
5454
|
+
return 'Literal(value=' + this.x1y_1 + ')';
|
|
5437
5455
|
};
|
|
5438
5456
|
protoOf(Literal_0).hashCode = function () {
|
|
5439
|
-
return getStringHashCode(this.
|
|
5457
|
+
return getStringHashCode(this.x1y_1);
|
|
5440
5458
|
};
|
|
5441
5459
|
protoOf(Literal_0).equals = function (other) {
|
|
5442
5460
|
if (this === other)
|
|
@@ -5444,20 +5462,20 @@
|
|
|
5444
5462
|
if (!(other instanceof Literal_0))
|
|
5445
5463
|
return false;
|
|
5446
5464
|
var tmp0_other_with_cast = other instanceof Literal_0 ? other : THROW_CCE();
|
|
5447
|
-
if (!(this.
|
|
5465
|
+
if (!(this.x1y_1 === tmp0_other_with_cast.x1y_1))
|
|
5448
5466
|
return false;
|
|
5449
5467
|
return true;
|
|
5450
5468
|
};
|
|
5451
5469
|
function Param(identifier, reference) {
|
|
5452
|
-
this.
|
|
5453
|
-
this.
|
|
5470
|
+
this.s1y_1 = identifier;
|
|
5471
|
+
this.t1y_1 = reference;
|
|
5454
5472
|
}
|
|
5455
5473
|
protoOf(Param).toString = function () {
|
|
5456
|
-
return 'Param(identifier=' + this.
|
|
5474
|
+
return 'Param(identifier=' + this.s1y_1 + ', reference=' + this.t1y_1 + ')';
|
|
5457
5475
|
};
|
|
5458
5476
|
protoOf(Param).hashCode = function () {
|
|
5459
|
-
var result = this.
|
|
5460
|
-
result = imul(result, 31) + hashCode(this.
|
|
5477
|
+
var result = this.s1y_1.hashCode();
|
|
5478
|
+
result = imul(result, 31) + hashCode(this.t1y_1) | 0;
|
|
5461
5479
|
return result;
|
|
5462
5480
|
};
|
|
5463
5481
|
protoOf(Param).equals = function (other) {
|
|
@@ -5466,9 +5484,9 @@
|
|
|
5466
5484
|
if (!(other instanceof Param))
|
|
5467
5485
|
return false;
|
|
5468
5486
|
var tmp0_other_with_cast = other instanceof Param ? other : THROW_CCE();
|
|
5469
|
-
if (!this.
|
|
5487
|
+
if (!this.s1y_1.equals(tmp0_other_with_cast.s1y_1))
|
|
5470
5488
|
return false;
|
|
5471
|
-
if (!equals(this.
|
|
5489
|
+
if (!equals(this.t1y_1, tmp0_other_with_cast.t1y_1))
|
|
5472
5490
|
return false;
|
|
5473
5491
|
return true;
|
|
5474
5492
|
};
|
|
@@ -5476,13 +5494,13 @@
|
|
|
5476
5494
|
Enum.call(this, name, ordinal);
|
|
5477
5495
|
}
|
|
5478
5496
|
function Request(content) {
|
|
5479
|
-
this.
|
|
5497
|
+
this.y1y_1 = content;
|
|
5480
5498
|
}
|
|
5481
5499
|
protoOf(Request).toString = function () {
|
|
5482
|
-
return 'Request(content=' + this.
|
|
5500
|
+
return 'Request(content=' + this.y1y_1 + ')';
|
|
5483
5501
|
};
|
|
5484
5502
|
protoOf(Request).hashCode = function () {
|
|
5485
|
-
return this.
|
|
5503
|
+
return this.y1y_1 == null ? 0 : this.y1y_1.hashCode();
|
|
5486
5504
|
};
|
|
5487
5505
|
protoOf(Request).equals = function (other) {
|
|
5488
5506
|
if (this === other)
|
|
@@ -5490,22 +5508,22 @@
|
|
|
5490
5508
|
if (!(other instanceof Request))
|
|
5491
5509
|
return false;
|
|
5492
5510
|
var tmp0_other_with_cast = other instanceof Request ? other : THROW_CCE();
|
|
5493
|
-
if (!equals(this.
|
|
5511
|
+
if (!equals(this.y1y_1, tmp0_other_with_cast.y1y_1))
|
|
5494
5512
|
return false;
|
|
5495
5513
|
return true;
|
|
5496
5514
|
};
|
|
5497
5515
|
function Response(status, headers, content) {
|
|
5498
|
-
this.
|
|
5499
|
-
this.
|
|
5500
|
-
this.
|
|
5516
|
+
this.a1z_1 = status;
|
|
5517
|
+
this.b1z_1 = headers;
|
|
5518
|
+
this.c1z_1 = content;
|
|
5501
5519
|
}
|
|
5502
5520
|
protoOf(Response).toString = function () {
|
|
5503
|
-
return 'Response(status=' + this.
|
|
5521
|
+
return 'Response(status=' + this.a1z_1 + ', headers=' + this.b1z_1 + ', content=' + this.c1z_1 + ')';
|
|
5504
5522
|
};
|
|
5505
5523
|
protoOf(Response).hashCode = function () {
|
|
5506
|
-
var result = getStringHashCode(this.
|
|
5507
|
-
result = imul(result, 31) + hashCode(this.
|
|
5508
|
-
result = imul(result, 31) + (this.
|
|
5524
|
+
var result = getStringHashCode(this.a1z_1);
|
|
5525
|
+
result = imul(result, 31) + hashCode(this.b1z_1) | 0;
|
|
5526
|
+
result = imul(result, 31) + (this.c1z_1 == null ? 0 : this.c1z_1.hashCode()) | 0;
|
|
5509
5527
|
return result;
|
|
5510
5528
|
};
|
|
5511
5529
|
protoOf(Response).equals = function (other) {
|
|
@@ -5514,27 +5532,27 @@
|
|
|
5514
5532
|
if (!(other instanceof Response))
|
|
5515
5533
|
return false;
|
|
5516
5534
|
var tmp0_other_with_cast = other instanceof Response ? other : THROW_CCE();
|
|
5517
|
-
if (!(this.
|
|
5518
|
-
return false;
|
|
5519
|
-
if (!equals(this.a1z_1, tmp0_other_with_cast.a1z_1))
|
|
5535
|
+
if (!(this.a1z_1 === tmp0_other_with_cast.a1z_1))
|
|
5520
5536
|
return false;
|
|
5521
5537
|
if (!equals(this.b1z_1, tmp0_other_with_cast.b1z_1))
|
|
5522
5538
|
return false;
|
|
5539
|
+
if (!equals(this.c1z_1, tmp0_other_with_cast.c1z_1))
|
|
5540
|
+
return false;
|
|
5523
5541
|
return true;
|
|
5524
5542
|
};
|
|
5525
5543
|
function Content_0(type, reference, isNullable) {
|
|
5526
5544
|
isNullable = isNullable === VOID ? false : isNullable;
|
|
5527
|
-
this.
|
|
5528
|
-
this.
|
|
5529
|
-
this.
|
|
5545
|
+
this.l1z_1 = type;
|
|
5546
|
+
this.m1z_1 = reference;
|
|
5547
|
+
this.n1z_1 = isNullable;
|
|
5530
5548
|
}
|
|
5531
5549
|
protoOf(Content_0).toString = function () {
|
|
5532
|
-
return 'Content(type=' + this.
|
|
5550
|
+
return 'Content(type=' + this.l1z_1 + ', reference=' + this.m1z_1 + ', isNullable=' + this.n1z_1 + ')';
|
|
5533
5551
|
};
|
|
5534
5552
|
protoOf(Content_0).hashCode = function () {
|
|
5535
|
-
var result = getStringHashCode(this.
|
|
5536
|
-
result = imul(result, 31) + hashCode(this.
|
|
5537
|
-
result = imul(result, 31) + (this.
|
|
5553
|
+
var result = getStringHashCode(this.l1z_1);
|
|
5554
|
+
result = imul(result, 31) + hashCode(this.m1z_1) | 0;
|
|
5555
|
+
result = imul(result, 31) + (this.n1z_1 | 0) | 0;
|
|
5538
5556
|
return result;
|
|
5539
5557
|
};
|
|
5540
5558
|
protoOf(Content_0).equals = function (other) {
|
|
@@ -5543,11 +5561,11 @@
|
|
|
5543
5561
|
if (!(other instanceof Content_0))
|
|
5544
5562
|
return false;
|
|
5545
5563
|
var tmp0_other_with_cast = other instanceof Content_0 ? other : THROW_CCE();
|
|
5546
|
-
if (!(this.
|
|
5564
|
+
if (!(this.l1z_1 === tmp0_other_with_cast.l1z_1))
|
|
5547
5565
|
return false;
|
|
5548
|
-
if (!equals(this.
|
|
5566
|
+
if (!equals(this.m1z_1, tmp0_other_with_cast.m1z_1))
|
|
5549
5567
|
return false;
|
|
5550
|
-
if (!(this.
|
|
5568
|
+
if (!(this.n1z_1 === tmp0_other_with_cast.n1z_1))
|
|
5551
5569
|
return false;
|
|
5552
5570
|
return true;
|
|
5553
5571
|
};
|
|
@@ -5584,30 +5602,30 @@
|
|
|
5584
5602
|
return Method_TRACE_instance;
|
|
5585
5603
|
}
|
|
5586
5604
|
function Endpoint(name, method, path, query, headers, cookies, requests, responses) {
|
|
5587
|
-
this.
|
|
5588
|
-
this.
|
|
5589
|
-
this.
|
|
5590
|
-
this.
|
|
5591
|
-
this.
|
|
5592
|
-
this.
|
|
5593
|
-
this.
|
|
5594
|
-
this.
|
|
5605
|
+
this.d1z_1 = name;
|
|
5606
|
+
this.e1z_1 = method;
|
|
5607
|
+
this.f1z_1 = path;
|
|
5608
|
+
this.g1z_1 = query;
|
|
5609
|
+
this.h1z_1 = headers;
|
|
5610
|
+
this.i1z_1 = cookies;
|
|
5611
|
+
this.j1z_1 = requests;
|
|
5612
|
+
this.k1z_1 = responses;
|
|
5595
5613
|
}
|
|
5596
5614
|
protoOf(Endpoint).va = function () {
|
|
5597
|
-
return this.
|
|
5615
|
+
return this.d1z_1;
|
|
5598
5616
|
};
|
|
5599
5617
|
protoOf(Endpoint).toString = function () {
|
|
5600
|
-
return 'Endpoint(name=' + this.
|
|
5618
|
+
return 'Endpoint(name=' + this.d1z_1 + ', method=' + this.e1z_1 + ', path=' + this.f1z_1 + ', query=' + this.g1z_1 + ', headers=' + this.h1z_1 + ', cookies=' + this.i1z_1 + ', requests=' + this.j1z_1 + ', responses=' + this.k1z_1 + ')';
|
|
5601
5619
|
};
|
|
5602
5620
|
protoOf(Endpoint).hashCode = function () {
|
|
5603
|
-
var result = getStringHashCode(this.
|
|
5604
|
-
result = imul(result, 31) + this.
|
|
5605
|
-
result = imul(result, 31) + hashCode(this.e1z_1) | 0;
|
|
5621
|
+
var result = getStringHashCode(this.d1z_1);
|
|
5622
|
+
result = imul(result, 31) + this.e1z_1.hashCode() | 0;
|
|
5606
5623
|
result = imul(result, 31) + hashCode(this.f1z_1) | 0;
|
|
5607
5624
|
result = imul(result, 31) + hashCode(this.g1z_1) | 0;
|
|
5608
5625
|
result = imul(result, 31) + hashCode(this.h1z_1) | 0;
|
|
5609
5626
|
result = imul(result, 31) + hashCode(this.i1z_1) | 0;
|
|
5610
5627
|
result = imul(result, 31) + hashCode(this.j1z_1) | 0;
|
|
5628
|
+
result = imul(result, 31) + hashCode(this.k1z_1) | 0;
|
|
5611
5629
|
return result;
|
|
5612
5630
|
};
|
|
5613
5631
|
protoOf(Endpoint).equals = function (other) {
|
|
@@ -5616,11 +5634,9 @@
|
|
|
5616
5634
|
if (!(other instanceof Endpoint))
|
|
5617
5635
|
return false;
|
|
5618
5636
|
var tmp0_other_with_cast = other instanceof Endpoint ? other : THROW_CCE();
|
|
5619
|
-
if (!(this.
|
|
5620
|
-
return false;
|
|
5621
|
-
if (!this.d1z_1.equals(tmp0_other_with_cast.d1z_1))
|
|
5637
|
+
if (!(this.d1z_1 === tmp0_other_with_cast.d1z_1))
|
|
5622
5638
|
return false;
|
|
5623
|
-
if (!
|
|
5639
|
+
if (!this.e1z_1.equals(tmp0_other_with_cast.e1z_1))
|
|
5624
5640
|
return false;
|
|
5625
5641
|
if (!equals(this.f1z_1, tmp0_other_with_cast.f1z_1))
|
|
5626
5642
|
return false;
|
|
@@ -5632,21 +5648,23 @@
|
|
|
5632
5648
|
return false;
|
|
5633
5649
|
if (!equals(this.j1z_1, tmp0_other_with_cast.j1z_1))
|
|
5634
5650
|
return false;
|
|
5651
|
+
if (!equals(this.k1z_1, tmp0_other_with_cast.k1z_1))
|
|
5652
|
+
return false;
|
|
5635
5653
|
return true;
|
|
5636
5654
|
};
|
|
5637
5655
|
function Enum_0(name, entries) {
|
|
5638
|
-
this.
|
|
5639
|
-
this.
|
|
5656
|
+
this.z1x_1 = name;
|
|
5657
|
+
this.a1y_1 = entries;
|
|
5640
5658
|
}
|
|
5641
5659
|
protoOf(Enum_0).va = function () {
|
|
5642
|
-
return this.
|
|
5660
|
+
return this.z1x_1;
|
|
5643
5661
|
};
|
|
5644
5662
|
protoOf(Enum_0).toString = function () {
|
|
5645
|
-
return 'Enum(name=' + this.
|
|
5663
|
+
return 'Enum(name=' + this.z1x_1 + ', entries=' + this.a1y_1 + ')';
|
|
5646
5664
|
};
|
|
5647
5665
|
protoOf(Enum_0).hashCode = function () {
|
|
5648
|
-
var result = getStringHashCode(this.
|
|
5649
|
-
result = imul(result, 31) + hashCode(this.
|
|
5666
|
+
var result = getStringHashCode(this.z1x_1);
|
|
5667
|
+
result = imul(result, 31) + hashCode(this.a1y_1) | 0;
|
|
5650
5668
|
return result;
|
|
5651
5669
|
};
|
|
5652
5670
|
protoOf(Enum_0).equals = function (other) {
|
|
@@ -5655,23 +5673,23 @@
|
|
|
5655
5673
|
if (!(other instanceof Enum_0))
|
|
5656
5674
|
return false;
|
|
5657
5675
|
var tmp0_other_with_cast = other instanceof Enum_0 ? other : THROW_CCE();
|
|
5658
|
-
if (!(this.
|
|
5676
|
+
if (!(this.z1x_1 === tmp0_other_with_cast.z1x_1))
|
|
5659
5677
|
return false;
|
|
5660
|
-
if (!equals(this.
|
|
5678
|
+
if (!equals(this.a1y_1, tmp0_other_with_cast.a1y_1))
|
|
5661
5679
|
return false;
|
|
5662
5680
|
return true;
|
|
5663
5681
|
};
|
|
5664
5682
|
function Validator_0(value) {
|
|
5665
|
-
this.
|
|
5683
|
+
this.r1y_1 = value;
|
|
5666
5684
|
}
|
|
5667
5685
|
protoOf(Validator_0).p2 = function () {
|
|
5668
|
-
return this.
|
|
5686
|
+
return this.r1y_1;
|
|
5669
5687
|
};
|
|
5670
5688
|
protoOf(Validator_0).toString = function () {
|
|
5671
|
-
return 'Validator(value=' + this.
|
|
5689
|
+
return 'Validator(value=' + this.r1y_1 + ')';
|
|
5672
5690
|
};
|
|
5673
5691
|
protoOf(Validator_0).hashCode = function () {
|
|
5674
|
-
return getStringHashCode(this.
|
|
5692
|
+
return getStringHashCode(this.r1y_1);
|
|
5675
5693
|
};
|
|
5676
5694
|
protoOf(Validator_0).equals = function (other) {
|
|
5677
5695
|
if (this === other)
|
|
@@ -5679,23 +5697,23 @@
|
|
|
5679
5697
|
if (!(other instanceof Validator_0))
|
|
5680
5698
|
return false;
|
|
5681
5699
|
var tmp0_other_with_cast = other instanceof Validator_0 ? other : THROW_CCE();
|
|
5682
|
-
if (!(this.
|
|
5700
|
+
if (!(this.r1y_1 === tmp0_other_with_cast.r1y_1))
|
|
5683
5701
|
return false;
|
|
5684
5702
|
return true;
|
|
5685
5703
|
};
|
|
5686
5704
|
function Refined(name, validator) {
|
|
5687
|
-
this.
|
|
5688
|
-
this.
|
|
5705
|
+
this.o1y_1 = name;
|
|
5706
|
+
this.p1y_1 = validator;
|
|
5689
5707
|
}
|
|
5690
5708
|
protoOf(Refined).va = function () {
|
|
5691
|
-
return this.
|
|
5709
|
+
return this.o1y_1;
|
|
5692
5710
|
};
|
|
5693
5711
|
protoOf(Refined).toString = function () {
|
|
5694
|
-
return 'Refined(name=' + this.
|
|
5712
|
+
return 'Refined(name=' + this.o1y_1 + ', validator=' + this.p1y_1 + ')';
|
|
5695
5713
|
};
|
|
5696
5714
|
protoOf(Refined).hashCode = function () {
|
|
5697
|
-
var result = getStringHashCode(this.
|
|
5698
|
-
result = imul(result, 31) + this.
|
|
5715
|
+
var result = getStringHashCode(this.o1y_1);
|
|
5716
|
+
result = imul(result, 31) + this.p1y_1.hashCode() | 0;
|
|
5699
5717
|
return result;
|
|
5700
5718
|
};
|
|
5701
5719
|
protoOf(Refined).equals = function (other) {
|
|
@@ -5704,25 +5722,25 @@
|
|
|
5704
5722
|
if (!(other instanceof Refined))
|
|
5705
5723
|
return false;
|
|
5706
5724
|
var tmp0_other_with_cast = other instanceof Refined ? other : THROW_CCE();
|
|
5707
|
-
if (!(this.
|
|
5725
|
+
if (!(this.o1y_1 === tmp0_other_with_cast.o1y_1))
|
|
5708
5726
|
return false;
|
|
5709
|
-
if (!this.
|
|
5727
|
+
if (!this.p1y_1.equals(tmp0_other_with_cast.p1y_1))
|
|
5710
5728
|
return false;
|
|
5711
5729
|
return true;
|
|
5712
5730
|
};
|
|
5713
5731
|
function Union(name, entries) {
|
|
5714
|
-
this.
|
|
5715
|
-
this.
|
|
5732
|
+
this.r1z_1 = name;
|
|
5733
|
+
this.s1z_1 = entries;
|
|
5716
5734
|
}
|
|
5717
5735
|
protoOf(Union).va = function () {
|
|
5718
|
-
return this.
|
|
5736
|
+
return this.r1z_1;
|
|
5719
5737
|
};
|
|
5720
5738
|
protoOf(Union).toString = function () {
|
|
5721
|
-
return 'Union(name=' + this.
|
|
5739
|
+
return 'Union(name=' + this.r1z_1 + ', entries=' + this.s1z_1 + ')';
|
|
5722
5740
|
};
|
|
5723
5741
|
protoOf(Union).hashCode = function () {
|
|
5724
|
-
var result = getStringHashCode(this.
|
|
5725
|
-
result = imul(result, 31) + hashCode(this.
|
|
5742
|
+
var result = getStringHashCode(this.r1z_1);
|
|
5743
|
+
result = imul(result, 31) + hashCode(this.s1z_1) | 0;
|
|
5726
5744
|
return result;
|
|
5727
5745
|
};
|
|
5728
5746
|
protoOf(Union).equals = function (other) {
|
|
@@ -5731,9 +5749,9 @@
|
|
|
5731
5749
|
if (!(other instanceof Union))
|
|
5732
5750
|
return false;
|
|
5733
5751
|
var tmp0_other_with_cast = other instanceof Union ? other : THROW_CCE();
|
|
5734
|
-
if (!(this.
|
|
5752
|
+
if (!(this.r1z_1 === tmp0_other_with_cast.r1z_1))
|
|
5735
5753
|
return false;
|
|
5736
|
-
if (!equals(this.
|
|
5754
|
+
if (!equals(this.s1z_1, tmp0_other_with_cast.s1z_1))
|
|
5737
5755
|
return false;
|
|
5738
5756
|
return true;
|
|
5739
5757
|
};
|
|
@@ -5830,11 +5848,11 @@
|
|
|
5830
5848
|
try {
|
|
5831
5849
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
5832
5850
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseDefinition.<anonymous>' call
|
|
5833
|
-
$this.
|
|
5834
|
-
var tmp0_subject = _this__u8e3s4.
|
|
5851
|
+
$this.o20(_this__u8e3s4.j20_1);
|
|
5852
|
+
var tmp0_subject = _this__u8e3s4.j20_1.z1z_1;
|
|
5835
5853
|
var tmp_0;
|
|
5836
5854
|
if (isInterface(tmp0_subject, WirespecDefinition)) {
|
|
5837
|
-
var tmp_1 = _this__u8e3s4.
|
|
5855
|
+
var tmp_1 = _this__u8e3s4.j20_1.z1z_1;
|
|
5838
5856
|
var tmp1_subject = isInterface(tmp_1, WirespecDefinition) ? tmp_1 : THROW_CCE();
|
|
5839
5857
|
var tmp_2;
|
|
5840
5858
|
if (tmp1_subject instanceof WsTypeDef) {
|
|
@@ -5842,7 +5860,7 @@
|
|
|
5842
5860
|
// Inline function 'kotlin.with' call
|
|
5843
5861
|
// Inline function 'kotlin.contracts.contract' call
|
|
5844
5862
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseDefinition.<anonymous>.<anonymous>' call
|
|
5845
|
-
tmp$ret$1 = $this.s1r_1.
|
|
5863
|
+
tmp$ret$1 = $this.s1r_1.m21(_this__u8e3s4);
|
|
5846
5864
|
tmp_2 = raise.e1r(tmp$ret$1);
|
|
5847
5865
|
} else {
|
|
5848
5866
|
if (tmp1_subject instanceof WsEnumTypeDef) {
|
|
@@ -5850,7 +5868,7 @@
|
|
|
5850
5868
|
// Inline function 'kotlin.with' call
|
|
5851
5869
|
// Inline function 'kotlin.contracts.contract' call
|
|
5852
5870
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseDefinition.<anonymous>.<anonymous>' call
|
|
5853
|
-
tmp$ret$3 = $this.t1r_1.
|
|
5871
|
+
tmp$ret$3 = $this.t1r_1.w20(_this__u8e3s4);
|
|
5854
5872
|
tmp_2 = raise.e1r(tmp$ret$3);
|
|
5855
5873
|
} else {
|
|
5856
5874
|
if (tmp1_subject instanceof WsEndpointDef) {
|
|
@@ -5858,7 +5876,7 @@
|
|
|
5858
5876
|
// Inline function 'kotlin.with' call
|
|
5859
5877
|
// Inline function 'kotlin.contracts.contract' call
|
|
5860
5878
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseDefinition.<anonymous>.<anonymous>' call
|
|
5861
|
-
tmp$ret$5 = $this.u1r_1.
|
|
5879
|
+
tmp$ret$5 = $this.u1r_1.u20(_this__u8e3s4);
|
|
5862
5880
|
tmp_2 = raise.e1r(tmp$ret$5);
|
|
5863
5881
|
} else {
|
|
5864
5882
|
noWhenBranchMatchedException();
|
|
@@ -5870,11 +5888,11 @@
|
|
|
5870
5888
|
// Inline function 'kotlin.also' call
|
|
5871
5889
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
5872
5890
|
Companion_getInstance_5();
|
|
5873
|
-
var tmp4_invoke = _this__u8e3s4.
|
|
5891
|
+
var tmp4_invoke = _this__u8e3s4.j20_1;
|
|
5874
5892
|
var tmp5_also = new WrongTokenException(getKClass(WirespecDefinition), tmp4_invoke);
|
|
5875
5893
|
// Inline function 'kotlin.contracts.contract' call
|
|
5876
5894
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseDefinition.<anonymous>.<anonymous>' call
|
|
5877
|
-
raise.e1r(_this__u8e3s4.
|
|
5895
|
+
raise.e1r(_this__u8e3s4.m20());
|
|
5878
5896
|
raise.d1r(tmp5_also);
|
|
5879
5897
|
}
|
|
5880
5898
|
var res = tmp_0;
|
|
@@ -5909,13 +5927,13 @@
|
|
|
5909
5927
|
this.u1r_1 = new EndpointParser(logger);
|
|
5910
5928
|
}
|
|
5911
5929
|
protoOf(Parser).v1r = function (tokens) {
|
|
5912
|
-
return parse_0(toProvider(removeWhiteSpace(tokens), this.
|
|
5930
|
+
return parse_0(toProvider(removeWhiteSpace(tokens), this.n20_1), this);
|
|
5913
5931
|
};
|
|
5914
5932
|
function AbstractParser(logger) {
|
|
5915
|
-
this.
|
|
5933
|
+
this.n20_1 = logger;
|
|
5916
5934
|
}
|
|
5917
|
-
protoOf(AbstractParser).
|
|
5918
|
-
return this.
|
|
5935
|
+
protoOf(AbstractParser).o20 = function (_this__u8e3s4) {
|
|
5936
|
+
return this.n20_1.k1r('Parsing ' + _this__u8e3s4.z1z_1 + ' at line ' + _this__u8e3s4.a20_1.c20_1 + ' position ' + _this__u8e3s4.a20_1.d20_1);
|
|
5919
5937
|
};
|
|
5920
5938
|
function printTokens($this, previousToken) {
|
|
5921
5939
|
var tmp;
|
|
@@ -5925,15 +5943,15 @@
|
|
|
5925
5943
|
// Inline function 'kotlin.run' call
|
|
5926
5944
|
// Inline function 'kotlin.contracts.contract' call
|
|
5927
5945
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TokenProvider.printTokens.<anonymous>' call
|
|
5928
|
-
tmp = "Eating: '" + previousToken.
|
|
5946
|
+
tmp = "Eating: '" + previousToken.y1z_1 + "', ";
|
|
5929
5947
|
}
|
|
5930
5948
|
var tmp1_elvis_lhs = tmp;
|
|
5931
5949
|
var prev = tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs;
|
|
5932
5950
|
// Inline function 'kotlin.run' call
|
|
5933
5951
|
// Inline function 'kotlin.contracts.contract' call
|
|
5934
5952
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TokenProvider.printTokens.<anonymous>' call
|
|
5935
|
-
var curr = "Current: '" + $this.
|
|
5936
|
-
var tmp2_safe_receiver = $this.
|
|
5953
|
+
var curr = "Current: '" + $this.j20_1.y1z_1 + "'";
|
|
5954
|
+
var tmp2_safe_receiver = $this.k20_1;
|
|
5937
5955
|
var tmp_0;
|
|
5938
5956
|
if (tmp2_safe_receiver == null) {
|
|
5939
5957
|
tmp_0 = null;
|
|
@@ -5941,11 +5959,11 @@
|
|
|
5941
5959
|
// Inline function 'kotlin.run' call
|
|
5942
5960
|
// Inline function 'kotlin.contracts.contract' call
|
|
5943
5961
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TokenProvider.printTokens.<anonymous>' call
|
|
5944
|
-
tmp_0 = ", Next: '" + tmp2_safe_receiver.
|
|
5962
|
+
tmp_0 = ", Next: '" + tmp2_safe_receiver.y1z_1 + "'";
|
|
5945
5963
|
}
|
|
5946
5964
|
var tmp3_elvis_lhs = tmp_0;
|
|
5947
5965
|
var next = tmp3_elvis_lhs == null ? '' : tmp3_elvis_lhs;
|
|
5948
|
-
$this.
|
|
5966
|
+
$this.h20_1.k1r(prev + curr + next);
|
|
5949
5967
|
}
|
|
5950
5968
|
function printTokens$default($this, previousToken, $super) {
|
|
5951
5969
|
previousToken = previousToken === VOID ? null : previousToken;
|
|
@@ -5959,7 +5977,7 @@
|
|
|
5959
5977
|
// Inline function 'kotlin.Companion.success' call
|
|
5960
5978
|
Companion_getInstance();
|
|
5961
5979
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TokenProvider.nextToken.<anonymous>' call
|
|
5962
|
-
var tmp1_success = $this.
|
|
5980
|
+
var tmp1_success = $this.i20_1.y();
|
|
5963
5981
|
tmp = _Result___init__impl__xyqfz8(tmp1_success);
|
|
5964
5982
|
} catch ($p) {
|
|
5965
5983
|
var tmp_0;
|
|
@@ -5984,10 +6002,10 @@
|
|
|
5984
6002
|
return tmp_1;
|
|
5985
6003
|
}
|
|
5986
6004
|
function TokenProvider(logger, list) {
|
|
5987
|
-
this.
|
|
5988
|
-
this.
|
|
5989
|
-
this.
|
|
5990
|
-
this.
|
|
6005
|
+
this.h20_1 = logger;
|
|
6006
|
+
this.i20_1 = list.u1q_1.v();
|
|
6007
|
+
this.j20_1 = list.t1q_1;
|
|
6008
|
+
this.k20_1 = nextToken(this);
|
|
5991
6009
|
var tmp = this;
|
|
5992
6010
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
5993
6011
|
var tmp0_mapNotNull = zipWithNext(removeWhiteSpace(list));
|
|
@@ -6001,10 +6019,10 @@
|
|
|
6001
6019
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TokenProvider.definitionNames.<anonymous>' call
|
|
6002
6020
|
var first = element.fd();
|
|
6003
6021
|
var second = element.gd();
|
|
6004
|
-
var tmp0_subject = first.
|
|
6022
|
+
var tmp0_subject = first.z1z_1;
|
|
6005
6023
|
var tmp_0;
|
|
6006
6024
|
if (isInterface(tmp0_subject, WirespecDefinition)) {
|
|
6007
|
-
tmp_0 = second.
|
|
6025
|
+
tmp_0 = second.y1z_1;
|
|
6008
6026
|
} else {
|
|
6009
6027
|
tmp_0 = null;
|
|
6010
6028
|
}
|
|
@@ -6017,10 +6035,10 @@
|
|
|
6017
6035
|
tmp0_mapNotNullTo.s(tmp0_safe_receiver);
|
|
6018
6036
|
}
|
|
6019
6037
|
}
|
|
6020
|
-
tmp.
|
|
6038
|
+
tmp.l20_1 = tmp0_mapNotNullTo;
|
|
6021
6039
|
printTokens$default(this);
|
|
6022
6040
|
}
|
|
6023
|
-
protoOf(TokenProvider).
|
|
6041
|
+
protoOf(TokenProvider).t20 = function (_this__u8e3s4) {
|
|
6024
6042
|
// Inline function 'arrow.core.raise.either' call
|
|
6025
6043
|
// Inline function 'arrow.core.raise.fold' call
|
|
6026
6044
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -6031,8 +6049,8 @@
|
|
|
6031
6049
|
try {
|
|
6032
6050
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
6033
6051
|
var tmp_0;
|
|
6034
|
-
if (!this.
|
|
6035
|
-
raise.d1r(new DefinitionNotExistsException(_this__u8e3s4.
|
|
6052
|
+
if (!this.l20_1.r(_this__u8e3s4.y1z_1)) {
|
|
6053
|
+
raise.d1r(new DefinitionNotExistsException(_this__u8e3s4.y1z_1, _this__u8e3s4.a20_1));
|
|
6036
6054
|
}
|
|
6037
6055
|
var res = tmp_0;
|
|
6038
6056
|
raise.b1r();
|
|
@@ -6060,9 +6078,9 @@
|
|
|
6060
6078
|
return tmp;
|
|
6061
6079
|
};
|
|
6062
6080
|
protoOf(TokenProvider).w = function () {
|
|
6063
|
-
return !(this.
|
|
6081
|
+
return !(this.k20_1 == null);
|
|
6064
6082
|
};
|
|
6065
|
-
protoOf(TokenProvider).
|
|
6083
|
+
protoOf(TokenProvider).m20 = function () {
|
|
6066
6084
|
// Inline function 'arrow.core.raise.either' call
|
|
6067
6085
|
// Inline function 'arrow.core.raise.fold' call
|
|
6068
6086
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -6072,17 +6090,17 @@
|
|
|
6072
6090
|
var tmp;
|
|
6073
6091
|
try {
|
|
6074
6092
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
6075
|
-
var previousToken = this.
|
|
6093
|
+
var previousToken = this.j20_1;
|
|
6076
6094
|
var tmp_0 = this;
|
|
6077
|
-
var tmp0_elvis_lhs = this.
|
|
6095
|
+
var tmp0_elvis_lhs = this.k20_1;
|
|
6078
6096
|
var tmp_1;
|
|
6079
6097
|
if (tmp0_elvis_lhs == null) {
|
|
6080
|
-
raise.d1r(new NextException(previousToken.
|
|
6098
|
+
raise.d1r(new NextException(previousToken.a20_1));
|
|
6081
6099
|
} else {
|
|
6082
6100
|
tmp_1 = tmp0_elvis_lhs;
|
|
6083
6101
|
}
|
|
6084
|
-
tmp_0.
|
|
6085
|
-
this.
|
|
6102
|
+
tmp_0.j20_1 = tmp_1;
|
|
6103
|
+
this.k20_1 = nextToken(this);
|
|
6086
6104
|
printTokens(this, previousToken);
|
|
6087
6105
|
var res = Unit_getInstance();
|
|
6088
6106
|
raise.b1r();
|
|
@@ -6123,19 +6141,19 @@
|
|
|
6123
6141
|
try {
|
|
6124
6142
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
6125
6143
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseTypeDefinition.<anonymous>' call
|
|
6126
|
-
raise.e1r(_this__u8e3s4.
|
|
6127
|
-
$this.
|
|
6128
|
-
var tmp0_subject = _this__u8e3s4.
|
|
6144
|
+
raise.e1r(_this__u8e3s4.m20());
|
|
6145
|
+
$this.o20(_this__u8e3s4.j20_1);
|
|
6146
|
+
var tmp0_subject = _this__u8e3s4.j20_1.z1z_1;
|
|
6129
6147
|
var tmp_0;
|
|
6130
6148
|
if (tmp0_subject instanceof LeftCurly) {
|
|
6131
|
-
tmp_0 = new Type_0(typeName, raise.e1r($this.
|
|
6149
|
+
tmp_0 = new Type_0(typeName, raise.e1r($this.s20(_this__u8e3s4)));
|
|
6132
6150
|
} else {
|
|
6133
6151
|
if (tmp0_subject instanceof CustomRegex) {
|
|
6134
6152
|
// Inline function 'kotlin.also' call
|
|
6135
|
-
var tmp0_also = new Refined(typeName, new Validator_0(_this__u8e3s4.
|
|
6153
|
+
var tmp0_also = new Refined(typeName, new Validator_0(_this__u8e3s4.j20_1.y1z_1));
|
|
6136
6154
|
// Inline function 'kotlin.contracts.contract' call
|
|
6137
6155
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseTypeDefinition.<anonymous>.<anonymous>' call
|
|
6138
|
-
raise.e1r(_this__u8e3s4.
|
|
6156
|
+
raise.e1r(_this__u8e3s4.m20());
|
|
6139
6157
|
tmp_0 = tmp0_also;
|
|
6140
6158
|
} else {
|
|
6141
6159
|
if (tmp0_subject instanceof Equals) {
|
|
@@ -6144,11 +6162,11 @@
|
|
|
6144
6162
|
// Inline function 'kotlin.also' call
|
|
6145
6163
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
6146
6164
|
Companion_getInstance_5();
|
|
6147
|
-
var tmp2_invoke = _this__u8e3s4.
|
|
6165
|
+
var tmp2_invoke = _this__u8e3s4.j20_1;
|
|
6148
6166
|
var tmp3_also = new WrongTokenException(getKClass(LeftCurly), tmp2_invoke);
|
|
6149
6167
|
// Inline function 'kotlin.contracts.contract' call
|
|
6150
6168
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseTypeDefinition.<anonymous>.<anonymous>' call
|
|
6151
|
-
raise.e1r(_this__u8e3s4.
|
|
6169
|
+
raise.e1r(_this__u8e3s4.m20());
|
|
6152
6170
|
raise.d1r(tmp3_also);
|
|
6153
6171
|
}
|
|
6154
6172
|
}
|
|
@@ -6189,42 +6207,42 @@
|
|
|
6189
6207
|
try {
|
|
6190
6208
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
6191
6209
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseField.<anonymous>' call
|
|
6192
|
-
raise.e1r(_this__u8e3s4.
|
|
6193
|
-
$this.
|
|
6194
|
-
if (_this__u8e3s4.
|
|
6195
|
-
raise.e1r(_this__u8e3s4.
|
|
6210
|
+
raise.e1r(_this__u8e3s4.m20());
|
|
6211
|
+
$this.o20(_this__u8e3s4.j20_1);
|
|
6212
|
+
if (_this__u8e3s4.j20_1.z1z_1 instanceof Colon)
|
|
6213
|
+
raise.e1r(_this__u8e3s4.m20());
|
|
6196
6214
|
else {
|
|
6197
6215
|
// Inline function 'kotlin.also' call
|
|
6198
6216
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
6199
6217
|
Companion_getInstance_5();
|
|
6200
|
-
var tmp1_invoke = _this__u8e3s4.
|
|
6218
|
+
var tmp1_invoke = _this__u8e3s4.j20_1;
|
|
6201
6219
|
var tmp2_also = new WrongTokenException(getKClass(Colon), tmp1_invoke);
|
|
6202
6220
|
// Inline function 'kotlin.contracts.contract' call
|
|
6203
6221
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseField.<anonymous>.<anonymous>' call
|
|
6204
|
-
raise.e1r(_this__u8e3s4.
|
|
6222
|
+
raise.e1r(_this__u8e3s4.m20());
|
|
6205
6223
|
raise.d1r(tmp2_also);
|
|
6206
6224
|
}
|
|
6207
|
-
var type = _this__u8e3s4.
|
|
6225
|
+
var type = _this__u8e3s4.j20_1.z1z_1;
|
|
6208
6226
|
var tmp_0;
|
|
6209
6227
|
if (isInterface(type, WirespecType)) {
|
|
6210
|
-
var tmp_1 = raise.e1r(parseFieldValue(_this__u8e3s4, $this, type, _this__u8e3s4.
|
|
6228
|
+
var tmp_1 = raise.e1r(parseFieldValue(_this__u8e3s4, $this, type, _this__u8e3s4.j20_1.y1z_1));
|
|
6211
6229
|
// Inline function 'kotlin.also' call
|
|
6212
|
-
var tmp_2 = _this__u8e3s4.
|
|
6230
|
+
var tmp_2 = _this__u8e3s4.j20_1.z1z_1;
|
|
6213
6231
|
var tmp3_also = tmp_2 instanceof QuestionMark;
|
|
6214
6232
|
// Inline function 'kotlin.contracts.contract' call
|
|
6215
6233
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseField.<anonymous>.<anonymous>' call
|
|
6216
6234
|
if (tmp3_also)
|
|
6217
|
-
raise.e1r(_this__u8e3s4.
|
|
6235
|
+
raise.e1r(_this__u8e3s4.m20());
|
|
6218
6236
|
tmp_0 = new Field_0(identifier, tmp_1, tmp3_also);
|
|
6219
6237
|
} else {
|
|
6220
6238
|
// Inline function 'kotlin.also' call
|
|
6221
6239
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
6222
6240
|
Companion_getInstance_5();
|
|
6223
|
-
var tmp5_invoke = _this__u8e3s4.
|
|
6241
|
+
var tmp5_invoke = _this__u8e3s4.j20_1;
|
|
6224
6242
|
var tmp6_also = new WrongTokenException(getKClass(CustomType), tmp5_invoke);
|
|
6225
6243
|
// Inline function 'kotlin.contracts.contract' call
|
|
6226
6244
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseField.<anonymous>.<anonymous>' call
|
|
6227
|
-
raise.e1r(_this__u8e3s4.
|
|
6245
|
+
raise.e1r(_this__u8e3s4.m20());
|
|
6228
6246
|
raise.d1r(tmp6_also);
|
|
6229
6247
|
}
|
|
6230
6248
|
var res = tmp_0;
|
|
@@ -6263,16 +6281,16 @@
|
|
|
6263
6281
|
try {
|
|
6264
6282
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
6265
6283
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseFieldValue.<anonymous>' call
|
|
6266
|
-
var previousToken = _this__u8e3s4.
|
|
6267
|
-
raise.e1r(_this__u8e3s4.
|
|
6268
|
-
$this.
|
|
6284
|
+
var previousToken = _this__u8e3s4.j20_1;
|
|
6285
|
+
raise.e1r(_this__u8e3s4.m20());
|
|
6286
|
+
$this.o20(_this__u8e3s4.j20_1);
|
|
6269
6287
|
// Inline function 'kotlin.also' call
|
|
6270
|
-
var tmp_0 = _this__u8e3s4.
|
|
6288
|
+
var tmp_0 = _this__u8e3s4.j20_1.z1z_1;
|
|
6271
6289
|
var tmp0_also = tmp_0 instanceof Brackets;
|
|
6272
6290
|
// Inline function 'kotlin.contracts.contract' call
|
|
6273
6291
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseFieldValue.<anonymous>.<anonymous>' call
|
|
6274
6292
|
if (tmp0_also)
|
|
6275
|
-
raise.e1r(_this__u8e3s4.
|
|
6293
|
+
raise.e1r(_this__u8e3s4.m20());
|
|
6276
6294
|
var isIterable = tmp0_also;
|
|
6277
6295
|
var tmp_1;
|
|
6278
6296
|
if (wsType instanceof WsString) {
|
|
@@ -6291,7 +6309,7 @@
|
|
|
6291
6309
|
tmp_1 = new Unit(isIterable);
|
|
6292
6310
|
} else {
|
|
6293
6311
|
if (wsType instanceof CustomType) {
|
|
6294
|
-
raise.e1r(_this__u8e3s4.
|
|
6312
|
+
raise.e1r(_this__u8e3s4.t20(previousToken));
|
|
6295
6313
|
tmp_1 = new Custom_0(value, isIterable);
|
|
6296
6314
|
} else {
|
|
6297
6315
|
noWhenBranchMatchedException();
|
|
@@ -6337,36 +6355,36 @@
|
|
|
6337
6355
|
try {
|
|
6338
6356
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
6339
6357
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseUnionTypeEntries.<anonymous>' call
|
|
6340
|
-
raise.e1r(_this__u8e3s4.
|
|
6341
|
-
$this.
|
|
6358
|
+
raise.e1r(_this__u8e3s4.m20());
|
|
6359
|
+
$this.o20(_this__u8e3s4.j20_1);
|
|
6342
6360
|
var tmp_0;
|
|
6343
|
-
if (_this__u8e3s4.
|
|
6361
|
+
if (_this__u8e3s4.j20_1.z1z_1 instanceof CustomType) {
|
|
6344
6362
|
// Inline function 'kotlin.apply' call
|
|
6345
6363
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
6346
6364
|
var tmp0_apply = ArrayList_init_$Create$_0();
|
|
6347
6365
|
// Inline function 'kotlin.contracts.contract' call
|
|
6348
6366
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseUnionTypeEntries.<anonymous>.<anonymous>' call
|
|
6349
|
-
raise.e1r(_this__u8e3s4.
|
|
6350
|
-
tmp0_apply.s(new Custom_0(_this__u8e3s4.
|
|
6351
|
-
raise.e1r(_this__u8e3s4.
|
|
6352
|
-
while (equals(_this__u8e3s4.
|
|
6353
|
-
raise.e1r(_this__u8e3s4.
|
|
6354
|
-
if (_this__u8e3s4.
|
|
6355
|
-
raise.e1r(_this__u8e3s4.
|
|
6367
|
+
raise.e1r(_this__u8e3s4.t20(_this__u8e3s4.j20_1));
|
|
6368
|
+
tmp0_apply.s(new Custom_0(_this__u8e3s4.j20_1.y1z_1, false));
|
|
6369
|
+
raise.e1r(_this__u8e3s4.m20());
|
|
6370
|
+
while (equals(_this__u8e3s4.j20_1.z1z_1, Pipe_getInstance())) {
|
|
6371
|
+
raise.e1r(_this__u8e3s4.m20());
|
|
6372
|
+
if (_this__u8e3s4.j20_1.z1z_1 instanceof CustomType) {
|
|
6373
|
+
raise.e1r(_this__u8e3s4.t20(_this__u8e3s4.j20_1));
|
|
6356
6374
|
// Inline function 'kotlin.also' call
|
|
6357
|
-
tmp0_apply.s(new Custom_0(_this__u8e3s4.
|
|
6375
|
+
tmp0_apply.s(new Custom_0(_this__u8e3s4.j20_1.y1z_1, false));
|
|
6358
6376
|
// Inline function 'kotlin.contracts.contract' call
|
|
6359
6377
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseUnionTypeEntries.<anonymous>.<anonymous>.<anonymous>' call
|
|
6360
|
-
raise.e1r(_this__u8e3s4.
|
|
6378
|
+
raise.e1r(_this__u8e3s4.m20());
|
|
6361
6379
|
} else {
|
|
6362
6380
|
// Inline function 'kotlin.also' call
|
|
6363
6381
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
6364
6382
|
Companion_getInstance_5();
|
|
6365
|
-
var tmp2_invoke = _this__u8e3s4.
|
|
6383
|
+
var tmp2_invoke = _this__u8e3s4.j20_1;
|
|
6366
6384
|
var tmp3_also = new WrongTokenException(getKClass(CustomType), tmp2_invoke);
|
|
6367
6385
|
// Inline function 'kotlin.contracts.contract' call
|
|
6368
6386
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseUnionTypeEntries.<anonymous>.<anonymous>.<anonymous>' call
|
|
6369
|
-
raise.e1r(_this__u8e3s4.
|
|
6387
|
+
raise.e1r(_this__u8e3s4.m20());
|
|
6370
6388
|
raise.d1r(tmp3_also);
|
|
6371
6389
|
}
|
|
6372
6390
|
}
|
|
@@ -6375,11 +6393,11 @@
|
|
|
6375
6393
|
// Inline function 'kotlin.also' call
|
|
6376
6394
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
6377
6395
|
Companion_getInstance_5();
|
|
6378
|
-
var tmp2_invoke_0 = _this__u8e3s4.
|
|
6396
|
+
var tmp2_invoke_0 = _this__u8e3s4.j20_1;
|
|
6379
6397
|
var tmp3_also_0 = new WrongTokenException(getKClass(CustomType), tmp2_invoke_0);
|
|
6380
6398
|
// Inline function 'kotlin.contracts.contract' call
|
|
6381
6399
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseUnionTypeEntries.<anonymous>.<anonymous>' call
|
|
6382
|
-
raise.e1r(_this__u8e3s4.
|
|
6400
|
+
raise.e1r(_this__u8e3s4.m20());
|
|
6383
6401
|
raise.d1r(tmp3_also_0);
|
|
6384
6402
|
}
|
|
6385
6403
|
var res = toSet(tmp_0);
|
|
@@ -6410,7 +6428,7 @@
|
|
|
6410
6428
|
function TypeParser(logger) {
|
|
6411
6429
|
AbstractParser.call(this, logger);
|
|
6412
6430
|
}
|
|
6413
|
-
protoOf(TypeParser).
|
|
6431
|
+
protoOf(TypeParser).m21 = function (_this__u8e3s4) {
|
|
6414
6432
|
// Inline function 'arrow.core.raise.either' call
|
|
6415
6433
|
// Inline function 'arrow.core.raise.fold' call
|
|
6416
6434
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -6421,20 +6439,20 @@
|
|
|
6421
6439
|
try {
|
|
6422
6440
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
6423
6441
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseType.<anonymous>' call
|
|
6424
|
-
raise.e1r(_this__u8e3s4.
|
|
6425
|
-
this.
|
|
6442
|
+
raise.e1r(_this__u8e3s4.m20());
|
|
6443
|
+
this.o20(_this__u8e3s4.j20_1);
|
|
6426
6444
|
var tmp_0;
|
|
6427
|
-
if (_this__u8e3s4.
|
|
6428
|
-
tmp_0 = raise.e1r(parseTypeDefinition(_this__u8e3s4, this, _this__u8e3s4.
|
|
6445
|
+
if (_this__u8e3s4.j20_1.z1z_1 instanceof CustomType) {
|
|
6446
|
+
tmp_0 = raise.e1r(parseTypeDefinition(_this__u8e3s4, this, _this__u8e3s4.j20_1.y1z_1));
|
|
6429
6447
|
} else {
|
|
6430
6448
|
// Inline function 'kotlin.also' call
|
|
6431
6449
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
6432
6450
|
Companion_getInstance_5();
|
|
6433
|
-
var tmp1_invoke = _this__u8e3s4.
|
|
6451
|
+
var tmp1_invoke = _this__u8e3s4.j20_1;
|
|
6434
6452
|
var tmp2_also = new WrongTokenException(getKClass(CustomType), tmp1_invoke);
|
|
6435
6453
|
// Inline function 'kotlin.contracts.contract' call
|
|
6436
6454
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseType.<anonymous>.<anonymous>' call
|
|
6437
|
-
raise.e1r(_this__u8e3s4.
|
|
6455
|
+
raise.e1r(_this__u8e3s4.m20());
|
|
6438
6456
|
raise.d1r(tmp2_also);
|
|
6439
6457
|
}
|
|
6440
6458
|
var res = tmp_0;
|
|
@@ -6462,7 +6480,7 @@
|
|
|
6462
6480
|
}
|
|
6463
6481
|
return tmp;
|
|
6464
6482
|
};
|
|
6465
|
-
protoOf(TypeParser).
|
|
6483
|
+
protoOf(TypeParser).s20 = function (_this__u8e3s4) {
|
|
6466
6484
|
// Inline function 'arrow.core.raise.either' call
|
|
6467
6485
|
// Inline function 'arrow.core.raise.fold' call
|
|
6468
6486
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -6473,31 +6491,31 @@
|
|
|
6473
6491
|
try {
|
|
6474
6492
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
6475
6493
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseTypeShape.<anonymous>' call
|
|
6476
|
-
raise.e1r(_this__u8e3s4.
|
|
6477
|
-
this.
|
|
6494
|
+
raise.e1r(_this__u8e3s4.m20());
|
|
6495
|
+
this.o20(_this__u8e3s4.j20_1);
|
|
6478
6496
|
// Inline function 'kotlin.let' call
|
|
6479
6497
|
// Inline function 'kotlin.also' call
|
|
6480
6498
|
var tmp_0;
|
|
6481
|
-
if (_this__u8e3s4.
|
|
6499
|
+
if (_this__u8e3s4.j20_1.z1z_1 instanceof CustomValue) {
|
|
6482
6500
|
// Inline function 'kotlin.apply' call
|
|
6483
6501
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
6484
6502
|
var tmp0_apply = ArrayList_init_$Create$_0();
|
|
6485
6503
|
// Inline function 'kotlin.contracts.contract' call
|
|
6486
6504
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseTypeShape.<anonymous>.<anonymous>' call
|
|
6487
|
-
tmp0_apply.s(raise.e1r(parseField(_this__u8e3s4, this, Companion_getInstance_6().
|
|
6488
|
-
while (equals(_this__u8e3s4.
|
|
6489
|
-
raise.e1r(_this__u8e3s4.
|
|
6490
|
-
if (_this__u8e3s4.
|
|
6491
|
-
tmp0_apply.s(raise.e1r(parseField(_this__u8e3s4, this, Companion_getInstance_6().
|
|
6505
|
+
tmp0_apply.s(raise.e1r(parseField(_this__u8e3s4, this, Companion_getInstance_6().o1z(_this__u8e3s4.j20_1.y1z_1))));
|
|
6506
|
+
while (equals(_this__u8e3s4.j20_1.z1z_1, Comma_getInstance())) {
|
|
6507
|
+
raise.e1r(_this__u8e3s4.m20());
|
|
6508
|
+
if (_this__u8e3s4.j20_1.z1z_1 instanceof CustomValue) {
|
|
6509
|
+
tmp0_apply.s(raise.e1r(parseField(_this__u8e3s4, this, Companion_getInstance_6().o1z(_this__u8e3s4.j20_1.y1z_1))));
|
|
6492
6510
|
} else {
|
|
6493
6511
|
// Inline function 'kotlin.also' call
|
|
6494
6512
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
6495
6513
|
Companion_getInstance_5();
|
|
6496
|
-
var tmp1_invoke = _this__u8e3s4.
|
|
6514
|
+
var tmp1_invoke = _this__u8e3s4.j20_1;
|
|
6497
6515
|
var tmp2_also = new WrongTokenException(getKClass(CustomValue), tmp1_invoke);
|
|
6498
6516
|
// Inline function 'kotlin.contracts.contract' call
|
|
6499
6517
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseTypeShape.<anonymous>.<anonymous>.<anonymous>' call
|
|
6500
|
-
raise.e1r(_this__u8e3s4.
|
|
6518
|
+
raise.e1r(_this__u8e3s4.m20());
|
|
6501
6519
|
raise.d1r(tmp2_also);
|
|
6502
6520
|
}
|
|
6503
6521
|
}
|
|
@@ -6506,27 +6524,27 @@
|
|
|
6506
6524
|
// Inline function 'kotlin.also' call
|
|
6507
6525
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
6508
6526
|
Companion_getInstance_5();
|
|
6509
|
-
var tmp2_invoke = _this__u8e3s4.
|
|
6527
|
+
var tmp2_invoke = _this__u8e3s4.j20_1;
|
|
6510
6528
|
var tmp3_also = new WrongTokenException(getKClass(CustomValue), tmp2_invoke);
|
|
6511
6529
|
// Inline function 'kotlin.contracts.contract' call
|
|
6512
6530
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseTypeShape.<anonymous>.<anonymous>' call
|
|
6513
|
-
raise.e1r(_this__u8e3s4.
|
|
6531
|
+
raise.e1r(_this__u8e3s4.m20());
|
|
6514
6532
|
raise.d1r(tmp3_also);
|
|
6515
6533
|
}
|
|
6516
6534
|
var tmp4_also = tmp_0;
|
|
6517
6535
|
// Inline function 'kotlin.contracts.contract' call
|
|
6518
6536
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseTypeShape.<anonymous>.<anonymous>' call
|
|
6519
|
-
if (_this__u8e3s4.
|
|
6520
|
-
raise.e1r(_this__u8e3s4.
|
|
6537
|
+
if (_this__u8e3s4.j20_1.z1z_1 instanceof RightCurly)
|
|
6538
|
+
raise.e1r(_this__u8e3s4.m20());
|
|
6521
6539
|
else {
|
|
6522
6540
|
// Inline function 'kotlin.also' call
|
|
6523
6541
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
6524
6542
|
Companion_getInstance_5();
|
|
6525
|
-
var tmp1_invoke_0 = _this__u8e3s4.
|
|
6543
|
+
var tmp1_invoke_0 = _this__u8e3s4.j20_1;
|
|
6526
6544
|
var tmp2_also_0 = new WrongTokenException(getKClass(RightCurly), tmp1_invoke_0);
|
|
6527
6545
|
// Inline function 'kotlin.contracts.contract' call
|
|
6528
6546
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseTypeShape.<anonymous>.<anonymous>.<anonymous>' call
|
|
6529
|
-
raise.e1r(_this__u8e3s4.
|
|
6547
|
+
raise.e1r(_this__u8e3s4.m20());
|
|
6530
6548
|
raise.d1r(tmp2_also_0);
|
|
6531
6549
|
}
|
|
6532
6550
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -6558,15 +6576,15 @@
|
|
|
6558
6576
|
function IdxAndLength(idx, length) {
|
|
6559
6577
|
idx = idx === VOID ? 0 : idx;
|
|
6560
6578
|
length = length === VOID ? 0 : length;
|
|
6561
|
-
this.
|
|
6562
|
-
this.
|
|
6579
|
+
this.n21_1 = idx;
|
|
6580
|
+
this.o21_1 = length;
|
|
6563
6581
|
}
|
|
6564
6582
|
protoOf(IdxAndLength).toString = function () {
|
|
6565
|
-
return 'IdxAndLength(idx=' + this.
|
|
6583
|
+
return 'IdxAndLength(idx=' + this.n21_1 + ', length=' + this.o21_1 + ')';
|
|
6566
6584
|
};
|
|
6567
6585
|
protoOf(IdxAndLength).hashCode = function () {
|
|
6568
|
-
var result = this.
|
|
6569
|
-
result = imul(result, 31) + this.
|
|
6586
|
+
var result = this.n21_1;
|
|
6587
|
+
result = imul(result, 31) + this.o21_1 | 0;
|
|
6570
6588
|
return result;
|
|
6571
6589
|
};
|
|
6572
6590
|
protoOf(IdxAndLength).equals = function (other) {
|
|
@@ -6575,36 +6593,36 @@
|
|
|
6575
6593
|
if (!(other instanceof IdxAndLength))
|
|
6576
6594
|
return false;
|
|
6577
6595
|
var tmp0_other_with_cast = other instanceof IdxAndLength ? other : THROW_CCE();
|
|
6578
|
-
if (!(this.m21_1 === tmp0_other_with_cast.m21_1))
|
|
6579
|
-
return false;
|
|
6580
6596
|
if (!(this.n21_1 === tmp0_other_with_cast.n21_1))
|
|
6581
6597
|
return false;
|
|
6598
|
+
if (!(this.o21_1 === tmp0_other_with_cast.o21_1))
|
|
6599
|
+
return false;
|
|
6582
6600
|
return true;
|
|
6583
6601
|
};
|
|
6584
6602
|
function Coordinates(line, position, idxAndLength) {
|
|
6585
6603
|
line = line === VOID ? 1 : line;
|
|
6586
6604
|
position = position === VOID ? 1 : position;
|
|
6587
6605
|
idxAndLength = idxAndLength === VOID ? new IdxAndLength() : idxAndLength;
|
|
6588
|
-
this.
|
|
6589
|
-
this.
|
|
6590
|
-
this.
|
|
6606
|
+
this.c20_1 = line;
|
|
6607
|
+
this.d20_1 = position;
|
|
6608
|
+
this.e20_1 = idxAndLength;
|
|
6591
6609
|
}
|
|
6592
|
-
protoOf(Coordinates).
|
|
6610
|
+
protoOf(Coordinates).p21 = function (line, position, idxAndLength) {
|
|
6593
6611
|
return new Coordinates(line, position, idxAndLength);
|
|
6594
6612
|
};
|
|
6595
|
-
protoOf(Coordinates).
|
|
6596
|
-
line = line === VOID ? this.
|
|
6597
|
-
position = position === VOID ? this.
|
|
6598
|
-
idxAndLength = idxAndLength === VOID ? this.
|
|
6599
|
-
return $super === VOID ? this.
|
|
6613
|
+
protoOf(Coordinates).q21 = function (line, position, idxAndLength, $super) {
|
|
6614
|
+
line = line === VOID ? this.c20_1 : line;
|
|
6615
|
+
position = position === VOID ? this.d20_1 : position;
|
|
6616
|
+
idxAndLength = idxAndLength === VOID ? this.e20_1 : idxAndLength;
|
|
6617
|
+
return $super === VOID ? this.p21(line, position, idxAndLength) : $super.p21.call(this, line, position, idxAndLength);
|
|
6600
6618
|
};
|
|
6601
6619
|
protoOf(Coordinates).toString = function () {
|
|
6602
|
-
return 'Coordinates(line=' + this.
|
|
6620
|
+
return 'Coordinates(line=' + this.c20_1 + ', position=' + this.d20_1 + ', idxAndLength=' + this.e20_1 + ')';
|
|
6603
6621
|
};
|
|
6604
6622
|
protoOf(Coordinates).hashCode = function () {
|
|
6605
|
-
var result = this.
|
|
6606
|
-
result = imul(result, 31) + this.
|
|
6607
|
-
result = imul(result, 31) + this.
|
|
6623
|
+
var result = this.c20_1;
|
|
6624
|
+
result = imul(result, 31) + this.d20_1 | 0;
|
|
6625
|
+
result = imul(result, 31) + this.e20_1.hashCode() | 0;
|
|
6608
6626
|
return result;
|
|
6609
6627
|
};
|
|
6610
6628
|
protoOf(Coordinates).equals = function (other) {
|
|
@@ -6613,38 +6631,38 @@
|
|
|
6613
6631
|
if (!(other instanceof Coordinates))
|
|
6614
6632
|
return false;
|
|
6615
6633
|
var tmp0_other_with_cast = other instanceof Coordinates ? other : THROW_CCE();
|
|
6616
|
-
if (!(this.b20_1 === tmp0_other_with_cast.b20_1))
|
|
6617
|
-
return false;
|
|
6618
6634
|
if (!(this.c20_1 === tmp0_other_with_cast.c20_1))
|
|
6619
6635
|
return false;
|
|
6620
|
-
if (!this.d20_1
|
|
6636
|
+
if (!(this.d20_1 === tmp0_other_with_cast.d20_1))
|
|
6637
|
+
return false;
|
|
6638
|
+
if (!this.e20_1.equals(tmp0_other_with_cast.e20_1))
|
|
6621
6639
|
return false;
|
|
6622
6640
|
return true;
|
|
6623
6641
|
};
|
|
6624
6642
|
function Token(value, type, coordinates) {
|
|
6625
|
-
this.
|
|
6626
|
-
this.
|
|
6627
|
-
this.
|
|
6643
|
+
this.y1z_1 = value;
|
|
6644
|
+
this.z1z_1 = type;
|
|
6645
|
+
this.a20_1 = coordinates;
|
|
6628
6646
|
}
|
|
6629
6647
|
protoOf(Token).p2 = function () {
|
|
6630
|
-
return this.
|
|
6648
|
+
return this.y1z_1;
|
|
6631
6649
|
};
|
|
6632
|
-
protoOf(Token).
|
|
6650
|
+
protoOf(Token).r21 = function (value, type, coordinates) {
|
|
6633
6651
|
return new Token(value, type, coordinates);
|
|
6634
6652
|
};
|
|
6635
|
-
protoOf(Token).
|
|
6636
|
-
value = value === VOID ? this.
|
|
6637
|
-
type = type === VOID ? this.
|
|
6638
|
-
coordinates = coordinates === VOID ? this.
|
|
6639
|
-
return $super === VOID ? this.
|
|
6653
|
+
protoOf(Token).g20 = function (value, type, coordinates, $super) {
|
|
6654
|
+
value = value === VOID ? this.y1z_1 : value;
|
|
6655
|
+
type = type === VOID ? this.z1z_1 : type;
|
|
6656
|
+
coordinates = coordinates === VOID ? this.a20_1 : coordinates;
|
|
6657
|
+
return $super === VOID ? this.r21(value, type, coordinates) : $super.r21.call(this, value, type, coordinates);
|
|
6640
6658
|
};
|
|
6641
6659
|
protoOf(Token).toString = function () {
|
|
6642
|
-
return 'Token(value=' + this.
|
|
6660
|
+
return 'Token(value=' + this.y1z_1 + ', type=' + this.z1z_1 + ', coordinates=' + this.a20_1 + ')';
|
|
6643
6661
|
};
|
|
6644
6662
|
protoOf(Token).hashCode = function () {
|
|
6645
|
-
var result = getStringHashCode(this.
|
|
6646
|
-
result = imul(result, 31) + hashCode(this.
|
|
6647
|
-
result = imul(result, 31) + this.
|
|
6663
|
+
var result = getStringHashCode(this.y1z_1);
|
|
6664
|
+
result = imul(result, 31) + hashCode(this.z1z_1) | 0;
|
|
6665
|
+
result = imul(result, 31) + this.a20_1.hashCode() | 0;
|
|
6648
6666
|
return result;
|
|
6649
6667
|
};
|
|
6650
6668
|
protoOf(Token).equals = function (other) {
|
|
@@ -6653,19 +6671,19 @@
|
|
|
6653
6671
|
if (!(other instanceof Token))
|
|
6654
6672
|
return false;
|
|
6655
6673
|
var tmp0_other_with_cast = other instanceof Token ? other : THROW_CCE();
|
|
6656
|
-
if (!(this.
|
|
6674
|
+
if (!(this.y1z_1 === tmp0_other_with_cast.y1z_1))
|
|
6657
6675
|
return false;
|
|
6658
|
-
if (!equals(this.
|
|
6676
|
+
if (!equals(this.z1z_1, tmp0_other_with_cast.z1z_1))
|
|
6659
6677
|
return false;
|
|
6660
|
-
if (!this.
|
|
6678
|
+
if (!this.a20_1.equals(tmp0_other_with_cast.a20_1))
|
|
6661
6679
|
return false;
|
|
6662
6680
|
return true;
|
|
6663
6681
|
};
|
|
6664
6682
|
function plus_1(_this__u8e3s4, length) {
|
|
6665
|
-
return new IdxAndLength(_this__u8e3s4.
|
|
6683
|
+
return new IdxAndLength(_this__u8e3s4.n21_1 + length | 0, length);
|
|
6666
6684
|
}
|
|
6667
6685
|
function plus_2(_this__u8e3s4, length) {
|
|
6668
|
-
return _this__u8e3s4.
|
|
6686
|
+
return _this__u8e3s4.q21(VOID, _this__u8e3s4.d20_1 + length | 0, plus_1(_this__u8e3s4.e20_1, length));
|
|
6669
6687
|
}
|
|
6670
6688
|
function tokenize(_this__u8e3s4, source) {
|
|
6671
6689
|
var tmp0_type = StartOfProgram_getInstance();
|
|
@@ -6678,12 +6696,12 @@
|
|
|
6678
6696
|
var incompleteTokens_0 = incompleteTokens;
|
|
6679
6697
|
$l$1: do {
|
|
6680
6698
|
$l$0: do {
|
|
6681
|
-
var tmp0_container = extractToken($this, source_0, last(incompleteTokens_0).
|
|
6699
|
+
var tmp0_container = extractToken($this, source_0, last(incompleteTokens_0).a20_1);
|
|
6682
6700
|
var token = tmp0_container.fd();
|
|
6683
6701
|
var remaining = tmp0_container.gd();
|
|
6684
6702
|
var tokens = incompleteTokens_0.y1q(token);
|
|
6685
6703
|
var tmp;
|
|
6686
|
-
var tmp_0 = token.
|
|
6704
|
+
var tmp_0 = token.z1z_1;
|
|
6687
6705
|
if (tmp_0 instanceof EndOfProgram) {
|
|
6688
6706
|
tmp = tokens;
|
|
6689
6707
|
} else {
|
|
@@ -6725,7 +6743,7 @@
|
|
|
6725
6743
|
// Inline function 'kotlin.let' call
|
|
6726
6744
|
// Inline function 'kotlin.contracts.contract' call
|
|
6727
6745
|
// Inline function 'community.flock.wirespec.compiler.core.tokenize.extractToken.<anonymous>' call
|
|
6728
|
-
tmp = to(tmp0_safe_receiver_0, removePrefix(source, tmp0_safe_receiver_0.
|
|
6746
|
+
tmp = to(tmp0_safe_receiver_0, removePrefix(source, tmp0_safe_receiver_0.y1z_1));
|
|
6729
6747
|
}
|
|
6730
6748
|
var tmp1_elvis_lhs = tmp;
|
|
6731
6749
|
return tmp1_elvis_lhs == null ? new Pair(endToken(previousTokenCoordinates), '') : tmp1_elvis_lhs;
|
|
@@ -6745,7 +6763,7 @@
|
|
|
6745
6763
|
function nextCoordinates(_this__u8e3s4, type, value) {
|
|
6746
6764
|
var tmp;
|
|
6747
6765
|
if (type instanceof NewLine) {
|
|
6748
|
-
tmp = new Coordinates(_this__u8e3s4.
|
|
6766
|
+
tmp = new Coordinates(_this__u8e3s4.c20_1 + 1 | 0, VOID, plus_1(_this__u8e3s4.e20_1, value.length));
|
|
6749
6767
|
} else {
|
|
6750
6768
|
tmp = plus_2(_this__u8e3s4, value.length);
|
|
6751
6769
|
}
|
|
@@ -6759,7 +6777,7 @@
|
|
|
6759
6777
|
while (tmp0_iterator.w()) {
|
|
6760
6778
|
var element = tmp0_iterator.y();
|
|
6761
6779
|
// Inline function 'community.flock.wirespec.compiler.core.tokenize.removeWhiteSpace.<anonymous>' call
|
|
6762
|
-
var tmp = element.
|
|
6780
|
+
var tmp = element.z1z_1;
|
|
6763
6781
|
if (!isInterface(tmp, WhiteSpace)) {
|
|
6764
6782
|
tmp0_filterNotTo.s(element);
|
|
6765
6783
|
}
|
|
@@ -7446,7 +7464,7 @@
|
|
|
7446
7464
|
}
|
|
7447
7465
|
function EndOfProgram() {
|
|
7448
7466
|
EndOfProgram_instance = this;
|
|
7449
|
-
this.
|
|
7467
|
+
this.s21_1 = 'EOP';
|
|
7450
7468
|
}
|
|
7451
7469
|
protoOf(EndOfProgram).toString = function () {
|
|
7452
7470
|
return 'EndOfProgram';
|
|
@@ -7507,36 +7525,36 @@
|
|
|
7507
7525
|
}
|
|
7508
7526
|
}
|
|
7509
7527
|
//region block: post-declaration
|
|
7510
|
-
protoOf(WsTypeDef).
|
|
7511
|
-
protoOf(WsEnumTypeDef).
|
|
7512
|
-
protoOf(WsEndpointDef).
|
|
7513
|
-
protoOf(WhiteSpaceExceptNewLine).
|
|
7514
|
-
protoOf(NewLine).
|
|
7515
|
-
protoOf(LeftCurly).
|
|
7516
|
-
protoOf(RightCurly).
|
|
7517
|
-
protoOf(Arrow).
|
|
7518
|
-
protoOf(Equals).
|
|
7519
|
-
protoOf(Pipe).
|
|
7520
|
-
protoOf(Colon).
|
|
7521
|
-
protoOf(Comma).
|
|
7522
|
-
protoOf(QuestionMark).
|
|
7523
|
-
protoOf(Hash).
|
|
7524
|
-
protoOf(Brackets).
|
|
7525
|
-
protoOf(WsString).
|
|
7526
|
-
protoOf(WsInteger).
|
|
7527
|
-
protoOf(WsNumber).
|
|
7528
|
-
protoOf(WsBoolean).
|
|
7529
|
-
protoOf(WsUnit).
|
|
7530
|
-
protoOf(Method_0).
|
|
7531
|
-
protoOf(CustomRegex).
|
|
7532
|
-
protoOf(StatusCode).
|
|
7533
|
-
protoOf(CustomValue).
|
|
7534
|
-
protoOf(CustomType).
|
|
7535
|
-
protoOf(Path_0).
|
|
7536
|
-
protoOf(ForwardSlash).
|
|
7537
|
-
protoOf(Invalid).
|
|
7538
|
-
protoOf(StartOfProgram).
|
|
7539
|
-
protoOf(EndOfProgram).
|
|
7528
|
+
protoOf(WsTypeDef).b20 = name;
|
|
7529
|
+
protoOf(WsEnumTypeDef).b20 = name;
|
|
7530
|
+
protoOf(WsEndpointDef).b20 = name;
|
|
7531
|
+
protoOf(WhiteSpaceExceptNewLine).b20 = name;
|
|
7532
|
+
protoOf(NewLine).b20 = name;
|
|
7533
|
+
protoOf(LeftCurly).b20 = name;
|
|
7534
|
+
protoOf(RightCurly).b20 = name;
|
|
7535
|
+
protoOf(Arrow).b20 = name;
|
|
7536
|
+
protoOf(Equals).b20 = name;
|
|
7537
|
+
protoOf(Pipe).b20 = name;
|
|
7538
|
+
protoOf(Colon).b20 = name;
|
|
7539
|
+
protoOf(Comma).b20 = name;
|
|
7540
|
+
protoOf(QuestionMark).b20 = name;
|
|
7541
|
+
protoOf(Hash).b20 = name;
|
|
7542
|
+
protoOf(Brackets).b20 = name;
|
|
7543
|
+
protoOf(WsString).b20 = name;
|
|
7544
|
+
protoOf(WsInteger).b20 = name;
|
|
7545
|
+
protoOf(WsNumber).b20 = name;
|
|
7546
|
+
protoOf(WsBoolean).b20 = name;
|
|
7547
|
+
protoOf(WsUnit).b20 = name;
|
|
7548
|
+
protoOf(Method_0).b20 = name;
|
|
7549
|
+
protoOf(CustomRegex).b20 = name;
|
|
7550
|
+
protoOf(StatusCode).b20 = name;
|
|
7551
|
+
protoOf(CustomValue).b20 = name;
|
|
7552
|
+
protoOf(CustomType).b20 = name;
|
|
7553
|
+
protoOf(Path_0).b20 = name;
|
|
7554
|
+
protoOf(ForwardSlash).b20 = name;
|
|
7555
|
+
protoOf(Invalid).b20 = name;
|
|
7556
|
+
protoOf(StartOfProgram).b20 = name;
|
|
7557
|
+
protoOf(EndOfProgram).b20 = name;
|
|
7540
7558
|
//endregion
|
|
7541
7559
|
//region block: init
|
|
7542
7560
|
DEFAULT_PACKAGE_STRING = 'community.flock.wirespec.generated';
|