@flock/wirespec 0.22.7 → 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/clikt-clikt-mordant.mjs +39 -39
- package/colormath-root-colormath.mjs +433 -433
- package/kotlin-kotlin-stdlib.mjs +13 -13
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +6350 -6350
- 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 +1123 -1418
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-rust.mjs +1322 -1937
- package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-scala.mjs +17 -17
- package/wirespec-src-compiler-emitters-typescript.mjs +23 -23
- 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 +905 -905
- package/wirespec-src-converter-openapi.mjs +332 -332
- package/wirespec-src-ide-lsp.mjs +767 -767
- package/wirespec-src-plugin-arguments.mjs +142 -142
- package/wirespec-src-plugin-cli.mjs +84 -84
- package/wirespec-src-plugin-extensions.mjs +16 -16
- package/wirespec-src-plugin-npm.mjs +7 -7
- package/wirespec-src-tools-generator.mjs +2 -2
|
@@ -144,7 +144,7 @@ var Extension_SpringMappingAnnotations_instance;
|
|
|
144
144
|
var Extension_SpringNativeHints_instance;
|
|
145
145
|
function Companion() {
|
|
146
146
|
}
|
|
147
|
-
protoOf(Companion).
|
|
147
|
+
protoOf(Companion).a4x = function () {
|
|
148
148
|
// Inline function 'kotlin.collections.associateBy' call
|
|
149
149
|
var this_0 = get_entries_0();
|
|
150
150
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
@@ -189,11 +189,11 @@ function Extension_initEntries() {
|
|
|
189
189
|
var $ENTRIES;
|
|
190
190
|
function Extension(name, ordinal, type, languages) {
|
|
191
191
|
Enum.call(this, name, ordinal);
|
|
192
|
-
this.
|
|
193
|
-
this.
|
|
192
|
+
this.d4x_1 = type;
|
|
193
|
+
this.e4x_1 = languages;
|
|
194
194
|
}
|
|
195
|
-
protoOf(Extension).
|
|
196
|
-
return this.
|
|
195
|
+
protoOf(Extension).f4x = function (language) {
|
|
196
|
+
return this.e4x_1.i1(language);
|
|
197
197
|
};
|
|
198
198
|
function withExtensions(_this__u8e3s4, extensions) {
|
|
199
199
|
var tmp0_safe_receiver = toNonEmptyListOrNull(extensions);
|
|
@@ -232,7 +232,7 @@ function toIrExtensions(_this__u8e3s4, packageName, language) {
|
|
|
232
232
|
function toIrExtension(_this__u8e3s4, packageName, language) {
|
|
233
233
|
// Inline function 'kotlin.takeIf' call
|
|
234
234
|
var tmp;
|
|
235
|
-
if (_this__u8e3s4.
|
|
235
|
+
if (_this__u8e3s4.f4x(language)) {
|
|
236
236
|
tmp = _this__u8e3s4;
|
|
237
237
|
} else {
|
|
238
238
|
tmp = null;
|
|
@@ -371,7 +371,7 @@ var Language_OpenAPIV3_instance;
|
|
|
371
371
|
var Language_Avro_instance;
|
|
372
372
|
function Companion_1() {
|
|
373
373
|
}
|
|
374
|
-
protoOf(Companion_1).
|
|
374
|
+
protoOf(Companion_1).a4x = function () {
|
|
375
375
|
// Inline function 'kotlin.collections.associateBy' call
|
|
376
376
|
var this_0 = get_entries_2();
|
|
377
377
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
@@ -501,11 +501,11 @@ function Language_Avro_getInstance() {
|
|
|
501
501
|
}
|
|
502
502
|
function compile_0(arguments_0) {
|
|
503
503
|
var ctx = new compile$ctx$1(arguments_0);
|
|
504
|
-
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);
|
|
505
505
|
}
|
|
506
506
|
function convert(arguments_0) {
|
|
507
507
|
var tmp;
|
|
508
|
-
switch (arguments_0.
|
|
508
|
+
switch (arguments_0.p4x_1.f3_1) {
|
|
509
509
|
case 0:
|
|
510
510
|
tmp = OpenAPIV2Parser_instance;
|
|
511
511
|
break;
|
|
@@ -526,9 +526,9 @@ function convert(arguments_0) {
|
|
|
526
526
|
break;
|
|
527
527
|
}
|
|
528
528
|
var parser = tmp;
|
|
529
|
-
var options = new ParseOptions(arguments_0.
|
|
529
|
+
var options = new ParseOptions(arguments_0.x4x_1);
|
|
530
530
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
531
|
-
var this_0 = NonEmptySet__map_impl_ngjswd(arguments_0.
|
|
531
|
+
var this_0 = NonEmptySet__map_impl_ngjswd(arguments_0.q4x_1, convert$lambda);
|
|
532
532
|
// Inline function 'kotlin.collections.map' call
|
|
533
533
|
var this_1 = _NonEmptyList___get_all__impl__pmf509(this_0);
|
|
534
534
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -536,7 +536,7 @@ function convert(arguments_0) {
|
|
|
536
536
|
var _iterator__ex2g4s = this_1.t();
|
|
537
537
|
while (_iterator__ex2g4s.u()) {
|
|
538
538
|
var item = _iterator__ex2g4s.v();
|
|
539
|
-
var tmp$ret$3 = parser.u31(item, arguments_0.
|
|
539
|
+
var tmp$ret$3 = parser.u31(item, arguments_0.x4x_1);
|
|
540
540
|
destination.x(tmp$ret$3);
|
|
541
541
|
}
|
|
542
542
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
@@ -594,7 +594,7 @@ function convert(arguments_0) {
|
|
|
594
594
|
var _iterator__ex2g4s_1 = this_6.t();
|
|
595
595
|
while (_iterator__ex2g4s_1.u()) {
|
|
596
596
|
var item_1 = _iterator__ex2g4s_1.v();
|
|
597
|
-
var tmp$ret$24 = arguments_0.
|
|
597
|
+
var tmp$ret$24 = arguments_0.y4x_1 ? withoutDefaults(item_1) : item_1;
|
|
598
598
|
destination_1.x(tmp$ret$24);
|
|
599
599
|
}
|
|
600
600
|
var tmp$ret$21 = _NonEmptyList___init__impl__fxd0xp(destination_1);
|
|
@@ -621,7 +621,7 @@ function convert(arguments_0) {
|
|
|
621
621
|
var _iterator__ex2g4s_2 = tmp0.t();
|
|
622
622
|
while (_iterator__ex2g4s_2.u()) {
|
|
623
623
|
var element = _iterator__ex2g4s_2.v();
|
|
624
|
-
var list = new NonEmptyList(arguments_0.
|
|
624
|
+
var list = new NonEmptyList(arguments_0.r4x_1.uo(element, arguments_0.v4x_1));
|
|
625
625
|
addAll(destination_2, list);
|
|
626
626
|
}
|
|
627
627
|
var tmp$ret$29 = _NonEmptyList___init__impl__fxd0xp(destination_2);
|
|
@@ -680,7 +680,7 @@ function fold(_this__u8e3s4, arguments_0) {
|
|
|
680
680
|
var tmp0 = tmp_0;
|
|
681
681
|
var tmp2 = arguments_0.u1h();
|
|
682
682
|
// Inline function 'arrow.core.Either.fold' call
|
|
683
|
-
var ifRight = arguments_0.
|
|
683
|
+
var ifRight = arguments_0.z4x();
|
|
684
684
|
if (tmp0 instanceof Right)
|
|
685
685
|
ifRight(tmp0.vm_1);
|
|
686
686
|
else {
|
|
@@ -693,52 +693,52 @@ function fold(_this__u8e3s4, arguments_0) {
|
|
|
693
693
|
return Unit_instance;
|
|
694
694
|
}
|
|
695
695
|
function compile$ctx$1($arguments) {
|
|
696
|
-
this.
|
|
697
|
-
this.
|
|
696
|
+
this.a4y_1 = $arguments.l4x_1;
|
|
697
|
+
this.b4y_1 = nonEmptySetOf($arguments.h4x_1, []);
|
|
698
698
|
}
|
|
699
699
|
protoOf(compile$ctx$1).no = function () {
|
|
700
|
-
return this.
|
|
700
|
+
return this.a4y_1;
|
|
701
701
|
};
|
|
702
702
|
protoOf(compile$ctx$1).to = function () {
|
|
703
|
-
return this.
|
|
703
|
+
return this.b4y_1;
|
|
704
704
|
};
|
|
705
705
|
function compile$lambda(it) {
|
|
706
|
-
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);
|
|
707
707
|
}
|
|
708
708
|
function convert$lambda(it) {
|
|
709
|
-
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);
|
|
710
710
|
}
|
|
711
711
|
function CompilerArguments(input, emitter, writer, error, packageName, logger, shared, strict, ignoreDefaults) {
|
|
712
712
|
ignoreDefaults = ignoreDefaults === VOID ? false : ignoreDefaults;
|
|
713
|
-
this.
|
|
714
|
-
this.
|
|
715
|
-
this.
|
|
716
|
-
this.
|
|
717
|
-
this.
|
|
718
|
-
this.
|
|
719
|
-
this.
|
|
720
|
-
this.
|
|
721
|
-
this.
|
|
722
|
-
}
|
|
723
|
-
protoOf(CompilerArguments).
|
|
724
|
-
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;
|
|
725
725
|
};
|
|
726
726
|
protoOf(CompilerArguments).u1h = function () {
|
|
727
|
-
return this.
|
|
727
|
+
return this.j4x_1;
|
|
728
728
|
};
|
|
729
729
|
protoOf(CompilerArguments).toString = function () {
|
|
730
|
-
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 + ')';
|
|
731
731
|
};
|
|
732
732
|
protoOf(CompilerArguments).hashCode = function () {
|
|
733
|
-
var result = NonEmptySet__hashCode_impl_co6mds(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) + hashCode(this.
|
|
739
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
740
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
741
|
-
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;
|
|
742
742
|
return result;
|
|
743
743
|
};
|
|
744
744
|
protoOf(CompilerArguments).equals = function (other) {
|
|
@@ -746,59 +746,59 @@ protoOf(CompilerArguments).equals = function (other) {
|
|
|
746
746
|
return true;
|
|
747
747
|
if (!(other instanceof CompilerArguments))
|
|
748
748
|
return false;
|
|
749
|
-
if (!equals(new NonEmptySet(this.
|
|
749
|
+
if (!equals(new NonEmptySet(this.g4x_1), new NonEmptySet(other.g4x_1)))
|
|
750
750
|
return false;
|
|
751
|
-
if (!equals(this.
|
|
751
|
+
if (!equals(this.h4x_1, other.h4x_1))
|
|
752
752
|
return false;
|
|
753
|
-
if (!equals(this.
|
|
753
|
+
if (!equals(this.i4x_1, other.i4x_1))
|
|
754
754
|
return false;
|
|
755
|
-
if (!equals(this.
|
|
755
|
+
if (!equals(this.j4x_1, other.j4x_1))
|
|
756
756
|
return false;
|
|
757
|
-
if (!equals(this.
|
|
757
|
+
if (!equals(this.k4x_1, other.k4x_1))
|
|
758
758
|
return false;
|
|
759
|
-
if (!equals(this.
|
|
759
|
+
if (!equals(this.l4x_1, other.l4x_1))
|
|
760
760
|
return false;
|
|
761
|
-
if (!(this.
|
|
761
|
+
if (!(this.m4x_1 === other.m4x_1))
|
|
762
762
|
return false;
|
|
763
|
-
if (!(this.
|
|
763
|
+
if (!(this.n4x_1 === other.n4x_1))
|
|
764
764
|
return false;
|
|
765
|
-
if (!(this.
|
|
765
|
+
if (!(this.o4x_1 === other.o4x_1))
|
|
766
766
|
return false;
|
|
767
767
|
return true;
|
|
768
768
|
};
|
|
769
769
|
function ConverterArguments(format, input, emitter, writer, error, packageName, logger, shared, strict, ignoreDefaults) {
|
|
770
770
|
ignoreDefaults = ignoreDefaults === VOID ? false : ignoreDefaults;
|
|
771
|
-
this.
|
|
772
|
-
this.
|
|
773
|
-
this.
|
|
774
|
-
this.
|
|
775
|
-
this.
|
|
776
|
-
this.
|
|
777
|
-
this.
|
|
778
|
-
this.
|
|
779
|
-
this.
|
|
780
|
-
this.
|
|
781
|
-
}
|
|
782
|
-
protoOf(ConverterArguments).
|
|
783
|
-
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;
|
|
784
784
|
};
|
|
785
785
|
protoOf(ConverterArguments).u1h = function () {
|
|
786
|
-
return this.
|
|
786
|
+
return this.t4x_1;
|
|
787
787
|
};
|
|
788
788
|
protoOf(ConverterArguments).toString = function () {
|
|
789
|
-
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 + ')';
|
|
790
790
|
};
|
|
791
791
|
protoOf(ConverterArguments).hashCode = function () {
|
|
792
|
-
var result = this.
|
|
793
|
-
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(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) + hashCode(this.
|
|
799
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
800
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
801
|
-
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;
|
|
802
802
|
return result;
|
|
803
803
|
};
|
|
804
804
|
protoOf(ConverterArguments).equals = function (other) {
|
|
@@ -806,38 +806,38 @@ protoOf(ConverterArguments).equals = function (other) {
|
|
|
806
806
|
return true;
|
|
807
807
|
if (!(other instanceof ConverterArguments))
|
|
808
808
|
return false;
|
|
809
|
-
if (!this.
|
|
809
|
+
if (!this.p4x_1.equals(other.p4x_1))
|
|
810
810
|
return false;
|
|
811
|
-
if (!equals(new NonEmptySet(this.
|
|
811
|
+
if (!equals(new NonEmptySet(this.q4x_1), new NonEmptySet(other.q4x_1)))
|
|
812
812
|
return false;
|
|
813
|
-
if (!equals(this.
|
|
813
|
+
if (!equals(this.r4x_1, other.r4x_1))
|
|
814
814
|
return false;
|
|
815
|
-
if (!equals(this.
|
|
815
|
+
if (!equals(this.s4x_1, other.s4x_1))
|
|
816
816
|
return false;
|
|
817
|
-
if (!equals(this.
|
|
817
|
+
if (!equals(this.t4x_1, other.t4x_1))
|
|
818
818
|
return false;
|
|
819
|
-
if (!equals(this.
|
|
819
|
+
if (!equals(this.u4x_1, other.u4x_1))
|
|
820
820
|
return false;
|
|
821
|
-
if (!equals(this.
|
|
821
|
+
if (!equals(this.v4x_1, other.v4x_1))
|
|
822
822
|
return false;
|
|
823
|
-
if (!(this.
|
|
823
|
+
if (!(this.w4x_1 === other.w4x_1))
|
|
824
824
|
return false;
|
|
825
|
-
if (!(this.
|
|
825
|
+
if (!(this.x4x_1 === other.x4x_1))
|
|
826
826
|
return false;
|
|
827
|
-
if (!(this.
|
|
827
|
+
if (!(this.y4x_1 === other.y4x_1))
|
|
828
828
|
return false;
|
|
829
829
|
return true;
|
|
830
830
|
};
|
|
831
831
|
function Source(name, content) {
|
|
832
|
-
this.
|
|
833
|
-
this.
|
|
832
|
+
this.c4y_1 = name;
|
|
833
|
+
this.d4y_1 = content;
|
|
834
834
|
}
|
|
835
835
|
protoOf(Source).toString = function () {
|
|
836
|
-
return 'Source(name=' + Name__toString_impl_61tomu(this.
|
|
836
|
+
return 'Source(name=' + Name__toString_impl_61tomu(this.c4y_1) + ', content=' + this.d4y_1 + ')';
|
|
837
837
|
};
|
|
838
838
|
protoOf(Source).hashCode = function () {
|
|
839
|
-
var result = Name__hashCode_impl_fpc861(this.
|
|
840
|
-
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;
|
|
841
841
|
return result;
|
|
842
842
|
};
|
|
843
843
|
protoOf(Source).equals = function (other) {
|
|
@@ -845,9 +845,9 @@ protoOf(Source).equals = function (other) {
|
|
|
845
845
|
return true;
|
|
846
846
|
if (!(other instanceof Source))
|
|
847
847
|
return false;
|
|
848
|
-
if (!(this.
|
|
848
|
+
if (!(this.c4y_1 === other.c4y_1))
|
|
849
849
|
return false;
|
|
850
|
-
if (!(this.
|
|
850
|
+
if (!(this.d4y_1 === other.d4y_1))
|
|
851
851
|
return false;
|
|
852
852
|
return true;
|
|
853
853
|
};
|
|
@@ -878,24 +878,24 @@ function ClassPath__hashCode_impl_cciyyd($this) {
|
|
|
878
878
|
function ClassPath__equals_impl_kffpch($this, other) {
|
|
879
879
|
if (!(other instanceof ClassPath))
|
|
880
880
|
return false;
|
|
881
|
-
if (!($this === other.
|
|
881
|
+
if (!($this === other.e4y_1))
|
|
882
882
|
return false;
|
|
883
883
|
return true;
|
|
884
884
|
}
|
|
885
885
|
function ClassPath(value) {
|
|
886
|
-
this.
|
|
886
|
+
this.e4y_1 = value;
|
|
887
887
|
}
|
|
888
888
|
protoOf(ClassPath).o1 = function () {
|
|
889
|
-
return _ClassPath___get_value__impl__lfuxg0(this.
|
|
889
|
+
return _ClassPath___get_value__impl__lfuxg0(this.e4y_1);
|
|
890
890
|
};
|
|
891
891
|
protoOf(ClassPath).toString = function () {
|
|
892
|
-
return ClassPath__toString_impl_y3ovr8(this.
|
|
892
|
+
return ClassPath__toString_impl_y3ovr8(this.e4y_1);
|
|
893
893
|
};
|
|
894
894
|
protoOf(ClassPath).hashCode = function () {
|
|
895
|
-
return ClassPath__hashCode_impl_cciyyd(this.
|
|
895
|
+
return ClassPath__hashCode_impl_cciyyd(this.e4y_1);
|
|
896
896
|
};
|
|
897
897
|
protoOf(ClassPath).equals = function (other) {
|
|
898
|
-
return ClassPath__equals_impl_kffpch(this.
|
|
898
|
+
return ClassPath__equals_impl_kffpch(this.e4y_1, other);
|
|
899
899
|
};
|
|
900
900
|
function _DirectoryPath___init__impl__5bzkjd(value) {
|
|
901
901
|
return value;
|
|
@@ -912,31 +912,31 @@ function DirectoryPath__hashCode_impl_cv3skg($this) {
|
|
|
912
912
|
function DirectoryPath__equals_impl_c2rwsc($this, other) {
|
|
913
913
|
if (!(other instanceof DirectoryPath))
|
|
914
914
|
return false;
|
|
915
|
-
if (!($this === other.
|
|
915
|
+
if (!($this === other.f4y_1))
|
|
916
916
|
return false;
|
|
917
917
|
return true;
|
|
918
918
|
}
|
|
919
919
|
function DirectoryPath(value) {
|
|
920
|
-
this.
|
|
920
|
+
this.f4y_1 = value;
|
|
921
921
|
}
|
|
922
922
|
protoOf(DirectoryPath).o1 = function () {
|
|
923
|
-
return _DirectoryPath___get_value__impl__hdy2e3(this.
|
|
923
|
+
return _DirectoryPath___get_value__impl__hdy2e3(this.f4y_1);
|
|
924
924
|
};
|
|
925
925
|
protoOf(DirectoryPath).toString = function () {
|
|
926
|
-
return DirectoryPath__toString_impl_ym9pdb(this.
|
|
926
|
+
return DirectoryPath__toString_impl_ym9pdb(this.f4y_1);
|
|
927
927
|
};
|
|
928
928
|
protoOf(DirectoryPath).hashCode = function () {
|
|
929
|
-
return DirectoryPath__hashCode_impl_cv3skg(this.
|
|
929
|
+
return DirectoryPath__hashCode_impl_cv3skg(this.f4y_1);
|
|
930
930
|
};
|
|
931
931
|
protoOf(DirectoryPath).equals = function (other) {
|
|
932
|
-
return DirectoryPath__equals_impl_c2rwsc(this.
|
|
932
|
+
return DirectoryPath__equals_impl_c2rwsc(this.f4y_1, other);
|
|
933
933
|
};
|
|
934
934
|
function Directory(path) {
|
|
935
|
-
this.
|
|
935
|
+
this.g4y_1 = path;
|
|
936
936
|
}
|
|
937
937
|
function Companion_2() {
|
|
938
938
|
}
|
|
939
|
-
protoOf(Companion_2).
|
|
939
|
+
protoOf(Companion_2).h4y = function (input) {
|
|
940
940
|
// Inline function 'kotlin.let' call
|
|
941
941
|
var it = split(input, ['/']);
|
|
942
942
|
var list = plus(dropLast(it, 1), split(last(it), ['.']));
|
|
@@ -987,17 +987,17 @@ function Companion_getInstance_2() {
|
|
|
987
987
|
return Companion_instance_2;
|
|
988
988
|
}
|
|
989
989
|
function FilePath(directory, name, extension) {
|
|
990
|
-
this.
|
|
991
|
-
this.
|
|
992
|
-
this.
|
|
990
|
+
this.i4y_1 = directory;
|
|
991
|
+
this.j4y_1 = name;
|
|
992
|
+
this.k4y_1 = extension;
|
|
993
993
|
}
|
|
994
994
|
protoOf(FilePath).toString = function () {
|
|
995
|
-
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;
|
|
996
996
|
};
|
|
997
997
|
protoOf(FilePath).hashCode = function () {
|
|
998
|
-
var result = DirectoryPath__hashCode_impl_cv3skg(this.
|
|
999
|
-
result = imul(result, 31) + Name__hashCode_impl_fpc861(this.
|
|
1000
|
-
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;
|
|
1001
1001
|
return result;
|
|
1002
1002
|
};
|
|
1003
1003
|
protoOf(FilePath).equals = function (other) {
|
|
@@ -1005,24 +1005,24 @@ protoOf(FilePath).equals = function (other) {
|
|
|
1005
1005
|
return true;
|
|
1006
1006
|
if (!(other instanceof FilePath))
|
|
1007
1007
|
return false;
|
|
1008
|
-
if (!(this.
|
|
1008
|
+
if (!(this.i4y_1 === other.i4y_1))
|
|
1009
1009
|
return false;
|
|
1010
|
-
if (!(this.
|
|
1010
|
+
if (!(this.j4y_1 === other.j4y_1))
|
|
1011
1011
|
return false;
|
|
1012
|
-
if (!this.
|
|
1012
|
+
if (!this.k4y_1.equals(other.k4y_1))
|
|
1013
1013
|
return false;
|
|
1014
1014
|
return true;
|
|
1015
1015
|
};
|
|
1016
1016
|
function path(_this__u8e3s4) {
|
|
1017
1017
|
var tmp;
|
|
1018
1018
|
if (_this__u8e3s4 instanceof ClassPath) {
|
|
1019
|
-
tmp = _ClassPath___get_value__impl__lfuxg0(_this__u8e3s4.
|
|
1019
|
+
tmp = _ClassPath___get_value__impl__lfuxg0(_this__u8e3s4.e4y_1);
|
|
1020
1020
|
} else {
|
|
1021
1021
|
if (_this__u8e3s4 instanceof DirectoryPath) {
|
|
1022
|
-
tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.
|
|
1022
|
+
tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.f4y_1);
|
|
1023
1023
|
} else {
|
|
1024
1024
|
if (_this__u8e3s4 instanceof FilePath) {
|
|
1025
|
-
tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.
|
|
1025
|
+
tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.i4y_1);
|
|
1026
1026
|
} else {
|
|
1027
1027
|
noWhenBranchMatchedException();
|
|
1028
1028
|
}
|
|
@@ -1031,7 +1031,7 @@ function path(_this__u8e3s4) {
|
|
|
1031
1031
|
return tmp;
|
|
1032
1032
|
}
|
|
1033
1033
|
function IOError(message) {
|
|
1034
|
-
this.
|
|
1034
|
+
this.l4y_1 = message;
|
|
1035
1035
|
}
|
|
1036
1036
|
function WirespecFileError() {
|
|
1037
1037
|
SpecificFile.call(this, FileExtension_Wirespec_getInstance());
|
|
@@ -1063,7 +1063,7 @@ function getFullPath(input, createIfNotExists_0) {
|
|
|
1063
1063
|
tmp_0 = new ClassPath(_ClassPath___init__impl__obyw3o(substringAfter(input, 'classpath:')));
|
|
1064
1064
|
} else {
|
|
1065
1065
|
var path = createIfNotExists(Path(input), createIfNotExists_0);
|
|
1066
|
-
var tmp0_elvis_lhs = get_SystemFileSystem().
|
|
1066
|
+
var tmp0_elvis_lhs = get_SystemFileSystem().p4w(path);
|
|
1067
1067
|
var tmp_1;
|
|
1068
1068
|
if (tmp0_elvis_lhs == null) {
|
|
1069
1069
|
raise.hn(new CannotAccessFileOrDirectory(input));
|
|
@@ -1073,10 +1073,10 @@ function getFullPath(input, createIfNotExists_0) {
|
|
|
1073
1073
|
var meta = tmp_1;
|
|
1074
1074
|
var pathString = path.toString();
|
|
1075
1075
|
var tmp_2;
|
|
1076
|
-
if (meta.
|
|
1076
|
+
if (meta.i4w_1) {
|
|
1077
1077
|
tmp_2 = new DirectoryPath(_DirectoryPath___init__impl__5bzkjd(pathString));
|
|
1078
|
-
} else if (meta.
|
|
1079
|
-
tmp_2 = Companion_instance_2.
|
|
1078
|
+
} else if (meta.h4w_1) {
|
|
1079
|
+
tmp_2 = Companion_instance_2.h4y(pathString);
|
|
1080
1080
|
} else {
|
|
1081
1081
|
raise.hn(new IsNotAFileOrDirectory(pathString));
|
|
1082
1082
|
}
|
|
@@ -1110,7 +1110,7 @@ function or(_this__u8e3s4, errorFn) {
|
|
|
1110
1110
|
var tmp;
|
|
1111
1111
|
if (_this__u8e3s4 instanceof Left) {
|
|
1112
1112
|
var tmp$ret$1;
|
|
1113
|
-
errorFn(_this__u8e3s4.tm_1.
|
|
1113
|
+
errorFn(_this__u8e3s4.tm_1.l4y_1);
|
|
1114
1114
|
throwKotlinNothingValueException();
|
|
1115
1115
|
tmp = tmp$ret$1;
|
|
1116
1116
|
} else {
|
|
@@ -1129,10 +1129,10 @@ function wirespecSources(_this__u8e3s4, logger) {
|
|
|
1129
1129
|
var raise = new DefaultRaise(false);
|
|
1130
1130
|
var tmp;
|
|
1131
1131
|
try {
|
|
1132
|
-
var tmp0 = Path(_DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.
|
|
1132
|
+
var tmp0 = Path(_DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.g4y_1));
|
|
1133
1133
|
// Inline function 'kotlin.let' call
|
|
1134
1134
|
// Inline function 'kotlin.collections.filter' call
|
|
1135
|
-
var tmp0_0 = get_SystemFileSystem().
|
|
1135
|
+
var tmp0_0 = get_SystemFileSystem().q4w(tmp0);
|
|
1136
1136
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1137
1137
|
var destination = ArrayList_init_$Create$();
|
|
1138
1138
|
var _iterator__ex2g4s = tmp0_0.t();
|
|
@@ -1158,11 +1158,11 @@ function wirespecSources(_this__u8e3s4, logger) {
|
|
|
1158
1158
|
var _iterator__ex2g4s_1 = destination_0.t();
|
|
1159
1159
|
while (_iterator__ex2g4s_1.u()) {
|
|
1160
1160
|
var item = _iterator__ex2g4s_1.v();
|
|
1161
|
-
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))));
|
|
1162
1162
|
destination_1.x(tmp$ret$14);
|
|
1163
1163
|
}
|
|
1164
1164
|
// Inline function 'kotlin.also' call
|
|
1165
|
-
logger.bs('Found ' + destination_1.c1() + ' file(s) to process in ' + _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.
|
|
1165
|
+
logger.bs('Found ' + destination_1.c1() + ' file(s) to process in ' + _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.g4y_1));
|
|
1166
1166
|
// Inline function 'kotlin.collections.forEachIndexed' call
|
|
1167
1167
|
var index = 0;
|
|
1168
1168
|
var _iterator__ex2g4s_2 = destination_1.t();
|
|
@@ -1171,7 +1171,7 @@ function wirespecSources(_this__u8e3s4, logger) {
|
|
|
1171
1171
|
var _unary__edvuaz = index;
|
|
1172
1172
|
index = _unary__edvuaz + 1 | 0;
|
|
1173
1173
|
var prefix = checkIndexOverflow(_unary__edvuaz) < (destination_1.c1() - 1 | 0) ? '\u251C\u2500\u2500 ' : '\u2514\u2500\u2500 ';
|
|
1174
|
-
logger.bs(' ' + prefix + ' ' + _Name___get_value__impl__3tbxxy(item_0.gf_1.
|
|
1174
|
+
logger.bs(' ' + prefix + ' ' + _Name___get_value__impl__3tbxxy(item_0.gf_1.j4y_1) + '.' + item_0.gf_1.k4y_1.yr_1);
|
|
1175
1175
|
}
|
|
1176
1176
|
// Inline function 'kotlin.collections.map' call
|
|
1177
1177
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -1181,7 +1181,7 @@ function wirespecSources(_this__u8e3s4, logger) {
|
|
|
1181
1181
|
var item_1 = _iterator__ex2g4s_3.v();
|
|
1182
1182
|
var path = item_1.af();
|
|
1183
1183
|
var source = item_1.bf();
|
|
1184
|
-
var tmp$ret$21 = new Source(path.
|
|
1184
|
+
var tmp$ret$21 = new Source(path.j4y_1, source);
|
|
1185
1185
|
destination_2.x(tmp$ret$21);
|
|
1186
1186
|
}
|
|
1187
1187
|
var tmp0_elvis_lhs = toNonEmptySetOrNull(destination_2);
|
|
@@ -1218,7 +1218,7 @@ function wirespecSources(_this__u8e3s4, logger) {
|
|
|
1218
1218
|
function read(_this__u8e3s4) {
|
|
1219
1219
|
// Inline function 'kotlin.let' call
|
|
1220
1220
|
var it = Path(_this__u8e3s4.toString());
|
|
1221
|
-
return readString(buffered(get_SystemFileSystem().
|
|
1221
|
+
return readString(buffered(get_SystemFileSystem().m4w(it)));
|
|
1222
1222
|
}
|
|
1223
1223
|
function getOutPutPath(inputPath, output) {
|
|
1224
1224
|
// Inline function 'arrow.core.raise.either' call
|
|
@@ -1233,7 +1233,7 @@ function getOutPutPath(inputPath, output) {
|
|
|
1233
1233
|
tmp_0 = _DirectoryPath___init__impl__5bzkjd(path(inputPath) + '/out');
|
|
1234
1234
|
} else {
|
|
1235
1235
|
if (it instanceof DirectoryPath) {
|
|
1236
|
-
tmp_0 = it.
|
|
1236
|
+
tmp_0 = it.f4y_1;
|
|
1237
1237
|
} else {
|
|
1238
1238
|
var tmp_1;
|
|
1239
1239
|
if (it instanceof FilePath) {
|
|
@@ -1274,14 +1274,14 @@ function getOutPutPath(inputPath, output) {
|
|
|
1274
1274
|
function write(_this__u8e3s4, string) {
|
|
1275
1275
|
// Inline function 'kotlin.also' call
|
|
1276
1276
|
var this_0 = Path(_this__u8e3s4.toString());
|
|
1277
|
-
var tmp0_safe_receiver = this_0.
|
|
1277
|
+
var tmp0_safe_receiver = this_0.s4w();
|
|
1278
1278
|
if (tmp0_safe_receiver == null)
|
|
1279
1279
|
null;
|
|
1280
1280
|
else
|
|
1281
1281
|
createIfNotExists(tmp0_safe_receiver);
|
|
1282
1282
|
// Inline function 'kotlin.let' call
|
|
1283
1283
|
// Inline function 'kotlin.apply' call
|
|
1284
|
-
var this_1 = buffered_0(get_SystemFileSystem().
|
|
1284
|
+
var this_1 = buffered_0(get_SystemFileSystem().o4w(this_0));
|
|
1285
1285
|
writeString(this_1, string);
|
|
1286
1286
|
this_1.d9();
|
|
1287
1287
|
return Unit_instance;
|
|
@@ -1289,14 +1289,14 @@ function write(_this__u8e3s4, string) {
|
|
|
1289
1289
|
function createIfNotExists(_this__u8e3s4, create) {
|
|
1290
1290
|
create = create === VOID ? true : create;
|
|
1291
1291
|
// Inline function 'kotlin.also' call
|
|
1292
|
-
if (create && !get_SystemFileSystem().
|
|
1293
|
-
get_SystemFileSystem().
|
|
1292
|
+
if (create && !get_SystemFileSystem().k4w(_this__u8e3s4)) {
|
|
1293
|
+
get_SystemFileSystem().l4w(_this__u8e3s4, true);
|
|
1294
1294
|
}
|
|
1295
1295
|
return _this__u8e3s4;
|
|
1296
1296
|
}
|
|
1297
1297
|
function isRegularFile(path) {
|
|
1298
|
-
var tmp0_safe_receiver = get_SystemFileSystem().
|
|
1299
|
-
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;
|
|
1300
1300
|
}
|
|
1301
1301
|
function isWirespecFile(path) {
|
|
1302
1302
|
return get_extension(path) === FileExtension_Wirespec_getInstance().yr_1;
|