@flock/wirespec 0.8.23 → 0.8.25
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-openapi-bindings.js +38 -12
- package/kotlin-openapi-bindings.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js +5 -6
- package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.map +1 -1
- package/package.json +1 -1
- package/wirespec-src-compiler-cli.js +1 -1
- package/wirespec-src-compiler-core.js +260 -219
- package/wirespec-src-compiler-core.js.map +1 -1
- package/wirespec-src-compiler-lib.js +1 -1
- package/wirespec-src-openapi.js +133 -88
- package/wirespec-src-openapi.js.map +1 -1
|
@@ -94,25 +94,25 @@
|
|
|
94
94
|
setMetadataFor(Wirespec, 'Wirespec', objectMeta);
|
|
95
95
|
setMetadataFor(Companion, 'Companion', objectMeta);
|
|
96
96
|
function withLogging(_this__u8e3s4, logger, block) {
|
|
97
|
-
return logger.ol('Emitting Definition: Endpoint', block);
|
|
98
|
-
}
|
|
99
|
-
setMetadataFor(EnumDefinitionEmitterLogger, 'EnumDefinitionEmitterLogger', interfaceMeta);
|
|
100
|
-
function withLogging_0(_this__u8e3s4, logger, block) {
|
|
101
97
|
return logger.ol('Emitting Definition: Type', block);
|
|
102
98
|
}
|
|
103
|
-
function
|
|
99
|
+
function withLogging_0(_this__u8e3s4, logger, block) {
|
|
104
100
|
return logger.ol('Emitting Definition: Type Shape', block);
|
|
105
101
|
}
|
|
106
|
-
function
|
|
102
|
+
function withLogging_1(_this__u8e3s4, logger, block) {
|
|
107
103
|
return logger.ol('Emitting Definition: Type Shape Field', block);
|
|
108
104
|
}
|
|
109
|
-
function
|
|
105
|
+
function withLogging_2(_this__u8e3s4, logger, block) {
|
|
110
106
|
return logger.ol('Emitting Definition: Type Shape Field Key', block);
|
|
111
107
|
}
|
|
112
|
-
function
|
|
108
|
+
function withLogging_3(_this__u8e3s4, logger, block) {
|
|
113
109
|
return logger.ol('Emitting Definition: Type Shape Field Value', block);
|
|
114
110
|
}
|
|
115
111
|
setMetadataFor(TypeDefinitionEmitterLogger, 'TypeDefinitionEmitterLogger', interfaceMeta);
|
|
112
|
+
function withLogging_4(_this__u8e3s4, logger, block) {
|
|
113
|
+
return logger.ol('Emitting Definition: Endpoint', block);
|
|
114
|
+
}
|
|
115
|
+
setMetadataFor(EnumDefinitionEmitterLogger, 'EnumDefinitionEmitterLogger', interfaceMeta);
|
|
116
116
|
function withLogging_5(_this__u8e3s4, logger, block) {
|
|
117
117
|
return logger.ol('Emitting Definition: Refined', block);
|
|
118
118
|
}
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
return logger.ol('Emitting Definition: Endpoint Segment', block);
|
|
128
128
|
}
|
|
129
129
|
setMetadataFor(EndpointDefinitionEmitterLogger, 'EndpointDefinitionEmitterLogger', interfaceMeta);
|
|
130
|
-
setMetadataFor(Emitter, 'Emitter', classMeta, VOID, [
|
|
130
|
+
setMetadataFor(Emitter, 'Emitter', classMeta, VOID, [TypeDefinitionEmitterLogger, EnumDefinitionEmitterLogger, RefinedTypeDefinitionEmitterLogger, EndpointDefinitionEmitterLogger]);
|
|
131
131
|
setMetadataFor(JavaEmitter, 'JavaEmitter', classMeta, Emitter);
|
|
132
132
|
setMetadataFor(Companion_0, 'Companion', objectMeta);
|
|
133
133
|
setMetadataFor(KotlinEmitter, 'KotlinEmitter', classMeta, Emitter);
|
|
@@ -211,6 +211,7 @@
|
|
|
211
211
|
setMetadataFor(Invalid, 'Invalid', objectMeta, VOID, [TokenType]);
|
|
212
212
|
setMetadataFor(StartOfProgram, 'StartOfProgram', objectMeta, VOID, [WhiteSpace]);
|
|
213
213
|
setMetadataFor(EndOfProgram, 'EndOfProgram', objectMeta, VOID, [TokenType]);
|
|
214
|
+
setMetadataFor(WsNumber, 'WsNumber', objectMeta, VOID, [WirespecType]);
|
|
214
215
|
setMetadataFor(Logger, 'Logger', classMeta);
|
|
215
216
|
setMetadataFor(noLogger$1, VOID, classMeta, Logger);
|
|
216
217
|
//endregion
|
|
@@ -617,7 +618,7 @@
|
|
|
617
618
|
Companion_getInstance_3();
|
|
618
619
|
Companion_getInstance_3();
|
|
619
620
|
Companion_getInstance_3();
|
|
620
|
-
return trimMargin('\n |' + ' ' + 'static <B, Res extends
|
|
621
|
+
return trimMargin('\n |' + ' ' + 'static <B, Res extends Response<?>> Function<Wirespec.Response<B>, Res> RESPONSE_MAPPER(Wirespec.ContentMapper<B> contentMapper) {\n |return response -> {\n |' + tmp_0 + '\n |' + ' ' + ' ' + 'throw new IllegalStateException("Unknown response type");\n |' + ' ' + '};\n |}\n ');
|
|
621
622
|
}
|
|
622
623
|
function emitResponseMapperCondition(_this__u8e3s4, $this) {
|
|
623
624
|
var tmp;
|
|
@@ -878,6 +879,9 @@
|
|
|
878
879
|
tmp_0 = 'Integer';
|
|
879
880
|
break;
|
|
880
881
|
case 2:
|
|
882
|
+
tmp_0 = 'Double';
|
|
883
|
+
break;
|
|
884
|
+
case 3:
|
|
881
885
|
tmp_0 = 'Boolean';
|
|
882
886
|
break;
|
|
883
887
|
default:
|
|
@@ -895,6 +899,8 @@
|
|
|
895
899
|
}
|
|
896
900
|
function JavaEmitter$emit$lambda_3(this$0, $this_emit) {
|
|
897
901
|
return function () {
|
|
902
|
+
var tmp$ret$3;
|
|
903
|
+
// Inline function 'kotlin.let' call
|
|
898
904
|
var tmp$ret$1;
|
|
899
905
|
// Inline function 'kotlin.let' call
|
|
900
906
|
var tmp0_let = emitSymbol($this_emit, this$0);
|
|
@@ -903,12 +909,18 @@
|
|
|
903
909
|
// Inline function 'community.flock.wirespec.compiler.core.emit.JavaEmitter.emit.<anonymous>.<anonymous>' call
|
|
904
910
|
tmp$ret$0 = $this_emit.cj() ? 'java.util.List<' + tmp0_let + '>' : tmp0_let;
|
|
905
911
|
tmp$ret$1 = tmp$ret$0;
|
|
906
|
-
|
|
912
|
+
var tmp1_let = tmp$ret$1;
|
|
913
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
914
|
+
var tmp$ret$2;
|
|
915
|
+
// Inline function 'community.flock.wirespec.compiler.core.emit.JavaEmitter.emit.<anonymous>.<anonymous>' call
|
|
916
|
+
tmp$ret$2 = $this_emit.zj() ? 'java.util.Map<String, ' + tmp1_let + '>' : tmp1_let;
|
|
917
|
+
tmp$ret$3 = tmp$ret$2;
|
|
918
|
+
return tmp$ret$3;
|
|
907
919
|
};
|
|
908
920
|
}
|
|
909
921
|
function invoke$sanitizeEnum(_this__u8e3s4) {
|
|
910
922
|
// Inline function 'kotlin.let' call
|
|
911
|
-
var tmp0_let = replace(_this__u8e3s4, '-', '_');
|
|
923
|
+
var tmp0_let = replace(replace(replace(replace(_this__u8e3s4, '/', '_'), ' ', '_'), '-', '_'), '\u2013', '_');
|
|
912
924
|
// Inline function 'kotlin.contracts.contract' call
|
|
913
925
|
// Inline function 'community.flock.wirespec.compiler.core.emit.JavaEmitter.JavaEmitter$emit$lambda.invoke.sanitizeEnum.<anonymous>' call
|
|
914
926
|
return isDigit(first(tmp0_let)) ? '_' + tmp0_let : tmp0_let;
|
|
@@ -920,7 +932,7 @@
|
|
|
920
932
|
return function () {
|
|
921
933
|
Companion_getInstance_3();
|
|
922
934
|
Companion_getInstance_3();
|
|
923
|
-
var tmp = this$0.jj($this_emit.
|
|
935
|
+
var tmp = this$0.jj($this_emit.ak_1);
|
|
924
936
|
Companion_getInstance_3();
|
|
925
937
|
Companion_getInstance_3();
|
|
926
938
|
Companion_getInstance_3();
|
|
@@ -931,27 +943,27 @@
|
|
|
931
943
|
Companion_getInstance_3();
|
|
932
944
|
Companion_getInstance_3();
|
|
933
945
|
var toString = trimMargin('\n |' + ' ' + '@Override\n |' + ' ' + 'public String toString() {\n |' + ' ' + ' ' + 'return label;\n |' + ' ' + '}\n ');
|
|
934
|
-
var tmp_0 = this$0.jj($this_emit.
|
|
946
|
+
var tmp_0 = this$0.jj($this_emit.ak_1);
|
|
935
947
|
Companion_getInstance_3();
|
|
936
948
|
Companion_getInstance_3();
|
|
937
949
|
var tmp_1 = ',\n' + ' ';
|
|
938
|
-
return 'public enum ' + tmp_0 + ' {\n' + ' ' + joinToString($this_emit.
|
|
950
|
+
return 'public enum ' + tmp_0 + ' {\n' + ' ' + joinToString($this_emit.bk_1, tmp_1, VOID, VOID, VOID, VOID, JavaEmitter$emit$lambda$lambda_0) + ';\n' + body + '\n' + toString + '\n}\n';
|
|
939
951
|
};
|
|
940
952
|
}
|
|
941
953
|
function JavaEmitter$emit$lambda_5(this$0, $this_emit) {
|
|
942
954
|
return function () {
|
|
943
|
-
var tmp = this$0.jj($this_emit.
|
|
955
|
+
var tmp = this$0.jj($this_emit.ck_1);
|
|
944
956
|
Companion_getInstance_3();
|
|
945
957
|
Companion_getInstance_3();
|
|
946
|
-
var tmp_0 = this$0.
|
|
958
|
+
var tmp_0 = this$0.ek($this_emit.dk_1);
|
|
947
959
|
Companion_getInstance_3();
|
|
948
|
-
return trimMargin('public record ' + tmp + '(String value) {\n |' + ' ' + 'static void validate(' + $this_emit.
|
|
960
|
+
return trimMargin('public record ' + tmp + '(String value) {\n |' + ' ' + 'static void validate(' + $this_emit.ck_1 + ' record) {\n |' + ' ' + tmp_0 + '\n |' + ' ' + '}\n |}\n |');
|
|
949
961
|
};
|
|
950
962
|
}
|
|
951
963
|
function JavaEmitter$emit$lambda_6($this_emit) {
|
|
952
964
|
return function () {
|
|
953
965
|
Companion_getInstance_3();
|
|
954
|
-
return ' ' + 'java.util.regex.Pattern.compile(' + $this_emit.
|
|
966
|
+
return ' ' + 'java.util.regex.Pattern.compile(' + $this_emit.fk_1 + ').matcher(record.value).find();';
|
|
955
967
|
};
|
|
956
968
|
}
|
|
957
969
|
function JavaEmitter$emit$lambda$lambda_1(this$0, $this_emit) {
|
|
@@ -1057,7 +1069,7 @@
|
|
|
1057
1069
|
var tmp_6 = tmp$ret$10;
|
|
1058
1070
|
var tmp_7 = joinToString(tmp_6, '\n', VOID, VOID, VOID, VOID, JavaEmitter$emit$lambda$lambda_4(this$0));
|
|
1059
1071
|
Companion_getInstance_3();
|
|
1060
|
-
return trimMargin('public interface ' + $this_emit.ri_1 + ' {\n |' + ' ' + 'static String PATH = "' + tmp + '";\n |' + tmp_0 + '\n |' + ' ' + 'sealed interface Request<T> extends Wirespec.Request<T> {}\n |' + tmp_1 + '\n |' + ' ' + 'sealed interface Response<T> extends Wirespec.Response<T> {}\n |' + tmp_3 + '\n |' + tmp_5 + '\n |' + tmp_7 + '\n |' + ' ' + 'public CompletableFuture<Response<?>> ' + Companion_getInstance_3().
|
|
1072
|
+
return trimMargin('public interface ' + $this_emit.ri_1 + ' {\n |' + ' ' + 'static String PATH = "' + tmp + '";\n |' + tmp_0 + '\n |' + ' ' + 'sealed interface Request<T> extends Wirespec.Request<T> {}\n |' + tmp_1 + '\n |' + ' ' + 'sealed interface Response<T> extends Wirespec.Response<T> {}\n |' + tmp_3 + '\n |' + tmp_5 + '\n |' + tmp_7 + '\n |' + ' ' + 'public CompletableFuture<Response<?>> ' + Companion_getInstance_3().gk($this_emit.ri_1) + '(Request<?> request);\n |}\n |');
|
|
1061
1073
|
};
|
|
1062
1074
|
}
|
|
1063
1075
|
function JavaEmitter$emitResponseMapper$lambda(this$0) {
|
|
@@ -1073,7 +1085,7 @@
|
|
|
1073
1085
|
var tmp0_subject = $this_emit;
|
|
1074
1086
|
var tmp;
|
|
1075
1087
|
if (tmp0_subject instanceof Literal) {
|
|
1076
|
-
tmp = '"' + $this_emit.
|
|
1088
|
+
tmp = '"' + $this_emit.hk_1 + '"';
|
|
1077
1089
|
} else {
|
|
1078
1090
|
if (tmp0_subject instanceof Param) {
|
|
1079
1091
|
tmp = $this_emit.ej_1.rj_1;
|
|
@@ -1100,7 +1112,7 @@
|
|
|
1100
1112
|
tmp = '{' + it.ej_1.rj_1 + '}';
|
|
1101
1113
|
} else {
|
|
1102
1114
|
if (it instanceof Literal) {
|
|
1103
|
-
tmp = it.
|
|
1115
|
+
tmp = it.hk_1;
|
|
1104
1116
|
} else {
|
|
1105
1117
|
noWhenBranchMatchedException();
|
|
1106
1118
|
}
|
|
@@ -1174,38 +1186,38 @@
|
|
|
1174
1186
|
}
|
|
1175
1187
|
return tmp0_mapTo;
|
|
1176
1188
|
};
|
|
1177
|
-
protoOf(JavaEmitter).
|
|
1178
|
-
return this.
|
|
1189
|
+
protoOf(JavaEmitter).ik = function (_this__u8e3s4) {
|
|
1190
|
+
return this.jk(_this__u8e3s4, this.ai_1, JavaEmitter$emit$lambda(this, _this__u8e3s4));
|
|
1179
1191
|
};
|
|
1180
1192
|
protoOf(JavaEmitter).kj = function (_this__u8e3s4) {
|
|
1181
|
-
return this.
|
|
1193
|
+
return this.kk(_this__u8e3s4, this.ai_1, JavaEmitter$emit$lambda_0(_this__u8e3s4, this));
|
|
1182
1194
|
};
|
|
1183
1195
|
protoOf(JavaEmitter).lj = function (_this__u8e3s4) {
|
|
1184
|
-
return this.
|
|
1196
|
+
return this.lk(_this__u8e3s4, this.ai_1, JavaEmitter$emit$lambda_1(_this__u8e3s4, this));
|
|
1185
1197
|
};
|
|
1186
1198
|
protoOf(JavaEmitter).qj = function (_this__u8e3s4) {
|
|
1187
|
-
return this.
|
|
1199
|
+
return this.mk(_this__u8e3s4, this.ai_1, JavaEmitter$emit$lambda_2(this, _this__u8e3s4));
|
|
1188
1200
|
};
|
|
1189
1201
|
protoOf(JavaEmitter).qi = function (_this__u8e3s4) {
|
|
1190
1202
|
return this.hi(_this__u8e3s4, this.ai_1, JavaEmitter$emit$lambda_3(this, _this__u8e3s4));
|
|
1191
1203
|
};
|
|
1192
|
-
protoOf(JavaEmitter).
|
|
1193
|
-
return this.
|
|
1204
|
+
protoOf(JavaEmitter).nk = function (_this__u8e3s4) {
|
|
1205
|
+
return this.ok(_this__u8e3s4, this.ai_1, JavaEmitter$emit$lambda_4(this, _this__u8e3s4));
|
|
1194
1206
|
};
|
|
1195
|
-
protoOf(JavaEmitter).
|
|
1196
|
-
return this.
|
|
1207
|
+
protoOf(JavaEmitter).pk = function (_this__u8e3s4) {
|
|
1208
|
+
return this.qk(_this__u8e3s4, this.ai_1, JavaEmitter$emit$lambda_5(this, _this__u8e3s4));
|
|
1197
1209
|
};
|
|
1198
|
-
protoOf(JavaEmitter).
|
|
1199
|
-
return this.
|
|
1210
|
+
protoOf(JavaEmitter).ek = function (_this__u8e3s4) {
|
|
1211
|
+
return this.rk(_this__u8e3s4, this.ai_1, JavaEmitter$emit$lambda_6(_this__u8e3s4));
|
|
1200
1212
|
};
|
|
1201
|
-
protoOf(JavaEmitter).
|
|
1202
|
-
return this.
|
|
1213
|
+
protoOf(JavaEmitter).sk = function (_this__u8e3s4) {
|
|
1214
|
+
return this.tk(_this__u8e3s4, this.ai_1, JavaEmitter$emit$lambda_7(_this__u8e3s4, this));
|
|
1203
1215
|
};
|
|
1204
1216
|
protoOf(JavaEmitter).sj = function (_this__u8e3s4) {
|
|
1205
1217
|
return Companion_getInstance_0().gj_1.j1(_this__u8e3s4) ? '_' + _this__u8e3s4 : _this__u8e3s4;
|
|
1206
1218
|
};
|
|
1207
1219
|
protoOf(JavaEmitter).jj = function (_this__u8e3s4) {
|
|
1208
|
-
return replace(_this__u8e3s4, '.', '');
|
|
1220
|
+
return replace(replace(_this__u8e3s4, '.', ''), ' ', '_');
|
|
1209
1221
|
};
|
|
1210
1222
|
function emitSymbol_0(_this__u8e3s4, $this) {
|
|
1211
1223
|
return $this.hi(_this__u8e3s4, $this.ai_1, KotlinEmitter$emitSymbol$lambda($this, _this__u8e3s4));
|
|
@@ -1313,7 +1325,7 @@
|
|
|
1313
1325
|
while (tmp0_iterator.d()) {
|
|
1314
1326
|
var element = tmp0_iterator.e();
|
|
1315
1327
|
// Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emitResponseMapper.<anonymous>' call
|
|
1316
|
-
if (Companion_getInstance_3().
|
|
1328
|
+
if (Companion_getInstance_3().zk(element.zi_1)) {
|
|
1317
1329
|
tmp0_filterTo.a(element);
|
|
1318
1330
|
}
|
|
1319
1331
|
}
|
|
@@ -1339,7 +1351,7 @@
|
|
|
1339
1351
|
while (tmp0_iterator_1.d()) {
|
|
1340
1352
|
var element_0 = tmp0_iterator_1.e();
|
|
1341
1353
|
// Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emitResponseMapper.<anonymous>' call
|
|
1342
|
-
if (!Companion_getInstance_3().
|
|
1354
|
+
if (!Companion_getInstance_3().zk(element_0.zi_1)) {
|
|
1343
1355
|
tmp0_filterTo_0.a(element_0);
|
|
1344
1356
|
}
|
|
1345
1357
|
}
|
|
@@ -1380,7 +1392,7 @@
|
|
|
1380
1392
|
// Inline function 'kotlin.contracts.contract' call
|
|
1381
1393
|
var tmp_0;
|
|
1382
1394
|
// Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emitResponseMapperCondition.<anonymous>' call
|
|
1383
|
-
if (Companion_getInstance_3().
|
|
1395
|
+
if (Companion_getInstance_3().zk(tmp0_takeIf)) {
|
|
1384
1396
|
tmp_0 = tmp0_takeIf;
|
|
1385
1397
|
} else {
|
|
1386
1398
|
tmp_0 = null;
|
|
@@ -1401,7 +1413,7 @@
|
|
|
1401
1413
|
// Inline function 'kotlin.contracts.contract' call
|
|
1402
1414
|
var tmp_4;
|
|
1403
1415
|
// Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emitResponseMapperCondition.<anonymous>' call
|
|
1404
|
-
if (!Companion_getInstance_3().
|
|
1416
|
+
if (!Companion_getInstance_3().zk(tmp1_takeIf)) {
|
|
1405
1417
|
tmp_4 = tmp1_takeIf;
|
|
1406
1418
|
} else {
|
|
1407
1419
|
tmp_4 = null;
|
|
@@ -1426,7 +1438,7 @@
|
|
|
1426
1438
|
// Inline function 'kotlin.contracts.contract' call
|
|
1427
1439
|
var tmp_6;
|
|
1428
1440
|
// Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emitResponseMapperCondition.<anonymous>' call
|
|
1429
|
-
if (Companion_getInstance_3().
|
|
1441
|
+
if (Companion_getInstance_3().zk(tmp2_takeIf)) {
|
|
1430
1442
|
tmp_6 = tmp2_takeIf;
|
|
1431
1443
|
} else {
|
|
1432
1444
|
tmp_6 = null;
|
|
@@ -1461,7 +1473,7 @@
|
|
|
1461
1473
|
// Inline function 'kotlin.contracts.contract' call
|
|
1462
1474
|
var tmp_14;
|
|
1463
1475
|
// Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emitResponseMapperCondition.<anonymous>' call
|
|
1464
|
-
if (!Companion_getInstance_3().
|
|
1476
|
+
if (!Companion_getInstance_3().zk(tmp3_takeIf)) {
|
|
1465
1477
|
tmp_14 = tmp3_takeIf;
|
|
1466
1478
|
} else {
|
|
1467
1479
|
tmp_14 = null;
|
|
@@ -1481,7 +1493,7 @@
|
|
|
1481
1493
|
}
|
|
1482
1494
|
function Companion_0() {
|
|
1483
1495
|
Companion_instance_0 = this;
|
|
1484
|
-
this.
|
|
1496
|
+
this.al_1 = listOf(['as', 'break', 'class', 'continue', 'do', 'else', 'false', 'for', 'fun', 'if', 'in', 'interface', 'is', 'null', 'object', 'package', 'return', 'super', 'this', 'throw', 'true', 'try', 'typealias', 'typeof', 'val', 'var', 'when', 'while']);
|
|
1485
1497
|
}
|
|
1486
1498
|
var Companion_instance_0;
|
|
1487
1499
|
function Companion_getInstance_1() {
|
|
@@ -1557,6 +1569,9 @@
|
|
|
1557
1569
|
tmp_0 = 'Int';
|
|
1558
1570
|
break;
|
|
1559
1571
|
case 2:
|
|
1572
|
+
tmp_0 = 'Double';
|
|
1573
|
+
break;
|
|
1574
|
+
case 3:
|
|
1560
1575
|
tmp_0 = 'Boolean';
|
|
1561
1576
|
break;
|
|
1562
1577
|
default:
|
|
@@ -1588,7 +1603,7 @@
|
|
|
1588
1603
|
// Inline function 'kotlin.contracts.contract' call
|
|
1589
1604
|
var tmp$ret$2;
|
|
1590
1605
|
// Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emit.<anonymous>.<anonymous>' call
|
|
1591
|
-
tmp$ret$2 = $this_emit.
|
|
1606
|
+
tmp$ret$2 = $this_emit.zj() ? 'Map<String, ' + tmp1_let + '>' : tmp1_let;
|
|
1592
1607
|
tmp$ret$3 = tmp$ret$2;
|
|
1593
1608
|
return tmp$ret$3;
|
|
1594
1609
|
};
|
|
@@ -1607,11 +1622,11 @@
|
|
|
1607
1622
|
}
|
|
1608
1623
|
function KotlinEmitter$emit$lambda_4(this$0, $this_emit) {
|
|
1609
1624
|
return function () {
|
|
1610
|
-
var tmp = this$0.jj($this_emit.
|
|
1625
|
+
var tmp = this$0.jj($this_emit.ak_1);
|
|
1611
1626
|
Companion_getInstance_3();
|
|
1612
1627
|
Companion_getInstance_3();
|
|
1613
1628
|
var tmp_0 = ',\n' + ' ';
|
|
1614
|
-
var tmp_1 = joinToString($this_emit.
|
|
1629
|
+
var tmp_1 = joinToString($this_emit.bk_1, tmp_0, VOID, VOID, VOID, VOID, KotlinEmitter$emit$lambda$lambda_0(this$0));
|
|
1615
1630
|
Companion_getInstance_3();
|
|
1616
1631
|
Companion_getInstance_3();
|
|
1617
1632
|
Companion_getInstance_3();
|
|
@@ -1621,12 +1636,12 @@
|
|
|
1621
1636
|
}
|
|
1622
1637
|
function KotlinEmitter$emit$lambda_5($this_emit, this$0) {
|
|
1623
1638
|
return function () {
|
|
1624
|
-
return trimMargin('data class ' + $this_emit.
|
|
1639
|
+
return trimMargin('data class ' + $this_emit.ck_1 + '(val value: String)\n |fun ' + $this_emit.ck_1 + '.validate() = ' + this$0.ek($this_emit.dk_1) + '\n |');
|
|
1625
1640
|
};
|
|
1626
1641
|
}
|
|
1627
1642
|
function KotlinEmitter$emit$lambda_6($this_emit) {
|
|
1628
1643
|
return function () {
|
|
1629
|
-
return 'Regex(' + $this_emit.
|
|
1644
|
+
return 'Regex(' + $this_emit.fk_1 + ').find(value)';
|
|
1630
1645
|
};
|
|
1631
1646
|
}
|
|
1632
1647
|
function KotlinEmitter$emit$lambda$lambda_1(this$0, $this_emit) {
|
|
@@ -1799,7 +1814,7 @@
|
|
|
1799
1814
|
var element = tmp0_iterator_0.e();
|
|
1800
1815
|
var tmp$ret$3;
|
|
1801
1816
|
// Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emit.<anonymous>.<anonymous>' call
|
|
1802
|
-
tmp$ret$3 = Companion_getInstance_3().
|
|
1817
|
+
tmp$ret$3 = Companion_getInstance_3().zk(element.zi_1);
|
|
1803
1818
|
if (tmp$ret$3) {
|
|
1804
1819
|
tmp0_filterTo.a(element);
|
|
1805
1820
|
}
|
|
@@ -1835,7 +1850,7 @@
|
|
|
1835
1850
|
var element_0 = tmp0_iterator_2.e();
|
|
1836
1851
|
var tmp$ret$9;
|
|
1837
1852
|
// Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emit.<anonymous>.<anonymous>' call
|
|
1838
|
-
tmp$ret$9 = Companion_getInstance_3().
|
|
1853
|
+
tmp$ret$9 = Companion_getInstance_3().zk(element_0.zi_1);
|
|
1839
1854
|
if (tmp$ret$9) {
|
|
1840
1855
|
tmp0_filterTo_0.a(element_0);
|
|
1841
1856
|
}
|
|
@@ -1873,7 +1888,7 @@
|
|
|
1873
1888
|
var element_1 = tmp0_iterator_4.e();
|
|
1874
1889
|
var tmp$ret$14;
|
|
1875
1890
|
// Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emit.<anonymous>.<anonymous>' call
|
|
1876
|
-
tmp$ret$14 = !Companion_getInstance_3().
|
|
1891
|
+
tmp$ret$14 = !Companion_getInstance_3().zk(element_1.zi_1);
|
|
1877
1892
|
if (tmp$ret$14) {
|
|
1878
1893
|
tmp0_filterTo_1.a(element_1);
|
|
1879
1894
|
}
|
|
@@ -1899,7 +1914,7 @@
|
|
|
1899
1914
|
var tmp_6 = tmp$ret$18;
|
|
1900
1915
|
var tmp_7 = joinToString(tmp_6, '\n', VOID, VOID, VOID, VOID, KotlinEmitter$emit$lambda$lambda_5(this$0));
|
|
1901
1916
|
Companion_getInstance_3();
|
|
1902
|
-
var tmp_8 = Companion_getInstance_3().
|
|
1917
|
+
var tmp_8 = Companion_getInstance_3().gk($this_emit.ri_1);
|
|
1903
1918
|
Companion_getInstance_3();
|
|
1904
1919
|
Companion_getInstance_3();
|
|
1905
1920
|
Companion_getInstance_3();
|
|
@@ -1921,7 +1936,7 @@
|
|
|
1921
1936
|
tmp = '{' + it.ej_1.rj_1 + '}';
|
|
1922
1937
|
} else {
|
|
1923
1938
|
if (it instanceof Literal) {
|
|
1924
|
-
tmp = it.
|
|
1939
|
+
tmp = it.hk_1;
|
|
1925
1940
|
} else {
|
|
1926
1941
|
noWhenBranchMatchedException();
|
|
1927
1942
|
}
|
|
@@ -1938,7 +1953,7 @@
|
|
|
1938
1953
|
var tmp0_subject = $this_emit;
|
|
1939
1954
|
var tmp;
|
|
1940
1955
|
if (tmp0_subject instanceof Literal) {
|
|
1941
|
-
tmp = $this_emit.
|
|
1956
|
+
tmp = $this_emit.hk_1;
|
|
1942
1957
|
} else {
|
|
1943
1958
|
if (tmp0_subject instanceof Param) {
|
|
1944
1959
|
tmp = '${' + $this_emit.ej_1.rj_1 + '}';
|
|
@@ -1974,7 +1989,7 @@
|
|
|
1974
1989
|
packageName = packageName === VOID ? get_DEFAULT_PACKAGE_NAME() : packageName;
|
|
1975
1990
|
logger = logger === VOID ? get_noLogger() : logger;
|
|
1976
1991
|
Emitter.call(this, logger);
|
|
1977
|
-
this.
|
|
1992
|
+
this.wk_1 = packageName;
|
|
1978
1993
|
var tmp = this;
|
|
1979
1994
|
Companion_getInstance_3();
|
|
1980
1995
|
Companion_getInstance_3();
|
|
@@ -2023,8 +2038,8 @@
|
|
|
2023
2038
|
Companion_getInstance_3();
|
|
2024
2039
|
Companion_getInstance_3();
|
|
2025
2040
|
Companion_getInstance_3();
|
|
2026
|
-
tmp.
|
|
2027
|
-
this.
|
|
2041
|
+
tmp.xk_1 = trimMargin('\n |package community.flock.wirespec\n |\n |import java.lang.reflect.Type\n |import java.lang.reflect.ParameterizedType\n |\n |interface Wirespec {\n |' + ' ' + 'enum class Method { GET, PUT, POST, DELETE, OPTIONS, HEAD, PATCH, TRACE }\n |' + ' ' + '@JvmRecord 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: Type): Content<T> fun <T> write(content: Content<T>): Content<B> }\n |' + ' ' + 'companion object {\n |' + ' ' + ' ' + '@JvmStatic fun getType(type: Class<*>, isIterable: Boolean): Type {\n |' + ' ' + ' ' + ' ' + 'return if (isIterable) {\n |' + ' ' + ' ' + ' ' + ' ' + 'object : ParameterizedType {\n |' + ' ' + ' ' + ' ' + ' ' + ' ' + 'override fun getRawType() = MutableList::class.java\n |' + ' ' + ' ' + ' ' + ' ' + ' ' + 'override fun getActualTypeArguments() = arrayOf(type)\n |' + ' ' + ' ' + ' ' + ' ' + ' ' + 'override fun getOwnerType() = null\n |' + ' ' + ' ' + ' ' + ' ' + '}\n |' + ' ' + ' ' + ' ' + '} else {\n |' + ' ' + ' ' + ' ' + ' ' + 'type\n |' + ' ' + ' ' + ' ' + '}\n |' + ' ' + ' ' + '}\n |' + ' ' + '}\n |}\n ');
|
|
2042
|
+
this.yk_1 = '\nimport community.flock.wirespec.Wirespec\n';
|
|
2028
2043
|
}
|
|
2029
2044
|
protoOf(KotlinEmitter).ci = function (ast) {
|
|
2030
2045
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -2041,42 +2056,42 @@
|
|
|
2041
2056
|
var tmp = this.jj(name);
|
|
2042
2057
|
var tmp$ret$0;
|
|
2043
2058
|
// Inline function 'kotlin.text.trimStart' call
|
|
2044
|
-
var tmp0_trimStart = trimMargin('\n |' + (isBlank(this.
|
|
2059
|
+
var tmp0_trimStart = trimMargin('\n |' + (isBlank(this.wk_1) ? '' : 'package ' + this.wk_1) + '\n |' + (Companion_getInstance_3().gi(ast) ? this.yk_1 : '') + '\n |' + result + '\n ');
|
|
2045
2060
|
tmp$ret$0 = toString(trimStart(isCharSequence(tmp0_trimStart) ? tmp0_trimStart : THROW_CCE()));
|
|
2046
2061
|
tmp$ret$1 = to(tmp, tmp$ret$0);
|
|
2047
2062
|
tmp0_mapTo.a(tmp$ret$1);
|
|
2048
2063
|
}
|
|
2049
2064
|
return tmp0_mapTo;
|
|
2050
2065
|
};
|
|
2051
|
-
protoOf(KotlinEmitter).
|
|
2052
|
-
return this.
|
|
2066
|
+
protoOf(KotlinEmitter).ik = function (_this__u8e3s4) {
|
|
2067
|
+
return this.jk(_this__u8e3s4, this.ai_1, KotlinEmitter$emit$lambda(this, _this__u8e3s4));
|
|
2053
2068
|
};
|
|
2054
2069
|
protoOf(KotlinEmitter).kj = function (_this__u8e3s4) {
|
|
2055
|
-
return this.
|
|
2070
|
+
return this.kk(_this__u8e3s4, this.ai_1, KotlinEmitter$emit$lambda_0(_this__u8e3s4, this));
|
|
2056
2071
|
};
|
|
2057
2072
|
protoOf(KotlinEmitter).lj = function (_this__u8e3s4) {
|
|
2058
|
-
return this.
|
|
2073
|
+
return this.lk(_this__u8e3s4, this.ai_1, KotlinEmitter$emit$lambda_1(this, _this__u8e3s4));
|
|
2059
2074
|
};
|
|
2060
2075
|
protoOf(KotlinEmitter).qj = function (_this__u8e3s4) {
|
|
2061
|
-
return this.
|
|
2076
|
+
return this.mk(_this__u8e3s4, this.ai_1, KotlinEmitter$emit$lambda_2(this, _this__u8e3s4));
|
|
2062
2077
|
};
|
|
2063
2078
|
protoOf(KotlinEmitter).qi = function (_this__u8e3s4) {
|
|
2064
2079
|
return this.hi(_this__u8e3s4, this.ai_1, KotlinEmitter$emit$lambda_3(this, _this__u8e3s4));
|
|
2065
2080
|
};
|
|
2066
|
-
protoOf(KotlinEmitter).
|
|
2067
|
-
return this.
|
|
2081
|
+
protoOf(KotlinEmitter).nk = function (_this__u8e3s4) {
|
|
2082
|
+
return this.ok(_this__u8e3s4, this.ai_1, KotlinEmitter$emit$lambda_4(this, _this__u8e3s4));
|
|
2068
2083
|
};
|
|
2069
|
-
protoOf(KotlinEmitter).
|
|
2070
|
-
return this.
|
|
2084
|
+
protoOf(KotlinEmitter).pk = function (_this__u8e3s4) {
|
|
2085
|
+
return this.qk(_this__u8e3s4, this.ai_1, KotlinEmitter$emit$lambda_5(_this__u8e3s4, this));
|
|
2071
2086
|
};
|
|
2072
|
-
protoOf(KotlinEmitter).
|
|
2073
|
-
return this.
|
|
2087
|
+
protoOf(KotlinEmitter).ek = function (_this__u8e3s4) {
|
|
2088
|
+
return this.rk(_this__u8e3s4, this.ai_1, KotlinEmitter$emit$lambda_6(_this__u8e3s4));
|
|
2074
2089
|
};
|
|
2075
|
-
protoOf(KotlinEmitter).
|
|
2076
|
-
return this.
|
|
2090
|
+
protoOf(KotlinEmitter).sk = function (_this__u8e3s4) {
|
|
2091
|
+
return this.tk(_this__u8e3s4, this.ai_1, KotlinEmitter$emit$lambda_7(_this__u8e3s4, this));
|
|
2077
2092
|
};
|
|
2078
2093
|
protoOf(KotlinEmitter).sj = function (_this__u8e3s4) {
|
|
2079
|
-
return Companion_getInstance_1().
|
|
2094
|
+
return Companion_getInstance_1().al_1.j1(_this__u8e3s4) ? '`' + _this__u8e3s4 + '`' : _this__u8e3s4;
|
|
2080
2095
|
};
|
|
2081
2096
|
protoOf(KotlinEmitter).jj = function (_this__u8e3s4) {
|
|
2082
2097
|
return replace(_this__u8e3s4, '.', '');
|
|
@@ -2090,7 +2105,7 @@
|
|
|
2090
2105
|
}
|
|
2091
2106
|
function groupStatus_0(_this__u8e3s4) {
|
|
2092
2107
|
var tmp;
|
|
2093
|
-
if (Companion_getInstance_3().
|
|
2108
|
+
if (Companion_getInstance_3().zk(_this__u8e3s4)) {
|
|
2094
2109
|
// Inline function 'kotlin.text.substring' call
|
|
2095
2110
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2096
2111
|
tmp = _this__u8e3s4.substring(0, 1) + 'XX';
|
|
@@ -2165,6 +2180,9 @@
|
|
|
2165
2180
|
tmp_0 = 'Int';
|
|
2166
2181
|
break;
|
|
2167
2182
|
case 2:
|
|
2183
|
+
tmp_0 = 'Double';
|
|
2184
|
+
break;
|
|
2185
|
+
case 3:
|
|
2168
2186
|
tmp_0 = 'Boolean';
|
|
2169
2187
|
break;
|
|
2170
2188
|
default:
|
|
@@ -2203,20 +2221,20 @@
|
|
|
2203
2221
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2204
2222
|
tmp$ret$0 = tmp0_uppercase;
|
|
2205
2223
|
tmp$ret$1 = tmp$ret$0.toUpperCase();
|
|
2206
|
-
return ' ' + 'final case object ' + tmp$ret$1 + ' extends ' + $this_emit.
|
|
2224
|
+
return ' ' + 'final case object ' + tmp$ret$1 + ' extends ' + $this_emit.ak_1 + '(label = "' + it + '")';
|
|
2207
2225
|
};
|
|
2208
2226
|
}
|
|
2209
2227
|
function ScalaEmitter$emit$lambda_4($this_emit) {
|
|
2210
2228
|
return function () {
|
|
2211
|
-
return trimMargin('\n |sealed abstract class ' + $this_emit.
|
|
2229
|
+
return trimMargin('\n |sealed abstract class ' + $this_emit.ak_1 + '(val label: String)\n |object ' + $this_emit.ak_1 + ' {\n |' + joinToString($this_emit.bk_1, '\n', VOID, VOID, VOID, VOID, ScalaEmitter$emit$lambda$lambda_0($this_emit)) + '\n |}\n |');
|
|
2212
2230
|
};
|
|
2213
2231
|
}
|
|
2214
2232
|
function ScalaEmitter$emit$lambda_5($this_emit, this$0) {
|
|
2215
2233
|
return function () {
|
|
2216
2234
|
Companion_getInstance_3();
|
|
2217
|
-
var tmp = this$0.
|
|
2235
|
+
var tmp = this$0.ek($this_emit.dk_1);
|
|
2218
2236
|
Companion_getInstance_3();
|
|
2219
|
-
return trimMargin('case class ' + $this_emit.
|
|
2237
|
+
return trimMargin('case class ' + $this_emit.ck_1 + '(val value: String) {\n |' + ' ' + 'implicit class ' + $this_emit.ck_1 + 'Ops(val that: ' + $this_emit.ck_1 + ') {\n |' + tmp + '\n |' + ' ' + '}\n |}\n |\n |');
|
|
2220
2238
|
};
|
|
2221
2239
|
}
|
|
2222
2240
|
function ScalaEmitter$emit$lambda_6($this_emit) {
|
|
@@ -2225,7 +2243,7 @@
|
|
|
2225
2243
|
Companion_getInstance_3();
|
|
2226
2244
|
Companion_getInstance_3();
|
|
2227
2245
|
Companion_getInstance_3();
|
|
2228
|
-
return trimMargin(' ' + ' ' + 'val regex = new scala.util.matching.Regex(' + $this_emit.
|
|
2246
|
+
return trimMargin(' ' + ' ' + 'val regex = new scala.util.matching.Regex(' + $this_emit.fk_1 + ')\n |' + ' ' + ' ' + 'regex.findFirstIn(that.value)');
|
|
2229
2247
|
};
|
|
2230
2248
|
}
|
|
2231
2249
|
function ScalaEmitter$emit$lambda_7() {
|
|
@@ -2256,32 +2274,32 @@
|
|
|
2256
2274
|
}
|
|
2257
2275
|
return tmp0_mapTo;
|
|
2258
2276
|
};
|
|
2259
|
-
protoOf(ScalaEmitter).
|
|
2260
|
-
return this.
|
|
2277
|
+
protoOf(ScalaEmitter).ik = function (_this__u8e3s4) {
|
|
2278
|
+
return this.jk(_this__u8e3s4, this.ai_1, ScalaEmitter$emit$lambda(_this__u8e3s4, this));
|
|
2261
2279
|
};
|
|
2262
2280
|
protoOf(ScalaEmitter).kj = function (_this__u8e3s4) {
|
|
2263
|
-
return this.
|
|
2281
|
+
return this.kk(_this__u8e3s4, this.ai_1, ScalaEmitter$emit$lambda_0(_this__u8e3s4, this));
|
|
2264
2282
|
};
|
|
2265
2283
|
protoOf(ScalaEmitter).lj = function (_this__u8e3s4) {
|
|
2266
|
-
return this.
|
|
2284
|
+
return this.lk(_this__u8e3s4, this.ai_1, ScalaEmitter$emit$lambda_1(this, _this__u8e3s4));
|
|
2267
2285
|
};
|
|
2268
2286
|
protoOf(ScalaEmitter).qj = function (_this__u8e3s4) {
|
|
2269
|
-
return this.
|
|
2287
|
+
return this.mk(_this__u8e3s4, this.ai_1, ScalaEmitter$emit$lambda_2(_this__u8e3s4));
|
|
2270
2288
|
};
|
|
2271
2289
|
protoOf(ScalaEmitter).qi = function (_this__u8e3s4) {
|
|
2272
2290
|
return this.hi(_this__u8e3s4, this.ai_1, ScalaEmitter$emit$lambda_3(_this__u8e3s4));
|
|
2273
2291
|
};
|
|
2274
|
-
protoOf(ScalaEmitter).
|
|
2275
|
-
return this.
|
|
2292
|
+
protoOf(ScalaEmitter).nk = function (_this__u8e3s4) {
|
|
2293
|
+
return this.ok(_this__u8e3s4, this.ai_1, ScalaEmitter$emit$lambda_4(_this__u8e3s4));
|
|
2276
2294
|
};
|
|
2277
|
-
protoOf(ScalaEmitter).
|
|
2278
|
-
return this.
|
|
2295
|
+
protoOf(ScalaEmitter).pk = function (_this__u8e3s4) {
|
|
2296
|
+
return this.qk(_this__u8e3s4, this.ai_1, ScalaEmitter$emit$lambda_5(_this__u8e3s4, this));
|
|
2279
2297
|
};
|
|
2280
|
-
protoOf(ScalaEmitter).
|
|
2281
|
-
return this.
|
|
2298
|
+
protoOf(ScalaEmitter).ek = function (_this__u8e3s4) {
|
|
2299
|
+
return this.rk(_this__u8e3s4, this.ai_1, ScalaEmitter$emit$lambda_6(_this__u8e3s4));
|
|
2282
2300
|
};
|
|
2283
|
-
protoOf(ScalaEmitter).
|
|
2284
|
-
return this.
|
|
2301
|
+
protoOf(ScalaEmitter).sk = function (_this__u8e3s4) {
|
|
2302
|
+
return this.tk(_this__u8e3s4, this.ai_1, ScalaEmitter$emit$lambda_7);
|
|
2285
2303
|
};
|
|
2286
2304
|
function emitType(_this__u8e3s4, $this) {
|
|
2287
2305
|
return '`' + joinToString(_this__u8e3s4, '', VOID, VOID, VOID, VOID, TypeScriptEmitter$emitType$lambda($this)) + '`';
|
|
@@ -2361,6 +2379,9 @@
|
|
|
2361
2379
|
tmp_0 = 'number';
|
|
2362
2380
|
break;
|
|
2363
2381
|
case 2:
|
|
2382
|
+
tmp_0 = 'number';
|
|
2383
|
+
break;
|
|
2384
|
+
case 3:
|
|
2364
2385
|
tmp_0 = 'boolean';
|
|
2365
2386
|
break;
|
|
2366
2387
|
default:
|
|
@@ -2383,7 +2404,7 @@
|
|
|
2383
2404
|
// Inline function 'kotlin.contracts.contract' call
|
|
2384
2405
|
var tmp$ret$2;
|
|
2385
2406
|
// Inline function 'community.flock.wirespec.compiler.core.emit.TypeScriptEmitter.emit.<anonymous>.<anonymous>' call
|
|
2386
|
-
tmp$ret$2 = $this_emit.
|
|
2407
|
+
tmp$ret$2 = $this_emit.zj() ? 'Record<string, ' + tmp1_let + '>' : tmp1_let;
|
|
2387
2408
|
tmp$ret$3 = tmp$ret$2;
|
|
2388
2409
|
return tmp$ret$3;
|
|
2389
2410
|
};
|
|
@@ -2393,18 +2414,18 @@
|
|
|
2393
2414
|
}
|
|
2394
2415
|
function TypeScriptEmitter$emit$lambda_4($this_emit) {
|
|
2395
2416
|
return function () {
|
|
2396
|
-
return 'type ' + $this_emit.
|
|
2417
|
+
return 'type ' + $this_emit.ak_1 + ' = ' + joinToString($this_emit.bk_1, ' | ', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda$lambda_0) + '\n';
|
|
2397
2418
|
};
|
|
2398
2419
|
}
|
|
2399
2420
|
function TypeScriptEmitter$emit$lambda_5($this_emit, this$0) {
|
|
2400
2421
|
return function () {
|
|
2401
2422
|
Companion_getInstance_3();
|
|
2402
|
-
return trimMargin('type ' + $this_emit.
|
|
2423
|
+
return trimMargin('type ' + $this_emit.ck_1 + ' = {\n |' + ' ' + 'value: string\n |}\n |const validate' + $this_emit.ck_1 + ' = (type: ' + $this_emit.ck_1 + ') => (' + this$0.ek($this_emit.dk_1) + ').test(type.value);\n |\n |');
|
|
2403
2424
|
};
|
|
2404
2425
|
}
|
|
2405
2426
|
function TypeScriptEmitter$emit$lambda_6($this_emit) {
|
|
2406
2427
|
return function () {
|
|
2407
|
-
return "new RegExp('" + dropLast(drop($this_emit.
|
|
2428
|
+
return "new RegExp('" + dropLast(drop($this_emit.fk_1, 1), 1) + "')";
|
|
2408
2429
|
};
|
|
2409
2430
|
}
|
|
2410
2431
|
function TypeScriptEmitter$emit$lambda$lambda_1(this$0, $this_emit) {
|
|
@@ -2473,7 +2494,7 @@
|
|
|
2473
2494
|
return function (it) {
|
|
2474
2495
|
Companion_getInstance_3();
|
|
2475
2496
|
var tmp = emitName_0(it, this$0);
|
|
2476
|
-
var tmp_0 = Companion_getInstance_3().
|
|
2497
|
+
var tmp_0 = Companion_getInstance_3().zk(it.zi_1) ? it.zi_1 : 'number';
|
|
2477
2498
|
var tmp0_safe_receiver = it.aj_1;
|
|
2478
2499
|
var tmp_1;
|
|
2479
2500
|
if (tmp0_safe_receiver == null) {
|
|
@@ -2504,7 +2525,7 @@
|
|
|
2504
2525
|
}
|
|
2505
2526
|
function TypeScriptEmitter$emit$lambda$lambda_5(this$0, $this_emit) {
|
|
2506
2527
|
return function (it) {
|
|
2507
|
-
var tmp = Companion_getInstance_3().
|
|
2528
|
+
var tmp = Companion_getInstance_3().gk(emitName(it, this$0));
|
|
2508
2529
|
var tmp_0 = Companion_getInstance_3().kl($this_emit, it.ii_1);
|
|
2509
2530
|
var tmp_1 = joinToString(tmp_0, ',', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda$lambda$lambda(this$0));
|
|
2510
2531
|
var tmp_2 = emitPath_1($this_emit.ti_1, this$0);
|
|
@@ -2543,7 +2564,7 @@
|
|
|
2543
2564
|
Companion_getInstance_3();
|
|
2544
2565
|
Companion_getInstance_3();
|
|
2545
2566
|
Companion_getInstance_3();
|
|
2546
|
-
var tmp_7 = Companion_getInstance_3().
|
|
2567
|
+
var tmp_7 = Companion_getInstance_3().gk($this_emit.ri_1);
|
|
2547
2568
|
Companion_getInstance_3();
|
|
2548
2569
|
Companion_getInstance_3();
|
|
2549
2570
|
return trimMargin('\n |export namespace ' + $this_emit.ri_1 + ' {\n |' + tmp_0 + '\n |' + ' ' + 'export type Request = ' + tmp_2 + '\n |' + tmp_4 + '\n |' + ' ' + 'export type Response = ' + tmp_6 + '\n |' + ' ' + 'export type Call = {\n |' + ' ' + ' ' + tmp_7 + ':(request: Request) => Promise<Response>\n |' + ' ' + '}\n |' + ' ' + joinToString($this_emit.xi_1, '\n', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda$lambda_5(this$0, $this_emit)) + '\n |}\n |\n ');
|
|
@@ -2559,7 +2580,7 @@
|
|
|
2559
2580
|
var tmp0_subject = $this_emitType;
|
|
2560
2581
|
var tmp;
|
|
2561
2582
|
if (tmp0_subject instanceof Literal) {
|
|
2562
|
-
tmp = $this_emitType.
|
|
2583
|
+
tmp = $this_emitType.hk_1;
|
|
2563
2584
|
} else {
|
|
2564
2585
|
if (tmp0_subject instanceof Param) {
|
|
2565
2586
|
tmp = '${' + this$0.qi($this_emitType.fj_1) + '}';
|
|
@@ -2585,7 +2606,7 @@
|
|
|
2585
2606
|
var tmp0_subject = $this_emit;
|
|
2586
2607
|
var tmp;
|
|
2587
2608
|
if (tmp0_subject instanceof Literal) {
|
|
2588
|
-
tmp = $this_emit.
|
|
2609
|
+
tmp = $this_emit.hk_1;
|
|
2589
2610
|
} else {
|
|
2590
2611
|
if (tmp0_subject instanceof Param) {
|
|
2591
2612
|
tmp = '${' + $this_emit.ej_1.rj_1 + '}';
|
|
@@ -2628,32 +2649,32 @@
|
|
|
2628
2649
|
}
|
|
2629
2650
|
return tmp0_mapTo;
|
|
2630
2651
|
};
|
|
2631
|
-
protoOf(TypeScriptEmitter).
|
|
2632
|
-
return this.
|
|
2652
|
+
protoOf(TypeScriptEmitter).ik = function (_this__u8e3s4) {
|
|
2653
|
+
return this.jk(_this__u8e3s4, this.ai_1, TypeScriptEmitter$emit$lambda(_this__u8e3s4, this));
|
|
2633
2654
|
};
|
|
2634
2655
|
protoOf(TypeScriptEmitter).kj = function (_this__u8e3s4) {
|
|
2635
|
-
return this.
|
|
2656
|
+
return this.kk(_this__u8e3s4, this.ai_1, TypeScriptEmitter$emit$lambda_0(_this__u8e3s4, this));
|
|
2636
2657
|
};
|
|
2637
2658
|
protoOf(TypeScriptEmitter).lj = function (_this__u8e3s4) {
|
|
2638
|
-
return this.
|
|
2659
|
+
return this.lk(_this__u8e3s4, this.ai_1, TypeScriptEmitter$emit$lambda_1(this, _this__u8e3s4));
|
|
2639
2660
|
};
|
|
2640
2661
|
protoOf(TypeScriptEmitter).qj = function (_this__u8e3s4) {
|
|
2641
|
-
return this.
|
|
2662
|
+
return this.mk(_this__u8e3s4, this.ai_1, TypeScriptEmitter$emit$lambda_2(_this__u8e3s4));
|
|
2642
2663
|
};
|
|
2643
2664
|
protoOf(TypeScriptEmitter).qi = function (_this__u8e3s4) {
|
|
2644
2665
|
return this.hi(_this__u8e3s4, this.ai_1, TypeScriptEmitter$emit$lambda_3(_this__u8e3s4));
|
|
2645
2666
|
};
|
|
2646
|
-
protoOf(TypeScriptEmitter).
|
|
2647
|
-
return this.
|
|
2667
|
+
protoOf(TypeScriptEmitter).nk = function (_this__u8e3s4) {
|
|
2668
|
+
return this.ok(_this__u8e3s4, this.ai_1, TypeScriptEmitter$emit$lambda_4(_this__u8e3s4));
|
|
2648
2669
|
};
|
|
2649
|
-
protoOf(TypeScriptEmitter).
|
|
2650
|
-
return this.
|
|
2670
|
+
protoOf(TypeScriptEmitter).pk = function (_this__u8e3s4) {
|
|
2671
|
+
return this.qk(_this__u8e3s4, this.ai_1, TypeScriptEmitter$emit$lambda_5(_this__u8e3s4, this));
|
|
2651
2672
|
};
|
|
2652
|
-
protoOf(TypeScriptEmitter).
|
|
2653
|
-
return this.
|
|
2673
|
+
protoOf(TypeScriptEmitter).ek = function (_this__u8e3s4) {
|
|
2674
|
+
return this.rk(_this__u8e3s4, this.ai_1, TypeScriptEmitter$emit$lambda_6(_this__u8e3s4));
|
|
2654
2675
|
};
|
|
2655
|
-
protoOf(TypeScriptEmitter).
|
|
2656
|
-
return this.
|
|
2676
|
+
protoOf(TypeScriptEmitter).sk = function (_this__u8e3s4) {
|
|
2677
|
+
return this.tk(_this__u8e3s4, this.ai_1, TypeScriptEmitter$emit$lambda_7(_this__u8e3s4, this));
|
|
2657
2678
|
};
|
|
2658
2679
|
function WirespecEmitter$emit$lambda($this_emit, this$0) {
|
|
2659
2680
|
return function () {
|
|
@@ -2705,6 +2726,9 @@
|
|
|
2705
2726
|
tmp_0 = 'Integer';
|
|
2706
2727
|
break;
|
|
2707
2728
|
case 2:
|
|
2729
|
+
tmp_0 = 'Number';
|
|
2730
|
+
break;
|
|
2731
|
+
case 3:
|
|
2708
2732
|
tmp_0 = 'Boolean';
|
|
2709
2733
|
break;
|
|
2710
2734
|
default:
|
|
@@ -2729,17 +2753,17 @@
|
|
|
2729
2753
|
function WirespecEmitter$emit$lambda_4($this_emit) {
|
|
2730
2754
|
return function () {
|
|
2731
2755
|
Companion_getInstance_3();
|
|
2732
|
-
return 'enum ' + $this_emit.
|
|
2756
|
+
return 'enum ' + $this_emit.ak_1 + ' {\n' + ' ' + joinToString($this_emit.bk_1, ', ') + '\n}\n';
|
|
2733
2757
|
};
|
|
2734
2758
|
}
|
|
2735
2759
|
function WirespecEmitter$emit$lambda_5($this_emit, this$0) {
|
|
2736
2760
|
return function () {
|
|
2737
|
-
return 'refined ' + $this_emit.
|
|
2761
|
+
return 'refined ' + $this_emit.ck_1 + ' ' + this$0.ek($this_emit.dk_1) + '\n';
|
|
2738
2762
|
};
|
|
2739
2763
|
}
|
|
2740
2764
|
function WirespecEmitter$emit$lambda_6($this_emit) {
|
|
2741
2765
|
return function () {
|
|
2742
|
-
return '/' + dropLast(drop($this_emit.
|
|
2766
|
+
return '/' + dropLast(drop($this_emit.fk_1, 1), 1) + '/g';
|
|
2743
2767
|
};
|
|
2744
2768
|
}
|
|
2745
2769
|
function WirespecEmitter$emit$lambda_7() {
|
|
@@ -2750,32 +2774,32 @@
|
|
|
2750
2774
|
Emitter.call(this, logger);
|
|
2751
2775
|
this.nl_1 = '';
|
|
2752
2776
|
}
|
|
2753
|
-
protoOf(WirespecEmitter).
|
|
2754
|
-
return this.
|
|
2777
|
+
protoOf(WirespecEmitter).ik = function (_this__u8e3s4) {
|
|
2778
|
+
return this.jk(_this__u8e3s4, this.ai_1, WirespecEmitter$emit$lambda(_this__u8e3s4, this));
|
|
2755
2779
|
};
|
|
2756
2780
|
protoOf(WirespecEmitter).kj = function (_this__u8e3s4) {
|
|
2757
|
-
return this.
|
|
2781
|
+
return this.kk(_this__u8e3s4, this.ai_1, WirespecEmitter$emit$lambda_0(_this__u8e3s4, this));
|
|
2758
2782
|
};
|
|
2759
2783
|
protoOf(WirespecEmitter).lj = function (_this__u8e3s4) {
|
|
2760
|
-
return this.
|
|
2784
|
+
return this.lk(_this__u8e3s4, this.ai_1, WirespecEmitter$emit$lambda_1(this, _this__u8e3s4));
|
|
2761
2785
|
};
|
|
2762
2786
|
protoOf(WirespecEmitter).qj = function (_this__u8e3s4) {
|
|
2763
|
-
return this.
|
|
2787
|
+
return this.mk(_this__u8e3s4, this.ai_1, WirespecEmitter$emit$lambda_2(_this__u8e3s4));
|
|
2764
2788
|
};
|
|
2765
2789
|
protoOf(WirespecEmitter).qi = function (_this__u8e3s4) {
|
|
2766
2790
|
return this.hi(_this__u8e3s4, this.ai_1, WirespecEmitter$emit$lambda_3(_this__u8e3s4));
|
|
2767
2791
|
};
|
|
2768
|
-
protoOf(WirespecEmitter).
|
|
2769
|
-
return this.
|
|
2792
|
+
protoOf(WirespecEmitter).nk = function (_this__u8e3s4) {
|
|
2793
|
+
return this.ok(_this__u8e3s4, this.ai_1, WirespecEmitter$emit$lambda_4(_this__u8e3s4));
|
|
2770
2794
|
};
|
|
2771
|
-
protoOf(WirespecEmitter).
|
|
2772
|
-
return this.
|
|
2795
|
+
protoOf(WirespecEmitter).pk = function (_this__u8e3s4) {
|
|
2796
|
+
return this.qk(_this__u8e3s4, this.ai_1, WirespecEmitter$emit$lambda_5(_this__u8e3s4, this));
|
|
2773
2797
|
};
|
|
2774
|
-
protoOf(WirespecEmitter).
|
|
2775
|
-
return this.
|
|
2798
|
+
protoOf(WirespecEmitter).ek = function (_this__u8e3s4) {
|
|
2799
|
+
return this.rk(_this__u8e3s4, this.ai_1, WirespecEmitter$emit$lambda_6(_this__u8e3s4));
|
|
2776
2800
|
};
|
|
2777
|
-
protoOf(WirespecEmitter).
|
|
2778
|
-
return this.
|
|
2801
|
+
protoOf(WirespecEmitter).sk = function (_this__u8e3s4) {
|
|
2802
|
+
return this.tk(_this__u8e3s4, this.ai_1, WirespecEmitter$emit$lambda_7);
|
|
2779
2803
|
};
|
|
2780
2804
|
function get_DEFAULT_PACKAGE_NAME() {
|
|
2781
2805
|
return DEFAULT_PACKAGE_NAME;
|
|
@@ -2805,7 +2829,7 @@
|
|
|
2805
2829
|
}
|
|
2806
2830
|
return tmp;
|
|
2807
2831
|
};
|
|
2808
|
-
protoOf(Companion_2).
|
|
2832
|
+
protoOf(Companion_2).gk = function (_this__u8e3s4) {
|
|
2809
2833
|
// Inline function 'kotlin.text.replaceFirstChar' call
|
|
2810
2834
|
var tmp;
|
|
2811
2835
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
@@ -2880,7 +2904,7 @@
|
|
|
2880
2904
|
var tmp1_safe_receiver = content == null ? null : content.ki_1;
|
|
2881
2905
|
return filterNotNull(plus_0(parameters, tmp1_safe_receiver == null ? null : toField(tmp1_safe_receiver, 'body', false)));
|
|
2882
2906
|
};
|
|
2883
|
-
protoOf(Companion_2).
|
|
2907
|
+
protoOf(Companion_2).zk = function (_this__u8e3s4) {
|
|
2884
2908
|
return !(toIntOrNull(_this__u8e3s4) == null);
|
|
2885
2909
|
};
|
|
2886
2910
|
var Companion_instance_2;
|
|
@@ -2911,16 +2935,16 @@
|
|
|
2911
2935
|
this.ai_1.qh('Emitting Node ' + this);
|
|
2912
2936
|
var tmp;
|
|
2913
2937
|
if (item instanceof Type_0) {
|
|
2914
|
-
tmp = to(item.hj_1, this.
|
|
2938
|
+
tmp = to(item.hj_1, this.ik(item));
|
|
2915
2939
|
} else {
|
|
2916
2940
|
if (item instanceof Endpoint) {
|
|
2917
|
-
tmp = to(item.ri_1, this.
|
|
2941
|
+
tmp = to(item.ri_1, this.sk(item));
|
|
2918
2942
|
} else {
|
|
2919
2943
|
if (item instanceof Enum_0) {
|
|
2920
|
-
tmp = to(item.
|
|
2944
|
+
tmp = to(item.ak_1, this.nk(item));
|
|
2921
2945
|
} else {
|
|
2922
2946
|
if (item instanceof Refined) {
|
|
2923
|
-
tmp = to(item.
|
|
2947
|
+
tmp = to(item.ck_1, this.pk(item));
|
|
2924
2948
|
} else {
|
|
2925
2949
|
noWhenBranchMatchedException();
|
|
2926
2950
|
}
|
|
@@ -3361,13 +3385,17 @@
|
|
|
3361
3385
|
if (wsType instanceof WsInteger) {
|
|
3362
3386
|
tmp_1 = new Primitive(Type_Integer_getInstance(), isIterable);
|
|
3363
3387
|
} else {
|
|
3364
|
-
if (wsType instanceof
|
|
3365
|
-
tmp_1 = new Primitive(
|
|
3388
|
+
if (wsType instanceof WsNumber) {
|
|
3389
|
+
tmp_1 = new Primitive(Type_Number_getInstance(), isIterable);
|
|
3366
3390
|
} else {
|
|
3367
|
-
if (wsType instanceof
|
|
3368
|
-
tmp_1 = new
|
|
3391
|
+
if (wsType instanceof WsBoolean) {
|
|
3392
|
+
tmp_1 = new Primitive(Type_Boolean_getInstance(), isIterable);
|
|
3369
3393
|
} else {
|
|
3370
|
-
|
|
3394
|
+
if (wsType instanceof CustomType) {
|
|
3395
|
+
tmp_1 = new Custom(value, isIterable);
|
|
3396
|
+
} else {
|
|
3397
|
+
noWhenBranchMatchedException();
|
|
3398
|
+
}
|
|
3371
3399
|
}
|
|
3372
3400
|
}
|
|
3373
3401
|
}
|
|
@@ -4330,13 +4358,17 @@
|
|
|
4330
4358
|
if (wsType instanceof WsInteger) {
|
|
4331
4359
|
tmp_1 = new Primitive(Type_Integer_getInstance(), isIterable);
|
|
4332
4360
|
} else {
|
|
4333
|
-
if (wsType instanceof
|
|
4334
|
-
tmp_1 = new Primitive(
|
|
4361
|
+
if (wsType instanceof WsNumber) {
|
|
4362
|
+
tmp_1 = new Primitive(Type_Number_getInstance(), isIterable);
|
|
4335
4363
|
} else {
|
|
4336
|
-
if (wsType instanceof
|
|
4337
|
-
tmp_1 = new
|
|
4364
|
+
if (wsType instanceof WsBoolean) {
|
|
4365
|
+
tmp_1 = new Primitive(Type_Boolean_getInstance(), isIterable);
|
|
4338
4366
|
} else {
|
|
4339
|
-
|
|
4367
|
+
if (wsType instanceof CustomType) {
|
|
4368
|
+
tmp_1 = new Custom(value, isIterable);
|
|
4369
|
+
} else {
|
|
4370
|
+
noWhenBranchMatchedException();
|
|
4371
|
+
}
|
|
4340
4372
|
}
|
|
4341
4373
|
}
|
|
4342
4374
|
}
|
|
@@ -4453,13 +4485,13 @@
|
|
|
4453
4485
|
}
|
|
4454
4486
|
var $ENTRIES;
|
|
4455
4487
|
function Literal(value) {
|
|
4456
|
-
this.
|
|
4488
|
+
this.hk_1 = value;
|
|
4457
4489
|
}
|
|
4458
4490
|
protoOf(Literal).toString = function () {
|
|
4459
|
-
return 'Literal(value=' + this.
|
|
4491
|
+
return 'Literal(value=' + this.hk_1 + ')';
|
|
4460
4492
|
};
|
|
4461
4493
|
protoOf(Literal).hashCode = function () {
|
|
4462
|
-
return getStringHashCode(this.
|
|
4494
|
+
return getStringHashCode(this.hk_1);
|
|
4463
4495
|
};
|
|
4464
4496
|
protoOf(Literal).equals = function (other) {
|
|
4465
4497
|
if (this === other)
|
|
@@ -4467,7 +4499,7 @@
|
|
|
4467
4499
|
if (!(other instanceof Literal))
|
|
4468
4500
|
return false;
|
|
4469
4501
|
var tmp0_other_with_cast = other instanceof Literal ? other : THROW_CCE();
|
|
4470
|
-
if (!(this.
|
|
4502
|
+
if (!(this.hk_1 === tmp0_other_with_cast.hk_1))
|
|
4471
4503
|
return false;
|
|
4472
4504
|
return true;
|
|
4473
4505
|
};
|
|
@@ -4651,15 +4683,15 @@
|
|
|
4651
4683
|
return true;
|
|
4652
4684
|
};
|
|
4653
4685
|
function Enum_0(name, entries) {
|
|
4654
|
-
this.
|
|
4655
|
-
this.
|
|
4686
|
+
this.ak_1 = name;
|
|
4687
|
+
this.bk_1 = entries;
|
|
4656
4688
|
}
|
|
4657
4689
|
protoOf(Enum_0).toString = function () {
|
|
4658
|
-
return 'Enum(name=' + this.
|
|
4690
|
+
return 'Enum(name=' + this.ak_1 + ', entries=' + this.bk_1 + ')';
|
|
4659
4691
|
};
|
|
4660
4692
|
protoOf(Enum_0).hashCode = function () {
|
|
4661
|
-
var result = getStringHashCode(this.
|
|
4662
|
-
result = imul(result, 31) + hashCode(this.
|
|
4693
|
+
var result = getStringHashCode(this.ak_1);
|
|
4694
|
+
result = imul(result, 31) + hashCode(this.bk_1) | 0;
|
|
4663
4695
|
return result;
|
|
4664
4696
|
};
|
|
4665
4697
|
protoOf(Enum_0).equals = function (other) {
|
|
@@ -4668,20 +4700,20 @@
|
|
|
4668
4700
|
if (!(other instanceof Enum_0))
|
|
4669
4701
|
return false;
|
|
4670
4702
|
var tmp0_other_with_cast = other instanceof Enum_0 ? other : THROW_CCE();
|
|
4671
|
-
if (!(this.
|
|
4703
|
+
if (!(this.ak_1 === tmp0_other_with_cast.ak_1))
|
|
4672
4704
|
return false;
|
|
4673
|
-
if (!equals(this.
|
|
4705
|
+
if (!equals(this.bk_1, tmp0_other_with_cast.bk_1))
|
|
4674
4706
|
return false;
|
|
4675
4707
|
return true;
|
|
4676
4708
|
};
|
|
4677
4709
|
function Validator(value) {
|
|
4678
|
-
this.
|
|
4710
|
+
this.fk_1 = value;
|
|
4679
4711
|
}
|
|
4680
4712
|
protoOf(Validator).toString = function () {
|
|
4681
|
-
return 'Validator(value=' + this.
|
|
4713
|
+
return 'Validator(value=' + this.fk_1 + ')';
|
|
4682
4714
|
};
|
|
4683
4715
|
protoOf(Validator).hashCode = function () {
|
|
4684
|
-
return getStringHashCode(this.
|
|
4716
|
+
return getStringHashCode(this.fk_1);
|
|
4685
4717
|
};
|
|
4686
4718
|
protoOf(Validator).equals = function (other) {
|
|
4687
4719
|
if (this === other)
|
|
@@ -4689,20 +4721,20 @@
|
|
|
4689
4721
|
if (!(other instanceof Validator))
|
|
4690
4722
|
return false;
|
|
4691
4723
|
var tmp0_other_with_cast = other instanceof Validator ? other : THROW_CCE();
|
|
4692
|
-
if (!(this.
|
|
4724
|
+
if (!(this.fk_1 === tmp0_other_with_cast.fk_1))
|
|
4693
4725
|
return false;
|
|
4694
4726
|
return true;
|
|
4695
4727
|
};
|
|
4696
4728
|
function Refined(name, validator) {
|
|
4697
|
-
this.
|
|
4698
|
-
this.
|
|
4729
|
+
this.ck_1 = name;
|
|
4730
|
+
this.dk_1 = validator;
|
|
4699
4731
|
}
|
|
4700
4732
|
protoOf(Refined).toString = function () {
|
|
4701
|
-
return 'Refined(name=' + this.
|
|
4733
|
+
return 'Refined(name=' + this.ck_1 + ', validator=' + this.dk_1 + ')';
|
|
4702
4734
|
};
|
|
4703
4735
|
protoOf(Refined).hashCode = function () {
|
|
4704
|
-
var result = getStringHashCode(this.
|
|
4705
|
-
result = imul(result, 31) + this.
|
|
4736
|
+
var result = getStringHashCode(this.ck_1);
|
|
4737
|
+
result = imul(result, 31) + this.dk_1.hashCode() | 0;
|
|
4706
4738
|
return result;
|
|
4707
4739
|
};
|
|
4708
4740
|
protoOf(Refined).equals = function (other) {
|
|
@@ -4711,14 +4743,15 @@
|
|
|
4711
4743
|
if (!(other instanceof Refined))
|
|
4712
4744
|
return false;
|
|
4713
4745
|
var tmp0_other_with_cast = other instanceof Refined ? other : THROW_CCE();
|
|
4714
|
-
if (!(this.
|
|
4746
|
+
if (!(this.ck_1 === tmp0_other_with_cast.ck_1))
|
|
4715
4747
|
return false;
|
|
4716
|
-
if (!this.
|
|
4748
|
+
if (!this.dk_1.equals(tmp0_other_with_cast.dk_1))
|
|
4717
4749
|
return false;
|
|
4718
4750
|
return true;
|
|
4719
4751
|
};
|
|
4720
4752
|
var Type_String_instance;
|
|
4721
4753
|
var Type_Integer_instance;
|
|
4754
|
+
var Type_Number_instance;
|
|
4722
4755
|
var Type_Boolean_instance;
|
|
4723
4756
|
var Type_entriesInitialized;
|
|
4724
4757
|
function Type_initEntries() {
|
|
@@ -4727,7 +4760,8 @@
|
|
|
4727
4760
|
Type_entriesInitialized = true;
|
|
4728
4761
|
Type_String_instance = new Type('String', 0);
|
|
4729
4762
|
Type_Integer_instance = new Type('Integer', 1);
|
|
4730
|
-
|
|
4763
|
+
Type_Number_instance = new Type('Number', 2);
|
|
4764
|
+
Type_Boolean_instance = new Type('Boolean', 3);
|
|
4731
4765
|
}
|
|
4732
4766
|
function Type(name, ordinal) {
|
|
4733
4767
|
Enum.call(this, name, ordinal);
|
|
@@ -4740,6 +4774,10 @@
|
|
|
4740
4774
|
Type_initEntries();
|
|
4741
4775
|
return Type_Integer_instance;
|
|
4742
4776
|
}
|
|
4777
|
+
function Type_Number_getInstance() {
|
|
4778
|
+
Type_initEntries();
|
|
4779
|
+
return Type_Number_instance;
|
|
4780
|
+
}
|
|
4743
4781
|
function Type_Boolean_getInstance() {
|
|
4744
4782
|
Type_initEntries();
|
|
4745
4783
|
return Type_Boolean_instance;
|
|
@@ -4752,7 +4790,7 @@
|
|
|
4752
4790
|
protoOf(Any).cj = function () {
|
|
4753
4791
|
return this.nm_1;
|
|
4754
4792
|
};
|
|
4755
|
-
protoOf(Any).
|
|
4793
|
+
protoOf(Any).zj = function () {
|
|
4756
4794
|
return this.om_1;
|
|
4757
4795
|
};
|
|
4758
4796
|
protoOf(Any).pm = function (isIterable, isMap) {
|
|
@@ -4792,7 +4830,7 @@
|
|
|
4792
4830
|
protoOf(Custom).cj = function () {
|
|
4793
4831
|
return this.xj_1;
|
|
4794
4832
|
};
|
|
4795
|
-
protoOf(Custom).
|
|
4833
|
+
protoOf(Custom).zj = function () {
|
|
4796
4834
|
return this.yj_1;
|
|
4797
4835
|
};
|
|
4798
4836
|
protoOf(Custom).rm = function (value, isIterable, isMap) {
|
|
@@ -4836,7 +4874,7 @@
|
|
|
4836
4874
|
protoOf(Primitive).cj = function () {
|
|
4837
4875
|
return this.uj_1;
|
|
4838
4876
|
};
|
|
4839
|
-
protoOf(Primitive).
|
|
4877
|
+
protoOf(Primitive).zj = function () {
|
|
4840
4878
|
return this.vj_1;
|
|
4841
4879
|
};
|
|
4842
4880
|
protoOf(Primitive).tm = function (type, isIterable, isMap) {
|
|
@@ -5922,6 +5960,8 @@
|
|
|
5922
5960
|
}
|
|
5923
5961
|
function Method_0() {
|
|
5924
5962
|
}
|
|
5963
|
+
function WsNumber() {
|
|
5964
|
+
}
|
|
5925
5965
|
function validate(_this__u8e3s4) {
|
|
5926
5966
|
return _this__u8e3s4;
|
|
5927
5967
|
}
|
|
@@ -5961,54 +6001,54 @@
|
|
|
5961
6001
|
}
|
|
5962
6002
|
}
|
|
5963
6003
|
//region block: post-declaration
|
|
5964
|
-
protoOf(JavaEmitter).
|
|
5965
|
-
protoOf(JavaEmitter).
|
|
5966
|
-
protoOf(JavaEmitter).
|
|
5967
|
-
protoOf(JavaEmitter).
|
|
5968
|
-
protoOf(JavaEmitter).hi =
|
|
5969
|
-
protoOf(JavaEmitter).
|
|
5970
|
-
protoOf(JavaEmitter).
|
|
5971
|
-
protoOf(JavaEmitter).
|
|
5972
|
-
protoOf(JavaEmitter).
|
|
6004
|
+
protoOf(JavaEmitter).jk = withLogging;
|
|
6005
|
+
protoOf(JavaEmitter).kk = withLogging_0;
|
|
6006
|
+
protoOf(JavaEmitter).lk = withLogging_1;
|
|
6007
|
+
protoOf(JavaEmitter).mk = withLogging_2;
|
|
6008
|
+
protoOf(JavaEmitter).hi = withLogging_3;
|
|
6009
|
+
protoOf(JavaEmitter).ok = withLogging_4;
|
|
6010
|
+
protoOf(JavaEmitter).qk = withLogging_5;
|
|
6011
|
+
protoOf(JavaEmitter).rk = withLogging_6;
|
|
6012
|
+
protoOf(JavaEmitter).tk = withLogging_7;
|
|
5973
6013
|
protoOf(JavaEmitter).dj = withLogging_8;
|
|
5974
|
-
protoOf(KotlinEmitter).
|
|
5975
|
-
protoOf(KotlinEmitter).
|
|
5976
|
-
protoOf(KotlinEmitter).
|
|
5977
|
-
protoOf(KotlinEmitter).
|
|
5978
|
-
protoOf(KotlinEmitter).hi =
|
|
5979
|
-
protoOf(KotlinEmitter).
|
|
5980
|
-
protoOf(KotlinEmitter).
|
|
5981
|
-
protoOf(KotlinEmitter).
|
|
5982
|
-
protoOf(KotlinEmitter).
|
|
6014
|
+
protoOf(KotlinEmitter).jk = withLogging;
|
|
6015
|
+
protoOf(KotlinEmitter).kk = withLogging_0;
|
|
6016
|
+
protoOf(KotlinEmitter).lk = withLogging_1;
|
|
6017
|
+
protoOf(KotlinEmitter).mk = withLogging_2;
|
|
6018
|
+
protoOf(KotlinEmitter).hi = withLogging_3;
|
|
6019
|
+
protoOf(KotlinEmitter).ok = withLogging_4;
|
|
6020
|
+
protoOf(KotlinEmitter).qk = withLogging_5;
|
|
6021
|
+
protoOf(KotlinEmitter).rk = withLogging_6;
|
|
6022
|
+
protoOf(KotlinEmitter).tk = withLogging_7;
|
|
5983
6023
|
protoOf(KotlinEmitter).dj = withLogging_8;
|
|
5984
|
-
protoOf(ScalaEmitter).
|
|
5985
|
-
protoOf(ScalaEmitter).
|
|
5986
|
-
protoOf(ScalaEmitter).
|
|
5987
|
-
protoOf(ScalaEmitter).
|
|
5988
|
-
protoOf(ScalaEmitter).hi =
|
|
5989
|
-
protoOf(ScalaEmitter).
|
|
5990
|
-
protoOf(ScalaEmitter).
|
|
5991
|
-
protoOf(ScalaEmitter).
|
|
5992
|
-
protoOf(ScalaEmitter).
|
|
5993
|
-
protoOf(TypeScriptEmitter).
|
|
5994
|
-
protoOf(TypeScriptEmitter).
|
|
5995
|
-
protoOf(TypeScriptEmitter).
|
|
5996
|
-
protoOf(TypeScriptEmitter).
|
|
5997
|
-
protoOf(TypeScriptEmitter).hi =
|
|
5998
|
-
protoOf(TypeScriptEmitter).
|
|
5999
|
-
protoOf(TypeScriptEmitter).
|
|
6000
|
-
protoOf(TypeScriptEmitter).
|
|
6001
|
-
protoOf(TypeScriptEmitter).
|
|
6024
|
+
protoOf(ScalaEmitter).jk = withLogging;
|
|
6025
|
+
protoOf(ScalaEmitter).kk = withLogging_0;
|
|
6026
|
+
protoOf(ScalaEmitter).lk = withLogging_1;
|
|
6027
|
+
protoOf(ScalaEmitter).mk = withLogging_2;
|
|
6028
|
+
protoOf(ScalaEmitter).hi = withLogging_3;
|
|
6029
|
+
protoOf(ScalaEmitter).ok = withLogging_4;
|
|
6030
|
+
protoOf(ScalaEmitter).qk = withLogging_5;
|
|
6031
|
+
protoOf(ScalaEmitter).rk = withLogging_6;
|
|
6032
|
+
protoOf(ScalaEmitter).tk = withLogging_7;
|
|
6033
|
+
protoOf(TypeScriptEmitter).jk = withLogging;
|
|
6034
|
+
protoOf(TypeScriptEmitter).kk = withLogging_0;
|
|
6035
|
+
protoOf(TypeScriptEmitter).lk = withLogging_1;
|
|
6036
|
+
protoOf(TypeScriptEmitter).mk = withLogging_2;
|
|
6037
|
+
protoOf(TypeScriptEmitter).hi = withLogging_3;
|
|
6038
|
+
protoOf(TypeScriptEmitter).ok = withLogging_4;
|
|
6039
|
+
protoOf(TypeScriptEmitter).qk = withLogging_5;
|
|
6040
|
+
protoOf(TypeScriptEmitter).rk = withLogging_6;
|
|
6041
|
+
protoOf(TypeScriptEmitter).tk = withLogging_7;
|
|
6002
6042
|
protoOf(TypeScriptEmitter).dj = withLogging_8;
|
|
6003
|
-
protoOf(WirespecEmitter).
|
|
6004
|
-
protoOf(WirespecEmitter).
|
|
6005
|
-
protoOf(WirespecEmitter).
|
|
6006
|
-
protoOf(WirespecEmitter).
|
|
6007
|
-
protoOf(WirespecEmitter).hi =
|
|
6008
|
-
protoOf(WirespecEmitter).
|
|
6009
|
-
protoOf(WirespecEmitter).
|
|
6010
|
-
protoOf(WirespecEmitter).
|
|
6011
|
-
protoOf(WirespecEmitter).
|
|
6043
|
+
protoOf(WirespecEmitter).jk = withLogging;
|
|
6044
|
+
protoOf(WirespecEmitter).kk = withLogging_0;
|
|
6045
|
+
protoOf(WirespecEmitter).lk = withLogging_1;
|
|
6046
|
+
protoOf(WirespecEmitter).mk = withLogging_2;
|
|
6047
|
+
protoOf(WirespecEmitter).hi = withLogging_3;
|
|
6048
|
+
protoOf(WirespecEmitter).ok = withLogging_4;
|
|
6049
|
+
protoOf(WirespecEmitter).qk = withLogging_5;
|
|
6050
|
+
protoOf(WirespecEmitter).rk = withLogging_6;
|
|
6051
|
+
protoOf(WirespecEmitter).tk = withLogging_7;
|
|
6012
6052
|
protoOf(WsTypeDef).sl = name;
|
|
6013
6053
|
protoOf(WsEnumTypeDef).sl = name;
|
|
6014
6054
|
protoOf(WsRefinedTypeDef).sl = name;
|
|
@@ -6074,9 +6114,10 @@
|
|
|
6074
6114
|
_.$_$.y = Logger;
|
|
6075
6115
|
_.$_$.z = Type_Boolean_getInstance;
|
|
6076
6116
|
_.$_$.a1 = Type_Integer_getInstance;
|
|
6077
|
-
_.$_$.b1 =
|
|
6078
|
-
_.$_$.c1 =
|
|
6079
|
-
_.$_$.d1 =
|
|
6117
|
+
_.$_$.b1 = Type_Number_getInstance;
|
|
6118
|
+
_.$_$.c1 = Type_String_getInstance;
|
|
6119
|
+
_.$_$.d1 = Companion_getInstance_3;
|
|
6120
|
+
_.$_$.e1 = Wirespec_getInstance;
|
|
6080
6121
|
//endregion
|
|
6081
6122
|
return _;
|
|
6082
6123
|
}));
|