@flock/wirespec 0.18.0-RC.1 → 0.18.1-RC.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-atomic.mjs +12 -12
- package/arrow-arrow-core.mjs +152 -158
- package/arrow-arrow-core.mjs.map +1 -1
- package/clikt-clikt-mordant.mjs +80 -80
- package/clikt-clikt.mjs +1442 -1442
- package/clikt-clikt.mjs.map +1 -1
- package/colormath-root-colormath.mjs +439 -439
- package/kotlin-kotlin-stdlib.mjs +1067 -1131
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +4857 -4857
- package/kotlin-rgxgen.mjs +1793 -1793
- package/kotlinx-io-kotlinx-io-core.mjs +415 -415
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1752 -1752
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1348 -1356
- package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
- package/mordant-mordant.mjs +1303 -1311
- package/mordant-mordant.mjs.map +1 -1
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +1527 -1527
- package/wirespec-src-compiler-emitters-java.mjs +477 -451
- package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-kotlin.mjs +413 -408
- package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-python.mjs +379 -378
- package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-rust.mjs +939 -725
- package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-scala.mjs +225 -233
- package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-typescript.mjs +558 -589
- package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-wirespec.mjs +82 -82
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-ir.mjs +3738 -3708
- package/wirespec-src-compiler-ir.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +418 -418
- package/wirespec-src-converter-avro.mjs +506 -506
- package/wirespec-src-converter-openapi.mjs +684 -684
- package/wirespec-src-plugin-arguments.mjs +181 -181
- package/wirespec-src-plugin-cli.mjs +106 -106
- package/wirespec-src-plugin-npm.mjs +36 -36
- package/wirespec-src-tools-generator.mjs +34 -34
|
@@ -179,7 +179,7 @@ var Language_OpenAPIV3_instance;
|
|
|
179
179
|
var Language_Avro_instance;
|
|
180
180
|
function Companion_0() {
|
|
181
181
|
}
|
|
182
|
-
protoOf(Companion_0).
|
|
182
|
+
protoOf(Companion_0).s3n = function () {
|
|
183
183
|
// Inline function 'kotlin.collections.associateBy' call
|
|
184
184
|
var this_0 = get_entries_1();
|
|
185
185
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
@@ -188,8 +188,8 @@ protoOf(Companion_0).n3n = function () {
|
|
|
188
188
|
var _iterator__ex2g4s = this_0.t();
|
|
189
189
|
while (_iterator__ex2g4s.u()) {
|
|
190
190
|
var element = _iterator__ex2g4s.v();
|
|
191
|
-
var tmp$ret$0 = element.
|
|
192
|
-
destination.
|
|
191
|
+
var tmp$ret$0 = element.a3_1;
|
|
192
|
+
destination.w2(tmp$ret$0, element);
|
|
193
193
|
}
|
|
194
194
|
return destination;
|
|
195
195
|
};
|
|
@@ -230,7 +230,7 @@ function Language(name, ordinal) {
|
|
|
230
230
|
}
|
|
231
231
|
function toIrEmitter(_this__u8e3s4, packageName, emitShared) {
|
|
232
232
|
var tmp;
|
|
233
|
-
switch (_this__u8e3s4.
|
|
233
|
+
switch (_this__u8e3s4.b3_1) {
|
|
234
234
|
case 0:
|
|
235
235
|
tmp = new JavaIrEmitter(packageName, emitShared);
|
|
236
236
|
break;
|
|
@@ -269,7 +269,7 @@ function toIrEmitter(_this__u8e3s4, packageName, emitShared) {
|
|
|
269
269
|
}
|
|
270
270
|
function toEmitter(_this__u8e3s4, packageName, emitShared) {
|
|
271
271
|
var tmp;
|
|
272
|
-
switch (_this__u8e3s4.
|
|
272
|
+
switch (_this__u8e3s4.b3_1) {
|
|
273
273
|
case 0:
|
|
274
274
|
tmp = new JavaEmitter(packageName, emitShared);
|
|
275
275
|
break;
|
|
@@ -348,11 +348,11 @@ function Language_Avro_getInstance() {
|
|
|
348
348
|
}
|
|
349
349
|
function compile_0(arguments_0) {
|
|
350
350
|
var ctx = new compile$ctx$1(arguments_0);
|
|
351
|
-
fold(compile(ctx, NonEmptySet__map_impl_ngjswd(arguments_0.
|
|
351
|
+
fold(compile(ctx, NonEmptySet__map_impl_ngjswd(arguments_0.t3n_1, compile$lambda)), arguments_0);
|
|
352
352
|
}
|
|
353
353
|
function convert(arguments_0) {
|
|
354
354
|
var tmp;
|
|
355
|
-
switch (arguments_0.
|
|
355
|
+
switch (arguments_0.c3o_1.b3_1) {
|
|
356
356
|
case 0:
|
|
357
357
|
tmp = OpenAPIV2Parser_instance;
|
|
358
358
|
break;
|
|
@@ -367,9 +367,9 @@ function convert(arguments_0) {
|
|
|
367
367
|
break;
|
|
368
368
|
}
|
|
369
369
|
var parser = tmp;
|
|
370
|
-
var options = new ParseOptions(arguments_0.
|
|
370
|
+
var options = new ParseOptions(arguments_0.k3o_1);
|
|
371
371
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
372
|
-
var this_0 = NonEmptySet__map_impl_ngjswd(arguments_0.
|
|
372
|
+
var this_0 = NonEmptySet__map_impl_ngjswd(arguments_0.d3o_1, convert$lambda);
|
|
373
373
|
// Inline function 'kotlin.collections.map' call
|
|
374
374
|
var this_1 = _NonEmptyList___get_all__impl__pmf509(this_0);
|
|
375
375
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -377,7 +377,7 @@ function convert(arguments_0) {
|
|
|
377
377
|
var _iterator__ex2g4s = this_1.t();
|
|
378
378
|
while (_iterator__ex2g4s.u()) {
|
|
379
379
|
var item = _iterator__ex2g4s.v();
|
|
380
|
-
var tmp$ret$0 = parser.
|
|
380
|
+
var tmp$ret$0 = parser.f3i(item, arguments_0.k3o_1);
|
|
381
381
|
destination.x(tmp$ret$0);
|
|
382
382
|
}
|
|
383
383
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
@@ -389,7 +389,7 @@ function convert(arguments_0) {
|
|
|
389
389
|
var _iterator__ex2g4s_0 = this_3.t();
|
|
390
390
|
while (_iterator__ex2g4s_0.u()) {
|
|
391
391
|
var item_0 = _iterator__ex2g4s_0.v();
|
|
392
|
-
var tmp$ret$4 = Validator_instance.
|
|
392
|
+
var tmp$ret$4 = Validator_instance.rs(options, item_0);
|
|
393
393
|
destination_0.x(tmp$ret$4);
|
|
394
394
|
}
|
|
395
395
|
// Inline function 'kotlin.let' call
|
|
@@ -400,20 +400,20 @@ function convert(arguments_0) {
|
|
|
400
400
|
var raise = new DefaultRaise(false);
|
|
401
401
|
var tmp_0;
|
|
402
402
|
try {
|
|
403
|
-
var res = new NonEmptyList(raise.
|
|
404
|
-
raise.
|
|
403
|
+
var res = new NonEmptyList(raise.gm(it));
|
|
404
|
+
raise.xl();
|
|
405
405
|
tmp_0 = new Right(res);
|
|
406
406
|
} catch ($p) {
|
|
407
407
|
var tmp_1;
|
|
408
408
|
if ($p instanceof RaiseCancellationException) {
|
|
409
409
|
var e = $p;
|
|
410
|
-
raise.
|
|
410
|
+
raise.xl();
|
|
411
411
|
var it_0 = raisedOrRethrow(e, raise);
|
|
412
412
|
tmp_1 = new Left(it_0);
|
|
413
413
|
} else {
|
|
414
414
|
if ($p instanceof Error) {
|
|
415
415
|
var e_0 = $p;
|
|
416
|
-
raise.
|
|
416
|
+
raise.xl();
|
|
417
417
|
throw nonFatalOrThrow(e_0);
|
|
418
418
|
} else {
|
|
419
419
|
throw $p;
|
|
@@ -427,7 +427,7 @@ function convert(arguments_0) {
|
|
|
427
427
|
var tmp_2;
|
|
428
428
|
if (this_4 instanceof Right) {
|
|
429
429
|
// Inline function 'arrow.core.NonEmptyList.flatMap' call
|
|
430
|
-
var this_5 = this_4.
|
|
430
|
+
var this_5 = this_4.pl_1.yl_1;
|
|
431
431
|
// Inline function 'kotlin.collections.flatMap' call
|
|
432
432
|
var tmp0 = _NonEmptyList___get_all__impl__pmf509(this_5);
|
|
433
433
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -435,7 +435,7 @@ function convert(arguments_0) {
|
|
|
435
435
|
var _iterator__ex2g4s_1 = tmp0.t();
|
|
436
436
|
while (_iterator__ex2g4s_1.u()) {
|
|
437
437
|
var element = _iterator__ex2g4s_1.v();
|
|
438
|
-
var list = new NonEmptyList(NonEmptySet__flatMap_impl_ovm5jg(arguments_0.
|
|
438
|
+
var list = new NonEmptyList(NonEmptySet__flatMap_impl_ovm5jg(arguments_0.e3o_1, convert$lambda_0(element, arguments_0)));
|
|
439
439
|
addAll(destination_1, list);
|
|
440
440
|
}
|
|
441
441
|
var tmp$ret$19 = _NonEmptyList___init__impl__fxd0xp(destination_1);
|
|
@@ -456,7 +456,7 @@ function fold(_this__u8e3s4, arguments_0) {
|
|
|
456
456
|
var tmp;
|
|
457
457
|
if (_this__u8e3s4 instanceof Left) {
|
|
458
458
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
459
|
-
var this_0 = _this__u8e3s4.
|
|
459
|
+
var this_0 = _this__u8e3s4.nl_1.yl_1;
|
|
460
460
|
// Inline function 'kotlin.collections.map' call
|
|
461
461
|
var this_1 = _NonEmptyList___get_all__impl__pmf509(this_0);
|
|
462
462
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -472,7 +472,7 @@ function fold(_this__u8e3s4, arguments_0) {
|
|
|
472
472
|
tmp = new Left(tmp$ret$4);
|
|
473
473
|
} else {
|
|
474
474
|
if (_this__u8e3s4 instanceof Right) {
|
|
475
|
-
tmp = new Right(_this__u8e3s4.
|
|
475
|
+
tmp = new Right(_this__u8e3s4.pl_1);
|
|
476
476
|
} else {
|
|
477
477
|
noWhenBranchMatchedException();
|
|
478
478
|
}
|
|
@@ -481,25 +481,25 @@ function fold(_this__u8e3s4, arguments_0) {
|
|
|
481
481
|
var this_2 = tmp;
|
|
482
482
|
var tmp_0;
|
|
483
483
|
if (this_2 instanceof Left) {
|
|
484
|
-
var it = this_2.
|
|
484
|
+
var it = this_2.nl_1.yl_1;
|
|
485
485
|
var tmp$ret$6 = joinToString(new NonEmptyList(it));
|
|
486
486
|
tmp_0 = new Left(tmp$ret$6);
|
|
487
487
|
} else {
|
|
488
488
|
if (this_2 instanceof Right) {
|
|
489
|
-
tmp_0 = new Right(this_2.
|
|
489
|
+
tmp_0 = new Right(this_2.pl_1);
|
|
490
490
|
} else {
|
|
491
491
|
noWhenBranchMatchedException();
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
494
|
var tmp0 = tmp_0;
|
|
495
|
-
var tmp2 = arguments_0.
|
|
495
|
+
var tmp2 = arguments_0.rx();
|
|
496
496
|
// Inline function 'arrow.core.Either.fold' call
|
|
497
|
-
var ifRight = arguments_0.
|
|
497
|
+
var ifRight = arguments_0.m3o();
|
|
498
498
|
if (tmp0 instanceof Right)
|
|
499
|
-
ifRight(tmp0.
|
|
499
|
+
ifRight(tmp0.pl_1);
|
|
500
500
|
else {
|
|
501
501
|
if (tmp0 instanceof Left)
|
|
502
|
-
tmp2(tmp0.
|
|
502
|
+
tmp2(tmp0.nl_1);
|
|
503
503
|
else {
|
|
504
504
|
noWhenBranchMatchedException();
|
|
505
505
|
}
|
|
@@ -507,56 +507,56 @@ function fold(_this__u8e3s4, arguments_0) {
|
|
|
507
507
|
return Unit_instance;
|
|
508
508
|
}
|
|
509
509
|
function compile$ctx$1($arguments) {
|
|
510
|
-
this.
|
|
511
|
-
this.
|
|
510
|
+
this.n3o_1 = $arguments.y3n_1;
|
|
511
|
+
this.o3o_1 = $arguments.u3n_1;
|
|
512
512
|
}
|
|
513
|
-
protoOf(compile$ctx$1).
|
|
514
|
-
return this.
|
|
513
|
+
protoOf(compile$ctx$1).hn = function () {
|
|
514
|
+
return this.n3o_1;
|
|
515
515
|
};
|
|
516
|
-
protoOf(compile$ctx$1).
|
|
517
|
-
return this.
|
|
516
|
+
protoOf(compile$ctx$1).nn = function () {
|
|
517
|
+
return this.o3o_1;
|
|
518
518
|
};
|
|
519
519
|
function compile$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.p3o_1)), it.q3o_1);
|
|
521
521
|
}
|
|
522
522
|
function convert$lambda(it) {
|
|
523
|
-
return new ModuleContent(new FileUri(_Name___get_value__impl__3tbxxy(it.
|
|
523
|
+
return new ModuleContent(new FileUri(_Name___get_value__impl__3tbxxy(it.p3o_1)), it.q3o_1);
|
|
524
524
|
}
|
|
525
525
|
function convert$lambda_0($ast, $arguments) {
|
|
526
526
|
return function (it) {
|
|
527
|
-
return new NonEmptyList(it.
|
|
527
|
+
return new NonEmptyList(it.on($ast, $arguments.i3o_1));
|
|
528
528
|
};
|
|
529
529
|
}
|
|
530
530
|
function CompilerArguments(input, emitters, writer, error, packageName, logger, shared, strict, ir) {
|
|
531
|
-
this.
|
|
532
|
-
this.
|
|
533
|
-
this.
|
|
534
|
-
this.
|
|
535
|
-
this.
|
|
536
|
-
this.
|
|
537
|
-
this.
|
|
538
|
-
this.
|
|
539
|
-
this.
|
|
540
|
-
}
|
|
541
|
-
protoOf(CompilerArguments).
|
|
542
|
-
return this.
|
|
531
|
+
this.t3n_1 = input;
|
|
532
|
+
this.u3n_1 = emitters;
|
|
533
|
+
this.v3n_1 = writer;
|
|
534
|
+
this.w3n_1 = error;
|
|
535
|
+
this.x3n_1 = packageName;
|
|
536
|
+
this.y3n_1 = logger;
|
|
537
|
+
this.z3n_1 = shared;
|
|
538
|
+
this.a3o_1 = strict;
|
|
539
|
+
this.b3o_1 = ir;
|
|
540
|
+
}
|
|
541
|
+
protoOf(CompilerArguments).m3o = function () {
|
|
542
|
+
return this.v3n_1;
|
|
543
543
|
};
|
|
544
|
-
protoOf(CompilerArguments).
|
|
545
|
-
return this.
|
|
544
|
+
protoOf(CompilerArguments).rx = function () {
|
|
545
|
+
return this.w3n_1;
|
|
546
546
|
};
|
|
547
547
|
protoOf(CompilerArguments).toString = function () {
|
|
548
|
-
return 'CompilerArguments(input=' + NonEmptySet__toString_impl_yfcj6n(this.
|
|
548
|
+
return 'CompilerArguments(input=' + NonEmptySet__toString_impl_yfcj6n(this.t3n_1) + ', emitters=' + NonEmptySet__toString_impl_yfcj6n(this.u3n_1) + ', writer=' + toString(this.v3n_1) + ', error=' + toString(this.w3n_1) + ', packageName=' + this.x3n_1.toString() + ', logger=' + toString(this.y3n_1) + ', shared=' + this.z3n_1 + ', strict=' + this.a3o_1 + ', ir=' + this.b3o_1 + ')';
|
|
549
549
|
};
|
|
550
550
|
protoOf(CompilerArguments).hashCode = function () {
|
|
551
|
-
var result = NonEmptySet__hashCode_impl_co6mds(this.
|
|
552
|
-
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.
|
|
553
|
-
result = imul(result, 31) + hashCode(this.
|
|
554
|
-
result = imul(result, 31) + hashCode(this.
|
|
555
|
-
result = imul(result, 31) + hashCode(this.
|
|
556
|
-
result = imul(result, 31) + hashCode(this.
|
|
557
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
558
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
559
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
551
|
+
var result = NonEmptySet__hashCode_impl_co6mds(this.t3n_1);
|
|
552
|
+
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.u3n_1) | 0;
|
|
553
|
+
result = imul(result, 31) + hashCode(this.v3n_1) | 0;
|
|
554
|
+
result = imul(result, 31) + hashCode(this.w3n_1) | 0;
|
|
555
|
+
result = imul(result, 31) + hashCode(this.x3n_1) | 0;
|
|
556
|
+
result = imul(result, 31) + hashCode(this.y3n_1) | 0;
|
|
557
|
+
result = imul(result, 31) + getBooleanHashCode(this.z3n_1) | 0;
|
|
558
|
+
result = imul(result, 31) + getBooleanHashCode(this.a3o_1) | 0;
|
|
559
|
+
result = imul(result, 31) + getBooleanHashCode(this.b3o_1) | 0;
|
|
560
560
|
return result;
|
|
561
561
|
};
|
|
562
562
|
protoOf(CompilerArguments).equals = function (other) {
|
|
@@ -564,58 +564,58 @@ protoOf(CompilerArguments).equals = function (other) {
|
|
|
564
564
|
return true;
|
|
565
565
|
if (!(other instanceof CompilerArguments))
|
|
566
566
|
return false;
|
|
567
|
-
if (!equals(new NonEmptySet(this.
|
|
567
|
+
if (!equals(new NonEmptySet(this.t3n_1), new NonEmptySet(other.t3n_1)))
|
|
568
568
|
return false;
|
|
569
|
-
if (!equals(new NonEmptySet(this.
|
|
569
|
+
if (!equals(new NonEmptySet(this.u3n_1), new NonEmptySet(other.u3n_1)))
|
|
570
570
|
return false;
|
|
571
|
-
if (!equals(this.
|
|
571
|
+
if (!equals(this.v3n_1, other.v3n_1))
|
|
572
572
|
return false;
|
|
573
|
-
if (!equals(this.
|
|
573
|
+
if (!equals(this.w3n_1, other.w3n_1))
|
|
574
574
|
return false;
|
|
575
|
-
if (!equals(this.
|
|
575
|
+
if (!equals(this.x3n_1, other.x3n_1))
|
|
576
576
|
return false;
|
|
577
|
-
if (!equals(this.
|
|
577
|
+
if (!equals(this.y3n_1, other.y3n_1))
|
|
578
578
|
return false;
|
|
579
|
-
if (!(this.
|
|
579
|
+
if (!(this.z3n_1 === other.z3n_1))
|
|
580
580
|
return false;
|
|
581
|
-
if (!(this.
|
|
581
|
+
if (!(this.a3o_1 === other.a3o_1))
|
|
582
582
|
return false;
|
|
583
|
-
if (!(this.
|
|
583
|
+
if (!(this.b3o_1 === other.b3o_1))
|
|
584
584
|
return false;
|
|
585
585
|
return true;
|
|
586
586
|
};
|
|
587
587
|
function ConverterArguments(format, input, emitters, writer, error, packageName, logger, shared, strict, ir) {
|
|
588
|
-
this.
|
|
589
|
-
this.
|
|
590
|
-
this.
|
|
591
|
-
this.
|
|
592
|
-
this.
|
|
593
|
-
this.
|
|
594
|
-
this.
|
|
595
|
-
this.
|
|
596
|
-
this.
|
|
597
|
-
this.
|
|
598
|
-
}
|
|
599
|
-
protoOf(ConverterArguments).
|
|
600
|
-
return this.
|
|
588
|
+
this.c3o_1 = format;
|
|
589
|
+
this.d3o_1 = input;
|
|
590
|
+
this.e3o_1 = emitters;
|
|
591
|
+
this.f3o_1 = writer;
|
|
592
|
+
this.g3o_1 = error;
|
|
593
|
+
this.h3o_1 = packageName;
|
|
594
|
+
this.i3o_1 = logger;
|
|
595
|
+
this.j3o_1 = shared;
|
|
596
|
+
this.k3o_1 = strict;
|
|
597
|
+
this.l3o_1 = ir;
|
|
598
|
+
}
|
|
599
|
+
protoOf(ConverterArguments).m3o = function () {
|
|
600
|
+
return this.f3o_1;
|
|
601
601
|
};
|
|
602
|
-
protoOf(ConverterArguments).
|
|
603
|
-
return this.
|
|
602
|
+
protoOf(ConverterArguments).rx = function () {
|
|
603
|
+
return this.g3o_1;
|
|
604
604
|
};
|
|
605
605
|
protoOf(ConverterArguments).toString = function () {
|
|
606
|
-
return 'ConverterArguments(format=' + this.
|
|
606
|
+
return 'ConverterArguments(format=' + this.c3o_1.toString() + ', input=' + NonEmptySet__toString_impl_yfcj6n(this.d3o_1) + ', emitters=' + NonEmptySet__toString_impl_yfcj6n(this.e3o_1) + ', writer=' + toString(this.f3o_1) + ', error=' + toString(this.g3o_1) + ', packageName=' + this.h3o_1.toString() + ', logger=' + toString(this.i3o_1) + ', shared=' + this.j3o_1 + ', strict=' + this.k3o_1 + ', ir=' + this.l3o_1 + ')';
|
|
607
607
|
};
|
|
608
608
|
protoOf(ConverterArguments).hashCode = function () {
|
|
609
|
-
var result = this.
|
|
610
|
-
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.
|
|
611
|
-
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(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) + hashCode(this.
|
|
616
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
617
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
618
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
609
|
+
var result = this.c3o_1.hashCode();
|
|
610
|
+
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.d3o_1) | 0;
|
|
611
|
+
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.e3o_1) | 0;
|
|
612
|
+
result = imul(result, 31) + hashCode(this.f3o_1) | 0;
|
|
613
|
+
result = imul(result, 31) + hashCode(this.g3o_1) | 0;
|
|
614
|
+
result = imul(result, 31) + hashCode(this.h3o_1) | 0;
|
|
615
|
+
result = imul(result, 31) + hashCode(this.i3o_1) | 0;
|
|
616
|
+
result = imul(result, 31) + getBooleanHashCode(this.j3o_1) | 0;
|
|
617
|
+
result = imul(result, 31) + getBooleanHashCode(this.k3o_1) | 0;
|
|
618
|
+
result = imul(result, 31) + getBooleanHashCode(this.l3o_1) | 0;
|
|
619
619
|
return result;
|
|
620
620
|
};
|
|
621
621
|
protoOf(ConverterArguments).equals = function (other) {
|
|
@@ -623,38 +623,38 @@ protoOf(ConverterArguments).equals = function (other) {
|
|
|
623
623
|
return true;
|
|
624
624
|
if (!(other instanceof ConverterArguments))
|
|
625
625
|
return false;
|
|
626
|
-
if (!this.
|
|
626
|
+
if (!this.c3o_1.equals(other.c3o_1))
|
|
627
627
|
return false;
|
|
628
|
-
if (!equals(new NonEmptySet(this.
|
|
628
|
+
if (!equals(new NonEmptySet(this.d3o_1), new NonEmptySet(other.d3o_1)))
|
|
629
629
|
return false;
|
|
630
|
-
if (!equals(new NonEmptySet(this.
|
|
630
|
+
if (!equals(new NonEmptySet(this.e3o_1), new NonEmptySet(other.e3o_1)))
|
|
631
631
|
return false;
|
|
632
|
-
if (!equals(this.
|
|
632
|
+
if (!equals(this.f3o_1, other.f3o_1))
|
|
633
633
|
return false;
|
|
634
|
-
if (!equals(this.
|
|
634
|
+
if (!equals(this.g3o_1, other.g3o_1))
|
|
635
635
|
return false;
|
|
636
|
-
if (!equals(this.
|
|
636
|
+
if (!equals(this.h3o_1, other.h3o_1))
|
|
637
637
|
return false;
|
|
638
|
-
if (!equals(this.
|
|
638
|
+
if (!equals(this.i3o_1, other.i3o_1))
|
|
639
639
|
return false;
|
|
640
|
-
if (!(this.
|
|
640
|
+
if (!(this.j3o_1 === other.j3o_1))
|
|
641
641
|
return false;
|
|
642
|
-
if (!(this.
|
|
642
|
+
if (!(this.k3o_1 === other.k3o_1))
|
|
643
643
|
return false;
|
|
644
|
-
if (!(this.
|
|
644
|
+
if (!(this.l3o_1 === other.l3o_1))
|
|
645
645
|
return false;
|
|
646
646
|
return true;
|
|
647
647
|
};
|
|
648
648
|
function Source(name, content) {
|
|
649
|
-
this.
|
|
650
|
-
this.
|
|
649
|
+
this.p3o_1 = name;
|
|
650
|
+
this.q3o_1 = content;
|
|
651
651
|
}
|
|
652
652
|
protoOf(Source).toString = function () {
|
|
653
|
-
return 'Source(name=' + Name__toString_impl_61tomu(this.
|
|
653
|
+
return 'Source(name=' + Name__toString_impl_61tomu(this.p3o_1) + ', content=' + this.q3o_1 + ')';
|
|
654
654
|
};
|
|
655
655
|
protoOf(Source).hashCode = function () {
|
|
656
|
-
var result = Name__hashCode_impl_fpc861(this.
|
|
657
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
656
|
+
var result = Name__hashCode_impl_fpc861(this.p3o_1);
|
|
657
|
+
result = imul(result, 31) + getStringHashCode(this.q3o_1) | 0;
|
|
658
658
|
return result;
|
|
659
659
|
};
|
|
660
660
|
protoOf(Source).equals = function (other) {
|
|
@@ -662,9 +662,9 @@ protoOf(Source).equals = function (other) {
|
|
|
662
662
|
return true;
|
|
663
663
|
if (!(other instanceof Source))
|
|
664
664
|
return false;
|
|
665
|
-
if (!(this.
|
|
665
|
+
if (!(this.p3o_1 === other.p3o_1))
|
|
666
666
|
return false;
|
|
667
|
-
if (!(this.
|
|
667
|
+
if (!(this.q3o_1 === other.q3o_1))
|
|
668
668
|
return false;
|
|
669
669
|
return true;
|
|
670
670
|
};
|
|
@@ -695,24 +695,24 @@ function ClassPath__hashCode_impl_cciyyd($this) {
|
|
|
695
695
|
function ClassPath__equals_impl_kffpch($this, other) {
|
|
696
696
|
if (!(other instanceof ClassPath))
|
|
697
697
|
return false;
|
|
698
|
-
if (!($this === other.
|
|
698
|
+
if (!($this === other.r3o_1))
|
|
699
699
|
return false;
|
|
700
700
|
return true;
|
|
701
701
|
}
|
|
702
702
|
function ClassPath(value) {
|
|
703
|
-
this.
|
|
703
|
+
this.r3o_1 = value;
|
|
704
704
|
}
|
|
705
|
-
protoOf(ClassPath).
|
|
706
|
-
return _ClassPath___get_value__impl__lfuxg0(this.
|
|
705
|
+
protoOf(ClassPath).l1 = function () {
|
|
706
|
+
return _ClassPath___get_value__impl__lfuxg0(this.r3o_1);
|
|
707
707
|
};
|
|
708
708
|
protoOf(ClassPath).toString = function () {
|
|
709
|
-
return ClassPath__toString_impl_y3ovr8(this.
|
|
709
|
+
return ClassPath__toString_impl_y3ovr8(this.r3o_1);
|
|
710
710
|
};
|
|
711
711
|
protoOf(ClassPath).hashCode = function () {
|
|
712
|
-
return ClassPath__hashCode_impl_cciyyd(this.
|
|
712
|
+
return ClassPath__hashCode_impl_cciyyd(this.r3o_1);
|
|
713
713
|
};
|
|
714
714
|
protoOf(ClassPath).equals = function (other) {
|
|
715
|
-
return ClassPath__equals_impl_kffpch(this.
|
|
715
|
+
return ClassPath__equals_impl_kffpch(this.r3o_1, other);
|
|
716
716
|
};
|
|
717
717
|
function _DirectoryPath___init__impl__5bzkjd(value) {
|
|
718
718
|
return value;
|
|
@@ -729,31 +729,31 @@ function DirectoryPath__hashCode_impl_cv3skg($this) {
|
|
|
729
729
|
function DirectoryPath__equals_impl_c2rwsc($this, other) {
|
|
730
730
|
if (!(other instanceof DirectoryPath))
|
|
731
731
|
return false;
|
|
732
|
-
if (!($this === other.
|
|
732
|
+
if (!($this === other.s3o_1))
|
|
733
733
|
return false;
|
|
734
734
|
return true;
|
|
735
735
|
}
|
|
736
736
|
function DirectoryPath(value) {
|
|
737
|
-
this.
|
|
737
|
+
this.s3o_1 = value;
|
|
738
738
|
}
|
|
739
|
-
protoOf(DirectoryPath).
|
|
740
|
-
return _DirectoryPath___get_value__impl__hdy2e3(this.
|
|
739
|
+
protoOf(DirectoryPath).l1 = function () {
|
|
740
|
+
return _DirectoryPath___get_value__impl__hdy2e3(this.s3o_1);
|
|
741
741
|
};
|
|
742
742
|
protoOf(DirectoryPath).toString = function () {
|
|
743
|
-
return DirectoryPath__toString_impl_ym9pdb(this.
|
|
743
|
+
return DirectoryPath__toString_impl_ym9pdb(this.s3o_1);
|
|
744
744
|
};
|
|
745
745
|
protoOf(DirectoryPath).hashCode = function () {
|
|
746
|
-
return DirectoryPath__hashCode_impl_cv3skg(this.
|
|
746
|
+
return DirectoryPath__hashCode_impl_cv3skg(this.s3o_1);
|
|
747
747
|
};
|
|
748
748
|
protoOf(DirectoryPath).equals = function (other) {
|
|
749
|
-
return DirectoryPath__equals_impl_c2rwsc(this.
|
|
749
|
+
return DirectoryPath__equals_impl_c2rwsc(this.s3o_1, other);
|
|
750
750
|
};
|
|
751
751
|
function Directory(path) {
|
|
752
|
-
this.
|
|
752
|
+
this.t3o_1 = path;
|
|
753
753
|
}
|
|
754
754
|
function Companion_1() {
|
|
755
755
|
}
|
|
756
|
-
protoOf(Companion_1).
|
|
756
|
+
protoOf(Companion_1).u3o = function (input) {
|
|
757
757
|
// Inline function 'kotlin.let' call
|
|
758
758
|
var it = split(input, ['/']);
|
|
759
759
|
var list = plus(dropLast(it, 1), split(last(it), ['.']));
|
|
@@ -768,7 +768,7 @@ protoOf(Companion_1).p3o = function (input) {
|
|
|
768
768
|
var _iterator__ex2g4s = tmp0.t();
|
|
769
769
|
while (_iterator__ex2g4s.u()) {
|
|
770
770
|
var element = _iterator__ex2g4s.v();
|
|
771
|
-
if (element.
|
|
771
|
+
if (element.nq_1 === ext) {
|
|
772
772
|
tmp$ret$5 = element;
|
|
773
773
|
break $l$block;
|
|
774
774
|
}
|
|
@@ -786,7 +786,7 @@ protoOf(Companion_1).p3o = function (input) {
|
|
|
786
786
|
var extension = tmp;
|
|
787
787
|
var idxOfFileName = list.a1() - 2 | 0;
|
|
788
788
|
var filename = _Name___init__impl__o4q07e(list.f1(idxOfFileName));
|
|
789
|
-
var path = joinToString(list.
|
|
789
|
+
var path = joinToString(list.l2(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.v3o_1 = directory;
|
|
798
|
+
this.w3o_1 = name;
|
|
799
|
+
this.x3o_1 = extension;
|
|
800
800
|
}
|
|
801
801
|
protoOf(FilePath).toString = function () {
|
|
802
|
-
return DirectoryPath__toString_impl_ym9pdb(this.
|
|
802
|
+
return DirectoryPath__toString_impl_ym9pdb(this.v3o_1) + '/' + _Name___get_value__impl__3tbxxy(this.w3o_1) + '.' + this.x3o_1.nq_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.v3o_1);
|
|
806
|
+
result = imul(result, 31) + Name__hashCode_impl_fpc861(this.w3o_1) | 0;
|
|
807
|
+
result = imul(result, 31) + this.x3o_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.v3o_1 === other.v3o_1))
|
|
816
816
|
return false;
|
|
817
|
-
if (!(this.
|
|
817
|
+
if (!(this.w3o_1 === other.w3o_1))
|
|
818
818
|
return false;
|
|
819
|
-
if (!this.
|
|
819
|
+
if (!this.x3o_1.equals(other.x3o_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.r3o_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.s3o_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.v3o_1);
|
|
833
833
|
} else {
|
|
834
834
|
noWhenBranchMatchedException();
|
|
835
835
|
}
|
|
@@ -838,13 +838,13 @@ function path(_this__u8e3s4) {
|
|
|
838
838
|
return tmp;
|
|
839
839
|
}
|
|
840
840
|
function IOError(message) {
|
|
841
|
-
this.
|
|
841
|
+
this.y3o_1 = message;
|
|
842
842
|
}
|
|
843
843
|
function WirespecFileError() {
|
|
844
844
|
SpecificFile.call(this, FileExtension_Wirespec_getInstance());
|
|
845
845
|
}
|
|
846
846
|
function SpecificFile(extension) {
|
|
847
|
-
IOError.call(this, 'No ' + extension.
|
|
847
|
+
IOError.call(this, 'No ' + extension.a3_1 + ' file found');
|
|
848
848
|
}
|
|
849
849
|
function CannotAccessFileOrDirectory(input) {
|
|
850
850
|
IOError.call(this, 'Cannot access file or directory: ' + input + '.');
|
|
@@ -870,39 +870,39 @@ 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().h3n(path);
|
|
874
874
|
var tmp_1;
|
|
875
875
|
if (tmp0_elvis_lhs == null) {
|
|
876
|
-
raise.
|
|
876
|
+
raise.bm(new CannotAccessFileOrDirectory(input));
|
|
877
877
|
} else {
|
|
878
878
|
tmp_1 = tmp0_elvis_lhs;
|
|
879
879
|
}
|
|
880
880
|
var meta = tmp_1;
|
|
881
881
|
var pathString = path.toString();
|
|
882
882
|
var tmp_2;
|
|
883
|
-
if (meta.
|
|
883
|
+
if (meta.a3n_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.z3m_1) {
|
|
886
|
+
tmp_2 = Companion_instance_1.u3o(pathString);
|
|
887
887
|
} else {
|
|
888
|
-
raise.
|
|
888
|
+
raise.bm(new IsNotAFileOrDirectory(pathString));
|
|
889
889
|
}
|
|
890
890
|
tmp_0 = tmp_2;
|
|
891
891
|
}
|
|
892
892
|
var res = tmp_0;
|
|
893
|
-
raise.
|
|
893
|
+
raise.xl();
|
|
894
894
|
tmp = new Right(res);
|
|
895
895
|
} catch ($p) {
|
|
896
896
|
var tmp_3;
|
|
897
897
|
if ($p instanceof RaiseCancellationException) {
|
|
898
898
|
var e = $p;
|
|
899
|
-
raise.
|
|
899
|
+
raise.xl();
|
|
900
900
|
var it = raisedOrRethrow(e, raise);
|
|
901
901
|
tmp_3 = new Left(it);
|
|
902
902
|
} else {
|
|
903
903
|
if ($p instanceof Error) {
|
|
904
904
|
var e_0 = $p;
|
|
905
|
-
raise.
|
|
905
|
+
raise.xl();
|
|
906
906
|
throw nonFatalOrThrow(e_0);
|
|
907
907
|
} else {
|
|
908
908
|
throw $p;
|
|
@@ -916,11 +916,11 @@ function or(_this__u8e3s4, errorFn) {
|
|
|
916
916
|
// Inline function 'arrow.core.getOrElse' call
|
|
917
917
|
var tmp;
|
|
918
918
|
if (_this__u8e3s4 instanceof Left) {
|
|
919
|
-
errorFn(_this__u8e3s4.
|
|
919
|
+
errorFn(_this__u8e3s4.nl_1.y3o_1);
|
|
920
920
|
tmp = throwKotlinNothingValueException();
|
|
921
921
|
} else {
|
|
922
922
|
if (_this__u8e3s4 instanceof Right) {
|
|
923
|
-
tmp = _this__u8e3s4.
|
|
923
|
+
tmp = _this__u8e3s4.pl_1;
|
|
924
924
|
} else {
|
|
925
925
|
noWhenBranchMatchedException();
|
|
926
926
|
}
|
|
@@ -934,10 +934,10 @@ function wirespecSources(_this__u8e3s4, logger) {
|
|
|
934
934
|
var raise = new DefaultRaise(false);
|
|
935
935
|
var tmp;
|
|
936
936
|
try {
|
|
937
|
-
var tmp0 = Path(_DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.
|
|
937
|
+
var tmp0 = Path(_DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.t3o_1));
|
|
938
938
|
// Inline function 'kotlin.let' call
|
|
939
939
|
// Inline function 'kotlin.collections.filter' call
|
|
940
|
-
var tmp0_0 = get_SystemFileSystem().
|
|
940
|
+
var tmp0_0 = get_SystemFileSystem().i3n(tmp0);
|
|
941
941
|
// Inline function 'kotlin.collections.filterTo' call
|
|
942
942
|
var destination = ArrayList_init_$Create$_0();
|
|
943
943
|
var _iterator__ex2g4s = tmp0_0.t();
|
|
@@ -963,11 +963,11 @@ function wirespecSources(_this__u8e3s4, logger) {
|
|
|
963
963
|
var _iterator__ex2g4s_1 = destination_0.t();
|
|
964
964
|
while (_iterator__ex2g4s_1.u()) {
|
|
965
965
|
var item = _iterator__ex2g4s_1.v();
|
|
966
|
-
var tmp$ret$8 = to(Companion_instance_1.
|
|
966
|
+
var tmp$ret$8 = to(Companion_instance_1.u3o(item.toString()), readString(buffered(get_SystemFileSystem().e3n(item))));
|
|
967
967
|
destination_1.x(tmp$ret$8);
|
|
968
968
|
}
|
|
969
969
|
// Inline function 'kotlin.also' call
|
|
970
|
-
logger.
|
|
970
|
+
logger.sq('Found ' + destination_1.a1() + ' file(s) to process in ' + _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.t3o_1));
|
|
971
971
|
// Inline function 'kotlin.collections.forEachIndexed' call
|
|
972
972
|
var index = 0;
|
|
973
973
|
var _iterator__ex2g4s_2 = destination_1.t();
|
|
@@ -976,7 +976,7 @@ function wirespecSources(_this__u8e3s4, logger) {
|
|
|
976
976
|
var _unary__edvuaz = index;
|
|
977
977
|
index = _unary__edvuaz + 1 | 0;
|
|
978
978
|
var prefix = checkIndexOverflow(_unary__edvuaz) < (destination_1.a1() - 1 | 0) ? '\u251C\u2500\u2500 ' : '\u2514\u2500\u2500 ';
|
|
979
|
-
logger.
|
|
979
|
+
logger.sq(' ' + prefix + ' ' + _Name___get_value__impl__3tbxxy(item_0.we_1.w3o_1) + '.' + item_0.we_1.x3o_1.nq_1);
|
|
980
980
|
}
|
|
981
981
|
// Inline function 'kotlin.collections.map' call
|
|
982
982
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -984,33 +984,33 @@ function wirespecSources(_this__u8e3s4, logger) {
|
|
|
984
984
|
var _iterator__ex2g4s_3 = destination_1.t();
|
|
985
985
|
while (_iterator__ex2g4s_3.u()) {
|
|
986
986
|
var item_1 = _iterator__ex2g4s_3.v();
|
|
987
|
-
var path = item_1.
|
|
988
|
-
var source = item_1.
|
|
989
|
-
var tmp$ret$15 = new Source(path.
|
|
987
|
+
var path = item_1.ne();
|
|
988
|
+
var source = item_1.oe();
|
|
989
|
+
var tmp$ret$15 = new Source(path.w3o_1, source);
|
|
990
990
|
destination_2.x(tmp$ret$15);
|
|
991
991
|
}
|
|
992
992
|
var tmp0_elvis_lhs = toNonEmptySetOrNull(destination_2);
|
|
993
993
|
var tmp_0;
|
|
994
994
|
var tmp_1 = tmp0_elvis_lhs;
|
|
995
995
|
if ((tmp_1 == null ? null : new NonEmptySet(tmp_1)) == null) {
|
|
996
|
-
raise.
|
|
996
|
+
raise.bm(new WirespecFileError());
|
|
997
997
|
} else {
|
|
998
998
|
tmp_0 = tmp0_elvis_lhs;
|
|
999
999
|
}
|
|
1000
1000
|
var res = new NonEmptySet(tmp_0);
|
|
1001
|
-
raise.
|
|
1001
|
+
raise.xl();
|
|
1002
1002
|
tmp = new Right(res);
|
|
1003
1003
|
} catch ($p) {
|
|
1004
1004
|
var tmp_2;
|
|
1005
1005
|
if ($p instanceof RaiseCancellationException) {
|
|
1006
1006
|
var e = $p;
|
|
1007
|
-
raise.
|
|
1007
|
+
raise.xl();
|
|
1008
1008
|
var it = raisedOrRethrow(e, raise);
|
|
1009
1009
|
tmp_2 = new Left(it);
|
|
1010
1010
|
} else {
|
|
1011
1011
|
if ($p instanceof Error) {
|
|
1012
1012
|
var e_0 = $p;
|
|
1013
|
-
raise.
|
|
1013
|
+
raise.xl();
|
|
1014
1014
|
throw nonFatalOrThrow(e_0);
|
|
1015
1015
|
} else {
|
|
1016
1016
|
throw $p;
|
|
@@ -1023,7 +1023,7 @@ function wirespecSources(_this__u8e3s4, logger) {
|
|
|
1023
1023
|
function read(_this__u8e3s4) {
|
|
1024
1024
|
// Inline function 'kotlin.let' call
|
|
1025
1025
|
var it = Path(_this__u8e3s4.toString());
|
|
1026
|
-
return readString(buffered(get_SystemFileSystem().
|
|
1026
|
+
return readString(buffered(get_SystemFileSystem().e3n(it)));
|
|
1027
1027
|
}
|
|
1028
1028
|
function getOutPutPath(inputPath, output) {
|
|
1029
1029
|
// Inline function 'arrow.core.raise.either' call
|
|
@@ -1032,13 +1032,13 @@ function getOutPutPath(inputPath, output) {
|
|
|
1032
1032
|
var raise = new DefaultRaise(false);
|
|
1033
1033
|
var tmp;
|
|
1034
1034
|
try {
|
|
1035
|
-
var it = raise.
|
|
1035
|
+
var it = raise.fm(getFullPath(output, true));
|
|
1036
1036
|
var tmp_0;
|
|
1037
1037
|
if (it == null) {
|
|
1038
1038
|
tmp_0 = _DirectoryPath___init__impl__5bzkjd(path(inputPath) + '/out');
|
|
1039
1039
|
} else {
|
|
1040
1040
|
if (it instanceof DirectoryPath) {
|
|
1041
|
-
tmp_0 = it.
|
|
1041
|
+
tmp_0 = it.s3o_1;
|
|
1042
1042
|
} else {
|
|
1043
1043
|
var tmp_1;
|
|
1044
1044
|
if (it instanceof FilePath) {
|
|
@@ -1047,26 +1047,26 @@ function getOutPutPath(inputPath, output) {
|
|
|
1047
1047
|
tmp_1 = it instanceof ClassPath;
|
|
1048
1048
|
}
|
|
1049
1049
|
if (tmp_1) {
|
|
1050
|
-
raise.
|
|
1050
|
+
raise.bm(new OutputShouldBeADirectory());
|
|
1051
1051
|
} else {
|
|
1052
1052
|
noWhenBranchMatchedException();
|
|
1053
1053
|
}
|
|
1054
1054
|
}
|
|
1055
1055
|
}
|
|
1056
1056
|
var res = new DirectoryPath(tmp_0);
|
|
1057
|
-
raise.
|
|
1057
|
+
raise.xl();
|
|
1058
1058
|
tmp = new Right(res);
|
|
1059
1059
|
} catch ($p) {
|
|
1060
1060
|
var tmp_2;
|
|
1061
1061
|
if ($p instanceof RaiseCancellationException) {
|
|
1062
1062
|
var e = $p;
|
|
1063
|
-
raise.
|
|
1063
|
+
raise.xl();
|
|
1064
1064
|
var it_0 = raisedOrRethrow(e, raise);
|
|
1065
1065
|
tmp_2 = new Left(it_0);
|
|
1066
1066
|
} else {
|
|
1067
1067
|
if ($p instanceof Error) {
|
|
1068
1068
|
var e_0 = $p;
|
|
1069
|
-
raise.
|
|
1069
|
+
raise.xl();
|
|
1070
1070
|
throw nonFatalOrThrow(e_0);
|
|
1071
1071
|
} else {
|
|
1072
1072
|
throw $p;
|
|
@@ -1079,14 +1079,14 @@ function getOutPutPath(inputPath, output) {
|
|
|
1079
1079
|
function write(_this__u8e3s4, string) {
|
|
1080
1080
|
// Inline function 'kotlin.also' call
|
|
1081
1081
|
var this_0 = Path(_this__u8e3s4.toString());
|
|
1082
|
-
var tmp0_safe_receiver = this_0.
|
|
1082
|
+
var tmp0_safe_receiver = this_0.k3n();
|
|
1083
1083
|
if (tmp0_safe_receiver == null)
|
|
1084
1084
|
null;
|
|
1085
1085
|
else
|
|
1086
1086
|
createIfNotExists(tmp0_safe_receiver);
|
|
1087
1087
|
// Inline function 'kotlin.let' call
|
|
1088
1088
|
// Inline function 'kotlin.apply' call
|
|
1089
|
-
var this_1 = buffered_0(get_SystemFileSystem().
|
|
1089
|
+
var this_1 = buffered_0(get_SystemFileSystem().g3n(this_0));
|
|
1090
1090
|
writeString(this_1, string);
|
|
1091
1091
|
this_1.z8();
|
|
1092
1092
|
return Unit_instance;
|
|
@@ -1094,23 +1094,23 @@ function write(_this__u8e3s4, string) {
|
|
|
1094
1094
|
function createIfNotExists(_this__u8e3s4, create) {
|
|
1095
1095
|
create = create === VOID ? true : create;
|
|
1096
1096
|
// Inline function 'kotlin.also' call
|
|
1097
|
-
if (create && !get_SystemFileSystem().
|
|
1098
|
-
get_SystemFileSystem().
|
|
1097
|
+
if (create && !get_SystemFileSystem().c3n(_this__u8e3s4)) {
|
|
1098
|
+
get_SystemFileSystem().d3n(_this__u8e3s4, true);
|
|
1099
1099
|
}
|
|
1100
1100
|
return _this__u8e3s4;
|
|
1101
1101
|
}
|
|
1102
1102
|
function isRegularFile(path) {
|
|
1103
|
-
var tmp0_safe_receiver = get_SystemFileSystem().
|
|
1104
|
-
return (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1103
|
+
var tmp0_safe_receiver = get_SystemFileSystem().h3n(path);
|
|
1104
|
+
return (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.z3m_1) === true;
|
|
1105
1105
|
}
|
|
1106
1106
|
function isWirespecFile(path) {
|
|
1107
|
-
return get_extension(path) === FileExtension_Wirespec_getInstance().
|
|
1107
|
+
return get_extension(path) === FileExtension_Wirespec_getInstance().nq_1;
|
|
1108
1108
|
}
|
|
1109
1109
|
function get_extension(_this__u8e3s4) {
|
|
1110
1110
|
return substringAfterLast(_this__u8e3s4.m(), _Char___init__impl__6a9atx(46), '');
|
|
1111
1111
|
}
|
|
1112
1112
|
//region block: post-declaration
|
|
1113
|
-
protoOf(compile$ctx$1).
|
|
1113
|
+
protoOf(compile$ctx$1).gn = get_spec;
|
|
1114
1114
|
//endregion
|
|
1115
1115
|
//region block: init
|
|
1116
1116
|
Companion_instance = new Companion();
|