@flock/wirespec 0.22.7 → 0.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/clikt-clikt-mordant.mjs +39 -39
- package/colormath-root-colormath.mjs +433 -433
- package/kotlin-kotlin-stdlib.mjs +115 -82
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +6385 -6385
- package/kotlin-rgxgen.mjs +1756 -1756
- package/kotlinx-io-kotlinx-io-core.mjs +404 -404
- package/mordant-mordant.mjs +1202 -1202
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +1603 -1889
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-java.mjs +45 -45
- package/wirespec-src-compiler-emitters-kotlin.mjs +39 -39
- package/wirespec-src-compiler-emitters-python.mjs +29 -29
- package/wirespec-src-compiler-emitters-rust.mjs +1335 -1950
- package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-scala.mjs +523 -37
- package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-typescript.mjs +26 -26
- package/wirespec-src-compiler-emitters-wirespec.mjs +44 -44
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-converter-asyncapi.mjs +447 -447
- package/wirespec-src-converter-graphql.mjs +1500 -986
- package/wirespec-src-converter-graphql.mjs.map +1 -1
- package/wirespec-src-converter-openapi.mjs +332 -332
- package/wirespec-src-ide-lsp.mjs +767 -767
- package/wirespec-src-plugin-arguments.mjs +165 -154
- package/wirespec-src-plugin-arguments.mjs.map +1 -1
- package/wirespec-src-plugin-cli.mjs +87 -87
- package/wirespec-src-plugin-extensions.mjs +2603 -694
- package/wirespec-src-plugin-extensions.mjs.map +1 -1
- package/wirespec-src-plugin-npm.d.mts +13 -9
- package/wirespec-src-plugin-npm.mjs +24 -14
- package/wirespec-src-plugin-npm.mjs.map +1 -1
- package/wirespec-src-tools-generator.mjs +2 -2
|
@@ -48,6 +48,17 @@ import {
|
|
|
48
48
|
singleo93pzdgfc557 as single,
|
|
49
49
|
noWhenBranchMatchedException2a6r7ubxgky5j as noWhenBranchMatchedException,
|
|
50
50
|
equals2au1ep9vhcato as equals,
|
|
51
|
+
initMetadataForObject1cxne3s9w65el as initMetadataForObject,
|
|
52
|
+
withIndex37cl61h9v5txo as withIndex,
|
|
53
|
+
flatten2dh4kibw1u0qq as flatten,
|
|
54
|
+
toSet2orjxp16sotqu as toSet,
|
|
55
|
+
plus18eogev54fmsa as plus_1,
|
|
56
|
+
get_indices3txodfl5wuu5j as get_indices,
|
|
57
|
+
Collection1k04j3hzsbod0 as Collection,
|
|
58
|
+
minjeab1ybpajdx as min,
|
|
59
|
+
sorted354mfsiv4s7x5 as sorted,
|
|
60
|
+
first58ocm7j58k3q as first,
|
|
61
|
+
distinct10qe1scfdvu5k as distinct_0,
|
|
51
62
|
} from './kotlin-kotlin-stdlib.mjs';
|
|
52
63
|
import {
|
|
53
64
|
Companion_instance27ueeez2qu1l as Companion_instance,
|
|
@@ -75,6 +86,7 @@ import {
|
|
|
75
86
|
Companion_instance2oq66qbk0c5g8 as Companion_instance_1,
|
|
76
87
|
FileExtension_Scala_getInstance2u2efusiez9e8 as FileExtension_Scala_getInstance,
|
|
77
88
|
import3bym2b49e642p as import_0,
|
|
89
|
+
get_extensions1p1y8uybwv35q as get_extensions,
|
|
78
90
|
interface44jdw6t56okg as interface_0,
|
|
79
91
|
struct1gzvysjt73bn4 as struct,
|
|
80
92
|
convertClientServerdyft3utnhf92 as convertClientServer,
|
|
@@ -110,10 +122,9 @@ import {
|
|
|
110
122
|
convert86y6uioox2cl as convert_5,
|
|
111
123
|
convert1o5h4ulxoqycg as convert_6,
|
|
112
124
|
emitEndpointClient2og25opoka4ql as emitEndpointClient,
|
|
113
|
-
plus14o24vdaiongg as
|
|
125
|
+
plus14o24vdaiongg as plus_2,
|
|
114
126
|
importReferencesy4xv7r53sjjs as importReferences,
|
|
115
127
|
emitClient1ucatfg1ovgb6 as emitClient,
|
|
116
|
-
get_extensions1p1y8uybwv35q as get_extensions,
|
|
117
128
|
emit2s9bv7yrx5jcs as emit_0,
|
|
118
129
|
emit3e40nagyc4qho as emit_1,
|
|
119
130
|
get_supportsDefaults2j8lo8mbv0egf as get_supportsDefaults,
|
|
@@ -138,15 +149,23 @@ import {
|
|
|
138
149
|
Literal331hu9r04vptz as Literal,
|
|
139
150
|
TypeParameter31flcv4tnuq1v as TypeParameter,
|
|
140
151
|
Function1wme41sk2huri as Function,
|
|
152
|
+
Uniontffpdks00nyc as Union_0,
|
|
153
|
+
Import5xihcpubhtyd as Import,
|
|
154
|
+
RawElement3huqlgf21e29z as RawElement,
|
|
141
155
|
} from './wirespec-src-compiler-core.mjs';
|
|
156
|
+
import {
|
|
157
|
+
NonEmptyList3ak25ihy2gcvs as NonEmptyList,
|
|
158
|
+
toNonEmptyListOrNull2ovnnazjb3msz as toNonEmptyListOrNull,
|
|
159
|
+
} from './arrow-arrow-core.mjs';
|
|
142
160
|
//region block: imports
|
|
143
161
|
//endregion
|
|
144
162
|
//region block: pre-declaration
|
|
145
163
|
initMetadataForCompanion(Companion);
|
|
146
164
|
initMetadataForClass(ScalaEmitter, 'ScalaEmitter', ScalaEmitter, VOID, [IrEmitter]);
|
|
165
|
+
initMetadataForObject(SealedHierarchies, 'SealedHierarchies');
|
|
147
166
|
//endregion
|
|
148
167
|
function _get_sanitizationConfig__sns434($this) {
|
|
149
|
-
var tmp0 = $this.
|
|
168
|
+
var tmp0 = $this.r3k_1;
|
|
150
169
|
var tmp = KProperty1;
|
|
151
170
|
// Inline function 'kotlin.getValue' call
|
|
152
171
|
getPropertyCallableRef('sanitizationConfig', 1, tmp, ScalaEmitter$_get_sanitizationConfig_$ref_u7mbyd(), null);
|
|
@@ -211,7 +230,7 @@ function sanitizeFirstIsDigit($this, $receiver) {
|
|
|
211
230
|
return tmp;
|
|
212
231
|
}
|
|
213
232
|
function sanitizeKeywords($this, $receiver) {
|
|
214
|
-
return Companion_getInstance_0().
|
|
233
|
+
return Companion_getInstance_0().g3j().i1($receiver) ? addBackticks($receiver) : $receiver;
|
|
215
234
|
}
|
|
216
235
|
function sanitizeSymbol($this, $receiver) {
|
|
217
236
|
// Inline function 'kotlin.collections.mapIndexed' call
|
|
@@ -251,10 +270,10 @@ function sanitizeEnum($this, $receiver) {
|
|
|
251
270
|
}
|
|
252
271
|
function Companion() {
|
|
253
272
|
Companion_instance_2 = this;
|
|
254
|
-
this.
|
|
273
|
+
this.s3k_1 = ScalaGenerator_getInstance();
|
|
255
274
|
}
|
|
256
|
-
protoOf(Companion).
|
|
257
|
-
return this.
|
|
275
|
+
protoOf(Companion).g3j = function () {
|
|
276
|
+
return this.s3k_1.s1c_1;
|
|
258
277
|
};
|
|
259
278
|
var Companion_instance_2;
|
|
260
279
|
function Companion_getInstance_0() {
|
|
@@ -310,7 +329,7 @@ function ScalaEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
|
|
|
310
329
|
}
|
|
311
330
|
function ScalaEmitter$sanitizationConfig$delegate$lambda(this$0) {
|
|
312
331
|
return function () {
|
|
313
|
-
var tmp = Companion_getInstance_0().
|
|
332
|
+
var tmp = Companion_getInstance_0().g3j();
|
|
314
333
|
var tmp_0 = ScalaEmitter$sanitizationConfig$delegate$lambda$lambda;
|
|
315
334
|
var tmp_1 = ScalaEmitter$sanitizationConfig$delegate$lambda$lambda_0(this$0);
|
|
316
335
|
var tmp_2 = ScalaEmitter$sanitizationConfig$delegate$lambda$lambda_1(this$0);
|
|
@@ -540,22 +559,25 @@ function ScalaEmitter(packageName, emitShared) {
|
|
|
540
559
|
Companion_getInstance_0();
|
|
541
560
|
packageName = packageName === VOID ? Companion_instance_0.at('community.flock.wirespec.generated') : packageName;
|
|
542
561
|
emitShared = emitShared === VOID ? Companion_instance_1.gq() : emitShared;
|
|
543
|
-
this.
|
|
544
|
-
this.
|
|
545
|
-
this.
|
|
546
|
-
this.
|
|
547
|
-
this.
|
|
562
|
+
this.m3k_1 = packageName;
|
|
563
|
+
this.n3k_1 = emitShared;
|
|
564
|
+
this.o3k_1 = ScalaGenerator_getInstance();
|
|
565
|
+
this.p3k_1 = FileExtension_Scala_getInstance();
|
|
566
|
+
this.q3k_1 = listOf_0([import_0('community.flock.wirespec.scala', 'Wirespec'), import_0('scala.reflect', 'ClassTag')]);
|
|
548
567
|
var tmp = this;
|
|
549
|
-
tmp.
|
|
568
|
+
tmp.r3k_1 = lazy(ScalaEmitter$sanitizationConfig$delegate$lambda(this));
|
|
550
569
|
}
|
|
551
|
-
protoOf(ScalaEmitter).
|
|
552
|
-
return this.
|
|
570
|
+
protoOf(ScalaEmitter).n3j = function () {
|
|
571
|
+
return this.m3k_1;
|
|
553
572
|
};
|
|
554
573
|
protoOf(ScalaEmitter).l1b = function () {
|
|
555
|
-
return this.
|
|
574
|
+
return this.o3k_1;
|
|
556
575
|
};
|
|
557
576
|
protoOf(ScalaEmitter).xp = function () {
|
|
558
|
-
return this.
|
|
577
|
+
return this.p3k_1;
|
|
578
|
+
};
|
|
579
|
+
protoOf(ScalaEmitter).i1b = function () {
|
|
580
|
+
return plus_0(get_extensions.call(this), SealedHierarchies_instance);
|
|
559
581
|
};
|
|
560
582
|
protoOf(ScalaEmitter).k1b = function (allFiles) {
|
|
561
583
|
ScalaGenerator_getInstance().w1c(allFiles);
|
|
@@ -625,7 +647,7 @@ protoOf(ScalaEmitter).g1b = function () {
|
|
|
625
647
|
var tmp_6 = scope.e19_1;
|
|
626
648
|
var wirespecShared = isInterface(tmp_6, Element) ? tmp_6 : THROW_CCE();
|
|
627
649
|
var tmp_7;
|
|
628
|
-
if (this.
|
|
650
|
+
if (this.n3k_1.hq_1) {
|
|
629
651
|
tmp_7 = wirespecShared.jv(Companion_getInstance().au(packageName.dt() + 'Wirespec'));
|
|
630
652
|
} else {
|
|
631
653
|
tmp_7 = null;
|
|
@@ -635,7 +657,7 @@ protoOf(ScalaEmitter).g1b = function () {
|
|
|
635
657
|
protoOf(ScalaEmitter).ds = function (definition, module_0, logger) {
|
|
636
658
|
var file = emit.call(this, definition, module_0, logger);
|
|
637
659
|
// Inline function 'kotlin.takeIf' call
|
|
638
|
-
var this_0 = this.
|
|
660
|
+
var this_0 = this.q3k_1;
|
|
639
661
|
var tmp;
|
|
640
662
|
if (Companion_instance.as(module_0)) {
|
|
641
663
|
tmp = this_0;
|
|
@@ -643,7 +665,7 @@ protoOf(ScalaEmitter).ds = function (definition, module_0, logger) {
|
|
|
643
665
|
tmp = null;
|
|
644
666
|
}
|
|
645
667
|
var tmp$ret$0 = tmp;
|
|
646
|
-
return placeInPackage(prependImports(file, tmp$ret$0), this.
|
|
668
|
+
return placeInPackage(prependImports(file, tmp$ret$0), this.n3j(), definition);
|
|
647
669
|
};
|
|
648
670
|
protoOf(ScalaEmitter).o1b = function (definition, module_0) {
|
|
649
671
|
var tmp;
|
|
@@ -687,11 +709,11 @@ protoOf(ScalaEmitter).o1b = function (definition, module_0) {
|
|
|
687
709
|
var _iterator__ex2g4s_0 = destination.t();
|
|
688
710
|
while (_iterator__ex2g4s_0.u()) {
|
|
689
711
|
var item = _iterator__ex2g4s_0.v();
|
|
690
|
-
var tmp$ret$5 = import_0(this.
|
|
712
|
+
var tmp$ret$5 = import_0(this.n3j().bt_1 + '.model', item);
|
|
691
713
|
destination_0.x(tmp$ret$5);
|
|
692
714
|
}
|
|
693
715
|
var modelImports = destination_0;
|
|
694
|
-
return placeInPackage_0(prependImports(sanitized, plus(this.
|
|
716
|
+
return placeInPackage_0(prependImports(sanitized, plus(this.q3k_1, modelImports)), this.n3j(), 'generator');
|
|
695
717
|
};
|
|
696
718
|
protoOf(ScalaEmitter).vs = function (type, module_0) {
|
|
697
719
|
return ensureEmptyStructHasConstructor(sanitizeNames(convert_0(type), _get_sanitizationConfig__sns434(this)));
|
|
@@ -739,7 +761,7 @@ protoOf(ScalaEmitter).us = function (endpoint) {
|
|
|
739
761
|
var body = appendClientServerObjects(injectHandleFunction(endpointNamespace), endpoint, isRequestObject(endpointNamespace));
|
|
740
762
|
var tmp = sanitizeNames(new File(Companion_getInstance().au(sanitize(this, endpoint.gr_1)), listOf(body)), _get_sanitizationConfig__sns434(this));
|
|
741
763
|
// Inline function 'kotlin.takeIf' call
|
|
742
|
-
var this_0 = buildModelImports(endpoint, this.
|
|
764
|
+
var this_0 = buildModelImports(endpoint, this.n3j());
|
|
743
765
|
var tmp_0;
|
|
744
766
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
745
767
|
if (!this_0.r()) {
|
|
@@ -753,7 +775,7 @@ protoOf(ScalaEmitter).us = function (endpoint) {
|
|
|
753
775
|
protoOf(ScalaEmitter).is = function (channel) {
|
|
754
776
|
var tmp = sanitizeNames(convert_5(channel), _get_sanitizationConfig__sns434(this));
|
|
755
777
|
// Inline function 'kotlin.takeIf' call
|
|
756
|
-
var this_0 = buildModelImports(channel, this.
|
|
778
|
+
var this_0 = buildModelImports(channel, this.n3j());
|
|
757
779
|
var tmp_0;
|
|
758
780
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
759
781
|
if (!this_0.r()) {
|
|
@@ -767,7 +789,7 @@ protoOf(ScalaEmitter).is = function (channel) {
|
|
|
767
789
|
protoOf(ScalaEmitter).hs = function (rpc) {
|
|
768
790
|
var tmp = sanitizeNames(convert_6(rpc), _get_sanitizationConfig__sns434(this));
|
|
769
791
|
// Inline function 'kotlin.takeIf' call
|
|
770
|
-
var this_0 = buildModelImports(rpc, this.
|
|
792
|
+
var this_0 = buildModelImports(rpc, this.n3j());
|
|
771
793
|
var tmp_0;
|
|
772
794
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
773
795
|
if (!this_0.r()) {
|
|
@@ -779,17 +801,17 @@ protoOf(ScalaEmitter).hs = function (rpc) {
|
|
|
779
801
|
return prependImports(tmp, tmp$ret$0);
|
|
780
802
|
};
|
|
781
803
|
protoOf(ScalaEmitter).n1b = function (endpoint) {
|
|
782
|
-
var imports = buildModelImports(endpoint, this.
|
|
783
|
-
var endpointImport = import_0(this.
|
|
804
|
+
var imports = buildModelImports(endpoint, this.n3j());
|
|
805
|
+
var endpointImport = import_0(this.n3j().bt_1 + '.endpoint', endpoint.gr_1.o1());
|
|
784
806
|
var file = addIdentityTypeToCall(sanitizeNames(emitEndpointClient.call(this, endpoint), _get_sanitizationConfig__sns434(this)));
|
|
785
|
-
var subPackageName =
|
|
807
|
+
var subPackageName = plus_2(this.n3j(), 'client');
|
|
786
808
|
var tmp = Companion_getInstance().au(subPackageName.dt() + file.fv_1.du());
|
|
787
809
|
// Inline function 'kotlin.collections.buildList' call
|
|
788
810
|
// Inline function 'kotlin.collections.buildListInternal' call
|
|
789
811
|
// Inline function 'kotlin.apply' call
|
|
790
812
|
var this_0 = ArrayList_init_$Create$_0();
|
|
791
813
|
this_0.x(new Package(subPackageName.bt_1));
|
|
792
|
-
this_0.g1(this.
|
|
814
|
+
this_0.g1(this.q3k_1);
|
|
793
815
|
this_0.g1(imports);
|
|
794
816
|
this_0.x(endpointImport);
|
|
795
817
|
this_0.g1(file.gv_1);
|
|
@@ -823,7 +845,7 @@ protoOf(ScalaEmitter).h1b = function (endpoints, logger) {
|
|
|
823
845
|
var _iterator__ex2g4s_1 = list_0.t();
|
|
824
846
|
while (_iterator__ex2g4s_1.u()) {
|
|
825
847
|
var item = _iterator__ex2g4s_1.v();
|
|
826
|
-
var tmp$ret$7 = import_0(this.
|
|
848
|
+
var tmp$ret$7 = import_0(this.n3j().bt_1 + '.model', item.b1a_1);
|
|
827
849
|
destination_0.x(tmp$ret$7);
|
|
828
850
|
}
|
|
829
851
|
var imports = destination_0;
|
|
@@ -833,7 +855,7 @@ protoOf(ScalaEmitter).h1b = function (endpoints, logger) {
|
|
|
833
855
|
var _iterator__ex2g4s_2 = endpoints.t();
|
|
834
856
|
while (_iterator__ex2g4s_2.u()) {
|
|
835
857
|
var item_0 = _iterator__ex2g4s_2.v();
|
|
836
|
-
var tmp$ret$10 = import_0(this.
|
|
858
|
+
var tmp$ret$10 = import_0(this.n3j().bt_1 + '.endpoint', item_0.gr_1.o1());
|
|
837
859
|
destination_1.x(tmp$ret$10);
|
|
838
860
|
}
|
|
839
861
|
var endpointImports = destination_1;
|
|
@@ -843,19 +865,19 @@ protoOf(ScalaEmitter).h1b = function (endpoints, logger) {
|
|
|
843
865
|
var _iterator__ex2g4s_3 = endpoints.t();
|
|
844
866
|
while (_iterator__ex2g4s_3.u()) {
|
|
845
867
|
var item_1 = _iterator__ex2g4s_3.v();
|
|
846
|
-
var tmp$ret$13 = import_0(this.
|
|
868
|
+
var tmp$ret$13 = import_0(this.n3j().bt_1 + '.client', item_1.gr_1.o1() + 'Client');
|
|
847
869
|
destination_2.x(tmp$ret$13);
|
|
848
870
|
}
|
|
849
871
|
var clientImports = destination_2;
|
|
850
872
|
var allImports = plus(plus(imports, endpointImports), clientImports);
|
|
851
873
|
var file = addIdentityTypeToCall(sanitizeNames(emitClient.call(this, endpoints, logger), _get_sanitizationConfig__sns434(this)));
|
|
852
|
-
var tmp = Companion_getInstance().au(this.
|
|
874
|
+
var tmp = Companion_getInstance().au(this.n3j().dt() + file.fv_1.du());
|
|
853
875
|
// Inline function 'kotlin.collections.buildList' call
|
|
854
876
|
// Inline function 'kotlin.collections.buildListInternal' call
|
|
855
877
|
// Inline function 'kotlin.apply' call
|
|
856
878
|
var this_0 = ArrayList_init_$Create$_0();
|
|
857
|
-
this_0.x(new Package(this.
|
|
858
|
-
this_0.g1(this.
|
|
879
|
+
this_0.x(new Package(this.n3j().bt_1));
|
|
880
|
+
this_0.g1(this.q3k_1);
|
|
859
881
|
this_0.g1(allImports);
|
|
860
882
|
this_0.g1(file.gv_1);
|
|
861
883
|
var tmp$ret$14 = this_0.r5();
|
|
@@ -1150,12 +1172,476 @@ function addIdentityTypeToCall$lambda(element, transformer) {
|
|
|
1150
1172
|
var transformed = tmp;
|
|
1151
1173
|
return transformChildren_0(transformed, transformer);
|
|
1152
1174
|
}
|
|
1175
|
+
function SealedHierarchies() {
|
|
1176
|
+
}
|
|
1177
|
+
protoOf(SealedHierarchies).j1b = function (ir, ast) {
|
|
1178
|
+
// Inline function 'kotlin.collections.partition' call
|
|
1179
|
+
var this_0 = new NonEmptyList(ir);
|
|
1180
|
+
var first = ArrayList_init_$Create$_0();
|
|
1181
|
+
var second = ArrayList_init_$Create$_0();
|
|
1182
|
+
var _iterator__ex2g4s = this_0.t();
|
|
1183
|
+
while (_iterator__ex2g4s.u()) {
|
|
1184
|
+
var element = _iterator__ex2g4s.v();
|
|
1185
|
+
if (element instanceof File) {
|
|
1186
|
+
first.x(element);
|
|
1187
|
+
} else {
|
|
1188
|
+
second.x(element);
|
|
1189
|
+
}
|
|
1190
|
+
}
|
|
1191
|
+
// Inline function 'kotlin.let' call
|
|
1192
|
+
var destruct = new Pair(first, second);
|
|
1193
|
+
var files = destruct.af();
|
|
1194
|
+
var rest = destruct.bf();
|
|
1195
|
+
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
1196
|
+
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
1197
|
+
var destination = ArrayList_init_$Create$_0();
|
|
1198
|
+
var _iterator__ex2g4s_0 = files.t();
|
|
1199
|
+
while (_iterator__ex2g4s_0.u()) {
|
|
1200
|
+
var element_0 = _iterator__ex2g4s_0.v();
|
|
1201
|
+
if (element_0 instanceof File) {
|
|
1202
|
+
destination.x(element_0);
|
|
1203
|
+
}
|
|
1204
|
+
}
|
|
1205
|
+
var tmp$ret$2 = plus(withSealedHierarchiesTogether(destination), rest);
|
|
1206
|
+
var tmp0_elvis_lhs = toNonEmptyListOrNull(tmp$ret$2);
|
|
1207
|
+
var tmp;
|
|
1208
|
+
var tmp_0 = tmp0_elvis_lhs;
|
|
1209
|
+
if ((tmp_0 == null ? null : new NonEmptyList(tmp_0)) == null) {
|
|
1210
|
+
tmp = ir;
|
|
1211
|
+
} else {
|
|
1212
|
+
tmp = tmp0_elvis_lhs;
|
|
1213
|
+
}
|
|
1214
|
+
return tmp;
|
|
1215
|
+
};
|
|
1216
|
+
var SealedHierarchies_instance;
|
|
1217
|
+
function SealedHierarchies_getInstance() {
|
|
1218
|
+
return SealedHierarchies_instance;
|
|
1219
|
+
}
|
|
1220
|
+
function withSealedHierarchiesTogether(_this__u8e3s4) {
|
|
1221
|
+
// Inline function 'kotlin.collections.flatMap' call
|
|
1222
|
+
var tmp0 = withIndex(_this__u8e3s4);
|
|
1223
|
+
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1224
|
+
var destination = ArrayList_init_$Create$_0();
|
|
1225
|
+
var _iterator__ex2g4s = tmp0.t();
|
|
1226
|
+
while (_iterator__ex2g4s.u()) {
|
|
1227
|
+
var element = _iterator__ex2g4s.v();
|
|
1228
|
+
var index = element.af();
|
|
1229
|
+
var file = element.bf();
|
|
1230
|
+
// Inline function 'kotlin.collections.map' call
|
|
1231
|
+
var this_0 = declaredNames(file);
|
|
1232
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
1233
|
+
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
1234
|
+
var _iterator__ex2g4s_0 = this_0.t();
|
|
1235
|
+
while (_iterator__ex2g4s_0.u()) {
|
|
1236
|
+
var item = _iterator__ex2g4s_0.v();
|
|
1237
|
+
var tmp$ret$5 = to(to(packagePath(file), item), index);
|
|
1238
|
+
destination_0.x(tmp$ret$5);
|
|
1239
|
+
}
|
|
1240
|
+
var list = destination_0;
|
|
1241
|
+
addAll(destination, list);
|
|
1242
|
+
}
|
|
1243
|
+
// Inline function 'kotlin.collections.distinctBy' call
|
|
1244
|
+
var set = HashSet_init_$Create$();
|
|
1245
|
+
var list_0 = ArrayList_init_$Create$_0();
|
|
1246
|
+
var _iterator__ex2g4s_1 = destination.t();
|
|
1247
|
+
while (_iterator__ex2g4s_1.u()) {
|
|
1248
|
+
var e = _iterator__ex2g4s_1.v();
|
|
1249
|
+
var key = e.gf_1;
|
|
1250
|
+
if (set.x(key)) {
|
|
1251
|
+
list_0.x(e);
|
|
1252
|
+
}
|
|
1253
|
+
}
|
|
1254
|
+
var declarations = toMap(list_0);
|
|
1255
|
+
// Inline function 'kotlin.collections.flatMap' call
|
|
1256
|
+
var tmp0_0 = withIndex(_this__u8e3s4);
|
|
1257
|
+
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1258
|
+
var destination_1 = ArrayList_init_$Create$_0();
|
|
1259
|
+
var _iterator__ex2g4s_2 = tmp0_0.t();
|
|
1260
|
+
while (_iterator__ex2g4s_2.u()) {
|
|
1261
|
+
var element_0 = _iterator__ex2g4s_2.v();
|
|
1262
|
+
var index_0 = element_0.af();
|
|
1263
|
+
var file_0 = element_0.bf();
|
|
1264
|
+
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
1265
|
+
var tmp0_1 = file_0.gv_1;
|
|
1266
|
+
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
1267
|
+
var destination_2 = ArrayList_init_$Create$_0();
|
|
1268
|
+
var _iterator__ex2g4s_3 = tmp0_1.t();
|
|
1269
|
+
while (_iterator__ex2g4s_3.u()) {
|
|
1270
|
+
var element_1 = _iterator__ex2g4s_3.v();
|
|
1271
|
+
if (element_1 instanceof Union_0) {
|
|
1272
|
+
destination_2.x(element_1);
|
|
1273
|
+
}
|
|
1274
|
+
}
|
|
1275
|
+
// Inline function 'kotlin.collections.flatMap' call
|
|
1276
|
+
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1277
|
+
var destination_3 = ArrayList_init_$Create$_0();
|
|
1278
|
+
var _iterator__ex2g4s_4 = destination_2.t();
|
|
1279
|
+
while (_iterator__ex2g4s_4.u()) {
|
|
1280
|
+
var element_2 = _iterator__ex2g4s_4.v();
|
|
1281
|
+
var list_1 = element_2.nw_1;
|
|
1282
|
+
addAll(destination_3, list_1);
|
|
1283
|
+
}
|
|
1284
|
+
// Inline function 'kotlin.collections.mapNotNull' call
|
|
1285
|
+
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
1286
|
+
var destination_4 = ArrayList_init_$Create$_0();
|
|
1287
|
+
// Inline function 'kotlin.collections.forEach' call
|
|
1288
|
+
var _iterator__ex2g4s_5 = destination_3.t();
|
|
1289
|
+
while (_iterator__ex2g4s_5.u()) {
|
|
1290
|
+
var element_3 = _iterator__ex2g4s_5.v();
|
|
1291
|
+
var tmp0_safe_receiver = declarations.t2(to(packagePath(file_0), element_3.ru_1.du()));
|
|
1292
|
+
if (tmp0_safe_receiver == null)
|
|
1293
|
+
null;
|
|
1294
|
+
else {
|
|
1295
|
+
// Inline function 'kotlin.let' call
|
|
1296
|
+
destination_4.x(tmp0_safe_receiver);
|
|
1297
|
+
}
|
|
1298
|
+
}
|
|
1299
|
+
// Inline function 'kotlin.collections.filter' call
|
|
1300
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
1301
|
+
var destination_5 = ArrayList_init_$Create$_0();
|
|
1302
|
+
var _iterator__ex2g4s_6 = destination_4.t();
|
|
1303
|
+
while (_iterator__ex2g4s_6.u()) {
|
|
1304
|
+
var element_4 = _iterator__ex2g4s_6.v();
|
|
1305
|
+
if (!(element_4 === index_0)) {
|
|
1306
|
+
destination_5.x(element_4);
|
|
1307
|
+
}
|
|
1308
|
+
}
|
|
1309
|
+
// Inline function 'kotlin.collections.map' call
|
|
1310
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
1311
|
+
var destination_6 = ArrayList_init_$Create$(collectionSizeOrDefault(destination_5, 10));
|
|
1312
|
+
var _iterator__ex2g4s_7 = destination_5.t();
|
|
1313
|
+
while (_iterator__ex2g4s_7.u()) {
|
|
1314
|
+
var item_0 = _iterator__ex2g4s_7.v();
|
|
1315
|
+
var tmp$ret$28 = to(index_0, item_0);
|
|
1316
|
+
destination_6.x(tmp$ret$28);
|
|
1317
|
+
}
|
|
1318
|
+
var list_2 = destination_6;
|
|
1319
|
+
addAll(destination_1, list_2);
|
|
1320
|
+
}
|
|
1321
|
+
// Inline function 'kotlin.collections.fold' call
|
|
1322
|
+
var accumulator = emptyList();
|
|
1323
|
+
var _iterator__ex2g4s_8 = destination_1.t();
|
|
1324
|
+
while (_iterator__ex2g4s_8.u()) {
|
|
1325
|
+
var element_5 = _iterator__ex2g4s_8.v();
|
|
1326
|
+
var groups = accumulator;
|
|
1327
|
+
var union = element_5.af();
|
|
1328
|
+
var member = element_5.bf();
|
|
1329
|
+
// Inline function 'kotlin.collections.partition' call
|
|
1330
|
+
var first = ArrayList_init_$Create$_0();
|
|
1331
|
+
var second = ArrayList_init_$Create$_0();
|
|
1332
|
+
var _iterator__ex2g4s_9 = groups.t();
|
|
1333
|
+
while (_iterator__ex2g4s_9.u()) {
|
|
1334
|
+
var element_6 = _iterator__ex2g4s_9.v();
|
|
1335
|
+
if (element_6.i1(union) || element_6.i1(member)) {
|
|
1336
|
+
first.x(element_6);
|
|
1337
|
+
} else {
|
|
1338
|
+
second.x(element_6);
|
|
1339
|
+
}
|
|
1340
|
+
}
|
|
1341
|
+
// Inline function 'kotlin.let' call
|
|
1342
|
+
var destruct = new Pair(first, second);
|
|
1343
|
+
var touching = destruct.af();
|
|
1344
|
+
var rest = destruct.bf();
|
|
1345
|
+
accumulator = plus(rest, listOf(plus_1(plus_1(toSet(flatten(touching)), union), member)));
|
|
1346
|
+
}
|
|
1347
|
+
var hierarchies = accumulator;
|
|
1348
|
+
// Inline function 'kotlin.collections.flatMap' call
|
|
1349
|
+
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1350
|
+
var destination_7 = ArrayList_init_$Create$_0();
|
|
1351
|
+
var _iterator__ex2g4s_10 = hierarchies.t();
|
|
1352
|
+
while (_iterator__ex2g4s_10.u()) {
|
|
1353
|
+
var element_7 = _iterator__ex2g4s_10.v();
|
|
1354
|
+
// Inline function 'kotlin.collections.map' call
|
|
1355
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
1356
|
+
var destination_8 = ArrayList_init_$Create$(collectionSizeOrDefault(element_7, 10));
|
|
1357
|
+
var _iterator__ex2g4s_11 = element_7.t();
|
|
1358
|
+
while (_iterator__ex2g4s_11.u()) {
|
|
1359
|
+
var item_1 = _iterator__ex2g4s_11.v();
|
|
1360
|
+
var tmp$ret$40 = to(item_1, element_7);
|
|
1361
|
+
destination_8.x(tmp$ret$40);
|
|
1362
|
+
}
|
|
1363
|
+
var list_3 = destination_8;
|
|
1364
|
+
addAll(destination_7, list_3);
|
|
1365
|
+
}
|
|
1366
|
+
var hierarchyOf = toMap(destination_7);
|
|
1367
|
+
// Inline function 'kotlin.collections.mapNotNull' call
|
|
1368
|
+
var tmp0_2 = get_indices(_this__u8e3s4);
|
|
1369
|
+
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
1370
|
+
var destination_9 = ArrayList_init_$Create$_0();
|
|
1371
|
+
// Inline function 'kotlin.collections.forEach' call
|
|
1372
|
+
var inductionVariable = tmp0_2.q1_1;
|
|
1373
|
+
var last = tmp0_2.r1_1;
|
|
1374
|
+
if (inductionVariable <= last)
|
|
1375
|
+
do {
|
|
1376
|
+
var element_8 = inductionVariable;
|
|
1377
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
1378
|
+
var index_1 = element_8;
|
|
1379
|
+
var hierarchy = hierarchyOf.t2(index_1);
|
|
1380
|
+
var tmp;
|
|
1381
|
+
if (hierarchy == null) {
|
|
1382
|
+
tmp = _this__u8e3s4.b1(index_1);
|
|
1383
|
+
} else {
|
|
1384
|
+
// Inline function 'kotlin.takeIf' call
|
|
1385
|
+
var tmp_0;
|
|
1386
|
+
if (index_1 === anchorOf(_this__u8e3s4, hierarchy)) {
|
|
1387
|
+
tmp_0 = index_1;
|
|
1388
|
+
} else {
|
|
1389
|
+
tmp_0 = null;
|
|
1390
|
+
}
|
|
1391
|
+
var tmp_1;
|
|
1392
|
+
if (tmp_0 == null) {
|
|
1393
|
+
tmp_1 = null;
|
|
1394
|
+
} else {
|
|
1395
|
+
// Inline function 'kotlin.let' call
|
|
1396
|
+
tmp_1 = merge(_this__u8e3s4, hierarchy);
|
|
1397
|
+
}
|
|
1398
|
+
tmp = tmp_1;
|
|
1399
|
+
}
|
|
1400
|
+
var tmp0_safe_receiver_0 = tmp;
|
|
1401
|
+
if (tmp0_safe_receiver_0 == null)
|
|
1402
|
+
null;
|
|
1403
|
+
else {
|
|
1404
|
+
// Inline function 'kotlin.let' call
|
|
1405
|
+
destination_9.x(tmp0_safe_receiver_0);
|
|
1406
|
+
}
|
|
1407
|
+
}
|
|
1408
|
+
while (!(element_8 === last));
|
|
1409
|
+
return destination_9;
|
|
1410
|
+
}
|
|
1411
|
+
function declaredNames(_this__u8e3s4) {
|
|
1412
|
+
// Inline function 'kotlin.collections.mapNotNull' call
|
|
1413
|
+
var tmp0 = _this__u8e3s4.gv_1;
|
|
1414
|
+
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
1415
|
+
var destination = ArrayList_init_$Create$_0();
|
|
1416
|
+
// Inline function 'kotlin.collections.forEach' call
|
|
1417
|
+
var _iterator__ex2g4s = tmp0.t();
|
|
1418
|
+
while (_iterator__ex2g4s.u()) {
|
|
1419
|
+
var element = _iterator__ex2g4s.v();
|
|
1420
|
+
var tmp0_safe_receiver = declaredName(element);
|
|
1421
|
+
if (tmp0_safe_receiver == null)
|
|
1422
|
+
null;
|
|
1423
|
+
else {
|
|
1424
|
+
// Inline function 'kotlin.let' call
|
|
1425
|
+
destination.x(tmp0_safe_receiver);
|
|
1426
|
+
}
|
|
1427
|
+
}
|
|
1428
|
+
return destination;
|
|
1429
|
+
}
|
|
1430
|
+
function packagePath(_this__u8e3s4) {
|
|
1431
|
+
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
1432
|
+
var tmp0 = _this__u8e3s4.gv_1;
|
|
1433
|
+
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
1434
|
+
var destination = ArrayList_init_$Create$_0();
|
|
1435
|
+
var _iterator__ex2g4s = tmp0.t();
|
|
1436
|
+
while (_iterator__ex2g4s.u()) {
|
|
1437
|
+
var element = _iterator__ex2g4s.v();
|
|
1438
|
+
if (element instanceof Package) {
|
|
1439
|
+
destination.x(element);
|
|
1440
|
+
}
|
|
1441
|
+
}
|
|
1442
|
+
var tmp0_safe_receiver = firstOrNull_0(destination);
|
|
1443
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.kv_1;
|
|
1444
|
+
}
|
|
1445
|
+
function anchorOf(_this__u8e3s4, hierarchy) {
|
|
1446
|
+
// Inline function 'kotlin.collections.filter' call
|
|
1447
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
1448
|
+
var destination = ArrayList_init_$Create$_0();
|
|
1449
|
+
var _iterator__ex2g4s = hierarchy.t();
|
|
1450
|
+
while (_iterator__ex2g4s.u()) {
|
|
1451
|
+
var element = _iterator__ex2g4s.v();
|
|
1452
|
+
var tmp0 = _this__u8e3s4.b1(element).gv_1;
|
|
1453
|
+
var tmp$ret$3;
|
|
1454
|
+
$l$block_0: {
|
|
1455
|
+
// Inline function 'kotlin.collections.any' call
|
|
1456
|
+
var tmp;
|
|
1457
|
+
if (isInterface(tmp0, Collection)) {
|
|
1458
|
+
tmp = tmp0.r();
|
|
1459
|
+
} else {
|
|
1460
|
+
tmp = false;
|
|
1461
|
+
}
|
|
1462
|
+
if (tmp) {
|
|
1463
|
+
tmp$ret$3 = false;
|
|
1464
|
+
break $l$block_0;
|
|
1465
|
+
}
|
|
1466
|
+
var _iterator__ex2g4s_0 = tmp0.t();
|
|
1467
|
+
while (_iterator__ex2g4s_0.u()) {
|
|
1468
|
+
var element_0 = _iterator__ex2g4s_0.v();
|
|
1469
|
+
if (element_0 instanceof Union_0) {
|
|
1470
|
+
tmp$ret$3 = true;
|
|
1471
|
+
break $l$block_0;
|
|
1472
|
+
}
|
|
1473
|
+
}
|
|
1474
|
+
tmp$ret$3 = false;
|
|
1475
|
+
}
|
|
1476
|
+
if (tmp$ret$3) {
|
|
1477
|
+
destination.x(element);
|
|
1478
|
+
}
|
|
1479
|
+
}
|
|
1480
|
+
return min(destination);
|
|
1481
|
+
}
|
|
1482
|
+
function merge(_this__u8e3s4, hierarchy) {
|
|
1483
|
+
// Inline function 'kotlin.let' call
|
|
1484
|
+
var anchor = anchorOf(_this__u8e3s4, hierarchy);
|
|
1485
|
+
var tmp = listOf(anchor);
|
|
1486
|
+
// Inline function 'kotlin.collections.filter' call
|
|
1487
|
+
var tmp0 = sorted(hierarchy);
|
|
1488
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
1489
|
+
var destination = ArrayList_init_$Create$_0();
|
|
1490
|
+
var _iterator__ex2g4s = tmp0.t();
|
|
1491
|
+
while (_iterator__ex2g4s.u()) {
|
|
1492
|
+
var element = _iterator__ex2g4s.v();
|
|
1493
|
+
if (!(element === anchor)) {
|
|
1494
|
+
destination.x(element);
|
|
1495
|
+
}
|
|
1496
|
+
}
|
|
1497
|
+
// Inline function 'kotlin.collections.map' call
|
|
1498
|
+
var this_0 = plus(tmp, destination);
|
|
1499
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
1500
|
+
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
1501
|
+
var _iterator__ex2g4s_0 = this_0.t();
|
|
1502
|
+
while (_iterator__ex2g4s_0.u()) {
|
|
1503
|
+
var item = _iterator__ex2g4s_0.v();
|
|
1504
|
+
var tmp$ret$7 = _this__u8e3s4.b1(item);
|
|
1505
|
+
destination_0.x(tmp$ret$7);
|
|
1506
|
+
}
|
|
1507
|
+
// Inline function 'kotlin.let' call
|
|
1508
|
+
var tmp_0 = first(destination_0);
|
|
1509
|
+
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
1510
|
+
var tmp0_0 = first(destination_0).gv_1;
|
|
1511
|
+
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
1512
|
+
var destination_1 = ArrayList_init_$Create$_0();
|
|
1513
|
+
var _iterator__ex2g4s_1 = tmp0_0.t();
|
|
1514
|
+
while (_iterator__ex2g4s_1.u()) {
|
|
1515
|
+
var element_0 = _iterator__ex2g4s_1.v();
|
|
1516
|
+
if (element_0 instanceof Package) {
|
|
1517
|
+
destination_1.x(element_0);
|
|
1518
|
+
}
|
|
1519
|
+
}
|
|
1520
|
+
var tmp_1 = destination_1;
|
|
1521
|
+
// Inline function 'kotlin.collections.flatMap' call
|
|
1522
|
+
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1523
|
+
var destination_2 = ArrayList_init_$Create$_0();
|
|
1524
|
+
var _iterator__ex2g4s_2 = destination_0.t();
|
|
1525
|
+
while (_iterator__ex2g4s_2.u()) {
|
|
1526
|
+
var element_1 = _iterator__ex2g4s_2.v();
|
|
1527
|
+
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
1528
|
+
var tmp0_1 = element_1.gv_1;
|
|
1529
|
+
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
1530
|
+
var destination_3 = ArrayList_init_$Create$_0();
|
|
1531
|
+
var _iterator__ex2g4s_3 = tmp0_1.t();
|
|
1532
|
+
while (_iterator__ex2g4s_3.u()) {
|
|
1533
|
+
var element_2 = _iterator__ex2g4s_3.v();
|
|
1534
|
+
if (element_2 instanceof Import) {
|
|
1535
|
+
destination_3.x(element_2);
|
|
1536
|
+
}
|
|
1537
|
+
}
|
|
1538
|
+
var list = destination_3;
|
|
1539
|
+
addAll(destination_2, list);
|
|
1540
|
+
}
|
|
1541
|
+
var tmp_2 = plus(tmp_1, distinct_0(destination_2));
|
|
1542
|
+
// Inline function 'kotlin.collections.flatMap' call
|
|
1543
|
+
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1544
|
+
var destination_4 = ArrayList_init_$Create$_0();
|
|
1545
|
+
var _iterator__ex2g4s_4 = destination_0.t();
|
|
1546
|
+
while (_iterator__ex2g4s_4.u()) {
|
|
1547
|
+
var element_3 = _iterator__ex2g4s_4.v();
|
|
1548
|
+
// Inline function 'kotlin.collections.filterNot' call
|
|
1549
|
+
var tmp0_2 = element_3.gv_1;
|
|
1550
|
+
// Inline function 'kotlin.collections.filterNotTo' call
|
|
1551
|
+
var destination_5 = ArrayList_init_$Create$_0();
|
|
1552
|
+
var _iterator__ex2g4s_5 = tmp0_2.t();
|
|
1553
|
+
while (_iterator__ex2g4s_5.u()) {
|
|
1554
|
+
var element_4 = _iterator__ex2g4s_5.v();
|
|
1555
|
+
var tmp_3;
|
|
1556
|
+
if (element_4 instanceof Package) {
|
|
1557
|
+
tmp_3 = true;
|
|
1558
|
+
} else {
|
|
1559
|
+
tmp_3 = element_4 instanceof Import;
|
|
1560
|
+
}
|
|
1561
|
+
if (!tmp_3) {
|
|
1562
|
+
destination_5.x(element_4);
|
|
1563
|
+
}
|
|
1564
|
+
}
|
|
1565
|
+
var list_0 = destination_5;
|
|
1566
|
+
addAll(destination_4, list_0);
|
|
1567
|
+
}
|
|
1568
|
+
return tmp_0.jv(VOID, plus(tmp_2, destination_4));
|
|
1569
|
+
}
|
|
1570
|
+
function declaredName(_this__u8e3s4) {
|
|
1571
|
+
var tmp;
|
|
1572
|
+
if (_this__u8e3s4 instanceof Struct) {
|
|
1573
|
+
tmp = _this__u8e3s4.fx_1.du();
|
|
1574
|
+
} else {
|
|
1575
|
+
if (_this__u8e3s4 instanceof Union_0) {
|
|
1576
|
+
tmp = _this__u8e3s4.lw_1.du();
|
|
1577
|
+
} else {
|
|
1578
|
+
if (_this__u8e3s4 instanceof Enum) {
|
|
1579
|
+
tmp = _this__u8e3s4.ww_1.du();
|
|
1580
|
+
} else {
|
|
1581
|
+
if (_this__u8e3s4 instanceof Interface) {
|
|
1582
|
+
tmp = _this__u8e3s4.rv_1.du();
|
|
1583
|
+
} else {
|
|
1584
|
+
var tmp_0;
|
|
1585
|
+
var tmp_1;
|
|
1586
|
+
var tmp_2;
|
|
1587
|
+
if (_this__u8e3s4 instanceof File) {
|
|
1588
|
+
tmp_2 = true;
|
|
1589
|
+
} else {
|
|
1590
|
+
tmp_2 = _this__u8e3s4 instanceof Package;
|
|
1591
|
+
}
|
|
1592
|
+
if (tmp_2) {
|
|
1593
|
+
tmp_1 = true;
|
|
1594
|
+
} else {
|
|
1595
|
+
var tmp_3;
|
|
1596
|
+
if (_this__u8e3s4 instanceof Import) {
|
|
1597
|
+
tmp_3 = true;
|
|
1598
|
+
} else {
|
|
1599
|
+
tmp_3 = _this__u8e3s4 instanceof Field;
|
|
1600
|
+
}
|
|
1601
|
+
tmp_1 = tmp_3;
|
|
1602
|
+
}
|
|
1603
|
+
if (tmp_1) {
|
|
1604
|
+
tmp_0 = true;
|
|
1605
|
+
} else {
|
|
1606
|
+
var tmp_4;
|
|
1607
|
+
var tmp_5;
|
|
1608
|
+
if (_this__u8e3s4 instanceof Function) {
|
|
1609
|
+
tmp_5 = true;
|
|
1610
|
+
} else {
|
|
1611
|
+
tmp_5 = _this__u8e3s4 instanceof Namespace;
|
|
1612
|
+
}
|
|
1613
|
+
if (tmp_5) {
|
|
1614
|
+
tmp_4 = true;
|
|
1615
|
+
} else {
|
|
1616
|
+
var tmp_6;
|
|
1617
|
+
if (_this__u8e3s4 instanceof Main) {
|
|
1618
|
+
tmp_6 = true;
|
|
1619
|
+
} else {
|
|
1620
|
+
tmp_6 = _this__u8e3s4 instanceof RawElement;
|
|
1621
|
+
}
|
|
1622
|
+
tmp_4 = tmp_6;
|
|
1623
|
+
}
|
|
1624
|
+
tmp_0 = tmp_4;
|
|
1625
|
+
}
|
|
1626
|
+
if (tmp_0) {
|
|
1627
|
+
tmp = null;
|
|
1628
|
+
} else {
|
|
1629
|
+
noWhenBranchMatchedException();
|
|
1630
|
+
}
|
|
1631
|
+
}
|
|
1632
|
+
}
|
|
1633
|
+
}
|
|
1634
|
+
}
|
|
1635
|
+
return tmp;
|
|
1636
|
+
}
|
|
1153
1637
|
//region block: post-declaration
|
|
1154
|
-
protoOf(ScalaEmitter).i1b = get_extensions;
|
|
1155
1638
|
protoOf(ScalaEmitter).uo = emit_0;
|
|
1156
1639
|
protoOf(ScalaEmitter).f1b = emit_1;
|
|
1157
1640
|
protoOf(ScalaEmitter).wp = get_supportsDefaults;
|
|
1158
1641
|
//endregion
|
|
1642
|
+
//region block: init
|
|
1643
|
+
SealedHierarchies_instance = new SealedHierarchies();
|
|
1644
|
+
//endregion
|
|
1159
1645
|
//region block: exports
|
|
1160
1646
|
export {
|
|
1161
1647
|
ScalaEmitter as ScalaEmitter3fpajh5neerxm,
|