@flock/wirespec 0.4.4 → 0.5.2

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.
Files changed (31) hide show
  1. package/kotlin/Kotlinx-Cli-Library-kotlinx-cli-js-ir.js +294 -294
  2. package/kotlin/kotlin-kotlin-stdlib-js-ir.js +6 -6
  3. package/kotlin/kotlin-kotlin-stdlib-js-ir.js.map +1 -1
  4. package/kotlin/kotlin-openapi-bindings.js +5138 -5133
  5. package/kotlin/kotlin-openapi-bindings.js.map +1 -1
  6. package/kotlin/kotlinx-serialization-kotlinx-serialization-core-js-ir.js +1265 -1265
  7. package/kotlin/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map +1 -1
  8. package/kotlin/kotlinx-serialization-kotlinx-serialization-json-js-ir.js +980 -980
  9. package/kotlin/wirespec-cli.js +87 -87
  10. package/kotlin/wirespec-cli.js.map +1 -1
  11. package/kotlin/wirespec-core.js +676 -444
  12. package/kotlin/wirespec-core.js.map +1 -1
  13. package/kotlin/wirespec-lib.js +38 -38
  14. package/kotlin/wirespec-openapi.js +2475 -1934
  15. package/kotlin/wirespec-openapi.js.map +1 -1
  16. package/package.json +1 -1
  17. package/sync-hashes/Kotlinx-Cli-Library-kotlinx-cli-js-ir.js.hash +1 -1
  18. package/sync-hashes/kotlin-kotlin-stdlib-js-ir.js.hash +1 -1
  19. package/sync-hashes/kotlin-kotlin-stdlib-js-ir.js.map.hash +1 -1
  20. package/sync-hashes/kotlin-openapi-bindings.js.hash +1 -1
  21. package/sync-hashes/kotlin-openapi-bindings.js.map.hash +1 -1
  22. package/sync-hashes/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.hash +1 -1
  23. package/sync-hashes/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map.hash +1 -1
  24. package/sync-hashes/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.hash +1 -1
  25. package/sync-hashes/wirespec-cli.js.hash +1 -1
  26. package/sync-hashes/wirespec-cli.js.map.hash +1 -1
  27. package/sync-hashes/wirespec-core.js.hash +1 -1
  28. package/sync-hashes/wirespec-core.js.map.hash +1 -1
  29. package/sync-hashes/wirespec-lib.js.hash +1 -1
  30. package/sync-hashes/wirespec-openapi.js.hash +1 -1
  31. package/sync-hashes/wirespec-openapi.js.map.hash +1 -1
@@ -31,9 +31,10 @@
31
31
  var listOf = kotlin_kotlin.$_$.j5;
32
32
  var objectMeta = kotlin_kotlin.$_$.s7;
33
33
  var trimMargin = kotlin_kotlin.$_$.j9;
34
+ var HashSet_init_$Create$ = kotlin_kotlin.$_$.m;
35
+ var ArrayList_init_$Create$ = kotlin_kotlin.$_$.g;
34
36
  var joinToString = kotlin_kotlin.$_$.a5;
35
37
  var split = kotlin_kotlin.$_$.w8;
36
- var ArrayList_init_$Create$ = kotlin_kotlin.$_$.g;
37
38
  var collectionSizeOrDefault = kotlin_kotlin.$_$.c4;
38
39
  var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.f;
39
40
  var plus = kotlin_kotlin.$_$.p5;
@@ -85,37 +86,37 @@
85
86
  setMetadataFor(Reported, 'Reported', classMeta, Enum);
86
87
  setMetadataFor(Wirespec, 'Wirespec', objectMeta);
87
88
  function withLogging(_this__u8e3s4, logger, block) {
88
- return logger.ok('Emitting Definition: Type', block);
89
+ return logger.rk('Emitting Definition: Type', block);
89
90
  }
90
91
  function withLogging_0(_this__u8e3s4, logger, block) {
91
- return logger.ok('Emitting Definition: Type Shape', block);
92
+ return logger.rk('Emitting Definition: Type Shape', block);
92
93
  }
93
94
  function withLogging_1(_this__u8e3s4, logger, block) {
94
- return logger.ok('Emitting Definition: Type Shape Field', block);
95
+ return logger.rk('Emitting Definition: Type Shape Field', block);
95
96
  }
96
97
  function withLogging_2(_this__u8e3s4, logger, block) {
97
- return logger.ok('Emitting Definition: Type Shape Field Key', block);
98
+ return logger.rk('Emitting Definition: Type Shape Field Key', block);
98
99
  }
99
100
  function withLogging_3(_this__u8e3s4, logger, block) {
100
- return logger.ok('Emitting Definition: Type Shape Field Value', block);
101
+ return logger.rk('Emitting Definition: Type Shape Field Value', block);
101
102
  }
102
103
  setMetadataFor(TypeDefinitionEmitterLogger, 'TypeDefinitionEmitterLogger', interfaceMeta);
103
104
  function withLogging_4(_this__u8e3s4, logger, block) {
104
- return logger.ok('Emitting Definition: Endpoint', block);
105
+ return logger.rk('Emitting Definition: Endpoint', block);
105
106
  }
106
107
  setMetadataFor(EnumDefinitionEmitterLogger, 'EnumDefinitionEmitterLogger', interfaceMeta);
107
108
  function withLogging_5(_this__u8e3s4, logger, block) {
108
- return logger.ok('Emitting Definition: Refined', block);
109
+ return logger.rk('Emitting Definition: Refined', block);
109
110
  }
110
111
  function withLogging_6(_this__u8e3s4, logger, block) {
111
- return logger.ok('Emitting Definition: Refined Validator', block);
112
+ return logger.rk('Emitting Definition: Refined Validator', block);
112
113
  }
113
114
  setMetadataFor(RefinedTypeDefinitionEmitterLogger, 'RefinedTypeDefinitionEmitterLogger', interfaceMeta);
114
115
  function withLogging_7(_this__u8e3s4, logger, block) {
115
- return logger.ok('Emitting Definition: Endpoint', block);
116
+ return logger.rk('Emitting Definition: Endpoint', block);
116
117
  }
117
118
  function withLogging_8(_this__u8e3s4, logger, block) {
118
- return logger.ok('Emitting Definition: Endpoint Segment', block);
119
+ return logger.rk('Emitting Definition: Endpoint Segment', block);
119
120
  }
120
121
  setMetadataFor(EndpointDefinitionEmitterLogger, 'EndpointDefinitionEmitterLogger', interfaceMeta);
121
122
  setMetadataFor(Emitter, 'Emitter', classMeta, VOID, [TypeDefinitionEmitterLogger, EnumDefinitionEmitterLogger, RefinedTypeDefinitionEmitterLogger, EndpointDefinitionEmitterLogger]);
@@ -605,11 +606,29 @@
605
606
  }
606
607
  function emitResponseMapper(_this__u8e3s4, $this) {
607
608
  Companion_getInstance_1();
608
- var tmp = joinToString(_this__u8e3s4, '', VOID, VOID, VOID, VOID, JavaEmitter$emitResponseMapper$lambda($this));
609
+ var tmp$ret$1;
610
+ // Inline function 'kotlin.collections.distinctBy' call
611
+ var set = HashSet_init_$Create$();
612
+ var list = ArrayList_init_$Create$();
613
+ var tmp0_iterator = _this__u8e3s4.c();
614
+ while (tmp0_iterator.d()) {
615
+ var e = tmp0_iterator.e();
616
+ var tmp$ret$0;
617
+ // Inline function 'community.flock.wirespec.compiler.core.emit.JavaEmitter.emitResponseMapper.<anonymous>' call
618
+ var tmp0_safe_receiver = e.ni_1;
619
+ tmp$ret$0 = to(e.mi_1, tmp0_safe_receiver == null ? null : tmp0_safe_receiver.vh_1);
620
+ var key = tmp$ret$0;
621
+ if (set.a(key)) {
622
+ list.a(e);
623
+ }
624
+ }
625
+ tmp$ret$1 = list;
626
+ var tmp = tmp$ret$1;
627
+ var tmp_0 = joinToString(tmp, '', VOID, VOID, VOID, VOID, JavaEmitter$emitResponseMapper$lambda($this));
609
628
  Companion_getInstance_1();
610
629
  Companion_getInstance_1();
611
630
  Companion_getInstance_1();
612
- return trimMargin('\n |' + ' ' + 'static <B> Response RESPONSE_MAPPER(WirespecShared.ContentMapper<B> contentMapper, int status, java.util.Map<String, java.util.List<Object>> headers, WirespecShared.Content<B> content) {\n |' + tmp + '\n |' + ' ' + ' ' + 'throw new IllegalStateException("Unknown response type");\n |' + ' ' + '}\n ');
631
+ return trimMargin('\n |' + ' ' + 'static <B> Response RESPONSE_MAPPER(WirespecShared.ContentMapper<B> contentMapper, int status, java.util.Map<String, java.util.List<Object>> headers, WirespecShared.Content<B> content) {\n |' + tmp_0 + '\n |' + ' ' + ' ' + 'throw new IllegalStateException("Unknown response type");\n |' + ' ' + '}\n ');
613
632
  }
614
633
  function emitResponseMapperCondition(_this__u8e3s4, $this) {
615
634
  var tmp0_subject = _this__u8e3s4.ni_1;
@@ -876,7 +895,7 @@
876
895
  var tmp0_subject = $this_emitPrimaryType;
877
896
  var tmp;
878
897
  if (tmp0_subject instanceof Custom) {
879
- tmp = $this_emitPrimaryType.gj_1;
898
+ tmp = $this_emitPrimaryType.hj_1;
880
899
  } else {
881
900
  if (tmp0_subject instanceof Primitive) {
882
901
  var tmp1_subject = $this_emitPrimaryType.ej_1;
@@ -920,22 +939,22 @@
920
939
  function JavaEmitter$emit$lambda_4($this_emit) {
921
940
  return function () {
922
941
  Companion_getInstance_1();
923
- return 'enum ' + $this_emit.ij_1 + ' {\n' + ' ' + joinToString($this_emit.jj_1, ', ') + ';\n}\n';
942
+ return 'enum ' + $this_emit.kj_1 + ' {\n' + ' ' + joinToString($this_emit.lj_1, ', ') + ';\n}\n';
924
943
  };
925
944
  }
926
945
  function JavaEmitter$emit$lambda_5($this_emit, this$0) {
927
946
  return function () {
928
947
  Companion_getInstance_1();
929
948
  Companion_getInstance_1();
930
- var tmp = this$0.mj($this_emit.lj_1);
949
+ var tmp = this$0.oj($this_emit.nj_1);
931
950
  Companion_getInstance_1();
932
- return trimMargin('public record ' + $this_emit.kj_1 + '(String value) {\n |' + ' ' + 'static void validate(' + $this_emit.kj_1 + ' record) {\n |' + ' ' + tmp + '\n |' + ' ' + '}\n |}\n |');
951
+ 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
952
  };
934
953
  }
935
954
  function JavaEmitter$emit$lambda_6($this_emit) {
936
955
  return function () {
937
956
  Companion_getInstance_1();
938
- return ' ' + 'java.util.regex.Pattern.compile(' + $this_emit.nj_1 + ').matcher(record.value).find();';
957
+ return ' ' + 'java.util.regex.Pattern.compile(' + $this_emit.pj_1 + ').matcher(record.value).find();';
939
958
  };
940
959
  }
941
960
  function JavaEmitter$emit$lambda$lambda_0(this$0, $this_emit) {
@@ -1018,11 +1037,30 @@
1018
1037
  }
1019
1038
  tmp$ret$7 = tmp4_mapTo;
1020
1039
  tmp$ret$8 = tmp$ret$7;
1021
- var tmp_4 = tmp$ret$8;
1040
+ var tmp_4 = toSet(tmp$ret$8);
1022
1041
  var tmp_5 = joinToString(tmp_4, '\n', VOID, VOID, VOID, VOID, JavaEmitter$emit$lambda$lambda_2(this$0));
1023
- var tmp_6 = joinToString($this_emit.li_1, '\n', VOID, VOID, VOID, VOID, JavaEmitter$emit$lambda$lambda_3(this$0));
1042
+ var tmp$ret$10;
1043
+ // Inline function 'kotlin.collections.distinctBy' call
1044
+ var tmp6_distinctBy = $this_emit.li_1;
1045
+ var set = HashSet_init_$Create$();
1046
+ var list = ArrayList_init_$Create$();
1047
+ var tmp0_iterator_2 = tmp6_distinctBy.c();
1048
+ while (tmp0_iterator_2.d()) {
1049
+ var e = tmp0_iterator_2.e();
1050
+ var tmp$ret$9;
1051
+ // Inline function 'community.flock.wirespec.compiler.core.emit.JavaEmitter.emit.<anonymous>.<anonymous>' call
1052
+ var tmp0_safe_receiver = e.ni_1;
1053
+ tmp$ret$9 = to(e.mi_1, tmp0_safe_receiver == null ? null : tmp0_safe_receiver.vh_1);
1054
+ var key = tmp$ret$9;
1055
+ if (set.a(key)) {
1056
+ list.a(e);
1057
+ }
1058
+ }
1059
+ tmp$ret$10 = list;
1060
+ var tmp_6 = tmp$ret$10;
1061
+ var tmp_7 = joinToString(tmp_6, '\n', VOID, VOID, VOID, VOID, JavaEmitter$emit$lambda$lambda_3(this$0));
1024
1062
  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().oj($this_emit.ei_1) + '(Request request);\n |}\n |');
1063
+ 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_7 + '\n |' + ' ' + 'public Response ' + Companion_getInstance_1().qj($this_emit.ei_1) + '(Request request);\n |}\n |');
1026
1064
  };
1027
1065
  }
