@flock/wirespec 0.22.6 → 0.22.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/arrow-arrow-atomic.mjs +11 -11
- package/arrow-arrow-core.mjs +150 -150
- package/clikt-clikt-mordant.mjs +80 -80
- package/clikt-clikt.mjs +1488 -1488
- package/colormath-root-colormath.mjs +441 -441
- package/kotlin-kotlin-stdlib.mjs +1626 -1604
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +10134 -10134
- package/kotlin-rgxgen.mjs +1802 -1802
- package/kotlinx-io-kotlinx-io-core.mjs +414 -414
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1816 -1816
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1570 -1570
- package/mordant-mordant.mjs +1280 -1280
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +6797 -6957
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-java.mjs +177 -177
- package/wirespec-src-compiler-emitters-kotlin.mjs +132 -132
- package/wirespec-src-compiler-emitters-python.mjs +166 -166
- package/wirespec-src-compiler-emitters-rust.mjs +1501 -2116
- package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-scala.mjs +165 -165
- package/wirespec-src-compiler-emitters-typescript.mjs +214 -214
- package/wirespec-src-compiler-emitters-wirespec.mjs +178 -198
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +282 -282
- package/wirespec-src-converter-asyncapi.mjs +849 -767
- package/wirespec-src-converter-asyncapi.mjs.map +1 -1
- package/wirespec-src-converter-avro.mjs +596 -595
- package/wirespec-src-converter-avro.mjs.map +1 -1
- package/wirespec-src-converter-common.mjs +18 -18
- package/wirespec-src-converter-graphql.mjs +1064 -1064
- package/wirespec-src-converter-openapi.mjs +774 -662
- package/wirespec-src-converter-openapi.mjs.map +1 -1
- package/wirespec-src-ide-lsp.mjs +1375 -1375
- package/wirespec-src-plugin-arguments.mjs +200 -190
- package/wirespec-src-plugin-arguments.mjs.map +1 -1
- package/wirespec-src-plugin-cli.mjs +112 -112
- package/wirespec-src-plugin-extensions.mjs +1034 -998
- package/wirespec-src-plugin-extensions.mjs.map +1 -1
- package/wirespec-src-plugin-npm.mjs +54 -54
- package/wirespec-src-tools-generator.mjs +32 -32
|
@@ -29,6 +29,7 @@ import {
|
|
|
29
29
|
last1vo29oleiqj36 as last,
|
|
30
30
|
plus310ted5e4i90h as plus,
|
|
31
31
|
IllegalStateException_init_$Create$1h4bcfod21ri0 as IllegalStateException_init_$Create$,
|
|
32
|
+
listOfvhqybd2zx248 as listOf,
|
|
32
33
|
substringAfter35b3qhto7hchb as substringAfter,
|
|
33
34
|
startsWith26w8qjqapeeq6 as startsWith,
|
|
34
35
|
throwKotlinNothingValueException2lxmvl03dor6f as throwKotlinNothingValueException,
|
|
@@ -143,7 +144,7 @@ var Extension_SpringMappingAnnotations_instance;
|
|
|
143
144
|
var Extension_SpringNativeHints_instance;
|
|
144
145
|
function Companion() {
|
|
145
146
|
}
|
|
146
|
-
protoOf(Companion).
|
|
147
|
+
protoOf(Companion).a4x = function () {
|
|
147
148
|
// Inline function 'kotlin.collections.associateBy' call
|
|
148
149
|
var this_0 = get_entries_0();
|
|
149
150
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
@@ -152,8 +153,8 @@ protoOf(Companion).i4x = function () {
|
|
|
152
153
|
var _iterator__ex2g4s = this_0.t();
|
|
153
154
|
while (_iterator__ex2g4s.u()) {
|
|
154
155
|
var element = _iterator__ex2g4s.v();
|
|
155
|
-
var tmp$ret$2 = element.
|
|
156
|
-
destination.
|
|
156
|
+
var tmp$ret$2 = element.e3_1;
|
|
157
|
+
destination.w2(tmp$ret$2, element);
|
|
157
158
|
}
|
|
158
159
|
return destination;
|
|
159
160
|
};
|
|
@@ -188,11 +189,11 @@ function Extension_initEntries() {
|
|
|
188
189
|
var $ENTRIES;
|
|
189
190
|
function Extension(name, ordinal, type, languages) {
|
|
190
191
|
Enum.call(this, name, ordinal);
|
|
191
|
-
this.
|
|
192
|
-
this.
|
|
192
|
+
this.d4x_1 = type;
|
|
193
|
+
this.e4x_1 = languages;
|
|
193
194
|
}
|
|
194
|
-
protoOf(Extension).
|
|
195
|
-
return this.
|
|
195
|
+
protoOf(Extension).f4x = function (language) {
|
|
196
|
+
return this.e4x_1.i1(language);
|
|
196
197
|
};
|
|
197
198
|
function withExtensions(_this__u8e3s4, extensions) {
|
|
198
199
|
var tmp0_safe_receiver = toNonEmptyListOrNull(extensions);
|
|
@@ -203,7 +204,7 @@ function withExtensions(_this__u8e3s4, extensions) {
|
|
|
203
204
|
} else {
|
|
204
205
|
var tmp_1 = tmp0_safe_receiver;
|
|
205
206
|
// Inline function 'kotlin.let' call
|
|
206
|
-
var it = (tmp_1 == null ? null : new NonEmptyList(tmp_1)).
|
|
207
|
+
var it = (tmp_1 == null ? null : new NonEmptyList(tmp_1)).en_1;
|
|
207
208
|
var tmp0_safe_receiver_0 = isInterface(_this__u8e3s4, IrEmitter) ? _this__u8e3s4 : null;
|
|
208
209
|
tmp = tmp0_safe_receiver_0 == null ? null : applyExtensions(tmp0_safe_receiver_0, it);
|
|
209
210
|
}
|
|
@@ -231,7 +232,7 @@ function toIrExtensions(_this__u8e3s4, packageName, language) {
|
|
|
231
232
|
function toIrExtension(_this__u8e3s4, packageName, language) {
|
|
232
233
|
// Inline function 'kotlin.takeIf' call
|
|
233
234
|
var tmp;
|
|
234
|
-
if (_this__u8e3s4.
|
|
235
|
+
if (_this__u8e3s4.f4x(language)) {
|
|
235
236
|
tmp = _this__u8e3s4;
|
|
236
237
|
} else {
|
|
237
238
|
tmp = null;
|
|
@@ -243,7 +244,7 @@ function toIrExtension(_this__u8e3s4, packageName, language) {
|
|
|
243
244
|
} else {
|
|
244
245
|
// Inline function 'kotlin.let' call
|
|
245
246
|
var tmp_1;
|
|
246
|
-
switch (tmp0_safe_receiver.
|
|
247
|
+
switch (tmp0_safe_receiver.f3_1) {
|
|
247
248
|
case 0:
|
|
248
249
|
tmp_1 = new AvroExtension(packageName, language);
|
|
249
250
|
break;
|
|
@@ -370,7 +371,7 @@ var Language_OpenAPIV3_instance;
|
|
|
370
371
|
var Language_Avro_instance;
|
|
371
372
|
function Companion_1() {
|
|
372
373
|
}
|
|
373
|
-
protoOf(Companion_1).
|
|
374
|
+
protoOf(Companion_1).a4x = function () {
|
|
374
375
|
// Inline function 'kotlin.collections.associateBy' call
|
|
375
376
|
var this_0 = get_entries_2();
|
|
376
377
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
@@ -379,8 +380,8 @@ protoOf(Companion_1).i4x = function () {
|
|
|
379
380
|
var _iterator__ex2g4s = this_0.t();
|
|
380
381
|
while (_iterator__ex2g4s.u()) {
|
|
381
382
|
var element = _iterator__ex2g4s.v();
|
|
382
|
-
var tmp$ret$2 = element.
|
|
383
|
-
destination.
|
|
383
|
+
var tmp$ret$2 = element.e3_1;
|
|
384
|
+
destination.w2(tmp$ret$2, element);
|
|
384
385
|
}
|
|
385
386
|
return destination;
|
|
386
387
|
};
|
|
@@ -421,7 +422,7 @@ function Language(name, ordinal) {
|
|
|
421
422
|
}
|
|
422
423
|
function toEmitter(_this__u8e3s4, packageName, emitShared) {
|
|
423
424
|
var tmp;
|
|
424
|
-
switch (_this__u8e3s4.
|
|
425
|
+
switch (_this__u8e3s4.f3_1) {
|
|
425
426
|
case 0:
|
|
426
427
|
tmp = new JavaEmitter(packageName, emitShared);
|
|
427
428
|
break;
|
|
@@ -500,11 +501,11 @@ function Language_Avro_getInstance() {
|
|
|
500
501
|
}
|
|
501
502
|
function compile_0(arguments_0) {
|
|
502
503
|
var ctx = new compile$ctx$1(arguments_0);
|
|
503
|
-
fold(compile(ctx, NonEmptySet__map_impl_ngjswd(arguments_0.
|
|
504
|
+
fold(compile(ctx, NonEmptySet__map_impl_ngjswd(arguments_0.g4x_1, compile$lambda), arguments_0.o4x_1), arguments_0);
|
|
504
505
|
}
|
|
505
506
|
function convert(arguments_0) {
|
|
506
507
|
var tmp;
|
|
507
|
-
switch (arguments_0.
|
|
508
|
+
switch (arguments_0.p4x_1.f3_1) {
|
|
508
509
|
case 0:
|
|
509
510
|
tmp = OpenAPIV2Parser_instance;
|
|
510
511
|
break;
|
|
@@ -525,9 +526,9 @@ function convert(arguments_0) {
|
|
|
525
526
|
break;
|
|
526
527
|
}
|
|
527
528
|
var parser = tmp;
|
|
528
|
-
var options = new ParseOptions(arguments_0.
|
|
529
|
+
var options = new ParseOptions(arguments_0.x4x_1);
|
|
529
530
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
530
|
-
var this_0 = NonEmptySet__map_impl_ngjswd(arguments_0.
|
|
531
|
+
var this_0 = NonEmptySet__map_impl_ngjswd(arguments_0.q4x_1, convert$lambda);
|
|
531
532
|
// Inline function 'kotlin.collections.map' call
|
|
532
533
|
var this_1 = _NonEmptyList___get_all__impl__pmf509(this_0);
|
|
533
534
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -535,7 +536,7 @@ function convert(arguments_0) {
|
|
|
535
536
|
var _iterator__ex2g4s = this_1.t();
|
|
536
537
|
while (_iterator__ex2g4s.u()) {
|
|
537
538
|
var item = _iterator__ex2g4s.v();
|
|
538
|
-
var tmp$ret$3 = parser.
|
|
539
|
+
var tmp$ret$3 = parser.u31(item, arguments_0.x4x_1);
|
|
539
540
|
destination.x(tmp$ret$3);
|
|
540
541
|
}
|
|
541
542
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
@@ -547,7 +548,7 @@ function convert(arguments_0) {
|
|
|
547
548
|
var _iterator__ex2g4s_0 = this_3.t();
|
|
548
549
|
while (_iterator__ex2g4s_0.u()) {
|
|
549
550
|
var item_0 = _iterator__ex2g4s_0.v();
|
|
550
|
-
var tmp$ret$7 = Validator_instance.
|
|
551
|
+
var tmp$ret$7 = Validator_instance.c1e(options, item_0);
|
|
551
552
|
destination_0.x(tmp$ret$7);
|
|
552
553
|
}
|
|
553
554
|
// Inline function 'kotlin.let' call
|
|
@@ -558,20 +559,20 @@ function convert(arguments_0) {
|
|
|
558
559
|
var raise = new DefaultRaise(false);
|
|
559
560
|
var tmp_0;
|
|
560
561
|
try {
|
|
561
|
-
var res = new NonEmptyList(raise.
|
|
562
|
-
raise.
|
|
562
|
+
var res = new NonEmptyList(raise.mn(it));
|
|
563
|
+
raise.dn();
|
|
563
564
|
tmp_0 = new Right(res);
|
|
564
565
|
} catch ($p) {
|
|
565
566
|
var tmp_1;
|
|
566
567
|
if ($p instanceof RaiseCancellationException) {
|
|
567
568
|
var e = $p;
|
|
568
|
-
raise.
|
|
569
|
+
raise.dn();
|
|
569
570
|
var it_0 = raisedOrRethrow(e, raise);
|
|
570
571
|
tmp_1 = new Left(it_0);
|
|
571
572
|
} else {
|
|
572
573
|
if ($p instanceof Error) {
|
|
573
574
|
var e_0 = $p;
|
|
574
|
-
raise.
|
|
575
|
+
raise.dn();
|
|
575
576
|
throw nonFatalOrThrow(e_0);
|
|
576
577
|
} else {
|
|
577
578
|
throw $p;
|
|
@@ -585,7 +586,7 @@ function convert(arguments_0) {
|
|
|
585
586
|
var tmp_2;
|
|
586
587
|
if (this_4 instanceof Right) {
|
|
587
588
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
588
|
-
var this_5 = this_4.
|
|
589
|
+
var this_5 = this_4.vm_1.en_1;
|
|
589
590
|
// Inline function 'kotlin.collections.map' call
|
|
590
591
|
var this_6 = _NonEmptyList___get_all__impl__pmf509(this_5);
|
|
591
592
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -593,7 +594,7 @@ function convert(arguments_0) {
|
|
|
593
594
|
var _iterator__ex2g4s_1 = this_6.t();
|
|
594
595
|
while (_iterator__ex2g4s_1.u()) {
|
|
595
596
|
var item_1 = _iterator__ex2g4s_1.v();
|
|
596
|
-
var tmp$ret$24 = arguments_0.
|
|
597
|
+
var tmp$ret$24 = arguments_0.y4x_1 ? withoutDefaults(item_1) : item_1;
|
|
597
598
|
destination_1.x(tmp$ret$24);
|
|
598
599
|
}
|
|
599
600
|
var tmp$ret$21 = _NonEmptyList___init__impl__fxd0xp(destination_1);
|
|
@@ -612,7 +613,7 @@ function convert(arguments_0) {
|
|
|
612
613
|
var tmp_3;
|
|
613
614
|
if (this_7 instanceof Right) {
|
|
614
615
|
// Inline function 'arrow.core.NonEmptyList.flatMap' call
|
|
615
|
-
var this_8 = this_7.
|
|
616
|
+
var this_8 = this_7.vm_1.en_1;
|
|
616
617
|
// Inline function 'kotlin.collections.flatMap' call
|
|
617
618
|
var tmp0 = _NonEmptyList___get_all__impl__pmf509(this_8);
|
|
618
619
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -620,7 +621,7 @@ function convert(arguments_0) {
|
|
|
620
621
|
var _iterator__ex2g4s_2 = tmp0.t();
|
|
621
622
|
while (_iterator__ex2g4s_2.u()) {
|
|
622
623
|
var element = _iterator__ex2g4s_2.v();
|
|
623
|
-
var list = new NonEmptyList(arguments_0.
|
|
624
|
+
var list = new NonEmptyList(arguments_0.r4x_1.uo(element, arguments_0.v4x_1));
|
|
624
625
|
addAll(destination_2, list);
|
|
625
626
|
}
|
|
626
627
|
var tmp$ret$29 = _NonEmptyList___init__impl__fxd0xp(destination_2);
|
|
@@ -641,7 +642,7 @@ function fold(_this__u8e3s4, arguments_0) {
|
|
|
641
642
|
var tmp;
|
|
642
643
|
if (_this__u8e3s4 instanceof Left) {
|
|
643
644
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
644
|
-
var this_0 = _this__u8e3s4.
|
|
645
|
+
var this_0 = _this__u8e3s4.tm_1.en_1;
|
|
645
646
|
// Inline function 'kotlin.collections.map' call
|
|
646
647
|
var this_1 = _NonEmptyList___get_all__impl__pmf509(this_0);
|
|
647
648
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -657,7 +658,7 @@ function fold(_this__u8e3s4, arguments_0) {
|
|
|
657
658
|
tmp = new Left(tmp$ret$1);
|
|
658
659
|
} else {
|
|
659
660
|
if (_this__u8e3s4 instanceof Right) {
|
|
660
|
-
tmp = new Right(_this__u8e3s4.
|
|
661
|
+
tmp = new Right(_this__u8e3s4.vm_1);
|
|
661
662
|
} else {
|
|
662
663
|
noWhenBranchMatchedException();
|
|
663
664
|
}
|
|
@@ -666,25 +667,25 @@ function fold(_this__u8e3s4, arguments_0) {
|
|
|
666
667
|
var this_2 = tmp;
|
|
667
668
|
var tmp_0;
|
|
668
669
|
if (this_2 instanceof Left) {
|
|
669
|
-
var it = this_2.
|
|
670
|
+
var it = this_2.tm_1.en_1;
|
|
670
671
|
var tmp$ret$7 = joinToString(new NonEmptyList(it));
|
|
671
672
|
tmp_0 = new Left(tmp$ret$7);
|
|
672
673
|
} else {
|
|
673
674
|
if (this_2 instanceof Right) {
|
|
674
|
-
tmp_0 = new Right(this_2.
|
|
675
|
+
tmp_0 = new Right(this_2.vm_1);
|
|
675
676
|
} else {
|
|
676
677
|
noWhenBranchMatchedException();
|
|
677
678
|
}
|
|
678
679
|
}
|
|
679
680
|
var tmp0 = tmp_0;
|
|
680
|
-
var tmp2 = arguments_0.
|
|
681
|
+
var tmp2 = arguments_0.u1h();
|
|
681
682
|
// Inline function 'arrow.core.Either.fold' call
|
|
682
|
-
var ifRight = arguments_0.
|
|
683
|
+
var ifRight = arguments_0.z4x();
|
|
683
684
|
if (tmp0 instanceof Right)
|
|
684
|
-
ifRight(tmp0.
|
|
685
|
+
ifRight(tmp0.vm_1);
|
|
685
686
|
else {
|
|
686
687
|
if (tmp0 instanceof Left)
|
|
687
|
-
tmp2(tmp0.
|
|
688
|
+
tmp2(tmp0.tm_1);
|
|
688
689
|
else {
|
|
689
690
|
noWhenBranchMatchedException();
|
|
690
691
|
}
|
|
@@ -692,52 +693,52 @@ function fold(_this__u8e3s4, arguments_0) {
|
|
|
692
693
|
return Unit_instance;
|
|
693
694
|
}
|
|
694
695
|
function compile$ctx$1($arguments) {
|
|
695
|
-
this.
|
|
696
|
-
this.
|
|
696
|
+
this.a4y_1 = $arguments.l4x_1;
|
|
697
|
+
this.b4y_1 = nonEmptySetOf($arguments.h4x_1, []);
|
|
697
698
|
}
|
|
698
|
-
protoOf(compile$ctx$1).
|
|
699
|
-
return this.
|
|
699
|
+
protoOf(compile$ctx$1).no = function () {
|
|
700
|
+
return this.a4y_1;
|
|
700
701
|
};
|
|
701
|
-
protoOf(compile$ctx$1).
|
|
702
|
-
return this.
|
|
702
|
+
protoOf(compile$ctx$1).to = function () {
|
|
703
|
+
return this.b4y_1;
|
|
703
704
|
};
|
|
704
705
|
function compile$lambda(it) {
|
|
705
|
-
return new ModuleContent(new FileUri(_Name___get_value__impl__3tbxxy(it.
|
|
706
|
+
return new ModuleContent(new FileUri(_Name___get_value__impl__3tbxxy(it.c4y_1)), it.d4y_1);
|
|
706
707
|
}
|
|
707
708
|
function convert$lambda(it) {
|
|
708
|
-
return new ModuleContent(new FileUri(_Name___get_value__impl__3tbxxy(it.
|
|
709
|
+
return new ModuleContent(new FileUri(_Name___get_value__impl__3tbxxy(it.c4y_1)), it.d4y_1);
|
|
709
710
|
}
|
|
710
711
|
function CompilerArguments(input, emitter, writer, error, packageName, logger, shared, strict, ignoreDefaults) {
|
|
711
712
|
ignoreDefaults = ignoreDefaults === VOID ? false : ignoreDefaults;
|
|
712
|
-
this.
|
|
713
|
-
this.
|
|
714
|
-
this.
|
|
715
|
-
this.
|
|
716
|
-
this.
|
|
717
|
-
this.
|
|
718
|
-
this.
|
|
719
|
-
this.
|
|
720
|
-
this.
|
|
721
|
-
}
|
|
722
|
-
protoOf(CompilerArguments).
|
|
723
|
-
return this.
|
|
713
|
+
this.g4x_1 = input;
|
|
714
|
+
this.h4x_1 = emitter;
|
|
715
|
+
this.i4x_1 = writer;
|
|
716
|
+
this.j4x_1 = error;
|
|
717
|
+
this.k4x_1 = packageName;
|
|
718
|
+
this.l4x_1 = logger;
|
|
719
|
+
this.m4x_1 = shared;
|
|
720
|
+
this.n4x_1 = strict;
|
|
721
|
+
this.o4x_1 = ignoreDefaults;
|
|
722
|
+
}
|
|
723
|
+
protoOf(CompilerArguments).z4x = function () {
|
|
724
|
+
return this.i4x_1;
|
|
724
725
|
};
|
|
725
|
-
protoOf(CompilerArguments).
|
|
726
|
-
return this.
|
|
726
|
+
protoOf(CompilerArguments).u1h = function () {
|
|
727
|
+
return this.j4x_1;
|
|
727
728
|
};
|
|
728
729
|
protoOf(CompilerArguments).toString = function () {
|
|
729
|
-
return 'CompilerArguments(input=' + NonEmptySet__toString_impl_yfcj6n(this.
|
|
730
|
+
return 'CompilerArguments(input=' + NonEmptySet__toString_impl_yfcj6n(this.g4x_1) + ', emitter=' + toString(this.h4x_1) + ', writer=' + toString(this.i4x_1) + ', error=' + toString(this.j4x_1) + ', packageName=' + this.k4x_1.toString() + ', logger=' + toString(this.l4x_1) + ', shared=' + this.m4x_1 + ', strict=' + this.n4x_1 + ', ignoreDefaults=' + this.o4x_1 + ')';
|
|
730
731
|
};
|
|
731
732
|
protoOf(CompilerArguments).hashCode = function () {
|
|
732
|
-
var result = NonEmptySet__hashCode_impl_co6mds(this.
|
|
733
|
-
result = imul(result, 31) + hashCode(this.
|
|
734
|
-
result = imul(result, 31) + hashCode(this.
|
|
735
|
-
result = imul(result, 31) + hashCode(this.
|
|
736
|
-
result = imul(result, 31) + hashCode(this.
|
|
737
|
-
result = imul(result, 31) + hashCode(this.
|
|
738
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
739
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
740
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
733
|
+
var result = NonEmptySet__hashCode_impl_co6mds(this.g4x_1);
|
|
734
|
+
result = imul(result, 31) + hashCode(this.h4x_1) | 0;
|
|
735
|
+
result = imul(result, 31) + hashCode(this.i4x_1) | 0;
|
|
736
|
+
result = imul(result, 31) + hashCode(this.j4x_1) | 0;
|
|
737
|
+
result = imul(result, 31) + hashCode(this.k4x_1) | 0;
|
|
738
|
+
result = imul(result, 31) + hashCode(this.l4x_1) | 0;
|
|
739
|
+
result = imul(result, 31) + getBooleanHashCode(this.m4x_1) | 0;
|
|
740
|
+
result = imul(result, 31) + getBooleanHashCode(this.n4x_1) | 0;
|
|
741
|
+
result = imul(result, 31) + getBooleanHashCode(this.o4x_1) | 0;
|
|
741
742
|
return result;
|
|
742
743
|
};
|
|
743
744
|
protoOf(CompilerArguments).equals = function (other) {
|
|
@@ -745,59 +746,59 @@ protoOf(CompilerArguments).equals = function (other) {
|
|
|
745
746
|
return true;
|
|
746
747
|
if (!(other instanceof CompilerArguments))
|
|
747
748
|
return false;
|
|
748
|
-
if (!equals(new NonEmptySet(this.
|
|
749
|
+
if (!equals(new NonEmptySet(this.g4x_1), new NonEmptySet(other.g4x_1)))
|
|
749
750
|
return false;
|
|
750
|
-
if (!equals(this.
|
|
751
|
+
if (!equals(this.h4x_1, other.h4x_1))
|
|
751
752
|
return false;
|
|
752
|
-
if (!equals(this.
|
|
753
|
+
if (!equals(this.i4x_1, other.i4x_1))
|
|
753
754
|
return false;
|
|
754
|
-
if (!equals(this.
|
|
755
|
+
if (!equals(this.j4x_1, other.j4x_1))
|
|
755
756
|
return false;
|
|
756
|
-
if (!equals(this.
|
|
757
|
+
if (!equals(this.k4x_1, other.k4x_1))
|
|
757
758
|
return false;
|
|
758
|
-
if (!equals(this.
|
|
759
|
+
if (!equals(this.l4x_1, other.l4x_1))
|
|
759
760
|
return false;
|
|
760
|
-
if (!(this.
|
|
761
|
+
if (!(this.m4x_1 === other.m4x_1))
|
|
761
762
|
return false;
|
|
762
|
-
if (!(this.
|
|
763
|
+
if (!(this.n4x_1 === other.n4x_1))
|
|
763
764
|
return false;
|
|
764
|
-
if (!(this.
|
|
765
|
+
if (!(this.o4x_1 === other.o4x_1))
|
|
765
766
|
return false;
|
|
766
767
|
return true;
|
|
767
768
|
};
|
|
768
769
|
function ConverterArguments(format, input, emitter, writer, error, packageName, logger, shared, strict, ignoreDefaults) {
|
|
769
770
|
ignoreDefaults = ignoreDefaults === VOID ? false : ignoreDefaults;
|
|
770
|
-
this.
|
|
771
|
-
this.
|
|
772
|
-
this.
|
|
773
|
-
this.
|
|
774
|
-
this.
|
|
775
|
-
this.
|
|
776
|
-
this.
|
|
777
|
-
this.
|
|
778
|
-
this.
|
|
779
|
-
this.
|
|
780
|
-
}
|
|
781
|
-
protoOf(ConverterArguments).
|
|
782
|
-
return this.
|
|
771
|
+
this.p4x_1 = format;
|
|
772
|
+
this.q4x_1 = input;
|
|
773
|
+
this.r4x_1 = emitter;
|
|
774
|
+
this.s4x_1 = writer;
|
|
775
|
+
this.t4x_1 = error;
|
|
776
|
+
this.u4x_1 = packageName;
|
|
777
|
+
this.v4x_1 = logger;
|
|
778
|
+
this.w4x_1 = shared;
|
|
779
|
+
this.x4x_1 = strict;
|
|
780
|
+
this.y4x_1 = ignoreDefaults;
|
|
781
|
+
}
|
|
782
|
+
protoOf(ConverterArguments).z4x = function () {
|
|
783
|
+
return this.s4x_1;
|
|
783
784
|
};
|
|
784
|
-
protoOf(ConverterArguments).
|
|
785
|
-
return this.
|
|
785
|
+
protoOf(ConverterArguments).u1h = function () {
|
|
786
|
+
return this.t4x_1;
|
|
786
787
|
};
|
|
787
788
|
protoOf(ConverterArguments).toString = function () {
|
|
788
|
-
return 'ConverterArguments(format=' + this.
|
|
789
|
+
return 'ConverterArguments(format=' + this.p4x_1.toString() + ', input=' + NonEmptySet__toString_impl_yfcj6n(this.q4x_1) + ', emitter=' + toString(this.r4x_1) + ', writer=' + toString(this.s4x_1) + ', error=' + toString(this.t4x_1) + ', packageName=' + this.u4x_1.toString() + ', logger=' + toString(this.v4x_1) + ', shared=' + this.w4x_1 + ', strict=' + this.x4x_1 + ', ignoreDefaults=' + this.y4x_1 + ')';
|
|
789
790
|
};
|
|
790
791
|
protoOf(ConverterArguments).hashCode = function () {
|
|
791
|
-
var result = this.
|
|
792
|
-
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.
|
|
793
|
-
result = imul(result, 31) + hashCode(this.
|
|
794
|
-
result = imul(result, 31) + hashCode(this.
|
|
795
|
-
result = imul(result, 31) + hashCode(this.
|
|
796
|
-
result = imul(result, 31) + hashCode(this.
|
|
797
|
-
result = imul(result, 31) + hashCode(this.
|
|
798
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
799
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
800
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
792
|
+
var result = this.p4x_1.hashCode();
|
|
793
|
+
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.q4x_1) | 0;
|
|
794
|
+
result = imul(result, 31) + hashCode(this.r4x_1) | 0;
|
|
795
|
+
result = imul(result, 31) + hashCode(this.s4x_1) | 0;
|
|
796
|
+
result = imul(result, 31) + hashCode(this.t4x_1) | 0;
|
|
797
|
+
result = imul(result, 31) + hashCode(this.u4x_1) | 0;
|
|
798
|
+
result = imul(result, 31) + hashCode(this.v4x_1) | 0;
|
|
799
|
+
result = imul(result, 31) + getBooleanHashCode(this.w4x_1) | 0;
|
|
800
|
+
result = imul(result, 31) + getBooleanHashCode(this.x4x_1) | 0;
|
|
801
|
+
result = imul(result, 31) + getBooleanHashCode(this.y4x_1) | 0;
|
|
801
802
|
return result;
|
|
802
803
|
};
|
|
803
804
|
protoOf(ConverterArguments).equals = function (other) {
|
|
@@ -805,38 +806,38 @@ protoOf(ConverterArguments).equals = function (other) {
|
|
|
805
806
|
return true;
|
|
806
807
|
if (!(other instanceof ConverterArguments))
|
|
807
808
|
return false;
|
|
808
|
-
if (!this.
|
|
809
|
+
if (!this.p4x_1.equals(other.p4x_1))
|
|
809
810
|
return false;
|
|
810
|
-
if (!equals(new NonEmptySet(this.
|
|
811
|
+
if (!equals(new NonEmptySet(this.q4x_1), new NonEmptySet(other.q4x_1)))
|
|
811
812
|
return false;
|
|
812
|
-
if (!equals(this.
|
|
813
|
+
if (!equals(this.r4x_1, other.r4x_1))
|
|
813
814
|
return false;
|
|
814
|
-
if (!equals(this.
|
|
815
|
+
if (!equals(this.s4x_1, other.s4x_1))
|
|
815
816
|
return false;
|
|
816
|
-
if (!equals(this.
|
|
817
|
+
if (!equals(this.t4x_1, other.t4x_1))
|
|
817
818
|
return false;
|
|
818
|
-
if (!equals(this.
|
|
819
|
+
if (!equals(this.u4x_1, other.u4x_1))
|
|
819
820
|
return false;
|
|
820
|
-
if (!equals(this.
|
|
821
|
+
if (!equals(this.v4x_1, other.v4x_1))
|
|
821
822
|
return false;
|
|
822
|
-
if (!(this.
|
|
823
|
+
if (!(this.w4x_1 === other.w4x_1))
|
|
823
824
|
return false;
|
|
824
|
-
if (!(this.
|
|
825
|
+
if (!(this.x4x_1 === other.x4x_1))
|
|
825
826
|
return false;
|
|
826
|
-
if (!(this.
|
|
827
|
+
if (!(this.y4x_1 === other.y4x_1))
|
|
827
828
|
return false;
|
|
828
829
|
return true;
|
|
829
830
|
};
|
|
830
831
|
function Source(name, content) {
|
|
831
|
-
this.
|
|
832
|
-
this.
|
|
832
|
+
this.c4y_1 = name;
|
|
833
|
+
this.d4y_1 = content;
|
|
833
834
|
}
|
|
834
835
|
protoOf(Source).toString = function () {
|
|
835
|
-
return 'Source(name=' + Name__toString_impl_61tomu(this.
|
|
836
|
+
return 'Source(name=' + Name__toString_impl_61tomu(this.c4y_1) + ', content=' + this.d4y_1 + ')';
|
|
836
837
|
};
|
|
837
838
|
protoOf(Source).hashCode = function () {
|
|
838
|
-
var result = Name__hashCode_impl_fpc861(this.
|
|
839
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
839
|
+
var result = Name__hashCode_impl_fpc861(this.c4y_1);
|
|
840
|
+
result = imul(result, 31) + getStringHashCode(this.d4y_1) | 0;
|
|
840
841
|
return result;
|
|
841
842
|
};
|
|
842
843
|
protoOf(Source).equals = function (other) {
|
|
@@ -844,9 +845,9 @@ protoOf(Source).equals = function (other) {
|
|
|
844
845
|
return true;
|
|
845
846
|
if (!(other instanceof Source))
|
|
846
847
|
return false;
|
|
847
|
-
if (!(this.
|
|
848
|
+
if (!(this.c4y_1 === other.c4y_1))
|
|
848
849
|
return false;
|
|
849
|
-
if (!(this.
|
|
850
|
+
if (!(this.d4y_1 === other.d4y_1))
|
|
850
851
|
return false;
|
|
851
852
|
return true;
|
|
852
853
|
};
|
|
@@ -877,24 +878,24 @@ function ClassPath__hashCode_impl_cciyyd($this) {
|
|
|
877
878
|
function ClassPath__equals_impl_kffpch($this, other) {
|
|
878
879
|
if (!(other instanceof ClassPath))
|
|
879
880
|
return false;
|
|
880
|
-
if (!($this === other.
|
|
881
|
+
if (!($this === other.e4y_1))
|
|
881
882
|
return false;
|
|
882
883
|
return true;
|
|
883
884
|
}
|
|
884
885
|
function ClassPath(value) {
|
|
885
|
-
this.
|
|
886
|
+
this.e4y_1 = value;
|
|
886
887
|
}
|
|
887
888
|
protoOf(ClassPath).o1 = function () {
|
|
888
|
-
return _ClassPath___get_value__impl__lfuxg0(this.
|
|
889
|
+
return _ClassPath___get_value__impl__lfuxg0(this.e4y_1);
|
|
889
890
|
};
|
|
890
891
|
protoOf(ClassPath).toString = function () {
|
|
891
|
-
return ClassPath__toString_impl_y3ovr8(this.
|
|
892
|
+
return ClassPath__toString_impl_y3ovr8(this.e4y_1);
|
|
892
893
|
};
|
|
893
894
|
protoOf(ClassPath).hashCode = function () {
|
|
894
|
-
return ClassPath__hashCode_impl_cciyyd(this.
|
|
895
|
+
return ClassPath__hashCode_impl_cciyyd(this.e4y_1);
|
|
895
896
|
};
|
|
896
897
|
protoOf(ClassPath).equals = function (other) {
|
|
897
|
-
return ClassPath__equals_impl_kffpch(this.
|
|
898
|
+
return ClassPath__equals_impl_kffpch(this.e4y_1, other);
|
|
898
899
|
};
|
|
899
900
|
function _DirectoryPath___init__impl__5bzkjd(value) {
|
|
900
901
|
return value;
|
|
@@ -911,31 +912,31 @@ function DirectoryPath__hashCode_impl_cv3skg($this) {
|
|
|
911
912
|
function DirectoryPath__equals_impl_c2rwsc($this, other) {
|
|
912
913
|
if (!(other instanceof DirectoryPath))
|
|
913
914
|
return false;
|
|
914
|
-
if (!($this === other.
|
|
915
|
+
if (!($this === other.f4y_1))
|
|
915
916
|
return false;
|
|
916
917
|
return true;
|
|
917
918
|
}
|
|
918
919
|
function DirectoryPath(value) {
|
|
919
|
-
this.
|
|
920
|
+
this.f4y_1 = value;
|
|
920
921
|
}
|
|
921
922
|
protoOf(DirectoryPath).o1 = function () {
|
|
922
|
-
return _DirectoryPath___get_value__impl__hdy2e3(this.
|
|
923
|
+
return _DirectoryPath___get_value__impl__hdy2e3(this.f4y_1);
|
|
923
924
|
};
|
|
924
925
|
protoOf(DirectoryPath).toString = function () {
|
|
925
|
-
return DirectoryPath__toString_impl_ym9pdb(this.
|
|
926
|
+
return DirectoryPath__toString_impl_ym9pdb(this.f4y_1);
|
|
926
927
|
};
|
|
927
928
|
protoOf(DirectoryPath).hashCode = function () {
|
|
928
|
-
return DirectoryPath__hashCode_impl_cv3skg(this.
|
|
929
|
+
return DirectoryPath__hashCode_impl_cv3skg(this.f4y_1);
|
|
929
930
|
};
|
|
930
931
|
protoOf(DirectoryPath).equals = function (other) {
|
|
931
|
-
return DirectoryPath__equals_impl_c2rwsc(this.
|
|
932
|
+
return DirectoryPath__equals_impl_c2rwsc(this.f4y_1, other);
|
|
932
933
|
};
|
|
933
934
|
function Directory(path) {
|
|
934
|
-
this.
|
|
935
|
+
this.g4y_1 = path;
|
|
935
936
|
}
|
|
936
937
|
function Companion_2() {
|
|
937
938
|
}
|
|
938
|
-
protoOf(Companion_2).
|
|
939
|
+
protoOf(Companion_2).h4y = function (input) {
|
|
939
940
|
// Inline function 'kotlin.let' call
|
|
940
941
|
var it = split(input, ['/']);
|
|
941
942
|
var list = plus(dropLast(it, 1), split(last(it), ['.']));
|
|
@@ -950,7 +951,7 @@ protoOf(Companion_2).p4y = function (input) {
|
|
|
950
951
|
var _iterator__ex2g4s = tmp0.t();
|
|
951
952
|
while (_iterator__ex2g4s.u()) {
|
|
952
953
|
var element = _iterator__ex2g4s.v();
|
|
953
|
-
if (element.
|
|
954
|
+
if (element.yr_1 === ext) {
|
|
954
955
|
tmp$ret$5 = element;
|
|
955
956
|
break $l$block;
|
|
956
957
|
}
|
|
@@ -969,7 +970,16 @@ protoOf(Companion_2).p4y = function (input) {
|
|
|
969
970
|
var extension = tmp;
|
|
970
971
|
var idxOfFileName = list.c1() - 2 | 0;
|
|
971
972
|
var filename = _Name___init__impl__o4q07e(list.b1(idxOfFileName));
|
|
972
|
-
|
|
973
|
+
// Inline function 'kotlin.collections.ifEmpty' call
|
|
974
|
+
var this_0 = list.q2(0, idxOfFileName);
|
|
975
|
+
var tmp_0;
|
|
976
|
+
if (this_0.r()) {
|
|
977
|
+
tmp_0 = listOf('.');
|
|
978
|
+
} else {
|
|
979
|
+
tmp_0 = this_0;
|
|
980
|
+
}
|
|
981
|
+
var tmp$ret$8 = tmp_0;
|
|
982
|
+
var path = joinToString(tmp$ret$8, '/');
|
|
973
983
|
return new FilePath(_DirectoryPath___init__impl__5bzkjd(path), filename, extension);
|
|
974
984
|
};
|
|
975
985
|
var Companion_instance_2;
|
|
@@ -977,17 +987,17 @@ function Companion_getInstance_2() {
|
|
|
977
987
|
return Companion_instance_2;
|
|
978
988
|
}
|
|
979
989
|
function FilePath(directory, name, extension) {
|
|
980
|
-
this.
|
|
981
|
-
this.
|
|
982
|
-
this.
|
|
990
|
+
this.i4y_1 = directory;
|
|
991
|
+
this.j4y_1 = name;
|
|
992
|
+
this.k4y_1 = extension;
|
|
983
993
|
}
|
|
984
994
|
protoOf(FilePath).toString = function () {
|
|
985
|
-
return DirectoryPath__toString_impl_ym9pdb(this.
|
|
995
|
+
return DirectoryPath__toString_impl_ym9pdb(this.i4y_1) + '/' + _Name___get_value__impl__3tbxxy(this.j4y_1) + '.' + this.k4y_1.yr_1;
|
|
986
996
|
};
|
|
987
997
|
protoOf(FilePath).hashCode = function () {
|
|
988
|
-
var result = DirectoryPath__hashCode_impl_cv3skg(this.
|
|
989
|
-
result = imul(result, 31) + Name__hashCode_impl_fpc861(this.
|
|
990
|
-
result = imul(result, 31) + this.
|
|
998
|
+
var result = DirectoryPath__hashCode_impl_cv3skg(this.i4y_1);
|
|
999
|
+
result = imul(result, 31) + Name__hashCode_impl_fpc861(this.j4y_1) | 0;
|
|
1000
|
+
result = imul(result, 31) + this.k4y_1.hashCode() | 0;
|
|
991
1001
|
return result;
|
|
992
1002
|
};
|
|
993
1003
|
protoOf(FilePath).equals = function (other) {
|
|
@@ -995,24 +1005,24 @@ protoOf(FilePath).equals = function (other) {
|
|
|
995
1005
|
return true;
|
|
996
1006
|
if (!(other instanceof FilePath))
|
|
997
1007
|
return false;
|
|
998
|
-
if (!(this.
|
|
1008
|
+
if (!(this.i4y_1 === other.i4y_1))
|
|
999
1009
|
return false;
|
|
1000
|
-
if (!(this.
|
|
1010
|
+
if (!(this.j4y_1 === other.j4y_1))
|
|
1001
1011
|
return false;
|
|
1002
|
-
if (!this.
|
|
1012
|
+
if (!this.k4y_1.equals(other.k4y_1))
|
|
1003
1013
|
return false;
|
|
1004
1014
|
return true;
|
|
1005
1015
|
};
|
|
1006
1016
|
function path(_this__u8e3s4) {
|
|
1007
1017
|
var tmp;
|
|
1008
1018
|
if (_this__u8e3s4 instanceof ClassPath) {
|
|
1009
|
-
tmp = _ClassPath___get_value__impl__lfuxg0(_this__u8e3s4.
|
|
1019
|
+
tmp = _ClassPath___get_value__impl__lfuxg0(_this__u8e3s4.e4y_1);
|
|
1010
1020
|
} else {
|
|
1011
1021
|
if (_this__u8e3s4 instanceof DirectoryPath) {
|
|
1012
|
-
tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.
|
|
1022
|
+
tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.f4y_1);
|
|
1013
1023
|
} else {
|
|
1014
1024
|
if (_this__u8e3s4 instanceof FilePath) {
|
|
1015
|
-
tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.
|
|
1025
|
+
tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.i4y_1);
|
|
1016
1026
|
} else {
|
|
1017
1027
|
noWhenBranchMatchedException();
|
|
1018
1028
|
}
|
|
@@ -1021,13 +1031,13 @@ function path(_this__u8e3s4) {
|
|
|
1021
1031
|
return tmp;
|
|
1022
1032
|
}
|
|
1023
1033
|
function IOError(message) {
|
|
1024
|
-
this.
|
|
1034
|
+
this.l4y_1 = message;
|
|
1025
1035
|
}
|
|
1026
1036
|
function WirespecFileError() {
|
|
1027
1037
|
SpecificFile.call(this, FileExtension_Wirespec_getInstance());
|
|
1028
1038
|
}
|
|
1029
1039
|
function SpecificFile(extension) {
|
|
1030
|
-
IOError.call(this, 'No ' + extension.
|
|
1040
|
+
IOError.call(this, 'No ' + extension.e3_1 + ' file found');
|
|
1031
1041
|
}
|
|
1032
1042
|
function CannotAccessFileOrDirectory(input) {
|
|
1033
1043
|
IOError.call(this, 'Cannot access file or directory: ' + input + '.');
|
|
@@ -1053,39 +1063,39 @@ function getFullPath(input, createIfNotExists_0) {
|
|
|
1053
1063
|
tmp_0 = new ClassPath(_ClassPath___init__impl__obyw3o(substringAfter(input, 'classpath:')));
|
|
1054
1064
|
} else {
|
|
1055
1065
|
var path = createIfNotExists(Path(input), createIfNotExists_0);
|
|
1056
|
-
var tmp0_elvis_lhs = get_SystemFileSystem().
|
|
1066
|
+
var tmp0_elvis_lhs = get_SystemFileSystem().p4w(path);
|
|
1057
1067
|
var tmp_1;
|
|
1058
1068
|
if (tmp0_elvis_lhs == null) {
|
|
1059
|
-
raise.
|
|
1069
|
+
raise.hn(new CannotAccessFileOrDirectory(input));
|
|
1060
1070
|
} else {
|
|
1061
1071
|
tmp_1 = tmp0_elvis_lhs;
|
|
1062
1072
|
}
|
|
1063
1073
|
var meta = tmp_1;
|
|
1064
1074
|
var pathString = path.toString();
|
|
1065
1075
|
var tmp_2;
|
|
1066
|
-
if (meta.
|
|
1076
|
+
if (meta.i4w_1) {
|
|
1067
1077
|
tmp_2 = new DirectoryPath(_DirectoryPath___init__impl__5bzkjd(pathString));
|
|
1068
|
-
} else if (meta.
|
|
1069
|
-
tmp_2 = Companion_instance_2.
|
|
1078
|
+
} else if (meta.h4w_1) {
|
|
1079
|
+
tmp_2 = Companion_instance_2.h4y(pathString);
|
|
1070
1080
|
} else {
|
|
1071
|
-
raise.
|
|
1081
|
+
raise.hn(new IsNotAFileOrDirectory(pathString));
|
|
1072
1082
|
}
|
|
1073
1083
|
tmp_0 = tmp_2;
|
|
1074
1084
|
}
|
|
1075
1085
|
var res = tmp_0;
|
|
1076
|
-
raise.
|
|
1086
|
+
raise.dn();
|
|
1077
1087
|
tmp = new Right(res);
|
|
1078
1088
|
} catch ($p) {
|
|
1079
1089
|
var tmp_3;
|
|
1080
1090
|
if ($p instanceof RaiseCancellationException) {
|
|
1081
1091
|
var e = $p;
|
|
1082
|
-
raise.
|
|
1092
|
+
raise.dn();
|
|
1083
1093
|
var it = raisedOrRethrow(e, raise);
|
|
1084
1094
|
tmp_3 = new Left(it);
|
|
1085
1095
|
} else {
|
|
1086
1096
|
if ($p instanceof Error) {
|
|
1087
1097
|
var e_0 = $p;
|
|
1088
|
-
raise.
|
|
1098
|
+
raise.dn();
|
|
1089
1099
|
throw nonFatalOrThrow(e_0);
|
|
1090
1100
|
} else {
|
|
1091
1101
|
throw $p;
|
|
@@ -1100,12 +1110,12 @@ function or(_this__u8e3s4, errorFn) {
|
|
|
1100
1110
|
var tmp;
|
|
1101
1111
|
if (_this__u8e3s4 instanceof Left) {
|
|
1102
1112
|
var tmp$ret$1;
|
|
1103
|
-
errorFn(_this__u8e3s4.
|
|
1113
|
+
errorFn(_this__u8e3s4.tm_1.l4y_1);
|
|
1104
1114
|
throwKotlinNothingValueException();
|
|
1105
1115
|
tmp = tmp$ret$1;
|
|
1106
1116
|
} else {
|
|
1107
1117
|
if (_this__u8e3s4 instanceof Right) {
|
|
1108
|
-
tmp = _this__u8e3s4.
|
|
1118
|
+
tmp = _this__u8e3s4.vm_1;
|
|
1109
1119
|
} else {
|
|
1110
1120
|
noWhenBranchMatchedException();
|
|
1111
1121
|
}
|
|
@@ -1119,10 +1129,10 @@ function wirespecSources(_this__u8e3s4, logger) {
|
|
|
1119
1129
|
var raise = new DefaultRaise(false);
|
|
1120
1130
|
var tmp;
|
|
1121
1131
|
try {
|
|
1122
|
-
var tmp0 = Path(_DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.
|
|
1132
|
+
var tmp0 = Path(_DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.g4y_1));
|
|
1123
1133
|
// Inline function 'kotlin.let' call
|
|
1124
1134
|
// Inline function 'kotlin.collections.filter' call
|
|
1125
|
-
var tmp0_0 = get_SystemFileSystem().
|
|
1135
|
+
var tmp0_0 = get_SystemFileSystem().q4w(tmp0);
|
|
1126
1136
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1127
1137
|
var destination = ArrayList_init_$Create$();
|
|
1128
1138
|
var _iterator__ex2g4s = tmp0_0.t();
|
|
@@ -1148,11 +1158,11 @@ function wirespecSources(_this__u8e3s4, logger) {
|
|
|
1148
1158
|
var _iterator__ex2g4s_1 = destination_0.t();
|
|
1149
1159
|
while (_iterator__ex2g4s_1.u()) {
|
|
1150
1160
|
var item = _iterator__ex2g4s_1.v();
|
|
1151
|
-
var tmp$ret$14 = to(Companion_instance_2.
|
|
1161
|
+
var tmp$ret$14 = to(Companion_instance_2.h4y(item.toString()), readString(buffered(get_SystemFileSystem().m4w(item))));
|
|
1152
1162
|
destination_1.x(tmp$ret$14);
|
|
1153
1163
|
}
|
|
1154
1164
|
// Inline function 'kotlin.also' call
|
|
1155
|
-
logger.
|
|
1165
|
+
logger.bs('Found ' + destination_1.c1() + ' file(s) to process in ' + _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.g4y_1));
|
|
1156
1166
|
// Inline function 'kotlin.collections.forEachIndexed' call
|
|
1157
1167
|
var index = 0;
|
|
1158
1168
|
var _iterator__ex2g4s_2 = destination_1.t();
|
|
@@ -1161,7 +1171,7 @@ function wirespecSources(_this__u8e3s4, logger) {
|
|
|
1161
1171
|
var _unary__edvuaz = index;
|
|
1162
1172
|
index = _unary__edvuaz + 1 | 0;
|
|
1163
1173
|
var prefix = checkIndexOverflow(_unary__edvuaz) < (destination_1.c1() - 1 | 0) ? '\u251C\u2500\u2500 ' : '\u2514\u2500\u2500 ';
|
|
1164
|
-
logger.
|
|
1174
|
+
logger.bs(' ' + prefix + ' ' + _Name___get_value__impl__3tbxxy(item_0.gf_1.j4y_1) + '.' + item_0.gf_1.k4y_1.yr_1);
|
|
1165
1175
|
}
|
|
1166
1176
|
// Inline function 'kotlin.collections.map' call
|
|
1167
1177
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -1169,33 +1179,33 @@ function wirespecSources(_this__u8e3s4, logger) {
|
|
|
1169
1179
|
var _iterator__ex2g4s_3 = destination_1.t();
|
|
1170
1180
|
while (_iterator__ex2g4s_3.u()) {
|
|
1171
1181
|
var item_1 = _iterator__ex2g4s_3.v();
|
|
1172
|
-
var path = item_1.
|
|
1173
|
-
var source = item_1.
|
|
1174
|
-
var tmp$ret$21 = new Source(path.
|
|
1182
|
+
var path = item_1.af();
|
|
1183
|
+
var source = item_1.bf();
|
|
1184
|
+
var tmp$ret$21 = new Source(path.j4y_1, source);
|
|
1175
1185
|
destination_2.x(tmp$ret$21);
|
|
1176
1186
|
}
|
|
1177
1187
|
var tmp0_elvis_lhs = toNonEmptySetOrNull(destination_2);
|
|
1178
1188
|
var tmp_0;
|
|
1179
1189
|
var tmp_1 = tmp0_elvis_lhs;
|
|
1180
1190
|
if ((tmp_1 == null ? null : new NonEmptySet(tmp_1)) == null) {
|
|
1181
|
-
raise.
|
|
1191
|
+
raise.hn(new WirespecFileError());
|
|
1182
1192
|
} else {
|
|
1183
1193
|
tmp_0 = tmp0_elvis_lhs;
|
|
1184
1194
|
}
|
|
1185
1195
|
var res = new NonEmptySet(tmp_0);
|
|
1186
|
-
raise.
|
|
1196
|
+
raise.dn();
|
|
1187
1197
|
tmp = new Right(res);
|
|
1188
1198
|
} catch ($p) {
|
|
1189
1199
|
var tmp_2;
|
|
1190
1200
|
if ($p instanceof RaiseCancellationException) {
|
|
1191
1201
|
var e = $p;
|
|
1192
|
-
raise.
|
|
1202
|
+
raise.dn();
|
|
1193
1203
|
var it = raisedOrRethrow(e, raise);
|
|
1194
1204
|
tmp_2 = new Left(it);
|
|
1195
1205
|
} else {
|
|
1196
1206
|
if ($p instanceof Error) {
|
|
1197
1207
|
var e_0 = $p;
|
|
1198
|
-
raise.
|
|
1208
|
+
raise.dn();
|
|
1199
1209
|
throw nonFatalOrThrow(e_0);
|
|
1200
1210
|
} else {
|
|
1201
1211
|
throw $p;
|
|
@@ -1208,7 +1218,7 @@ function wirespecSources(_this__u8e3s4, logger) {
|
|
|
1208
1218
|
function read(_this__u8e3s4) {
|
|
1209
1219
|
// Inline function 'kotlin.let' call
|
|
1210
1220
|
var it = Path(_this__u8e3s4.toString());
|
|
1211
|
-
return readString(buffered(get_SystemFileSystem().
|
|
1221
|
+
return readString(buffered(get_SystemFileSystem().m4w(it)));
|
|
1212
1222
|
}
|
|
1213
1223
|
function getOutPutPath(inputPath, output) {
|
|
1214
1224
|
// Inline function 'arrow.core.raise.either' call
|
|
@@ -1217,13 +1227,13 @@ function getOutPutPath(inputPath, output) {
|
|
|
1217
1227
|
var raise = new DefaultRaise(false);
|
|
1218
1228
|
var tmp;
|
|
1219
1229
|
try {
|
|
1220
|
-
var it = raise.
|
|
1230
|
+
var it = raise.ln(getFullPath(output, true));
|
|
1221
1231
|
var tmp_0;
|
|
1222
1232
|
if (it == null) {
|
|
1223
1233
|
tmp_0 = _DirectoryPath___init__impl__5bzkjd(path(inputPath) + '/out');
|
|
1224
1234
|
} else {
|
|
1225
1235
|
if (it instanceof DirectoryPath) {
|
|
1226
|
-
tmp_0 = it.
|
|
1236
|
+
tmp_0 = it.f4y_1;
|
|
1227
1237
|
} else {
|
|
1228
1238
|
var tmp_1;
|
|
1229
1239
|
if (it instanceof FilePath) {
|
|
@@ -1232,26 +1242,26 @@ function getOutPutPath(inputPath, output) {
|
|
|
1232
1242
|
tmp_1 = it instanceof ClassPath;
|
|
1233
1243
|
}
|
|
1234
1244
|
if (tmp_1) {
|
|
1235
|
-
raise.
|
|
1245
|
+
raise.hn(new OutputShouldBeADirectory());
|
|
1236
1246
|
} else {
|
|
1237
1247
|
noWhenBranchMatchedException();
|
|
1238
1248
|
}
|
|
1239
1249
|
}
|
|
1240
1250
|
}
|
|
1241
1251
|
var res = new DirectoryPath(tmp_0);
|
|
1242
|
-
raise.
|
|
1252
|
+
raise.dn();
|
|
1243
1253
|
tmp = new Right(res);
|
|
1244
1254
|
} catch ($p) {
|
|
1245
1255
|
var tmp_2;
|
|
1246
1256
|
if ($p instanceof RaiseCancellationException) {
|
|
1247
1257
|
var e = $p;
|
|
1248
|
-
raise.
|
|
1258
|
+
raise.dn();
|
|
1249
1259
|
var it_0 = raisedOrRethrow(e, raise);
|
|
1250
1260
|
tmp_2 = new Left(it_0);
|
|
1251
1261
|
} else {
|
|
1252
1262
|
if ($p instanceof Error) {
|
|
1253
1263
|
var e_0 = $p;
|
|
1254
|
-
raise.
|
|
1264
|
+
raise.dn();
|
|
1255
1265
|
throw nonFatalOrThrow(e_0);
|
|
1256
1266
|
} else {
|
|
1257
1267
|
throw $p;
|
|
@@ -1264,38 +1274,38 @@ function getOutPutPath(inputPath, output) {
|
|
|
1264
1274
|
function write(_this__u8e3s4, string) {
|
|
1265
1275
|
// Inline function 'kotlin.also' call
|
|
1266
1276
|
var this_0 = Path(_this__u8e3s4.toString());
|
|
1267
|
-
var tmp0_safe_receiver = this_0.
|
|
1277
|
+
var tmp0_safe_receiver = this_0.s4w();
|
|
1268
1278
|
if (tmp0_safe_receiver == null)
|
|
1269
1279
|
null;
|
|
1270
1280
|
else
|
|
1271
1281
|
createIfNotExists(tmp0_safe_receiver);
|
|
1272
1282
|
// Inline function 'kotlin.let' call
|
|
1273
1283
|
// Inline function 'kotlin.apply' call
|
|
1274
|
-
var this_1 = buffered_0(get_SystemFileSystem().
|
|
1284
|
+
var this_1 = buffered_0(get_SystemFileSystem().o4w(this_0));
|
|
1275
1285
|
writeString(this_1, string);
|
|
1276
|
-
this_1.
|
|
1286
|
+
this_1.d9();
|
|
1277
1287
|
return Unit_instance;
|
|
1278
1288
|
}
|
|
1279
1289
|
function createIfNotExists(_this__u8e3s4, create) {
|
|
1280
1290
|
create = create === VOID ? true : create;
|
|
1281
1291
|
// Inline function 'kotlin.also' call
|
|
1282
|
-
if (create && !get_SystemFileSystem().
|
|
1283
|
-
get_SystemFileSystem().
|
|
1292
|
+
if (create && !get_SystemFileSystem().k4w(_this__u8e3s4)) {
|
|
1293
|
+
get_SystemFileSystem().l4w(_this__u8e3s4, true);
|
|
1284
1294
|
}
|
|
1285
1295
|
return _this__u8e3s4;
|
|
1286
1296
|
}
|
|
1287
1297
|
function isRegularFile(path) {
|
|
1288
|
-
var tmp0_safe_receiver = get_SystemFileSystem().
|
|
1289
|
-
return (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1298
|
+
var tmp0_safe_receiver = get_SystemFileSystem().p4w(path);
|
|
1299
|
+
return (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.h4w_1) === true;
|
|
1290
1300
|
}
|
|
1291
1301
|
function isWirespecFile(path) {
|
|
1292
|
-
return get_extension(path) === FileExtension_Wirespec_getInstance().
|
|
1302
|
+
return get_extension(path) === FileExtension_Wirespec_getInstance().yr_1;
|
|
1293
1303
|
}
|
|
1294
1304
|
function get_extension(_this__u8e3s4) {
|
|
1295
1305
|
return substringAfterLast(_this__u8e3s4.m(), _Char___init__impl__6a9atx(46), '');
|
|
1296
1306
|
}
|
|
1297
1307
|
//region block: post-declaration
|
|
1298
|
-
protoOf(compile$ctx$1).
|
|
1308
|
+
protoOf(compile$ctx$1).mo = get_spec;
|
|
1299
1309
|
//endregion
|
|
1300
1310
|
//region block: init
|
|
1301
1311
|
Companion_instance = new Companion();
|