@flock/wirespec 0.4.4 → 0.5.0
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/kotlin/Kotlinx-Cli-Library-kotlinx-cli-js-ir.js +294 -294
- package/kotlin/kotlin-kotlin-stdlib-js-ir.js +6 -6
- package/kotlin/kotlin-kotlin-stdlib-js-ir.js.map +1 -1
- package/kotlin/kotlin-openapi-bindings.js +4846 -4841
- package/kotlin/kotlin-openapi-bindings.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core-js-ir.js +1265 -1265
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json-js-ir.js +980 -980
- package/kotlin/wirespec-cli.js +87 -87
- package/kotlin/wirespec-cli.js.map +1 -1
- package/kotlin/wirespec-core.js +531 -409
- package/kotlin/wirespec-core.js.map +1 -1
- package/kotlin/wirespec-lib.js +38 -38
- package/kotlin/wirespec-openapi.js +2247 -1771
- package/kotlin/wirespec-openapi.js.map +1 -1
- package/package.json +1 -1
- package/sync-hashes/Kotlinx-Cli-Library-kotlinx-cli-js-ir.js.hash +1 -1
- package/sync-hashes/kotlin-kotlin-stdlib-js-ir.js.hash +1 -1
- package/sync-hashes/kotlin-kotlin-stdlib-js-ir.js.map.hash +1 -1
- package/sync-hashes/kotlin-openapi-bindings.js.hash +1 -1
- package/sync-hashes/kotlin-openapi-bindings.js.map.hash +1 -1
- package/sync-hashes/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.hash +1 -1
- package/sync-hashes/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map.hash +1 -1
- package/sync-hashes/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.hash +1 -1
- package/sync-hashes/wirespec-cli.js.hash +1 -1
- package/sync-hashes/wirespec-cli.js.map.hash +1 -1
- package/sync-hashes/wirespec-core.js.hash +1 -1
- package/sync-hashes/wirespec-core.js.map.hash +1 -1
- package/sync-hashes/wirespec-lib.js.hash +1 -1
- package/sync-hashes/wirespec-openapi.js.hash +1 -1
- package/sync-hashes/wirespec-openapi.js.map.hash +1 -1
package/kotlin/wirespec-core.js
CHANGED
|
@@ -85,37 +85,37 @@
|
|
|
85
85
|
setMetadataFor(Reported, 'Reported', classMeta, Enum);
|
|
86
86
|
setMetadataFor(Wirespec, 'Wirespec', objectMeta);
|
|
87
87
|
function withLogging(_this__u8e3s4, logger, block) {
|
|
88
|
-
return logger.
|
|
88
|
+
return logger.rk('Emitting Definition: Type', block);
|
|
89
89
|
}
|
|
90
90
|
function withLogging_0(_this__u8e3s4, logger, block) {
|
|
91
|
-
return logger.
|
|
91
|
+
return logger.rk('Emitting Definition: Type Shape', block);
|
|
92
92
|
}
|
|
93
93
|
function withLogging_1(_this__u8e3s4, logger, block) {
|
|
94
|
-
return logger.
|
|
94
|
+
return logger.rk('Emitting Definition: Type Shape Field', block);
|
|
95
95
|
}
|
|
96
96
|
function withLogging_2(_this__u8e3s4, logger, block) {
|
|
97
|
-
return logger.
|
|
97
|
+
return logger.rk('Emitting Definition: Type Shape Field Key', block);
|
|
98
98
|
}
|
|
99
99
|
function withLogging_3(_this__u8e3s4, logger, block) {
|
|
100
|
-
return logger.
|
|
100
|
+
return logger.rk('Emitting Definition: Type Shape Field Value', block);
|
|
101
101
|
}
|
|
102
102
|
setMetadataFor(TypeDefinitionEmitterLogger, 'TypeDefinitionEmitterLogger', interfaceMeta);
|
|
103
103
|
function withLogging_4(_this__u8e3s4, logger, block) {
|
|
104
|
-
return logger.
|
|
104
|
+
return logger.rk('Emitting Definition: Endpoint', block);
|
|
105
105
|
}
|
|
106
106
|
setMetadataFor(EnumDefinitionEmitterLogger, 'EnumDefinitionEmitterLogger', interfaceMeta);
|
|
107
107
|
function withLogging_5(_this__u8e3s4, logger, block) {
|
|
108
|
-
return logger.
|
|
108
|
+
return logger.rk('Emitting Definition: Refined', block);
|
|
109
109
|
}
|
|
110
110
|
function withLogging_6(_this__u8e3s4, logger, block) {
|
|
111
|
-
return logger.
|
|
111
|
+
return logger.rk('Emitting Definition: Refined Validator', block);
|
|
112
112
|
}
|
|
113
113
|
setMetadataFor(RefinedTypeDefinitionEmitterLogger, 'RefinedTypeDefinitionEmitterLogger', interfaceMeta);
|
|
114
114
|
function withLogging_7(_this__u8e3s4, logger, block) {
|
|
115
|
-
return logger.
|
|
115
|
+
return logger.rk('Emitting Definition: Endpoint', block);
|
|
116
116
|
}
|
|
117
117
|
function withLogging_8(_this__u8e3s4, logger, block) {
|
|
118
|
-
return logger.
|
|
118
|
+
return logger.rk('Emitting Definition: Endpoint Segment', block);
|
|
119
119
|
}
|
|
120
120
|
setMetadataFor(EndpointDefinitionEmitterLogger, 'EndpointDefinitionEmitterLogger', interfaceMeta);
|
|
121
121
|
setMetadataFor(Emitter, 'Emitter', classMeta, VOID, [TypeDefinitionEmitterLogger, EnumDefinitionEmitterLogger, RefinedTypeDefinitionEmitterLogger, EndpointDefinitionEmitterLogger]);
|
|
@@ -876,7 +876,7 @@
|
|
|
876
876
|
var tmp0_subject = $this_emitPrimaryType;
|
|
877
877
|
var tmp;
|
|
878
878
|
if (tmp0_subject instanceof Custom) {
|
|
879
|
-
tmp = $this_emitPrimaryType.
|
|
879
|
+
tmp = $this_emitPrimaryType.hj_1;
|
|
880
880
|
} else {
|
|
881
881
|
if (tmp0_subject instanceof Primitive) {
|
|
882
882
|
var tmp1_subject = $this_emitPrimaryType.ej_1;
|
|
@@ -920,22 +920,22 @@
|
|
|
920
920
|
function JavaEmitter$emit$lambda_4($this_emit) {
|
|
921
921
|
return function () {
|
|
922
922
|
Companion_getInstance_1();
|
|
923
|
-
return 'enum ' + $this_emit.
|
|
923
|
+
return 'enum ' + $this_emit.kj_1 + ' {\n' + ' ' + joinToString($this_emit.lj_1, ', ') + ';\n}\n';
|
|
924
924
|
};
|
|
925
925
|
}
|
|
926
926
|
function JavaEmitter$emit$lambda_5($this_emit, this$0) {
|
|
927
927
|
return function () {
|
|
928
928
|
Companion_getInstance_1();
|
|
929
929
|
Companion_getInstance_1();
|
|
930
|
-
var tmp = this$0.
|
|
930
|
+
var tmp = this$0.oj($this_emit.nj_1);
|
|
931
931
|
Companion_getInstance_1();
|
|
932
|
-
return trimMargin('public record ' + $this_emit.
|
|
932
|
+
return trimMargin('public record ' + $this_emit.mj_1 + '(String value) {\n |' + ' ' + 'static void validate(' + $this_emit.mj_1 + ' record) {\n |' + ' ' + tmp + '\n |' + ' ' + '}\n |}\n |');
|
|
933
933
|
};
|
|
934
934
|
}
|
|
935
935
|
function JavaEmitter$emit$lambda_6($this_emit) {
|
|
936
936
|
return function () {
|
|
937
937
|
Companion_getInstance_1();
|
|
938
|
-
return ' ' + 'java.util.regex.Pattern.compile(' + $this_emit.
|
|
938
|
+
return ' ' + 'java.util.regex.Pattern.compile(' + $this_emit.pj_1 + ').matcher(record.value).find();';
|
|
939
939
|
};
|
|
940
940
|
}
|
|
941
941
|
function JavaEmitter$emit$lambda$lambda_0(this$0, $this_emit) {
|
|
@@ -1022,7 +1022,7 @@
|
|
|
1022
1022
|
var tmp_5 = joinToString(tmp_4, '\n', VOID, VOID, VOID, VOID, JavaEmitter$emit$lambda$lambda_2(this$0));
|
|
1023
1023
|
var tmp_6 = joinToString($this_emit.li_1, '\n', VOID, VOID, VOID, VOID, JavaEmitter$emit$lambda$lambda_3(this$0));
|
|
1024
1024
|
Companion_getInstance_1();
|
|
1025
|
-
return trimMargin('public interface ' + $this_emit.ei_1 + ' {\n |' + ' ' + 'static String PATH = "' + tmp + '";\n |' + tmp_0 + '\n |' + ' ' + 'interface Request<T> extends WirespecShared.Request<T> {}\n |' + tmp_1 + '\n |' + ' ' + 'interface Response<T> extends WirespecShared.Response<T> {}\n |' + tmp_3 + '\n |' + tmp_5 + '\n |' + tmp_6 + '\n |' + ' ' + 'public Response ' + Companion_getInstance_1().
|
|
1025
|
+
return trimMargin('public interface ' + $this_emit.ei_1 + ' {\n |' + ' ' + 'static String PATH = "' + tmp + '";\n |' + tmp_0 + '\n |' + ' ' + 'interface Request<T> extends WirespecShared.Request<T> {}\n |' + tmp_1 + '\n |' + ' ' + 'interface Response<T> extends WirespecShared.Response<T> {}\n |' + tmp_3 + '\n |' + tmp_5 + '\n |' + tmp_6 + '\n |' + ' ' + 'public Response ' + Companion_getInstance_1().qj($this_emit.ei_1) + '(Request request);\n |}\n |');
|
|
1026
1026
|
};
|
|
1027
1027
|
}
|
|
1028
1028
|
function JavaEmitter$emitResponseMapper$lambda(this$0) {
|
|
@@ -1038,7 +1038,7 @@
|
|
|
1038
1038
|
var tmp0_subject = $this_emit;
|
|
1039
1039
|
var tmp;
|
|
1040
1040
|
if (tmp0_subject instanceof Literal) {
|
|
1041
|
-
tmp = '"' + $this_emit.
|
|
1041
|
+
tmp = '"' + $this_emit.rj_1 + '"';
|
|
1042
1042
|
} else {
|
|
1043
1043
|
if (tmp0_subject instanceof Param) {
|
|
1044
1044
|
tmp = $this_emit.si_1.dj_1;
|
|
@@ -1066,7 +1066,7 @@
|
|
|
1066
1066
|
tmp = '{' + it.si_1.dj_1 + '}';
|
|
1067
1067
|
} else {
|
|
1068
1068
|
if (tmp0_subject instanceof Literal) {
|
|
1069
|
-
tmp = it.
|
|
1069
|
+
tmp = it.rj_1;
|
|
1070
1070
|
} else {
|
|
1071
1071
|
noWhenBranchMatchedException();
|
|
1072
1072
|
}
|
|
@@ -1144,32 +1144,32 @@
|
|
|
1144
1144
|
tmp$ret$2 = tmp$ret$1;
|
|
1145
1145
|
return plus_0(tmp$ret$2, to('WirespecShared', this.ci_1 + '\n\n' + this.bi_1));
|
|
1146
1146
|
};
|
|
1147
|
-
protoOf(JavaEmitter).
|
|
1148
|
-
return this.
|
|
1147
|
+
protoOf(JavaEmitter).sj = function (_this__u8e3s4) {
|
|
1148
|
+
return this.tj(_this__u8e3s4, this.oh_1, JavaEmitter$emit$lambda(_this__u8e3s4, this));
|
|
1149
1149
|
};
|
|
1150
1150
|
protoOf(JavaEmitter).wi = function (_this__u8e3s4) {
|
|
1151
|
-
return this.
|
|
1151
|
+
return this.uj(_this__u8e3s4, this.oh_1, JavaEmitter$emit$lambda_0(_this__u8e3s4, this));
|
|
1152
1152
|
};
|
|
1153
1153
|
protoOf(JavaEmitter).xi = function (_this__u8e3s4) {
|
|
1154
|
-
return this.
|
|
1154
|
+
return this.vj(_this__u8e3s4, this.oh_1, JavaEmitter$emit$lambda_1(_this__u8e3s4, this));
|
|
1155
1155
|
};
|
|
1156
1156
|
protoOf(JavaEmitter).cj = function (_this__u8e3s4) {
|
|
1157
|
-
return this.
|
|
1157
|
+
return this.wj(_this__u8e3s4, this.oh_1, JavaEmitter$emit$lambda_2(_this__u8e3s4));
|
|
1158
1158
|
};
|
|
1159
1159
|
protoOf(JavaEmitter).di = function (_this__u8e3s4) {
|
|
1160
1160
|
return this.th(_this__u8e3s4, this.oh_1, JavaEmitter$emit$lambda_3(this, _this__u8e3s4));
|
|
1161
1161
|
};
|
|
1162
|
-
protoOf(JavaEmitter).vj = function (_this__u8e3s4) {
|
|
1163
|
-
return this.wj(_this__u8e3s4, this.oh_1, JavaEmitter$emit$lambda_4(_this__u8e3s4));
|
|
1164
|
-
};
|
|
1165
1162
|
protoOf(JavaEmitter).xj = function (_this__u8e3s4) {
|
|
1166
|
-
return this.yj(_this__u8e3s4, this.oh_1, JavaEmitter$emit$
|
|
1163
|
+
return this.yj(_this__u8e3s4, this.oh_1, JavaEmitter$emit$lambda_4(_this__u8e3s4));
|
|
1164
|
+
};
|
|
1165
|
+
protoOf(JavaEmitter).zj = function (_this__u8e3s4) {
|
|
1166
|
+
return this.ak(_this__u8e3s4, this.oh_1, JavaEmitter$emit$lambda_5(_this__u8e3s4, this));
|
|
1167
1167
|
};
|
|
1168
|
-
protoOf(JavaEmitter).
|
|
1169
|
-
return this.
|
|
1168
|
+
protoOf(JavaEmitter).oj = function (_this__u8e3s4) {
|
|
1169
|
+
return this.bk(_this__u8e3s4, this.oh_1, JavaEmitter$emit$lambda_6(_this__u8e3s4));
|
|
1170
1170
|
};
|
|
1171
|
-
protoOf(JavaEmitter).
|
|
1172
|
-
return this.
|
|
1171
|
+
protoOf(JavaEmitter).ck = function (_this__u8e3s4) {
|
|
1172
|
+
return this.dk(_this__u8e3s4, this.oh_1, JavaEmitter$emit$lambda_7(_this__u8e3s4, this));
|
|
1173
1173
|
};
|
|
1174
1174
|
function hasEndpoints(_this__u8e3s4, $this) {
|
|
1175
1175
|
var tmp$ret$0;
|
|
@@ -1489,12 +1489,14 @@
|
|
|
1489
1489
|
}
|
|
1490
1490
|
function KotlinEmitter$emit$lambda_3($this_emit) {
|
|
1491
1491
|
return function () {
|
|
1492
|
+
var tmp$ret$3;
|
|
1493
|
+
// Inline function 'kotlin.let' call
|
|
1492
1494
|
var tmp$ret$1;
|
|
1493
1495
|
// Inline function 'kotlin.let' call
|
|
1494
1496
|
var tmp0_subject = $this_emit;
|
|
1495
1497
|
var tmp;
|
|
1496
1498
|
if (tmp0_subject instanceof Custom) {
|
|
1497
|
-
tmp = $this_emit.
|
|
1499
|
+
tmp = $this_emit.hj_1;
|
|
1498
1500
|
} else {
|
|
1499
1501
|
if (tmp0_subject instanceof Primitive) {
|
|
1500
1502
|
var tmp1_subject = $this_emit.ej_1;
|
|
@@ -1525,23 +1527,29 @@
|
|
|
1525
1527
|
// Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emit.<anonymous>.<anonymous>' call
|
|
1526
1528
|
tmp$ret$0 = $this_emit.qi() ? 'List<' + tmp0_let + '>' : tmp0_let;
|
|
1527
1529
|
tmp$ret$1 = tmp$ret$0;
|
|
1528
|
-
|
|
1530
|
+
var tmp1_let = tmp$ret$1;
|
|
1531
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
1532
|
+
var tmp$ret$2;
|
|
1533
|
+
// Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emit.<anonymous>.<anonymous>' call
|
|
1534
|
+
tmp$ret$2 = $this_emit.ik() ? 'Map<String, ' + tmp1_let + '>' : tmp1_let;
|
|
1535
|
+
tmp$ret$3 = tmp$ret$2;
|
|
1536
|
+
return tmp$ret$3;
|
|
1529
1537
|
};
|
|
1530
1538
|
}
|
|
1531
1539
|
function KotlinEmitter$emit$lambda_4($this_emit) {
|
|
1532
1540
|
return function () {
|
|
1533
1541
|
Companion_getInstance_1();
|
|
1534
|
-
return 'enum class ' + $this_emit.
|
|
1542
|
+
return 'enum class ' + $this_emit.kj_1 + ' {\n' + ' ' + joinToString($this_emit.lj_1, ', ') + '\n}\n';
|
|
1535
1543
|
};
|
|
1536
1544
|
}
|
|
1537
1545
|
function KotlinEmitter$emit$lambda_5($this_emit, this$0) {
|
|
1538
1546
|
return function () {
|
|
1539
|
-
return trimMargin('data class ' + $this_emit.
|
|
1547
|
+
return trimMargin('data class ' + $this_emit.mj_1 + '(val value: String)\n |fun ' + $this_emit.mj_1 + '.validate() = ' + this$0.oj($this_emit.nj_1) + '\n |');
|
|
1540
1548
|
};
|
|
1541
1549
|
}
|
|
1542
1550
|
function KotlinEmitter$emit$lambda_6($this_emit) {
|
|
1543
1551
|
return function () {
|
|
1544
|
-
return 'Regex(' + $this_emit.
|
|
1552
|
+
return 'Regex(' + $this_emit.pj_1 + ').find(value)';
|
|
1545
1553
|
};
|
|
1546
1554
|
}
|
|
1547
1555
|
function KotlinEmitter$emit$lambda$lambda_0(this$0, $this_emit) {
|
|
@@ -1773,7 +1781,7 @@
|
|
|
1773
1781
|
tmp$ret$14 = tmp$ret$13;
|
|
1774
1782
|
var tmp_6 = tmp$ret$14;
|
|
1775
1783
|
var tmp_7 = joinToString(tmp_6, '\n', VOID, VOID, VOID, VOID, KotlinEmitter$emit$lambda$lambda_4(this$0));
|
|
1776
|
-
var tmp_8 = Companion_getInstance_1().
|
|
1784
|
+
var tmp_8 = Companion_getInstance_1().qj($this_emit.ei_1);
|
|
1777
1785
|
Companion_getInstance_1();
|
|
1778
1786
|
Companion_getInstance_1();
|
|
1779
1787
|
Companion_getInstance_1();
|
|
@@ -1799,7 +1807,7 @@
|
|
|
1799
1807
|
tmp = '{' + it.si_1.dj_1 + '}';
|
|
1800
1808
|
} else {
|
|
1801
1809
|
if (tmp0_subject instanceof Literal) {
|
|
1802
|
-
tmp = it.
|
|
1810
|
+
tmp = it.rj_1;
|
|
1803
1811
|
} else {
|
|
1804
1812
|
noWhenBranchMatchedException();
|
|
1805
1813
|
}
|
|
@@ -1816,7 +1824,7 @@
|
|
|
1816
1824
|
var tmp0_subject = $this_emit;
|
|
1817
1825
|
var tmp;
|
|
1818
1826
|
if (tmp0_subject instanceof Literal) {
|
|
1819
|
-
tmp = $this_emit.
|
|
1827
|
+
tmp = $this_emit.rj_1;
|
|
1820
1828
|
} else {
|
|
1821
1829
|
if (tmp0_subject instanceof Param) {
|
|
1822
1830
|
tmp = '${' + $this_emit.si_1.dj_1 + '}';
|
|
@@ -1846,14 +1854,14 @@
|
|
|
1846
1854
|
packageName = packageName === VOID ? get_DEFAULT_PACKAGE_NAME() : packageName;
|
|
1847
1855
|
logger = logger === VOID ? get_noLogger() : logger;
|
|
1848
1856
|
Emitter.call(this, logger);
|
|
1849
|
-
this.
|
|
1857
|
+
this.gk_1 = packageName;
|
|
1850
1858
|
var tmp = this;
|
|
1851
1859
|
Companion_getInstance_1();
|
|
1852
1860
|
Companion_getInstance_1();
|
|
1853
1861
|
Companion_getInstance_1();
|
|
1854
1862
|
Companion_getInstance_1();
|
|
1855
1863
|
Companion_getInstance_1();
|
|
1856
|
-
tmp.
|
|
1864
|
+
tmp.hk_1 = trimMargin('\n |import kotlin.reflect.KType\n |import kotlin.reflect.typeOf\n |object WirespecShared {\n |' + ' ' + 'enum class Method { GET, PUT, POST, DELETE, OPTIONS, HEAD, PATCH, TRACE }\n |' + ' ' + 'data class Content<T> (val type:String, val body:T )\n |' + ' ' + 'interface Request<T> { val path:String; val method: Method; val query: Map<String, List<Any?>>; val headers: Map<String, List<Any?>>; val content:Content<T>? }\n |' + ' ' + 'interface Response<T> { val status:Int; val headers: Map<String, List<Any?>>; val content:Content<T>? }\n |' + ' ' + 'interface ContentMapper<B> { fun <T> read(content: Content<B>, valueType: KType): Content<T> fun <T> write(content: Content<T>): Content<B> }\n |}\n ');
|
|
1857
1865
|
}
|
|
1858
1866
|
protoOf(KotlinEmitter).qh = function (ast) {
|
|
1859
1867
|
var tmp$ret$3;
|
|
@@ -1871,7 +1879,7 @@
|
|
|
1871
1879
|
var result = item.j3();
|
|
1872
1880
|
var tmp$ret$0;
|
|
1873
1881
|
// Inline function 'kotlin.text.trimStart' call
|
|
1874
|
-
var tmp0_trimStart = trimMargin('\n |' + (isBlank(this.
|
|
1882
|
+
var tmp0_trimStart = trimMargin('\n |' + (isBlank(this.gk_1) ? '' : 'package ' + this.gk_1) + '\n |' + (hasEndpoints(ast, this) ? this.hk_1 : '') + '\n |' + result + '\n ');
|
|
1875
1883
|
tmp$ret$0 = toString(trimStart(isCharSequence(tmp0_trimStart) ? tmp0_trimStart : THROW_CCE()));
|
|
1876
1884
|
tmp$ret$1 = to(name, tmp$ret$0);
|
|
1877
1885
|
tmp0_mapTo.a(tmp$ret$1);
|
|
@@ -1880,32 +1888,32 @@
|
|
|
1880
1888
|
tmp$ret$3 = tmp$ret$2;
|
|
1881
1889
|
return tmp$ret$3;
|
|
1882
1890
|
};
|
|
1883
|
-
protoOf(KotlinEmitter).
|
|
1884
|
-
return this.
|
|
1891
|
+
protoOf(KotlinEmitter).sj = function (_this__u8e3s4) {
|
|
1892
|
+
return this.tj(_this__u8e3s4, this.oh_1, KotlinEmitter$emit$lambda(_this__u8e3s4, this));
|
|
1885
1893
|
};
|
|
1886
1894
|
protoOf(KotlinEmitter).wi = function (_this__u8e3s4) {
|
|
1887
|
-
return this.
|
|
1895
|
+
return this.uj(_this__u8e3s4, this.oh_1, KotlinEmitter$emit$lambda_0(_this__u8e3s4, this));
|
|
1888
1896
|
};
|
|
1889
1897
|
protoOf(KotlinEmitter).xi = function (_this__u8e3s4) {
|
|
1890
|
-
return this.
|
|
1898
|
+
return this.vj(_this__u8e3s4, this.oh_1, KotlinEmitter$emit$lambda_1(this, _this__u8e3s4));
|
|
1891
1899
|
};
|
|
1892
1900
|
protoOf(KotlinEmitter).cj = function (_this__u8e3s4) {
|
|
1893
|
-
return this.
|
|
1901
|
+
return this.wj(_this__u8e3s4, this.oh_1, KotlinEmitter$emit$lambda_2(_this__u8e3s4));
|
|
1894
1902
|
};
|
|
1895
1903
|
protoOf(KotlinEmitter).di = function (_this__u8e3s4) {
|
|
1896
1904
|
return this.th(_this__u8e3s4, this.oh_1, KotlinEmitter$emit$lambda_3(_this__u8e3s4));
|
|
1897
1905
|
};
|
|
1898
|
-
protoOf(KotlinEmitter).vj = function (_this__u8e3s4) {
|
|
1899
|
-
return this.wj(_this__u8e3s4, this.oh_1, KotlinEmitter$emit$lambda_4(_this__u8e3s4));
|
|
1900
|
-
};
|
|
1901
1906
|
protoOf(KotlinEmitter).xj = function (_this__u8e3s4) {
|
|
1902
|
-
return this.yj(_this__u8e3s4, this.oh_1, KotlinEmitter$emit$
|
|
1907
|
+
return this.yj(_this__u8e3s4, this.oh_1, KotlinEmitter$emit$lambda_4(_this__u8e3s4));
|
|
1903
1908
|
};
|
|
1904
|
-
protoOf(KotlinEmitter).
|
|
1905
|
-
return this.
|
|
1909
|
+
protoOf(KotlinEmitter).zj = function (_this__u8e3s4) {
|
|
1910
|
+
return this.ak(_this__u8e3s4, this.oh_1, KotlinEmitter$emit$lambda_5(_this__u8e3s4, this));
|
|
1906
1911
|
};
|
|
1907
|
-
protoOf(KotlinEmitter).
|
|
1908
|
-
return this.bk(_this__u8e3s4, this.oh_1, KotlinEmitter$emit$
|
|
1912
|
+
protoOf(KotlinEmitter).oj = function (_this__u8e3s4) {
|
|
1913
|
+
return this.bk(_this__u8e3s4, this.oh_1, KotlinEmitter$emit$lambda_6(_this__u8e3s4));
|
|
1914
|
+
};
|
|
1915
|
+
protoOf(KotlinEmitter).ck = function (_this__u8e3s4) {
|
|
1916
|
+
return this.dk(_this__u8e3s4, this.oh_1, KotlinEmitter$emit$lambda_7(_this__u8e3s4, this));
|
|
1909
1917
|
};
|
|
1910
1918
|
function emitContentType_0(_this__u8e3s4) {
|
|
1911
1919
|
var tmp = split(_this__u8e3s4.vh_1, ['/']);
|
|
@@ -1941,7 +1949,7 @@
|
|
|
1941
1949
|
}
|
|
1942
1950
|
function Companion() {
|
|
1943
1951
|
Companion_instance = this;
|
|
1944
|
-
this.
|
|
1952
|
+
this.jk_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']);
|
|
1945
1953
|
}
|
|
1946
1954
|
var Companion_instance;
|
|
1947
1955
|
function Companion_getInstance_0() {
|
|
@@ -1972,7 +1980,7 @@
|
|
|
1972
1980
|
}
|
|
1973
1981
|
function ScalaEmitter$emit$lambda_2($this_emit) {
|
|
1974
1982
|
return function () {
|
|
1975
|
-
return Companion_getInstance_0().
|
|
1983
|
+
return Companion_getInstance_0().jk_1.i1($this_emit.dj_1) ? '`' + $this_emit.dj_1 + '`' : $this_emit.dj_1;
|
|
1976
1984
|
};
|
|
1977
1985
|
}
|
|
1978
1986
|
function ScalaEmitter$emit$lambda_3($this_emit) {
|
|
@@ -1982,7 +1990,7 @@
|
|
|
1982
1990
|
var tmp0_subject = $this_emit;
|
|
1983
1991
|
var tmp;
|
|
1984
1992
|
if (tmp0_subject instanceof Custom) {
|
|
1985
|
-
tmp = $this_emit.
|
|
1993
|
+
tmp = $this_emit.hj_1;
|
|
1986
1994
|
} else {
|
|
1987
1995
|
if (tmp0_subject instanceof Primitive) {
|
|
1988
1996
|
var tmp1_subject = $this_emit.ej_1;
|
|
@@ -2019,20 +2027,20 @@
|
|
|
2019
2027
|
function ScalaEmitter$emit$lambda$lambda_0($this_emit) {
|
|
2020
2028
|
return function (it) {
|
|
2021
2029
|
Companion_getInstance_1();
|
|
2022
|
-
return ' ' + 'final case object ' + it + ' extends ' + $this_emit.
|
|
2030
|
+
return ' ' + 'final case object ' + it + ' extends ' + $this_emit.kj_1 + '(label = "' + it + '")';
|
|
2023
2031
|
};
|
|
2024
2032
|
}
|
|
2025
2033
|
function ScalaEmitter$emit$lambda_4($this_emit) {
|
|
2026
2034
|
return function () {
|
|
2027
|
-
return trimMargin('\n |sealed abstract class ' + $this_emit.
|
|
2035
|
+
return trimMargin('\n |sealed abstract class ' + $this_emit.kj_1 + '(val label: String)\n |object ' + $this_emit.kj_1 + ' {\n |' + joinToString($this_emit.lj_1, '\n', VOID, VOID, VOID, VOID, ScalaEmitter$emit$lambda$lambda_0($this_emit)) + '\n |}\n |');
|
|
2028
2036
|
};
|
|
2029
2037
|
}
|
|
2030
2038
|
function ScalaEmitter$emit$lambda_5($this_emit, this$0) {
|
|
2031
2039
|
return function () {
|
|
2032
2040
|
Companion_getInstance_1();
|
|
2033
|
-
var tmp = this$0.
|
|
2041
|
+
var tmp = this$0.oj($this_emit.nj_1);
|
|
2034
2042
|
Companion_getInstance_1();
|
|
2035
|
-
return trimMargin('case class ' + $this_emit.
|
|
2043
|
+
return trimMargin('case class ' + $this_emit.mj_1 + '(val value: String) {\n |' + ' ' + 'implicit class ' + $this_emit.mj_1 + 'Ops(val that: ' + $this_emit.mj_1 + ') {\n |' + tmp + '\n |' + ' ' + '}\n |}\n |\n |');
|
|
2036
2044
|
};
|
|
2037
2045
|
}
|
|
2038
2046
|
function ScalaEmitter$emit$lambda_6($this_emit) {
|
|
@@ -2041,7 +2049,7 @@
|
|
|
2041
2049
|
Companion_getInstance_1();
|
|
2042
2050
|
Companion_getInstance_1();
|
|
2043
2051
|
Companion_getInstance_1();
|
|
2044
|
-
return trimMargin(' ' + ' ' + 'val regex = new scala.util.matching.Regex(' + $this_emit.
|
|
2052
|
+
return trimMargin(' ' + ' ' + 'val regex = new scala.util.matching.Regex(' + $this_emit.pj_1 + ')\n |' + ' ' + ' ' + 'regex.findFirstIn(that.value)');
|
|
2045
2053
|
};
|
|
2046
2054
|
}
|
|
2047
2055
|
function ScalaEmitter$emit$lambda_7() {
|
|
@@ -2052,7 +2060,7 @@
|
|
|
2052
2060
|
packageName = packageName === VOID ? get_DEFAULT_PACKAGE_NAME() : packageName;
|
|
2053
2061
|
logger = logger === VOID ? get_noLogger() : logger;
|
|
2054
2062
|
Emitter.call(this, logger);
|
|
2055
|
-
this.
|
|
2063
|
+
this.mk_1 = packageName;
|
|
2056
2064
|
}
|
|
2057
2065
|
protoOf(ScalaEmitter).qh = function (ast) {
|
|
2058
2066
|
var tmp$ret$2;
|
|
@@ -2068,39 +2076,39 @@
|
|
|
2068
2076
|
// Inline function 'community.flock.wirespec.compiler.core.emit.ScalaEmitter.emit.<anonymous>' call
|
|
2069
2077
|
var name = item.i3();
|
|
2070
2078
|
var result = item.j3();
|
|
2071
|
-
tmp$ret$0 = to(name, isBlank(this.
|
|
2079
|
+
tmp$ret$0 = to(name, isBlank(this.mk_1) ? '' : 'package ' + this.mk_1 + '\n\n' + result);
|
|
2072
2080
|
tmp0_mapTo.a(tmp$ret$0);
|
|
2073
2081
|
}
|
|
2074
2082
|
tmp$ret$1 = tmp0_mapTo;
|
|
2075
2083
|
tmp$ret$2 = tmp$ret$1;
|
|
2076
2084
|
return tmp$ret$2;
|
|
2077
2085
|
};
|
|
2078
|
-
protoOf(ScalaEmitter).
|
|
2079
|
-
return this.
|
|
2086
|
+
protoOf(ScalaEmitter).sj = function (_this__u8e3s4) {
|
|
2087
|
+
return this.tj(_this__u8e3s4, this.oh_1, ScalaEmitter$emit$lambda(_this__u8e3s4, this));
|
|
2080
2088
|
};
|
|
2081
2089
|
protoOf(ScalaEmitter).wi = function (_this__u8e3s4) {
|
|
2082
|
-
return this.
|
|
2090
|
+
return this.uj(_this__u8e3s4, this.oh_1, ScalaEmitter$emit$lambda_0(_this__u8e3s4, this));
|
|
2083
2091
|
};
|
|
2084
2092
|
protoOf(ScalaEmitter).xi = function (_this__u8e3s4) {
|
|
2085
|
-
return this.
|
|
2093
|
+
return this.vj(_this__u8e3s4, this.oh_1, ScalaEmitter$emit$lambda_1(this, _this__u8e3s4));
|
|
2086
2094
|
};
|
|
2087
2095
|
protoOf(ScalaEmitter).cj = function (_this__u8e3s4) {
|
|
2088
|
-
return this.
|
|
2096
|
+
return this.wj(_this__u8e3s4, this.oh_1, ScalaEmitter$emit$lambda_2(_this__u8e3s4));
|
|
2089
2097
|
};
|
|
2090
2098
|
protoOf(ScalaEmitter).di = function (_this__u8e3s4) {
|
|
2091
2099
|
return this.th(_this__u8e3s4, this.oh_1, ScalaEmitter$emit$lambda_3(_this__u8e3s4));
|
|
2092
2100
|
};
|
|
2093
|
-
protoOf(ScalaEmitter).vj = function (_this__u8e3s4) {
|
|
2094
|
-
return this.wj(_this__u8e3s4, this.oh_1, ScalaEmitter$emit$lambda_4(_this__u8e3s4));
|
|
2095
|
-
};
|
|
2096
2101
|
protoOf(ScalaEmitter).xj = function (_this__u8e3s4) {
|
|
2097
|
-
return this.yj(_this__u8e3s4, this.oh_1, ScalaEmitter$emit$
|
|
2102
|
+
return this.yj(_this__u8e3s4, this.oh_1, ScalaEmitter$emit$lambda_4(_this__u8e3s4));
|
|
2103
|
+
};
|
|
2104
|
+
protoOf(ScalaEmitter).zj = function (_this__u8e3s4) {
|
|
2105
|
+
return this.ak(_this__u8e3s4, this.oh_1, ScalaEmitter$emit$lambda_5(_this__u8e3s4, this));
|
|
2098
2106
|
};
|
|
2099
|
-
protoOf(ScalaEmitter).
|
|
2100
|
-
return this.
|
|
2107
|
+
protoOf(ScalaEmitter).oj = function (_this__u8e3s4) {
|
|
2108
|
+
return this.bk(_this__u8e3s4, this.oh_1, ScalaEmitter$emit$lambda_6(_this__u8e3s4));
|
|
2101
2109
|
};
|
|
2102
|
-
protoOf(ScalaEmitter).
|
|
2103
|
-
return this.
|
|
2110
|
+
protoOf(ScalaEmitter).ck = function (_this__u8e3s4) {
|
|
2111
|
+
return this.dk(_this__u8e3s4, this.oh_1, ScalaEmitter$emit$lambda_7);
|
|
2104
2112
|
};
|
|
2105
2113
|
function TypeScriptEmitter$emit$lambda($this_emit, this$0) {
|
|
2106
2114
|
return function () {
|
|
@@ -2135,7 +2143,7 @@
|
|
|
2135
2143
|
var tmp0_subject = $this_emit;
|
|
2136
2144
|
var tmp;
|
|
2137
2145
|
if (tmp0_subject instanceof Custom) {
|
|
2138
|
-
tmp = $this_emit.
|
|
2146
|
+
tmp = $this_emit.hj_1;
|
|
2139
2147
|
} else {
|
|
2140
2148
|
if (tmp0_subject instanceof Primitive) {
|
|
2141
2149
|
var tmp1_subject = $this_emit.ej_1;
|
|
@@ -2174,18 +2182,18 @@
|
|
|
2174
2182
|
}
|
|
2175
2183
|
function TypeScriptEmitter$emit$lambda_4($this_emit) {
|
|
2176
2184
|
return function () {
|
|
2177
|
-
return 'type ' + $this_emit.
|
|
2185
|
+
return 'type ' + $this_emit.kj_1 + ' = ' + joinToString($this_emit.lj_1, ' | ', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda$lambda_0) + '\n';
|
|
2178
2186
|
};
|
|
2179
2187
|
}
|
|
2180
2188
|
function TypeScriptEmitter$emit$lambda_5($this_emit, this$0) {
|
|
2181
2189
|
return function () {
|
|
2182
2190
|
Companion_getInstance_1();
|
|
2183
|
-
return trimMargin('interface ' + $this_emit.
|
|
2191
|
+
return trimMargin('interface ' + $this_emit.mj_1 + ' {\n |' + ' ' + 'value: string\n |}\n |const validate' + $this_emit.mj_1 + ' = (type: ' + $this_emit.mj_1 + ') => (' + this$0.oj($this_emit.nj_1) + ').test(type.value);\n |\n |');
|
|
2184
2192
|
};
|
|
2185
2193
|
}
|
|
2186
2194
|
function TypeScriptEmitter$emit$lambda_6($this_emit) {
|
|
2187
2195
|
return function () {
|
|
2188
|
-
return "new RegExp('" + dropLast(drop($this_emit.
|
|
2196
|
+
return "new RegExp('" + dropLast(drop($this_emit.pj_1, 1), 1) + "')";
|
|
2189
2197
|
};
|
|
2190
2198
|
}
|
|
2191
2199
|
function TypeScriptEmitter$emit$lambda_7() {
|
|
@@ -2195,32 +2203,32 @@
|
|
|
2195
2203
|
logger = logger === VOID ? get_noLogger() : logger;
|
|
2196
2204
|
Emitter.call(this, logger);
|
|
2197
2205
|
}
|
|
2198
|
-
protoOf(TypeScriptEmitter).
|
|
2199
|
-
return this.
|
|
2206
|
+
protoOf(TypeScriptEmitter).sj = function (_this__u8e3s4) {
|
|
2207
|
+
return this.tj(_this__u8e3s4, this.oh_1, TypeScriptEmitter$emit$lambda(_this__u8e3s4, this));
|
|
2200
2208
|
};
|
|
2201
2209
|
protoOf(TypeScriptEmitter).wi = function (_this__u8e3s4) {
|
|
2202
|
-
return this.
|
|
2210
|
+
return this.uj(_this__u8e3s4, this.oh_1, TypeScriptEmitter$emit$lambda_0(_this__u8e3s4, this));
|
|
2203
2211
|
};
|
|
2204
2212
|
protoOf(TypeScriptEmitter).xi = function (_this__u8e3s4) {
|
|
2205
|
-
return this.
|
|
2213
|
+
return this.vj(_this__u8e3s4, this.oh_1, TypeScriptEmitter$emit$lambda_1(this, _this__u8e3s4));
|
|
2206
2214
|
};
|
|
2207
2215
|
protoOf(TypeScriptEmitter).cj = function (_this__u8e3s4) {
|
|
2208
|
-
return this.
|
|
2216
|
+
return this.wj(_this__u8e3s4, this.oh_1, TypeScriptEmitter$emit$lambda_2(_this__u8e3s4));
|
|
2209
2217
|
};
|
|
2210
2218
|
protoOf(TypeScriptEmitter).di = function (_this__u8e3s4) {
|
|
2211
2219
|
return this.th(_this__u8e3s4, this.oh_1, TypeScriptEmitter$emit$lambda_3(_this__u8e3s4));
|
|
2212
2220
|
};
|
|
2213
|
-
protoOf(TypeScriptEmitter).vj = function (_this__u8e3s4) {
|
|
2214
|
-
return this.wj(_this__u8e3s4, this.oh_1, TypeScriptEmitter$emit$lambda_4(_this__u8e3s4));
|
|
2215
|
-
};
|
|
2216
2221
|
protoOf(TypeScriptEmitter).xj = function (_this__u8e3s4) {
|
|
2217
|
-
return this.yj(_this__u8e3s4, this.oh_1, TypeScriptEmitter$emit$
|
|
2222
|
+
return this.yj(_this__u8e3s4, this.oh_1, TypeScriptEmitter$emit$lambda_4(_this__u8e3s4));
|
|
2223
|
+
};
|
|
2224
|
+
protoOf(TypeScriptEmitter).zj = function (_this__u8e3s4) {
|
|
2225
|
+
return this.ak(_this__u8e3s4, this.oh_1, TypeScriptEmitter$emit$lambda_5(_this__u8e3s4, this));
|
|
2218
2226
|
};
|
|
2219
|
-
protoOf(TypeScriptEmitter).
|
|
2220
|
-
return this.
|
|
2227
|
+
protoOf(TypeScriptEmitter).oj = function (_this__u8e3s4) {
|
|
2228
|
+
return this.bk(_this__u8e3s4, this.oh_1, TypeScriptEmitter$emit$lambda_6(_this__u8e3s4));
|
|
2221
2229
|
};
|
|
2222
|
-
protoOf(TypeScriptEmitter).
|
|
2223
|
-
return this.
|
|
2230
|
+
protoOf(TypeScriptEmitter).ck = function (_this__u8e3s4) {
|
|
2231
|
+
return this.dk(_this__u8e3s4, this.oh_1, TypeScriptEmitter$emit$lambda_7);
|
|
2224
2232
|
};
|
|
2225
2233
|
function WirespecEmitter$emit$lambda($this_emit, this$0) {
|
|
2226
2234
|
return function () {
|
|
@@ -2255,7 +2263,7 @@
|
|
|
2255
2263
|
var tmp0_subject = $this_emit;
|
|
2256
2264
|
var tmp;
|
|
2257
2265
|
if (tmp0_subject instanceof Custom) {
|
|
2258
|
-
tmp = $this_emit.
|
|
2266
|
+
tmp = $this_emit.hj_1;
|
|
2259
2267
|
} else {
|
|
2260
2268
|
if (tmp0_subject instanceof Primitive) {
|
|
2261
2269
|
var tmp1_subject = $this_emit.ej_1;
|
|
@@ -2292,17 +2300,17 @@
|
|
|
2292
2300
|
function WirespecEmitter$emit$lambda_4($this_emit) {
|
|
2293
2301
|
return function () {
|
|
2294
2302
|
Companion_getInstance_1();
|
|
2295
|
-
return 'enum ' + $this_emit.
|
|
2303
|
+
return 'enum ' + $this_emit.kj_1 + ' {\n' + ' ' + joinToString($this_emit.lj_1, ', ') + '\n}\n';
|
|
2296
2304
|
};
|
|
2297
2305
|
}
|
|
2298
2306
|
function WirespecEmitter$emit$lambda_5($this_emit, this$0) {
|
|
2299
2307
|
return function () {
|
|
2300
|
-
return 'refined ' + $this_emit.
|
|
2308
|
+
return 'refined ' + $this_emit.mj_1 + ' ' + this$0.oj($this_emit.nj_1) + '\n';
|
|
2301
2309
|
};
|
|
2302
2310
|
}
|
|
2303
2311
|
function WirespecEmitter$emit$lambda_6($this_emit) {
|
|
2304
2312
|
return function () {
|
|
2305
|
-
return '/' + dropLast(drop($this_emit.
|
|
2313
|
+
return '/' + dropLast(drop($this_emit.pj_1, 1), 1) + '/g';
|
|
2306
2314
|
};
|
|
2307
2315
|
}
|
|
2308
2316
|
function WirespecEmitter$emit$lambda_7() {
|
|
@@ -2312,32 +2320,32 @@
|
|
|
2312
2320
|
logger = logger === VOID ? get_noLogger() : logger;
|
|
2313
2321
|
Emitter.call(this, logger);
|
|
2314
2322
|
}
|
|
2315
|
-
protoOf(WirespecEmitter).
|
|
2316
|
-
return this.
|
|
2323
|
+
protoOf(WirespecEmitter).sj = function (_this__u8e3s4) {
|
|
2324
|
+
return this.tj(_this__u8e3s4, this.oh_1, WirespecEmitter$emit$lambda(_this__u8e3s4, this));
|
|
2317
2325
|
};
|
|
2318
2326
|
protoOf(WirespecEmitter).wi = function (_this__u8e3s4) {
|
|
2319
|
-
return this.
|
|
2327
|
+
return this.uj(_this__u8e3s4, this.oh_1, WirespecEmitter$emit$lambda_0(_this__u8e3s4, this));
|
|
2320
2328
|
};
|
|
2321
2329
|
protoOf(WirespecEmitter).xi = function (_this__u8e3s4) {
|
|
2322
|
-
return this.
|
|
2330
|
+
return this.vj(_this__u8e3s4, this.oh_1, WirespecEmitter$emit$lambda_1(this, _this__u8e3s4));
|
|
2323
2331
|
};
|
|
2324
2332
|
protoOf(WirespecEmitter).cj = function (_this__u8e3s4) {
|
|
2325
|
-
return this.
|
|
2333
|
+
return this.wj(_this__u8e3s4, this.oh_1, WirespecEmitter$emit$lambda_2(_this__u8e3s4));
|
|
2326
2334
|
};
|
|
2327
2335
|
protoOf(WirespecEmitter).di = function (_this__u8e3s4) {
|
|
2328
2336
|
return this.th(_this__u8e3s4, this.oh_1, WirespecEmitter$emit$lambda_3(_this__u8e3s4));
|
|
2329
2337
|
};
|
|
2330
|
-
protoOf(WirespecEmitter).vj = function (_this__u8e3s4) {
|
|
2331
|
-
return this.wj(_this__u8e3s4, this.oh_1, WirespecEmitter$emit$lambda_4(_this__u8e3s4));
|
|
2332
|
-
};
|
|
2333
2338
|
protoOf(WirespecEmitter).xj = function (_this__u8e3s4) {
|
|
2334
|
-
return this.yj(_this__u8e3s4, this.oh_1, WirespecEmitter$emit$
|
|
2339
|
+
return this.yj(_this__u8e3s4, this.oh_1, WirespecEmitter$emit$lambda_4(_this__u8e3s4));
|
|
2340
|
+
};
|
|
2341
|
+
protoOf(WirespecEmitter).zj = function (_this__u8e3s4) {
|
|
2342
|
+
return this.ak(_this__u8e3s4, this.oh_1, WirespecEmitter$emit$lambda_5(_this__u8e3s4, this));
|
|
2335
2343
|
};
|
|
2336
|
-
protoOf(WirespecEmitter).
|
|
2337
|
-
return this.
|
|
2344
|
+
protoOf(WirespecEmitter).oj = function (_this__u8e3s4) {
|
|
2345
|
+
return this.bk(_this__u8e3s4, this.oh_1, WirespecEmitter$emit$lambda_6(_this__u8e3s4));
|
|
2338
2346
|
};
|
|
2339
|
-
protoOf(WirespecEmitter).
|
|
2340
|
-
return this.
|
|
2347
|
+
protoOf(WirespecEmitter).ck = function (_this__u8e3s4) {
|
|
2348
|
+
return this.dk(_this__u8e3s4, this.oh_1, WirespecEmitter$emit$lambda_7);
|
|
2341
2349
|
};
|
|
2342
2350
|
function get_DEFAULT_PACKAGE_NAME() {
|
|
2343
2351
|
return DEFAULT_PACKAGE_NAME;
|
|
@@ -2381,7 +2389,7 @@
|
|
|
2381
2389
|
tmp$ret$6 = tmp;
|
|
2382
2390
|
return tmp$ret$6;
|
|
2383
2391
|
};
|
|
2384
|
-
protoOf(Companion_0).
|
|
2392
|
+
protoOf(Companion_0).qj = function (_this__u8e3s4) {
|
|
2385
2393
|
var tmp$ret$6;
|
|
2386
2394
|
// Inline function 'kotlin.text.replaceFirstChar' call
|
|
2387
2395
|
var tmp;
|
|
@@ -2447,16 +2455,16 @@
|
|
|
2447
2455
|
var tmp0_subject = item;
|
|
2448
2456
|
var tmp;
|
|
2449
2457
|
if (tmp0_subject instanceof Type_0) {
|
|
2450
|
-
tmp = to(item.ui_1, this.
|
|
2458
|
+
tmp = to(item.ui_1, this.sj(item));
|
|
2451
2459
|
} else {
|
|
2452
2460
|
if (tmp0_subject instanceof Endpoint) {
|
|
2453
|
-
tmp = to(item.ei_1, this.
|
|
2461
|
+
tmp = to(item.ei_1, this.ck(item));
|
|
2454
2462
|
} else {
|
|
2455
2463
|
if (tmp0_subject instanceof Enum_0) {
|
|
2456
|
-
tmp = to(item.
|
|
2464
|
+
tmp = to(item.kj_1, this.xj(item));
|
|
2457
2465
|
} else {
|
|
2458
2466
|
if (tmp0_subject instanceof Refined) {
|
|
2459
|
-
tmp = to(item.
|
|
2467
|
+
tmp = to(item.mj_1, this.zj(item));
|
|
2460
2468
|
} else {
|
|
2461
2469
|
noWhenBranchMatchedException();
|
|
2462
2470
|
}
|
|
@@ -2499,7 +2507,7 @@
|
|
|
2499
2507
|
captureStack(this, NextException);
|
|
2500
2508
|
}
|
|
2501
2509
|
function WrongTokenException(expected, actual) {
|
|
2502
|
-
ParserException.call(this, actual.
|
|
2510
|
+
ParserException.call(this, actual.uk_1, '' + expected.fc() + ' expected, not: ' + getKClassFromExpression(actual.sk_1).fc() + ' at line ' + actual.uk_1.vk_1 + ' and position ' + (actual.uk_1.wk_1 - actual.tk_1.length | 0));
|
|
2503
2511
|
captureStack(this, WrongTokenException);
|
|
2504
2512
|
}
|
|
2505
2513
|
function NullTokenException(message, coordinates) {
|
|
@@ -2517,7 +2525,7 @@
|
|
|
2517
2525
|
function WirespecException(message, coordinates) {
|
|
2518
2526
|
RuntimeException_init_$Init$(message, this);
|
|
2519
2527
|
captureStack(this, WirespecException);
|
|
2520
|
-
this.
|
|
2528
|
+
this.yk_1 = coordinates;
|
|
2521
2529
|
}
|
|
2522
2530
|
function optimize(_this__u8e3s4) {
|
|
2523
2531
|
var tmp$ret$2;
|
|
@@ -2530,10 +2538,10 @@
|
|
|
2530
2538
|
var item = tmp0_iterator.e();
|
|
2531
2539
|
var tmp$ret$0;
|
|
2532
2540
|
// Inline function 'community.flock.wirespec.compiler.core.optimize.optimize.<anonymous>' call
|
|
2533
|
-
var tmp0_subject = item.
|
|
2541
|
+
var tmp0_subject = item.sk_1;
|
|
2534
2542
|
var tmp;
|
|
2535
2543
|
if (tmp0_subject instanceof CustomRegex) {
|
|
2536
|
-
tmp = item.
|
|
2544
|
+
tmp = item.zk(VOID, '"' + dropLast(drop(item.tk_1, 1), 2) + '"');
|
|
2537
2545
|
} else {
|
|
2538
2546
|
tmp = item;
|
|
2539
2547
|
}
|
|
@@ -2571,19 +2579,34 @@
|
|
|
2571
2579
|
Type_initEntries();
|
|
2572
2580
|
return Type_Boolean_instance;
|
|
2573
2581
|
}
|
|
2574
|
-
function Custom(value, isIterable) {
|
|
2575
|
-
|
|
2576
|
-
this.hj_1 =
|
|
2582
|
+
function Custom(value, isIterable, isMap) {
|
|
2583
|
+
isMap = isMap === VOID ? false : isMap;
|
|
2584
|
+
this.hj_1 = value;
|
|
2585
|
+
this.ij_1 = isIterable;
|
|
2586
|
+
this.jj_1 = isMap;
|
|
2577
2587
|
}
|
|
2578
2588
|
protoOf(Custom).qi = function () {
|
|
2579
|
-
return this.
|
|
2589
|
+
return this.ij_1;
|
|
2590
|
+
};
|
|
2591
|
+
protoOf(Custom).ik = function () {
|
|
2592
|
+
return this.jj_1;
|
|
2593
|
+
};
|
|
2594
|
+
protoOf(Custom).al = function (value, isIterable, isMap) {
|
|
2595
|
+
return new Custom(value, isIterable, isMap);
|
|
2596
|
+
};
|
|
2597
|
+
protoOf(Custom).bl = function (value, isIterable, isMap, $super) {
|
|
2598
|
+
value = value === VOID ? this.hj_1 : value;
|
|
2599
|
+
isIterable = isIterable === VOID ? this.ij_1 : isIterable;
|
|
2600
|
+
isMap = isMap === VOID ? this.jj_1 : isMap;
|
|
2601
|
+
return $super === VOID ? this.al(value, isIterable, isMap) : $super.al.call(this, value, isIterable, isMap);
|
|
2580
2602
|
};
|
|
2581
2603
|
protoOf(Custom).toString = function () {
|
|
2582
|
-
return 'Custom(value=' + this.
|
|
2604
|
+
return 'Custom(value=' + this.hj_1 + ', isIterable=' + this.ij_1 + ', isMap=' + this.jj_1 + ')';
|
|
2583
2605
|
};
|
|
2584
2606
|
protoOf(Custom).hashCode = function () {
|
|
2585
|
-
var result = getStringHashCode(this.
|
|
2586
|
-
result = imul(result, 31) + (this.
|
|
2607
|
+
var result = getStringHashCode(this.hj_1);
|
|
2608
|
+
result = imul(result, 31) + (this.ij_1 | 0) | 0;
|
|
2609
|
+
result = imul(result, 31) + (this.jj_1 | 0) | 0;
|
|
2587
2610
|
return result;
|
|
2588
2611
|
};
|
|
2589
2612
|
protoOf(Custom).equals = function (other) {
|
|
@@ -2592,25 +2615,33 @@
|
|
|
2592
2615
|
if (!(other instanceof Custom))
|
|
2593
2616
|
return false;
|
|
2594
2617
|
var tmp0_other_with_cast = other instanceof Custom ? other : THROW_CCE();
|
|
2595
|
-
if (!(this.gj_1 === tmp0_other_with_cast.gj_1))
|
|
2596
|
-
return false;
|
|
2597
2618
|
if (!(this.hj_1 === tmp0_other_with_cast.hj_1))
|
|
2598
2619
|
return false;
|
|
2620
|
+
if (!(this.ij_1 === tmp0_other_with_cast.ij_1))
|
|
2621
|
+
return false;
|
|
2622
|
+
if (!(this.jj_1 === tmp0_other_with_cast.jj_1))
|
|
2623
|
+
return false;
|
|
2599
2624
|
return true;
|
|
2600
2625
|
};
|
|
2601
|
-
function Primitive(type, isIterable) {
|
|
2626
|
+
function Primitive(type, isIterable, isMap) {
|
|
2627
|
+
isMap = isMap === VOID ? false : isMap;
|
|
2602
2628
|
this.ej_1 = type;
|
|
2603
2629
|
this.fj_1 = isIterable;
|
|
2630
|
+
this.gj_1 = isMap;
|
|
2604
2631
|
}
|
|
2605
2632
|
protoOf(Primitive).qi = function () {
|
|
2606
2633
|
return this.fj_1;
|
|
2607
2634
|
};
|
|
2635
|
+
protoOf(Primitive).ik = function () {
|
|
2636
|
+
return this.gj_1;
|
|
2637
|
+
};
|
|
2608
2638
|
protoOf(Primitive).toString = function () {
|
|
2609
|
-
return 'Primitive(type=' + this.ej_1 + ', isIterable=' + this.fj_1 + ')';
|
|
2639
|
+
return 'Primitive(type=' + this.ej_1 + ', isIterable=' + this.fj_1 + ', isMap=' + this.gj_1 + ')';
|
|
2610
2640
|
};
|
|
2611
2641
|
protoOf(Primitive).hashCode = function () {
|
|
2612
2642
|
var result = this.ej_1.hashCode();
|
|
2613
2643
|
result = imul(result, 31) + (this.fj_1 | 0) | 0;
|
|
2644
|
+
result = imul(result, 31) + (this.gj_1 | 0) | 0;
|
|
2614
2645
|
return result;
|
|
2615
2646
|
};
|
|
2616
2647
|
protoOf(Primitive).equals = function (other) {
|
|
@@ -2623,6 +2654,8 @@
|
|
|
2623
2654
|
return false;
|
|
2624
2655
|
if (!(this.fj_1 === tmp0_other_with_cast.fj_1))
|
|
2625
2656
|
return false;
|
|
2657
|
+
if (!(this.gj_1 === tmp0_other_with_cast.gj_1))
|
|
2658
|
+
return false;
|
|
2626
2659
|
return true;
|
|
2627
2660
|
};
|
|
2628
2661
|
function Identifier(value) {
|
|
@@ -2741,13 +2774,13 @@
|
|
|
2741
2774
|
Method_TRACE_instance = new Method('TRACE', 7);
|
|
2742
2775
|
}
|
|
2743
2776
|
function Literal(value) {
|
|
2744
|
-
this.
|
|
2777
|
+
this.rj_1 = value;
|
|
2745
2778
|
}
|
|
2746
2779
|
protoOf(Literal).toString = function () {
|
|
2747
|
-
return 'Literal(value=' + this.
|
|
2780
|
+
return 'Literal(value=' + this.rj_1 + ')';
|
|
2748
2781
|
};
|
|
2749
2782
|
protoOf(Literal).hashCode = function () {
|
|
2750
|
-
return getStringHashCode(this.
|
|
2783
|
+
return getStringHashCode(this.rj_1);
|
|
2751
2784
|
};
|
|
2752
2785
|
protoOf(Literal).equals = function (other) {
|
|
2753
2786
|
if (this === other)
|
|
@@ -2755,7 +2788,7 @@
|
|
|
2755
2788
|
if (!(other instanceof Literal))
|
|
2756
2789
|
return false;
|
|
2757
2790
|
var tmp0_other_with_cast = other instanceof Literal ? other : THROW_CCE();
|
|
2758
|
-
if (!(this.
|
|
2791
|
+
if (!(this.rj_1 === tmp0_other_with_cast.rj_1))
|
|
2759
2792
|
return false;
|
|
2760
2793
|
return true;
|
|
2761
2794
|
};
|
|
@@ -2938,15 +2971,15 @@
|
|
|
2938
2971
|
return true;
|
|
2939
2972
|
};
|
|
2940
2973
|
function Enum_0(name, entries) {
|
|
2941
|
-
this.
|
|
2942
|
-
this.
|
|
2974
|
+
this.kj_1 = name;
|
|
2975
|
+
this.lj_1 = entries;
|
|
2943
2976
|
}
|
|
2944
2977
|
protoOf(Enum_0).toString = function () {
|
|
2945
|
-
return 'Enum(name=' + this.
|
|
2978
|
+
return 'Enum(name=' + this.kj_1 + ', entries=' + this.lj_1 + ')';
|
|
2946
2979
|
};
|
|
2947
2980
|
protoOf(Enum_0).hashCode = function () {
|
|
2948
|
-
var result = getStringHashCode(this.
|
|
2949
|
-
result = imul(result, 31) + hashCode(this.
|
|
2981
|
+
var result = getStringHashCode(this.kj_1);
|
|
2982
|
+
result = imul(result, 31) + hashCode(this.lj_1) | 0;
|
|
2950
2983
|
return result;
|
|
2951
2984
|
};
|
|
2952
2985
|
protoOf(Enum_0).equals = function (other) {
|
|
@@ -2955,20 +2988,20 @@
|
|
|
2955
2988
|
if (!(other instanceof Enum_0))
|
|
2956
2989
|
return false;
|
|
2957
2990
|
var tmp0_other_with_cast = other instanceof Enum_0 ? other : THROW_CCE();
|
|
2958
|
-
if (!(this.
|
|
2991
|
+
if (!(this.kj_1 === tmp0_other_with_cast.kj_1))
|
|
2959
2992
|
return false;
|
|
2960
|
-
if (!equals(this.
|
|
2993
|
+
if (!equals(this.lj_1, tmp0_other_with_cast.lj_1))
|
|
2961
2994
|
return false;
|
|
2962
2995
|
return true;
|
|
2963
2996
|
};
|
|
2964
2997
|
function Validator(value) {
|
|
2965
|
-
this.
|
|
2998
|
+
this.pj_1 = value;
|
|
2966
2999
|
}
|
|
2967
3000
|
protoOf(Validator).toString = function () {
|
|
2968
|
-
return 'Validator(value=' + this.
|
|
3001
|
+
return 'Validator(value=' + this.pj_1 + ')';
|
|
2969
3002
|
};
|
|
2970
3003
|
protoOf(Validator).hashCode = function () {
|
|
2971
|
-
return getStringHashCode(this.
|
|
3004
|
+
return getStringHashCode(this.pj_1);
|
|
2972
3005
|
};
|
|
2973
3006
|
protoOf(Validator).equals = function (other) {
|
|
2974
3007
|
if (this === other)
|
|
@@ -2976,20 +3009,20 @@
|
|
|
2976
3009
|
if (!(other instanceof Validator))
|
|
2977
3010
|
return false;
|
|
2978
3011
|
var tmp0_other_with_cast = other instanceof Validator ? other : THROW_CCE();
|
|
2979
|
-
if (!(this.
|
|
3012
|
+
if (!(this.pj_1 === tmp0_other_with_cast.pj_1))
|
|
2980
3013
|
return false;
|
|
2981
3014
|
return true;
|
|
2982
3015
|
};
|
|
2983
3016
|
function Refined(name, validator) {
|
|
2984
|
-
this.
|
|
2985
|
-
this.
|
|
3017
|
+
this.mj_1 = name;
|
|
3018
|
+
this.nj_1 = validator;
|
|
2986
3019
|
}
|
|
2987
3020
|
protoOf(Refined).toString = function () {
|
|
2988
|
-
return 'Refined(name=' + this.
|
|
3021
|
+
return 'Refined(name=' + this.mj_1 + ', validator=' + this.nj_1 + ')';
|
|
2989
3022
|
};
|
|
2990
3023
|
protoOf(Refined).hashCode = function () {
|
|
2991
|
-
var result = getStringHashCode(this.
|
|
2992
|
-
result = imul(result, 31) + this.
|
|
3024
|
+
var result = getStringHashCode(this.mj_1);
|
|
3025
|
+
result = imul(result, 31) + this.nj_1.hashCode() | 0;
|
|
2993
3026
|
return result;
|
|
2994
3027
|
};
|
|
2995
3028
|
protoOf(Refined).equals = function (other) {
|
|
@@ -2998,9 +3031,9 @@
|
|
|
2998
3031
|
if (!(other instanceof Refined))
|
|
2999
3032
|
return false;
|
|
3000
3033
|
var tmp0_other_with_cast = other instanceof Refined ? other : THROW_CCE();
|
|
3001
|
-
if (!(this.
|
|
3034
|
+
if (!(this.mj_1 === tmp0_other_with_cast.mj_1))
|
|
3002
3035
|
return false;
|
|
3003
|
-
if (!this.
|
|
3036
|
+
if (!this.nj_1.equals(tmp0_other_with_cast.nj_1))
|
|
3004
3037
|
return false;
|
|
3005
3038
|
return true;
|
|
3006
3039
|
};
|
|
@@ -3099,8 +3132,8 @@
|
|
|
3099
3132
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
3100
3133
|
var tmp$ret$2;
|
|
3101
3134
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseDefinition.<anonymous>' call
|
|
3102
|
-
log(_this__u8e3s4.
|
|
3103
|
-
var tmp0_subject = _this__u8e3s4.
|
|
3135
|
+
log(_this__u8e3s4.el_1, $this);
|
|
3136
|
+
var tmp0_subject = _this__u8e3s4.el_1.sk_1;
|
|
3104
3137
|
var tmp_0;
|
|
3105
3138
|
if (tmp0_subject instanceof WsTypeDef) {
|
|
3106
3139
|
tmp_0 = raise.ch(parseTypeDeclaration(_this__u8e3s4, $this));
|
|
@@ -3115,10 +3148,10 @@
|
|
|
3115
3148
|
// Inline function 'arrow.core.nel' call
|
|
3116
3149
|
var tmp$ret$0;
|
|
3117
3150
|
// Inline function 'kotlin.also' call
|
|
3118
|
-
var tmp0_also = new WrongTokenException(getKClass(WsTypeDef), _this__u8e3s4.
|
|
3151
|
+
var tmp0_also = new WrongTokenException(getKClass(WsTypeDef), _this__u8e3s4.el_1);
|
|
3119
3152
|
// Inline function 'kotlin.contracts.contract' call
|
|
3120
3153
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseDefinition.<anonymous>.<anonymous>' call
|
|
3121
|
-
_this__u8e3s4.
|
|
3154
|
+
raise.ch(_this__u8e3s4.gl());
|
|
3122
3155
|
tmp$ret$0 = tmp0_also;
|
|
3123
3156
|
var tmp1_nel = tmp$ret$0;
|
|
3124
3157
|
tmp$ret$1 = nonEmptyListOf(tmp1_nel, []);
|
|
@@ -3177,21 +3210,21 @@
|
|
|
3177
3210
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
3178
3211
|
var tmp$ret$2;
|
|
3179
3212
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseTypeDeclaration.<anonymous>' call
|
|
3180
|
-
_this__u8e3s4.
|
|
3181
|
-
log(_this__u8e3s4.
|
|
3182
|
-
var tmp0_subject = _this__u8e3s4.
|
|
3213
|
+
raise.ch(_this__u8e3s4.gl());
|
|
3214
|
+
log(_this__u8e3s4.el_1, $this);
|
|
3215
|
+
var tmp0_subject = _this__u8e3s4.el_1.sk_1;
|
|
3183
3216
|
var tmp_0;
|
|
3184
3217
|
if (tmp0_subject instanceof CustomType) {
|
|
3185
|
-
tmp_0 = raise.ch(parseTypeDefinition(_this__u8e3s4, $this, _this__u8e3s4.
|
|
3218
|
+
tmp_0 = raise.ch(parseTypeDefinition(_this__u8e3s4, $this, _this__u8e3s4.el_1.tk_1));
|
|
3186
3219
|
} else {
|
|
3187
3220
|
var tmp$ret$1;
|
|
3188
3221
|
// Inline function 'arrow.core.nel' call
|
|
3189
3222
|
var tmp$ret$0;
|
|
3190
3223
|
// Inline function 'kotlin.also' call
|
|
3191
|
-
var tmp0_also = new WrongTokenException(getKClass(CustomType), _this__u8e3s4.
|
|
3224
|
+
var tmp0_also = new WrongTokenException(getKClass(CustomType), _this__u8e3s4.el_1);
|
|
3192
3225
|
// Inline function 'kotlin.contracts.contract' call
|
|
3193
3226
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseTypeDeclaration.<anonymous>.<anonymous>' call
|
|
3194
|
-
_this__u8e3s4.
|
|
3227
|
+
raise.ch(_this__u8e3s4.gl());
|
|
3195
3228
|
tmp$ret$0 = tmp0_also;
|
|
3196
3229
|
var tmp1_nel = tmp$ret$0;
|
|
3197
3230
|
tmp$ret$1 = nonEmptyListOf(tmp1_nel, []);
|
|
@@ -3248,11 +3281,11 @@
|
|
|
3248
3281
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
3249
3282
|
var tmp$ret$5;
|
|
3250
3283
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseTypeDefinition.<anonymous>' call
|
|
3251
|
-
_this__u8e3s4.
|
|
3252
|
-
log(_this__u8e3s4.
|
|
3284
|
+
raise.ch(_this__u8e3s4.gl());
|
|
3285
|
+
log(_this__u8e3s4.el_1, $this);
|
|
3253
3286
|
var tmp$ret$4;
|
|
3254
3287
|
// Inline function 'kotlin.also' call
|
|
3255
|
-
var tmp0_subject = _this__u8e3s4.
|
|
3288
|
+
var tmp0_subject = _this__u8e3s4.el_1.sk_1;
|
|
3256
3289
|
var tmp_0;
|
|
3257
3290
|
if (tmp0_subject instanceof LeftCurly) {
|
|
3258
3291
|
tmp_0 = new Type_0(typeName, raise.ch(parseTypeShape(_this__u8e3s4, $this)));
|
|
@@ -3261,10 +3294,10 @@
|
|
|
3261
3294
|
// Inline function 'arrow.core.nel' call
|
|
3262
3295
|
var tmp$ret$0;
|
|
3263
3296
|
// Inline function 'kotlin.also' call
|
|
3264
|
-
var tmp0_also = new WrongTokenException(getKClass(LeftCurly), _this__u8e3s4.
|
|
3297
|
+
var tmp0_also = new WrongTokenException(getKClass(LeftCurly), _this__u8e3s4.el_1);
|
|
3265
3298
|
// Inline function 'kotlin.contracts.contract' call
|
|
3266
3299
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseTypeDefinition.<anonymous>.<anonymous>' call
|
|
3267
|
-
_this__u8e3s4.
|
|
3300
|
+
raise.ch(_this__u8e3s4.gl());
|
|
3268
3301
|
tmp$ret$0 = tmp0_also;
|
|
3269
3302
|
var tmp1_nel = tmp$ret$0;
|
|
3270
3303
|
tmp$ret$1 = nonEmptyListOf(tmp1_nel, []);
|
|
@@ -3273,18 +3306,18 @@
|
|
|
3273
3306
|
var tmp2_also = tmp_0;
|
|
3274
3307
|
// Inline function 'kotlin.contracts.contract' call
|
|
3275
3308
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseTypeDefinition.<anonymous>.<anonymous>' call
|
|
3276
|
-
var tmp0_subject_0 = _this__u8e3s4.
|
|
3277
|
-
if (tmp0_subject_0 instanceof RightCurly)
|
|
3278
|
-
_this__u8e3s4.
|
|
3279
|
-
|
|
3309
|
+
var tmp0_subject_0 = _this__u8e3s4.el_1.sk_1;
|
|
3310
|
+
if (tmp0_subject_0 instanceof RightCurly)
|
|
3311
|
+
raise.ch(_this__u8e3s4.gl());
|
|
3312
|
+
else {
|
|
3280
3313
|
var tmp$ret$3;
|
|
3281
3314
|
// Inline function 'arrow.core.nel' call
|
|
3282
3315
|
var tmp$ret$2;
|
|
3283
3316
|
// Inline function 'kotlin.also' call
|
|
3284
|
-
var tmp0_also_0 = new WrongTokenException(getKClass(RightCurly), _this__u8e3s4.
|
|
3317
|
+
var tmp0_also_0 = new WrongTokenException(getKClass(RightCurly), _this__u8e3s4.el_1);
|
|
3285
3318
|
// Inline function 'kotlin.contracts.contract' call
|
|
3286
3319
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseTypeDefinition.<anonymous>.<anonymous>.<anonymous>' call
|
|
3287
|
-
_this__u8e3s4.
|
|
3320
|
+
raise.ch(_this__u8e3s4.gl());
|
|
3288
3321
|
tmp$ret$2 = tmp0_also_0;
|
|
3289
3322
|
var tmp1_nel_0 = tmp$ret$2;
|
|
3290
3323
|
tmp$ret$3 = nonEmptyListOf(tmp1_nel_0, []);
|
|
@@ -3342,11 +3375,11 @@
|
|
|
3342
3375
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
3343
3376
|
var tmp$ret$7;
|
|
3344
3377
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseTypeShape.<anonymous>' call
|
|
3345
|
-
_this__u8e3s4.
|
|
3346
|
-
log(_this__u8e3s4.
|
|
3378
|
+
raise.ch(_this__u8e3s4.gl());
|
|
3379
|
+
log(_this__u8e3s4.el_1, $this);
|
|
3347
3380
|
var tmp$ret$6;
|
|
3348
3381
|
// Inline function 'kotlin.let' call
|
|
3349
|
-
var tmp0_subject = _this__u8e3s4.
|
|
3382
|
+
var tmp0_subject = _this__u8e3s4.el_1.sk_1;
|
|
3350
3383
|
var tmp_0;
|
|
3351
3384
|
if (tmp0_subject instanceof CustomValue) {
|
|
3352
3385
|
var tmp$ret$3;
|
|
@@ -3357,21 +3390,21 @@
|
|
|
3357
3390
|
var tmp0_apply = tmp$ret$0;
|
|
3358
3391
|
// Inline function 'kotlin.contracts.contract' call
|
|
3359
3392
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseTypeShape.<anonymous>.<anonymous>' call
|
|
3360
|
-
tmp0_apply.a(raise.ch(parseField(_this__u8e3s4, $this, new Identifier(_this__u8e3s4.
|
|
3361
|
-
while (equals(_this__u8e3s4.
|
|
3362
|
-
_this__u8e3s4.
|
|
3363
|
-
var tmp0_subject_0 = _this__u8e3s4.
|
|
3393
|
+
tmp0_apply.a(raise.ch(parseField(_this__u8e3s4, $this, new Identifier(_this__u8e3s4.el_1.tk_1))));
|
|
3394
|
+
while (equals(_this__u8e3s4.el_1.sk_1, Comma_getInstance())) {
|
|
3395
|
+
raise.ch(_this__u8e3s4.gl());
|
|
3396
|
+
var tmp0_subject_0 = _this__u8e3s4.el_1.sk_1;
|
|
3364
3397
|
if (tmp0_subject_0 instanceof CustomValue) {
|
|
3365
|
-
tmp0_apply.a(raise.ch(parseField(_this__u8e3s4, $this, new Identifier(_this__u8e3s4.
|
|
3398
|
+
tmp0_apply.a(raise.ch(parseField(_this__u8e3s4, $this, new Identifier(_this__u8e3s4.el_1.tk_1))));
|
|
3366
3399
|
} else {
|
|
3367
3400
|
var tmp$ret$2;
|
|
3368
3401
|
// Inline function 'arrow.core.nel' call
|
|
3369
3402
|
var tmp$ret$1;
|
|
3370
3403
|
// Inline function 'kotlin.also' call
|
|
3371
|
-
var tmp0_also = new WrongTokenException(getKClass(CustomValue), _this__u8e3s4.
|
|
3404
|
+
var tmp0_also = new WrongTokenException(getKClass(CustomValue), _this__u8e3s4.el_1);
|
|
3372
3405
|
// Inline function 'kotlin.contracts.contract' call
|
|
3373
3406
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseTypeShape.<anonymous>.<anonymous>.<anonymous>' call
|
|
3374
|
-
_this__u8e3s4.
|
|
3407
|
+
raise.ch(_this__u8e3s4.gl());
|
|
3375
3408
|
tmp$ret$1 = tmp0_also;
|
|
3376
3409
|
var tmp1_nel = tmp$ret$1;
|
|
3377
3410
|
tmp$ret$2 = nonEmptyListOf(tmp1_nel, []);
|
|
@@ -3385,10 +3418,10 @@
|
|
|
3385
3418
|
// Inline function 'arrow.core.nel' call
|
|
3386
3419
|
var tmp$ret$4;
|
|
3387
3420
|
// Inline function 'kotlin.also' call
|
|
3388
|
-
var tmp1_also = new WrongTokenException(getKClass(CustomValue), _this__u8e3s4.
|
|
3421
|
+
var tmp1_also = new WrongTokenException(getKClass(CustomValue), _this__u8e3s4.el_1);
|
|
3389
3422
|
// Inline function 'kotlin.contracts.contract' call
|
|
3390
3423
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseTypeShape.<anonymous>.<anonymous>' call
|
|
3391
|
-
_this__u8e3s4.
|
|
3424
|
+
raise.ch(_this__u8e3s4.gl());
|
|
3392
3425
|
tmp$ret$4 = tmp1_also;
|
|
3393
3426
|
var tmp2_nel = tmp$ret$4;
|
|
3394
3427
|
tmp$ret$5 = nonEmptyListOf(tmp2_nel, []);
|
|
@@ -3448,38 +3481,37 @@
|
|
|
3448
3481
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
3449
3482
|
var tmp$ret$5;
|
|
3450
3483
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseField.<anonymous>' call
|
|
3451
|
-
_this__u8e3s4.
|
|
3452
|
-
log(_this__u8e3s4.
|
|
3453
|
-
var tmp0_subject = _this__u8e3s4.
|
|
3454
|
-
if (tmp0_subject instanceof Colon)
|
|
3455
|
-
_this__u8e3s4.
|
|
3456
|
-
|
|
3484
|
+
raise.ch(_this__u8e3s4.gl());
|
|
3485
|
+
log(_this__u8e3s4.el_1, $this);
|
|
3486
|
+
var tmp0_subject = _this__u8e3s4.el_1.sk_1;
|
|
3487
|
+
if (tmp0_subject instanceof Colon)
|
|
3488
|
+
raise.ch(_this__u8e3s4.gl());
|
|
3489
|
+
else {
|
|
3457
3490
|
var tmp$ret$1;
|
|
3458
3491
|
// Inline function 'arrow.core.nel' call
|
|
3459
3492
|
var tmp$ret$0;
|
|
3460
3493
|
// Inline function 'kotlin.also' call
|
|
3461
|
-
var tmp0_also = new WrongTokenException(getKClass(Colon), _this__u8e3s4.
|
|
3494
|
+
var tmp0_also = new WrongTokenException(getKClass(Colon), _this__u8e3s4.el_1);
|
|
3462
3495
|
// Inline function 'kotlin.contracts.contract' call
|
|
3463
3496
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseField.<anonymous>.<anonymous>' call
|
|
3464
|
-
_this__u8e3s4.
|
|
3497
|
+
raise.ch(_this__u8e3s4.gl());
|
|
3465
3498
|
tmp$ret$0 = tmp0_also;
|
|
3466
3499
|
var tmp1_nel = tmp$ret$0;
|
|
3467
3500
|
tmp$ret$1 = nonEmptyListOf(tmp1_nel, []);
|
|
3468
3501
|
raise.bh(tmp$ret$1);
|
|
3469
3502
|
}
|
|
3470
|
-
var type = _this__u8e3s4.
|
|
3503
|
+
var type = _this__u8e3s4.el_1.sk_1;
|
|
3471
3504
|
var tmp_0;
|
|
3472
3505
|
if (isInterface(type, WsType)) {
|
|
3473
|
-
var tmp_1 = parseFieldValue(_this__u8e3s4, $this, type, _this__u8e3s4.
|
|
3506
|
+
var tmp_1 = raise.ch(parseFieldValue(_this__u8e3s4, $this, type, _this__u8e3s4.el_1.tk_1));
|
|
3474
3507
|
var tmp$ret$2;
|
|
3475
3508
|
// Inline function 'kotlin.also' call
|
|
3476
|
-
var tmp_2 = _this__u8e3s4.
|
|
3509
|
+
var tmp_2 = _this__u8e3s4.el_1.sk_1;
|
|
3477
3510
|
var tmp2_also = tmp_2 instanceof QuestionMark;
|
|
3478
3511
|
// Inline function 'kotlin.contracts.contract' call
|
|
3479
3512
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseField.<anonymous>.<anonymous>' call
|
|
3480
|
-
if (tmp2_also)
|
|
3481
|
-
_this__u8e3s4.
|
|
3482
|
-
}
|
|
3513
|
+
if (tmp2_also)
|
|
3514
|
+
raise.ch(_this__u8e3s4.gl());
|
|
3483
3515
|
tmp$ret$2 = tmp2_also;
|
|
3484
3516
|
tmp_0 = new Field(identifier, tmp_1, tmp$ret$2);
|
|
3485
3517
|
} else {
|
|
@@ -3487,10 +3519,10 @@
|
|
|
3487
3519
|
// Inline function 'arrow.core.nel' call
|
|
3488
3520
|
var tmp$ret$3;
|
|
3489
3521
|
// Inline function 'kotlin.also' call
|
|
3490
|
-
var tmp3_also = new WrongTokenException(getKClass(CustomType), _this__u8e3s4.
|
|
3522
|
+
var tmp3_also = new WrongTokenException(getKClass(CustomType), _this__u8e3s4.el_1);
|
|
3491
3523
|
// Inline function 'kotlin.contracts.contract' call
|
|
3492
3524
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseField.<anonymous>.<anonymous>' call
|
|
3493
|
-
_this__u8e3s4.
|
|
3525
|
+
raise.ch(_this__u8e3s4.gl());
|
|
3494
3526
|
tmp$ret$3 = tmp3_also;
|
|
3495
3527
|
var tmp4_nel = tmp$ret$3;
|
|
3496
3528
|
tmp$ret$4 = nonEmptyListOf(tmp4_nel, []);
|
|
@@ -3532,46 +3564,86 @@
|
|
|
3532
3564
|
return tmp$ret$11;
|
|
3533
3565
|
}
|
|
3534
3566
|
function parseFieldValue(_this__u8e3s4, $this, wsType, value) {
|
|
3535
|
-
var tmp$ret$
|
|
3536
|
-
// Inline function '
|
|
3567
|
+
var tmp$ret$7;
|
|
3568
|
+
// Inline function 'arrow.core.raise.either' call
|
|
3569
|
+
var tmp$ret$6;
|
|
3570
|
+
// Inline function 'arrow.core.raise.fold' call
|
|
3537
3571
|
// Inline function 'kotlin.contracts.contract' call
|
|
3538
|
-
var tmp$ret$
|
|
3539
|
-
// Inline function '
|
|
3540
|
-
_this__u8e3s4.bl();
|
|
3541
|
-
log(_this__u8e3s4.zk_1, $this);
|
|
3542
|
-
var tmp$ret$0;
|
|
3543
|
-
// Inline function 'kotlin.also' call
|
|
3544
|
-
var tmp = _this__u8e3s4.zk_1.pk_1;
|
|
3545
|
-
var tmp0_also = tmp instanceof Brackets;
|
|
3572
|
+
var tmp$ret$5;
|
|
3573
|
+
// Inline function 'arrow.core.raise.fold' call
|
|
3546
3574
|
// Inline function 'kotlin.contracts.contract' call
|
|
3547
|
-
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
3575
|
+
var raise = new DefaultRaise(false);
|
|
3576
|
+
var tmp;
|
|
3577
|
+
try {
|
|
3578
|
+
var tmp$ret$2;
|
|
3579
|
+
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
3580
|
+
var tmp$ret$1;
|
|
3581
|
+
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseFieldValue.<anonymous>' call
|
|
3582
|
+
raise.ch(_this__u8e3s4.gl());
|
|
3583
|
+
log(_this__u8e3s4.el_1, $this);
|
|
3584
|
+
var tmp$ret$0;
|
|
3585
|
+
// Inline function 'kotlin.also' call
|
|
3586
|
+
var tmp_0 = _this__u8e3s4.el_1.sk_1;
|
|
3587
|
+
var tmp0_also = tmp_0 instanceof Brackets;
|
|
3588
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
3589
|
+
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseFieldValue.<anonymous>.<anonymous>' call
|
|
3590
|
+
if (tmp0_also)
|
|
3591
|
+
raise.ch(_this__u8e3s4.gl());
|
|
3592
|
+
tmp$ret$0 = tmp0_also;
|
|
3593
|
+
var isIterable = tmp$ret$0;
|
|
3594
|
+
var tmp0_subject = wsType;
|
|
3595
|
+
var tmp_1;
|
|
3596
|
+
if (tmp0_subject instanceof WsString) {
|
|
3597
|
+
tmp_1 = new Primitive(Type_String_getInstance(), isIterable);
|
|
3560
3598
|
} else {
|
|
3561
|
-
if (tmp0_subject instanceof
|
|
3562
|
-
|
|
3599
|
+
if (tmp0_subject instanceof WsInteger) {
|
|
3600
|
+
tmp_1 = new Primitive(Type_Integer_getInstance(), isIterable);
|
|
3563
3601
|
} else {
|
|
3564
|
-
if (tmp0_subject instanceof
|
|
3565
|
-
|
|
3602
|
+
if (tmp0_subject instanceof WsBoolean) {
|
|
3603
|
+
tmp_1 = new Primitive(Type_Boolean_getInstance(), isIterable);
|
|
3566
3604
|
} else {
|
|
3567
|
-
|
|
3605
|
+
if (tmp0_subject instanceof CustomType) {
|
|
3606
|
+
tmp_1 = new Custom(value, isIterable);
|
|
3607
|
+
} else {
|
|
3608
|
+
noWhenBranchMatchedException();
|
|
3609
|
+
}
|
|
3568
3610
|
}
|
|
3569
3611
|
}
|
|
3570
3612
|
}
|
|
3613
|
+
tmp$ret$1 = tmp_1;
|
|
3614
|
+
tmp$ret$2 = tmp$ret$1;
|
|
3615
|
+
var res = tmp$ret$2;
|
|
3616
|
+
raise.zg();
|
|
3617
|
+
var tmp$ret$3;
|
|
3618
|
+
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
3619
|
+
tmp$ret$3 = new Right(res);
|
|
3620
|
+
tmp = tmp$ret$3;
|
|
3621
|
+
} catch ($p) {
|
|
3622
|
+
var tmp_2;
|
|
3623
|
+
if ($p instanceof CancellationException) {
|
|
3624
|
+
var e = $p;
|
|
3625
|
+
raise.zg();
|
|
3626
|
+
var tmp$ret$4;
|
|
3627
|
+
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
3628
|
+
var tmp1__anonymous__uwfjfc = raisedOrRethrow(e, raise);
|
|
3629
|
+
tmp$ret$4 = new Left(tmp1__anonymous__uwfjfc);
|
|
3630
|
+
tmp_2 = tmp$ret$4;
|
|
3631
|
+
} else {
|
|
3632
|
+
if ($p instanceof Error) {
|
|
3633
|
+
var e_0 = $p;
|
|
3634
|
+
raise.zg();
|
|
3635
|
+
var tmp0__anonymous__q1qw7t = nonFatalOrThrow(e_0);
|
|
3636
|
+
throw tmp0__anonymous__q1qw7t;
|
|
3637
|
+
} else {
|
|
3638
|
+
throw $p;
|
|
3639
|
+
}
|
|
3640
|
+
}
|
|
3641
|
+
tmp = tmp_2;
|
|
3571
3642
|
}
|
|
3572
|
-
tmp$ret$
|
|
3573
|
-
tmp$ret$
|
|
3574
|
-
|
|
3643
|
+
tmp$ret$5 = tmp;
|
|
3644
|
+
tmp$ret$6 = tmp$ret$5;
|
|
3645
|
+
tmp$ret$7 = tmp$ret$6;
|
|
3646
|
+
return tmp$ret$7;
|
|
3575
3647
|
}
|
|
3576
3648
|
function parseEnumTypeDeclaration(_this__u8e3s4, $this) {
|
|
3577
3649
|
var tmp$ret$8;
|
|
@@ -3589,21 +3661,21 @@
|
|
|
3589
3661
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
3590
3662
|
var tmp$ret$2;
|
|
3591
3663
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseEnumTypeDeclaration.<anonymous>' call
|
|
3592
|
-
_this__u8e3s4.
|
|
3593
|
-
log(_this__u8e3s4.
|
|
3594
|
-
var tmp0_subject = _this__u8e3s4.
|
|
3664
|
+
raise.ch(_this__u8e3s4.gl());
|
|
3665
|
+
log(_this__u8e3s4.el_1, $this);
|
|
3666
|
+
var tmp0_subject = _this__u8e3s4.el_1.sk_1;
|
|
3595
3667
|
var tmp_0;
|
|
3596
3668
|
if (tmp0_subject instanceof CustomType) {
|
|
3597
|
-
tmp_0 = raise.ch(parseEnumTypeDefinition(_this__u8e3s4, $this, _this__u8e3s4.
|
|
3669
|
+
tmp_0 = raise.ch(parseEnumTypeDefinition(_this__u8e3s4, $this, _this__u8e3s4.el_1.tk_1));
|
|
3598
3670
|
} else {
|
|
3599
3671
|
var tmp$ret$1;
|
|
3600
3672
|
// Inline function 'arrow.core.nel' call
|
|
3601
3673
|
var tmp$ret$0;
|
|
3602
3674
|
// Inline function 'kotlin.also' call
|
|
3603
|
-
var tmp0_also = new WrongTokenException(getKClass(CustomType), _this__u8e3s4.
|
|
3675
|
+
var tmp0_also = new WrongTokenException(getKClass(CustomType), _this__u8e3s4.el_1);
|
|
3604
3676
|
// Inline function 'kotlin.contracts.contract' call
|
|
3605
3677
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseEnumTypeDeclaration.<anonymous>.<anonymous>' call
|
|
3606
|
-
_this__u8e3s4.
|
|
3678
|
+
raise.ch(_this__u8e3s4.gl());
|
|
3607
3679
|
tmp$ret$0 = tmp0_also;
|
|
3608
3680
|
var tmp1_nel = tmp$ret$0;
|
|
3609
3681
|
tmp$ret$1 = nonEmptyListOf(tmp1_nel, []);
|
|
@@ -3660,11 +3732,11 @@
|
|
|
3660
3732
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
3661
3733
|
var tmp$ret$5;
|
|
3662
3734
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseEnumTypeDefinition.<anonymous>' call
|
|
3663
|
-
_this__u8e3s4.
|
|
3664
|
-
log(_this__u8e3s4.
|
|
3735
|
+
raise.ch(_this__u8e3s4.gl());
|
|
3736
|
+
log(_this__u8e3s4.el_1, $this);
|
|
3665
3737
|
var tmp$ret$4;
|
|
3666
3738
|
// Inline function 'kotlin.also' call
|
|
3667
|
-
var tmp0_subject = _this__u8e3s4.
|
|
3739
|
+
var tmp0_subject = _this__u8e3s4.el_1.sk_1;
|
|
3668
3740
|
var tmp_0;
|
|
3669
3741
|
if (tmp0_subject instanceof LeftCurly) {
|
|
3670
3742
|
tmp_0 = new Enum_0(typeName, raise.ch(parseEnumTypeEntries(_this__u8e3s4, $this)));
|
|
@@ -3673,10 +3745,10 @@
|
|
|
3673
3745
|
// Inline function 'arrow.core.nel' call
|
|
3674
3746
|
var tmp$ret$0;
|
|
3675
3747
|
// Inline function 'kotlin.also' call
|
|
3676
|
-
var tmp0_also = new WrongTokenException(getKClass(LeftCurly), _this__u8e3s4.
|
|
3748
|
+
var tmp0_also = new WrongTokenException(getKClass(LeftCurly), _this__u8e3s4.el_1);
|
|
3677
3749
|
// Inline function 'kotlin.contracts.contract' call
|
|
3678
3750
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseEnumTypeDefinition.<anonymous>.<anonymous>' call
|
|
3679
|
-
_this__u8e3s4.
|
|
3751
|
+
raise.ch(_this__u8e3s4.gl());
|
|
3680
3752
|
tmp$ret$0 = tmp0_also;
|
|
3681
3753
|
var tmp1_nel = tmp$ret$0;
|
|
3682
3754
|
tmp$ret$1 = nonEmptyListOf(tmp1_nel, []);
|
|
@@ -3685,18 +3757,18 @@
|
|
|
3685
3757
|
var tmp2_also = tmp_0;
|
|
3686
3758
|
// Inline function 'kotlin.contracts.contract' call
|
|
3687
3759
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseEnumTypeDefinition.<anonymous>.<anonymous>' call
|
|
3688
|
-
var tmp0_subject_0 = _this__u8e3s4.
|
|
3689
|
-
if (tmp0_subject_0 instanceof RightCurly)
|
|
3690
|
-
_this__u8e3s4.
|
|
3691
|
-
|
|
3760
|
+
var tmp0_subject_0 = _this__u8e3s4.el_1.sk_1;
|
|
3761
|
+
if (tmp0_subject_0 instanceof RightCurly)
|
|
3762
|
+
raise.ch(_this__u8e3s4.gl());
|
|
3763
|
+
else {
|
|
3692
3764
|
var tmp$ret$3;
|
|
3693
3765
|
// Inline function 'arrow.core.nel' call
|
|
3694
3766
|
var tmp$ret$2;
|
|
3695
3767
|
// Inline function 'kotlin.also' call
|
|
3696
|
-
var tmp0_also_0 = new WrongTokenException(getKClass(RightCurly), _this__u8e3s4.
|
|
3768
|
+
var tmp0_also_0 = new WrongTokenException(getKClass(RightCurly), _this__u8e3s4.el_1);
|
|
3697
3769
|
// Inline function 'kotlin.contracts.contract' call
|
|
3698
3770
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseEnumTypeDefinition.<anonymous>.<anonymous>.<anonymous>' call
|
|
3699
|
-
_this__u8e3s4.
|
|
3771
|
+
raise.ch(_this__u8e3s4.gl());
|
|
3700
3772
|
tmp$ret$2 = tmp0_also_0;
|
|
3701
3773
|
var tmp1_nel_0 = tmp$ret$2;
|
|
3702
3774
|
tmp$ret$3 = nonEmptyListOf(tmp1_nel_0, []);
|
|
@@ -3754,9 +3826,9 @@
|
|
|
3754
3826
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
3755
3827
|
var tmp$ret$7;
|
|
3756
3828
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseEnumTypeEntries.<anonymous>' call
|
|
3757
|
-
_this__u8e3s4.
|
|
3758
|
-
log(_this__u8e3s4.
|
|
3759
|
-
var tmp0_subject = _this__u8e3s4.
|
|
3829
|
+
raise.ch(_this__u8e3s4.gl());
|
|
3830
|
+
log(_this__u8e3s4.el_1, $this);
|
|
3831
|
+
var tmp0_subject = _this__u8e3s4.el_1.sk_1;
|
|
3760
3832
|
var tmp_0;
|
|
3761
3833
|
if (tmp0_subject instanceof CustomType) {
|
|
3762
3834
|
var tmp$ret$4;
|
|
@@ -3767,28 +3839,28 @@
|
|
|
3767
3839
|
var tmp0_apply = tmp$ret$0;
|
|
3768
3840
|
// Inline function 'kotlin.contracts.contract' call
|
|
3769
3841
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseEnumTypeEntries.<anonymous>.<anonymous>' call
|
|
3770
|
-
tmp0_apply.a(_this__u8e3s4.
|
|
3771
|
-
_this__u8e3s4.
|
|
3772
|
-
while (equals(_this__u8e3s4.
|
|
3773
|
-
_this__u8e3s4.
|
|
3774
|
-
var tmp0_subject_0 = _this__u8e3s4.
|
|
3842
|
+
tmp0_apply.a(_this__u8e3s4.el_1.tk_1);
|
|
3843
|
+
raise.ch(_this__u8e3s4.gl());
|
|
3844
|
+
while (equals(_this__u8e3s4.el_1.sk_1, Comma_getInstance())) {
|
|
3845
|
+
raise.ch(_this__u8e3s4.gl());
|
|
3846
|
+
var tmp0_subject_0 = _this__u8e3s4.el_1.sk_1;
|
|
3775
3847
|
if (tmp0_subject_0 instanceof CustomType) {
|
|
3776
3848
|
var tmp$ret$1;
|
|
3777
3849
|
// Inline function 'kotlin.also' call
|
|
3778
|
-
var tmp0_also = tmp0_apply.a(_this__u8e3s4.
|
|
3850
|
+
var tmp0_also = tmp0_apply.a(_this__u8e3s4.el_1.tk_1);
|
|
3779
3851
|
// Inline function 'kotlin.contracts.contract' call
|
|
3780
3852
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseEnumTypeEntries.<anonymous>.<anonymous>.<anonymous>' call
|
|
3781
|
-
_this__u8e3s4.
|
|
3853
|
+
raise.ch(_this__u8e3s4.gl());
|
|
3782
3854
|
tmp$ret$1 = tmp0_also;
|
|
3783
3855
|
} else {
|
|
3784
3856
|
var tmp$ret$3;
|
|
3785
3857
|
// Inline function 'arrow.core.nel' call
|
|
3786
3858
|
var tmp$ret$2;
|
|
3787
3859
|
// Inline function 'kotlin.also' call
|
|
3788
|
-
var tmp1_also = new WrongTokenException(getKClass(CustomType), _this__u8e3s4.
|
|
3860
|
+
var tmp1_also = new WrongTokenException(getKClass(CustomType), _this__u8e3s4.el_1);
|
|
3789
3861
|
// Inline function 'kotlin.contracts.contract' call
|
|
3790
3862
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseEnumTypeEntries.<anonymous>.<anonymous>.<anonymous>' call
|
|
3791
|
-
_this__u8e3s4.
|
|
3863
|
+
raise.ch(_this__u8e3s4.gl());
|
|
3792
3864
|
tmp$ret$2 = tmp1_also;
|
|
3793
3865
|
var tmp2_nel = tmp$ret$2;
|
|
3794
3866
|
tmp$ret$3 = nonEmptyListOf(tmp2_nel, []);
|
|
@@ -3802,10 +3874,10 @@
|
|
|
3802
3874
|
// Inline function 'arrow.core.nel' call
|
|
3803
3875
|
var tmp$ret$5;
|
|
3804
3876
|
// Inline function 'kotlin.also' call
|
|
3805
|
-
var tmp1_also_0 = new WrongTokenException(getKClass(CustomType), _this__u8e3s4.
|
|
3877
|
+
var tmp1_also_0 = new WrongTokenException(getKClass(CustomType), _this__u8e3s4.el_1);
|
|
3806
3878
|
// Inline function 'kotlin.contracts.contract' call
|
|
3807
3879
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseEnumTypeEntries.<anonymous>.<anonymous>' call
|
|
3808
|
-
_this__u8e3s4.
|
|
3880
|
+
raise.ch(_this__u8e3s4.gl());
|
|
3809
3881
|
tmp$ret$5 = tmp1_also_0;
|
|
3810
3882
|
var tmp2_nel_0 = tmp$ret$5;
|
|
3811
3883
|
tmp$ret$6 = nonEmptyListOf(tmp2_nel_0, []);
|
|
@@ -3862,21 +3934,21 @@
|
|
|
3862
3934
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
3863
3935
|
var tmp$ret$2;
|
|
3864
3936
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseRefinedTypeDeclaration.<anonymous>' call
|
|
3865
|
-
_this__u8e3s4.
|
|
3866
|
-
log(_this__u8e3s4.
|
|
3867
|
-
var tmp0_subject = _this__u8e3s4.
|
|
3937
|
+
raise.ch(_this__u8e3s4.gl());
|
|
3938
|
+
log(_this__u8e3s4.el_1, $this);
|
|
3939
|
+
var tmp0_subject = _this__u8e3s4.el_1.sk_1;
|
|
3868
3940
|
var tmp_0;
|
|
3869
3941
|
if (tmp0_subject instanceof CustomType) {
|
|
3870
|
-
tmp_0 = raise.ch(parseCustomRegex(_this__u8e3s4, $this, _this__u8e3s4.
|
|
3942
|
+
tmp_0 = raise.ch(parseCustomRegex(_this__u8e3s4, $this, _this__u8e3s4.el_1.tk_1));
|
|
3871
3943
|
} else {
|
|
3872
3944
|
var tmp$ret$1;
|
|
3873
3945
|
// Inline function 'arrow.core.nel' call
|
|
3874
3946
|
var tmp$ret$0;
|
|
3875
3947
|
// Inline function 'kotlin.also' call
|
|
3876
|
-
var tmp0_also = new WrongTokenException(getKClass(CustomType), _this__u8e3s4.
|
|
3948
|
+
var tmp0_also = new WrongTokenException(getKClass(CustomType), _this__u8e3s4.el_1);
|
|
3877
3949
|
// Inline function 'kotlin.contracts.contract' call
|
|
3878
3950
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseRefinedTypeDeclaration.<anonymous>.<anonymous>' call
|
|
3879
|
-
_this__u8e3s4.
|
|
3951
|
+
raise.ch(_this__u8e3s4.gl());
|
|
3880
3952
|
tmp$ret$0 = tmp0_also;
|
|
3881
3953
|
var tmp1_nel = tmp$ret$0;
|
|
3882
3954
|
tmp$ret$1 = nonEmptyListOf(tmp1_nel, []);
|
|
@@ -3933,23 +4005,23 @@
|
|
|
3933
4005
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
3934
4006
|
var tmp$ret$3;
|
|
3935
4007
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseCustomRegex.<anonymous>' call
|
|
3936
|
-
_this__u8e3s4.
|
|
3937
|
-
log(_this__u8e3s4.
|
|
4008
|
+
raise.ch(_this__u8e3s4.gl());
|
|
4009
|
+
log(_this__u8e3s4.el_1, $this);
|
|
3938
4010
|
var tmp$ret$2;
|
|
3939
4011
|
// Inline function 'kotlin.also' call
|
|
3940
|
-
var tmp0_subject = _this__u8e3s4.
|
|
4012
|
+
var tmp0_subject = _this__u8e3s4.el_1.sk_1;
|
|
3941
4013
|
var tmp_0;
|
|
3942
4014
|
if (tmp0_subject instanceof CustomRegex) {
|
|
3943
|
-
tmp_0 = new Refined(typeName, new Validator(_this__u8e3s4.
|
|
4015
|
+
tmp_0 = new Refined(typeName, new Validator(_this__u8e3s4.el_1.tk_1));
|
|
3944
4016
|
} else {
|
|
3945
4017
|
var tmp$ret$1;
|
|
3946
4018
|
// Inline function 'arrow.core.nel' call
|
|
3947
4019
|
var tmp$ret$0;
|
|
3948
4020
|
// Inline function 'kotlin.also' call
|
|
3949
|
-
var tmp0_also = new WrongTokenException(getKClass(CustomRegex), _this__u8e3s4.
|
|
4021
|
+
var tmp0_also = new WrongTokenException(getKClass(CustomRegex), _this__u8e3s4.el_1);
|
|
3950
4022
|
// Inline function 'kotlin.contracts.contract' call
|
|
3951
4023
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseCustomRegex.<anonymous>.<anonymous>' call
|
|
3952
|
-
_this__u8e3s4.
|
|
4024
|
+
raise.ch(_this__u8e3s4.gl());
|
|
3953
4025
|
tmp$ret$0 = tmp0_also;
|
|
3954
4026
|
var tmp1_nel = tmp$ret$0;
|
|
3955
4027
|
tmp$ret$1 = nonEmptyListOf(tmp1_nel, []);
|
|
@@ -3958,7 +4030,7 @@
|
|
|
3958
4030
|
var tmp2_also = tmp_0;
|
|
3959
4031
|
// Inline function 'kotlin.contracts.contract' call
|
|
3960
4032
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseCustomRegex.<anonymous>.<anonymous>' call
|
|
3961
|
-
_this__u8e3s4.
|
|
4033
|
+
raise.ch(_this__u8e3s4.gl());
|
|
3962
4034
|
tmp$ret$2 = tmp2_also;
|
|
3963
4035
|
tmp$ret$3 = tmp$ret$2;
|
|
3964
4036
|
tmp$ret$4 = tmp$ret$3;
|
|
@@ -3996,7 +4068,7 @@
|
|
|
3996
4068
|
return tmp$ret$9;
|
|
3997
4069
|
}
|
|
3998
4070
|
function log(_this__u8e3s4, $this) {
|
|
3999
|
-
return $this.mh_1.ih('Parsing ' + _this__u8e3s4.
|
|
4071
|
+
return $this.mh_1.ih('Parsing ' + _this__u8e3s4.sk_1 + ' at line ' + _this__u8e3s4.uk_1.vk_1 + ' position ' + _this__u8e3s4.uk_1.wk_1);
|
|
4000
4072
|
}
|
|
4001
4073
|
function Parser(logger) {
|
|
4002
4074
|
this.mh_1 = logger;
|
|
@@ -4012,7 +4084,7 @@
|
|
|
4012
4084
|
var element = tmp0_iterator.e();
|
|
4013
4085
|
var tmp$ret$0;
|
|
4014
4086
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parse.<anonymous>' call
|
|
4015
|
-
var tmp = element.
|
|
4087
|
+
var tmp = element.sk_1;
|
|
4016
4088
|
tmp$ret$0 = isInterface(tmp, WhiteSpace);
|
|
4017
4089
|
if (!tmp$ret$0) {
|
|
4018
4090
|
tmp0_filterNotTo.a(element);
|
|
@@ -4036,7 +4108,7 @@
|
|
|
4036
4108
|
// Inline function 'kotlin.contracts.contract' call
|
|
4037
4109
|
var tmp$ret$0;
|
|
4038
4110
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TokenProvider.printTokens.<anonymous>.<anonymous>' call
|
|
4039
|
-
tmp$ret$0 = "Eating: '" + tmp0_safe_receiver.
|
|
4111
|
+
tmp$ret$0 = "Eating: '" + tmp0_safe_receiver.tk_1 + "', ";
|
|
4040
4112
|
tmp$ret$1 = tmp$ret$0;
|
|
4041
4113
|
tmp = tmp$ret$1;
|
|
4042
4114
|
}
|
|
@@ -4044,14 +4116,14 @@
|
|
|
4044
4116
|
var prev = tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs;
|
|
4045
4117
|
var tmp$ret$3;
|
|
4046
4118
|
// Inline function 'kotlin.run' call
|
|
4047
|
-
var tmp0_run = $this.
|
|
4119
|
+
var tmp0_run = $this.el_1;
|
|
4048
4120
|
// Inline function 'kotlin.contracts.contract' call
|
|
4049
4121
|
var tmp$ret$2;
|
|
4050
4122
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TokenProvider.printTokens.<anonymous>.<anonymous>' call
|
|
4051
|
-
tmp$ret$2 = "Current: '" + tmp0_run.
|
|
4123
|
+
tmp$ret$2 = "Current: '" + tmp0_run.tk_1 + "'";
|
|
4052
4124
|
tmp$ret$3 = tmp$ret$2;
|
|
4053
4125
|
var curr = tmp$ret$3;
|
|
4054
|
-
var tmp2_safe_receiver = $this.
|
|
4126
|
+
var tmp2_safe_receiver = $this.fl_1;
|
|
4055
4127
|
var tmp_0;
|
|
4056
4128
|
if (tmp2_safe_receiver == null) {
|
|
4057
4129
|
tmp_0 = null;
|
|
@@ -4061,13 +4133,13 @@
|
|
|
4061
4133
|
// Inline function 'kotlin.contracts.contract' call
|
|
4062
4134
|
var tmp$ret$4;
|
|
4063
4135
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TokenProvider.printTokens.<anonymous>.<anonymous>' call
|
|
4064
|
-
tmp$ret$4 = ", Next: '" + tmp2_safe_receiver.
|
|
4136
|
+
tmp$ret$4 = ", Next: '" + tmp2_safe_receiver.tk_1 + "'";
|
|
4065
4137
|
tmp$ret$5 = tmp$ret$4;
|
|
4066
4138
|
tmp_0 = tmp$ret$5;
|
|
4067
4139
|
}
|
|
4068
4140
|
var tmp3_elvis_lhs = tmp_0;
|
|
4069
4141
|
var next = tmp3_elvis_lhs == null ? '' : tmp3_elvis_lhs;
|
|
4070
|
-
$this.
|
|
4142
|
+
$this.cl_1.ih(prev + curr + next);
|
|
4071
4143
|
tmp$ret$6 = Unit_getInstance();
|
|
4072
4144
|
return tmp$ret$6;
|
|
4073
4145
|
}
|
|
@@ -4087,7 +4159,7 @@
|
|
|
4087
4159
|
var tmp0_success = Companion_getInstance();
|
|
4088
4160
|
var tmp$ret$0;
|
|
4089
4161
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TokenProvider.nextToken.<anonymous>' call
|
|
4090
|
-
tmp$ret$0 = $this.
|
|
4162
|
+
tmp$ret$0 = $this.dl_1.e();
|
|
4091
4163
|
var tmp1_success = tmp$ret$0;
|
|
4092
4164
|
tmp$ret$1 = _Result___init__impl__xyqfz8(tmp1_success);
|
|
4093
4165
|
tmp = tmp$ret$1;
|
|
@@ -4118,8 +4190,8 @@
|
|
|
4118
4190
|
return tmp$ret$4;
|
|
4119
4191
|
}
|
|
4120
4192
|
function TokenProvider(logger, tokenIterator) {
|
|
4121
|
-
this.
|
|
4122
|
-
this.
|
|
4193
|
+
this.cl_1 = logger;
|
|
4194
|
+
this.dl_1 = tokenIterator;
|
|
4123
4195
|
var tmp = this;
|
|
4124
4196
|
var tmp0_elvis_lhs = nextToken(this);
|
|
4125
4197
|
var tmp_0;
|
|
@@ -4128,26 +4200,76 @@
|
|
|
4128
4200
|
} else {
|
|
4129
4201
|
tmp_0 = tmp0_elvis_lhs;
|
|
4130
4202
|
}
|
|
4131
|
-
tmp.
|
|
4132
|
-
this.
|
|
4203
|
+
tmp.el_1 = tmp_0;
|
|
4204
|
+
this.fl_1 = nextToken(this);
|
|
4133
4205
|
printTokens$default(this);
|
|
4134
4206
|
}
|
|
4135
4207
|
protoOf(TokenProvider).d = function () {
|
|
4136
|
-
return !(this.
|
|
4208
|
+
return !(this.fl_1 == null);
|
|
4137
4209
|
};
|
|
4138
|
-
protoOf(TokenProvider).
|
|
4139
|
-
var
|
|
4140
|
-
|
|
4141
|
-
var
|
|
4142
|
-
|
|
4143
|
-
|
|
4144
|
-
|
|
4145
|
-
|
|
4146
|
-
|
|
4210
|
+
protoOf(TokenProvider).gl = function () {
|
|
4211
|
+
var tmp$ret$6;
|
|
4212
|
+
// Inline function 'arrow.core.raise.either' call
|
|
4213
|
+
var tmp$ret$5;
|
|
4214
|
+
// Inline function 'arrow.core.raise.fold' call
|
|
4215
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
4216
|
+
var tmp$ret$4;
|
|
4217
|
+
// Inline function 'arrow.core.raise.fold' call
|
|
4218
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
4219
|
+
var raise = new DefaultRaise(false);
|
|
4220
|
+
var tmp;
|
|
4221
|
+
try {
|
|
4222
|
+
var tmp$ret$1;
|
|
4223
|
+
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4224
|
+
var previousToken = this.el_1;
|
|
4225
|
+
var tmp_0 = this;
|
|
4226
|
+
var tmp0_elvis_lhs = this.fl_1;
|
|
4227
|
+
var tmp_1;
|
|
4228
|
+
if (tmp0_elvis_lhs == null) {
|
|
4229
|
+
var tmp$ret$0;
|
|
4230
|
+
// Inline function 'arrow.core.nel' call
|
|
4231
|
+
var tmp0_nel = new NextException(previousToken.uk_1);
|
|
4232
|
+
tmp$ret$0 = nonEmptyListOf(tmp0_nel, []);
|
|
4233
|
+
raise.bh(tmp$ret$0);
|
|
4234
|
+
} else {
|
|
4235
|
+
tmp_1 = tmp0_elvis_lhs;
|
|
4236
|
+
}
|
|
4237
|
+
tmp_0.el_1 = tmp_1;
|
|
4238
|
+
this.fl_1 = nextToken(this);
|
|
4239
|
+
printTokens(this, previousToken);
|
|
4240
|
+
tmp$ret$1 = Unit_getInstance();
|
|
4241
|
+
var res = tmp$ret$1;
|
|
4242
|
+
raise.zg();
|
|
4243
|
+
var tmp$ret$2;
|
|
4244
|
+
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4245
|
+
tmp$ret$2 = new Right(Unit_getInstance());
|
|
4246
|
+
tmp = tmp$ret$2;
|
|
4247
|
+
} catch ($p) {
|
|
4248
|
+
var tmp_2;
|
|
4249
|
+
if ($p instanceof CancellationException) {
|
|
4250
|
+
var e = $p;
|
|
4251
|
+
raise.zg();
|
|
4252
|
+
var tmp$ret$3;
|
|
4253
|
+
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4254
|
+
var tmp1__anonymous__uwfjfc = raisedOrRethrow(e, raise);
|
|
4255
|
+
tmp$ret$3 = new Left(tmp1__anonymous__uwfjfc);
|
|
4256
|
+
tmp_2 = tmp$ret$3;
|
|
4257
|
+
} else {
|
|
4258
|
+
if ($p instanceof Error) {
|
|
4259
|
+
var e_0 = $p;
|
|
4260
|
+
raise.zg();
|
|
4261
|
+
var tmp0__anonymous__q1qw7t = nonFatalOrThrow(e_0);
|
|
4262
|
+
throw tmp0__anonymous__q1qw7t;
|
|
4263
|
+
} else {
|
|
4264
|
+
throw $p;
|
|
4265
|
+
}
|
|
4266
|
+
}
|
|
4267
|
+
tmp = tmp_2;
|
|
4147
4268
|
}
|
|
4148
|
-
tmp
|
|
4149
|
-
|
|
4150
|
-
|
|
4269
|
+
tmp$ret$4 = tmp;
|
|
4270
|
+
tmp$ret$5 = tmp$ret$4;
|
|
4271
|
+
tmp$ret$6 = tmp$ret$5;
|
|
4272
|
+
return tmp$ret$6;
|
|
4151
4273
|
};
|
|
4152
4274
|
function toProvider(_this__u8e3s4, logger) {
|
|
4153
4275
|
return new TokenProvider(logger, _this__u8e3s4.c());
|
|
@@ -4155,15 +4277,15 @@
|
|
|
4155
4277
|
function IdxAndLength(idx, length) {
|
|
4156
4278
|
idx = idx === VOID ? 0 : idx;
|
|
4157
4279
|
length = length === VOID ? 0 : length;
|
|
4158
|
-
this.
|
|
4159
|
-
this.
|
|
4280
|
+
this.hl_1 = idx;
|
|
4281
|
+
this.il_1 = length;
|
|
4160
4282
|
}
|
|
4161
4283
|
protoOf(IdxAndLength).toString = function () {
|
|
4162
|
-
return 'IdxAndLength(idx=' + this.
|
|
4284
|
+
return 'IdxAndLength(idx=' + this.hl_1 + ', length=' + this.il_1 + ')';
|
|
4163
4285
|
};
|
|
4164
4286
|
protoOf(IdxAndLength).hashCode = function () {
|
|
4165
|
-
var result = this.
|
|
4166
|
-
result = imul(result, 31) + this.
|
|
4287
|
+
var result = this.hl_1;
|
|
4288
|
+
result = imul(result, 31) + this.il_1 | 0;
|
|
4167
4289
|
return result;
|
|
4168
4290
|
};
|
|
4169
4291
|
protoOf(IdxAndLength).equals = function (other) {
|
|
@@ -4172,9 +4294,9 @@
|
|
|
4172
4294
|
if (!(other instanceof IdxAndLength))
|
|
4173
4295
|
return false;
|
|
4174
4296
|
var tmp0_other_with_cast = other instanceof IdxAndLength ? other : THROW_CCE();
|
|
4175
|
-
if (!(this.
|
|
4297
|
+
if (!(this.hl_1 === tmp0_other_with_cast.hl_1))
|
|
4176
4298
|
return false;
|
|
4177
|
-
if (!(this.
|
|
4299
|
+
if (!(this.il_1 === tmp0_other_with_cast.il_1))
|
|
4178
4300
|
return false;
|
|
4179
4301
|
return true;
|
|
4180
4302
|
};
|
|
@@ -4182,26 +4304,26 @@
|
|
|
4182
4304
|
line = line === VOID ? 1 : line;
|
|
4183
4305
|
position = position === VOID ? 1 : position;
|
|
4184
4306
|
idxAndLength = idxAndLength === VOID ? new IdxAndLength() : idxAndLength;
|
|
4185
|
-
this.
|
|
4186
|
-
this.
|
|
4187
|
-
this.
|
|
4307
|
+
this.vk_1 = line;
|
|
4308
|
+
this.wk_1 = position;
|
|
4309
|
+
this.xk_1 = idxAndLength;
|
|
4188
4310
|
}
|
|
4189
|
-
protoOf(Coordinates).
|
|
4311
|
+
protoOf(Coordinates).jl = function (line, position, idxAndLength) {
|
|
4190
4312
|
return new Coordinates(line, position, idxAndLength);
|
|
4191
4313
|
};
|
|
4192
|
-
protoOf(Coordinates).
|
|
4193
|
-
line = line === VOID ? this.
|
|
4194
|
-
position = position === VOID ? this.
|
|
4195
|
-
idxAndLength = idxAndLength === VOID ? this.
|
|
4196
|
-
return $super === VOID ? this.
|
|
4314
|
+
protoOf(Coordinates).kl = function (line, position, idxAndLength, $super) {
|
|
4315
|
+
line = line === VOID ? this.vk_1 : line;
|
|
4316
|
+
position = position === VOID ? this.wk_1 : position;
|
|
4317
|
+
idxAndLength = idxAndLength === VOID ? this.xk_1 : idxAndLength;
|
|
4318
|
+
return $super === VOID ? this.jl(line, position, idxAndLength) : $super.jl.call(this, line, position, idxAndLength);
|
|
4197
4319
|
};
|
|
4198
4320
|
protoOf(Coordinates).toString = function () {
|
|
4199
|
-
return 'Coordinates(line=' + this.
|
|
4321
|
+
return 'Coordinates(line=' + this.vk_1 + ', position=' + this.wk_1 + ', idxAndLength=' + this.xk_1 + ')';
|
|
4200
4322
|
};
|
|
4201
4323
|
protoOf(Coordinates).hashCode = function () {
|
|
4202
|
-
var result = this.
|
|
4203
|
-
result = imul(result, 31) + this.
|
|
4204
|
-
result = imul(result, 31) + this.
|
|
4324
|
+
var result = this.vk_1;
|
|
4325
|
+
result = imul(result, 31) + this.wk_1 | 0;
|
|
4326
|
+
result = imul(result, 31) + this.xk_1.hashCode() | 0;
|
|
4205
4327
|
return result;
|
|
4206
4328
|
};
|
|
4207
4329
|
protoOf(Coordinates).equals = function (other) {
|
|
@@ -4210,35 +4332,35 @@
|
|
|
4210
4332
|
if (!(other instanceof Coordinates))
|
|
4211
4333
|
return false;
|
|
4212
4334
|
var tmp0_other_with_cast = other instanceof Coordinates ? other : THROW_CCE();
|
|
4213
|
-
if (!(this.
|
|
4335
|
+
if (!(this.vk_1 === tmp0_other_with_cast.vk_1))
|
|
4214
4336
|
return false;
|
|
4215
|
-
if (!(this.
|
|
4337
|
+
if (!(this.wk_1 === tmp0_other_with_cast.wk_1))
|
|
4216
4338
|
return false;
|
|
4217
|
-
if (!this.
|
|
4339
|
+
if (!this.xk_1.equals(tmp0_other_with_cast.xk_1))
|
|
4218
4340
|
return false;
|
|
4219
4341
|
return true;
|
|
4220
4342
|
};
|
|
4221
4343
|
function Token(type, value, coordinates) {
|
|
4222
|
-
this.
|
|
4223
|
-
this.
|
|
4224
|
-
this.
|
|
4344
|
+
this.sk_1 = type;
|
|
4345
|
+
this.tk_1 = value;
|
|
4346
|
+
this.uk_1 = coordinates;
|
|
4225
4347
|
}
|
|
4226
|
-
protoOf(Token).
|
|
4348
|
+
protoOf(Token).ll = function (type, value, coordinates) {
|
|
4227
4349
|
return new Token(type, value, coordinates);
|
|
4228
4350
|
};
|
|
4229
|
-
protoOf(Token).
|
|
4230
|
-
type = type === VOID ? this.
|
|
4231
|
-
value = value === VOID ? this.
|
|
4232
|
-
coordinates = coordinates === VOID ? this.
|
|
4233
|
-
return $super === VOID ? this.
|
|
4351
|
+
protoOf(Token).zk = function (type, value, coordinates, $super) {
|
|
4352
|
+
type = type === VOID ? this.sk_1 : type;
|
|
4353
|
+
value = value === VOID ? this.tk_1 : value;
|
|
4354
|
+
coordinates = coordinates === VOID ? this.uk_1 : coordinates;
|
|
4355
|
+
return $super === VOID ? this.ll(type, value, coordinates) : $super.ll.call(this, type, value, coordinates);
|
|
4234
4356
|
};
|
|
4235
4357
|
protoOf(Token).toString = function () {
|
|
4236
|
-
return 'Token(type=' + this.
|
|
4358
|
+
return 'Token(type=' + this.sk_1 + ', value=' + this.tk_1 + ', coordinates=' + this.uk_1 + ')';
|
|
4237
4359
|
};
|
|
4238
4360
|
protoOf(Token).hashCode = function () {
|
|
4239
|
-
var result = hashCode(this.
|
|
4240
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
4241
|
-
result = imul(result, 31) + this.
|
|
4361
|
+
var result = hashCode(this.sk_1);
|
|
4362
|
+
result = imul(result, 31) + getStringHashCode(this.tk_1) | 0;
|
|
4363
|
+
result = imul(result, 31) + this.uk_1.hashCode() | 0;
|
|
4242
4364
|
return result;
|
|
4243
4365
|
};
|
|
4244
4366
|
protoOf(Token).equals = function (other) {
|
|
@@ -4247,19 +4369,19 @@
|
|
|
4247
4369
|
if (!(other instanceof Token))
|
|
4248
4370
|
return false;
|
|
4249
4371
|
var tmp0_other_with_cast = other instanceof Token ? other : THROW_CCE();
|
|
4250
|
-
if (!equals(this.
|
|
4372
|
+
if (!equals(this.sk_1, tmp0_other_with_cast.sk_1))
|
|
4251
4373
|
return false;
|
|
4252
|
-
if (!(this.
|
|
4374
|
+
if (!(this.tk_1 === tmp0_other_with_cast.tk_1))
|
|
4253
4375
|
return false;
|
|
4254
|
-
if (!this.
|
|
4376
|
+
if (!this.uk_1.equals(tmp0_other_with_cast.uk_1))
|
|
4255
4377
|
return false;
|
|
4256
4378
|
return true;
|
|
4257
4379
|
};
|
|
4258
4380
|
function plus_1(_this__u8e3s4, length) {
|
|
4259
|
-
return new IdxAndLength(_this__u8e3s4.
|
|
4381
|
+
return new IdxAndLength(_this__u8e3s4.hl_1 + length | 0, length);
|
|
4260
4382
|
}
|
|
4261
4383
|
function plus_2(_this__u8e3s4, length) {
|
|
4262
|
-
return _this__u8e3s4.
|
|
4384
|
+
return _this__u8e3s4.kl(VOID, _this__u8e3s4.wk_1 + length | 0, plus_1(_this__u8e3s4.xk_1, length));
|
|
4263
4385
|
}
|
|
4264
4386
|
function tokenize(_this__u8e3s4, source) {
|
|
4265
4387
|
var tmp$ret$1;
|
|
@@ -4281,7 +4403,7 @@
|
|
|
4281
4403
|
var tmp0_subject = type;
|
|
4282
4404
|
var tmp;
|
|
4283
4405
|
if (tmp0_subject instanceof NewLine) {
|
|
4284
|
-
tmp = new Coordinates(_this__u8e3s4.
|
|
4406
|
+
tmp = new Coordinates(_this__u8e3s4.vk_1 + 1 | 0, VOID, plus_1(_this__u8e3s4.xk_1, value.length));
|
|
4285
4407
|
} else {
|
|
4286
4408
|
tmp = plus_2(_this__u8e3s4, value.length);
|
|
4287
4409
|
}
|
|
@@ -4289,7 +4411,7 @@
|
|
|
4289
4411
|
}
|
|
4290
4412
|
function lastCoordinates(_this__u8e3s4) {
|
|
4291
4413
|
var tmp0_safe_receiver = lastOrNull(_this__u8e3s4);
|
|
4292
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
4414
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.uk_1;
|
|
4293
4415
|
return tmp1_elvis_lhs == null ? new Coordinates() : tmp1_elvis_lhs;
|
|
4294
4416
|
}
|
|
4295
4417
|
function tokenize_0(_this__u8e3s4, source, tokens) {
|
|
@@ -4299,7 +4421,7 @@
|
|
|
4299
4421
|
$l$1: do {
|
|
4300
4422
|
$l$0: do {
|
|
4301
4423
|
var token = findToken($this, lastCoordinates(tokens_0), source_0);
|
|
4302
|
-
var newSource = removePrefix(source_0, token.
|
|
4424
|
+
var newSource = removePrefix(source_0, token.tk_1);
|
|
4303
4425
|
var newTokens = plus_0(tokens_0, token);
|
|
4304
4426
|
var tmp;
|
|
4305
4427
|
var tmp$ret$0;
|
|
@@ -4525,7 +4647,7 @@
|
|
|
4525
4647
|
}
|
|
4526
4648
|
function EndOfProgram() {
|
|
4527
4649
|
EndOfProgram_instance = this;
|
|
4528
|
-
this.
|
|
4650
|
+
this.nl_1 = 'EOP';
|
|
4529
4651
|
}
|
|
4530
4652
|
var EndOfProgram_instance;
|
|
4531
4653
|
function EndOfProgram_getInstance() {
|
|
@@ -4558,7 +4680,7 @@
|
|
|
4558
4680
|
}
|
|
4559
4681
|
return tmp;
|
|
4560
4682
|
};
|
|
4561
|
-
protoOf(Logger).
|
|
4683
|
+
protoOf(Logger).rk = function (s, block) {
|
|
4562
4684
|
var tmp$ret$1;
|
|
4563
4685
|
// Inline function 'kotlin.run' call
|
|
4564
4686
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -4581,72 +4703,72 @@
|
|
|
4581
4703
|
}
|
|
4582
4704
|
}
|
|
4583
4705
|
//region block: post-declaration
|
|
4584
|
-
protoOf(JavaEmitter).
|
|
4585
|
-
protoOf(JavaEmitter).
|
|
4586
|
-
protoOf(JavaEmitter).
|
|
4587
|
-
protoOf(JavaEmitter).
|
|
4706
|
+
protoOf(JavaEmitter).tj = withLogging;
|
|
4707
|
+
protoOf(JavaEmitter).uj = withLogging_0;
|
|
4708
|
+
protoOf(JavaEmitter).vj = withLogging_1;
|
|
4709
|
+
protoOf(JavaEmitter).wj = withLogging_2;
|
|
4588
4710
|
protoOf(JavaEmitter).th = withLogging_3;
|
|
4589
|
-
protoOf(JavaEmitter).
|
|
4590
|
-
protoOf(JavaEmitter).
|
|
4591
|
-
protoOf(JavaEmitter).
|
|
4592
|
-
protoOf(JavaEmitter).
|
|
4711
|
+
protoOf(JavaEmitter).yj = withLogging_4;
|
|
4712
|
+
protoOf(JavaEmitter).ak = withLogging_5;
|
|
4713
|
+
protoOf(JavaEmitter).bk = withLogging_6;
|
|
4714
|
+
protoOf(JavaEmitter).dk = withLogging_7;
|
|
4593
4715
|
protoOf(JavaEmitter).ri = withLogging_8;
|
|
4594
|
-
protoOf(KotlinEmitter).
|
|
4595
|
-
protoOf(KotlinEmitter).
|
|
4596
|
-
protoOf(KotlinEmitter).
|
|
4597
|
-
protoOf(KotlinEmitter).
|
|
4716
|
+
protoOf(KotlinEmitter).tj = withLogging;
|
|
4717
|
+
protoOf(KotlinEmitter).uj = withLogging_0;
|
|
4718
|
+
protoOf(KotlinEmitter).vj = withLogging_1;
|
|
4719
|
+
protoOf(KotlinEmitter).wj = withLogging_2;
|
|
4598
4720
|
protoOf(KotlinEmitter).th = withLogging_3;
|
|
4599
|
-
protoOf(KotlinEmitter).
|
|
4600
|
-
protoOf(KotlinEmitter).
|
|
4601
|
-
protoOf(KotlinEmitter).
|
|
4602
|
-
protoOf(KotlinEmitter).
|
|
4721
|
+
protoOf(KotlinEmitter).yj = withLogging_4;
|
|
4722
|
+
protoOf(KotlinEmitter).ak = withLogging_5;
|
|
4723
|
+
protoOf(KotlinEmitter).bk = withLogging_6;
|
|
4724
|
+
protoOf(KotlinEmitter).dk = withLogging_7;
|
|
4603
4725
|
protoOf(KotlinEmitter).ri = withLogging_8;
|
|
4604
|
-
protoOf(ScalaEmitter).
|
|
4605
|
-
protoOf(ScalaEmitter).
|
|
4606
|
-
protoOf(ScalaEmitter).
|
|
4607
|
-
protoOf(ScalaEmitter).
|
|
4726
|
+
protoOf(ScalaEmitter).tj = withLogging;
|
|
4727
|
+
protoOf(ScalaEmitter).uj = withLogging_0;
|
|
4728
|
+
protoOf(ScalaEmitter).vj = withLogging_1;
|
|
4729
|
+
protoOf(ScalaEmitter).wj = withLogging_2;
|
|
4608
4730
|
protoOf(ScalaEmitter).th = withLogging_3;
|
|
4609
|
-
protoOf(ScalaEmitter).
|
|
4610
|
-
protoOf(ScalaEmitter).
|
|
4611
|
-
protoOf(ScalaEmitter).
|
|
4612
|
-
protoOf(ScalaEmitter).
|
|
4613
|
-
protoOf(TypeScriptEmitter).
|
|
4614
|
-
protoOf(TypeScriptEmitter).
|
|
4615
|
-
protoOf(TypeScriptEmitter).
|
|
4616
|
-
protoOf(TypeScriptEmitter).
|
|
4731
|
+
protoOf(ScalaEmitter).yj = withLogging_4;
|
|
4732
|
+
protoOf(ScalaEmitter).ak = withLogging_5;
|
|
4733
|
+
protoOf(ScalaEmitter).bk = withLogging_6;
|
|
4734
|
+
protoOf(ScalaEmitter).dk = withLogging_7;
|
|
4735
|
+
protoOf(TypeScriptEmitter).tj = withLogging;
|
|
4736
|
+
protoOf(TypeScriptEmitter).uj = withLogging_0;
|
|
4737
|
+
protoOf(TypeScriptEmitter).vj = withLogging_1;
|
|
4738
|
+
protoOf(TypeScriptEmitter).wj = withLogging_2;
|
|
4617
4739
|
protoOf(TypeScriptEmitter).th = withLogging_3;
|
|
4618
|
-
protoOf(TypeScriptEmitter).
|
|
4619
|
-
protoOf(TypeScriptEmitter).
|
|
4620
|
-
protoOf(TypeScriptEmitter).
|
|
4621
|
-
protoOf(TypeScriptEmitter).
|
|
4622
|
-
protoOf(WirespecEmitter).
|
|
4623
|
-
protoOf(WirespecEmitter).
|
|
4624
|
-
protoOf(WirespecEmitter).
|
|
4625
|
-
protoOf(WirespecEmitter).
|
|
4740
|
+
protoOf(TypeScriptEmitter).yj = withLogging_4;
|
|
4741
|
+
protoOf(TypeScriptEmitter).ak = withLogging_5;
|
|
4742
|
+
protoOf(TypeScriptEmitter).bk = withLogging_6;
|
|
4743
|
+
protoOf(TypeScriptEmitter).dk = withLogging_7;
|
|
4744
|
+
protoOf(WirespecEmitter).tj = withLogging;
|
|
4745
|
+
protoOf(WirespecEmitter).uj = withLogging_0;
|
|
4746
|
+
protoOf(WirespecEmitter).vj = withLogging_1;
|
|
4747
|
+
protoOf(WirespecEmitter).wj = withLogging_2;
|
|
4626
4748
|
protoOf(WirespecEmitter).th = withLogging_3;
|
|
4627
|
-
protoOf(WirespecEmitter).
|
|
4628
|
-
protoOf(WirespecEmitter).
|
|
4629
|
-
protoOf(WirespecEmitter).
|
|
4630
|
-
protoOf(WirespecEmitter).
|
|
4631
|
-
protoOf(WsTypeDef).
|
|
4632
|
-
protoOf(WsEnumTypeDef).
|
|
4633
|
-
protoOf(WsRefinedTypeDef).
|
|
4634
|
-
protoOf(WhiteSpaceExceptNewLine).
|
|
4635
|
-
protoOf(NewLine).
|
|
4636
|
-
protoOf(LeftCurly).
|
|
4637
|
-
protoOf(Colon).
|
|
4638
|
-
protoOf(Comma).
|
|
4639
|
-
protoOf(QuestionMark).
|
|
4640
|
-
protoOf(Brackets).
|
|
4641
|
-
protoOf(WsString).
|
|
4642
|
-
protoOf(WsInteger).
|
|
4643
|
-
protoOf(WsBoolean).
|
|
4644
|
-
protoOf(RightCurly).
|
|
4645
|
-
protoOf(CustomValue).
|
|
4646
|
-
protoOf(CustomType).
|
|
4647
|
-
protoOf(CustomRegex).
|
|
4648
|
-
protoOf(Invalid).
|
|
4649
|
-
protoOf(EndOfProgram).
|
|
4749
|
+
protoOf(WirespecEmitter).yj = withLogging_4;
|
|
4750
|
+
protoOf(WirespecEmitter).ak = withLogging_5;
|
|
4751
|
+
protoOf(WirespecEmitter).bk = withLogging_6;
|
|
4752
|
+
protoOf(WirespecEmitter).dk = withLogging_7;
|
|
4753
|
+
protoOf(WsTypeDef).ml = name;
|
|
4754
|
+
protoOf(WsEnumTypeDef).ml = name;
|
|
4755
|
+
protoOf(WsRefinedTypeDef).ml = name;
|
|
4756
|
+
protoOf(WhiteSpaceExceptNewLine).ml = name;
|
|
4757
|
+
protoOf(NewLine).ml = name;
|
|
4758
|
+
protoOf(LeftCurly).ml = name;
|
|
4759
|
+
protoOf(Colon).ml = name;
|
|
4760
|
+
protoOf(Comma).ml = name;
|
|
4761
|
+
protoOf(QuestionMark).ml = name;
|
|
4762
|
+
protoOf(Brackets).ml = name;
|
|
4763
|
+
protoOf(WsString).ml = name;
|
|
4764
|
+
protoOf(WsInteger).ml = name;
|
|
4765
|
+
protoOf(WsBoolean).ml = name;
|
|
4766
|
+
protoOf(RightCurly).ml = name;
|
|
4767
|
+
protoOf(CustomValue).ml = name;
|
|
4768
|
+
protoOf(CustomType).ml = name;
|
|
4769
|
+
protoOf(CustomRegex).ml = name;
|
|
4770
|
+
protoOf(Invalid).ml = name;
|
|
4771
|
+
protoOf(EndOfProgram).ml = name;
|
|
4650
4772
|
//endregion
|
|
4651
4773
|
//region block: init
|
|
4652
4774
|
DEFAULT_PACKAGE_NAME = 'community.flock.wirespec.generated';
|