@flock/wirespec 0.20.2 → 0.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/clikt-clikt-mordant.mjs +79 -79
- package/clikt-clikt.mjs +1329 -1329
- package/clikt-clikt.mjs.map +1 -1
- package/colormath-root-colormath.mjs +433 -433
- package/kotlin-kotlin-stdlib.mjs +6 -6
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +10144 -10144
- package/kotlin-rgxgen.mjs +1760 -1760
- package/kotlinx-io-kotlinx-io-core.mjs +404 -404
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1810 -1810
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1488 -1488
- package/mordant-mordant.mjs +1198 -1198
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +1652 -1139
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-java.mjs +206 -191
- package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-kotlin.mjs +153 -138
- package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-python.mjs +182 -153
- package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-rust.mjs +439 -379
- package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-scala.mjs +175 -160
- package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-typescript.mjs +268 -224
- package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-wirespec.mjs +98 -77
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-ir.mjs +3704 -3619
- package/wirespec-src-compiler-ir.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +308 -227
- package/wirespec-src-compiler-lib.mjs.map +1 -1
- package/wirespec-src-converter-avro.mjs +503 -503
- package/wirespec-src-converter-openapi.mjs +581 -569
- package/wirespec-src-converter-openapi.mjs.map +1 -1
- package/wirespec-src-ide-lsp.mjs +1352 -1352
- package/wirespec-src-plugin-arguments.mjs +136 -136
- package/wirespec-src-plugin-cli.mjs +85 -85
- package/wirespec-src-plugin-npm.d.mts +15 -0
- package/wirespec-src-plugin-npm.mjs +26 -26
- package/wirespec-src-tools-generator.mjs +29 -24
- package/wirespec-src-tools-generator.mjs.map +1 -1
|
@@ -167,7 +167,7 @@ var Language_OpenAPIV3_instance;
|
|
|
167
167
|
var Language_Avro_instance;
|
|
168
168
|
function Companion_0() {
|
|
169
169
|
}
|
|
170
|
-
protoOf(Companion_0).
|
|
170
|
+
protoOf(Companion_0).x4b = function () {
|
|
171
171
|
// Inline function 'kotlin.collections.associateBy' call
|
|
172
172
|
var this_0 = get_entries_1();
|
|
173
173
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
@@ -297,11 +297,11 @@ function Language_Avro_getInstance() {
|
|
|
297
297
|
}
|
|
298
298
|
function compile_0(arguments_0) {
|
|
299
299
|
var ctx = new compile$ctx$1(arguments_0);
|
|
300
|
-
fold(compile(ctx, NonEmptySet__map_impl_ngjswd(arguments_0.
|
|
300
|
+
fold(compile(ctx, NonEmptySet__map_impl_ngjswd(arguments_0.y4b_1, compile$lambda)), arguments_0);
|
|
301
301
|
}
|
|
302
302
|
function convert(arguments_0) {
|
|
303
303
|
var tmp;
|
|
304
|
-
switch (arguments_0.
|
|
304
|
+
switch (arguments_0.g4c_1.c3_1) {
|
|
305
305
|
case 0:
|
|
306
306
|
tmp = OpenAPIV2Parser_instance;
|
|
307
307
|
break;
|
|
@@ -316,9 +316,9 @@ function convert(arguments_0) {
|
|
|
316
316
|
break;
|
|
317
317
|
}
|
|
318
318
|
var parser = tmp;
|
|
319
|
-
var options = new ParseOptions(arguments_0.
|
|
319
|
+
var options = new ParseOptions(arguments_0.o4c_1);
|
|
320
320
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
321
|
-
var this_0 = NonEmptySet__map_impl_ngjswd(arguments_0.
|
|
321
|
+
var this_0 = NonEmptySet__map_impl_ngjswd(arguments_0.h4c_1, convert$lambda);
|
|
322
322
|
// Inline function 'kotlin.collections.map' call
|
|
323
323
|
var this_1 = _NonEmptyList___get_all__impl__pmf509(this_0);
|
|
324
324
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -326,7 +326,7 @@ function convert(arguments_0) {
|
|
|
326
326
|
var _iterator__ex2g4s = this_1.t();
|
|
327
327
|
while (_iterator__ex2g4s.u()) {
|
|
328
328
|
var item = _iterator__ex2g4s.v();
|
|
329
|
-
var tmp$ret$0 = parser.
|
|
329
|
+
var tmp$ret$0 = parser.j46(item, arguments_0.o4c_1);
|
|
330
330
|
destination.x(tmp$ret$0);
|
|
331
331
|
}
|
|
332
332
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
@@ -338,7 +338,7 @@ function convert(arguments_0) {
|
|
|
338
338
|
var _iterator__ex2g4s_0 = this_3.t();
|
|
339
339
|
while (_iterator__ex2g4s_0.u()) {
|
|
340
340
|
var item_0 = _iterator__ex2g4s_0.v();
|
|
341
|
-
var tmp$ret$4 = Validator_instance.
|
|
341
|
+
var tmp$ret$4 = Validator_instance.nt(options, item_0);
|
|
342
342
|
destination_0.x(tmp$ret$4);
|
|
343
343
|
}
|
|
344
344
|
// Inline function 'kotlin.let' call
|
|
@@ -384,7 +384,7 @@ function convert(arguments_0) {
|
|
|
384
384
|
var _iterator__ex2g4s_1 = tmp0.t();
|
|
385
385
|
while (_iterator__ex2g4s_1.u()) {
|
|
386
386
|
var element = _iterator__ex2g4s_1.v();
|
|
387
|
-
var list = new NonEmptyList(NonEmptySet__flatMap_impl_ovm5jg(arguments_0.
|
|
387
|
+
var list = new NonEmptyList(NonEmptySet__flatMap_impl_ovm5jg(arguments_0.i4c_1, convert$lambda_0(element, arguments_0)));
|
|
388
388
|
addAll(destination_1, list);
|
|
389
389
|
}
|
|
390
390
|
var tmp$ret$19 = _NonEmptyList___init__impl__fxd0xp(destination_1);
|
|
@@ -441,9 +441,9 @@ function fold(_this__u8e3s4, arguments_0) {
|
|
|
441
441
|
}
|
|
442
442
|
}
|
|
443
443
|
var tmp0 = tmp_0;
|
|
444
|
-
var tmp2 = arguments_0.
|
|
444
|
+
var tmp2 = arguments_0.ex();
|
|
445
445
|
// Inline function 'arrow.core.Either.fold' call
|
|
446
|
-
var ifRight = arguments_0.
|
|
446
|
+
var ifRight = arguments_0.p4c();
|
|
447
447
|
if (tmp0 instanceof Right)
|
|
448
448
|
ifRight(tmp0.om_1);
|
|
449
449
|
else {
|
|
@@ -456,54 +456,54 @@ function fold(_this__u8e3s4, arguments_0) {
|
|
|
456
456
|
return Unit_instance;
|
|
457
457
|
}
|
|
458
458
|
function compile$ctx$1($arguments) {
|
|
459
|
-
this.
|
|
460
|
-
this.
|
|
459
|
+
this.q4c_1 = $arguments.d4c_1;
|
|
460
|
+
this.r4c_1 = $arguments.z4b_1;
|
|
461
461
|
}
|
|
462
462
|
protoOf(compile$ctx$1).go = function () {
|
|
463
|
-
return this.
|
|
463
|
+
return this.q4c_1;
|
|
464
464
|
};
|
|
465
465
|
protoOf(compile$ctx$1).mo = function () {
|
|
466
|
-
return this.
|
|
466
|
+
return this.r4c_1;
|
|
467
467
|
};
|
|
468
468
|
function compile$lambda(it) {
|
|
469
|
-
return new ModuleContent(new FileUri(_Name___get_value__impl__3tbxxy(it.
|
|
469
|
+
return new ModuleContent(new FileUri(_Name___get_value__impl__3tbxxy(it.s4c_1)), it.t4c_1);
|
|
470
470
|
}
|
|
471
471
|
function convert$lambda(it) {
|
|
472
|
-
return new ModuleContent(new FileUri(_Name___get_value__impl__3tbxxy(it.
|
|
472
|
+
return new ModuleContent(new FileUri(_Name___get_value__impl__3tbxxy(it.s4c_1)), it.t4c_1);
|
|
473
473
|
}
|
|
474
474
|
function convert$lambda_0($ast, $arguments) {
|
|
475
475
|
return function (it) {
|
|
476
|
-
return new NonEmptyList(it.no($ast, $arguments.
|
|
476
|
+
return new NonEmptyList(it.no($ast, $arguments.m4c_1));
|
|
477
477
|
};
|
|
478
478
|
}
|
|
479
479
|
function CompilerArguments(input, emitters, writer, error, packageName, logger, shared, strict) {
|
|
480
|
-
this.
|
|
481
|
-
this.
|
|
482
|
-
this.
|
|
483
|
-
this.
|
|
484
|
-
this.
|
|
485
|
-
this.
|
|
486
|
-
this.
|
|
487
|
-
this.
|
|
488
|
-
}
|
|
489
|
-
protoOf(CompilerArguments).
|
|
490
|
-
return this.
|
|
480
|
+
this.y4b_1 = input;
|
|
481
|
+
this.z4b_1 = emitters;
|
|
482
|
+
this.a4c_1 = writer;
|
|
483
|
+
this.b4c_1 = error;
|
|
484
|
+
this.c4c_1 = packageName;
|
|
485
|
+
this.d4c_1 = logger;
|
|
486
|
+
this.e4c_1 = shared;
|
|
487
|
+
this.f4c_1 = strict;
|
|
488
|
+
}
|
|
489
|
+
protoOf(CompilerArguments).p4c = function () {
|
|
490
|
+
return this.a4c_1;
|
|
491
491
|
};
|
|
492
|
-
protoOf(CompilerArguments).
|
|
493
|
-
return this.
|
|
492
|
+
protoOf(CompilerArguments).ex = function () {
|
|
493
|
+
return this.b4c_1;
|
|
494
494
|
};
|
|
495
495
|
protoOf(CompilerArguments).toString = function () {
|
|
496
|
-
return 'CompilerArguments(input=' + NonEmptySet__toString_impl_yfcj6n(this.
|
|
496
|
+
return 'CompilerArguments(input=' + NonEmptySet__toString_impl_yfcj6n(this.y4b_1) + ', emitters=' + NonEmptySet__toString_impl_yfcj6n(this.z4b_1) + ', writer=' + toString(this.a4c_1) + ', error=' + toString(this.b4c_1) + ', packageName=' + this.c4c_1.toString() + ', logger=' + toString(this.d4c_1) + ', shared=' + this.e4c_1 + ', strict=' + this.f4c_1 + ')';
|
|
497
497
|
};
|
|
498
498
|
protoOf(CompilerArguments).hashCode = function () {
|
|
499
|
-
var result = NonEmptySet__hashCode_impl_co6mds(this.
|
|
500
|
-
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.
|
|
501
|
-
result = imul(result, 31) + hashCode(this.
|
|
502
|
-
result = imul(result, 31) + hashCode(this.
|
|
503
|
-
result = imul(result, 31) + hashCode(this.
|
|
504
|
-
result = imul(result, 31) + hashCode(this.
|
|
505
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
506
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
499
|
+
var result = NonEmptySet__hashCode_impl_co6mds(this.y4b_1);
|
|
500
|
+
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.z4b_1) | 0;
|
|
501
|
+
result = imul(result, 31) + hashCode(this.a4c_1) | 0;
|
|
502
|
+
result = imul(result, 31) + hashCode(this.b4c_1) | 0;
|
|
503
|
+
result = imul(result, 31) + hashCode(this.c4c_1) | 0;
|
|
504
|
+
result = imul(result, 31) + hashCode(this.d4c_1) | 0;
|
|
505
|
+
result = imul(result, 31) + getBooleanHashCode(this.e4c_1) | 0;
|
|
506
|
+
result = imul(result, 31) + getBooleanHashCode(this.f4c_1) | 0;
|
|
507
507
|
return result;
|
|
508
508
|
};
|
|
509
509
|
protoOf(CompilerArguments).equals = function (other) {
|
|
@@ -511,54 +511,54 @@ protoOf(CompilerArguments).equals = function (other) {
|
|
|
511
511
|
return true;
|
|
512
512
|
if (!(other instanceof CompilerArguments))
|
|
513
513
|
return false;
|
|
514
|
-
if (!equals(new NonEmptySet(this.
|
|
514
|
+
if (!equals(new NonEmptySet(this.y4b_1), new NonEmptySet(other.y4b_1)))
|
|
515
515
|
return false;
|
|
516
|
-
if (!equals(new NonEmptySet(this.
|
|
516
|
+
if (!equals(new NonEmptySet(this.z4b_1), new NonEmptySet(other.z4b_1)))
|
|
517
517
|
return false;
|
|
518
|
-
if (!equals(this.
|
|
518
|
+
if (!equals(this.a4c_1, other.a4c_1))
|
|
519
519
|
return false;
|
|
520
|
-
if (!equals(this.
|
|
520
|
+
if (!equals(this.b4c_1, other.b4c_1))
|
|
521
521
|
return false;
|
|
522
|
-
if (!equals(this.
|
|
522
|
+
if (!equals(this.c4c_1, other.c4c_1))
|
|
523
523
|
return false;
|
|
524
|
-
if (!equals(this.
|
|
524
|
+
if (!equals(this.d4c_1, other.d4c_1))
|
|
525
525
|
return false;
|
|
526
|
-
if (!(this.
|
|
526
|
+
if (!(this.e4c_1 === other.e4c_1))
|
|
527
527
|
return false;
|
|
528
|
-
if (!(this.
|
|
528
|
+
if (!(this.f4c_1 === other.f4c_1))
|
|
529
529
|
return false;
|
|
530
530
|
return true;
|
|
531
531
|
};
|
|
532
532
|
function ConverterArguments(format, input, emitters, writer, error, packageName, logger, shared, strict) {
|
|
533
|
-
this.
|
|
534
|
-
this.
|
|
535
|
-
this.
|
|
536
|
-
this.
|
|
537
|
-
this.
|
|
538
|
-
this.
|
|
539
|
-
this.
|
|
540
|
-
this.
|
|
541
|
-
this.
|
|
542
|
-
}
|
|
543
|
-
protoOf(ConverterArguments).
|
|
544
|
-
return this.
|
|
533
|
+
this.g4c_1 = format;
|
|
534
|
+
this.h4c_1 = input;
|
|
535
|
+
this.i4c_1 = emitters;
|
|
536
|
+
this.j4c_1 = writer;
|
|
537
|
+
this.k4c_1 = error;
|
|
538
|
+
this.l4c_1 = packageName;
|
|
539
|
+
this.m4c_1 = logger;
|
|
540
|
+
this.n4c_1 = shared;
|
|
541
|
+
this.o4c_1 = strict;
|
|
542
|
+
}
|
|
543
|
+
protoOf(ConverterArguments).p4c = function () {
|
|
544
|
+
return this.j4c_1;
|
|
545
545
|
};
|
|
546
|
-
protoOf(ConverterArguments).
|
|
547
|
-
return this.
|
|
546
|
+
protoOf(ConverterArguments).ex = function () {
|
|
547
|
+
return this.k4c_1;
|
|
548
548
|
};
|
|
549
549
|
protoOf(ConverterArguments).toString = function () {
|
|
550
|
-
return 'ConverterArguments(format=' + this.
|
|
550
|
+
return 'ConverterArguments(format=' + this.g4c_1.toString() + ', input=' + NonEmptySet__toString_impl_yfcj6n(this.h4c_1) + ', emitters=' + NonEmptySet__toString_impl_yfcj6n(this.i4c_1) + ', writer=' + toString(this.j4c_1) + ', error=' + toString(this.k4c_1) + ', packageName=' + this.l4c_1.toString() + ', logger=' + toString(this.m4c_1) + ', shared=' + this.n4c_1 + ', strict=' + this.o4c_1 + ')';
|
|
551
551
|
};
|
|
552
552
|
protoOf(ConverterArguments).hashCode = function () {
|
|
553
|
-
var result = this.
|
|
554
|
-
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.
|
|
555
|
-
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.
|
|
556
|
-
result = imul(result, 31) + hashCode(this.
|
|
557
|
-
result = imul(result, 31) + hashCode(this.
|
|
558
|
-
result = imul(result, 31) + hashCode(this.
|
|
559
|
-
result = imul(result, 31) + hashCode(this.
|
|
560
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
561
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
553
|
+
var result = this.g4c_1.hashCode();
|
|
554
|
+
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.h4c_1) | 0;
|
|
555
|
+
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.i4c_1) | 0;
|
|
556
|
+
result = imul(result, 31) + hashCode(this.j4c_1) | 0;
|
|
557
|
+
result = imul(result, 31) + hashCode(this.k4c_1) | 0;
|
|
558
|
+
result = imul(result, 31) + hashCode(this.l4c_1) | 0;
|
|
559
|
+
result = imul(result, 31) + hashCode(this.m4c_1) | 0;
|
|
560
|
+
result = imul(result, 31) + getBooleanHashCode(this.n4c_1) | 0;
|
|
561
|
+
result = imul(result, 31) + getBooleanHashCode(this.o4c_1) | 0;
|
|
562
562
|
return result;
|
|
563
563
|
};
|
|
564
564
|
protoOf(ConverterArguments).equals = function (other) {
|
|
@@ -566,36 +566,36 @@ protoOf(ConverterArguments).equals = function (other) {
|
|
|
566
566
|
return true;
|
|
567
567
|
if (!(other instanceof ConverterArguments))
|
|
568
568
|
return false;
|
|
569
|
-
if (!this.
|
|
569
|
+
if (!this.g4c_1.equals(other.g4c_1))
|
|
570
570
|
return false;
|
|
571
|
-
if (!equals(new NonEmptySet(this.
|
|
571
|
+
if (!equals(new NonEmptySet(this.h4c_1), new NonEmptySet(other.h4c_1)))
|
|
572
572
|
return false;
|
|
573
|
-
if (!equals(new NonEmptySet(this.
|
|
573
|
+
if (!equals(new NonEmptySet(this.i4c_1), new NonEmptySet(other.i4c_1)))
|
|
574
574
|
return false;
|
|
575
|
-
if (!equals(this.
|
|
575
|
+
if (!equals(this.j4c_1, other.j4c_1))
|
|
576
576
|
return false;
|
|
577
|
-
if (!equals(this.
|
|
577
|
+
if (!equals(this.k4c_1, other.k4c_1))
|
|
578
578
|
return false;
|
|
579
|
-
if (!equals(this.
|
|
579
|
+
if (!equals(this.l4c_1, other.l4c_1))
|
|
580
580
|
return false;
|
|
581
|
-
if (!equals(this.
|
|
581
|
+
if (!equals(this.m4c_1, other.m4c_1))
|
|
582
582
|
return false;
|
|
583
|
-
if (!(this.
|
|
583
|
+
if (!(this.n4c_1 === other.n4c_1))
|
|
584
584
|
return false;
|
|
585
|
-
if (!(this.
|
|
585
|
+
if (!(this.o4c_1 === other.o4c_1))
|
|
586
586
|
return false;
|
|
587
587
|
return true;
|
|
588
588
|
};
|
|
589
589
|
function Source(name, content) {
|
|
590
|
-
this.
|
|
591
|
-
this.
|
|
590
|
+
this.s4c_1 = name;
|
|
591
|
+
this.t4c_1 = content;
|
|
592
592
|
}
|
|
593
593
|
protoOf(Source).toString = function () {
|
|
594
|
-
return 'Source(name=' + Name__toString_impl_61tomu(this.
|
|
594
|
+
return 'Source(name=' + Name__toString_impl_61tomu(this.s4c_1) + ', content=' + this.t4c_1 + ')';
|
|
595
595
|
};
|
|
596
596
|
protoOf(Source).hashCode = function () {
|
|
597
|
-
var result = Name__hashCode_impl_fpc861(this.
|
|
598
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
597
|
+
var result = Name__hashCode_impl_fpc861(this.s4c_1);
|
|
598
|
+
result = imul(result, 31) + getStringHashCode(this.t4c_1) | 0;
|
|
599
599
|
return result;
|
|
600
600
|
};
|
|
601
601
|
protoOf(Source).equals = function (other) {
|
|
@@ -603,9 +603,9 @@ protoOf(Source).equals = function (other) {
|
|
|
603
603
|
return true;
|
|
604
604
|
if (!(other instanceof Source))
|
|
605
605
|
return false;
|
|
606
|
-
if (!(this.
|
|
606
|
+
if (!(this.s4c_1 === other.s4c_1))
|
|
607
607
|
return false;
|
|
608
|
-
if (!(this.
|
|
608
|
+
if (!(this.t4c_1 === other.t4c_1))
|
|
609
609
|
return false;
|
|
610
610
|
return true;
|
|
611
611
|
};
|
|
@@ -636,24 +636,24 @@ function ClassPath__hashCode_impl_cciyyd($this) {
|
|
|
636
636
|
function ClassPath__equals_impl_kffpch($this, other) {
|
|
637
637
|
if (!(other instanceof ClassPath))
|
|
638
638
|
return false;
|
|
639
|
-
if (!($this === other.
|
|
639
|
+
if (!($this === other.u4c_1))
|
|
640
640
|
return false;
|
|
641
641
|
return true;
|
|
642
642
|
}
|
|
643
643
|
function ClassPath(value) {
|
|
644
|
-
this.
|
|
644
|
+
this.u4c_1 = value;
|
|
645
645
|
}
|
|
646
646
|
protoOf(ClassPath).m1 = function () {
|
|
647
|
-
return _ClassPath___get_value__impl__lfuxg0(this.
|
|
647
|
+
return _ClassPath___get_value__impl__lfuxg0(this.u4c_1);
|
|
648
648
|
};
|
|
649
649
|
protoOf(ClassPath).toString = function () {
|
|
650
|
-
return ClassPath__toString_impl_y3ovr8(this.
|
|
650
|
+
return ClassPath__toString_impl_y3ovr8(this.u4c_1);
|
|
651
651
|
};
|
|
652
652
|
protoOf(ClassPath).hashCode = function () {
|
|
653
|
-
return ClassPath__hashCode_impl_cciyyd(this.
|
|
653
|
+
return ClassPath__hashCode_impl_cciyyd(this.u4c_1);
|
|
654
654
|
};
|
|
655
655
|
protoOf(ClassPath).equals = function (other) {
|
|
656
|
-
return ClassPath__equals_impl_kffpch(this.
|
|
656
|
+
return ClassPath__equals_impl_kffpch(this.u4c_1, other);
|
|
657
657
|
};
|
|
658
658
|
function _DirectoryPath___init__impl__5bzkjd(value) {
|
|
659
659
|
return value;
|
|
@@ -670,31 +670,31 @@ function DirectoryPath__hashCode_impl_cv3skg($this) {
|
|
|
670
670
|
function DirectoryPath__equals_impl_c2rwsc($this, other) {
|
|
671
671
|
if (!(other instanceof DirectoryPath))
|
|
672
672
|
return false;
|
|
673
|
-
if (!($this === other.
|
|
673
|
+
if (!($this === other.v4c_1))
|
|
674
674
|
return false;
|
|
675
675
|
return true;
|
|
676
676
|
}
|
|
677
677
|
function DirectoryPath(value) {
|
|
678
|
-
this.
|
|
678
|
+
this.v4c_1 = value;
|
|
679
679
|
}
|
|
680
680
|
protoOf(DirectoryPath).m1 = function () {
|
|
681
|
-
return _DirectoryPath___get_value__impl__hdy2e3(this.
|
|
681
|
+
return _DirectoryPath___get_value__impl__hdy2e3(this.v4c_1);
|
|
682
682
|
};
|
|
683
683
|
protoOf(DirectoryPath).toString = function () {
|
|
684
|
-
return DirectoryPath__toString_impl_ym9pdb(this.
|
|
684
|
+
return DirectoryPath__toString_impl_ym9pdb(this.v4c_1);
|
|
685
685
|
};
|
|
686
686
|
protoOf(DirectoryPath).hashCode = function () {
|
|
687
|
-
return DirectoryPath__hashCode_impl_cv3skg(this.
|
|
687
|
+
return DirectoryPath__hashCode_impl_cv3skg(this.v4c_1);
|
|
688
688
|
};
|
|
689
689
|
protoOf(DirectoryPath).equals = function (other) {
|
|
690
|
-
return DirectoryPath__equals_impl_c2rwsc(this.
|
|
690
|
+
return DirectoryPath__equals_impl_c2rwsc(this.v4c_1, other);
|
|
691
691
|
};
|
|
692
692
|
function Directory(path) {
|
|
693
|
-
this.
|
|
693
|
+
this.w4c_1 = path;
|
|
694
694
|
}
|
|
695
695
|
function Companion_1() {
|
|
696
696
|
}
|
|
697
|
-
protoOf(Companion_1).
|
|
697
|
+
protoOf(Companion_1).x4c = function (input) {
|
|
698
698
|
// Inline function 'kotlin.let' call
|
|
699
699
|
var it = split(input, ['/']);
|
|
700
700
|
var list = plus(dropLast(it, 1), split(last(it), ['.']));
|
|
@@ -709,7 +709,7 @@ protoOf(Companion_1).n4c = function (input) {
|
|
|
709
709
|
var _iterator__ex2g4s = tmp0.t();
|
|
710
710
|
while (_iterator__ex2g4s.u()) {
|
|
711
711
|
var element = _iterator__ex2g4s.v();
|
|
712
|
-
if (element.
|
|
712
|
+
if (element.cr_1 === ext) {
|
|
713
713
|
tmp$ret$5 = element;
|
|
714
714
|
break $l$block;
|
|
715
715
|
}
|
|
@@ -735,17 +735,17 @@ function Companion_getInstance_1() {
|
|
|
735
735
|
return Companion_instance_1;
|
|
736
736
|
}
|
|
737
737
|
function FilePath(directory, name, extension) {
|
|
738
|
-
this.
|
|
739
|
-
this.
|
|
740
|
-
this.
|
|
738
|
+
this.y4c_1 = directory;
|
|
739
|
+
this.z4c_1 = name;
|
|
740
|
+
this.a4d_1 = extension;
|
|
741
741
|
}
|
|
742
742
|
protoOf(FilePath).toString = function () {
|
|
743
|
-
return DirectoryPath__toString_impl_ym9pdb(this.
|
|
743
|
+
return DirectoryPath__toString_impl_ym9pdb(this.y4c_1) + '/' + _Name___get_value__impl__3tbxxy(this.z4c_1) + '.' + this.a4d_1.cr_1;
|
|
744
744
|
};
|
|
745
745
|
protoOf(FilePath).hashCode = function () {
|
|
746
|
-
var result = DirectoryPath__hashCode_impl_cv3skg(this.
|
|
747
|
-
result = imul(result, 31) + Name__hashCode_impl_fpc861(this.
|
|
748
|
-
result = imul(result, 31) + this.
|
|
746
|
+
var result = DirectoryPath__hashCode_impl_cv3skg(this.y4c_1);
|
|
747
|
+
result = imul(result, 31) + Name__hashCode_impl_fpc861(this.z4c_1) | 0;
|
|
748
|
+
result = imul(result, 31) + this.a4d_1.hashCode() | 0;
|
|
749
749
|
return result;
|
|
750
750
|
};
|
|
751
751
|
protoOf(FilePath).equals = function (other) {
|
|
@@ -753,24 +753,24 @@ protoOf(FilePath).equals = function (other) {
|
|
|
753
753
|
return true;
|
|
754
754
|
if (!(other instanceof FilePath))
|
|
755
755
|
return false;
|
|
756
|
-
if (!(this.
|
|
756
|
+
if (!(this.y4c_1 === other.y4c_1))
|
|
757
757
|
return false;
|
|
758
|
-
if (!(this.
|
|
758
|
+
if (!(this.z4c_1 === other.z4c_1))
|
|
759
759
|
return false;
|
|
760
|
-
if (!this.
|
|
760
|
+
if (!this.a4d_1.equals(other.a4d_1))
|
|
761
761
|
return false;
|
|
762
762
|
return true;
|
|
763
763
|
};
|
|
764
764
|
function path(_this__u8e3s4) {
|
|
765
765
|
var tmp;
|
|
766
766
|
if (_this__u8e3s4 instanceof ClassPath) {
|
|
767
|
-
tmp = _ClassPath___get_value__impl__lfuxg0(_this__u8e3s4.
|
|
767
|
+
tmp = _ClassPath___get_value__impl__lfuxg0(_this__u8e3s4.u4c_1);
|
|
768
768
|
} else {
|
|
769
769
|
if (_this__u8e3s4 instanceof DirectoryPath) {
|
|
770
|
-
tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.
|
|
770
|
+
tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.v4c_1);
|
|
771
771
|
} else {
|
|
772
772
|
if (_this__u8e3s4 instanceof FilePath) {
|
|
773
|
-
tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.
|
|
773
|
+
tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.y4c_1);
|
|
774
774
|
} else {
|
|
775
775
|
noWhenBranchMatchedException();
|
|
776
776
|
}
|
|
@@ -779,7 +779,7 @@ function path(_this__u8e3s4) {
|
|
|
779
779
|
return tmp;
|
|
780
780
|
}
|
|
781
781
|
function IOError(message) {
|
|
782
|
-
this.
|
|
782
|
+
this.b4d_1 = message;
|
|
783
783
|
}
|
|
784
784
|
function WirespecFileError() {
|
|
785
785
|
SpecificFile.call(this, FileExtension_Wirespec_getInstance());
|
|
@@ -811,7 +811,7 @@ function getFullPath(input, createIfNotExists_0) {
|
|
|
811
811
|
tmp_0 = new ClassPath(_ClassPath___init__impl__obyw3o(substringAfter(input, 'classpath:')));
|
|
812
812
|
} else {
|
|
813
813
|
var path = createIfNotExists(Path(input), createIfNotExists_0);
|
|
814
|
-
var tmp0_elvis_lhs = get_SystemFileSystem().
|
|
814
|
+
var tmp0_elvis_lhs = get_SystemFileSystem().m4b(path);
|
|
815
815
|
var tmp_1;
|
|
816
816
|
if (tmp0_elvis_lhs == null) {
|
|
817
817
|
raise.an(new CannotAccessFileOrDirectory(input));
|
|
@@ -821,10 +821,10 @@ function getFullPath(input, createIfNotExists_0) {
|
|
|
821
821
|
var meta = tmp_1;
|
|
822
822
|
var pathString = path.toString();
|
|
823
823
|
var tmp_2;
|
|
824
|
-
if (meta.
|
|
824
|
+
if (meta.f4b_1) {
|
|
825
825
|
tmp_2 = new DirectoryPath(_DirectoryPath___init__impl__5bzkjd(pathString));
|
|
826
|
-
} else if (meta.
|
|
827
|
-
tmp_2 = Companion_instance_1.
|
|
826
|
+
} else if (meta.e4b_1) {
|
|
827
|
+
tmp_2 = Companion_instance_1.x4c(pathString);
|
|
828
828
|
} else {
|
|
829
829
|
raise.an(new IsNotAFileOrDirectory(pathString));
|
|
830
830
|
}
|
|
@@ -857,7 +857,7 @@ function or(_this__u8e3s4, errorFn) {
|
|
|
857
857
|
// Inline function 'arrow.core.getOrElse' call
|
|
858
858
|
var tmp;
|
|
859
859
|
if (_this__u8e3s4 instanceof Left) {
|
|
860
|
-
errorFn(_this__u8e3s4.mm_1.
|
|
860
|
+
errorFn(_this__u8e3s4.mm_1.b4d_1);
|
|
861
861
|
tmp = throwKotlinNothingValueException();
|
|
862
862
|
} else {
|
|
863
863
|
if (_this__u8e3s4 instanceof Right) {
|
|
@@ -875,10 +875,10 @@ function wirespecSources(_this__u8e3s4, logger) {
|
|
|
875
875
|
var raise = new DefaultRaise(false);
|
|
876
876
|
var tmp;
|
|
877
877
|
try {
|
|
878
|
-
var tmp0 = Path(_DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.
|
|
878
|
+
var tmp0 = Path(_DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.w4c_1));
|
|
879
879
|
// Inline function 'kotlin.let' call
|
|
880
880
|
// Inline function 'kotlin.collections.filter' call
|
|
881
|
-
var tmp0_0 = get_SystemFileSystem().
|
|
881
|
+
var tmp0_0 = get_SystemFileSystem().n4b(tmp0);
|
|
882
882
|
// Inline function 'kotlin.collections.filterTo' call
|
|
883
883
|
var destination = ArrayList_init_$Create$_0();
|
|
884
884
|
var _iterator__ex2g4s = tmp0_0.t();
|
|
@@ -904,11 +904,11 @@ function wirespecSources(_this__u8e3s4, logger) {
|
|
|
904
904
|
var _iterator__ex2g4s_1 = destination_0.t();
|
|
905
905
|
while (_iterator__ex2g4s_1.u()) {
|
|
906
906
|
var item = _iterator__ex2g4s_1.v();
|
|
907
|
-
var tmp$ret$8 = to(Companion_instance_1.
|
|
907
|
+
var tmp$ret$8 = to(Companion_instance_1.x4c(item.toString()), readString(buffered(get_SystemFileSystem().j4b(item))));
|
|
908
908
|
destination_1.x(tmp$ret$8);
|
|
909
909
|
}
|
|
910
910
|
// Inline function 'kotlin.also' call
|
|
911
|
-
logger.
|
|
911
|
+
logger.ir('Found ' + destination_1.b1() + ' file(s) to process in ' + _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.w4c_1));
|
|
912
912
|
// Inline function 'kotlin.collections.forEachIndexed' call
|
|
913
913
|
var index = 0;
|
|
914
914
|
var _iterator__ex2g4s_2 = destination_1.t();
|
|
@@ -917,7 +917,7 @@ function wirespecSources(_this__u8e3s4, logger) {
|
|
|
917
917
|
var _unary__edvuaz = index;
|
|
918
918
|
index = _unary__edvuaz + 1 | 0;
|
|
919
919
|
var prefix = checkIndexOverflow(_unary__edvuaz) < (destination_1.b1() - 1 | 0) ? '\u251C\u2500\u2500 ' : '\u2514\u2500\u2500 ';
|
|
920
|
-
logger.
|
|
920
|
+
logger.ir(' ' + prefix + ' ' + _Name___get_value__impl__3tbxxy(item_0.ff_1.z4c_1) + '.' + item_0.ff_1.a4d_1.cr_1);
|
|
921
921
|
}
|
|
922
922
|
// Inline function 'kotlin.collections.map' call
|
|
923
923
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -927,7 +927,7 @@ function wirespecSources(_this__u8e3s4, logger) {
|
|
|
927
927
|
var item_1 = _iterator__ex2g4s_3.v();
|
|
928
928
|
var path = item_1.we();
|
|
929
929
|
var source = item_1.xe();
|
|
930
|
-
var tmp$ret$15 = new Source(path.
|
|
930
|
+
var tmp$ret$15 = new Source(path.z4c_1, source);
|
|
931
931
|
destination_2.x(tmp$ret$15);
|
|
932
932
|
}
|
|
933
933
|
var tmp0_elvis_lhs = toNonEmptySetOrNull(destination_2);
|
|
@@ -964,7 +964,7 @@ function wirespecSources(_this__u8e3s4, logger) {
|
|
|
964
964
|
function read(_this__u8e3s4) {
|
|
965
965
|
// Inline function 'kotlin.let' call
|
|
966
966
|
var it = Path(_this__u8e3s4.toString());
|
|
967
|
-
return readString(buffered(get_SystemFileSystem().
|
|
967
|
+
return readString(buffered(get_SystemFileSystem().j4b(it)));
|
|
968
968
|
}
|
|
969
969
|
function getOutPutPath(inputPath, output) {
|
|
970
970
|
// Inline function 'arrow.core.raise.either' call
|
|
@@ -979,7 +979,7 @@ function getOutPutPath(inputPath, output) {
|
|
|
979
979
|
tmp_0 = _DirectoryPath___init__impl__5bzkjd(path(inputPath) + '/out');
|
|
980
980
|
} else {
|
|
981
981
|
if (it instanceof DirectoryPath) {
|
|
982
|
-
tmp_0 = it.
|
|
982
|
+
tmp_0 = it.v4c_1;
|
|
983
983
|
} else {
|
|
984
984
|
var tmp_1;
|
|
985
985
|
if (it instanceof FilePath) {
|
|
@@ -1020,14 +1020,14 @@ function getOutPutPath(inputPath, output) {
|
|
|
1020
1020
|
function write(_this__u8e3s4, string) {
|
|
1021
1021
|
// Inline function 'kotlin.also' call
|
|
1022
1022
|
var this_0 = Path(_this__u8e3s4.toString());
|
|
1023
|
-
var tmp0_safe_receiver = this_0.
|
|
1023
|
+
var tmp0_safe_receiver = this_0.p4b();
|
|
1024
1024
|
if (tmp0_safe_receiver == null)
|
|
1025
1025
|
null;
|
|
1026
1026
|
else
|
|
1027
1027
|
createIfNotExists(tmp0_safe_receiver);
|
|
1028
1028
|
// Inline function 'kotlin.let' call
|
|
1029
1029
|
// Inline function 'kotlin.apply' call
|
|
1030
|
-
var this_1 = buffered_0(get_SystemFileSystem().
|
|
1030
|
+
var this_1 = buffered_0(get_SystemFileSystem().l4b(this_0));
|
|
1031
1031
|
writeString(this_1, string);
|
|
1032
1032
|
this_1.a9();
|
|
1033
1033
|
return Unit_instance;
|
|
@@ -1035,17 +1035,17 @@ function write(_this__u8e3s4, string) {
|
|
|
1035
1035
|
function createIfNotExists(_this__u8e3s4, create) {
|
|
1036
1036
|
create = create === VOID ? true : create;
|
|
1037
1037
|
// Inline function 'kotlin.also' call
|
|
1038
|
-
if (create && !get_SystemFileSystem().
|
|
1039
|
-
get_SystemFileSystem().
|
|
1038
|
+
if (create && !get_SystemFileSystem().h4b(_this__u8e3s4)) {
|
|
1039
|
+
get_SystemFileSystem().i4b(_this__u8e3s4, true);
|
|
1040
1040
|
}
|
|
1041
1041
|
return _this__u8e3s4;
|
|
1042
1042
|
}
|
|
1043
1043
|
function isRegularFile(path) {
|
|
1044
|
-
var tmp0_safe_receiver = get_SystemFileSystem().
|
|
1045
|
-
return (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1044
|
+
var tmp0_safe_receiver = get_SystemFileSystem().m4b(path);
|
|
1045
|
+
return (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.e4b_1) === true;
|
|
1046
1046
|
}
|
|
1047
1047
|
function isWirespecFile(path) {
|
|
1048
|
-
return get_extension(path) === FileExtension_Wirespec_getInstance().
|
|
1048
|
+
return get_extension(path) === FileExtension_Wirespec_getInstance().cr_1;
|
|
1049
1049
|
}
|
|
1050
1050
|
function get_extension(_this__u8e3s4) {
|
|
1051
1051
|
return substringAfterLast(_this__u8e3s4.m(), _Char___init__impl__6a9atx(46), '');
|