@flock/wirespec 0.9.8 → 0.9.10
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 +1123 -1123
- package/colormath-root-colormath.js +331 -331
- package/kotlin-kotlin-stdlib.js +5 -5
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin-openapi-bindings.js +8 -0
- package/kotlin-openapi-bindings.js.map +1 -1
- package/kotlin-rgxgen.js +1760 -1760
- package/markdown.js +1792 -1792
- package/mordant-mordant.js +1488 -1488
- package/package.json +1 -1
- package/wirespec-src-compiler-core.js +85 -55
- package/wirespec-src-compiler-core.js.map +1 -1
- package/wirespec-src-compiler-lib.js +120 -120
- package/wirespec-src-compiler-lib.js.map +1 -1
- package/wirespec-src-converter-openapi.js.map +1 -1
- package/wirespec-src-generator.js +9 -9
- package/wirespec-src-generator.js.map +1 -1
- package/wirespec-src-plugin-cli.js +76 -76
- package/wirespec-src-plugin-npm.js +103 -55
- package/wirespec-src-plugin-npm.js.map +1 -1
|
@@ -782,35 +782,35 @@
|
|
|
782
782
|
}
|
|
783
783
|
function WsAny(isIterable, isMap) {
|
|
784
784
|
isMap = isMap === VOID ? false : isMap;
|
|
785
|
-
this.
|
|
786
|
-
this.
|
|
785
|
+
this.f2e_1 = isIterable;
|
|
786
|
+
this.g2e_1 = isMap;
|
|
787
787
|
}
|
|
788
788
|
protoOf(WsAny).t20 = function () {
|
|
789
|
-
return this.e2e_1;
|
|
790
|
-
};
|
|
791
|
-
protoOf(WsAny).l28 = function () {
|
|
792
789
|
return this.f2e_1;
|
|
793
790
|
};
|
|
791
|
+
protoOf(WsAny).e2e = function () {
|
|
792
|
+
return this.g2e_1;
|
|
793
|
+
};
|
|
794
794
|
protoOf(WsAny).gd = function () {
|
|
795
|
-
return this.
|
|
795
|
+
return this.f2e_1;
|
|
796
796
|
};
|
|
797
797
|
protoOf(WsAny).hd = function () {
|
|
798
|
-
return this.
|
|
798
|
+
return this.g2e_1;
|
|
799
799
|
};
|
|
800
800
|
protoOf(WsAny).x29 = function (isIterable, isMap) {
|
|
801
801
|
return new WsAny(isIterable, isMap);
|
|
802
802
|
};
|
|
803
803
|
protoOf(WsAny).copy = function (isIterable, isMap, $super) {
|
|
804
|
-
isIterable = isIterable === VOID ? this.
|
|
805
|
-
isMap = isMap === VOID ? this.
|
|
804
|
+
isIterable = isIterable === VOID ? this.f2e_1 : isIterable;
|
|
805
|
+
isMap = isMap === VOID ? this.g2e_1 : isMap;
|
|
806
806
|
return this.x29(isIterable, isMap);
|
|
807
807
|
};
|
|
808
808
|
protoOf(WsAny).toString = function () {
|
|
809
|
-
return 'WsAny(isIterable=' + this.
|
|
809
|
+
return 'WsAny(isIterable=' + this.f2e_1 + ', isMap=' + this.g2e_1 + ')';
|
|
810
810
|
};
|
|
811
811
|
protoOf(WsAny).hashCode = function () {
|
|
812
|
-
var result = this.
|
|
813
|
-
result = imul(result, 31) + (this.
|
|
812
|
+
var result = this.f2e_1 | 0;
|
|
813
|
+
result = imul(result, 31) + (this.g2e_1 | 0) | 0;
|
|
814
814
|
return result;
|
|
815
815
|
};
|
|
816
816
|
protoOf(WsAny).equals = function (other) {
|
|
@@ -819,43 +819,43 @@
|
|
|
819
819
|
if (!(other instanceof WsAny))
|
|
820
820
|
return false;
|
|
821
821
|
var tmp0_other_with_cast = other instanceof WsAny ? other : THROW_CCE();
|
|
822
|
-
if (!(this.e2e_1 === tmp0_other_with_cast.e2e_1))
|
|
823
|
-
return false;
|
|
824
822
|
if (!(this.f2e_1 === tmp0_other_with_cast.f2e_1))
|
|
825
823
|
return false;
|
|
824
|
+
if (!(this.g2e_1 === tmp0_other_with_cast.g2e_1))
|
|
825
|
+
return false;
|
|
826
826
|
return true;
|
|
827
827
|
};
|
|
828
828
|
function WsUnit(isIterable, isMap) {
|
|
829
829
|
isMap = isMap === VOID ? false : isMap;
|
|
830
|
-
this.
|
|
831
|
-
this.
|
|
830
|
+
this.h2e_1 = isIterable;
|
|
831
|
+
this.i2e_1 = isMap;
|
|
832
832
|
}
|
|
833
833
|
protoOf(WsUnit).t20 = function () {
|
|
834
|
-
return this.g2e_1;
|
|
835
|
-
};
|
|
836
|
-
protoOf(WsUnit).l28 = function () {
|
|
837
834
|
return this.h2e_1;
|
|
838
835
|
};
|
|
836
|
+
protoOf(WsUnit).e2e = function () {
|
|
837
|
+
return this.i2e_1;
|
|
838
|
+
};
|
|
839
839
|
protoOf(WsUnit).gd = function () {
|
|
840
|
-
return this.
|
|
840
|
+
return this.h2e_1;
|
|
841
841
|
};
|
|
842
842
|
protoOf(WsUnit).hd = function () {
|
|
843
|
-
return this.
|
|
843
|
+
return this.i2e_1;
|
|
844
844
|
};
|
|
845
845
|
protoOf(WsUnit).x29 = function (isIterable, isMap) {
|
|
846
846
|
return new WsUnit(isIterable, isMap);
|
|
847
847
|
};
|
|
848
848
|
protoOf(WsUnit).copy = function (isIterable, isMap, $super) {
|
|
849
|
-
isIterable = isIterable === VOID ? this.
|
|
850
|
-
isMap = isMap === VOID ? this.
|
|
849
|
+
isIterable = isIterable === VOID ? this.h2e_1 : isIterable;
|
|
850
|
+
isMap = isMap === VOID ? this.i2e_1 : isMap;
|
|
851
851
|
return this.x29(isIterable, isMap);
|
|
852
852
|
};
|
|
853
853
|
protoOf(WsUnit).toString = function () {
|
|
854
|
-
return 'WsUnit(isIterable=' + this.
|
|
854
|
+
return 'WsUnit(isIterable=' + this.h2e_1 + ', isMap=' + this.i2e_1 + ')';
|
|
855
855
|
};
|
|
856
856
|
protoOf(WsUnit).hashCode = function () {
|
|
857
|
-
var result = this.
|
|
858
|
-
result = imul(result, 31) + (this.
|
|
857
|
+
var result = this.h2e_1 | 0;
|
|
858
|
+
result = imul(result, 31) + (this.i2e_1 | 0) | 0;
|
|
859
859
|
return result;
|
|
860
860
|
};
|
|
861
861
|
protoOf(WsUnit).equals = function (other) {
|
|
@@ -864,52 +864,52 @@
|
|
|
864
864
|
if (!(other instanceof WsUnit))
|
|
865
865
|
return false;
|
|
866
866
|
var tmp0_other_with_cast = other instanceof WsUnit ? other : THROW_CCE();
|
|
867
|
-
if (!(this.g2e_1 === tmp0_other_with_cast.g2e_1))
|
|
868
|
-
return false;
|
|
869
867
|
if (!(this.h2e_1 === tmp0_other_with_cast.h2e_1))
|
|
870
868
|
return false;
|
|
869
|
+
if (!(this.i2e_1 === tmp0_other_with_cast.i2e_1))
|
|
870
|
+
return false;
|
|
871
871
|
return true;
|
|
872
872
|
};
|
|
873
873
|
function WsCustom(value, isIterable, isMap) {
|
|
874
874
|
isMap = isMap === VOID ? false : isMap;
|
|
875
875
|
this.value = value;
|
|
876
|
-
this.
|
|
877
|
-
this.
|
|
876
|
+
this.j2e_1 = isIterable;
|
|
877
|
+
this.k2e_1 = isMap;
|
|
878
878
|
}
|
|
879
879
|
protoOf(WsCustom).p2 = function () {
|
|
880
880
|
return this.value;
|
|
881
881
|
};
|
|
882
882
|
protoOf(WsCustom).t20 = function () {
|
|
883
|
-
return this.i2e_1;
|
|
884
|
-
};
|
|
885
|
-
protoOf(WsCustom).l28 = function () {
|
|
886
883
|
return this.j2e_1;
|
|
887
884
|
};
|
|
885
|
+
protoOf(WsCustom).e2e = function () {
|
|
886
|
+
return this.k2e_1;
|
|
887
|
+
};
|
|
888
888
|
protoOf(WsCustom).gd = function () {
|
|
889
889
|
return this.value;
|
|
890
890
|
};
|
|
891
891
|
protoOf(WsCustom).hd = function () {
|
|
892
|
-
return this.
|
|
892
|
+
return this.j2e_1;
|
|
893
893
|
};
|
|
894
894
|
protoOf(WsCustom).ah = function () {
|
|
895
|
-
return this.
|
|
895
|
+
return this.k2e_1;
|
|
896
896
|
};
|
|
897
897
|
protoOf(WsCustom).g2a = function (value, isIterable, isMap) {
|
|
898
898
|
return new WsCustom(value, isIterable, isMap);
|
|
899
899
|
};
|
|
900
900
|
protoOf(WsCustom).copy = function (value, isIterable, isMap, $super) {
|
|
901
901
|
value = value === VOID ? this.value : value;
|
|
902
|
-
isIterable = isIterable === VOID ? this.
|
|
903
|
-
isMap = isMap === VOID ? this.
|
|
902
|
+
isIterable = isIterable === VOID ? this.j2e_1 : isIterable;
|
|
903
|
+
isMap = isMap === VOID ? this.k2e_1 : isMap;
|
|
904
904
|
return this.g2a(value, isIterable, isMap);
|
|
905
905
|
};
|
|
906
906
|
protoOf(WsCustom).toString = function () {
|
|
907
|
-
return 'WsCustom(value=' + this.value + ', isIterable=' + this.
|
|
907
|
+
return 'WsCustom(value=' + this.value + ', isIterable=' + this.j2e_1 + ', isMap=' + this.k2e_1 + ')';
|
|
908
908
|
};
|
|
909
909
|
protoOf(WsCustom).hashCode = function () {
|
|
910
910
|
var result = getStringHashCode(this.value);
|
|
911
|
-
result = imul(result, 31) + (this.i2e_1 | 0) | 0;
|
|
912
911
|
result = imul(result, 31) + (this.j2e_1 | 0) | 0;
|
|
912
|
+
result = imul(result, 31) + (this.k2e_1 | 0) | 0;
|
|
913
913
|
return result;
|
|
914
914
|
};
|
|
915
915
|
protoOf(WsCustom).equals = function (other) {
|
|
@@ -920,52 +920,52 @@
|
|
|
920
920
|
var tmp0_other_with_cast = other instanceof WsCustom ? other : THROW_CCE();
|
|
921
921
|
if (!(this.value === tmp0_other_with_cast.value))
|
|
922
922
|
return false;
|
|
923
|
-
if (!(this.i2e_1 === tmp0_other_with_cast.i2e_1))
|
|
924
|
-
return false;
|
|
925
923
|
if (!(this.j2e_1 === tmp0_other_with_cast.j2e_1))
|
|
926
924
|
return false;
|
|
925
|
+
if (!(this.k2e_1 === tmp0_other_with_cast.k2e_1))
|
|
926
|
+
return false;
|
|
927
927
|
return true;
|
|
928
928
|
};
|
|
929
929
|
function WsPrimitive(type, isIterable, isMap) {
|
|
930
930
|
isMap = isMap === VOID ? false : isMap;
|
|
931
931
|
this.type = type;
|
|
932
|
-
this.
|
|
933
|
-
this.
|
|
932
|
+
this.l2e_1 = isIterable;
|
|
933
|
+
this.m2e_1 = isMap;
|
|
934
934
|
}
|
|
935
|
-
protoOf(WsPrimitive).
|
|
935
|
+
protoOf(WsPrimitive).n2e = function () {
|
|
936
936
|
return this.type;
|
|
937
937
|
};
|
|
938
938
|
protoOf(WsPrimitive).t20 = function () {
|
|
939
|
-
return this.k2e_1;
|
|
940
|
-
};
|
|
941
|
-
protoOf(WsPrimitive).l28 = function () {
|
|
942
939
|
return this.l2e_1;
|
|
943
940
|
};
|
|
941
|
+
protoOf(WsPrimitive).e2e = function () {
|
|
942
|
+
return this.m2e_1;
|
|
943
|
+
};
|
|
944
944
|
protoOf(WsPrimitive).gd = function () {
|
|
945
945
|
return this.type;
|
|
946
946
|
};
|
|
947
947
|
protoOf(WsPrimitive).hd = function () {
|
|
948
|
-
return this.
|
|
948
|
+
return this.l2e_1;
|
|
949
949
|
};
|
|
950
950
|
protoOf(WsPrimitive).ah = function () {
|
|
951
|
-
return this.
|
|
951
|
+
return this.m2e_1;
|
|
952
952
|
};
|
|
953
|
-
protoOf(WsPrimitive).
|
|
953
|
+
protoOf(WsPrimitive).o2e = function (type, isIterable, isMap) {
|
|
954
954
|
return new WsPrimitive(type, isIterable, isMap);
|
|
955
955
|
};
|
|
956
956
|
protoOf(WsPrimitive).copy = function (type, isIterable, isMap, $super) {
|
|
957
957
|
type = type === VOID ? this.type : type;
|
|
958
|
-
isIterable = isIterable === VOID ? this.
|
|
959
|
-
isMap = isMap === VOID ? this.
|
|
960
|
-
return this.
|
|
958
|
+
isIterable = isIterable === VOID ? this.l2e_1 : isIterable;
|
|
959
|
+
isMap = isMap === VOID ? this.m2e_1 : isMap;
|
|
960
|
+
return this.o2e(type, isIterable, isMap);
|
|
961
961
|
};
|
|
962
962
|
protoOf(WsPrimitive).toString = function () {
|
|
963
|
-
return 'WsPrimitive(type=' + this.type + ', isIterable=' + this.
|
|
963
|
+
return 'WsPrimitive(type=' + this.type + ', isIterable=' + this.l2e_1 + ', isMap=' + this.m2e_1 + ')';
|
|
964
964
|
};
|
|
965
965
|
protoOf(WsPrimitive).hashCode = function () {
|
|
966
966
|
var result = this.type.hashCode();
|
|
967
|
-
result = imul(result, 31) + (this.k2e_1 | 0) | 0;
|
|
968
967
|
result = imul(result, 31) + (this.l2e_1 | 0) | 0;
|
|
968
|
+
result = imul(result, 31) + (this.m2e_1 | 0) | 0;
|
|
969
969
|
return result;
|
|
970
970
|
};
|
|
971
971
|
protoOf(WsPrimitive).equals = function (other) {
|
|
@@ -976,10 +976,10 @@
|
|
|
976
976
|
var tmp0_other_with_cast = other instanceof WsPrimitive ? other : THROW_CCE();
|
|
977
977
|
if (!this.type.equals(tmp0_other_with_cast.type))
|
|
978
978
|
return false;
|
|
979
|
-
if (!(this.k2e_1 === tmp0_other_with_cast.k2e_1))
|
|
980
|
-
return false;
|
|
981
979
|
if (!(this.l2e_1 === tmp0_other_with_cast.l2e_1))
|
|
982
980
|
return false;
|
|
981
|
+
if (!(this.m2e_1 === tmp0_other_with_cast.m2e_1))
|
|
982
|
+
return false;
|
|
983
983
|
return true;
|
|
984
984
|
};
|
|
985
985
|
var WsPrimitiveType_String_instance;
|
|
@@ -1027,12 +1027,12 @@
|
|
|
1027
1027
|
protoOf(WsRequest).gd = function () {
|
|
1028
1028
|
return this.content;
|
|
1029
1029
|
};
|
|
1030
|
-
protoOf(WsRequest).
|
|
1030
|
+
protoOf(WsRequest).r2e = function (content) {
|
|
1031
1031
|
return new WsRequest(content);
|
|
1032
1032
|
};
|
|
1033
1033
|
protoOf(WsRequest).copy = function (content, $super) {
|
|
1034
1034
|
content = content === VOID ? this.content : content;
|
|
1035
|
-
return this.
|
|
1035
|
+
return this.r2e(content);
|
|
1036
1036
|
};
|
|
1037
1037
|
protoOf(WsRequest).toString = function () {
|
|
1038
1038
|
return 'WsRequest(content=' + this.content + ')';
|
|
@@ -1055,7 +1055,7 @@
|
|
|
1055
1055
|
this.headers = headers;
|
|
1056
1056
|
this.content = content;
|
|
1057
1057
|
}
|
|
1058
|
-
protoOf(WsResponse).
|
|
1058
|
+
protoOf(WsResponse).s2e = function () {
|
|
1059
1059
|
return this.status;
|
|
1060
1060
|
};
|
|
1061
1061
|
protoOf(WsResponse).g2d = function () {
|
|
@@ -1073,14 +1073,14 @@
|
|
|
1073
1073
|
protoOf(WsResponse).ah = function () {
|
|
1074
1074
|
return this.content;
|
|
1075
1075
|
};
|
|
1076
|
-
protoOf(WsResponse).
|
|
1076
|
+
protoOf(WsResponse).t2e = function (status, headers, content) {
|
|
1077
1077
|
return new WsResponse(status, headers, content);
|
|
1078
1078
|
};
|
|
1079
1079
|
protoOf(WsResponse).copy = function (status, headers, content, $super) {
|
|
1080
1080
|
status = status === VOID ? this.status : status;
|
|
1081
1081
|
headers = headers === VOID ? this.headers : headers;
|
|
1082
1082
|
content = content === VOID ? this.content : content;
|
|
1083
|
-
return this.
|
|
1083
|
+
return this.t2e(status, headers, content);
|
|
1084
1084
|
};
|
|
1085
1085
|
protoOf(WsResponse).toString = function () {
|
|
1086
1086
|
return 'WsResponse(status=' + this.status + ', headers=' + toString(this.headers) + ', content=' + this.content + ')';
|
|
@@ -1111,7 +1111,7 @@
|
|
|
1111
1111
|
this.reference = reference;
|
|
1112
1112
|
this.isNullable = isNullable;
|
|
1113
1113
|
}
|
|
1114
|
-
protoOf(WsContent).
|
|
1114
|
+
protoOf(WsContent).n2e = function () {
|
|
1115
1115
|
return this.type;
|
|
1116
1116
|
};
|
|
1117
1117
|
protoOf(WsContent).b2e = function () {
|
|
@@ -1129,14 +1129,14 @@
|
|
|
1129
1129
|
protoOf(WsContent).ah = function () {
|
|
1130
1130
|
return this.isNullable;
|
|
1131
1131
|
};
|
|
1132
|
-
protoOf(WsContent).
|
|
1132
|
+
protoOf(WsContent).u2e = function (type, reference, isNullable) {
|
|
1133
1133
|
return new WsContent(type, reference, isNullable);
|
|
1134
1134
|
};
|
|
1135
1135
|
protoOf(WsContent).copy = function (type, reference, isNullable, $super) {
|
|
1136
1136
|
type = type === VOID ? this.type : type;
|
|
1137
1137
|
reference = reference === VOID ? this.reference : reference;
|
|
1138
1138
|
isNullable = isNullable === VOID ? this.isNullable : isNullable;
|
|
1139
|
-
return this.
|
|
1139
|
+
return this.u2e(type, reference, isNullable);
|
|
1140
1140
|
};
|
|
1141
1141
|
protoOf(WsContent).toString = function () {
|
|
1142
1142
|
return 'WsContent(type=' + this.type + ', reference=' + this.reference + ', isNullable=' + this.isNullable + ')';
|
|
@@ -1854,7 +1854,7 @@
|
|
|
1854
1854
|
var tmp = this;
|
|
1855
1855
|
tmp.logger = new Compiler$Companion$logger$1();
|
|
1856
1856
|
}
|
|
1857
|
-
protoOf(Companion).
|
|
1857
|
+
protoOf(Companion).v2e = function () {
|
|
1858
1858
|
return this.logger;
|
|
1859
1859
|
};
|
|
1860
1860
|
var Companion_instance;
|
|
@@ -1881,7 +1881,7 @@
|
|
|
1881
1881
|
};
|
|
1882
1882
|
function Companion_0() {
|
|
1883
1883
|
Companion_instance_0 = this;
|
|
1884
|
-
this.
|
|
1884
|
+
this.w2e_1 = new KotlinEmitter(VOID, Companion_getInstance_2().logger);
|
|
1885
1885
|
}
|
|
1886
1886
|
var Companion_instance_0;
|
|
1887
1887
|
function Companion_getInstance_3() {
|
|
@@ -1894,11 +1894,11 @@
|
|
|
1894
1894
|
Compiler.call(this);
|
|
1895
1895
|
}
|
|
1896
1896
|
protoOf(WsToKotlin).compile = function (source) {
|
|
1897
|
-
return produce_15(this.preCompile(source)(Companion_getInstance_3().
|
|
1897
|
+
return produce_15(this.preCompile(source)(Companion_getInstance_3().w2e_1));
|
|
1898
1898
|
};
|
|
1899
1899
|
function Companion_1() {
|
|
1900
1900
|
Companion_instance_1 = this;
|
|
1901
|
-
this.
|
|
1901
|
+
this.x2e_1 = new TypeScriptEmitter(Companion_getInstance_2().logger);
|
|
1902
1902
|
}
|
|
1903
1903
|
var Companion_instance_1;
|
|
1904
1904
|
function Companion_getInstance_4() {
|
|
@@ -1911,11 +1911,11 @@
|
|
|
1911
1911
|
Compiler.call(this);
|
|
1912
1912
|
}
|
|
1913
1913
|
protoOf(WsToTypeScript).compile = function (source) {
|
|
1914
|
-
return produce_15(this.preCompile(source)(Companion_getInstance_4().
|
|
1914
|
+
return produce_15(this.preCompile(source)(Companion_getInstance_4().x2e_1));
|
|
1915
1915
|
};
|
|
1916
1916
|
function Companion_2() {
|
|
1917
1917
|
Companion_instance_2 = this;
|
|
1918
|
-
this.
|
|
1918
|
+
this.y2e_1 = new ScalaEmitter(VOID, Companion_getInstance_2().logger);
|
|
1919
1919
|
}
|
|
1920
1920
|
var Companion_instance_2;
|
|
1921
1921
|
function Companion_getInstance_5() {
|
|
@@ -1928,11 +1928,11 @@
|
|
|
1928
1928
|
Compiler.call(this);
|
|
1929
1929
|
}
|
|
1930
1930
|
protoOf(WsToScala).compile = function (source) {
|
|
1931
|
-
return produce_15(this.preCompile(source)(Companion_getInstance_5().
|
|
1931
|
+
return produce_15(this.preCompile(source)(Companion_getInstance_5().y2e_1));
|
|
1932
1932
|
};
|
|
1933
1933
|
function Companion_3() {
|
|
1934
1934
|
Companion_instance_3 = this;
|
|
1935
|
-
this.
|
|
1935
|
+
this.z2e_1 = new JavaEmitter(VOID, Companion_getInstance_2().logger);
|
|
1936
1936
|
}
|
|
1937
1937
|
var Companion_instance_3;
|
|
1938
1938
|
function Companion_getInstance_6() {
|
|
@@ -1945,11 +1945,11 @@
|
|
|
1945
1945
|
Compiler.call(this);
|
|
1946
1946
|
}
|
|
1947
1947
|
protoOf(WsToJava).compile = function (source) {
|
|
1948
|
-
return produce_15(this.preCompile(source)(Companion_getInstance_6().
|
|
1948
|
+
return produce_15(this.preCompile(source)(Companion_getInstance_6().z2e_1));
|
|
1949
1949
|
};
|
|
1950
1950
|
function Companion_4() {
|
|
1951
1951
|
Companion_instance_4 = this;
|
|
1952
|
-
this.
|
|
1952
|
+
this.a2f_1 = new WirespecEmitter(Companion_getInstance_2().logger);
|
|
1953
1953
|
}
|
|
1954
1954
|
var Companion_instance_4;
|
|
1955
1955
|
function Companion_getInstance_7() {
|
|
@@ -1962,7 +1962,7 @@
|
|
|
1962
1962
|
Compiler.call(this);
|
|
1963
1963
|
}
|
|
1964
1964
|
protoOf(WsToWirespec).compile = function (source) {
|
|
1965
|
-
return produce_15(this.preCompile(source)(Companion_getInstance_7().
|
|
1965
|
+
return produce_15(this.preCompile(source)(Companion_getInstance_7().a2f_1));
|
|
1966
1966
|
};
|
|
1967
1967
|
function OpenApiV2Parser() {
|
|
1968
1968
|
OpenApiV2Parser_instance = this;
|
|
@@ -1983,16 +1983,16 @@
|
|
|
1983
1983
|
OpenApiV2ToTypescript_instance = this;
|
|
1984
1984
|
var tmp = this;
|
|
1985
1985
|
tmp.logger = new OpenApiV2ToTypescript$logger$1();
|
|
1986
|
-
this.
|
|
1986
|
+
this.b2f_1 = new TypeScriptEmitter(this.logger);
|
|
1987
1987
|
}
|
|
1988
|
-
protoOf(OpenApiV2ToTypescript).
|
|
1988
|
+
protoOf(OpenApiV2ToTypescript).v2e = function () {
|
|
1989
1989
|
return this.logger;
|
|
1990
1990
|
};
|
|
1991
1991
|
protoOf(OpenApiV2ToTypescript).compile = function (source) {
|
|
1992
1992
|
var ast = Companion_getInstance_0().u2b(source);
|
|
1993
1993
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
1994
1994
|
// Inline function 'kotlin.collections.map' call
|
|
1995
|
-
var tmp0_map = this.
|
|
1995
|
+
var tmp0_map = this.b2f_1.c20(ast);
|
|
1996
1996
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1997
1997
|
var tmp0_mapTo = ArrayList_init_$Create$(collectionSizeOrDefault(tmp0_map, 10));
|
|
1998
1998
|
var tmp0_iterator = tmp0_map.v();
|
|
@@ -2020,16 +2020,16 @@
|
|
|
2020
2020
|
OpenApiV2ToWirespec_instance = this;
|
|
2021
2021
|
var tmp = this;
|
|
2022
2022
|
tmp.logger = new OpenApiV2ToWirespec$logger$1();
|
|
2023
|
-
this.
|
|
2023
|
+
this.c2f_1 = new WirespecEmitter(this.logger);
|
|
2024
2024
|
}
|
|
2025
|
-
protoOf(OpenApiV2ToWirespec).
|
|
2025
|
+
protoOf(OpenApiV2ToWirespec).v2e = function () {
|
|
2026
2026
|
return this.logger;
|
|
2027
2027
|
};
|
|
2028
2028
|
protoOf(OpenApiV2ToWirespec).compile = function (source) {
|
|
2029
2029
|
var ast = Companion_getInstance_0().u2b(source);
|
|
2030
2030
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
2031
2031
|
// Inline function 'kotlin.collections.map' call
|
|
2032
|
-
var tmp0_map = this.
|
|
2032
|
+
var tmp0_map = this.c2f_1.c20(ast);
|
|
2033
2033
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2034
2034
|
var tmp0_mapTo = ArrayList_init_$Create$(collectionSizeOrDefault(tmp0_map, 10));
|
|
2035
2035
|
var tmp0_iterator = tmp0_map.v();
|
|
@@ -2069,16 +2069,16 @@
|
|
|
2069
2069
|
OpenApiV3ToTypescript_instance = this;
|
|
2070
2070
|
var tmp = this;
|
|
2071
2071
|
tmp.logger = new OpenApiV3ToTypescript$logger$1();
|
|
2072
|
-
this.
|
|
2072
|
+
this.d2f_1 = new TypeScriptEmitter(this.logger);
|
|
2073
2073
|
}
|
|
2074
|
-
protoOf(OpenApiV3ToTypescript).
|
|
2074
|
+
protoOf(OpenApiV3ToTypescript).v2e = function () {
|
|
2075
2075
|
return this.logger;
|
|
2076
2076
|
};
|
|
2077
2077
|
protoOf(OpenApiV3ToTypescript).compile = function (source) {
|
|
2078
2078
|
var ast = Companion_getInstance_1().l2c(source);
|
|
2079
2079
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
2080
2080
|
// Inline function 'kotlin.collections.map' call
|
|
2081
|
-
var tmp0_map = this.
|
|
2081
|
+
var tmp0_map = this.d2f_1.c20(ast);
|
|
2082
2082
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2083
2083
|
var tmp0_mapTo = ArrayList_init_$Create$(collectionSizeOrDefault(tmp0_map, 10));
|
|
2084
2084
|
var tmp0_iterator = tmp0_map.v();
|
|
@@ -2106,16 +2106,16 @@
|
|
|
2106
2106
|
OpenApiV3ToWirespec_instance = this;
|
|
2107
2107
|
var tmp = this;
|
|
2108
2108
|
tmp.logger = new OpenApiV3ToWirespec$logger$1();
|
|
2109
|
-
this.
|
|
2109
|
+
this.e2f_1 = new WirespecEmitter(this.logger);
|
|
2110
2110
|
}
|
|
2111
|
-
protoOf(OpenApiV3ToWirespec).
|
|
2111
|
+
protoOf(OpenApiV3ToWirespec).v2e = function () {
|
|
2112
2112
|
return this.logger;
|
|
2113
2113
|
};
|
|
2114
2114
|
protoOf(OpenApiV3ToWirespec).compile = function (source) {
|
|
2115
2115
|
var ast = Companion_getInstance_1().l2c(source);
|
|
2116
2116
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
2117
2117
|
// Inline function 'kotlin.collections.map' call
|
|
2118
|
-
var tmp0_map = this.
|
|
2118
|
+
var tmp0_map = this.e2f_1.c20(ast);
|
|
2119
2119
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2120
2120
|
var tmp0_mapTo = ArrayList_init_$Create$(collectionSizeOrDefault(tmp0_map, 10));
|
|
2121
2121
|
var tmp0_iterator = tmp0_map.v();
|
|
@@ -2149,10 +2149,10 @@
|
|
|
2149
2149
|
this.result = result;
|
|
2150
2150
|
this.errors = errors;
|
|
2151
2151
|
}
|
|
2152
|
-
protoOf(WsCompilationResult).
|
|
2152
|
+
protoOf(WsCompilationResult).f2f = function () {
|
|
2153
2153
|
return this.result;
|
|
2154
2154
|
};
|
|
2155
|
-
protoOf(WsCompilationResult).
|
|
2155
|
+
protoOf(WsCompilationResult).g2f = function () {
|
|
2156
2156
|
return this.errors;
|
|
2157
2157
|
};
|
|
2158
2158
|
function WsCompiled(value) {
|
|
@@ -2177,10 +2177,10 @@
|
|
|
2177
2177
|
this.result = result;
|
|
2178
2178
|
this.errors = errors;
|
|
2179
2179
|
}
|
|
2180
|
-
protoOf(WsParseResult).
|
|
2180
|
+
protoOf(WsParseResult).f2f = function () {
|
|
2181
2181
|
return this.result;
|
|
2182
2182
|
};
|
|
2183
|
-
protoOf(WsParseResult).
|
|
2183
|
+
protoOf(WsParseResult).g2f = function () {
|
|
2184
2184
|
return this.errors;
|
|
2185
2185
|
};
|
|
2186
2186
|
function WsStringResult(result, errors) {
|
|
@@ -2189,20 +2189,20 @@
|
|
|
2189
2189
|
this.result = result;
|
|
2190
2190
|
this.errors = errors;
|
|
2191
2191
|
}
|
|
2192
|
-
protoOf(WsStringResult).
|
|
2192
|
+
protoOf(WsStringResult).f2f = function () {
|
|
2193
2193
|
return this.result;
|
|
2194
2194
|
};
|
|
2195
|
-
protoOf(WsStringResult).
|
|
2195
|
+
protoOf(WsStringResult).g2f = function () {
|
|
2196
2196
|
return this.errors;
|
|
2197
2197
|
};
|
|
2198
2198
|
function WsEmitted(typeName, result) {
|
|
2199
2199
|
this.typeName = typeName;
|
|
2200
2200
|
this.result = result;
|
|
2201
2201
|
}
|
|
2202
|
-
protoOf(WsEmitted).
|
|
2202
|
+
protoOf(WsEmitted).h2f = function () {
|
|
2203
2203
|
return this.typeName;
|
|
2204
2204
|
};
|
|
2205
|
-
protoOf(WsEmitted).
|
|
2205
|
+
protoOf(WsEmitted).f2f = function () {
|
|
2206
2206
|
return this.result;
|
|
2207
2207
|
};
|
|
2208
2208
|
function produce_14(_this__u8e3s4) {
|
|
@@ -2346,10 +2346,10 @@
|
|
|
2346
2346
|
this.tokens = tokens;
|
|
2347
2347
|
this.error = error;
|
|
2348
2348
|
}
|
|
2349
|
-
protoOf(WsTokenResult).
|
|
2349
|
+
protoOf(WsTokenResult).i2f = function () {
|
|
2350
2350
|
return this.tokens;
|
|
2351
2351
|
};
|
|
2352
|
-
protoOf(WsTokenResult).
|
|
2352
|
+
protoOf(WsTokenResult).j2f = function () {
|
|
2353
2353
|
return this.error;
|
|
2354
2354
|
};
|
|
2355
2355
|
protoOf(WsTokenResult).gd = function () {
|
|
@@ -2358,13 +2358,13 @@
|
|
|
2358
2358
|
protoOf(WsTokenResult).hd = function () {
|
|
2359
2359
|
return this.error;
|
|
2360
2360
|
};
|
|
2361
|
-
protoOf(WsTokenResult).
|
|
2361
|
+
protoOf(WsTokenResult).k2f = function (tokens, error) {
|
|
2362
2362
|
return new WsTokenResult(tokens, error);
|
|
2363
2363
|
};
|
|
2364
2364
|
protoOf(WsTokenResult).copy = function (tokens, error, $super) {
|
|
2365
2365
|
tokens = tokens === VOID ? this.tokens : tokens;
|
|
2366
2366
|
error = error === VOID ? this.error : error;
|
|
2367
|
-
return this.
|
|
2367
|
+
return this.k2f(tokens, error);
|
|
2368
2368
|
};
|
|
2369
2369
|
protoOf(WsTokenResult).toString = function () {
|
|
2370
2370
|
return 'WsTokenResult(tokens=' + this.tokens + ', error=' + this.error + ')';
|
|
@@ -2409,12 +2409,12 @@
|
|
|
2409
2409
|
protoOf(WsTokens).gd = function () {
|
|
2410
2410
|
return this.value;
|
|
2411
2411
|
};
|
|
2412
|
-
protoOf(WsTokens).
|
|
2412
|
+
protoOf(WsTokens).l2f = function (value) {
|
|
2413
2413
|
return new WsTokens(value);
|
|
2414
2414
|
};
|
|
2415
2415
|
protoOf(WsTokens).copy = function (value, $super) {
|
|
2416
2416
|
value = value === VOID ? this.value : value;
|
|
2417
|
-
return this.
|
|
2417
|
+
return this.l2f(value);
|
|
2418
2418
|
};
|
|
2419
2419
|
protoOf(WsTokens).toString = function () {
|
|
2420
2420
|
return 'WsTokens(value=' + toString(this.value) + ')';
|
|
@@ -2425,13 +2425,13 @@
|
|
|
2425
2425
|
this.value = value;
|
|
2426
2426
|
this.coordinates = coordinates;
|
|
2427
2427
|
}
|
|
2428
|
-
protoOf(WsToken).
|
|
2428
|
+
protoOf(WsToken).n2e = function () {
|
|
2429
2429
|
return this.type;
|
|
2430
2430
|
};
|
|
2431
2431
|
protoOf(WsToken).p2 = function () {
|
|
2432
2432
|
return this.value;
|
|
2433
2433
|
};
|
|
2434
|
-
protoOf(WsToken).
|
|
2434
|
+
protoOf(WsToken).m2f = function () {
|
|
2435
2435
|
return this.coordinates;
|
|
2436
2436
|
};
|
|
2437
2437
|
protoOf(WsToken).gd = function () {
|
|
@@ -2443,14 +2443,14 @@
|
|
|
2443
2443
|
protoOf(WsToken).ah = function () {
|
|
2444
2444
|
return this.coordinates;
|
|
2445
2445
|
};
|
|
2446
|
-
protoOf(WsToken).
|
|
2446
|
+
protoOf(WsToken).n2f = function (type, value, coordinates) {
|
|
2447
2447
|
return new WsToken(type, value, coordinates);
|
|
2448
2448
|
};
|
|
2449
2449
|
protoOf(WsToken).copy = function (type, value, coordinates, $super) {
|
|
2450
2450
|
type = type === VOID ? this.type : type;
|
|
2451
2451
|
value = value === VOID ? this.value : value;
|
|
2452
2452
|
coordinates = coordinates === VOID ? this.coordinates : coordinates;
|
|
2453
|
-
return this.
|
|
2453
|
+
return this.n2f(type, value, coordinates);
|
|
2454
2454
|
};
|
|
2455
2455
|
protoOf(WsToken).toString = function () {
|
|
2456
2456
|
return 'WsToken(type=' + this.type + ', value=' + this.value + ', coordinates=' + this.coordinates + ')';
|
|
@@ -2483,13 +2483,13 @@
|
|
|
2483
2483
|
this.position = position;
|
|
2484
2484
|
this.idxAndLength = idxAndLength;
|
|
2485
2485
|
}
|
|
2486
|
-
protoOf(WsCoordinates).
|
|
2486
|
+
protoOf(WsCoordinates).o2f = function () {
|
|
2487
2487
|
return this.line;
|
|
2488
2488
|
};
|
|
2489
2489
|
protoOf(WsCoordinates).jr = function () {
|
|
2490
2490
|
return this.position;
|
|
2491
2491
|
};
|
|
2492
|
-
protoOf(WsCoordinates).
|
|
2492
|
+
protoOf(WsCoordinates).p2f = function () {
|
|
2493
2493
|
return this.idxAndLength;
|
|
2494
2494
|
};
|
|
2495
2495
|
protoOf(WsCoordinates).gd = function () {
|
|
@@ -2501,14 +2501,14 @@
|
|
|
2501
2501
|
protoOf(WsCoordinates).ah = function () {
|
|
2502
2502
|
return this.idxAndLength;
|
|
2503
2503
|
};
|
|
2504
|
-
protoOf(WsCoordinates).
|
|
2504
|
+
protoOf(WsCoordinates).q2f = function (line, position, idxAndLength) {
|
|
2505
2505
|
return new WsCoordinates(line, position, idxAndLength);
|
|
2506
2506
|
};
|
|
2507
2507
|
protoOf(WsCoordinates).copy = function (line, position, idxAndLength, $super) {
|
|
2508
2508
|
line = line === VOID ? this.line : line;
|
|
2509
2509
|
position = position === VOID ? this.position : position;
|
|
2510
2510
|
idxAndLength = idxAndLength === VOID ? this.idxAndLength : idxAndLength;
|
|
2511
|
-
return this.
|
|
2511
|
+
return this.q2f(line, position, idxAndLength);
|
|
2512
2512
|
};
|
|
2513
2513
|
protoOf(WsCoordinates).toString = function () {
|
|
2514
2514
|
return 'WsCoordinates(line=' + this.line + ', position=' + this.position + ', idxAndLength=' + this.idxAndLength + ')';
|
|
@@ -2539,7 +2539,7 @@
|
|
|
2539
2539
|
this.idx = idx;
|
|
2540
2540
|
this.length = length;
|
|
2541
2541
|
}
|
|
2542
|
-
protoOf(WsIndex).
|
|
2542
|
+
protoOf(WsIndex).r2f = function () {
|
|
2543
2543
|
return this.idx;
|
|
2544
2544
|
};
|
|
2545
2545
|
protoOf(WsIndex).a = function () {
|
|
@@ -2551,13 +2551,13 @@
|
|
|
2551
2551
|
protoOf(WsIndex).hd = function () {
|
|
2552
2552
|
return this.length;
|
|
2553
2553
|
};
|
|
2554
|
-
protoOf(WsIndex).
|
|
2554
|
+
protoOf(WsIndex).s2f = function (idx, length) {
|
|
2555
2555
|
return new WsIndex(idx, length);
|
|
2556
2556
|
};
|
|
2557
2557
|
protoOf(WsIndex).copy = function (idx, length, $super) {
|
|
2558
2558
|
idx = idx === VOID ? this.idx : idx;
|
|
2559
2559
|
length = length === VOID ? this.length : length;
|
|
2560
|
-
return this.
|
|
2560
|
+
return this.s2f(idx, length);
|
|
2561
2561
|
};
|
|
2562
2562
|
protoOf(WsIndex).toString = function () {
|
|
2563
2563
|
return 'WsIndex(idx=' + this.idx + ', length=' + this.length + ')';
|
|
@@ -2610,7 +2610,7 @@
|
|
|
2610
2610
|
this.length = length;
|
|
2611
2611
|
this.value = value;
|
|
2612
2612
|
}
|
|
2613
|
-
protoOf(WsError).
|
|
2613
|
+
protoOf(WsError).t2f = function () {
|
|
2614
2614
|
return this.index;
|
|
2615
2615
|
};
|
|
2616
2616
|
protoOf(WsError).a = function () {
|
|
@@ -2628,14 +2628,14 @@
|
|
|
2628
2628
|
protoOf(WsError).ah = function () {
|
|
2629
2629
|
return this.value;
|
|
2630
2630
|
};
|
|
2631
|
-
protoOf(WsError).
|
|
2631
|
+
protoOf(WsError).u2f = function (index, length, value) {
|
|
2632
2632
|
return new WsError(index, length, value);
|
|
2633
2633
|
};
|
|
2634
2634
|
protoOf(WsError).copy = function (index, length, value, $super) {
|
|
2635
2635
|
index = index === VOID ? this.index : index;
|
|
2636
2636
|
length = length === VOID ? this.length : length;
|
|
2637
2637
|
value = value === VOID ? this.value : value;
|
|
2638
|
-
return this.
|
|
2638
|
+
return this.u2f(index, length, value);
|
|
2639
2639
|
};
|
|
2640
2640
|
protoOf(WsError).toString = function () {
|
|
2641
2641
|
return 'WsError(index=' + this.index + ', length=' + this.length + ', value=' + this.value + ')';
|
|
@@ -2687,25 +2687,25 @@
|
|
|
2687
2687
|
return this.t20();
|
|
2688
2688
|
}, VOID);
|
|
2689
2689
|
defineProp(protoOf(WsAny), 'isMap', function () {
|
|
2690
|
-
return this.
|
|
2690
|
+
return this.e2e();
|
|
2691
2691
|
}, VOID);
|
|
2692
2692
|
defineProp(protoOf(WsUnit), 'isIterable', function () {
|
|
2693
2693
|
return this.t20();
|
|
2694
2694
|
}, VOID);
|
|
2695
2695
|
defineProp(protoOf(WsUnit), 'isMap', function () {
|
|
2696
|
-
return this.
|
|
2696
|
+
return this.e2e();
|
|
2697
2697
|
}, VOID);
|
|
2698
2698
|
defineProp(protoOf(WsCustom), 'isIterable', function () {
|
|
2699
2699
|
return this.t20();
|
|
2700
2700
|
}, VOID);
|
|
2701
2701
|
defineProp(protoOf(WsCustom), 'isMap', function () {
|
|
2702
|
-
return this.
|
|
2702
|
+
return this.e2e();
|
|
2703
2703
|
}, VOID);
|
|
2704
2704
|
defineProp(protoOf(WsPrimitive), 'isIterable', function () {
|
|
2705
2705
|
return this.t20();
|
|
2706
2706
|
}, VOID);
|
|
2707
2707
|
defineProp(protoOf(WsPrimitive), 'isMap', function () {
|
|
2708
|
-
return this.
|
|
2708
|
+
return this.e2e();
|
|
2709
2709
|
}, VOID);
|
|
2710
2710
|
defineProp(protoOf(WsPrimitiveType), 'name', protoOf(WsPrimitiveType).wa, VOID);
|
|
2711
2711
|
defineProp(protoOf(WsPrimitiveType), 'ordinal', protoOf(WsPrimitiveType).xa, VOID);
|