@flock/wirespec 0.22.5 → 0.22.7
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 +157 -157
- package/clikt-clikt-mordant.mjs +80 -80
- package/clikt-clikt.mjs +1528 -1527
- package/clikt-clikt.mjs.map +1 -1
- package/colormath-root-colormath.mjs +444 -444
- package/kotlin-kotlin-stdlib.mjs +1780 -1757
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +10202 -10202
- package/kotlin-rgxgen.mjs +1812 -1812
- package/kotlinx-io-kotlinx-io-core.mjs +435 -435
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1848 -1848
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1576 -1576
- package/mordant-mordant.mjs +1322 -1322
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +7497 -7034
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-java.mjs +198 -214
- package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-kotlin.mjs +164 -175
- package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-python.mjs +185 -198
- package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-rust.mjs +425 -439
- package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-scala.mjs +197 -207
- package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-typescript.mjs +234 -360
- package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-wirespec.mjs +179 -199
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +282 -282
- package/wirespec-src-converter-asyncapi.mjs +861 -779
- package/wirespec-src-converter-asyncapi.mjs.map +1 -1
- package/wirespec-src-converter-avro.mjs +603 -602
- package/wirespec-src-converter-avro.mjs.map +1 -1
- package/wirespec-src-converter-common.mjs +18 -18
- package/wirespec-src-converter-graphql.mjs +1070 -1070
- package/wirespec-src-converter-openapi.mjs +792 -680
- package/wirespec-src-converter-openapi.mjs.map +1 -1
- package/wirespec-src-ide-lsp.mjs +1383 -1383
- package/wirespec-src-plugin-arguments.mjs +207 -201
- package/wirespec-src-plugin-arguments.mjs.map +1 -1
- package/wirespec-src-plugin-cli.mjs +156 -159
- package/wirespec-src-plugin-cli.mjs.map +1 -1
- package/wirespec-src-plugin-extensions.mjs +1828 -1275
- 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,
|
|
@@ -74,7 +75,7 @@ import {
|
|
|
74
75
|
raisedOrRethrow397oyvsdde7oq as raisedOrRethrow,
|
|
75
76
|
Left2oemzq1tpcg4i as Left,
|
|
76
77
|
RaiseCancellationException3n5raogfhbd1l as RaiseCancellationException,
|
|
77
|
-
|
|
78
|
+
nonEmptySetOf3p7fhmt51pz4b as nonEmptySetOf,
|
|
78
79
|
NonEmptySet__toString_impl_yfcj6ns81v4qijlr42 as NonEmptySet__toString_impl_yfcj6n,
|
|
79
80
|
NonEmptySet__hashCode_impl_co6mdsl81ll59f92cp as NonEmptySet__hashCode_impl_co6mds,
|
|
80
81
|
NonEmptySet1rtvr2guloo52 as NonEmptySet,
|
|
@@ -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).n4x = 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).z4u = 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.q4x_1 = type;
|
|
193
|
+
this.r4x_1 = languages;
|
|
193
194
|
}
|
|
194
|
-
protoOf(Extension).
|
|
195
|
-
return this.
|
|
195
|
+
protoOf(Extension).s4x = function (language) {
|
|
196
|
+
return this.r4x_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.s4x(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).n4x = 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).z4u = 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.t4x_1, compile$lambda), arguments_0.b4y_1), arguments_0);
|
|
504
505
|
}
|
|
505
506
|
function convert(arguments_0) {
|
|
506
507
|
var tmp;
|
|
507
|
-
switch (arguments_0.
|
|
508
|
+
switch (arguments_0.c4y_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.k4y_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.d4y_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.k4y_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.l4y_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(
|
|
624
|
+
var list = new NonEmptyList(arguments_0.e4y_1.uo(element, arguments_0.i4y_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.m4y();
|
|
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,57 +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.n4y_1 = $arguments.y4x_1;
|
|
697
|
+
this.o4y_1 = nonEmptySetOf($arguments.u4x_1, []);
|
|
697
698
|
}
|
|
698
|
-
protoOf(compile$ctx$1).
|
|
699
|
-
return this.
|
|
699
|
+
protoOf(compile$ctx$1).no = function () {
|
|
700
|
+
return this.n4y_1;
|
|
700
701
|
};
|
|
701
|
-
protoOf(compile$ctx$1).
|
|
702
|
-
return this.
|
|
702
|
+
protoOf(compile$ctx$1).to = function () {
|
|
703
|
+
return this.o4y_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.p4y_1)), it.q4y_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.p4y_1)), it.q4y_1);
|
|
709
710
|
}
|
|
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) {
|
|
711
|
+
function CompilerArguments(input, emitter, writer, error, packageName, logger, shared, strict, ignoreDefaults) {
|
|
716
712
|
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.
|
|
713
|
+
this.t4x_1 = input;
|
|
714
|
+
this.u4x_1 = emitter;
|
|
715
|
+
this.v4x_1 = writer;
|
|
716
|
+
this.w4x_1 = error;
|
|
717
|
+
this.x4x_1 = packageName;
|
|
718
|
+
this.y4x_1 = logger;
|
|
719
|
+
this.z4x_1 = shared;
|
|
720
|
+
this.a4y_1 = strict;
|
|
721
|
+
this.b4y_1 = ignoreDefaults;
|
|
722
|
+
}
|
|
723
|
+
protoOf(CompilerArguments).m4y = function () {
|
|
724
|
+
return this.v4x_1;
|
|
729
725
|
};
|
|
730
|
-
protoOf(CompilerArguments).
|
|
731
|
-
return this.
|
|
726
|
+
protoOf(CompilerArguments).u1h = function () {
|
|
727
|
+
return this.w4x_1;
|
|
732
728
|
};
|
|
733
729
|
protoOf(CompilerArguments).toString = function () {
|
|
734
|
-
return 'CompilerArguments(input=' + NonEmptySet__toString_impl_yfcj6n(this.
|
|
730
|
+
return 'CompilerArguments(input=' + NonEmptySet__toString_impl_yfcj6n(this.t4x_1) + ', emitter=' + toString(this.u4x_1) + ', writer=' + toString(this.v4x_1) + ', error=' + toString(this.w4x_1) + ', packageName=' + this.x4x_1.toString() + ', logger=' + toString(this.y4x_1) + ', shared=' + this.z4x_1 + ', strict=' + this.a4y_1 + ', ignoreDefaults=' + this.b4y_1 + ')';
|
|
735
731
|
};
|
|
736
732
|
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.
|
|
733
|
+
var result = NonEmptySet__hashCode_impl_co6mds(this.t4x_1);
|
|
734
|
+
result = imul(result, 31) + hashCode(this.u4x_1) | 0;
|
|
735
|
+
result = imul(result, 31) + hashCode(this.v4x_1) | 0;
|
|
736
|
+
result = imul(result, 31) + hashCode(this.w4x_1) | 0;
|
|
737
|
+
result = imul(result, 31) + hashCode(this.x4x_1) | 0;
|
|
738
|
+
result = imul(result, 31) + hashCode(this.y4x_1) | 0;
|
|
739
|
+
result = imul(result, 31) + getBooleanHashCode(this.z4x_1) | 0;
|
|
740
|
+
result = imul(result, 31) + getBooleanHashCode(this.a4y_1) | 0;
|
|
741
|
+
result = imul(result, 31) + getBooleanHashCode(this.b4y_1) | 0;
|
|
746
742
|
return result;
|
|
747
743
|
};
|
|
748
744
|
protoOf(CompilerArguments).equals = function (other) {
|
|
@@ -750,59 +746,59 @@ protoOf(CompilerArguments).equals = function (other) {
|
|
|
750
746
|
return true;
|
|
751
747
|
if (!(other instanceof CompilerArguments))
|
|
752
748
|
return false;
|
|
753
|
-
if (!equals(new NonEmptySet(this.
|
|
749
|
+
if (!equals(new NonEmptySet(this.t4x_1), new NonEmptySet(other.t4x_1)))
|
|
754
750
|
return false;
|
|
755
|
-
if (!equals(
|
|
751
|
+
if (!equals(this.u4x_1, other.u4x_1))
|
|
756
752
|
return false;
|
|
757
|
-
if (!equals(this.
|
|
753
|
+
if (!equals(this.v4x_1, other.v4x_1))
|
|
758
754
|
return false;
|
|
759
|
-
if (!equals(this.
|
|
755
|
+
if (!equals(this.w4x_1, other.w4x_1))
|
|
760
756
|
return false;
|
|
761
|
-
if (!equals(this.
|
|
757
|
+
if (!equals(this.x4x_1, other.x4x_1))
|
|
762
758
|
return false;
|
|
763
|
-
if (!equals(this.
|
|
759
|
+
if (!equals(this.y4x_1, other.y4x_1))
|
|
764
760
|
return false;
|
|
765
|
-
if (!(this.
|
|
761
|
+
if (!(this.z4x_1 === other.z4x_1))
|
|
766
762
|
return false;
|
|
767
|
-
if (!(this.
|
|
763
|
+
if (!(this.a4y_1 === other.a4y_1))
|
|
768
764
|
return false;
|
|
769
|
-
if (!(this.
|
|
765
|
+
if (!(this.b4y_1 === other.b4y_1))
|
|
770
766
|
return false;
|
|
771
767
|
return true;
|
|
772
768
|
};
|
|
773
|
-
function ConverterArguments(format, input,
|
|
769
|
+
function ConverterArguments(format, input, emitter, writer, error, packageName, logger, shared, strict, ignoreDefaults) {
|
|
774
770
|
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.
|
|
771
|
+
this.c4y_1 = format;
|
|
772
|
+
this.d4y_1 = input;
|
|
773
|
+
this.e4y_1 = emitter;
|
|
774
|
+
this.f4y_1 = writer;
|
|
775
|
+
this.g4y_1 = error;
|
|
776
|
+
this.h4y_1 = packageName;
|
|
777
|
+
this.i4y_1 = logger;
|
|
778
|
+
this.j4y_1 = shared;
|
|
779
|
+
this.k4y_1 = strict;
|
|
780
|
+
this.l4y_1 = ignoreDefaults;
|
|
781
|
+
}
|
|
782
|
+
protoOf(ConverterArguments).m4y = function () {
|
|
783
|
+
return this.f4y_1;
|
|
788
784
|
};
|
|
789
|
-
protoOf(ConverterArguments).
|
|
790
|
-
return this.
|
|
785
|
+
protoOf(ConverterArguments).u1h = function () {
|
|
786
|
+
return this.g4y_1;
|
|
791
787
|
};
|
|
792
788
|
protoOf(ConverterArguments).toString = function () {
|
|
793
|
-
return 'ConverterArguments(format=' + this.
|
|
789
|
+
return 'ConverterArguments(format=' + this.c4y_1.toString() + ', input=' + NonEmptySet__toString_impl_yfcj6n(this.d4y_1) + ', emitter=' + toString(this.e4y_1) + ', writer=' + toString(this.f4y_1) + ', error=' + toString(this.g4y_1) + ', packageName=' + this.h4y_1.toString() + ', logger=' + toString(this.i4y_1) + ', shared=' + this.j4y_1 + ', strict=' + this.k4y_1 + ', ignoreDefaults=' + this.l4y_1 + ')';
|
|
794
790
|
};
|
|
795
791
|
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.
|
|
792
|
+
var result = this.c4y_1.hashCode();
|
|
793
|
+
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.d4y_1) | 0;
|
|
794
|
+
result = imul(result, 31) + hashCode(this.e4y_1) | 0;
|
|
795
|
+
result = imul(result, 31) + hashCode(this.f4y_1) | 0;
|
|
796
|
+
result = imul(result, 31) + hashCode(this.g4y_1) | 0;
|
|
797
|
+
result = imul(result, 31) + hashCode(this.h4y_1) | 0;
|
|
798
|
+
result = imul(result, 31) + hashCode(this.i4y_1) | 0;
|
|
799
|
+
result = imul(result, 31) + getBooleanHashCode(this.j4y_1) | 0;
|
|
800
|
+
result = imul(result, 31) + getBooleanHashCode(this.k4y_1) | 0;
|
|
801
|
+
result = imul(result, 31) + getBooleanHashCode(this.l4y_1) | 0;
|
|
806
802
|
return result;
|
|
807
803
|
};
|
|
808
804
|
protoOf(ConverterArguments).equals = function (other) {
|
|
@@ -810,38 +806,38 @@ protoOf(ConverterArguments).equals = function (other) {
|
|
|
810
806
|
return true;
|
|
811
807
|
if (!(other instanceof ConverterArguments))
|
|
812
808
|
return false;
|
|
813
|
-
if (!this.
|
|
809
|
+
if (!this.c4y_1.equals(other.c4y_1))
|
|
814
810
|
return false;
|
|
815
|
-
if (!equals(new NonEmptySet(this.
|
|
811
|
+
if (!equals(new NonEmptySet(this.d4y_1), new NonEmptySet(other.d4y_1)))
|
|
816
812
|
return false;
|
|
817
|
-
if (!equals(
|
|
813
|
+
if (!equals(this.e4y_1, other.e4y_1))
|
|
818
814
|
return false;
|
|
819
|
-
if (!equals(this.
|
|
815
|
+
if (!equals(this.f4y_1, other.f4y_1))
|
|
820
816
|
return false;
|
|
821
|
-
if (!equals(this.
|
|
817
|
+
if (!equals(this.g4y_1, other.g4y_1))
|
|
822
818
|
return false;
|
|
823
|
-
if (!equals(this.
|
|
819
|
+
if (!equals(this.h4y_1, other.h4y_1))
|
|
824
820
|
return false;
|
|
825
|
-
if (!equals(this.
|
|
821
|
+
if (!equals(this.i4y_1, other.i4y_1))
|
|
826
822
|
return false;
|
|
827
|
-
if (!(this.
|
|
823
|
+
if (!(this.j4y_1 === other.j4y_1))
|
|
828
824
|
return false;
|
|
829
|
-
if (!(this.
|
|
825
|
+
if (!(this.k4y_1 === other.k4y_1))
|
|
830
826
|
return false;
|
|
831
|
-
if (!(this.
|
|
827
|
+
if (!(this.l4y_1 === other.l4y_1))
|
|
832
828
|
return false;
|
|
833
829
|
return true;
|
|
834
830
|
};
|
|
835
831
|
function Source(name, content) {
|
|
836
|
-
this.
|
|
837
|
-
this.
|
|
832
|
+
this.p4y_1 = name;
|
|
833
|
+
this.q4y_1 = content;
|
|
838
834
|
}
|
|
839
835
|
protoOf(Source).toString = function () {
|
|
840
|
-
return 'Source(name=' + Name__toString_impl_61tomu(this.
|
|
836
|
+
return 'Source(name=' + Name__toString_impl_61tomu(this.p4y_1) + ', content=' + this.q4y_1 + ')';
|
|
841
837
|
};
|
|
842
838
|
protoOf(Source).hashCode = function () {
|
|
843
|
-
var result = Name__hashCode_impl_fpc861(this.
|
|
844
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
839
|
+
var result = Name__hashCode_impl_fpc861(this.p4y_1);
|
|
840
|
+
result = imul(result, 31) + getStringHashCode(this.q4y_1) | 0;
|
|
845
841
|
return result;
|
|
846
842
|
};
|
|
847
843
|
protoOf(Source).equals = function (other) {
|
|
@@ -849,9 +845,9 @@ protoOf(Source).equals = function (other) {
|
|
|
849
845
|
return true;
|
|
850
846
|
if (!(other instanceof Source))
|
|
851
847
|
return false;
|
|
852
|
-
if (!(this.
|
|
848
|
+
if (!(this.p4y_1 === other.p4y_1))
|
|
853
849
|
return false;
|
|
854
|
-
if (!(this.
|
|
850
|
+
if (!(this.q4y_1 === other.q4y_1))
|
|
855
851
|
return false;
|
|
856
852
|
return true;
|
|
857
853
|
};
|
|
@@ -882,24 +878,24 @@ function ClassPath__hashCode_impl_cciyyd($this) {
|
|
|
882
878
|
function ClassPath__equals_impl_kffpch($this, other) {
|
|
883
879
|
if (!(other instanceof ClassPath))
|
|
884
880
|
return false;
|
|
885
|
-
if (!($this === other.
|
|
881
|
+
if (!($this === other.r4y_1))
|
|
886
882
|
return false;
|
|
887
883
|
return true;
|
|
888
884
|
}
|
|
889
885
|
function ClassPath(value) {
|
|
890
|
-
this.
|
|
886
|
+
this.r4y_1 = value;
|
|
891
887
|
}
|
|
892
888
|
protoOf(ClassPath).o1 = function () {
|
|
893
|
-
return _ClassPath___get_value__impl__lfuxg0(this.
|
|
889
|
+
return _ClassPath___get_value__impl__lfuxg0(this.r4y_1);
|
|
894
890
|
};
|
|
895
891
|
protoOf(ClassPath).toString = function () {
|
|
896
|
-
return ClassPath__toString_impl_y3ovr8(this.
|
|
892
|
+
return ClassPath__toString_impl_y3ovr8(this.r4y_1);
|
|
897
893
|
};
|
|
898
894
|
protoOf(ClassPath).hashCode = function () {
|
|
899
|
-
return ClassPath__hashCode_impl_cciyyd(this.
|
|
895
|
+
return ClassPath__hashCode_impl_cciyyd(this.r4y_1);
|
|
900
896
|
};
|
|
901
897
|
protoOf(ClassPath).equals = function (other) {
|
|
902
|
-
return ClassPath__equals_impl_kffpch(this.
|
|
898
|
+
return ClassPath__equals_impl_kffpch(this.r4y_1, other);
|
|
903
899
|
};
|
|
904
900
|
function _DirectoryPath___init__impl__5bzkjd(value) {
|
|
905
901
|
return value;
|
|
@@ -916,31 +912,31 @@ function DirectoryPath__hashCode_impl_cv3skg($this) {
|
|
|
916
912
|
function DirectoryPath__equals_impl_c2rwsc($this, other) {
|
|
917
913
|
if (!(other instanceof DirectoryPath))
|
|
918
914
|
return false;
|
|
919
|
-
if (!($this === other.
|
|
915
|
+
if (!($this === other.s4y_1))
|
|
920
916
|
return false;
|
|
921
917
|
return true;
|
|
922
918
|
}
|
|
923
919
|
function DirectoryPath(value) {
|
|
924
|
-
this.
|
|
920
|
+
this.s4y_1 = value;
|
|
925
921
|
}
|
|
926
922
|
protoOf(DirectoryPath).o1 = function () {
|
|
927
|
-
return _DirectoryPath___get_value__impl__hdy2e3(this.
|
|
923
|
+
return _DirectoryPath___get_value__impl__hdy2e3(this.s4y_1);
|
|
928
924
|
};
|
|
929
925
|
protoOf(DirectoryPath).toString = function () {
|
|
930
|
-
return DirectoryPath__toString_impl_ym9pdb(this.
|
|
926
|
+
return DirectoryPath__toString_impl_ym9pdb(this.s4y_1);
|
|
931
927
|
};
|
|
932
928
|
protoOf(DirectoryPath).hashCode = function () {
|
|
933
|
-
return DirectoryPath__hashCode_impl_cv3skg(this.
|
|
929
|
+
return DirectoryPath__hashCode_impl_cv3skg(this.s4y_1);
|
|
934
930
|
};
|
|
935
931
|
protoOf(DirectoryPath).equals = function (other) {
|
|
936
|
-
return DirectoryPath__equals_impl_c2rwsc(this.
|
|
932
|
+
return DirectoryPath__equals_impl_c2rwsc(this.s4y_1, other);
|
|
937
933
|
};
|
|
938
934
|
function Directory(path) {
|
|
939
|
-
this.
|
|
935
|
+
this.t4y_1 = path;
|
|
940
936
|
}
|
|
941
937
|
function Companion_2() {
|
|
942
938
|
}
|
|
943
|
-
protoOf(Companion_2).
|
|
939
|
+
protoOf(Companion_2).u4y = function (input) {
|
|
944
940
|
// Inline function 'kotlin.let' call
|
|
945
941
|
var it = split(input, ['/']);
|
|
946
942
|
var list = plus(dropLast(it, 1), split(last(it), ['.']));
|
|
@@ -955,7 +951,7 @@ protoOf(Companion_2).g4w = function (input) {
|
|
|
955
951
|
var _iterator__ex2g4s = tmp0.t();
|
|
956
952
|
while (_iterator__ex2g4s.u()) {
|
|
957
953
|
var element = _iterator__ex2g4s.v();
|
|
958
|
-
if (element.
|
|
954
|
+
if (element.yr_1 === ext) {
|
|
959
955
|
tmp$ret$5 = element;
|
|
960
956
|
break $l$block;
|
|
961
957
|
}
|
|
@@ -972,9 +968,18 @@ protoOf(Companion_2).g4w = function (input) {
|
|
|
972
968
|
tmp = tmp0_elvis_lhs;
|
|
973
969
|
}
|
|
974
970
|
var extension = tmp;
|
|
975
|
-
var idxOfFileName = list.
|
|
976
|
-
var filename = _Name___init__impl__o4q07e(list.
|
|
977
|
-
|
|
971
|
+
var idxOfFileName = list.c1() - 2 | 0;
|
|
972
|
+
var filename = _Name___init__impl__o4q07e(list.b1(idxOfFileName));
|
|
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, '/');
|
|
978
983
|
return new FilePath(_DirectoryPath___init__impl__5bzkjd(path), filename, extension);
|
|
979
984
|
};
|
|
980
985
|
var Companion_instance_2;
|
|
@@ -982,17 +987,17 @@ function Companion_getInstance_2() {
|
|
|
982
987
|
return Companion_instance_2;
|
|
983
988
|
}
|
|
984
989
|
function FilePath(directory, name, extension) {
|
|
985
|
-
this.
|
|
986
|
-
this.
|
|
987
|
-
this.
|
|
990
|
+
this.v4y_1 = directory;
|
|
991
|
+
this.w4y_1 = name;
|
|
992
|
+
this.x4y_1 = extension;
|
|
988
993
|
}
|
|
989
994
|
protoOf(FilePath).toString = function () {
|
|
990
|
-
return DirectoryPath__toString_impl_ym9pdb(this.
|
|
995
|
+
return DirectoryPath__toString_impl_ym9pdb(this.v4y_1) + '/' + _Name___get_value__impl__3tbxxy(this.w4y_1) + '.' + this.x4y_1.yr_1;
|
|
991
996
|
};
|
|
992
997
|
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.
|
|
998
|
+
var result = DirectoryPath__hashCode_impl_cv3skg(this.v4y_1);
|
|
999
|
+
result = imul(result, 31) + Name__hashCode_impl_fpc861(this.w4y_1) | 0;
|
|
1000
|
+
result = imul(result, 31) + this.x4y_1.hashCode() | 0;
|
|
996
1001
|
return result;
|
|
997
1002
|
};
|
|
998
1003
|
protoOf(FilePath).equals = function (other) {
|
|
@@ -1000,24 +1005,24 @@ protoOf(FilePath).equals = function (other) {
|
|
|
1000
1005
|
return true;
|
|
1001
1006
|
if (!(other instanceof FilePath))
|
|
1002
1007
|
return false;
|
|
1003
|
-
if (!(this.
|
|
1008
|
+
if (!(this.v4y_1 === other.v4y_1))
|
|
1004
1009
|
return false;
|
|
1005
|
-
if (!(this.
|
|
1010
|
+
if (!(this.w4y_1 === other.w4y_1))
|
|
1006
1011
|
return false;
|
|
1007
|
-
if (!this.
|
|
1012
|
+
if (!this.x4y_1.equals(other.x4y_1))
|
|
1008
1013
|
return false;
|
|
1009
1014
|
return true;
|
|
1010
1015
|
};
|
|
1011
1016
|
function path(_this__u8e3s4) {
|
|
1012
1017
|
var tmp;
|
|
1013
1018
|
if (_this__u8e3s4 instanceof ClassPath) {
|
|
1014
|
-
tmp = _ClassPath___get_value__impl__lfuxg0(_this__u8e3s4.
|
|
1019
|
+
tmp = _ClassPath___get_value__impl__lfuxg0(_this__u8e3s4.r4y_1);
|
|
1015
1020
|
} else {
|
|
1016
1021
|
if (_this__u8e3s4 instanceof DirectoryPath) {
|
|
1017
|
-
tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.
|
|
1022
|
+
tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.s4y_1);
|
|
1018
1023
|
} else {
|
|
1019
1024
|
if (_this__u8e3s4 instanceof FilePath) {
|
|
1020
|
-
tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.
|
|
1025
|
+
tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.v4y_1);
|
|
1021
1026
|
} else {
|
|
1022
1027
|
noWhenBranchMatchedException();
|
|
1023
1028
|
}
|
|
@@ -1026,13 +1031,13 @@ function path(_this__u8e3s4) {
|
|
|
1026
1031
|
return tmp;
|
|
1027
1032
|
}
|
|
1028
1033
|
function IOError(message) {
|
|
1029
|
-
this.
|
|
1034
|
+
this.y4y_1 = message;
|
|
1030
1035
|
}
|
|
1031
1036
|
function WirespecFileError() {
|
|
1032
1037
|
SpecificFile.call(this, FileExtension_Wirespec_getInstance());
|
|
1033
1038
|
}
|
|
1034
1039
|
function SpecificFile(extension) {
|
|
1035
|
-
IOError.call(this, 'No ' + extension.
|
|
1040
|
+
IOError.call(this, 'No ' + extension.e3_1 + ' file found');
|
|
1036
1041
|
}
|
|
1037
1042
|
function CannotAccessFileOrDirectory(input) {
|
|
1038
1043
|
IOError.call(this, 'Cannot access file or directory: ' + input + '.');
|
|
@@ -1058,39 +1063,39 @@ function getFullPath(input, createIfNotExists_0) {
|
|
|
1058
1063
|
tmp_0 = new ClassPath(_ClassPath___init__impl__obyw3o(substringAfter(input, 'classpath:')));
|
|
1059
1064
|
} else {
|
|
1060
1065
|
var path = createIfNotExists(Path(input), createIfNotExists_0);
|
|
1061
|
-
var tmp0_elvis_lhs = get_SystemFileSystem().
|
|
1066
|
+
var tmp0_elvis_lhs = get_SystemFileSystem().c4x(path);
|
|
1062
1067
|
var tmp_1;
|
|
1063
1068
|
if (tmp0_elvis_lhs == null) {
|
|
1064
|
-
raise.
|
|
1069
|
+
raise.hn(new CannotAccessFileOrDirectory(input));
|
|
1065
1070
|
} else {
|
|
1066
1071
|
tmp_1 = tmp0_elvis_lhs;
|
|
1067
1072
|
}
|
|
1068
1073
|
var meta = tmp_1;
|
|
1069
1074
|
var pathString = path.toString();
|
|
1070
1075
|
var tmp_2;
|
|
1071
|
-
if (meta.
|
|
1076
|
+
if (meta.v4w_1) {
|
|
1072
1077
|
tmp_2 = new DirectoryPath(_DirectoryPath___init__impl__5bzkjd(pathString));
|
|
1073
|
-
} else if (meta.
|
|
1074
|
-
tmp_2 = Companion_instance_2.
|
|
1078
|
+
} else if (meta.u4w_1) {
|
|
1079
|
+
tmp_2 = Companion_instance_2.u4y(pathString);
|
|
1075
1080
|
} else {
|
|
1076
|
-
raise.
|
|
1081
|
+
raise.hn(new IsNotAFileOrDirectory(pathString));
|
|
1077
1082
|
}
|
|
1078
1083
|
tmp_0 = tmp_2;
|
|
1079
1084
|
}
|
|
1080
1085
|
var res = tmp_0;
|
|
1081
|
-
raise.
|
|
1086
|
+
raise.dn();
|
|
1082
1087
|
tmp = new Right(res);
|
|
1083
1088
|
} catch ($p) {
|
|
1084
1089
|
var tmp_3;
|
|
1085
1090
|
if ($p instanceof RaiseCancellationException) {
|
|
1086
1091
|
var e = $p;
|
|
1087
|
-
raise.
|
|
1092
|
+
raise.dn();
|
|
1088
1093
|
var it = raisedOrRethrow(e, raise);
|
|
1089
1094
|
tmp_3 = new Left(it);
|
|
1090
1095
|
} else {
|
|
1091
1096
|
if ($p instanceof Error) {
|
|
1092
1097
|
var e_0 = $p;
|
|
1093
|
-
raise.
|
|
1098
|
+
raise.dn();
|
|
1094
1099
|
throw nonFatalOrThrow(e_0);
|
|
1095
1100
|
} else {
|
|
1096
1101
|
throw $p;
|
|
@@ -1105,12 +1110,12 @@ function or(_this__u8e3s4, errorFn) {
|
|
|
1105
1110
|
var tmp;
|
|
1106
1111
|
if (_this__u8e3s4 instanceof Left) {
|
|
1107
1112
|
var tmp$ret$1;
|
|
1108
|
-
errorFn(_this__u8e3s4.
|
|
1113
|
+
errorFn(_this__u8e3s4.tm_1.y4y_1);
|
|
1109
1114
|
throwKotlinNothingValueException();
|
|
1110
1115
|
tmp = tmp$ret$1;
|
|
1111
1116
|
} else {
|
|
1112
1117
|
if (_this__u8e3s4 instanceof Right) {
|
|
1113
|
-
tmp = _this__u8e3s4.
|
|
1118
|
+
tmp = _this__u8e3s4.vm_1;
|
|
1114
1119
|
} else {
|
|
1115
1120
|
noWhenBranchMatchedException();
|
|
1116
1121
|
}
|
|
@@ -1124,10 +1129,10 @@ function wirespecSources(_this__u8e3s4, logger) {
|
|
|
1124
1129
|
var raise = new DefaultRaise(false);
|
|
1125
1130
|
var tmp;
|
|
1126
1131
|
try {
|
|
1127
|
-
var tmp0 = Path(_DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.
|
|
1132
|
+
var tmp0 = Path(_DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.t4y_1));
|
|
1128
1133
|
// Inline function 'kotlin.let' call
|
|
1129
1134
|
// Inline function 'kotlin.collections.filter' call
|
|
1130
|
-
var tmp0_0 = get_SystemFileSystem().
|
|
1135
|
+
var tmp0_0 = get_SystemFileSystem().d4x(tmp0);
|
|
1131
1136
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1132
1137
|
var destination = ArrayList_init_$Create$();
|
|
1133
1138
|
var _iterator__ex2g4s = tmp0_0.t();
|
|
@@ -1153,11 +1158,11 @@ function wirespecSources(_this__u8e3s4, logger) {
|
|
|
1153
1158
|
var _iterator__ex2g4s_1 = destination_0.t();
|
|
1154
1159
|
while (_iterator__ex2g4s_1.u()) {
|
|
1155
1160
|
var item = _iterator__ex2g4s_1.v();
|
|
1156
|
-
var tmp$ret$14 = to(Companion_instance_2.
|
|
1161
|
+
var tmp$ret$14 = to(Companion_instance_2.u4y(item.toString()), readString(buffered(get_SystemFileSystem().z4w(item))));
|
|
1157
1162
|
destination_1.x(tmp$ret$14);
|
|
1158
1163
|
}
|
|
1159
1164
|
// Inline function 'kotlin.also' call
|
|
1160
|
-
logger.
|
|
1165
|
+
logger.bs('Found ' + destination_1.c1() + ' file(s) to process in ' + _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.t4y_1));
|
|
1161
1166
|
// Inline function 'kotlin.collections.forEachIndexed' call
|
|
1162
1167
|
var index = 0;
|
|
1163
1168
|
var _iterator__ex2g4s_2 = destination_1.t();
|
|
@@ -1165,8 +1170,8 @@ function wirespecSources(_this__u8e3s4, logger) {
|
|
|
1165
1170
|
var item_0 = _iterator__ex2g4s_2.v();
|
|
1166
1171
|
var _unary__edvuaz = index;
|
|
1167
1172
|
index = _unary__edvuaz + 1 | 0;
|
|
1168
|
-
var prefix = checkIndexOverflow(_unary__edvuaz) < (destination_1.
|
|
1169
|
-
logger.
|
|
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.w4y_1) + '.' + item_0.gf_1.x4y_1.yr_1);
|
|
1170
1175
|
}
|
|
1171
1176
|
// Inline function 'kotlin.collections.map' call
|
|
1172
1177
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -1174,33 +1179,33 @@ function wirespecSources(_this__u8e3s4, logger) {
|
|
|
1174
1179
|
var _iterator__ex2g4s_3 = destination_1.t();
|
|
1175
1180
|
while (_iterator__ex2g4s_3.u()) {
|
|
1176
1181
|
var item_1 = _iterator__ex2g4s_3.v();
|
|
1177
|
-
var path = item_1.
|
|
1178
|
-
var source = item_1.
|
|
1179
|
-
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.w4y_1, source);
|
|
1180
1185
|
destination_2.x(tmp$ret$21);
|
|
1181
1186
|
}
|
|
1182
1187
|
var tmp0_elvis_lhs = toNonEmptySetOrNull(destination_2);
|
|
1183
1188
|
var tmp_0;
|
|
1184
1189
|
var tmp_1 = tmp0_elvis_lhs;
|
|
1185
1190
|
if ((tmp_1 == null ? null : new NonEmptySet(tmp_1)) == null) {
|
|
1186
|
-
raise.
|
|
1191
|
+
raise.hn(new WirespecFileError());
|
|
1187
1192
|
} else {
|
|
1188
1193
|
tmp_0 = tmp0_elvis_lhs;
|
|
1189
1194
|
}
|
|
1190
1195
|
var res = new NonEmptySet(tmp_0);
|
|
1191
|
-
raise.
|
|
1196
|
+
raise.dn();
|
|
1192
1197
|
tmp = new Right(res);
|
|
1193
1198
|
} catch ($p) {
|
|
1194
1199
|
var tmp_2;
|
|
1195
1200
|
if ($p instanceof RaiseCancellationException) {
|
|
1196
1201
|
var e = $p;
|
|
1197
|
-
raise.
|
|
1202
|
+
raise.dn();
|
|
1198
1203
|
var it = raisedOrRethrow(e, raise);
|
|
1199
1204
|
tmp_2 = new Left(it);
|
|
1200
1205
|
} else {
|
|
1201
1206
|
if ($p instanceof Error) {
|
|
1202
1207
|
var e_0 = $p;
|
|
1203
|
-
raise.
|
|
1208
|
+
raise.dn();
|
|
1204
1209
|
throw nonFatalOrThrow(e_0);
|
|
1205
1210
|
} else {
|
|
1206
1211
|
throw $p;
|
|
@@ -1213,7 +1218,7 @@ function wirespecSources(_this__u8e3s4, logger) {
|
|
|
1213
1218
|
function read(_this__u8e3s4) {
|
|
1214
1219
|
// Inline function 'kotlin.let' call
|
|
1215
1220
|
var it = Path(_this__u8e3s4.toString());
|
|
1216
|
-
return readString(buffered(get_SystemFileSystem().
|
|
1221
|
+
return readString(buffered(get_SystemFileSystem().z4w(it)));
|
|
1217
1222
|
}
|
|
1218
1223
|
function getOutPutPath(inputPath, output) {
|
|
1219
1224
|
// Inline function 'arrow.core.raise.either' call
|
|
@@ -1222,13 +1227,13 @@ function getOutPutPath(inputPath, output) {
|
|
|
1222
1227
|
var raise = new DefaultRaise(false);
|
|
1223
1228
|
var tmp;
|
|
1224
1229
|
try {
|
|
1225
|
-
var it = raise.
|
|
1230
|
+
var it = raise.ln(getFullPath(output, true));
|
|
1226
1231
|
var tmp_0;
|
|
1227
1232
|
if (it == null) {
|
|
1228
1233
|
tmp_0 = _DirectoryPath___init__impl__5bzkjd(path(inputPath) + '/out');
|
|
1229
1234
|
} else {
|
|
1230
1235
|
if (it instanceof DirectoryPath) {
|
|
1231
|
-
tmp_0 = it.
|
|
1236
|
+
tmp_0 = it.s4y_1;
|
|
1232
1237
|
} else {
|
|
1233
1238
|
var tmp_1;
|
|
1234
1239
|
if (it instanceof FilePath) {
|
|
@@ -1237,26 +1242,26 @@ function getOutPutPath(inputPath, output) {
|
|
|
1237
1242
|
tmp_1 = it instanceof ClassPath;
|
|
1238
1243
|
}
|
|
1239
1244
|
if (tmp_1) {
|
|
1240
|
-
raise.
|
|
1245
|
+
raise.hn(new OutputShouldBeADirectory());
|
|
1241
1246
|
} else {
|
|
1242
1247
|
noWhenBranchMatchedException();
|
|
1243
1248
|
}
|
|
1244
1249
|
}
|
|
1245
1250
|
}
|
|
1246
1251
|
var res = new DirectoryPath(tmp_0);
|
|
1247
|
-
raise.
|
|
1252
|
+
raise.dn();
|
|
1248
1253
|
tmp = new Right(res);
|
|
1249
1254
|
} catch ($p) {
|
|
1250
1255
|
var tmp_2;
|
|
1251
1256
|
if ($p instanceof RaiseCancellationException) {
|
|
1252
1257
|
var e = $p;
|
|
1253
|
-
raise.
|
|
1258
|
+
raise.dn();
|
|
1254
1259
|
var it_0 = raisedOrRethrow(e, raise);
|
|
1255
1260
|
tmp_2 = new Left(it_0);
|
|
1256
1261
|
} else {
|
|
1257
1262
|
if ($p instanceof Error) {
|
|
1258
1263
|
var e_0 = $p;
|
|
1259
|
-
raise.
|
|
1264
|
+
raise.dn();
|
|
1260
1265
|
throw nonFatalOrThrow(e_0);
|
|
1261
1266
|
} else {
|
|
1262
1267
|
throw $p;
|
|
@@ -1269,38 +1274,38 @@ function getOutPutPath(inputPath, output) {
|
|
|
1269
1274
|
function write(_this__u8e3s4, string) {
|
|
1270
1275
|
// Inline function 'kotlin.also' call
|
|
1271
1276
|
var this_0 = Path(_this__u8e3s4.toString());
|
|
1272
|
-
var tmp0_safe_receiver = this_0.
|
|
1277
|
+
var tmp0_safe_receiver = this_0.f4x();
|
|
1273
1278
|
if (tmp0_safe_receiver == null)
|
|
1274
1279
|
null;
|
|
1275
1280
|
else
|
|
1276
1281
|
createIfNotExists(tmp0_safe_receiver);
|
|
1277
1282
|
// Inline function 'kotlin.let' call
|
|
1278
1283
|
// Inline function 'kotlin.apply' call
|
|
1279
|
-
var this_1 = buffered_0(get_SystemFileSystem().
|
|
1284
|
+
var this_1 = buffered_0(get_SystemFileSystem().b4x(this_0));
|
|
1280
1285
|
writeString(this_1, string);
|
|
1281
|
-
this_1.
|
|
1286
|
+
this_1.d9();
|
|
1282
1287
|
return Unit_instance;
|
|
1283
1288
|
}
|
|
1284
1289
|
function createIfNotExists(_this__u8e3s4, create) {
|
|
1285
1290
|
create = create === VOID ? true : create;
|
|
1286
1291
|
// Inline function 'kotlin.also' call
|
|
1287
|
-
if (create && !get_SystemFileSystem().
|
|
1288
|
-
get_SystemFileSystem().
|
|
1292
|
+
if (create && !get_SystemFileSystem().x4w(_this__u8e3s4)) {
|
|
1293
|
+
get_SystemFileSystem().y4w(_this__u8e3s4, true);
|
|
1289
1294
|
}
|
|
1290
1295
|
return _this__u8e3s4;
|
|
1291
1296
|
}
|
|
1292
1297
|
function isRegularFile(path) {
|
|
1293
|
-
var tmp0_safe_receiver = get_SystemFileSystem().
|
|
1294
|
-
return (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1298
|
+
var tmp0_safe_receiver = get_SystemFileSystem().c4x(path);
|
|
1299
|
+
return (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.u4w_1) === true;
|
|
1295
1300
|
}
|
|
1296
1301
|
function isWirespecFile(path) {
|
|
1297
|
-
return get_extension(path) === FileExtension_Wirespec_getInstance().
|
|
1302
|
+
return get_extension(path) === FileExtension_Wirespec_getInstance().yr_1;
|
|
1298
1303
|
}
|
|
1299
1304
|
function get_extension(_this__u8e3s4) {
|
|
1300
1305
|
return substringAfterLast(_this__u8e3s4.m(), _Char___init__impl__6a9atx(46), '');
|
|
1301
1306
|
}
|
|
1302
1307
|
//region block: post-declaration
|
|
1303
|
-
protoOf(compile$ctx$1).
|
|
1308
|
+
protoOf(compile$ctx$1).mo = get_spec;
|
|
1304
1309
|
//endregion
|
|
1305
1310
|
//region block: init
|
|
1306
1311
|
Companion_instance = new Companion();
|
|
@@ -1340,6 +1345,7 @@ export {
|
|
|
1340
1345
|
Extension_SpringMappingAnnotations_getInstance as Extension_SpringMappingAnnotations_getInstance1n0r3g1b75wjp,
|
|
1341
1346
|
Extension_SpringNativeHints_getInstance as Extension_SpringNativeHints_getInstance18tn7y425ujoe,
|
|
1342
1347
|
Language_Kotlin_getInstance as Language_Kotlin_getInstancel9flkgp6e3q4,
|
|
1348
|
+
Language_Wirespec_getInstance as Language_Wirespec_getInstancez8ixv3cb7hat,
|
|
1343
1349
|
_DirectoryPath___get_value__impl__hdy2e3 as _DirectoryPath___get_value__impl__hdy2e31of6jj3zjtzs5,
|
|
1344
1350
|
_Name___init__impl__o4q07e as _Name___init__impl__o4q07e3vb5gulc0hok1,
|
|
1345
1351
|
};
|