1028
1066
  function JavaEmitter$emitResponseMapper$lambda(this$0) {
@@ -1038,7 +1076,7 @@
1038
1076
  var tmp0_subject = $this_emit;
1039
1077
  var tmp;
1040
1078
  if (tmp0_subject instanceof Literal) {
1041
- tmp = '"' + $this_emit.pj_1 + '"';
1079
+ tmp = '"' + $this_emit.rj_1 + '"';
1042
1080
  } else {
1043
1081
  if (tmp0_subject instanceof Param) {
1044
1082
  tmp = $this_emit.si_1.dj_1;
@@ -1066,7 +1104,7 @@
1066
1104
  tmp = '{' + it.si_1.dj_1 + '}';
1067
1105
  } else {
1068
1106
  if (tmp0_subject instanceof Literal) {
1069
- tmp = it.pj_1;
1107
+ tmp = it.rj_1;
1070
1108
  } else {
1071
1109
  noWhenBranchMatchedException();
1072
1110
  }
@@ -1144,32 +1182,32 @@
1144
1182
  tmp$ret$2 = tmp$ret$1;
1145
1183
  return plus_0(tmp$ret$2, to('WirespecShared', this.ci_1 + '\n\n' + this.bi_1));
1146
1184
  };
1147
- protoOf(JavaEmitter).qj = function (_this__u8e3s4) {
1148
- return this.rj(_this__u8e3s4, this.oh_1, JavaEmitter$emit$lambda(_this__u8e3s4, this));
1185
+ protoOf(JavaEmitter).sj = function (_this__u8e3s4) {
1186
+ return this.tj(_this__u8e3s4, this.oh_1, JavaEmitter$emit$lambda(_this__u8e3s4, this));
1149
1187
  };
1150
1188
  protoOf(JavaEmitter).wi = function (_this__u8e3s4) {
1151
- return this.sj(_this__u8e3s4, this.oh_1, JavaEmitter$emit$lambda_0(_this__u8e3s4, this));
1189
+ return this.uj(_this__u8e3s4, this.oh_1, JavaEmitter$emit$lambda_0(_this__u8e3s4, this));
1152
1190
  };
1153
1191
  protoOf(JavaEmitter).xi = function (_this__u8e3s4) {
1154
- return this.tj(_this__u8e3s4, this.oh_1, JavaEmitter$emit$lambda_1(_this__u8e3s4, this));
1192
+ return this.vj(_this__u8e3s4, this.oh_1, JavaEmitter$emit$lambda_1(_this__u8e3s4, this));
1155
1193
  };
1156
1194
  protoOf(JavaEmitter).cj = function (_this__u8e3s4) {
1157
- return this.uj(_this__u8e3s4, this.oh_1, JavaEmitter$emit$lambda_2(_this__u8e3s4));
1195
+ return this.wj(_this__u8e3s4, this.oh_1, JavaEmitter$emit$lambda_2(_this__u8e3s4));
1158
1196
  };
1159
1197
  protoOf(JavaEmitter).di = function (_this__u8e3s4) {
1160
1198
  return this.th(_this__u8e3s4, this.oh_1, JavaEmitter$emit$lambda_3(this, _this__u8e3s4));
1161
1199
  };
1162
- protoOf(JavaEmitter).vj = function (_this__u8e3s4) {
1163
- return this.wj(_this__u8e3s4, this.oh_1, JavaEmitter$emit$lambda_4(_this__u8e3s4));
1164
- };
1165
1200
  protoOf(JavaEmitter).xj = function (_this__u8e3s4) {
1166
- return this.yj(_this__u8e3s4, this.oh_1, JavaEmitter$emit$lambda_5(_this__u8e3s4, this));
1201
+ return this.yj(_this__u8e3s4, this.oh_1, JavaEmitter$emit$lambda_4(_this__u8e3s4));
1202
+ };
1203
+ protoOf(JavaEmitter).zj = function (_this__u8e3s4) {
1204
+ return this.ak(_this__u8e3s4, this.oh_1, JavaEmitter$emit$lambda_5(_this__u8e3s4, this));
1167
1205
  };
1168
- protoOf(JavaEmitter).mj = function (_this__u8e3s4) {
1169
- return this.zj(_this__u8e3s4, this.oh_1, JavaEmitter$emit$lambda_6(_this__u8e3s4));
1206
+ protoOf(JavaEmitter).oj = function (_this__u8e3s4) {
1207
+ return this.bk(_this__u8e3s4, this.oh_1, JavaEmitter$emit$lambda_6(_this__u8e3s4));
1170
1208
  };
1171
- protoOf(JavaEmitter).ak = function (_this__u8e3s4) {
1172
- return this.bk(_this__u8e3s4, this.oh_1, JavaEmitter$emit$lambda_7(_this__u8e3s4, this));
1209
+ protoOf(JavaEmitter).ck = function (_this__u8e3s4) {
1210
+ return this.dk(_this__u8e3s4, this.oh_1, JavaEmitter$emit$lambda_7(_this__u8e3s4, this));
1173
1211
  };
1174
1212
  function hasEndpoints(_this__u8e3s4, $this) {
1175
1213
  var tmp$ret$0;
@@ -1255,6 +1293,8 @@
1255
1293
  Companion_getInstance_1();
1256
1294
  Companion_getInstance_1();
1257
1295
  Companion_getInstance_1();
1296
+ var tmp$ret$4;
1297
+ // Inline function 'kotlin.collections.distinctBy' call
1258
1298
  var tmp$ret$2;
1259
1299
  // Inline function 'kotlin.collections.filter' call
1260
1300
  var tmp$ret$1;
@@ -1272,26 +1312,60 @@
1272
1312
  }
1273
1313
  tmp$ret$1 = tmp0_filterTo;
1274
1314
  tmp$ret$2 = tmp$ret$1;
1275
- var tmp = tmp$ret$2;
1315
+ var tmp1_distinctBy = tmp$ret$2;
1316
+ var set = HashSet_init_$Create$();
1317
+ var list = ArrayList_init_$Create$();
1318
+ var tmp0_iterator_0 = tmp1_distinctBy.c();
1319
+ while (tmp0_iterator_0.d()) {
1320
+ var e = tmp0_iterator_0.e();
1321
+ var tmp$ret$3;
1322
+ // Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emitResponseMapper.<anonymous>' call
1323
+ var tmp0_safe_receiver = e.ni_1;
1324
+ tmp$ret$3 = to(e.mi_1, tmp0_safe_receiver == null ? null : tmp0_safe_receiver.vh_1);
1325
+ var key = tmp$ret$3;
1326
+ if (set.a(key)) {
1327
+ list.a(e);
1328
+ }
1329
+ }
1330
+ tmp$ret$4 = list;
1331
+ var tmp = tmp$ret$4;
1276
1332
  var tmp_0 = joinToString(tmp, '\n', VOID, VOID, VOID, VOID, KotlinEmitter$emitResponseMapper$lambda($this));
1277
- var tmp$ret$5;
1333
+ var tmp$ret$9;
1334
+ // Inline function 'kotlin.collections.distinctBy' call
1335
+ var tmp$ret$7;
1278
1336
  // Inline function 'kotlin.collections.filter' call
1279
- var tmp$ret$4;
1337
+ var tmp$ret$6;
1280
1338
  // Inline function 'kotlin.collections.filterTo' call
1281
- var tmp1_filterTo = ArrayList_init_$Create$();
1282
- var tmp0_iterator_0 = _this__u8e3s4.c();
1283
- while (tmp0_iterator_0.d()) {
1284
- var element_0 = tmp0_iterator_0.e();
1285
- var tmp$ret$3;
1339
+ var tmp2_filterTo = ArrayList_init_$Create$();
1340
+ var tmp0_iterator_1 = _this__u8e3s4.c();
1341
+ while (tmp0_iterator_1.d()) {
1342
+ var element_0 = tmp0_iterator_1.e();
1343
+ var tmp$ret$5;
1286
1344
  // Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emitResponseMapper.<anonymous>' call
1287
- tmp$ret$3 = !isInt_0(element_0.mi_1);
1288
- if (tmp$ret$3) {
1289
- tmp1_filterTo.a(element_0);
1345
+ tmp$ret$5 = !isInt_0(element_0.mi_1);
1346
+ if (tmp$ret$5) {
1347
+ tmp2_filterTo.a(element_0);
1290
1348
  }
1291
1349
  }
1292
- tmp$ret$4 = tmp1_filterTo;
1293
- tmp$ret$5 = tmp$ret$4;
1294
- var tmp_1 = tmp$ret$5;
1350
+ tmp$ret$6 = tmp2_filterTo;
1351
+ tmp$ret$7 = tmp$ret$6;
1352
+ var tmp3_distinctBy = tmp$ret$7;
1353
+ var set_0 = HashSet_init_$Create$();
1354
+ var list_0 = ArrayList_init_$Create$();
1355
+ var tmp0_iterator_2 = tmp3_distinctBy.c();
1356
+ while (tmp0_iterator_2.d()) {
1357
+ var e_0 = tmp0_iterator_2.e();
1358
+ var tmp$ret$8;
1359
+ // Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emitResponseMapper.<anonymous>' call
1360
+ var tmp0_safe_receiver_0 = e_0.ni_1;
1361
+ tmp$ret$8 = to(e_0.mi_1, tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.vh_1);
1362
+ var key_0 = tmp$ret$8;
1363
+ if (set_0.a(key_0)) {
1364
+ list_0.a(e_0);
1365
+ }
1366
+ }
1367
+ tmp$ret$9 = list_0;
1368
+ var tmp_1 = tmp$ret$9;
1295
1369
  var tmp_2 = joinToString(tmp_1, '\n', VOID, VOID, VOID, VOID, KotlinEmitter$emitResponseMapper$lambda_0($this));
1296
1370
  Companion_getInstance_1();
1297
1371
  Companion_getInstance_1();
@@ -1489,12 +1563,14 @@
1489
1563
  }
1490
1564
  function KotlinEmitter$emit$lambda_3($this_emit) {
1491
1565
  return function () {
1566
+ var tmp$ret$3;
1567
+ // Inline function 'kotlin.let' call
1492
1568
  var tmp$ret$1;
1493
1569
  // Inline function 'kotlin.let' call
1494
1570
  var tmp0_subject = $this_emit;
1495
1571
  var tmp;
1496
1572
  if (tmp0_subject instanceof Custom) {
1497
- tmp = $this_emit.gj_1;
1573
+ tmp = $this_emit.hj_1;
1498
1574
  } else {
1499
1575
  if (tmp0_subject instanceof Primitive) {
1500
1576
  var tmp1_subject = $this_emit.ej_1;
@@ -1525,23 +1601,29 @@
1525
1601
  // Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emit.<anonymous>.<anonymous>' call
1526
1602
  tmp$ret$0 = $this_emit.qi() ? 'List<' + tmp0_let + '>' : tmp0_let;
1527
1603
  tmp$ret$1 = tmp$ret$0;
1528
- return tmp$ret$1;
1604
+ var tmp1_let = tmp$ret$1;
1605
+ // Inline function 'kotlin.contracts.contract' call
1606
+ var tmp$ret$2;
1607
+ // Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emit.<anonymous>.<anonymous>' call
1608
+ tmp$ret$2 = $this_emit.ik() ? 'Map<String, ' + tmp1_let + '>' : tmp1_let;
1609
+ tmp$ret$3 = tmp$ret$2;
1610
+ return tmp$ret$3;
1529
1611
  };
1530
1612
  }
1531
1613
  function KotlinEmitter$emit$lambda_4($this_emit) {
1532
1614
  return function () {
1533
1615
  Companion_getInstance_1();
1534
- return 'enum class ' + $this_emit.ij_1 + ' {\n' + ' ' + joinToString($this_emit.jj_1, ', ') + '\n}\n';
1616
+ return 'enum class ' + $this_emit.kj_1 + ' {\n' + ' ' + joinToString($this_emit.lj_1, ', ') + '\n}\n';
1535
1617
  };
1536
1618
  }
1537
1619
  function KotlinEmitter$emit$lambda_5($this_emit, this$0) {
1538
1620
  return function () {
1539
- return trimMargin('data class ' + $this_emit.kj_1 + '(val value: String)\n |fun ' + $this_emit.kj_1 + '.validate() = ' + this$0.mj($this_emit.lj_1) + '\n |');
1621
+ 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
1622
  };
1541
1623
  }
1542
1624
  function KotlinEmitter$emit$lambda_6($this_emit) {
1543
1625
  return function () {
1544
- return 'Regex(' + $this_emit.nj_1 + ').find(value)';
1626
+ return 'Regex(' + $this_emit.pj_1 + ').find(value)';
1545
1627
  };
1546
1628
  }
1547
1629
  function KotlinEmitter$emit$lambda$lambda_0(this$0, $this_emit) {
@@ -1731,8 +1813,10 @@
1731
1813
  }
1732
1814
  tmp$ret$7 = tmp4_mapTo;
1733
1815
  tmp$ret$8 = tmp$ret$7;
1734
- var tmp_2 = tmp$ret$8;
1816
+ var tmp_2 = toSet(tmp$ret$8);
1735
1817
  var tmp_3 = joinToString(tmp_2, '\n', VOID, VOID, VOID, VOID, KotlinEmitter$emit$lambda$lambda_2);
1818
+ var tmp$ret$13;
1819
+ // Inline function 'kotlin.collections.distinctBy' call
1736
1820
  var tmp$ret$11;
1737
1821
  // Inline function 'kotlin.collections.filter' call
1738
1822
  var tmp7_filter = $this_emit.li_1;
@@ -1751,29 +1835,63 @@
1751
1835
  }
1752
1836
  tmp$ret$10 = tmp6_filterTo;
1753
1837
  tmp$ret$11 = tmp$ret$10;
1754
- var tmp_4 = tmp$ret$11;
1838
+ var tmp8_distinctBy = tmp$ret$11;
1839
+ var set = HashSet_init_$Create$();
1840
+ var list = ArrayList_init_$Create$();
1841
+ var tmp0_iterator_3 = tmp8_distinctBy.c();
1842
+ while (tmp0_iterator_3.d()) {
1843
+ var e = tmp0_iterator_3.e();
1844
+ var tmp$ret$12;
1845
+ // Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emit.<anonymous>.<anonymous>' call
1846
+ var tmp0_safe_receiver = e.ni_1;
1847
+ tmp$ret$12 = to(e.mi_1, tmp0_safe_receiver == null ? null : tmp0_safe_receiver.vh_1);
1848
+ var key = tmp$ret$12;
1849
+ if (set.a(key)) {
1850
+ list.a(e);
1851
+ }
1852
+ }
1853
+ tmp$ret$13 = list;
1854
+ var tmp_4 = tmp$ret$13;
1755
1855
  var tmp_5 = joinToString(tmp_4, '\n', VOID, VOID, VOID, VOID, KotlinEmitter$emit$lambda$lambda_3(this$0));
1756
- var tmp$ret$14;
1856
+ var tmp$ret$18;
1857
+ // Inline function 'kotlin.collections.distinctBy' call
1858
+ var tmp$ret$16;
1757
1859
  // Inline function 'kotlin.collections.filter' call
1758
- var tmp9_filter = $this_emit.li_1;
1759
- var tmp$ret$13;
1860
+ var tmp10_filter = $this_emit.li_1;
1861
+ var tmp$ret$15;
1760
1862
  // Inline function 'kotlin.collections.filterTo' call
1761
- var tmp8_filterTo = ArrayList_init_$Create$();
1762
- var tmp0_iterator_3 = tmp9_filter.c();
1763
- while (tmp0_iterator_3.d()) {
1764
- var element_1 = tmp0_iterator_3.e();
1765
- var tmp$ret$12;
1863
+ var tmp9_filterTo = ArrayList_init_$Create$();
1864
+ var tmp0_iterator_4 = tmp10_filter.c();
1865
+ while (tmp0_iterator_4.d()) {
1866
+ var element_1 = tmp0_iterator_4.e();
1867
+ var tmp$ret$14;
1766
1868
  // Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emit.<anonymous>.<anonymous>' call
1767
- tmp$ret$12 = !isInt_0(element_1.mi_1);
1768
- if (tmp$ret$12) {
1769
- tmp8_filterTo.a(element_1);
1869
+ tmp$ret$14 = !isInt_0(element_1.mi_1);
1870
+ if (tmp$ret$14) {
1871
+ tmp9_filterTo.a(element_1);
1770
1872
  }
1771
1873
  }
1772
- tmp$ret$13 = tmp8_filterTo;
1773
- tmp$ret$14 = tmp$ret$13;
1774
- var tmp_6 = tmp$ret$14;
1874
+ tmp$ret$15 = tmp9_filterTo;
1875
+ tmp$ret$16 = tmp$ret$15;
1876
+ var tmp11_distinctBy = tmp$ret$16;
1877
+ var set_0 = HashSet_init_$Create$();
1878
+ var list_0 = ArrayList_init_$Create$();
1879
+ var tmp0_iterator_5 = tmp11_distinctBy.c();
1880
+ while (tmp0_iterator_5.d()) {
1881
+ var e_0 = tmp0_iterator_5.e();
1882
+ var tmp$ret$17;
1883
+ // Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emit.<anonymous>.<anonymous>' call
1884
+ var tmp0_safe_receiver_0 = e_0.ni_1;
1885
+ tmp$ret$17 = to(e_0.mi_1, tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.vh_1);
1886
+ var key_0 = tmp$ret$17;
1887
+ if (set_0.a(key_0)) {
1888
+ list_0.a(e_0);
1889
+ }
1890
+ }
1891
+ tmp$ret$18 = list_0;
1892
+ var tmp_6 = tmp$ret$18;
1775
1893
  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().oj($this_emit.ei_1);
1894
+ var tmp_8 = Companion_getInstance_1().qj($this_emit.ei_1);
1777
1895
  Companion_getInstance_1();
1778
1896
  Companion_getInstance_1();
1779
1897
  Companion_getInstance_1();
@@ -1799,7 +1917,7 @@
1799
1917
  tmp = '{' + it.si_1.dj_1 + '}';
1800
1918
  } else {
1801
1919
  if (tmp0_subject instanceof Literal) {
1802
- tmp = it.pj_1;
1920
+ tmp = it.rj_1;
1803
1921
  } else {
1804
1922
  noWhenBranchMatchedException();
1805
1923
  }
@@ -1816,7 +1934,7 @@
1816
1934
  var tmp0_subject = $this_emit;
1817
1935
  var tmp;
1818
1936
  if (tmp0_subject instanceof Literal) {
1819
- tmp = $this_emit.pj_1;
1937
+ tmp = $this_emit.rj_1;
1820
1938
  } else {
1821
1939
  if (tmp0_subject instanceof Param) {
1822
1940
  tmp = '${' + $this_emit.si_1.dj_1 + '}';
@@ -1846,14 +1964,14 @@
1846
1964
  packageName = packageName === VOID ? get_DEFAULT_PACKAGE_NAME() : packageName;
1847
1965
  logger = logger === VOID ? get_noLogger() : logger;
1848
1966
  Emitter.call(this, logger);
1849
- this.ek_1 = packageName;
1967
+ this.gk_1 = packageName;
1850
1968
  var tmp = this;
1851
1969
  Companion_getInstance_1();
1852
1970
  Companion_getInstance_1();
1853
1971
  Companion_getInstance_1();
1854
1972
  Companion_getInstance_1();
1855
1973
  Companion_getInstance_1();
1856
- tmp.fk_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 ');
1974
+ 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
1975
  }
1858
1976
  protoOf(KotlinEmitter).qh = function (ast) {
1859
1977
  var tmp$ret$3;
@@ -1871,7 +1989,7 @@
1871
1989
  var result = item.j3();
1872
1990
  var tmp$ret$0;
1873
1991
  // Inline function 'kotlin.text.trimStart' call
1874
- var tmp0_trimStart = trimMargin('\n |' + (isBlank(this.ek_1) ? '' : 'package ' + this.ek_1) + '\n |' + (hasEndpoints(ast, this) ? this.fk_1 : '') + '\n |' + result + '\n ');
1992
+ var tmp0_trimStart = trimMargin('\n |' + (isBlank(this.gk_1) ? '' : 'package ' + this.gk_1) + '\n |' + (hasEndpoints(ast, this) ? this.hk_1 : '') + '\n |' + result + '\n ');
1875
1993
  tmp$ret$0 = toString(trimStart(isCharSequence(tmp0_trimStart) ? tmp0_trimStart : THROW_CCE()));
1876
1994
  tmp$ret$1 = to(name, tmp$ret$0);
1877
1995
  tmp0_mapTo.a(tmp$ret$1);
@@ -1880,32 +1998,32 @@
1880
1998
  tmp$ret$3 = tmp$ret$2;
1881
1999
  return tmp$ret$3;
1882
2000
  };
1883
- protoOf(KotlinEmitter).qj = function (_this__u8e3s4) {
1884
- return this.rj(_this__u8e3s4, this.oh_1, KotlinEmitter$emit$lambda(_this__u8e3s4, this));
2001
+ protoOf(KotlinEmitter).sj = function (_this__u8e3s4) {
2002
+ return this.tj(_this__u8e3s4, this.oh_1, KotlinEmitter$emit$lambda(_this__u8e3s4, this));
1885
2003
  };
1886
2004
  protoOf(KotlinEmitter).wi = function (_this__u8e3s4) {
1887
- return this.sj(_this__u8e3s4, this.oh_1, KotlinEmitter$emit$lambda_0(_this__u8e3s4, this));
2005
+ return this.uj(_this__u8e3s4, this.oh_1, KotlinEmitter$emit$lambda_0(_this__u8e3s4, this));
1888
2006
  };
1889
2007
  protoOf(KotlinEmitter).xi = function (_this__u8e3s4) {
1890
- return this.tj(_this__u8e3s4, this.oh_1, KotlinEmitter$emit$lambda_1(this, _this__u8e3s4));
2008
+ return this.vj(_this__u8e3s4, this.oh_1, KotlinEmitter$emit$lambda_1(this, _this__u8e3s4));
1891
2009
  };
1892
2010
  protoOf(KotlinEmitter).cj = function (_this__u8e3s4) {
1893
- return this.uj(_this__u8e3s4, this.oh_1, KotlinEmitter$emit$lambda_2(_this__u8e3s4));
2011
+ return this.wj(_this__u8e3s4, this.oh_1, KotlinEmitter$emit$lambda_2(_this__u8e3s4));
1894
2012
  };
1895
2013
  protoOf(KotlinEmitter).di = function (_this__u8e3s4) {
1896
2014
  return this.th(_this__u8e3s4, this.oh_1, KotlinEmitter$emit$lambda_3(_this__u8e3s4));
1897
2015
  };
1898
- protoOf(KotlinEmitter).vj = function (_this__u8e3s4) {
1899
- return this.wj(_this__u8e3s4, this.oh_1, KotlinEmitter$emit$lambda_4(_this__u8e3s4));
1900
- };
1901
2016
  protoOf(KotlinEmitter).xj = function (_this__u8e3s4) {
1902
- return this.yj(_this__u8e3s4, this.oh_1, KotlinEmitter$emit$lambda_5(_this__u8e3s4, this));
2017
+ return this.yj(_this__u8e3s4, this.oh_1, KotlinEmitter$emit$lambda_4(_this__u8e3s4));
2018
+ };
2019
+ protoOf(KotlinEmitter).zj = function (_this__u8e3s4) {
2020
+ return this.ak(_this__u8e3s4, this.oh_1, KotlinEmitter$emit$lambda_5(_this__u8e3s4, this));
1903
2021
  };
1904
- protoOf(KotlinEmitter).mj = function (_this__u8e3s4) {
1905
- return this.zj(_this__u8e3s4, this.oh_1, KotlinEmitter$emit$lambda_6(_this__u8e3s4));
2022
+ protoOf(KotlinEmitter).oj = function (_this__u8e3s4) {
2023
+ return this.bk(_this__u8e3s4, this.oh_1, KotlinEmitter$emit$lambda_6(_this__u8e3s4));
1906
2024
  };
1907
- protoOf(KotlinEmitter).ak = function (_this__u8e3s4) {
1908
- return this.bk(_this__u8e3s4, this.oh_1, KotlinEmitter$emit$lambda_7(_this__u8e3s4, this));
2025
+ protoOf(KotlinEmitter).ck = function (_this__u8e3s4) {
2026
+ return this.dk(_this__u8e3s4, this.oh_1, KotlinEmitter$emit$lambda_7(_this__u8e3s4, this));
1909
2027
  };
1910
2028
  function emitContentType_0(_this__u8e3s4) {
1911
2029
  var tmp = split(_this__u8e3s4.vh_1, ['/']);
@@ -1941,7 +2059,7 @@
1941
2059
  }
1942
2060
  function Companion() {
1943
2061
  Companion_instance = this;
1944
- this.gk_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']);
2062
+ 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
2063
  }
1946
2064
  var Companion_instance;
1947
2065
  function Companion_getInstance_0() {
@@ -1972,7 +2090,7 @@
1972
2090
  }
1973
2091
  function ScalaEmitter$emit$lambda_2($this_emit) {
1974
2092
  return function () {
1975
- return Companion_getInstance_0().gk_1.i1($this_emit.dj_1) ? '`' + $this_emit.dj_1 + '`' : $this_emit.dj_1;
2093
+ return Companion_getInstance_0().jk_1.i1($this_emit.dj_1) ? '`' + $this_emit.dj_1 + '`' : $this_emit.dj_1;
1976
2094
  };
1977
2095
  }
1978
2096
  function ScalaEmitter$emit$lambda_3($this_emit) {
@@ -1982,7 +2100,7 @@
1982
2100
  var tmp0_subject = $this_emit;
1983
2101
  var tmp;
1984
2102
  if (tmp0_subject instanceof Custom) {
1985
- tmp = $this_emit.gj_1;
2103
+ tmp = $this_emit.hj_1;
1986
2104
  } else {
1987
2105
  if (tmp0_subject instanceof Primitive) {
1988
2106
  var tmp1_subject = $this_emit.ej_1;
@@ -2019,20 +2137,20 @@
2019
2137
  function ScalaEmitter$emit$lambda$lambda_0($this_emit) {
2020
2138
  return function (it) {
2021
2139
  Companion_getInstance_1();
2022
- return ' ' + 'final case object ' + it + ' extends ' + $this_emit.ij_1 + '(label = "' + it + '")';
2140
+ return ' ' + 'final case object ' + it + ' extends ' + $this_emit.kj_1 + '(label = "' + it + '")';
2023
2141
  };
2024
2142
  }
2025
2143
  function ScalaEmitter$emit$lambda_4($this_emit) {
2026
2144
  return function () {
2027
- return trimMargin('\n |sealed abstract class ' + $this_emit.ij_1 + '(val label: String)\n |object ' + $this_emit.ij_1 + ' {\n |' + joinToString($this_emit.jj_1, '\n', VOID, VOID, VOID, VOID, ScalaEmitter$emit$lambda$lambda_0($this_emit)) + '\n |}\n |');
2145
+ 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
2146
  };
2029
2147
  }
2030
2148
  function ScalaEmitter$emit$lambda_5($this_emit, this$0) {
2031
2149
  return function () {
2032
2150
  Companion_getInstance_1();
2033
- var tmp = this$0.mj($this_emit.lj_1);
2151
+ var tmp = this$0.oj($this_emit.nj_1);
2034
2152
  Companion_getInstance_1();
2035
- return trimMargin('case class ' + $this_emit.kj_1 + '(val value: String) {\n |' + ' ' + 'implicit class ' + $this_emit.kj_1 + 'Ops(val that: ' + $this_emit.kj_1 + ') {\n |' + tmp + '\n |' + ' ' + '}\n |}\n |\n |');
2153
+ 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
2154
  };
2037
2155
  }
2038
2156
  function ScalaEmitter$emit$lambda_6($this_emit) {
@@ -2041,7 +2159,7 @@
2041
2159
  Companion_getInstance_1();
2042
2160
  Companion_getInstance_1();
2043
2161
  Companion_getInstance_1();
2044
- return trimMargin(' ' + ' ' + 'val regex = new scala.util.matching.Regex(' + $this_emit.nj_1 + ')\n |' + ' ' + ' ' + 'regex.findFirstIn(that.value)');
2162
+ return trimMargin(' ' + ' ' + 'val regex = new scala.util.matching.Regex(' + $this_emit.pj_1 + ')\n |' + ' ' + ' ' + 'regex.findFirstIn(that.value)');
2045
2163
  };
2046
2164
  }
2047
2165
  function ScalaEmitter$emit$lambda_7() {
@@ -2052,7 +2170,7 @@
2052
2170
  packageName = packageName === VOID ? get_DEFAULT_PACKAGE_NAME() : packageName;
2053
2171
  logger = logger === VOID ? get_noLogger() : logger;
2054
2172
  Emitter.call(this, logger);
2055
- this.jk_1 = packageName;
2173
+ this.mk_1 = packageName;
2056
2174
  }
2057
2175
  protoOf(ScalaEmitter).qh = function (ast) {
2058
2176
  var tmp$ret$2;
@@ -2068,39 +2186,39 @@
2068
2186
  // Inline function 'community.flock.wirespec.compiler.core.emit.ScalaEmitter.emit.<anonymous>' call
2069
2187
  var name = item.i3();
2070
2188
  var result = item.j3();
2071
- tmp$ret$0 = to(name, isBlank(this.jk_1) ? '' : 'package ' + this.jk_1 + '\n\n' + result);
2189
+ tmp$ret$0 = to(name, isBlank(this.mk_1) ? '' : 'package ' + this.mk_1 + '\n\n' + result);
2072
2190
  tmp0_mapTo.a(tmp$ret$0);
2073
2191
  }
2074
2192
  tmp$ret$1 = tmp0_mapTo;
2075
2193
  tmp$ret$2 = tmp$ret$1;
2076
2194
  return tmp$ret$2;
2077
2195
  };
2078
- protoOf(ScalaEmitter).qj = function (_this__u8e3s4) {
2079
- return this.rj(_this__u8e3s4, this.oh_1, ScalaEmitter$emit$lambda(_this__u8e3s4, this));
2196
+ protoOf(ScalaEmitter).sj = function (_this__u8e3s4) {
2197
+ return this.tj(_this__u8e3s4, this.oh_1, ScalaEmitter$emit$lambda(_this__u8e3s4, this));
2080
2198
  };
2081
2199
  protoOf(ScalaEmitter).wi = function (_this__u8e3s4) {
2082
- return this.sj(_this__u8e3s4, this.oh_1, ScalaEmitter$emit$lambda_0(_this__u8e3s4, this));
2200
+ return this.uj(_this__u8e3s4, this.oh_1, ScalaEmitter$emit$lambda_0(_this__u8e3s4, this));
2083
2201
  };
2084
2202
  protoOf(ScalaEmitter).xi = function (_this__u8e3s4) {
2085
- return this.tj(_this__u8e3s4, this.oh_1, ScalaEmitter$emit$lambda_1(this, _this__u8e3s4));
2203
+ return this.vj(_this__u8e3s4, this.oh_1, ScalaEmitter$emit$lambda_1(this, _this__u8e3s4));
2086
2204
  };
2087
2205
  protoOf(ScalaEmitter).cj = function (_this__u8e3s4) {
2088
- return this.uj(_this__u8e3s4, this.oh_1, ScalaEmitter$emit$lambda_2(_this__u8e3s4));
2206
+ return this.wj(_this__u8e3s4, this.oh_1, ScalaEmitter$emit$lambda_2(_this__u8e3s4));
2089
2207
  };
2090
2208
  protoOf(ScalaEmitter).di = function (_this__u8e3s4) {
2091
2209
  return this.th(_this__u8e3s4, this.oh_1, ScalaEmitter$emit$lambda_3(_this__u8e3s4));
2092
2210
  };
2093
- protoOf(ScalaEmitter).vj = function (_this__u8e3s4) {
2094
- return this.wj(_this__u8e3s4, this.oh_1, ScalaEmitter$emit$lambda_4(_this__u8e3s4));
2095
- };
2096
2211
  protoOf(ScalaEmitter).xj = function (_this__u8e3s4) {
2097
- return this.yj(_this__u8e3s4, this.oh_1, ScalaEmitter$emit$lambda_5(_this__u8e3s4, this));
2212
+ return this.yj(_this__u8e3s4, this.oh_1, ScalaEmitter$emit$lambda_4(_this__u8e3s4));
2213
+ };
2214
+ protoOf(ScalaEmitter).zj = function (_this__u8e3s4) {
2215
+ return this.ak(_this__u8e3s4, this.oh_1, ScalaEmitter$emit$lambda_5(_this__u8e3s4, this));
2098
2216
  };
2099
- protoOf(ScalaEmitter).mj = function (_this__u8e3s4) {
2100
- return this.zj(_this__u8e3s4, this.oh_1, ScalaEmitter$emit$lambda_6(_this__u8e3s4));
2217
+ protoOf(ScalaEmitter).oj = function (_this__u8e3s4) {
2218
+ return this.bk(_this__u8e3s4, this.oh_1, ScalaEmitter$emit$lambda_6(_this__u8e3s4));
2101
2219
  };
2102
- protoOf(ScalaEmitter).ak = function (_this__u8e3s4) {
2103
- return this.bk(_this__u8e3s4, this.oh_1, ScalaEmitter$emit$lambda_7);
2220
+ protoOf(ScalaEmitter).ck = function (_this__u8e3s4) {
2221
+ return this.dk(_this__u8e3s4, this.oh_1, ScalaEmitter$emit$lambda_7);
2104
2222
  };
2105
2223
  function TypeScriptEmitter$emit$lambda($this_emit, this$0) {
2106
2224
  return function () {
@@ -2135,7 +2253,7 @@
2135
2253
  var tmp0_subject = $this_emit;
2136
2254
  var tmp;
2137
2255
  if (tmp0_subject instanceof Custom) {
2138
- tmp = $this_emit.gj_1;
2256
+ tmp = $this_emit.hj_1;
2139
2257
  } else {
2140
2258
  if (tmp0_subject instanceof Primitive) {
2141
2259
  var tmp1_subject = $this_emit.ej_1;
@@ -2174,18 +2292,18 @@
2174
2292
  }
2175
2293
  function TypeScriptEmitter$emit$lambda_4($this_emit) {
2176
2294
  return function () {
2177
- return 'type ' + $this_emit.ij_1 + ' = ' + joinToString($this_emit.jj_1, ' | ', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda$lambda_0) + '\n';
2295
+ return 'type ' + $this_emit.kj_1 + ' = ' + joinToString($this_emit.lj_1, ' | ', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda$lambda_0) + '\n';
2178
2296
  };
2179
2297
  }
2180
2298
  function TypeScriptEmitter$emit$lambda_5($this_emit, this$0) {
2181
2299
  return function () {
2182
2300
  Companion_getInstance_1();
2183
- return trimMargin('interface ' + $this_emit.kj_1 + ' {\n |' + ' ' + 'value: string\n |}\n |const validate' + $this_emit.kj_1 + ' = (type: ' + $this_emit.kj_1 + ') => (' + this$0.mj($this_emit.lj_1) + ').test(type.value);\n |\n |');
2301
+ 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
2302
  };
2185
2303
  }
2186
2304
  function TypeScriptEmitter$emit$lambda_6($this_emit) {
2187
2305
  return function () {
2188
- return "new RegExp('" + dropLast(drop($this_emit.nj_1, 1), 1) + "')";
2306
+ return "new RegExp('" + dropLast(drop($this_emit.pj_1, 1), 1) + "')";
2189
2307
  };
2190
2308
  }
2191
2309
  function TypeScriptEmitter$emit$lambda_7() {
@@ -2195,32 +2313,32 @@
2195
2313
  logger = logger === VOID ? get_noLogger() : logger;
2196
2314
  Emitter.call(this, logger);
2197
2315
  }
2198
- protoOf(TypeScriptEmitter).qj = function (_this__u8e3s4) {
2199
- return this.rj(_this__u8e3s4, this.oh_1, TypeScriptEmitter$emit$lambda(_this__u8e3s4, this));
2316
+ protoOf(TypeScriptEmitter).sj = function (_this__u8e3s4) {
2317
+ return this.tj(_this__u8e3s4, this.oh_1, TypeScriptEmitter$emit$lambda(_this__u8e3s4, this));
2200
2318
  };
2201
2319
  protoOf(TypeScriptEmitter).wi = function (_this__u8e3s4) {
2202
- return this.sj(_this__u8e3s4, this.oh_1, TypeScriptEmitter$emit$lambda_0(_this__u8e3s4, this));
2320
+ return this.uj(_this__u8e3s4, this.oh_1, TypeScriptEmitter$emit$lambda_0(_this__u8e3s4, this));
2203
2321
  };
2204
2322
  protoOf(TypeScriptEmitter).xi = function (_this__u8e3s4) {
2205
- return this.tj(_this__u8e3s4, this.oh_1, TypeScriptEmitter$emit$lambda_1(this, _this__u8e3s4));
2323
+ return this.vj(_this__u8e3s4, this.oh_1, TypeScriptEmitter$emit$lambda_1(this, _this__u8e3s4));
2206
2324
  };
2207
2325
  protoOf(TypeScriptEmitter).cj = function (_this__u8e3s4) {
2208
- return this.uj(_this__u8e3s4, this.oh_1, TypeScriptEmitter$emit$lambda_2(_this__u8e3s4));
2326
+ return this.wj(_this__u8e3s4, this.oh_1, TypeScriptEmitter$emit$lambda_2(_this__u8e3s4));
2209
2327
  };
2210
2328
  protoOf(TypeScriptEmitter).di = function (_this__u8e3s4) {
2211
2329
  return this.th(_this__u8e3s4, this.oh_1, TypeScriptEmitter$emit$lambda_3(_this__u8e3s4));
2212
2330
  };
2213
- protoOf(TypeScriptEmitter).vj = function (_this__u8e3s4) {
2214
- return this.wj(_this__u8e3s4, this.oh_1, TypeScriptEmitter$emit$lambda_4(_this__u8e3s4));
2215
- };
2216
2331
  protoOf(TypeScriptEmitter).xj = function (_this__u8e3s4) {
2217
- return this.yj(_this__u8e3s4, this.oh_1, TypeScriptEmitter$emit$lambda_5(_this__u8e3s4, this));
2332
+ return this.yj(_this__u8e3s4, this.oh_1, TypeScriptEmitter$emit$lambda_4(_this__u8e3s4));
2218
2333
  };
2219
- protoOf(TypeScriptEmitter).mj = function (_this__u8e3s4) {
2220
- return this.zj(_this__u8e3s4, this.oh_1, TypeScriptEmitter$emit$lambda_6(_this__u8e3s4));
2334
+ protoOf(TypeScriptEmitter).zj = function (_this__u8e3s4) {
2335
+ return this.ak(_this__u8e3s4, this.oh_1, TypeScriptEmitter$emit$lambda_5(_this__u8e3s4, this));
2221
2336
  };
2222
- protoOf(TypeScriptEmitter).ak = function (_this__u8e3s4) {
2223
- return this.bk(_this__u8e3s4, this.oh_1, TypeScriptEmitter$emit$lambda_7);
2337
+ protoOf(TypeScriptEmitter).oj = function (_this__u8e3s4) {
2338
+ return this.bk(_this__u8e3s4, this.oh_1, TypeScriptEmitter$emit$lambda_6(_this__u8e3s4));
2339
+ };
2340
+ protoOf(TypeScriptEmitter).ck = function (_this__u8e3s4) {
2341
+ return this.dk(_this__u8e3s4, this.oh_1, TypeScriptEmitter$emit$lambda_7);
2224
2342
  };
2225
2343
  function WirespecEmitter$emit$lambda($this_emit, this$0) {
2226
2344
  return function () {
@@ -2255,7 +2373,7 @@
2255
2373
  var tmp0_subject = $this_emit;
2256
2374
  var tmp;
2257
2375
  if (tmp0_subject instanceof Custom) {
2258
- tmp = $this_emit.gj_1;
2376
+ tmp = $this_emit.hj_1;
2259
2377
  } else {
2260
2378
  if (tmp0_subject instanceof Primitive) {
2261
2379
  var tmp1_subject = $this_emit.ej_1;
@@ -2292,17 +2410,17 @@
2292
2410
  function WirespecEmitter$emit$lambda_4($this_emit) {
2293
2411
  return function () {
2294
2412
  Companion_getInstance_1();
2295
- return 'enum ' + $this_emit.ij_1 + ' {\n' + ' ' + joinToString($this_emit.jj_1, ', ') + '\n}\n';
2413
+ return 'enum ' + $this_emit.kj_1 + ' {\n' + ' ' + joinToString($this_emit.lj_1, ', ') + '\n}\n';
2296
2414
  };
2297
2415
  }
2298
2416
  function WirespecEmitter$emit$lambda_5($this_emit, this$0) {
2299
2417
  return function () {
2300
- return 'refined ' + $this_emit.kj_1 + ' ' + this$0.mj($this_emit.lj_1) + '\n';
2418
+ return 'refined ' + $this_emit.mj_1 + ' ' + this$0.oj($this_emit.nj_1) + '\n';
2301
2419
  };
2302
2420
  }
2303
2421
  function WirespecEmitter$emit$lambda_6($this_emit) {
2304
2422
  return function () {
2305
- return '/' + dropLast(drop($this_emit.nj_1, 1), 1) + '/g';
2423
+ return '/' + dropLast(drop($this_emit.pj_1, 1), 1) + '/g';
2306
2424
  };
2307
2425
  }
2308
2426
  function WirespecEmitter$emit$lambda_7() {
@@ -2312,32 +2430,32 @@
2312
2430
  logger = logger === VOID ? get_noLogger() : logger;
2313
2431
  Emitter.call(this, logger);
2314
2432
  }
2315
- protoOf(WirespecEmitter).qj = function (_this__u8e3s4) {
2316
- return this.rj(_this__u8e3s4, this.oh_1, WirespecEmitter$emit$lambda(_this__u8e3s4, this));
2433
+ protoOf(WirespecEmitter).sj = function (_this__u8e3s4) {
2434
+ return this.tj(_this__u8e3s4, this.oh_1, WirespecEmitter$emit$lambda(_this__u8e3s4, this));
2317
2435
  };
2318
2436
  protoOf(WirespecEmitter).wi = function (_this__u8e3s4) {
2319
- return this.sj(_this__u8e3s4, this.oh_1, WirespecEmitter$emit$lambda_0(_this__u8e3s4, this));
2437
+ return this.uj(_this__u8e3s4, this.oh_1, WirespecEmitter$emit$lambda_0(_this__u8e3s4, this));
2320
2438
  };
2321
2439
  protoOf(WirespecEmitter).xi = function (_this__u8e3s4) {
2322
- return this.tj(_this__u8e3s4, this.oh_1, WirespecEmitter$emit$lambda_1(this, _this__u8e3s4));
2440
+ return this.vj(_this__u8e3s4, this.oh_1, WirespecEmitter$emit$lambda_1(this, _this__u8e3s4));
2323
2441
  };
2324
2442
  protoOf(WirespecEmitter).cj = function (_this__u8e3s4) {
2325
- return this.uj(_this__u8e3s4, this.oh_1, WirespecEmitter$emit$lambda_2(_this__u8e3s4));
2443
+ return this.wj(_this__u8e3s4, this.oh_1, WirespecEmitter$emit$lambda_2(_this__u8e3s4));
2326
2444
  };
2327
2445
  protoOf(WirespecEmitter).di = function (_this__u8e3s4) {
2328
2446
  return this.th(_this__u8e3s4, this.oh_1, WirespecEmitter$emit$lambda_3(_this__u8e3s4));
2329
2447
  };
2330
- protoOf(WirespecEmitter).vj = function (_this__u8e3s4) {
2331
- return this.wj(_this__u8e3s4, this.oh_1, WirespecEmitter$emit$lambda_4(_this__u8e3s4));
2332
- };
2333
2448
  protoOf(WirespecEmitter).xj = function (_this__u8e3s4) {
2334
- return this.yj(_this__u8e3s4, this.oh_1, WirespecEmitter$emit$lambda_5(_this__u8e3s4, this));
2449
+ return this.yj(_this__u8e3s4, this.oh_1, WirespecEmitter$emit$lambda_4(_this__u8e3s4));
2450
+ };
2451
+ protoOf(WirespecEmitter).zj = function (_this__u8e3s4) {
2452
+ return this.ak(_this__u8e3s4, this.oh_1, WirespecEmitter$emit$lambda_5(_this__u8e3s4, this));
2335
2453
  };
2336
- protoOf(WirespecEmitter).mj = function (_this__u8e3s4) {
2337
- return this.zj(_this__u8e3s4, this.oh_1, WirespecEmitter$emit$lambda_6(_this__u8e3s4));
2454
+ protoOf(WirespecEmitter).oj = function (_this__u8e3s4) {
2455
+ return this.bk(_this__u8e3s4, this.oh_1, WirespecEmitter$emit$lambda_6(_this__u8e3s4));
2338
2456
  };
2339
- protoOf(WirespecEmitter).ak = function (_this__u8e3s4) {
2340
- return this.bk(_this__u8e3s4, this.oh_1, WirespecEmitter$emit$lambda_7);
2457
+ protoOf(WirespecEmitter).ck = function (_this__u8e3s4) {
2458
+ return this.dk(_this__u8e3s4, this.oh_1, WirespecEmitter$emit$lambda_7);
2341
2459
  };
2342
2460
  function get_DEFAULT_PACKAGE_NAME() {
2343
2461
  return DEFAULT_PACKAGE_NAME;
@@ -2381,7 +2499,7 @@
2381
2499
  tmp$ret$6 = tmp;
2382
2500
  return tmp$ret$6;
2383
2501
  };
2384
- protoOf(Companion_0).oj = function (_this__u8e3s4) {
2502
+ protoOf(Companion_0).qj = function (_this__u8e3s4) {
2385
2503
  var tmp$ret$6;
2386
2504
  // Inline function 'kotlin.text.replaceFirstChar' call
2387
2505
  var tmp;
@@ -2447,16 +2565,16 @@
2447
2565
  var tmp0_subject = item;
2448
2566
  var tmp;
2449
2567
  if (tmp0_subject instanceof Type_0) {
2450
- tmp = to(item.ui_1, this.qj(item));
2568
+ tmp = to(item.ui_1, this.sj(item));
2451
2569
  } else {
2452
2570
  if (tmp0_subject instanceof Endpoint) {
2453
- tmp = to(item.ei_1, this.ak(item));
2571
+ tmp = to(item.ei_1, this.ck(item));
2454
2572
  } else {
2455
2573
  if (tmp0_subject instanceof Enum_0) {
2456
- tmp = to(item.ij_1, this.vj(item));
2574
+ tmp = to(item.kj_1, this.xj(item));
2457
2575
  } else {
2458
2576
  if (tmp0_subject instanceof Refined) {
2459
- tmp = to(item.kj_1, this.xj(item));
2577
+ tmp = to(item.mj_1, this.zj(item));
2460
2578
  } else {
2461
2579
  noWhenBranchMatchedException();
2462
2580
  }
@@ -2499,7 +2617,7 @@
2499
2617
  captureStack(this, NextException);
2500
2618
  }
2501
2619
  function WrongTokenException(expected, actual) {
2502
- ParserException.call(this, actual.rk_1, '' + expected.fc() + ' expected, not: ' + getKClassFromExpression(actual.pk_1).fc() + ' at line ' + actual.rk_1.sk_1 + ' and position ' + (actual.rk_1.tk_1 - actual.qk_1.length | 0));
2620
+ 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
2621
  captureStack(this, WrongTokenException);
2504
2622
  }
2505
2623
  function NullTokenException(message, coordinates) {
@@ -2517,7 +2635,7 @@
2517
2635
  function WirespecException(message, coordinates) {
2518
2636
  RuntimeException_init_$Init$(message, this);
2519
2637
  captureStack(this, WirespecException);
2520
- this.vk_1 = coordinates;
2638
+ this.yk_1 = coordinates;
2521
2639
  }
2522
2640
  function optimize(_this__u8e3s4) {
2523
2641
  var tmp$ret$2;
@@ -2530,10 +2648,10 @@
2530
2648
  var item = tmp0_iterator.e();
2531
2649
  var tmp$ret$0;
2532
2650
  // Inline function 'community.flock.wirespec.compiler.core.optimize.optimize.<anonymous>' call
2533
- var tmp0_subject = item.pk_1;
2651
+ var tmp0_subject = item.sk_1;
2534
2652
  var tmp;
2535
2653
  if (tmp0_subject instanceof CustomRegex) {
2536
- tmp = item.wk(VOID, '"' + dropLast(drop(item.qk_1, 1), 2) + '"');
2654
+ tmp = item.zk(VOID, '"' + dropLast(drop(item.tk_1, 1), 2) + '"');
2537
2655
  } else {
2538
2656
  tmp = item;
2539
2657
  }
@@ -2571,19 +2689,34 @@
2571
2689
  Type_initEntries();
2572
2690
  return Type_Boolean_instance;
2573
2691
  }
2574
- function Custom(value, isIterable) {
2575
- this.gj_1 = value;
2576
- this.hj_1 = isIterable;
2692
+ function Custom(value, isIterable, isMap) {
2693
+ isMap = isMap === VOID ? false : isMap;
2694
+ this.hj_1 = value;
2695
+ this.ij_1 = isIterable;
2696
+ this.jj_1 = isMap;
2577
2697
  }
2578
2698
  protoOf(Custom).qi = function () {
2579
- return this.hj_1;
2699
+ return this.ij_1;
2700
+ };
2701
+ protoOf(Custom).ik = function () {
2702
+ return this.jj_1;
2703
+ };
2704
+ protoOf(Custom).al = function (value, isIterable, isMap) {
2705
+ return new Custom(value, isIterable, isMap);
2706
+ };
2707
+ protoOf(Custom).bl = function (value, isIterable, isMap, $super) {
2708
+ value = value === VOID ? this.hj_1 : value;
2709
+ isIterable = isIterable === VOID ? this.ij_1 : isIterable;
2710
+ isMap = isMap === VOID ? this.jj_1 : isMap;
2711
+ return $super === VOID ? this.al(value, isIterable, isMap) : $super.al.call(this, value, isIterable, isMap);
2580
2712
  };
2581
2713
  protoOf(Custom).toString = function () {
2582
- return 'Custom(value=' + this.gj_1 + ', isIterable=' + this.hj_1 + ')';
2714
+ return 'Custom(value=' + this.hj_1 + ', isIterable=' + this.ij_1 + ', isMap=' + this.jj_1 + ')';
2583
2715
  };
2584
2716
  protoOf(Custom).hashCode = function () {
2585
- var result = getStringHashCode(this.gj_1);
2586
- result = imul(result, 31) + (this.hj_1 | 0) | 0;
2717
+ var result = getStringHashCode(this.hj_1);
2718
+ result = imul(result, 31) + (this.ij_1 | 0) | 0;
2719
+ result = imul(result, 31) + (this.jj_1 | 0) | 0;
2587
2720
  return result;
2588
2721
  };
2589
2722
  protoOf(Custom).equals = function (other) {
@@ -2592,25 +2725,33 @@
2592
2725
  if (!(other instanceof Custom))
2593
2726
  return false;
2594
2727
  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
2728
  if (!(this.hj_1 === tmp0_other_with_cast.hj_1))
2598
2729
  return false;
2730
+ if (!(this.ij_1 === tmp0_other_with_cast.ij_1))
2731
+ return false;
2732
+ if (!(this.jj_1 === tmp0_other_with_cast.jj_1))
2733
+ return false;
2599
2734
  return true;
2600
2735
  };
2601
- function Primitive(type, isIterable) {
2736
+ function Primitive(type, isIterable, isMap) {
2737
+ isMap = isMap === VOID ? false : isMap;
2602
2738
  this.ej_1 = type;
2603
2739
  this.fj_1 = isIterable;
2740
+ this.gj_1 = isMap;
2604
2741
  }
2605
2742
  protoOf(Primitive).qi = function () {
2606
2743
  return this.fj_1;
2607
2744
  };
2745
+ protoOf(Primitive).ik = function () {
2746
+ return this.gj_1;
2747
+ };
2608
2748
  protoOf(Primitive).toString = function () {
2609
- return 'Primitive(type=' + this.ej_1 + ', isIterable=' + this.fj_1 + ')';
2749
+ return 'Primitive(type=' + this.ej_1 + ', isIterable=' + this.fj_1 + ', isMap=' + this.gj_1 + ')';
2610
2750
  };
2611
2751
  protoOf(Primitive).hashCode = function () {
2612
2752
  var result = this.ej_1.hashCode();
2613
2753
  result = imul(result, 31) + (this.fj_1 | 0) | 0;
2754
+ result = imul(result, 31) + (this.gj_1 | 0) | 0;
2614
2755
  return result;
2615
2756
  };
2616
2757
  protoOf(Primitive).equals = function (other) {
@@ -2623,6 +2764,8 @@
2623
2764
  return false;
2624
2765
  if (!(this.fj_1 === tmp0_other_with_cast.fj_1))
2625
2766
  return false;
2767
+ if (!(this.gj_1 === tmp0_other_with_cast.gj_1))
2768
+ return false;
2626
2769
  return true;
2627
2770
  };
2628
2771
  function Identifier(value) {
@@ -2741,13 +2884,13 @@
2741
2884
  Method_TRACE_instance = new Method('TRACE', 7);
2742
2885
  }
2743
2886
  function Literal(value) {
2744
- this.pj_1 = value;
2887
+ this.rj_1 = value;
2745
2888
  }
2746
2889
  protoOf(Literal).toString = function () {
2747
- return 'Literal(value=' + this.pj_1 + ')';
2890
+ return 'Literal(value=' + this.rj_1 + ')';
2748
2891
  };
2749
2892
  protoOf(Literal).hashCode = function () {
2750
- return getStringHashCode(this.pj_1);
2893
+ return getStringHashCode(this.rj_1);
2751
2894
  };
2752
2895
  protoOf(Literal).equals = function (other) {
2753
2896
  if (this === other)
@@ -2755,7 +2898,7 @@
2755
2898
  if (!(other instanceof Literal))
2756
2899
  return false;
2757
2900
  var tmp0_other_with_cast = other instanceof Literal ? other : THROW_CCE();
2758
- if (!(this.pj_1 === tmp0_other_with_cast.pj_1))
2901
+ if (!(this.rj_1 === tmp0_other_with_cast.rj_1))
2759
2902
  return false;
2760
2903
  return true;
2761
2904
  };
@@ -2938,15 +3081,15 @@
2938
3081
  return true;
2939
3082
  };
2940
3083
  function Enum_0(name, entries) {
2941
- this.ij_1 = name;
2942
- this.jj_1 = entries;
3084
+ this.kj_1 = name;
3085
+ this.lj_1 = entries;
2943
3086
  }
2944
3087
  protoOf(Enum_0).toString = function () {
2945
- return 'Enum(name=' + this.ij_1 + ', entries=' + this.jj_1 + ')';
3088
+ return 'Enum(name=' + this.kj_1 + ', entries=' + this.lj_1 + ')';
2946
3089
  };
2947
3090
  protoOf(Enum_0).hashCode = function () {
2948
- var result = getStringHashCode(this.ij_1);
2949
- result = imul(result, 31) + hashCode(this.jj_1) | 0;
3091
+ var result = getStringHashCode(this.kj_1);
3092
+ result = imul(result, 31) + hashCode(this.lj_1) | 0;
2950
3093
  return result;
2951
3094
  };
2952
3095
  protoOf(Enum_0).equals = function (other) {
@@ -2955,20 +3098,20 @@
2955
3098
  if (!(other instanceof Enum_0))
2956
3099
  return false;
2957
3100
  var tmp0_other_with_cast = other instanceof Enum_0 ? other : THROW_CCE();
2958
- if (!(this.ij_1 === tmp0_other_with_cast.ij_1))
3101
+ if (!(this.kj_1 === tmp0_other_with_cast.kj_1))
2959
3102
  return false;
2960
- if (!equals(this.jj_1, tmp0_other_with_cast.jj_1))
3103
+ if (!equals(this.lj_1, tmp0_other_with_cast.lj_1))
2961
3104
  return false;
2962
3105
  return true;
2963
3106
  };
2964
3107
  function Validator(value) {
2965
- this.nj_1 = value;
3108
+ this.pj_1 = value;
2966
3109
  }
2967
3110
  protoOf(Validator).toString = function () {
2968
- return 'Validator(value=' + this.nj_1 + ')';
3111
+ return 'Validator(value=' + this.pj_1 + ')';
2969
3112
  };
2970
3113
  protoOf(Validator).hashCode = function () {
2971
- return getStringHashCode(this.nj_1);
3114
+ return getStringHashCode(this.pj_1);
2972
3115
  };
2973
3116
  protoOf(Validator).equals = function (other) {
2974
3117
  if (this === other)
@@ -2976,20 +3119,20 @@
2976
3119
  if (!(other instanceof Validator))
2977
3120
  return false;
2978
3121
  var tmp0_other_with_cast = other instanceof Validator ? other : THROW_CCE();
2979
- if (!(this.nj_1 === tmp0_other_with_cast.nj_1))
3122
+ if (!(this.pj_1 === tmp0_other_with_cast.pj_1))
2980
3123
  return false;
2981
3124
  return true;
2982
3125
  };
2983
3126
  function Refined(name, validator) {
2984
- this.kj_1 = name;
2985
- this.lj_1 = validator;
3127
+ this.mj_1 = name;
3128
+ this.nj_1 = validator;
2986
3129
  }
2987
3130
  protoOf(Refined).toString = function () {
2988
- return 'Refined(name=' + this.kj_1 + ', validator=' + this.lj_1 + ')';
3131
+ return 'Refined(name=' + this.mj_1 + ', validator=' + this.nj_1 + ')';
2989
3132
  };
2990
3133
  protoOf(Refined).hashCode = function () {
2991
- var result = getStringHashCode(this.kj_1);
2992
- result = imul(result, 31) + this.lj_1.hashCode() | 0;
3134
+ var result = getStringHashCode(this.mj_1);
3135
+ result = imul(result, 31) + this.nj_1.hashCode() | 0;
2993
3136
  return result;
2994
3137
  };
2995
3138
  protoOf(Refined).equals = function (other) {
@@ -2998,9 +3141,9 @@
2998
3141
  if (!(other instanceof Refined))
2999
3142
  return false;
3000
3143
  var tmp0_other_with_cast = other instanceof Refined ? other : THROW_CCE();
3001
- if (!(this.kj_1 === tmp0_other_with_cast.kj_1))
3144
+ if (!(this.mj_1 === tmp0_other_with_cast.mj_1))
3002
3145
  return false;
3003
- if (!this.lj_1.equals(tmp0_other_with_cast.lj_1))
3146
+ if (!this.nj_1.equals(tmp0_other_with_cast.nj_1))
3004
3147
  return false;
3005
3148
  return true;
3006
3149
  };
@@ -3099,8 +3242,8 @@
3099
3242
  // Inline function 'arrow.core.raise.either.<anonymous>' call
3100
3243
  var tmp$ret$2;
3101
3244
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseDefinition.<anonymous>' call
3102
- log(_this__u8e3s4.zk_1, $this);
3103
- var tmp0_subject = _this__u8e3s4.zk_1.pk_1;
3245
+ log(_this__u8e3s4.el_1, $this);
3246
+ var tmp0_subject = _this__u8e3s4.el_1.sk_1;
3104
3247
  var tmp_0;
3105
3248
  if (tmp0_subject instanceof WsTypeDef) {
3106
3249
  tmp_0 = raise.ch(parseTypeDeclaration(_this__u8e3s4, $this));
@@ -3115,10 +3258,10 @@
3115
3258
  // Inline function 'arrow.core.nel' call
3116
3259
  var tmp$ret$0;
3117
3260
  // Inline function 'kotlin.also' call
3118
- var tmp0_also = new WrongTokenException(getKClass(WsTypeDef), _this__u8e3s4.zk_1);
3261
+ var tmp0_also = new WrongTokenException(getKClass(WsTypeDef), _this__u8e3s4.el_1);
3119
3262
  // Inline function 'kotlin.contracts.contract' call
3120
3263
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseDefinition.<anonymous>.<anonymous>' call
3121
- _this__u8e3s4.bl();
3264
+ raise.ch(_this__u8e3s4.gl());
3122
3265
  tmp$ret$0 = tmp0_also;
3123
3266
  var tmp1_nel = tmp$ret$0;
3124
3267
  tmp$ret$1 = nonEmptyListOf(tmp1_nel, []);
@@ -3177,21 +3320,21 @@
3177
3320
  // Inline function 'arrow.core.raise.either.<anonymous>' call
3178
3321
  var tmp$ret$2;
3179
3322
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseTypeDeclaration.<anonymous>' call
3180
- _this__u8e3s4.bl();
3181
- log(_this__u8e3s4.zk_1, $this);
3182
- var tmp0_subject = _this__u8e3s4.zk_1.pk_1;
3323
+ raise.ch(_this__u8e3s4.gl());
3324
+ log(_this__u8e3s4.el_1, $this);
3325
+ var tmp0_subject = _this__u8e3s4.el_1.sk_1;
3183
3326
  var tmp_0;
3184
3327
  if (tmp0_subject instanceof CustomType) {
3185
- tmp_0 = raise.ch(parseTypeDefinition(_this__u8e3s4, $this, _this__u8e3s4.zk_1.qk_1));
3328
+ tmp_0 = raise.ch(parseTypeDefinition(_this__u8e3s4, $this, _this__u8e3s4.el_1.tk_1));
3186
3329
  } else {
3187
3330
  var tmp$ret$1;
3188
3331
  // Inline function 'arrow.core.nel' call
3189
3332
  var tmp$ret$0;
3190
3333
  // Inline function 'kotlin.also' call
3191
- var tmp0_also = new WrongTokenException(getKClass(CustomType), _this__u8e3s4.zk_1);
3334
+ var tmp0_also = new WrongTokenException(getKClass(CustomType), _this__u8e3s4.el_1);
3192
3335
  // Inline function 'kotlin.contracts.contract' call
3193
3336
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseTypeDeclaration.<anonymous>.<anonymous>' call
3194
- _this__u8e3s4.bl();
3337
+ raise.ch(_this__u8e3s4.gl());
3195
3338
  tmp$ret$0 = tmp0_also;
3196
3339
  var tmp1_nel = tmp$ret$0;
3197
3340
  tmp$ret$1 = nonEmptyListOf(tmp1_nel, []);
@@ -3248,11 +3391,11 @@
3248
3391
  // Inline function 'arrow.core.raise.either.<anonymous>' call
3249
3392
  var tmp$ret$5;
3250
3393
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseTypeDefinition.<anonymous>' call
3251
- _this__u8e3s4.bl();
3252
- log(_this__u8e3s4.zk_1, $this);
3394
+ raise.ch(_this__u8e3s4.gl());
3395
+ log(_this__u8e3s4.el_1, $this);
3253
3396
  var tmp$ret$4;
3254
3397
  // Inline function 'kotlin.also' call
3255
- var tmp0_subject = _this__u8e3s4.zk_1.pk_1;
3398
+ var tmp0_subject = _this__u8e3s4.el_1.sk_1;
3256
3399
  var tmp_0;
3257
3400
  if (tmp0_subject instanceof LeftCurly) {
3258
3401
  tmp_0 = new Type_0(typeName, raise.ch(parseTypeShape(_this__u8e3s4, $this)));
@@ -3261,10 +3404,10 @@
3261
3404
  // Inline function 'arrow.core.nel' call
3262
3405
  var tmp$ret$0;
3263
3406
  // Inline function 'kotlin.also' call
3264
- var tmp0_also = new WrongTokenException(getKClass(LeftCurly), _this__u8e3s4.zk_1);
3407
+ var tmp0_also = new WrongTokenException(getKClass(LeftCurly), _this__u8e3s4.el_1);
3265
3408
  // Inline function 'kotlin.contracts.contract' call
3266
3409
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseTypeDefinition.<anonymous>.<anonymous>' call
3267
- _this__u8e3s4.bl();
3410
+ raise.ch(_this__u8e3s4.gl());
3268
3411
  tmp$ret$0 = tmp0_also;
3269
3412
  var tmp1_nel = tmp$ret$0;
3270
3413
  tmp$ret$1 = nonEmptyListOf(tmp1_nel, []);
@@ -3273,18 +3416,18 @@
3273
3416
  var tmp2_also = tmp_0;
3274
3417
  // Inline function 'kotlin.contracts.contract' call
3275
3418
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseTypeDefinition.<anonymous>.<anonymous>' call
3276
- var tmp0_subject_0 = _this__u8e3s4.zk_1.pk_1;
3277
- if (tmp0_subject_0 instanceof RightCurly) {
3278
- _this__u8e3s4.bl();
3279
- } else {
3419
+ var tmp0_subject_0 = _this__u8e3s4.el_1.sk_1;
3420
+ if (tmp0_subject_0 instanceof RightCurly)
3421
+ raise.ch(_this__u8e3s4.gl());
3422
+ else {
3280
3423
  var tmp$ret$3;
3281
3424
  // Inline function 'arrow.core.nel' call
3282
3425
  var tmp$ret$2;
3283
3426
  // Inline function 'kotlin.also' call
3284
- var tmp0_also_0 = new WrongTokenException(getKClass(RightCurly), _this__u8e3s4.zk_1);
3427
+ var tmp0_also_0 = new WrongTokenException(getKClass(RightCurly), _this__u8e3s4.el_1);
3285
3428
  // Inline function 'kotlin.contracts.contract' call
3286
3429
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseTypeDefinition.<anonymous>.<anonymous>.<anonymous>' call
3287
- _this__u8e3s4.bl();
3430
+ raise.ch(_this__u8e3s4.gl());
3288
3431
  tmp$ret$2 = tmp0_also_0;
3289
3432
  var tmp1_nel_0 = tmp$ret$2;
3290
3433
  tmp$ret$3 = nonEmptyListOf(tmp1_nel_0, []);
@@ -3342,11 +3485,11 @@
3342
3485
  // Inline function 'arrow.core.raise.either.<anonymous>' call
3343
3486
  var tmp$ret$7;
3344
3487
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseTypeShape.<anonymous>' call
3345
- _this__u8e3s4.bl();
3346
- log(_this__u8e3s4.zk_1, $this);
3488
+ raise.ch(_this__u8e3s4.gl());
3489
+ log(_this__u8e3s4.el_1, $this);
3347
3490
  var tmp$ret$6;
3348
3491
  // Inline function 'kotlin.let' call
3349
- var tmp0_subject = _this__u8e3s4.zk_1.pk_1;
3492
+ var tmp0_subject = _this__u8e3s4.el_1.sk_1;
3350
3493
  var tmp_0;
3351
3494
  if (tmp0_subject instanceof CustomValue) {
3352
3495
  var tmp$ret$3;
@@ -3357,21 +3500,21 @@
3357
3500
  var tmp0_apply = tmp$ret$0;
3358
3501
  // Inline function 'kotlin.contracts.contract' call
3359
3502
  // 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.zk_1.qk_1))));
3361
- while (equals(_this__u8e3s4.zk_1.pk_1, Comma_getInstance())) {
3362
- _this__u8e3s4.bl();
3363
- var tmp0_subject_0 = _this__u8e3s4.zk_1.pk_1;
3503
+ tmp0_apply.a(raise.ch(parseField(_this__u8e3s4, $this, new Identifier(_this__u8e3s4.el_1.tk_1))));
3504
+ while (equals(_this__u8e3s4.el_1.sk_1, Comma_getInstance())) {
3505
+ raise.ch(_this__u8e3s4.gl());
3506
+ var tmp0_subject_0 = _this__u8e3s4.el_1.sk_1;
3364
3507
  if (tmp0_subject_0 instanceof CustomValue) {
3365
- tmp0_apply.a(raise.ch(parseField(_this__u8e3s4, $this, new Identifier(_this__u8e3s4.zk_1.qk_1))));
3508
+ tmp0_apply.a(raise.ch(parseField(_this__u8e3s4, $this, new Identifier(_this__u8e3s4.el_1.tk_1))));
3366
3509
  } else {
3367
3510
  var tmp$ret$2;
3368
3511
  // Inline function 'arrow.core.nel' call
3369
3512
  var tmp$ret$1;
3370
3513
  // Inline function 'kotlin.also' call
3371
- var tmp0_also = new WrongTokenException(getKClass(CustomValue), _this__u8e3s4.zk_1);
3514
+ var tmp0_also = new WrongTokenException(getKClass(CustomValue), _this__u8e3s4.el_1);
3372
3515
  // Inline function 'kotlin.contracts.contract' call
3373
3516
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseTypeShape.<anonymous>.<anonymous>.<anonymous>' call
3374
- _this__u8e3s4.bl();
3517
+ raise.ch(_this__u8e3s4.gl());
3375
3518
  tmp$ret$1 = tmp0_also;
3376
3519
  var tmp1_nel = tmp$ret$1;
3377
3520
  tmp$ret$2 = nonEmptyListOf(tmp1_nel, []);
@@ -3385,10 +3528,10 @@
3385
3528
  // Inline function 'arrow.core.nel' call
3386
3529
  var tmp$ret$4;
3387
3530
  // Inline function 'kotlin.also' call
3388
- var tmp1_also = new WrongTokenException(getKClass(CustomValue), _this__u8e3s4.zk_1);
3531
+ var tmp1_also = new WrongTokenException(getKClass(CustomValue), _this__u8e3s4.el_1);
3389
3532
  // Inline function 'kotlin.contracts.contract' call
3390
3533
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseTypeShape.<anonymous>.<anonymous>' call
3391
- _this__u8e3s4.bl();
3534
+ raise.ch(_this__u8e3s4.gl());
3392
3535
  tmp$ret$4 = tmp1_also;
3393
3536
  var tmp2_nel = tmp$ret$4;
3394
3537
  tmp$ret$5 = nonEmptyListOf(tmp2_nel, []);
@@ -3448,38 +3591,37 @@
3448
3591
  // Inline function 'arrow.core.raise.either.<anonymous>' call
3449
3592
  var tmp$ret$5;
3450
3593
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseField.<anonymous>' call
3451
- _this__u8e3s4.bl();
3452
- log(_this__u8e3s4.zk_1, $this);
3453
- var tmp0_subject = _this__u8e3s4.zk_1.pk_1;
3454
- if (tmp0_subject instanceof Colon) {
3455
- _this__u8e3s4.bl();
3456
- } else {
3594
+ raise.ch(_this__u8e3s4.gl());
3595
+ log(_this__u8e3s4.el_1, $this);
3596
+ var tmp0_subject = _this__u8e3s4.el_1.sk_1;
3597
+ if (tmp0_subject instanceof Colon)
3598
+ raise.ch(_this__u8e3s4.gl());
3599
+ else {
3457
3600
  var tmp$ret$1;
3458
3601
  // Inline function 'arrow.core.nel' call
3459
3602
  var tmp$ret$0;
3460
3603
  // Inline function 'kotlin.also' call
3461
- var tmp0_also = new WrongTokenException(getKClass(Colon), _this__u8e3s4.zk_1);
3604
+ var tmp0_also = new WrongTokenException(getKClass(Colon), _this__u8e3s4.el_1);
3462
3605
  // Inline function 'kotlin.contracts.contract' call
3463
3606
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseField.<anonymous>.<anonymous>' call
3464
- _this__u8e3s4.bl();
3607
+ raise.ch(_this__u8e3s4.gl());
3465
3608
  tmp$ret$0 = tmp0_also;
3466
3609
  var tmp1_nel = tmp$ret$0;
3467
3610
  tmp$ret$1 = nonEmptyListOf(tmp1_nel, []);
3468
3611
  raise.bh(tmp$ret$1);
3469
3612
  }
3470
- var type = _this__u8e3s4.zk_1.pk_1;
3613
+ var type = _this__u8e3s4.el_1.sk_1;
3471
3614
  var tmp_0;
3472
3615
  if (isInterface(type, WsType)) {
3473
- var tmp_1 = parseFieldValue(_this__u8e3s4, $this, type, _this__u8e3s4.zk_1.qk_1);
3616
+ var tmp_1 = raise.ch(parseFieldValue(_this__u8e3s4, $this, type, _this__u8e3s4.el_1.tk_1));
3474
3617
  var tmp$ret$2;
3475
3618
  // Inline function 'kotlin.also' call
3476
- var tmp_2 = _this__u8e3s4.zk_1.pk_1;
3619
+ var tmp_2 = _this__u8e3s4.el_1.sk_1;
3477
3620
  var tmp2_also = tmp_2 instanceof QuestionMark;
3478
3621
  // Inline function 'kotlin.contracts.contract' call
3479
3622
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseField.<anonymous>.<anonymous>' call
3480
- if (tmp2_also) {
3481
- _this__u8e3s4.bl();
3482
- }
3623
+ if (tmp2_also)
3624
+ raise.ch(_this__u8e3s4.gl());
3483
3625
  tmp$ret$2 = tmp2_also;
3484
3626
  tmp_0 = new Field(identifier, tmp_1, tmp$ret$2);
3485
3627
  } else {
@@ -3487,10 +3629,10 @@
3487
3629
  // Inline function 'arrow.core.nel' call
3488
3630
  var tmp$ret$3;
3489
3631
  // Inline function 'kotlin.also' call
3490
- var tmp3_also = new WrongTokenException(getKClass(CustomType), _this__u8e3s4.zk_1);
3632
+ var tmp3_also = new WrongTokenException(getKClass(CustomType), _this__u8e3s4.el_1);
3491
3633
  // Inline function 'kotlin.contracts.contract' call
3492
3634
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseField.<anonymous>.<anonymous>' call
3493
- _this__u8e3s4.bl();
3635
+ raise.ch(_this__u8e3s4.gl());
3494
3636
  tmp$ret$3 = tmp3_also;
3495
3637
  var tmp4_nel = tmp$ret$3;
3496
3638
  tmp$ret$4 = nonEmptyListOf(tmp4_nel, []);
@@ -3532,46 +3674,86 @@
3532
3674
  return tmp$ret$11;
3533
3675
  }
3534
3676
  function parseFieldValue(_this__u8e3s4, $this, wsType, value) {
3535
- var tmp$ret$2;
3536
- // Inline function 'kotlin.run' call
3677
+ var tmp$ret$7;
3678
+ // Inline function 'arrow.core.raise.either' call
3679
+ var tmp$ret$6;
3680
+ // Inline function 'arrow.core.raise.fold' call
3537
3681
  // Inline function 'kotlin.contracts.contract' call
3538
- var tmp$ret$1;
3539
- // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseFieldValue.<anonymous>' call
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;
3682
+ var tmp$ret$5;
3683
+ // Inline function 'arrow.core.raise.fold' call
3546
3684
  // Inline function 'kotlin.contracts.contract' call
3547
- // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseFieldValue.<anonymous>.<anonymous>' call
3548
- if (tmp0_also) {
3549
- _this__u8e3s4.bl();
3550
- }
3551
- tmp$ret$0 = tmp0_also;
3552
- var isIterable = tmp$ret$0;
3553
- var tmp0_subject = wsType;
3554
- var tmp_0;
3555
- if (tmp0_subject instanceof WsString) {
3556
- tmp_0 = new Primitive(Type_String_getInstance(), isIterable);
3557
- } else {
3558
- if (tmp0_subject instanceof WsInteger) {
3559
- tmp_0 = new Primitive(Type_Integer_getInstance(), isIterable);
3685
+ var raise = new DefaultRaise(false);
3686
+ var tmp;
3687
+ try {
3688
+ var tmp$ret$2;
3689
+ // Inline function 'arrow.core.raise.either.<anonymous>' call
3690
+ var tmp$ret$1;
3691
+ // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseFieldValue.<anonymous>' call
3692
+ raise.ch(_this__u8e3s4.gl());
3693
+ log(_this__u8e3s4.el_1, $this);
3694
+ var tmp$ret$0;
3695
+ // Inline function 'kotlin.also' call
3696
+ var tmp_0 = _this__u8e3s4.el_1.sk_1;
3697
+ var tmp0_also = tmp_0 instanceof Brackets;
3698
+ // Inline function 'kotlin.contracts.contract' call
3699
+ // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseFieldValue.<anonymous>.<anonymous>' call
3700
+ if (tmp0_also)
3701
+ raise.ch(_this__u8e3s4.gl());
3702
+ tmp$ret$0 = tmp0_also;
3703
+ var isIterable = tmp$ret$0;
3704
+ var tmp0_subject = wsType;
3705
+ var tmp_1;
3706
+ if (tmp0_subject instanceof WsString) {
3707
+ tmp_1 = new Primitive(Type_String_getInstance(), isIterable);
3560
3708
  } else {
3561
- if (tmp0_subject instanceof WsBoolean) {
3562
- tmp_0 = new Primitive(Type_Boolean_getInstance(), isIterable);
3709
+ if (tmp0_subject instanceof WsInteger) {
3710
+ tmp_1 = new Primitive(Type_Integer_getInstance(), isIterable);
3563
3711
  } else {
3564
- if (tmp0_subject instanceof CustomType) {
3565
- tmp_0 = new Custom(value, isIterable);
3712
+ if (tmp0_subject instanceof WsBoolean) {
3713
+ tmp_1 = new Primitive(Type_Boolean_getInstance(), isIterable);
3566
3714
  } else {
3567
- noWhenBranchMatchedException();
3715
+ if (tmp0_subject instanceof CustomType) {
3716
+ tmp_1 = new Custom(value, isIterable);
3717
+ } else {
3718
+ noWhenBranchMatchedException();
3719
+ }
3568
3720
  }
3569
3721
  }
3570
3722
  }
3723
+ tmp$ret$1 = tmp_1;
3724
+ tmp$ret$2 = tmp$ret$1;
3725
+ var res = tmp$ret$2;
3726
+ raise.zg();
3727
+ var tmp$ret$3;
3728
+ // Inline function 'arrow.core.raise.either.<anonymous>' call
3729
+ tmp$ret$3 = new Right(res);
3730
+ tmp = tmp$ret$3;
3731
+ } catch ($p) {
3732
+ var tmp_2;
3733
+ if ($p instanceof CancellationException) {
3734
+ var e = $p;
3735
+ raise.zg();
3736
+ var tmp$ret$4;
3737
+ // Inline function 'arrow.core.raise.either.<anonymous>' call
3738
+ var tmp1__anonymous__uwfjfc = raisedOrRethrow(e, raise);
3739
+ tmp$ret$4 = new Left(tmp1__anonymous__uwfjfc);
3740
+ tmp_2 = tmp$ret$4;
3741
+ } else {
3742
+ if ($p instanceof Error) {
3743
+ var e_0 = $p;
3744
+ raise.zg();
3745
+ var tmp0__anonymous__q1qw7t = nonFatalOrThrow(e_0);
3746
+ throw tmp0__anonymous__q1qw7t;
3747
+ } else {
3748
+ throw $p;
3749
+ }
3750
+ }
3751
+ tmp = tmp_2;
3571
3752
  }
3572
- tmp$ret$1 = tmp_0;
3573
- tmp$ret$2 = tmp$ret$1;
3574
- return tmp$ret$2;
3753
+ tmp$ret$5 = tmp;
3754
+ tmp$ret$6 = tmp$ret$5;
3755
+ tmp$ret$7 = tmp$ret$6;
3756
+ return tmp$ret$7;
3575
3757
  }
3576
3758
  function parseEnumTypeDeclaration(_this__u8e3s4, $this) {
3577
3759
  var tmp$ret$8;
@@ -3589,21 +3771,21 @@
3589
3771
  // Inline function 'arrow.core.raise.either.<anonymous>' call
3590
3772
  var tmp$ret$2;
3591
3773
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseEnumTypeDeclaration.<anonymous>' call
3592
- _this__u8e3s4.bl();
3593
- log(_this__u8e3s4.zk_1, $this);
3594
- var tmp0_subject = _this__u8e3s4.zk_1.pk_1;
3774
+ raise.ch(_this__u8e3s4.gl());
3775
+ log(_this__u8e3s4.el_1, $this);
3776
+ var tmp0_subject = _this__u8e3s4.el_1.sk_1;
3595
3777
  var tmp_0;
3596
3778
  if (tmp0_subject instanceof CustomType) {
3597
- tmp_0 = raise.ch(parseEnumTypeDefinition(_this__u8e3s4, $this, _this__u8e3s4.zk_1.qk_1));
3779
+ tmp_0 = raise.ch(parseEnumTypeDefinition(_this__u8e3s4, $this, _this__u8e3s4.el_1.tk_1));
3598
3780
  } else {
3599
3781
  var tmp$ret$1;
3600
3782
  // Inline function 'arrow.core.nel' call
3601
3783
  var tmp$ret$0;
3602
3784
  // Inline function 'kotlin.also' call
3603
- var tmp0_also = new WrongTokenException(getKClass(CustomType), _this__u8e3s4.zk_1);
3785
+ var tmp0_also = new WrongTokenException(getKClass(CustomType), _this__u8e3s4.el_1);
3604
3786
  // Inline function 'kotlin.contracts.contract' call
3605
3787
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseEnumTypeDeclaration.<anonymous>.<anonymous>' call
3606
- _this__u8e3s4.bl();
3788
+ raise.ch(_this__u8e3s4.gl());
3607
3789
  tmp$ret$0 = tmp0_also;
3608
3790
  var tmp1_nel = tmp$ret$0;
3609
3791
  tmp$ret$1 = nonEmptyListOf(tmp1_nel, []);
@@ -3660,11 +3842,11 @@
3660
3842
  // Inline function 'arrow.core.raise.either.<anonymous>' call
3661
3843
  var tmp$ret$5;
3662
3844
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseEnumTypeDefinition.<anonymous>' call
3663
- _this__u8e3s4.bl();
3664
- log(_this__u8e3s4.zk_1, $this);
3845
+ raise.ch(_this__u8e3s4.gl());
3846
+ log(_this__u8e3s4.el_1, $this);
3665
3847
  var tmp$ret$4;
3666
3848
  // Inline function 'kotlin.also' call
3667
- var tmp0_subject = _this__u8e3s4.zk_1.pk_1;
3849
+ var tmp0_subject = _this__u8e3s4.el_1.sk_1;
3668
3850
  var tmp_0;
3669
3851
  if (tmp0_subject instanceof LeftCurly) {
3670
3852
  tmp_0 = new Enum_0(typeName, raise.ch(parseEnumTypeEntries(_this__u8e3s4, $this)));
@@ -3673,10 +3855,10 @@
3673
3855
  // Inline function 'arrow.core.nel' call
3674
3856
  var tmp$ret$0;
3675
3857
  // Inline function 'kotlin.also' call
3676
- var tmp0_also = new WrongTokenException(getKClass(LeftCurly), _this__u8e3s4.zk_1);
3858
+ var tmp0_also = new WrongTokenException(getKClass(LeftCurly), _this__u8e3s4.el_1);
3677
3859
  // Inline function 'kotlin.contracts.contract' call
3678
3860
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseEnumTypeDefinition.<anonymous>.<anonymous>' call
3679
- _this__u8e3s4.bl();
3861
+ raise.ch(_this__u8e3s4.gl());
3680
3862
  tmp$ret$0 = tmp0_also;
3681
3863
  var tmp1_nel = tmp$ret$0;
3682
3864
  tmp$ret$1 = nonEmptyListOf(tmp1_nel, []);
@@ -3685,18 +3867,18 @@
3685
3867
  var tmp2_also = tmp_0;
3686
3868
  // Inline function 'kotlin.contracts.contract' call
3687
3869
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseEnumTypeDefinition.<anonymous>.<anonymous>' call
3688
- var tmp0_subject_0 = _this__u8e3s4.zk_1.pk_1;
3689
- if (tmp0_subject_0 instanceof RightCurly) {
3690
- _this__u8e3s4.bl();
3691
- } else {
3870
+ var tmp0_subject_0 = _this__u8e3s4.el_1.sk_1;
3871
+ if (tmp0_subject_0 instanceof RightCurly)
3872
+ raise.ch(_this__u8e3s4.gl());
3873
+ else {
3692
3874
  var tmp$ret$3;
3693
3875
  // Inline function 'arrow.core.nel' call
3694
3876
  var tmp$ret$2;
3695
3877
  // Inline function 'kotlin.also' call
3696
- var tmp0_also_0 = new WrongTokenException(getKClass(RightCurly), _this__u8e3s4.zk_1);
3878
+ var tmp0_also_0 = new WrongTokenException(getKClass(RightCurly), _this__u8e3s4.el_1);
3697
3879
  // Inline function 'kotlin.contracts.contract' call
3698
3880
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseEnumTypeDefinition.<anonymous>.<anonymous>.<anonymous>' call
3699
- _this__u8e3s4.bl();
3881
+ raise.ch(_this__u8e3s4.gl());
3700
3882
  tmp$ret$2 = tmp0_also_0;
3701
3883
  var tmp1_nel_0 = tmp$ret$2;
3702
3884
  tmp$ret$3 = nonEmptyListOf(tmp1_nel_0, []);
@@ -3754,9 +3936,9 @@
3754
3936
  // Inline function 'arrow.core.raise.either.<anonymous>' call
3755
3937
  var tmp$ret$7;
3756
3938
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseEnumTypeEntries.<anonymous>' call
3757
- _this__u8e3s4.bl();
3758
- log(_this__u8e3s4.zk_1, $this);
3759
- var tmp0_subject = _this__u8e3s4.zk_1.pk_1;
3939
+ raise.ch(_this__u8e3s4.gl());
3940
+ log(_this__u8e3s4.el_1, $this);
3941
+ var tmp0_subject = _this__u8e3s4.el_1.sk_1;
3760
3942
  var tmp_0;
3761
3943
  if (tmp0_subject instanceof CustomType) {
3762
3944
  var tmp$ret$4;
@@ -3767,28 +3949,28 @@
3767
3949
  var tmp0_apply = tmp$ret$0;
3768
3950
  // Inline function 'kotlin.contracts.contract' call
3769
3951
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseEnumTypeEntries.<anonymous>.<anonymous>' call
3770
- tmp0_apply.a(_this__u8e3s4.zk_1.qk_1);
3771
- _this__u8e3s4.bl();
3772
- while (equals(_this__u8e3s4.zk_1.pk_1, Comma_getInstance())) {
3773
- _this__u8e3s4.bl();
3774
- var tmp0_subject_0 = _this__u8e3s4.zk_1.pk_1;
3952
+ tmp0_apply.a(_this__u8e3s4.el_1.tk_1);
3953
+ raise.ch(_this__u8e3s4.gl());
3954
+ while (equals(_this__u8e3s4.el_1.sk_1, Comma_getInstance())) {
3955
+ raise.ch(_this__u8e3s4.gl());
3956
+ var tmp0_subject_0 = _this__u8e3s4.el_1.sk_1;
3775
3957
  if (tmp0_subject_0 instanceof CustomType) {
3776
3958
  var tmp$ret$1;
3777
3959
  // Inline function 'kotlin.also' call
3778
- var tmp0_also = tmp0_apply.a(_this__u8e3s4.zk_1.qk_1);
3960
+ var tmp0_also = tmp0_apply.a(_this__u8e3s4.el_1.tk_1);
3779
3961
  // Inline function 'kotlin.contracts.contract' call
3780
3962
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseEnumTypeEntries.<anonymous>.<anonymous>.<anonymous>' call
3781
- _this__u8e3s4.bl();
3963
+ raise.ch(_this__u8e3s4.gl());
3782
3964
  tmp$ret$1 = tmp0_also;
3783
3965
  } else {
3784
3966
  var tmp$ret$3;
3785
3967
  // Inline function 'arrow.core.nel' call
3786
3968
  var tmp$ret$2;
3787
3969
  // Inline function 'kotlin.also' call
3788
- var tmp1_also = new WrongTokenException(getKClass(CustomType), _this__u8e3s4.zk_1);
3970
+ var tmp1_also = new WrongTokenException(getKClass(CustomType), _this__u8e3s4.el_1);
3789
3971
  // Inline function 'kotlin.contracts.contract' call
3790
3972
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseEnumTypeEntries.<anonymous>.<anonymous>.<anonymous>' call
3791
- _this__u8e3s4.bl();
3973
+ raise.ch(_this__u8e3s4.gl());
3792
3974
  tmp$ret$2 = tmp1_also;
3793
3975
  var tmp2_nel = tmp$ret$2;
3794
3976
  tmp$ret$3 = nonEmptyListOf(tmp2_nel, []);
@@ -3802,10 +3984,10 @@
3802
3984
  // Inline function 'arrow.core.nel' call
3803
3985
  var tmp$ret$5;
3804
3986
  // Inline function 'kotlin.also' call
3805
- var tmp1_also_0 = new WrongTokenException(getKClass(CustomType), _this__u8e3s4.zk_1);
3987
+ var tmp1_also_0 = new WrongTokenException(getKClass(CustomType), _this__u8e3s4.el_1);
3806
3988
  // Inline function 'kotlin.contracts.contract' call
3807
3989
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseEnumTypeEntries.<anonymous>.<anonymous>' call
3808
- _this__u8e3s4.bl();
3990
+ raise.ch(_this__u8e3s4.gl());
3809
3991
  tmp$ret$5 = tmp1_also_0;
3810
3992
  var tmp2_nel_0 = tmp$ret$5;
3811
3993
  tmp$ret$6 = nonEmptyListOf(tmp2_nel_0, []);
@@ -3862,21 +4044,21 @@
3862
4044
  // Inline function 'arrow.core.raise.either.<anonymous>' call
3863
4045
  var tmp$ret$2;
3864
4046
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseRefinedTypeDeclaration.<anonymous>' call
3865
- _this__u8e3s4.bl();
3866
- log(_this__u8e3s4.zk_1, $this);
3867
- var tmp0_subject = _this__u8e3s4.zk_1.pk_1;
4047
+ raise.ch(_this__u8e3s4.gl());
4048
+ log(_this__u8e3s4.el_1, $this);
4049
+ var tmp0_subject = _this__u8e3s4.el_1.sk_1;
3868
4050
  var tmp_0;
3869
4051
  if (tmp0_subject instanceof CustomType) {
3870
- tmp_0 = raise.ch(parseCustomRegex(_this__u8e3s4, $this, _this__u8e3s4.zk_1.qk_1));
4052
+ tmp_0 = raise.ch(parseCustomRegex(_this__u8e3s4, $this, _this__u8e3s4.el_1.tk_1));
3871
4053
  } else {
3872
4054
  var tmp$ret$1;
3873
4055
  // Inline function 'arrow.core.nel' call
3874
4056
  var tmp$ret$0;
3875
4057
  // Inline function 'kotlin.also' call
3876
- var tmp0_also = new WrongTokenException(getKClass(CustomType), _this__u8e3s4.zk_1);
4058
+ var tmp0_also = new WrongTokenException(getKClass(CustomType), _this__u8e3s4.el_1);
3877
4059
  // Inline function 'kotlin.contracts.contract' call
3878
4060
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseRefinedTypeDeclaration.<anonymous>.<anonymous>' call
3879
- _this__u8e3s4.bl();
4061
+ raise.ch(_this__u8e3s4.gl());
3880
4062
  tmp$ret$0 = tmp0_also;
3881
4063
  var tmp1_nel = tmp$ret$0;
3882
4064
  tmp$ret$1 = nonEmptyListOf(tmp1_nel, []);
@@ -3933,23 +4115,23 @@
3933
4115
  // Inline function 'arrow.core.raise.either.<anonymous>' call
3934
4116
  var tmp$ret$3;
3935
4117
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseCustomRegex.<anonymous>' call
3936
- _this__u8e3s4.bl();
3937
- log(_this__u8e3s4.zk_1, $this);
4118
+ raise.ch(_this__u8e3s4.gl());
4119
+ log(_this__u8e3s4.el_1, $this);
3938
4120
  var tmp$ret$2;
3939
4121
  // Inline function 'kotlin.also' call
3940
- var tmp0_subject = _this__u8e3s4.zk_1.pk_1;
4122
+ var tmp0_subject = _this__u8e3s4.el_1.sk_1;
3941
4123
  var tmp_0;
3942
4124
  if (tmp0_subject instanceof CustomRegex) {
3943
- tmp_0 = new Refined(typeName, new Validator(_this__u8e3s4.zk_1.qk_1));
4125
+ tmp_0 = new Refined(typeName, new Validator(_this__u8e3s4.el_1.tk_1));
3944
4126
  } else {
3945
4127
  var tmp$ret$1;
3946
4128
  // Inline function 'arrow.core.nel' call
3947
4129
  var tmp$ret$0;
3948
4130
  // Inline function 'kotlin.also' call
3949
- var tmp0_also = new WrongTokenException(getKClass(CustomRegex), _this__u8e3s4.zk_1);
4131
+ var tmp0_also = new WrongTokenException(getKClass(CustomRegex), _this__u8e3s4.el_1);
3950
4132
  // Inline function 'kotlin.contracts.contract' call
3951
4133
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseCustomRegex.<anonymous>.<anonymous>' call
3952
- _this__u8e3s4.bl();
4134
+ raise.ch(_this__u8e3s4.gl());
3953
4135
  tmp$ret$0 = tmp0_also;
3954
4136
  var tmp1_nel = tmp$ret$0;
3955
4137
  tmp$ret$1 = nonEmptyListOf(tmp1_nel, []);
@@ -3958,7 +4140,7 @@
3958
4140
  var tmp2_also = tmp_0;
3959
4141
  // Inline function 'kotlin.contracts.contract' call
3960
4142
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseCustomRegex.<anonymous>.<anonymous>' call
3961
- _this__u8e3s4.bl();
4143
+ raise.ch(_this__u8e3s4.gl());
3962
4144
  tmp$ret$2 = tmp2_also;
3963
4145
  tmp$ret$3 = tmp$ret$2;
3964
4146
  tmp$ret$4 = tmp$ret$3;
@@ -3996,7 +4178,7 @@
3996
4178
  return tmp$ret$9;
3997
4179
  }
3998
4180
  function log(_this__u8e3s4, $this) {
3999
- return $this.mh_1.ih('Parsing ' + _this__u8e3s4.pk_1 + ' at line ' + _this__u8e3s4.rk_1.sk_1 + ' position ' + _this__u8e3s4.rk_1.tk_1);
4181
+ 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
4182
  }
4001
4183
  function Parser(logger) {
4002
4184
  this.mh_1 = logger;
@@ -4012,7 +4194,7 @@
4012
4194
  var element = tmp0_iterator.e();
4013
4195
  var tmp$ret$0;
4014
4196
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parse.<anonymous>' call
4015
- var tmp = element.pk_1;
4197
+ var tmp = element.sk_1;
4016
4198
  tmp$ret$0 = isInterface(tmp, WhiteSpace);
4017
4199
  if (!tmp$ret$0) {
4018
4200
  tmp0_filterNotTo.a(element);
@@ -4036,7 +4218,7 @@
4036
4218
  // Inline function 'kotlin.contracts.contract' call
4037
4219
  var tmp$ret$0;
4038
4220
  // Inline function 'community.flock.wirespec.compiler.core.parse.TokenProvider.printTokens.<anonymous>.<anonymous>' call
4039
- tmp$ret$0 = "Eating: '" + tmp0_safe_receiver.qk_1 + "', ";
4221
+ tmp$ret$0 = "Eating: '" + tmp0_safe_receiver.tk_1 + "', ";
4040
4222
  tmp$ret$1 = tmp$ret$0;
4041
4223
  tmp = tmp$ret$1;
4042
4224
  }
@@ -4044,14 +4226,14 @@
4044
4226
  var prev = tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs;
4045
4227
  var tmp$ret$3;
4046
4228
  // Inline function 'kotlin.run' call
4047
- var tmp0_run = $this.zk_1;
4229
+ var tmp0_run = $this.el_1;
4048
4230
  // Inline function 'kotlin.contracts.contract' call
4049
4231
  var tmp$ret$2;
4050
4232
  // Inline function 'community.flock.wirespec.compiler.core.parse.TokenProvider.printTokens.<anonymous>.<anonymous>' call
4051
- tmp$ret$2 = "Current: '" + tmp0_run.qk_1 + "'";
4233
+ tmp$ret$2 = "Current: '" + tmp0_run.tk_1 + "'";
4052
4234
  tmp$ret$3 = tmp$ret$2;
4053
4235
  var curr = tmp$ret$3;
4054
- var tmp2_safe_receiver = $this.al_1;
4236
+ var tmp2_safe_receiver = $this.fl_1;
4055
4237
  var tmp_0;
4056
4238
  if (tmp2_safe_receiver == null) {
4057
4239
  tmp_0 = null;
@@ -4061,13 +4243,13 @@
4061
4243
  // Inline function 'kotlin.contracts.contract' call
4062
4244
  var tmp$ret$4;
4063
4245
  // Inline function 'community.flock.wirespec.compiler.core.parse.TokenProvider.printTokens.<anonymous>.<anonymous>' call
4064
- tmp$ret$4 = ", Next: '" + tmp2_safe_receiver.qk_1 + "'";
4246
+ tmp$ret$4 = ", Next: '" + tmp2_safe_receiver.tk_1 + "'";
4065
4247
  tmp$ret$5 = tmp$ret$4;
4066
4248
  tmp_0 = tmp$ret$5;
4067
4249
  }
4068
4250
  var tmp3_elvis_lhs = tmp_0;
4069
4251
  var next = tmp3_elvis_lhs == null ? '' : tmp3_elvis_lhs;
4070
- $this.xk_1.ih(prev + curr + next);
4252
+ $this.cl_1.ih(prev + curr + next);
4071
4253
  tmp$ret$6 = Unit_getInstance();
4072
4254
  return tmp$ret$6;
4073
4255
  }
@@ -4087,7 +4269,7 @@
4087
4269
  var tmp0_success = Companion_getInstance();
4088
4270
  var tmp$ret$0;
4089
4271
  // Inline function 'community.flock.wirespec.compiler.core.parse.TokenProvider.nextToken.<anonymous>' call
4090
- tmp$ret$0 = $this.yk_1.e();
4272
+ tmp$ret$0 = $this.dl_1.e();
4091
4273
  var tmp1_success = tmp$ret$0;
4092
4274
  tmp$ret$1 = _Result___init__impl__xyqfz8(tmp1_success);
4093
4275
  tmp = tmp$ret$1;
@@ -4118,8 +4300,8 @@
4118
4300
  return tmp$ret$4;
4119
4301
  }
4120
4302
  function TokenProvider(logger, tokenIterator) {
4121
- this.xk_1 = logger;
4122
- this.yk_1 = tokenIterator;
4303
+ this.cl_1 = logger;
4304
+ this.dl_1 = tokenIterator;
4123
4305
  var tmp = this;
4124
4306
  var tmp0_elvis_lhs = nextToken(this);
4125
4307
  var tmp_0;
@@ -4128,26 +4310,76 @@
4128
4310
  } else {
4129
4311
  tmp_0 = tmp0_elvis_lhs;
4130
4312
  }
4131
- tmp.zk_1 = tmp_0;
4132
- this.al_1 = nextToken(this);
4313
+ tmp.el_1 = tmp_0;
4314
+ this.fl_1 = nextToken(this);
4133
4315
  printTokens$default(this);
4134
4316
  }
4135
4317
  protoOf(TokenProvider).d = function () {
4136
- return !(this.al_1 == null);
4318
+ return !(this.fl_1 == null);
4137
4319
  };
4138
- protoOf(TokenProvider).bl = function () {
4139
- var previousToken = this.zk_1;
4140
- var tmp = this;
4141
- var tmp0_elvis_lhs = this.al_1;
4142
- var tmp_0;
4143
- if (tmp0_elvis_lhs == null) {
4144
- throw new NextException(previousToken.rk_1);
4145
- } else {
4146
- tmp_0 = tmp0_elvis_lhs;
4320
+ protoOf(TokenProvider).gl = function () {
4321
+ var tmp$ret$6;
4322
+ // Inline function 'arrow.core.raise.either' call
4323
+ var tmp$ret$5;
4324
+ // Inline function 'arrow.core.raise.fold' call
4325
+ // Inline function 'kotlin.contracts.contract' call
4326
+ var tmp$ret$4;
4327
+ // Inline function 'arrow.core.raise.fold' call
4328
+ // Inline function 'kotlin.contracts.contract' call
4329
+ var raise = new DefaultRaise(false);
4330
+ var tmp;
4331
+ try {
4332
+ var tmp$ret$1;
4333
+ // Inline function 'arrow.core.raise.either.<anonymous>' call
4334
+ var previousToken = this.el_1;
4335
+ var tmp_0 = this;
4336
+ var tmp0_elvis_lhs = this.fl_1;
4337
+ var tmp_1;
4338
+ if (tmp0_elvis_lhs == null) {
4339
+ var tmp$ret$0;
4340
+ // Inline function 'arrow.core.nel' call
4341
+ var tmp0_nel = new NextException(previousToken.uk_1);
4342
+ tmp$ret$0 = nonEmptyListOf(tmp0_nel, []);
4343
+ raise.bh(tmp$ret$0);
4344
+ } else {
4345
+ tmp_1 = tmp0_elvis_lhs;
4346
+ }
4347
+ tmp_0.el_1 = tmp_1;
4348
+ this.fl_1 = nextToken(this);
4349
+ printTokens(this, previousToken);
4350
+ tmp$ret$1 = Unit_getInstance();
4351
+ var res = tmp$ret$1;
4352
+ raise.zg();
4353
+ var tmp$ret$2;
4354
+ // Inline function 'arrow.core.raise.either.<anonymous>' call
4355
+ tmp$ret$2 = new Right(Unit_getInstance());
4356
+ tmp = tmp$ret$2;
4357
+ } catch ($p) {
4358
+ var tmp_2;
4359
+ if ($p instanceof CancellationException) {
4360
+ var e = $p;
4361
+ raise.zg();
4362
+ var tmp$ret$3;
4363
+ // Inline function 'arrow.core.raise.either.<anonymous>' call
4364
+ var tmp1__anonymous__uwfjfc = raisedOrRethrow(e, raise);
4365
+ tmp$ret$3 = new Left(tmp1__anonymous__uwfjfc);
4366
+ tmp_2 = tmp$ret$3;
4367
+ } else {
4368
+ if ($p instanceof Error) {
4369
+ var e_0 = $p;
4370
+ raise.zg();
4371
+ var tmp0__anonymous__q1qw7t = nonFatalOrThrow(e_0);
4372
+ throw tmp0__anonymous__q1qw7t;
4373
+ } else {
4374
+ throw $p;
4375
+ }
4376
+ }
4377
+ tmp = tmp_2;
4147
4378
  }
4148
- tmp.zk_1 = tmp_0;
4149
- this.al_1 = nextToken(this);
4150
- printTokens(this, previousToken);
4379
+ tmp$ret$4 = tmp;
4380
+ tmp$ret$5 = tmp$ret$4;
4381
+ tmp$ret$6 = tmp$ret$5;
4382
+ return tmp$ret$6;
4151
4383
  };
4152
4384
  function toProvider(_this__u8e3s4, logger) {
4153
4385
  return new TokenProvider(logger, _this__u8e3s4.c());
@@ -4155,15 +4387,15 @@
4155
4387
  function IdxAndLength(idx, length) {
4156
4388
  idx = idx === VOID ? 0 : idx;
4157
4389
  length = length === VOID ? 0 : length;
4158
- this.cl_1 = idx;
4159
- this.dl_1 = length;
4390
+ this.hl_1 = idx;
4391
+ this.il_1 = length;
4160
4392
  }
4161
4393
  protoOf(IdxAndLength).toString = function () {
4162
- return 'IdxAndLength(idx=' + this.cl_1 + ', length=' + this.dl_1 + ')';
4394
+ return 'IdxAndLength(idx=' + this.hl_1 + ', length=' + this.il_1 + ')';
4163
4395
  };
4164
4396
  protoOf(IdxAndLength).hashCode = function () {
4165
- var result = this.cl_1;
4166
- result = imul(result, 31) + this.dl_1 | 0;
4397
+ var result = this.hl_1;
4398
+ result = imul(result, 31) + this.il_1 | 0;
4167
4399
  return result;
4168
4400
  };
4169
4401
  protoOf(IdxAndLength).equals = function (other) {
@@ -4172,9 +4404,9 @@
4172
4404
  if (!(other instanceof IdxAndLength))
4173
4405
  return false;
4174
4406
  var tmp0_other_with_cast = other instanceof IdxAndLength ? other : THROW_CCE();
4175
- if (!(this.cl_1 === tmp0_other_with_cast.cl_1))
4407
+ if (!(this.hl_1 === tmp0_other_with_cast.hl_1))
4176
4408
  return false;
4177
- if (!(this.dl_1 === tmp0_other_with_cast.dl_1))
4409
+ if (!(this.il_1 === tmp0_other_with_cast.il_1))
4178
4410
  return false;
4179
4411
  return true;
4180
4412
  };
@@ -4182,26 +4414,26 @@
4182
4414
  line = line === VOID ? 1 : line;
4183
4415
  position = position === VOID ? 1 : position;
4184
4416
  idxAndLength = idxAndLength === VOID ? new IdxAndLength() : idxAndLength;
4185
- this.sk_1 = line;
4186
- this.tk_1 = position;
4187
- this.uk_1 = idxAndLength;
4417
+ this.vk_1 = line;
4418
+ this.wk_1 = position;
4419
+ this.xk_1 = idxAndLength;
4188
4420
  }
4189
- protoOf(Coordinates).el = function (line, position, idxAndLength) {
4421
+ protoOf(Coordinates).jl = function (line, position, idxAndLength) {
4190
4422
  return new Coordinates(line, position, idxAndLength);
4191
4423
  };
4192
- protoOf(Coordinates).fl = function (line, position, idxAndLength, $super) {
4193
- line = line === VOID ? this.sk_1 : line;
4194
- position = position === VOID ? this.tk_1 : position;
4195
- idxAndLength = idxAndLength === VOID ? this.uk_1 : idxAndLength;
4196
- return $super === VOID ? this.el(line, position, idxAndLength) : $super.el.call(this, line, position, idxAndLength);
4424
+ protoOf(Coordinates).kl = function (line, position, idxAndLength, $super) {
4425
+ line = line === VOID ? this.vk_1 : line;
4426
+ position = position === VOID ? this.wk_1 : position;
4427
+ idxAndLength = idxAndLength === VOID ? this.xk_1 : idxAndLength;
4428
+ return $super === VOID ? this.jl(line, position, idxAndLength) : $super.jl.call(this, line, position, idxAndLength);
4197
4429
  };
4198
4430
  protoOf(Coordinates).toString = function () {
4199
- return 'Coordinates(line=' + this.sk_1 + ', position=' + this.tk_1 + ', idxAndLength=' + this.uk_1 + ')';
4431
+ return 'Coordinates(line=' + this.vk_1 + ', position=' + this.wk_1 + ', idxAndLength=' + this.xk_1 + ')';
4200
4432
  };
4201
4433
  protoOf(Coordinates).hashCode = function () {
4202
- var result = this.sk_1;
4203
- result = imul(result, 31) + this.tk_1 | 0;
4204
- result = imul(result, 31) + this.uk_1.hashCode() | 0;
4434
+ var result = this.vk_1;
4435
+ result = imul(result, 31) + this.wk_1 | 0;
4436
+ result = imul(result, 31) + this.xk_1.hashCode() | 0;
4205
4437
  return result;
4206
4438
  };
4207
4439
  protoOf(Coordinates).equals = function (other) {
@@ -4210,35 +4442,35 @@
4210
4442
  if (!(other instanceof Coordinates))
4211
4443
  return false;
4212
4444
  var tmp0_other_with_cast = other instanceof Coordinates ? other : THROW_CCE();
4213
- if (!(this.sk_1 === tmp0_other_with_cast.sk_1))
4445
+ if (!(this.vk_1 === tmp0_other_with_cast.vk_1))
4214
4446
  return false;
4215
- if (!(this.tk_1 === tmp0_other_with_cast.tk_1))
4447
+ if (!(this.wk_1 === tmp0_other_with_cast.wk_1))
4216
4448
  return false;
4217
- if (!this.uk_1.equals(tmp0_other_with_cast.uk_1))
4449
+ if (!this.xk_1.equals(tmp0_other_with_cast.xk_1))
4218
4450
  return false;
4219
4451
  return true;
4220
4452
  };
4221
4453
  function Token(type, value, coordinates) {
4222
- this.pk_1 = type;
4223
- this.qk_1 = value;
4224
- this.rk_1 = coordinates;
4454
+ this.sk_1 = type;
4455
+ this.tk_1 = value;
4456
+ this.uk_1 = coordinates;
4225
4457
  }
4226
- protoOf(Token).gl = function (type, value, coordinates) {
4458
+ protoOf(Token).ll = function (type, value, coordinates) {
4227
4459
  return new Token(type, value, coordinates);
4228
4460
  };
4229
- protoOf(Token).wk = function (type, value, coordinates, $super) {
4230
- type = type === VOID ? this.pk_1 : type;
4231
- value = value === VOID ? this.qk_1 : value;
4232
- coordinates = coordinates === VOID ? this.rk_1 : coordinates;
4233
- return $super === VOID ? this.gl(type, value, coordinates) : $super.gl.call(this, type, value, coordinates);
4461
+ protoOf(Token).zk = function (type, value, coordinates, $super) {
4462
+ type = type === VOID ? this.sk_1 : type;
4463
+ value = value === VOID ? this.tk_1 : value;
4464
+ coordinates = coordinates === VOID ? this.uk_1 : coordinates;
4465
+ return $super === VOID ? this.ll(type, value, coordinates) : $super.ll.call(this, type, value, coordinates);
4234
4466
  };
4235
4467
  protoOf(Token).toString = function () {
4236
- return 'Token(type=' + this.pk_1 + ', value=' + this.qk_1 + ', coordinates=' + this.rk_1 + ')';
4468
+ return 'Token(type=' + this.sk_1 + ', value=' + this.tk_1 + ', coordinates=' + this.uk_1 + ')';
4237
4469
  };
4238
4470
  protoOf(Token).hashCode = function () {
4239
- var result = hashCode(this.pk_1);
4240
- result = imul(result, 31) + getStringHashCode(this.qk_1) | 0;
4241
- result = imul(result, 31) + this.rk_1.hashCode() | 0;
4471
+ var result = hashCode(this.sk_1);
4472
+ result = imul(result, 31) + getStringHashCode(this.tk_1) | 0;
4473
+ result = imul(result, 31) + this.uk_1.hashCode() | 0;
4242
4474
  return result;
4243
4475
  };
4244
4476
  protoOf(Token).equals = function (other) {
@@ -4247,19 +4479,19 @@
4247
4479
  if (!(other instanceof Token))
4248
4480
  return false;
4249
4481
  var tmp0_other_with_cast = other instanceof Token ? other : THROW_CCE();
4250
- if (!equals(this.pk_1, tmp0_other_with_cast.pk_1))
4482
+ if (!equals(this.sk_1, tmp0_other_with_cast.sk_1))
4251
4483
  return false;
4252
- if (!(this.qk_1 === tmp0_other_with_cast.qk_1))
4484
+ if (!(this.tk_1 === tmp0_other_with_cast.tk_1))
4253
4485
  return false;
4254
- if (!this.rk_1.equals(tmp0_other_with_cast.rk_1))
4486
+ if (!this.uk_1.equals(tmp0_other_with_cast.uk_1))
4255
4487
  return false;
4256
4488
  return true;
4257
4489
  };
4258
4490
  function plus_1(_this__u8e3s4, length) {
4259
- return new IdxAndLength(_this__u8e3s4.cl_1 + length | 0, length);
4491
+ return new IdxAndLength(_this__u8e3s4.hl_1 + length | 0, length);
4260
4492
  }
4261
4493
  function plus_2(_this__u8e3s4, length) {
4262
- return _this__u8e3s4.fl(VOID, _this__u8e3s4.tk_1 + length | 0, plus_1(_this__u8e3s4.uk_1, length));
4494
+ return _this__u8e3s4.kl(VOID, _this__u8e3s4.wk_1 + length | 0, plus_1(_this__u8e3s4.xk_1, length));
4263
4495
  }
4264
4496
  function tokenize(_this__u8e3s4, source) {
4265
4497
  var tmp$ret$1;
@@ -4281,7 +4513,7 @@
4281
4513
  var tmp0_subject = type;
4282
4514
  var tmp;
4283
4515
  if (tmp0_subject instanceof NewLine) {
4284
- tmp = new Coordinates(_this__u8e3s4.sk_1 + 1 | 0, VOID, plus_1(_this__u8e3s4.uk_1, value.length));
4516
+ tmp = new Coordinates(_this__u8e3s4.vk_1 + 1 | 0, VOID, plus_1(_this__u8e3s4.xk_1, value.length));
4285
4517
  } else {
4286
4518
  tmp = plus_2(_this__u8e3s4, value.length);
4287
4519
  }
@@ -4289,7 +4521,7 @@
4289
4521
  }
4290
4522
  function lastCoordinates(_this__u8e3s4) {
4291
4523
  var tmp0_safe_receiver = lastOrNull(_this__u8e3s4);
4292
- var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.rk_1;
4524
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.uk_1;
4293
4525
  return tmp1_elvis_lhs == null ? new Coordinates() : tmp1_elvis_lhs;
4294
4526
  }
4295
4527
  function tokenize_0(_this__u8e3s4, source, tokens) {
@@ -4299,7 +4531,7 @@
4299
4531
  $l$1: do {
4300
4532
  $l$0: do {
4301
4533
  var token = findToken($this, lastCoordinates(tokens_0), source_0);
4302
- var newSource = removePrefix(source_0, token.qk_1);
4534
+ var newSource = removePrefix(source_0, token.tk_1);
4303
4535
  var newTokens = plus_0(tokens_0, token);
4304
4536
  var tmp;
4305
4537
  var tmp$ret$0;
@@ -4525,7 +4757,7 @@
4525
4757
  }
4526
4758
  function EndOfProgram() {
4527
4759
  EndOfProgram_instance = this;
4528
- this.il_1 = 'EOP';
4760
+ this.nl_1 = 'EOP';
4529
4761
  }
4530
4762
  var EndOfProgram_instance;
4531
4763
  function EndOfProgram_getInstance() {
@@ -4558,7 +4790,7 @@
4558
4790
  }
4559
4791
  return tmp;
4560
4792
  };
4561
- protoOf(Logger).ok = function (s, block) {
4793
+ protoOf(Logger).rk = function (s, block) {
4562
4794
  var tmp$ret$1;
4563
4795
  // Inline function 'kotlin.run' call
4564
4796
  // Inline function 'kotlin.contracts.contract' call
@@ -4581,72 +4813,72 @@
4581
4813
  }
4582
4814
  }
4583
4815
  //region block: post-declaration
4584
- protoOf(JavaEmitter).rj = withLogging;
4585
- protoOf(JavaEmitter).sj = withLogging_0;
4586
- protoOf(JavaEmitter).tj = withLogging_1;
4587
- protoOf(JavaEmitter).uj = withLogging_2;
4816
+ protoOf(JavaEmitter).tj = withLogging;
4817
+ protoOf(JavaEmitter).uj = withLogging_0;
4818
+ protoOf(JavaEmitter).vj = withLogging_1;
4819
+ protoOf(JavaEmitter).wj = withLogging_2;
4588
4820
  protoOf(JavaEmitter).th = withLogging_3;
4589
- protoOf(JavaEmitter).wj = withLogging_4;
4590
- protoOf(JavaEmitter).yj = withLogging_5;
4591
- protoOf(JavaEmitter).zj = withLogging_6;
4592
- protoOf(JavaEmitter).bk = withLogging_7;
4821
+ protoOf(JavaEmitter).yj = withLogging_4;
4822
+ protoOf(JavaEmitter).ak = withLogging_5;
4823
+ protoOf(JavaEmitter).bk = withLogging_6;
4824
+ protoOf(JavaEmitter).dk = withLogging_7;
4593
4825
  protoOf(JavaEmitter).ri = withLogging_8;
4594
- protoOf(KotlinEmitter).rj = withLogging;
4595
- protoOf(KotlinEmitter).sj = withLogging_0;
4596
- protoOf(KotlinEmitter).tj = withLogging_1;
4597
- protoOf(KotlinEmitter).uj = withLogging_2;
4826
+ protoOf(KotlinEmitter).tj = withLogging;
4827
+ protoOf(KotlinEmitter).uj = withLogging_0;
4828
+ protoOf(KotlinEmitter).vj = withLogging_1;
4829
+ protoOf(KotlinEmitter).wj = withLogging_2;
4598
4830
  protoOf(KotlinEmitter).th = withLogging_3;
4599
- protoOf(KotlinEmitter).wj = withLogging_4;
4600
- protoOf(KotlinEmitter).yj = withLogging_5;
4601
- protoOf(KotlinEmitter).zj = withLogging_6;
4602
- protoOf(KotlinEmitter).bk = withLogging_7;
4831
+ protoOf(KotlinEmitter).yj = withLogging_4;
4832
+ protoOf(KotlinEmitter).ak = withLogging_5;
4833
+ protoOf(KotlinEmitter).bk = withLogging_6;
4834
+ protoOf(KotlinEmitter).dk = withLogging_7;
4603
4835
  protoOf(KotlinEmitter).ri = withLogging_8;
4604
- protoOf(ScalaEmitter).rj = withLogging;
4605
- protoOf(ScalaEmitter).sj = withLogging_0;
4606
- protoOf(ScalaEmitter).tj = withLogging_1;
4607
- protoOf(ScalaEmitter).uj = withLogging_2;
4836
+ protoOf(ScalaEmitter).tj = withLogging;
4837
+ protoOf(ScalaEmitter).uj = withLogging_0;
4838
+ protoOf(ScalaEmitter).vj = withLogging_1;
4839
+ protoOf(ScalaEmitter).wj = withLogging_2;
4608
4840
  protoOf(ScalaEmitter).th = withLogging_3;
4609
- protoOf(ScalaEmitter).wj = withLogging_4;
4610
- protoOf(ScalaEmitter).yj = withLogging_5;
4611
- protoOf(ScalaEmitter).zj = withLogging_6;
4612
- protoOf(ScalaEmitter).bk = withLogging_7;
4613
- protoOf(TypeScriptEmitter).rj = withLogging;
4614
- protoOf(TypeScriptEmitter).sj = withLogging_0;
4615
- protoOf(TypeScriptEmitter).tj = withLogging_1;
4616
- protoOf(TypeScriptEmitter).uj = withLogging_2;
4841
+ protoOf(ScalaEmitter).yj = withLogging_4;
4842
+ protoOf(ScalaEmitter).ak = withLogging_5;
4843
+ protoOf(ScalaEmitter).bk = withLogging_6;
4844
+ protoOf(ScalaEmitter).dk = withLogging_7;
4845
+ protoOf(TypeScriptEmitter).tj = withLogging;
4846
+ protoOf(TypeScriptEmitter).uj = withLogging_0;
4847
+ protoOf(TypeScriptEmitter).vj = withLogging_1;
4848
+ protoOf(TypeScriptEmitter).wj = withLogging_2;
4617
4849
  protoOf(TypeScriptEmitter).th = withLogging_3;
4618
- protoOf(TypeScriptEmitter).wj = withLogging_4;
4619
- protoOf(TypeScriptEmitter).yj = withLogging_5;
4620
- protoOf(TypeScriptEmitter).zj = withLogging_6;
4621
- protoOf(TypeScriptEmitter).bk = withLogging_7;
4622
- protoOf(WirespecEmitter).rj = withLogging;
4623
- protoOf(WirespecEmitter).sj = withLogging_0;
4624
- protoOf(WirespecEmitter).tj = withLogging_1;
4625
- protoOf(WirespecEmitter).uj = withLogging_2;
4850
+ protoOf(TypeScriptEmitter).yj = withLogging_4;
4851
+ protoOf(TypeScriptEmitter).ak = withLogging_5;
4852
+ protoOf(TypeScriptEmitter).bk = withLogging_6;
4853
+ protoOf(TypeScriptEmitter).dk = withLogging_7;
4854
+ protoOf(WirespecEmitter).tj = withLogging;
4855
+ protoOf(WirespecEmitter).uj = withLogging_0;
4856
+ protoOf(WirespecEmitter).vj = withLogging_1;
4857
+ protoOf(WirespecEmitter).wj = withLogging_2;
4626
4858
  protoOf(WirespecEmitter).th = withLogging_3;
4627
- protoOf(WirespecEmitter).wj = withLogging_4;
4628
- protoOf(WirespecEmitter).yj = withLogging_5;
4629
- protoOf(WirespecEmitter).zj = withLogging_6;
4630
- protoOf(WirespecEmitter).bk = withLogging_7;
4631
- protoOf(WsTypeDef).hl = name;
4632
- protoOf(WsEnumTypeDef).hl = name;
4633
- protoOf(WsRefinedTypeDef).hl = name;
4634
- protoOf(WhiteSpaceExceptNewLine).hl = name;
4635
- protoOf(NewLine).hl = name;
4636
- protoOf(LeftCurly).hl = name;
4637
- protoOf(Colon).hl = name;
4638
- protoOf(Comma).hl = name;
4639
- protoOf(QuestionMark).hl = name;
4640
- protoOf(Brackets).hl = name;
4641
- protoOf(WsString).hl = name;
4642
- protoOf(WsInteger).hl = name;
4643
- protoOf(WsBoolean).hl = name;
4644
- protoOf(RightCurly).hl = name;
4645
- protoOf(CustomValue).hl = name;
4646
- protoOf(CustomType).hl = name;
4647
- protoOf(CustomRegex).hl = name;
4648
- protoOf(Invalid).hl = name;
4649
- protoOf(EndOfProgram).hl = name;
4859
+ protoOf(WirespecEmitter).yj = withLogging_4;
4860
+ protoOf(WirespecEmitter).ak = withLogging_5;
4861
+ protoOf(WirespecEmitter).bk = withLogging_6;
4862
+ protoOf(WirespecEmitter).dk = withLogging_7;
4863
+ protoOf(WsTypeDef).ml = name;
4864
+ protoOf(WsEnumTypeDef).ml = name;
4865
+ protoOf(WsRefinedTypeDef).ml = name;
4866
+ protoOf(WhiteSpaceExceptNewLine).ml = name;
4867
+ protoOf(NewLine).ml = name;
4868
+ protoOf(LeftCurly).ml = name;
4869
+ protoOf(Colon).ml = name;
4870
+ protoOf(Comma).ml = name;
4871
+ protoOf(QuestionMark).ml = name;
4872
+ protoOf(Brackets).ml = name;
4873
+ protoOf(WsString).ml = name;
4874
+ protoOf(WsInteger).ml = name;
4875
+ protoOf(WsBoolean).ml = name;
4876
+ protoOf(RightCurly).ml = name;
4877
+ protoOf(CustomValue).ml = name;
4878
+ protoOf(CustomType).ml = name;
4879
+ protoOf(CustomRegex).ml = name;
4880
+ protoOf(Invalid).ml = name;
4881
+ protoOf(EndOfProgram).ml = name;
4650
4882
  //endregion
4651
4883
  //region block: init
4652
4884
  DEFAULT_PACKAGE_NAME = 'community.flock.wirespec.generated';