@flock/wirespec 0.22.5 → 0.22.6
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-core.mjs +8 -8
- package/clikt-clikt-mordant.mjs +79 -79
- package/clikt-clikt.mjs +1364 -1363
- package/clikt-clikt.mjs.map +1 -1
- package/colormath-root-colormath.mjs +436 -436
- package/kotlin-kotlin-stdlib.mjs +192 -191
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +10204 -10204
- package/kotlin-rgxgen.mjs +1771 -1771
- package/kotlinx-io-kotlinx-io-core.mjs +425 -425
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1824 -1824
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1509 -1509
- package/mordant-mordant.mjs +1246 -1246
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +5661 -5333
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-java.mjs +171 -187
- package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-kotlin.mjs +138 -149
- package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-python.mjs +147 -160
- package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-rust.mjs +356 -370
- package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-scala.mjs +165 -175
- package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-typescript.mjs +187 -313
- package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-wirespec.mjs +79 -79
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +194 -194
- package/wirespec-src-converter-asyncapi.mjs +545 -545
- package/wirespec-src-converter-avro.mjs +544 -544
- package/wirespec-src-converter-common.mjs +11 -11
- package/wirespec-src-converter-graphql.mjs +942 -942
- package/wirespec-src-converter-openapi.mjs +453 -453
- package/wirespec-src-ide-lsp.mjs +1359 -1359
- package/wirespec-src-plugin-arguments.mjs +153 -157
- package/wirespec-src-plugin-arguments.mjs.map +1 -1
- package/wirespec-src-plugin-cli.mjs +139 -142
- package/wirespec-src-plugin-cli.mjs.map +1 -1
- package/wirespec-src-plugin-extensions.mjs +1631 -1114
- package/wirespec-src-plugin-extensions.mjs.map +1 -1
- package/wirespec-src-plugin-npm.mjs +27 -27
- package/wirespec-src-tools-generator.mjs +17 -17
|
@@ -74,7 +74,7 @@ import {
|
|
|
74
74
|
raisedOrRethrow397oyvsdde7oq as raisedOrRethrow,
|
|
75
75
|
Left2oemzq1tpcg4i as Left,
|
|
76
76
|
RaiseCancellationException3n5raogfhbd1l as RaiseCancellationException,
|
|
77
|
-
|
|
77
|
+
nonEmptySetOf3p7fhmt51pz4b as nonEmptySetOf,
|
|
78
78
|
NonEmptySet__toString_impl_yfcj6ns81v4qijlr42 as NonEmptySet__toString_impl_yfcj6n,
|
|
79
79
|
NonEmptySet__hashCode_impl_co6mdsl81ll59f92cp as NonEmptySet__hashCode_impl_co6mds,
|
|
80
80
|
NonEmptySet1rtvr2guloo52 as NonEmptySet,
|
|
@@ -143,7 +143,7 @@ var Extension_SpringMappingAnnotations_instance;
|
|
|
143
143
|
var Extension_SpringNativeHints_instance;
|
|
144
144
|
function Companion() {
|
|
145
145
|
}
|
|
146
|
-
protoOf(Companion).
|
|
146
|
+
protoOf(Companion).i4x = function () {
|
|
147
147
|
// Inline function 'kotlin.collections.associateBy' call
|
|
148
148
|
var this_0 = get_entries_0();
|
|
149
149
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
@@ -188,11 +188,11 @@ function Extension_initEntries() {
|
|
|
188
188
|
var $ENTRIES;
|
|
189
189
|
function Extension(name, ordinal, type, languages) {
|
|
190
190
|
Enum.call(this, name, ordinal);
|
|
191
|
-
this.
|
|
192
|
-
this.
|
|
191
|
+
this.l4x_1 = type;
|
|
192
|
+
this.m4x_1 = languages;
|
|
193
193
|
}
|
|
194
|
-
protoOf(Extension).
|
|
195
|
-
return this.
|
|
194
|
+
protoOf(Extension).n4x = function (language) {
|
|
195
|
+
return this.m4x_1.i1(language);
|
|
196
196
|
};
|
|
197
197
|
function withExtensions(_this__u8e3s4, extensions) {
|
|
198
198
|
var tmp0_safe_receiver = toNonEmptyListOrNull(extensions);
|
|
@@ -231,7 +231,7 @@ function toIrExtensions(_this__u8e3s4, packageName, language) {
|
|
|
231
231
|
function toIrExtension(_this__u8e3s4, packageName, language) {
|
|
232
232
|
// Inline function 'kotlin.takeIf' call
|
|
233
233
|
var tmp;
|
|
234
|
-
if (_this__u8e3s4.
|
|
234
|
+
if (_this__u8e3s4.n4x(language)) {
|
|
235
235
|
tmp = _this__u8e3s4;
|
|
236
236
|
} else {
|
|
237
237
|
tmp = null;
|
|
@@ -370,7 +370,7 @@ var Language_OpenAPIV3_instance;
|
|
|
370
370
|
var Language_Avro_instance;
|
|
371
371
|
function Companion_1() {
|
|
372
372
|
}
|
|
373
|
-
protoOf(Companion_1).
|
|
373
|
+
protoOf(Companion_1).i4x = function () {
|
|
374
374
|
// Inline function 'kotlin.collections.associateBy' call
|
|
375
375
|
var this_0 = get_entries_2();
|
|
376
376
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
@@ -500,11 +500,11 @@ function Language_Avro_getInstance() {
|
|
|
500
500
|
}
|
|
501
501
|
function compile_0(arguments_0) {
|
|
502
502
|
var ctx = new compile$ctx$1(arguments_0);
|
|
503
|
-
fold(compile(ctx, NonEmptySet__map_impl_ngjswd(arguments_0.
|
|
503
|
+
fold(compile(ctx, NonEmptySet__map_impl_ngjswd(arguments_0.o4x_1, compile$lambda), arguments_0.w4x_1), arguments_0);
|
|
504
504
|
}
|
|
505
505
|
function convert(arguments_0) {
|
|
506
506
|
var tmp;
|
|
507
|
-
switch (arguments_0.
|
|
507
|
+
switch (arguments_0.x4x_1.e3_1) {
|
|
508
508
|
case 0:
|
|
509
509
|
tmp = OpenAPIV2Parser_instance;
|
|
510
510
|
break;
|
|
@@ -525,9 +525,9 @@ function convert(arguments_0) {
|
|
|
525
525
|
break;
|
|
526
526
|
}
|
|
527
527
|
var parser = tmp;
|
|
528
|
-
var options = new ParseOptions(arguments_0.
|
|
528
|
+
var options = new ParseOptions(arguments_0.f4y_1);
|
|
529
529
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
530
|
-
var this_0 = NonEmptySet__map_impl_ngjswd(arguments_0.
|
|
530
|
+
var this_0 = NonEmptySet__map_impl_ngjswd(arguments_0.y4x_1, convert$lambda);
|
|
531
531
|
// Inline function 'kotlin.collections.map' call
|
|
532
532
|
var this_1 = _NonEmptyList___get_all__impl__pmf509(this_0);
|
|
533
533
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -535,7 +535,7 @@ function convert(arguments_0) {
|
|
|
535
535
|
var _iterator__ex2g4s = this_1.t();
|
|
536
536
|
while (_iterator__ex2g4s.u()) {
|
|
537
537
|
var item = _iterator__ex2g4s.v();
|
|
538
|
-
var tmp$ret$3 = parser.
|
|
538
|
+
var tmp$ret$3 = parser.p31(item, arguments_0.f4y_1);
|
|
539
539
|
destination.x(tmp$ret$3);
|
|
540
540
|
}
|
|
541
541
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
@@ -547,7 +547,7 @@ function convert(arguments_0) {
|
|
|
547
547
|
var _iterator__ex2g4s_0 = this_3.t();
|
|
548
548
|
while (_iterator__ex2g4s_0.u()) {
|
|
549
549
|
var item_0 = _iterator__ex2g4s_0.v();
|
|
550
|
-
var tmp$ret$7 = Validator_instance.
|
|
550
|
+
var tmp$ret$7 = Validator_instance.y1d(options, item_0);
|
|
551
551
|
destination_0.x(tmp$ret$7);
|
|
552
552
|
}
|
|
553
553
|
// Inline function 'kotlin.let' call
|
|
@@ -593,7 +593,7 @@ function convert(arguments_0) {
|
|
|
593
593
|
var _iterator__ex2g4s_1 = this_6.t();
|
|
594
594
|
while (_iterator__ex2g4s_1.u()) {
|
|
595
595
|
var item_1 = _iterator__ex2g4s_1.v();
|
|
596
|
-
var tmp$ret$24 = arguments_0.
|
|
596
|
+
var tmp$ret$24 = arguments_0.g4y_1 ? withoutDefaults(item_1) : item_1;
|
|
597
597
|
destination_1.x(tmp$ret$24);
|
|
598
598
|
}
|
|
599
599
|
var tmp$ret$21 = _NonEmptyList___init__impl__fxd0xp(destination_1);
|
|
@@ -620,7 +620,7 @@ function convert(arguments_0) {
|
|
|
620
620
|
var _iterator__ex2g4s_2 = tmp0.t();
|
|
621
621
|
while (_iterator__ex2g4s_2.u()) {
|
|
622
622
|
var element = _iterator__ex2g4s_2.v();
|
|
623
|
-
var list = new NonEmptyList(
|
|
623
|
+
var list = new NonEmptyList(arguments_0.z4x_1.to(element, arguments_0.d4y_1));
|
|
624
624
|
addAll(destination_2, list);
|
|
625
625
|
}
|
|
626
626
|
var tmp$ret$29 = _NonEmptyList___init__impl__fxd0xp(destination_2);
|
|
@@ -677,9 +677,9 @@ function fold(_this__u8e3s4, arguments_0) {
|
|
|
677
677
|
}
|
|
678
678
|
}
|
|
679
679
|
var tmp0 = tmp_0;
|
|
680
|
-
var tmp2 = arguments_0.
|
|
680
|
+
var tmp2 = arguments_0.p1h();
|
|
681
681
|
// Inline function 'arrow.core.Either.fold' call
|
|
682
|
-
var ifRight = arguments_0.
|
|
682
|
+
var ifRight = arguments_0.h4y();
|
|
683
683
|
if (tmp0 instanceof Right)
|
|
684
684
|
ifRight(tmp0.um_1);
|
|
685
685
|
else {
|
|
@@ -692,57 +692,52 @@ function fold(_this__u8e3s4, arguments_0) {
|
|
|
692
692
|
return Unit_instance;
|
|
693
693
|
}
|
|
694
694
|
function compile$ctx$1($arguments) {
|
|
695
|
-
this.
|
|
696
|
-
this.
|
|
695
|
+
this.i4y_1 = $arguments.t4x_1;
|
|
696
|
+
this.j4y_1 = nonEmptySetOf($arguments.p4x_1, []);
|
|
697
697
|
}
|
|
698
698
|
protoOf(compile$ctx$1).mo = function () {
|
|
699
|
-
return this.
|
|
699
|
+
return this.i4y_1;
|
|
700
700
|
};
|
|
701
701
|
protoOf(compile$ctx$1).so = function () {
|
|
702
|
-
return this.
|
|
702
|
+
return this.j4y_1;
|
|
703
703
|
};
|
|
704
704
|
function compile$lambda(it) {
|
|
705
|
-
return new ModuleContent(new FileUri(_Name___get_value__impl__3tbxxy(it.
|
|
705
|
+
return new ModuleContent(new FileUri(_Name___get_value__impl__3tbxxy(it.k4y_1)), it.l4y_1);
|
|
706
706
|
}
|
|
707
707
|
function convert$lambda(it) {
|
|
708
|
-
return new ModuleContent(new FileUri(_Name___get_value__impl__3tbxxy(it.
|
|
708
|
+
return new ModuleContent(new FileUri(_Name___get_value__impl__3tbxxy(it.k4y_1)), it.l4y_1);
|
|
709
709
|
}
|
|
710
|
-
function
|
|
711
|
-
return function (it) {
|
|
712
|
-
return new NonEmptyList(it.to($ast, $arguments.u4v_1));
|
|
713
|
-
};
|
|
714
|
-
}
|
|
715
|
-
function CompilerArguments(input, emitters, writer, error, packageName, logger, shared, strict, ignoreDefaults) {
|
|
710
|
+
function CompilerArguments(input, emitter, writer, error, packageName, logger, shared, strict, ignoreDefaults) {
|
|
716
711
|
ignoreDefaults = ignoreDefaults === VOID ? false : ignoreDefaults;
|
|
717
|
-
this.
|
|
718
|
-
this.
|
|
719
|
-
this.
|
|
720
|
-
this.
|
|
721
|
-
this.
|
|
722
|
-
this.
|
|
723
|
-
this.
|
|
724
|
-
this.
|
|
725
|
-
this.
|
|
726
|
-
}
|
|
727
|
-
protoOf(CompilerArguments).
|
|
728
|
-
return this.
|
|
712
|
+
this.o4x_1 = input;
|
|
713
|
+
this.p4x_1 = emitter;
|
|
714
|
+
this.q4x_1 = writer;
|
|
715
|
+
this.r4x_1 = error;
|
|
716
|
+
this.s4x_1 = packageName;
|
|
717
|
+
this.t4x_1 = logger;
|
|
718
|
+
this.u4x_1 = shared;
|
|
719
|
+
this.v4x_1 = strict;
|
|
720
|
+
this.w4x_1 = ignoreDefaults;
|
|
721
|
+
}
|
|
722
|
+
protoOf(CompilerArguments).h4y = function () {
|
|
723
|
+
return this.q4x_1;
|
|
729
724
|
};
|
|
730
|
-
protoOf(CompilerArguments).
|
|
731
|
-
return this.
|
|
725
|
+
protoOf(CompilerArguments).p1h = function () {
|
|
726
|
+
return this.r4x_1;
|
|
732
727
|
};
|
|
733
728
|
protoOf(CompilerArguments).toString = function () {
|
|
734
|
-
return 'CompilerArguments(input=' + NonEmptySet__toString_impl_yfcj6n(this.
|
|
729
|
+
return 'CompilerArguments(input=' + NonEmptySet__toString_impl_yfcj6n(this.o4x_1) + ', emitter=' + toString(this.p4x_1) + ', writer=' + toString(this.q4x_1) + ', error=' + toString(this.r4x_1) + ', packageName=' + this.s4x_1.toString() + ', logger=' + toString(this.t4x_1) + ', shared=' + this.u4x_1 + ', strict=' + this.v4x_1 + ', ignoreDefaults=' + this.w4x_1 + ')';
|
|
735
730
|
};
|
|
736
731
|
protoOf(CompilerArguments).hashCode = function () {
|
|
737
|
-
var result = NonEmptySet__hashCode_impl_co6mds(this.
|
|
738
|
-
result = imul(result, 31) +
|
|
739
|
-
result = imul(result, 31) + hashCode(this.
|
|
740
|
-
result = imul(result, 31) + hashCode(this.
|
|
741
|
-
result = imul(result, 31) + hashCode(this.
|
|
742
|
-
result = imul(result, 31) + hashCode(this.
|
|
743
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
744
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
745
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
732
|
+
var result = NonEmptySet__hashCode_impl_co6mds(this.o4x_1);
|
|
733
|
+
result = imul(result, 31) + hashCode(this.p4x_1) | 0;
|
|
734
|
+
result = imul(result, 31) + hashCode(this.q4x_1) | 0;
|
|
735
|
+
result = imul(result, 31) + hashCode(this.r4x_1) | 0;
|
|
736
|
+
result = imul(result, 31) + hashCode(this.s4x_1) | 0;
|
|
737
|
+
result = imul(result, 31) + hashCode(this.t4x_1) | 0;
|
|
738
|
+
result = imul(result, 31) + getBooleanHashCode(this.u4x_1) | 0;
|
|
739
|
+
result = imul(result, 31) + getBooleanHashCode(this.v4x_1) | 0;
|
|
740
|
+
result = imul(result, 31) + getBooleanHashCode(this.w4x_1) | 0;
|
|
746
741
|
return result;
|
|
747
742
|
};
|
|
748
743
|
protoOf(CompilerArguments).equals = function (other) {
|
|
@@ -750,59 +745,59 @@ protoOf(CompilerArguments).equals = function (other) {
|
|
|
750
745
|
return true;
|
|
751
746
|
if (!(other instanceof CompilerArguments))
|
|
752
747
|
return false;
|
|
753
|
-
if (!equals(new NonEmptySet(this.
|
|
748
|
+
if (!equals(new NonEmptySet(this.o4x_1), new NonEmptySet(other.o4x_1)))
|
|
754
749
|
return false;
|
|
755
|
-
if (!equals(
|
|
750
|
+
if (!equals(this.p4x_1, other.p4x_1))
|
|
756
751
|
return false;
|
|
757
|
-
if (!equals(this.
|
|
752
|
+
if (!equals(this.q4x_1, other.q4x_1))
|
|
758
753
|
return false;
|
|
759
|
-
if (!equals(this.
|
|
754
|
+
if (!equals(this.r4x_1, other.r4x_1))
|
|
760
755
|
return false;
|
|
761
|
-
if (!equals(this.
|
|
756
|
+
if (!equals(this.s4x_1, other.s4x_1))
|
|
762
757
|
return false;
|
|
763
|
-
if (!equals(this.
|
|
758
|
+
if (!equals(this.t4x_1, other.t4x_1))
|
|
764
759
|
return false;
|
|
765
|
-
if (!(this.
|
|
760
|
+
if (!(this.u4x_1 === other.u4x_1))
|
|
766
761
|
return false;
|
|
767
|
-
if (!(this.
|
|
762
|
+
if (!(this.v4x_1 === other.v4x_1))
|
|
768
763
|
return false;
|
|
769
|
-
if (!(this.
|
|
764
|
+
if (!(this.w4x_1 === other.w4x_1))
|
|
770
765
|
return false;
|
|
771
766
|
return true;
|
|
772
767
|
};
|
|
773
|
-
function ConverterArguments(format, input,
|
|
768
|
+
function ConverterArguments(format, input, emitter, writer, error, packageName, logger, shared, strict, ignoreDefaults) {
|
|
774
769
|
ignoreDefaults = ignoreDefaults === VOID ? false : ignoreDefaults;
|
|
775
|
-
this.
|
|
776
|
-
this.
|
|
777
|
-
this.
|
|
778
|
-
this.
|
|
779
|
-
this.
|
|
780
|
-
this.
|
|
781
|
-
this.
|
|
782
|
-
this.
|
|
783
|
-
this.
|
|
784
|
-
this.
|
|
785
|
-
}
|
|
786
|
-
protoOf(ConverterArguments).
|
|
787
|
-
return this.
|
|
770
|
+
this.x4x_1 = format;
|
|
771
|
+
this.y4x_1 = input;
|
|
772
|
+
this.z4x_1 = emitter;
|
|
773
|
+
this.a4y_1 = writer;
|
|
774
|
+
this.b4y_1 = error;
|
|
775
|
+
this.c4y_1 = packageName;
|
|
776
|
+
this.d4y_1 = logger;
|
|
777
|
+
this.e4y_1 = shared;
|
|
778
|
+
this.f4y_1 = strict;
|
|
779
|
+
this.g4y_1 = ignoreDefaults;
|
|
780
|
+
}
|
|
781
|
+
protoOf(ConverterArguments).h4y = function () {
|
|
782
|
+
return this.a4y_1;
|
|
788
783
|
};
|
|
789
|
-
protoOf(ConverterArguments).
|
|
790
|
-
return this.
|
|
784
|
+
protoOf(ConverterArguments).p1h = function () {
|
|
785
|
+
return this.b4y_1;
|
|
791
786
|
};
|
|
792
787
|
protoOf(ConverterArguments).toString = function () {
|
|
793
|
-
return 'ConverterArguments(format=' + this.
|
|
788
|
+
return 'ConverterArguments(format=' + this.x4x_1.toString() + ', input=' + NonEmptySet__toString_impl_yfcj6n(this.y4x_1) + ', emitter=' + toString(this.z4x_1) + ', writer=' + toString(this.a4y_1) + ', error=' + toString(this.b4y_1) + ', packageName=' + this.c4y_1.toString() + ', logger=' + toString(this.d4y_1) + ', shared=' + this.e4y_1 + ', strict=' + this.f4y_1 + ', ignoreDefaults=' + this.g4y_1 + ')';
|
|
794
789
|
};
|
|
795
790
|
protoOf(ConverterArguments).hashCode = function () {
|
|
796
|
-
var result = this.
|
|
797
|
-
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.
|
|
798
|
-
result = imul(result, 31) +
|
|
799
|
-
result = imul(result, 31) + hashCode(this.
|
|
800
|
-
result = imul(result, 31) + hashCode(this.
|
|
801
|
-
result = imul(result, 31) + hashCode(this.
|
|
802
|
-
result = imul(result, 31) + hashCode(this.
|
|
803
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
804
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
805
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
791
|
+
var result = this.x4x_1.hashCode();
|
|
792
|
+
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.y4x_1) | 0;
|
|
793
|
+
result = imul(result, 31) + hashCode(this.z4x_1) | 0;
|
|
794
|
+
result = imul(result, 31) + hashCode(this.a4y_1) | 0;
|
|
795
|
+
result = imul(result, 31) + hashCode(this.b4y_1) | 0;
|
|
796
|
+
result = imul(result, 31) + hashCode(this.c4y_1) | 0;
|
|
797
|
+
result = imul(result, 31) + hashCode(this.d4y_1) | 0;
|
|
798
|
+
result = imul(result, 31) + getBooleanHashCode(this.e4y_1) | 0;
|
|
799
|
+
result = imul(result, 31) + getBooleanHashCode(this.f4y_1) | 0;
|
|
800
|
+
result = imul(result, 31) + getBooleanHashCode(this.g4y_1) | 0;
|
|
806
801
|
return result;
|
|
807
802
|
};
|
|
808
803
|
protoOf(ConverterArguments).equals = function (other) {
|
|
@@ -810,38 +805,38 @@ protoOf(ConverterArguments).equals = function (other) {
|
|
|
810
805
|
return true;
|
|
811
806
|
if (!(other instanceof ConverterArguments))
|
|
812
807
|
return false;
|
|
813
|
-
if (!this.
|
|
808
|
+
if (!this.x4x_1.equals(other.x4x_1))
|
|
814
809
|
return false;
|
|
815
|
-
if (!equals(new NonEmptySet(this.
|
|
810
|
+
if (!equals(new NonEmptySet(this.y4x_1), new NonEmptySet(other.y4x_1)))
|
|
816
811
|
return false;
|
|
817
|
-
if (!equals(
|
|
812
|
+
if (!equals(this.z4x_1, other.z4x_1))
|
|
818
813
|
return false;
|
|
819
|
-
if (!equals(this.
|
|
814
|
+
if (!equals(this.a4y_1, other.a4y_1))
|
|
820
815
|
return false;
|
|
821
|
-
if (!equals(this.
|
|
816
|
+
if (!equals(this.b4y_1, other.b4y_1))
|
|
822
817
|
return false;
|
|
823
|
-
if (!equals(this.
|
|
818
|
+
if (!equals(this.c4y_1, other.c4y_1))
|
|
824
819
|
return false;
|
|
825
|
-
if (!equals(this.
|
|
820
|
+
if (!equals(this.d4y_1, other.d4y_1))
|
|
826
821
|
return false;
|
|
827
|
-
if (!(this.
|
|
822
|
+
if (!(this.e4y_1 === other.e4y_1))
|
|
828
823
|
return false;
|
|
829
|
-
if (!(this.
|
|
824
|
+
if (!(this.f4y_1 === other.f4y_1))
|
|
830
825
|
return false;
|
|
831
|
-
if (!(this.
|
|
826
|
+
if (!(this.g4y_1 === other.g4y_1))
|
|
832
827
|
return false;
|
|
833
828
|
return true;
|
|
834
829
|
};
|
|
835
830
|
function Source(name, content) {
|
|
836
|
-
this.
|
|
837
|
-
this.
|
|
831
|
+
this.k4y_1 = name;
|
|
832
|
+
this.l4y_1 = content;
|
|
838
833
|
}
|
|
839
834
|
protoOf(Source).toString = function () {
|
|
840
|
-
return 'Source(name=' + Name__toString_impl_61tomu(this.
|
|
835
|
+
return 'Source(name=' + Name__toString_impl_61tomu(this.k4y_1) + ', content=' + this.l4y_1 + ')';
|
|
841
836
|
};
|
|
842
837
|
protoOf(Source).hashCode = function () {
|
|
843
|
-
var result = Name__hashCode_impl_fpc861(this.
|
|
844
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
838
|
+
var result = Name__hashCode_impl_fpc861(this.k4y_1);
|
|
839
|
+
result = imul(result, 31) + getStringHashCode(this.l4y_1) | 0;
|
|
845
840
|
return result;
|
|
846
841
|
};
|
|
847
842
|
protoOf(Source).equals = function (other) {
|
|
@@ -849,9 +844,9 @@ protoOf(Source).equals = function (other) {
|
|
|
849
844
|
return true;
|
|
850
845
|
if (!(other instanceof Source))
|
|
851
846
|
return false;
|
|
852
|
-
if (!(this.
|
|
847
|
+
if (!(this.k4y_1 === other.k4y_1))
|
|
853
848
|
return false;
|
|
854
|
-
if (!(this.
|
|
849
|
+
if (!(this.l4y_1 === other.l4y_1))
|
|
855
850
|
return false;
|
|
856
851
|
return true;
|
|
857
852
|
};
|
|
@@ -882,24 +877,24 @@ function ClassPath__hashCode_impl_cciyyd($this) {
|
|
|
882
877
|
function ClassPath__equals_impl_kffpch($this, other) {
|
|
883
878
|
if (!(other instanceof ClassPath))
|
|
884
879
|
return false;
|
|
885
|
-
if (!($this === other.
|
|
880
|
+
if (!($this === other.m4y_1))
|
|
886
881
|
return false;
|
|
887
882
|
return true;
|
|
888
883
|
}
|
|
889
884
|
function ClassPath(value) {
|
|
890
|
-
this.
|
|
885
|
+
this.m4y_1 = value;
|
|
891
886
|
}
|
|
892
887
|
protoOf(ClassPath).o1 = function () {
|
|
893
|
-
return _ClassPath___get_value__impl__lfuxg0(this.
|
|
888
|
+
return _ClassPath___get_value__impl__lfuxg0(this.m4y_1);
|
|
894
889
|
};
|
|
895
890
|
protoOf(ClassPath).toString = function () {
|
|
896
|
-
return ClassPath__toString_impl_y3ovr8(this.
|
|
891
|
+
return ClassPath__toString_impl_y3ovr8(this.m4y_1);
|
|
897
892
|
};
|
|
898
893
|
protoOf(ClassPath).hashCode = function () {
|
|
899
|
-
return ClassPath__hashCode_impl_cciyyd(this.
|
|
894
|
+
return ClassPath__hashCode_impl_cciyyd(this.m4y_1);
|
|
900
895
|
};
|
|
901
896
|
protoOf(ClassPath).equals = function (other) {
|
|
902
|
-
return ClassPath__equals_impl_kffpch(this.
|
|
897
|
+
return ClassPath__equals_impl_kffpch(this.m4y_1, other);
|
|
903
898
|
};
|
|
904
899
|
function _DirectoryPath___init__impl__5bzkjd(value) {
|
|
905
900
|
return value;
|
|
@@ -916,31 +911,31 @@ function DirectoryPath__hashCode_impl_cv3skg($this) {
|
|
|
916
911
|
function DirectoryPath__equals_impl_c2rwsc($this, other) {
|
|
917
912
|
if (!(other instanceof DirectoryPath))
|
|
918
913
|
return false;
|
|
919
|
-
if (!($this === other.
|
|
914
|
+
if (!($this === other.n4y_1))
|
|
920
915
|
return false;
|
|
921
916
|
return true;
|
|
922
917
|
}
|
|
923
918
|
function DirectoryPath(value) {
|
|
924
|
-
this.
|
|
919
|
+
this.n4y_1 = value;
|
|
925
920
|
}
|
|
926
921
|
protoOf(DirectoryPath).o1 = function () {
|
|
927
|
-
return _DirectoryPath___get_value__impl__hdy2e3(this.
|
|
922
|
+
return _DirectoryPath___get_value__impl__hdy2e3(this.n4y_1);
|
|
928
923
|
};
|
|
929
924
|
protoOf(DirectoryPath).toString = function () {
|
|
930
|
-
return DirectoryPath__toString_impl_ym9pdb(this.
|
|
925
|
+
return DirectoryPath__toString_impl_ym9pdb(this.n4y_1);
|
|
931
926
|
};
|
|
932
927
|
protoOf(DirectoryPath).hashCode = function () {
|
|
933
|
-
return DirectoryPath__hashCode_impl_cv3skg(this.
|
|
928
|
+
return DirectoryPath__hashCode_impl_cv3skg(this.n4y_1);
|
|
934
929
|
};
|
|
935
930
|
protoOf(DirectoryPath).equals = function (other) {
|
|
936
|
-
return DirectoryPath__equals_impl_c2rwsc(this.
|
|
931
|
+
return DirectoryPath__equals_impl_c2rwsc(this.n4y_1, other);
|
|
937
932
|
};
|
|
938
933
|
function Directory(path) {
|
|
939
|
-
this.
|
|
934
|
+
this.o4y_1 = path;
|
|
940
935
|
}
|
|
941
936
|
function Companion_2() {
|
|
942
937
|
}
|
|
943
|
-
protoOf(Companion_2).
|
|
938
|
+
protoOf(Companion_2).p4y = function (input) {
|
|
944
939
|
// Inline function 'kotlin.let' call
|
|
945
940
|
var it = split(input, ['/']);
|
|
946
941
|
var list = plus(dropLast(it, 1), split(last(it), ['.']));
|
|
@@ -972,8 +967,8 @@ protoOf(Companion_2).g4w = function (input) {
|
|
|
972
967
|
tmp = tmp0_elvis_lhs;
|
|
973
968
|
}
|
|
974
969
|
var extension = tmp;
|
|
975
|
-
var idxOfFileName = list.
|
|
976
|
-
var filename = _Name___init__impl__o4q07e(list.
|
|
970
|
+
var idxOfFileName = list.c1() - 2 | 0;
|
|
971
|
+
var filename = _Name___init__impl__o4q07e(list.b1(idxOfFileName));
|
|
977
972
|
var path = joinToString(list.p2(0, idxOfFileName), '/');
|
|
978
973
|
return new FilePath(_DirectoryPath___init__impl__5bzkjd(path), filename, extension);
|
|
979
974
|
};
|
|
@@ -982,17 +977,17 @@ function Companion_getInstance_2() {
|
|
|
982
977
|
return Companion_instance_2;
|
|
983
978
|
}
|
|
984
979
|
function FilePath(directory, name, extension) {
|
|
985
|
-
this.
|
|
986
|
-
this.
|
|
987
|
-
this.
|
|
980
|
+
this.q4y_1 = directory;
|
|
981
|
+
this.r4y_1 = name;
|
|
982
|
+
this.s4y_1 = extension;
|
|
988
983
|
}
|
|
989
984
|
protoOf(FilePath).toString = function () {
|
|
990
|
-
return DirectoryPath__toString_impl_ym9pdb(this.
|
|
985
|
+
return DirectoryPath__toString_impl_ym9pdb(this.q4y_1) + '/' + _Name___get_value__impl__3tbxxy(this.r4y_1) + '.' + this.s4y_1.xr_1;
|
|
991
986
|
};
|
|
992
987
|
protoOf(FilePath).hashCode = function () {
|
|
993
|
-
var result = DirectoryPath__hashCode_impl_cv3skg(this.
|
|
994
|
-
result = imul(result, 31) + Name__hashCode_impl_fpc861(this.
|
|
995
|
-
result = imul(result, 31) + this.
|
|
988
|
+
var result = DirectoryPath__hashCode_impl_cv3skg(this.q4y_1);
|
|
989
|
+
result = imul(result, 31) + Name__hashCode_impl_fpc861(this.r4y_1) | 0;
|
|
990
|
+
result = imul(result, 31) + this.s4y_1.hashCode() | 0;
|
|
996
991
|
return result;
|
|
997
992
|
};
|
|
998
993
|
protoOf(FilePath).equals = function (other) {
|
|
@@ -1000,24 +995,24 @@ protoOf(FilePath).equals = function (other) {
|
|
|
1000
995
|
return true;
|
|
1001
996
|
if (!(other instanceof FilePath))
|
|
1002
997
|
return false;
|
|
1003
|
-
if (!(this.
|
|
998
|
+
if (!(this.q4y_1 === other.q4y_1))
|
|
1004
999
|
return false;
|
|
1005
|
-
if (!(this.
|
|
1000
|
+
if (!(this.r4y_1 === other.r4y_1))
|
|
1006
1001
|
return false;
|
|
1007
|
-
if (!this.
|
|
1002
|
+
if (!this.s4y_1.equals(other.s4y_1))
|
|
1008
1003
|
return false;
|
|
1009
1004
|
return true;
|
|
1010
1005
|
};
|
|
1011
1006
|
function path(_this__u8e3s4) {
|
|
1012
1007
|
var tmp;
|
|
1013
1008
|
if (_this__u8e3s4 instanceof ClassPath) {
|
|
1014
|
-
tmp = _ClassPath___get_value__impl__lfuxg0(_this__u8e3s4.
|
|
1009
|
+
tmp = _ClassPath___get_value__impl__lfuxg0(_this__u8e3s4.m4y_1);
|
|
1015
1010
|
} else {
|
|
1016
1011
|
if (_this__u8e3s4 instanceof DirectoryPath) {
|
|
1017
|
-
tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.
|
|
1012
|
+
tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.n4y_1);
|
|
1018
1013
|
} else {
|
|
1019
1014
|
if (_this__u8e3s4 instanceof FilePath) {
|
|
1020
|
-
tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.
|
|
1015
|
+
tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.q4y_1);
|
|
1021
1016
|
} else {
|
|
1022
1017
|
noWhenBranchMatchedException();
|
|
1023
1018
|
}
|
|
@@ -1026,7 +1021,7 @@ function path(_this__u8e3s4) {
|
|
|
1026
1021
|
return tmp;
|
|
1027
1022
|
}
|
|
1028
1023
|
function IOError(message) {
|
|
1029
|
-
this.
|
|
1024
|
+
this.t4y_1 = message;
|
|
1030
1025
|
}
|
|
1031
1026
|
function WirespecFileError() {
|
|
1032
1027
|
SpecificFile.call(this, FileExtension_Wirespec_getInstance());
|
|
@@ -1058,7 +1053,7 @@ function getFullPath(input, createIfNotExists_0) {
|
|
|
1058
1053
|
tmp_0 = new ClassPath(_ClassPath___init__impl__obyw3o(substringAfter(input, 'classpath:')));
|
|
1059
1054
|
} else {
|
|
1060
1055
|
var path = createIfNotExists(Path(input), createIfNotExists_0);
|
|
1061
|
-
var tmp0_elvis_lhs = get_SystemFileSystem().
|
|
1056
|
+
var tmp0_elvis_lhs = get_SystemFileSystem().x4w(path);
|
|
1062
1057
|
var tmp_1;
|
|
1063
1058
|
if (tmp0_elvis_lhs == null) {
|
|
1064
1059
|
raise.gn(new CannotAccessFileOrDirectory(input));
|
|
@@ -1068,10 +1063,10 @@ function getFullPath(input, createIfNotExists_0) {
|
|
|
1068
1063
|
var meta = tmp_1;
|
|
1069
1064
|
var pathString = path.toString();
|
|
1070
1065
|
var tmp_2;
|
|
1071
|
-
if (meta.
|
|
1066
|
+
if (meta.q4w_1) {
|
|
1072
1067
|
tmp_2 = new DirectoryPath(_DirectoryPath___init__impl__5bzkjd(pathString));
|
|
1073
|
-
} else if (meta.
|
|
1074
|
-
tmp_2 = Companion_instance_2.
|
|
1068
|
+
} else if (meta.p4w_1) {
|
|
1069
|
+
tmp_2 = Companion_instance_2.p4y(pathString);
|
|
1075
1070
|
} else {
|
|
1076
1071
|
raise.gn(new IsNotAFileOrDirectory(pathString));
|
|
1077
1072
|
}
|
|
@@ -1105,7 +1100,7 @@ function or(_this__u8e3s4, errorFn) {
|
|
|
1105
1100
|
var tmp;
|
|
1106
1101
|
if (_this__u8e3s4 instanceof Left) {
|
|
1107
1102
|
var tmp$ret$1;
|
|
1108
|
-
errorFn(_this__u8e3s4.sm_1.
|
|
1103
|
+
errorFn(_this__u8e3s4.sm_1.t4y_1);
|
|
1109
1104
|
throwKotlinNothingValueException();
|
|
1110
1105
|
tmp = tmp$ret$1;
|
|
1111
1106
|
} else {
|
|
@@ -1124,10 +1119,10 @@ function wirespecSources(_this__u8e3s4, logger) {
|
|
|
1124
1119
|
var raise = new DefaultRaise(false);
|
|
1125
1120
|
var tmp;
|
|
1126
1121
|
try {
|
|
1127
|
-
var tmp0 = Path(_DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.
|
|
1122
|
+
var tmp0 = Path(_DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.o4y_1));
|
|
1128
1123
|
// Inline function 'kotlin.let' call
|
|
1129
1124
|
// Inline function 'kotlin.collections.filter' call
|
|
1130
|
-
var tmp0_0 = get_SystemFileSystem().
|
|
1125
|
+
var tmp0_0 = get_SystemFileSystem().y4w(tmp0);
|
|
1131
1126
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1132
1127
|
var destination = ArrayList_init_$Create$();
|
|
1133
1128
|
var _iterator__ex2g4s = tmp0_0.t();
|
|
@@ -1153,11 +1148,11 @@ function wirespecSources(_this__u8e3s4, logger) {
|
|
|
1153
1148
|
var _iterator__ex2g4s_1 = destination_0.t();
|
|
1154
1149
|
while (_iterator__ex2g4s_1.u()) {
|
|
1155
1150
|
var item = _iterator__ex2g4s_1.v();
|
|
1156
|
-
var tmp$ret$14 = to(Companion_instance_2.
|
|
1151
|
+
var tmp$ret$14 = to(Companion_instance_2.p4y(item.toString()), readString(buffered(get_SystemFileSystem().u4w(item))));
|
|
1157
1152
|
destination_1.x(tmp$ret$14);
|
|
1158
1153
|
}
|
|
1159
1154
|
// Inline function 'kotlin.also' call
|
|
1160
|
-
logger.as('Found ' + destination_1.
|
|
1155
|
+
logger.as('Found ' + destination_1.c1() + ' file(s) to process in ' + _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.o4y_1));
|
|
1161
1156
|
// Inline function 'kotlin.collections.forEachIndexed' call
|
|
1162
1157
|
var index = 0;
|
|
1163
1158
|
var _iterator__ex2g4s_2 = destination_1.t();
|
|
@@ -1165,8 +1160,8 @@ function wirespecSources(_this__u8e3s4, logger) {
|
|
|
1165
1160
|
var item_0 = _iterator__ex2g4s_2.v();
|
|
1166
1161
|
var _unary__edvuaz = index;
|
|
1167
1162
|
index = _unary__edvuaz + 1 | 0;
|
|
1168
|
-
var prefix = checkIndexOverflow(_unary__edvuaz) < (destination_1.
|
|
1169
|
-
logger.as(' ' + prefix + ' ' + _Name___get_value__impl__3tbxxy(item_0.ff_1.
|
|
1163
|
+
var prefix = checkIndexOverflow(_unary__edvuaz) < (destination_1.c1() - 1 | 0) ? '\u251C\u2500\u2500 ' : '\u2514\u2500\u2500 ';
|
|
1164
|
+
logger.as(' ' + prefix + ' ' + _Name___get_value__impl__3tbxxy(item_0.ff_1.r4y_1) + '.' + item_0.ff_1.s4y_1.xr_1);
|
|
1170
1165
|
}
|
|
1171
1166
|
// Inline function 'kotlin.collections.map' call
|
|
1172
1167
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -1176,7 +1171,7 @@ function wirespecSources(_this__u8e3s4, logger) {
|
|
|
1176
1171
|
var item_1 = _iterator__ex2g4s_3.v();
|
|
1177
1172
|
var path = item_1.ze();
|
|
1178
1173
|
var source = item_1.af();
|
|
1179
|
-
var tmp$ret$21 = new Source(path.
|
|
1174
|
+
var tmp$ret$21 = new Source(path.r4y_1, source);
|
|
1180
1175
|
destination_2.x(tmp$ret$21);
|
|
1181
1176
|
}
|
|
1182
1177
|
var tmp0_elvis_lhs = toNonEmptySetOrNull(destination_2);
|
|
@@ -1213,7 +1208,7 @@ function wirespecSources(_this__u8e3s4, logger) {
|
|
|
1213
1208
|
function read(_this__u8e3s4) {
|
|
1214
1209
|
// Inline function 'kotlin.let' call
|
|
1215
1210
|
var it = Path(_this__u8e3s4.toString());
|
|
1216
|
-
return readString(buffered(get_SystemFileSystem().
|
|
1211
|
+
return readString(buffered(get_SystemFileSystem().u4w(it)));
|
|
1217
1212
|
}
|
|
1218
1213
|
function getOutPutPath(inputPath, output) {
|
|
1219
1214
|
// Inline function 'arrow.core.raise.either' call
|
|
@@ -1228,7 +1223,7 @@ function getOutPutPath(inputPath, output) {
|
|
|
1228
1223
|
tmp_0 = _DirectoryPath___init__impl__5bzkjd(path(inputPath) + '/out');
|
|
1229
1224
|
} else {
|
|
1230
1225
|
if (it instanceof DirectoryPath) {
|
|
1231
|
-
tmp_0 = it.
|
|
1226
|
+
tmp_0 = it.n4y_1;
|
|
1232
1227
|
} else {
|
|
1233
1228
|
var tmp_1;
|
|
1234
1229
|
if (it instanceof FilePath) {
|
|
@@ -1269,14 +1264,14 @@ function getOutPutPath(inputPath, output) {
|
|
|
1269
1264
|
function write(_this__u8e3s4, string) {
|
|
1270
1265
|
// Inline function 'kotlin.also' call
|
|
1271
1266
|
var this_0 = Path(_this__u8e3s4.toString());
|
|
1272
|
-
var tmp0_safe_receiver = this_0.
|
|
1267
|
+
var tmp0_safe_receiver = this_0.a4x();
|
|
1273
1268
|
if (tmp0_safe_receiver == null)
|
|
1274
1269
|
null;
|
|
1275
1270
|
else
|
|
1276
1271
|
createIfNotExists(tmp0_safe_receiver);
|
|
1277
1272
|
// Inline function 'kotlin.let' call
|
|
1278
1273
|
// Inline function 'kotlin.apply' call
|
|
1279
|
-
var this_1 = buffered_0(get_SystemFileSystem().
|
|
1274
|
+
var this_1 = buffered_0(get_SystemFileSystem().w4w(this_0));
|
|
1280
1275
|
writeString(this_1, string);
|
|
1281
1276
|
this_1.c9();
|
|
1282
1277
|
return Unit_instance;
|
|
@@ -1284,14 +1279,14 @@ function write(_this__u8e3s4, string) {
|
|
|
1284
1279
|
function createIfNotExists(_this__u8e3s4, create) {
|
|
1285
1280
|
create = create === VOID ? true : create;
|
|
1286
1281
|
// Inline function 'kotlin.also' call
|
|
1287
|
-
if (create && !get_SystemFileSystem().
|
|
1288
|
-
get_SystemFileSystem().
|
|
1282
|
+
if (create && !get_SystemFileSystem().s4w(_this__u8e3s4)) {
|
|
1283
|
+
get_SystemFileSystem().t4w(_this__u8e3s4, true);
|
|
1289
1284
|
}
|
|
1290
1285
|
return _this__u8e3s4;
|
|
1291
1286
|
}
|
|
1292
1287
|
function isRegularFile(path) {
|
|
1293
|
-
var tmp0_safe_receiver = get_SystemFileSystem().
|
|
1294
|
-
return (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1288
|
+
var tmp0_safe_receiver = get_SystemFileSystem().x4w(path);
|
|
1289
|
+
return (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.p4w_1) === true;
|
|
1295
1290
|
}
|
|
1296
1291
|
function isWirespecFile(path) {
|
|
1297
1292
|
return get_extension(path) === FileExtension_Wirespec_getInstance().xr_1;
|
|
@@ -1340,6 +1335,7 @@ export {
|
|
|
1340
1335
|
Extension_SpringMappingAnnotations_getInstance as Extension_SpringMappingAnnotations_getInstance1n0r3g1b75wjp,
|
|
1341
1336
|
Extension_SpringNativeHints_getInstance as Extension_SpringNativeHints_getInstance18tn7y425ujoe,
|
|
1342
1337
|
Language_Kotlin_getInstance as Language_Kotlin_getInstancel9flkgp6e3q4,
|
|
1338
|
+
Language_Wirespec_getInstance as Language_Wirespec_getInstancez8ixv3cb7hat,
|
|
1343
1339
|
_DirectoryPath___get_value__impl__hdy2e3 as _DirectoryPath___get_value__impl__hdy2e31of6jj3zjtzs5,
|
|
1344
1340
|
_Name___init__impl__o4q07e as _Name___init__impl__o4q07e3vb5gulc0hok1,
|
|
1345
1341
|
};
|