@flock/wirespec 0.10.11 → 0.10.12
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/clikt-clikt.js +1150 -1150
- package/colormath-root-colormath.js +424 -424
- package/kotlin-kotlin-stdlib.js +14 -14
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin-rgxgen.js +1767 -1767
- package/markdown.js +1860 -1860
- package/mordant-mordant.js +1622 -1622
- package/package.json +1 -1
- package/wirespec-src-compiler-core.js +711 -721
- package/wirespec-src-compiler-core.js.map +1 -1
- package/wirespec-src-compiler-lib.js +365 -321
- package/wirespec-src-compiler-lib.js.map +1 -1
- package/wirespec-src-converter-openapi.js +310 -304
- package/wirespec-src-converter-openapi.js.map +1 -1
- package/wirespec-src-plugin-arguments.js +78 -78
- package/wirespec-src-plugin-cli.js +120 -120
- package/wirespec-src-plugin-npm.d.ts +23 -8
- package/wirespec-src-plugin-npm.js +7 -7
- package/wirespec-src-tools-generator.js +15 -15
- package/wirespec-src-tools-generator.js.map +1 -1
|
@@ -83,7 +83,6 @@
|
|
|
83
83
|
var IndexedValue = kotlin_kotlin.$_$.n4;
|
|
84
84
|
var listOfNotNull_0 = kotlin_kotlin.$_$.e7;
|
|
85
85
|
var flatten = kotlin_kotlin.$_$.j6;
|
|
86
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.aa;
|
|
87
86
|
var captureStack = kotlin_kotlin.$_$.i9;
|
|
88
87
|
var RuntimeException = kotlin_kotlin.$_$.hf;
|
|
89
88
|
var RuntimeException_init_$Init$ = kotlin_kotlin.$_$.r1;
|
|
@@ -95,7 +94,7 @@
|
|
|
95
94
|
var emptyList = kotlin_kotlin.$_$.b6;
|
|
96
95
|
var drop = kotlin_kotlin.$_$.lc;
|
|
97
96
|
var toList = kotlin_kotlin.$_$.k8;
|
|
98
|
-
var
|
|
97
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.aa;
|
|
99
98
|
var toString_1 = kotlin_kotlin.$_$.gg;
|
|
100
99
|
var THROW_IAE = kotlin_kotlin.$_$.jf;
|
|
101
100
|
var enumEntries = kotlin_kotlin.$_$.a9;
|
|
@@ -111,6 +110,7 @@
|
|
|
111
110
|
var last = kotlin_kotlin.$_$.c7;
|
|
112
111
|
var Pair = kotlin_kotlin.$_$.ff;
|
|
113
112
|
var toNonEmptyListOrNull = kotlin_io_arrow_kt_arrow_core.$_$.j;
|
|
113
|
+
var getKClassFromExpression = kotlin_kotlin.$_$.d;
|
|
114
114
|
var ensureNotNull = kotlin_kotlin.$_$.yf;
|
|
115
115
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.l1;
|
|
116
116
|
var println = kotlin_kotlin.$_$.b9;
|
|
@@ -119,11 +119,7 @@
|
|
|
119
119
|
initMetadataForClass(Reported, 'Reported', VOID, Enum);
|
|
120
120
|
initMetadataForObject(WirespecSpec, 'WirespecSpec');
|
|
121
121
|
initMetadataForCompanion(Companion);
|
|
122
|
-
|
|
123
|
-
return _this__u8e3s4.y22_1;
|
|
124
|
-
}
|
|
125
|
-
initMetadataForInterface(IdentifierEmitter, 'IdentifierEmitter');
|
|
126
|
-
initMetadataForClass(Emitter, 'Emitter', VOID, VOID, [IdentifierEmitter]);
|
|
122
|
+
initMetadataForClass(Emitter, 'Emitter');
|
|
127
123
|
initMetadataForClass(JavaEmitter, 'JavaEmitter', JavaEmitter, Emitter);
|
|
128
124
|
initMetadataForCompanion(Companion_0);
|
|
129
125
|
initMetadataForClass(KotlinEmitter, 'KotlinEmitter', KotlinEmitter, Emitter);
|
|
@@ -152,16 +148,14 @@
|
|
|
152
148
|
initMetadataForClass(EnumParser, 'EnumParser', VOID, AbstractParser);
|
|
153
149
|
initMetadataForInterface(Definition, 'Definition');
|
|
154
150
|
initMetadataForClass(Comment, 'Comment');
|
|
155
|
-
initMetadataForClass(Type, 'Type', VOID, Enum);
|
|
156
|
-
initMetadataForCompanion(Companion_5);
|
|
157
151
|
initMetadataForClass(Identifier, 'Identifier');
|
|
158
|
-
initMetadataForClass(
|
|
152
|
+
initMetadataForClass(Type, 'Type', VOID, Enum);
|
|
159
153
|
initMetadataForClass(Any, 'Any');
|
|
160
154
|
initMetadataForClass(Unit, 'Unit');
|
|
161
155
|
initMetadataForClass(Custom, 'Custom');
|
|
162
156
|
initMetadataForClass(Primitive, 'Primitive');
|
|
163
157
|
initMetadataForClass(Shape, 'Shape');
|
|
164
|
-
initMetadataForClass(
|
|
158
|
+
initMetadataForClass(Type_0, 'Type', VOID, VOID, [Definition]);
|
|
165
159
|
initMetadataForClass(Literal, 'Literal');
|
|
166
160
|
initMetadataForClass(Param_0, 'Param');
|
|
167
161
|
initMetadataForClass(Method, 'Method', VOID, Enum);
|
|
@@ -174,7 +168,9 @@
|
|
|
174
168
|
initMetadataForClass(Refined, 'Refined', VOID, VOID, [Definition]);
|
|
175
169
|
initMetadataForClass(Union, 'Union', VOID, VOID, [Definition]);
|
|
176
170
|
initMetadataForClass(Channel, 'Channel', VOID, VOID, [Definition]);
|
|
171
|
+
initMetadataForClass(FieldIdentifier, 'FieldIdentifier', VOID, Identifier);
|
|
177
172
|
initMetadataForClass(Field, 'Field');
|
|
173
|
+
initMetadataForClass(DefinitionIdentifier, 'DefinitionIdentifier', VOID, Identifier);
|
|
178
174
|
initMetadataForClass(Parser, 'Parser', VOID, AbstractParser);
|
|
179
175
|
initMetadataForClass(TokenProvider, 'TokenProvider');
|
|
180
176
|
initMetadataForClass(TypeParser, 'TypeParser', VOID, AbstractParser);
|
|
@@ -216,7 +212,7 @@
|
|
|
216
212
|
initMetadataForObject(Character, 'Character');
|
|
217
213
|
initMetadataForObject(StartOfProgram, 'StartOfProgram', VOID, VOID, [WhiteSpace]);
|
|
218
214
|
initMetadataForObject(EndOfProgram, 'EndOfProgram');
|
|
219
|
-
initMetadataForCompanion(
|
|
215
|
+
initMetadataForCompanion(Companion_5);
|
|
220
216
|
initMetadataForClass(Level, 'Level', VOID, Enum);
|
|
221
217
|
initMetadataForClass(Logger, 'Logger');
|
|
222
218
|
initMetadataForClass(noLogger$1, VOID, VOID, Logger);
|
|
@@ -503,7 +499,7 @@
|
|
|
503
499
|
while (tmp0_iterator_2.h()) {
|
|
504
500
|
var element_2 = tmp0_iterator_2.i();
|
|
505
501
|
// Inline function 'community.flock.wirespec.compiler.core.emit.JavaEmitter.emitUnion.<anonymous>.<anonymous>' call
|
|
506
|
-
if (element_2.v22_1 === _this__u8e3s4.
|
|
502
|
+
if (element_2.v22_1 === _this__u8e3s4.z22_1.b1()) {
|
|
507
503
|
tmp$ret$4 = true;
|
|
508
504
|
break $l$block_0;
|
|
509
505
|
}
|
|
@@ -520,7 +516,7 @@
|
|
|
520
516
|
while (tmp0_iterator_3.h()) {
|
|
521
517
|
var item = tmp0_iterator_3.i();
|
|
522
518
|
// Inline function 'community.flock.wirespec.compiler.core.emit.JavaEmitter.emitUnion.<anonymous>' call
|
|
523
|
-
var tmp$ret$9 = item.t22_1.
|
|
519
|
+
var tmp$ret$9 = item.t22_1.b1();
|
|
524
520
|
destination_2.e(tmp$ret$9);
|
|
525
521
|
}
|
|
526
522
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -545,10 +541,10 @@
|
|
|
545
541
|
tmp = 'Object';
|
|
546
542
|
} else {
|
|
547
543
|
if (_this__u8e3s4 instanceof Custom) {
|
|
548
|
-
tmp =
|
|
544
|
+
tmp = emit(_this__u8e3s4, $this);
|
|
549
545
|
} else {
|
|
550
546
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
551
|
-
tmp =
|
|
547
|
+
tmp = emit_0(_this__u8e3s4, $this);
|
|
552
548
|
} else {
|
|
553
549
|
noWhenBranchMatchedException();
|
|
554
550
|
}
|
|
@@ -561,7 +557,7 @@
|
|
|
561
557
|
void_0 = void_0 === VOID ? 'void' : void_0;
|
|
562
558
|
return emitType(_this__u8e3s4, $this, void_0);
|
|
563
559
|
}
|
|
564
|
-
function
|
|
560
|
+
function emit(_this__u8e3s4, $this) {
|
|
565
561
|
// Inline function 'kotlin.let' call
|
|
566
562
|
// Inline function 'kotlin.text.orEmpty' call
|
|
567
563
|
// Inline function 'kotlin.takeIf' call
|
|
@@ -589,7 +585,7 @@
|
|
|
589
585
|
var tmp$ret$6 = (tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs) + _this__u8e3s4.v22_1;
|
|
590
586
|
return sanitizeSymbol(tmp$ret$6, $this);
|
|
591
587
|
}
|
|
592
|
-
function
|
|
588
|
+
function emit_0(_this__u8e3s4, $this) {
|
|
593
589
|
var tmp;
|
|
594
590
|
switch (_this__u8e3s4.i23_1.q2_1) {
|
|
595
591
|
case 0:
|
|
@@ -634,7 +630,7 @@
|
|
|
634
630
|
while (tmp0_iterator.h()) {
|
|
635
631
|
var item = tmp0_iterator.i();
|
|
636
632
|
// Inline function 'community.flock.wirespec.compiler.core.emit.JavaEmitter.emitResponseInterfaces.<anonymous>' call
|
|
637
|
-
var tmp$ret$0 =
|
|
633
|
+
var tmp$ret$0 = emit_1(item.x23_1, $this);
|
|
638
634
|
destination.e(tmp$ret$0);
|
|
639
635
|
}
|
|
640
636
|
var tmp = distinct(destination);
|
|
@@ -675,7 +671,7 @@
|
|
|
675
671
|
}
|
|
676
672
|
var tmp_9 = tmp_8;
|
|
677
673
|
var tmp_10 = Spacer_instance.z23(4);
|
|
678
|
-
var tmp_11 =
|
|
674
|
+
var tmp_11 = emit_1(_this__u8e3s4.a24_1, $this);
|
|
679
675
|
var tmp0_safe_receiver = _this__u8e3s4.a24_1;
|
|
680
676
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.c24_1;
|
|
681
677
|
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.e24();
|
|
@@ -694,7 +690,7 @@
|
|
|
694
690
|
// Inline function 'kotlin.let' call
|
|
695
691
|
// Inline function 'kotlin.contracts.contract' call
|
|
696
692
|
// Inline function 'community.flock.wirespec.compiler.core.emit.JavaEmitter.emitConstructor.<anonymous>' call
|
|
697
|
-
tmp_3 =
|
|
693
|
+
tmp_3 = emit_1(tmp0_safe_receiver, $this) + ' body';
|
|
698
694
|
}
|
|
699
695
|
var tmp_4 = joinToString(listOfNotNull([tmp_0, tmp_1, tmp_2, tmp_3]));
|
|
700
696
|
var tmp_5 = Spacer_instance.z23(3);
|
|
@@ -738,7 +734,7 @@
|
|
|
738
734
|
// Inline function 'kotlin.let' call
|
|
739
735
|
// Inline function 'kotlin.contracts.contract' call
|
|
740
736
|
// Inline function 'community.flock.wirespec.compiler.core.emit.JavaEmitter.emitDeserializedParams.<anonymous>' call
|
|
741
|
-
tmp_3 = Spacer_instance.z23(4) + 'serialization.deserialize(request.body(), Wirespec.getType(' +
|
|
737
|
+
tmp_3 = Spacer_instance.z23(4) + 'serialization.deserialize(request.body(), Wirespec.getType(' + emit_1(tmp0_safe_receiver, $this) + '.class, ' + tmp0_safe_receiver.c24_1.e24() + '))';
|
|
742
738
|
}
|
|
743
739
|
// Inline function 'kotlin.contracts.contract' call
|
|
744
740
|
// Inline function 'community.flock.wirespec.compiler.core.emit.JavaEmitter.emitDeserializedParams.<anonymous>' call
|
|
@@ -779,32 +775,32 @@
|
|
|
779
775
|
return Spacer_instance.z23(4) + 'case ' + _this__u8e3s4.v23_1 + ' -> new Response' + Companion_getInstance_3().h24(_this__u8e3s4.v23_1) + '(' + emitDeserializedParams_0(_this__u8e3s4, $this) + ');';
|
|
780
776
|
}
|
|
781
777
|
function emitSerialized_0(_this__u8e3s4, $this, fields) {
|
|
782
|
-
return 'java.util.Map.entry("' + _this__u8e3s4.i24_1.
|
|
778
|
+
return 'java.util.Map.entry("' + _this__u8e3s4.i24_1.b1() + '", serialization.serialize(request.' + fields + '.' + $this.l24(_this__u8e3s4.i24_1) + ', Wirespec.getType(' + emitType$default(_this__u8e3s4.j24_1, $this) + '.class, ' + _this__u8e3s4.j24_1.e24() + ')))';
|
|
783
779
|
}
|
|
784
780
|
function emitDeserialized_0(_this__u8e3s4, $this) {
|
|
785
781
|
return Spacer_instance.z23(4) + 'serialization.<' + $this.o24(_this__u8e3s4.pd_1.n24_1) + '>deserialize(request.path().get(' + _this__u8e3s4.od_1 + '), Wirespec.getType(' + emitType$default(_this__u8e3s4.pd_1.n24_1, $this) + '.class, ' + _this__u8e3s4.pd_1.n24_1.e24() + '))';
|
|
786
782
|
}
|
|
787
783
|
function emitDeserialized_1(_this__u8e3s4, $this, fields) {
|
|
788
|
-
return Spacer_instance.z23(4) + 'java.util.Optional.ofNullable(request.' + fields + '().get("' + _this__u8e3s4.i24_1.
|
|
784
|
+
return Spacer_instance.z23(4) + 'java.util.Optional.ofNullable(request.' + fields + '().get("' + _this__u8e3s4.i24_1.b1() + '")).map(it -> serialization.<' + $this.o24(_this__u8e3s4.j24_1) + '>deserialize(it, Wirespec.getType(' + emitType$default(_this__u8e3s4.j24_1, $this) + '.class, ' + _this__u8e3s4.j24_1.e24() + ')))' + (!_this__u8e3s4.k24_1 ? '.get()' : '');
|
|
789
785
|
}
|
|
790
786
|
function emitSerializedMap(_this__u8e3s4, $this, fields) {
|
|
791
|
-
return 'java.util.Map.entry("' + _this__u8e3s4.i24_1.
|
|
787
|
+
return 'java.util.Map.entry("' + _this__u8e3s4.i24_1.b1() + '", serialization.serialize(response.' + fields + '.' + $this.l24(_this__u8e3s4.i24_1) + ', Wirespec.getType(' + emitType$default(_this__u8e3s4.j24_1, $this) + '.class, ' + _this__u8e3s4.j24_1.e24() + ')))';
|
|
792
788
|
}
|
|
793
789
|
function emitIdentifier(_this__u8e3s4, $this) {
|
|
794
|
-
return 'serialization.serialize(request.path.' + Companion_getInstance_3().p24($this.l24(_this__u8e3s4.m24_1
|
|
790
|
+
return 'serialization.serialize(request.path.' + Companion_getInstance_3().p24($this.l24(_this__u8e3s4.m24_1)) + ', Wirespec.getType(' + emitType$default(_this__u8e3s4.n24_1, $this) + '.class, ' + _this__u8e3s4.n24_1.e24() + '))';
|
|
795
791
|
}
|
|
796
792
|
function emitType_0(_this__u8e3s4, $this) {
|
|
797
793
|
var tmp1_safe_receiver = _this__u8e3s4 == null ? null : _this__u8e3s4.c24_1;
|
|
798
794
|
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : emitType$default(tmp1_safe_receiver, $this);
|
|
799
795
|
return tmp2_elvis_lhs == null ? 'Void' : tmp2_elvis_lhs;
|
|
800
796
|
}
|
|
801
|
-
function
|
|
797
|
+
function emit_1(_this__u8e3s4, $this) {
|
|
802
798
|
var tmp1_safe_receiver = _this__u8e3s4 == null ? null : _this__u8e3s4.c24_1;
|
|
803
799
|
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : $this.o24(tmp1_safe_receiver);
|
|
804
800
|
return tmp2_elvis_lhs == null ? 'Void' : tmp2_elvis_lhs;
|
|
805
801
|
}
|
|
806
|
-
function
|
|
807
|
-
return $this.o24(_this__u8e3s4.n24_1) + ' ' + $this.l24(_this__u8e3s4.m24_1
|
|
802
|
+
function emit_2(_this__u8e3s4, $this) {
|
|
803
|
+
return $this.o24(_this__u8e3s4.n24_1) + ' ' + $this.l24(_this__u8e3s4.m24_1);
|
|
808
804
|
}
|
|
809
805
|
function emitWrap(_this__u8e3s4, $this, isNullable) {
|
|
810
806
|
// Inline function 'kotlin.let' call
|
|
@@ -815,10 +811,10 @@
|
|
|
815
811
|
var it = _this__u8e3s4.b1();
|
|
816
812
|
// Inline function 'kotlin.contracts.contract' call
|
|
817
813
|
// Inline function 'community.flock.wirespec.compiler.core.emit.JavaEmitter.emitWrap.<anonymous>' call
|
|
818
|
-
var it_0 =
|
|
814
|
+
var it_0 = isNullable ? 'java.util.Optional<' + it + '>' : it;
|
|
819
815
|
// Inline function 'kotlin.contracts.contract' call
|
|
820
816
|
// Inline function 'community.flock.wirespec.compiler.core.emit.JavaEmitter.emitWrap.<anonymous>' call
|
|
821
|
-
var it_1 =
|
|
817
|
+
var it_1 = _this__u8e3s4.e24() ? 'java.util.List<' + it_0 + '>' : it_0;
|
|
822
818
|
return _this__u8e3s4.q24() ? 'java.util.Map<String, ' + it_1 + '>' : it_1;
|
|
823
819
|
}
|
|
824
820
|
function fixStatus(_this__u8e3s4, $this) {
|
|
@@ -882,7 +878,7 @@
|
|
|
882
878
|
}
|
|
883
879
|
function JavaEmitter$emit$lambda_3(this$0) {
|
|
884
880
|
return function (it) {
|
|
885
|
-
return
|
|
881
|
+
return emit_2(it, this$0);
|
|
886
882
|
};
|
|
887
883
|
}
|
|
888
884
|
function JavaEmitter$emit$lambda_4(this$0) {
|
|
@@ -958,7 +954,7 @@
|
|
|
958
954
|
}
|
|
959
955
|
function JavaEmitter$emit$lambda_11(this$0) {
|
|
960
956
|
return function (it) {
|
|
961
|
-
return this$0.l24(it.i24_1
|
|
957
|
+
return this$0.l24(it.i24_1);
|
|
962
958
|
};
|
|
963
959
|
}
|
|
964
960
|
function JavaEmitter$emit$lambda_12(this$0) {
|
|
@@ -968,7 +964,7 @@
|
|
|
968
964
|
}
|
|
969
965
|
function JavaEmitter$emitConstructor$lambda(this$0) {
|
|
970
966
|
return function (it) {
|
|
971
|
-
return
|
|
967
|
+
return emit_2(it, this$0);
|
|
972
968
|
};
|
|
973
969
|
}
|
|
974
970
|
function JavaEmitter$emitConstructor$lambda_0(this$0) {
|
|
@@ -983,17 +979,17 @@
|
|
|
983
979
|
}
|
|
984
980
|
function JavaEmitter$emitConstructor$lambda_2(this$0) {
|
|
985
981
|
return function (it) {
|
|
986
|
-
return this$0.l24(it.m24_1
|
|
982
|
+
return this$0.l24(it.m24_1);
|
|
987
983
|
};
|
|
988
984
|
}
|
|
989
985
|
function JavaEmitter$emitConstructor$lambda_3(this$0) {
|
|
990
986
|
return function (it) {
|
|
991
|
-
return this$0.l24(it.i24_1
|
|
987
|
+
return this$0.l24(it.i24_1);
|
|
992
988
|
};
|
|
993
989
|
}
|
|
994
990
|
function JavaEmitter$emitConstructor$lambda_4(this$0) {
|
|
995
991
|
return function (it) {
|
|
996
|
-
return this$0.l24(it.i24_1
|
|
992
|
+
return this$0.l24(it.i24_1);
|
|
997
993
|
};
|
|
998
994
|
}
|
|
999
995
|
function JavaEmitter$emitDeserializedParams$lambda(this$0) {
|
|
@@ -1013,7 +1009,7 @@
|
|
|
1013
1009
|
}
|
|
1014
1010
|
function JavaEmitter$emitDeserializedParams$lambda_2(this$0) {
|
|
1015
1011
|
return function (it) {
|
|
1016
|
-
return Spacer_instance.z23(4) + 'java.util.Optional.ofNullable(response.headers().get("' + it.i24_1.
|
|
1012
|
+
return Spacer_instance.z23(4) + 'java.util.Optional.ofNullable(response.headers().get("' + it.i24_1.b1() + '")).map(it -> serialization.deserialize(it, Wirespec.getType(' + emitType$default(it.j24_1, this$0) + '.class, ' + it.j24_1.e24() + ')))' + (!it.k24_1 ? '.get()' : '');
|
|
1017
1013
|
};
|
|
1018
1014
|
}
|
|
1019
1015
|
function JavaEmitter$emitSerialized$lambda(this$0) {
|
|
@@ -1041,22 +1037,22 @@
|
|
|
1041
1037
|
protoOf(JavaEmitter).x24 = function (_this__u8e3s4) {
|
|
1042
1038
|
var tmp;
|
|
1043
1039
|
if (_this__u8e3s4 instanceof Endpoint) {
|
|
1044
|
-
tmp = this.l24(_this__u8e3s4.n23_1
|
|
1040
|
+
tmp = this.l24(_this__u8e3s4.n23_1) + 'Endpoint';
|
|
1045
1041
|
} else {
|
|
1046
1042
|
if (_this__u8e3s4 instanceof Channel) {
|
|
1047
|
-
tmp = this.l24(_this__u8e3s4.f25_1
|
|
1043
|
+
tmp = this.l24(_this__u8e3s4.f25_1) + 'Channel';
|
|
1048
1044
|
} else {
|
|
1049
1045
|
if (_this__u8e3s4 instanceof Enum_0) {
|
|
1050
|
-
tmp = this.l24(_this__u8e3s4.c25_1
|
|
1046
|
+
tmp = this.l24(_this__u8e3s4.c25_1);
|
|
1051
1047
|
} else {
|
|
1052
1048
|
if (_this__u8e3s4 instanceof Refined) {
|
|
1053
|
-
tmp = this.l24(_this__u8e3s4.z24_1
|
|
1049
|
+
tmp = this.l24(_this__u8e3s4.z24_1);
|
|
1054
1050
|
} else {
|
|
1055
|
-
if (_this__u8e3s4 instanceof
|
|
1056
|
-
tmp = this.l24(_this__u8e3s4.
|
|
1051
|
+
if (_this__u8e3s4 instanceof Type_0) {
|
|
1052
|
+
tmp = this.l24(_this__u8e3s4.z22_1);
|
|
1057
1053
|
} else {
|
|
1058
1054
|
if (_this__u8e3s4 instanceof Union) {
|
|
1059
|
-
tmp = this.l24(_this__u8e3s4.t22_1
|
|
1055
|
+
tmp = this.l24(_this__u8e3s4.t22_1);
|
|
1060
1056
|
} else {
|
|
1061
1057
|
noWhenBranchMatchedException();
|
|
1062
1058
|
}
|
|
@@ -1089,11 +1085,11 @@
|
|
|
1089
1085
|
};
|
|
1090
1086
|
protoOf(JavaEmitter).l25 = function (type, ast) {
|
|
1091
1087
|
var tmp = this.x24(type);
|
|
1092
|
-
var tmp_0 = this.m25(type.
|
|
1088
|
+
var tmp_0 = this.m25(type.a23_1);
|
|
1093
1089
|
// Inline function 'kotlin.run' call
|
|
1094
1090
|
// Inline function 'kotlin.contracts.contract' call
|
|
1095
1091
|
// Inline function 'community.flock.wirespec.compiler.core.emit.JavaEmitter.emit.<anonymous>' call
|
|
1096
|
-
var $this$run = type.
|
|
1092
|
+
var $this$run = type.b23_1;
|
|
1097
1093
|
var tmp_1;
|
|
1098
1094
|
if ($this$run.l()) {
|
|
1099
1095
|
tmp_1 = '';
|
|
@@ -1107,7 +1103,7 @@
|
|
|
1107
1103
|
return dropLast(joinToString(_this__u8e3s4.n25_1, '\n', VOID, VOID, VOID, VOID, JavaEmitter$emit$lambda_0(this)), 1);
|
|
1108
1104
|
};
|
|
1109
1105
|
protoOf(JavaEmitter).s24 = function (_this__u8e3s4) {
|
|
1110
|
-
return (_this__u8e3s4.k24_1 ? 'java.util.Optional<' + this.o24(_this__u8e3s4.j24_1) + '>' : this.o24(_this__u8e3s4.j24_1)) + ' ' + this.l24(_this__u8e3s4.i24_1
|
|
1106
|
+
return (_this__u8e3s4.k24_1 ? 'java.util.Optional<' + this.o24(_this__u8e3s4.j24_1) + '>' : this.o24(_this__u8e3s4.j24_1)) + ' ' + this.l24(_this__u8e3s4.i24_1);
|
|
1111
1107
|
};
|
|
1112
1108
|
protoOf(JavaEmitter).o24 = function (_this__u8e3s4) {
|
|
1113
1109
|
// Inline function 'kotlin.let' call
|
|
@@ -1120,40 +1116,38 @@
|
|
|
1120
1116
|
var it_0 = _this__u8e3s4.e24() ? 'java.util.List<' + it + '>' : it;
|
|
1121
1117
|
return _this__u8e3s4.q24() ? 'java.util.Map<String, ' + it_0 + '>' : it_0;
|
|
1122
1118
|
};
|
|
1123
|
-
protoOf(JavaEmitter).l24 = function (
|
|
1119
|
+
protoOf(JavaEmitter).l24 = function (identifier) {
|
|
1124
1120
|
var tmp;
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
break;
|
|
1132
|
-
default:
|
|
1121
|
+
if (identifier instanceof DefinitionIdentifier) {
|
|
1122
|
+
tmp = Companion_getInstance_3().h24(sanitizeSymbol(identifier.b1(), this));
|
|
1123
|
+
} else {
|
|
1124
|
+
if (identifier instanceof FieldIdentifier) {
|
|
1125
|
+
tmp = sanitizeKeywords(Companion_getInstance_3().p24(sanitizeSymbol(identifier.b1(), this)), this);
|
|
1126
|
+
} else {
|
|
1133
1127
|
noWhenBranchMatchedException();
|
|
1134
|
-
|
|
1128
|
+
}
|
|
1135
1129
|
}
|
|
1136
1130
|
return tmp;
|
|
1137
1131
|
};
|
|
1138
1132
|
protoOf(JavaEmitter).o25 = function (refined) {
|
|
1139
|
-
return trimMargin('\n |public record ' + this.l24(refined.z24_1
|
|
1133
|
+
return trimMargin('\n |public record ' + this.l24(refined.z24_1) + ' (String value) implements Wirespec.Refined {\n |' + Spacer_instance.toString() + '@Override\n |' + Spacer_instance.toString() + 'public String toString() { return value; }\n |' + Spacer_instance.toString() + 'public static boolean validate(' + this.x24(refined) + ' record) {\n |' + Spacer_instance.toString() + this.p25(refined.a25_1) + '\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + '@Override\n |' + Spacer_instance.toString() + 'public String getValue() { return value; }\n |}\n |\n ');
|
|
1140
1134
|
};
|
|
1141
1135
|
protoOf(JavaEmitter).p25 = function (_this__u8e3s4) {
|
|
1142
1136
|
return Spacer_instance.toString() + 'return java.util.regex.Pattern.compile("' + replace(_this__u8e3s4.r25_1, '\\', '\\\\') + '").matcher(record.value).find();';
|
|
1143
1137
|
};
|
|
1144
1138
|
protoOf(JavaEmitter).s25 = function (enum_0) {
|
|
1145
|
-
var tmp = this.l24(enum_0.c25_1
|
|
1146
|
-
return trimMargin('\n |public enum ' + tmp + ' implements Wirespec.Enum {\n |' + this.t25(joinToString(enum_0.d25_1, ',\n', VOID, VOID, VOID, VOID, JavaEmitter$emit$lambda_1(this))) + ';\n |' + Spacer_instance.toString() + 'public final String label;\n |' + Spacer_instance.toString() + this.l24(enum_0.c25_1
|
|
1139
|
+
var tmp = this.l24(enum_0.c25_1);
|
|
1140
|
+
return trimMargin('\n |public enum ' + tmp + ' implements Wirespec.Enum {\n |' + this.t25(joinToString(enum_0.d25_1, ',\n', VOID, VOID, VOID, VOID, JavaEmitter$emit$lambda_1(this))) + ';\n |' + Spacer_instance.toString() + 'public final String label;\n |' + Spacer_instance.toString() + this.l24(enum_0.c25_1) + '(String label) {\n |' + Spacer_instance.z23(2) + 'this.label = label;\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + '@Override\n |' + Spacer_instance.toString() + 'public String toString() {\n |' + Spacer_instance.z23(2) + 'return label;\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + '@Override\n |' + Spacer_instance.toString() + 'public String getLabel() {\n |' + Spacer_instance.z23(2) + 'return label;\n |' + Spacer_instance.toString() + '}\n |}\n |\n ');
|
|
1147
1141
|
};
|
|
1148
1142
|
protoOf(JavaEmitter).u25 = function (union) {
|
|
1149
1143
|
var tmp = this.x24(union);
|
|
1150
1144
|
return trimMargin('\n |public sealed interface ' + tmp + ' permits ' + joinToString(union.u22_1, VOID, VOID, VOID, VOID, VOID, JavaEmitter$emit$lambda_2) + ' {}\n |\n ');
|
|
1151
1145
|
};
|
|
1152
1146
|
protoOf(JavaEmitter).v25 = function (channel) {
|
|
1153
|
-
return trimMargin('\n |interface ' + this.l24(channel.f25_1
|
|
1147
|
+
return trimMargin('\n |interface ' + this.l24(channel.f25_1) + 'Channel {\n | void invoke(' + emitWrap(channel.h25_1, this, channel.g25_1) + ' message)\n |}\n |\n ');
|
|
1154
1148
|
};
|
|
1155
1149
|
protoOf(JavaEmitter).w25 = function (endpoint) {
|
|
1156
|
-
var tmp = this.l24(endpoint.n23_1
|
|
1150
|
+
var tmp = this.l24(endpoint.n23_1);
|
|
1157
1151
|
var tmp_0 = this.f24(endpoint);
|
|
1158
1152
|
var tmp_1 = emitObject(tmp_0, this, 'Path', 'Wirespec.Path', JavaEmitter$emit$lambda_3(this));
|
|
1159
1153
|
var tmp_2 = emitObject(endpoint.q23_1, this, 'Queries', 'Wirespec.Queries', JavaEmitter$emit$lambda_4(this));
|
|
@@ -1235,10 +1229,10 @@
|
|
|
1235
1229
|
return trimMargin('\n |public interface ' + tmp + 'Endpoint extends Wirespec.Endpoint {\n |' + tmp_1 + '\n |\n |' + tmp_2 + '\n |\n |' + tmp_3 + '\n |\n |' + tmp_4 + '\n |\n |' + tmp_5 + 'sealed interface Response<T> extends Wirespec.Response<T> {}\n |' + tmp_6 + '\n |' + tmp_7 + '\n |\n |' + tmp_9 + '\n |\n |' + tmp_10 + 'interface Handler extends Wirespec.Handler {\n |\n |' + tmp_11 + '\n |\n |' + tmp_12 + 'static Wirespec.RawResponse toResponse(Wirespec.Serializer<String> serialization, Response<?> response) {\n |' + tmp_14 + '\n |' + tmp_15 + 'else { throw new IllegalStateException("Cannot match response with status: " + response.getStatus());}\n |' + tmp_16 + '}\n |\n |' + tmp_17 + 'static Response<?> fromResponse(Wirespec.Deserializer<String> serialization, Wirespec.RawResponse response) {\n |' + tmp_18 + 'return switch (response.statusCode()) {\n |' + tmp_20 + '\n |' + tmp_21 + 'default -> throw new IllegalStateException("Cannot match response with status: " + response.statusCode());\n |' + tmp_22 + '};\n |' + tmp_23 + '}\n |\n |' + tmp_24 + tmp_25 + '\n |' + tmp_26 + 'class Handlers implements Wirespec.Server<Request, Response<?>>, Wirespec.Client<Request, Response<?>> {\n |' + tmp_27 + '@Override public String getPathTemplate() { return "/' + joinToString(endpoint.p23_1, '/', VOID, VOID, VOID, VOID, JavaEmitter$emit$lambda_9(this)) + '"; }\n |' + Spacer_instance.z23(3) + '@Override public String getMethod() { return "' + endpoint.o23_1.toString() + '"; }\n |' + Spacer_instance.z23(3) + '@Override public Wirespec.ServerEdge<Request, Response<?>> getServer(Wirespec.Serialization<String> serialization) {\n |' + Spacer_instance.z23(4) + 'return new Wirespec.ServerEdge<>() {\n |' + Spacer_instance.z23(5) + '@Override public Request from(Wirespec.RawRequest request) { return fromRequest(serialization, request); }\n |' + Spacer_instance.z23(5) + '@Override public Wirespec.RawResponse to(Response<?> response) { return toResponse(serialization, response); }\n |' + Spacer_instance.z23(4) + '};\n |' + Spacer_instance.z23(3) + '}\n |' + Spacer_instance.z23(3) + '@Override public Wirespec.ClientEdge<Request, Response<?>> getClient(Wirespec.Serialization<String> serialization) {\n |' + Spacer_instance.z23(4) + 'return new Wirespec.ClientEdge<>() {\n |' + Spacer_instance.z23(5) + '@Override public Wirespec.RawRequest to(Request request) { return toRequest(serialization, request); }\n |' + Spacer_instance.z23(5) + '@Override public Response<?> from(Wirespec.RawResponse response) { return fromResponse(serialization, response); }\n |' + Spacer_instance.z23(4) + '};\n |' + Spacer_instance.z23(3) + '}\n |' + Spacer_instance.z23(2) + '}\n |' + Spacer_instance.toString() + '}\n |}\n |\n ');
|
|
1236
1230
|
};
|
|
1237
1231
|
protoOf(JavaEmitter).z25 = function (endpoint) {
|
|
1238
|
-
return 'java.util.concurrent.CompletableFuture<Response<?>> ' + this.l24(endpoint.n23_1
|
|
1232
|
+
return 'java.util.concurrent.CompletableFuture<Response<?>> ' + Companion_getInstance_3().p24(this.l24(endpoint.n23_1)) + '(Request request);';
|
|
1239
1233
|
};
|
|
1240
1234
|
protoOf(JavaEmitter).x25 = function (_this__u8e3s4, endpoint) {
|
|
1241
|
-
return trimMargin('\n |' + Spacer_instance.toString() + 'class Request implements Wirespec.Request<' +
|
|
1235
|
+
return trimMargin('\n |' + Spacer_instance.toString() + 'class Request implements Wirespec.Request<' + emit_1(_this__u8e3s4.a24_1, this) + '> {\n |' + Spacer_instance.z23(2) + 'private final Path path;\n |' + Spacer_instance.z23(2) + 'private final Wirespec.Method method;\n |' + Spacer_instance.z23(2) + 'private final Queries queries;\n |' + Spacer_instance.z23(2) + 'private final RequestHeaders headers;\n |' + Spacer_instance.z23(2) + 'private final ' + emit_1(_this__u8e3s4.a24_1, this) + ' body;\n |' + Spacer_instance.z23(2) + emitConstructor(_this__u8e3s4, this, endpoint) + '\n |' + Spacer_instance.z23(2) + '@Override public Path getPath() { return path; }\n |' + Spacer_instance.z23(2) + '@Override public Wirespec.Method getMethod() { return method; }\n |' + Spacer_instance.z23(2) + '@Override public Queries getQueries() { return queries; }\n |' + Spacer_instance.z23(2) + '@Override public RequestHeaders getHeaders() { return headers; }\n |' + Spacer_instance.z23(2) + '@Override public ' + emit_1(_this__u8e3s4.a24_1, this) + ' getBody() { return body; }\n |' + Spacer_instance.toString() + '}\n ');
|
|
1242
1236
|
};
|
|
1243
1237
|
protoOf(JavaEmitter).t24 = function (_this__u8e3s4) {
|
|
1244
1238
|
var tmp = Spacer_instance.toString();
|
|
@@ -1252,12 +1246,12 @@
|
|
|
1252
1246
|
// Inline function 'kotlin.let' call
|
|
1253
1247
|
// Inline function 'kotlin.contracts.contract' call
|
|
1254
1248
|
// Inline function 'community.flock.wirespec.compiler.core.emit.JavaEmitter.emit.<anonymous>' call
|
|
1255
|
-
tmp_2 =
|
|
1249
|
+
tmp_2 = emit_1(tmp0_safe_receiver, this) + ' body';
|
|
1256
1250
|
}
|
|
1257
1251
|
var tmp_3 = joinToString(listOfNotNull([tmp_1, tmp_2]));
|
|
1258
1252
|
var tmp_4 = toString_0(first(_this__u8e3s4.v23_1));
|
|
1259
|
-
var tmp_5 =
|
|
1260
|
-
var tmp_6 = concatGenerics(
|
|
1253
|
+
var tmp_5 = emit_1(_this__u8e3s4.x23_1, this);
|
|
1254
|
+
var tmp_6 = concatGenerics(emit_1(_this__u8e3s4.x23_1, this));
|
|
1261
1255
|
var tmp_7 = Spacer_instance.z23(2);
|
|
1262
1256
|
var tmp_8 = fixStatus(_this__u8e3s4.v23_1, this);
|
|
1263
1257
|
var tmp_9 = Spacer_instance.z23(2);
|
|
@@ -1266,7 +1260,7 @@
|
|
|
1266
1260
|
// Inline function 'community.flock.wirespec.compiler.core.emit.JavaEmitter.emit.<anonymous>' call
|
|
1267
1261
|
var tmp_10 = '@Override public Headers getHeaders() { return new Headers(' + joinToString(_this__u8e3s4.w23_1, VOID, VOID, VOID, VOID, VOID, JavaEmitter$emit$lambda_11(this)) + '); }';
|
|
1268
1262
|
var tmp_11 = Spacer_instance.z23(2);
|
|
1269
|
-
var tmp_12 =
|
|
1263
|
+
var tmp_12 = emit_1(_this__u8e3s4.x23_1, this);
|
|
1270
1264
|
var tmp_13 = _this__u8e3s4.x23_1 == null ? 'null' : 'body';
|
|
1271
1265
|
var tmp_14 = Spacer_instance.z23(1);
|
|
1272
1266
|
return trimMargin('\n |' + tmp + 'record Response' + tmp_0 + '(' + tmp_3 + ') implements Response' + tmp_4 + 'XX<' + tmp_5 + '>, Response' + tmp_6 + ' {\n |' + tmp_7 + '@Override public int getStatus() { return ' + tmp_8 + '; }\n |' + tmp_9 + tmp_10 + '\n |' + tmp_11 + '@Override public ' + tmp_12 + ' getBody() { return ' + tmp_13 + '; }\n |' + tmp_14 + emitObject(_this__u8e3s4.w23_1, this, 'Headers', 'Wirespec.Response.Headers', JavaEmitter$emit$lambda_12(this)) + '\n |' + Spacer_instance.toString() + '}\n ');
|
|
@@ -1295,7 +1289,7 @@
|
|
|
1295
1289
|
while (tmp0_iterator.h()) {
|
|
1296
1290
|
var item = tmp0_iterator.i();
|
|
1297
1291
|
// Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emitResponseInterfaces.<anonymous>' call
|
|
1298
|
-
var tmp$ret$0 =
|
|
1292
|
+
var tmp$ret$0 = emit_3(item.x23_1, $this);
|
|
1299
1293
|
destination.e(tmp$ret$0);
|
|
1300
1294
|
}
|
|
1301
1295
|
var tmp = distinct(destination);
|
|
@@ -1325,12 +1319,12 @@
|
|
|
1325
1319
|
// Inline function 'kotlin.let' call
|
|
1326
1320
|
// Inline function 'kotlin.contracts.contract' call
|
|
1327
1321
|
// Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emitConstructor.<anonymous>' call
|
|
1328
|
-
tmp_3 = Spacer_instance.z23(2) + 'override val body: ' +
|
|
1322
|
+
tmp_3 = Spacer_instance.z23(2) + 'override val body: ' + emit_3(tmp0_safe_receiver, $this) + ',';
|
|
1329
1323
|
}
|
|
1330
1324
|
// Inline function 'kotlin.contracts.contract' call
|
|
1331
1325
|
// Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emitConstructor.<anonymous>' call
|
|
1332
1326
|
var it = joinToString(listOfNotNull([tmp_0, tmp_1, tmp_2, tmp_3]), ',\n');
|
|
1333
|
-
return isBlank(it) ? 'object Request : Wirespec.Request<' +
|
|
1327
|
+
return isBlank(it) ? 'object Request : Wirespec.Request<' + emit_3(_this__u8e3s4.a24_1, $this) + '> {' : 'class Request(\n' + it + '\n' + Spacer_instance.toString() + ') : Wirespec.Request<' + emit_3(_this__u8e3s4.a24_1, $this) + '> {';
|
|
1334
1328
|
}
|
|
1335
1329
|
function emitDeserializedParams_1(_this__u8e3s4, $this, endpoint) {
|
|
1336
1330
|
// Inline function 'kotlin.let' call
|
|
@@ -1346,7 +1340,7 @@
|
|
|
1346
1340
|
// Inline function 'kotlin.let' call
|
|
1347
1341
|
// Inline function 'kotlin.contracts.contract' call
|
|
1348
1342
|
// Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emitDeserializedParams.<anonymous>' call
|
|
1349
|
-
tmp_3 = Spacer_instance.z23(3) + 'body = serialization.deserialize(requireNotNull(request.body) { "body is null" }, typeOf<' +
|
|
1343
|
+
tmp_3 = Spacer_instance.z23(3) + 'body = serialization.deserialize(requireNotNull(request.body) { "body is null" }, typeOf<' + emit_3(tmp0_safe_receiver, $this) + '>()),';
|
|
1350
1344
|
}
|
|
1351
1345
|
// Inline function 'kotlin.contracts.contract' call
|
|
1352
1346
|
// Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emitDeserializedParams.<anonymous>' call
|
|
@@ -1354,30 +1348,30 @@
|
|
|
1354
1348
|
return isBlank(it) ? '' : '(\n' + it + '\n' + Spacer_instance.z23(2) + ')';
|
|
1355
1349
|
}
|
|
1356
1350
|
function emitSerialized_1(_this__u8e3s4, $this) {
|
|
1357
|
-
return trimMargin('\n |' + Spacer_instance.z23(3) + 'is Response' + _this__u8e3s4.v23_1 + ' -> Wirespec.RawResponse(\n |' + Spacer_instance.z23(4) + 'statusCode = response.status,\n |' + Spacer_instance.z23(4) + 'headers = mapOf(),\n |' + Spacer_instance.z23(4) + 'body = ' + (!(_this__u8e3s4.x23_1 == null) ? 'serialization.serialize(response.body, typeOf<' +
|
|
1351
|
+
return trimMargin('\n |' + Spacer_instance.z23(3) + 'is Response' + _this__u8e3s4.v23_1 + ' -> Wirespec.RawResponse(\n |' + Spacer_instance.z23(4) + 'statusCode = response.status,\n |' + Spacer_instance.z23(4) + 'headers = mapOf(),\n |' + Spacer_instance.z23(4) + 'body = ' + (!(_this__u8e3s4.x23_1 == null) ? 'serialization.serialize(response.body, typeOf<' + emit_3(_this__u8e3s4.x23_1, $this) + '>())' : 'null') + ',\n |' + Spacer_instance.z23(3) + ')\n ');
|
|
1358
1352
|
}
|
|
1359
1353
|
function emitDeserialized_2(_this__u8e3s4, $this) {
|
|
1360
|
-
return trimMargin('\n |' + Spacer_instance.z23(3) + _this__u8e3s4.v23_1 + ' -> Response' + _this__u8e3s4.v23_1 + '(\n |' + Spacer_instance.z23(4) + 'body = serialization.deserialize(requireNotNull(response.body) { "body is null" }, typeOf<' +
|
|
1354
|
+
return trimMargin('\n |' + Spacer_instance.z23(3) + _this__u8e3s4.v23_1 + ' -> Response' + _this__u8e3s4.v23_1 + '(\n |' + Spacer_instance.z23(4) + 'body = serialization.deserialize(requireNotNull(response.body) { "body is null" }, typeOf<' + emit_3(_this__u8e3s4.x23_1, $this) + '>()),\n |' + Spacer_instance.z23(3) + ')\n ');
|
|
1361
1355
|
}
|
|
1362
1356
|
function emitSerialized_2(_this__u8e3s4, $this, fields) {
|
|
1363
|
-
return 'request.' + fields + '.' + $this.l24(_this__u8e3s4.i24_1
|
|
1357
|
+
return 'request.' + fields + '.' + $this.l24(_this__u8e3s4.i24_1) + '?.let{"' + _this__u8e3s4.i24_1.b1() + '" to serialization.serialize(it, typeOf<' + $this.o24(_this__u8e3s4.j24_1) + '>())}';
|
|
1364
1358
|
}
|
|
1365
1359
|
function emitDeserialized_3(_this__u8e3s4, $this) {
|
|
1366
|
-
return Spacer_instance.z23(3) + $this.l24(_this__u8e3s4.pd_1.m24_1
|
|
1360
|
+
return Spacer_instance.z23(3) + $this.l24(_this__u8e3s4.pd_1.m24_1) + ' = serialization.deserialize(request.path[' + _this__u8e3s4.od_1 + '], typeOf<' + $this.o24(_this__u8e3s4.pd_1.n24_1) + '>())';
|
|
1367
1361
|
}
|
|
1368
1362
|
function emitDeserialized_4(_this__u8e3s4, $this, fields) {
|
|
1369
|
-
return _this__u8e3s4.k24_1 ? Spacer_instance.z23(3) + $this.l24(_this__u8e3s4.i24_1
|
|
1363
|
+
return _this__u8e3s4.k24_1 ? Spacer_instance.z23(3) + $this.l24(_this__u8e3s4.i24_1) + ' = request.' + fields + '["' + _this__u8e3s4.i24_1.b1() + '"]?.let{ serialization.deserialize(it, typeOf<' + $this.o24(_this__u8e3s4.j24_1) + '>()) }' : Spacer_instance.z23(3) + $this.l24(_this__u8e3s4.i24_1) + ' = serialization.deserialize(requireNotNull(request.' + fields + '["' + _this__u8e3s4.i24_1.b1() + '"]) { "' + $this.l24(_this__u8e3s4.i24_1) + ' is null" }, typeOf<' + $this.o24(_this__u8e3s4.j24_1) + '>())';
|
|
1370
1364
|
}
|
|
1371
1365
|
function emitIdentifier_0(_this__u8e3s4, $this) {
|
|
1372
|
-
return 'request.path.' + $this.l24(_this__u8e3s4.m24_1
|
|
1366
|
+
return 'request.path.' + $this.l24(_this__u8e3s4.m24_1) + '.let{serialization.serialize(it, typeOf<' + $this.o24(_this__u8e3s4.n24_1) + '>())}';
|
|
1373
1367
|
}
|
|
1374
|
-
function
|
|
1368
|
+
function emit_3(_this__u8e3s4, $this) {
|
|
1375
1369
|
var tmp1_safe_receiver = _this__u8e3s4 == null ? null : _this__u8e3s4.c24_1;
|
|
1376
1370
|
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : $this.o24(tmp1_safe_receiver);
|
|
1377
1371
|
return tmp2_elvis_lhs == null ? 'Unit' : tmp2_elvis_lhs;
|
|
1378
1372
|
}
|
|
1379
|
-
function
|
|
1380
|
-
return $this.l24(_this__u8e3s4.m24_1
|
|
1373
|
+
function emit_4(_this__u8e3s4, $this) {
|
|
1374
|
+
return $this.l24(_this__u8e3s4.m24_1) + ': ' + $this.o24(_this__u8e3s4.n24_1);
|
|
1381
1375
|
}
|
|
1382
1376
|
function brace(_this__u8e3s4, $this) {
|
|
1383
1377
|
return wrap(_this__u8e3s4, $this, '(', ')');
|
|
@@ -1465,7 +1459,7 @@
|
|
|
1465
1459
|
}
|
|
1466
1460
|
function KotlinEmitter$emit$lambda_2(this$0) {
|
|
1467
1461
|
return function (it) {
|
|
1468
|
-
return
|
|
1462
|
+
return emit_4(it, this$0);
|
|
1469
1463
|
};
|
|
1470
1464
|
}
|
|
1471
1465
|
function KotlinEmitter$emit$lambda_3(this$0) {
|
|
@@ -1511,17 +1505,17 @@
|
|
|
1511
1505
|
}
|
|
1512
1506
|
function KotlinEmitter$emit$lambda_9(this$0) {
|
|
1513
1507
|
return function (it) {
|
|
1514
|
-
return this$0.l24(it.m24_1
|
|
1508
|
+
return this$0.l24(it.m24_1);
|
|
1515
1509
|
};
|
|
1516
1510
|
}
|
|
1517
1511
|
function KotlinEmitter$emit$lambda_10(this$0) {
|
|
1518
1512
|
return function (it) {
|
|
1519
|
-
return this$0.l24(it.i24_1
|
|
1513
|
+
return this$0.l24(it.i24_1);
|
|
1520
1514
|
};
|
|
1521
1515
|
}
|
|
1522
1516
|
function KotlinEmitter$emit$lambda_11(this$0) {
|
|
1523
1517
|
return function (it) {
|
|
1524
|
-
return this$0.l24(it.i24_1
|
|
1518
|
+
return this$0.l24(it.i24_1);
|
|
1525
1519
|
};
|
|
1526
1520
|
}
|
|
1527
1521
|
function KotlinEmitter$emit$lambda_12(this$0) {
|
|
@@ -1551,7 +1545,7 @@
|
|
|
1551
1545
|
}
|
|
1552
1546
|
function KotlinEmitter$emitConstructor$lambda(this$0) {
|
|
1553
1547
|
return function (it) {
|
|
1554
|
-
return Spacer_instance.z23(2) +
|
|
1548
|
+
return Spacer_instance.z23(2) + emit_4(it, this$0);
|
|
1555
1549
|
};
|
|
1556
1550
|
}
|
|
1557
1551
|
function KotlinEmitter$emitConstructor$lambda_0(this$0) {
|
|
@@ -1599,22 +1593,22 @@
|
|
|
1599
1593
|
protoOf(KotlinEmitter).x24 = function (_this__u8e3s4) {
|
|
1600
1594
|
var tmp;
|
|
1601
1595
|
if (_this__u8e3s4 instanceof Endpoint) {
|
|
1602
|
-
tmp = this.l24(_this__u8e3s4.n23_1
|
|
1596
|
+
tmp = this.l24(_this__u8e3s4.n23_1) + 'Endpoint';
|
|
1603
1597
|
} else {
|
|
1604
1598
|
if (_this__u8e3s4 instanceof Channel) {
|
|
1605
|
-
tmp = this.l24(_this__u8e3s4.f25_1
|
|
1599
|
+
tmp = this.l24(_this__u8e3s4.f25_1) + 'Channel';
|
|
1606
1600
|
} else {
|
|
1607
1601
|
if (_this__u8e3s4 instanceof Enum_0) {
|
|
1608
|
-
tmp = this.l24(_this__u8e3s4.c25_1
|
|
1602
|
+
tmp = this.l24(_this__u8e3s4.c25_1);
|
|
1609
1603
|
} else {
|
|
1610
1604
|
if (_this__u8e3s4 instanceof Refined) {
|
|
1611
|
-
tmp = this.l24(_this__u8e3s4.z24_1
|
|
1605
|
+
tmp = this.l24(_this__u8e3s4.z24_1);
|
|
1612
1606
|
} else {
|
|
1613
|
-
if (_this__u8e3s4 instanceof
|
|
1614
|
-
tmp = this.l24(_this__u8e3s4.
|
|
1607
|
+
if (_this__u8e3s4 instanceof Type_0) {
|
|
1608
|
+
tmp = this.l24(_this__u8e3s4.z22_1);
|
|
1615
1609
|
} else {
|
|
1616
1610
|
if (_this__u8e3s4 instanceof Union) {
|
|
1617
|
-
tmp = this.l24(_this__u8e3s4.t22_1
|
|
1611
|
+
tmp = this.l24(_this__u8e3s4.t22_1);
|
|
1618
1612
|
} else {
|
|
1619
1613
|
noWhenBranchMatchedException();
|
|
1620
1614
|
}
|
|
@@ -1647,15 +1641,15 @@
|
|
|
1647
1641
|
};
|
|
1648
1642
|
protoOf(KotlinEmitter).l25 = function (type, ast) {
|
|
1649
1643
|
var tmp;
|
|
1650
|
-
if (type.
|
|
1644
|
+
if (type.a23_1.n25_1.l()) {
|
|
1651
1645
|
tmp = Spacer_instance.toString() + 'data object ' + this.x24(type);
|
|
1652
1646
|
} else {
|
|
1653
1647
|
var tmp_0 = this.x24(type);
|
|
1654
|
-
var tmp_1 = this.m25(type.
|
|
1648
|
+
var tmp_1 = this.m25(type.a23_1);
|
|
1655
1649
|
// Inline function 'kotlin.run' call
|
|
1656
1650
|
// Inline function 'kotlin.contracts.contract' call
|
|
1657
1651
|
// Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emit.<anonymous>' call
|
|
1658
|
-
var $this$run = type.
|
|
1652
|
+
var $this$run = type.b23_1;
|
|
1659
1653
|
var tmp_2;
|
|
1660
1654
|
if ($this$run.l()) {
|
|
1661
1655
|
tmp_2 = '';
|
|
@@ -1671,7 +1665,7 @@
|
|
|
1671
1665
|
return dropLast(joinToString(_this__u8e3s4.n25_1, '\n', VOID, VOID, VOID, VOID, KotlinEmitter$emit$lambda_0(this)), 1);
|
|
1672
1666
|
};
|
|
1673
1667
|
protoOf(KotlinEmitter).s24 = function (_this__u8e3s4) {
|
|
1674
|
-
return this.l24(_this__u8e3s4.i24_1
|
|
1668
|
+
return this.l24(_this__u8e3s4.i24_1) + ': ' + this.o24(_this__u8e3s4.j24_1) + (_this__u8e3s4.k24_1 ? '?' : '');
|
|
1675
1669
|
};
|
|
1676
1670
|
protoOf(KotlinEmitter).o24 = function (_this__u8e3s4) {
|
|
1677
1671
|
// Inline function 'kotlin.let' call
|
|
@@ -1720,39 +1714,37 @@
|
|
|
1720
1714
|
var it_0 = _this__u8e3s4.e24() ? 'List<' + it + '>' : it;
|
|
1721
1715
|
return _this__u8e3s4.q24() ? 'Map<String, ' + it_0 + '>' : it_0;
|
|
1722
1716
|
};
|
|
1723
|
-
protoOf(KotlinEmitter).l24 = function (
|
|
1717
|
+
protoOf(KotlinEmitter).l24 = function (identifier) {
|
|
1724
1718
|
var tmp;
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
break;
|
|
1732
|
-
default:
|
|
1719
|
+
if (identifier instanceof DefinitionIdentifier) {
|
|
1720
|
+
tmp = Companion_getInstance_3().h24(sanitizeSymbol_0(identifier.b1(), this));
|
|
1721
|
+
} else {
|
|
1722
|
+
if (identifier instanceof FieldIdentifier) {
|
|
1723
|
+
tmp = sanitizeKeywords_0(Companion_getInstance_3().p24(sanitizeSymbol_0(identifier.b1(), this)), this);
|
|
1724
|
+
} else {
|
|
1733
1725
|
noWhenBranchMatchedException();
|
|
1734
|
-
|
|
1726
|
+
}
|
|
1735
1727
|
}
|
|
1736
1728
|
return tmp;
|
|
1737
1729
|
};
|
|
1738
1730
|
protoOf(KotlinEmitter).o25 = function (refined) {
|
|
1739
|
-
return trimMargin('\n |data class ' + sanitizeSymbol_0(refined.z24_1.
|
|
1731
|
+
return trimMargin('\n |data class ' + sanitizeSymbol_0(refined.z24_1.b1(), this) + '(override val value: String): Wirespec.Refined {\n |' + Spacer_instance.toString() + 'override fun toString() = value\n |}\n |\n |fun ' + refined.z24_1.b1() + '.validate() = ' + this.p25(refined.a25_1) + '\n |\n ');
|
|
1740
1732
|
};
|
|
1741
1733
|
protoOf(KotlinEmitter).p25 = function (_this__u8e3s4) {
|
|
1742
1734
|
return 'Regex("""' + _this__u8e3s4.r25_1 + '""").matches(value)';
|
|
1743
1735
|
};
|
|
1744
1736
|
protoOf(KotlinEmitter).s25 = function (enum_0) {
|
|
1745
|
-
var tmp = sanitizeSymbol_0(enum_0.c25_1.
|
|
1737
|
+
var tmp = sanitizeSymbol_0(enum_0.c25_1.b1(), this);
|
|
1746
1738
|
return trimMargin('\n |enum class ' + tmp + ' (override val label: String): Wirespec.Enum {\n |' + this.t25(joinToString(enum_0.d25_1, ',\n', VOID, VOID, VOID, VOID, KotlinEmitter$emit$lambda_1(this))) + ';\n |' + Spacer_instance.toString() + 'override fun toString(): String {\n |' + Spacer_instance.z23(2) + 'return label\n |' + Spacer_instance.toString() + '}\n |}\n |\n ');
|
|
1747
1739
|
};
|
|
1748
1740
|
protoOf(KotlinEmitter).u25 = function (union) {
|
|
1749
1741
|
return trimMargin('\n |sealed interface ' + this.x24(union) + '\n |\n ');
|
|
1750
1742
|
};
|
|
1751
1743
|
protoOf(KotlinEmitter).v25 = function (channel) {
|
|
1752
|
-
return trimMargin('\n |interface ' + this.l24(channel.f25_1
|
|
1744
|
+
return trimMargin('\n |interface ' + this.l24(channel.f25_1) + 'Channel {\n | operator fun invoke(message: ' + emitWrap_0(channel.h25_1, this, channel.g25_1) + ')\n |}\n |\n ');
|
|
1753
1745
|
};
|
|
1754
1746
|
protoOf(KotlinEmitter).w25 = function (endpoint) {
|
|
1755
|
-
var tmp = this.l24(endpoint.n23_1
|
|
1747
|
+
var tmp = this.l24(endpoint.n23_1);
|
|
1756
1748
|
var tmp_0 = this.f24(endpoint);
|
|
1757
1749
|
var tmp_1 = emitObject_0(tmp_0, this, 'Path', 'Wirespec.Path', KotlinEmitter$emit$lambda_2(this));
|
|
1758
1750
|
var tmp_2 = emitObject_0(endpoint.q23_1, this, 'Queries', 'Wirespec.Queries', KotlinEmitter$emit$lambda_3(this));
|
|
@@ -1832,7 +1824,7 @@
|
|
|
1832
1824
|
return trimMargin('\n |object ' + tmp + 'Endpoint : Wirespec.Endpoint {\n |' + tmp_1 + '\n |\n |' + tmp_2 + '\n |\n |' + tmp_3 + '\n |\n |' + tmp_4 + '\n |\n |' + tmp_5 + 'sealed interface Response<T: Any> : Wirespec.Response<T>\n |\n |' + tmp_6 + '\n |\n |' + tmp_7 + '\n |\n |' + tmp_9 + '\n |\n |' + tmp_10 + 'fun toResponse(serialization: Wirespec.Serializer<String>, response: Response<*>): Wirespec.RawResponse =\n |' + tmp_11 + 'when(response) {\n |' + tmp_13 + '\n |' + tmp_14 + '}\n |\n |' + tmp_15 + 'fun fromResponse(serialization: Wirespec.Deserializer<String>, response: Wirespec.RawResponse): Response<*> =\n |' + tmp_16 + 'when (response.statusCode) {\n |' + tmp_18 + '\n |' + tmp_19 + 'else -> error("Cannot match response with status: ${response.statusCode}")\n |' + tmp_20 + '}\n |\n |' + tmp_21 + 'interface Handler: Wirespec.Handler {\n |' + tmp_22 + tmp_23 + '\n |' + tmp_24 + 'companion object: Wirespec.Server<Request, Response<*>>, Wirespec.Client<Request, Response<*>> {\n |' + tmp_25 + 'override val pathTemplate = "/' + joinToString(endpoint.p23_1, '/', VOID, VOID, VOID, VOID, KotlinEmitter$emit$lambda_8(this)) + '"\n |' + Spacer_instance.z23(3) + 'override val method = "' + endpoint.o23_1.toString() + '"\n |' + Spacer_instance.z23(3) + 'override fun server(serialization: Wirespec.Serialization<String>) = object : Wirespec.ServerEdge<Request, Response<*>> {\n |' + Spacer_instance.z23(4) + 'override fun from(request: Wirespec.RawRequest) = fromRequest(serialization, request)\n |' + Spacer_instance.z23(4) + 'override fun to(response: Response<*>) = toResponse(serialization, response)\n |' + Spacer_instance.z23(3) + '}\n |' + Spacer_instance.z23(3) + 'override fun client(serialization: Wirespec.Serialization<String>) = object : Wirespec.ClientEdge<Request, Response<*>> {\n |' + Spacer_instance.z23(4) + 'override fun to(request: Request) = toRequest(serialization, request)\n |' + Spacer_instance.z23(4) + 'override fun from(response: Wirespec.RawResponse) = fromResponse(serialization, response)\n |' + Spacer_instance.z23(3) + '}\n |' + Spacer_instance.z23(2) + '}\n |' + Spacer_instance.toString() + '}\n |}\n |\n ');
|
|
1833
1825
|
};
|
|
1834
1826
|
protoOf(KotlinEmitter).z25 = function (endpoint) {
|
|
1835
|
-
return 'suspend fun ' + Companion_getInstance_3().p24(this.l24(endpoint.n23_1
|
|
1827
|
+
return 'suspend fun ' + Companion_getInstance_3().p24(this.l24(endpoint.n23_1)) + '(request: Request): Response<*>';
|
|
1836
1828
|
};
|
|
1837
1829
|
protoOf(KotlinEmitter).x25 = function (_this__u8e3s4, endpoint) {
|
|
1838
1830
|
var tmp = Spacer_instance.toString();
|
|
@@ -1869,10 +1861,10 @@
|
|
|
1869
1861
|
} else {
|
|
1870
1862
|
tmp_20 = 'emptyMap()';
|
|
1871
1863
|
}
|
|
1872
|
-
return trimMargin('\n |' + tmp + tmp_0 + '\n |' + tmp_1 + 'override val path = Path' + tmp_3 + '\n |' + tmp_4 + 'override val method = Wirespec.Method.' + endpoint.o23_1.p2_1 + '\n |' + tmp_5 + 'override val queries = Queries' + tmp_6 + '\n |' + tmp_7 + 'override val headers = Headers' + tmp_8 + tmp_9 + '\n |' + tmp_10 + '}\n |\n |' + tmp_11 + 'fun toRequest(serialization: Wirespec.Serializer<String>, request: Request): Wirespec.RawRequest =\n |' + tmp_12 + 'Wirespec.RawRequest(\n |' + tmp_13 + 'path = listOf(' + tmp_14 + '),\n |' + tmp_15 + 'method = request.method.name,\n |' + tmp_16 + 'queries = ' + tmp_18 + ',\n |' + tmp_19 + 'headers = ' + tmp_20 + ',\n |' + Spacer_instance.z23(3) + 'body = serialization.serialize(request.body, typeOf<' +
|
|
1864
|
+
return trimMargin('\n |' + tmp + tmp_0 + '\n |' + tmp_1 + 'override val path = Path' + tmp_3 + '\n |' + tmp_4 + 'override val method = Wirespec.Method.' + endpoint.o23_1.p2_1 + '\n |' + tmp_5 + 'override val queries = Queries' + tmp_6 + '\n |' + tmp_7 + 'override val headers = Headers' + tmp_8 + tmp_9 + '\n |' + tmp_10 + '}\n |\n |' + tmp_11 + 'fun toRequest(serialization: Wirespec.Serializer<String>, request: Request): Wirespec.RawRequest =\n |' + tmp_12 + 'Wirespec.RawRequest(\n |' + tmp_13 + 'path = listOf(' + tmp_14 + '),\n |' + tmp_15 + 'method = request.method.name,\n |' + tmp_16 + 'queries = ' + tmp_18 + ',\n |' + tmp_19 + 'headers = ' + tmp_20 + ',\n |' + Spacer_instance.z23(3) + 'body = serialization.serialize(request.body, typeOf<' + emit_3(_this__u8e3s4.a24_1, this) + '>()),\n |' + Spacer_instance.z23(2) + ')\n |\n |' + Spacer_instance.toString() + 'fun fromRequest(serialization: Wirespec.Deserializer<String>, request: Wirespec.RawRequest): Request =\n |' + Spacer_instance.z23(2) + 'Request' + emitDeserializedParams_1(_this__u8e3s4, this, endpoint) + '\n ');
|
|
1873
1865
|
};
|
|
1874
1866
|
protoOf(KotlinEmitter).t24 = function (_this__u8e3s4) {
|
|
1875
|
-
return trimMargin('\n |' + Spacer_instance.toString() + 'data class Response' + _this__u8e3s4.v23_1 + '(override val body: ' +
|
|
1867
|
+
return trimMargin('\n |' + Spacer_instance.toString() + 'data class Response' + _this__u8e3s4.v23_1 + '(override val body: ' + emit_3(_this__u8e3s4.x23_1, this) + ') : Response' + toString_0(charSequenceGet(_this__u8e3s4.v23_1, 0)) + 'XX<' + emit_3(_this__u8e3s4.x23_1, this) + '>, Response' + concatGenerics(emit_3(_this__u8e3s4.x23_1, this)) + ' {\n |' + Spacer_instance.z23(2) + 'override val status = ' + fixStatus_0(_this__u8e3s4.v23_1, this) + '\n |' + Spacer_instance.z23(2) + 'override val headers = Headers\n |' + Spacer_instance.z23(2) + 'data object Headers : Wirespec.Response.Headers\n |' + Spacer_instance.toString() + '}\n ');
|
|
1876
1868
|
};
|
|
1877
1869
|
function Companion_1() {
|
|
1878
1870
|
Companion_instance_2 = this;
|
|
@@ -1901,7 +1893,7 @@
|
|
|
1901
1893
|
var tmp = Spacer_instance.toString();
|
|
1902
1894
|
// Inline function 'kotlin.text.uppercase' call
|
|
1903
1895
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1904
|
-
return tmp + 'final case object ' + emit$_anonymous_$sanitize_964c6p(it).toUpperCase() + ' extends ' + this$0.l24($$this$run.c25_1
|
|
1896
|
+
return tmp + 'final case object ' + emit$_anonymous_$sanitize_964c6p(it).toUpperCase() + ' extends ' + this$0.l24($$this$run.c25_1) + '(label = "' + it + '")';
|
|
1905
1897
|
};
|
|
1906
1898
|
}
|
|
1907
1899
|
function ScalaEmitter(packageName, logger) {
|
|
@@ -1918,22 +1910,22 @@
|
|
|
1918
1910
|
protoOf(ScalaEmitter).x24 = function (_this__u8e3s4) {
|
|
1919
1911
|
var tmp;
|
|
1920
1912
|
if (_this__u8e3s4 instanceof Endpoint) {
|
|
1921
|
-
tmp = this.l24(_this__u8e3s4.n23_1
|
|
1913
|
+
tmp = this.l24(_this__u8e3s4.n23_1) + 'Endpoint';
|
|
1922
1914
|
} else {
|
|
1923
1915
|
if (_this__u8e3s4 instanceof Channel) {
|
|
1924
|
-
tmp = this.l24(_this__u8e3s4.f25_1
|
|
1916
|
+
tmp = this.l24(_this__u8e3s4.f25_1) + 'Channel';
|
|
1925
1917
|
} else {
|
|
1926
1918
|
if (_this__u8e3s4 instanceof Enum_0) {
|
|
1927
|
-
tmp = this.l24(_this__u8e3s4.c25_1
|
|
1919
|
+
tmp = this.l24(_this__u8e3s4.c25_1);
|
|
1928
1920
|
} else {
|
|
1929
1921
|
if (_this__u8e3s4 instanceof Refined) {
|
|
1930
|
-
tmp = this.l24(_this__u8e3s4.z24_1
|
|
1922
|
+
tmp = this.l24(_this__u8e3s4.z24_1);
|
|
1931
1923
|
} else {
|
|
1932
|
-
if (_this__u8e3s4 instanceof
|
|
1933
|
-
tmp = this.l24(_this__u8e3s4.
|
|
1924
|
+
if (_this__u8e3s4 instanceof Type_0) {
|
|
1925
|
+
tmp = this.l24(_this__u8e3s4.z22_1);
|
|
1934
1926
|
} else {
|
|
1935
1927
|
if (_this__u8e3s4 instanceof Union) {
|
|
1936
|
-
tmp = this.l24(_this__u8e3s4.t22_1
|
|
1928
|
+
tmp = this.l24(_this__u8e3s4.t22_1);
|
|
1937
1929
|
} else {
|
|
1938
1930
|
noWhenBranchMatchedException();
|
|
1939
1931
|
}
|
|
@@ -1967,16 +1959,19 @@
|
|
|
1967
1959
|
return destination;
|
|
1968
1960
|
};
|
|
1969
1961
|
protoOf(ScalaEmitter).l25 = function (type, ast) {
|
|
1970
|
-
return trimMargin('\n |case class ' + this.x24(type) + '(\n |' + this.m25(type.
|
|
1962
|
+
return trimMargin('\n |case class ' + this.x24(type) + '(\n |' + this.m25(type.a23_1) + '\n |)\n |\n ');
|
|
1971
1963
|
};
|
|
1972
1964
|
protoOf(ScalaEmitter).m25 = function (_this__u8e3s4) {
|
|
1973
1965
|
return dropLast(joinToString(_this__u8e3s4.n25_1, '\n', VOID, VOID, VOID, VOID, ScalaEmitter$emit$lambda(this)), 1);
|
|
1974
1966
|
};
|
|
1975
1967
|
protoOf(ScalaEmitter).s24 = function (_this__u8e3s4) {
|
|
1976
|
-
return Spacer_instance.toString() + 'val ' + this.l24(_this__u8e3s4.i24_1
|
|
1968
|
+
return Spacer_instance.toString() + 'val ' + this.l24(_this__u8e3s4.i24_1) + ': ' + (_this__u8e3s4.k24_1 ? 'Option[' + this.o24(_this__u8e3s4.j24_1) + ']' : this.o24(_this__u8e3s4.j24_1)) + ',';
|
|
1977
1969
|
};
|
|
1978
|
-
protoOf(ScalaEmitter).l24 = function (
|
|
1979
|
-
|
|
1970
|
+
protoOf(ScalaEmitter).l24 = function (identifier) {
|
|
1971
|
+
// Inline function 'kotlin.run' call
|
|
1972
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
1973
|
+
// Inline function 'community.flock.wirespec.compiler.core.emit.ScalaEmitter.emit.<anonymous>' call
|
|
1974
|
+
return Companion_getInstance_1().g26_1.p1(identifier.b1()) ? addBackticks(identifier.b1()) : identifier.b1();
|
|
1980
1975
|
};
|
|
1981
1976
|
protoOf(ScalaEmitter).v25 = function (channel) {
|
|
1982
1977
|
return this.l26();
|
|
@@ -2033,7 +2028,7 @@
|
|
|
2033
2028
|
// Inline function 'kotlin.contracts.contract' call
|
|
2034
2029
|
// Inline function 'community.flock.wirespec.compiler.core.emit.ScalaEmitter.emit.<anonymous>' call
|
|
2035
2030
|
var tmp = this.x24(enum_0);
|
|
2036
|
-
var tmp_0 = this.l24(enum_0.c25_1
|
|
2031
|
+
var tmp_0 = this.l24(enum_0.c25_1);
|
|
2037
2032
|
return trimMargin('\n |sealed abstract class ' + tmp + '(val label: String)\n |object ' + tmp_0 + ' {\n |' + joinToString(enum_0.d25_1, '\n', VOID, VOID, VOID, VOID, ScalaEmitter$emit$lambda_0(this, enum_0)) + '\n |}\n |');
|
|
2038
2033
|
};
|
|
2039
2034
|
protoOf(ScalaEmitter).o25 = function (refined) {
|
|
@@ -2165,8 +2160,8 @@
|
|
|
2165
2160
|
function joinToObject(_this__u8e3s4, $this, transform) {
|
|
2166
2161
|
return joinToString(_this__u8e3s4, ', ', '{', '}', VOID, VOID, transform);
|
|
2167
2162
|
}
|
|
2168
|
-
function
|
|
2169
|
-
return $this.l24(_this__u8e3s4.r26_1
|
|
2163
|
+
function emit_5(_this__u8e3s4, $this) {
|
|
2164
|
+
return $this.l24(_this__u8e3s4.r26_1) + (_this__u8e3s4.t26_1 ? '?' : '') + ': ' + $this.o24(_this__u8e3s4.s26_1);
|
|
2170
2165
|
}
|
|
2171
2166
|
function emitName(_this__u8e3s4, $this) {
|
|
2172
2167
|
return 'Response' + Companion_getInstance_3().h24(_this__u8e3s4.v23_1);
|
|
@@ -2185,7 +2180,7 @@
|
|
|
2185
2180
|
return trimIndent('\n |' + tmp + 'export type ' + tmp_0 + ' = { \n |' + tmp_1 + 'status: ' + _this__u8e3s4.v23_1 + '\n |' + tmp_2 + 'headers: {' + joinToString(_this__u8e3s4.w23_1, VOID, VOID, VOID, VOID, VOID, TypeScriptEmitter$emitType$lambda_0($this)) + '}\n |' + Spacer_instance.z23(2) + 'body: ' + emitReference_0(_this__u8e3s4, $this) + '\n |' + Spacer_instance.toString() + '}\n ');
|
|
2186
2181
|
}
|
|
2187
2182
|
function sanitizeSymbol_1(_this__u8e3s4, $this) {
|
|
2188
|
-
return sanitizeSymbol_2(_this__u8e3s4.
|
|
2183
|
+
return sanitizeSymbol_2(_this__u8e3s4.b1(), $this);
|
|
2189
2184
|
}
|
|
2190
2185
|
function sanitizeSymbol_2(_this__u8e3s4, $this) {
|
|
2191
2186
|
var tmp = asSequence(_this__u8e3s4);
|
|
@@ -2195,7 +2190,7 @@
|
|
|
2195
2190
|
return trimMargin('\n |export const client: Wirespec.Client<Request, Response> = (serialization: Wirespec.Serialization) => ({\n |' + prependIndent(emitClientTo(_this__u8e3s4, $this), Spacer_instance.z23(1)) + ',\n |' + prependIndent(emitClientFrom(_this__u8e3s4, $this), Spacer_instance.z23(1)) + '\n |})\n ');
|
|
2196
2191
|
}
|
|
2197
2192
|
function emitPathArray(_this__u8e3s4, $this) {
|
|
2198
|
-
return joinToString(_this__u8e3s4.p23_1, ', ', '[', ']', VOID, VOID, TypeScriptEmitter$emitPathArray$lambda);
|
|
2193
|
+
return joinToString(_this__u8e3s4.p23_1, ', ', '[', ']', VOID, VOID, TypeScriptEmitter$emitPathArray$lambda($this));
|
|
2199
2194
|
}
|
|
2200
2195
|
function emitClientTo(_this__u8e3s4, $this) {
|
|
2201
2196
|
var tmp = Spacer_instance.z23(1);
|
|
@@ -2239,13 +2234,13 @@
|
|
|
2239
2234
|
return trimMargin('\n |to: (response) => ({\n |' + Spacer_instance.z23(1) + 'status: response.status,\n |' + Spacer_instance.z23(1) + 'headers: {},\n |' + Spacer_instance.z23(1) + 'body: serialization.serialize(response.body),\n |})\n ');
|
|
2240
2235
|
}
|
|
2241
2236
|
function emitDeserialize(_this__u8e3s4, $this) {
|
|
2242
|
-
return $this.l24(_this__u8e3s4.pd_1.m24_1
|
|
2237
|
+
return $this.l24(_this__u8e3s4.pd_1.m24_1) + ': serialization.deserialize(request.path[' + _this__u8e3s4.od_1 + '])';
|
|
2243
2238
|
}
|
|
2244
2239
|
function emitDeserialize_0(_this__u8e3s4, $this, fields) {
|
|
2245
|
-
return $this.l24(_this__u8e3s4.i24_1
|
|
2240
|
+
return $this.l24(_this__u8e3s4.i24_1) + ': serialization.deserialize(request.' + fields + '.' + $this.l24(_this__u8e3s4.i24_1) + ')';
|
|
2246
2241
|
}
|
|
2247
2242
|
function emitSerialize(_this__u8e3s4, $this, fields) {
|
|
2248
|
-
return $this.l24(_this__u8e3s4.i24_1
|
|
2243
|
+
return $this.l24(_this__u8e3s4.i24_1) + ': serialization.serialize(request.' + fields + '.' + $this.l24(_this__u8e3s4.i24_1) + ')';
|
|
2249
2244
|
}
|
|
2250
2245
|
function TypeScriptEmitter$emit$lambda(it) {
|
|
2251
2246
|
return '"' + it + '"';
|
|
@@ -2297,32 +2292,32 @@
|
|
|
2297
2292
|
}
|
|
2298
2293
|
function TypeScriptEmitter$emitFunction$lambda(this$0) {
|
|
2299
2294
|
return function (it) {
|
|
2300
|
-
return
|
|
2295
|
+
return emit_5(it, this$0);
|
|
2301
2296
|
};
|
|
2302
2297
|
}
|
|
2303
2298
|
function TypeScriptEmitter$emitFunction$lambda_0(this$0) {
|
|
2304
2299
|
return function (it) {
|
|
2305
|
-
return this$0.l24(it.m24_1
|
|
2300
|
+
return this$0.l24(it.m24_1) + ': props.' + this$0.l24(it.m24_1);
|
|
2306
2301
|
};
|
|
2307
2302
|
}
|
|
2308
2303
|
function TypeScriptEmitter$emitFunction$lambda_1(this$0) {
|
|
2309
2304
|
return function (it) {
|
|
2310
|
-
return this$0.l24(it.i24_1
|
|
2305
|
+
return this$0.l24(it.i24_1) + ': props.' + this$0.l24(it.i24_1);
|
|
2311
2306
|
};
|
|
2312
2307
|
}
|
|
2313
2308
|
function TypeScriptEmitter$emitFunction$lambda_2(this$0) {
|
|
2314
2309
|
return function (it) {
|
|
2315
|
-
return this$0.l24(it.i24_1
|
|
2310
|
+
return this$0.l24(it.i24_1) + ': props.' + this$0.l24(it.i24_1);
|
|
2316
2311
|
};
|
|
2317
2312
|
}
|
|
2318
2313
|
function TypeScriptEmitter$emitFunction$lambda_3(this$0) {
|
|
2319
2314
|
return function (it) {
|
|
2320
|
-
return
|
|
2315
|
+
return emit_5(it, this$0);
|
|
2321
2316
|
};
|
|
2322
2317
|
}
|
|
2323
2318
|
function TypeScriptEmitter$emitFunction$lambda_4(this$0) {
|
|
2324
2319
|
return function (it) {
|
|
2325
|
-
return this$0.l24(it.i24_1
|
|
2320
|
+
return this$0.l24(it.i24_1) + ': props.' + this$0.l24(it.i24_1);
|
|
2326
2321
|
};
|
|
2327
2322
|
}
|
|
2328
2323
|
function TypeScriptEmitter$emitType$lambda_0(this$0) {
|
|
@@ -2333,18 +2328,20 @@
|
|
|
2333
2328
|
function TypeScriptEmitter$sanitizeSymbol$lambda(it) {
|
|
2334
2329
|
return isLetterOrDigit(it.x_1) || listOf_0(new Char(_Char___init__impl__6a9atx(95))).p1(it);
|
|
2335
2330
|
}
|
|
2336
|
-
function TypeScriptEmitter$emitPathArray$lambda(
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
if (it instanceof Param_0) {
|
|
2342
|
-
tmp = 'serialization.serialize(request.path.' + it.m24_1.toString() + ')';
|
|
2331
|
+
function TypeScriptEmitter$emitPathArray$lambda(this$0) {
|
|
2332
|
+
return function (it) {
|
|
2333
|
+
var tmp;
|
|
2334
|
+
if (it instanceof Literal) {
|
|
2335
|
+
tmp = '"' + it.v24_1 + '"';
|
|
2343
2336
|
} else {
|
|
2344
|
-
|
|
2337
|
+
if (it instanceof Param_0) {
|
|
2338
|
+
tmp = 'serialization.serialize(request.path.' + this$0.l24(it.m24_1) + ')';
|
|
2339
|
+
} else {
|
|
2340
|
+
noWhenBranchMatchedException();
|
|
2341
|
+
}
|
|
2345
2342
|
}
|
|
2346
|
-
|
|
2347
|
-
|
|
2343
|
+
return tmp;
|
|
2344
|
+
};
|
|
2348
2345
|
}
|
|
2349
2346
|
function TypeScriptEmitter$emitClientTo$lambda(this$0) {
|
|
2350
2347
|
return function (it) {
|
|
@@ -2383,22 +2380,22 @@
|
|
|
2383
2380
|
protoOf(TypeScriptEmitter).x24 = function (_this__u8e3s4) {
|
|
2384
2381
|
var tmp;
|
|
2385
2382
|
if (_this__u8e3s4 instanceof Endpoint) {
|
|
2386
|
-
tmp = this.l24(_this__u8e3s4.n23_1
|
|
2383
|
+
tmp = this.l24(_this__u8e3s4.n23_1);
|
|
2387
2384
|
} else {
|
|
2388
2385
|
if (_this__u8e3s4 instanceof Enum_0) {
|
|
2389
|
-
tmp = this.l24(_this__u8e3s4.c25_1
|
|
2386
|
+
tmp = this.l24(_this__u8e3s4.c25_1);
|
|
2390
2387
|
} else {
|
|
2391
2388
|
if (_this__u8e3s4 instanceof Refined) {
|
|
2392
|
-
tmp = this.l24(_this__u8e3s4.z24_1
|
|
2389
|
+
tmp = this.l24(_this__u8e3s4.z24_1);
|
|
2393
2390
|
} else {
|
|
2394
|
-
if (_this__u8e3s4 instanceof
|
|
2395
|
-
tmp = this.l24(_this__u8e3s4.
|
|
2391
|
+
if (_this__u8e3s4 instanceof Type_0) {
|
|
2392
|
+
tmp = this.l24(_this__u8e3s4.z22_1);
|
|
2396
2393
|
} else {
|
|
2397
2394
|
if (_this__u8e3s4 instanceof Union) {
|
|
2398
|
-
tmp = this.l24(_this__u8e3s4.t22_1
|
|
2395
|
+
tmp = this.l24(_this__u8e3s4.t22_1);
|
|
2399
2396
|
} else {
|
|
2400
2397
|
if (_this__u8e3s4 instanceof Channel) {
|
|
2401
|
-
tmp = this.l24(_this__u8e3s4.f25_1
|
|
2398
|
+
tmp = this.l24(_this__u8e3s4.f25_1);
|
|
2402
2399
|
} else {
|
|
2403
2400
|
noWhenBranchMatchedException();
|
|
2404
2401
|
}
|
|
@@ -2431,7 +2428,7 @@
|
|
|
2431
2428
|
return destination;
|
|
2432
2429
|
};
|
|
2433
2430
|
protoOf(TypeScriptEmitter).l25 = function (type, ast) {
|
|
2434
|
-
return trimMargin('export type ' + sanitizeSymbol_1(type.
|
|
2431
|
+
return trimMargin('export type ' + sanitizeSymbol_1(type.z22_1, this) + ' = {\n |' + this.m25(type.a23_1) + '\n |}\n |\n |');
|
|
2435
2432
|
};
|
|
2436
2433
|
protoOf(TypeScriptEmitter).s25 = function (enum_0) {
|
|
2437
2434
|
var tmp = sanitizeSymbol_1(enum_0.c25_1, this);
|
|
@@ -2441,10 +2438,10 @@
|
|
|
2441
2438
|
return joinToString(_this__u8e3s4.n25_1, ',\n', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda_0(this));
|
|
2442
2439
|
};
|
|
2443
2440
|
protoOf(TypeScriptEmitter).u26 = function (_this__u8e3s4) {
|
|
2444
|
-
return Spacer_instance.toString() + '"' + this.l24(_this__u8e3s4.m24_1
|
|
2441
|
+
return Spacer_instance.toString() + '"' + this.l24(_this__u8e3s4.m24_1) + '": ' + this.o24(_this__u8e3s4.n24_1);
|
|
2445
2442
|
};
|
|
2446
2443
|
protoOf(TypeScriptEmitter).s24 = function (_this__u8e3s4) {
|
|
2447
|
-
return Spacer_instance.toString() + '"' + this.l24(_this__u8e3s4.i24_1
|
|
2444
|
+
return Spacer_instance.toString() + '"' + this.l24(_this__u8e3s4.i24_1) + '"' + (_this__u8e3s4.k24_1 ? '?' : '') + ': ' + this.o24(_this__u8e3s4.j24_1);
|
|
2448
2445
|
};
|
|
2449
2446
|
protoOf(TypeScriptEmitter).o24 = function (_this__u8e3s4) {
|
|
2450
2447
|
// Inline function 'kotlin.let' call
|
|
@@ -2494,7 +2491,7 @@
|
|
|
2494
2491
|
return _this__u8e3s4.q24() ? 'Record<string, ' + it_0 + '>' : it_0;
|
|
2495
2492
|
};
|
|
2496
2493
|
protoOf(TypeScriptEmitter).o25 = function (refined) {
|
|
2497
|
-
return trimMargin('export type ' + sanitizeSymbol_1(refined.z24_1, this) + ' = string;\n |const regExp' + this.l24(refined.z24_1
|
|
2494
|
+
return trimMargin('export type ' + sanitizeSymbol_1(refined.z24_1, this) + ' = string;\n |const regExp' + this.l24(refined.z24_1) + ' = ' + this.p25(refined.a25_1) + ';\n |export const validate' + this.l24(refined.z24_1) + ' = (value: string): value is ' + sanitizeSymbol_1(refined.z24_1, this) + ' => \n |' + Spacer_instance.toString() + 'regExp' + this.l24(refined.z24_1) + '.test(value);\n |');
|
|
2498
2495
|
};
|
|
2499
2496
|
protoOf(TypeScriptEmitter).p25 = function (_this__u8e3s4) {
|
|
2500
2497
|
return _this__u8e3s4.q25_1;
|
|
@@ -2518,6 +2515,9 @@
|
|
|
2518
2515
|
var tmp = sanitizeSymbol_1(union.t22_1, this);
|
|
2519
2516
|
return 'export type ' + tmp + ' = ' + joinToString(union.u22_1, ' | ', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda_7(this)) + '\n';
|
|
2520
2517
|
};
|
|
2518
|
+
protoOf(TypeScriptEmitter).l24 = function (identifier) {
|
|
2519
|
+
return identifier.b1();
|
|
2520
|
+
};
|
|
2521
2521
|
protoOf(TypeScriptEmitter).v25 = function (channel) {
|
|
2522
2522
|
return this.l26();
|
|
2523
2523
|
};
|
|
@@ -2644,7 +2644,7 @@
|
|
|
2644
2644
|
return function (it) {
|
|
2645
2645
|
var tmp;
|
|
2646
2646
|
if (it instanceof Param_0) {
|
|
2647
|
-
tmp = '{' + it.m24_1.
|
|
2647
|
+
tmp = '{' + it.m24_1.b1() + ': ' + this$0.o24(it.n24_1) + '}';
|
|
2648
2648
|
} else {
|
|
2649
2649
|
if (it instanceof Literal) {
|
|
2650
2650
|
tmp = it.v24_1;
|
|
@@ -2668,22 +2668,22 @@
|
|
|
2668
2668
|
protoOf(WirespecEmitter).x24 = function (_this__u8e3s4) {
|
|
2669
2669
|
var tmp;
|
|
2670
2670
|
if (_this__u8e3s4 instanceof Endpoint) {
|
|
2671
|
-
tmp = this.l24(_this__u8e3s4.n23_1
|
|
2671
|
+
tmp = this.l24(_this__u8e3s4.n23_1);
|
|
2672
2672
|
} else {
|
|
2673
2673
|
if (_this__u8e3s4 instanceof Enum_0) {
|
|
2674
|
-
tmp = this.l24(_this__u8e3s4.c25_1
|
|
2674
|
+
tmp = this.l24(_this__u8e3s4.c25_1);
|
|
2675
2675
|
} else {
|
|
2676
2676
|
if (_this__u8e3s4 instanceof Refined) {
|
|
2677
|
-
tmp = this.l24(_this__u8e3s4.z24_1
|
|
2677
|
+
tmp = this.l24(_this__u8e3s4.z24_1);
|
|
2678
2678
|
} else {
|
|
2679
|
-
if (_this__u8e3s4 instanceof
|
|
2680
|
-
tmp = this.l24(_this__u8e3s4.
|
|
2679
|
+
if (_this__u8e3s4 instanceof Type_0) {
|
|
2680
|
+
tmp = this.l24(_this__u8e3s4.z22_1);
|
|
2681
2681
|
} else {
|
|
2682
2682
|
if (_this__u8e3s4 instanceof Union) {
|
|
2683
|
-
tmp = this.l24(_this__u8e3s4.t22_1
|
|
2683
|
+
tmp = this.l24(_this__u8e3s4.t22_1);
|
|
2684
2684
|
} else {
|
|
2685
2685
|
if (_this__u8e3s4 instanceof Channel) {
|
|
2686
|
-
tmp = this.l24(_this__u8e3s4.f25_1
|
|
2686
|
+
tmp = this.l24(_this__u8e3s4.f25_1);
|
|
2687
2687
|
} else {
|
|
2688
2688
|
noWhenBranchMatchedException();
|
|
2689
2689
|
}
|
|
@@ -2695,19 +2695,22 @@
|
|
|
2695
2695
|
return tmp;
|
|
2696
2696
|
};
|
|
2697
2697
|
protoOf(WirespecEmitter).l25 = function (type, ast) {
|
|
2698
|
-
return trimMargin('\n |type ' + this.l24(type.
|
|
2698
|
+
return trimMargin('\n |type ' + this.l24(type.z22_1) + ' {\n |' + this.m25(type.a23_1) + '\n |}\n |');
|
|
2699
2699
|
};
|
|
2700
2700
|
protoOf(WirespecEmitter).m25 = function (_this__u8e3s4) {
|
|
2701
2701
|
return joinToString(_this__u8e3s4.n25_1, ',\n', VOID, VOID, VOID, VOID, WirespecEmitter$emit$lambda(this));
|
|
2702
2702
|
};
|
|
2703
2703
|
protoOf(WirespecEmitter).s24 = function (_this__u8e3s4) {
|
|
2704
|
-
return this.l24(_this__u8e3s4.i24_1
|
|
2704
|
+
return this.l24(_this__u8e3s4.i24_1) + ': ' + this.o24(_this__u8e3s4.j24_1) + (_this__u8e3s4.k24_1 ? '?' : '');
|
|
2705
2705
|
};
|
|
2706
|
-
protoOf(WirespecEmitter).l24 = function (
|
|
2707
|
-
|
|
2706
|
+
protoOf(WirespecEmitter).l24 = function (identifier) {
|
|
2707
|
+
// Inline function 'kotlin.run' call
|
|
2708
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
2709
|
+
// Inline function 'community.flock.wirespec.compiler.core.emit.WirespecEmitter.emit.<anonymous>' call
|
|
2710
|
+
return Companion_getInstance_2().a27_1.p1(identifier.b1()) ? addBackticks(identifier.b1()) : identifier.b1();
|
|
2708
2711
|
};
|
|
2709
2712
|
protoOf(WirespecEmitter).v25 = function (channel) {
|
|
2710
|
-
return 'channel ' + this.l24(channel.f25_1
|
|
2713
|
+
return 'channel ' + this.l24(channel.f25_1) + ' -> ' + this.o24(channel.h25_1);
|
|
2711
2714
|
};
|
|
2712
2715
|
protoOf(WirespecEmitter).o24 = function (_this__u8e3s4) {
|
|
2713
2716
|
// Inline function 'kotlin.let' call
|
|
@@ -2757,18 +2760,18 @@
|
|
|
2757
2760
|
return _this__u8e3s4.q24() ? '{ ' + it_0 + ' }' : it_0;
|
|
2758
2761
|
};
|
|
2759
2762
|
protoOf(WirespecEmitter).s25 = function (enum_0) {
|
|
2760
|
-
var tmp = this.l24(enum_0.c25_1
|
|
2763
|
+
var tmp = this.l24(enum_0.c25_1);
|
|
2761
2764
|
var tmp_0 = Spacer_instance.toString();
|
|
2762
2765
|
return 'enum ' + tmp + ' {\n' + tmp_0 + joinToString(enum_0.d25_1, ', ', VOID, VOID, VOID, VOID, WirespecEmitter$emit$lambda_0(this)) + '\n}\n';
|
|
2763
2766
|
};
|
|
2764
2767
|
protoOf(WirespecEmitter).o25 = function (refined) {
|
|
2765
|
-
return 'type ' + this.l24(refined.z24_1
|
|
2768
|
+
return 'type ' + this.l24(refined.z24_1) + ' ' + this.p25(refined.a25_1) + '\n';
|
|
2766
2769
|
};
|
|
2767
2770
|
protoOf(WirespecEmitter).p25 = function (_this__u8e3s4) {
|
|
2768
2771
|
return _this__u8e3s4.q25_1;
|
|
2769
2772
|
};
|
|
2770
2773
|
protoOf(WirespecEmitter).w25 = function (endpoint) {
|
|
2771
|
-
var tmp = this.l24(endpoint.n23_1
|
|
2774
|
+
var tmp = this.l24(endpoint.n23_1);
|
|
2772
2775
|
var tmp_0 = endpoint.o23_1.toString();
|
|
2773
2776
|
var tmp_1 = emitRequest(endpoint.t23_1, this);
|
|
2774
2777
|
var tmp_2 = emitPath(endpoint.p23_1, this);
|
|
@@ -2776,7 +2779,7 @@
|
|
|
2776
2779
|
return trimMargin('\n |endpoint ' + tmp + ' ' + tmp_0 + tmp_1 + ' ' + tmp_2 + tmp_3 + ' -> {\n |' + joinToString(endpoint.u23_1, '\n', VOID, VOID, VOID, VOID, WirespecEmitter$emit$lambda_1(this)) + '\n |}\n |\n ');
|
|
2777
2780
|
};
|
|
2778
2781
|
protoOf(WirespecEmitter).u25 = function (union) {
|
|
2779
|
-
var tmp = this.l24(union.t22_1
|
|
2782
|
+
var tmp = this.l24(union.t22_1);
|
|
2780
2783
|
return 'type ' + tmp + ' = ' + joinToString(union.u22_1, ' | ', VOID, VOID, VOID, VOID, WirespecEmitter$emit$lambda_2(this)) + '\n';
|
|
2781
2784
|
};
|
|
2782
2785
|
function Spacer() {
|
|
@@ -2873,11 +2876,11 @@
|
|
|
2873
2876
|
this.t26_1 = isNullable;
|
|
2874
2877
|
}
|
|
2875
2878
|
protoOf(Param).toString = function () {
|
|
2876
|
-
return 'Param(type=' + this.q26_1.toString() + ', identifier=' + this.r26_1
|
|
2879
|
+
return 'Param(type=' + this.q26_1.toString() + ', identifier=' + toString(this.r26_1) + ', reference=' + toString(this.s26_1) + ', isNullable=' + this.t26_1 + ')';
|
|
2877
2880
|
};
|
|
2878
2881
|
protoOf(Param).hashCode = function () {
|
|
2879
2882
|
var result = this.q26_1.hashCode();
|
|
2880
|
-
result = imul(result, 31) + this.r26_1
|
|
2883
|
+
result = imul(result, 31) + hashCode(this.r26_1) | 0;
|
|
2881
2884
|
result = imul(result, 31) + hashCode(this.s26_1) | 0;
|
|
2882
2885
|
result = imul(result, 31) + getBooleanHashCode(this.t26_1) | 0;
|
|
2883
2886
|
return result;
|
|
@@ -2890,7 +2893,7 @@
|
|
|
2890
2893
|
var tmp0_other_with_cast = other instanceof Param ? other : THROW_CCE();
|
|
2891
2894
|
if (!this.q26_1.equals(tmp0_other_with_cast.q26_1))
|
|
2892
2895
|
return false;
|
|
2893
|
-
if (!this.r26_1
|
|
2896
|
+
if (!equals(this.r26_1, tmp0_other_with_cast.r26_1))
|
|
2894
2897
|
return false;
|
|
2895
2898
|
if (!equals(this.s26_1, tmp0_other_with_cast.s26_1))
|
|
2896
2899
|
return false;
|
|
@@ -2902,7 +2905,7 @@
|
|
|
2902
2905
|
return new Param(ParamType_PATH_getInstance(), _this__u8e3s4.m24_1, _this__u8e3s4.n24_1, false);
|
|
2903
2906
|
}
|
|
2904
2907
|
function toParam_0(_this__u8e3s4, $this) {
|
|
2905
|
-
return new Param(ParamType_BODY_getInstance(),
|
|
2908
|
+
return new Param(ParamType_BODY_getInstance(), new FieldIdentifier('body'), _this__u8e3s4.c24_1, _this__u8e3s4.d24_1);
|
|
2906
2909
|
}
|
|
2907
2910
|
function toParam_1(_this__u8e3s4, $this, type) {
|
|
2908
2911
|
return new Param(type, _this__u8e3s4.i24_1, _this__u8e3s4.j24_1, _this__u8e3s4.k24_1);
|
|
@@ -3073,7 +3076,7 @@
|
|
|
3073
3076
|
// Inline function 'community.flock.wirespec.compiler.core.emit.common.Emitter.emit.<anonymous>' call
|
|
3074
3077
|
this.n22_1.d22('Emitting Node ' + toString(item));
|
|
3075
3078
|
var tmp;
|
|
3076
|
-
if (item instanceof
|
|
3079
|
+
if (item instanceof Type_0) {
|
|
3077
3080
|
tmp = new Emitted(this.x24(item), this.l25(item, ast));
|
|
3078
3081
|
} else {
|
|
3079
3082
|
if (item instanceof Endpoint) {
|
|
@@ -3125,7 +3128,7 @@
|
|
|
3125
3128
|
tmp = _this__u8e3s4.v24_1;
|
|
3126
3129
|
} else {
|
|
3127
3130
|
if (_this__u8e3s4 instanceof Param_0) {
|
|
3128
|
-
tmp = '{' + _this__u8e3s4.m24_1.
|
|
3131
|
+
tmp = '{' + _this__u8e3s4.m24_1.b1() + '}';
|
|
3129
3132
|
} else {
|
|
3130
3133
|
noWhenBranchMatchedException();
|
|
3131
3134
|
}
|
|
@@ -3236,8 +3239,6 @@
|
|
|
3236
3239
|
var tmp0_safe_receiver = _this__u8e3s4.x23_1;
|
|
3237
3240
|
return flatten(listOf([tmp, listOfNotNull_0(tmp0_safe_receiver == null ? null : toParam_0(tmp0_safe_receiver, this))]));
|
|
3238
3241
|
};
|
|
3239
|
-
function IdentifierEmitter() {
|
|
3240
|
-
}
|
|
3241
3242
|
function TypeScriptShared() {
|
|
3242
3243
|
TypeScriptShared_instance = this;
|
|
3243
3244
|
this.v26_1 = 'community.flock.wirespec';
|
|
@@ -3274,7 +3275,7 @@
|
|
|
3274
3275
|
captureStack(this, NextException);
|
|
3275
3276
|
}
|
|
3276
3277
|
function WrongTokenException(expected, actual) {
|
|
3277
|
-
ParserException.call(this, actual.
|
|
3278
|
+
ParserException.call(this, actual.d27_1, '' + expected.k9() + ' expected, not: ' + name(actual.c27_1) + ' at line ' + actual.d27_1.e27_1 + ' and position ' + (actual.d27_1.f27_1 - actual.b27_1.length | 0));
|
|
3278
3279
|
captureStack(this, WrongTokenException);
|
|
3279
3280
|
}
|
|
3280
3281
|
function DefinitionNotExistsException(referenceName, coordinates) {
|
|
@@ -3296,7 +3297,7 @@
|
|
|
3296
3297
|
function WirespecException(message, coordinates) {
|
|
3297
3298
|
RuntimeException_init_$Init$(message, this);
|
|
3298
3299
|
captureStack(this, WirespecException);
|
|
3299
|
-
this.
|
|
3300
|
+
this.h27_1 = coordinates;
|
|
3300
3301
|
}
|
|
3301
3302
|
function optimize(_this__u8e3s4) {
|
|
3302
3303
|
return _this__u8e3s4;
|
|
@@ -3312,60 +3313,60 @@
|
|
|
3312
3313
|
try {
|
|
3313
3314
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
3314
3315
|
// Inline function 'community.flock.wirespec.compiler.core.parse.ChannelParser.parseChannelDefinition.<anonymous>' call
|
|
3315
|
-
raise.qk(_this__u8e3s4.
|
|
3316
|
-
if (_this__u8e3s4.
|
|
3317
|
-
raise.qk(_this__u8e3s4.
|
|
3316
|
+
raise.qk(_this__u8e3s4.n27());
|
|
3317
|
+
if (_this__u8e3s4.k27_1.c27_1 instanceof Arrow)
|
|
3318
|
+
raise.qk(_this__u8e3s4.n27());
|
|
3318
3319
|
else {
|
|
3319
3320
|
// Inline function 'kotlin.also' call
|
|
3320
3321
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
3321
|
-
var actual = _this__u8e3s4.
|
|
3322
|
+
var actual = _this__u8e3s4.k27_1;
|
|
3322
3323
|
var this_0 = new WrongTokenException(getKClass(Colon), actual);
|
|
3323
3324
|
// Inline function 'kotlin.contracts.contract' call
|
|
3324
3325
|
// Inline function 'community.flock.wirespec.compiler.core.parse.ChannelParser.parseChannelDefinition.<anonymous>.<anonymous>' call
|
|
3325
|
-
raise.qk(_this__u8e3s4.
|
|
3326
|
+
raise.qk(_this__u8e3s4.n27());
|
|
3326
3327
|
raise.pk(this_0);
|
|
3327
3328
|
}
|
|
3328
3329
|
var tmp_0;
|
|
3329
|
-
if (_this__u8e3s4.
|
|
3330
|
+
if (_this__u8e3s4.k27_1.c27_1 instanceof LeftCurly) {
|
|
3330
3331
|
// Inline function 'kotlin.also' call
|
|
3331
3332
|
// Inline function 'kotlin.contracts.contract' call
|
|
3332
3333
|
// Inline function 'community.flock.wirespec.compiler.core.parse.ChannelParser.parseChannelDefinition.<anonymous>.<anonymous>' call
|
|
3333
|
-
raise.qk(_this__u8e3s4.
|
|
3334
|
+
raise.qk(_this__u8e3s4.n27());
|
|
3334
3335
|
tmp_0 = true;
|
|
3335
3336
|
} else {
|
|
3336
3337
|
tmp_0 = false;
|
|
3337
3338
|
}
|
|
3338
3339
|
var isDict = tmp_0;
|
|
3339
|
-
var type = _this__u8e3s4.
|
|
3340
|
+
var type = _this__u8e3s4.k27_1.c27_1;
|
|
3340
3341
|
var tmp_1;
|
|
3341
3342
|
if (isInterface(type, WirespecType)) {
|
|
3342
3343
|
// Inline function 'kotlin.also' call
|
|
3343
3344
|
// Inline function 'kotlin.with' call
|
|
3344
3345
|
// Inline function 'kotlin.contracts.contract' call
|
|
3345
3346
|
// Inline function 'community.flock.wirespec.compiler.core.parse.ChannelParser.parseChannelDefinition.<anonymous>.<anonymous>' call
|
|
3346
|
-
var $this$with = $this.
|
|
3347
|
-
var tmp2_reference = raise.qk($this$with.
|
|
3347
|
+
var $this$with = $this.p27_1;
|
|
3348
|
+
var tmp2_reference = raise.qk($this$with.r27(_this__u8e3s4, type, _this__u8e3s4.k27_1.b27_1, isDict));
|
|
3348
3349
|
// Inline function 'kotlin.also' call
|
|
3349
|
-
var tmp_2 = _this__u8e3s4.
|
|
3350
|
+
var tmp_2 = _this__u8e3s4.k27_1.c27_1;
|
|
3350
3351
|
var this_1 = tmp_2 instanceof QuestionMark;
|
|
3351
3352
|
// Inline function 'kotlin.contracts.contract' call
|
|
3352
3353
|
// Inline function 'community.flock.wirespec.compiler.core.parse.ChannelParser.parseChannelDefinition.<anonymous>.<anonymous>' call
|
|
3353
3354
|
if (this_1)
|
|
3354
|
-
raise.qk(_this__u8e3s4.
|
|
3355
|
+
raise.qk(_this__u8e3s4.n27());
|
|
3355
3356
|
var this_2 = new Channel(comment, identifier, this_1, tmp2_reference);
|
|
3356
3357
|
// Inline function 'kotlin.contracts.contract' call
|
|
3357
3358
|
// Inline function 'community.flock.wirespec.compiler.core.parse.ChannelParser.parseChannelDefinition.<anonymous>.<anonymous>' call
|
|
3358
3359
|
if (isDict) {
|
|
3359
|
-
if (_this__u8e3s4.
|
|
3360
|
-
raise.qk(_this__u8e3s4.
|
|
3360
|
+
if (_this__u8e3s4.k27_1.c27_1 instanceof RightCurly)
|
|
3361
|
+
raise.qk(_this__u8e3s4.n27());
|
|
3361
3362
|
else {
|
|
3362
3363
|
// Inline function 'kotlin.also' call
|
|
3363
3364
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
3364
|
-
var actual_0 = _this__u8e3s4.
|
|
3365
|
+
var actual_0 = _this__u8e3s4.k27_1;
|
|
3365
3366
|
var this_3 = new WrongTokenException(getKClass(RightCurly), actual_0);
|
|
3366
3367
|
// Inline function 'kotlin.contracts.contract' call
|
|
3367
3368
|
// Inline function 'community.flock.wirespec.compiler.core.parse.ChannelParser.parseChannelDefinition.<anonymous>.<anonymous>.<anonymous>' call
|
|
3368
|
-
raise.qk(_this__u8e3s4.
|
|
3369
|
+
raise.qk(_this__u8e3s4.n27());
|
|
3369
3370
|
raise.pk(this_3);
|
|
3370
3371
|
}
|
|
3371
3372
|
}
|
|
@@ -3373,11 +3374,11 @@
|
|
|
3373
3374
|
} else {
|
|
3374
3375
|
// Inline function 'kotlin.also' call
|
|
3375
3376
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
3376
|
-
var actual_1 = _this__u8e3s4.
|
|
3377
|
+
var actual_1 = _this__u8e3s4.k27_1;
|
|
3377
3378
|
var this_4 = new WrongTokenException(getKClass(CustomType), actual_1);
|
|
3378
3379
|
// Inline function 'kotlin.contracts.contract' call
|
|
3379
3380
|
// Inline function 'community.flock.wirespec.compiler.core.parse.ChannelParser.parseChannelDefinition.<anonymous>.<anonymous>' call
|
|
3380
|
-
raise.qk(_this__u8e3s4.
|
|
3381
|
+
raise.qk(_this__u8e3s4.n27());
|
|
3381
3382
|
raise.pk(this_4);
|
|
3382
3383
|
}
|
|
3383
3384
|
var res = tmp_1;
|
|
@@ -3407,9 +3408,9 @@
|
|
|
3407
3408
|
}
|
|
3408
3409
|
function ChannelParser(logger) {
|
|
3409
3410
|
AbstractParser.call(this, logger);
|
|
3410
|
-
this.
|
|
3411
|
+
this.p27_1 = new TypeParser(logger);
|
|
3411
3412
|
}
|
|
3412
|
-
protoOf(ChannelParser).
|
|
3413
|
+
protoOf(ChannelParser).s27 = function (_this__u8e3s4, comment) {
|
|
3413
3414
|
// Inline function 'arrow.core.raise.either' call
|
|
3414
3415
|
// Inline function 'arrow.core.raise.fold' call
|
|
3415
3416
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -3420,19 +3421,19 @@
|
|
|
3420
3421
|
try {
|
|
3421
3422
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
3422
3423
|
// Inline function 'community.flock.wirespec.compiler.core.parse.ChannelParser.parseChannel.<anonymous>' call
|
|
3423
|
-
raise.qk(_this__u8e3s4.
|
|
3424
|
-
this.
|
|
3424
|
+
raise.qk(_this__u8e3s4.n27());
|
|
3425
|
+
this.u27(_this__u8e3s4.k27_1);
|
|
3425
3426
|
var tmp_0;
|
|
3426
|
-
if (_this__u8e3s4.
|
|
3427
|
-
tmp_0 = raise.qk(parseChannelDefinition(_this__u8e3s4, this, comment,
|
|
3427
|
+
if (_this__u8e3s4.k27_1.c27_1 instanceof CustomType) {
|
|
3428
|
+
tmp_0 = raise.qk(parseChannelDefinition(_this__u8e3s4, this, comment, new DefinitionIdentifier(_this__u8e3s4.k27_1.b27_1)));
|
|
3428
3429
|
} else {
|
|
3429
3430
|
// Inline function 'kotlin.also' call
|
|
3430
3431
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
3431
|
-
var actual = _this__u8e3s4.
|
|
3432
|
+
var actual = _this__u8e3s4.k27_1;
|
|
3432
3433
|
var this_0 = new WrongTokenException(getKClass(CustomType), actual);
|
|
3433
3434
|
// Inline function 'kotlin.contracts.contract' call
|
|
3434
3435
|
// Inline function 'community.flock.wirespec.compiler.core.parse.ChannelParser.parseChannel.<anonymous>.<anonymous>' call
|
|
3435
|
-
raise.qk(_this__u8e3s4.
|
|
3436
|
+
raise.qk(_this__u8e3s4.n27());
|
|
3436
3437
|
raise.pk(this_0);
|
|
3437
3438
|
}
|
|
3438
3439
|
var res = tmp_0;
|
|
@@ -3471,29 +3472,29 @@
|
|
|
3471
3472
|
try {
|
|
3472
3473
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
3473
3474
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointDefinition.<anonymous>' call
|
|
3474
|
-
raise.qk(_this__u8e3s4.
|
|
3475
|
-
$this.
|
|
3475
|
+
raise.qk(_this__u8e3s4.n27());
|
|
3476
|
+
$this.u27(_this__u8e3s4.k27_1);
|
|
3476
3477
|
// Inline function 'kotlin.also' call
|
|
3477
3478
|
var tmp_0;
|
|
3478
|
-
if (_this__u8e3s4.
|
|
3479
|
-
tmp_0 = valueOf(_this__u8e3s4.
|
|
3479
|
+
if (_this__u8e3s4.k27_1.c27_1 instanceof Method_0) {
|
|
3480
|
+
tmp_0 = valueOf(_this__u8e3s4.k27_1.b27_1);
|
|
3480
3481
|
} else {
|
|
3481
3482
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
3482
|
-
var actual = _this__u8e3s4.
|
|
3483
|
+
var actual = _this__u8e3s4.k27_1;
|
|
3483
3484
|
var tmp$ret$0 = new WrongTokenException(getKClass(Method_0), actual);
|
|
3484
3485
|
raise.pk(tmp$ret$0);
|
|
3485
3486
|
}
|
|
3486
3487
|
var this_0 = tmp_0;
|
|
3487
3488
|
// Inline function 'kotlin.contracts.contract' call
|
|
3488
3489
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointDefinition.<anonymous>.<anonymous>' call
|
|
3489
|
-
raise.qk(_this__u8e3s4.
|
|
3490
|
+
raise.qk(_this__u8e3s4.n27());
|
|
3490
3491
|
var method = this_0;
|
|
3491
3492
|
var tmp_1;
|
|
3492
|
-
if (_this__u8e3s4.
|
|
3493
|
+
if (_this__u8e3s4.k27_1.c27_1 instanceof LeftCurly) {
|
|
3493
3494
|
// Inline function 'kotlin.also' call
|
|
3494
3495
|
// Inline function 'kotlin.contracts.contract' call
|
|
3495
3496
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointDefinition.<anonymous>.<anonymous>' call
|
|
3496
|
-
raise.qk(_this__u8e3s4.
|
|
3497
|
+
raise.qk(_this__u8e3s4.n27());
|
|
3497
3498
|
tmp_1 = true;
|
|
3498
3499
|
} else {
|
|
3499
3500
|
tmp_1 = false;
|
|
@@ -3501,11 +3502,11 @@
|
|
|
3501
3502
|
var isDict = tmp_1;
|
|
3502
3503
|
// Inline function 'kotlin.collections.map' call
|
|
3503
3504
|
// Inline function 'kotlin.also' call
|
|
3504
|
-
var tmp2_subject = _this__u8e3s4.
|
|
3505
|
+
var tmp2_subject = _this__u8e3s4.k27_1.c27_1;
|
|
3505
3506
|
var tmp_2;
|
|
3506
3507
|
if (isInterface(tmp2_subject, WirespecType)) {
|
|
3507
|
-
var tmp_3 = _this__u8e3s4.
|
|
3508
|
-
tmp_2 = raise.qk(parseReference(_this__u8e3s4, $this, isInterface(tmp_3, WirespecType) ? tmp_3 : THROW_CCE(), _this__u8e3s4.
|
|
3508
|
+
var tmp_3 = _this__u8e3s4.k27_1.c27_1;
|
|
3509
|
+
tmp_2 = raise.qk(parseReference(_this__u8e3s4, $this, isInterface(tmp_3, WirespecType) ? tmp_3 : THROW_CCE(), _this__u8e3s4.k27_1.b27_1, isDict));
|
|
3509
3510
|
} else {
|
|
3510
3511
|
tmp_2 = null;
|
|
3511
3512
|
}
|
|
@@ -3513,16 +3514,16 @@
|
|
|
3513
3514
|
// Inline function 'kotlin.contracts.contract' call
|
|
3514
3515
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointDefinition.<anonymous>.<anonymous>' call
|
|
3515
3516
|
if (isDict) {
|
|
3516
|
-
if (_this__u8e3s4.
|
|
3517
|
-
raise.qk(_this__u8e3s4.
|
|
3517
|
+
if (_this__u8e3s4.k27_1.c27_1 instanceof RightCurly)
|
|
3518
|
+
raise.qk(_this__u8e3s4.n27());
|
|
3518
3519
|
else {
|
|
3519
3520
|
// Inline function 'kotlin.also' call
|
|
3520
3521
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
3521
|
-
var actual_0 = _this__u8e3s4.
|
|
3522
|
+
var actual_0 = _this__u8e3s4.k27_1;
|
|
3522
3523
|
var this_2 = new WrongTokenException(getKClass(RightCurly), actual_0);
|
|
3523
3524
|
// Inline function 'kotlin.contracts.contract' call
|
|
3524
3525
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointDefinition.<anonymous>.<anonymous>.<anonymous>' call
|
|
3525
|
-
raise.qk(_this__u8e3s4.
|
|
3526
|
+
raise.qk(_this__u8e3s4.n27());
|
|
3526
3527
|
raise.pk(this_2);
|
|
3527
3528
|
}
|
|
3528
3529
|
}
|
|
@@ -3553,15 +3554,15 @@
|
|
|
3553
3554
|
$l$loop: while (true) {
|
|
3554
3555
|
var tmp_5;
|
|
3555
3556
|
var tmp_6;
|
|
3556
|
-
var tmp_7 = _this__u8e3s4.
|
|
3557
|
+
var tmp_7 = _this__u8e3s4.k27_1.c27_1;
|
|
3557
3558
|
if (!(tmp_7 instanceof QuestionMark)) {
|
|
3558
|
-
var tmp_8 = _this__u8e3s4.
|
|
3559
|
+
var tmp_8 = _this__u8e3s4.k27_1.c27_1;
|
|
3559
3560
|
tmp_6 = !(tmp_8 instanceof Hash);
|
|
3560
3561
|
} else {
|
|
3561
3562
|
tmp_6 = false;
|
|
3562
3563
|
}
|
|
3563
3564
|
if (tmp_6) {
|
|
3564
|
-
var tmp_9 = _this__u8e3s4.
|
|
3565
|
+
var tmp_9 = _this__u8e3s4.k27_1.c27_1;
|
|
3565
3566
|
tmp_5 = !(tmp_9 instanceof Arrow);
|
|
3566
3567
|
} else {
|
|
3567
3568
|
tmp_5 = false;
|
|
@@ -3573,18 +3574,18 @@
|
|
|
3573
3574
|
}
|
|
3574
3575
|
var segments = this_3;
|
|
3575
3576
|
var tmp_10;
|
|
3576
|
-
if (_this__u8e3s4.
|
|
3577
|
-
raise.qk(_this__u8e3s4.
|
|
3577
|
+
if (_this__u8e3s4.k27_1.c27_1 instanceof QuestionMark) {
|
|
3578
|
+
raise.qk(_this__u8e3s4.n27());
|
|
3578
3579
|
var tmp_11;
|
|
3579
|
-
if (_this__u8e3s4.
|
|
3580
|
+
if (_this__u8e3s4.k27_1.c27_1 instanceof LeftCurly) {
|
|
3580
3581
|
// Inline function 'kotlin.with' call
|
|
3581
3582
|
// Inline function 'kotlin.contracts.contract' call
|
|
3582
3583
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointDefinition.<anonymous>.<anonymous>' call
|
|
3583
|
-
var $this$with = $this.
|
|
3584
|
-
tmp_11 = raise.qk($this$with.
|
|
3584
|
+
var $this$with = $this.w27_1;
|
|
3585
|
+
tmp_11 = raise.qk($this$with.x27(_this__u8e3s4)).n25_1;
|
|
3585
3586
|
} else {
|
|
3586
3587
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
3587
|
-
var actual_1 = _this__u8e3s4.
|
|
3588
|
+
var actual_1 = _this__u8e3s4.k27_1;
|
|
3588
3589
|
var tmp$ret$15 = new WrongTokenException(getKClass(LeftCurly), actual_1);
|
|
3589
3590
|
raise.pk(tmp$ret$15);
|
|
3590
3591
|
}
|
|
@@ -3594,18 +3595,18 @@
|
|
|
3594
3595
|
}
|
|
3595
3596
|
var queryParams = tmp_10;
|
|
3596
3597
|
var tmp_12;
|
|
3597
|
-
if (_this__u8e3s4.
|
|
3598
|
-
raise.qk(_this__u8e3s4.
|
|
3598
|
+
if (_this__u8e3s4.k27_1.c27_1 instanceof Hash) {
|
|
3599
|
+
raise.qk(_this__u8e3s4.n27());
|
|
3599
3600
|
var tmp_13;
|
|
3600
|
-
if (_this__u8e3s4.
|
|
3601
|
+
if (_this__u8e3s4.k27_1.c27_1 instanceof LeftCurly) {
|
|
3601
3602
|
// Inline function 'kotlin.with' call
|
|
3602
3603
|
// Inline function 'kotlin.contracts.contract' call
|
|
3603
3604
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointDefinition.<anonymous>.<anonymous>' call
|
|
3604
|
-
var $this$with_0 = $this.
|
|
3605
|
-
tmp_13 = raise.qk($this$with_0.
|
|
3605
|
+
var $this$with_0 = $this.w27_1;
|
|
3606
|
+
tmp_13 = raise.qk($this$with_0.x27(_this__u8e3s4)).n25_1;
|
|
3606
3607
|
} else {
|
|
3607
3608
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
3608
|
-
var actual_2 = _this__u8e3s4.
|
|
3609
|
+
var actual_2 = _this__u8e3s4.k27_1;
|
|
3609
3610
|
var tmp$ret$18 = new WrongTokenException(getKClass(LeftCurly), actual_2);
|
|
3610
3611
|
raise.pk(tmp$ret$18);
|
|
3611
3612
|
}
|
|
@@ -3614,24 +3615,24 @@
|
|
|
3614
3615
|
tmp_12 = emptyList();
|
|
3615
3616
|
}
|
|
3616
3617
|
var headers = tmp_12;
|
|
3617
|
-
if (_this__u8e3s4.
|
|
3618
|
-
raise.qk(_this__u8e3s4.
|
|
3618
|
+
if (_this__u8e3s4.k27_1.c27_1 instanceof Arrow)
|
|
3619
|
+
raise.qk(_this__u8e3s4.n27());
|
|
3619
3620
|
else {
|
|
3620
3621
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
3621
|
-
var actual_3 = _this__u8e3s4.
|
|
3622
|
+
var actual_3 = _this__u8e3s4.k27_1;
|
|
3622
3623
|
var tmp$ret$19 = new WrongTokenException(getKClass(Arrow), actual_3);
|
|
3623
3624
|
raise.pk(tmp$ret$19);
|
|
3624
3625
|
}
|
|
3625
3626
|
// Inline function 'kotlin.also' call
|
|
3626
|
-
if (!(_this__u8e3s4.
|
|
3627
|
+
if (!(_this__u8e3s4.k27_1.c27_1 instanceof LeftCurly)) {
|
|
3627
3628
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
3628
|
-
var actual_4 = _this__u8e3s4.
|
|
3629
|
+
var actual_4 = _this__u8e3s4.k27_1;
|
|
3629
3630
|
var tmp$ret$20 = new WrongTokenException(getKClass(LeftCurly), actual_4);
|
|
3630
3631
|
raise.pk(tmp$ret$20);
|
|
3631
3632
|
}
|
|
3632
3633
|
// Inline function 'kotlin.contracts.contract' call
|
|
3633
3634
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointDefinition.<anonymous>.<anonymous>' call
|
|
3634
|
-
raise.qk(_this__u8e3s4.
|
|
3635
|
+
raise.qk(_this__u8e3s4.n27());
|
|
3635
3636
|
var responses = raise.qk(parseEndpointResponses(_this__u8e3s4, $this));
|
|
3636
3637
|
var res = new Endpoint(comment, name, method, segments, queryParams, headers, emptyList(), requests, responses);
|
|
3637
3638
|
raise.nk();
|
|
@@ -3669,22 +3670,22 @@
|
|
|
3669
3670
|
try {
|
|
3670
3671
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
3671
3672
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointSegments.<anonymous>' call
|
|
3672
|
-
$this.
|
|
3673
|
-
var tmp0_subject = _this__u8e3s4.
|
|
3673
|
+
$this.u27(_this__u8e3s4.k27_1);
|
|
3674
|
+
var tmp0_subject = _this__u8e3s4.k27_1.c27_1;
|
|
3674
3675
|
var tmp_0;
|
|
3675
3676
|
if (tmp0_subject instanceof Path) {
|
|
3676
3677
|
// Inline function 'kotlin.also' call
|
|
3677
|
-
var this_0 = new Literal(drop(_this__u8e3s4.
|
|
3678
|
+
var this_0 = new Literal(drop(_this__u8e3s4.k27_1.b27_1, 1));
|
|
3678
3679
|
// Inline function 'kotlin.contracts.contract' call
|
|
3679
3680
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointSegments.<anonymous>.<anonymous>' call
|
|
3680
|
-
raise.qk(_this__u8e3s4.
|
|
3681
|
+
raise.qk(_this__u8e3s4.n27());
|
|
3681
3682
|
tmp_0 = this_0;
|
|
3682
3683
|
} else {
|
|
3683
3684
|
if (tmp0_subject instanceof ForwardSlash) {
|
|
3684
3685
|
tmp_0 = raise.qk(parseEndpointSegmentParam(_this__u8e3s4, $this));
|
|
3685
3686
|
} else {
|
|
3686
3687
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
3687
|
-
var actual = _this__u8e3s4.
|
|
3688
|
+
var actual = _this__u8e3s4.k27_1;
|
|
3688
3689
|
var tmp$ret$1 = new WrongTokenException(getKClass(Path), actual);
|
|
3689
3690
|
raise.pk(tmp$ret$1);
|
|
3690
3691
|
}
|
|
@@ -3725,59 +3726,59 @@
|
|
|
3725
3726
|
try {
|
|
3726
3727
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
3727
3728
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointSegmentParam.<anonymous>' call
|
|
3728
|
-
raise.qk(_this__u8e3s4.
|
|
3729
|
-
$this.
|
|
3730
|
-
if (_this__u8e3s4.
|
|
3731
|
-
raise.qk(_this__u8e3s4.
|
|
3729
|
+
raise.qk(_this__u8e3s4.n27());
|
|
3730
|
+
$this.u27(_this__u8e3s4.k27_1);
|
|
3731
|
+
if (_this__u8e3s4.k27_1.c27_1 instanceof LeftCurly)
|
|
3732
|
+
raise.qk(_this__u8e3s4.n27());
|
|
3732
3733
|
else {
|
|
3733
3734
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
3734
|
-
var actual = _this__u8e3s4.
|
|
3735
|
+
var actual = _this__u8e3s4.k27_1;
|
|
3735
3736
|
var tmp$ret$0 = new WrongTokenException(getKClass(LeftCurly), actual);
|
|
3736
3737
|
raise.pk(tmp$ret$0);
|
|
3737
3738
|
}
|
|
3738
3739
|
var tmp_0;
|
|
3739
|
-
if (_this__u8e3s4.
|
|
3740
|
+
if (_this__u8e3s4.k27_1.c27_1 instanceof CustomValue) {
|
|
3740
3741
|
// Inline function 'kotlin.also' call
|
|
3741
|
-
var this_0 =
|
|
3742
|
+
var this_0 = new FieldIdentifier(_this__u8e3s4.k27_1.b27_1);
|
|
3742
3743
|
// Inline function 'kotlin.contracts.contract' call
|
|
3743
3744
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointSegmentParam.<anonymous>.<anonymous>' call
|
|
3744
|
-
raise.qk(_this__u8e3s4.
|
|
3745
|
+
raise.qk(_this__u8e3s4.n27());
|
|
3745
3746
|
tmp_0 = this_0;
|
|
3746
3747
|
} else {
|
|
3747
3748
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
3748
|
-
var actual_0 = _this__u8e3s4.
|
|
3749
|
+
var actual_0 = _this__u8e3s4.k27_1;
|
|
3749
3750
|
var tmp$ret$2 = new WrongTokenException(getKClass(CustomValue), actual_0);
|
|
3750
3751
|
raise.pk(tmp$ret$2);
|
|
3751
3752
|
}
|
|
3752
3753
|
var identifier = tmp_0;
|
|
3753
|
-
if (_this__u8e3s4.
|
|
3754
|
-
raise.qk(_this__u8e3s4.
|
|
3754
|
+
if (_this__u8e3s4.k27_1.c27_1 instanceof Colon)
|
|
3755
|
+
raise.qk(_this__u8e3s4.n27());
|
|
3755
3756
|
else {
|
|
3756
3757
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
3757
|
-
var actual_1 = _this__u8e3s4.
|
|
3758
|
+
var actual_1 = _this__u8e3s4.k27_1;
|
|
3758
3759
|
var tmp$ret$3 = new WrongTokenException(getKClass(Colon), actual_1);
|
|
3759
3760
|
raise.pk(tmp$ret$3);
|
|
3760
3761
|
}
|
|
3761
3762
|
var tmp_1;
|
|
3762
|
-
if (_this__u8e3s4.
|
|
3763
|
+
if (_this__u8e3s4.k27_1.c27_1 instanceof LeftCurly) {
|
|
3763
3764
|
// Inline function 'kotlin.also' call
|
|
3764
3765
|
// Inline function 'kotlin.contracts.contract' call
|
|
3765
3766
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointSegmentParam.<anonymous>.<anonymous>' call
|
|
3766
|
-
raise.qk(_this__u8e3s4.
|
|
3767
|
+
raise.qk(_this__u8e3s4.n27());
|
|
3767
3768
|
tmp_1 = true;
|
|
3768
3769
|
} else {
|
|
3769
3770
|
tmp_1 = false;
|
|
3770
3771
|
}
|
|
3771
3772
|
var isDict = tmp_1;
|
|
3772
3773
|
// Inline function 'kotlin.also' call
|
|
3773
|
-
var tmp4_subject = _this__u8e3s4.
|
|
3774
|
+
var tmp4_subject = _this__u8e3s4.k27_1.c27_1;
|
|
3774
3775
|
var tmp_2;
|
|
3775
3776
|
if (isInterface(tmp4_subject, WirespecType)) {
|
|
3776
|
-
var tmp_3 = _this__u8e3s4.
|
|
3777
|
-
tmp_2 = raise.qk(parseReference(_this__u8e3s4, $this, isInterface(tmp_3, WirespecType) ? tmp_3 : THROW_CCE(), _this__u8e3s4.
|
|
3777
|
+
var tmp_3 = _this__u8e3s4.k27_1.c27_1;
|
|
3778
|
+
tmp_2 = raise.qk(parseReference(_this__u8e3s4, $this, isInterface(tmp_3, WirespecType) ? tmp_3 : THROW_CCE(), _this__u8e3s4.k27_1.b27_1, isDict));
|
|
3778
3779
|
} else {
|
|
3779
3780
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
3780
|
-
var actual_2 = _this__u8e3s4.
|
|
3781
|
+
var actual_2 = _this__u8e3s4.k27_1;
|
|
3781
3782
|
var tmp$ret$5 = new WrongTokenException(getKClass(WirespecType), actual_2);
|
|
3782
3783
|
raise.pk(tmp$ret$5);
|
|
3783
3784
|
}
|
|
@@ -3785,25 +3786,25 @@
|
|
|
3785
3786
|
// Inline function 'kotlin.contracts.contract' call
|
|
3786
3787
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointSegmentParam.<anonymous>.<anonymous>' call
|
|
3787
3788
|
if (isDict) {
|
|
3788
|
-
if (_this__u8e3s4.
|
|
3789
|
-
raise.qk(_this__u8e3s4.
|
|
3789
|
+
if (_this__u8e3s4.k27_1.c27_1 instanceof RightCurly)
|
|
3790
|
+
raise.qk(_this__u8e3s4.n27());
|
|
3790
3791
|
else {
|
|
3791
3792
|
// Inline function 'kotlin.also' call
|
|
3792
3793
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
3793
|
-
var actual_3 = _this__u8e3s4.
|
|
3794
|
+
var actual_3 = _this__u8e3s4.k27_1;
|
|
3794
3795
|
var this_2 = new WrongTokenException(getKClass(RightCurly), actual_3);
|
|
3795
3796
|
// Inline function 'kotlin.contracts.contract' call
|
|
3796
3797
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointSegmentParam.<anonymous>.<anonymous>.<anonymous>' call
|
|
3797
|
-
raise.qk(_this__u8e3s4.
|
|
3798
|
+
raise.qk(_this__u8e3s4.n27());
|
|
3798
3799
|
raise.pk(this_2);
|
|
3799
3800
|
}
|
|
3800
3801
|
}
|
|
3801
3802
|
var reference = this_1;
|
|
3802
|
-
if (_this__u8e3s4.
|
|
3803
|
-
raise.qk(_this__u8e3s4.
|
|
3803
|
+
if (_this__u8e3s4.k27_1.c27_1 instanceof RightCurly)
|
|
3804
|
+
raise.qk(_this__u8e3s4.n27());
|
|
3804
3805
|
else {
|
|
3805
3806
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
3806
|
-
var actual_4 = _this__u8e3s4.
|
|
3807
|
+
var actual_4 = _this__u8e3s4.k27_1;
|
|
3807
3808
|
var tmp$ret$9 = new WrongTokenException(getKClass(RightCurly), actual_4);
|
|
3808
3809
|
raise.pk(tmp$ret$9);
|
|
3809
3810
|
}
|
|
@@ -3843,33 +3844,33 @@
|
|
|
3843
3844
|
try {
|
|
3844
3845
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
3845
3846
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointResponses.<anonymous>' call
|
|
3846
|
-
$this.
|
|
3847
|
+
$this.u27(_this__u8e3s4.k27_1);
|
|
3847
3848
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
3848
3849
|
var responses = ArrayList_init_$Create$();
|
|
3849
3850
|
$l$loop: while (true) {
|
|
3850
|
-
var tmp_0 = _this__u8e3s4.
|
|
3851
|
+
var tmp_0 = _this__u8e3s4.k27_1.c27_1;
|
|
3851
3852
|
if (!!(tmp_0 instanceof RightCurly)) {
|
|
3852
3853
|
break $l$loop;
|
|
3853
3854
|
}
|
|
3854
|
-
if (_this__u8e3s4.
|
|
3855
|
-
responses.e(raise.qk(parseEndpointResponse(_this__u8e3s4, $this, _this__u8e3s4.
|
|
3855
|
+
if (_this__u8e3s4.k27_1.c27_1 instanceof StatusCode)
|
|
3856
|
+
responses.e(raise.qk(parseEndpointResponse(_this__u8e3s4, $this, _this__u8e3s4.k27_1.b27_1)));
|
|
3856
3857
|
else {
|
|
3857
3858
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
3858
|
-
var actual = _this__u8e3s4.
|
|
3859
|
+
var actual = _this__u8e3s4.k27_1;
|
|
3859
3860
|
var tmp$ret$1 = new WrongTokenException(getKClass(StatusCode), actual);
|
|
3860
3861
|
raise.pk(tmp$ret$1);
|
|
3861
3862
|
}
|
|
3862
3863
|
}
|
|
3863
3864
|
// Inline function 'kotlin.also' call
|
|
3864
|
-
if (!(_this__u8e3s4.
|
|
3865
|
+
if (!(_this__u8e3s4.k27_1.c27_1 instanceof RightCurly)) {
|
|
3865
3866
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
3866
|
-
var actual_0 = _this__u8e3s4.
|
|
3867
|
+
var actual_0 = _this__u8e3s4.k27_1;
|
|
3867
3868
|
var tmp$ret$2 = new WrongTokenException(getKClass(RightCurly), actual_0);
|
|
3868
3869
|
raise.pk(tmp$ret$2);
|
|
3869
3870
|
}
|
|
3870
3871
|
// Inline function 'kotlin.contracts.contract' call
|
|
3871
3872
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointResponses.<anonymous>.<anonymous>' call
|
|
3872
|
-
raise.qk(_this__u8e3s4.
|
|
3873
|
+
raise.qk(_this__u8e3s4.n27());
|
|
3873
3874
|
var res = toList(responses);
|
|
3874
3875
|
raise.nk();
|
|
3875
3876
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
@@ -3906,36 +3907,36 @@
|
|
|
3906
3907
|
try {
|
|
3907
3908
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
3908
3909
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointResponse.<anonymous>' call
|
|
3909
|
-
raise.qk(_this__u8e3s4.
|
|
3910
|
-
$this.
|
|
3911
|
-
if (!(_this__u8e3s4.
|
|
3910
|
+
raise.qk(_this__u8e3s4.n27());
|
|
3911
|
+
$this.u27(_this__u8e3s4.k27_1);
|
|
3912
|
+
if (!(_this__u8e3s4.k27_1.c27_1 instanceof Arrow)) {
|
|
3912
3913
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
3913
|
-
var actual = _this__u8e3s4.
|
|
3914
|
+
var actual = _this__u8e3s4.k27_1;
|
|
3914
3915
|
var tmp$ret$0 = new WrongTokenException(getKClass(Arrow), actual);
|
|
3915
3916
|
raise.pk(tmp$ret$0);
|
|
3916
3917
|
}
|
|
3917
|
-
raise.qk(_this__u8e3s4.
|
|
3918
|
-
$this.
|
|
3918
|
+
raise.qk(_this__u8e3s4.n27());
|
|
3919
|
+
$this.u27(_this__u8e3s4.k27_1);
|
|
3919
3920
|
var tmp_0;
|
|
3920
|
-
if (_this__u8e3s4.
|
|
3921
|
+
if (_this__u8e3s4.k27_1.c27_1 instanceof LeftCurly) {
|
|
3921
3922
|
// Inline function 'kotlin.also' call
|
|
3922
3923
|
// Inline function 'kotlin.contracts.contract' call
|
|
3923
3924
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointResponse.<anonymous>.<anonymous>' call
|
|
3924
|
-
raise.qk(_this__u8e3s4.
|
|
3925
|
+
raise.qk(_this__u8e3s4.n27());
|
|
3925
3926
|
tmp_0 = true;
|
|
3926
3927
|
} else {
|
|
3927
3928
|
tmp_0 = false;
|
|
3928
3929
|
}
|
|
3929
3930
|
var isDict = tmp_0;
|
|
3930
3931
|
// Inline function 'kotlin.also' call
|
|
3931
|
-
var tmp2_subject = _this__u8e3s4.
|
|
3932
|
+
var tmp2_subject = _this__u8e3s4.k27_1.c27_1;
|
|
3932
3933
|
var tmp_1;
|
|
3933
3934
|
if (isInterface(tmp2_subject, WirespecType)) {
|
|
3934
|
-
var tmp_2 = _this__u8e3s4.
|
|
3935
|
-
tmp_1 = raise.qk(parseContent(_this__u8e3s4, $this, isInterface(tmp_2, WirespecType) ? tmp_2 : THROW_CCE(), _this__u8e3s4.
|
|
3935
|
+
var tmp_2 = _this__u8e3s4.k27_1.c27_1;
|
|
3936
|
+
tmp_1 = raise.qk(parseContent(_this__u8e3s4, $this, isInterface(tmp_2, WirespecType) ? tmp_2 : THROW_CCE(), _this__u8e3s4.k27_1.b27_1, isDict));
|
|
3936
3937
|
} else {
|
|
3937
3938
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
3938
|
-
var actual_0 = _this__u8e3s4.
|
|
3939
|
+
var actual_0 = _this__u8e3s4.k27_1;
|
|
3939
3940
|
var tmp$ret$2 = new WrongTokenException(getKClass(WirespecType), actual_0);
|
|
3940
3941
|
raise.pk(tmp$ret$2);
|
|
3941
3942
|
}
|
|
@@ -3943,16 +3944,16 @@
|
|
|
3943
3944
|
// Inline function 'kotlin.contracts.contract' call
|
|
3944
3945
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointResponse.<anonymous>.<anonymous>' call
|
|
3945
3946
|
if (isDict) {
|
|
3946
|
-
if (_this__u8e3s4.
|
|
3947
|
-
raise.qk(_this__u8e3s4.
|
|
3947
|
+
if (_this__u8e3s4.k27_1.c27_1 instanceof RightCurly)
|
|
3948
|
+
raise.qk(_this__u8e3s4.n27());
|
|
3948
3949
|
else {
|
|
3949
3950
|
// Inline function 'kotlin.also' call
|
|
3950
3951
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
3951
|
-
var actual_1 = _this__u8e3s4.
|
|
3952
|
+
var actual_1 = _this__u8e3s4.k27_1;
|
|
3952
3953
|
var this_1 = new WrongTokenException(getKClass(RightCurly), actual_1);
|
|
3953
3954
|
// Inline function 'kotlin.contracts.contract' call
|
|
3954
3955
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointResponse.<anonymous>.<anonymous>.<anonymous>' call
|
|
3955
|
-
raise.qk(_this__u8e3s4.
|
|
3956
|
+
raise.qk(_this__u8e3s4.n27());
|
|
3956
3957
|
raise.pk(this_1);
|
|
3957
3958
|
}
|
|
3958
3959
|
}
|
|
@@ -3993,7 +3994,7 @@
|
|
|
3993
3994
|
try {
|
|
3994
3995
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
3995
3996
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseContent.<anonymous>' call
|
|
3996
|
-
$this.
|
|
3997
|
+
$this.u27(_this__u8e3s4.k27_1);
|
|
3997
3998
|
var reference = raise.qk(parseReference(_this__u8e3s4, $this, wsType, value, isDict));
|
|
3998
3999
|
var tmp_0;
|
|
3999
4000
|
if (reference instanceof Unit) {
|
|
@@ -4037,16 +4038,16 @@
|
|
|
4037
4038
|
try {
|
|
4038
4039
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4039
4040
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseReference.<anonymous>' call
|
|
4040
|
-
var previousToken = _this__u8e3s4.
|
|
4041
|
-
raise.qk(_this__u8e3s4.
|
|
4042
|
-
$this.
|
|
4041
|
+
var previousToken = _this__u8e3s4.k27_1;
|
|
4042
|
+
raise.qk(_this__u8e3s4.n27());
|
|
4043
|
+
$this.u27(_this__u8e3s4.k27_1);
|
|
4043
4044
|
// Inline function 'kotlin.also' call
|
|
4044
|
-
var tmp_0 = _this__u8e3s4.
|
|
4045
|
+
var tmp_0 = _this__u8e3s4.k27_1.c27_1;
|
|
4045
4046
|
var this_0 = tmp_0 instanceof Brackets;
|
|
4046
4047
|
// Inline function 'kotlin.contracts.contract' call
|
|
4047
4048
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseReference.<anonymous>.<anonymous>' call
|
|
4048
4049
|
if (this_0)
|
|
4049
|
-
raise.qk(_this__u8e3s4.
|
|
4050
|
+
raise.qk(_this__u8e3s4.n27());
|
|
4050
4051
|
var isIterable = this_0;
|
|
4051
4052
|
var tmp_1;
|
|
4052
4053
|
if (wsType instanceof WsString) {
|
|
@@ -4065,7 +4066,7 @@
|
|
|
4065
4066
|
tmp_1 = new Unit(isIterable);
|
|
4066
4067
|
} else {
|
|
4067
4068
|
if (wsType instanceof CustomType) {
|
|
4068
|
-
raise.qk(_this__u8e3s4.
|
|
4069
|
+
raise.qk(_this__u8e3s4.y27(previousToken));
|
|
4069
4070
|
tmp_1 = new Custom(value, isIterable);
|
|
4070
4071
|
} else {
|
|
4071
4072
|
noWhenBranchMatchedException();
|
|
@@ -4102,9 +4103,9 @@
|
|
|
4102
4103
|
}
|
|
4103
4104
|
function EndpointParser(logger) {
|
|
4104
4105
|
AbstractParser.call(this, logger);
|
|
4105
|
-
this.
|
|
4106
|
+
this.w27_1 = new TypeParser(logger);
|
|
4106
4107
|
}
|
|
4107
|
-
protoOf(EndpointParser).
|
|
4108
|
+
protoOf(EndpointParser).z27 = function (_this__u8e3s4, comment) {
|
|
4108
4109
|
// Inline function 'arrow.core.raise.either' call
|
|
4109
4110
|
// Inline function 'arrow.core.raise.fold' call
|
|
4110
4111
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -4115,19 +4116,19 @@
|
|
|
4115
4116
|
try {
|
|
4116
4117
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4117
4118
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpoint.<anonymous>' call
|
|
4118
|
-
raise.qk(_this__u8e3s4.
|
|
4119
|
-
this.
|
|
4119
|
+
raise.qk(_this__u8e3s4.n27());
|
|
4120
|
+
this.u27(_this__u8e3s4.k27_1);
|
|
4120
4121
|
var tmp_0;
|
|
4121
|
-
if (_this__u8e3s4.
|
|
4122
|
-
tmp_0 = raise.qk(parseEndpointDefinition(_this__u8e3s4, this, comment,
|
|
4122
|
+
if (_this__u8e3s4.k27_1.c27_1 instanceof CustomType) {
|
|
4123
|
+
tmp_0 = raise.qk(parseEndpointDefinition(_this__u8e3s4, this, comment, new DefinitionIdentifier(_this__u8e3s4.k27_1.b27_1)));
|
|
4123
4124
|
} else {
|
|
4124
4125
|
// Inline function 'kotlin.also' call
|
|
4125
4126
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
4126
|
-
var actual = _this__u8e3s4.
|
|
4127
|
+
var actual = _this__u8e3s4.k27_1;
|
|
4127
4128
|
var this_0 = new WrongTokenException(getKClass(CustomType), actual);
|
|
4128
4129
|
// Inline function 'kotlin.contracts.contract' call
|
|
4129
4130
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpoint.<anonymous>.<anonymous>' call
|
|
4130
|
-
raise.qk(_this__u8e3s4.
|
|
4131
|
+
raise.qk(_this__u8e3s4.n27());
|
|
4131
4132
|
raise.pk(this_0);
|
|
4132
4133
|
}
|
|
4133
4134
|
var res = tmp_0;
|
|
@@ -4166,35 +4167,35 @@
|
|
|
4166
4167
|
try {
|
|
4167
4168
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4168
4169
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EnumParser.parseEnumTypeDefinition.<anonymous>' call
|
|
4169
|
-
raise.qk(_this__u8e3s4.
|
|
4170
|
-
$this.
|
|
4170
|
+
raise.qk(_this__u8e3s4.n27());
|
|
4171
|
+
$this.u27(_this__u8e3s4.k27_1);
|
|
4171
4172
|
// Inline function 'kotlin.also' call
|
|
4172
4173
|
var tmp_0;
|
|
4173
|
-
if (_this__u8e3s4.
|
|
4174
|
+
if (_this__u8e3s4.k27_1.c27_1 instanceof LeftCurly) {
|
|
4174
4175
|
tmp_0 = new Enum_0(comment, typeName, raise.qk(parseEnumTypeEntries(_this__u8e3s4, $this)));
|
|
4175
4176
|
} else {
|
|
4176
4177
|
// Inline function 'kotlin.also' call
|
|
4177
4178
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
4178
|
-
var actual = _this__u8e3s4.
|
|
4179
|
+
var actual = _this__u8e3s4.k27_1;
|
|
4179
4180
|
var this_0 = new WrongTokenException(getKClass(LeftCurly), actual);
|
|
4180
4181
|
// Inline function 'kotlin.contracts.contract' call
|
|
4181
4182
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EnumParser.parseEnumTypeDefinition.<anonymous>.<anonymous>' call
|
|
4182
|
-
raise.qk(_this__u8e3s4.
|
|
4183
|
+
raise.qk(_this__u8e3s4.n27());
|
|
4183
4184
|
raise.pk(this_0);
|
|
4184
4185
|
}
|
|
4185
4186
|
var this_1 = tmp_0;
|
|
4186
4187
|
// Inline function 'kotlin.contracts.contract' call
|
|
4187
4188
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EnumParser.parseEnumTypeDefinition.<anonymous>.<anonymous>' call
|
|
4188
|
-
if (_this__u8e3s4.
|
|
4189
|
-
raise.qk(_this__u8e3s4.
|
|
4189
|
+
if (_this__u8e3s4.k27_1.c27_1 instanceof RightCurly)
|
|
4190
|
+
raise.qk(_this__u8e3s4.n27());
|
|
4190
4191
|
else {
|
|
4191
4192
|
// Inline function 'kotlin.also' call
|
|
4192
4193
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
4193
|
-
var actual_0 = _this__u8e3s4.
|
|
4194
|
+
var actual_0 = _this__u8e3s4.k27_1;
|
|
4194
4195
|
var this_2 = new WrongTokenException(getKClass(RightCurly), actual_0);
|
|
4195
4196
|
// Inline function 'kotlin.contracts.contract' call
|
|
4196
4197
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EnumParser.parseEnumTypeDefinition.<anonymous>.<anonymous>.<anonymous>' call
|
|
4197
|
-
raise.qk(_this__u8e3s4.
|
|
4198
|
+
raise.qk(_this__u8e3s4.n27());
|
|
4198
4199
|
raise.pk(this_2);
|
|
4199
4200
|
}
|
|
4200
4201
|
var res = this_1;
|
|
@@ -4233,33 +4234,33 @@
|
|
|
4233
4234
|
try {
|
|
4234
4235
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4235
4236
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EnumParser.parseEnumTypeEntries.<anonymous>' call
|
|
4236
|
-
raise.qk(_this__u8e3s4.
|
|
4237
|
-
$this.
|
|
4237
|
+
raise.qk(_this__u8e3s4.n27());
|
|
4238
|
+
$this.u27(_this__u8e3s4.k27_1);
|
|
4238
4239
|
var tmp_0;
|
|
4239
|
-
if (_this__u8e3s4.
|
|
4240
|
+
if (_this__u8e3s4.k27_1.c27_1 instanceof CustomType) {
|
|
4240
4241
|
// Inline function 'kotlin.apply' call
|
|
4241
4242
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
4242
4243
|
var this_0 = ArrayList_init_$Create$();
|
|
4243
4244
|
// Inline function 'kotlin.contracts.contract' call
|
|
4244
4245
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EnumParser.parseEnumTypeEntries.<anonymous>.<anonymous>' call
|
|
4245
|
-
this_0.e(_this__u8e3s4.
|
|
4246
|
-
raise.qk(_this__u8e3s4.
|
|
4247
|
-
while (equals(_this__u8e3s4.
|
|
4248
|
-
raise.qk(_this__u8e3s4.
|
|
4249
|
-
if (_this__u8e3s4.
|
|
4246
|
+
this_0.e(_this__u8e3s4.k27_1.b27_1);
|
|
4247
|
+
raise.qk(_this__u8e3s4.n27());
|
|
4248
|
+
while (equals(_this__u8e3s4.k27_1.c27_1, Comma_instance)) {
|
|
4249
|
+
raise.qk(_this__u8e3s4.n27());
|
|
4250
|
+
if (_this__u8e3s4.k27_1.c27_1 instanceof CustomType) {
|
|
4250
4251
|
// Inline function 'kotlin.also' call
|
|
4251
|
-
this_0.e(_this__u8e3s4.
|
|
4252
|
+
this_0.e(_this__u8e3s4.k27_1.b27_1);
|
|
4252
4253
|
// Inline function 'kotlin.contracts.contract' call
|
|
4253
4254
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EnumParser.parseEnumTypeEntries.<anonymous>.<anonymous>.<anonymous>' call
|
|
4254
|
-
raise.qk(_this__u8e3s4.
|
|
4255
|
+
raise.qk(_this__u8e3s4.n27());
|
|
4255
4256
|
} else {
|
|
4256
4257
|
// Inline function 'kotlin.also' call
|
|
4257
4258
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
4258
|
-
var actual = _this__u8e3s4.
|
|
4259
|
+
var actual = _this__u8e3s4.k27_1;
|
|
4259
4260
|
var this_1 = new WrongTokenException(getKClass(CustomType), actual);
|
|
4260
4261
|
// Inline function 'kotlin.contracts.contract' call
|
|
4261
4262
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EnumParser.parseEnumTypeEntries.<anonymous>.<anonymous>.<anonymous>' call
|
|
4262
|
-
raise.qk(_this__u8e3s4.
|
|
4263
|
+
raise.qk(_this__u8e3s4.n27());
|
|
4263
4264
|
raise.pk(this_1);
|
|
4264
4265
|
}
|
|
4265
4266
|
}
|
|
@@ -4267,11 +4268,11 @@
|
|
|
4267
4268
|
} else {
|
|
4268
4269
|
// Inline function 'kotlin.also' call
|
|
4269
4270
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
4270
|
-
var actual_0 = _this__u8e3s4.
|
|
4271
|
+
var actual_0 = _this__u8e3s4.k27_1;
|
|
4271
4272
|
var this_2 = new WrongTokenException(getKClass(CustomType), actual_0);
|
|
4272
4273
|
// Inline function 'kotlin.contracts.contract' call
|
|
4273
4274
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EnumParser.parseEnumTypeEntries.<anonymous>.<anonymous>' call
|
|
4274
|
-
raise.qk(_this__u8e3s4.
|
|
4275
|
+
raise.qk(_this__u8e3s4.n27());
|
|
4275
4276
|
raise.pk(this_2);
|
|
4276
4277
|
}
|
|
4277
4278
|
var res = toSet(tmp_0);
|
|
@@ -4302,7 +4303,7 @@
|
|
|
4302
4303
|
function EnumParser(logger) {
|
|
4303
4304
|
AbstractParser.call(this, logger);
|
|
4304
4305
|
}
|
|
4305
|
-
protoOf(EnumParser).
|
|
4306
|
+
protoOf(EnumParser).b28 = function (_this__u8e3s4, comment) {
|
|
4306
4307
|
// Inline function 'arrow.core.raise.either' call
|
|
4307
4308
|
// Inline function 'arrow.core.raise.fold' call
|
|
4308
4309
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -4313,19 +4314,19 @@
|
|
|
4313
4314
|
try {
|
|
4314
4315
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4315
4316
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EnumParser.parseEnum.<anonymous>' call
|
|
4316
|
-
raise.qk(_this__u8e3s4.
|
|
4317
|
-
this.
|
|
4317
|
+
raise.qk(_this__u8e3s4.n27());
|
|
4318
|
+
this.u27(_this__u8e3s4.k27_1);
|
|
4318
4319
|
var tmp_0;
|
|
4319
|
-
if (_this__u8e3s4.
|
|
4320
|
-
tmp_0 = raise.qk(parseEnumTypeDefinition(_this__u8e3s4, this, comment,
|
|
4320
|
+
if (_this__u8e3s4.k27_1.c27_1 instanceof CustomType) {
|
|
4321
|
+
tmp_0 = raise.qk(parseEnumTypeDefinition(_this__u8e3s4, this, comment, new DefinitionIdentifier(_this__u8e3s4.k27_1.b27_1)));
|
|
4321
4322
|
} else {
|
|
4322
4323
|
// Inline function 'kotlin.also' call
|
|
4323
4324
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
4324
|
-
var actual = _this__u8e3s4.
|
|
4325
|
+
var actual = _this__u8e3s4.k27_1;
|
|
4325
4326
|
var this_0 = new WrongTokenException(getKClass(CustomType), actual);
|
|
4326
4327
|
// Inline function 'kotlin.contracts.contract' call
|
|
4327
4328
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EnumParser.parseEnum.<anonymous>.<anonymous>' call
|
|
4328
|
-
raise.qk(_this__u8e3s4.
|
|
4329
|
+
raise.qk(_this__u8e3s4.n27());
|
|
4329
4330
|
raise.pk(this_0);
|
|
4330
4331
|
}
|
|
4331
4332
|
var res = tmp_0;
|
|
@@ -4370,141 +4371,93 @@
|
|
|
4370
4371
|
function Comment__equals_impl_3xkmkx($this, other) {
|
|
4371
4372
|
if (!(other instanceof Comment))
|
|
4372
4373
|
return false;
|
|
4373
|
-
if (!($this === (other instanceof Comment ? other.
|
|
4374
|
+
if (!($this === (other instanceof Comment ? other.d28_1 : THROW_CCE())))
|
|
4374
4375
|
return false;
|
|
4375
4376
|
return true;
|
|
4376
4377
|
}
|
|
4377
4378
|
function Comment(value) {
|
|
4378
|
-
this.
|
|
4379
|
+
this.d28_1 = value;
|
|
4379
4380
|
}
|
|
4380
4381
|
protoOf(Comment).b1 = function () {
|
|
4381
|
-
return _Comment___get_value__impl__8r3pla(this.
|
|
4382
|
+
return _Comment___get_value__impl__8r3pla(this.d28_1);
|
|
4382
4383
|
};
|
|
4383
4384
|
protoOf(Comment).toString = function () {
|
|
4384
|
-
return Comment__toString_impl_803gny(this.
|
|
4385
|
+
return Comment__toString_impl_803gny(this.d28_1);
|
|
4385
4386
|
};
|
|
4386
4387
|
protoOf(Comment).hashCode = function () {
|
|
4387
|
-
return Comment__hashCode_impl_tr9dgt(this.
|
|
4388
|
+
return Comment__hashCode_impl_tr9dgt(this.d28_1);
|
|
4388
4389
|
};
|
|
4389
4390
|
protoOf(Comment).equals = function (other) {
|
|
4390
|
-
return Comment__equals_impl_3xkmkx(this.
|
|
4391
|
-
};
|
|
4392
|
-
var Type_Class_instance;
|
|
4393
|
-
var Type_Field_instance;
|
|
4394
|
-
var Type_entriesInitialized;
|
|
4395
|
-
function Type_initEntries() {
|
|
4396
|
-
if (Type_entriesInitialized)
|
|
4397
|
-
return Unit_instance;
|
|
4398
|
-
Type_entriesInitialized = true;
|
|
4399
|
-
Type_Class_instance = new Type('Class', 0);
|
|
4400
|
-
Type_Field_instance = new Type('Field', 1);
|
|
4401
|
-
}
|
|
4402
|
-
function Type(name, ordinal) {
|
|
4403
|
-
Enum.call(this, name, ordinal);
|
|
4404
|
-
}
|
|
4405
|
-
function Companion_5() {
|
|
4406
|
-
}
|
|
4407
|
-
protoOf(Companion_5).b27 = function (value) {
|
|
4408
|
-
// Inline function 'kotlin.let' call
|
|
4409
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
4410
|
-
var p0 = removeBackticks(value);
|
|
4411
|
-
return new Identifier(p0);
|
|
4391
|
+
return Comment__equals_impl_3xkmkx(this.d28_1, other);
|
|
4412
4392
|
};
|
|
4413
|
-
|
|
4414
|
-
|
|
4415
|
-
return Companion_instance_6;
|
|
4416
|
-
}
|
|
4417
|
-
function Type_Class_getInstance() {
|
|
4418
|
-
Type_initEntries();
|
|
4419
|
-
return Type_Class_instance;
|
|
4420
|
-
}
|
|
4421
|
-
function Type_Field_getInstance() {
|
|
4422
|
-
Type_initEntries();
|
|
4423
|
-
return Type_Field_instance;
|
|
4424
|
-
}
|
|
4425
|
-
function Identifier(value) {
|
|
4426
|
-
this.y22_1 = value;
|
|
4393
|
+
function Identifier(name) {
|
|
4394
|
+
this.c23_1 = removeBackticks(name);
|
|
4427
4395
|
}
|
|
4428
4396
|
protoOf(Identifier).b1 = function () {
|
|
4429
|
-
return this.
|
|
4430
|
-
};
|
|
4431
|
-
protoOf(Identifier).toString = function () {
|
|
4432
|
-
return this.y22_1;
|
|
4433
|
-
};
|
|
4434
|
-
protoOf(Identifier).equals = function (other) {
|
|
4435
|
-
if (this === other)
|
|
4436
|
-
return true;
|
|
4437
|
-
if (other == null || !getKClassFromExpression(this).equals(getKClassFromExpression(other)))
|
|
4438
|
-
return false;
|
|
4439
|
-
if (!(other instanceof Identifier))
|
|
4440
|
-
THROW_CCE();
|
|
4441
|
-
return this.y22_1 === other.y22_1;
|
|
4442
|
-
};
|
|
4443
|
-
protoOf(Identifier).hashCode = function () {
|
|
4444
|
-
return getStringHashCode(this.y22_1);
|
|
4397
|
+
return this.c23_1;
|
|
4445
4398
|
};
|
|
4446
4399
|
var Type_String_instance;
|
|
4447
4400
|
var Type_Integer_instance;
|
|
4448
4401
|
var Type_Number_instance;
|
|
4449
4402
|
var Type_Boolean_instance;
|
|
4450
|
-
var
|
|
4451
|
-
function
|
|
4452
|
-
if (
|
|
4403
|
+
var Type_entriesInitialized;
|
|
4404
|
+
function Type_initEntries() {
|
|
4405
|
+
if (Type_entriesInitialized)
|
|
4453
4406
|
return Unit_instance;
|
|
4454
|
-
|
|
4455
|
-
Type_String_instance = new
|
|
4456
|
-
Type_Integer_instance = new
|
|
4457
|
-
Type_Number_instance = new
|
|
4458
|
-
Type_Boolean_instance = new
|
|
4407
|
+
Type_entriesInitialized = true;
|
|
4408
|
+
Type_String_instance = new Type('String', 0);
|
|
4409
|
+
Type_Integer_instance = new Type('Integer', 1);
|
|
4410
|
+
Type_Number_instance = new Type('Number', 2);
|
|
4411
|
+
Type_Boolean_instance = new Type('Boolean', 3);
|
|
4459
4412
|
}
|
|
4460
|
-
function
|
|
4413
|
+
function Type(name, ordinal) {
|
|
4461
4414
|
Enum.call(this, name, ordinal);
|
|
4462
4415
|
}
|
|
4463
4416
|
function Type_String_getInstance() {
|
|
4464
|
-
|
|
4417
|
+
Type_initEntries();
|
|
4465
4418
|
return Type_String_instance;
|
|
4466
4419
|
}
|
|
4467
4420
|
function Type_Integer_getInstance() {
|
|
4468
|
-
|
|
4421
|
+
Type_initEntries();
|
|
4469
4422
|
return Type_Integer_instance;
|
|
4470
4423
|
}
|
|
4471
4424
|
function Type_Number_getInstance() {
|
|
4472
|
-
|
|
4425
|
+
Type_initEntries();
|
|
4473
4426
|
return Type_Number_instance;
|
|
4474
4427
|
}
|
|
4475
4428
|
function Type_Boolean_getInstance() {
|
|
4476
|
-
|
|
4429
|
+
Type_initEntries();
|
|
4477
4430
|
return Type_Boolean_instance;
|
|
4478
4431
|
}
|
|
4479
4432
|
function Any(isIterable, isDictionary) {
|
|
4480
4433
|
isDictionary = isDictionary === VOID ? false : isDictionary;
|
|
4481
|
-
this.
|
|
4482
|
-
this.
|
|
4483
|
-
this.
|
|
4434
|
+
this.e28_1 = isIterable;
|
|
4435
|
+
this.f28_1 = isDictionary;
|
|
4436
|
+
this.g28_1 = 'Any';
|
|
4484
4437
|
}
|
|
4485
4438
|
protoOf(Any).e24 = function () {
|
|
4486
|
-
return this.
|
|
4439
|
+
return this.e28_1;
|
|
4487
4440
|
};
|
|
4488
4441
|
protoOf(Any).q24 = function () {
|
|
4489
|
-
return this.
|
|
4442
|
+
return this.f28_1;
|
|
4490
4443
|
};
|
|
4491
4444
|
protoOf(Any).b1 = function () {
|
|
4492
|
-
return this.
|
|
4445
|
+
return this.g28_1;
|
|
4493
4446
|
};
|
|
4494
|
-
protoOf(Any).
|
|
4447
|
+
protoOf(Any).h28 = function (isIterable, isDictionary) {
|
|
4495
4448
|
return new Any(isIterable, isDictionary);
|
|
4496
4449
|
};
|
|
4497
|
-
protoOf(Any).
|
|
4498
|
-
isIterable = isIterable === VOID ? this.
|
|
4499
|
-
isDictionary = isDictionary === VOID ? this.
|
|
4500
|
-
return $super === VOID ? this.
|
|
4450
|
+
protoOf(Any).i28 = function (isIterable, isDictionary, $super) {
|
|
4451
|
+
isIterable = isIterable === VOID ? this.e28_1 : isIterable;
|
|
4452
|
+
isDictionary = isDictionary === VOID ? this.f28_1 : isDictionary;
|
|
4453
|
+
return $super === VOID ? this.h28(isIterable, isDictionary) : $super.h28.call(this, isIterable, isDictionary);
|
|
4501
4454
|
};
|
|
4502
4455
|
protoOf(Any).toString = function () {
|
|
4503
|
-
return 'Any(isIterable=' + this.
|
|
4456
|
+
return 'Any(isIterable=' + this.e28_1 + ', isDictionary=' + this.f28_1 + ')';
|
|
4504
4457
|
};
|
|
4505
4458
|
protoOf(Any).hashCode = function () {
|
|
4506
|
-
var result = getBooleanHashCode(this.
|
|
4507
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
4459
|
+
var result = getBooleanHashCode(this.e28_1);
|
|
4460
|
+
result = imul(result, 31) + getBooleanHashCode(this.f28_1) | 0;
|
|
4508
4461
|
return result;
|
|
4509
4462
|
};
|
|
4510
4463
|
protoOf(Any).equals = function (other) {
|
|
@@ -4513,41 +4466,41 @@
|
|
|
4513
4466
|
if (!(other instanceof Any))
|
|
4514
4467
|
return false;
|
|
4515
4468
|
var tmp0_other_with_cast = other instanceof Any ? other : THROW_CCE();
|
|
4516
|
-
if (!(this.
|
|
4469
|
+
if (!(this.e28_1 === tmp0_other_with_cast.e28_1))
|
|
4517
4470
|
return false;
|
|
4518
|
-
if (!(this.
|
|
4471
|
+
if (!(this.f28_1 === tmp0_other_with_cast.f28_1))
|
|
4519
4472
|
return false;
|
|
4520
4473
|
return true;
|
|
4521
4474
|
};
|
|
4522
4475
|
function Unit(isIterable, isDictionary) {
|
|
4523
4476
|
isDictionary = isDictionary === VOID ? false : isDictionary;
|
|
4524
|
-
this.
|
|
4525
|
-
this.
|
|
4526
|
-
this.
|
|
4477
|
+
this.j28_1 = isIterable;
|
|
4478
|
+
this.k28_1 = isDictionary;
|
|
4479
|
+
this.l28_1 = 'Unit';
|
|
4527
4480
|
}
|
|
4528
4481
|
protoOf(Unit).e24 = function () {
|
|
4529
|
-
return this.
|
|
4482
|
+
return this.j28_1;
|
|
4530
4483
|
};
|
|
4531
4484
|
protoOf(Unit).q24 = function () {
|
|
4532
|
-
return this.
|
|
4485
|
+
return this.k28_1;
|
|
4533
4486
|
};
|
|
4534
4487
|
protoOf(Unit).b1 = function () {
|
|
4535
|
-
return this.
|
|
4488
|
+
return this.l28_1;
|
|
4536
4489
|
};
|
|
4537
|
-
protoOf(Unit).
|
|
4490
|
+
protoOf(Unit).h28 = function (isIterable, isDictionary) {
|
|
4538
4491
|
return new Unit(isIterable, isDictionary);
|
|
4539
4492
|
};
|
|
4540
|
-
protoOf(Unit).
|
|
4541
|
-
isIterable = isIterable === VOID ? this.
|
|
4542
|
-
isDictionary = isDictionary === VOID ? this.
|
|
4543
|
-
return $super === VOID ? this.
|
|
4493
|
+
protoOf(Unit).m28 = function (isIterable, isDictionary, $super) {
|
|
4494
|
+
isIterable = isIterable === VOID ? this.j28_1 : isIterable;
|
|
4495
|
+
isDictionary = isDictionary === VOID ? this.k28_1 : isDictionary;
|
|
4496
|
+
return $super === VOID ? this.h28(isIterable, isDictionary) : $super.h28.call(this, isIterable, isDictionary);
|
|
4544
4497
|
};
|
|
4545
4498
|
protoOf(Unit).toString = function () {
|
|
4546
|
-
return 'Unit(isIterable=' + this.
|
|
4499
|
+
return 'Unit(isIterable=' + this.j28_1 + ', isDictionary=' + this.k28_1 + ')';
|
|
4547
4500
|
};
|
|
4548
4501
|
protoOf(Unit).hashCode = function () {
|
|
4549
|
-
var result = getBooleanHashCode(this.
|
|
4550
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
4502
|
+
var result = getBooleanHashCode(this.j28_1);
|
|
4503
|
+
result = imul(result, 31) + getBooleanHashCode(this.k28_1) | 0;
|
|
4551
4504
|
return result;
|
|
4552
4505
|
};
|
|
4553
4506
|
protoOf(Unit).equals = function (other) {
|
|
@@ -4556,9 +4509,9 @@
|
|
|
4556
4509
|
if (!(other instanceof Unit))
|
|
4557
4510
|
return false;
|
|
4558
4511
|
var tmp0_other_with_cast = other instanceof Unit ? other : THROW_CCE();
|
|
4559
|
-
if (!(this.
|
|
4512
|
+
if (!(this.j28_1 === tmp0_other_with_cast.j28_1))
|
|
4560
4513
|
return false;
|
|
4561
|
-
if (!(this.
|
|
4514
|
+
if (!(this.k28_1 === tmp0_other_with_cast.k28_1))
|
|
4562
4515
|
return false;
|
|
4563
4516
|
return true;
|
|
4564
4517
|
};
|
|
@@ -4577,14 +4530,14 @@
|
|
|
4577
4530
|
protoOf(Custom).q24 = function () {
|
|
4578
4531
|
return this.x22_1;
|
|
4579
4532
|
};
|
|
4580
|
-
protoOf(Custom).
|
|
4533
|
+
protoOf(Custom).n28 = function (value, isIterable, isDictionary) {
|
|
4581
4534
|
return new Custom(value, isIterable, isDictionary);
|
|
4582
4535
|
};
|
|
4583
|
-
protoOf(Custom).
|
|
4536
|
+
protoOf(Custom).o28 = function (value, isIterable, isDictionary, $super) {
|
|
4584
4537
|
value = value === VOID ? this.v22_1 : value;
|
|
4585
4538
|
isIterable = isIterable === VOID ? this.w22_1 : isIterable;
|
|
4586
4539
|
isDictionary = isDictionary === VOID ? this.x22_1 : isDictionary;
|
|
4587
|
-
return $super === VOID ? this.
|
|
4540
|
+
return $super === VOID ? this.n28(value, isIterable, isDictionary) : $super.n28.call(this, value, isIterable, isDictionary);
|
|
4588
4541
|
};
|
|
4589
4542
|
protoOf(Custom).toString = function () {
|
|
4590
4543
|
return 'Custom(value=' + this.v22_1 + ', isIterable=' + this.w22_1 + ', isDictionary=' + this.x22_1 + ')';
|
|
@@ -4626,14 +4579,14 @@
|
|
|
4626
4579
|
protoOf(Primitive).b1 = function () {
|
|
4627
4580
|
return this.l23_1;
|
|
4628
4581
|
};
|
|
4629
|
-
protoOf(Primitive).
|
|
4582
|
+
protoOf(Primitive).p28 = function (type, isIterable, isDictionary) {
|
|
4630
4583
|
return new Primitive(type, isIterable, isDictionary);
|
|
4631
4584
|
};
|
|
4632
|
-
protoOf(Primitive).
|
|
4585
|
+
protoOf(Primitive).q28 = function (type, isIterable, isDictionary, $super) {
|
|
4633
4586
|
type = type === VOID ? this.i23_1 : type;
|
|
4634
4587
|
isIterable = isIterable === VOID ? this.j23_1 : isIterable;
|
|
4635
4588
|
isDictionary = isDictionary === VOID ? this.k23_1 : isDictionary;
|
|
4636
|
-
return $super === VOID ? this.
|
|
4589
|
+
return $super === VOID ? this.p28(type, isIterable, isDictionary) : $super.p28.call(this, type, isIterable, isDictionary);
|
|
4637
4590
|
};
|
|
4638
4591
|
protoOf(Primitive).toString = function () {
|
|
4639
4592
|
return 'Primitive(type=' + this.i23_1.toString() + ', isIterable=' + this.j23_1 + ', isDictionary=' + this.k23_1 + ')';
|
|
@@ -4680,67 +4633,67 @@
|
|
|
4680
4633
|
return false;
|
|
4681
4634
|
return true;
|
|
4682
4635
|
};
|
|
4683
|
-
function
|
|
4684
|
-
this.
|
|
4685
|
-
this.
|
|
4686
|
-
this.
|
|
4687
|
-
this.
|
|
4636
|
+
function Type_0(comment, identifier, shape, extends_0) {
|
|
4637
|
+
this.y22_1 = comment;
|
|
4638
|
+
this.z22_1 = identifier;
|
|
4639
|
+
this.a23_1 = shape;
|
|
4640
|
+
this.b23_1 = extends_0;
|
|
4688
4641
|
}
|
|
4689
|
-
protoOf(
|
|
4690
|
-
return this.
|
|
4642
|
+
protoOf(Type_0).c28 = function () {
|
|
4643
|
+
return this.z22_1;
|
|
4691
4644
|
};
|
|
4692
|
-
protoOf(
|
|
4693
|
-
return new
|
|
4645
|
+
protoOf(Type_0).r28 = function (comment, identifier, shape, extends_0) {
|
|
4646
|
+
return new Type_0(comment, identifier, shape, extends_0);
|
|
4694
4647
|
};
|
|
4695
|
-
protoOf(
|
|
4696
|
-
comment = comment === VOID ? this.
|
|
4697
|
-
identifier = identifier === VOID ? this.
|
|
4698
|
-
shape = shape === VOID ? this.
|
|
4699
|
-
extends_0 = extends_0 === VOID ? this.
|
|
4648
|
+
protoOf(Type_0).s28 = function (comment, identifier, shape, extends_0, $super) {
|
|
4649
|
+
comment = comment === VOID ? this.y22_1 : comment;
|
|
4650
|
+
identifier = identifier === VOID ? this.z22_1 : identifier;
|
|
4651
|
+
shape = shape === VOID ? this.a23_1 : shape;
|
|
4652
|
+
extends_0 = extends_0 === VOID ? this.b23_1 : extends_0;
|
|
4700
4653
|
var tmp;
|
|
4701
4654
|
if ($super === VOID) {
|
|
4702
|
-
tmp = this.
|
|
4655
|
+
tmp = this.r28(comment, identifier, shape, extends_0);
|
|
4703
4656
|
} else {
|
|
4704
|
-
var tmp_0 = $super.
|
|
4657
|
+
var tmp_0 = $super.r28;
|
|
4705
4658
|
var tmp_1 = comment;
|
|
4706
4659
|
tmp = tmp_0.call(this, tmp_1 == null ? null : new Comment(tmp_1), identifier, shape, extends_0);
|
|
4707
4660
|
}
|
|
4708
4661
|
return tmp;
|
|
4709
4662
|
};
|
|
4710
|
-
protoOf(
|
|
4711
|
-
var tmp = this.
|
|
4712
|
-
return 'Type(comment=' + toString_1(tmp == null ? null : new Comment(tmp)) + ', identifier=' + this.
|
|
4663
|
+
protoOf(Type_0).toString = function () {
|
|
4664
|
+
var tmp = this.y22_1;
|
|
4665
|
+
return 'Type(comment=' + toString_1(tmp == null ? null : new Comment(tmp)) + ', identifier=' + this.z22_1.toString() + ', shape=' + this.a23_1.toString() + ', extends=' + toString(this.b23_1) + ')';
|
|
4713
4666
|
};
|
|
4714
|
-
protoOf(
|
|
4667
|
+
protoOf(Type_0).hashCode = function () {
|
|
4715
4668
|
var tmp;
|
|
4716
|
-
var tmp_0 = this.
|
|
4669
|
+
var tmp_0 = this.y22_1;
|
|
4717
4670
|
if ((tmp_0 == null ? null : new Comment(tmp_0)) == null) {
|
|
4718
4671
|
tmp = 0;
|
|
4719
4672
|
} else {
|
|
4720
|
-
tmp = Comment__hashCode_impl_tr9dgt(this.
|
|
4673
|
+
tmp = Comment__hashCode_impl_tr9dgt(this.y22_1);
|
|
4721
4674
|
}
|
|
4722
4675
|
var result = tmp;
|
|
4676
|
+
result = imul(result, 31) + this.z22_1.hashCode() | 0;
|
|
4723
4677
|
result = imul(result, 31) + this.a23_1.hashCode() | 0;
|
|
4724
|
-
result = imul(result, 31) + this.b23_1
|
|
4725
|
-
result = imul(result, 31) + hashCode(this.c23_1) | 0;
|
|
4678
|
+
result = imul(result, 31) + hashCode(this.b23_1) | 0;
|
|
4726
4679
|
return result;
|
|
4727
4680
|
};
|
|
4728
|
-
protoOf(
|
|
4681
|
+
protoOf(Type_0).equals = function (other) {
|
|
4729
4682
|
if (this === other)
|
|
4730
4683
|
return true;
|
|
4731
|
-
if (!(other instanceof
|
|
4684
|
+
if (!(other instanceof Type_0))
|
|
4732
4685
|
return false;
|
|
4733
|
-
var tmp0_other_with_cast = other instanceof
|
|
4734
|
-
var tmp = this.
|
|
4686
|
+
var tmp0_other_with_cast = other instanceof Type_0 ? other : THROW_CCE();
|
|
4687
|
+
var tmp = this.y22_1;
|
|
4735
4688
|
var tmp_0 = tmp == null ? null : new Comment(tmp);
|
|
4736
|
-
var tmp_1 = tmp0_other_with_cast.
|
|
4689
|
+
var tmp_1 = tmp0_other_with_cast.y22_1;
|
|
4737
4690
|
if (!equals(tmp_0, tmp_1 == null ? null : new Comment(tmp_1)))
|
|
4738
4691
|
return false;
|
|
4739
|
-
if (!this.
|
|
4692
|
+
if (!this.z22_1.equals(tmp0_other_with_cast.z22_1))
|
|
4740
4693
|
return false;
|
|
4741
|
-
if (!this.
|
|
4694
|
+
if (!this.a23_1.equals(tmp0_other_with_cast.a23_1))
|
|
4742
4695
|
return false;
|
|
4743
|
-
if (!equals(this.
|
|
4696
|
+
if (!equals(this.b23_1, tmp0_other_with_cast.b23_1))
|
|
4744
4697
|
return false;
|
|
4745
4698
|
return true;
|
|
4746
4699
|
};
|
|
@@ -4967,7 +4920,7 @@
|
|
|
4967
4920
|
this.t23_1 = requests;
|
|
4968
4921
|
this.u23_1 = responses;
|
|
4969
4922
|
}
|
|
4970
|
-
protoOf(Endpoint).
|
|
4923
|
+
protoOf(Endpoint).c28 = function () {
|
|
4971
4924
|
return this.n23_1;
|
|
4972
4925
|
};
|
|
4973
4926
|
protoOf(Endpoint).toString = function () {
|
|
@@ -5027,7 +4980,7 @@
|
|
|
5027
4980
|
this.c25_1 = identifier;
|
|
5028
4981
|
this.d25_1 = entries;
|
|
5029
4982
|
}
|
|
5030
|
-
protoOf(Enum_0).
|
|
4983
|
+
protoOf(Enum_0).c28 = function () {
|
|
5031
4984
|
return this.c25_1;
|
|
5032
4985
|
};
|
|
5033
4986
|
protoOf(Enum_0).toString = function () {
|
|
@@ -5092,7 +5045,7 @@
|
|
|
5092
5045
|
this.z24_1 = identifier;
|
|
5093
5046
|
this.a25_1 = validator;
|
|
5094
5047
|
}
|
|
5095
|
-
protoOf(Refined).
|
|
5048
|
+
protoOf(Refined).c28 = function () {
|
|
5096
5049
|
return this.z24_1;
|
|
5097
5050
|
};
|
|
5098
5051
|
protoOf(Refined).toString = function () {
|
|
@@ -5134,7 +5087,7 @@
|
|
|
5134
5087
|
this.t22_1 = identifier;
|
|
5135
5088
|
this.u22_1 = entries;
|
|
5136
5089
|
}
|
|
5137
|
-
protoOf(Union).
|
|
5090
|
+
protoOf(Union).c28 = function () {
|
|
5138
5091
|
return this.t22_1;
|
|
5139
5092
|
};
|
|
5140
5093
|
protoOf(Union).toString = function () {
|
|
@@ -5177,7 +5130,7 @@
|
|
|
5177
5130
|
this.g25_1 = isNullable;
|
|
5178
5131
|
this.h25_1 = reference;
|
|
5179
5132
|
}
|
|
5180
|
-
protoOf(Channel).
|
|
5133
|
+
protoOf(Channel).c28 = function () {
|
|
5181
5134
|
return this.f25_1;
|
|
5182
5135
|
};
|
|
5183
5136
|
protoOf(Channel).toString = function () {
|
|
@@ -5217,6 +5170,26 @@
|
|
|
5217
5170
|
return false;
|
|
5218
5171
|
return true;
|
|
5219
5172
|
};
|
|
5173
|
+
function FieldIdentifier(name) {
|
|
5174
|
+
Identifier.call(this, name);
|
|
5175
|
+
this.u28_1 = name;
|
|
5176
|
+
}
|
|
5177
|
+
protoOf(FieldIdentifier).toString = function () {
|
|
5178
|
+
return 'FieldIdentifier(name=' + this.u28_1 + ')';
|
|
5179
|
+
};
|
|
5180
|
+
protoOf(FieldIdentifier).hashCode = function () {
|
|
5181
|
+
return getStringHashCode(this.u28_1);
|
|
5182
|
+
};
|
|
5183
|
+
protoOf(FieldIdentifier).equals = function (other) {
|
|
5184
|
+
if (this === other)
|
|
5185
|
+
return true;
|
|
5186
|
+
if (!(other instanceof FieldIdentifier))
|
|
5187
|
+
return false;
|
|
5188
|
+
var tmp0_other_with_cast = other instanceof FieldIdentifier ? other : THROW_CCE();
|
|
5189
|
+
if (!(this.u28_1 === tmp0_other_with_cast.u28_1))
|
|
5190
|
+
return false;
|
|
5191
|
+
return true;
|
|
5192
|
+
};
|
|
5220
5193
|
function Field(identifier, reference, isNullable) {
|
|
5221
5194
|
this.i24_1 = identifier;
|
|
5222
5195
|
this.j24_1 = reference;
|
|
@@ -5245,6 +5218,26 @@
|
|
|
5245
5218
|
return false;
|
|
5246
5219
|
return true;
|
|
5247
5220
|
};
|
|
5221
|
+
function DefinitionIdentifier(name) {
|
|
5222
|
+
Identifier.call(this, name);
|
|
5223
|
+
this.w28_1 = name;
|
|
5224
|
+
}
|
|
5225
|
+
protoOf(DefinitionIdentifier).toString = function () {
|
|
5226
|
+
return 'DefinitionIdentifier(name=' + this.w28_1 + ')';
|
|
5227
|
+
};
|
|
5228
|
+
protoOf(DefinitionIdentifier).hashCode = function () {
|
|
5229
|
+
return getStringHashCode(this.w28_1);
|
|
5230
|
+
};
|
|
5231
|
+
protoOf(DefinitionIdentifier).equals = function (other) {
|
|
5232
|
+
if (this === other)
|
|
5233
|
+
return true;
|
|
5234
|
+
if (!(other instanceof DefinitionIdentifier))
|
|
5235
|
+
return false;
|
|
5236
|
+
var tmp0_other_with_cast = other instanceof DefinitionIdentifier ? other : THROW_CCE();
|
|
5237
|
+
if (!(this.w28_1 === tmp0_other_with_cast.w28_1))
|
|
5238
|
+
return false;
|
|
5239
|
+
return true;
|
|
5240
|
+
};
|
|
5248
5241
|
function parse_0(_this__u8e3s4, $this) {
|
|
5249
5242
|
// Inline function 'arrow.core.raise.either' call
|
|
5250
5243
|
// Inline function 'arrow.core.raise.fold' call
|
|
@@ -5333,52 +5326,52 @@
|
|
|
5333
5326
|
try {
|
|
5334
5327
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
5335
5328
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseDefinition.<anonymous>' call
|
|
5336
|
-
$this.
|
|
5329
|
+
$this.u27(_this__u8e3s4.k27_1);
|
|
5337
5330
|
var tmp_0;
|
|
5338
|
-
if (_this__u8e3s4.
|
|
5331
|
+
if (_this__u8e3s4.k27_1.c27_1 instanceof WsComment) {
|
|
5339
5332
|
// Inline function 'kotlin.also' call
|
|
5340
|
-
var this_0 = new Comment(_Comment___init__impl__cg8s2u(_this__u8e3s4.
|
|
5333
|
+
var this_0 = new Comment(_Comment___init__impl__cg8s2u(_this__u8e3s4.k27_1.b27_1));
|
|
5341
5334
|
// Inline function 'kotlin.contracts.contract' call
|
|
5342
5335
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseDefinition.<anonymous>.<anonymous>' call
|
|
5343
|
-
this_0.
|
|
5344
|
-
raise.qk(_this__u8e3s4.
|
|
5345
|
-
tmp_0 = this_0.
|
|
5336
|
+
this_0.d28_1;
|
|
5337
|
+
raise.qk(_this__u8e3s4.n27());
|
|
5338
|
+
tmp_0 = this_0.d28_1;
|
|
5346
5339
|
} else {
|
|
5347
5340
|
tmp_0 = null;
|
|
5348
5341
|
}
|
|
5349
5342
|
var comment = tmp_0;
|
|
5350
|
-
var tmp1_subject = _this__u8e3s4.
|
|
5343
|
+
var tmp1_subject = _this__u8e3s4.k27_1.c27_1;
|
|
5351
5344
|
var tmp_1;
|
|
5352
5345
|
if (isInterface(tmp1_subject, WirespecDefinition)) {
|
|
5353
|
-
var tmp_2 = _this__u8e3s4.
|
|
5346
|
+
var tmp_2 = _this__u8e3s4.k27_1.c27_1;
|
|
5354
5347
|
var tmp2_subject = isInterface(tmp_2, WirespecDefinition) ? tmp_2 : THROW_CCE();
|
|
5355
5348
|
var tmp_3;
|
|
5356
5349
|
if (tmp2_subject instanceof WsTypeDef) {
|
|
5357
5350
|
// Inline function 'kotlin.with' call
|
|
5358
5351
|
// Inline function 'kotlin.contracts.contract' call
|
|
5359
5352
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseDefinition.<anonymous>.<anonymous>' call
|
|
5360
|
-
var tmp$ret$2 = $this.i22_1.
|
|
5353
|
+
var tmp$ret$2 = $this.i22_1.x28(_this__u8e3s4, comment);
|
|
5361
5354
|
tmp_3 = raise.qk(tmp$ret$2);
|
|
5362
5355
|
} else {
|
|
5363
5356
|
if (tmp2_subject instanceof WsEnumTypeDef) {
|
|
5364
5357
|
// Inline function 'kotlin.with' call
|
|
5365
5358
|
// Inline function 'kotlin.contracts.contract' call
|
|
5366
5359
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseDefinition.<anonymous>.<anonymous>' call
|
|
5367
|
-
var tmp$ret$4 = $this.j22_1.
|
|
5360
|
+
var tmp$ret$4 = $this.j22_1.b28(_this__u8e3s4, comment);
|
|
5368
5361
|
tmp_3 = raise.qk(tmp$ret$4);
|
|
5369
5362
|
} else {
|
|
5370
5363
|
if (tmp2_subject instanceof WsEndpointDef) {
|
|
5371
5364
|
// Inline function 'kotlin.with' call
|
|
5372
5365
|
// Inline function 'kotlin.contracts.contract' call
|
|
5373
5366
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseDefinition.<anonymous>.<anonymous>' call
|
|
5374
|
-
var tmp$ret$6 = $this.k22_1.
|
|
5367
|
+
var tmp$ret$6 = $this.k22_1.z27(_this__u8e3s4, comment);
|
|
5375
5368
|
tmp_3 = raise.qk(tmp$ret$6);
|
|
5376
5369
|
} else {
|
|
5377
5370
|
if (tmp2_subject instanceof WsChannelDef) {
|
|
5378
5371
|
// Inline function 'kotlin.with' call
|
|
5379
5372
|
// Inline function 'kotlin.contracts.contract' call
|
|
5380
5373
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseDefinition.<anonymous>.<anonymous>' call
|
|
5381
|
-
var tmp$ret$8 = $this.l22_1.
|
|
5374
|
+
var tmp$ret$8 = $this.l22_1.s27(_this__u8e3s4, comment);
|
|
5382
5375
|
tmp_3 = raise.qk(tmp$ret$8);
|
|
5383
5376
|
} else {
|
|
5384
5377
|
noWhenBranchMatchedException();
|
|
@@ -5390,11 +5383,11 @@
|
|
|
5390
5383
|
} else {
|
|
5391
5384
|
// Inline function 'kotlin.also' call
|
|
5392
5385
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
5393
|
-
var actual = _this__u8e3s4.
|
|
5386
|
+
var actual = _this__u8e3s4.k27_1;
|
|
5394
5387
|
var this_1 = new WrongTokenException(getKClass(WirespecDefinition), actual);
|
|
5395
5388
|
// Inline function 'kotlin.contracts.contract' call
|
|
5396
5389
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseDefinition.<anonymous>.<anonymous>' call
|
|
5397
|
-
raise.qk(_this__u8e3s4.
|
|
5390
|
+
raise.qk(_this__u8e3s4.n27());
|
|
5398
5391
|
raise.pk(this_1);
|
|
5399
5392
|
}
|
|
5400
5393
|
var res = tmp_1;
|
|
@@ -5430,13 +5423,13 @@
|
|
|
5430
5423
|
this.l22_1 = new ChannelParser(logger);
|
|
5431
5424
|
}
|
|
5432
5425
|
protoOf(Parser).m22 = function (tokens) {
|
|
5433
|
-
return parse_0(toProvider(removeWhiteSpace(tokens), this.
|
|
5426
|
+
return parse_0(toProvider(removeWhiteSpace(tokens), this.t27_1), this);
|
|
5434
5427
|
};
|
|
5435
5428
|
function AbstractParser(logger) {
|
|
5436
|
-
this.
|
|
5429
|
+
this.t27_1 = logger;
|
|
5437
5430
|
}
|
|
5438
|
-
protoOf(AbstractParser).
|
|
5439
|
-
return this.
|
|
5431
|
+
protoOf(AbstractParser).u27 = function (_this__u8e3s4) {
|
|
5432
|
+
return this.t27_1.d22('Parsing ' + toString(_this__u8e3s4.c27_1) + ' at line ' + _this__u8e3s4.d27_1.e27_1 + ' position ' + _this__u8e3s4.d27_1.f27_1);
|
|
5440
5433
|
};
|
|
5441
5434
|
function printTokens($this, previousToken) {
|
|
5442
5435
|
var tmp;
|
|
@@ -5446,15 +5439,15 @@
|
|
|
5446
5439
|
// Inline function 'kotlin.run' call
|
|
5447
5440
|
// Inline function 'kotlin.contracts.contract' call
|
|
5448
5441
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TokenProvider.printTokens.<anonymous>' call
|
|
5449
|
-
tmp = "Eating: '" + previousToken.
|
|
5442
|
+
tmp = "Eating: '" + previousToken.b27_1 + "', ";
|
|
5450
5443
|
}
|
|
5451
5444
|
var tmp1_elvis_lhs = tmp;
|
|
5452
5445
|
var prev = tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs;
|
|
5453
5446
|
// Inline function 'kotlin.run' call
|
|
5454
5447
|
// Inline function 'kotlin.contracts.contract' call
|
|
5455
5448
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TokenProvider.printTokens.<anonymous>' call
|
|
5456
|
-
var curr = "Current: '" + $this.
|
|
5457
|
-
var tmp2_safe_receiver = $this.
|
|
5449
|
+
var curr = "Current: '" + $this.k27_1.b27_1 + "'";
|
|
5450
|
+
var tmp2_safe_receiver = $this.l27_1;
|
|
5458
5451
|
var tmp_0;
|
|
5459
5452
|
if (tmp2_safe_receiver == null) {
|
|
5460
5453
|
tmp_0 = null;
|
|
@@ -5462,11 +5455,11 @@
|
|
|
5462
5455
|
// Inline function 'kotlin.run' call
|
|
5463
5456
|
// Inline function 'kotlin.contracts.contract' call
|
|
5464
5457
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TokenProvider.printTokens.<anonymous>' call
|
|
5465
|
-
tmp_0 = ", Next: '" + tmp2_safe_receiver.
|
|
5458
|
+
tmp_0 = ", Next: '" + tmp2_safe_receiver.b27_1 + "'";
|
|
5466
5459
|
}
|
|
5467
5460
|
var tmp3_elvis_lhs = tmp_0;
|
|
5468
5461
|
var next = tmp3_elvis_lhs == null ? '' : tmp3_elvis_lhs;
|
|
5469
|
-
$this.
|
|
5462
|
+
$this.i27_1.y28(prev + curr + next);
|
|
5470
5463
|
}
|
|
5471
5464
|
function printTokens$default($this, previousToken, $super) {
|
|
5472
5465
|
previousToken = previousToken === VOID ? null : previousToken;
|
|
@@ -5479,7 +5472,7 @@
|
|
|
5479
5472
|
try {
|
|
5480
5473
|
// Inline function 'kotlin.Companion.success' call
|
|
5481
5474
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TokenProvider.nextToken.<anonymous>' call
|
|
5482
|
-
var value = $this.
|
|
5475
|
+
var value = $this.j27_1.i();
|
|
5483
5476
|
tmp = _Result___init__impl__xyqfz8(value);
|
|
5484
5477
|
} catch ($p) {
|
|
5485
5478
|
var tmp_0;
|
|
@@ -5503,10 +5496,10 @@
|
|
|
5503
5496
|
return tmp_1;
|
|
5504
5497
|
}
|
|
5505
5498
|
function TokenProvider(logger, list) {
|
|
5506
|
-
this.
|
|
5507
|
-
this.
|
|
5508
|
-
this.
|
|
5509
|
-
this.
|
|
5499
|
+
this.i27_1 = logger;
|
|
5500
|
+
this.j27_1 = list.fk_1.g();
|
|
5501
|
+
this.k27_1 = list.ek_1;
|
|
5502
|
+
this.l27_1 = nextToken(this);
|
|
5510
5503
|
var tmp = this;
|
|
5511
5504
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
5512
5505
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
@@ -5520,10 +5513,10 @@
|
|
|
5520
5513
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TokenProvider.definitionNames.<anonymous>' call
|
|
5521
5514
|
var first = element.qd();
|
|
5522
5515
|
var second = element.rd();
|
|
5523
|
-
var tmp0_subject = first.
|
|
5516
|
+
var tmp0_subject = first.c27_1;
|
|
5524
5517
|
var tmp_0;
|
|
5525
5518
|
if (isInterface(tmp0_subject, WirespecDefinition)) {
|
|
5526
|
-
tmp_0 = second.
|
|
5519
|
+
tmp_0 = second.b27_1;
|
|
5527
5520
|
} else {
|
|
5528
5521
|
tmp_0 = null;
|
|
5529
5522
|
}
|
|
@@ -5536,10 +5529,10 @@
|
|
|
5536
5529
|
destination.e(tmp0_safe_receiver);
|
|
5537
5530
|
}
|
|
5538
5531
|
}
|
|
5539
|
-
tmp.
|
|
5532
|
+
tmp.m27_1 = destination;
|
|
5540
5533
|
printTokens$default(this);
|
|
5541
5534
|
}
|
|
5542
|
-
protoOf(TokenProvider).
|
|
5535
|
+
protoOf(TokenProvider).y27 = function (_this__u8e3s4) {
|
|
5543
5536
|
// Inline function 'arrow.core.raise.either' call
|
|
5544
5537
|
// Inline function 'arrow.core.raise.fold' call
|
|
5545
5538
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -5549,8 +5542,8 @@
|
|
|
5549
5542
|
var tmp;
|
|
5550
5543
|
try {
|
|
5551
5544
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
5552
|
-
if (!this.
|
|
5553
|
-
raise.pk(new DefinitionNotExistsException(_this__u8e3s4.
|
|
5545
|
+
if (!this.m27_1.p1(_this__u8e3s4.b27_1)) {
|
|
5546
|
+
raise.pk(new DefinitionNotExistsException(_this__u8e3s4.b27_1, _this__u8e3s4.d27_1));
|
|
5554
5547
|
}
|
|
5555
5548
|
var res = Unit_instance;
|
|
5556
5549
|
raise.nk();
|
|
@@ -5578,9 +5571,9 @@
|
|
|
5578
5571
|
return tmp;
|
|
5579
5572
|
};
|
|
5580
5573
|
protoOf(TokenProvider).h = function () {
|
|
5581
|
-
return !(this.
|
|
5574
|
+
return !(this.l27_1 == null);
|
|
5582
5575
|
};
|
|
5583
|
-
protoOf(TokenProvider).
|
|
5576
|
+
protoOf(TokenProvider).n27 = function () {
|
|
5584
5577
|
// Inline function 'arrow.core.raise.either' call
|
|
5585
5578
|
// Inline function 'arrow.core.raise.fold' call
|
|
5586
5579
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -5590,17 +5583,17 @@
|
|
|
5590
5583
|
var tmp;
|
|
5591
5584
|
try {
|
|
5592
5585
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
5593
|
-
var previousToken = this.
|
|
5586
|
+
var previousToken = this.k27_1;
|
|
5594
5587
|
var tmp_0 = this;
|
|
5595
|
-
var tmp0_elvis_lhs = this.
|
|
5588
|
+
var tmp0_elvis_lhs = this.l27_1;
|
|
5596
5589
|
var tmp_1;
|
|
5597
5590
|
if (tmp0_elvis_lhs == null) {
|
|
5598
|
-
raise.pk(new NextException(previousToken.
|
|
5591
|
+
raise.pk(new NextException(previousToken.d27_1));
|
|
5599
5592
|
} else {
|
|
5600
5593
|
tmp_1 = tmp0_elvis_lhs;
|
|
5601
5594
|
}
|
|
5602
|
-
tmp_0.
|
|
5603
|
-
this.
|
|
5595
|
+
tmp_0.k27_1 = tmp_1;
|
|
5596
|
+
this.l27_1 = nextToken(this);
|
|
5604
5597
|
printTokens(this, previousToken);
|
|
5605
5598
|
var res = Unit_instance;
|
|
5606
5599
|
raise.nk();
|
|
@@ -5641,9 +5634,9 @@
|
|
|
5641
5634
|
try {
|
|
5642
5635
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
5643
5636
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseRefinedValidator.<anonymous>' call
|
|
5644
|
-
raise.qk(_this__u8e3s4.
|
|
5645
|
-
$this.
|
|
5646
|
-
var tmp0_subject = _this__u8e3s4.
|
|
5637
|
+
raise.qk(_this__u8e3s4.n27());
|
|
5638
|
+
$this.u27(_this__u8e3s4.k27_1);
|
|
5639
|
+
var tmp0_subject = _this__u8e3s4.k27_1.c27_1;
|
|
5647
5640
|
var tmp_0;
|
|
5648
5641
|
var tmp_1;
|
|
5649
5642
|
if (isInterface(tmp0_subject, WirespecDefinition)) {
|
|
@@ -5654,7 +5647,7 @@
|
|
|
5654
5647
|
if (tmp_1) {
|
|
5655
5648
|
tmp_0 = accumulatedString;
|
|
5656
5649
|
} else {
|
|
5657
|
-
tmp_0 = raise.qk(parseRefinedValidator(_this__u8e3s4, $this, accumulatedString + _this__u8e3s4.
|
|
5650
|
+
tmp_0 = raise.qk(parseRefinedValidator(_this__u8e3s4, $this, accumulatedString + _this__u8e3s4.k27_1.b27_1));
|
|
5658
5651
|
}
|
|
5659
5652
|
var res = tmp_0;
|
|
5660
5653
|
raise.nk();
|
|
@@ -5692,12 +5685,12 @@
|
|
|
5692
5685
|
try {
|
|
5693
5686
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
5694
5687
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseTypeDefinition.<anonymous>' call
|
|
5695
|
-
raise.qk(_this__u8e3s4.
|
|
5696
|
-
$this.
|
|
5697
|
-
var tmp0_subject = _this__u8e3s4.
|
|
5688
|
+
raise.qk(_this__u8e3s4.n27());
|
|
5689
|
+
$this.u27(_this__u8e3s4.k27_1);
|
|
5690
|
+
var tmp0_subject = _this__u8e3s4.k27_1.c27_1;
|
|
5698
5691
|
var tmp_0;
|
|
5699
5692
|
if (tmp0_subject instanceof LeftCurly) {
|
|
5700
|
-
tmp_0 = new
|
|
5693
|
+
tmp_0 = new Type_0(comment, typeName, raise.qk($this.x27(_this__u8e3s4)), emptyList());
|
|
5701
5694
|
} else {
|
|
5702
5695
|
if (tmp0_subject instanceof ForwardSlash) {
|
|
5703
5696
|
tmp_0 = new Refined(comment, typeName, new Validator(raise.qk(parseRefinedValidator(_this__u8e3s4, $this, '/'))));
|
|
@@ -5707,11 +5700,11 @@
|
|
|
5707
5700
|
} else {
|
|
5708
5701
|
// Inline function 'kotlin.also' call
|
|
5709
5702
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
5710
|
-
var actual = _this__u8e3s4.
|
|
5703
|
+
var actual = _this__u8e3s4.k27_1;
|
|
5711
5704
|
var this_0 = new WrongTokenException(getKClass(TypeDefinitionStart), actual);
|
|
5712
5705
|
// Inline function 'kotlin.contracts.contract' call
|
|
5713
5706
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseTypeDefinition.<anonymous>.<anonymous>' call
|
|
5714
|
-
raise.qk(_this__u8e3s4.
|
|
5707
|
+
raise.qk(_this__u8e3s4.n27());
|
|
5715
5708
|
raise.pk(this_0);
|
|
5716
5709
|
}
|
|
5717
5710
|
}
|
|
@@ -5752,57 +5745,57 @@
|
|
|
5752
5745
|
try {
|
|
5753
5746
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
5754
5747
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseField.<anonymous>' call
|
|
5755
|
-
raise.qk(_this__u8e3s4.
|
|
5756
|
-
$this.
|
|
5757
|
-
if (_this__u8e3s4.
|
|
5758
|
-
raise.qk(_this__u8e3s4.
|
|
5748
|
+
raise.qk(_this__u8e3s4.n27());
|
|
5749
|
+
$this.u27(_this__u8e3s4.k27_1);
|
|
5750
|
+
if (_this__u8e3s4.k27_1.c27_1 instanceof Colon)
|
|
5751
|
+
raise.qk(_this__u8e3s4.n27());
|
|
5759
5752
|
else {
|
|
5760
5753
|
// Inline function 'kotlin.also' call
|
|
5761
5754
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
5762
|
-
var actual = _this__u8e3s4.
|
|
5755
|
+
var actual = _this__u8e3s4.k27_1;
|
|
5763
5756
|
var this_0 = new WrongTokenException(getKClass(Colon), actual);
|
|
5764
5757
|
// Inline function 'kotlin.contracts.contract' call
|
|
5765
5758
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseField.<anonymous>.<anonymous>' call
|
|
5766
|
-
raise.qk(_this__u8e3s4.
|
|
5759
|
+
raise.qk(_this__u8e3s4.n27());
|
|
5767
5760
|
raise.pk(this_0);
|
|
5768
5761
|
}
|
|
5769
5762
|
var tmp_0;
|
|
5770
|
-
if (_this__u8e3s4.
|
|
5763
|
+
if (_this__u8e3s4.k27_1.c27_1 instanceof LeftCurly) {
|
|
5771
5764
|
// Inline function 'kotlin.also' call
|
|
5772
5765
|
// Inline function 'kotlin.contracts.contract' call
|
|
5773
5766
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseField.<anonymous>.<anonymous>' call
|
|
5774
|
-
raise.qk(_this__u8e3s4.
|
|
5767
|
+
raise.qk(_this__u8e3s4.n27());
|
|
5775
5768
|
tmp_0 = true;
|
|
5776
5769
|
} else {
|
|
5777
5770
|
tmp_0 = false;
|
|
5778
5771
|
}
|
|
5779
5772
|
var isDict = tmp_0;
|
|
5780
|
-
var type = _this__u8e3s4.
|
|
5773
|
+
var type = _this__u8e3s4.k27_1.c27_1;
|
|
5781
5774
|
var tmp_1;
|
|
5782
5775
|
if (isInterface(type, WirespecType)) {
|
|
5783
5776
|
// Inline function 'kotlin.also' call
|
|
5784
|
-
var tmp_2 = raise.qk($this.
|
|
5777
|
+
var tmp_2 = raise.qk($this.r27(_this__u8e3s4, type, _this__u8e3s4.k27_1.b27_1, isDict));
|
|
5785
5778
|
// Inline function 'kotlin.also' call
|
|
5786
|
-
var tmp_3 = _this__u8e3s4.
|
|
5779
|
+
var tmp_3 = _this__u8e3s4.k27_1.c27_1;
|
|
5787
5780
|
var this_1 = tmp_3 instanceof QuestionMark;
|
|
5788
5781
|
// Inline function 'kotlin.contracts.contract' call
|
|
5789
5782
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseField.<anonymous>.<anonymous>' call
|
|
5790
5783
|
if (this_1)
|
|
5791
|
-
raise.qk(_this__u8e3s4.
|
|
5784
|
+
raise.qk(_this__u8e3s4.n27());
|
|
5792
5785
|
var this_2 = new Field(identifier, tmp_2, this_1);
|
|
5793
5786
|
// Inline function 'kotlin.contracts.contract' call
|
|
5794
5787
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseField.<anonymous>.<anonymous>' call
|
|
5795
5788
|
if (isDict) {
|
|
5796
|
-
if (_this__u8e3s4.
|
|
5797
|
-
raise.qk(_this__u8e3s4.
|
|
5789
|
+
if (_this__u8e3s4.k27_1.c27_1 instanceof RightCurly)
|
|
5790
|
+
raise.qk(_this__u8e3s4.n27());
|
|
5798
5791
|
else {
|
|
5799
5792
|
// Inline function 'kotlin.also' call
|
|
5800
5793
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
5801
|
-
var actual_0 = _this__u8e3s4.
|
|
5794
|
+
var actual_0 = _this__u8e3s4.k27_1;
|
|
5802
5795
|
var this_3 = new WrongTokenException(getKClass(RightCurly), actual_0);
|
|
5803
5796
|
// Inline function 'kotlin.contracts.contract' call
|
|
5804
5797
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseField.<anonymous>.<anonymous>.<anonymous>' call
|
|
5805
|
-
raise.qk(_this__u8e3s4.
|
|
5798
|
+
raise.qk(_this__u8e3s4.n27());
|
|
5806
5799
|
raise.pk(this_3);
|
|
5807
5800
|
}
|
|
5808
5801
|
}
|
|
@@ -5810,11 +5803,11 @@
|
|
|
5810
5803
|
} else {
|
|
5811
5804
|
// Inline function 'kotlin.also' call
|
|
5812
5805
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
5813
|
-
var actual_1 = _this__u8e3s4.
|
|
5806
|
+
var actual_1 = _this__u8e3s4.k27_1;
|
|
5814
5807
|
var this_4 = new WrongTokenException(getKClass(CustomType), actual_1);
|
|
5815
5808
|
// Inline function 'kotlin.contracts.contract' call
|
|
5816
5809
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseField.<anonymous>.<anonymous>' call
|
|
5817
|
-
raise.qk(_this__u8e3s4.
|
|
5810
|
+
raise.qk(_this__u8e3s4.n27());
|
|
5818
5811
|
raise.pk(this_4);
|
|
5819
5812
|
}
|
|
5820
5813
|
var res = tmp_1;
|
|
@@ -5853,35 +5846,35 @@
|
|
|
5853
5846
|
try {
|
|
5854
5847
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
5855
5848
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseUnionTypeEntries.<anonymous>' call
|
|
5856
|
-
raise.qk(_this__u8e3s4.
|
|
5857
|
-
$this.
|
|
5849
|
+
raise.qk(_this__u8e3s4.n27());
|
|
5850
|
+
$this.u27(_this__u8e3s4.k27_1);
|
|
5858
5851
|
var tmp_0;
|
|
5859
|
-
if (_this__u8e3s4.
|
|
5852
|
+
if (_this__u8e3s4.k27_1.c27_1 instanceof CustomType) {
|
|
5860
5853
|
// Inline function 'kotlin.apply' call
|
|
5861
5854
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
5862
5855
|
var this_0 = ArrayList_init_$Create$();
|
|
5863
5856
|
// Inline function 'kotlin.contracts.contract' call
|
|
5864
5857
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseUnionTypeEntries.<anonymous>.<anonymous>' call
|
|
5865
|
-
raise.qk(_this__u8e3s4.
|
|
5866
|
-
this_0.e(new Custom(_this__u8e3s4.
|
|
5867
|
-
raise.qk(_this__u8e3s4.
|
|
5868
|
-
while (equals(_this__u8e3s4.
|
|
5869
|
-
raise.qk(_this__u8e3s4.
|
|
5870
|
-
if (_this__u8e3s4.
|
|
5871
|
-
raise.qk(_this__u8e3s4.
|
|
5858
|
+
raise.qk(_this__u8e3s4.y27(_this__u8e3s4.k27_1));
|
|
5859
|
+
this_0.e(new Custom(_this__u8e3s4.k27_1.b27_1, false));
|
|
5860
|
+
raise.qk(_this__u8e3s4.n27());
|
|
5861
|
+
while (equals(_this__u8e3s4.k27_1.c27_1, Pipe_instance)) {
|
|
5862
|
+
raise.qk(_this__u8e3s4.n27());
|
|
5863
|
+
if (_this__u8e3s4.k27_1.c27_1 instanceof CustomType) {
|
|
5864
|
+
raise.qk(_this__u8e3s4.y27(_this__u8e3s4.k27_1));
|
|
5872
5865
|
// Inline function 'kotlin.also' call
|
|
5873
|
-
this_0.e(new Custom(_this__u8e3s4.
|
|
5866
|
+
this_0.e(new Custom(_this__u8e3s4.k27_1.b27_1, false));
|
|
5874
5867
|
// Inline function 'kotlin.contracts.contract' call
|
|
5875
5868
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseUnionTypeEntries.<anonymous>.<anonymous>.<anonymous>' call
|
|
5876
|
-
raise.qk(_this__u8e3s4.
|
|
5869
|
+
raise.qk(_this__u8e3s4.n27());
|
|
5877
5870
|
} else {
|
|
5878
5871
|
// Inline function 'kotlin.also' call
|
|
5879
5872
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
5880
|
-
var actual = _this__u8e3s4.
|
|
5873
|
+
var actual = _this__u8e3s4.k27_1;
|
|
5881
5874
|
var this_1 = new WrongTokenException(getKClass(CustomType), actual);
|
|
5882
5875
|
// Inline function 'kotlin.contracts.contract' call
|
|
5883
5876
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseUnionTypeEntries.<anonymous>.<anonymous>.<anonymous>' call
|
|
5884
|
-
raise.qk(_this__u8e3s4.
|
|
5877
|
+
raise.qk(_this__u8e3s4.n27());
|
|
5885
5878
|
raise.pk(this_1);
|
|
5886
5879
|
}
|
|
5887
5880
|
}
|
|
@@ -5889,11 +5882,11 @@
|
|
|
5889
5882
|
} else {
|
|
5890
5883
|
// Inline function 'kotlin.also' call
|
|
5891
5884
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
5892
|
-
var actual_0 = _this__u8e3s4.
|
|
5885
|
+
var actual_0 = _this__u8e3s4.k27_1;
|
|
5893
5886
|
var this_2 = new WrongTokenException(getKClass(CustomType), actual_0);
|
|
5894
5887
|
// Inline function 'kotlin.contracts.contract' call
|
|
5895
5888
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseUnionTypeEntries.<anonymous>.<anonymous>' call
|
|
5896
|
-
raise.qk(_this__u8e3s4.
|
|
5889
|
+
raise.qk(_this__u8e3s4.n27());
|
|
5897
5890
|
raise.pk(this_2);
|
|
5898
5891
|
}
|
|
5899
5892
|
var res = toSet(tmp_0);
|
|
@@ -5924,7 +5917,7 @@
|
|
|
5924
5917
|
function TypeParser(logger) {
|
|
5925
5918
|
AbstractParser.call(this, logger);
|
|
5926
5919
|
}
|
|
5927
|
-
protoOf(TypeParser).
|
|
5920
|
+
protoOf(TypeParser).x28 = function (_this__u8e3s4, comment) {
|
|
5928
5921
|
// Inline function 'arrow.core.raise.either' call
|
|
5929
5922
|
// Inline function 'arrow.core.raise.fold' call
|
|
5930
5923
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -5935,19 +5928,19 @@
|
|
|
5935
5928
|
try {
|
|
5936
5929
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
5937
5930
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseType.<anonymous>' call
|
|
5938
|
-
raise.qk(_this__u8e3s4.
|
|
5939
|
-
this.
|
|
5931
|
+
raise.qk(_this__u8e3s4.n27());
|
|
5932
|
+
this.u27(_this__u8e3s4.k27_1);
|
|
5940
5933
|
var tmp_0;
|
|
5941
|
-
if (_this__u8e3s4.
|
|
5942
|
-
tmp_0 = raise.qk(parseTypeDefinition(_this__u8e3s4, this, comment,
|
|
5934
|
+
if (_this__u8e3s4.k27_1.c27_1 instanceof CustomType) {
|
|
5935
|
+
tmp_0 = raise.qk(parseTypeDefinition(_this__u8e3s4, this, comment, new DefinitionIdentifier(_this__u8e3s4.k27_1.b27_1)));
|
|
5943
5936
|
} else {
|
|
5944
5937
|
// Inline function 'kotlin.also' call
|
|
5945
5938
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
5946
|
-
var actual = _this__u8e3s4.
|
|
5939
|
+
var actual = _this__u8e3s4.k27_1;
|
|
5947
5940
|
var this_0 = new WrongTokenException(getKClass(CustomType), actual);
|
|
5948
5941
|
// Inline function 'kotlin.contracts.contract' call
|
|
5949
5942
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseType.<anonymous>.<anonymous>' call
|
|
5950
|
-
raise.qk(_this__u8e3s4.
|
|
5943
|
+
raise.qk(_this__u8e3s4.n27());
|
|
5951
5944
|
raise.pk(this_0);
|
|
5952
5945
|
}
|
|
5953
5946
|
var res = tmp_0;
|
|
@@ -5975,7 +5968,7 @@
|
|
|
5975
5968
|
}
|
|
5976
5969
|
return tmp;
|
|
5977
5970
|
};
|
|
5978
|
-
protoOf(TypeParser).
|
|
5971
|
+
protoOf(TypeParser).x27 = function (_this__u8e3s4) {
|
|
5979
5972
|
// Inline function 'arrow.core.raise.either' call
|
|
5980
5973
|
// Inline function 'arrow.core.raise.fold' call
|
|
5981
5974
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -5986,30 +5979,30 @@
|
|
|
5986
5979
|
try {
|
|
5987
5980
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
5988
5981
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseTypeShape.<anonymous>' call
|
|
5989
|
-
raise.qk(_this__u8e3s4.
|
|
5990
|
-
this.
|
|
5982
|
+
raise.qk(_this__u8e3s4.n27());
|
|
5983
|
+
this.u27(_this__u8e3s4.k27_1);
|
|
5991
5984
|
// Inline function 'kotlin.let' call
|
|
5992
5985
|
// Inline function 'kotlin.also' call
|
|
5993
5986
|
var tmp_0;
|
|
5994
|
-
if (_this__u8e3s4.
|
|
5987
|
+
if (_this__u8e3s4.k27_1.c27_1 instanceof CustomValue) {
|
|
5995
5988
|
// Inline function 'kotlin.apply' call
|
|
5996
5989
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
5997
5990
|
var this_0 = ArrayList_init_$Create$();
|
|
5998
5991
|
// Inline function 'kotlin.contracts.contract' call
|
|
5999
5992
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseTypeShape.<anonymous>.<anonymous>' call
|
|
6000
|
-
this_0.e(raise.qk(parseField(_this__u8e3s4, this,
|
|
6001
|
-
while (equals(_this__u8e3s4.
|
|
6002
|
-
raise.qk(_this__u8e3s4.
|
|
6003
|
-
if (_this__u8e3s4.
|
|
6004
|
-
this_0.e(raise.qk(parseField(_this__u8e3s4, this,
|
|
5993
|
+
this_0.e(raise.qk(parseField(_this__u8e3s4, this, new FieldIdentifier(_this__u8e3s4.k27_1.b27_1))));
|
|
5994
|
+
while (equals(_this__u8e3s4.k27_1.c27_1, Comma_instance)) {
|
|
5995
|
+
raise.qk(_this__u8e3s4.n27());
|
|
5996
|
+
if (_this__u8e3s4.k27_1.c27_1 instanceof CustomValue)
|
|
5997
|
+
this_0.e(raise.qk(parseField(_this__u8e3s4, this, new FieldIdentifier(_this__u8e3s4.k27_1.b27_1))));
|
|
6005
5998
|
else {
|
|
6006
5999
|
// Inline function 'kotlin.also' call
|
|
6007
6000
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
6008
|
-
var actual = _this__u8e3s4.
|
|
6001
|
+
var actual = _this__u8e3s4.k27_1;
|
|
6009
6002
|
var this_1 = new WrongTokenException(getKClass(CustomValue), actual);
|
|
6010
6003
|
// Inline function 'kotlin.contracts.contract' call
|
|
6011
6004
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseTypeShape.<anonymous>.<anonymous>.<anonymous>' call
|
|
6012
|
-
raise.qk(_this__u8e3s4.
|
|
6005
|
+
raise.qk(_this__u8e3s4.n27());
|
|
6013
6006
|
raise.pk(this_1);
|
|
6014
6007
|
}
|
|
6015
6008
|
}
|
|
@@ -6017,26 +6010,26 @@
|
|
|
6017
6010
|
} else {
|
|
6018
6011
|
// Inline function 'kotlin.also' call
|
|
6019
6012
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
6020
|
-
var actual_0 = _this__u8e3s4.
|
|
6013
|
+
var actual_0 = _this__u8e3s4.k27_1;
|
|
6021
6014
|
var this_2 = new WrongTokenException(getKClass(CustomValue), actual_0);
|
|
6022
6015
|
// Inline function 'kotlin.contracts.contract' call
|
|
6023
6016
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseTypeShape.<anonymous>.<anonymous>' call
|
|
6024
|
-
raise.qk(_this__u8e3s4.
|
|
6017
|
+
raise.qk(_this__u8e3s4.n27());
|
|
6025
6018
|
raise.pk(this_2);
|
|
6026
6019
|
}
|
|
6027
6020
|
var this_3 = tmp_0;
|
|
6028
6021
|
// Inline function 'kotlin.contracts.contract' call
|
|
6029
6022
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseTypeShape.<anonymous>.<anonymous>' call
|
|
6030
|
-
if (_this__u8e3s4.
|
|
6031
|
-
raise.qk(_this__u8e3s4.
|
|
6023
|
+
if (_this__u8e3s4.k27_1.c27_1 instanceof RightCurly)
|
|
6024
|
+
raise.qk(_this__u8e3s4.n27());
|
|
6032
6025
|
else {
|
|
6033
6026
|
// Inline function 'kotlin.also' call
|
|
6034
6027
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
6035
|
-
var actual_1 = _this__u8e3s4.
|
|
6028
|
+
var actual_1 = _this__u8e3s4.k27_1;
|
|
6036
6029
|
var this_4 = new WrongTokenException(getKClass(RightCurly), actual_1);
|
|
6037
6030
|
// Inline function 'kotlin.contracts.contract' call
|
|
6038
6031
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseTypeShape.<anonymous>.<anonymous>.<anonymous>' call
|
|
6039
|
-
raise.qk(_this__u8e3s4.
|
|
6032
|
+
raise.qk(_this__u8e3s4.n27());
|
|
6040
6033
|
raise.pk(this_4);
|
|
6041
6034
|
}
|
|
6042
6035
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -6065,7 +6058,7 @@
|
|
|
6065
6058
|
}
|
|
6066
6059
|
return tmp;
|
|
6067
6060
|
};
|
|
6068
|
-
protoOf(TypeParser).
|
|
6061
|
+
protoOf(TypeParser).r27 = function (_this__u8e3s4, wsType, value, isDict) {
|
|
6069
6062
|
// Inline function 'arrow.core.raise.either' call
|
|
6070
6063
|
// Inline function 'arrow.core.raise.fold' call
|
|
6071
6064
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -6076,16 +6069,16 @@
|
|
|
6076
6069
|
try {
|
|
6077
6070
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
6078
6071
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseFieldValue.<anonymous>' call
|
|
6079
|
-
var previousToken = _this__u8e3s4.
|
|
6080
|
-
raise.qk(_this__u8e3s4.
|
|
6081
|
-
this.
|
|
6072
|
+
var previousToken = _this__u8e3s4.k27_1;
|
|
6073
|
+
raise.qk(_this__u8e3s4.n27());
|
|
6074
|
+
this.u27(_this__u8e3s4.k27_1);
|
|
6082
6075
|
// Inline function 'kotlin.also' call
|
|
6083
|
-
var tmp_0 = _this__u8e3s4.
|
|
6076
|
+
var tmp_0 = _this__u8e3s4.k27_1.c27_1;
|
|
6084
6077
|
var this_0 = tmp_0 instanceof Brackets;
|
|
6085
6078
|
// Inline function 'kotlin.contracts.contract' call
|
|
6086
6079
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseFieldValue.<anonymous>.<anonymous>' call
|
|
6087
6080
|
if (this_0)
|
|
6088
|
-
raise.qk(_this__u8e3s4.
|
|
6081
|
+
raise.qk(_this__u8e3s4.n27());
|
|
6089
6082
|
var isIterable = this_0;
|
|
6090
6083
|
var tmp_1;
|
|
6091
6084
|
if (wsType instanceof WsString) {
|
|
@@ -6104,7 +6097,7 @@
|
|
|
6104
6097
|
tmp_1 = new Unit(isIterable, isDict);
|
|
6105
6098
|
} else {
|
|
6106
6099
|
if (wsType instanceof CustomType) {
|
|
6107
|
-
raise.qk(_this__u8e3s4.
|
|
6100
|
+
raise.qk(_this__u8e3s4.y27(previousToken));
|
|
6108
6101
|
tmp_1 = new Custom(value, isIterable, isDict);
|
|
6109
6102
|
} else {
|
|
6110
6103
|
noWhenBranchMatchedException();
|
|
@@ -6142,15 +6135,15 @@
|
|
|
6142
6135
|
function IdxAndLength(idx, length) {
|
|
6143
6136
|
idx = idx === VOID ? 0 : idx;
|
|
6144
6137
|
length = length === VOID ? 0 : length;
|
|
6145
|
-
this.
|
|
6146
|
-
this.
|
|
6138
|
+
this.z28_1 = idx;
|
|
6139
|
+
this.a29_1 = length;
|
|
6147
6140
|
}
|
|
6148
6141
|
protoOf(IdxAndLength).toString = function () {
|
|
6149
|
-
return 'IdxAndLength(idx=' + this.
|
|
6142
|
+
return 'IdxAndLength(idx=' + this.z28_1 + ', length=' + this.a29_1 + ')';
|
|
6150
6143
|
};
|
|
6151
6144
|
protoOf(IdxAndLength).hashCode = function () {
|
|
6152
|
-
var result = this.
|
|
6153
|
-
result = imul(result, 31) + this.
|
|
6145
|
+
var result = this.z28_1;
|
|
6146
|
+
result = imul(result, 31) + this.a29_1 | 0;
|
|
6154
6147
|
return result;
|
|
6155
6148
|
};
|
|
6156
6149
|
protoOf(IdxAndLength).equals = function (other) {
|
|
@@ -6159,9 +6152,9 @@
|
|
|
6159
6152
|
if (!(other instanceof IdxAndLength))
|
|
6160
6153
|
return false;
|
|
6161
6154
|
var tmp0_other_with_cast = other instanceof IdxAndLength ? other : THROW_CCE();
|
|
6162
|
-
if (!(this.
|
|
6155
|
+
if (!(this.z28_1 === tmp0_other_with_cast.z28_1))
|
|
6163
6156
|
return false;
|
|
6164
|
-
if (!(this.
|
|
6157
|
+
if (!(this.a29_1 === tmp0_other_with_cast.a29_1))
|
|
6165
6158
|
return false;
|
|
6166
6159
|
return true;
|
|
6167
6160
|
};
|
|
@@ -6169,26 +6162,26 @@
|
|
|
6169
6162
|
line = line === VOID ? 1 : line;
|
|
6170
6163
|
position = position === VOID ? 1 : position;
|
|
6171
6164
|
idxAndLength = idxAndLength === VOID ? new IdxAndLength() : idxAndLength;
|
|
6172
|
-
this.
|
|
6173
|
-
this.
|
|
6174
|
-
this.
|
|
6165
|
+
this.e27_1 = line;
|
|
6166
|
+
this.f27_1 = position;
|
|
6167
|
+
this.g27_1 = idxAndLength;
|
|
6175
6168
|
}
|
|
6176
|
-
protoOf(Coordinates).
|
|
6169
|
+
protoOf(Coordinates).b29 = function (line, position, idxAndLength) {
|
|
6177
6170
|
return new Coordinates(line, position, idxAndLength);
|
|
6178
6171
|
};
|
|
6179
|
-
protoOf(Coordinates).
|
|
6180
|
-
line = line === VOID ? this.
|
|
6181
|
-
position = position === VOID ? this.
|
|
6182
|
-
idxAndLength = idxAndLength === VOID ? this.
|
|
6183
|
-
return $super === VOID ? this.
|
|
6172
|
+
protoOf(Coordinates).c29 = function (line, position, idxAndLength, $super) {
|
|
6173
|
+
line = line === VOID ? this.e27_1 : line;
|
|
6174
|
+
position = position === VOID ? this.f27_1 : position;
|
|
6175
|
+
idxAndLength = idxAndLength === VOID ? this.g27_1 : idxAndLength;
|
|
6176
|
+
return $super === VOID ? this.b29(line, position, idxAndLength) : $super.b29.call(this, line, position, idxAndLength);
|
|
6184
6177
|
};
|
|
6185
6178
|
protoOf(Coordinates).toString = function () {
|
|
6186
|
-
return 'Coordinates(line=' + this.
|
|
6179
|
+
return 'Coordinates(line=' + this.e27_1 + ', position=' + this.f27_1 + ', idxAndLength=' + this.g27_1.toString() + ')';
|
|
6187
6180
|
};
|
|
6188
6181
|
protoOf(Coordinates).hashCode = function () {
|
|
6189
|
-
var result = this.
|
|
6190
|
-
result = imul(result, 31) + this.
|
|
6191
|
-
result = imul(result, 31) + this.
|
|
6182
|
+
var result = this.e27_1;
|
|
6183
|
+
result = imul(result, 31) + this.f27_1 | 0;
|
|
6184
|
+
result = imul(result, 31) + this.g27_1.hashCode() | 0;
|
|
6192
6185
|
return result;
|
|
6193
6186
|
};
|
|
6194
6187
|
protoOf(Coordinates).equals = function (other) {
|
|
@@ -6197,29 +6190,29 @@
|
|
|
6197
6190
|
if (!(other instanceof Coordinates))
|
|
6198
6191
|
return false;
|
|
6199
6192
|
var tmp0_other_with_cast = other instanceof Coordinates ? other : THROW_CCE();
|
|
6200
|
-
if (!(this.
|
|
6193
|
+
if (!(this.e27_1 === tmp0_other_with_cast.e27_1))
|
|
6201
6194
|
return false;
|
|
6202
|
-
if (!(this.
|
|
6195
|
+
if (!(this.f27_1 === tmp0_other_with_cast.f27_1))
|
|
6203
6196
|
return false;
|
|
6204
|
-
if (!this.
|
|
6197
|
+
if (!this.g27_1.equals(tmp0_other_with_cast.g27_1))
|
|
6205
6198
|
return false;
|
|
6206
6199
|
return true;
|
|
6207
6200
|
};
|
|
6208
6201
|
function Token(value, type, coordinates) {
|
|
6209
|
-
this.
|
|
6210
|
-
this.
|
|
6211
|
-
this.
|
|
6202
|
+
this.b27_1 = value;
|
|
6203
|
+
this.c27_1 = type;
|
|
6204
|
+
this.d27_1 = coordinates;
|
|
6212
6205
|
}
|
|
6213
6206
|
protoOf(Token).b1 = function () {
|
|
6214
|
-
return this.
|
|
6207
|
+
return this.b27_1;
|
|
6215
6208
|
};
|
|
6216
6209
|
protoOf(Token).toString = function () {
|
|
6217
|
-
return 'Token(value=' + this.
|
|
6210
|
+
return 'Token(value=' + this.b27_1 + ', type=' + toString(this.c27_1) + ', coordinates=' + this.d27_1.toString() + ')';
|
|
6218
6211
|
};
|
|
6219
6212
|
protoOf(Token).hashCode = function () {
|
|
6220
|
-
var result = getStringHashCode(this.
|
|
6221
|
-
result = imul(result, 31) + hashCode(this.
|
|
6222
|
-
result = imul(result, 31) + this.
|
|
6213
|
+
var result = getStringHashCode(this.b27_1);
|
|
6214
|
+
result = imul(result, 31) + hashCode(this.c27_1) | 0;
|
|
6215
|
+
result = imul(result, 31) + this.d27_1.hashCode() | 0;
|
|
6223
6216
|
return result;
|
|
6224
6217
|
};
|
|
6225
6218
|
protoOf(Token).equals = function (other) {
|
|
@@ -6228,19 +6221,19 @@
|
|
|
6228
6221
|
if (!(other instanceof Token))
|
|
6229
6222
|
return false;
|
|
6230
6223
|
var tmp0_other_with_cast = other instanceof Token ? other : THROW_CCE();
|
|
6231
|
-
if (!(this.
|
|
6224
|
+
if (!(this.b27_1 === tmp0_other_with_cast.b27_1))
|
|
6232
6225
|
return false;
|
|
6233
|
-
if (!equals(this.
|
|
6226
|
+
if (!equals(this.c27_1, tmp0_other_with_cast.c27_1))
|
|
6234
6227
|
return false;
|
|
6235
|
-
if (!this.
|
|
6228
|
+
if (!this.d27_1.equals(tmp0_other_with_cast.d27_1))
|
|
6236
6229
|
return false;
|
|
6237
6230
|
return true;
|
|
6238
6231
|
};
|
|
6239
6232
|
function plus(_this__u8e3s4, length) {
|
|
6240
|
-
return new IdxAndLength(_this__u8e3s4.
|
|
6233
|
+
return new IdxAndLength(_this__u8e3s4.z28_1 + length | 0, length);
|
|
6241
6234
|
}
|
|
6242
6235
|
function plus_0(_this__u8e3s4, length) {
|
|
6243
|
-
return _this__u8e3s4.
|
|
6236
|
+
return _this__u8e3s4.c29(VOID, _this__u8e3s4.f27_1 + length | 0, plus(_this__u8e3s4.g27_1, length));
|
|
6244
6237
|
}
|
|
6245
6238
|
function tokenize(_this__u8e3s4, source) {
|
|
6246
6239
|
var tmp1_coordinates = new Coordinates();
|
|
@@ -6252,12 +6245,12 @@
|
|
|
6252
6245
|
var incompleteTokens_0 = incompleteTokens;
|
|
6253
6246
|
$l$1: do {
|
|
6254
6247
|
$l$0: do {
|
|
6255
|
-
var _destruct__k2r9zo = extractToken($this, source_0, last(incompleteTokens_0).
|
|
6248
|
+
var _destruct__k2r9zo = extractToken($this, source_0, last(incompleteTokens_0).d27_1);
|
|
6256
6249
|
var token = _destruct__k2r9zo.qd();
|
|
6257
6250
|
var remaining = _destruct__k2r9zo.rd();
|
|
6258
6251
|
var tokens = incompleteTokens_0.jk(token);
|
|
6259
6252
|
var tmp;
|
|
6260
|
-
var tmp_0 = token.
|
|
6253
|
+
var tmp_0 = token.c27_1;
|
|
6261
6254
|
if (tmp_0 instanceof EndOfProgram) {
|
|
6262
6255
|
tmp = tokens;
|
|
6263
6256
|
} else {
|
|
@@ -6299,7 +6292,7 @@
|
|
|
6299
6292
|
// Inline function 'kotlin.let' call
|
|
6300
6293
|
// Inline function 'kotlin.contracts.contract' call
|
|
6301
6294
|
// Inline function 'community.flock.wirespec.compiler.core.tokenize.extractToken.<anonymous>' call
|
|
6302
|
-
tmp = to(tmp0_safe_receiver_0, removePrefix(source, tmp0_safe_receiver_0.
|
|
6295
|
+
tmp = to(tmp0_safe_receiver_0, removePrefix(source, tmp0_safe_receiver_0.b27_1));
|
|
6303
6296
|
}
|
|
6304
6297
|
var tmp1_elvis_lhs = tmp;
|
|
6305
6298
|
return tmp1_elvis_lhs == null ? new Pair(endToken(previousTokenCoordinates), '') : tmp1_elvis_lhs;
|
|
@@ -6315,7 +6308,7 @@
|
|
|
6315
6308
|
function nextCoordinates(_this__u8e3s4, type, value) {
|
|
6316
6309
|
var tmp;
|
|
6317
6310
|
if (type instanceof NewLine) {
|
|
6318
|
-
tmp = new Coordinates(_this__u8e3s4.
|
|
6311
|
+
tmp = new Coordinates(_this__u8e3s4.e27_1 + 1 | 0, VOID, plus(_this__u8e3s4.g27_1, value.length));
|
|
6319
6312
|
} else {
|
|
6320
6313
|
tmp = plus_0(_this__u8e3s4, value.length);
|
|
6321
6314
|
}
|
|
@@ -6329,7 +6322,7 @@
|
|
|
6329
6322
|
while (tmp0_iterator.h()) {
|
|
6330
6323
|
var element = tmp0_iterator.i();
|
|
6331
6324
|
// Inline function 'community.flock.wirespec.compiler.core.tokenize.removeWhiteSpace.<anonymous>' call
|
|
6332
|
-
var tmp = element.
|
|
6325
|
+
var tmp = element.c27_1;
|
|
6333
6326
|
if (!isInterface(tmp, WhiteSpace)) {
|
|
6334
6327
|
destination.e(element);
|
|
6335
6328
|
}
|
|
@@ -6949,7 +6942,7 @@
|
|
|
6949
6942
|
return StartOfProgram_instance;
|
|
6950
6943
|
}
|
|
6951
6944
|
function EndOfProgram() {
|
|
6952
|
-
this.
|
|
6945
|
+
this.d29_1 = 'EOP';
|
|
6953
6946
|
}
|
|
6954
6947
|
protoOf(EndOfProgram).toString = function () {
|
|
6955
6948
|
return 'EndOfProgram';
|
|
@@ -6998,7 +6991,7 @@
|
|
|
6998
6991
|
if (item instanceof Refined) {
|
|
6999
6992
|
tmp = item;
|
|
7000
6993
|
} else {
|
|
7001
|
-
if (item instanceof
|
|
6994
|
+
if (item instanceof Type_0) {
|
|
7002
6995
|
// Inline function 'kotlin.collections.map' call
|
|
7003
6996
|
// Inline function 'kotlin.collections.filter' call
|
|
7004
6997
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
@@ -7035,7 +7028,7 @@
|
|
|
7035
7028
|
var tmp$ret$2 = tmp_0;
|
|
7036
7029
|
destination_2.e(tmp$ret$2);
|
|
7037
7030
|
}
|
|
7038
|
-
if (destination_2.p1(item.
|
|
7031
|
+
if (destination_2.p1(item.z22_1.b1())) {
|
|
7039
7032
|
destination_1.e(element_0);
|
|
7040
7033
|
}
|
|
7041
7034
|
}
|
|
@@ -7045,10 +7038,10 @@
|
|
|
7045
7038
|
while (tmp0_iterator_3.h()) {
|
|
7046
7039
|
var item_1 = tmp0_iterator_3.i();
|
|
7047
7040
|
// Inline function 'community.flock.wirespec.compiler.core.validate.validate.<anonymous>.<anonymous>' call
|
|
7048
|
-
var tmp$ret$8 = new Custom(item_1.t22_1.
|
|
7041
|
+
var tmp$ret$8 = new Custom(item_1.t22_1.b1(), false);
|
|
7049
7042
|
destination_3.e(tmp$ret$8);
|
|
7050
7043
|
}
|
|
7051
|
-
tmp = item.
|
|
7044
|
+
tmp = item.s28(VOID, VOID, VOID, destination_3);
|
|
7052
7045
|
} else {
|
|
7053
7046
|
if (item instanceof Union) {
|
|
7054
7047
|
tmp = item;
|
|
@@ -7074,14 +7067,14 @@
|
|
|
7074
7067
|
var Level_INFO_instance;
|
|
7075
7068
|
var Level_WARN_instance;
|
|
7076
7069
|
var Level_ERROR_instance;
|
|
7077
|
-
function
|
|
7070
|
+
function Companion_5() {
|
|
7078
7071
|
}
|
|
7079
|
-
protoOf(
|
|
7072
|
+
protoOf(Companion_5).toString = function () {
|
|
7080
7073
|
return joinToString(get_entries_0(), ', ');
|
|
7081
7074
|
};
|
|
7082
|
-
var
|
|
7083
|
-
function
|
|
7084
|
-
return
|
|
7075
|
+
var Companion_instance_6;
|
|
7076
|
+
function Companion_getInstance_5() {
|
|
7077
|
+
return Companion_instance_6;
|
|
7085
7078
|
}
|
|
7086
7079
|
function values_0() {
|
|
7087
7080
|
return [Level_DEBUG_getInstance(), Level_INFO_getInstance(), Level_WARN_getInstance(), Level_ERROR_getInstance()];
|
|
@@ -7201,17 +7194,17 @@
|
|
|
7201
7194
|
}
|
|
7202
7195
|
tmp_5.c22_1 = tmp_6;
|
|
7203
7196
|
}
|
|
7204
|
-
protoOf(Logger).
|
|
7197
|
+
protoOf(Logger).e29 = function () {
|
|
7205
7198
|
return this.z21_1;
|
|
7206
7199
|
};
|
|
7207
|
-
protoOf(Logger).
|
|
7200
|
+
protoOf(Logger).f29 = function () {
|
|
7208
7201
|
return this.a22_1;
|
|
7209
7202
|
};
|
|
7210
|
-
protoOf(Logger).
|
|
7211
|
-
return logIf(string, this, this.
|
|
7203
|
+
protoOf(Logger).y28 = function (string) {
|
|
7204
|
+
return logIf(string, this, this.e29());
|
|
7212
7205
|
};
|
|
7213
7206
|
protoOf(Logger).d22 = function (string) {
|
|
7214
|
-
return logIf(string, this, this.
|
|
7207
|
+
return logIf(string, this, this.f29());
|
|
7215
7208
|
};
|
|
7216
7209
|
function noLogger$1() {
|
|
7217
7210
|
Logger.call(this, null);
|
|
@@ -7223,13 +7216,9 @@
|
|
|
7223
7216
|
noLogger = new noLogger$1();
|
|
7224
7217
|
}
|
|
7225
7218
|
}
|
|
7226
|
-
//region block: post-declaration
|
|
7227
|
-
protoOf(Emitter).l24 = emit;
|
|
7228
|
-
//endregion
|
|
7229
7219
|
//region block: init
|
|
7230
7220
|
Spacer_instance = new Spacer();
|
|
7231
7221
|
Companion_instance_5 = new Companion_4();
|
|
7232
|
-
Companion_instance_6 = new Companion_5();
|
|
7233
7222
|
WsTypeDef_instance = new WsTypeDef();
|
|
7234
7223
|
WsEnumTypeDef_instance = new WsEnumTypeDef();
|
|
7235
7224
|
WsEndpointDef_instance = new WsEndpointDef();
|
|
@@ -7261,7 +7250,7 @@
|
|
|
7261
7250
|
Character_instance = new Character();
|
|
7262
7251
|
StartOfProgram_instance = new StartOfProgram();
|
|
7263
7252
|
EndOfProgram_instance = new EndOfProgram();
|
|
7264
|
-
|
|
7253
|
+
Companion_instance_6 = new Companion_5();
|
|
7265
7254
|
//endregion
|
|
7266
7255
|
//region block: exports
|
|
7267
7256
|
_.$_$ = _.$_$ || {};
|
|
@@ -7273,55 +7262,56 @@
|
|
|
7273
7262
|
_.$_$.f = WirespecEmitter;
|
|
7274
7263
|
_.$_$.g = Channel;
|
|
7275
7264
|
_.$_$.h = Comment;
|
|
7276
|
-
_.$_$.i =
|
|
7277
|
-
_.$_$.j =
|
|
7278
|
-
_.$_$.k =
|
|
7279
|
-
_.$_$.l =
|
|
7280
|
-
_.$_$.m =
|
|
7281
|
-
_.$_$.n =
|
|
7282
|
-
_.$_$.o =
|
|
7283
|
-
_.$_$.p =
|
|
7284
|
-
_.$_$.q =
|
|
7285
|
-
_.$_$.r =
|
|
7286
|
-
_.$_$.s =
|
|
7287
|
-
_.$_$.t =
|
|
7288
|
-
_.$_$.u =
|
|
7289
|
-
_.$_$.v =
|
|
7290
|
-
_.$_$.w =
|
|
7291
|
-
_.$_$.x =
|
|
7292
|
-
_.$_$.y =
|
|
7293
|
-
_.$_$.z =
|
|
7294
|
-
_.$_$.a1 =
|
|
7295
|
-
_.$_$.b1 =
|
|
7296
|
-
_.$_$.c1 =
|
|
7297
|
-
_.$_$.d1 =
|
|
7298
|
-
_.$_$.e1 =
|
|
7299
|
-
_.$_$.f1 =
|
|
7300
|
-
_.$_$.g1 =
|
|
7301
|
-
_.$_$.h1 =
|
|
7302
|
-
_.$_$.i1 =
|
|
7303
|
-
_.$_$.j1 =
|
|
7304
|
-
_.$_$.k1 =
|
|
7305
|
-
_.$_$.l1 =
|
|
7306
|
-
_.$_$.m1 =
|
|
7307
|
-
_.$_$.n1 =
|
|
7308
|
-
_.$_$.o1 =
|
|
7309
|
-
_.$_$.p1 =
|
|
7310
|
-
_.$_$.q1 =
|
|
7311
|
-
_.$_$.r1 =
|
|
7312
|
-
_.$_$.s1 =
|
|
7313
|
-
_.$_$.t1 =
|
|
7314
|
-
_.$_$.u1 =
|
|
7315
|
-
_.$_$.v1 =
|
|
7316
|
-
_.$_$.w1 =
|
|
7317
|
-
_.$_$.x1 =
|
|
7318
|
-
_.$_$.y1 =
|
|
7319
|
-
_.$_$.z1 =
|
|
7320
|
-
_.$_$.a2 =
|
|
7321
|
-
_.$_$.b2 =
|
|
7322
|
-
_.$_$.c2 =
|
|
7323
|
-
_.$_$.d2 =
|
|
7324
|
-
_.$_$.e2 =
|
|
7265
|
+
_.$_$.i = DefinitionIdentifier;
|
|
7266
|
+
_.$_$.j = Definition;
|
|
7267
|
+
_.$_$.k = Content;
|
|
7268
|
+
_.$_$.l = get_entries;
|
|
7269
|
+
_.$_$.m = Request;
|
|
7270
|
+
_.$_$.n = Response;
|
|
7271
|
+
_.$_$.o = Literal;
|
|
7272
|
+
_.$_$.p = Param_0;
|
|
7273
|
+
_.$_$.q = Endpoint;
|
|
7274
|
+
_.$_$.r = Enum_0;
|
|
7275
|
+
_.$_$.s = FieldIdentifier;
|
|
7276
|
+
_.$_$.t = Field;
|
|
7277
|
+
_.$_$.u = Parser;
|
|
7278
|
+
_.$_$.v = Any;
|
|
7279
|
+
_.$_$.w = Custom;
|
|
7280
|
+
_.$_$.x = Primitive;
|
|
7281
|
+
_.$_$.y = Unit;
|
|
7282
|
+
_.$_$.z = Validator;
|
|
7283
|
+
_.$_$.a1 = Refined;
|
|
7284
|
+
_.$_$.b1 = Shape;
|
|
7285
|
+
_.$_$.c1 = Type_0;
|
|
7286
|
+
_.$_$.d1 = Union;
|
|
7287
|
+
_.$_$.e1 = name;
|
|
7288
|
+
_.$_$.f1 = tokenize;
|
|
7289
|
+
_.$_$.g1 = compile;
|
|
7290
|
+
_.$_$.h1 = component1;
|
|
7291
|
+
_.$_$.i1 = parse;
|
|
7292
|
+
_.$_$.j1 = Logger;
|
|
7293
|
+
_.$_$.k1 = get_noLogger;
|
|
7294
|
+
_.$_$.l1 = Method_DELETE_getInstance;
|
|
7295
|
+
_.$_$.m1 = Method_GET_getInstance;
|
|
7296
|
+
_.$_$.n1 = Method_HEAD_getInstance;
|
|
7297
|
+
_.$_$.o1 = Method_OPTIONS_getInstance;
|
|
7298
|
+
_.$_$.p1 = Method_PATCH_getInstance;
|
|
7299
|
+
_.$_$.q1 = Method_POST_getInstance;
|
|
7300
|
+
_.$_$.r1 = Method_PUT_getInstance;
|
|
7301
|
+
_.$_$.s1 = Method_TRACE_getInstance;
|
|
7302
|
+
_.$_$.t1 = Type_Boolean_getInstance;
|
|
7303
|
+
_.$_$.u1 = Type_Integer_getInstance;
|
|
7304
|
+
_.$_$.v1 = Type_Number_getInstance;
|
|
7305
|
+
_.$_$.w1 = Type_String_getInstance;
|
|
7306
|
+
_.$_$.x1 = Level_DEBUG_getInstance;
|
|
7307
|
+
_.$_$.y1 = Level_ERROR_getInstance;
|
|
7308
|
+
_.$_$.z1 = Level_INFO_getInstance;
|
|
7309
|
+
_.$_$.a2 = Level_WARN_getInstance;
|
|
7310
|
+
_.$_$.b2 = _Comment___init__impl__cg8s2u;
|
|
7311
|
+
_.$_$.c2 = _Comment___get_value__impl__8r3pla;
|
|
7312
|
+
_.$_$.d2 = Companion_getInstance_3;
|
|
7313
|
+
_.$_$.e2 = WirespecSpec_getInstance;
|
|
7314
|
+
_.$_$.f2 = Companion_instance_6;
|
|
7325
7315
|
//endregion
|
|
7326
7316
|
return _;
|
|
7327
7317
|
}));
|