@flock/wirespec 0.6.3 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kotlin/Kotlinx-Cli-Library-kotlinx-cli-js-ir.js +336 -336
- package/kotlin/arrow-arrow-atomic.js +4 -4
- package/kotlin/arrow-arrow-continuations.js +3 -3
- package/kotlin/arrow-arrow-core.js +17 -17
- package/kotlin/kotlin-kotlin-stdlib-js-ir.js +195 -180
- package/kotlin/kotlin-kotlin-stdlib-js-ir.js.map +1 -1
- package/kotlin/kotlin-openapi-bindings.js +3461 -3461
- package/kotlin/kotlin-openapi-bindings.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core-js-ir.js +1406 -1376
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json-js-ir.js +1155 -1146
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.map +1 -1
- package/kotlin/wirespec-cli.js +124 -124
- package/kotlin/wirespec-core.js +376 -305
- package/kotlin/wirespec-core.js.map +1 -1
- package/kotlin/wirespec-lib.js +53 -53
- package/kotlin/wirespec-openapi.js +1489 -1182
- package/kotlin/wirespec-openapi.js.map +1 -1
- package/package.json +1 -1
- package/sync-hashes/Kotlinx-Cli-Library-kotlinx-cli-js-ir.js.hash +1 -1
- package/sync-hashes/arrow-arrow-atomic.js.hash +1 -1
- package/sync-hashes/arrow-arrow-continuations.js.hash +1 -1
- package/sync-hashes/arrow-arrow-core.js.hash +1 -1
- package/sync-hashes/kotlin-kotlin-stdlib-js-ir.js.hash +1 -1
- package/sync-hashes/kotlin-kotlin-stdlib-js-ir.js.map.hash +1 -1
- package/sync-hashes/kotlin-openapi-bindings.js.hash +1 -1
- package/sync-hashes/kotlin-openapi-bindings.js.map.hash +1 -1
- package/sync-hashes/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.hash +1 -1
- package/sync-hashes/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map.hash +1 -1
- package/sync-hashes/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.hash +1 -1
- package/sync-hashes/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.map.hash +1 -1
- package/sync-hashes/wirespec-cli.js.hash +1 -1
- package/sync-hashes/wirespec-core.js.hash +1 -1
- package/sync-hashes/wirespec-core.js.map.hash +1 -1
- package/sync-hashes/wirespec-lib.js.hash +1 -1
- package/sync-hashes/wirespec-openapi.js.hash +1 -1
- package/sync-hashes/wirespec-openapi.js.map.hash +1 -1
package/kotlin/wirespec-core.js
CHANGED
|
@@ -16,71 +16,71 @@
|
|
|
16
16
|
'use strict';
|
|
17
17
|
//region block: imports
|
|
18
18
|
var imul = Math.imul;
|
|
19
|
-
var toString = kotlin_kotlin.$_$.
|
|
19
|
+
var toString = kotlin_kotlin.$_$.y7;
|
|
20
20
|
var Unit_getInstance = kotlin_kotlin.$_$.i3;
|
|
21
|
-
var Enum = kotlin_kotlin.$_$.
|
|
22
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
23
|
-
var classMeta = kotlin_kotlin.$_$.
|
|
24
|
-
var VOID = kotlin_kotlin.$_$.
|
|
25
|
-
var setMetadataFor = kotlin_kotlin.$_$.
|
|
26
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
21
|
+
var Enum = kotlin_kotlin.$_$.q9;
|
|
22
|
+
var protoOf = kotlin_kotlin.$_$.t7;
|
|
23
|
+
var classMeta = kotlin_kotlin.$_$.q6;
|
|
24
|
+
var VOID = kotlin_kotlin.$_$.za;
|
|
25
|
+
var setMetadataFor = kotlin_kotlin.$_$.u7;
|
|
26
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.ua;
|
|
27
27
|
var Left = kotlin_io_arrow_kt_arrow_core.$_$.c;
|
|
28
28
|
var Right = kotlin_io_arrow_kt_arrow_core.$_$.d;
|
|
29
29
|
var Regex_init_$Create$ = kotlin_kotlin.$_$.v;
|
|
30
|
-
var to = kotlin_kotlin.$_$.
|
|
31
|
-
var listOf = kotlin_kotlin.$_$.
|
|
32
|
-
var objectMeta = kotlin_kotlin.$_$.
|
|
33
|
-
var trimMargin = kotlin_kotlin.$_$.
|
|
30
|
+
var to = kotlin_kotlin.$_$.ya;
|
|
31
|
+
var listOf = kotlin_kotlin.$_$.j5;
|
|
32
|
+
var objectMeta = kotlin_kotlin.$_$.s7;
|
|
33
|
+
var trimMargin = kotlin_kotlin.$_$.k9;
|
|
34
34
|
var HashSet_init_$Create$ = kotlin_kotlin.$_$.m;
|
|
35
35
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.g;
|
|
36
|
-
var joinToString = kotlin_kotlin.$_$.
|
|
37
|
-
var split = kotlin_kotlin.$_$.
|
|
36
|
+
var joinToString = kotlin_kotlin.$_$.b5;
|
|
37
|
+
var split = kotlin_kotlin.$_$.x8;
|
|
38
38
|
var collectionSizeOrDefault = kotlin_kotlin.$_$.c4;
|
|
39
39
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.f;
|
|
40
|
-
var plus = kotlin_kotlin.$_$.
|
|
41
|
-
var plus_0 = kotlin_kotlin.$_$.
|
|
40
|
+
var plus = kotlin_kotlin.$_$.p5;
|
|
41
|
+
var plus_0 = kotlin_kotlin.$_$.q5;
|
|
42
42
|
var filterNotNull = kotlin_kotlin.$_$.u4;
|
|
43
|
-
var toIntOrNull = kotlin_kotlin.$_$.
|
|
44
|
-
var toSet = kotlin_kotlin.$_$.
|
|
45
|
-
var isBlank = kotlin_kotlin.$_$.
|
|
43
|
+
var toIntOrNull = kotlin_kotlin.$_$.c9;
|
|
44
|
+
var toSet = kotlin_kotlin.$_$.b6;
|
|
45
|
+
var isBlank = kotlin_kotlin.$_$.r8;
|
|
46
46
|
var checkIndexOverflow = kotlin_kotlin.$_$.b4;
|
|
47
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
48
|
-
var isCharSequence = kotlin_kotlin.$_$.
|
|
49
|
-
var trimStart = kotlin_kotlin.$_$.
|
|
50
|
-
var dropLast = kotlin_kotlin.$_$.
|
|
51
|
-
var drop = kotlin_kotlin.$_$.
|
|
52
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
53
|
-
var charSequenceGet = kotlin_kotlin.$_$.
|
|
47
|
+
var THROW_CCE = kotlin_kotlin.$_$.z9;
|
|
48
|
+
var isCharSequence = kotlin_kotlin.$_$.e7;
|
|
49
|
+
var trimStart = kotlin_kotlin.$_$.l9;
|
|
50
|
+
var dropLast = kotlin_kotlin.$_$.m8;
|
|
51
|
+
var drop = kotlin_kotlin.$_$.n8;
|
|
52
|
+
var charSequenceLength = kotlin_kotlin.$_$.o6;
|
|
53
|
+
var charSequenceGet = kotlin_kotlin.$_$.n6;
|
|
54
54
|
var toString_0 = kotlin_kotlin.$_$.l1;
|
|
55
55
|
var Collection = kotlin_kotlin.$_$.m3;
|
|
56
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
57
|
-
var listOf_0 = kotlin_kotlin.$_$.
|
|
58
|
-
var interfaceMeta = kotlin_kotlin.$_$.
|
|
59
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
56
|
+
var isInterface = kotlin_kotlin.$_$.i7;
|
|
57
|
+
var listOf_0 = kotlin_kotlin.$_$.i5;
|
|
58
|
+
var interfaceMeta = kotlin_kotlin.$_$.z6;
|
|
59
|
+
var captureStack = kotlin_kotlin.$_$.k6;
|
|
60
60
|
var getKClassFromExpression = kotlin_kotlin.$_$.c;
|
|
61
|
-
var RuntimeException = kotlin_kotlin.$_$.
|
|
61
|
+
var RuntimeException = kotlin_kotlin.$_$.y9;
|
|
62
62
|
var RuntimeException_init_$Init$ = kotlin_kotlin.$_$.h1;
|
|
63
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
64
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
65
|
-
var equals = kotlin_kotlin.$_$.
|
|
63
|
+
var getStringHashCode = kotlin_kotlin.$_$.x6;
|
|
64
|
+
var hashCode = kotlin_kotlin.$_$.y6;
|
|
65
|
+
var equals = kotlin_kotlin.$_$.s6;
|
|
66
66
|
var DefaultRaise = kotlin_io_arrow_kt_arrow_core.$_$.a;
|
|
67
67
|
var nonFatalOrThrow = kotlin_io_arrow_kt_arrow_core.$_$.g;
|
|
68
68
|
var raisedOrRethrow = kotlin_io_arrow_kt_arrow_core.$_$.b;
|
|
69
|
-
var CancellationException = kotlin_kotlin.$_$.
|
|
69
|
+
var CancellationException = kotlin_kotlin.$_$.e6;
|
|
70
70
|
var getKClass = kotlin_kotlin.$_$.d;
|
|
71
71
|
var nonEmptyListOf = kotlin_io_arrow_kt_arrow_core.$_$.f;
|
|
72
72
|
var Companion_getInstance = kotlin_kotlin.$_$.d3;
|
|
73
73
|
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.m1;
|
|
74
|
-
var createFailure = kotlin_kotlin.$_$.
|
|
74
|
+
var createFailure = kotlin_kotlin.$_$.na;
|
|
75
75
|
var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.p1;
|
|
76
|
-
var isObject = kotlin_kotlin.$_$.
|
|
76
|
+
var isObject = kotlin_kotlin.$_$.k7;
|
|
77
77
|
var _Result___get_isFailure__impl__jpiriv = kotlin_kotlin.$_$.o1;
|
|
78
78
|
var emptyList = kotlin_kotlin.$_$.r4;
|
|
79
|
-
var lastOrNull = kotlin_kotlin.$_$.
|
|
80
|
-
var removePrefix = kotlin_kotlin.$_$.
|
|
79
|
+
var lastOrNull = kotlin_kotlin.$_$.e5;
|
|
80
|
+
var removePrefix = kotlin_kotlin.$_$.u8;
|
|
81
81
|
var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.g1;
|
|
82
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
83
|
-
var println = kotlin_kotlin.$_$.
|
|
82
|
+
var ensureNotNull = kotlin_kotlin.$_$.oa;
|
|
83
|
+
var println = kotlin_kotlin.$_$.h6;
|
|
84
84
|
//endregion
|
|
85
85
|
//region block: pre-declaration
|
|
86
86
|
setMetadataFor(Reported, 'Reported', classMeta, Enum);
|
|
@@ -135,6 +135,7 @@
|
|
|
135
135
|
setMetadataFor(NextException, 'NextException', classMeta, NullTokenException);
|
|
136
136
|
setMetadataFor(WrongTokenException, 'WrongTokenException', classMeta, ParserException);
|
|
137
137
|
setMetadataFor(Type, 'Type', classMeta, Enum);
|
|
138
|
+
setMetadataFor(Any, 'Any', classMeta);
|
|
138
139
|
setMetadataFor(Custom, 'Custom', classMeta);
|
|
139
140
|
setMetadataFor(Primitive, 'Primitive', classMeta);
|
|
140
141
|
setMetadataFor(Identifier, 'Identifier', classMeta);
|
|
@@ -894,30 +895,34 @@
|
|
|
894
895
|
return function () {
|
|
895
896
|
var tmp0_subject = $this_emitPrimaryType;
|
|
896
897
|
var tmp;
|
|
897
|
-
if (tmp0_subject instanceof
|
|
898
|
-
tmp =
|
|
898
|
+
if (tmp0_subject instanceof Any) {
|
|
899
|
+
tmp = 'Object';
|
|
899
900
|
} else {
|
|
900
|
-
if (tmp0_subject instanceof
|
|
901
|
-
|
|
902
|
-
var tmp0 = tmp1_subject.q4_1;
|
|
903
|
-
var tmp_0;
|
|
904
|
-
switch (tmp0) {
|
|
905
|
-
case 0:
|
|
906
|
-
tmp_0 = 'String';
|
|
907
|
-
break;
|
|
908
|
-
case 1:
|
|
909
|
-
tmp_0 = 'Integer';
|
|
910
|
-
break;
|
|
911
|
-
case 2:
|
|
912
|
-
tmp_0 = 'Boolean';
|
|
913
|
-
break;
|
|
914
|
-
default:
|
|
915
|
-
noWhenBranchMatchedException();
|
|
916
|
-
break;
|
|
917
|
-
}
|
|
918
|
-
tmp = tmp_0;
|
|
901
|
+
if (tmp0_subject instanceof Custom) {
|
|
902
|
+
tmp = $this_emitPrimaryType.hj_1;
|
|
919
903
|
} else {
|
|
920
|
-
|
|
904
|
+
if (tmp0_subject instanceof Primitive) {
|
|
905
|
+
var tmp1_subject = $this_emitPrimaryType.ej_1;
|
|
906
|
+
var tmp0 = tmp1_subject.q4_1;
|
|
907
|
+
var tmp_0;
|
|
908
|
+
switch (tmp0) {
|
|
909
|
+
case 0:
|
|
910
|
+
tmp_0 = 'String';
|
|
911
|
+
break;
|
|
912
|
+
case 1:
|
|
913
|
+
tmp_0 = 'Integer';
|
|
914
|
+
break;
|
|
915
|
+
case 2:
|
|
916
|
+
tmp_0 = 'Boolean';
|
|
917
|
+
break;
|
|
918
|
+
default:
|
|
919
|
+
noWhenBranchMatchedException();
|
|
920
|
+
break;
|
|
921
|
+
}
|
|
922
|
+
tmp = tmp_0;
|
|
923
|
+
} else {
|
|
924
|
+
noWhenBranchMatchedException();
|
|
925
|
+
}
|
|
921
926
|
}
|
|
922
927
|
}
|
|
923
928
|
return tmp;
|
|
@@ -1540,30 +1545,34 @@
|
|
|
1540
1545
|
// Inline function 'kotlin.let' call
|
|
1541
1546
|
var tmp0_subject = $this_emit;
|
|
1542
1547
|
var tmp;
|
|
1543
|
-
if (tmp0_subject instanceof
|
|
1544
|
-
tmp =
|
|
1548
|
+
if (tmp0_subject instanceof Any) {
|
|
1549
|
+
tmp = 'Any';
|
|
1545
1550
|
} else {
|
|
1546
|
-
if (tmp0_subject instanceof
|
|
1547
|
-
|
|
1548
|
-
var tmp0 = tmp1_subject.q4_1;
|
|
1549
|
-
var tmp_0;
|
|
1550
|
-
switch (tmp0) {
|
|
1551
|
-
case 0:
|
|
1552
|
-
tmp_0 = 'String';
|
|
1553
|
-
break;
|
|
1554
|
-
case 1:
|
|
1555
|
-
tmp_0 = 'Int';
|
|
1556
|
-
break;
|
|
1557
|
-
case 2:
|
|
1558
|
-
tmp_0 = 'Boolean';
|
|
1559
|
-
break;
|
|
1560
|
-
default:
|
|
1561
|
-
noWhenBranchMatchedException();
|
|
1562
|
-
break;
|
|
1563
|
-
}
|
|
1564
|
-
tmp = tmp_0;
|
|
1551
|
+
if (tmp0_subject instanceof Custom) {
|
|
1552
|
+
tmp = $this_emit.hj_1;
|
|
1565
1553
|
} else {
|
|
1566
|
-
|
|
1554
|
+
if (tmp0_subject instanceof Primitive) {
|
|
1555
|
+
var tmp1_subject = $this_emit.ej_1;
|
|
1556
|
+
var tmp0 = tmp1_subject.q4_1;
|
|
1557
|
+
var tmp_0;
|
|
1558
|
+
switch (tmp0) {
|
|
1559
|
+
case 0:
|
|
1560
|
+
tmp_0 = 'String';
|
|
1561
|
+
break;
|
|
1562
|
+
case 1:
|
|
1563
|
+
tmp_0 = 'Int';
|
|
1564
|
+
break;
|
|
1565
|
+
case 2:
|
|
1566
|
+
tmp_0 = 'Boolean';
|
|
1567
|
+
break;
|
|
1568
|
+
default:
|
|
1569
|
+
noWhenBranchMatchedException();
|
|
1570
|
+
break;
|
|
1571
|
+
}
|
|
1572
|
+
tmp = tmp_0;
|
|
1573
|
+
} else {
|
|
1574
|
+
noWhenBranchMatchedException();
|
|
1575
|
+
}
|
|
1567
1576
|
}
|
|
1568
1577
|
}
|
|
1569
1578
|
var tmp0_let = tmp;
|
|
@@ -2067,30 +2076,34 @@
|
|
|
2067
2076
|
// Inline function 'kotlin.let' call
|
|
2068
2077
|
var tmp0_subject = $this_emit;
|
|
2069
2078
|
var tmp;
|
|
2070
|
-
if (tmp0_subject instanceof
|
|
2071
|
-
tmp =
|
|
2079
|
+
if (tmp0_subject instanceof Any) {
|
|
2080
|
+
tmp = 'Any';
|
|
2072
2081
|
} else {
|
|
2073
|
-
if (tmp0_subject instanceof
|
|
2074
|
-
|
|
2075
|
-
var tmp0 = tmp1_subject.q4_1;
|
|
2076
|
-
var tmp_0;
|
|
2077
|
-
switch (tmp0) {
|
|
2078
|
-
case 0:
|
|
2079
|
-
tmp_0 = 'String';
|
|
2080
|
-
break;
|
|
2081
|
-
case 1:
|
|
2082
|
-
tmp_0 = 'Int';
|
|
2083
|
-
break;
|
|
2084
|
-
case 2:
|
|
2085
|
-
tmp_0 = 'Boolean';
|
|
2086
|
-
break;
|
|
2087
|
-
default:
|
|
2088
|
-
noWhenBranchMatchedException();
|
|
2089
|
-
break;
|
|
2090
|
-
}
|
|
2091
|
-
tmp = tmp_0;
|
|
2082
|
+
if (tmp0_subject instanceof Custom) {
|
|
2083
|
+
tmp = $this_emit.hj_1;
|
|
2092
2084
|
} else {
|
|
2093
|
-
|
|
2085
|
+
if (tmp0_subject instanceof Primitive) {
|
|
2086
|
+
var tmp1_subject = $this_emit.ej_1;
|
|
2087
|
+
var tmp0 = tmp1_subject.q4_1;
|
|
2088
|
+
var tmp_0;
|
|
2089
|
+
switch (tmp0) {
|
|
2090
|
+
case 0:
|
|
2091
|
+
tmp_0 = 'String';
|
|
2092
|
+
break;
|
|
2093
|
+
case 1:
|
|
2094
|
+
tmp_0 = 'Int';
|
|
2095
|
+
break;
|
|
2096
|
+
case 2:
|
|
2097
|
+
tmp_0 = 'Boolean';
|
|
2098
|
+
break;
|
|
2099
|
+
default:
|
|
2100
|
+
noWhenBranchMatchedException();
|
|
2101
|
+
break;
|
|
2102
|
+
}
|
|
2103
|
+
tmp = tmp_0;
|
|
2104
|
+
} else {
|
|
2105
|
+
noWhenBranchMatchedException();
|
|
2106
|
+
}
|
|
2094
2107
|
}
|
|
2095
2108
|
}
|
|
2096
2109
|
var tmp0_let = tmp;
|
|
@@ -2248,30 +2261,34 @@
|
|
|
2248
2261
|
// Inline function 'kotlin.let' call
|
|
2249
2262
|
var tmp0_subject = $this_emit;
|
|
2250
2263
|
var tmp;
|
|
2251
|
-
if (tmp0_subject instanceof
|
|
2252
|
-
tmp =
|
|
2264
|
+
if (tmp0_subject instanceof Any) {
|
|
2265
|
+
tmp = 'any';
|
|
2253
2266
|
} else {
|
|
2254
|
-
if (tmp0_subject instanceof
|
|
2255
|
-
|
|
2256
|
-
var tmp0 = tmp1_subject.q4_1;
|
|
2257
|
-
var tmp_0;
|
|
2258
|
-
switch (tmp0) {
|
|
2259
|
-
case 0:
|
|
2260
|
-
tmp_0 = 'string';
|
|
2261
|
-
break;
|
|
2262
|
-
case 1:
|
|
2263
|
-
tmp_0 = 'number';
|
|
2264
|
-
break;
|
|
2265
|
-
case 2:
|
|
2266
|
-
tmp_0 = 'boolean';
|
|
2267
|
-
break;
|
|
2268
|
-
default:
|
|
2269
|
-
noWhenBranchMatchedException();
|
|
2270
|
-
break;
|
|
2271
|
-
}
|
|
2272
|
-
tmp = tmp_0;
|
|
2267
|
+
if (tmp0_subject instanceof Custom) {
|
|
2268
|
+
tmp = $this_emit.hj_1;
|
|
2273
2269
|
} else {
|
|
2274
|
-
|
|
2270
|
+
if (tmp0_subject instanceof Primitive) {
|
|
2271
|
+
var tmp1_subject = $this_emit.ej_1;
|
|
2272
|
+
var tmp0 = tmp1_subject.q4_1;
|
|
2273
|
+
var tmp_0;
|
|
2274
|
+
switch (tmp0) {
|
|
2275
|
+
case 0:
|
|
2276
|
+
tmp_0 = 'string';
|
|
2277
|
+
break;
|
|
2278
|
+
case 1:
|
|
2279
|
+
tmp_0 = 'number';
|
|
2280
|
+
break;
|
|
2281
|
+
case 2:
|
|
2282
|
+
tmp_0 = 'boolean';
|
|
2283
|
+
break;
|
|
2284
|
+
default:
|
|
2285
|
+
noWhenBranchMatchedException();
|
|
2286
|
+
break;
|
|
2287
|
+
}
|
|
2288
|
+
tmp = tmp_0;
|
|
2289
|
+
} else {
|
|
2290
|
+
noWhenBranchMatchedException();
|
|
2291
|
+
}
|
|
2275
2292
|
}
|
|
2276
2293
|
}
|
|
2277
2294
|
var tmp0_let = tmp;
|
|
@@ -2591,30 +2608,34 @@
|
|
|
2591
2608
|
// Inline function 'kotlin.let' call
|
|
2592
2609
|
var tmp0_subject = $this_emit;
|
|
2593
2610
|
var tmp;
|
|
2594
|
-
if (tmp0_subject instanceof
|
|
2595
|
-
tmp =
|
|
2611
|
+
if (tmp0_subject instanceof Any) {
|
|
2612
|
+
tmp = 'Any';
|
|
2596
2613
|
} else {
|
|
2597
|
-
if (tmp0_subject instanceof
|
|
2598
|
-
|
|
2599
|
-
var tmp0 = tmp1_subject.q4_1;
|
|
2600
|
-
var tmp_0;
|
|
2601
|
-
switch (tmp0) {
|
|
2602
|
-
case 0:
|
|
2603
|
-
tmp_0 = 'String';
|
|
2604
|
-
break;
|
|
2605
|
-
case 1:
|
|
2606
|
-
tmp_0 = 'Integer';
|
|
2607
|
-
break;
|
|
2608
|
-
case 2:
|
|
2609
|
-
tmp_0 = 'Boolean';
|
|
2610
|
-
break;
|
|
2611
|
-
default:
|
|
2612
|
-
noWhenBranchMatchedException();
|
|
2613
|
-
break;
|
|
2614
|
-
}
|
|
2615
|
-
tmp = tmp_0;
|
|
2614
|
+
if (tmp0_subject instanceof Custom) {
|
|
2615
|
+
tmp = $this_emit.hj_1;
|
|
2616
2616
|
} else {
|
|
2617
|
-
|
|
2617
|
+
if (tmp0_subject instanceof Primitive) {
|
|
2618
|
+
var tmp1_subject = $this_emit.ej_1;
|
|
2619
|
+
var tmp0 = tmp1_subject.q4_1;
|
|
2620
|
+
var tmp_0;
|
|
2621
|
+
switch (tmp0) {
|
|
2622
|
+
case 0:
|
|
2623
|
+
tmp_0 = 'String';
|
|
2624
|
+
break;
|
|
2625
|
+
case 1:
|
|
2626
|
+
tmp_0 = 'Integer';
|
|
2627
|
+
break;
|
|
2628
|
+
case 2:
|
|
2629
|
+
tmp_0 = 'Boolean';
|
|
2630
|
+
break;
|
|
2631
|
+
default:
|
|
2632
|
+
noWhenBranchMatchedException();
|
|
2633
|
+
break;
|
|
2634
|
+
}
|
|
2635
|
+
tmp = tmp_0;
|
|
2636
|
+
} else {
|
|
2637
|
+
noWhenBranchMatchedException();
|
|
2638
|
+
}
|
|
2618
2639
|
}
|
|
2619
2640
|
}
|
|
2620
2641
|
var tmp0_let = tmp;
|
|
@@ -2978,6 +2999,45 @@
|
|
|
2978
2999
|
Type_initEntries();
|
|
2979
3000
|
return Type_Boolean_instance;
|
|
2980
3001
|
}
|
|
3002
|
+
function Any(isIterable, isMap) {
|
|
3003
|
+
isMap = isMap === VOID ? false : isMap;
|
|
3004
|
+
this.el_1 = isIterable;
|
|
3005
|
+
this.fl_1 = isMap;
|
|
3006
|
+
}
|
|
3007
|
+
protoOf(Any).qi = function () {
|
|
3008
|
+
return this.el_1;
|
|
3009
|
+
};
|
|
3010
|
+
protoOf(Any).jk = function () {
|
|
3011
|
+
return this.fl_1;
|
|
3012
|
+
};
|
|
3013
|
+
protoOf(Any).gl = function (isIterable, isMap) {
|
|
3014
|
+
return new Any(isIterable, isMap);
|
|
3015
|
+
};
|
|
3016
|
+
protoOf(Any).hl = function (isIterable, isMap, $super) {
|
|
3017
|
+
isIterable = isIterable === VOID ? this.el_1 : isIterable;
|
|
3018
|
+
isMap = isMap === VOID ? this.fl_1 : isMap;
|
|
3019
|
+
return $super === VOID ? this.gl(isIterable, isMap) : $super.gl.call(this, isIterable, isMap);
|
|
3020
|
+
};
|
|
3021
|
+
protoOf(Any).toString = function () {
|
|
3022
|
+
return 'Any(isIterable=' + this.el_1 + ', isMap=' + this.fl_1 + ')';
|
|
3023
|
+
};
|
|
3024
|
+
protoOf(Any).hashCode = function () {
|
|
3025
|
+
var result = this.el_1 | 0;
|
|
3026
|
+
result = imul(result, 31) + (this.fl_1 | 0) | 0;
|
|
3027
|
+
return result;
|
|
3028
|
+
};
|
|
3029
|
+
protoOf(Any).equals = function (other) {
|
|
3030
|
+
if (this === other)
|
|
3031
|
+
return true;
|
|
3032
|
+
if (!(other instanceof Any))
|
|
3033
|
+
return false;
|
|
3034
|
+
var tmp0_other_with_cast = other instanceof Any ? other : THROW_CCE();
|
|
3035
|
+
if (!(this.el_1 === tmp0_other_with_cast.el_1))
|
|
3036
|
+
return false;
|
|
3037
|
+
if (!(this.fl_1 === tmp0_other_with_cast.fl_1))
|
|
3038
|
+
return false;
|
|
3039
|
+
return true;
|
|
3040
|
+
};
|
|
2981
3041
|
function Custom(value, isIterable, isMap) {
|
|
2982
3042
|
isMap = isMap === VOID ? false : isMap;
|
|
2983
3043
|
this.hj_1 = value;
|
|
@@ -2990,14 +3050,14 @@
|
|
|
2990
3050
|
protoOf(Custom).jk = function () {
|
|
2991
3051
|
return this.jj_1;
|
|
2992
3052
|
};
|
|
2993
|
-
protoOf(Custom).
|
|
3053
|
+
protoOf(Custom).il = function (value, isIterable, isMap) {
|
|
2994
3054
|
return new Custom(value, isIterable, isMap);
|
|
2995
3055
|
};
|
|
2996
|
-
protoOf(Custom).
|
|
3056
|
+
protoOf(Custom).jl = function (value, isIterable, isMap, $super) {
|
|
2997
3057
|
value = value === VOID ? this.hj_1 : value;
|
|
2998
3058
|
isIterable = isIterable === VOID ? this.ij_1 : isIterable;
|
|
2999
3059
|
isMap = isMap === VOID ? this.jj_1 : isMap;
|
|
3000
|
-
return $super === VOID ? this.
|
|
3060
|
+
return $super === VOID ? this.il(value, isIterable, isMap) : $super.il.call(this, value, isIterable, isMap);
|
|
3001
3061
|
};
|
|
3002
3062
|
protoOf(Custom).toString = function () {
|
|
3003
3063
|
return 'Custom(value=' + this.hj_1 + ', isIterable=' + this.ij_1 + ', isMap=' + this.jj_1 + ')';
|
|
@@ -3034,6 +3094,15 @@
|
|
|
3034
3094
|
protoOf(Primitive).jk = function () {
|
|
3035
3095
|
return this.gj_1;
|
|
3036
3096
|
};
|
|
3097
|
+
protoOf(Primitive).kl = function (type, isIterable, isMap) {
|
|
3098
|
+
return new Primitive(type, isIterable, isMap);
|
|
3099
|
+
};
|
|
3100
|
+
protoOf(Primitive).ll = function (type, isIterable, isMap, $super) {
|
|
3101
|
+
type = type === VOID ? this.ej_1 : type;
|
|
3102
|
+
isIterable = isIterable === VOID ? this.fj_1 : isIterable;
|
|
3103
|
+
isMap = isMap === VOID ? this.gj_1 : isMap;
|
|
3104
|
+
return $super === VOID ? this.kl(type, isIterable, isMap) : $super.kl.call(this, type, isIterable, isMap);
|
|
3105
|
+
};
|
|
3037
3106
|
protoOf(Primitive).toString = function () {
|
|
3038
3107
|
return 'Primitive(type=' + this.ej_1 + ', isIterable=' + this.fj_1 + ', isMap=' + this.gj_1 + ')';
|
|
3039
3108
|
};
|
|
@@ -3531,8 +3600,8 @@
|
|
|
3531
3600
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
3532
3601
|
var tmp$ret$2;
|
|
3533
3602
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseDefinition.<anonymous>' call
|
|
3534
|
-
log(_this__u8e3s4.
|
|
3535
|
-
var tmp0_subject = _this__u8e3s4.
|
|
3603
|
+
log(_this__u8e3s4.ol_1, $this);
|
|
3604
|
+
var tmp0_subject = _this__u8e3s4.ol_1.wk_1;
|
|
3536
3605
|
var tmp_0;
|
|
3537
3606
|
if (tmp0_subject instanceof WsTypeDef) {
|
|
3538
3607
|
tmp_0 = raise.ch(parseTypeDeclaration(_this__u8e3s4, $this));
|
|
@@ -3547,10 +3616,10 @@
|
|
|
3547
3616
|
// Inline function 'arrow.core.nel' call
|
|
3548
3617
|
var tmp$ret$0;
|
|
3549
3618
|
// Inline function 'kotlin.also' call
|
|
3550
|
-
var tmp0_also = new WrongTokenException(getKClass(WsTypeDef), _this__u8e3s4.
|
|
3619
|
+
var tmp0_also = new WrongTokenException(getKClass(WsTypeDef), _this__u8e3s4.ol_1);
|
|
3551
3620
|
// Inline function 'kotlin.contracts.contract' call
|
|
3552
3621
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseDefinition.<anonymous>.<anonymous>' call
|
|
3553
|
-
raise.ch(_this__u8e3s4.
|
|
3622
|
+
raise.ch(_this__u8e3s4.ql());
|
|
3554
3623
|
tmp$ret$0 = tmp0_also;
|
|
3555
3624
|
var tmp1_nel = tmp$ret$0;
|
|
3556
3625
|
tmp$ret$1 = nonEmptyListOf(tmp1_nel, []);
|
|
@@ -3609,21 +3678,21 @@
|
|
|
3609
3678
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
3610
3679
|
var tmp$ret$2;
|
|
3611
3680
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseTypeDeclaration.<anonymous>' call
|
|
3612
|
-
raise.ch(_this__u8e3s4.
|
|
3613
|
-
log(_this__u8e3s4.
|
|
3614
|
-
var tmp0_subject = _this__u8e3s4.
|
|
3681
|
+
raise.ch(_this__u8e3s4.ql());
|
|
3682
|
+
log(_this__u8e3s4.ol_1, $this);
|
|
3683
|
+
var tmp0_subject = _this__u8e3s4.ol_1.wk_1;
|
|
3615
3684
|
var tmp_0;
|
|
3616
3685
|
if (tmp0_subject instanceof CustomType) {
|
|
3617
|
-
tmp_0 = raise.ch(parseTypeDefinition(_this__u8e3s4, $this, _this__u8e3s4.
|
|
3686
|
+
tmp_0 = raise.ch(parseTypeDefinition(_this__u8e3s4, $this, _this__u8e3s4.ol_1.xk_1));
|
|
3618
3687
|
} else {
|
|
3619
3688
|
var tmp$ret$1;
|
|
3620
3689
|
// Inline function 'arrow.core.nel' call
|
|
3621
3690
|
var tmp$ret$0;
|
|
3622
3691
|
// Inline function 'kotlin.also' call
|
|
3623
|
-
var tmp0_also = new WrongTokenException(getKClass(CustomType), _this__u8e3s4.
|
|
3692
|
+
var tmp0_also = new WrongTokenException(getKClass(CustomType), _this__u8e3s4.ol_1);
|
|
3624
3693
|
// Inline function 'kotlin.contracts.contract' call
|
|
3625
3694
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseTypeDeclaration.<anonymous>.<anonymous>' call
|
|
3626
|
-
raise.ch(_this__u8e3s4.
|
|
3695
|
+
raise.ch(_this__u8e3s4.ql());
|
|
3627
3696
|
tmp$ret$0 = tmp0_also;
|
|
3628
3697
|
var tmp1_nel = tmp$ret$0;
|
|
3629
3698
|
tmp$ret$1 = nonEmptyListOf(tmp1_nel, []);
|
|
@@ -3680,11 +3749,11 @@
|
|
|
3680
3749
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
3681
3750
|
var tmp$ret$5;
|
|
3682
3751
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseTypeDefinition.<anonymous>' call
|
|
3683
|
-
raise.ch(_this__u8e3s4.
|
|
3684
|
-
log(_this__u8e3s4.
|
|
3752
|
+
raise.ch(_this__u8e3s4.ql());
|
|
3753
|
+
log(_this__u8e3s4.ol_1, $this);
|
|
3685
3754
|
var tmp$ret$4;
|
|
3686
3755
|
// Inline function 'kotlin.also' call
|
|
3687
|
-
var tmp0_subject = _this__u8e3s4.
|
|
3756
|
+
var tmp0_subject = _this__u8e3s4.ol_1.wk_1;
|
|
3688
3757
|
var tmp_0;
|
|
3689
3758
|
if (tmp0_subject instanceof LeftCurly) {
|
|
3690
3759
|
tmp_0 = new Type_0(typeName, raise.ch(parseTypeShape(_this__u8e3s4, $this)));
|
|
@@ -3693,10 +3762,10 @@
|
|
|
3693
3762
|
// Inline function 'arrow.core.nel' call
|
|
3694
3763
|
var tmp$ret$0;
|
|
3695
3764
|
// Inline function 'kotlin.also' call
|
|
3696
|
-
var tmp0_also = new WrongTokenException(getKClass(LeftCurly), _this__u8e3s4.
|
|
3765
|
+
var tmp0_also = new WrongTokenException(getKClass(LeftCurly), _this__u8e3s4.ol_1);
|
|
3697
3766
|
// Inline function 'kotlin.contracts.contract' call
|
|
3698
3767
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseTypeDefinition.<anonymous>.<anonymous>' call
|
|
3699
|
-
raise.ch(_this__u8e3s4.
|
|
3768
|
+
raise.ch(_this__u8e3s4.ql());
|
|
3700
3769
|
tmp$ret$0 = tmp0_also;
|
|
3701
3770
|
var tmp1_nel = tmp$ret$0;
|
|
3702
3771
|
tmp$ret$1 = nonEmptyListOf(tmp1_nel, []);
|
|
@@ -3705,18 +3774,18 @@
|
|
|
3705
3774
|
var tmp2_also = tmp_0;
|
|
3706
3775
|
// Inline function 'kotlin.contracts.contract' call
|
|
3707
3776
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseTypeDefinition.<anonymous>.<anonymous>' call
|
|
3708
|
-
var tmp0_subject_0 = _this__u8e3s4.
|
|
3777
|
+
var tmp0_subject_0 = _this__u8e3s4.ol_1.wk_1;
|
|
3709
3778
|
if (tmp0_subject_0 instanceof RightCurly)
|
|
3710
|
-
raise.ch(_this__u8e3s4.
|
|
3779
|
+
raise.ch(_this__u8e3s4.ql());
|
|
3711
3780
|
else {
|
|
3712
3781
|
var tmp$ret$3;
|
|
3713
3782
|
// Inline function 'arrow.core.nel' call
|
|
3714
3783
|
var tmp$ret$2;
|
|
3715
3784
|
// Inline function 'kotlin.also' call
|
|
3716
|
-
var tmp0_also_0 = new WrongTokenException(getKClass(RightCurly), _this__u8e3s4.
|
|
3785
|
+
var tmp0_also_0 = new WrongTokenException(getKClass(RightCurly), _this__u8e3s4.ol_1);
|
|
3717
3786
|
// Inline function 'kotlin.contracts.contract' call
|
|
3718
3787
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseTypeDefinition.<anonymous>.<anonymous>.<anonymous>' call
|
|
3719
|
-
raise.ch(_this__u8e3s4.
|
|
3788
|
+
raise.ch(_this__u8e3s4.ql());
|
|
3720
3789
|
tmp$ret$2 = tmp0_also_0;
|
|
3721
3790
|
var tmp1_nel_0 = tmp$ret$2;
|
|
3722
3791
|
tmp$ret$3 = nonEmptyListOf(tmp1_nel_0, []);
|
|
@@ -3774,11 +3843,11 @@
|
|
|
3774
3843
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
3775
3844
|
var tmp$ret$7;
|
|
3776
3845
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseTypeShape.<anonymous>' call
|
|
3777
|
-
raise.ch(_this__u8e3s4.
|
|
3778
|
-
log(_this__u8e3s4.
|
|
3846
|
+
raise.ch(_this__u8e3s4.ql());
|
|
3847
|
+
log(_this__u8e3s4.ol_1, $this);
|
|
3779
3848
|
var tmp$ret$6;
|
|
3780
3849
|
// Inline function 'kotlin.let' call
|
|
3781
|
-
var tmp0_subject = _this__u8e3s4.
|
|
3850
|
+
var tmp0_subject = _this__u8e3s4.ol_1.wk_1;
|
|
3782
3851
|
var tmp_0;
|
|
3783
3852
|
if (tmp0_subject instanceof CustomValue) {
|
|
3784
3853
|
var tmp$ret$3;
|
|
@@ -3789,21 +3858,21 @@
|
|
|
3789
3858
|
var tmp0_apply = tmp$ret$0;
|
|
3790
3859
|
// Inline function 'kotlin.contracts.contract' call
|
|
3791
3860
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseTypeShape.<anonymous>.<anonymous>' call
|
|
3792
|
-
tmp0_apply.a(raise.ch(parseField(_this__u8e3s4, $this, new Identifier(_this__u8e3s4.
|
|
3793
|
-
while (equals(_this__u8e3s4.
|
|
3794
|
-
raise.ch(_this__u8e3s4.
|
|
3795
|
-
var tmp0_subject_0 = _this__u8e3s4.
|
|
3861
|
+
tmp0_apply.a(raise.ch(parseField(_this__u8e3s4, $this, new Identifier(_this__u8e3s4.ol_1.xk_1))));
|
|
3862
|
+
while (equals(_this__u8e3s4.ol_1.wk_1, Comma_getInstance())) {
|
|
3863
|
+
raise.ch(_this__u8e3s4.ql());
|
|
3864
|
+
var tmp0_subject_0 = _this__u8e3s4.ol_1.wk_1;
|
|
3796
3865
|
if (tmp0_subject_0 instanceof CustomValue) {
|
|
3797
|
-
tmp0_apply.a(raise.ch(parseField(_this__u8e3s4, $this, new Identifier(_this__u8e3s4.
|
|
3866
|
+
tmp0_apply.a(raise.ch(parseField(_this__u8e3s4, $this, new Identifier(_this__u8e3s4.ol_1.xk_1))));
|
|
3798
3867
|
} else {
|
|
3799
3868
|
var tmp$ret$2;
|
|
3800
3869
|
// Inline function 'arrow.core.nel' call
|
|
3801
3870
|
var tmp$ret$1;
|
|
3802
3871
|
// Inline function 'kotlin.also' call
|
|
3803
|
-
var tmp0_also = new WrongTokenException(getKClass(CustomValue), _this__u8e3s4.
|
|
3872
|
+
var tmp0_also = new WrongTokenException(getKClass(CustomValue), _this__u8e3s4.ol_1);
|
|
3804
3873
|
// Inline function 'kotlin.contracts.contract' call
|
|
3805
3874
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseTypeShape.<anonymous>.<anonymous>.<anonymous>' call
|
|
3806
|
-
raise.ch(_this__u8e3s4.
|
|
3875
|
+
raise.ch(_this__u8e3s4.ql());
|
|
3807
3876
|
tmp$ret$1 = tmp0_also;
|
|
3808
3877
|
var tmp1_nel = tmp$ret$1;
|
|
3809
3878
|
tmp$ret$2 = nonEmptyListOf(tmp1_nel, []);
|
|
@@ -3817,10 +3886,10 @@
|
|
|
3817
3886
|
// Inline function 'arrow.core.nel' call
|
|
3818
3887
|
var tmp$ret$4;
|
|
3819
3888
|
// Inline function 'kotlin.also' call
|
|
3820
|
-
var tmp1_also = new WrongTokenException(getKClass(CustomValue), _this__u8e3s4.
|
|
3889
|
+
var tmp1_also = new WrongTokenException(getKClass(CustomValue), _this__u8e3s4.ol_1);
|
|
3821
3890
|
// Inline function 'kotlin.contracts.contract' call
|
|
3822
3891
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseTypeShape.<anonymous>.<anonymous>' call
|
|
3823
|
-
raise.ch(_this__u8e3s4.
|
|
3892
|
+
raise.ch(_this__u8e3s4.ql());
|
|
3824
3893
|
tmp$ret$4 = tmp1_also;
|
|
3825
3894
|
var tmp2_nel = tmp$ret$4;
|
|
3826
3895
|
tmp$ret$5 = nonEmptyListOf(tmp2_nel, []);
|
|
@@ -3880,37 +3949,37 @@
|
|
|
3880
3949
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
3881
3950
|
var tmp$ret$5;
|
|
3882
3951
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseField.<anonymous>' call
|
|
3883
|
-
raise.ch(_this__u8e3s4.
|
|
3884
|
-
log(_this__u8e3s4.
|
|
3885
|
-
var tmp0_subject = _this__u8e3s4.
|
|
3952
|
+
raise.ch(_this__u8e3s4.ql());
|
|
3953
|
+
log(_this__u8e3s4.ol_1, $this);
|
|
3954
|
+
var tmp0_subject = _this__u8e3s4.ol_1.wk_1;
|
|
3886
3955
|
if (tmp0_subject instanceof Colon)
|
|
3887
|
-
raise.ch(_this__u8e3s4.
|
|
3956
|
+
raise.ch(_this__u8e3s4.ql());
|
|
3888
3957
|
else {
|
|
3889
3958
|
var tmp$ret$1;
|
|
3890
3959
|
// Inline function 'arrow.core.nel' call
|
|
3891
3960
|
var tmp$ret$0;
|
|
3892
3961
|
// Inline function 'kotlin.also' call
|
|
3893
|
-
var tmp0_also = new WrongTokenException(getKClass(Colon), _this__u8e3s4.
|
|
3962
|
+
var tmp0_also = new WrongTokenException(getKClass(Colon), _this__u8e3s4.ol_1);
|
|
3894
3963
|
// Inline function 'kotlin.contracts.contract' call
|
|
3895
3964
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseField.<anonymous>.<anonymous>' call
|
|
3896
|
-
raise.ch(_this__u8e3s4.
|
|
3965
|
+
raise.ch(_this__u8e3s4.ql());
|
|
3897
3966
|
tmp$ret$0 = tmp0_also;
|
|
3898
3967
|
var tmp1_nel = tmp$ret$0;
|
|
3899
3968
|
tmp$ret$1 = nonEmptyListOf(tmp1_nel, []);
|
|
3900
3969
|
raise.bh(tmp$ret$1);
|
|
3901
3970
|
}
|
|
3902
|
-
var type = _this__u8e3s4.
|
|
3971
|
+
var type = _this__u8e3s4.ol_1.wk_1;
|
|
3903
3972
|
var tmp_0;
|
|
3904
3973
|
if (isInterface(type, WsType)) {
|
|
3905
|
-
var tmp_1 = raise.ch(parseFieldValue(_this__u8e3s4, $this, type, _this__u8e3s4.
|
|
3974
|
+
var tmp_1 = raise.ch(parseFieldValue(_this__u8e3s4, $this, type, _this__u8e3s4.ol_1.xk_1));
|
|
3906
3975
|
var tmp$ret$2;
|
|
3907
3976
|
// Inline function 'kotlin.also' call
|
|
3908
|
-
var tmp_2 = _this__u8e3s4.
|
|
3977
|
+
var tmp_2 = _this__u8e3s4.ol_1.wk_1;
|
|
3909
3978
|
var tmp2_also = tmp_2 instanceof QuestionMark;
|
|
3910
3979
|
// Inline function 'kotlin.contracts.contract' call
|
|
3911
3980
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseField.<anonymous>.<anonymous>' call
|
|
3912
3981
|
if (tmp2_also)
|
|
3913
|
-
raise.ch(_this__u8e3s4.
|
|
3982
|
+
raise.ch(_this__u8e3s4.ql());
|
|
3914
3983
|
tmp$ret$2 = tmp2_also;
|
|
3915
3984
|
tmp_0 = new Field(identifier, tmp_1, tmp$ret$2);
|
|
3916
3985
|
} else {
|
|
@@ -3918,10 +3987,10 @@
|
|
|
3918
3987
|
// Inline function 'arrow.core.nel' call
|
|
3919
3988
|
var tmp$ret$3;
|
|
3920
3989
|
// Inline function 'kotlin.also' call
|
|
3921
|
-
var tmp3_also = new WrongTokenException(getKClass(CustomType), _this__u8e3s4.
|
|
3990
|
+
var tmp3_also = new WrongTokenException(getKClass(CustomType), _this__u8e3s4.ol_1);
|
|
3922
3991
|
// Inline function 'kotlin.contracts.contract' call
|
|
3923
3992
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseField.<anonymous>.<anonymous>' call
|
|
3924
|
-
raise.ch(_this__u8e3s4.
|
|
3993
|
+
raise.ch(_this__u8e3s4.ql());
|
|
3925
3994
|
tmp$ret$3 = tmp3_also;
|
|
3926
3995
|
var tmp4_nel = tmp$ret$3;
|
|
3927
3996
|
tmp$ret$4 = nonEmptyListOf(tmp4_nel, []);
|
|
@@ -3978,16 +4047,16 @@
|
|
|
3978
4047
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
3979
4048
|
var tmp$ret$1;
|
|
3980
4049
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseFieldValue.<anonymous>' call
|
|
3981
|
-
raise.ch(_this__u8e3s4.
|
|
3982
|
-
log(_this__u8e3s4.
|
|
4050
|
+
raise.ch(_this__u8e3s4.ql());
|
|
4051
|
+
log(_this__u8e3s4.ol_1, $this);
|
|
3983
4052
|
var tmp$ret$0;
|
|
3984
4053
|
// Inline function 'kotlin.also' call
|
|
3985
|
-
var tmp_0 = _this__u8e3s4.
|
|
4054
|
+
var tmp_0 = _this__u8e3s4.ol_1.wk_1;
|
|
3986
4055
|
var tmp0_also = tmp_0 instanceof Brackets;
|
|
3987
4056
|
// Inline function 'kotlin.contracts.contract' call
|
|
3988
4057
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseFieldValue.<anonymous>.<anonymous>' call
|
|
3989
4058
|
if (tmp0_also)
|
|
3990
|
-
raise.ch(_this__u8e3s4.
|
|
4059
|
+
raise.ch(_this__u8e3s4.ql());
|
|
3991
4060
|
tmp$ret$0 = tmp0_also;
|
|
3992
4061
|
var isIterable = tmp$ret$0;
|
|
3993
4062
|
var tmp0_subject = wsType;
|
|
@@ -4060,21 +4129,21 @@
|
|
|
4060
4129
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4061
4130
|
var tmp$ret$2;
|
|
4062
4131
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseEnumTypeDeclaration.<anonymous>' call
|
|
4063
|
-
raise.ch(_this__u8e3s4.
|
|
4064
|
-
log(_this__u8e3s4.
|
|
4065
|
-
var tmp0_subject = _this__u8e3s4.
|
|
4132
|
+
raise.ch(_this__u8e3s4.ql());
|
|
4133
|
+
log(_this__u8e3s4.ol_1, $this);
|
|
4134
|
+
var tmp0_subject = _this__u8e3s4.ol_1.wk_1;
|
|
4066
4135
|
var tmp_0;
|
|
4067
4136
|
if (tmp0_subject instanceof CustomType) {
|
|
4068
|
-
tmp_0 = raise.ch(parseEnumTypeDefinition(_this__u8e3s4, $this, _this__u8e3s4.
|
|
4137
|
+
tmp_0 = raise.ch(parseEnumTypeDefinition(_this__u8e3s4, $this, _this__u8e3s4.ol_1.xk_1));
|
|
4069
4138
|
} else {
|
|
4070
4139
|
var tmp$ret$1;
|
|
4071
4140
|
// Inline function 'arrow.core.nel' call
|
|
4072
4141
|
var tmp$ret$0;
|
|
4073
4142
|
// Inline function 'kotlin.also' call
|
|
4074
|
-
var tmp0_also = new WrongTokenException(getKClass(CustomType), _this__u8e3s4.
|
|
4143
|
+
var tmp0_also = new WrongTokenException(getKClass(CustomType), _this__u8e3s4.ol_1);
|
|
4075
4144
|
// Inline function 'kotlin.contracts.contract' call
|
|
4076
4145
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseEnumTypeDeclaration.<anonymous>.<anonymous>' call
|
|
4077
|
-
raise.ch(_this__u8e3s4.
|
|
4146
|
+
raise.ch(_this__u8e3s4.ql());
|
|
4078
4147
|
tmp$ret$0 = tmp0_also;
|
|
4079
4148
|
var tmp1_nel = tmp$ret$0;
|
|
4080
4149
|
tmp$ret$1 = nonEmptyListOf(tmp1_nel, []);
|
|
@@ -4131,11 +4200,11 @@
|
|
|
4131
4200
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4132
4201
|
var tmp$ret$5;
|
|
4133
4202
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseEnumTypeDefinition.<anonymous>' call
|
|
4134
|
-
raise.ch(_this__u8e3s4.
|
|
4135
|
-
log(_this__u8e3s4.
|
|
4203
|
+
raise.ch(_this__u8e3s4.ql());
|
|
4204
|
+
log(_this__u8e3s4.ol_1, $this);
|
|
4136
4205
|
var tmp$ret$4;
|
|
4137
4206
|
// Inline function 'kotlin.also' call
|
|
4138
|
-
var tmp0_subject = _this__u8e3s4.
|
|
4207
|
+
var tmp0_subject = _this__u8e3s4.ol_1.wk_1;
|
|
4139
4208
|
var tmp_0;
|
|
4140
4209
|
if (tmp0_subject instanceof LeftCurly) {
|
|
4141
4210
|
tmp_0 = new Enum_0(typeName, raise.ch(parseEnumTypeEntries(_this__u8e3s4, $this)));
|
|
@@ -4144,10 +4213,10 @@
|
|
|
4144
4213
|
// Inline function 'arrow.core.nel' call
|
|
4145
4214
|
var tmp$ret$0;
|
|
4146
4215
|
// Inline function 'kotlin.also' call
|
|
4147
|
-
var tmp0_also = new WrongTokenException(getKClass(LeftCurly), _this__u8e3s4.
|
|
4216
|
+
var tmp0_also = new WrongTokenException(getKClass(LeftCurly), _this__u8e3s4.ol_1);
|
|
4148
4217
|
// Inline function 'kotlin.contracts.contract' call
|
|
4149
4218
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseEnumTypeDefinition.<anonymous>.<anonymous>' call
|
|
4150
|
-
raise.ch(_this__u8e3s4.
|
|
4219
|
+
raise.ch(_this__u8e3s4.ql());
|
|
4151
4220
|
tmp$ret$0 = tmp0_also;
|
|
4152
4221
|
var tmp1_nel = tmp$ret$0;
|
|
4153
4222
|
tmp$ret$1 = nonEmptyListOf(tmp1_nel, []);
|
|
@@ -4156,18 +4225,18 @@
|
|
|
4156
4225
|
var tmp2_also = tmp_0;
|
|
4157
4226
|
// Inline function 'kotlin.contracts.contract' call
|
|
4158
4227
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseEnumTypeDefinition.<anonymous>.<anonymous>' call
|
|
4159
|
-
var tmp0_subject_0 = _this__u8e3s4.
|
|
4228
|
+
var tmp0_subject_0 = _this__u8e3s4.ol_1.wk_1;
|
|
4160
4229
|
if (tmp0_subject_0 instanceof RightCurly)
|
|
4161
|
-
raise.ch(_this__u8e3s4.
|
|
4230
|
+
raise.ch(_this__u8e3s4.ql());
|
|
4162
4231
|
else {
|
|
4163
4232
|
var tmp$ret$3;
|
|
4164
4233
|
// Inline function 'arrow.core.nel' call
|
|
4165
4234
|
var tmp$ret$2;
|
|
4166
4235
|
// Inline function 'kotlin.also' call
|
|
4167
|
-
var tmp0_also_0 = new WrongTokenException(getKClass(RightCurly), _this__u8e3s4.
|
|
4236
|
+
var tmp0_also_0 = new WrongTokenException(getKClass(RightCurly), _this__u8e3s4.ol_1);
|
|
4168
4237
|
// Inline function 'kotlin.contracts.contract' call
|
|
4169
4238
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseEnumTypeDefinition.<anonymous>.<anonymous>.<anonymous>' call
|
|
4170
|
-
raise.ch(_this__u8e3s4.
|
|
4239
|
+
raise.ch(_this__u8e3s4.ql());
|
|
4171
4240
|
tmp$ret$2 = tmp0_also_0;
|
|
4172
4241
|
var tmp1_nel_0 = tmp$ret$2;
|
|
4173
4242
|
tmp$ret$3 = nonEmptyListOf(tmp1_nel_0, []);
|
|
@@ -4225,9 +4294,9 @@
|
|
|
4225
4294
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4226
4295
|
var tmp$ret$7;
|
|
4227
4296
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseEnumTypeEntries.<anonymous>' call
|
|
4228
|
-
raise.ch(_this__u8e3s4.
|
|
4229
|
-
log(_this__u8e3s4.
|
|
4230
|
-
var tmp0_subject = _this__u8e3s4.
|
|
4297
|
+
raise.ch(_this__u8e3s4.ql());
|
|
4298
|
+
log(_this__u8e3s4.ol_1, $this);
|
|
4299
|
+
var tmp0_subject = _this__u8e3s4.ol_1.wk_1;
|
|
4231
4300
|
var tmp_0;
|
|
4232
4301
|
if (tmp0_subject instanceof CustomType) {
|
|
4233
4302
|
var tmp$ret$4;
|
|
@@ -4238,28 +4307,28 @@
|
|
|
4238
4307
|
var tmp0_apply = tmp$ret$0;
|
|
4239
4308
|
// Inline function 'kotlin.contracts.contract' call
|
|
4240
4309
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseEnumTypeEntries.<anonymous>.<anonymous>' call
|
|
4241
|
-
tmp0_apply.a(_this__u8e3s4.
|
|
4242
|
-
raise.ch(_this__u8e3s4.
|
|
4243
|
-
while (equals(_this__u8e3s4.
|
|
4244
|
-
raise.ch(_this__u8e3s4.
|
|
4245
|
-
var tmp0_subject_0 = _this__u8e3s4.
|
|
4310
|
+
tmp0_apply.a(_this__u8e3s4.ol_1.xk_1);
|
|
4311
|
+
raise.ch(_this__u8e3s4.ql());
|
|
4312
|
+
while (equals(_this__u8e3s4.ol_1.wk_1, Comma_getInstance())) {
|
|
4313
|
+
raise.ch(_this__u8e3s4.ql());
|
|
4314
|
+
var tmp0_subject_0 = _this__u8e3s4.ol_1.wk_1;
|
|
4246
4315
|
if (tmp0_subject_0 instanceof CustomType) {
|
|
4247
4316
|
var tmp$ret$1;
|
|
4248
4317
|
// Inline function 'kotlin.also' call
|
|
4249
|
-
var tmp0_also = tmp0_apply.a(_this__u8e3s4.
|
|
4318
|
+
var tmp0_also = tmp0_apply.a(_this__u8e3s4.ol_1.xk_1);
|
|
4250
4319
|
// Inline function 'kotlin.contracts.contract' call
|
|
4251
4320
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseEnumTypeEntries.<anonymous>.<anonymous>.<anonymous>' call
|
|
4252
|
-
raise.ch(_this__u8e3s4.
|
|
4321
|
+
raise.ch(_this__u8e3s4.ql());
|
|
4253
4322
|
tmp$ret$1 = tmp0_also;
|
|
4254
4323
|
} else {
|
|
4255
4324
|
var tmp$ret$3;
|
|
4256
4325
|
// Inline function 'arrow.core.nel' call
|
|
4257
4326
|
var tmp$ret$2;
|
|
4258
4327
|
// Inline function 'kotlin.also' call
|
|
4259
|
-
var tmp1_also = new WrongTokenException(getKClass(CustomType), _this__u8e3s4.
|
|
4328
|
+
var tmp1_also = new WrongTokenException(getKClass(CustomType), _this__u8e3s4.ol_1);
|
|
4260
4329
|
// Inline function 'kotlin.contracts.contract' call
|
|
4261
4330
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseEnumTypeEntries.<anonymous>.<anonymous>.<anonymous>' call
|
|
4262
|
-
raise.ch(_this__u8e3s4.
|
|
4331
|
+
raise.ch(_this__u8e3s4.ql());
|
|
4263
4332
|
tmp$ret$2 = tmp1_also;
|
|
4264
4333
|
var tmp2_nel = tmp$ret$2;
|
|
4265
4334
|
tmp$ret$3 = nonEmptyListOf(tmp2_nel, []);
|
|
@@ -4273,10 +4342,10 @@
|
|
|
4273
4342
|
// Inline function 'arrow.core.nel' call
|
|
4274
4343
|
var tmp$ret$5;
|
|
4275
4344
|
// Inline function 'kotlin.also' call
|
|
4276
|
-
var tmp1_also_0 = new WrongTokenException(getKClass(CustomType), _this__u8e3s4.
|
|
4345
|
+
var tmp1_also_0 = new WrongTokenException(getKClass(CustomType), _this__u8e3s4.ol_1);
|
|
4277
4346
|
// Inline function 'kotlin.contracts.contract' call
|
|
4278
4347
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseEnumTypeEntries.<anonymous>.<anonymous>' call
|
|
4279
|
-
raise.ch(_this__u8e3s4.
|
|
4348
|
+
raise.ch(_this__u8e3s4.ql());
|
|
4280
4349
|
tmp$ret$5 = tmp1_also_0;
|
|
4281
4350
|
var tmp2_nel_0 = tmp$ret$5;
|
|
4282
4351
|
tmp$ret$6 = nonEmptyListOf(tmp2_nel_0, []);
|
|
@@ -4333,21 +4402,21 @@
|
|
|
4333
4402
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4334
4403
|
var tmp$ret$2;
|
|
4335
4404
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseRefinedTypeDeclaration.<anonymous>' call
|
|
4336
|
-
raise.ch(_this__u8e3s4.
|
|
4337
|
-
log(_this__u8e3s4.
|
|
4338
|
-
var tmp0_subject = _this__u8e3s4.
|
|
4405
|
+
raise.ch(_this__u8e3s4.ql());
|
|
4406
|
+
log(_this__u8e3s4.ol_1, $this);
|
|
4407
|
+
var tmp0_subject = _this__u8e3s4.ol_1.wk_1;
|
|
4339
4408
|
var tmp_0;
|
|
4340
4409
|
if (tmp0_subject instanceof CustomType) {
|
|
4341
|
-
tmp_0 = raise.ch(parseCustomRegex(_this__u8e3s4, $this, _this__u8e3s4.
|
|
4410
|
+
tmp_0 = raise.ch(parseCustomRegex(_this__u8e3s4, $this, _this__u8e3s4.ol_1.xk_1));
|
|
4342
4411
|
} else {
|
|
4343
4412
|
var tmp$ret$1;
|
|
4344
4413
|
// Inline function 'arrow.core.nel' call
|
|
4345
4414
|
var tmp$ret$0;
|
|
4346
4415
|
// Inline function 'kotlin.also' call
|
|
4347
|
-
var tmp0_also = new WrongTokenException(getKClass(CustomType), _this__u8e3s4.
|
|
4416
|
+
var tmp0_also = new WrongTokenException(getKClass(CustomType), _this__u8e3s4.ol_1);
|
|
4348
4417
|
// Inline function 'kotlin.contracts.contract' call
|
|
4349
4418
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseRefinedTypeDeclaration.<anonymous>.<anonymous>' call
|
|
4350
|
-
raise.ch(_this__u8e3s4.
|
|
4419
|
+
raise.ch(_this__u8e3s4.ql());
|
|
4351
4420
|
tmp$ret$0 = tmp0_also;
|
|
4352
4421
|
var tmp1_nel = tmp$ret$0;
|
|
4353
4422
|
tmp$ret$1 = nonEmptyListOf(tmp1_nel, []);
|
|
@@ -4404,23 +4473,23 @@
|
|
|
4404
4473
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4405
4474
|
var tmp$ret$3;
|
|
4406
4475
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseCustomRegex.<anonymous>' call
|
|
4407
|
-
raise.ch(_this__u8e3s4.
|
|
4408
|
-
log(_this__u8e3s4.
|
|
4476
|
+
raise.ch(_this__u8e3s4.ql());
|
|
4477
|
+
log(_this__u8e3s4.ol_1, $this);
|
|
4409
4478
|
var tmp$ret$2;
|
|
4410
4479
|
// Inline function 'kotlin.also' call
|
|
4411
|
-
var tmp0_subject = _this__u8e3s4.
|
|
4480
|
+
var tmp0_subject = _this__u8e3s4.ol_1.wk_1;
|
|
4412
4481
|
var tmp_0;
|
|
4413
4482
|
if (tmp0_subject instanceof CustomRegex) {
|
|
4414
|
-
tmp_0 = new Refined(typeName, new Validator(_this__u8e3s4.
|
|
4483
|
+
tmp_0 = new Refined(typeName, new Validator(_this__u8e3s4.ol_1.xk_1));
|
|
4415
4484
|
} else {
|
|
4416
4485
|
var tmp$ret$1;
|
|
4417
4486
|
// Inline function 'arrow.core.nel' call
|
|
4418
4487
|
var tmp$ret$0;
|
|
4419
4488
|
// Inline function 'kotlin.also' call
|
|
4420
|
-
var tmp0_also = new WrongTokenException(getKClass(CustomRegex), _this__u8e3s4.
|
|
4489
|
+
var tmp0_also = new WrongTokenException(getKClass(CustomRegex), _this__u8e3s4.ol_1);
|
|
4421
4490
|
// Inline function 'kotlin.contracts.contract' call
|
|
4422
4491
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseCustomRegex.<anonymous>.<anonymous>' call
|
|
4423
|
-
raise.ch(_this__u8e3s4.
|
|
4492
|
+
raise.ch(_this__u8e3s4.ql());
|
|
4424
4493
|
tmp$ret$0 = tmp0_also;
|
|
4425
4494
|
var tmp1_nel = tmp$ret$0;
|
|
4426
4495
|
tmp$ret$1 = nonEmptyListOf(tmp1_nel, []);
|
|
@@ -4429,7 +4498,7 @@
|
|
|
4429
4498
|
var tmp2_also = tmp_0;
|
|
4430
4499
|
// Inline function 'kotlin.contracts.contract' call
|
|
4431
4500
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseCustomRegex.<anonymous>.<anonymous>' call
|
|
4432
|
-
raise.ch(_this__u8e3s4.
|
|
4501
|
+
raise.ch(_this__u8e3s4.ql());
|
|
4433
4502
|
tmp$ret$2 = tmp2_also;
|
|
4434
4503
|
tmp$ret$3 = tmp$ret$2;
|
|
4435
4504
|
tmp$ret$4 = tmp$ret$3;
|
|
@@ -4515,14 +4584,14 @@
|
|
|
4515
4584
|
var prev = tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs;
|
|
4516
4585
|
var tmp$ret$3;
|
|
4517
4586
|
// Inline function 'kotlin.run' call
|
|
4518
|
-
var tmp0_run = $this.
|
|
4587
|
+
var tmp0_run = $this.ol_1;
|
|
4519
4588
|
// Inline function 'kotlin.contracts.contract' call
|
|
4520
4589
|
var tmp$ret$2;
|
|
4521
4590
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TokenProvider.printTokens.<anonymous>.<anonymous>' call
|
|
4522
4591
|
tmp$ret$2 = "Current: '" + tmp0_run.xk_1 + "'";
|
|
4523
4592
|
tmp$ret$3 = tmp$ret$2;
|
|
4524
4593
|
var curr = tmp$ret$3;
|
|
4525
|
-
var tmp2_safe_receiver = $this.
|
|
4594
|
+
var tmp2_safe_receiver = $this.pl_1;
|
|
4526
4595
|
var tmp_0;
|
|
4527
4596
|
if (tmp2_safe_receiver == null) {
|
|
4528
4597
|
tmp_0 = null;
|
|
@@ -4538,7 +4607,7 @@
|
|
|
4538
4607
|
}
|
|
4539
4608
|
var tmp3_elvis_lhs = tmp_0;
|
|
4540
4609
|
var next = tmp3_elvis_lhs == null ? '' : tmp3_elvis_lhs;
|
|
4541
|
-
$this.
|
|
4610
|
+
$this.ml_1.ih(prev + curr + next);
|
|
4542
4611
|
tmp$ret$6 = Unit_getInstance();
|
|
4543
4612
|
return tmp$ret$6;
|
|
4544
4613
|
}
|
|
@@ -4558,7 +4627,7 @@
|
|
|
4558
4627
|
var tmp0_success = Companion_getInstance();
|
|
4559
4628
|
var tmp$ret$0;
|
|
4560
4629
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TokenProvider.nextToken.<anonymous>' call
|
|
4561
|
-
tmp$ret$0 = $this.
|
|
4630
|
+
tmp$ret$0 = $this.nl_1.e();
|
|
4562
4631
|
var tmp1_success = tmp$ret$0;
|
|
4563
4632
|
tmp$ret$1 = _Result___init__impl__xyqfz8(tmp1_success);
|
|
4564
4633
|
tmp = tmp$ret$1;
|
|
@@ -4589,8 +4658,8 @@
|
|
|
4589
4658
|
return tmp$ret$4;
|
|
4590
4659
|
}
|
|
4591
4660
|
function TokenProvider(logger, tokenIterator) {
|
|
4592
|
-
this.
|
|
4593
|
-
this.
|
|
4661
|
+
this.ml_1 = logger;
|
|
4662
|
+
this.nl_1 = tokenIterator;
|
|
4594
4663
|
var tmp = this;
|
|
4595
4664
|
var tmp0_elvis_lhs = nextToken(this);
|
|
4596
4665
|
var tmp_0;
|
|
@@ -4599,14 +4668,14 @@
|
|
|
4599
4668
|
} else {
|
|
4600
4669
|
tmp_0 = tmp0_elvis_lhs;
|
|
4601
4670
|
}
|
|
4602
|
-
tmp.
|
|
4603
|
-
this.
|
|
4671
|
+
tmp.ol_1 = tmp_0;
|
|
4672
|
+
this.pl_1 = nextToken(this);
|
|
4604
4673
|
printTokens$default(this);
|
|
4605
4674
|
}
|
|
4606
4675
|
protoOf(TokenProvider).d = function () {
|
|
4607
|
-
return !(this.
|
|
4676
|
+
return !(this.pl_1 == null);
|
|
4608
4677
|
};
|
|
4609
|
-
protoOf(TokenProvider).
|
|
4678
|
+
protoOf(TokenProvider).ql = function () {
|
|
4610
4679
|
var tmp$ret$6;
|
|
4611
4680
|
// Inline function 'arrow.core.raise.either' call
|
|
4612
4681
|
var tmp$ret$5;
|
|
@@ -4620,9 +4689,9 @@
|
|
|
4620
4689
|
try {
|
|
4621
4690
|
var tmp$ret$1;
|
|
4622
4691
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4623
|
-
var previousToken = this.
|
|
4692
|
+
var previousToken = this.ol_1;
|
|
4624
4693
|
var tmp_0 = this;
|
|
4625
|
-
var tmp0_elvis_lhs = this.
|
|
4694
|
+
var tmp0_elvis_lhs = this.pl_1;
|
|
4626
4695
|
var tmp_1;
|
|
4627
4696
|
if (tmp0_elvis_lhs == null) {
|
|
4628
4697
|
var tmp$ret$0;
|
|
@@ -4633,8 +4702,8 @@
|
|
|
4633
4702
|
} else {
|
|
4634
4703
|
tmp_1 = tmp0_elvis_lhs;
|
|
4635
4704
|
}
|
|
4636
|
-
tmp_0.
|
|
4637
|
-
this.
|
|
4705
|
+
tmp_0.ol_1 = tmp_1;
|
|
4706
|
+
this.pl_1 = nextToken(this);
|
|
4638
4707
|
printTokens(this, previousToken);
|
|
4639
4708
|
tmp$ret$1 = Unit_getInstance();
|
|
4640
4709
|
var res = tmp$ret$1;
|
|
@@ -4676,15 +4745,15 @@
|
|
|
4676
4745
|
function IdxAndLength(idx, length) {
|
|
4677
4746
|
idx = idx === VOID ? 0 : idx;
|
|
4678
4747
|
length = length === VOID ? 0 : length;
|
|
4679
|
-
this.
|
|
4680
|
-
this.
|
|
4748
|
+
this.rl_1 = idx;
|
|
4749
|
+
this.sl_1 = length;
|
|
4681
4750
|
}
|
|
4682
4751
|
protoOf(IdxAndLength).toString = function () {
|
|
4683
|
-
return 'IdxAndLength(idx=' + this.
|
|
4752
|
+
return 'IdxAndLength(idx=' + this.rl_1 + ', length=' + this.sl_1 + ')';
|
|
4684
4753
|
};
|
|
4685
4754
|
protoOf(IdxAndLength).hashCode = function () {
|
|
4686
|
-
var result = this.
|
|
4687
|
-
result = imul(result, 31) + this.
|
|
4755
|
+
var result = this.rl_1;
|
|
4756
|
+
result = imul(result, 31) + this.sl_1 | 0;
|
|
4688
4757
|
return result;
|
|
4689
4758
|
};
|
|
4690
4759
|
protoOf(IdxAndLength).equals = function (other) {
|
|
@@ -4693,9 +4762,9 @@
|
|
|
4693
4762
|
if (!(other instanceof IdxAndLength))
|
|
4694
4763
|
return false;
|
|
4695
4764
|
var tmp0_other_with_cast = other instanceof IdxAndLength ? other : THROW_CCE();
|
|
4696
|
-
if (!(this.
|
|
4765
|
+
if (!(this.rl_1 === tmp0_other_with_cast.rl_1))
|
|
4697
4766
|
return false;
|
|
4698
|
-
if (!(this.
|
|
4767
|
+
if (!(this.sl_1 === tmp0_other_with_cast.sl_1))
|
|
4699
4768
|
return false;
|
|
4700
4769
|
return true;
|
|
4701
4770
|
};
|
|
@@ -4707,14 +4776,14 @@
|
|
|
4707
4776
|
this.al_1 = position;
|
|
4708
4777
|
this.bl_1 = idxAndLength;
|
|
4709
4778
|
}
|
|
4710
|
-
protoOf(Coordinates).
|
|
4779
|
+
protoOf(Coordinates).tl = function (line, position, idxAndLength) {
|
|
4711
4780
|
return new Coordinates(line, position, idxAndLength);
|
|
4712
4781
|
};
|
|
4713
|
-
protoOf(Coordinates).
|
|
4782
|
+
protoOf(Coordinates).ul = function (line, position, idxAndLength, $super) {
|
|
4714
4783
|
line = line === VOID ? this.zk_1 : line;
|
|
4715
4784
|
position = position === VOID ? this.al_1 : position;
|
|
4716
4785
|
idxAndLength = idxAndLength === VOID ? this.bl_1 : idxAndLength;
|
|
4717
|
-
return $super === VOID ? this.
|
|
4786
|
+
return $super === VOID ? this.tl(line, position, idxAndLength) : $super.tl.call(this, line, position, idxAndLength);
|
|
4718
4787
|
};
|
|
4719
4788
|
protoOf(Coordinates).toString = function () {
|
|
4720
4789
|
return 'Coordinates(line=' + this.zk_1 + ', position=' + this.al_1 + ', idxAndLength=' + this.bl_1 + ')';
|
|
@@ -4744,14 +4813,14 @@
|
|
|
4744
4813
|
this.xk_1 = value;
|
|
4745
4814
|
this.yk_1 = coordinates;
|
|
4746
4815
|
}
|
|
4747
|
-
protoOf(Token).
|
|
4816
|
+
protoOf(Token).vl = function (type, value, coordinates) {
|
|
4748
4817
|
return new Token(type, value, coordinates);
|
|
4749
4818
|
};
|
|
4750
4819
|
protoOf(Token).dl = function (type, value, coordinates, $super) {
|
|
4751
4820
|
type = type === VOID ? this.wk_1 : type;
|
|
4752
4821
|
value = value === VOID ? this.xk_1 : value;
|
|
4753
4822
|
coordinates = coordinates === VOID ? this.yk_1 : coordinates;
|
|
4754
|
-
return $super === VOID ? this.
|
|
4823
|
+
return $super === VOID ? this.vl(type, value, coordinates) : $super.vl.call(this, type, value, coordinates);
|
|
4755
4824
|
};
|
|
4756
4825
|
protoOf(Token).toString = function () {
|
|
4757
4826
|
return 'Token(type=' + this.wk_1 + ', value=' + this.xk_1 + ', coordinates=' + this.yk_1 + ')';
|
|
@@ -4777,10 +4846,10 @@
|
|
|
4777
4846
|
return true;
|
|
4778
4847
|
};
|
|
4779
4848
|
function plus_1(_this__u8e3s4, length) {
|
|
4780
|
-
return new IdxAndLength(_this__u8e3s4.
|
|
4849
|
+
return new IdxAndLength(_this__u8e3s4.rl_1 + length | 0, length);
|
|
4781
4850
|
}
|
|
4782
4851
|
function plus_2(_this__u8e3s4, length) {
|
|
4783
|
-
return _this__u8e3s4.
|
|
4852
|
+
return _this__u8e3s4.ul(VOID, _this__u8e3s4.al_1 + length | 0, plus_1(_this__u8e3s4.bl_1, length));
|
|
4784
4853
|
}
|
|
4785
4854
|
function tokenize(_this__u8e3s4, source) {
|
|
4786
4855
|
var tmp$ret$1;
|
|
@@ -5046,7 +5115,7 @@
|
|
|
5046
5115
|
}
|
|
5047
5116
|
function EndOfProgram() {
|
|
5048
5117
|
EndOfProgram_instance = this;
|
|
5049
|
-
this.
|
|
5118
|
+
this.xl_1 = 'EOP';
|
|
5050
5119
|
}
|
|
5051
5120
|
var EndOfProgram_instance;
|
|
5052
5121
|
function EndOfProgram_getInstance() {
|
|
@@ -5150,25 +5219,25 @@
|
|
|
5150
5219
|
protoOf(WirespecEmitter).ak = withLogging_5;
|
|
5151
5220
|
protoOf(WirespecEmitter).bk = withLogging_6;
|
|
5152
5221
|
protoOf(WirespecEmitter).dk = withLogging_7;
|
|
5153
|
-
protoOf(WsTypeDef).
|
|
5154
|
-
protoOf(WsEnumTypeDef).
|
|
5155
|
-
protoOf(WsRefinedTypeDef).
|
|
5156
|
-
protoOf(WhiteSpaceExceptNewLine).
|
|
5157
|
-
protoOf(NewLine).
|
|
5158
|
-
protoOf(LeftCurly).
|
|
5159
|
-
protoOf(Colon).
|
|
5160
|
-
protoOf(Comma).
|
|
5161
|
-
protoOf(QuestionMark).
|
|
5162
|
-
protoOf(Brackets).
|
|
5163
|
-
protoOf(WsString).
|
|
5164
|
-
protoOf(WsInteger).
|
|
5165
|
-
protoOf(WsBoolean).
|
|
5166
|
-
protoOf(RightCurly).
|
|
5167
|
-
protoOf(CustomValue).
|
|
5168
|
-
protoOf(CustomType).
|
|
5169
|
-
protoOf(CustomRegex).
|
|
5170
|
-
protoOf(Invalid).
|
|
5171
|
-
protoOf(EndOfProgram).
|
|
5222
|
+
protoOf(WsTypeDef).wl = name;
|
|
5223
|
+
protoOf(WsEnumTypeDef).wl = name;
|
|
5224
|
+
protoOf(WsRefinedTypeDef).wl = name;
|
|
5225
|
+
protoOf(WhiteSpaceExceptNewLine).wl = name;
|
|
5226
|
+
protoOf(NewLine).wl = name;
|
|
5227
|
+
protoOf(LeftCurly).wl = name;
|
|
5228
|
+
protoOf(Colon).wl = name;
|
|
5229
|
+
protoOf(Comma).wl = name;
|
|
5230
|
+
protoOf(QuestionMark).wl = name;
|
|
5231
|
+
protoOf(Brackets).wl = name;
|
|
5232
|
+
protoOf(WsString).wl = name;
|
|
5233
|
+
protoOf(WsInteger).wl = name;
|
|
5234
|
+
protoOf(WsBoolean).wl = name;
|
|
5235
|
+
protoOf(RightCurly).wl = name;
|
|
5236
|
+
protoOf(CustomValue).wl = name;
|
|
5237
|
+
protoOf(CustomType).wl = name;
|
|
5238
|
+
protoOf(CustomRegex).wl = name;
|
|
5239
|
+
protoOf(Invalid).wl = name;
|
|
5240
|
+
protoOf(EndOfProgram).wl = name;
|
|
5172
5241
|
//endregion
|
|
5173
5242
|
//region block: init
|
|
5174
5243
|
DEFAULT_PACKAGE_NAME = 'community.flock.wirespec.generated';
|
|
@@ -5188,21 +5257,23 @@
|
|
|
5188
5257
|
_.$_$.k = Literal;
|
|
5189
5258
|
_.$_$.l = Param;
|
|
5190
5259
|
_.$_$.m = Endpoint;
|
|
5191
|
-
_.$_$.n =
|
|
5192
|
-
_.$_$.o =
|
|
5193
|
-
_.$_$.p =
|
|
5194
|
-
_.$_$.q =
|
|
5195
|
-
_.$_$.r =
|
|
5196
|
-
_.$_$.s =
|
|
5197
|
-
_.$_$.t =
|
|
5198
|
-
_.$_$.u =
|
|
5199
|
-
_.$_$.v =
|
|
5200
|
-
_.$_$.w =
|
|
5201
|
-
_.$_$.x =
|
|
5202
|
-
_.$_$.y =
|
|
5203
|
-
_.$_$.z =
|
|
5204
|
-
_.$_$.a1 =
|
|
5205
|
-
_.$_$.b1 =
|
|
5260
|
+
_.$_$.n = Enum_0;
|
|
5261
|
+
_.$_$.o = Parser;
|
|
5262
|
+
_.$_$.p = Identifier;
|
|
5263
|
+
_.$_$.q = Any;
|
|
5264
|
+
_.$_$.r = Custom;
|
|
5265
|
+
_.$_$.s = Primitive;
|
|
5266
|
+
_.$_$.t = Field;
|
|
5267
|
+
_.$_$.u = Shape;
|
|
5268
|
+
_.$_$.v = Type_0;
|
|
5269
|
+
_.$_$.w = tokenize;
|
|
5270
|
+
_.$_$.x = compile;
|
|
5271
|
+
_.$_$.y = Logger;
|
|
5272
|
+
_.$_$.z = Type_Boolean_getInstance;
|
|
5273
|
+
_.$_$.a1 = Type_Integer_getInstance;
|
|
5274
|
+
_.$_$.b1 = Type_String_getInstance;
|
|
5275
|
+
_.$_$.c1 = Companion_getInstance_1;
|
|
5276
|
+
_.$_$.d1 = Wirespec_getInstance;
|
|
5206
5277
|
//endregion
|
|
5207
5278
|
return _;
|
|
5208
5279
|
}));
|