@flock/wirespec 0.9.0 → 0.9.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.
- package/arrow-arrow-atomic.js +4 -4
- package/arrow-arrow-continuations.js +3 -3
- package/arrow-arrow-core.js +15 -15
- package/clikt-clikt.js +1218 -1218
- package/colormath-root-colormath.js +388 -388
- package/kotlin-kotlin-stdlib.js +216 -190
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin-openapi-bindings.js +19 -19
- package/kotlin-rgxgen.js +1810 -1810
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js +67 -67
- package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js +57 -57
- package/markdown.js +1884 -1884
- package/mordant-mordant.js +1643 -1643
- package/package.json +1 -1
- package/wirespec-src-compiler-core.js +782 -666
- package/wirespec-src-compiler-core.js.map +1 -1
- package/wirespec-src-compiler-lib.js +303 -243
- package/wirespec-src-compiler-lib.js.map +1 -1
- package/wirespec-src-converter-openapi.js +329 -277
- package/wirespec-src-converter-openapi.js.map +1 -1
- package/wirespec-src-generator.js +37 -34
- package/wirespec-src-generator.js.map +1 -1
- package/wirespec-src-plugin-arguments.js +91 -91
- package/wirespec-src-plugin-cli.js +141 -141
- package/wirespec-src-plugin-npm.d.ts +10 -0
- package/wirespec-src-plugin-npm.js +3 -3
|
@@ -16,98 +16,100 @@
|
|
|
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.$_$.ia;
|
|
20
20
|
var Unit_getInstance = kotlin_kotlin.$_$.x3;
|
|
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.$_$.yd;
|
|
22
|
+
var protoOf = kotlin_kotlin.$_$.da;
|
|
23
|
+
var classMeta = kotlin_kotlin.$_$.y8;
|
|
24
|
+
var VOID = kotlin_kotlin.$_$.hf;
|
|
25
|
+
var setMetadataFor = kotlin_kotlin.$_$.ea;
|
|
26
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.df;
|
|
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.$_$.z;
|
|
30
|
-
var to = kotlin_kotlin.$_$.
|
|
30
|
+
var to = kotlin_kotlin.$_$.gf;
|
|
31
31
|
var listOf = kotlin_kotlin.$_$.t6;
|
|
32
|
-
var objectMeta = kotlin_kotlin.$_$.
|
|
33
|
-
var until = kotlin_kotlin.$_$.
|
|
34
|
-
var substring = kotlin_kotlin.$_$.
|
|
32
|
+
var objectMeta = kotlin_kotlin.$_$.ca;
|
|
33
|
+
var until = kotlin_kotlin.$_$.ua;
|
|
34
|
+
var substring = kotlin_kotlin.$_$.xc;
|
|
35
35
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.t1;
|
|
36
|
-
var endsWith = kotlin_kotlin.$_$.
|
|
37
|
-
var startsWith = kotlin_kotlin.$_$.
|
|
38
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
39
|
-
var charSequenceGet = kotlin_kotlin.$_$.
|
|
36
|
+
var endsWith = kotlin_kotlin.$_$.rb;
|
|
37
|
+
var startsWith = kotlin_kotlin.$_$.vc;
|
|
38
|
+
var charSequenceLength = kotlin_kotlin.$_$.w8;
|
|
39
|
+
var charSequenceGet = kotlin_kotlin.$_$.v8;
|
|
40
40
|
var toString_0 = kotlin_kotlin.$_$.x1;
|
|
41
|
-
var trimMargin = kotlin_kotlin.$_$.
|
|
42
|
-
var split = kotlin_kotlin.$_$.
|
|
41
|
+
var trimMargin = kotlin_kotlin.$_$.md;
|
|
42
|
+
var split = kotlin_kotlin.$_$.tc;
|
|
43
43
|
var collectionSizeOrDefault = kotlin_kotlin.$_$.w4;
|
|
44
44
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.j;
|
|
45
45
|
var checkIndexOverflow = kotlin_kotlin.$_$.v4;
|
|
46
46
|
var joinToString = kotlin_kotlin.$_$.f6;
|
|
47
|
-
var replace = kotlin_kotlin.$_$.
|
|
48
|
-
var first = kotlin_kotlin.$_$.
|
|
49
|
-
var isDigit = kotlin_kotlin.$_$.
|
|
50
|
-
var isBlank = kotlin_kotlin.$_$.
|
|
47
|
+
var replace = kotlin_kotlin.$_$.oc;
|
|
48
|
+
var first = kotlin_kotlin.$_$.vb;
|
|
49
|
+
var isDigit = kotlin_kotlin.$_$.zb;
|
|
50
|
+
var isBlank = kotlin_kotlin.$_$.yb;
|
|
51
51
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.k;
|
|
52
52
|
var addAll = kotlin_kotlin.$_$.o4;
|
|
53
|
-
var asSequence = kotlin_kotlin.$_$.
|
|
54
|
-
var filter = kotlin_kotlin.$_$.
|
|
55
|
-
var joinToString_0 = kotlin_kotlin.$_$.
|
|
56
|
-
var firstOrNull = kotlin_kotlin.$_$.
|
|
57
|
-
var Char = kotlin_kotlin.$_$.
|
|
53
|
+
var asSequence = kotlin_kotlin.$_$.ib;
|
|
54
|
+
var filter = kotlin_kotlin.$_$.ab;
|
|
55
|
+
var joinToString_0 = kotlin_kotlin.$_$.db;
|
|
56
|
+
var firstOrNull = kotlin_kotlin.$_$.ub;
|
|
57
|
+
var Char = kotlin_kotlin.$_$.sd;
|
|
58
58
|
var listOf_0 = kotlin_kotlin.$_$.s6;
|
|
59
|
-
var isLetterOrDigit = kotlin_kotlin.$_$.
|
|
60
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
61
|
-
var isCharSequence = kotlin_kotlin.$_$.
|
|
62
|
-
var trimStart = kotlin_kotlin.$_$.
|
|
63
|
-
var dropLast = kotlin_kotlin.$_$.
|
|
59
|
+
var isLetterOrDigit = kotlin_kotlin.$_$.bc;
|
|
60
|
+
var THROW_CCE = kotlin_kotlin.$_$.ie;
|
|
61
|
+
var isCharSequence = kotlin_kotlin.$_$.m9;
|
|
62
|
+
var trimStart = kotlin_kotlin.$_$.nd;
|
|
63
|
+
var dropLast = kotlin_kotlin.$_$.pb;
|
|
64
64
|
var plus = kotlin_kotlin.$_$.c7;
|
|
65
65
|
var plus_0 = kotlin_kotlin.$_$.d7;
|
|
66
66
|
var filterNotNull = kotlin_kotlin.$_$.s5;
|
|
67
|
-
var drop = kotlin_kotlin.$_$.
|
|
67
|
+
var drop = kotlin_kotlin.$_$.qb;
|
|
68
68
|
var toSet = kotlin_kotlin.$_$.a8;
|
|
69
69
|
var distinct = kotlin_kotlin.$_$.l5;
|
|
70
70
|
var firstOrNull_0 = kotlin_kotlin.$_$.t5;
|
|
71
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
71
|
+
var getStringHashCode = kotlin_kotlin.$_$.f9;
|
|
72
72
|
var Collection = kotlin_kotlin.$_$.b4;
|
|
73
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
74
|
-
var toIntOrNull = kotlin_kotlin.$_$.
|
|
75
|
-
var numberRangeToNumber = kotlin_kotlin.$_$.
|
|
76
|
-
var substringBefore = kotlin_kotlin.$_$.
|
|
73
|
+
var isInterface = kotlin_kotlin.$_$.q9;
|
|
74
|
+
var toIntOrNull = kotlin_kotlin.$_$.cd;
|
|
75
|
+
var numberRangeToNumber = kotlin_kotlin.$_$.x9;
|
|
76
|
+
var substringBefore = kotlin_kotlin.$_$.wc;
|
|
77
77
|
var emptyList = kotlin_kotlin.$_$.o5;
|
|
78
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
79
|
-
var equals = kotlin_kotlin.$_$.
|
|
78
|
+
var hashCode = kotlin_kotlin.$_$.g9;
|
|
79
|
+
var equals = kotlin_kotlin.$_$.b9;
|
|
80
80
|
var joinToString_1 = kotlin_kotlin.$_$.g6;
|
|
81
|
-
var Comparator = kotlin_kotlin.$_$.
|
|
82
|
-
var compareValues = kotlin_kotlin.$_$.
|
|
81
|
+
var Comparator = kotlin_kotlin.$_$.vd;
|
|
82
|
+
var compareValues = kotlin_kotlin.$_$.h8;
|
|
83
|
+
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.l1;
|
|
83
84
|
var sortedWith = kotlin_kotlin.$_$.l7;
|
|
84
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
85
|
-
var RuntimeException = kotlin_kotlin.$_$.
|
|
85
|
+
var captureStack = kotlin_kotlin.$_$.s8;
|
|
86
|
+
var RuntimeException = kotlin_kotlin.$_$.he;
|
|
86
87
|
var RuntimeException_init_$Init$ = kotlin_kotlin.$_$.q1;
|
|
87
88
|
var NonEmptyList = kotlin_io_arrow_kt_arrow_core.$_$.e;
|
|
88
89
|
var DefaultRaise = kotlin_io_arrow_kt_arrow_core.$_$.a;
|
|
89
90
|
var getKClass = kotlin_kotlin.$_$.e;
|
|
90
91
|
var nonFatalOrThrow = kotlin_io_arrow_kt_arrow_core.$_$.g;
|
|
91
92
|
var raisedOrRethrow = kotlin_io_arrow_kt_arrow_core.$_$.b;
|
|
92
|
-
var CancellationException = kotlin_kotlin.$_$.
|
|
93
|
+
var CancellationException = kotlin_kotlin.$_$.i8;
|
|
93
94
|
var toList = kotlin_kotlin.$_$.v7;
|
|
94
|
-
var THROW_ISE = kotlin_kotlin.$_$.
|
|
95
|
-
var enumEntries = kotlin_kotlin.$_$.
|
|
96
|
-
var interfaceMeta = kotlin_kotlin.$_$.
|
|
95
|
+
var THROW_ISE = kotlin_kotlin.$_$.je;
|
|
96
|
+
var enumEntries = kotlin_kotlin.$_$.l8;
|
|
97
|
+
var interfaceMeta = kotlin_kotlin.$_$.h9;
|
|
97
98
|
var nonEmptyListOf = kotlin_io_arrow_kt_arrow_core.$_$.f;
|
|
98
99
|
var Companion_getInstance = kotlin_kotlin.$_$.s3;
|
|
99
100
|
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.y1;
|
|
100
|
-
var createFailure = kotlin_kotlin.$_$.
|
|
101
|
+
var createFailure = kotlin_kotlin.$_$.we;
|
|
101
102
|
var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.c2;
|
|
102
|
-
var isObject = kotlin_kotlin.$_$.
|
|
103
|
+
var isObject = kotlin_kotlin.$_$.s9;
|
|
103
104
|
var _Result___get_isFailure__impl__jpiriv = kotlin_kotlin.$_$.a2;
|
|
104
|
-
var
|
|
105
|
+
var zipWithNext = kotlin_kotlin.$_$.f8;
|
|
105
106
|
var last = kotlin_kotlin.$_$.q6;
|
|
106
|
-
var removePrefix = kotlin_kotlin.$_$.
|
|
107
|
-
var Pair = kotlin_kotlin.$_$.
|
|
107
|
+
var removePrefix = kotlin_kotlin.$_$.kc;
|
|
108
|
+
var Pair = kotlin_kotlin.$_$.fe;
|
|
108
109
|
var toNonEmptyListOrNull = kotlin_io_arrow_kt_arrow_core.$_$.h;
|
|
109
110
|
var getKClassFromExpression = kotlin_kotlin.$_$.d;
|
|
110
|
-
var
|
|
111
|
+
var ensureNotNull = kotlin_kotlin.$_$.xe;
|
|
112
|
+
var println = kotlin_kotlin.$_$.m8;
|
|
111
113
|
//endregion
|
|
112
114
|
//region block: pre-declaration
|
|
113
115
|
setMetadataFor(Reported, 'Reported', classMeta, Enum);
|
|
@@ -161,6 +163,7 @@
|
|
|
161
163
|
setMetadataFor(NullTokenException, 'NullTokenException', classMeta, ParserException);
|
|
162
164
|
setMetadataFor(NextException, 'NextException', classMeta, NullTokenException);
|
|
163
165
|
setMetadataFor(WrongTokenException, 'WrongTokenException', classMeta, ParserException);
|
|
166
|
+
setMetadataFor(DefinitionNotExistsException, 'DefinitionNotExistsException', classMeta, ParserException);
|
|
164
167
|
setMetadataFor(AbstractParser, 'AbstractParser', classMeta);
|
|
165
168
|
setMetadataFor(EndpointParser, 'EndpointParser', classMeta, AbstractParser);
|
|
166
169
|
setMetadataFor(EnumParser, 'EnumParser', classMeta, AbstractParser);
|
|
@@ -1573,7 +1576,7 @@
|
|
|
1573
1576
|
tmp = 'Any';
|
|
1574
1577
|
} else {
|
|
1575
1578
|
if (_this__u8e3s4 instanceof Custom_0) {
|
|
1576
|
-
tmp = _this__u8e3s4.
|
|
1579
|
+
tmp = _this__u8e3s4.p2();
|
|
1577
1580
|
} else {
|
|
1578
1581
|
if (_this__u8e3s4 instanceof Primitive_0) {
|
|
1579
1582
|
var tmp_0;
|
|
@@ -1618,16 +1621,16 @@
|
|
|
1618
1621
|
Companion_getInstance_4();
|
|
1619
1622
|
var tmp_0 = this.z1s(_this__u8e3s4);
|
|
1620
1623
|
var tmp_1 = this.z1s(_this__u8e3s4);
|
|
1621
|
-
var tmp_2 = this.
|
|
1624
|
+
var tmp_2 = this.p1y(_this__u8e3s4.o1y_1);
|
|
1622
1625
|
Companion_getInstance_4();
|
|
1623
1626
|
return trimMargin('case class ' + tmp + '(val value: String) {\n |' + ' ' + 'implicit class ' + tmp_0 + 'Ops(val that: ' + tmp_1 + ') {\n |' + tmp_2 + '\n |' + ' ' + '}\n |}\n |\n |');
|
|
1624
1627
|
};
|
|
1625
|
-
protoOf(ScalaEmitter).
|
|
1628
|
+
protoOf(ScalaEmitter).p1y = function (_this__u8e3s4) {
|
|
1626
1629
|
Companion_getInstance_4();
|
|
1627
1630
|
Companion_getInstance_4();
|
|
1628
1631
|
Companion_getInstance_4();
|
|
1629
1632
|
Companion_getInstance_4();
|
|
1630
|
-
return trimMargin(' ' + ' ' + 'val regex = new scala.util.matching.Regex(""' + _this__u8e3s4.
|
|
1633
|
+
return trimMargin(' ' + ' ' + 'val regex = new scala.util.matching.Regex(""' + _this__u8e3s4.q1y_1 + '"")\n |' + ' ' + ' ' + 'regex.findFirstIn(that.value)');
|
|
1631
1634
|
};
|
|
1632
1635
|
protoOf(ScalaEmitter).z1t = function (_this__u8e3s4) {
|
|
1633
1636
|
return '// TODO("Not yet implemented")\n';
|
|
@@ -1644,7 +1647,7 @@
|
|
|
1644
1647
|
tmp = 'any';
|
|
1645
1648
|
} else {
|
|
1646
1649
|
if (_this__u8e3s4 instanceof Custom_0) {
|
|
1647
|
-
tmp = sanitizeSymbol_1(_this__u8e3s4.
|
|
1650
|
+
tmp = sanitizeSymbol_1(_this__u8e3s4.p2(), $this);
|
|
1648
1651
|
} else {
|
|
1649
1652
|
if (_this__u8e3s4 instanceof Primitive_0) {
|
|
1650
1653
|
var tmp_0;
|
|
@@ -1680,10 +1683,10 @@
|
|
|
1680
1683
|
function emitType_0(_this__u8e3s4, $this) {
|
|
1681
1684
|
var tmp;
|
|
1682
1685
|
if (_this__u8e3s4 instanceof Literal_0) {
|
|
1683
|
-
tmp = _this__u8e3s4.
|
|
1686
|
+
tmp = _this__u8e3s4.w1y_1;
|
|
1684
1687
|
} else {
|
|
1685
1688
|
if (_this__u8e3s4 instanceof Param) {
|
|
1686
|
-
tmp = '${' + $this.i1y(_this__u8e3s4.
|
|
1689
|
+
tmp = '${' + $this.i1y(_this__u8e3s4.s1y_1) + '}';
|
|
1687
1690
|
} else {
|
|
1688
1691
|
noWhenBranchMatchedException();
|
|
1689
1692
|
}
|
|
@@ -1691,14 +1694,14 @@
|
|
|
1691
1694
|
return tmp;
|
|
1692
1695
|
}
|
|
1693
1696
|
function emitName(_this__u8e3s4, $this) {
|
|
1694
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1695
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : $this.
|
|
1697
|
+
var tmp0_safe_receiver = _this__u8e3s4.x1y_1;
|
|
1698
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : $this.y1y(tmp0_safe_receiver);
|
|
1696
1699
|
return 'Request' + (tmp1_elvis_lhs == null ? 'Undefined' : tmp1_elvis_lhs);
|
|
1697
1700
|
}
|
|
1698
1701
|
function emitName_0(_this__u8e3s4, $this) {
|
|
1699
|
-
var tmp = 'Response' + Companion_getInstance_4().n1s(_this__u8e3s4.
|
|
1700
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1701
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : $this.
|
|
1702
|
+
var tmp = 'Response' + Companion_getInstance_4().n1s(_this__u8e3s4.z1y_1);
|
|
1703
|
+
var tmp0_safe_receiver = _this__u8e3s4.b1z_1;
|
|
1704
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : $this.y1y(tmp0_safe_receiver);
|
|
1702
1705
|
return tmp + (tmp1_elvis_lhs == null ? 'Undefined' : tmp1_elvis_lhs);
|
|
1703
1706
|
}
|
|
1704
1707
|
function emitMap(_this__u8e3s4, $this) {
|
|
@@ -1710,10 +1713,10 @@
|
|
|
1710
1713
|
function emit(_this__u8e3s4, $this) {
|
|
1711
1714
|
var tmp;
|
|
1712
1715
|
if (_this__u8e3s4 instanceof Literal_0) {
|
|
1713
|
-
tmp = _this__u8e3s4.
|
|
1716
|
+
tmp = _this__u8e3s4.w1y_1;
|
|
1714
1717
|
} else {
|
|
1715
1718
|
if (_this__u8e3s4 instanceof Param) {
|
|
1716
|
-
tmp = '${props.' + Companion_getInstance_4().o1s(sanitizeSymbol_1(_this__u8e3s4.
|
|
1719
|
+
tmp = '${props.' + Companion_getInstance_4().o1s(sanitizeSymbol_1(_this__u8e3s4.r1y_1.j1y_1, $this)) + '}';
|
|
1717
1720
|
} else {
|
|
1718
1721
|
noWhenBranchMatchedException();
|
|
1719
1722
|
}
|
|
@@ -1723,7 +1726,7 @@
|
|
|
1723
1726
|
function joinParameters(_this__u8e3s4, $this, content, response) {
|
|
1724
1727
|
// Inline function 'kotlin.collections.map' call
|
|
1725
1728
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
1726
|
-
var tmp0_filterIsInstance = _this__u8e3s4.
|
|
1729
|
+
var tmp0_filterIsInstance = _this__u8e3s4.e1z_1;
|
|
1727
1730
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
1728
1731
|
var tmp0_filterIsInstanceTo = ArrayList_init_$Create$_0();
|
|
1729
1732
|
var tmp0_iterator = tmp0_filterIsInstance.v();
|
|
@@ -1740,14 +1743,14 @@
|
|
|
1740
1743
|
var item = tmp0_iterator_0.y();
|
|
1741
1744
|
var tmp$ret$2;
|
|
1742
1745
|
// Inline function 'community.flock.wirespec.compiler.core.emit.TypeScriptEmitter.joinParameters.<anonymous>' call
|
|
1743
|
-
tmp$ret$2 = new Field_0(item.
|
|
1746
|
+
tmp$ret$2 = new Field_0(item.r1y_1, item.s1y_1, false);
|
|
1744
1747
|
tmp0_mapTo.s(tmp$ret$2);
|
|
1745
1748
|
}
|
|
1746
1749
|
var pathField = tmp0_mapTo;
|
|
1747
|
-
var tmp1_elvis_lhs = response == null ? null : response.
|
|
1748
|
-
var parameters = tmp1_elvis_lhs == null ? plus(plus(plus(pathField, _this__u8e3s4.
|
|
1750
|
+
var tmp1_elvis_lhs = response == null ? null : response.a1z_1;
|
|
1751
|
+
var parameters = tmp1_elvis_lhs == null ? plus(plus(plus(pathField, _this__u8e3s4.f1z_1), _this__u8e3s4.g1z_1), _this__u8e3s4.h1z_1) : tmp1_elvis_lhs;
|
|
1749
1752
|
// Inline function 'kotlin.collections.map' call
|
|
1750
|
-
var tmp3_safe_receiver = content == null ? null : content.
|
|
1753
|
+
var tmp3_safe_receiver = content == null ? null : content.l1z_1;
|
|
1751
1754
|
var tmp2_map = filterNotNull(plus_0(parameters, tmp3_safe_receiver == null ? null : toField(tmp3_safe_receiver, $this, 'body', false)));
|
|
1752
1755
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1753
1756
|
var tmp0_mapTo_0 = ArrayList_init_$Create$(collectionSizeOrDefault(tmp2_map, 10));
|
|
@@ -1756,7 +1759,7 @@
|
|
|
1756
1759
|
var item_0 = tmp0_iterator_1.y();
|
|
1757
1760
|
var tmp$ret$5;
|
|
1758
1761
|
// Inline function 'community.flock.wirespec.compiler.core.emit.TypeScriptEmitter.joinParameters.<anonymous>' call
|
|
1759
|
-
tmp$ret$5 = item_0.
|
|
1762
|
+
tmp$ret$5 = item_0.o1z(Companion_getInstance_6().n1z(Companion_getInstance_4().o1s(sanitizeSymbol_1(item_0.e1y_1.j1y_1, $this))));
|
|
1760
1763
|
tmp0_mapTo_0.s(tmp$ret$5);
|
|
1761
1764
|
}
|
|
1762
1765
|
return tmp0_mapTo_0;
|
|
@@ -1766,7 +1769,7 @@
|
|
|
1766
1769
|
return joinToString_0(filter(tmp, TypeScriptEmitter$sanitizeSymbol$lambda), '');
|
|
1767
1770
|
}
|
|
1768
1771
|
function toField(_this__u8e3s4, $this, identifier, isNullable) {
|
|
1769
|
-
return new Field_0(Companion_getInstance_6().
|
|
1772
|
+
return new Field_0(Companion_getInstance_6().n1z(identifier), _this__u8e3s4, isNullable);
|
|
1770
1773
|
}
|
|
1771
1774
|
function TypeScriptEmitter$emit$lambda(it) {
|
|
1772
1775
|
return '"' + it + '"';
|
|
@@ -1779,10 +1782,10 @@
|
|
|
1779
1782
|
function TypeScriptEmitter$emit$lambda_1(it) {
|
|
1780
1783
|
var tmp;
|
|
1781
1784
|
if (it instanceof Literal_0) {
|
|
1782
|
-
tmp = it.
|
|
1785
|
+
tmp = it.w1y_1;
|
|
1783
1786
|
} else {
|
|
1784
1787
|
if (it instanceof Param) {
|
|
1785
|
-
tmp = ':' + it.
|
|
1788
|
+
tmp = ':' + it.r1y_1.j1y_1;
|
|
1786
1789
|
} else {
|
|
1787
1790
|
noWhenBranchMatchedException();
|
|
1788
1791
|
}
|
|
@@ -1798,11 +1801,11 @@
|
|
|
1798
1801
|
return function (it) {
|
|
1799
1802
|
Companion_getInstance_4();
|
|
1800
1803
|
var tmp = emitName(it, this$0);
|
|
1801
|
-
var tmp_0 = emitType($this_emit.
|
|
1802
|
-
var tmp_1 = joinToString($this_emit.
|
|
1804
|
+
var tmp_0 = emitType($this_emit.e1z_1, this$0);
|
|
1805
|
+
var tmp_1 = joinToString($this_emit.g1z_1, ',', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda$lambda(this$0));
|
|
1803
1806
|
var tmp$ret$2;
|
|
1804
1807
|
// Inline function 'kotlin.collections.map' call
|
|
1805
|
-
var tmp0_map = $this_emit.
|
|
1808
|
+
var tmp0_map = $this_emit.f1z_1;
|
|
1806
1809
|
var tmp$ret$1;
|
|
1807
1810
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1808
1811
|
var tmp0_mapTo = ArrayList_init_$Create$(collectionSizeOrDefault(tmp0_map, 10));
|
|
@@ -1817,7 +1820,7 @@
|
|
|
1817
1820
|
tmp$ret$1 = tmp0_mapTo;
|
|
1818
1821
|
tmp$ret$2 = tmp$ret$1;
|
|
1819
1822
|
var tmp_2 = joinToString(tmp$ret$2, ',');
|
|
1820
|
-
var tmp0_safe_receiver = it.
|
|
1823
|
+
var tmp0_safe_receiver = it.x1y_1;
|
|
1821
1824
|
var tmp_3;
|
|
1822
1825
|
if (tmp0_safe_receiver == null) {
|
|
1823
1826
|
tmp_3 = null;
|
|
@@ -1827,12 +1830,12 @@
|
|
|
1827
1830
|
// Inline function 'kotlin.contracts.contract' call
|
|
1828
1831
|
var tmp$ret$3;
|
|
1829
1832
|
// Inline function 'community.flock.wirespec.compiler.core.emit.TypeScriptEmitter.emit.<anonymous>.<anonymous>' call
|
|
1830
|
-
tmp$ret$3 = ', content: { type: "' + tmp0_safe_receiver.
|
|
1833
|
+
tmp$ret$3 = ', content: { type: "' + tmp0_safe_receiver.k1z_1 + '", body: ' + this$0.i1y(tmp0_safe_receiver.l1z_1) + ' }';
|
|
1831
1834
|
tmp$ret$4 = tmp$ret$3;
|
|
1832
1835
|
tmp_3 = tmp$ret$4;
|
|
1833
1836
|
}
|
|
1834
1837
|
var tmp1_elvis_lhs = tmp_3;
|
|
1835
|
-
return ' ' + 'type ' + tmp + ' = { path: ' + tmp_0 + ', method: "' + $this_emit.
|
|
1838
|
+
return ' ' + 'type ' + tmp + ' = { path: ' + tmp_0 + ', method: "' + $this_emit.d1z_1 + '", headers: {' + tmp_1 + '}, query: {' + tmp_2 + '}' + (tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs) + ' } ';
|
|
1836
1839
|
};
|
|
1837
1840
|
}
|
|
1838
1841
|
function TypeScriptEmitter$emit$lambda_3(this$0) {
|
|
@@ -1844,8 +1847,8 @@
|
|
|
1844
1847
|
return function (it) {
|
|
1845
1848
|
Companion_getInstance_4();
|
|
1846
1849
|
var tmp = emitName_0(it, this$0);
|
|
1847
|
-
var tmp_0 = Companion_getInstance_4().h1w(it.
|
|
1848
|
-
var tmp0_safe_receiver = it.
|
|
1850
|
+
var tmp_0 = Companion_getInstance_4().h1w(it.z1y_1) ? it.z1y_1 : 'string';
|
|
1851
|
+
var tmp0_safe_receiver = it.b1z_1;
|
|
1849
1852
|
var tmp_1;
|
|
1850
1853
|
if (tmp0_safe_receiver == null) {
|
|
1851
1854
|
tmp_1 = null;
|
|
@@ -1855,7 +1858,7 @@
|
|
|
1855
1858
|
// Inline function 'kotlin.contracts.contract' call
|
|
1856
1859
|
var tmp$ret$0;
|
|
1857
1860
|
// Inline function 'community.flock.wirespec.compiler.core.emit.TypeScriptEmitter.emit.<anonymous>.<anonymous>' call
|
|
1858
|
-
tmp$ret$0 = ', content: { type: "' + tmp0_safe_receiver.
|
|
1861
|
+
tmp$ret$0 = ', content: { type: "' + tmp0_safe_receiver.k1z_1 + '", body: ' + this$0.i1y(tmp0_safe_receiver.l1z_1) + ' }';
|
|
1859
1862
|
tmp$ret$1 = tmp$ret$0;
|
|
1860
1863
|
tmp_1 = tmp$ret$1;
|
|
1861
1864
|
}
|
|
@@ -1881,7 +1884,7 @@
|
|
|
1881
1884
|
// Inline function 'kotlin.text.orEmpty' call
|
|
1882
1885
|
var tmp$ret$2;
|
|
1883
1886
|
// Inline function 'kotlin.takeIf' call
|
|
1884
|
-
var tmp0_takeIf = joinParameters($this_emit, this$0, it.
|
|
1887
|
+
var tmp0_takeIf = joinParameters($this_emit, this$0, it.x1y_1, null);
|
|
1885
1888
|
// Inline function 'kotlin.contracts.contract' call
|
|
1886
1889
|
var tmp_0;
|
|
1887
1890
|
var tmp$ret$1;
|
|
@@ -1907,10 +1910,10 @@
|
|
|
1907
1910
|
var tmp0_elvis_lhs = tmp1_orEmpty;
|
|
1908
1911
|
tmp$ret$3 = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs;
|
|
1909
1912
|
var tmp_2 = tmp$ret$3;
|
|
1910
|
-
var tmp_3 = emitPath($this_emit.
|
|
1911
|
-
var tmp_4 = emitMap($this_emit.
|
|
1912
|
-
var tmp_5 = emitMap($this_emit.
|
|
1913
|
-
var tmp1_safe_receiver = it.
|
|
1913
|
+
var tmp_3 = emitPath($this_emit.e1z_1, this$0);
|
|
1914
|
+
var tmp_4 = emitMap($this_emit.f1z_1, this$0);
|
|
1915
|
+
var tmp_5 = emitMap($this_emit.g1z_1, this$0);
|
|
1916
|
+
var tmp1_safe_receiver = it.x1y_1;
|
|
1914
1917
|
var tmp_6;
|
|
1915
1918
|
if (tmp1_safe_receiver == null) {
|
|
1916
1919
|
tmp_6 = null;
|
|
@@ -1920,12 +1923,12 @@
|
|
|
1920
1923
|
// Inline function 'kotlin.contracts.contract' call
|
|
1921
1924
|
var tmp$ret$4;
|
|
1922
1925
|
// Inline function 'community.flock.wirespec.compiler.core.emit.TypeScriptEmitter.emit.<anonymous>.<anonymous>' call
|
|
1923
|
-
tmp$ret$4 = ', content: {type: "' + tmp1_safe_receiver.
|
|
1926
|
+
tmp$ret$4 = ', content: {type: "' + tmp1_safe_receiver.k1z_1 + '", body: props.body}';
|
|
1924
1927
|
tmp$ret$5 = tmp$ret$4;
|
|
1925
1928
|
tmp_6 = tmp$ret$5;
|
|
1926
1929
|
}
|
|
1927
1930
|
var tmp2_elvis_lhs = tmp_6;
|
|
1928
|
-
return ' ' + 'export const ' + tmp + ' = (' + tmp_2 + ') => ({path: `' + tmp_3 + '`, method: "' + $this_emit.
|
|
1931
|
+
return ' ' + 'export const ' + tmp + ' = (' + tmp_2 + ') => ({path: `' + tmp_3 + '`, method: "' + $this_emit.d1z_1.b9_1 + '", query: {' + tmp_4 + '}, headers: {' + tmp_5 + '}' + (tmp2_elvis_lhs == null ? '' : tmp2_elvis_lhs) + '} as const)';
|
|
1929
1932
|
};
|
|
1930
1933
|
}
|
|
1931
1934
|
function TypeScriptEmitter$emit$lambda$lambda_1(this$0) {
|
|
@@ -1941,7 +1944,7 @@
|
|
|
1941
1944
|
// Inline function 'kotlin.text.orEmpty' call
|
|
1942
1945
|
var tmp$ret$2;
|
|
1943
1946
|
// Inline function 'kotlin.takeIf' call
|
|
1944
|
-
var tmp0_takeIf = joinParameters($this_emit, this$0, it.
|
|
1947
|
+
var tmp0_takeIf = joinParameters($this_emit, this$0, it.b1z_1, it);
|
|
1945
1948
|
// Inline function 'kotlin.contracts.contract' call
|
|
1946
1949
|
var tmp_0;
|
|
1947
1950
|
var tmp$ret$1;
|
|
@@ -1967,9 +1970,9 @@
|
|
|
1967
1970
|
var tmp0_elvis_lhs = tmp1_orEmpty;
|
|
1968
1971
|
tmp$ret$3 = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs;
|
|
1969
1972
|
var tmp_2 = tmp$ret$3;
|
|
1970
|
-
var tmp_3 = Companion_getInstance_4().h1w(it.
|
|
1971
|
-
var tmp_4 = emitMap(it.
|
|
1972
|
-
var tmp1_safe_receiver = it.
|
|
1973
|
+
var tmp_3 = Companion_getInstance_4().h1w(it.z1y_1) ? it.z1y_1 : '`' + it.z1y_1 + '`';
|
|
1974
|
+
var tmp_4 = emitMap(it.a1z_1, this$0);
|
|
1975
|
+
var tmp1_safe_receiver = it.b1z_1;
|
|
1973
1976
|
var tmp_5;
|
|
1974
1977
|
if (tmp1_safe_receiver == null) {
|
|
1975
1978
|
tmp_5 = null;
|
|
@@ -1979,7 +1982,7 @@
|
|
|
1979
1982
|
// Inline function 'kotlin.contracts.contract' call
|
|
1980
1983
|
var tmp$ret$4;
|
|
1981
1984
|
// Inline function 'community.flock.wirespec.compiler.core.emit.TypeScriptEmitter.emit.<anonymous>.<anonymous>' call
|
|
1982
|
-
tmp$ret$4 = ', content: {type: "' + tmp1_safe_receiver.
|
|
1985
|
+
tmp$ret$4 = ', content: {type: "' + tmp1_safe_receiver.k1z_1 + '", body: props.body}';
|
|
1983
1986
|
tmp$ret$5 = tmp$ret$4;
|
|
1984
1987
|
tmp_5 = tmp$ret$5;
|
|
1985
1988
|
}
|
|
@@ -1987,8 +1990,10 @@
|
|
|
1987
1990
|
return ' ' + 'export const ' + tmp + ' = (' + tmp_2 + ') => ({status: ' + tmp_3 + ', headers: {' + tmp_4 + '}' + (tmp2_elvis_lhs == null ? '' : tmp2_elvis_lhs) + '} as const)';
|
|
1988
1991
|
};
|
|
1989
1992
|
}
|
|
1990
|
-
function TypeScriptEmitter$emit$lambda_8(
|
|
1991
|
-
return it
|
|
1993
|
+
function TypeScriptEmitter$emit$lambda_8(this$0) {
|
|
1994
|
+
return function (it) {
|
|
1995
|
+
return this$0.i1y(it);
|
|
1996
|
+
};
|
|
1992
1997
|
}
|
|
1993
1998
|
function TypeScriptEmitter$emitType$lambda(this$0) {
|
|
1994
1999
|
return function (it) {
|
|
@@ -2016,7 +2021,7 @@
|
|
|
2016
2021
|
Companion_getInstance_4();
|
|
2017
2022
|
Companion_getInstance_4();
|
|
2018
2023
|
Companion_getInstance_4();
|
|
2019
|
-
tmp.
|
|
2024
|
+
tmp.v1y_1 = trimMargin('\n |export module Wirespec {\n |' + ' ' + 'export type Method = "GET" | "PUT" | "POST" | "DELETE" | "OPTIONS" | "HEAD" | "PATCH" | "TRACE"\n |' + ' ' + 'export type Content<T> = { type:string, body:T }\n |' + ' ' + 'export type Request<T> = { path:string, method: Method, query?: Record<string, any[]>, headers?: Record<string, any[]>, content?:Content<T> }\n |' + ' ' + 'export type Response<T> = { status:number, headers?: Record<string, any[]>, content?:Content<T> }\n |}\n ');
|
|
2020
2025
|
}
|
|
2021
2026
|
protoOf(TypeScriptEmitter).z1s = function (_this__u8e3s4) {
|
|
2022
2027
|
var tmp;
|
|
@@ -2056,7 +2061,7 @@
|
|
|
2056
2061
|
var tmp = sanitizeSymbol_1(item.a1t_1, this);
|
|
2057
2062
|
var tmp$ret$0;
|
|
2058
2063
|
// Inline function 'kotlin.text.trimStart' call
|
|
2059
|
-
var tmp0_trimStart = trimMargin('\n |' + (Companion_getInstance_4().a1s(ast) ? this.
|
|
2064
|
+
var tmp0_trimStart = trimMargin('\n |' + (Companion_getInstance_4().a1s(ast) ? this.v1y_1 : '') + '\n |' + item.b1t_1 + '\n ');
|
|
2060
2065
|
tmp$ret$0 = toString(trimStart(isCharSequence(tmp0_trimStart) ? tmp0_trimStart : THROW_CCE()));
|
|
2061
2066
|
tmp$ret$1 = new Emitted(tmp, tmp$ret$0);
|
|
2062
2067
|
tmp0_mapTo.s(tmp$ret$1);
|
|
@@ -2089,28 +2094,28 @@
|
|
|
2089
2094
|
var tmp1_let = _this__u8e3s4.g1s() ? tmp0_let + '[]' : tmp0_let;
|
|
2090
2095
|
// Inline function 'kotlin.contracts.contract' call
|
|
2091
2096
|
// Inline function 'community.flock.wirespec.compiler.core.emit.TypeScriptEmitter.emit.<anonymous>' call
|
|
2092
|
-
return _this__u8e3s4.
|
|
2097
|
+
return _this__u8e3s4.p1z() ? 'Record<string, ' + tmp1_let + '>' : tmp1_let;
|
|
2093
2098
|
};
|
|
2094
2099
|
protoOf(TypeScriptEmitter).j1t = function (_this__u8e3s4) {
|
|
2095
|
-
var tmp = sanitizeSymbol_1(_this__u8e3s4.
|
|
2096
|
-
var tmp_0 = this.
|
|
2097
|
-
var tmp_1 = sanitizeSymbol_1(_this__u8e3s4.
|
|
2100
|
+
var tmp = sanitizeSymbol_1(_this__u8e3s4.n1y_1, this);
|
|
2101
|
+
var tmp_0 = this.p1y(_this__u8e3s4.o1y_1);
|
|
2102
|
+
var tmp_1 = sanitizeSymbol_1(_this__u8e3s4.n1y_1, this);
|
|
2098
2103
|
Companion_getInstance_4();
|
|
2099
|
-
return trimMargin('export type ' + tmp + ' = string;\n |const regExp' + _this__u8e3s4.
|
|
2104
|
+
return trimMargin('export type ' + tmp + ' = string;\n |const regExp' + _this__u8e3s4.n1y_1 + ' = ' + tmp_0 + ';\n |export const validate' + _this__u8e3s4.n1y_1 + ' = (value: string): value is ' + tmp_1 + ' => \n |' + ' ' + 'regExp' + _this__u8e3s4.n1y_1 + '.test(value);\n |');
|
|
2100
2105
|
};
|
|
2101
|
-
protoOf(TypeScriptEmitter).
|
|
2102
|
-
return '/' + dropLast(drop(_this__u8e3s4.
|
|
2106
|
+
protoOf(TypeScriptEmitter).p1y = function (_this__u8e3s4) {
|
|
2107
|
+
return '/' + dropLast(drop(_this__u8e3s4.q1y_1, 1), 1) + '/g';
|
|
2103
2108
|
};
|
|
2104
2109
|
protoOf(TypeScriptEmitter).z1t = function (_this__u8e3s4) {
|
|
2105
|
-
var tmp = sanitizeSymbol_1(_this__u8e3s4.
|
|
2110
|
+
var tmp = sanitizeSymbol_1(_this__u8e3s4.c1z_1, this);
|
|
2106
2111
|
Companion_getInstance_4();
|
|
2107
|
-
var tmp_0 = joinToString(_this__u8e3s4.
|
|
2112
|
+
var tmp_0 = joinToString(_this__u8e3s4.e1z_1, '/', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda_1);
|
|
2108
2113
|
Companion_getInstance_4();
|
|
2109
|
-
var tmp_1 = toSet(_this__u8e3s4.
|
|
2114
|
+
var tmp_1 = toSet(_this__u8e3s4.i1z_1);
|
|
2110
2115
|
var tmp_2 = joinToString(tmp_1, '\n', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda_2(this, _this__u8e3s4));
|
|
2111
2116
|
Companion_getInstance_4();
|
|
2112
2117
|
// Inline function 'kotlin.text.ifEmpty' call
|
|
2113
|
-
var tmp_3 = toSet(_this__u8e3s4.
|
|
2118
|
+
var tmp_3 = toSet(_this__u8e3s4.i1z_1);
|
|
2114
2119
|
var tmp0_ifEmpty = joinToString(tmp_3, ' | ', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda_3(this));
|
|
2115
2120
|
var tmp_4;
|
|
2116
2121
|
// Inline function 'kotlin.text.isEmpty' call
|
|
@@ -2121,11 +2126,11 @@
|
|
|
2121
2126
|
tmp_4 = tmp0_ifEmpty;
|
|
2122
2127
|
}
|
|
2123
2128
|
var tmp_5 = tmp_4;
|
|
2124
|
-
var tmp_6 = toSet(_this__u8e3s4.
|
|
2129
|
+
var tmp_6 = toSet(_this__u8e3s4.j1z_1);
|
|
2125
2130
|
var tmp_7 = joinToString(tmp_6, '\n', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda_4(this));
|
|
2126
2131
|
Companion_getInstance_4();
|
|
2127
2132
|
// Inline function 'kotlin.text.ifEmpty' call
|
|
2128
|
-
var tmp_8 = toSet(_this__u8e3s4.
|
|
2133
|
+
var tmp_8 = toSet(_this__u8e3s4.j1z_1);
|
|
2129
2134
|
var tmp1_ifEmpty = joinToString(tmp_8, ' | ', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda_5(this));
|
|
2130
2135
|
var tmp_9;
|
|
2131
2136
|
// Inline function 'kotlin.text.isEmpty' call
|
|
@@ -2140,16 +2145,16 @@
|
|
|
2140
2145
|
Companion_getInstance_4();
|
|
2141
2146
|
Companion_getInstance_4();
|
|
2142
2147
|
Companion_getInstance_4();
|
|
2143
|
-
var tmp_11 = Companion_getInstance_4().o1s(sanitizeSymbol_1(_this__u8e3s4.
|
|
2148
|
+
var tmp_11 = Companion_getInstance_4().o1s(sanitizeSymbol_1(_this__u8e3s4.c1z_1, this));
|
|
2144
2149
|
Companion_getInstance_4();
|
|
2145
|
-
var tmp_12 = distinct(_this__u8e3s4.
|
|
2150
|
+
var tmp_12 = distinct(_this__u8e3s4.i1z_1);
|
|
2146
2151
|
var tmp_13 = joinToString(tmp_12, '\n', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda_6(this, _this__u8e3s4));
|
|
2147
|
-
var tmp_14 = distinct(_this__u8e3s4.
|
|
2148
|
-
return trimMargin('\n |export module ' + tmp + ' {\n |' + ' ' + 'export const PATH = "/' + tmp_0 + '"\n |' + ' ' + 'export const METHOD = "' + _this__u8e3s4.
|
|
2152
|
+
var tmp_14 = distinct(_this__u8e3s4.j1z_1);
|
|
2153
|
+
return trimMargin('\n |export module ' + tmp + ' {\n |' + ' ' + 'export const PATH = "/' + tmp_0 + '"\n |' + ' ' + 'export const METHOD = "' + _this__u8e3s4.d1z_1.b9_1 + '"\n |' + tmp_2 + '\n |' + ' ' + 'export type Request = ' + tmp_5 + '\n |' + tmp_7 + '\n |' + ' ' + 'export type Response = ' + tmp_10 + '\n |' + ' ' + 'export type Handler = (request:Request) => Promise<Response>\n |' + ' ' + 'export type Call = {\n |' + ' ' + ' ' + tmp_11 + ': Handler\n |' + ' ' + '}\n |' + tmp_13 + '\n |' + joinToString(tmp_14, '\n', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda_7(this, _this__u8e3s4)) + '\n |}\n |\n ');
|
|
2149
2154
|
};
|
|
2150
2155
|
protoOf(TypeScriptEmitter).v1t = function (_this__u8e3s4) {
|
|
2151
|
-
var tmp = sanitizeSymbol_1(_this__u8e3s4.
|
|
2152
|
-
return 'export type ' + tmp + ' = ' + joinToString(_this__u8e3s4.
|
|
2156
|
+
var tmp = sanitizeSymbol_1(_this__u8e3s4.q1z_1, this);
|
|
2157
|
+
return 'export type ' + tmp + ' = ' + joinToString(_this__u8e3s4.r1z_1, ' | ', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda_8(this)) + '\n';
|
|
2153
2158
|
};
|
|
2154
2159
|
function fixStatus(_this__u8e3s4, $this) {
|
|
2155
2160
|
return _this__u8e3s4 === 'default' ? '200' : _this__u8e3s4;
|
|
@@ -2160,8 +2165,8 @@
|
|
|
2160
2165
|
function emitRequest(_this__u8e3s4, $this) {
|
|
2161
2166
|
// Inline function 'kotlin.text.orEmpty' call
|
|
2162
2167
|
var tmp0_safe_receiver = firstOrNull_0(_this__u8e3s4);
|
|
2163
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2164
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
2168
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.x1y_1;
|
|
2169
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.l1z_1;
|
|
2165
2170
|
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : $this.i1y(tmp2_safe_receiver);
|
|
2166
2171
|
var tmp;
|
|
2167
2172
|
if (tmp3_safe_receiver == null) {
|
|
@@ -2230,7 +2235,7 @@
|
|
|
2230
2235
|
}
|
|
2231
2236
|
function Companion_2() {
|
|
2232
2237
|
Companion_instance_2 = this;
|
|
2233
|
-
this.
|
|
2238
|
+
this.u1z_1 = listOf(['type', 'enum', 'endpoint']);
|
|
2234
2239
|
}
|
|
2235
2240
|
var Companion_instance_2;
|
|
2236
2241
|
function Companion_getInstance_3() {
|
|
@@ -2252,14 +2257,14 @@
|
|
|
2252
2257
|
function WirespecEmitter$emit$lambda_1(this$0) {
|
|
2253
2258
|
return function (it) {
|
|
2254
2259
|
Companion_getInstance_4();
|
|
2255
|
-
var tmp = fixStatus(it.
|
|
2256
|
-
var tmp0_safe_receiver = it.
|
|
2257
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2260
|
+
var tmp = fixStatus(it.z1y_1, this$0);
|
|
2261
|
+
var tmp0_safe_receiver = it.b1z_1;
|
|
2262
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.l1z_1;
|
|
2258
2263
|
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : this$0.i1y(tmp1_safe_receiver);
|
|
2259
2264
|
var tmp_0 = tmp2_elvis_lhs == null ? 'Unit' : tmp2_elvis_lhs;
|
|
2260
2265
|
var tmp_1;
|
|
2261
|
-
var tmp3_safe_receiver = it.
|
|
2262
|
-
if ((tmp3_safe_receiver == null ? null : tmp3_safe_receiver.
|
|
2266
|
+
var tmp3_safe_receiver = it.b1z_1;
|
|
2267
|
+
if ((tmp3_safe_receiver == null ? null : tmp3_safe_receiver.m1z_1) === true) {
|
|
2263
2268
|
tmp_1 = '?';
|
|
2264
2269
|
} else {
|
|
2265
2270
|
tmp_1 = '';
|
|
@@ -2267,15 +2272,20 @@
|
|
|
2267
2272
|
return ' ' + tmp + ' -> ' + tmp_0 + tmp_1;
|
|
2268
2273
|
};
|
|
2269
2274
|
}
|
|
2275
|
+
function WirespecEmitter$emit$lambda_2(this$0) {
|
|
2276
|
+
return function (it) {
|
|
2277
|
+
return this$0.i1y(it);
|
|
2278
|
+
};
|
|
2279
|
+
}
|
|
2270
2280
|
function WirespecEmitter$emitPath$lambda(this$0) {
|
|
2271
2281
|
return function (it) {
|
|
2272
2282
|
var tmp0_subject = it;
|
|
2273
2283
|
var tmp;
|
|
2274
2284
|
if (tmp0_subject instanceof Param) {
|
|
2275
|
-
tmp = '{' + it.
|
|
2285
|
+
tmp = '{' + it.r1y_1.j1y_1 + ': ' + this$0.i1y(it.s1y_1) + '}';
|
|
2276
2286
|
} else {
|
|
2277
2287
|
if (tmp0_subject instanceof Literal_0) {
|
|
2278
|
-
tmp = it.
|
|
2288
|
+
tmp = it.w1y_1;
|
|
2279
2289
|
} else {
|
|
2280
2290
|
noWhenBranchMatchedException();
|
|
2281
2291
|
}
|
|
@@ -2328,7 +2338,7 @@
|
|
|
2328
2338
|
return this.h1y(_this__u8e3s4.e1y_1) + ': ' + this.i1y(_this__u8e3s4.f1y_1) + (_this__u8e3s4.g1y_1 ? '?' : '');
|
|
2329
2339
|
};
|
|
2330
2340
|
protoOf(WirespecEmitter).h1y = function (_this__u8e3s4) {
|
|
2331
|
-
return Companion_getInstance_3().
|
|
2341
|
+
return Companion_getInstance_3().u1z_1.r(_this__u8e3s4.j1y_1) ? addBackticks(_this__u8e3s4.j1y_1) : _this__u8e3s4.j1y_1;
|
|
2332
2342
|
};
|
|
2333
2343
|
protoOf(WirespecEmitter).i1y = function (_this__u8e3s4) {
|
|
2334
2344
|
// Inline function 'kotlin.let' call
|
|
@@ -2340,7 +2350,7 @@
|
|
|
2340
2350
|
tmp = 'Any';
|
|
2341
2351
|
} else {
|
|
2342
2352
|
if (_this__u8e3s4 instanceof Custom_0) {
|
|
2343
|
-
tmp = _this__u8e3s4.
|
|
2353
|
+
tmp = _this__u8e3s4.p2();
|
|
2344
2354
|
} else {
|
|
2345
2355
|
if (_this__u8e3s4 instanceof Primitive_0) {
|
|
2346
2356
|
var tmp_0;
|
|
@@ -2378,19 +2388,19 @@
|
|
|
2378
2388
|
return 'enum ' + _this__u8e3s4.y1x_1 + ' {\n' + ' ' + joinToString(_this__u8e3s4.z1x_1, ', ', VOID, VOID, VOID, VOID, WirespecEmitter$emit$lambda_0(this)) + '\n}\n';
|
|
2379
2389
|
};
|
|
2380
2390
|
protoOf(WirespecEmitter).j1t = function (_this__u8e3s4) {
|
|
2381
|
-
return 'type ' + _this__u8e3s4.
|
|
2391
|
+
return 'type ' + _this__u8e3s4.n1y_1 + ' ' + this.p1y(_this__u8e3s4.o1y_1) + '\n';
|
|
2382
2392
|
};
|
|
2383
|
-
protoOf(WirespecEmitter).
|
|
2384
|
-
return '/' + dropLast(drop(_this__u8e3s4.
|
|
2393
|
+
protoOf(WirespecEmitter).p1y = function (_this__u8e3s4) {
|
|
2394
|
+
return '/' + dropLast(drop(_this__u8e3s4.q1y_1, 1), 1) + '/g';
|
|
2385
2395
|
};
|
|
2386
2396
|
protoOf(WirespecEmitter).z1t = function (_this__u8e3s4) {
|
|
2387
|
-
var tmp = emitRequest(_this__u8e3s4.
|
|
2388
|
-
var tmp_0 = emitPath_0(_this__u8e3s4.
|
|
2389
|
-
var tmp_1 = emitQuery(_this__u8e3s4.
|
|
2390
|
-
return trimMargin('\n |endpoint ' + _this__u8e3s4.
|
|
2397
|
+
var tmp = emitRequest(_this__u8e3s4.i1z_1, this);
|
|
2398
|
+
var tmp_0 = emitPath_0(_this__u8e3s4.e1z_1, this);
|
|
2399
|
+
var tmp_1 = emitQuery(_this__u8e3s4.f1z_1, this);
|
|
2400
|
+
return trimMargin('\n |endpoint ' + _this__u8e3s4.c1z_1 + ' ' + _this__u8e3s4.d1z_1 + tmp + ' ' + tmp_0 + tmp_1 + ' -> {\n |' + joinToString(_this__u8e3s4.j1z_1, '\n', VOID, VOID, VOID, VOID, WirespecEmitter$emit$lambda_1(this)) + '\n |}\n |\n ');
|
|
2391
2401
|
};
|
|
2392
2402
|
protoOf(WirespecEmitter).v1t = function (_this__u8e3s4) {
|
|
2393
|
-
return 'type ' + _this__u8e3s4.
|
|
2403
|
+
return 'type ' + _this__u8e3s4.q1z_1 + ' = ' + joinToString(_this__u8e3s4.r1z_1, ' | ', VOID, VOID, VOID, VOID, WirespecEmitter$emit$lambda_2(this)) + '\n';
|
|
2394
2404
|
};
|
|
2395
2405
|
function get_DEFAULT_PACKAGE_STRING() {
|
|
2396
2406
|
return DEFAULT_PACKAGE_STRING;
|
|
@@ -2539,7 +2549,7 @@
|
|
|
2539
2549
|
protoOf(Companion_3).h1w = function (_this__u8e3s4) {
|
|
2540
2550
|
return !(toIntOrNull(_this__u8e3s4) == null);
|
|
2541
2551
|
};
|
|
2542
|
-
protoOf(Companion_3).
|
|
2552
|
+
protoOf(Companion_3).v1z = function (_this__u8e3s4) {
|
|
2543
2553
|
var tmp0_safe_receiver = toIntOrNull(_this__u8e3s4);
|
|
2544
2554
|
var tmp;
|
|
2545
2555
|
if (tmp0_safe_receiver == null) {
|
|
@@ -2636,8 +2646,8 @@
|
|
|
2636
2646
|
}
|
|
2637
2647
|
return tmp_0;
|
|
2638
2648
|
};
|
|
2639
|
-
protoOf(Emitter).
|
|
2640
|
-
var tmp = split(substringBefore(_this__u8e3s4.
|
|
2649
|
+
protoOf(Emitter).y1y = function (_this__u8e3s4) {
|
|
2650
|
+
var tmp = split(substringBefore(_this__u8e3s4.k1z_1, ';'), ['/', '-']);
|
|
2641
2651
|
return replace(joinToString(tmp, '', VOID, VOID, VOID, VOID, Emitter$emitContentType$lambda), '+', '');
|
|
2642
2652
|
};
|
|
2643
2653
|
protoOf(Emitter).j1v = function (_this__u8e3s4, space) {
|
|
@@ -3586,7 +3596,7 @@
|
|
|
3586
3596
|
return joinToString(tmp0_mapIndexedTo, '');
|
|
3587
3597
|
}
|
|
3588
3598
|
function name_0(_this__u8e3s4, $this) {
|
|
3589
|
-
var tmp1_safe_receiver = _this__u8e3s4 == null ? null : _this__u8e3s4.
|
|
3599
|
+
var tmp1_safe_receiver = _this__u8e3s4 == null ? null : _this__u8e3s4.k1z_1;
|
|
3590
3600
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : substringBefore(tmp1_safe_receiver, ';');
|
|
3591
3601
|
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : split(tmp2_safe_receiver, ['/', '-']);
|
|
3592
3602
|
var tmp;
|
|
@@ -3600,7 +3610,7 @@
|
|
|
3600
3610
|
return tmp5_elvis_lhs == null ? 'Unit' : tmp5_elvis_lhs;
|
|
3601
3611
|
}
|
|
3602
3612
|
function transform_0(_this__u8e3s4, $this) {
|
|
3603
|
-
return new Content(_this__u8e3s4.
|
|
3613
|
+
return new Content(_this__u8e3s4.k1z_1, transform_1(_this__u8e3s4.l1z_1, $this, _this__u8e3s4.m1z_1, false));
|
|
3604
3614
|
}
|
|
3605
3615
|
function transform_1(_this__u8e3s4, $this, isNullable, isOptional) {
|
|
3606
3616
|
var tmp;
|
|
@@ -3611,7 +3621,7 @@
|
|
|
3611
3621
|
tmp = new Language(Primitive_Any_getInstance(), isNullable, _this__u8e3s4.g1s(), isOptional);
|
|
3612
3622
|
} else {
|
|
3613
3623
|
if (_this__u8e3s4 instanceof Custom_0) {
|
|
3614
|
-
tmp = new Custom(_this__u8e3s4.
|
|
3624
|
+
tmp = new Custom(_this__u8e3s4.p2(), isNullable, _this__u8e3s4.g1s(), isOptional);
|
|
3615
3625
|
} else {
|
|
3616
3626
|
if (_this__u8e3s4 instanceof Primitive_0) {
|
|
3617
3627
|
// Inline function 'kotlin.let' call
|
|
@@ -3648,10 +3658,10 @@
|
|
|
3648
3658
|
function transform_2(_this__u8e3s4, $this) {
|
|
3649
3659
|
var tmp;
|
|
3650
3660
|
if (_this__u8e3s4 instanceof Literal_0) {
|
|
3651
|
-
tmp = new Literal(_this__u8e3s4.
|
|
3661
|
+
tmp = new Literal(_this__u8e3s4.w1y_1);
|
|
3652
3662
|
} else {
|
|
3653
3663
|
if (_this__u8e3s4 instanceof Param) {
|
|
3654
|
-
tmp = new Parameter(_this__u8e3s4.
|
|
3664
|
+
tmp = new Parameter(_this__u8e3s4.r1y_1.j1y_1);
|
|
3655
3665
|
} else {
|
|
3656
3666
|
noWhenBranchMatchedException();
|
|
3657
3667
|
}
|
|
@@ -3662,7 +3672,7 @@
|
|
|
3662
3672
|
return joinToString_1(args, '', VOID, VOID, VOID, VOID, ClassModelTransformer$className$lambda);
|
|
3663
3673
|
}
|
|
3664
3674
|
function toField_0(_this__u8e3s4, $this, identifier, isNullable) {
|
|
3665
|
-
return new Field_0(Companion_getInstance_6().
|
|
3675
|
+
return new Field_0(Companion_getInstance_6().n1z(identifier), _this__u8e3s4, isNullable);
|
|
3666
3676
|
}
|
|
3667
3677
|
function toField$default(_this__u8e3s4, $this, identifier, isNullable, $super) {
|
|
3668
3678
|
isNullable = isNullable === VOID ? false : isNullable;
|
|
@@ -3680,10 +3690,10 @@
|
|
|
3680
3690
|
return tmp;
|
|
3681
3691
|
}
|
|
3682
3692
|
function sam$kotlin_Comparator$0(function_0) {
|
|
3683
|
-
this.
|
|
3693
|
+
this.w1z_1 = function_0;
|
|
3684
3694
|
}
|
|
3685
3695
|
protoOf(sam$kotlin_Comparator$0).t9 = function (a, b) {
|
|
3686
|
-
return this.
|
|
3696
|
+
return this.w1z_1(a, b);
|
|
3687
3697
|
};
|
|
3688
3698
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
3689
3699
|
return this.t9(a, b);
|
|
@@ -3691,10 +3701,10 @@
|
|
|
3691
3701
|
function ClassModelTransformer$transform$lambda(it) {
|
|
3692
3702
|
var tmp;
|
|
3693
3703
|
if (it instanceof Literal_0) {
|
|
3694
|
-
tmp = it.
|
|
3704
|
+
tmp = it.w1y_1;
|
|
3695
3705
|
} else {
|
|
3696
3706
|
if (it instanceof Param) {
|
|
3697
|
-
tmp = '{' + transform(it.
|
|
3707
|
+
tmp = '{' + transform(it.r1y_1, ClassModelTransformer_getInstance()) + '}';
|
|
3698
3708
|
} else {
|
|
3699
3709
|
noWhenBranchMatchedException();
|
|
3700
3710
|
}
|
|
@@ -3704,10 +3714,10 @@
|
|
|
3704
3714
|
function ClassModelTransformer$transform$lambda_0(a, b) {
|
|
3705
3715
|
// Inline function 'kotlin.comparisons.compareValuesBy' call
|
|
3706
3716
|
// Inline function 'community.flock.wirespec.compiler.core.emit.transformer.ClassModelTransformer.transform.<anonymous>' call
|
|
3707
|
-
var tmp = a.
|
|
3717
|
+
var tmp = a.z1y_1;
|
|
3708
3718
|
var tmp$ret$1;
|
|
3709
3719
|
// Inline function 'community.flock.wirespec.compiler.core.emit.transformer.ClassModelTransformer.transform.<anonymous>' call
|
|
3710
|
-
tmp$ret$1 = b.
|
|
3720
|
+
tmp$ret$1 = b.z1y_1;
|
|
3711
3721
|
return compareValues(tmp, tmp$ret$1);
|
|
3712
3722
|
}
|
|
3713
3723
|
function ClassModelTransformer$name$lambda(it) {
|
|
@@ -3752,27 +3762,45 @@
|
|
|
3752
3762
|
while (tmp0_iterator_1.w()) {
|
|
3753
3763
|
var element_0 = tmp0_iterator_1.y();
|
|
3754
3764
|
// Inline function 'community.flock.wirespec.compiler.core.emit.transformer.ClassModelTransformer.transform.<anonymous>' call
|
|
3755
|
-
|
|
3765
|
+
// Inline function 'kotlin.collections.map' call
|
|
3766
|
+
var tmp0_map_0 = element_0.r1z_1;
|
|
3767
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
3768
|
+
var tmp0_mapTo_0 = ArrayList_init_$Create$(collectionSizeOrDefault(tmp0_map_0, 10));
|
|
3769
|
+
var tmp0_iterator_2 = tmp0_map_0.v();
|
|
3770
|
+
while (tmp0_iterator_2.w()) {
|
|
3771
|
+
var item_0 = tmp0_iterator_2.y();
|
|
3772
|
+
var tmp$ret$5;
|
|
3773
|
+
// Inline function 'community.flock.wirespec.compiler.core.emit.transformer.ClassModelTransformer.transform.<anonymous>.<anonymous>' call
|
|
3774
|
+
var tmp_1;
|
|
3775
|
+
if (item_0 instanceof Custom_0) {
|
|
3776
|
+
tmp_1 = item_0.p2();
|
|
3777
|
+
} else {
|
|
3778
|
+
throw IllegalStateException_init_$Create$('Any Unit of Primitive cannot be part of Union');
|
|
3779
|
+
}
|
|
3780
|
+
tmp$ret$5 = tmp_1;
|
|
3781
|
+
tmp0_mapTo_0.s(tmp$ret$5);
|
|
3782
|
+
}
|
|
3783
|
+
if (tmp0_mapTo_0.r(_this__u8e3s4.a1y_1)) {
|
|
3756
3784
|
tmp0_filterTo.s(element_0);
|
|
3757
3785
|
}
|
|
3758
3786
|
}
|
|
3759
3787
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3760
|
-
var
|
|
3761
|
-
var
|
|
3762
|
-
while (
|
|
3763
|
-
var
|
|
3764
|
-
var tmp$ret$
|
|
3788
|
+
var tmp0_mapTo_1 = ArrayList_init_$Create$(collectionSizeOrDefault(tmp0_filterTo, 10));
|
|
3789
|
+
var tmp0_iterator_3 = tmp0_filterTo.v();
|
|
3790
|
+
while (tmp0_iterator_3.w()) {
|
|
3791
|
+
var item_1 = tmp0_iterator_3.y();
|
|
3792
|
+
var tmp$ret$11;
|
|
3765
3793
|
// Inline function 'community.flock.wirespec.compiler.core.emit.transformer.ClassModelTransformer.transform.<anonymous>' call
|
|
3766
|
-
tmp$ret$
|
|
3767
|
-
|
|
3794
|
+
tmp$ret$11 = new Custom(item_1.q1z_1);
|
|
3795
|
+
tmp0_mapTo_1.s(tmp$ret$11);
|
|
3768
3796
|
}
|
|
3769
|
-
return new TypeClass(tmp, tmp_0,
|
|
3797
|
+
return new TypeClass(tmp, tmp_0, tmp0_mapTo_1);
|
|
3770
3798
|
};
|
|
3771
3799
|
protoOf(ClassModelTransformer).k1t = function (_this__u8e3s4) {
|
|
3772
|
-
return new RefinedClass(className(this, [_this__u8e3s4.
|
|
3800
|
+
return new RefinedClass(className(this, [_this__u8e3s4.n1y_1]), new Validator(_this__u8e3s4.o1y_1.q1y_1));
|
|
3773
3801
|
};
|
|
3774
3802
|
protoOf(ClassModelTransformer).w1t = function (_this__u8e3s4) {
|
|
3775
|
-
return new UnionClass(className(this, [_this__u8e3s4.
|
|
3803
|
+
return new UnionClass(className(this, [_this__u8e3s4.q1z_1]));
|
|
3776
3804
|
};
|
|
3777
3805
|
protoOf(ClassModelTransformer).r1t = function (_this__u8e3s4) {
|
|
3778
3806
|
return new EnumClass(className(this, [_this__u8e3s4.y1x_1]), _this__u8e3s4.z1x_1);
|
|
@@ -3780,7 +3808,7 @@
|
|
|
3780
3808
|
protoOf(ClassModelTransformer).a1u = function (_this__u8e3s4) {
|
|
3781
3809
|
// Inline function 'kotlin.collections.map' call
|
|
3782
3810
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
3783
|
-
var tmp0_filterIsInstance = _this__u8e3s4.
|
|
3811
|
+
var tmp0_filterIsInstance = _this__u8e3s4.e1z_1;
|
|
3784
3812
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
3785
3813
|
var tmp0_filterIsInstanceTo = ArrayList_init_$Create$_0();
|
|
3786
3814
|
var tmp0_iterator = tmp0_filterIsInstance.v();
|
|
@@ -3797,17 +3825,17 @@
|
|
|
3797
3825
|
var item = tmp0_iterator_0.y();
|
|
3798
3826
|
var tmp$ret$2;
|
|
3799
3827
|
// Inline function 'community.flock.wirespec.compiler.core.emit.transformer.ClassModelTransformer.transform.<anonymous>' call
|
|
3800
|
-
tmp$ret$2 = new Field_0(item.
|
|
3828
|
+
tmp$ret$2 = new Field_0(item.r1y_1, item.s1y_1, false);
|
|
3801
3829
|
tmp0_mapTo.s(tmp$ret$2);
|
|
3802
3830
|
}
|
|
3803
3831
|
var pathField = tmp0_mapTo;
|
|
3804
|
-
var parameters = plus(plus(plus(pathField, _this__u8e3s4.
|
|
3805
|
-
var tmp0_name = className(this, [_this__u8e3s4.
|
|
3806
|
-
var tmp1_path = joinToString(_this__u8e3s4.
|
|
3807
|
-
var tmp2_functionName = Companion_getInstance_4().o1s(_this__u8e3s4.
|
|
3808
|
-
var tmp3_method = _this__u8e3s4.
|
|
3832
|
+
var parameters = plus(plus(plus(pathField, _this__u8e3s4.f1z_1), _this__u8e3s4.g1z_1), _this__u8e3s4.h1z_1);
|
|
3833
|
+
var tmp0_name = className(this, [_this__u8e3s4.c1z_1, 'Endpoint']);
|
|
3834
|
+
var tmp1_path = joinToString(_this__u8e3s4.e1z_1, '/', '/', VOID, VOID, VOID, ClassModelTransformer$transform$lambda);
|
|
3835
|
+
var tmp2_functionName = Companion_getInstance_4().o1s(_this__u8e3s4.c1z_1);
|
|
3836
|
+
var tmp3_method = _this__u8e3s4.d1z_1.b9_1;
|
|
3809
3837
|
// Inline function 'kotlin.collections.map' call
|
|
3810
|
-
var tmp2_map = _this__u8e3s4.
|
|
3838
|
+
var tmp2_map = _this__u8e3s4.i1z_1;
|
|
3811
3839
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3812
3840
|
var tmp0_mapTo_0 = ArrayList_init_$Create$(collectionSizeOrDefault(tmp2_map, 10));
|
|
3813
3841
|
var tmp0_iterator_1 = tmp2_map.v();
|
|
@@ -3815,30 +3843,30 @@
|
|
|
3815
3843
|
var item_0 = tmp0_iterator_1.y();
|
|
3816
3844
|
var tmp$ret$17;
|
|
3817
3845
|
// Inline function 'community.flock.wirespec.compiler.core.emit.transformer.ClassModelTransformer.transform.<anonymous>' call
|
|
3818
|
-
var tmp = className(ClassModelTransformer_getInstance(), ['Request', name_0(item_0.
|
|
3846
|
+
var tmp = className(ClassModelTransformer_getInstance(), ['Request', name_0(item_0.x1y_1, ClassModelTransformer_getInstance())]);
|
|
3819
3847
|
var tmp_0 = new Field('path', new Language(Primitive_String_getInstance(), false), true, true, true);
|
|
3820
3848
|
var tmp_1 = new Field('method', new Wirespec('Method'), true, true, true);
|
|
3821
3849
|
var tmp_2 = new Field('query', new Language(Primitive_Map_getInstance(), VOID, VOID, VOID, new Generics(listOf([new Language(Primitive_String_getInstance(), false), new Language(Primitive_List_getInstance(), false, VOID, VOID, new Generics(listOf_0(new Language(Primitive_Any_getInstance(), true))))]))), true, true, true);
|
|
3822
3850
|
var tmp_3 = new Field('headers', new Language(Primitive_Map_getInstance(), VOID, VOID, VOID, new Generics(listOf([new Language(Primitive_String_getInstance(), false), new Language(Primitive_List_getInstance(), false, VOID, VOID, new Generics(listOf_0(new Language(Primitive_Any_getInstance(), true))))]))), true, true, true);
|
|
3823
|
-
var tmp_4 = item_0.
|
|
3824
|
-
var tmp0_safe_receiver = item_0.
|
|
3825
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
3826
|
-
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : transform_1(tmp1_safe_receiver, ClassModelTransformer_getInstance(), item_0.
|
|
3851
|
+
var tmp_4 = item_0.x1y_1 == null;
|
|
3852
|
+
var tmp0_safe_receiver = item_0.x1y_1;
|
|
3853
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.l1z_1;
|
|
3854
|
+
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : transform_1(tmp1_safe_receiver, ClassModelTransformer_getInstance(), item_0.x1y_1.m1z_1, false);
|
|
3827
3855
|
var tmp_5 = listOf([tmp_0, tmp_1, tmp_2, tmp_3, new Field('content', new Wirespec('Content', tmp_4, VOID, VOID, new Generics(listOf_0(tmp2_elvis_lhs == null ? new Language(Primitive_Unit_getInstance()) : tmp2_elvis_lhs))), true, true, true)]);
|
|
3828
|
-
var tmp_6 = className(ClassModelTransformer_getInstance(), ['Request', name_0(item_0.
|
|
3856
|
+
var tmp_6 = className(ClassModelTransformer_getInstance(), ['Request', name_0(item_0.x1y_1, ClassModelTransformer_getInstance())]);
|
|
3829
3857
|
var tmp_7 = new Parameter_0('path', new Language(Primitive_String_getInstance(), false));
|
|
3830
3858
|
var tmp_8 = new Parameter_0('method', new Wirespec('Method', false));
|
|
3831
3859
|
var tmp_9 = new Parameter_0('query', new Language(Primitive_Map_getInstance(), VOID, VOID, VOID, new Generics(listOf([new Language(Primitive_String_getInstance(), false), new Language(Primitive_List_getInstance(), false, VOID, VOID, new Generics(listOf_0(new Language(Primitive_Any_getInstance(), true))))]))));
|
|
3832
3860
|
var tmp_10 = new Parameter_0('headers', new Language(Primitive_Map_getInstance(), VOID, VOID, VOID, new Generics(listOf([new Language(Primitive_String_getInstance(), false), new Language(Primitive_List_getInstance(), false, VOID, VOID, new Generics(listOf_0(new Language(Primitive_Any_getInstance(), true))))]))));
|
|
3833
|
-
var tmp_11 = item_0.
|
|
3834
|
-
var tmp3_safe_receiver = item_0.
|
|
3835
|
-
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.
|
|
3836
|
-
var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : transform_1(tmp4_safe_receiver, ClassModelTransformer_getInstance(), item_0.
|
|
3861
|
+
var tmp_11 = item_0.x1y_1 == null;
|
|
3862
|
+
var tmp3_safe_receiver = item_0.x1y_1;
|
|
3863
|
+
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.l1z_1;
|
|
3864
|
+
var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : transform_1(tmp4_safe_receiver, ClassModelTransformer_getInstance(), item_0.x1y_1.m1z_1, false);
|
|
3837
3865
|
var tmp_12 = new RequestAllArgsConstructor(tmp_6, listOf([tmp_7, tmp_8, tmp_9, tmp_10, new Parameter_0('content', new Wirespec('Content', tmp_11, VOID, VOID, new Generics(listOf_0(tmp5_elvis_lhs == null ? new Language(Primitive_Unit_getInstance()) : tmp5_elvis_lhs))))]));
|
|
3838
|
-
var tmp9_name = className(ClassModelTransformer_getInstance(), ['Request', name_0(item_0.
|
|
3866
|
+
var tmp9_name = className(ClassModelTransformer_getInstance(), ['Request', name_0(item_0.x1y_1, ClassModelTransformer_getInstance())]);
|
|
3839
3867
|
// Inline function 'kotlin.collections.map' call
|
|
3840
|
-
var tmp6_safe_receiver = item_0.
|
|
3841
|
-
var tmp7_safe_receiver = tmp6_safe_receiver == null ? null : tmp6_safe_receiver.
|
|
3868
|
+
var tmp6_safe_receiver = item_0.x1y_1;
|
|
3869
|
+
var tmp7_safe_receiver = tmp6_safe_receiver == null ? null : tmp6_safe_receiver.l1z_1;
|
|
3842
3870
|
var tmp0_map = filterNotNull(plus_0(parameters, tmp7_safe_receiver == null ? null : toField_0(tmp7_safe_receiver, ClassModelTransformer_getInstance(), 'body', false)));
|
|
3843
3871
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3844
3872
|
var tmp0_mapTo_1 = ArrayList_init_$Create$(collectionSizeOrDefault(tmp0_map, 10));
|
|
@@ -3850,10 +3878,10 @@
|
|
|
3850
3878
|
tmp$ret$5 = transformParameter(item_1, ClassModelTransformer_getInstance());
|
|
3851
3879
|
tmp0_mapTo_1.s(tmp$ret$5);
|
|
3852
3880
|
}
|
|
3853
|
-
var tmp8_safe_receiver = item_0.
|
|
3881
|
+
var tmp8_safe_receiver = item_0.x1y_1;
|
|
3854
3882
|
var tmp11_content = tmp8_safe_receiver == null ? null : transform_0(tmp8_safe_receiver, ClassModelTransformer_getInstance());
|
|
3855
3883
|
// Inline function 'kotlin.collections.map' call
|
|
3856
|
-
var tmp1_map = _this__u8e3s4.
|
|
3884
|
+
var tmp1_map = _this__u8e3s4.e1z_1;
|
|
3857
3885
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3858
3886
|
var tmp0_mapTo_2 = ArrayList_init_$Create$(collectionSizeOrDefault(tmp1_map, 10));
|
|
3859
3887
|
var tmp0_iterator_3 = tmp1_map.v();
|
|
@@ -3865,9 +3893,9 @@
|
|
|
3865
3893
|
tmp0_mapTo_2.s(tmp$ret$8);
|
|
3866
3894
|
}
|
|
3867
3895
|
var tmp12_path = new Path(tmp0_mapTo_2);
|
|
3868
|
-
var tmp13_method = _this__u8e3s4.
|
|
3896
|
+
var tmp13_method = _this__u8e3s4.d1z_1.b9_1;
|
|
3869
3897
|
// Inline function 'kotlin.collections.map' call
|
|
3870
|
-
var tmp2_map_0 = _this__u8e3s4.
|
|
3898
|
+
var tmp2_map_0 = _this__u8e3s4.f1z_1;
|
|
3871
3899
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3872
3900
|
var tmp0_mapTo_3 = ArrayList_init_$Create$(collectionSizeOrDefault(tmp2_map_0, 10));
|
|
3873
3901
|
var tmp0_iterator_4 = tmp2_map_0.v();
|
|
@@ -3879,7 +3907,7 @@
|
|
|
3879
3907
|
tmp0_mapTo_3.s(tmp$ret$11);
|
|
3880
3908
|
}
|
|
3881
3909
|
// Inline function 'kotlin.collections.map' call
|
|
3882
|
-
var tmp3_map = _this__u8e3s4.
|
|
3910
|
+
var tmp3_map = _this__u8e3s4.g1z_1;
|
|
3883
3911
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3884
3912
|
var tmp0_mapTo_4 = ArrayList_init_$Create$(collectionSizeOrDefault(tmp3_map, 10));
|
|
3885
3913
|
var tmp0_iterator_5 = tmp3_map.v();
|
|
@@ -3892,14 +3920,14 @@
|
|
|
3892
3920
|
}
|
|
3893
3921
|
var tmp_13 = new RequestParameterConstructor(tmp9_name, tmp0_mapTo_1, tmp12_path, tmp13_method, tmp0_mapTo_3, tmp0_mapTo_4, tmp11_content);
|
|
3894
3922
|
var tmp_14 = className(ClassModelTransformer_getInstance(), ['Request']);
|
|
3895
|
-
var tmp16_safe_receiver = item_0.
|
|
3896
|
-
var tmp17_safe_receiver = tmp16_safe_receiver == null ? null : tmp16_safe_receiver.
|
|
3897
|
-
var tmp18_elvis_lhs = tmp17_safe_receiver == null ? null : transform_1(tmp17_safe_receiver, ClassModelTransformer_getInstance(), item_0.
|
|
3923
|
+
var tmp16_safe_receiver = item_0.x1y_1;
|
|
3924
|
+
var tmp17_safe_receiver = tmp16_safe_receiver == null ? null : tmp16_safe_receiver.l1z_1;
|
|
3925
|
+
var tmp18_elvis_lhs = tmp17_safe_receiver == null ? null : transform_1(tmp17_safe_receiver, ClassModelTransformer_getInstance(), item_0.x1y_1.m1z_1, false);
|
|
3898
3926
|
tmp$ret$17 = new RequestClass(tmp, tmp_5, tmp_12, tmp_13, listOf_0(new Custom(tmp_14, VOID, VOID, VOID, new Generics(listOf_0(tmp18_elvis_lhs == null ? new Language(Primitive_Unit_getInstance()) : tmp18_elvis_lhs)))));
|
|
3899
3927
|
tmp0_mapTo_0.s(tmp$ret$17);
|
|
3900
3928
|
}
|
|
3901
3929
|
// Inline function 'kotlin.collections.map' call
|
|
3902
|
-
var tmp3_map_0 = _this__u8e3s4.
|
|
3930
|
+
var tmp3_map_0 = _this__u8e3s4.i1z_1;
|
|
3903
3931
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3904
3932
|
var tmp0_mapTo_5 = ArrayList_init_$Create$(collectionSizeOrDefault(tmp3_map_0, 10));
|
|
3905
3933
|
var tmp0_iterator_6 = tmp3_map_0.v();
|
|
@@ -3907,20 +3935,20 @@
|
|
|
3907
3935
|
var item_5 = tmp0_iterator_6.y();
|
|
3908
3936
|
var tmp$ret$20;
|
|
3909
3937
|
// Inline function 'community.flock.wirespec.compiler.core.emit.transformer.ClassModelTransformer.transform.<anonymous>' call
|
|
3910
|
-
var tmp0_safe_receiver_0 = item_5.
|
|
3938
|
+
var tmp0_safe_receiver_0 = item_5.x1y_1;
|
|
3911
3939
|
var tmp4_content = tmp0_safe_receiver_0 == null ? null : transform_0(tmp0_safe_receiver_0, ClassModelTransformer_getInstance());
|
|
3912
|
-
var tmp1_safe_receiver_0 = item_5.
|
|
3913
|
-
var tmp2_safe_receiver = tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.
|
|
3940
|
+
var tmp1_safe_receiver_0 = item_5.x1y_1;
|
|
3941
|
+
var tmp2_safe_receiver = tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.l1z_1;
|
|
3914
3942
|
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.g1s();
|
|
3915
3943
|
var tmp5_isIterable = tmp3_elvis_lhs == null ? false : tmp3_elvis_lhs;
|
|
3916
|
-
var tmp6_responseReference = new Custom(className(ClassModelTransformer_getInstance(), ['Request', name_0(item_5.
|
|
3944
|
+
var tmp6_responseReference = new Custom(className(ClassModelTransformer_getInstance(), ['Request', name_0(item_5.x1y_1, ClassModelTransformer_getInstance())]));
|
|
3917
3945
|
tmp$ret$20 = new RequestCondition(tmp4_content, tmp6_responseReference, tmp5_isIterable);
|
|
3918
3946
|
tmp0_mapTo_5.s(tmp$ret$20);
|
|
3919
3947
|
}
|
|
3920
3948
|
var tmp5_requestMapper = new RequestMapper('REQUEST_MAPPER', tmp0_mapTo_5);
|
|
3921
3949
|
// Inline function 'kotlin.collections.map' call
|
|
3922
3950
|
// Inline function 'kotlin.collections.sortedBy' call
|
|
3923
|
-
var tmp4_sortedBy = _this__u8e3s4.
|
|
3951
|
+
var tmp4_sortedBy = _this__u8e3s4.j1z_1;
|
|
3924
3952
|
var tmp$ret$23;
|
|
3925
3953
|
// Inline function 'kotlin.comparisons.compareBy' call
|
|
3926
3954
|
var tmp_15 = ClassModelTransformer$transform$lambda_0;
|
|
@@ -3933,21 +3961,21 @@
|
|
|
3933
3961
|
var item_6 = tmp0_iterator_7.y();
|
|
3934
3962
|
var tmp$ret$25;
|
|
3935
3963
|
// Inline function 'community.flock.wirespec.compiler.core.emit.transformer.ClassModelTransformer.transform.<anonymous>' call
|
|
3936
|
-
var tmp4_statusCode = item_6.
|
|
3937
|
-
var tmp0_safe_receiver_1 = item_6.
|
|
3964
|
+
var tmp4_statusCode = item_6.z1y_1;
|
|
3965
|
+
var tmp0_safe_receiver_1 = item_6.b1z_1;
|
|
3938
3966
|
var tmp5_content = tmp0_safe_receiver_1 == null ? null : transform_0(tmp0_safe_receiver_1, ClassModelTransformer_getInstance());
|
|
3939
|
-
var tmp1_safe_receiver_1 = item_6.
|
|
3940
|
-
var tmp2_safe_receiver_0 = tmp1_safe_receiver_1 == null ? null : tmp1_safe_receiver_1.
|
|
3967
|
+
var tmp1_safe_receiver_1 = item_6.b1z_1;
|
|
3968
|
+
var tmp2_safe_receiver_0 = tmp1_safe_receiver_1 == null ? null : tmp1_safe_receiver_1.l1z_1;
|
|
3941
3969
|
var tmp3_elvis_lhs_0 = tmp2_safe_receiver_0 == null ? null : tmp2_safe_receiver_0.g1s();
|
|
3942
3970
|
var tmp6_isIterable = tmp3_elvis_lhs_0 == null ? false : tmp3_elvis_lhs_0;
|
|
3943
|
-
var tmp7_responseReference = new Custom(className(ClassModelTransformer_getInstance(), ['Response', item_6.
|
|
3971
|
+
var tmp7_responseReference = new Custom(className(ClassModelTransformer_getInstance(), ['Response', item_6.z1y_1, name_0(item_6.b1z_1, ClassModelTransformer_getInstance())]));
|
|
3944
3972
|
tmp$ret$25 = new ResponseCondition(tmp4_statusCode, tmp5_content, tmp7_responseReference, tmp6_isIterable);
|
|
3945
3973
|
tmp0_mapTo_6.s(tmp$ret$25);
|
|
3946
3974
|
}
|
|
3947
3975
|
var tmp6_responseMapper = new ResponseMapper('RESPONSE_MAPPER', tmp0_mapTo_6);
|
|
3948
3976
|
// Inline function 'kotlin.collections.map' call
|
|
3949
3977
|
// Inline function 'kotlin.collections.map' call
|
|
3950
|
-
var tmp6_map = _this__u8e3s4.
|
|
3978
|
+
var tmp6_map = _this__u8e3s4.j1z_1;
|
|
3951
3979
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3952
3980
|
var tmp0_mapTo_7 = ArrayList_init_$Create$(collectionSizeOrDefault(tmp6_map, 10));
|
|
3953
3981
|
var tmp0_iterator_8 = tmp6_map.v();
|
|
@@ -3955,7 +3983,7 @@
|
|
|
3955
3983
|
var item_7 = tmp0_iterator_8.y();
|
|
3956
3984
|
var tmp$ret$28;
|
|
3957
3985
|
// Inline function 'community.flock.wirespec.compiler.core.emit.transformer.ClassModelTransformer.transform.<anonymous>' call
|
|
3958
|
-
tmp$ret$28 = groupStatus(item_7.
|
|
3986
|
+
tmp$ret$28 = groupStatus(item_7.z1y_1, ClassModelTransformer_getInstance());
|
|
3959
3987
|
tmp0_mapTo_7.s(tmp$ret$28);
|
|
3960
3988
|
}
|
|
3961
3989
|
var tmp7_map = distinct(tmp0_mapTo_7);
|
|
@@ -3973,14 +4001,14 @@
|
|
|
3973
4001
|
// Inline function 'kotlin.collections.map' call
|
|
3974
4002
|
// Inline function 'kotlin.collections.map' call
|
|
3975
4003
|
// Inline function 'kotlin.collections.filter' call
|
|
3976
|
-
var tmp8_filter = _this__u8e3s4.
|
|
4004
|
+
var tmp8_filter = _this__u8e3s4.j1z_1;
|
|
3977
4005
|
// Inline function 'kotlin.collections.filterTo' call
|
|
3978
4006
|
var tmp0_filterTo = ArrayList_init_$Create$_0();
|
|
3979
4007
|
var tmp0_iterator_10 = tmp8_filter.v();
|
|
3980
4008
|
while (tmp0_iterator_10.w()) {
|
|
3981
4009
|
var element_0 = tmp0_iterator_10.y();
|
|
3982
4010
|
// Inline function 'community.flock.wirespec.compiler.core.emit.transformer.ClassModelTransformer.transform.<anonymous>' call
|
|
3983
|
-
if (Companion_getInstance_4().
|
|
4011
|
+
if (Companion_getInstance_4().v1z(element_0.z1y_1)) {
|
|
3984
4012
|
tmp0_filterTo.s(element_0);
|
|
3985
4013
|
}
|
|
3986
4014
|
}
|
|
@@ -3991,7 +4019,7 @@
|
|
|
3991
4019
|
var item_9 = tmp0_iterator_11.y();
|
|
3992
4020
|
var tmp$ret$37;
|
|
3993
4021
|
// Inline function 'community.flock.wirespec.compiler.core.emit.transformer.ClassModelTransformer.transform.<anonymous>' call
|
|
3994
|
-
tmp$ret$37 = item_9.
|
|
4022
|
+
tmp$ret$37 = item_9.z1y_1;
|
|
3995
4023
|
tmp0_mapTo_9.s(tmp$ret$37);
|
|
3996
4024
|
}
|
|
3997
4025
|
var tmp10_map = distinct(tmp0_mapTo_9);
|
|
@@ -4007,7 +4035,7 @@
|
|
|
4007
4035
|
}
|
|
4008
4036
|
var tmp7_responseInterfaces = plus(tmp_16, tmp0_mapTo_10);
|
|
4009
4037
|
// Inline function 'kotlin.collections.map' call
|
|
4010
|
-
var tmp11_map = _this__u8e3s4.
|
|
4038
|
+
var tmp11_map = _this__u8e3s4.j1z_1;
|
|
4011
4039
|
// Inline function 'kotlin.collections.mapTo' call
|
|
4012
4040
|
var tmp0_mapTo_11 = ArrayList_init_$Create$(collectionSizeOrDefault(tmp11_map, 10));
|
|
4013
4041
|
var tmp0_iterator_13 = tmp11_map.v();
|
|
@@ -4015,33 +4043,33 @@
|
|
|
4015
4043
|
var item_11 = tmp0_iterator_13.y();
|
|
4016
4044
|
var tmp$ret$49;
|
|
4017
4045
|
// Inline function 'community.flock.wirespec.compiler.core.emit.transformer.ClassModelTransformer.transform.<anonymous>' call
|
|
4018
|
-
var tmp_17 = className(ClassModelTransformer_getInstance(), ['Response', item_11.
|
|
4046
|
+
var tmp_17 = className(ClassModelTransformer_getInstance(), ['Response', item_11.z1y_1, name_0(item_11.b1z_1, ClassModelTransformer_getInstance())]);
|
|
4019
4047
|
var tmp0_reference = new Language(Primitive_Integer_getInstance());
|
|
4020
4048
|
var tmp_18 = new Field('status', tmp0_reference, true, true, true);
|
|
4021
4049
|
var tmp_19 = new Field('headers', new Language(Primitive_Map_getInstance(), false, VOID, VOID, new Generics(listOf([new Language(Primitive_String_getInstance(), false), new Language(Primitive_List_getInstance(), false, VOID, VOID, new Generics(listOf_0(new Language(Primitive_Any_getInstance(), true))))]))), true, true, true);
|
|
4022
|
-
var tmp_20 = item_11.
|
|
4023
|
-
var tmp1_safe_receiver_2 = item_11.
|
|
4024
|
-
var tmp2_safe_receiver_1 = tmp1_safe_receiver_2 == null ? null : tmp1_safe_receiver_2.
|
|
4025
|
-
var tmp3_elvis_lhs_1 = tmp2_safe_receiver_1 == null ? null : transform_1(tmp2_safe_receiver_1, ClassModelTransformer_getInstance(), item_11.
|
|
4050
|
+
var tmp_20 = item_11.b1z_1 == null;
|
|
4051
|
+
var tmp1_safe_receiver_2 = item_11.b1z_1;
|
|
4052
|
+
var tmp2_safe_receiver_1 = tmp1_safe_receiver_2 == null ? null : tmp1_safe_receiver_2.l1z_1;
|
|
4053
|
+
var tmp3_elvis_lhs_1 = tmp2_safe_receiver_1 == null ? null : transform_1(tmp2_safe_receiver_1, ClassModelTransformer_getInstance(), item_11.b1z_1.m1z_1, false);
|
|
4026
4054
|
var tmp4_reference = new Wirespec('Content', tmp_20, VOID, VOID, new Generics(listOf_0(tmp3_elvis_lhs_1 == null ? new Language(Primitive_Unit_getInstance()) : tmp3_elvis_lhs_1)));
|
|
4027
4055
|
var tmp_21 = listOf([tmp_18, tmp_19, new Field('content', tmp4_reference, true, true, true)]);
|
|
4028
|
-
var tmp9_name_0 = className(ClassModelTransformer_getInstance(), ['Response', item_11.
|
|
4029
|
-
var tmp10_statusCode = item_11.
|
|
4056
|
+
var tmp9_name_0 = className(ClassModelTransformer_getInstance(), ['Response', item_11.z1y_1, name_0(item_11.b1z_1, ClassModelTransformer_getInstance())]);
|
|
4057
|
+
var tmp10_statusCode = item_11.z1y_1;
|
|
4030
4058
|
var tmp_22 = new Parameter_0('status', new Language(Primitive_Integer_getInstance()));
|
|
4031
4059
|
var tmp_23 = new Parameter_0('headers', new Language(Primitive_Map_getInstance(), false, VOID, VOID, new Generics(listOf([new Language(Primitive_String_getInstance(), false), new Language(Primitive_List_getInstance(), false, VOID, VOID, new Generics(listOf_0(new Language(Primitive_Any_getInstance(), true))))]))));
|
|
4032
|
-
var tmp_24 = item_11.
|
|
4033
|
-
var tmp5_safe_receiver = item_11.
|
|
4034
|
-
var tmp6_safe_receiver_0 = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.
|
|
4035
|
-
var tmp7_elvis_lhs = tmp6_safe_receiver_0 == null ? null : transform_1(tmp6_safe_receiver_0, ClassModelTransformer_getInstance(), item_11.
|
|
4060
|
+
var tmp_24 = item_11.b1z_1 == null;
|
|
4061
|
+
var tmp5_safe_receiver = item_11.b1z_1;
|
|
4062
|
+
var tmp6_safe_receiver_0 = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.l1z_1;
|
|
4063
|
+
var tmp7_elvis_lhs = tmp6_safe_receiver_0 == null ? null : transform_1(tmp6_safe_receiver_0, ClassModelTransformer_getInstance(), item_11.b1z_1.m1z_1, false);
|
|
4036
4064
|
var tmp11_parameters = listOf([tmp_22, tmp_23, new Parameter_0('content', new Wirespec('Content', tmp_24, VOID, VOID, new Generics(listOf_0(tmp7_elvis_lhs == null ? new Language(Primitive_Unit_getInstance()) : tmp7_elvis_lhs))))]);
|
|
4037
|
-
var tmp8_safe_receiver_0 = item_11.
|
|
4065
|
+
var tmp8_safe_receiver_0 = item_11.b1z_1;
|
|
4038
4066
|
var tmp12_content = tmp8_safe_receiver_0 == null ? null : transform_0(tmp8_safe_receiver_0, ClassModelTransformer_getInstance());
|
|
4039
4067
|
var tmp_25 = new ResponseAllArgsConstructor(tmp9_name_0, tmp11_parameters, tmp10_statusCode, tmp12_content);
|
|
4040
|
-
var tmp17_name = className(ClassModelTransformer_getInstance(), ['Response', item_11.
|
|
4041
|
-
var tmp18_statusCode = item_11.
|
|
4042
|
-
var tmp_26 = listOf_0(!Companion_getInstance_4().h1w(item_11.
|
|
4068
|
+
var tmp17_name = className(ClassModelTransformer_getInstance(), ['Response', item_11.z1y_1, name_0(item_11.b1z_1, ClassModelTransformer_getInstance())]);
|
|
4069
|
+
var tmp18_statusCode = item_11.z1y_1;
|
|
4070
|
+
var tmp_26 = listOf_0(!Companion_getInstance_4().h1w(item_11.z1y_1) ? new Parameter_0('status', new Language(Primitive_Integer_getInstance())) : null);
|
|
4043
4071
|
// Inline function 'kotlin.collections.map' call
|
|
4044
|
-
var tmp0_map_0 = item_11.
|
|
4072
|
+
var tmp0_map_0 = item_11.a1z_1;
|
|
4045
4073
|
// Inline function 'kotlin.collections.mapTo' call
|
|
4046
4074
|
var tmp0_mapTo_12 = ArrayList_init_$Create$(collectionSizeOrDefault(tmp0_map_0, 10));
|
|
4047
4075
|
var tmp0_iterator_14 = tmp0_map_0.v();
|
|
@@ -4053,12 +4081,12 @@
|
|
|
4053
4081
|
tmp0_mapTo_12.s(tmp$ret$43);
|
|
4054
4082
|
}
|
|
4055
4083
|
var tmp_27 = plus(tmp_26, tmp0_mapTo_12);
|
|
4056
|
-
var tmp13_safe_receiver = item_11.
|
|
4057
|
-
var tmp14_safe_receiver = tmp13_safe_receiver == null ? null : tmp13_safe_receiver.
|
|
4084
|
+
var tmp13_safe_receiver = item_11.b1z_1;
|
|
4085
|
+
var tmp14_safe_receiver = tmp13_safe_receiver == null ? null : tmp13_safe_receiver.l1z_1;
|
|
4058
4086
|
var tmp15_safe_receiver = tmp14_safe_receiver == null ? null : toField$default(tmp14_safe_receiver, ClassModelTransformer_getInstance(), 'body');
|
|
4059
4087
|
var tmp19_parameters = filterNotNull(plus_0(tmp_27, tmp15_safe_receiver == null ? null : transformParameter(tmp15_safe_receiver, ClassModelTransformer_getInstance())));
|
|
4060
4088
|
// Inline function 'kotlin.collections.map' call
|
|
4061
|
-
var tmp1_map_0 = item_11.
|
|
4089
|
+
var tmp1_map_0 = item_11.a1z_1;
|
|
4062
4090
|
// Inline function 'kotlin.collections.mapTo' call
|
|
4063
4091
|
var tmp0_mapTo_13 = ArrayList_init_$Create$(collectionSizeOrDefault(tmp1_map_0, 10));
|
|
4064
4092
|
var tmp0_iterator_15 = tmp1_map_0.v();
|
|
@@ -4069,17 +4097,17 @@
|
|
|
4069
4097
|
tmp$ret$46 = item_13.e1y_1.j1y_1;
|
|
4070
4098
|
tmp0_mapTo_13.s(tmp$ret$46);
|
|
4071
4099
|
}
|
|
4072
|
-
var tmp16_safe_receiver_0 = item_11.
|
|
4100
|
+
var tmp16_safe_receiver_0 = item_11.b1z_1;
|
|
4073
4101
|
var tmp21_content = tmp16_safe_receiver_0 == null ? null : transform_0(tmp16_safe_receiver_0, ClassModelTransformer_getInstance());
|
|
4074
4102
|
var tmp_28 = new ResponseParameterConstructor(tmp17_name, tmp19_parameters, tmp18_statusCode, tmp0_mapTo_13, tmp21_content);
|
|
4075
|
-
var tmp25_name = className(ClassModelTransformer_getInstance(), ['Response', item_11.
|
|
4076
|
-
var tmp22_safe_receiver = item_11.
|
|
4077
|
-
var tmp23_safe_receiver = tmp22_safe_receiver == null ? null : tmp22_safe_receiver.
|
|
4078
|
-
var tmp24_elvis_lhs = tmp23_safe_receiver == null ? null : transform_1(tmp23_safe_receiver, ClassModelTransformer_getInstance(), item_11.
|
|
4103
|
+
var tmp25_name = className(ClassModelTransformer_getInstance(), ['Response', item_11.z1y_1]);
|
|
4104
|
+
var tmp22_safe_receiver = item_11.b1z_1;
|
|
4105
|
+
var tmp23_safe_receiver = tmp22_safe_receiver == null ? null : tmp22_safe_receiver.l1z_1;
|
|
4106
|
+
var tmp24_elvis_lhs = tmp23_safe_receiver == null ? null : transform_1(tmp23_safe_receiver, ClassModelTransformer_getInstance(), item_11.b1z_1.m1z_1, false);
|
|
4079
4107
|
var tmp26_generics = new Generics(listOf_0(tmp24_elvis_lhs == null ? new Language(Primitive_Unit_getInstance()) : tmp24_elvis_lhs));
|
|
4080
4108
|
var tmp_29 = new Custom(tmp25_name, false, VOID, VOID, tmp26_generics);
|
|
4081
|
-
var tmp27_safe_receiver = item_11.
|
|
4082
|
-
tmp$ret$49 = new ResponseClass(tmp_17, tmp_21, tmp_25, tmp_28, tmp_29, item_11.
|
|
4109
|
+
var tmp27_safe_receiver = item_11.b1z_1;
|
|
4110
|
+
tmp$ret$49 = new ResponseClass(tmp_17, tmp_21, tmp_25, tmp_28, tmp_29, item_11.z1y_1, tmp27_safe_receiver == null ? null : transform_0(tmp27_safe_receiver, ClassModelTransformer_getInstance()));
|
|
4083
4111
|
tmp0_mapTo_11.s(tmp$ret$49);
|
|
4084
4112
|
}
|
|
4085
4113
|
var tmp9_supers = listOf_0(new Wirespec('Endpoint'));
|
|
@@ -4106,9 +4134,13 @@
|
|
|
4106
4134
|
}
|
|
4107
4135
|
function WrongTokenException(expected, actual) {
|
|
4108
4136
|
Companion_getInstance_5();
|
|
4109
|
-
ParserException.call(this, actual.
|
|
4137
|
+
ParserException.call(this, actual.z1z_1, '' + expected.d6() + ' expected, not: ' + actual.y1z_1.a20() + ' at line ' + actual.z1z_1.b20_1 + ' and position ' + (actual.z1z_1.c20_1 - actual.x1z_1.length | 0));
|
|
4110
4138
|
captureStack(this, WrongTokenException);
|
|
4111
4139
|
}
|
|
4140
|
+
function DefinitionNotExistsException(referenceName, coordinates) {
|
|
4141
|
+
ParserException.call(this, coordinates, 'Cannot find reference: ' + referenceName);
|
|
4142
|
+
captureStack(this, DefinitionNotExistsException);
|
|
4143
|
+
}
|
|
4112
4144
|
function NullTokenException(message, coordinates) {
|
|
4113
4145
|
ParserException.call(this, coordinates, message + ' cannot be null');
|
|
4114
4146
|
captureStack(this, NullTokenException);
|
|
@@ -4124,15 +4156,15 @@
|
|
|
4124
4156
|
function WirespecException(message, coordinates) {
|
|
4125
4157
|
RuntimeException_init_$Init$(message, this);
|
|
4126
4158
|
captureStack(this, WirespecException);
|
|
4127
|
-
this.
|
|
4159
|
+
this.e20_1 = coordinates;
|
|
4128
4160
|
}
|
|
4129
4161
|
function optimize(_this__u8e3s4) {
|
|
4130
4162
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
4131
4163
|
// Inline function 'community.flock.wirespec.compiler.core.optimize.optimize.<anonymous>' call
|
|
4132
4164
|
var tmp0_anonymous = _this__u8e3s4.t1q_1;
|
|
4133
4165
|
var tmp;
|
|
4134
|
-
if (tmp0_anonymous.
|
|
4135
|
-
tmp = tmp0_anonymous.
|
|
4166
|
+
if (tmp0_anonymous.y1z_1 instanceof CustomRegex) {
|
|
4167
|
+
tmp = tmp0_anonymous.f20('"' + dropLast(drop(tmp0_anonymous.x1z_1, 1), 2) + '"');
|
|
4136
4168
|
} else {
|
|
4137
4169
|
tmp = tmp0_anonymous;
|
|
4138
4170
|
}
|
|
@@ -4147,8 +4179,8 @@
|
|
|
4147
4179
|
var tmp$ret$1;
|
|
4148
4180
|
// Inline function 'community.flock.wirespec.compiler.core.optimize.optimize.<anonymous>' call
|
|
4149
4181
|
var tmp_1;
|
|
4150
|
-
if (item.
|
|
4151
|
-
tmp_1 = item.
|
|
4182
|
+
if (item.y1z_1 instanceof CustomRegex) {
|
|
4183
|
+
tmp_1 = item.f20('"' + dropLast(drop(item.x1z_1, 1), 2) + '"');
|
|
4152
4184
|
} else {
|
|
4153
4185
|
tmp_1 = item;
|
|
4154
4186
|
}
|
|
@@ -4168,31 +4200,31 @@
|
|
|
4168
4200
|
try {
|
|
4169
4201
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4170
4202
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointDefinition.<anonymous>' call
|
|
4171
|
-
raise.e1r(_this__u8e3s4.
|
|
4172
|
-
$this.
|
|
4203
|
+
raise.e1r(_this__u8e3s4.l20());
|
|
4204
|
+
$this.n20(_this__u8e3s4.i20_1);
|
|
4173
4205
|
// Inline function 'kotlin.also' call
|
|
4174
4206
|
var tmp_0;
|
|
4175
|
-
if (_this__u8e3s4.
|
|
4176
|
-
tmp_0 = valueOf(_this__u8e3s4.
|
|
4207
|
+
if (_this__u8e3s4.i20_1.y1z_1 instanceof Method_0) {
|
|
4208
|
+
tmp_0 = valueOf(_this__u8e3s4.i20_1.x1z_1);
|
|
4177
4209
|
} else {
|
|
4178
4210
|
var tmp$ret$0;
|
|
4179
4211
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
4180
4212
|
Companion_getInstance_5();
|
|
4181
|
-
var tmp1_invoke = _this__u8e3s4.
|
|
4213
|
+
var tmp1_invoke = _this__u8e3s4.i20_1;
|
|
4182
4214
|
tmp$ret$0 = new WrongTokenException(getKClass(Method_0), tmp1_invoke);
|
|
4183
4215
|
raise.d1r(tmp$ret$0);
|
|
4184
4216
|
}
|
|
4185
4217
|
var tmp2_also = tmp_0;
|
|
4186
4218
|
// Inline function 'kotlin.contracts.contract' call
|
|
4187
4219
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointDefinition.<anonymous>.<anonymous>' call
|
|
4188
|
-
raise.e1r(_this__u8e3s4.
|
|
4220
|
+
raise.e1r(_this__u8e3s4.l20());
|
|
4189
4221
|
var method = tmp2_also;
|
|
4190
4222
|
// Inline function 'kotlin.collections.map' call
|
|
4191
|
-
var tmp1_subject = _this__u8e3s4.
|
|
4223
|
+
var tmp1_subject = _this__u8e3s4.i20_1.y1z_1;
|
|
4192
4224
|
var tmp_1;
|
|
4193
4225
|
if (isInterface(tmp1_subject, WirespecType)) {
|
|
4194
|
-
var tmp_2 = _this__u8e3s4.
|
|
4195
|
-
tmp_1 = raise.e1r(parseReference(_this__u8e3s4, $this, isInterface(tmp_2, WirespecType) ? tmp_2 : THROW_CCE(), _this__u8e3s4.
|
|
4226
|
+
var tmp_2 = _this__u8e3s4.i20_1.y1z_1;
|
|
4227
|
+
tmp_1 = raise.e1r(parseReference(_this__u8e3s4, $this, isInterface(tmp_2, WirespecType) ? tmp_2 : THROW_CCE(), _this__u8e3s4.i20_1.x1z_1));
|
|
4196
4228
|
} else {
|
|
4197
4229
|
tmp_1 = null;
|
|
4198
4230
|
}
|
|
@@ -4225,15 +4257,15 @@
|
|
|
4225
4257
|
$l$loop: while (true) {
|
|
4226
4258
|
var tmp_4;
|
|
4227
4259
|
var tmp_5;
|
|
4228
|
-
var tmp_6 = _this__u8e3s4.
|
|
4260
|
+
var tmp_6 = _this__u8e3s4.i20_1.y1z_1;
|
|
4229
4261
|
if (!(tmp_6 instanceof QuestionMark)) {
|
|
4230
|
-
var tmp_7 = _this__u8e3s4.
|
|
4262
|
+
var tmp_7 = _this__u8e3s4.i20_1.y1z_1;
|
|
4231
4263
|
tmp_5 = !(tmp_7 instanceof Hash);
|
|
4232
4264
|
} else {
|
|
4233
4265
|
tmp_5 = false;
|
|
4234
4266
|
}
|
|
4235
4267
|
if (tmp_5) {
|
|
4236
|
-
var tmp_8 = _this__u8e3s4.
|
|
4268
|
+
var tmp_8 = _this__u8e3s4.i20_1.y1z_1;
|
|
4237
4269
|
tmp_4 = !(tmp_8 instanceof Arrow);
|
|
4238
4270
|
} else {
|
|
4239
4271
|
tmp_4 = false;
|
|
@@ -4245,20 +4277,20 @@
|
|
|
4245
4277
|
}
|
|
4246
4278
|
var segments = tmp4_apply;
|
|
4247
4279
|
var tmp_9;
|
|
4248
|
-
if (_this__u8e3s4.
|
|
4249
|
-
raise.e1r(_this__u8e3s4.
|
|
4280
|
+
if (_this__u8e3s4.i20_1.y1z_1 instanceof QuestionMark) {
|
|
4281
|
+
raise.e1r(_this__u8e3s4.l20());
|
|
4250
4282
|
var tmp_10;
|
|
4251
|
-
if (_this__u8e3s4.
|
|
4283
|
+
if (_this__u8e3s4.i20_1.y1z_1 instanceof LeftCurly) {
|
|
4252
4284
|
// Inline function 'kotlin.with' call
|
|
4253
|
-
var tmp5_with = $this.
|
|
4285
|
+
var tmp5_with = $this.p20_1;
|
|
4254
4286
|
// Inline function 'kotlin.contracts.contract' call
|
|
4255
4287
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointDefinition.<anonymous>.<anonymous>' call
|
|
4256
|
-
tmp_10 = raise.e1r(tmp5_with.
|
|
4288
|
+
tmp_10 = raise.e1r(tmp5_with.r20(_this__u8e3s4)).d1y_1;
|
|
4257
4289
|
} else {
|
|
4258
4290
|
var tmp$ret$11;
|
|
4259
4291
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
4260
4292
|
Companion_getInstance_5();
|
|
4261
|
-
var tmp7_invoke = _this__u8e3s4.
|
|
4293
|
+
var tmp7_invoke = _this__u8e3s4.i20_1;
|
|
4262
4294
|
tmp$ret$11 = new WrongTokenException(getKClass(LeftCurly), tmp7_invoke);
|
|
4263
4295
|
raise.d1r(tmp$ret$11);
|
|
4264
4296
|
}
|
|
@@ -4268,20 +4300,20 @@
|
|
|
4268
4300
|
}
|
|
4269
4301
|
var queryParams = tmp_9;
|
|
4270
4302
|
var tmp_11;
|
|
4271
|
-
if (_this__u8e3s4.
|
|
4272
|
-
raise.e1r(_this__u8e3s4.
|
|
4303
|
+
if (_this__u8e3s4.i20_1.y1z_1 instanceof Hash) {
|
|
4304
|
+
raise.e1r(_this__u8e3s4.l20());
|
|
4273
4305
|
var tmp_12;
|
|
4274
|
-
if (_this__u8e3s4.
|
|
4306
|
+
if (_this__u8e3s4.i20_1.y1z_1 instanceof LeftCurly) {
|
|
4275
4307
|
// Inline function 'kotlin.with' call
|
|
4276
|
-
var tmp8_with = $this.
|
|
4308
|
+
var tmp8_with = $this.p20_1;
|
|
4277
4309
|
// Inline function 'kotlin.contracts.contract' call
|
|
4278
4310
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointDefinition.<anonymous>.<anonymous>' call
|
|
4279
|
-
tmp_12 = raise.e1r(tmp8_with.
|
|
4311
|
+
tmp_12 = raise.e1r(tmp8_with.r20(_this__u8e3s4)).d1y_1;
|
|
4280
4312
|
} else {
|
|
4281
4313
|
var tmp$ret$14;
|
|
4282
4314
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
4283
4315
|
Companion_getInstance_5();
|
|
4284
|
-
var tmp10_invoke = _this__u8e3s4.
|
|
4316
|
+
var tmp10_invoke = _this__u8e3s4.i20_1;
|
|
4285
4317
|
tmp$ret$14 = new WrongTokenException(getKClass(LeftCurly), tmp10_invoke);
|
|
4286
4318
|
raise.d1r(tmp$ret$14);
|
|
4287
4319
|
}
|
|
@@ -4290,31 +4322,31 @@
|
|
|
4290
4322
|
tmp_11 = emptyList();
|
|
4291
4323
|
}
|
|
4292
4324
|
var headers = tmp_11;
|
|
4293
|
-
if (_this__u8e3s4.
|
|
4294
|
-
raise.e1r(_this__u8e3s4.
|
|
4325
|
+
if (_this__u8e3s4.i20_1.y1z_1 instanceof Arrow)
|
|
4326
|
+
raise.e1r(_this__u8e3s4.l20());
|
|
4295
4327
|
else {
|
|
4296
4328
|
var tmp$ret$15;
|
|
4297
4329
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
4298
4330
|
Companion_getInstance_5();
|
|
4299
|
-
var tmp12_invoke = _this__u8e3s4.
|
|
4331
|
+
var tmp12_invoke = _this__u8e3s4.i20_1;
|
|
4300
4332
|
tmp$ret$15 = new WrongTokenException(getKClass(Arrow), tmp12_invoke);
|
|
4301
4333
|
raise.d1r(tmp$ret$15);
|
|
4302
4334
|
}
|
|
4303
4335
|
// Inline function 'kotlin.also' call
|
|
4304
4336
|
var tmp_13;
|
|
4305
|
-
if (_this__u8e3s4.
|
|
4337
|
+
if (_this__u8e3s4.i20_1.y1z_1 instanceof LeftCurly) {
|
|
4306
4338
|
tmp_13 = Unit_getInstance();
|
|
4307
4339
|
} else {
|
|
4308
4340
|
var tmp$ret$16;
|
|
4309
4341
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
4310
4342
|
Companion_getInstance_5();
|
|
4311
|
-
var tmp14_invoke = _this__u8e3s4.
|
|
4343
|
+
var tmp14_invoke = _this__u8e3s4.i20_1;
|
|
4312
4344
|
tmp$ret$16 = new WrongTokenException(getKClass(LeftCurly), tmp14_invoke);
|
|
4313
4345
|
raise.d1r(tmp$ret$16);
|
|
4314
4346
|
}
|
|
4315
4347
|
// Inline function 'kotlin.contracts.contract' call
|
|
4316
4348
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointDefinition.<anonymous>.<anonymous>' call
|
|
4317
|
-
raise.e1r(_this__u8e3s4.
|
|
4349
|
+
raise.e1r(_this__u8e3s4.l20());
|
|
4318
4350
|
var responses = raise.e1r(parseEndpointResponses(_this__u8e3s4, $this));
|
|
4319
4351
|
var res = new Endpoint(name, method, segments, queryParams, headers, emptyList(), requests, responses);
|
|
4320
4352
|
raise.b1r();
|
|
@@ -4352,15 +4384,15 @@
|
|
|
4352
4384
|
try {
|
|
4353
4385
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4354
4386
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointSegments.<anonymous>' call
|
|
4355
|
-
$this.
|
|
4356
|
-
var tmp0_subject = _this__u8e3s4.
|
|
4387
|
+
$this.n20(_this__u8e3s4.i20_1);
|
|
4388
|
+
var tmp0_subject = _this__u8e3s4.i20_1.y1z_1;
|
|
4357
4389
|
var tmp_0;
|
|
4358
4390
|
if (tmp0_subject instanceof Path_0) {
|
|
4359
4391
|
// Inline function 'kotlin.also' call
|
|
4360
|
-
var tmp0_also = new Literal_0(drop(_this__u8e3s4.
|
|
4392
|
+
var tmp0_also = new Literal_0(drop(_this__u8e3s4.i20_1.x1z_1, 1));
|
|
4361
4393
|
// Inline function 'kotlin.contracts.contract' call
|
|
4362
4394
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointSegments.<anonymous>.<anonymous>' call
|
|
4363
|
-
raise.e1r(_this__u8e3s4.
|
|
4395
|
+
raise.e1r(_this__u8e3s4.l20());
|
|
4364
4396
|
tmp_0 = tmp0_also;
|
|
4365
4397
|
} else {
|
|
4366
4398
|
if (tmp0_subject instanceof ForwardSlash) {
|
|
@@ -4369,7 +4401,7 @@
|
|
|
4369
4401
|
var tmp$ret$1;
|
|
4370
4402
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
4371
4403
|
Companion_getInstance_5();
|
|
4372
|
-
var tmp2_invoke = _this__u8e3s4.
|
|
4404
|
+
var tmp2_invoke = _this__u8e3s4.i20_1;
|
|
4373
4405
|
tmp$ret$1 = new WrongTokenException(getKClass(Path_0), tmp2_invoke);
|
|
4374
4406
|
raise.d1r(tmp$ret$1);
|
|
4375
4407
|
}
|
|
@@ -4410,66 +4442,66 @@
|
|
|
4410
4442
|
try {
|
|
4411
4443
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4412
4444
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointSegmentParam.<anonymous>' call
|
|
4413
|
-
raise.e1r(_this__u8e3s4.
|
|
4414
|
-
$this.
|
|
4415
|
-
if (_this__u8e3s4.
|
|
4416
|
-
raise.e1r(_this__u8e3s4.
|
|
4445
|
+
raise.e1r(_this__u8e3s4.l20());
|
|
4446
|
+
$this.n20(_this__u8e3s4.i20_1);
|
|
4447
|
+
if (_this__u8e3s4.i20_1.y1z_1 instanceof LeftCurly)
|
|
4448
|
+
raise.e1r(_this__u8e3s4.l20());
|
|
4417
4449
|
else {
|
|
4418
4450
|
var tmp$ret$0;
|
|
4419
4451
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
4420
4452
|
Companion_getInstance_5();
|
|
4421
|
-
var tmp1_invoke = _this__u8e3s4.
|
|
4453
|
+
var tmp1_invoke = _this__u8e3s4.i20_1;
|
|
4422
4454
|
tmp$ret$0 = new WrongTokenException(getKClass(LeftCurly), tmp1_invoke);
|
|
4423
4455
|
raise.d1r(tmp$ret$0);
|
|
4424
4456
|
}
|
|
4425
4457
|
var tmp_0;
|
|
4426
|
-
if (_this__u8e3s4.
|
|
4458
|
+
if (_this__u8e3s4.i20_1.y1z_1 instanceof CustomValue) {
|
|
4427
4459
|
// Inline function 'kotlin.also' call
|
|
4428
|
-
var tmp2_also = Companion_getInstance_6().
|
|
4460
|
+
var tmp2_also = Companion_getInstance_6().n1z(_this__u8e3s4.i20_1.x1z_1);
|
|
4429
4461
|
// Inline function 'kotlin.contracts.contract' call
|
|
4430
4462
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointSegmentParam.<anonymous>.<anonymous>' call
|
|
4431
|
-
raise.e1r(_this__u8e3s4.
|
|
4463
|
+
raise.e1r(_this__u8e3s4.l20());
|
|
4432
4464
|
tmp_0 = tmp2_also;
|
|
4433
4465
|
} else {
|
|
4434
4466
|
var tmp$ret$2;
|
|
4435
4467
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
4436
4468
|
Companion_getInstance_5();
|
|
4437
|
-
var tmp4_invoke = _this__u8e3s4.
|
|
4469
|
+
var tmp4_invoke = _this__u8e3s4.i20_1;
|
|
4438
4470
|
tmp$ret$2 = new WrongTokenException(getKClass(CustomValue), tmp4_invoke);
|
|
4439
4471
|
raise.d1r(tmp$ret$2);
|
|
4440
4472
|
}
|
|
4441
4473
|
var identifier = tmp_0;
|
|
4442
|
-
if (_this__u8e3s4.
|
|
4443
|
-
raise.e1r(_this__u8e3s4.
|
|
4474
|
+
if (_this__u8e3s4.i20_1.y1z_1 instanceof Colon)
|
|
4475
|
+
raise.e1r(_this__u8e3s4.l20());
|
|
4444
4476
|
else {
|
|
4445
4477
|
var tmp$ret$3;
|
|
4446
4478
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
4447
4479
|
Companion_getInstance_5();
|
|
4448
|
-
var tmp6_invoke = _this__u8e3s4.
|
|
4480
|
+
var tmp6_invoke = _this__u8e3s4.i20_1;
|
|
4449
4481
|
tmp$ret$3 = new WrongTokenException(getKClass(Colon), tmp6_invoke);
|
|
4450
4482
|
raise.d1r(tmp$ret$3);
|
|
4451
4483
|
}
|
|
4452
|
-
var tmp3_subject = _this__u8e3s4.
|
|
4484
|
+
var tmp3_subject = _this__u8e3s4.i20_1.y1z_1;
|
|
4453
4485
|
var tmp_1;
|
|
4454
4486
|
if (isInterface(tmp3_subject, WirespecType)) {
|
|
4455
|
-
var tmp_2 = _this__u8e3s4.
|
|
4456
|
-
tmp_1 = raise.e1r(parseReference(_this__u8e3s4, $this, isInterface(tmp_2, WirespecType) ? tmp_2 : THROW_CCE(), _this__u8e3s4.
|
|
4487
|
+
var tmp_2 = _this__u8e3s4.i20_1.y1z_1;
|
|
4488
|
+
tmp_1 = raise.e1r(parseReference(_this__u8e3s4, $this, isInterface(tmp_2, WirespecType) ? tmp_2 : THROW_CCE(), _this__u8e3s4.i20_1.x1z_1));
|
|
4457
4489
|
} else {
|
|
4458
4490
|
var tmp$ret$4;
|
|
4459
4491
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
4460
4492
|
Companion_getInstance_5();
|
|
4461
|
-
var tmp8_invoke = _this__u8e3s4.
|
|
4493
|
+
var tmp8_invoke = _this__u8e3s4.i20_1;
|
|
4462
4494
|
tmp$ret$4 = new WrongTokenException(getKClass(WirespecType), tmp8_invoke);
|
|
4463
4495
|
raise.d1r(tmp$ret$4);
|
|
4464
4496
|
}
|
|
4465
4497
|
var reference = tmp_1;
|
|
4466
|
-
if (_this__u8e3s4.
|
|
4467
|
-
raise.e1r(_this__u8e3s4.
|
|
4498
|
+
if (_this__u8e3s4.i20_1.y1z_1 instanceof RightCurly)
|
|
4499
|
+
raise.e1r(_this__u8e3s4.l20());
|
|
4468
4500
|
else {
|
|
4469
4501
|
var tmp$ret$5;
|
|
4470
4502
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
4471
4503
|
Companion_getInstance_5();
|
|
4472
|
-
var tmp10_invoke = _this__u8e3s4.
|
|
4504
|
+
var tmp10_invoke = _this__u8e3s4.i20_1;
|
|
4473
4505
|
tmp$ret$5 = new WrongTokenException(getKClass(RightCurly), tmp10_invoke);
|
|
4474
4506
|
raise.d1r(tmp$ret$5);
|
|
4475
4507
|
}
|
|
@@ -4509,40 +4541,40 @@
|
|
|
4509
4541
|
try {
|
|
4510
4542
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4511
4543
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointResponses.<anonymous>' call
|
|
4512
|
-
$this.
|
|
4544
|
+
$this.n20(_this__u8e3s4.i20_1);
|
|
4513
4545
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
4514
4546
|
var responses = ArrayList_init_$Create$_0();
|
|
4515
4547
|
$l$loop: while (true) {
|
|
4516
|
-
var tmp_0 = _this__u8e3s4.
|
|
4548
|
+
var tmp_0 = _this__u8e3s4.i20_1.y1z_1;
|
|
4517
4549
|
if (!!(tmp_0 instanceof RightCurly)) {
|
|
4518
4550
|
break $l$loop;
|
|
4519
4551
|
}
|
|
4520
|
-
if (_this__u8e3s4.
|
|
4521
|
-
responses.s(raise.e1r(parseEndpointResponse(_this__u8e3s4, $this, _this__u8e3s4.
|
|
4552
|
+
if (_this__u8e3s4.i20_1.y1z_1 instanceof StatusCode) {
|
|
4553
|
+
responses.s(raise.e1r(parseEndpointResponse(_this__u8e3s4, $this, _this__u8e3s4.i20_1.x1z_1)));
|
|
4522
4554
|
} else {
|
|
4523
4555
|
var tmp$ret$1;
|
|
4524
4556
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
4525
4557
|
Companion_getInstance_5();
|
|
4526
|
-
var tmp1_invoke = _this__u8e3s4.
|
|
4558
|
+
var tmp1_invoke = _this__u8e3s4.i20_1;
|
|
4527
4559
|
tmp$ret$1 = new WrongTokenException(getKClass(StatusCode), tmp1_invoke);
|
|
4528
4560
|
raise.d1r(tmp$ret$1);
|
|
4529
4561
|
}
|
|
4530
4562
|
}
|
|
4531
4563
|
// Inline function 'kotlin.also' call
|
|
4532
4564
|
var tmp_1;
|
|
4533
|
-
if (_this__u8e3s4.
|
|
4565
|
+
if (_this__u8e3s4.i20_1.y1z_1 instanceof RightCurly) {
|
|
4534
4566
|
tmp_1 = Unit_getInstance();
|
|
4535
4567
|
} else {
|
|
4536
4568
|
var tmp$ret$2;
|
|
4537
4569
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
4538
4570
|
Companion_getInstance_5();
|
|
4539
|
-
var tmp3_invoke = _this__u8e3s4.
|
|
4571
|
+
var tmp3_invoke = _this__u8e3s4.i20_1;
|
|
4540
4572
|
tmp$ret$2 = new WrongTokenException(getKClass(RightCurly), tmp3_invoke);
|
|
4541
4573
|
raise.d1r(tmp$ret$2);
|
|
4542
4574
|
}
|
|
4543
4575
|
// Inline function 'kotlin.contracts.contract' call
|
|
4544
4576
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointResponses.<anonymous>.<anonymous>' call
|
|
4545
|
-
raise.e1r(_this__u8e3s4.
|
|
4577
|
+
raise.e1r(_this__u8e3s4.l20());
|
|
4546
4578
|
var res = toList(responses);
|
|
4547
4579
|
raise.b1r();
|
|
4548
4580
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
@@ -4579,28 +4611,28 @@
|
|
|
4579
4611
|
try {
|
|
4580
4612
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4581
4613
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointResponse.<anonymous>' call
|
|
4582
|
-
raise.e1r(_this__u8e3s4.
|
|
4583
|
-
$this.
|
|
4584
|
-
if (!(_this__u8e3s4.
|
|
4614
|
+
raise.e1r(_this__u8e3s4.l20());
|
|
4615
|
+
$this.n20(_this__u8e3s4.i20_1);
|
|
4616
|
+
if (!(_this__u8e3s4.i20_1.y1z_1 instanceof Arrow)) {
|
|
4585
4617
|
var tmp$ret$0;
|
|
4586
4618
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
4587
4619
|
Companion_getInstance_5();
|
|
4588
|
-
var tmp1_invoke = _this__u8e3s4.
|
|
4620
|
+
var tmp1_invoke = _this__u8e3s4.i20_1;
|
|
4589
4621
|
tmp$ret$0 = new WrongTokenException(getKClass(Arrow), tmp1_invoke);
|
|
4590
4622
|
raise.d1r(tmp$ret$0);
|
|
4591
4623
|
}
|
|
4592
|
-
raise.e1r(_this__u8e3s4.
|
|
4593
|
-
$this.
|
|
4594
|
-
var tmp1_subject = _this__u8e3s4.
|
|
4624
|
+
raise.e1r(_this__u8e3s4.l20());
|
|
4625
|
+
$this.n20(_this__u8e3s4.i20_1);
|
|
4626
|
+
var tmp1_subject = _this__u8e3s4.i20_1.y1z_1;
|
|
4595
4627
|
var tmp_0;
|
|
4596
4628
|
if (isInterface(tmp1_subject, WirespecType)) {
|
|
4597
|
-
var tmp_1 = _this__u8e3s4.
|
|
4598
|
-
tmp_0 = raise.e1r(parseContent(_this__u8e3s4, $this, isInterface(tmp_1, WirespecType) ? tmp_1 : THROW_CCE(), _this__u8e3s4.
|
|
4629
|
+
var tmp_1 = _this__u8e3s4.i20_1.y1z_1;
|
|
4630
|
+
tmp_0 = raise.e1r(parseContent(_this__u8e3s4, $this, isInterface(tmp_1, WirespecType) ? tmp_1 : THROW_CCE(), _this__u8e3s4.i20_1.x1z_1));
|
|
4599
4631
|
} else {
|
|
4600
4632
|
var tmp$ret$1;
|
|
4601
4633
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
4602
4634
|
Companion_getInstance_5();
|
|
4603
|
-
var tmp3_invoke = _this__u8e3s4.
|
|
4635
|
+
var tmp3_invoke = _this__u8e3s4.i20_1;
|
|
4604
4636
|
tmp$ret$1 = new WrongTokenException(getKClass(WirespecType), tmp3_invoke);
|
|
4605
4637
|
raise.d1r(tmp$ret$1);
|
|
4606
4638
|
}
|
|
@@ -4641,7 +4673,7 @@
|
|
|
4641
4673
|
try {
|
|
4642
4674
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4643
4675
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseContent.<anonymous>' call
|
|
4644
|
-
$this.
|
|
4676
|
+
$this.n20(_this__u8e3s4.i20_1);
|
|
4645
4677
|
var res = new Content_0('application/json', raise.e1r(parseReference(_this__u8e3s4, $this, wsType, value)));
|
|
4646
4678
|
raise.b1r();
|
|
4647
4679
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
@@ -4678,15 +4710,16 @@
|
|
|
4678
4710
|
try {
|
|
4679
4711
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4680
4712
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseReference.<anonymous>' call
|
|
4681
|
-
|
|
4682
|
-
|
|
4713
|
+
var previousToken = _this__u8e3s4.i20_1;
|
|
4714
|
+
raise.e1r(_this__u8e3s4.l20());
|
|
4715
|
+
$this.n20(_this__u8e3s4.i20_1);
|
|
4683
4716
|
// Inline function 'kotlin.also' call
|
|
4684
|
-
var tmp_0 = _this__u8e3s4.
|
|
4717
|
+
var tmp_0 = _this__u8e3s4.i20_1.y1z_1;
|
|
4685
4718
|
var tmp0_also = tmp_0 instanceof Brackets;
|
|
4686
4719
|
// Inline function 'kotlin.contracts.contract' call
|
|
4687
4720
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseReference.<anonymous>.<anonymous>' call
|
|
4688
4721
|
if (tmp0_also)
|
|
4689
|
-
raise.e1r(_this__u8e3s4.
|
|
4722
|
+
raise.e1r(_this__u8e3s4.l20());
|
|
4690
4723
|
var isIterable = tmp0_also;
|
|
4691
4724
|
var tmp_1;
|
|
4692
4725
|
if (wsType instanceof WsString) {
|
|
@@ -4705,6 +4738,7 @@
|
|
|
4705
4738
|
tmp_1 = new Unit(isIterable);
|
|
4706
4739
|
} else {
|
|
4707
4740
|
if (wsType instanceof CustomType) {
|
|
4741
|
+
raise.e1r(_this__u8e3s4.s20(previousToken));
|
|
4708
4742
|
tmp_1 = new Custom_0(value, isIterable);
|
|
4709
4743
|
} else {
|
|
4710
4744
|
noWhenBranchMatchedException();
|
|
@@ -4741,9 +4775,9 @@
|
|
|
4741
4775
|
}
|
|
4742
4776
|
function EndpointParser(logger) {
|
|
4743
4777
|
AbstractParser.call(this, logger);
|
|
4744
|
-
this.
|
|
4778
|
+
this.p20_1 = new TypeParser(logger);
|
|
4745
4779
|
}
|
|
4746
|
-
protoOf(EndpointParser).
|
|
4780
|
+
protoOf(EndpointParser).t20 = function (_this__u8e3s4) {
|
|
4747
4781
|
// Inline function 'arrow.core.raise.either' call
|
|
4748
4782
|
// Inline function 'arrow.core.raise.fold' call
|
|
4749
4783
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -4754,20 +4788,20 @@
|
|
|
4754
4788
|
try {
|
|
4755
4789
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4756
4790
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpoint.<anonymous>' call
|
|
4757
|
-
raise.e1r(_this__u8e3s4.
|
|
4758
|
-
this.
|
|
4791
|
+
raise.e1r(_this__u8e3s4.l20());
|
|
4792
|
+
this.n20(_this__u8e3s4.i20_1);
|
|
4759
4793
|
var tmp_0;
|
|
4760
|
-
if (_this__u8e3s4.
|
|
4761
|
-
tmp_0 = raise.e1r(parseEndpointDefinition(_this__u8e3s4, this, _this__u8e3s4.
|
|
4794
|
+
if (_this__u8e3s4.i20_1.y1z_1 instanceof CustomType) {
|
|
4795
|
+
tmp_0 = raise.e1r(parseEndpointDefinition(_this__u8e3s4, this, _this__u8e3s4.i20_1.x1z_1));
|
|
4762
4796
|
} else {
|
|
4763
4797
|
// Inline function 'kotlin.also' call
|
|
4764
4798
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
4765
4799
|
Companion_getInstance_5();
|
|
4766
|
-
var tmp1_invoke = _this__u8e3s4.
|
|
4800
|
+
var tmp1_invoke = _this__u8e3s4.i20_1;
|
|
4767
4801
|
var tmp2_also = new WrongTokenException(getKClass(CustomType), tmp1_invoke);
|
|
4768
4802
|
// Inline function 'kotlin.contracts.contract' call
|
|
4769
4803
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpoint.<anonymous>.<anonymous>' call
|
|
4770
|
-
raise.e1r(_this__u8e3s4.
|
|
4804
|
+
raise.e1r(_this__u8e3s4.l20());
|
|
4771
4805
|
raise.d1r(tmp2_also);
|
|
4772
4806
|
}
|
|
4773
4807
|
var res = tmp_0;
|
|
@@ -4806,37 +4840,37 @@
|
|
|
4806
4840
|
try {
|
|
4807
4841
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4808
4842
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EnumParser.parseEnumTypeDefinition.<anonymous>' call
|
|
4809
|
-
raise.e1r(_this__u8e3s4.
|
|
4810
|
-
$this.
|
|
4843
|
+
raise.e1r(_this__u8e3s4.l20());
|
|
4844
|
+
$this.n20(_this__u8e3s4.i20_1);
|
|
4811
4845
|
// Inline function 'kotlin.also' call
|
|
4812
4846
|
var tmp_0;
|
|
4813
|
-
if (_this__u8e3s4.
|
|
4847
|
+
if (_this__u8e3s4.i20_1.y1z_1 instanceof LeftCurly) {
|
|
4814
4848
|
tmp_0 = new Enum_0(typeName, raise.e1r(parseEnumTypeEntries(_this__u8e3s4, $this)));
|
|
4815
4849
|
} else {
|
|
4816
4850
|
// Inline function 'kotlin.also' call
|
|
4817
4851
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
4818
4852
|
Companion_getInstance_5();
|
|
4819
|
-
var tmp1_invoke = _this__u8e3s4.
|
|
4853
|
+
var tmp1_invoke = _this__u8e3s4.i20_1;
|
|
4820
4854
|
var tmp2_also = new WrongTokenException(getKClass(LeftCurly), tmp1_invoke);
|
|
4821
4855
|
// Inline function 'kotlin.contracts.contract' call
|
|
4822
4856
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EnumParser.parseEnumTypeDefinition.<anonymous>.<anonymous>' call
|
|
4823
|
-
raise.e1r(_this__u8e3s4.
|
|
4857
|
+
raise.e1r(_this__u8e3s4.l20());
|
|
4824
4858
|
raise.d1r(tmp2_also);
|
|
4825
4859
|
}
|
|
4826
4860
|
var tmp3_also = tmp_0;
|
|
4827
4861
|
// Inline function 'kotlin.contracts.contract' call
|
|
4828
4862
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EnumParser.parseEnumTypeDefinition.<anonymous>.<anonymous>' call
|
|
4829
|
-
if (_this__u8e3s4.
|
|
4830
|
-
raise.e1r(_this__u8e3s4.
|
|
4863
|
+
if (_this__u8e3s4.i20_1.y1z_1 instanceof RightCurly)
|
|
4864
|
+
raise.e1r(_this__u8e3s4.l20());
|
|
4831
4865
|
else {
|
|
4832
4866
|
// Inline function 'kotlin.also' call
|
|
4833
4867
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
4834
4868
|
Companion_getInstance_5();
|
|
4835
|
-
var tmp1_invoke_0 = _this__u8e3s4.
|
|
4869
|
+
var tmp1_invoke_0 = _this__u8e3s4.i20_1;
|
|
4836
4870
|
var tmp2_also_0 = new WrongTokenException(getKClass(RightCurly), tmp1_invoke_0);
|
|
4837
4871
|
// Inline function 'kotlin.contracts.contract' call
|
|
4838
4872
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EnumParser.parseEnumTypeDefinition.<anonymous>.<anonymous>.<anonymous>' call
|
|
4839
|
-
raise.e1r(_this__u8e3s4.
|
|
4873
|
+
raise.e1r(_this__u8e3s4.l20());
|
|
4840
4874
|
raise.d1r(tmp2_also_0);
|
|
4841
4875
|
}
|
|
4842
4876
|
var res = tmp3_also;
|
|
@@ -4875,34 +4909,34 @@
|
|
|
4875
4909
|
try {
|
|
4876
4910
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4877
4911
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EnumParser.parseEnumTypeEntries.<anonymous>' call
|
|
4878
|
-
raise.e1r(_this__u8e3s4.
|
|
4879
|
-
$this.
|
|
4912
|
+
raise.e1r(_this__u8e3s4.l20());
|
|
4913
|
+
$this.n20(_this__u8e3s4.i20_1);
|
|
4880
4914
|
var tmp_0;
|
|
4881
|
-
if (_this__u8e3s4.
|
|
4915
|
+
if (_this__u8e3s4.i20_1.y1z_1 instanceof CustomType) {
|
|
4882
4916
|
// Inline function 'kotlin.apply' call
|
|
4883
4917
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
4884
4918
|
var tmp0_apply = ArrayList_init_$Create$_0();
|
|
4885
4919
|
// Inline function 'kotlin.contracts.contract' call
|
|
4886
4920
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EnumParser.parseEnumTypeEntries.<anonymous>.<anonymous>' call
|
|
4887
|
-
tmp0_apply.s(_this__u8e3s4.
|
|
4888
|
-
raise.e1r(_this__u8e3s4.
|
|
4889
|
-
while (equals(_this__u8e3s4.
|
|
4890
|
-
raise.e1r(_this__u8e3s4.
|
|
4891
|
-
if (_this__u8e3s4.
|
|
4921
|
+
tmp0_apply.s(_this__u8e3s4.i20_1.x1z_1);
|
|
4922
|
+
raise.e1r(_this__u8e3s4.l20());
|
|
4923
|
+
while (equals(_this__u8e3s4.i20_1.y1z_1, Comma_getInstance())) {
|
|
4924
|
+
raise.e1r(_this__u8e3s4.l20());
|
|
4925
|
+
if (_this__u8e3s4.i20_1.y1z_1 instanceof CustomType) {
|
|
4892
4926
|
// Inline function 'kotlin.also' call
|
|
4893
|
-
tmp0_apply.s(_this__u8e3s4.
|
|
4927
|
+
tmp0_apply.s(_this__u8e3s4.i20_1.x1z_1);
|
|
4894
4928
|
// Inline function 'kotlin.contracts.contract' call
|
|
4895
4929
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EnumParser.parseEnumTypeEntries.<anonymous>.<anonymous>.<anonymous>' call
|
|
4896
|
-
raise.e1r(_this__u8e3s4.
|
|
4930
|
+
raise.e1r(_this__u8e3s4.l20());
|
|
4897
4931
|
} else {
|
|
4898
4932
|
// Inline function 'kotlin.also' call
|
|
4899
4933
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
4900
4934
|
Companion_getInstance_5();
|
|
4901
|
-
var tmp2_invoke = _this__u8e3s4.
|
|
4935
|
+
var tmp2_invoke = _this__u8e3s4.i20_1;
|
|
4902
4936
|
var tmp3_also = new WrongTokenException(getKClass(CustomType), tmp2_invoke);
|
|
4903
4937
|
// Inline function 'kotlin.contracts.contract' call
|
|
4904
4938
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EnumParser.parseEnumTypeEntries.<anonymous>.<anonymous>.<anonymous>' call
|
|
4905
|
-
raise.e1r(_this__u8e3s4.
|
|
4939
|
+
raise.e1r(_this__u8e3s4.l20());
|
|
4906
4940
|
raise.d1r(tmp3_also);
|
|
4907
4941
|
}
|
|
4908
4942
|
}
|
|
@@ -4911,11 +4945,11 @@
|
|
|
4911
4945
|
// Inline function 'kotlin.also' call
|
|
4912
4946
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
4913
4947
|
Companion_getInstance_5();
|
|
4914
|
-
var tmp2_invoke_0 = _this__u8e3s4.
|
|
4948
|
+
var tmp2_invoke_0 = _this__u8e3s4.i20_1;
|
|
4915
4949
|
var tmp3_also_0 = new WrongTokenException(getKClass(CustomType), tmp2_invoke_0);
|
|
4916
4950
|
// Inline function 'kotlin.contracts.contract' call
|
|
4917
4951
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EnumParser.parseEnumTypeEntries.<anonymous>.<anonymous>' call
|
|
4918
|
-
raise.e1r(_this__u8e3s4.
|
|
4952
|
+
raise.e1r(_this__u8e3s4.l20());
|
|
4919
4953
|
raise.d1r(tmp3_also_0);
|
|
4920
4954
|
}
|
|
4921
4955
|
var res = toSet(tmp_0);
|
|
@@ -4946,7 +4980,7 @@
|
|
|
4946
4980
|
function EnumParser(logger) {
|
|
4947
4981
|
AbstractParser.call(this, logger);
|
|
4948
4982
|
}
|
|
4949
|
-
protoOf(EnumParser).
|
|
4983
|
+
protoOf(EnumParser).v20 = function (_this__u8e3s4) {
|
|
4950
4984
|
// Inline function 'arrow.core.raise.either' call
|
|
4951
4985
|
// Inline function 'arrow.core.raise.fold' call
|
|
4952
4986
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -4957,20 +4991,20 @@
|
|
|
4957
4991
|
try {
|
|
4958
4992
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4959
4993
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EnumParser.parseEnum.<anonymous>' call
|
|
4960
|
-
raise.e1r(_this__u8e3s4.
|
|
4961
|
-
this.
|
|
4994
|
+
raise.e1r(_this__u8e3s4.l20());
|
|
4995
|
+
this.n20(_this__u8e3s4.i20_1);
|
|
4962
4996
|
var tmp_0;
|
|
4963
|
-
if (_this__u8e3s4.
|
|
4964
|
-
tmp_0 = raise.e1r(parseEnumTypeDefinition(_this__u8e3s4, this, _this__u8e3s4.
|
|
4997
|
+
if (_this__u8e3s4.i20_1.y1z_1 instanceof CustomType) {
|
|
4998
|
+
tmp_0 = raise.e1r(parseEnumTypeDefinition(_this__u8e3s4, this, _this__u8e3s4.i20_1.x1z_1));
|
|
4965
4999
|
} else {
|
|
4966
5000
|
// Inline function 'kotlin.also' call
|
|
4967
5001
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
4968
5002
|
Companion_getInstance_5();
|
|
4969
|
-
var tmp1_invoke = _this__u8e3s4.
|
|
5003
|
+
var tmp1_invoke = _this__u8e3s4.i20_1;
|
|
4970
5004
|
var tmp2_also = new WrongTokenException(getKClass(CustomType), tmp1_invoke);
|
|
4971
5005
|
// Inline function 'kotlin.contracts.contract' call
|
|
4972
5006
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EnumParser.parseEnum.<anonymous>.<anonymous>' call
|
|
4973
|
-
raise.e1r(_this__u8e3s4.
|
|
5007
|
+
raise.e1r(_this__u8e3s4.l20());
|
|
4974
5008
|
raise.d1r(tmp2_also);
|
|
4975
5009
|
}
|
|
4976
5010
|
var res = tmp_0;
|
|
@@ -5001,7 +5035,7 @@
|
|
|
5001
5035
|
function Companion_5() {
|
|
5002
5036
|
Companion_instance_5 = this;
|
|
5003
5037
|
}
|
|
5004
|
-
protoOf(Companion_5).
|
|
5038
|
+
protoOf(Companion_5).n1z = function (s) {
|
|
5005
5039
|
// Inline function 'kotlin.let' call
|
|
5006
5040
|
// Inline function 'kotlin.run' call
|
|
5007
5041
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -5051,29 +5085,32 @@
|
|
|
5051
5085
|
}
|
|
5052
5086
|
function Any(isIterable, isMap) {
|
|
5053
5087
|
isMap = isMap === VOID ? false : isMap;
|
|
5054
|
-
this.
|
|
5055
|
-
this.
|
|
5088
|
+
this.w20_1 = isIterable;
|
|
5089
|
+
this.x20_1 = isMap;
|
|
5056
5090
|
}
|
|
5057
5091
|
protoOf(Any).g1s = function () {
|
|
5092
|
+
return this.w20_1;
|
|
5093
|
+
};
|
|
5094
|
+
protoOf(Any).p1z = function () {
|
|
5058
5095
|
return this.x20_1;
|
|
5059
5096
|
};
|
|
5060
|
-
protoOf(Any).
|
|
5061
|
-
return
|
|
5097
|
+
protoOf(Any).p2 = function () {
|
|
5098
|
+
return 'Any';
|
|
5062
5099
|
};
|
|
5063
|
-
protoOf(Any).
|
|
5100
|
+
protoOf(Any).y20 = function (isIterable, isMap) {
|
|
5064
5101
|
return new Any(isIterable, isMap);
|
|
5065
5102
|
};
|
|
5066
|
-
protoOf(Any).
|
|
5067
|
-
isIterable = isIterable === VOID ? this.
|
|
5068
|
-
isMap = isMap === VOID ? this.
|
|
5069
|
-
return $super === VOID ? this.
|
|
5103
|
+
protoOf(Any).z20 = function (isIterable, isMap, $super) {
|
|
5104
|
+
isIterable = isIterable === VOID ? this.w20_1 : isIterable;
|
|
5105
|
+
isMap = isMap === VOID ? this.x20_1 : isMap;
|
|
5106
|
+
return $super === VOID ? this.y20(isIterable, isMap) : $super.y20.call(this, isIterable, isMap);
|
|
5070
5107
|
};
|
|
5071
5108
|
protoOf(Any).toString = function () {
|
|
5072
|
-
return 'Any(isIterable=' + this.
|
|
5109
|
+
return 'Any(isIterable=' + this.w20_1 + ', isMap=' + this.x20_1 + ')';
|
|
5073
5110
|
};
|
|
5074
5111
|
protoOf(Any).hashCode = function () {
|
|
5075
|
-
var result = this.
|
|
5076
|
-
result = imul(result, 31) + (this.
|
|
5112
|
+
var result = this.w20_1 | 0;
|
|
5113
|
+
result = imul(result, 31) + (this.x20_1 | 0) | 0;
|
|
5077
5114
|
return result;
|
|
5078
5115
|
};
|
|
5079
5116
|
protoOf(Any).equals = function (other) {
|
|
@@ -5082,37 +5119,40 @@
|
|
|
5082
5119
|
if (!(other instanceof Any))
|
|
5083
5120
|
return false;
|
|
5084
5121
|
var tmp0_other_with_cast = other instanceof Any ? other : THROW_CCE();
|
|
5085
|
-
if (!(this.
|
|
5122
|
+
if (!(this.w20_1 === tmp0_other_with_cast.w20_1))
|
|
5086
5123
|
return false;
|
|
5087
|
-
if (!(this.
|
|
5124
|
+
if (!(this.x20_1 === tmp0_other_with_cast.x20_1))
|
|
5088
5125
|
return false;
|
|
5089
5126
|
return true;
|
|
5090
5127
|
};
|
|
5091
5128
|
function Unit(isIterable, isMap) {
|
|
5092
5129
|
isMap = isMap === VOID ? false : isMap;
|
|
5093
|
-
this.
|
|
5094
|
-
this.
|
|
5130
|
+
this.a21_1 = isIterable;
|
|
5131
|
+
this.b21_1 = isMap;
|
|
5095
5132
|
}
|
|
5096
5133
|
protoOf(Unit).g1s = function () {
|
|
5134
|
+
return this.a21_1;
|
|
5135
|
+
};
|
|
5136
|
+
protoOf(Unit).p1z = function () {
|
|
5097
5137
|
return this.b21_1;
|
|
5098
5138
|
};
|
|
5099
|
-
protoOf(Unit).
|
|
5100
|
-
return
|
|
5139
|
+
protoOf(Unit).p2 = function () {
|
|
5140
|
+
return 'Unit';
|
|
5101
5141
|
};
|
|
5102
|
-
protoOf(Unit).
|
|
5142
|
+
protoOf(Unit).y20 = function (isIterable, isMap) {
|
|
5103
5143
|
return new Unit(isIterable, isMap);
|
|
5104
5144
|
};
|
|
5105
|
-
protoOf(Unit).
|
|
5106
|
-
isIterable = isIterable === VOID ? this.
|
|
5107
|
-
isMap = isMap === VOID ? this.
|
|
5108
|
-
return $super === VOID ? this.
|
|
5145
|
+
protoOf(Unit).c21 = function (isIterable, isMap, $super) {
|
|
5146
|
+
isIterable = isIterable === VOID ? this.a21_1 : isIterable;
|
|
5147
|
+
isMap = isMap === VOID ? this.b21_1 : isMap;
|
|
5148
|
+
return $super === VOID ? this.y20(isIterable, isMap) : $super.y20.call(this, isIterable, isMap);
|
|
5109
5149
|
};
|
|
5110
5150
|
protoOf(Unit).toString = function () {
|
|
5111
|
-
return 'Unit(isIterable=' + this.
|
|
5151
|
+
return 'Unit(isIterable=' + this.a21_1 + ', isMap=' + this.b21_1 + ')';
|
|
5112
5152
|
};
|
|
5113
5153
|
protoOf(Unit).hashCode = function () {
|
|
5114
|
-
var result = this.
|
|
5115
|
-
result = imul(result, 31) + (this.
|
|
5154
|
+
var result = this.a21_1 | 0;
|
|
5155
|
+
result = imul(result, 31) + (this.b21_1 | 0) | 0;
|
|
5116
5156
|
return result;
|
|
5117
5157
|
};
|
|
5118
5158
|
protoOf(Unit).equals = function (other) {
|
|
@@ -5121,43 +5161,43 @@
|
|
|
5121
5161
|
if (!(other instanceof Unit))
|
|
5122
5162
|
return false;
|
|
5123
5163
|
var tmp0_other_with_cast = other instanceof Unit ? other : THROW_CCE();
|
|
5124
|
-
if (!(this.
|
|
5164
|
+
if (!(this.a21_1 === tmp0_other_with_cast.a21_1))
|
|
5125
5165
|
return false;
|
|
5126
|
-
if (!(this.
|
|
5166
|
+
if (!(this.b21_1 === tmp0_other_with_cast.b21_1))
|
|
5127
5167
|
return false;
|
|
5128
5168
|
return true;
|
|
5129
5169
|
};
|
|
5130
5170
|
function Custom_0(value, isIterable, isMap) {
|
|
5131
5171
|
isMap = isMap === VOID ? false : isMap;
|
|
5132
|
-
this.
|
|
5133
|
-
this.
|
|
5134
|
-
this.
|
|
5172
|
+
this.d21_1 = value;
|
|
5173
|
+
this.e21_1 = isIterable;
|
|
5174
|
+
this.f21_1 = isMap;
|
|
5135
5175
|
}
|
|
5136
5176
|
protoOf(Custom_0).p2 = function () {
|
|
5137
|
-
return this.
|
|
5177
|
+
return this.d21_1;
|
|
5138
5178
|
};
|
|
5139
5179
|
protoOf(Custom_0).g1s = function () {
|
|
5140
|
-
return this.
|
|
5180
|
+
return this.e21_1;
|
|
5141
5181
|
};
|
|
5142
|
-
protoOf(Custom_0).
|
|
5143
|
-
return this.
|
|
5182
|
+
protoOf(Custom_0).p1z = function () {
|
|
5183
|
+
return this.f21_1;
|
|
5144
5184
|
};
|
|
5145
|
-
protoOf(Custom_0).
|
|
5185
|
+
protoOf(Custom_0).g21 = function (value, isIterable, isMap) {
|
|
5146
5186
|
return new Custom_0(value, isIterable, isMap);
|
|
5147
5187
|
};
|
|
5148
|
-
protoOf(Custom_0).
|
|
5149
|
-
value = value === VOID ? this.
|
|
5150
|
-
isIterable = isIterable === VOID ? this.
|
|
5151
|
-
isMap = isMap === VOID ? this.
|
|
5152
|
-
return $super === VOID ? this.
|
|
5188
|
+
protoOf(Custom_0).h21 = function (value, isIterable, isMap, $super) {
|
|
5189
|
+
value = value === VOID ? this.d21_1 : value;
|
|
5190
|
+
isIterable = isIterable === VOID ? this.e21_1 : isIterable;
|
|
5191
|
+
isMap = isMap === VOID ? this.f21_1 : isMap;
|
|
5192
|
+
return $super === VOID ? this.g21(value, isIterable, isMap) : $super.g21.call(this, value, isIterable, isMap);
|
|
5153
5193
|
};
|
|
5154
5194
|
protoOf(Custom_0).toString = function () {
|
|
5155
|
-
return 'Custom(value=' + this.
|
|
5195
|
+
return 'Custom(value=' + this.d21_1 + ', isIterable=' + this.e21_1 + ', isMap=' + this.f21_1 + ')';
|
|
5156
5196
|
};
|
|
5157
5197
|
protoOf(Custom_0).hashCode = function () {
|
|
5158
|
-
var result = getStringHashCode(this.
|
|
5159
|
-
result = imul(result, 31) + (this.
|
|
5160
|
-
result = imul(result, 31) + (this.
|
|
5198
|
+
var result = getStringHashCode(this.d21_1);
|
|
5199
|
+
result = imul(result, 31) + (this.e21_1 | 0) | 0;
|
|
5200
|
+
result = imul(result, 31) + (this.f21_1 | 0) | 0;
|
|
5161
5201
|
return result;
|
|
5162
5202
|
};
|
|
5163
5203
|
protoOf(Custom_0).equals = function (other) {
|
|
@@ -5166,11 +5206,11 @@
|
|
|
5166
5206
|
if (!(other instanceof Custom_0))
|
|
5167
5207
|
return false;
|
|
5168
5208
|
var tmp0_other_with_cast = other instanceof Custom_0 ? other : THROW_CCE();
|
|
5169
|
-
if (!(this.
|
|
5209
|
+
if (!(this.d21_1 === tmp0_other_with_cast.d21_1))
|
|
5170
5210
|
return false;
|
|
5171
|
-
if (!(this.
|
|
5211
|
+
if (!(this.e21_1 === tmp0_other_with_cast.e21_1))
|
|
5172
5212
|
return false;
|
|
5173
|
-
if (!(this.
|
|
5213
|
+
if (!(this.f21_1 === tmp0_other_with_cast.f21_1))
|
|
5174
5214
|
return false;
|
|
5175
5215
|
return true;
|
|
5176
5216
|
};
|
|
@@ -5184,17 +5224,20 @@
|
|
|
5184
5224
|
protoOf(Primitive_0).g1s = function () {
|
|
5185
5225
|
return this.l1y_1;
|
|
5186
5226
|
};
|
|
5187
|
-
protoOf(Primitive_0).
|
|
5227
|
+
protoOf(Primitive_0).p1z = function () {
|
|
5188
5228
|
return this.m1y_1;
|
|
5189
5229
|
};
|
|
5190
|
-
protoOf(Primitive_0).
|
|
5230
|
+
protoOf(Primitive_0).p2 = function () {
|
|
5231
|
+
return this.k1y_1.b9_1;
|
|
5232
|
+
};
|
|
5233
|
+
protoOf(Primitive_0).i21 = function (type, isIterable, isMap) {
|
|
5191
5234
|
return new Primitive_0(type, isIterable, isMap);
|
|
5192
5235
|
};
|
|
5193
|
-
protoOf(Primitive_0).
|
|
5236
|
+
protoOf(Primitive_0).j21 = function (type, isIterable, isMap, $super) {
|
|
5194
5237
|
type = type === VOID ? this.k1y_1 : type;
|
|
5195
5238
|
isIterable = isIterable === VOID ? this.l1y_1 : isIterable;
|
|
5196
5239
|
isMap = isMap === VOID ? this.m1y_1 : isMap;
|
|
5197
|
-
return $super === VOID ? this.
|
|
5240
|
+
return $super === VOID ? this.i21(type, isIterable, isMap) : $super.i21.call(this, type, isIterable, isMap);
|
|
5198
5241
|
};
|
|
5199
5242
|
protoOf(Primitive_0).toString = function () {
|
|
5200
5243
|
return 'Primitive(type=' + this.k1y_1 + ', isIterable=' + this.l1y_1 + ', isMap=' + this.m1y_1 + ')';
|
|
@@ -5247,14 +5290,14 @@
|
|
|
5247
5290
|
this.f1y_1 = reference;
|
|
5248
5291
|
this.g1y_1 = isNullable;
|
|
5249
5292
|
}
|
|
5250
|
-
protoOf(Field_0).
|
|
5293
|
+
protoOf(Field_0).k21 = function (identifier, reference, isNullable) {
|
|
5251
5294
|
return new Field_0(identifier, reference, isNullable);
|
|
5252
5295
|
};
|
|
5253
|
-
protoOf(Field_0).
|
|
5296
|
+
protoOf(Field_0).o1z = function (identifier, reference, isNullable, $super) {
|
|
5254
5297
|
identifier = identifier === VOID ? this.e1y_1 : identifier;
|
|
5255
5298
|
reference = reference === VOID ? this.f1y_1 : reference;
|
|
5256
5299
|
isNullable = isNullable === VOID ? this.g1y_1 : isNullable;
|
|
5257
|
-
return $super === VOID ? this.
|
|
5300
|
+
return $super === VOID ? this.k21(identifier, reference, isNullable) : $super.k21.call(this, identifier, reference, isNullable);
|
|
5258
5301
|
};
|
|
5259
5302
|
protoOf(Field_0).toString = function () {
|
|
5260
5303
|
return 'Field(identifier=' + this.e1y_1 + ', reference=' + this.f1y_1 + ', isNullable=' + this.g1y_1 + ')';
|
|
@@ -5384,16 +5427,16 @@
|
|
|
5384
5427
|
}
|
|
5385
5428
|
var $ENTRIES;
|
|
5386
5429
|
function Literal_0(value) {
|
|
5387
|
-
this.
|
|
5430
|
+
this.w1y_1 = value;
|
|
5388
5431
|
}
|
|
5389
5432
|
protoOf(Literal_0).p2 = function () {
|
|
5390
|
-
return this.
|
|
5433
|
+
return this.w1y_1;
|
|
5391
5434
|
};
|
|
5392
5435
|
protoOf(Literal_0).toString = function () {
|
|
5393
|
-
return 'Literal(value=' + this.
|
|
5436
|
+
return 'Literal(value=' + this.w1y_1 + ')';
|
|
5394
5437
|
};
|
|
5395
5438
|
protoOf(Literal_0).hashCode = function () {
|
|
5396
|
-
return getStringHashCode(this.
|
|
5439
|
+
return getStringHashCode(this.w1y_1);
|
|
5397
5440
|
};
|
|
5398
5441
|
protoOf(Literal_0).equals = function (other) {
|
|
5399
5442
|
if (this === other)
|
|
@@ -5401,20 +5444,20 @@
|
|
|
5401
5444
|
if (!(other instanceof Literal_0))
|
|
5402
5445
|
return false;
|
|
5403
5446
|
var tmp0_other_with_cast = other instanceof Literal_0 ? other : THROW_CCE();
|
|
5404
|
-
if (!(this.
|
|
5447
|
+
if (!(this.w1y_1 === tmp0_other_with_cast.w1y_1))
|
|
5405
5448
|
return false;
|
|
5406
5449
|
return true;
|
|
5407
5450
|
};
|
|
5408
5451
|
function Param(identifier, reference) {
|
|
5409
|
-
this.
|
|
5410
|
-
this.
|
|
5452
|
+
this.r1y_1 = identifier;
|
|
5453
|
+
this.s1y_1 = reference;
|
|
5411
5454
|
}
|
|
5412
5455
|
protoOf(Param).toString = function () {
|
|
5413
|
-
return 'Param(identifier=' + this.
|
|
5456
|
+
return 'Param(identifier=' + this.r1y_1 + ', reference=' + this.s1y_1 + ')';
|
|
5414
5457
|
};
|
|
5415
5458
|
protoOf(Param).hashCode = function () {
|
|
5416
|
-
var result = this.
|
|
5417
|
-
result = imul(result, 31) + hashCode(this.
|
|
5459
|
+
var result = this.r1y_1.hashCode();
|
|
5460
|
+
result = imul(result, 31) + hashCode(this.s1y_1) | 0;
|
|
5418
5461
|
return result;
|
|
5419
5462
|
};
|
|
5420
5463
|
protoOf(Param).equals = function (other) {
|
|
@@ -5423,9 +5466,9 @@
|
|
|
5423
5466
|
if (!(other instanceof Param))
|
|
5424
5467
|
return false;
|
|
5425
5468
|
var tmp0_other_with_cast = other instanceof Param ? other : THROW_CCE();
|
|
5426
|
-
if (!this.
|
|
5469
|
+
if (!this.r1y_1.equals(tmp0_other_with_cast.r1y_1))
|
|
5427
5470
|
return false;
|
|
5428
|
-
if (!equals(this.
|
|
5471
|
+
if (!equals(this.s1y_1, tmp0_other_with_cast.s1y_1))
|
|
5429
5472
|
return false;
|
|
5430
5473
|
return true;
|
|
5431
5474
|
};
|
|
@@ -5433,13 +5476,13 @@
|
|
|
5433
5476
|
Enum.call(this, name, ordinal);
|
|
5434
5477
|
}
|
|
5435
5478
|
function Request(content) {
|
|
5436
|
-
this.
|
|
5479
|
+
this.x1y_1 = content;
|
|
5437
5480
|
}
|
|
5438
5481
|
protoOf(Request).toString = function () {
|
|
5439
|
-
return 'Request(content=' + this.
|
|
5482
|
+
return 'Request(content=' + this.x1y_1 + ')';
|
|
5440
5483
|
};
|
|
5441
5484
|
protoOf(Request).hashCode = function () {
|
|
5442
|
-
return this.
|
|
5485
|
+
return this.x1y_1 == null ? 0 : this.x1y_1.hashCode();
|
|
5443
5486
|
};
|
|
5444
5487
|
protoOf(Request).equals = function (other) {
|
|
5445
5488
|
if (this === other)
|
|
@@ -5447,22 +5490,22 @@
|
|
|
5447
5490
|
if (!(other instanceof Request))
|
|
5448
5491
|
return false;
|
|
5449
5492
|
var tmp0_other_with_cast = other instanceof Request ? other : THROW_CCE();
|
|
5450
|
-
if (!equals(this.
|
|
5493
|
+
if (!equals(this.x1y_1, tmp0_other_with_cast.x1y_1))
|
|
5451
5494
|
return false;
|
|
5452
5495
|
return true;
|
|
5453
5496
|
};
|
|
5454
5497
|
function Response(status, headers, content) {
|
|
5455
|
-
this.
|
|
5456
|
-
this.
|
|
5457
|
-
this.
|
|
5498
|
+
this.z1y_1 = status;
|
|
5499
|
+
this.a1z_1 = headers;
|
|
5500
|
+
this.b1z_1 = content;
|
|
5458
5501
|
}
|
|
5459
5502
|
protoOf(Response).toString = function () {
|
|
5460
|
-
return 'Response(status=' + this.
|
|
5503
|
+
return 'Response(status=' + this.z1y_1 + ', headers=' + this.a1z_1 + ', content=' + this.b1z_1 + ')';
|
|
5461
5504
|
};
|
|
5462
5505
|
protoOf(Response).hashCode = function () {
|
|
5463
|
-
var result = getStringHashCode(this.
|
|
5464
|
-
result = imul(result, 31) + hashCode(this.
|
|
5465
|
-
result = imul(result, 31) + (this.
|
|
5506
|
+
var result = getStringHashCode(this.z1y_1);
|
|
5507
|
+
result = imul(result, 31) + hashCode(this.a1z_1) | 0;
|
|
5508
|
+
result = imul(result, 31) + (this.b1z_1 == null ? 0 : this.b1z_1.hashCode()) | 0;
|
|
5466
5509
|
return result;
|
|
5467
5510
|
};
|
|
5468
5511
|
protoOf(Response).equals = function (other) {
|
|
@@ -5471,27 +5514,27 @@
|
|
|
5471
5514
|
if (!(other instanceof Response))
|
|
5472
5515
|
return false;
|
|
5473
5516
|
var tmp0_other_with_cast = other instanceof Response ? other : THROW_CCE();
|
|
5474
|
-
if (!(this.
|
|
5517
|
+
if (!(this.z1y_1 === tmp0_other_with_cast.z1y_1))
|
|
5475
5518
|
return false;
|
|
5476
|
-
if (!equals(this.
|
|
5519
|
+
if (!equals(this.a1z_1, tmp0_other_with_cast.a1z_1))
|
|
5477
5520
|
return false;
|
|
5478
|
-
if (!equals(this.
|
|
5521
|
+
if (!equals(this.b1z_1, tmp0_other_with_cast.b1z_1))
|
|
5479
5522
|
return false;
|
|
5480
5523
|
return true;
|
|
5481
5524
|
};
|
|
5482
5525
|
function Content_0(type, reference, isNullable) {
|
|
5483
5526
|
isNullable = isNullable === VOID ? false : isNullable;
|
|
5484
|
-
this.
|
|
5485
|
-
this.
|
|
5486
|
-
this.
|
|
5527
|
+
this.k1z_1 = type;
|
|
5528
|
+
this.l1z_1 = reference;
|
|
5529
|
+
this.m1z_1 = isNullable;
|
|
5487
5530
|
}
|
|
5488
5531
|
protoOf(Content_0).toString = function () {
|
|
5489
|
-
return 'Content(type=' + this.
|
|
5532
|
+
return 'Content(type=' + this.k1z_1 + ', reference=' + this.l1z_1 + ', isNullable=' + this.m1z_1 + ')';
|
|
5490
5533
|
};
|
|
5491
5534
|
protoOf(Content_0).hashCode = function () {
|
|
5492
|
-
var result = getStringHashCode(this.
|
|
5493
|
-
result = imul(result, 31) + hashCode(this.
|
|
5494
|
-
result = imul(result, 31) + (this.
|
|
5535
|
+
var result = getStringHashCode(this.k1z_1);
|
|
5536
|
+
result = imul(result, 31) + hashCode(this.l1z_1) | 0;
|
|
5537
|
+
result = imul(result, 31) + (this.m1z_1 | 0) | 0;
|
|
5495
5538
|
return result;
|
|
5496
5539
|
};
|
|
5497
5540
|
protoOf(Content_0).equals = function (other) {
|
|
@@ -5500,11 +5543,11 @@
|
|
|
5500
5543
|
if (!(other instanceof Content_0))
|
|
5501
5544
|
return false;
|
|
5502
5545
|
var tmp0_other_with_cast = other instanceof Content_0 ? other : THROW_CCE();
|
|
5503
|
-
if (!(this.
|
|
5546
|
+
if (!(this.k1z_1 === tmp0_other_with_cast.k1z_1))
|
|
5504
5547
|
return false;
|
|
5505
|
-
if (!equals(this.
|
|
5548
|
+
if (!equals(this.l1z_1, tmp0_other_with_cast.l1z_1))
|
|
5506
5549
|
return false;
|
|
5507
|
-
if (!(this.
|
|
5550
|
+
if (!(this.m1z_1 === tmp0_other_with_cast.m1z_1))
|
|
5508
5551
|
return false;
|
|
5509
5552
|
return true;
|
|
5510
5553
|
};
|
|
@@ -5541,30 +5584,30 @@
|
|
|
5541
5584
|
return Method_TRACE_instance;
|
|
5542
5585
|
}
|
|
5543
5586
|
function Endpoint(name, method, path, query, headers, cookies, requests, responses) {
|
|
5544
|
-
this.
|
|
5545
|
-
this.
|
|
5546
|
-
this.
|
|
5547
|
-
this.
|
|
5548
|
-
this.
|
|
5549
|
-
this.
|
|
5550
|
-
this.
|
|
5551
|
-
this.
|
|
5587
|
+
this.c1z_1 = name;
|
|
5588
|
+
this.d1z_1 = method;
|
|
5589
|
+
this.e1z_1 = path;
|
|
5590
|
+
this.f1z_1 = query;
|
|
5591
|
+
this.g1z_1 = headers;
|
|
5592
|
+
this.h1z_1 = cookies;
|
|
5593
|
+
this.i1z_1 = requests;
|
|
5594
|
+
this.j1z_1 = responses;
|
|
5552
5595
|
}
|
|
5553
5596
|
protoOf(Endpoint).va = function () {
|
|
5554
|
-
return this.
|
|
5597
|
+
return this.c1z_1;
|
|
5555
5598
|
};
|
|
5556
5599
|
protoOf(Endpoint).toString = function () {
|
|
5557
|
-
return 'Endpoint(name=' + this.
|
|
5600
|
+
return 'Endpoint(name=' + this.c1z_1 + ', method=' + this.d1z_1 + ', path=' + this.e1z_1 + ', query=' + this.f1z_1 + ', headers=' + this.g1z_1 + ', cookies=' + this.h1z_1 + ', requests=' + this.i1z_1 + ', responses=' + this.j1z_1 + ')';
|
|
5558
5601
|
};
|
|
5559
5602
|
protoOf(Endpoint).hashCode = function () {
|
|
5560
|
-
var result = getStringHashCode(this.
|
|
5561
|
-
result = imul(result, 31) + this.
|
|
5603
|
+
var result = getStringHashCode(this.c1z_1);
|
|
5604
|
+
result = imul(result, 31) + this.d1z_1.hashCode() | 0;
|
|
5605
|
+
result = imul(result, 31) + hashCode(this.e1z_1) | 0;
|
|
5606
|
+
result = imul(result, 31) + hashCode(this.f1z_1) | 0;
|
|
5607
|
+
result = imul(result, 31) + hashCode(this.g1z_1) | 0;
|
|
5562
5608
|
result = imul(result, 31) + hashCode(this.h1z_1) | 0;
|
|
5563
5609
|
result = imul(result, 31) + hashCode(this.i1z_1) | 0;
|
|
5564
5610
|
result = imul(result, 31) + hashCode(this.j1z_1) | 0;
|
|
5565
|
-
result = imul(result, 31) + hashCode(this.k1z_1) | 0;
|
|
5566
|
-
result = imul(result, 31) + hashCode(this.l1z_1) | 0;
|
|
5567
|
-
result = imul(result, 31) + hashCode(this.m1z_1) | 0;
|
|
5568
5611
|
return result;
|
|
5569
5612
|
};
|
|
5570
5613
|
protoOf(Endpoint).equals = function (other) {
|
|
@@ -5573,21 +5616,21 @@
|
|
|
5573
5616
|
if (!(other instanceof Endpoint))
|
|
5574
5617
|
return false;
|
|
5575
5618
|
var tmp0_other_with_cast = other instanceof Endpoint ? other : THROW_CCE();
|
|
5576
|
-
if (!(this.
|
|
5619
|
+
if (!(this.c1z_1 === tmp0_other_with_cast.c1z_1))
|
|
5577
5620
|
return false;
|
|
5578
|
-
if (!this.
|
|
5621
|
+
if (!this.d1z_1.equals(tmp0_other_with_cast.d1z_1))
|
|
5579
5622
|
return false;
|
|
5580
|
-
if (!equals(this.
|
|
5623
|
+
if (!equals(this.e1z_1, tmp0_other_with_cast.e1z_1))
|
|
5581
5624
|
return false;
|
|
5582
|
-
if (!equals(this.
|
|
5625
|
+
if (!equals(this.f1z_1, tmp0_other_with_cast.f1z_1))
|
|
5583
5626
|
return false;
|
|
5584
|
-
if (!equals(this.
|
|
5627
|
+
if (!equals(this.g1z_1, tmp0_other_with_cast.g1z_1))
|
|
5585
5628
|
return false;
|
|
5586
|
-
if (!equals(this.
|
|
5629
|
+
if (!equals(this.h1z_1, tmp0_other_with_cast.h1z_1))
|
|
5587
5630
|
return false;
|
|
5588
|
-
if (!equals(this.
|
|
5631
|
+
if (!equals(this.i1z_1, tmp0_other_with_cast.i1z_1))
|
|
5589
5632
|
return false;
|
|
5590
|
-
if (!equals(this.
|
|
5633
|
+
if (!equals(this.j1z_1, tmp0_other_with_cast.j1z_1))
|
|
5591
5634
|
return false;
|
|
5592
5635
|
return true;
|
|
5593
5636
|
};
|
|
@@ -5619,16 +5662,16 @@
|
|
|
5619
5662
|
return true;
|
|
5620
5663
|
};
|
|
5621
5664
|
function Validator_0(value) {
|
|
5622
|
-
this.
|
|
5665
|
+
this.q1y_1 = value;
|
|
5623
5666
|
}
|
|
5624
5667
|
protoOf(Validator_0).p2 = function () {
|
|
5625
|
-
return this.
|
|
5668
|
+
return this.q1y_1;
|
|
5626
5669
|
};
|
|
5627
5670
|
protoOf(Validator_0).toString = function () {
|
|
5628
|
-
return 'Validator(value=' + this.
|
|
5671
|
+
return 'Validator(value=' + this.q1y_1 + ')';
|
|
5629
5672
|
};
|
|
5630
5673
|
protoOf(Validator_0).hashCode = function () {
|
|
5631
|
-
return getStringHashCode(this.
|
|
5674
|
+
return getStringHashCode(this.q1y_1);
|
|
5632
5675
|
};
|
|
5633
5676
|
protoOf(Validator_0).equals = function (other) {
|
|
5634
5677
|
if (this === other)
|
|
@@ -5636,23 +5679,23 @@
|
|
|
5636
5679
|
if (!(other instanceof Validator_0))
|
|
5637
5680
|
return false;
|
|
5638
5681
|
var tmp0_other_with_cast = other instanceof Validator_0 ? other : THROW_CCE();
|
|
5639
|
-
if (!(this.
|
|
5682
|
+
if (!(this.q1y_1 === tmp0_other_with_cast.q1y_1))
|
|
5640
5683
|
return false;
|
|
5641
5684
|
return true;
|
|
5642
5685
|
};
|
|
5643
5686
|
function Refined(name, validator) {
|
|
5644
|
-
this.
|
|
5645
|
-
this.
|
|
5687
|
+
this.n1y_1 = name;
|
|
5688
|
+
this.o1y_1 = validator;
|
|
5646
5689
|
}
|
|
5647
5690
|
protoOf(Refined).va = function () {
|
|
5648
|
-
return this.
|
|
5691
|
+
return this.n1y_1;
|
|
5649
5692
|
};
|
|
5650
5693
|
protoOf(Refined).toString = function () {
|
|
5651
|
-
return 'Refined(name=' + this.
|
|
5694
|
+
return 'Refined(name=' + this.n1y_1 + ', validator=' + this.o1y_1 + ')';
|
|
5652
5695
|
};
|
|
5653
5696
|
protoOf(Refined).hashCode = function () {
|
|
5654
|
-
var result = getStringHashCode(this.
|
|
5655
|
-
result = imul(result, 31) + this.
|
|
5697
|
+
var result = getStringHashCode(this.n1y_1);
|
|
5698
|
+
result = imul(result, 31) + this.o1y_1.hashCode() | 0;
|
|
5656
5699
|
return result;
|
|
5657
5700
|
};
|
|
5658
5701
|
protoOf(Refined).equals = function (other) {
|
|
@@ -5661,25 +5704,25 @@
|
|
|
5661
5704
|
if (!(other instanceof Refined))
|
|
5662
5705
|
return false;
|
|
5663
5706
|
var tmp0_other_with_cast = other instanceof Refined ? other : THROW_CCE();
|
|
5664
|
-
if (!(this.
|
|
5707
|
+
if (!(this.n1y_1 === tmp0_other_with_cast.n1y_1))
|
|
5665
5708
|
return false;
|
|
5666
|
-
if (!this.
|
|
5709
|
+
if (!this.o1y_1.equals(tmp0_other_with_cast.o1y_1))
|
|
5667
5710
|
return false;
|
|
5668
5711
|
return true;
|
|
5669
5712
|
};
|
|
5670
5713
|
function Union(name, entries) {
|
|
5671
|
-
this.
|
|
5672
|
-
this.
|
|
5714
|
+
this.q1z_1 = name;
|
|
5715
|
+
this.r1z_1 = entries;
|
|
5673
5716
|
}
|
|
5674
5717
|
protoOf(Union).va = function () {
|
|
5675
|
-
return this.
|
|
5718
|
+
return this.q1z_1;
|
|
5676
5719
|
};
|
|
5677
5720
|
protoOf(Union).toString = function () {
|
|
5678
|
-
return 'Union(name=' + this.
|
|
5721
|
+
return 'Union(name=' + this.q1z_1 + ', entries=' + this.r1z_1 + ')';
|
|
5679
5722
|
};
|
|
5680
5723
|
protoOf(Union).hashCode = function () {
|
|
5681
|
-
var result = getStringHashCode(this.
|
|
5682
|
-
result = imul(result, 31) + hashCode(this.
|
|
5724
|
+
var result = getStringHashCode(this.q1z_1);
|
|
5725
|
+
result = imul(result, 31) + hashCode(this.r1z_1) | 0;
|
|
5683
5726
|
return result;
|
|
5684
5727
|
};
|
|
5685
5728
|
protoOf(Union).equals = function (other) {
|
|
@@ -5688,9 +5731,9 @@
|
|
|
5688
5731
|
if (!(other instanceof Union))
|
|
5689
5732
|
return false;
|
|
5690
5733
|
var tmp0_other_with_cast = other instanceof Union ? other : THROW_CCE();
|
|
5691
|
-
if (!(this.
|
|
5734
|
+
if (!(this.q1z_1 === tmp0_other_with_cast.q1z_1))
|
|
5692
5735
|
return false;
|
|
5693
|
-
if (!equals(this.
|
|
5736
|
+
if (!equals(this.r1z_1, tmp0_other_with_cast.r1z_1))
|
|
5694
5737
|
return false;
|
|
5695
5738
|
return true;
|
|
5696
5739
|
};
|
|
@@ -5787,11 +5830,11 @@
|
|
|
5787
5830
|
try {
|
|
5788
5831
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
5789
5832
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseDefinition.<anonymous>' call
|
|
5790
|
-
$this.
|
|
5791
|
-
var tmp0_subject = _this__u8e3s4.
|
|
5833
|
+
$this.n20(_this__u8e3s4.i20_1);
|
|
5834
|
+
var tmp0_subject = _this__u8e3s4.i20_1.y1z_1;
|
|
5792
5835
|
var tmp_0;
|
|
5793
5836
|
if (isInterface(tmp0_subject, WirespecDefinition)) {
|
|
5794
|
-
var tmp_1 = _this__u8e3s4.
|
|
5837
|
+
var tmp_1 = _this__u8e3s4.i20_1.y1z_1;
|
|
5795
5838
|
var tmp1_subject = isInterface(tmp_1, WirespecDefinition) ? tmp_1 : THROW_CCE();
|
|
5796
5839
|
var tmp_2;
|
|
5797
5840
|
if (tmp1_subject instanceof WsTypeDef) {
|
|
@@ -5799,7 +5842,7 @@
|
|
|
5799
5842
|
// Inline function 'kotlin.with' call
|
|
5800
5843
|
// Inline function 'kotlin.contracts.contract' call
|
|
5801
5844
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseDefinition.<anonymous>.<anonymous>' call
|
|
5802
|
-
tmp$ret$1 = $this.s1r_1.
|
|
5845
|
+
tmp$ret$1 = $this.s1r_1.l21(_this__u8e3s4);
|
|
5803
5846
|
tmp_2 = raise.e1r(tmp$ret$1);
|
|
5804
5847
|
} else {
|
|
5805
5848
|
if (tmp1_subject instanceof WsEnumTypeDef) {
|
|
@@ -5807,7 +5850,7 @@
|
|
|
5807
5850
|
// Inline function 'kotlin.with' call
|
|
5808
5851
|
// Inline function 'kotlin.contracts.contract' call
|
|
5809
5852
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseDefinition.<anonymous>.<anonymous>' call
|
|
5810
|
-
tmp$ret$3 = $this.t1r_1.
|
|
5853
|
+
tmp$ret$3 = $this.t1r_1.v20(_this__u8e3s4);
|
|
5811
5854
|
tmp_2 = raise.e1r(tmp$ret$3);
|
|
5812
5855
|
} else {
|
|
5813
5856
|
if (tmp1_subject instanceof WsEndpointDef) {
|
|
@@ -5815,7 +5858,7 @@
|
|
|
5815
5858
|
// Inline function 'kotlin.with' call
|
|
5816
5859
|
// Inline function 'kotlin.contracts.contract' call
|
|
5817
5860
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseDefinition.<anonymous>.<anonymous>' call
|
|
5818
|
-
tmp$ret$5 = $this.u1r_1.
|
|
5861
|
+
tmp$ret$5 = $this.u1r_1.t20(_this__u8e3s4);
|
|
5819
5862
|
tmp_2 = raise.e1r(tmp$ret$5);
|
|
5820
5863
|
} else {
|
|
5821
5864
|
noWhenBranchMatchedException();
|
|
@@ -5827,11 +5870,11 @@
|
|
|
5827
5870
|
// Inline function 'kotlin.also' call
|
|
5828
5871
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
5829
5872
|
Companion_getInstance_5();
|
|
5830
|
-
var tmp4_invoke = _this__u8e3s4.
|
|
5873
|
+
var tmp4_invoke = _this__u8e3s4.i20_1;
|
|
5831
5874
|
var tmp5_also = new WrongTokenException(getKClass(WirespecDefinition), tmp4_invoke);
|
|
5832
5875
|
// Inline function 'kotlin.contracts.contract' call
|
|
5833
5876
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseDefinition.<anonymous>.<anonymous>' call
|
|
5834
|
-
raise.e1r(_this__u8e3s4.
|
|
5877
|
+
raise.e1r(_this__u8e3s4.l20());
|
|
5835
5878
|
raise.d1r(tmp5_also);
|
|
5836
5879
|
}
|
|
5837
5880
|
var res = tmp_0;
|
|
@@ -5866,13 +5909,13 @@
|
|
|
5866
5909
|
this.u1r_1 = new EndpointParser(logger);
|
|
5867
5910
|
}
|
|
5868
5911
|
protoOf(Parser).v1r = function (tokens) {
|
|
5869
|
-
return parse_0(toProvider(removeWhiteSpace(tokens), this.
|
|
5912
|
+
return parse_0(toProvider(removeWhiteSpace(tokens), this.m20_1), this);
|
|
5870
5913
|
};
|
|
5871
5914
|
function AbstractParser(logger) {
|
|
5872
|
-
this.
|
|
5915
|
+
this.m20_1 = logger;
|
|
5873
5916
|
}
|
|
5874
|
-
protoOf(AbstractParser).
|
|
5875
|
-
return this.
|
|
5917
|
+
protoOf(AbstractParser).n20 = function (_this__u8e3s4) {
|
|
5918
|
+
return this.m20_1.k1r('Parsing ' + _this__u8e3s4.y1z_1 + ' at line ' + _this__u8e3s4.z1z_1.b20_1 + ' position ' + _this__u8e3s4.z1z_1.c20_1);
|
|
5876
5919
|
};
|
|
5877
5920
|
function printTokens($this, previousToken) {
|
|
5878
5921
|
var tmp;
|
|
@@ -5882,15 +5925,15 @@
|
|
|
5882
5925
|
// Inline function 'kotlin.run' call
|
|
5883
5926
|
// Inline function 'kotlin.contracts.contract' call
|
|
5884
5927
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TokenProvider.printTokens.<anonymous>' call
|
|
5885
|
-
tmp = "Eating: '" + previousToken.
|
|
5928
|
+
tmp = "Eating: '" + previousToken.x1z_1 + "', ";
|
|
5886
5929
|
}
|
|
5887
5930
|
var tmp1_elvis_lhs = tmp;
|
|
5888
5931
|
var prev = tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs;
|
|
5889
5932
|
// Inline function 'kotlin.run' call
|
|
5890
5933
|
// Inline function 'kotlin.contracts.contract' call
|
|
5891
5934
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TokenProvider.printTokens.<anonymous>' call
|
|
5892
|
-
var curr = "Current: '" + $this.
|
|
5893
|
-
var tmp2_safe_receiver = $this.
|
|
5935
|
+
var curr = "Current: '" + $this.i20_1.x1z_1 + "'";
|
|
5936
|
+
var tmp2_safe_receiver = $this.j20_1;
|
|
5894
5937
|
var tmp_0;
|
|
5895
5938
|
if (tmp2_safe_receiver == null) {
|
|
5896
5939
|
tmp_0 = null;
|
|
@@ -5898,11 +5941,11 @@
|
|
|
5898
5941
|
// Inline function 'kotlin.run' call
|
|
5899
5942
|
// Inline function 'kotlin.contracts.contract' call
|
|
5900
5943
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TokenProvider.printTokens.<anonymous>' call
|
|
5901
|
-
tmp_0 = ", Next: '" + tmp2_safe_receiver.
|
|
5944
|
+
tmp_0 = ", Next: '" + tmp2_safe_receiver.x1z_1 + "'";
|
|
5902
5945
|
}
|
|
5903
5946
|
var tmp3_elvis_lhs = tmp_0;
|
|
5904
5947
|
var next = tmp3_elvis_lhs == null ? '' : tmp3_elvis_lhs;
|
|
5905
|
-
$this.
|
|
5948
|
+
$this.g20_1.k1r(prev + curr + next);
|
|
5906
5949
|
}
|
|
5907
5950
|
function printTokens$default($this, previousToken, $super) {
|
|
5908
5951
|
previousToken = previousToken === VOID ? null : previousToken;
|
|
@@ -5916,7 +5959,7 @@
|
|
|
5916
5959
|
// Inline function 'kotlin.Companion.success' call
|
|
5917
5960
|
Companion_getInstance();
|
|
5918
5961
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TokenProvider.nextToken.<anonymous>' call
|
|
5919
|
-
var tmp1_success = $this.
|
|
5962
|
+
var tmp1_success = $this.h20_1.y();
|
|
5920
5963
|
tmp = _Result___init__impl__xyqfz8(tmp1_success);
|
|
5921
5964
|
} catch ($p) {
|
|
5922
5965
|
var tmp_0;
|
|
@@ -5940,17 +5983,86 @@
|
|
|
5940
5983
|
}
|
|
5941
5984
|
return tmp_1;
|
|
5942
5985
|
}
|
|
5943
|
-
function TokenProvider(logger,
|
|
5944
|
-
this.
|
|
5945
|
-
this.
|
|
5946
|
-
this.
|
|
5947
|
-
this.
|
|
5986
|
+
function TokenProvider(logger, list) {
|
|
5987
|
+
this.g20_1 = logger;
|
|
5988
|
+
this.h20_1 = list.u1q_1.v();
|
|
5989
|
+
this.i20_1 = list.t1q_1;
|
|
5990
|
+
this.j20_1 = nextToken(this);
|
|
5991
|
+
var tmp = this;
|
|
5992
|
+
// Inline function 'kotlin.collections.mapNotNull' call
|
|
5993
|
+
var tmp0_mapNotNull = zipWithNext(removeWhiteSpace(list));
|
|
5994
|
+
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
5995
|
+
var tmp0_mapNotNullTo = ArrayList_init_$Create$_0();
|
|
5996
|
+
// Inline function 'kotlin.collections.forEach' call
|
|
5997
|
+
var tmp0_iterator = tmp0_mapNotNull.v();
|
|
5998
|
+
while (tmp0_iterator.w()) {
|
|
5999
|
+
var element = tmp0_iterator.y();
|
|
6000
|
+
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
6001
|
+
// Inline function 'community.flock.wirespec.compiler.core.parse.TokenProvider.definitionNames.<anonymous>' call
|
|
6002
|
+
var first = element.fd();
|
|
6003
|
+
var second = element.gd();
|
|
6004
|
+
var tmp0_subject = first.y1z_1;
|
|
6005
|
+
var tmp_0;
|
|
6006
|
+
if (isInterface(tmp0_subject, WirespecDefinition)) {
|
|
6007
|
+
tmp_0 = second.x1z_1;
|
|
6008
|
+
} else {
|
|
6009
|
+
tmp_0 = null;
|
|
6010
|
+
}
|
|
6011
|
+
var tmp0_safe_receiver = tmp_0;
|
|
6012
|
+
if (tmp0_safe_receiver == null)
|
|
6013
|
+
null;
|
|
6014
|
+
else {
|
|
6015
|
+
// Inline function 'kotlin.let' call
|
|
6016
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
6017
|
+
tmp0_mapNotNullTo.s(tmp0_safe_receiver);
|
|
6018
|
+
}
|
|
6019
|
+
}
|
|
6020
|
+
tmp.k20_1 = tmp0_mapNotNullTo;
|
|
5948
6021
|
printTokens$default(this);
|
|
5949
6022
|
}
|
|
6023
|
+
protoOf(TokenProvider).s20 = function (_this__u8e3s4) {
|
|
6024
|
+
// Inline function 'arrow.core.raise.either' call
|
|
6025
|
+
// Inline function 'arrow.core.raise.fold' call
|
|
6026
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
6027
|
+
// Inline function 'arrow.core.raise.fold' call
|
|
6028
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
6029
|
+
var raise = new DefaultRaise(false);
|
|
6030
|
+
var tmp;
|
|
6031
|
+
try {
|
|
6032
|
+
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
6033
|
+
var tmp_0;
|
|
6034
|
+
if (!this.k20_1.r(_this__u8e3s4.x1z_1)) {
|
|
6035
|
+
raise.d1r(new DefinitionNotExistsException(_this__u8e3s4.x1z_1, _this__u8e3s4.z1z_1));
|
|
6036
|
+
}
|
|
6037
|
+
var res = tmp_0;
|
|
6038
|
+
raise.b1r();
|
|
6039
|
+
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
6040
|
+
tmp = new Right(Unit_getInstance());
|
|
6041
|
+
} catch ($p) {
|
|
6042
|
+
var tmp_1;
|
|
6043
|
+
if ($p instanceof CancellationException) {
|
|
6044
|
+
var e = $p;
|
|
6045
|
+
raise.b1r();
|
|
6046
|
+
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
6047
|
+
var tmp0_anonymous = raisedOrRethrow(e, raise);
|
|
6048
|
+
tmp_1 = new Left(tmp0_anonymous);
|
|
6049
|
+
} else {
|
|
6050
|
+
if ($p instanceof Error) {
|
|
6051
|
+
var e_0 = $p;
|
|
6052
|
+
raise.b1r();
|
|
6053
|
+
throw nonFatalOrThrow(e_0);
|
|
6054
|
+
} else {
|
|
6055
|
+
throw $p;
|
|
6056
|
+
}
|
|
6057
|
+
}
|
|
6058
|
+
tmp = tmp_1;
|
|
6059
|
+
}
|
|
6060
|
+
return tmp;
|
|
6061
|
+
};
|
|
5950
6062
|
protoOf(TokenProvider).w = function () {
|
|
5951
|
-
return !(this.
|
|
6063
|
+
return !(this.j20_1 == null);
|
|
5952
6064
|
};
|
|
5953
|
-
protoOf(TokenProvider).
|
|
6065
|
+
protoOf(TokenProvider).l20 = function () {
|
|
5954
6066
|
// Inline function 'arrow.core.raise.either' call
|
|
5955
6067
|
// Inline function 'arrow.core.raise.fold' call
|
|
5956
6068
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -5960,17 +6072,17 @@
|
|
|
5960
6072
|
var tmp;
|
|
5961
6073
|
try {
|
|
5962
6074
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
5963
|
-
var previousToken = this.
|
|
6075
|
+
var previousToken = this.i20_1;
|
|
5964
6076
|
var tmp_0 = this;
|
|
5965
|
-
var tmp0_elvis_lhs = this.
|
|
6077
|
+
var tmp0_elvis_lhs = this.j20_1;
|
|
5966
6078
|
var tmp_1;
|
|
5967
6079
|
if (tmp0_elvis_lhs == null) {
|
|
5968
|
-
raise.d1r(new NextException(previousToken.
|
|
6080
|
+
raise.d1r(new NextException(previousToken.z1z_1));
|
|
5969
6081
|
} else {
|
|
5970
6082
|
tmp_1 = tmp0_elvis_lhs;
|
|
5971
6083
|
}
|
|
5972
|
-
tmp_0.
|
|
5973
|
-
this.
|
|
6084
|
+
tmp_0.i20_1 = tmp_1;
|
|
6085
|
+
this.j20_1 = nextToken(this);
|
|
5974
6086
|
printTokens(this, previousToken);
|
|
5975
6087
|
var res = Unit_getInstance();
|
|
5976
6088
|
raise.b1r();
|
|
@@ -5998,7 +6110,7 @@
|
|
|
5998
6110
|
return tmp;
|
|
5999
6111
|
};
|
|
6000
6112
|
function toProvider(_this__u8e3s4, logger) {
|
|
6001
|
-
return new TokenProvider(logger, _this__u8e3s4
|
|
6113
|
+
return new TokenProvider(logger, _this__u8e3s4);
|
|
6002
6114
|
}
|
|
6003
6115
|
function parseTypeDefinition(_this__u8e3s4, $this, typeName) {
|
|
6004
6116
|
// Inline function 'arrow.core.raise.either' call
|
|
@@ -6011,19 +6123,19 @@
|
|
|
6011
6123
|
try {
|
|
6012
6124
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
6013
6125
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseTypeDefinition.<anonymous>' call
|
|
6014
|
-
raise.e1r(_this__u8e3s4.
|
|
6015
|
-
$this.
|
|
6016
|
-
var tmp0_subject = _this__u8e3s4.
|
|
6126
|
+
raise.e1r(_this__u8e3s4.l20());
|
|
6127
|
+
$this.n20(_this__u8e3s4.i20_1);
|
|
6128
|
+
var tmp0_subject = _this__u8e3s4.i20_1.y1z_1;
|
|
6017
6129
|
var tmp_0;
|
|
6018
6130
|
if (tmp0_subject instanceof LeftCurly) {
|
|
6019
|
-
tmp_0 = new Type_0(typeName, raise.e1r($this.
|
|
6131
|
+
tmp_0 = new Type_0(typeName, raise.e1r($this.r20(_this__u8e3s4)));
|
|
6020
6132
|
} else {
|
|
6021
6133
|
if (tmp0_subject instanceof CustomRegex) {
|
|
6022
6134
|
// Inline function 'kotlin.also' call
|
|
6023
|
-
var tmp0_also = new Refined(typeName, new Validator_0(_this__u8e3s4.
|
|
6135
|
+
var tmp0_also = new Refined(typeName, new Validator_0(_this__u8e3s4.i20_1.x1z_1));
|
|
6024
6136
|
// Inline function 'kotlin.contracts.contract' call
|
|
6025
6137
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseTypeDefinition.<anonymous>.<anonymous>' call
|
|
6026
|
-
raise.e1r(_this__u8e3s4.
|
|
6138
|
+
raise.e1r(_this__u8e3s4.l20());
|
|
6027
6139
|
tmp_0 = tmp0_also;
|
|
6028
6140
|
} else {
|
|
6029
6141
|
if (tmp0_subject instanceof Equals) {
|
|
@@ -6032,11 +6144,11 @@
|
|
|
6032
6144
|
// Inline function 'kotlin.also' call
|
|
6033
6145
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
6034
6146
|
Companion_getInstance_5();
|
|
6035
|
-
var tmp2_invoke = _this__u8e3s4.
|
|
6147
|
+
var tmp2_invoke = _this__u8e3s4.i20_1;
|
|
6036
6148
|
var tmp3_also = new WrongTokenException(getKClass(LeftCurly), tmp2_invoke);
|
|
6037
6149
|
// Inline function 'kotlin.contracts.contract' call
|
|
6038
6150
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseTypeDefinition.<anonymous>.<anonymous>' call
|
|
6039
|
-
raise.e1r(_this__u8e3s4.
|
|
6151
|
+
raise.e1r(_this__u8e3s4.l20());
|
|
6040
6152
|
raise.d1r(tmp3_also);
|
|
6041
6153
|
}
|
|
6042
6154
|
}
|
|
@@ -6077,42 +6189,42 @@
|
|
|
6077
6189
|
try {
|
|
6078
6190
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
6079
6191
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseField.<anonymous>' call
|
|
6080
|
-
raise.e1r(_this__u8e3s4.
|
|
6081
|
-
$this.
|
|
6082
|
-
if (_this__u8e3s4.
|
|
6083
|
-
raise.e1r(_this__u8e3s4.
|
|
6192
|
+
raise.e1r(_this__u8e3s4.l20());
|
|
6193
|
+
$this.n20(_this__u8e3s4.i20_1);
|
|
6194
|
+
if (_this__u8e3s4.i20_1.y1z_1 instanceof Colon)
|
|
6195
|
+
raise.e1r(_this__u8e3s4.l20());
|
|
6084
6196
|
else {
|
|
6085
6197
|
// Inline function 'kotlin.also' call
|
|
6086
6198
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
6087
6199
|
Companion_getInstance_5();
|
|
6088
|
-
var tmp1_invoke = _this__u8e3s4.
|
|
6200
|
+
var tmp1_invoke = _this__u8e3s4.i20_1;
|
|
6089
6201
|
var tmp2_also = new WrongTokenException(getKClass(Colon), tmp1_invoke);
|
|
6090
6202
|
// Inline function 'kotlin.contracts.contract' call
|
|
6091
6203
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseField.<anonymous>.<anonymous>' call
|
|
6092
|
-
raise.e1r(_this__u8e3s4.
|
|
6204
|
+
raise.e1r(_this__u8e3s4.l20());
|
|
6093
6205
|
raise.d1r(tmp2_also);
|
|
6094
6206
|
}
|
|
6095
|
-
var type = _this__u8e3s4.
|
|
6207
|
+
var type = _this__u8e3s4.i20_1.y1z_1;
|
|
6096
6208
|
var tmp_0;
|
|
6097
6209
|
if (isInterface(type, WirespecType)) {
|
|
6098
|
-
var tmp_1 = raise.e1r(parseFieldValue(_this__u8e3s4, $this, type, _this__u8e3s4.
|
|
6210
|
+
var tmp_1 = raise.e1r(parseFieldValue(_this__u8e3s4, $this, type, _this__u8e3s4.i20_1.x1z_1));
|
|
6099
6211
|
// Inline function 'kotlin.also' call
|
|
6100
|
-
var tmp_2 = _this__u8e3s4.
|
|
6212
|
+
var tmp_2 = _this__u8e3s4.i20_1.y1z_1;
|
|
6101
6213
|
var tmp3_also = tmp_2 instanceof QuestionMark;
|
|
6102
6214
|
// Inline function 'kotlin.contracts.contract' call
|
|
6103
6215
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseField.<anonymous>.<anonymous>' call
|
|
6104
6216
|
if (tmp3_also)
|
|
6105
|
-
raise.e1r(_this__u8e3s4.
|
|
6217
|
+
raise.e1r(_this__u8e3s4.l20());
|
|
6106
6218
|
tmp_0 = new Field_0(identifier, tmp_1, tmp3_also);
|
|
6107
6219
|
} else {
|
|
6108
6220
|
// Inline function 'kotlin.also' call
|
|
6109
6221
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
6110
6222
|
Companion_getInstance_5();
|
|
6111
|
-
var tmp5_invoke = _this__u8e3s4.
|
|
6223
|
+
var tmp5_invoke = _this__u8e3s4.i20_1;
|
|
6112
6224
|
var tmp6_also = new WrongTokenException(getKClass(CustomType), tmp5_invoke);
|
|
6113
6225
|
// Inline function 'kotlin.contracts.contract' call
|
|
6114
6226
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseField.<anonymous>.<anonymous>' call
|
|
6115
|
-
raise.e1r(_this__u8e3s4.
|
|
6227
|
+
raise.e1r(_this__u8e3s4.l20());
|
|
6116
6228
|
raise.d1r(tmp6_also);
|
|
6117
6229
|
}
|
|
6118
6230
|
var res = tmp_0;
|
|
@@ -6151,15 +6263,16 @@
|
|
|
6151
6263
|
try {
|
|
6152
6264
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
6153
6265
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseFieldValue.<anonymous>' call
|
|
6154
|
-
|
|
6155
|
-
|
|
6266
|
+
var previousToken = _this__u8e3s4.i20_1;
|
|
6267
|
+
raise.e1r(_this__u8e3s4.l20());
|
|
6268
|
+
$this.n20(_this__u8e3s4.i20_1);
|
|
6156
6269
|
// Inline function 'kotlin.also' call
|
|
6157
|
-
var tmp_0 = _this__u8e3s4.
|
|
6270
|
+
var tmp_0 = _this__u8e3s4.i20_1.y1z_1;
|
|
6158
6271
|
var tmp0_also = tmp_0 instanceof Brackets;
|
|
6159
6272
|
// Inline function 'kotlin.contracts.contract' call
|
|
6160
6273
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseFieldValue.<anonymous>.<anonymous>' call
|
|
6161
6274
|
if (tmp0_also)
|
|
6162
|
-
raise.e1r(_this__u8e3s4.
|
|
6275
|
+
raise.e1r(_this__u8e3s4.l20());
|
|
6163
6276
|
var isIterable = tmp0_also;
|
|
6164
6277
|
var tmp_1;
|
|
6165
6278
|
if (wsType instanceof WsString) {
|
|
@@ -6178,6 +6291,7 @@
|
|
|
6178
6291
|
tmp_1 = new Unit(isIterable);
|
|
6179
6292
|
} else {
|
|
6180
6293
|
if (wsType instanceof CustomType) {
|
|
6294
|
+
raise.e1r(_this__u8e3s4.s20(previousToken));
|
|
6181
6295
|
tmp_1 = new Custom_0(value, isIterable);
|
|
6182
6296
|
} else {
|
|
6183
6297
|
noWhenBranchMatchedException();
|
|
@@ -6223,34 +6337,36 @@
|
|
|
6223
6337
|
try {
|
|
6224
6338
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
6225
6339
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseUnionTypeEntries.<anonymous>' call
|
|
6226
|
-
raise.e1r(_this__u8e3s4.
|
|
6227
|
-
$this.
|
|
6340
|
+
raise.e1r(_this__u8e3s4.l20());
|
|
6341
|
+
$this.n20(_this__u8e3s4.i20_1);
|
|
6228
6342
|
var tmp_0;
|
|
6229
|
-
if (_this__u8e3s4.
|
|
6343
|
+
if (_this__u8e3s4.i20_1.y1z_1 instanceof CustomType) {
|
|
6230
6344
|
// Inline function 'kotlin.apply' call
|
|
6231
6345
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
6232
6346
|
var tmp0_apply = ArrayList_init_$Create$_0();
|
|
6233
6347
|
// Inline function 'kotlin.contracts.contract' call
|
|
6234
6348
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseUnionTypeEntries.<anonymous>.<anonymous>' call
|
|
6235
|
-
|
|
6236
|
-
|
|
6237
|
-
|
|
6238
|
-
|
|
6239
|
-
|
|
6349
|
+
raise.e1r(_this__u8e3s4.s20(_this__u8e3s4.i20_1));
|
|
6350
|
+
tmp0_apply.s(new Custom_0(_this__u8e3s4.i20_1.x1z_1, false));
|
|
6351
|
+
raise.e1r(_this__u8e3s4.l20());
|
|
6352
|
+
while (equals(_this__u8e3s4.i20_1.y1z_1, Pipe_getInstance())) {
|
|
6353
|
+
raise.e1r(_this__u8e3s4.l20());
|
|
6354
|
+
if (_this__u8e3s4.i20_1.y1z_1 instanceof CustomType) {
|
|
6355
|
+
raise.e1r(_this__u8e3s4.s20(_this__u8e3s4.i20_1));
|
|
6240
6356
|
// Inline function 'kotlin.also' call
|
|
6241
|
-
tmp0_apply.s(_this__u8e3s4.
|
|
6357
|
+
tmp0_apply.s(new Custom_0(_this__u8e3s4.i20_1.x1z_1, false));
|
|
6242
6358
|
// Inline function 'kotlin.contracts.contract' call
|
|
6243
6359
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseUnionTypeEntries.<anonymous>.<anonymous>.<anonymous>' call
|
|
6244
|
-
raise.e1r(_this__u8e3s4.
|
|
6360
|
+
raise.e1r(_this__u8e3s4.l20());
|
|
6245
6361
|
} else {
|
|
6246
6362
|
// Inline function 'kotlin.also' call
|
|
6247
6363
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
6248
6364
|
Companion_getInstance_5();
|
|
6249
|
-
var tmp2_invoke = _this__u8e3s4.
|
|
6365
|
+
var tmp2_invoke = _this__u8e3s4.i20_1;
|
|
6250
6366
|
var tmp3_also = new WrongTokenException(getKClass(CustomType), tmp2_invoke);
|
|
6251
6367
|
// Inline function 'kotlin.contracts.contract' call
|
|
6252
6368
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseUnionTypeEntries.<anonymous>.<anonymous>.<anonymous>' call
|
|
6253
|
-
raise.e1r(_this__u8e3s4.
|
|
6369
|
+
raise.e1r(_this__u8e3s4.l20());
|
|
6254
6370
|
raise.d1r(tmp3_also);
|
|
6255
6371
|
}
|
|
6256
6372
|
}
|
|
@@ -6259,11 +6375,11 @@
|
|
|
6259
6375
|
// Inline function 'kotlin.also' call
|
|
6260
6376
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
6261
6377
|
Companion_getInstance_5();
|
|
6262
|
-
var tmp2_invoke_0 = _this__u8e3s4.
|
|
6378
|
+
var tmp2_invoke_0 = _this__u8e3s4.i20_1;
|
|
6263
6379
|
var tmp3_also_0 = new WrongTokenException(getKClass(CustomType), tmp2_invoke_0);
|
|
6264
6380
|
// Inline function 'kotlin.contracts.contract' call
|
|
6265
6381
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseUnionTypeEntries.<anonymous>.<anonymous>' call
|
|
6266
|
-
raise.e1r(_this__u8e3s4.
|
|
6382
|
+
raise.e1r(_this__u8e3s4.l20());
|
|
6267
6383
|
raise.d1r(tmp3_also_0);
|
|
6268
6384
|
}
|
|
6269
6385
|
var res = toSet(tmp_0);
|
|
@@ -6294,7 +6410,7 @@
|
|
|
6294
6410
|
function TypeParser(logger) {
|
|
6295
6411
|
AbstractParser.call(this, logger);
|
|
6296
6412
|
}
|
|
6297
|
-
protoOf(TypeParser).
|
|
6413
|
+
protoOf(TypeParser).l21 = function (_this__u8e3s4) {
|
|
6298
6414
|
// Inline function 'arrow.core.raise.either' call
|
|
6299
6415
|
// Inline function 'arrow.core.raise.fold' call
|
|
6300
6416
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -6305,20 +6421,20 @@
|
|
|
6305
6421
|
try {
|
|
6306
6422
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
6307
6423
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseType.<anonymous>' call
|
|
6308
|
-
raise.e1r(_this__u8e3s4.
|
|
6309
|
-
this.
|
|
6424
|
+
raise.e1r(_this__u8e3s4.l20());
|
|
6425
|
+
this.n20(_this__u8e3s4.i20_1);
|
|
6310
6426
|
var tmp_0;
|
|
6311
|
-
if (_this__u8e3s4.
|
|
6312
|
-
tmp_0 = raise.e1r(parseTypeDefinition(_this__u8e3s4, this, _this__u8e3s4.
|
|
6427
|
+
if (_this__u8e3s4.i20_1.y1z_1 instanceof CustomType) {
|
|
6428
|
+
tmp_0 = raise.e1r(parseTypeDefinition(_this__u8e3s4, this, _this__u8e3s4.i20_1.x1z_1));
|
|
6313
6429
|
} else {
|
|
6314
6430
|
// Inline function 'kotlin.also' call
|
|
6315
6431
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
6316
6432
|
Companion_getInstance_5();
|
|
6317
|
-
var tmp1_invoke = _this__u8e3s4.
|
|
6433
|
+
var tmp1_invoke = _this__u8e3s4.i20_1;
|
|
6318
6434
|
var tmp2_also = new WrongTokenException(getKClass(CustomType), tmp1_invoke);
|
|
6319
6435
|
// Inline function 'kotlin.contracts.contract' call
|
|
6320
6436
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseType.<anonymous>.<anonymous>' call
|
|
6321
|
-
raise.e1r(_this__u8e3s4.
|
|
6437
|
+
raise.e1r(_this__u8e3s4.l20());
|
|
6322
6438
|
raise.d1r(tmp2_also);
|
|
6323
6439
|
}
|
|
6324
6440
|
var res = tmp_0;
|
|
@@ -6346,7 +6462,7 @@
|
|
|
6346
6462
|
}
|
|
6347
6463
|
return tmp;
|
|
6348
6464
|
};
|
|
6349
|
-
protoOf(TypeParser).
|
|
6465
|
+
protoOf(TypeParser).r20 = function (_this__u8e3s4) {
|
|
6350
6466
|
// Inline function 'arrow.core.raise.either' call
|
|
6351
6467
|
// Inline function 'arrow.core.raise.fold' call
|
|
6352
6468
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -6357,31 +6473,31 @@
|
|
|
6357
6473
|
try {
|
|
6358
6474
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
6359
6475
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseTypeShape.<anonymous>' call
|
|
6360
|
-
raise.e1r(_this__u8e3s4.
|
|
6361
|
-
this.
|
|
6476
|
+
raise.e1r(_this__u8e3s4.l20());
|
|
6477
|
+
this.n20(_this__u8e3s4.i20_1);
|
|
6362
6478
|
// Inline function 'kotlin.let' call
|
|
6363
6479
|
// Inline function 'kotlin.also' call
|
|
6364
6480
|
var tmp_0;
|
|
6365
|
-
if (_this__u8e3s4.
|
|
6481
|
+
if (_this__u8e3s4.i20_1.y1z_1 instanceof CustomValue) {
|
|
6366
6482
|
// Inline function 'kotlin.apply' call
|
|
6367
6483
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
6368
6484
|
var tmp0_apply = ArrayList_init_$Create$_0();
|
|
6369
6485
|
// Inline function 'kotlin.contracts.contract' call
|
|
6370
6486
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseTypeShape.<anonymous>.<anonymous>' call
|
|
6371
|
-
tmp0_apply.s(raise.e1r(parseField(_this__u8e3s4, this, Companion_getInstance_6().
|
|
6372
|
-
while (equals(_this__u8e3s4.
|
|
6373
|
-
raise.e1r(_this__u8e3s4.
|
|
6374
|
-
if (_this__u8e3s4.
|
|
6375
|
-
tmp0_apply.s(raise.e1r(parseField(_this__u8e3s4, this, Companion_getInstance_6().
|
|
6487
|
+
tmp0_apply.s(raise.e1r(parseField(_this__u8e3s4, this, Companion_getInstance_6().n1z(_this__u8e3s4.i20_1.x1z_1))));
|
|
6488
|
+
while (equals(_this__u8e3s4.i20_1.y1z_1, Comma_getInstance())) {
|
|
6489
|
+
raise.e1r(_this__u8e3s4.l20());
|
|
6490
|
+
if (_this__u8e3s4.i20_1.y1z_1 instanceof CustomValue) {
|
|
6491
|
+
tmp0_apply.s(raise.e1r(parseField(_this__u8e3s4, this, Companion_getInstance_6().n1z(_this__u8e3s4.i20_1.x1z_1))));
|
|
6376
6492
|
} else {
|
|
6377
6493
|
// Inline function 'kotlin.also' call
|
|
6378
6494
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
6379
6495
|
Companion_getInstance_5();
|
|
6380
|
-
var tmp1_invoke = _this__u8e3s4.
|
|
6496
|
+
var tmp1_invoke = _this__u8e3s4.i20_1;
|
|
6381
6497
|
var tmp2_also = new WrongTokenException(getKClass(CustomValue), tmp1_invoke);
|
|
6382
6498
|
// Inline function 'kotlin.contracts.contract' call
|
|
6383
6499
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseTypeShape.<anonymous>.<anonymous>.<anonymous>' call
|
|
6384
|
-
raise.e1r(_this__u8e3s4.
|
|
6500
|
+
raise.e1r(_this__u8e3s4.l20());
|
|
6385
6501
|
raise.d1r(tmp2_also);
|
|
6386
6502
|
}
|
|
6387
6503
|
}
|
|
@@ -6390,27 +6506,27 @@
|
|
|
6390
6506
|
// Inline function 'kotlin.also' call
|
|
6391
6507
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
6392
6508
|
Companion_getInstance_5();
|
|
6393
|
-
var tmp2_invoke = _this__u8e3s4.
|
|
6509
|
+
var tmp2_invoke = _this__u8e3s4.i20_1;
|
|
6394
6510
|
var tmp3_also = new WrongTokenException(getKClass(CustomValue), tmp2_invoke);
|
|
6395
6511
|
// Inline function 'kotlin.contracts.contract' call
|
|
6396
6512
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseTypeShape.<anonymous>.<anonymous>' call
|
|
6397
|
-
raise.e1r(_this__u8e3s4.
|
|
6513
|
+
raise.e1r(_this__u8e3s4.l20());
|
|
6398
6514
|
raise.d1r(tmp3_also);
|
|
6399
6515
|
}
|
|
6400
6516
|
var tmp4_also = tmp_0;
|
|
6401
6517
|
// Inline function 'kotlin.contracts.contract' call
|
|
6402
6518
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseTypeShape.<anonymous>.<anonymous>' call
|
|
6403
|
-
if (_this__u8e3s4.
|
|
6404
|
-
raise.e1r(_this__u8e3s4.
|
|
6519
|
+
if (_this__u8e3s4.i20_1.y1z_1 instanceof RightCurly)
|
|
6520
|
+
raise.e1r(_this__u8e3s4.l20());
|
|
6405
6521
|
else {
|
|
6406
6522
|
// Inline function 'kotlin.also' call
|
|
6407
6523
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
6408
6524
|
Companion_getInstance_5();
|
|
6409
|
-
var tmp1_invoke_0 = _this__u8e3s4.
|
|
6525
|
+
var tmp1_invoke_0 = _this__u8e3s4.i20_1;
|
|
6410
6526
|
var tmp2_also_0 = new WrongTokenException(getKClass(RightCurly), tmp1_invoke_0);
|
|
6411
6527
|
// Inline function 'kotlin.contracts.contract' call
|
|
6412
6528
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseTypeShape.<anonymous>.<anonymous>.<anonymous>' call
|
|
6413
|
-
raise.e1r(_this__u8e3s4.
|
|
6529
|
+
raise.e1r(_this__u8e3s4.l20());
|
|
6414
6530
|
raise.d1r(tmp2_also_0);
|
|
6415
6531
|
}
|
|
6416
6532
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -6442,15 +6558,15 @@
|
|
|
6442
6558
|
function IdxAndLength(idx, length) {
|
|
6443
6559
|
idx = idx === VOID ? 0 : idx;
|
|
6444
6560
|
length = length === VOID ? 0 : length;
|
|
6445
|
-
this.
|
|
6446
|
-
this.
|
|
6561
|
+
this.m21_1 = idx;
|
|
6562
|
+
this.n21_1 = length;
|
|
6447
6563
|
}
|
|
6448
6564
|
protoOf(IdxAndLength).toString = function () {
|
|
6449
|
-
return 'IdxAndLength(idx=' + this.
|
|
6565
|
+
return 'IdxAndLength(idx=' + this.m21_1 + ', length=' + this.n21_1 + ')';
|
|
6450
6566
|
};
|
|
6451
6567
|
protoOf(IdxAndLength).hashCode = function () {
|
|
6452
|
-
var result = this.
|
|
6453
|
-
result = imul(result, 31) + this.
|
|
6568
|
+
var result = this.m21_1;
|
|
6569
|
+
result = imul(result, 31) + this.n21_1 | 0;
|
|
6454
6570
|
return result;
|
|
6455
6571
|
};
|
|
6456
6572
|
protoOf(IdxAndLength).equals = function (other) {
|
|
@@ -6459,9 +6575,9 @@
|
|
|
6459
6575
|
if (!(other instanceof IdxAndLength))
|
|
6460
6576
|
return false;
|
|
6461
6577
|
var tmp0_other_with_cast = other instanceof IdxAndLength ? other : THROW_CCE();
|
|
6462
|
-
if (!(this.
|
|
6578
|
+
if (!(this.m21_1 === tmp0_other_with_cast.m21_1))
|
|
6463
6579
|
return false;
|
|
6464
|
-
if (!(this.
|
|
6580
|
+
if (!(this.n21_1 === tmp0_other_with_cast.n21_1))
|
|
6465
6581
|
return false;
|
|
6466
6582
|
return true;
|
|
6467
6583
|
};
|
|
@@ -6469,26 +6585,26 @@
|
|
|
6469
6585
|
line = line === VOID ? 1 : line;
|
|
6470
6586
|
position = position === VOID ? 1 : position;
|
|
6471
6587
|
idxAndLength = idxAndLength === VOID ? new IdxAndLength() : idxAndLength;
|
|
6472
|
-
this.
|
|
6473
|
-
this.
|
|
6474
|
-
this.
|
|
6588
|
+
this.b20_1 = line;
|
|
6589
|
+
this.c20_1 = position;
|
|
6590
|
+
this.d20_1 = idxAndLength;
|
|
6475
6591
|
}
|
|
6476
|
-
protoOf(Coordinates).
|
|
6592
|
+
protoOf(Coordinates).o21 = function (line, position, idxAndLength) {
|
|
6477
6593
|
return new Coordinates(line, position, idxAndLength);
|
|
6478
6594
|
};
|
|
6479
|
-
protoOf(Coordinates).
|
|
6480
|
-
line = line === VOID ? this.
|
|
6481
|
-
position = position === VOID ? this.
|
|
6482
|
-
idxAndLength = idxAndLength === VOID ? this.
|
|
6483
|
-
return $super === VOID ? this.
|
|
6595
|
+
protoOf(Coordinates).p21 = function (line, position, idxAndLength, $super) {
|
|
6596
|
+
line = line === VOID ? this.b20_1 : line;
|
|
6597
|
+
position = position === VOID ? this.c20_1 : position;
|
|
6598
|
+
idxAndLength = idxAndLength === VOID ? this.d20_1 : idxAndLength;
|
|
6599
|
+
return $super === VOID ? this.o21(line, position, idxAndLength) : $super.o21.call(this, line, position, idxAndLength);
|
|
6484
6600
|
};
|
|
6485
6601
|
protoOf(Coordinates).toString = function () {
|
|
6486
|
-
return 'Coordinates(line=' + this.
|
|
6602
|
+
return 'Coordinates(line=' + this.b20_1 + ', position=' + this.c20_1 + ', idxAndLength=' + this.d20_1 + ')';
|
|
6487
6603
|
};
|
|
6488
6604
|
protoOf(Coordinates).hashCode = function () {
|
|
6489
|
-
var result = this.
|
|
6490
|
-
result = imul(result, 31) + this.
|
|
6491
|
-
result = imul(result, 31) + this.
|
|
6605
|
+
var result = this.b20_1;
|
|
6606
|
+
result = imul(result, 31) + this.c20_1 | 0;
|
|
6607
|
+
result = imul(result, 31) + this.d20_1.hashCode() | 0;
|
|
6492
6608
|
return result;
|
|
6493
6609
|
};
|
|
6494
6610
|
protoOf(Coordinates).equals = function (other) {
|
|
@@ -6497,38 +6613,38 @@
|
|
|
6497
6613
|
if (!(other instanceof Coordinates))
|
|
6498
6614
|
return false;
|
|
6499
6615
|
var tmp0_other_with_cast = other instanceof Coordinates ? other : THROW_CCE();
|
|
6500
|
-
if (!(this.
|
|
6616
|
+
if (!(this.b20_1 === tmp0_other_with_cast.b20_1))
|
|
6501
6617
|
return false;
|
|
6502
|
-
if (!(this.
|
|
6618
|
+
if (!(this.c20_1 === tmp0_other_with_cast.c20_1))
|
|
6503
6619
|
return false;
|
|
6504
|
-
if (!this.
|
|
6620
|
+
if (!this.d20_1.equals(tmp0_other_with_cast.d20_1))
|
|
6505
6621
|
return false;
|
|
6506
6622
|
return true;
|
|
6507
6623
|
};
|
|
6508
6624
|
function Token(value, type, coordinates) {
|
|
6509
|
-
this.
|
|
6510
|
-
this.
|
|
6511
|
-
this.
|
|
6625
|
+
this.x1z_1 = value;
|
|
6626
|
+
this.y1z_1 = type;
|
|
6627
|
+
this.z1z_1 = coordinates;
|
|
6512
6628
|
}
|
|
6513
6629
|
protoOf(Token).p2 = function () {
|
|
6514
|
-
return this.
|
|
6630
|
+
return this.x1z_1;
|
|
6515
6631
|
};
|
|
6516
|
-
protoOf(Token).
|
|
6632
|
+
protoOf(Token).q21 = function (value, type, coordinates) {
|
|
6517
6633
|
return new Token(value, type, coordinates);
|
|
6518
6634
|
};
|
|
6519
|
-
protoOf(Token).
|
|
6520
|
-
value = value === VOID ? this.
|
|
6521
|
-
type = type === VOID ? this.
|
|
6522
|
-
coordinates = coordinates === VOID ? this.
|
|
6523
|
-
return $super === VOID ? this.
|
|
6635
|
+
protoOf(Token).f20 = function (value, type, coordinates, $super) {
|
|
6636
|
+
value = value === VOID ? this.x1z_1 : value;
|
|
6637
|
+
type = type === VOID ? this.y1z_1 : type;
|
|
6638
|
+
coordinates = coordinates === VOID ? this.z1z_1 : coordinates;
|
|
6639
|
+
return $super === VOID ? this.q21(value, type, coordinates) : $super.q21.call(this, value, type, coordinates);
|
|
6524
6640
|
};
|
|
6525
6641
|
protoOf(Token).toString = function () {
|
|
6526
|
-
return 'Token(value=' + this.
|
|
6642
|
+
return 'Token(value=' + this.x1z_1 + ', type=' + this.y1z_1 + ', coordinates=' + this.z1z_1 + ')';
|
|
6527
6643
|
};
|
|
6528
6644
|
protoOf(Token).hashCode = function () {
|
|
6529
|
-
var result = getStringHashCode(this.
|
|
6530
|
-
result = imul(result, 31) + hashCode(this.
|
|
6531
|
-
result = imul(result, 31) + this.
|
|
6645
|
+
var result = getStringHashCode(this.x1z_1);
|
|
6646
|
+
result = imul(result, 31) + hashCode(this.y1z_1) | 0;
|
|
6647
|
+
result = imul(result, 31) + this.z1z_1.hashCode() | 0;
|
|
6532
6648
|
return result;
|
|
6533
6649
|
};
|
|
6534
6650
|
protoOf(Token).equals = function (other) {
|
|
@@ -6537,19 +6653,19 @@
|
|
|
6537
6653
|
if (!(other instanceof Token))
|
|
6538
6654
|
return false;
|
|
6539
6655
|
var tmp0_other_with_cast = other instanceof Token ? other : THROW_CCE();
|
|
6540
|
-
if (!(this.
|
|
6656
|
+
if (!(this.x1z_1 === tmp0_other_with_cast.x1z_1))
|
|
6541
6657
|
return false;
|
|
6542
|
-
if (!equals(this.
|
|
6658
|
+
if (!equals(this.y1z_1, tmp0_other_with_cast.y1z_1))
|
|
6543
6659
|
return false;
|
|
6544
|
-
if (!this.
|
|
6660
|
+
if (!this.z1z_1.equals(tmp0_other_with_cast.z1z_1))
|
|
6545
6661
|
return false;
|
|
6546
6662
|
return true;
|
|
6547
6663
|
};
|
|
6548
6664
|
function plus_1(_this__u8e3s4, length) {
|
|
6549
|
-
return new IdxAndLength(_this__u8e3s4.
|
|
6665
|
+
return new IdxAndLength(_this__u8e3s4.m21_1 + length | 0, length);
|
|
6550
6666
|
}
|
|
6551
6667
|
function plus_2(_this__u8e3s4, length) {
|
|
6552
|
-
return _this__u8e3s4.
|
|
6668
|
+
return _this__u8e3s4.p21(VOID, _this__u8e3s4.c20_1 + length | 0, plus_1(_this__u8e3s4.d20_1, length));
|
|
6553
6669
|
}
|
|
6554
6670
|
function tokenize(_this__u8e3s4, source) {
|
|
6555
6671
|
var tmp0_type = StartOfProgram_getInstance();
|
|
@@ -6562,12 +6678,12 @@
|
|
|
6562
6678
|
var incompleteTokens_0 = incompleteTokens;
|
|
6563
6679
|
$l$1: do {
|
|
6564
6680
|
$l$0: do {
|
|
6565
|
-
var tmp0_container = extractToken($this, source_0, last(incompleteTokens_0).
|
|
6681
|
+
var tmp0_container = extractToken($this, source_0, last(incompleteTokens_0).z1z_1);
|
|
6566
6682
|
var token = tmp0_container.fd();
|
|
6567
6683
|
var remaining = tmp0_container.gd();
|
|
6568
6684
|
var tokens = incompleteTokens_0.y1q(token);
|
|
6569
6685
|
var tmp;
|
|
6570
|
-
var tmp_0 = token.
|
|
6686
|
+
var tmp_0 = token.y1z_1;
|
|
6571
6687
|
if (tmp_0 instanceof EndOfProgram) {
|
|
6572
6688
|
tmp = tokens;
|
|
6573
6689
|
} else {
|
|
@@ -6609,7 +6725,7 @@
|
|
|
6609
6725
|
// Inline function 'kotlin.let' call
|
|
6610
6726
|
// Inline function 'kotlin.contracts.contract' call
|
|
6611
6727
|
// Inline function 'community.flock.wirespec.compiler.core.tokenize.extractToken.<anonymous>' call
|
|
6612
|
-
tmp = to(tmp0_safe_receiver_0, removePrefix(source, tmp0_safe_receiver_0.
|
|
6728
|
+
tmp = to(tmp0_safe_receiver_0, removePrefix(source, tmp0_safe_receiver_0.x1z_1));
|
|
6613
6729
|
}
|
|
6614
6730
|
var tmp1_elvis_lhs = tmp;
|
|
6615
6731
|
return tmp1_elvis_lhs == null ? new Pair(endToken(previousTokenCoordinates), '') : tmp1_elvis_lhs;
|
|
@@ -6629,7 +6745,7 @@
|
|
|
6629
6745
|
function nextCoordinates(_this__u8e3s4, type, value) {
|
|
6630
6746
|
var tmp;
|
|
6631
6747
|
if (type instanceof NewLine) {
|
|
6632
|
-
tmp = new Coordinates(_this__u8e3s4.
|
|
6748
|
+
tmp = new Coordinates(_this__u8e3s4.b20_1 + 1 | 0, VOID, plus_1(_this__u8e3s4.d20_1, value.length));
|
|
6633
6749
|
} else {
|
|
6634
6750
|
tmp = plus_2(_this__u8e3s4, value.length);
|
|
6635
6751
|
}
|
|
@@ -6643,7 +6759,7 @@
|
|
|
6643
6759
|
while (tmp0_iterator.w()) {
|
|
6644
6760
|
var element = tmp0_iterator.y();
|
|
6645
6761
|
// Inline function 'community.flock.wirespec.compiler.core.tokenize.removeWhiteSpace.<anonymous>' call
|
|
6646
|
-
var tmp = element.
|
|
6762
|
+
var tmp = element.y1z_1;
|
|
6647
6763
|
if (!isInterface(tmp, WhiteSpace)) {
|
|
6648
6764
|
tmp0_filterNotTo.s(element);
|
|
6649
6765
|
}
|
|
@@ -7330,7 +7446,7 @@
|
|
|
7330
7446
|
}
|
|
7331
7447
|
function EndOfProgram() {
|
|
7332
7448
|
EndOfProgram_instance = this;
|
|
7333
|
-
this.
|
|
7449
|
+
this.r21_1 = 'EOP';
|
|
7334
7450
|
}
|
|
7335
7451
|
protoOf(EndOfProgram).toString = function () {
|
|
7336
7452
|
return 'EndOfProgram';
|
|
@@ -7391,36 +7507,36 @@
|
|
|
7391
7507
|
}
|
|
7392
7508
|
}
|
|
7393
7509
|
//region block: post-declaration
|
|
7394
|
-
protoOf(WsTypeDef).
|
|
7395
|
-
protoOf(WsEnumTypeDef).
|
|
7396
|
-
protoOf(WsEndpointDef).
|
|
7397
|
-
protoOf(WhiteSpaceExceptNewLine).
|
|
7398
|
-
protoOf(NewLine).
|
|
7399
|
-
protoOf(LeftCurly).
|
|
7400
|
-
protoOf(RightCurly).
|
|
7401
|
-
protoOf(Arrow).
|
|
7402
|
-
protoOf(Equals).
|
|
7403
|
-
protoOf(Pipe).
|
|
7404
|
-
protoOf(Colon).
|
|
7405
|
-
protoOf(Comma).
|
|
7406
|
-
protoOf(QuestionMark).
|
|
7407
|
-
protoOf(Hash).
|
|
7408
|
-
protoOf(Brackets).
|
|
7409
|
-
protoOf(WsString).
|
|
7410
|
-
protoOf(WsInteger).
|
|
7411
|
-
protoOf(WsNumber).
|
|
7412
|
-
protoOf(WsBoolean).
|
|
7413
|
-
protoOf(WsUnit).
|
|
7414
|
-
protoOf(Method_0).
|
|
7415
|
-
protoOf(CustomRegex).
|
|
7416
|
-
protoOf(StatusCode).
|
|
7417
|
-
protoOf(CustomValue).
|
|
7418
|
-
protoOf(CustomType).
|
|
7419
|
-
protoOf(Path_0).
|
|
7420
|
-
protoOf(ForwardSlash).
|
|
7421
|
-
protoOf(Invalid).
|
|
7422
|
-
protoOf(StartOfProgram).
|
|
7423
|
-
protoOf(EndOfProgram).
|
|
7510
|
+
protoOf(WsTypeDef).a20 = name;
|
|
7511
|
+
protoOf(WsEnumTypeDef).a20 = name;
|
|
7512
|
+
protoOf(WsEndpointDef).a20 = name;
|
|
7513
|
+
protoOf(WhiteSpaceExceptNewLine).a20 = name;
|
|
7514
|
+
protoOf(NewLine).a20 = name;
|
|
7515
|
+
protoOf(LeftCurly).a20 = name;
|
|
7516
|
+
protoOf(RightCurly).a20 = name;
|
|
7517
|
+
protoOf(Arrow).a20 = name;
|
|
7518
|
+
protoOf(Equals).a20 = name;
|
|
7519
|
+
protoOf(Pipe).a20 = name;
|
|
7520
|
+
protoOf(Colon).a20 = name;
|
|
7521
|
+
protoOf(Comma).a20 = name;
|
|
7522
|
+
protoOf(QuestionMark).a20 = name;
|
|
7523
|
+
protoOf(Hash).a20 = name;
|
|
7524
|
+
protoOf(Brackets).a20 = name;
|
|
7525
|
+
protoOf(WsString).a20 = name;
|
|
7526
|
+
protoOf(WsInteger).a20 = name;
|
|
7527
|
+
protoOf(WsNumber).a20 = name;
|
|
7528
|
+
protoOf(WsBoolean).a20 = name;
|
|
7529
|
+
protoOf(WsUnit).a20 = name;
|
|
7530
|
+
protoOf(Method_0).a20 = name;
|
|
7531
|
+
protoOf(CustomRegex).a20 = name;
|
|
7532
|
+
protoOf(StatusCode).a20 = name;
|
|
7533
|
+
protoOf(CustomValue).a20 = name;
|
|
7534
|
+
protoOf(CustomType).a20 = name;
|
|
7535
|
+
protoOf(Path_0).a20 = name;
|
|
7536
|
+
protoOf(ForwardSlash).a20 = name;
|
|
7537
|
+
protoOf(Invalid).a20 = name;
|
|
7538
|
+
protoOf(StartOfProgram).a20 = name;
|
|
7539
|
+
protoOf(EndOfProgram).a20 = name;
|
|
7424
7540
|
//endregion
|
|
7425
7541
|
//region block: init
|
|
7426
7542
|
DEFAULT_PACKAGE_STRING = 'community.flock.wirespec.generated';
|