@flock/wirespec 0.17.16 → 0.17.18
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.mjs +1152 -1152
- package/colormath-root-colormath.mjs +424 -424
- package/kotlin-kotlin-stdlib.mjs +11 -11
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +1 -0
- package/kotlin-rgxgen.mjs +1763 -1763
- package/kotlinx-io-kotlinx-io-core.mjs +377 -377
- package/markdown.mjs +1833 -1833
- package/mordant-mordant.mjs +1605 -1605
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +25 -13
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-java.mjs +118 -84
- package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-kotlin.mjs +156 -126
- package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-python.mjs +169 -139
- package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-typescript.mjs +89 -85
- package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-wirespec.mjs +33 -33
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +246 -246
- package/wirespec-src-converter-avro.mjs +265 -265
- package/wirespec-src-converter-openapi.mjs +76 -75
- package/wirespec-src-converter-openapi.mjs.map +1 -1
- package/wirespec-src-plugin-arguments.mjs +132 -132
- package/wirespec-src-plugin-cli.mjs +66 -66
- package/wirespec-src-plugin-npm.mjs +10 -10
- package/wirespec-src-tools-generator.mjs +2 -2
|
@@ -163,7 +163,7 @@ var Language_OpenAPIV3_instance;
|
|
|
163
163
|
var Language_Avro_instance;
|
|
164
164
|
function Companion_0() {
|
|
165
165
|
}
|
|
166
|
-
protoOf(Companion_0).
|
|
166
|
+
protoOf(Companion_0).o2i = function () {
|
|
167
167
|
// Inline function 'kotlin.collections.associateBy' call
|
|
168
168
|
var this_0 = get_entries_1();
|
|
169
169
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
@@ -279,7 +279,7 @@ function Language_Avro_getInstance() {
|
|
|
279
279
|
function compile_0(arguments_0) {
|
|
280
280
|
var ctx = new compile$ctx$1(arguments_0);
|
|
281
281
|
// Inline function 'arrow.core.NonEmptySet.map' call
|
|
282
|
-
var this_0 = arguments_0.
|
|
282
|
+
var this_0 = arguments_0.p2i_1;
|
|
283
283
|
// Inline function 'kotlin.collections.map' call
|
|
284
284
|
var this_1 = _NonEmptySet___get_elements__impl__g09gj9(this_0);
|
|
285
285
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -288,7 +288,7 @@ function compile_0(arguments_0) {
|
|
|
288
288
|
while (tmp0_iterator.h()) {
|
|
289
289
|
var item = tmp0_iterator.i();
|
|
290
290
|
// Inline function 'community.flock.wirespec.plugin.compile.<anonymous>' call
|
|
291
|
-
var tmp$ret$0 = new ModuleContent(new FileUri(_Name___get_value__impl__3tbxxy(item.
|
|
291
|
+
var tmp$ret$0 = new ModuleContent(new FileUri(_Name___get_value__impl__3tbxxy(item.x2i_1)), item.y2i_1);
|
|
292
292
|
destination.e(tmp$ret$0);
|
|
293
293
|
}
|
|
294
294
|
var tmp$ret$3 = ensureNotNull(toNonEmptyListOrNull(destination));
|
|
@@ -296,7 +296,7 @@ function compile_0(arguments_0) {
|
|
|
296
296
|
}
|
|
297
297
|
function convert(arguments_0) {
|
|
298
298
|
var tmp;
|
|
299
|
-
switch (arguments_0.
|
|
299
|
+
switch (arguments_0.z2i_1.r2_1) {
|
|
300
300
|
case 0:
|
|
301
301
|
tmp = OpenAPIV2Parser_instance;
|
|
302
302
|
break;
|
|
@@ -311,13 +311,13 @@ function convert(arguments_0) {
|
|
|
311
311
|
break;
|
|
312
312
|
}
|
|
313
313
|
var parser = tmp;
|
|
314
|
-
var options = new ParseOptions(arguments_0.
|
|
314
|
+
var options = new ParseOptions(arguments_0.h2j_1);
|
|
315
315
|
// Inline function 'arrow.core.Either.map' call
|
|
316
316
|
// Inline function 'kotlin.let' call
|
|
317
317
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
318
318
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
319
319
|
// Inline function 'arrow.core.NonEmptySet.map' call
|
|
320
|
-
var this_0 = arguments_0.
|
|
320
|
+
var this_0 = arguments_0.a2j_1;
|
|
321
321
|
// Inline function 'kotlin.collections.map' call
|
|
322
322
|
var this_1 = _NonEmptySet___get_elements__impl__g09gj9(this_0);
|
|
323
323
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -326,13 +326,13 @@ function convert(arguments_0) {
|
|
|
326
326
|
while (tmp0_iterator.h()) {
|
|
327
327
|
var item = tmp0_iterator.i();
|
|
328
328
|
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>' call
|
|
329
|
-
var tmp$ret$0 = new ModuleContent(new FileUri(_Name___get_value__impl__3tbxxy(item.
|
|
329
|
+
var tmp$ret$0 = new ModuleContent(new FileUri(_Name___get_value__impl__3tbxxy(item.x2i_1)), item.y2i_1);
|
|
330
330
|
destination.e(tmp$ret$0);
|
|
331
331
|
}
|
|
332
332
|
var this_2 = ensureNotNull(toNonEmptyListOrNull(destination));
|
|
333
333
|
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>' call
|
|
334
334
|
var moduleContent = this_2.pk_1;
|
|
335
|
-
var tmp_0 = parser.
|
|
335
|
+
var tmp_0 = parser.u2e(moduleContent, arguments_0.h2j_1);
|
|
336
336
|
// Inline function 'kotlin.collections.map' call
|
|
337
337
|
var this_3 = this_2.qk_1;
|
|
338
338
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -341,7 +341,7 @@ function convert(arguments_0) {
|
|
|
341
341
|
while (tmp0_iterator_0.h()) {
|
|
342
342
|
var item_0 = tmp0_iterator_0.i();
|
|
343
343
|
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>' call
|
|
344
|
-
var tmp$ret$5 = parser.
|
|
344
|
+
var tmp$ret$5 = parser.u2e(item_0, arguments_0.h2j_1);
|
|
345
345
|
destination_0.e(tmp$ret$5);
|
|
346
346
|
}
|
|
347
347
|
var this_4 = new NonEmptyList(tmp_0, destination_0);
|
|
@@ -408,7 +408,7 @@ function convert(arguments_0) {
|
|
|
408
408
|
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>.<anonymous>' call
|
|
409
409
|
var ast = this_7.pk_1;
|
|
410
410
|
// Inline function 'arrow.core.NonEmptySet.flatMap' call
|
|
411
|
-
var this_8 = arguments_0.
|
|
411
|
+
var this_8 = arguments_0.b2j_1;
|
|
412
412
|
// Inline function 'kotlin.collections.flatMap' call
|
|
413
413
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
414
414
|
var this_9 = _NonEmptySet___get_elements__impl__g09gj9(this_8);
|
|
@@ -417,7 +417,7 @@ function convert(arguments_0) {
|
|
|
417
417
|
while (tmp0_iterator_2.h()) {
|
|
418
418
|
var element = tmp0_iterator_2.i();
|
|
419
419
|
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>.<anonymous>.<anonymous>' call
|
|
420
|
-
var list = element.q22(ast, arguments_0.
|
|
420
|
+
var list = element.q22(ast, arguments_0.f2j_1);
|
|
421
421
|
addAll(destination_2, list);
|
|
422
422
|
}
|
|
423
423
|
var tmp_5 = ensureNotNull(toNonEmptyListOrNull(destination_2)).nk();
|
|
@@ -430,7 +430,7 @@ function convert(arguments_0) {
|
|
|
430
430
|
var element_0 = tmp0_iterator_3.i();
|
|
431
431
|
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>.<anonymous>' call
|
|
432
432
|
// Inline function 'arrow.core.NonEmptySet.flatMap' call
|
|
433
|
-
var this_11 = arguments_0.
|
|
433
|
+
var this_11 = arguments_0.b2j_1;
|
|
434
434
|
// Inline function 'kotlin.collections.flatMap' call
|
|
435
435
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
436
436
|
var this_12 = _NonEmptySet___get_elements__impl__g09gj9(this_11);
|
|
@@ -439,7 +439,7 @@ function convert(arguments_0) {
|
|
|
439
439
|
while (tmp0_iterator_4.h()) {
|
|
440
440
|
var element_1 = tmp0_iterator_4.i();
|
|
441
441
|
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>.<anonymous>.<anonymous>' call
|
|
442
|
-
var list_0 = element_1.q22(element_0, arguments_0.
|
|
442
|
+
var list_0 = element_1.q22(element_0, arguments_0.f2j_1);
|
|
443
443
|
addAll(destination_4, list_0);
|
|
444
444
|
}
|
|
445
445
|
var list_1 = ensureNotNull(toNonEmptyListOrNull(destination_4));
|
|
@@ -513,8 +513,8 @@ function fold(_this__u8e3s4, arguments_0) {
|
|
|
513
513
|
}
|
|
514
514
|
}
|
|
515
515
|
var this_3 = tmp_1;
|
|
516
|
-
var ifLeft = arguments_0.
|
|
517
|
-
var ifRight = arguments_0.
|
|
516
|
+
var ifLeft = arguments_0.i2j();
|
|
517
|
+
var ifRight = arguments_0.j2j();
|
|
518
518
|
// Inline function 'kotlin.contracts.contract' call
|
|
519
519
|
var tmp_2;
|
|
520
520
|
if (this_3 instanceof Right) {
|
|
@@ -529,43 +529,43 @@ function fold(_this__u8e3s4, arguments_0) {
|
|
|
529
529
|
return tmp_2;
|
|
530
530
|
}
|
|
531
531
|
function compile$ctx$1($arguments) {
|
|
532
|
-
this.
|
|
533
|
-
this.
|
|
532
|
+
this.k2j_1 = $arguments.u2i_1;
|
|
533
|
+
this.l2j_1 = $arguments.q2i_1;
|
|
534
534
|
}
|
|
535
535
|
protoOf(compile$ctx$1).d22 = function () {
|
|
536
|
-
return this.
|
|
536
|
+
return this.k2j_1;
|
|
537
537
|
};
|
|
538
538
|
protoOf(compile$ctx$1).p22 = function () {
|
|
539
|
-
return this.
|
|
539
|
+
return this.l2j_1;
|
|
540
540
|
};
|
|
541
541
|
function CompilerArguments(input, emitters, writer, error, packageName, logger, shared, strict) {
|
|
542
|
-
this.
|
|
543
|
-
this.
|
|
544
|
-
this.
|
|
545
|
-
this.
|
|
546
|
-
this.
|
|
547
|
-
this.
|
|
548
|
-
this.
|
|
549
|
-
this.
|
|
550
|
-
}
|
|
551
|
-
protoOf(CompilerArguments).
|
|
552
|
-
return this.
|
|
542
|
+
this.p2i_1 = input;
|
|
543
|
+
this.q2i_1 = emitters;
|
|
544
|
+
this.r2i_1 = writer;
|
|
545
|
+
this.s2i_1 = error;
|
|
546
|
+
this.t2i_1 = packageName;
|
|
547
|
+
this.u2i_1 = logger;
|
|
548
|
+
this.v2i_1 = shared;
|
|
549
|
+
this.w2i_1 = strict;
|
|
550
|
+
}
|
|
551
|
+
protoOf(CompilerArguments).j2j = function () {
|
|
552
|
+
return this.r2i_1;
|
|
553
553
|
};
|
|
554
|
-
protoOf(CompilerArguments).
|
|
555
|
-
return this.
|
|
554
|
+
protoOf(CompilerArguments).i2j = function () {
|
|
555
|
+
return this.s2i_1;
|
|
556
556
|
};
|
|
557
557
|
protoOf(CompilerArguments).toString = function () {
|
|
558
|
-
return 'CompilerArguments(input=' + NonEmptySet__toString_impl_yfcj6n(this.
|
|
558
|
+
return 'CompilerArguments(input=' + NonEmptySet__toString_impl_yfcj6n(this.p2i_1) + ', emitters=' + NonEmptySet__toString_impl_yfcj6n(this.q2i_1) + ', writer=' + toString(this.r2i_1) + ', error=' + toString(this.s2i_1) + ', packageName=' + this.t2i_1.toString() + ', logger=' + toString(this.u2i_1) + ', shared=' + this.v2i_1 + ', strict=' + this.w2i_1 + ')';
|
|
559
559
|
};
|
|
560
560
|
protoOf(CompilerArguments).hashCode = function () {
|
|
561
|
-
var result = NonEmptySet__hashCode_impl_co6mds(this.
|
|
562
|
-
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.
|
|
563
|
-
result = imul(result, 31) + hashCode(this.o2i_1) | 0;
|
|
564
|
-
result = imul(result, 31) + hashCode(this.p2i_1) | 0;
|
|
565
|
-
result = imul(result, 31) + hashCode(this.q2i_1) | 0;
|
|
561
|
+
var result = NonEmptySet__hashCode_impl_co6mds(this.p2i_1);
|
|
562
|
+
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.q2i_1) | 0;
|
|
566
563
|
result = imul(result, 31) + hashCode(this.r2i_1) | 0;
|
|
567
|
-
result = imul(result, 31) +
|
|
568
|
-
result = imul(result, 31) +
|
|
564
|
+
result = imul(result, 31) + hashCode(this.s2i_1) | 0;
|
|
565
|
+
result = imul(result, 31) + hashCode(this.t2i_1) | 0;
|
|
566
|
+
result = imul(result, 31) + hashCode(this.u2i_1) | 0;
|
|
567
|
+
result = imul(result, 31) + getBooleanHashCode(this.v2i_1) | 0;
|
|
568
|
+
result = imul(result, 31) + getBooleanHashCode(this.w2i_1) | 0;
|
|
569
569
|
return result;
|
|
570
570
|
};
|
|
571
571
|
protoOf(CompilerArguments).equals = function (other) {
|
|
@@ -574,54 +574,54 @@ protoOf(CompilerArguments).equals = function (other) {
|
|
|
574
574
|
if (!(other instanceof CompilerArguments))
|
|
575
575
|
return false;
|
|
576
576
|
var tmp0_other_with_cast = other instanceof CompilerArguments ? other : THROW_CCE();
|
|
577
|
-
if (!equals(new NonEmptySet(this.
|
|
577
|
+
if (!equals(new NonEmptySet(this.p2i_1), new NonEmptySet(tmp0_other_with_cast.p2i_1)))
|
|
578
578
|
return false;
|
|
579
|
-
if (!equals(new NonEmptySet(this.
|
|
579
|
+
if (!equals(new NonEmptySet(this.q2i_1), new NonEmptySet(tmp0_other_with_cast.q2i_1)))
|
|
580
580
|
return false;
|
|
581
|
-
if (!equals(this.
|
|
581
|
+
if (!equals(this.r2i_1, tmp0_other_with_cast.r2i_1))
|
|
582
582
|
return false;
|
|
583
|
-
if (!equals(this.
|
|
583
|
+
if (!equals(this.s2i_1, tmp0_other_with_cast.s2i_1))
|
|
584
584
|
return false;
|
|
585
|
-
if (!equals(this.
|
|
585
|
+
if (!equals(this.t2i_1, tmp0_other_with_cast.t2i_1))
|
|
586
586
|
return false;
|
|
587
|
-
if (!equals(this.
|
|
587
|
+
if (!equals(this.u2i_1, tmp0_other_with_cast.u2i_1))
|
|
588
588
|
return false;
|
|
589
|
-
if (!(this.
|
|
589
|
+
if (!(this.v2i_1 === tmp0_other_with_cast.v2i_1))
|
|
590
590
|
return false;
|
|
591
|
-
if (!(this.
|
|
591
|
+
if (!(this.w2i_1 === tmp0_other_with_cast.w2i_1))
|
|
592
592
|
return false;
|
|
593
593
|
return true;
|
|
594
594
|
};
|
|
595
595
|
function ConverterArguments(format, input, emitters, writer, error, packageName, logger, shared, strict) {
|
|
596
|
-
this.
|
|
597
|
-
this.
|
|
598
|
-
this.
|
|
599
|
-
this.
|
|
600
|
-
this.
|
|
601
|
-
this.
|
|
602
|
-
this.
|
|
603
|
-
this.
|
|
604
|
-
this.
|
|
605
|
-
}
|
|
606
|
-
protoOf(ConverterArguments).
|
|
607
|
-
return this.
|
|
596
|
+
this.z2i_1 = format;
|
|
597
|
+
this.a2j_1 = input;
|
|
598
|
+
this.b2j_1 = emitters;
|
|
599
|
+
this.c2j_1 = writer;
|
|
600
|
+
this.d2j_1 = error;
|
|
601
|
+
this.e2j_1 = packageName;
|
|
602
|
+
this.f2j_1 = logger;
|
|
603
|
+
this.g2j_1 = shared;
|
|
604
|
+
this.h2j_1 = strict;
|
|
605
|
+
}
|
|
606
|
+
protoOf(ConverterArguments).j2j = function () {
|
|
607
|
+
return this.c2j_1;
|
|
608
608
|
};
|
|
609
|
-
protoOf(ConverterArguments).
|
|
610
|
-
return this.
|
|
609
|
+
protoOf(ConverterArguments).i2j = function () {
|
|
610
|
+
return this.d2j_1;
|
|
611
611
|
};
|
|
612
612
|
protoOf(ConverterArguments).toString = function () {
|
|
613
|
-
return 'ConverterArguments(format=' + this.
|
|
613
|
+
return 'ConverterArguments(format=' + this.z2i_1.toString() + ', input=' + NonEmptySet__toString_impl_yfcj6n(this.a2j_1) + ', emitters=' + NonEmptySet__toString_impl_yfcj6n(this.b2j_1) + ', writer=' + toString(this.c2j_1) + ', error=' + toString(this.d2j_1) + ', packageName=' + this.e2j_1.toString() + ', logger=' + toString(this.f2j_1) + ', shared=' + this.g2j_1 + ', strict=' + this.h2j_1 + ')';
|
|
614
614
|
};
|
|
615
615
|
protoOf(ConverterArguments).hashCode = function () {
|
|
616
|
-
var result = this.
|
|
617
|
-
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.
|
|
618
|
-
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.
|
|
619
|
-
result = imul(result, 31) + hashCode(this.z2i_1) | 0;
|
|
620
|
-
result = imul(result, 31) + hashCode(this.a2j_1) | 0;
|
|
621
|
-
result = imul(result, 31) + hashCode(this.b2j_1) | 0;
|
|
616
|
+
var result = this.z2i_1.hashCode();
|
|
617
|
+
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.a2j_1) | 0;
|
|
618
|
+
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.b2j_1) | 0;
|
|
622
619
|
result = imul(result, 31) + hashCode(this.c2j_1) | 0;
|
|
623
|
-
result = imul(result, 31) +
|
|
624
|
-
result = imul(result, 31) +
|
|
620
|
+
result = imul(result, 31) + hashCode(this.d2j_1) | 0;
|
|
621
|
+
result = imul(result, 31) + hashCode(this.e2j_1) | 0;
|
|
622
|
+
result = imul(result, 31) + hashCode(this.f2j_1) | 0;
|
|
623
|
+
result = imul(result, 31) + getBooleanHashCode(this.g2j_1) | 0;
|
|
624
|
+
result = imul(result, 31) + getBooleanHashCode(this.h2j_1) | 0;
|
|
625
625
|
return result;
|
|
626
626
|
};
|
|
627
627
|
protoOf(ConverterArguments).equals = function (other) {
|
|
@@ -630,36 +630,36 @@ protoOf(ConverterArguments).equals = function (other) {
|
|
|
630
630
|
if (!(other instanceof ConverterArguments))
|
|
631
631
|
return false;
|
|
632
632
|
var tmp0_other_with_cast = other instanceof ConverterArguments ? other : THROW_CCE();
|
|
633
|
-
if (!this.
|
|
633
|
+
if (!this.z2i_1.equals(tmp0_other_with_cast.z2i_1))
|
|
634
634
|
return false;
|
|
635
|
-
if (!equals(new NonEmptySet(this.
|
|
635
|
+
if (!equals(new NonEmptySet(this.a2j_1), new NonEmptySet(tmp0_other_with_cast.a2j_1)))
|
|
636
636
|
return false;
|
|
637
|
-
if (!equals(new NonEmptySet(this.
|
|
637
|
+
if (!equals(new NonEmptySet(this.b2j_1), new NonEmptySet(tmp0_other_with_cast.b2j_1)))
|
|
638
638
|
return false;
|
|
639
|
-
if (!equals(this.
|
|
639
|
+
if (!equals(this.c2j_1, tmp0_other_with_cast.c2j_1))
|
|
640
640
|
return false;
|
|
641
|
-
if (!equals(this.
|
|
641
|
+
if (!equals(this.d2j_1, tmp0_other_with_cast.d2j_1))
|
|
642
642
|
return false;
|
|
643
|
-
if (!equals(this.
|
|
643
|
+
if (!equals(this.e2j_1, tmp0_other_with_cast.e2j_1))
|
|
644
644
|
return false;
|
|
645
|
-
if (!equals(this.
|
|
645
|
+
if (!equals(this.f2j_1, tmp0_other_with_cast.f2j_1))
|
|
646
646
|
return false;
|
|
647
|
-
if (!(this.
|
|
647
|
+
if (!(this.g2j_1 === tmp0_other_with_cast.g2j_1))
|
|
648
648
|
return false;
|
|
649
|
-
if (!(this.
|
|
649
|
+
if (!(this.h2j_1 === tmp0_other_with_cast.h2j_1))
|
|
650
650
|
return false;
|
|
651
651
|
return true;
|
|
652
652
|
};
|
|
653
653
|
function Source(name, content) {
|
|
654
|
-
this.
|
|
655
|
-
this.
|
|
654
|
+
this.x2i_1 = name;
|
|
655
|
+
this.y2i_1 = content;
|
|
656
656
|
}
|
|
657
657
|
protoOf(Source).toString = function () {
|
|
658
|
-
return 'Source(name=' + Name__toString_impl_61tomu(this.
|
|
658
|
+
return 'Source(name=' + Name__toString_impl_61tomu(this.x2i_1) + ', content=' + this.y2i_1 + ')';
|
|
659
659
|
};
|
|
660
660
|
protoOf(Source).hashCode = function () {
|
|
661
|
-
var result = Name__hashCode_impl_fpc861(this.
|
|
662
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
661
|
+
var result = Name__hashCode_impl_fpc861(this.x2i_1);
|
|
662
|
+
result = imul(result, 31) + getStringHashCode(this.y2i_1) | 0;
|
|
663
663
|
return result;
|
|
664
664
|
};
|
|
665
665
|
protoOf(Source).equals = function (other) {
|
|
@@ -668,9 +668,9 @@ protoOf(Source).equals = function (other) {
|
|
|
668
668
|
if (!(other instanceof Source))
|
|
669
669
|
return false;
|
|
670
670
|
var tmp0_other_with_cast = other instanceof Source ? other : THROW_CCE();
|
|
671
|
-
if (!(this.
|
|
671
|
+
if (!(this.x2i_1 === tmp0_other_with_cast.x2i_1))
|
|
672
672
|
return false;
|
|
673
|
-
if (!(this.
|
|
673
|
+
if (!(this.y2i_1 === tmp0_other_with_cast.y2i_1))
|
|
674
674
|
return false;
|
|
675
675
|
return true;
|
|
676
676
|
};
|
|
@@ -701,21 +701,21 @@ function ClassPath__hashCode_impl_cciyyd($this) {
|
|
|
701
701
|
function ClassPath__equals_impl_kffpch($this, other) {
|
|
702
702
|
if (!(other instanceof ClassPath))
|
|
703
703
|
return false;
|
|
704
|
-
if (!($this === (other instanceof ClassPath ? other.
|
|
704
|
+
if (!($this === (other instanceof ClassPath ? other.m2j_1 : THROW_CCE())))
|
|
705
705
|
return false;
|
|
706
706
|
return true;
|
|
707
707
|
}
|
|
708
708
|
function ClassPath(value) {
|
|
709
|
-
this.
|
|
709
|
+
this.m2j_1 = value;
|
|
710
710
|
}
|
|
711
711
|
protoOf(ClassPath).toString = function () {
|
|
712
|
-
return ClassPath__toString_impl_y3ovr8(this.
|
|
712
|
+
return ClassPath__toString_impl_y3ovr8(this.m2j_1);
|
|
713
713
|
};
|
|
714
714
|
protoOf(ClassPath).hashCode = function () {
|
|
715
|
-
return ClassPath__hashCode_impl_cciyyd(this.
|
|
715
|
+
return ClassPath__hashCode_impl_cciyyd(this.m2j_1);
|
|
716
716
|
};
|
|
717
717
|
protoOf(ClassPath).equals = function (other) {
|
|
718
|
-
return ClassPath__equals_impl_kffpch(this.
|
|
718
|
+
return ClassPath__equals_impl_kffpch(this.m2j_1, other);
|
|
719
719
|
};
|
|
720
720
|
function _DirectoryPath___init__impl__5bzkjd(value) {
|
|
721
721
|
return value;
|
|
@@ -732,28 +732,28 @@ function DirectoryPath__hashCode_impl_cv3skg($this) {
|
|
|
732
732
|
function DirectoryPath__equals_impl_c2rwsc($this, other) {
|
|
733
733
|
if (!(other instanceof DirectoryPath))
|
|
734
734
|
return false;
|
|
735
|
-
if (!($this === (other instanceof DirectoryPath ? other.
|
|
735
|
+
if (!($this === (other instanceof DirectoryPath ? other.n2j_1 : THROW_CCE())))
|
|
736
736
|
return false;
|
|
737
737
|
return true;
|
|
738
738
|
}
|
|
739
739
|
function DirectoryPath(value) {
|
|
740
|
-
this.
|
|
740
|
+
this.n2j_1 = value;
|
|
741
741
|
}
|
|
742
742
|
protoOf(DirectoryPath).toString = function () {
|
|
743
|
-
return DirectoryPath__toString_impl_ym9pdb(this.
|
|
743
|
+
return DirectoryPath__toString_impl_ym9pdb(this.n2j_1);
|
|
744
744
|
};
|
|
745
745
|
protoOf(DirectoryPath).hashCode = function () {
|
|
746
|
-
return DirectoryPath__hashCode_impl_cv3skg(this.
|
|
746
|
+
return DirectoryPath__hashCode_impl_cv3skg(this.n2j_1);
|
|
747
747
|
};
|
|
748
748
|
protoOf(DirectoryPath).equals = function (other) {
|
|
749
|
-
return DirectoryPath__equals_impl_c2rwsc(this.
|
|
749
|
+
return DirectoryPath__equals_impl_c2rwsc(this.n2j_1, other);
|
|
750
750
|
};
|
|
751
751
|
function Directory(path) {
|
|
752
|
-
this.
|
|
752
|
+
this.o2j_1 = path;
|
|
753
753
|
}
|
|
754
754
|
function Companion_1() {
|
|
755
755
|
}
|
|
756
|
-
protoOf(Companion_1).
|
|
756
|
+
protoOf(Companion_1).p2j = function (input) {
|
|
757
757
|
// Inline function 'kotlin.let' call
|
|
758
758
|
// Inline function 'kotlin.contracts.contract' call
|
|
759
759
|
// Inline function 'community.flock.wirespec.plugin.io.Companion.invoke.<anonymous>' call
|
|
@@ -797,17 +797,17 @@ function Companion_getInstance_1() {
|
|
|
797
797
|
return Companion_instance_1;
|
|
798
798
|
}
|
|
799
799
|
function FilePath(directory, name, extension) {
|
|
800
|
-
this.
|
|
801
|
-
this.
|
|
802
|
-
this.
|
|
800
|
+
this.q2j_1 = directory;
|
|
801
|
+
this.r2j_1 = name;
|
|
802
|
+
this.s2j_1 = extension;
|
|
803
803
|
}
|
|
804
804
|
protoOf(FilePath).toString = function () {
|
|
805
|
-
return DirectoryPath__toString_impl_ym9pdb(this.
|
|
805
|
+
return DirectoryPath__toString_impl_ym9pdb(this.q2j_1) + '/' + _Name___get_value__impl__3tbxxy(this.r2j_1) + '.' + this.s2j_1.p25_1;
|
|
806
806
|
};
|
|
807
807
|
protoOf(FilePath).hashCode = function () {
|
|
808
|
-
var result = DirectoryPath__hashCode_impl_cv3skg(this.
|
|
809
|
-
result = imul(result, 31) + Name__hashCode_impl_fpc861(this.
|
|
810
|
-
result = imul(result, 31) + this.
|
|
808
|
+
var result = DirectoryPath__hashCode_impl_cv3skg(this.q2j_1);
|
|
809
|
+
result = imul(result, 31) + Name__hashCode_impl_fpc861(this.r2j_1) | 0;
|
|
810
|
+
result = imul(result, 31) + this.s2j_1.hashCode() | 0;
|
|
811
811
|
return result;
|
|
812
812
|
};
|
|
813
813
|
protoOf(FilePath).equals = function (other) {
|
|
@@ -816,24 +816,24 @@ protoOf(FilePath).equals = function (other) {
|
|
|
816
816
|
if (!(other instanceof FilePath))
|
|
817
817
|
return false;
|
|
818
818
|
var tmp0_other_with_cast = other instanceof FilePath ? other : THROW_CCE();
|
|
819
|
-
if (!(this.
|
|
819
|
+
if (!(this.q2j_1 === tmp0_other_with_cast.q2j_1))
|
|
820
820
|
return false;
|
|
821
|
-
if (!(this.
|
|
821
|
+
if (!(this.r2j_1 === tmp0_other_with_cast.r2j_1))
|
|
822
822
|
return false;
|
|
823
|
-
if (!this.
|
|
823
|
+
if (!this.s2j_1.equals(tmp0_other_with_cast.s2j_1))
|
|
824
824
|
return false;
|
|
825
825
|
return true;
|
|
826
826
|
};
|
|
827
827
|
function path(_this__u8e3s4) {
|
|
828
828
|
var tmp;
|
|
829
829
|
if (_this__u8e3s4 instanceof ClassPath) {
|
|
830
|
-
tmp = _ClassPath___get_value__impl__lfuxg0(_this__u8e3s4.
|
|
830
|
+
tmp = _ClassPath___get_value__impl__lfuxg0(_this__u8e3s4.m2j_1);
|
|
831
831
|
} else {
|
|
832
832
|
if (_this__u8e3s4 instanceof DirectoryPath) {
|
|
833
|
-
tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.
|
|
833
|
+
tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.n2j_1);
|
|
834
834
|
} else {
|
|
835
835
|
if (_this__u8e3s4 instanceof FilePath) {
|
|
836
|
-
tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.
|
|
836
|
+
tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.q2j_1);
|
|
837
837
|
} else {
|
|
838
838
|
noWhenBranchMatchedException();
|
|
839
839
|
}
|
|
@@ -842,7 +842,7 @@ function path(_this__u8e3s4) {
|
|
|
842
842
|
return tmp;
|
|
843
843
|
}
|
|
844
844
|
function IOError(message) {
|
|
845
|
-
this.
|
|
845
|
+
this.t2j_1 = message;
|
|
846
846
|
}
|
|
847
847
|
function WirespecFileError() {
|
|
848
848
|
SpecificFile.call(this, FileExtension_Wirespec_getInstance());
|
|
@@ -878,7 +878,7 @@ function getFullPath(input, createIfNotExists_0) {
|
|
|
878
878
|
tmp_0 = new ClassPath(_ClassPath___init__impl__obyw3o(substringAfter(input, 'classpath:')));
|
|
879
879
|
} else {
|
|
880
880
|
var path = createIfNotExists(Path(input), createIfNotExists_0);
|
|
881
|
-
var tmp0_elvis_lhs = get_SystemFileSystem().
|
|
881
|
+
var tmp0_elvis_lhs = get_SystemFileSystem().a2i(path);
|
|
882
882
|
var tmp_1;
|
|
883
883
|
if (tmp0_elvis_lhs == null) {
|
|
884
884
|
raise.mk(new CannotAccessFileOrDirectory(input));
|
|
@@ -888,10 +888,10 @@ function getFullPath(input, createIfNotExists_0) {
|
|
|
888
888
|
var meta = tmp_1;
|
|
889
889
|
var pathString = path.toString();
|
|
890
890
|
var tmp_2;
|
|
891
|
-
if (meta.
|
|
891
|
+
if (meta.d2i_1) {
|
|
892
892
|
tmp_2 = new DirectoryPath(_DirectoryPath___init__impl__5bzkjd(pathString));
|
|
893
|
-
} else if (meta.
|
|
894
|
-
tmp_2 = Companion_instance_1.
|
|
893
|
+
} else if (meta.c2i_1) {
|
|
894
|
+
tmp_2 = Companion_instance_1.p2j(pathString);
|
|
895
895
|
} else {
|
|
896
896
|
raise.mk(new IsNotAFileOrDirectory(pathString));
|
|
897
897
|
}
|
|
@@ -934,7 +934,7 @@ function or(_this__u8e3s4, errorFn) {
|
|
|
934
934
|
tmp = _this__u8e3s4.ek_1;
|
|
935
935
|
} else {
|
|
936
936
|
if (_this__u8e3s4 instanceof Left) {
|
|
937
|
-
errorFn(_this__u8e3s4.yj_1.
|
|
937
|
+
errorFn(_this__u8e3s4.yj_1.t2j_1);
|
|
938
938
|
tmp = throwKotlinNothingValueException();
|
|
939
939
|
} else {
|
|
940
940
|
noWhenBranchMatchedException();
|
|
@@ -959,10 +959,10 @@ function wirespecSources(_this__u8e3s4, logger) {
|
|
|
959
959
|
// Inline function 'kotlin.collections.filter' call
|
|
960
960
|
// Inline function 'kotlin.collections.filter' call
|
|
961
961
|
// Inline function 'kotlin.let' call
|
|
962
|
-
var this_0 = Path(_DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.
|
|
962
|
+
var this_0 = Path(_DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.o2j_1));
|
|
963
963
|
// Inline function 'kotlin.contracts.contract' call
|
|
964
964
|
// Inline function 'kotlin.collections.filterTo' call
|
|
965
|
-
var this_1 = get_SystemFileSystem().
|
|
965
|
+
var this_1 = get_SystemFileSystem().b2i(this_0);
|
|
966
966
|
var destination = ArrayList_init_$Create$_0();
|
|
967
967
|
var tmp0_iterator = this_1.g();
|
|
968
968
|
while (tmp0_iterator.h()) {
|
|
@@ -986,12 +986,12 @@ function wirespecSources(_this__u8e3s4, logger) {
|
|
|
986
986
|
while (tmp0_iterator_1.h()) {
|
|
987
987
|
var item = tmp0_iterator_1.i();
|
|
988
988
|
// Inline function 'community.flock.wirespec.plugin.io.wirespecSources.<anonymous>.<anonymous>' call
|
|
989
|
-
var tmp$ret$8 = to(Companion_instance_1.
|
|
989
|
+
var tmp$ret$8 = to(Companion_instance_1.p2j(item.toString()), readString(buffered(get_SystemFileSystem().x2h(item))));
|
|
990
990
|
destination_1.e(tmp$ret$8);
|
|
991
991
|
}
|
|
992
992
|
// Inline function 'kotlin.contracts.contract' call
|
|
993
993
|
// Inline function 'community.flock.wirespec.plugin.io.wirespecSources.<anonymous>.<anonymous>' call
|
|
994
|
-
logger.u25('Found ' + destination_1.j() + ' file(s) to process in ' + _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.
|
|
994
|
+
logger.u25('Found ' + destination_1.j() + ' file(s) to process in ' + _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.o2j_1));
|
|
995
995
|
// Inline function 'kotlin.collections.forEachIndexed' call
|
|
996
996
|
var index = 0;
|
|
997
997
|
var tmp0_iterator_2 = destination_1.g();
|
|
@@ -1001,7 +1001,7 @@ function wirespecSources(_this__u8e3s4, logger) {
|
|
|
1001
1001
|
var tmp1 = index;
|
|
1002
1002
|
index = tmp1 + 1 | 0;
|
|
1003
1003
|
var prefix = checkIndexOverflow(tmp1) < (destination_1.j() - 1 | 0) ? '\u251C\u2500\u2500 ' : '\u2514\u2500\u2500 ';
|
|
1004
|
-
logger.u25(' ' + prefix + ' ' + _Name___get_value__impl__3tbxxy(item_0.ee_1.
|
|
1004
|
+
logger.u25(' ' + prefix + ' ' + _Name___get_value__impl__3tbxxy(item_0.ee_1.r2j_1) + '.' + item_0.ee_1.s2j_1.p25_1);
|
|
1005
1005
|
}
|
|
1006
1006
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1007
1007
|
var destination_2 = ArrayList_init_$Create$(collectionSizeOrDefault(destination_1, 10));
|
|
@@ -1011,7 +1011,7 @@ function wirespecSources(_this__u8e3s4, logger) {
|
|
|
1011
1011
|
// Inline function 'community.flock.wirespec.plugin.io.wirespecSources.<anonymous>.<anonymous>' call
|
|
1012
1012
|
var path = item_1.sd();
|
|
1013
1013
|
var source = item_1.td();
|
|
1014
|
-
var tmp$ret$12 = new Source(path.
|
|
1014
|
+
var tmp$ret$12 = new Source(path.r2j_1, source);
|
|
1015
1015
|
destination_2.e(tmp$ret$12);
|
|
1016
1016
|
}
|
|
1017
1017
|
var tmp0_elvis_lhs = toNonEmptySetOrNull(destination_2);
|
|
@@ -1052,7 +1052,7 @@ function read(_this__u8e3s4) {
|
|
|
1052
1052
|
// Inline function 'kotlin.contracts.contract' call
|
|
1053
1053
|
// Inline function 'community.flock.wirespec.plugin.io.read.<anonymous>' call
|
|
1054
1054
|
var it = Path(_this__u8e3s4.toString());
|
|
1055
|
-
return readString(buffered(get_SystemFileSystem().
|
|
1055
|
+
return readString(buffered(get_SystemFileSystem().x2h(it)));
|
|
1056
1056
|
}
|
|
1057
1057
|
function getOutPutPath(inputPath, output) {
|
|
1058
1058
|
// Inline function 'arrow.core.raise.either' call
|
|
@@ -1071,7 +1071,7 @@ function getOutPutPath(inputPath, output) {
|
|
|
1071
1071
|
tmp_0 = _DirectoryPath___init__impl__5bzkjd(path(inputPath) + '/out');
|
|
1072
1072
|
} else {
|
|
1073
1073
|
if (it instanceof DirectoryPath) {
|
|
1074
|
-
tmp_0 = it.
|
|
1074
|
+
tmp_0 = it.n2j_1;
|
|
1075
1075
|
} else {
|
|
1076
1076
|
var tmp_1;
|
|
1077
1077
|
if (it instanceof FilePath) {
|
|
@@ -1117,14 +1117,14 @@ function write(_this__u8e3s4, string) {
|
|
|
1117
1117
|
var this_0 = Path(_this__u8e3s4.toString());
|
|
1118
1118
|
// Inline function 'kotlin.contracts.contract' call
|
|
1119
1119
|
// Inline function 'community.flock.wirespec.plugin.io.write.<anonymous>' call
|
|
1120
|
-
var tmp0_safe_receiver = this_0.
|
|
1120
|
+
var tmp0_safe_receiver = this_0.g2i();
|
|
1121
1121
|
if (tmp0_safe_receiver == null)
|
|
1122
1122
|
null;
|
|
1123
1123
|
else
|
|
1124
1124
|
createIfNotExists(tmp0_safe_receiver);
|
|
1125
1125
|
// Inline function 'kotlin.contracts.contract' call
|
|
1126
1126
|
// Inline function 'kotlin.apply' call
|
|
1127
|
-
var this_1 = buffered_0(get_SystemFileSystem().
|
|
1127
|
+
var this_1 = buffered_0(get_SystemFileSystem().z2h(this_0));
|
|
1128
1128
|
// Inline function 'kotlin.contracts.contract' call
|
|
1129
1129
|
// Inline function 'community.flock.wirespec.plugin.io.write.<anonymous>.<anonymous>' call
|
|
1130
1130
|
writeString(this_1, string);
|
|
@@ -1136,8 +1136,8 @@ function createIfNotExists(_this__u8e3s4, create) {
|
|
|
1136
1136
|
// Inline function 'kotlin.also' call
|
|
1137
1137
|
// Inline function 'kotlin.contracts.contract' call
|
|
1138
1138
|
// Inline function 'community.flock.wirespec.plugin.io.createIfNotExists.<anonymous>' call
|
|
1139
|
-
if (create && !get_SystemFileSystem().
|
|
1140
|
-
get_SystemFileSystem().
|
|
1139
|
+
if (create && !get_SystemFileSystem().v2h(_this__u8e3s4)) {
|
|
1140
|
+
get_SystemFileSystem().w2h(_this__u8e3s4, true);
|
|
1141
1141
|
}
|
|
1142
1142
|
return _this__u8e3s4;
|
|
1143
1143
|
}
|
|
@@ -1145,8 +1145,8 @@ function isWirespecFile(path) {
|
|
|
1145
1145
|
return get_extension(path) === FileExtension_Wirespec_getInstance().p25_1;
|
|
1146
1146
|
}
|
|
1147
1147
|
function isRegularFile(path) {
|
|
1148
|
-
var tmp0_safe_receiver = get_SystemFileSystem().
|
|
1149
|
-
return (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1148
|
+
var tmp0_safe_receiver = get_SystemFileSystem().a2i(path);
|
|
1149
|
+
return (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.c2i_1) === true;
|
|
1150
1150
|
}
|
|
1151
1151
|
function get_extension(_this__u8e3s4) {
|
|
1152
1152
|
return substringAfterLast(_this__u8e3s4.s2(), _Char___init__impl__6a9atx(46), '');
|