@flock/wirespec 0.22.1 → 0.22.2
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 +11 -5
- package/arrow-arrow-core.mjs.map +1 -1
- package/clikt-clikt-mordant.mjs +79 -79
- package/clikt-clikt.mjs +1343 -1343
- package/colormath-root-colormath.mjs +437 -437
- package/kotlin-kotlin-stdlib.mjs +249 -243
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +10004 -10004
- package/kotlin-rgxgen.mjs +1762 -1762
- package/kotlinx-io-kotlinx-io-core.mjs +404 -404
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1786 -1786
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1514 -1508
- package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
- package/mordant-mordant.mjs +1231 -1225
- package/mordant-mordant.mjs.map +1 -1
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +4940 -4889
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-java.mjs +180 -180
- package/wirespec-src-compiler-emitters-kotlin.mjs +134 -134
- package/wirespec-src-compiler-emitters-python.mjs +157 -157
- package/wirespec-src-compiler-emitters-rust.mjs +392 -392
- package/wirespec-src-compiler-emitters-scala.mjs +168 -168
- package/wirespec-src-compiler-emitters-typescript.mjs +229 -229
- package/wirespec-src-compiler-emitters-wirespec.mjs +130 -130
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +388 -326
- package/wirespec-src-compiler-lib.mjs.map +1 -1
- package/wirespec-src-converter-asyncapi.mjs +639 -639
- package/wirespec-src-converter-avro.mjs +548 -548
- package/wirespec-src-converter-common.mjs +16 -16
- package/wirespec-src-converter-graphql.mjs +2546 -1342
- package/wirespec-src-converter-graphql.mjs.map +1 -1
- package/wirespec-src-converter-openapi.mjs +593 -593
- package/wirespec-src-ide-lsp.mjs +1371 -1371
- package/wirespec-src-plugin-arguments.mjs +146 -146
- package/wirespec-src-plugin-cli.mjs +89 -89
- package/wirespec-src-plugin-npm.d.mts +21 -3
- package/wirespec-src-plugin-npm.mjs +26 -26
- package/wirespec-src-tools-generator.mjs +24 -24
|
@@ -182,7 +182,7 @@ var Language_OpenAPIV3_instance;
|
|
|
182
182
|
var Language_Avro_instance;
|
|
183
183
|
function Companion_0() {
|
|
184
184
|
}
|
|
185
|
-
protoOf(Companion_0).
|
|
185
|
+
protoOf(Companion_0).v4q = function () {
|
|
186
186
|
// Inline function 'kotlin.collections.associateBy' call
|
|
187
187
|
var this_0 = get_entries_1();
|
|
188
188
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
@@ -312,11 +312,11 @@ function Language_Avro_getInstance() {
|
|
|
312
312
|
}
|
|
313
313
|
function compile_0(arguments_0) {
|
|
314
314
|
var ctx = new compile$ctx$1(arguments_0);
|
|
315
|
-
fold(compile(ctx, NonEmptySet__map_impl_ngjswd(arguments_0.
|
|
315
|
+
fold(compile(ctx, NonEmptySet__map_impl_ngjswd(arguments_0.w4q_1, compile$lambda), arguments_0.e4r_1), arguments_0);
|
|
316
316
|
}
|
|
317
317
|
function convert(arguments_0) {
|
|
318
318
|
var tmp;
|
|
319
|
-
switch (arguments_0.
|
|
319
|
+
switch (arguments_0.f4r_1.e3_1) {
|
|
320
320
|
case 0:
|
|
321
321
|
tmp = OpenAPIV2Parser_instance;
|
|
322
322
|
break;
|
|
@@ -337,9 +337,9 @@ function convert(arguments_0) {
|
|
|
337
337
|
break;
|
|
338
338
|
}
|
|
339
339
|
var parser = tmp;
|
|
340
|
-
var options = new ParseOptions(arguments_0.
|
|
340
|
+
var options = new ParseOptions(arguments_0.n4r_1);
|
|
341
341
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
342
|
-
var this_0 = NonEmptySet__map_impl_ngjswd(arguments_0.
|
|
342
|
+
var this_0 = NonEmptySet__map_impl_ngjswd(arguments_0.g4r_1, convert$lambda);
|
|
343
343
|
// Inline function 'kotlin.collections.map' call
|
|
344
344
|
var this_1 = _NonEmptyList___get_all__impl__pmf509(this_0);
|
|
345
345
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -347,7 +347,7 @@ function convert(arguments_0) {
|
|
|
347
347
|
var _iterator__ex2g4s = this_1.t();
|
|
348
348
|
while (_iterator__ex2g4s.u()) {
|
|
349
349
|
var item = _iterator__ex2g4s.v();
|
|
350
|
-
var tmp$ret$3 = parser.
|
|
350
|
+
var tmp$ret$3 = parser.w48(item, arguments_0.n4r_1);
|
|
351
351
|
destination.x(tmp$ret$3);
|
|
352
352
|
}
|
|
353
353
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
@@ -359,7 +359,7 @@ function convert(arguments_0) {
|
|
|
359
359
|
var _iterator__ex2g4s_0 = this_3.t();
|
|
360
360
|
while (_iterator__ex2g4s_0.u()) {
|
|
361
361
|
var item_0 = _iterator__ex2g4s_0.v();
|
|
362
|
-
var tmp$ret$7 = Validator_instance.
|
|
362
|
+
var tmp$ret$7 = Validator_instance.a1c(options, item_0);
|
|
363
363
|
destination_0.x(tmp$ret$7);
|
|
364
364
|
}
|
|
365
365
|
// Inline function 'kotlin.let' call
|
|
@@ -405,7 +405,7 @@ function convert(arguments_0) {
|
|
|
405
405
|
var _iterator__ex2g4s_1 = this_6.t();
|
|
406
406
|
while (_iterator__ex2g4s_1.u()) {
|
|
407
407
|
var item_1 = _iterator__ex2g4s_1.v();
|
|
408
|
-
var tmp$ret$24 = arguments_0.
|
|
408
|
+
var tmp$ret$24 = arguments_0.o4r_1 ? withoutDefaults(item_1) : item_1;
|
|
409
409
|
destination_1.x(tmp$ret$24);
|
|
410
410
|
}
|
|
411
411
|
var tmp$ret$21 = _NonEmptyList___init__impl__fxd0xp(destination_1);
|
|
@@ -432,7 +432,7 @@ function convert(arguments_0) {
|
|
|
432
432
|
var _iterator__ex2g4s_2 = tmp0.t();
|
|
433
433
|
while (_iterator__ex2g4s_2.u()) {
|
|
434
434
|
var element = _iterator__ex2g4s_2.v();
|
|
435
|
-
var list = new NonEmptyList(NonEmptySet__flatMap_impl_ovm5jg(arguments_0.
|
|
435
|
+
var list = new NonEmptyList(NonEmptySet__flatMap_impl_ovm5jg(arguments_0.h4r_1, convert$lambda_0(element, arguments_0)));
|
|
436
436
|
addAll(destination_2, list);
|
|
437
437
|
}
|
|
438
438
|
var tmp$ret$29 = _NonEmptyList___init__impl__fxd0xp(destination_2);
|
|
@@ -489,9 +489,9 @@ function fold(_this__u8e3s4, arguments_0) {
|
|
|
489
489
|
}
|
|
490
490
|
}
|
|
491
491
|
var tmp0 = tmp_0;
|
|
492
|
-
var tmp2 = arguments_0.
|
|
492
|
+
var tmp2 = arguments_0.r1f();
|
|
493
493
|
// Inline function 'arrow.core.Either.fold' call
|
|
494
|
-
var ifRight = arguments_0.
|
|
494
|
+
var ifRight = arguments_0.p4r();
|
|
495
495
|
if (tmp0 instanceof Right)
|
|
496
496
|
ifRight(tmp0.um_1);
|
|
497
497
|
else {
|
|
@@ -504,57 +504,57 @@ function fold(_this__u8e3s4, arguments_0) {
|
|
|
504
504
|
return Unit_instance;
|
|
505
505
|
}
|
|
506
506
|
function compile$ctx$1($arguments) {
|
|
507
|
-
this.
|
|
508
|
-
this.
|
|
507
|
+
this.q4r_1 = $arguments.b4r_1;
|
|
508
|
+
this.r4r_1 = $arguments.x4q_1;
|
|
509
509
|
}
|
|
510
510
|
protoOf(compile$ctx$1).mo = function () {
|
|
511
|
-
return this.
|
|
511
|
+
return this.q4r_1;
|
|
512
512
|
};
|
|
513
513
|
protoOf(compile$ctx$1).so = function () {
|
|
514
|
-
return this.
|
|
514
|
+
return this.r4r_1;
|
|
515
515
|
};
|
|
516
516
|
function compile$lambda(it) {
|
|
517
|
-
return new ModuleContent(new FileUri(_Name___get_value__impl__3tbxxy(it.
|
|
517
|
+
return new ModuleContent(new FileUri(_Name___get_value__impl__3tbxxy(it.s4r_1)), it.t4r_1);
|
|
518
518
|
}
|
|
519
519
|
function convert$lambda(it) {
|
|
520
|
-
return new ModuleContent(new FileUri(_Name___get_value__impl__3tbxxy(it.
|
|
520
|
+
return new ModuleContent(new FileUri(_Name___get_value__impl__3tbxxy(it.s4r_1)), it.t4r_1);
|
|
521
521
|
}
|
|
522
522
|
function convert$lambda_0($ast, $arguments) {
|
|
523
523
|
return function (it) {
|
|
524
|
-
return new NonEmptyList(it.to($ast, $arguments.
|
|
524
|
+
return new NonEmptyList(it.to($ast, $arguments.l4r_1));
|
|
525
525
|
};
|
|
526
526
|
}
|
|
527
527
|
function CompilerArguments(input, emitters, writer, error, packageName, logger, shared, strict, ignoreDefaults) {
|
|
528
528
|
ignoreDefaults = ignoreDefaults === VOID ? false : ignoreDefaults;
|
|
529
|
-
this.
|
|
530
|
-
this.
|
|
531
|
-
this.
|
|
532
|
-
this.
|
|
533
|
-
this.
|
|
534
|
-
this.
|
|
535
|
-
this.
|
|
536
|
-
this.
|
|
537
|
-
this.
|
|
538
|
-
}
|
|
539
|
-
protoOf(CompilerArguments).
|
|
540
|
-
return this.
|
|
529
|
+
this.w4q_1 = input;
|
|
530
|
+
this.x4q_1 = emitters;
|
|
531
|
+
this.y4q_1 = writer;
|
|
532
|
+
this.z4q_1 = error;
|
|
533
|
+
this.a4r_1 = packageName;
|
|
534
|
+
this.b4r_1 = logger;
|
|
535
|
+
this.c4r_1 = shared;
|
|
536
|
+
this.d4r_1 = strict;
|
|
537
|
+
this.e4r_1 = ignoreDefaults;
|
|
538
|
+
}
|
|
539
|
+
protoOf(CompilerArguments).p4r = function () {
|
|
540
|
+
return this.y4q_1;
|
|
541
541
|
};
|
|
542
|
-
protoOf(CompilerArguments).
|
|
543
|
-
return this.
|
|
542
|
+
protoOf(CompilerArguments).r1f = function () {
|
|
543
|
+
return this.z4q_1;
|
|
544
544
|
};
|
|
545
545
|
protoOf(CompilerArguments).toString = function () {
|
|
546
|
-
return 'CompilerArguments(input=' + NonEmptySet__toString_impl_yfcj6n(this.
|
|
546
|
+
return 'CompilerArguments(input=' + NonEmptySet__toString_impl_yfcj6n(this.w4q_1) + ', emitters=' + NonEmptySet__toString_impl_yfcj6n(this.x4q_1) + ', writer=' + toString(this.y4q_1) + ', error=' + toString(this.z4q_1) + ', packageName=' + this.a4r_1.toString() + ', logger=' + toString(this.b4r_1) + ', shared=' + this.c4r_1 + ', strict=' + this.d4r_1 + ', ignoreDefaults=' + this.e4r_1 + ')';
|
|
547
547
|
};
|
|
548
548
|
protoOf(CompilerArguments).hashCode = function () {
|
|
549
|
-
var result = NonEmptySet__hashCode_impl_co6mds(this.
|
|
550
|
-
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.
|
|
551
|
-
result = imul(result, 31) + hashCode(this.
|
|
552
|
-
result = imul(result, 31) + hashCode(this.
|
|
553
|
-
result = imul(result, 31) + hashCode(this.
|
|
554
|
-
result = imul(result, 31) + hashCode(this.
|
|
555
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
556
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
557
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
549
|
+
var result = NonEmptySet__hashCode_impl_co6mds(this.w4q_1);
|
|
550
|
+
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.x4q_1) | 0;
|
|
551
|
+
result = imul(result, 31) + hashCode(this.y4q_1) | 0;
|
|
552
|
+
result = imul(result, 31) + hashCode(this.z4q_1) | 0;
|
|
553
|
+
result = imul(result, 31) + hashCode(this.a4r_1) | 0;
|
|
554
|
+
result = imul(result, 31) + hashCode(this.b4r_1) | 0;
|
|
555
|
+
result = imul(result, 31) + getBooleanHashCode(this.c4r_1) | 0;
|
|
556
|
+
result = imul(result, 31) + getBooleanHashCode(this.d4r_1) | 0;
|
|
557
|
+
result = imul(result, 31) + getBooleanHashCode(this.e4r_1) | 0;
|
|
558
558
|
return result;
|
|
559
559
|
};
|
|
560
560
|
protoOf(CompilerArguments).equals = function (other) {
|
|
@@ -562,59 +562,59 @@ protoOf(CompilerArguments).equals = function (other) {
|
|
|
562
562
|
return true;
|
|
563
563
|
if (!(other instanceof CompilerArguments))
|
|
564
564
|
return false;
|
|
565
|
-
if (!equals(new NonEmptySet(this.
|
|
565
|
+
if (!equals(new NonEmptySet(this.w4q_1), new NonEmptySet(other.w4q_1)))
|
|
566
566
|
return false;
|
|
567
|
-
if (!equals(new NonEmptySet(this.
|
|
567
|
+
if (!equals(new NonEmptySet(this.x4q_1), new NonEmptySet(other.x4q_1)))
|
|
568
568
|
return false;
|
|
569
|
-
if (!equals(this.
|
|
569
|
+
if (!equals(this.y4q_1, other.y4q_1))
|
|
570
570
|
return false;
|
|
571
|
-
if (!equals(this.
|
|
571
|
+
if (!equals(this.z4q_1, other.z4q_1))
|
|
572
572
|
return false;
|
|
573
|
-
if (!equals(this.
|
|
573
|
+
if (!equals(this.a4r_1, other.a4r_1))
|
|
574
574
|
return false;
|
|
575
|
-
if (!equals(this.
|
|
575
|
+
if (!equals(this.b4r_1, other.b4r_1))
|
|
576
576
|
return false;
|
|
577
|
-
if (!(this.
|
|
577
|
+
if (!(this.c4r_1 === other.c4r_1))
|
|
578
578
|
return false;
|
|
579
|
-
if (!(this.
|
|
579
|
+
if (!(this.d4r_1 === other.d4r_1))
|
|
580
580
|
return false;
|
|
581
|
-
if (!(this.
|
|
581
|
+
if (!(this.e4r_1 === other.e4r_1))
|
|
582
582
|
return false;
|
|
583
583
|
return true;
|
|
584
584
|
};
|
|
585
585
|
function ConverterArguments(format, input, emitters, writer, error, packageName, logger, shared, strict, ignoreDefaults) {
|
|
586
586
|
ignoreDefaults = ignoreDefaults === VOID ? false : ignoreDefaults;
|
|
587
|
-
this.
|
|
588
|
-
this.
|
|
589
|
-
this.
|
|
590
|
-
this.
|
|
591
|
-
this.
|
|
592
|
-
this.
|
|
593
|
-
this.
|
|
594
|
-
this.
|
|
595
|
-
this.
|
|
596
|
-
this.
|
|
597
|
-
}
|
|
598
|
-
protoOf(ConverterArguments).
|
|
599
|
-
return this.
|
|
587
|
+
this.f4r_1 = format;
|
|
588
|
+
this.g4r_1 = input;
|
|
589
|
+
this.h4r_1 = emitters;
|
|
590
|
+
this.i4r_1 = writer;
|
|
591
|
+
this.j4r_1 = error;
|
|
592
|
+
this.k4r_1 = packageName;
|
|
593
|
+
this.l4r_1 = logger;
|
|
594
|
+
this.m4r_1 = shared;
|
|
595
|
+
this.n4r_1 = strict;
|
|
596
|
+
this.o4r_1 = ignoreDefaults;
|
|
597
|
+
}
|
|
598
|
+
protoOf(ConverterArguments).p4r = function () {
|
|
599
|
+
return this.i4r_1;
|
|
600
600
|
};
|
|
601
|
-
protoOf(ConverterArguments).
|
|
602
|
-
return this.
|
|
601
|
+
protoOf(ConverterArguments).r1f = function () {
|
|
602
|
+
return this.j4r_1;
|
|
603
603
|
};
|
|
604
604
|
protoOf(ConverterArguments).toString = function () {
|
|
605
|
-
return 'ConverterArguments(format=' + this.
|
|
605
|
+
return 'ConverterArguments(format=' + this.f4r_1.toString() + ', input=' + NonEmptySet__toString_impl_yfcj6n(this.g4r_1) + ', emitters=' + NonEmptySet__toString_impl_yfcj6n(this.h4r_1) + ', writer=' + toString(this.i4r_1) + ', error=' + toString(this.j4r_1) + ', packageName=' + this.k4r_1.toString() + ', logger=' + toString(this.l4r_1) + ', shared=' + this.m4r_1 + ', strict=' + this.n4r_1 + ', ignoreDefaults=' + this.o4r_1 + ')';
|
|
606
606
|
};
|
|
607
607
|
protoOf(ConverterArguments).hashCode = function () {
|
|
608
|
-
var result = this.
|
|
609
|
-
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.
|
|
610
|
-
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.
|
|
611
|
-
result = imul(result, 31) + hashCode(this.
|
|
612
|
-
result = imul(result, 31) + hashCode(this.
|
|
613
|
-
result = imul(result, 31) + hashCode(this.
|
|
614
|
-
result = imul(result, 31) + hashCode(this.
|
|
615
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
616
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
617
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
608
|
+
var result = this.f4r_1.hashCode();
|
|
609
|
+
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.g4r_1) | 0;
|
|
610
|
+
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.h4r_1) | 0;
|
|
611
|
+
result = imul(result, 31) + hashCode(this.i4r_1) | 0;
|
|
612
|
+
result = imul(result, 31) + hashCode(this.j4r_1) | 0;
|
|
613
|
+
result = imul(result, 31) + hashCode(this.k4r_1) | 0;
|
|
614
|
+
result = imul(result, 31) + hashCode(this.l4r_1) | 0;
|
|
615
|
+
result = imul(result, 31) + getBooleanHashCode(this.m4r_1) | 0;
|
|
616
|
+
result = imul(result, 31) + getBooleanHashCode(this.n4r_1) | 0;
|
|
617
|
+
result = imul(result, 31) + getBooleanHashCode(this.o4r_1) | 0;
|
|
618
618
|
return result;
|
|
619
619
|
};
|
|
620
620
|
protoOf(ConverterArguments).equals = function (other) {
|
|
@@ -622,38 +622,38 @@ protoOf(ConverterArguments).equals = function (other) {
|
|
|
622
622
|
return true;
|
|
623
623
|
if (!(other instanceof ConverterArguments))
|
|
624
624
|
return false;
|
|
625
|
-
if (!this.
|
|
625
|
+
if (!this.f4r_1.equals(other.f4r_1))
|
|
626
626
|
return false;
|
|
627
|
-
if (!equals(new NonEmptySet(this.
|
|
627
|
+
if (!equals(new NonEmptySet(this.g4r_1), new NonEmptySet(other.g4r_1)))
|
|
628
628
|
return false;
|
|
629
|
-
if (!equals(new NonEmptySet(this.
|
|
629
|
+
if (!equals(new NonEmptySet(this.h4r_1), new NonEmptySet(other.h4r_1)))
|
|
630
630
|
return false;
|
|
631
|
-
if (!equals(this.
|
|
631
|
+
if (!equals(this.i4r_1, other.i4r_1))
|
|
632
632
|
return false;
|
|
633
|
-
if (!equals(this.
|
|
633
|
+
if (!equals(this.j4r_1, other.j4r_1))
|
|
634
634
|
return false;
|
|
635
|
-
if (!equals(this.
|
|
635
|
+
if (!equals(this.k4r_1, other.k4r_1))
|
|
636
636
|
return false;
|
|
637
|
-
if (!equals(this.
|
|
637
|
+
if (!equals(this.l4r_1, other.l4r_1))
|
|
638
638
|
return false;
|
|
639
|
-
if (!(this.
|
|
639
|
+
if (!(this.m4r_1 === other.m4r_1))
|
|
640
640
|
return false;
|
|
641
|
-
if (!(this.
|
|
641
|
+
if (!(this.n4r_1 === other.n4r_1))
|
|
642
642
|
return false;
|
|
643
|
-
if (!(this.
|
|
643
|
+
if (!(this.o4r_1 === other.o4r_1))
|
|
644
644
|
return false;
|
|
645
645
|
return true;
|
|
646
646
|
};
|
|
647
647
|
function Source(name, content) {
|
|
648
|
-
this.
|
|
649
|
-
this.
|
|
648
|
+
this.s4r_1 = name;
|
|
649
|
+
this.t4r_1 = content;
|
|
650
650
|
}
|
|
651
651
|
protoOf(Source).toString = function () {
|
|
652
|
-
return 'Source(name=' + Name__toString_impl_61tomu(this.
|
|
652
|
+
return 'Source(name=' + Name__toString_impl_61tomu(this.s4r_1) + ', content=' + this.t4r_1 + ')';
|
|
653
653
|
};
|
|
654
654
|
protoOf(Source).hashCode = function () {
|
|
655
|
-
var result = Name__hashCode_impl_fpc861(this.
|
|
656
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
655
|
+
var result = Name__hashCode_impl_fpc861(this.s4r_1);
|
|
656
|
+
result = imul(result, 31) + getStringHashCode(this.t4r_1) | 0;
|
|
657
657
|
return result;
|
|
658
658
|
};
|
|
659
659
|
protoOf(Source).equals = function (other) {
|
|
@@ -661,9 +661,9 @@ protoOf(Source).equals = function (other) {
|
|
|
661
661
|
return true;
|
|
662
662
|
if (!(other instanceof Source))
|
|
663
663
|
return false;
|
|
664
|
-
if (!(this.
|
|
664
|
+
if (!(this.s4r_1 === other.s4r_1))
|
|
665
665
|
return false;
|
|
666
|
-
if (!(this.
|
|
666
|
+
if (!(this.t4r_1 === other.t4r_1))
|
|
667
667
|
return false;
|
|
668
668
|
return true;
|
|
669
669
|
};
|
|
@@ -694,24 +694,24 @@ function ClassPath__hashCode_impl_cciyyd($this) {
|
|
|
694
694
|
function ClassPath__equals_impl_kffpch($this, other) {
|
|
695
695
|
if (!(other instanceof ClassPath))
|
|
696
696
|
return false;
|
|
697
|
-
if (!($this === other.
|
|
697
|
+
if (!($this === other.u4r_1))
|
|
698
698
|
return false;
|
|
699
699
|
return true;
|
|
700
700
|
}
|
|
701
701
|
function ClassPath(value) {
|
|
702
|
-
this.
|
|
702
|
+
this.u4r_1 = value;
|
|
703
703
|
}
|
|
704
704
|
protoOf(ClassPath).o1 = function () {
|
|
705
|
-
return _ClassPath___get_value__impl__lfuxg0(this.
|
|
705
|
+
return _ClassPath___get_value__impl__lfuxg0(this.u4r_1);
|
|
706
706
|
};
|
|
707
707
|
protoOf(ClassPath).toString = function () {
|
|
708
|
-
return ClassPath__toString_impl_y3ovr8(this.
|
|
708
|
+
return ClassPath__toString_impl_y3ovr8(this.u4r_1);
|
|
709
709
|
};
|
|
710
710
|
protoOf(ClassPath).hashCode = function () {
|
|
711
|
-
return ClassPath__hashCode_impl_cciyyd(this.
|
|
711
|
+
return ClassPath__hashCode_impl_cciyyd(this.u4r_1);
|
|
712
712
|
};
|
|
713
713
|
protoOf(ClassPath).equals = function (other) {
|
|
714
|
-
return ClassPath__equals_impl_kffpch(this.
|
|
714
|
+
return ClassPath__equals_impl_kffpch(this.u4r_1, other);
|
|
715
715
|
};
|
|
716
716
|
function _DirectoryPath___init__impl__5bzkjd(value) {
|
|
717
717
|
return value;
|
|
@@ -728,31 +728,31 @@ function DirectoryPath__hashCode_impl_cv3skg($this) {
|
|
|
728
728
|
function DirectoryPath__equals_impl_c2rwsc($this, other) {
|
|
729
729
|
if (!(other instanceof DirectoryPath))
|
|
730
730
|
return false;
|
|
731
|
-
if (!($this === other.
|
|
731
|
+
if (!($this === other.v4r_1))
|
|
732
732
|
return false;
|
|
733
733
|
return true;
|
|
734
734
|
}
|
|
735
735
|
function DirectoryPath(value) {
|
|
736
|
-
this.
|
|
736
|
+
this.v4r_1 = value;
|
|
737
737
|
}
|
|
738
738
|
protoOf(DirectoryPath).o1 = function () {
|
|
739
|
-
return _DirectoryPath___get_value__impl__hdy2e3(this.
|
|
739
|
+
return _DirectoryPath___get_value__impl__hdy2e3(this.v4r_1);
|
|
740
740
|
};
|
|
741
741
|
protoOf(DirectoryPath).toString = function () {
|
|
742
|
-
return DirectoryPath__toString_impl_ym9pdb(this.
|
|
742
|
+
return DirectoryPath__toString_impl_ym9pdb(this.v4r_1);
|
|
743
743
|
};
|
|
744
744
|
protoOf(DirectoryPath).hashCode = function () {
|
|
745
|
-
return DirectoryPath__hashCode_impl_cv3skg(this.
|
|
745
|
+
return DirectoryPath__hashCode_impl_cv3skg(this.v4r_1);
|
|
746
746
|
};
|
|
747
747
|
protoOf(DirectoryPath).equals = function (other) {
|
|
748
|
-
return DirectoryPath__equals_impl_c2rwsc(this.
|
|
748
|
+
return DirectoryPath__equals_impl_c2rwsc(this.v4r_1, other);
|
|
749
749
|
};
|
|
750
750
|
function Directory(path) {
|
|
751
|
-
this.
|
|
751
|
+
this.w4r_1 = path;
|
|
752
752
|
}
|
|
753
753
|
function Companion_1() {
|
|
754
754
|
}
|
|
755
|
-
protoOf(Companion_1).
|
|
755
|
+
protoOf(Companion_1).x4r = function (input) {
|
|
756
756
|
// Inline function 'kotlin.let' call
|
|
757
757
|
var it = split(input, ['/']);
|
|
758
758
|
var list = plus(dropLast(it, 1), split(last(it), ['.']));
|
|
@@ -767,7 +767,7 @@ protoOf(Companion_1).b4r = function (input) {
|
|
|
767
767
|
var _iterator__ex2g4s = tmp0.t();
|
|
768
768
|
while (_iterator__ex2g4s.u()) {
|
|
769
769
|
var element = _iterator__ex2g4s.v();
|
|
770
|
-
if (element.
|
|
770
|
+
if (element.xr_1 === ext) {
|
|
771
771
|
tmp$ret$5 = element;
|
|
772
772
|
break $l$block;
|
|
773
773
|
}
|
|
@@ -786,7 +786,7 @@ protoOf(Companion_1).b4r = function (input) {
|
|
|
786
786
|
var extension = tmp;
|
|
787
787
|
var idxOfFileName = list.b1() - 2 | 0;
|
|
788
788
|
var filename = _Name___init__impl__o4q07e(list.c1(idxOfFileName));
|
|
789
|
-
var path = joinToString(list.
|
|
789
|
+
var path = joinToString(list.p2(0, idxOfFileName), '/');
|
|
790
790
|
return new FilePath(_DirectoryPath___init__impl__5bzkjd(path), filename, extension);
|
|
791
791
|
};
|
|
792
792
|
var Companion_instance_1;
|
|
@@ -794,17 +794,17 @@ function Companion_getInstance_1() {
|
|
|
794
794
|
return Companion_instance_1;
|
|
795
795
|
}
|
|
796
796
|
function FilePath(directory, name, extension) {
|
|
797
|
-
this.
|
|
798
|
-
this.
|
|
799
|
-
this.
|
|
797
|
+
this.y4r_1 = directory;
|
|
798
|
+
this.z4r_1 = name;
|
|
799
|
+
this.a4s_1 = extension;
|
|
800
800
|
}
|
|
801
801
|
protoOf(FilePath).toString = function () {
|
|
802
|
-
return DirectoryPath__toString_impl_ym9pdb(this.
|
|
802
|
+
return DirectoryPath__toString_impl_ym9pdb(this.y4r_1) + '/' + _Name___get_value__impl__3tbxxy(this.z4r_1) + '.' + this.a4s_1.xr_1;
|
|
803
803
|
};
|
|
804
804
|
protoOf(FilePath).hashCode = function () {
|
|
805
|
-
var result = DirectoryPath__hashCode_impl_cv3skg(this.
|
|
806
|
-
result = imul(result, 31) + Name__hashCode_impl_fpc861(this.
|
|
807
|
-
result = imul(result, 31) + this.
|
|
805
|
+
var result = DirectoryPath__hashCode_impl_cv3skg(this.y4r_1);
|
|
806
|
+
result = imul(result, 31) + Name__hashCode_impl_fpc861(this.z4r_1) | 0;
|
|
807
|
+
result = imul(result, 31) + this.a4s_1.hashCode() | 0;
|
|
808
808
|
return result;
|
|
809
809
|
};
|
|
810
810
|
protoOf(FilePath).equals = function (other) {
|
|
@@ -812,24 +812,24 @@ protoOf(FilePath).equals = function (other) {
|
|
|
812
812
|
return true;
|
|
813
813
|
if (!(other instanceof FilePath))
|
|
814
814
|
return false;
|
|
815
|
-
if (!(this.
|
|
815
|
+
if (!(this.y4r_1 === other.y4r_1))
|
|
816
816
|
return false;
|
|
817
|
-
if (!(this.
|
|
817
|
+
if (!(this.z4r_1 === other.z4r_1))
|
|
818
818
|
return false;
|
|
819
|
-
if (!this.
|
|
819
|
+
if (!this.a4s_1.equals(other.a4s_1))
|
|
820
820
|
return false;
|
|
821
821
|
return true;
|
|
822
822
|
};
|
|
823
823
|
function path(_this__u8e3s4) {
|
|
824
824
|
var tmp;
|
|
825
825
|
if (_this__u8e3s4 instanceof ClassPath) {
|
|
826
|
-
tmp = _ClassPath___get_value__impl__lfuxg0(_this__u8e3s4.
|
|
826
|
+
tmp = _ClassPath___get_value__impl__lfuxg0(_this__u8e3s4.u4r_1);
|
|
827
827
|
} else {
|
|
828
828
|
if (_this__u8e3s4 instanceof DirectoryPath) {
|
|
829
|
-
tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.
|
|
829
|
+
tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.v4r_1);
|
|
830
830
|
} else {
|
|
831
831
|
if (_this__u8e3s4 instanceof FilePath) {
|
|
832
|
-
tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.
|
|
832
|
+
tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.y4r_1);
|
|
833
833
|
} else {
|
|
834
834
|
noWhenBranchMatchedException();
|
|
835
835
|
}
|
|
@@ -838,7 +838,7 @@ function path(_this__u8e3s4) {
|
|
|
838
838
|
return tmp;
|
|
839
839
|
}
|
|
840
840
|
function IOError(message) {
|
|
841
|
-
this.
|
|
841
|
+
this.b4s_1 = message;
|
|
842
842
|
}
|
|
843
843
|
function WirespecFileError() {
|
|
844
844
|
SpecificFile.call(this, FileExtension_Wirespec_getInstance());
|
|
@@ -870,7 +870,7 @@ function getFullPath(input, createIfNotExists_0) {
|
|
|
870
870
|
tmp_0 = new ClassPath(_ClassPath___init__impl__obyw3o(substringAfter(input, 'classpath:')));
|
|
871
871
|
} else {
|
|
872
872
|
var path = createIfNotExists(Path(input), createIfNotExists_0);
|
|
873
|
-
var tmp0_elvis_lhs = get_SystemFileSystem().
|
|
873
|
+
var tmp0_elvis_lhs = get_SystemFileSystem().k4q(path);
|
|
874
874
|
var tmp_1;
|
|
875
875
|
if (tmp0_elvis_lhs == null) {
|
|
876
876
|
raise.gn(new CannotAccessFileOrDirectory(input));
|
|
@@ -880,10 +880,10 @@ function getFullPath(input, createIfNotExists_0) {
|
|
|
880
880
|
var meta = tmp_1;
|
|
881
881
|
var pathString = path.toString();
|
|
882
882
|
var tmp_2;
|
|
883
|
-
if (meta.
|
|
883
|
+
if (meta.d4q_1) {
|
|
884
884
|
tmp_2 = new DirectoryPath(_DirectoryPath___init__impl__5bzkjd(pathString));
|
|
885
|
-
} else if (meta.
|
|
886
|
-
tmp_2 = Companion_instance_1.
|
|
885
|
+
} else if (meta.c4q_1) {
|
|
886
|
+
tmp_2 = Companion_instance_1.x4r(pathString);
|
|
887
887
|
} else {
|
|
888
888
|
raise.gn(new IsNotAFileOrDirectory(pathString));
|
|
889
889
|
}
|
|
@@ -917,7 +917,7 @@ function or(_this__u8e3s4, errorFn) {
|
|
|
917
917
|
var tmp;
|
|
918
918
|
if (_this__u8e3s4 instanceof Left) {
|
|
919
919
|
var tmp$ret$1;
|
|
920
|
-
errorFn(_this__u8e3s4.sm_1.
|
|
920
|
+
errorFn(_this__u8e3s4.sm_1.b4s_1);
|
|
921
921
|
throwKotlinNothingValueException();
|
|
922
922
|
tmp = tmp$ret$1;
|
|
923
923
|
} else {
|
|
@@ -936,10 +936,10 @@ function wirespecSources(_this__u8e3s4, logger) {
|
|
|
936
936
|
var raise = new DefaultRaise(false);
|
|
937
937
|
var tmp;
|
|
938
938
|
try {
|
|
939
|
-
var tmp0 = Path(_DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.
|
|
939
|
+
var tmp0 = Path(_DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.w4r_1));
|
|
940
940
|
// Inline function 'kotlin.let' call
|
|
941
941
|
// Inline function 'kotlin.collections.filter' call
|
|
942
|
-
var tmp0_0 = get_SystemFileSystem().
|
|
942
|
+
var tmp0_0 = get_SystemFileSystem().l4q(tmp0);
|
|
943
943
|
// Inline function 'kotlin.collections.filterTo' call
|
|
944
944
|
var destination = ArrayList_init_$Create$_0();
|
|
945
945
|
var _iterator__ex2g4s = tmp0_0.t();
|
|
@@ -965,11 +965,11 @@ function wirespecSources(_this__u8e3s4, logger) {
|
|
|
965
965
|
var _iterator__ex2g4s_1 = destination_0.t();
|
|
966
966
|
while (_iterator__ex2g4s_1.u()) {
|
|
967
967
|
var item = _iterator__ex2g4s_1.v();
|
|
968
|
-
var tmp$ret$14 = to(Companion_instance_1.
|
|
968
|
+
var tmp$ret$14 = to(Companion_instance_1.x4r(item.toString()), readString(buffered(get_SystemFileSystem().h4q(item))));
|
|
969
969
|
destination_1.x(tmp$ret$14);
|
|
970
970
|
}
|
|
971
971
|
// Inline function 'kotlin.also' call
|
|
972
|
-
logger.
|
|
972
|
+
logger.as('Found ' + destination_1.b1() + ' file(s) to process in ' + _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.w4r_1));
|
|
973
973
|
// Inline function 'kotlin.collections.forEachIndexed' call
|
|
974
974
|
var index = 0;
|
|
975
975
|
var _iterator__ex2g4s_2 = destination_1.t();
|
|
@@ -978,7 +978,7 @@ function wirespecSources(_this__u8e3s4, logger) {
|
|
|
978
978
|
var _unary__edvuaz = index;
|
|
979
979
|
index = _unary__edvuaz + 1 | 0;
|
|
980
980
|
var prefix = checkIndexOverflow(_unary__edvuaz) < (destination_1.b1() - 1 | 0) ? '\u251C\u2500\u2500 ' : '\u2514\u2500\u2500 ';
|
|
981
|
-
logger.
|
|
981
|
+
logger.as(' ' + prefix + ' ' + _Name___get_value__impl__3tbxxy(item_0.ff_1.z4r_1) + '.' + item_0.ff_1.a4s_1.xr_1);
|
|
982
982
|
}
|
|
983
983
|
// Inline function 'kotlin.collections.map' call
|
|
984
984
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -986,9 +986,9 @@ function wirespecSources(_this__u8e3s4, logger) {
|
|
|
986
986
|
var _iterator__ex2g4s_3 = destination_1.t();
|
|
987
987
|
while (_iterator__ex2g4s_3.u()) {
|
|
988
988
|
var item_1 = _iterator__ex2g4s_3.v();
|
|
989
|
-
var path = item_1.
|
|
990
|
-
var source = item_1.
|
|
991
|
-
var tmp$ret$21 = new Source(path.
|
|
989
|
+
var path = item_1.ze();
|
|
990
|
+
var source = item_1.af();
|
|
991
|
+
var tmp$ret$21 = new Source(path.z4r_1, source);
|
|
992
992
|
destination_2.x(tmp$ret$21);
|
|
993
993
|
}
|
|
994
994
|
var tmp0_elvis_lhs = toNonEmptySetOrNull(destination_2);
|
|
@@ -1025,7 +1025,7 @@ function wirespecSources(_this__u8e3s4, logger) {
|
|
|
1025
1025
|
function read(_this__u8e3s4) {
|
|
1026
1026
|
// Inline function 'kotlin.let' call
|
|
1027
1027
|
var it = Path(_this__u8e3s4.toString());
|
|
1028
|
-
return readString(buffered(get_SystemFileSystem().
|
|
1028
|
+
return readString(buffered(get_SystemFileSystem().h4q(it)));
|
|
1029
1029
|
}
|
|
1030
1030
|
function getOutPutPath(inputPath, output) {
|
|
1031
1031
|
// Inline function 'arrow.core.raise.either' call
|
|
@@ -1040,7 +1040,7 @@ function getOutPutPath(inputPath, output) {
|
|
|
1040
1040
|
tmp_0 = _DirectoryPath___init__impl__5bzkjd(path(inputPath) + '/out');
|
|
1041
1041
|
} else {
|
|
1042
1042
|
if (it instanceof DirectoryPath) {
|
|
1043
|
-
tmp_0 = it.
|
|
1043
|
+
tmp_0 = it.v4r_1;
|
|
1044
1044
|
} else {
|
|
1045
1045
|
var tmp_1;
|
|
1046
1046
|
if (it instanceof FilePath) {
|
|
@@ -1081,14 +1081,14 @@ function getOutPutPath(inputPath, output) {
|
|
|
1081
1081
|
function write(_this__u8e3s4, string) {
|
|
1082
1082
|
// Inline function 'kotlin.also' call
|
|
1083
1083
|
var this_0 = Path(_this__u8e3s4.toString());
|
|
1084
|
-
var tmp0_safe_receiver = this_0.
|
|
1084
|
+
var tmp0_safe_receiver = this_0.n4q();
|
|
1085
1085
|
if (tmp0_safe_receiver == null)
|
|
1086
1086
|
null;
|
|
1087
1087
|
else
|
|
1088
1088
|
createIfNotExists(tmp0_safe_receiver);
|
|
1089
1089
|
// Inline function 'kotlin.let' call
|
|
1090
1090
|
// Inline function 'kotlin.apply' call
|
|
1091
|
-
var this_1 = buffered_0(get_SystemFileSystem().
|
|
1091
|
+
var this_1 = buffered_0(get_SystemFileSystem().j4q(this_0));
|
|
1092
1092
|
writeString(this_1, string);
|
|
1093
1093
|
this_1.c9();
|
|
1094
1094
|
return Unit_instance;
|
|
@@ -1096,17 +1096,17 @@ function write(_this__u8e3s4, string) {
|
|
|
1096
1096
|
function createIfNotExists(_this__u8e3s4, create) {
|
|
1097
1097
|
create = create === VOID ? true : create;
|
|
1098
1098
|
// Inline function 'kotlin.also' call
|
|
1099
|
-
if (create && !get_SystemFileSystem().
|
|
1100
|
-
get_SystemFileSystem().
|
|
1099
|
+
if (create && !get_SystemFileSystem().f4q(_this__u8e3s4)) {
|
|
1100
|
+
get_SystemFileSystem().g4q(_this__u8e3s4, true);
|
|
1101
1101
|
}
|
|
1102
1102
|
return _this__u8e3s4;
|
|
1103
1103
|
}
|
|
1104
1104
|
function isRegularFile(path) {
|
|
1105
|
-
var tmp0_safe_receiver = get_SystemFileSystem().
|
|
1106
|
-
return (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1105
|
+
var tmp0_safe_receiver = get_SystemFileSystem().k4q(path);
|
|
1106
|
+
return (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.c4q_1) === true;
|
|
1107
1107
|
}
|
|
1108
1108
|
function isWirespecFile(path) {
|
|
1109
|
-
return get_extension(path) === FileExtension_Wirespec_getInstance().
|
|
1109
|
+
return get_extension(path) === FileExtension_Wirespec_getInstance().xr_1;
|
|
1110
1110
|
}
|
|
1111
1111
|
function get_extension(_this__u8e3s4) {
|
|
1112
1112
|
return substringAfterLast(_this__u8e3s4.m(), _Char___init__impl__6a9atx(46), '');
|