@flock/wirespec 0.16.13 → 0.17.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.mjs +1166 -1166
- package/colormath-root-colormath.mjs +425 -425
- package/kotlin-kotlin-stdlib.mjs +6 -2
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-rgxgen.mjs +1767 -1767
- package/kotlinx-io-kotlinx-io-core.mjs +380 -380
- package/markdown.mjs +1864 -1864
- package/mordant-mordant.mjs +1638 -1638
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +3947 -3030
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-java.mjs +245 -245
- package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-kotlin.mjs +181 -181
- package/wirespec-src-compiler-emitters-python.mjs +244 -244
- package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-typescript.mjs +227 -227
- package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-wirespec.mjs +72 -72
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +411 -397
- package/wirespec-src-compiler-lib.mjs.map +1 -1
- package/wirespec-src-converter-avro.mjs +295 -290
- package/wirespec-src-converter-avro.mjs.map +1 -1
- package/wirespec-src-converter-openapi.mjs +525 -497
- package/wirespec-src-converter-openapi.mjs.map +1 -1
- package/wirespec-src-plugin-arguments.mjs +136 -136
- package/wirespec-src-plugin-cli.mjs +75 -75
- package/wirespec-src-plugin-npm.d.ts +1 -1
- package/wirespec-src-plugin-npm.mjs +314 -195
- package/wirespec-src-plugin-npm.mjs.map +1 -1
- package/wirespec-src-tools-generator.mjs +24 -24
|
@@ -158,7 +158,7 @@ var Language_OpenAPIV2_instance;
|
|
|
158
158
|
var Language_OpenAPIV3_instance;
|
|
159
159
|
function Companion_0() {
|
|
160
160
|
}
|
|
161
|
-
protoOf(Companion_0).
|
|
161
|
+
protoOf(Companion_0).p2j = function () {
|
|
162
162
|
// Inline function 'kotlin.collections.associateBy' call
|
|
163
163
|
var this_0 = get_entries_1();
|
|
164
164
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
@@ -266,7 +266,7 @@ function Language_OpenAPIV3_getInstance() {
|
|
|
266
266
|
function compile_0(arguments_0) {
|
|
267
267
|
var ctx = new compile$ctx$1(arguments_0);
|
|
268
268
|
// Inline function 'arrow.core.NonEmptySet.map' call
|
|
269
|
-
var this_0 = arguments_0.
|
|
269
|
+
var this_0 = arguments_0.q2j_1;
|
|
270
270
|
// Inline function 'kotlin.collections.map' call
|
|
271
271
|
var this_1 = _NonEmptySet___get_elements__impl__g09gj9(this_0);
|
|
272
272
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -275,7 +275,7 @@ function compile_0(arguments_0) {
|
|
|
275
275
|
while (tmp0_iterator.h()) {
|
|
276
276
|
var item = tmp0_iterator.i();
|
|
277
277
|
// Inline function 'community.flock.wirespec.plugin.compile.<anonymous>' call
|
|
278
|
-
var tmp$ret$0 = new ModuleContent(_FileUri___init__impl__ujwvc9(_Name___get_value__impl__3tbxxy(item.
|
|
278
|
+
var tmp$ret$0 = new ModuleContent(_FileUri___init__impl__ujwvc9(_Name___get_value__impl__3tbxxy(item.y2j_1)), item.z2j_1);
|
|
279
279
|
destination.e(tmp$ret$0);
|
|
280
280
|
}
|
|
281
281
|
var tmp$ret$3 = ensureNotNull(toNonEmptyListOrNull(destination));
|
|
@@ -283,7 +283,7 @@ function compile_0(arguments_0) {
|
|
|
283
283
|
}
|
|
284
284
|
function convert(arguments_0) {
|
|
285
285
|
var tmp;
|
|
286
|
-
switch (arguments_0.
|
|
286
|
+
switch (arguments_0.a2k_1.r2_1) {
|
|
287
287
|
case 0:
|
|
288
288
|
tmp = OpenAPIV2Parser_instance;
|
|
289
289
|
break;
|
|
@@ -298,13 +298,13 @@ function convert(arguments_0) {
|
|
|
298
298
|
break;
|
|
299
299
|
}
|
|
300
300
|
var parser = tmp;
|
|
301
|
-
var options = new ParseOptions(arguments_0.
|
|
301
|
+
var options = new ParseOptions(arguments_0.i2k_1);
|
|
302
302
|
// Inline function 'arrow.core.Either.map' call
|
|
303
303
|
// Inline function 'kotlin.let' call
|
|
304
304
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
305
305
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
306
306
|
// Inline function 'arrow.core.NonEmptySet.map' call
|
|
307
|
-
var this_0 = arguments_0.
|
|
307
|
+
var this_0 = arguments_0.b2k_1;
|
|
308
308
|
// Inline function 'kotlin.collections.map' call
|
|
309
309
|
var this_1 = _NonEmptySet___get_elements__impl__g09gj9(this_0);
|
|
310
310
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -313,13 +313,13 @@ function convert(arguments_0) {
|
|
|
313
313
|
while (tmp0_iterator.h()) {
|
|
314
314
|
var item = tmp0_iterator.i();
|
|
315
315
|
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>' call
|
|
316
|
-
var tmp$ret$0 = new ModuleContent(_FileUri___init__impl__ujwvc9(_Name___get_value__impl__3tbxxy(item.
|
|
316
|
+
var tmp$ret$0 = new ModuleContent(_FileUri___init__impl__ujwvc9(_Name___get_value__impl__3tbxxy(item.y2j_1)), item.z2j_1);
|
|
317
317
|
destination.e(tmp$ret$0);
|
|
318
318
|
}
|
|
319
319
|
var this_2 = ensureNotNull(toNonEmptyListOrNull(destination));
|
|
320
320
|
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>' call
|
|
321
321
|
var moduleContent = this_2.pk_1;
|
|
322
|
-
var tmp_0 = parser.
|
|
322
|
+
var tmp_0 = parser.g2f(moduleContent, arguments_0.i2k_1);
|
|
323
323
|
// Inline function 'kotlin.collections.map' call
|
|
324
324
|
var this_3 = this_2.qk_1;
|
|
325
325
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -328,13 +328,13 @@ function convert(arguments_0) {
|
|
|
328
328
|
while (tmp0_iterator_0.h()) {
|
|
329
329
|
var item_0 = tmp0_iterator_0.i();
|
|
330
330
|
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>' call
|
|
331
|
-
var tmp$ret$5 = parser.
|
|
331
|
+
var tmp$ret$5 = parser.g2f(item_0, arguments_0.i2k_1);
|
|
332
332
|
destination_0.e(tmp$ret$5);
|
|
333
333
|
}
|
|
334
334
|
var this_4 = new NonEmptyList(tmp_0, destination_0);
|
|
335
335
|
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>' call
|
|
336
336
|
var it = this_4.pk_1;
|
|
337
|
-
var tmp_1 = Validator_instance.
|
|
337
|
+
var tmp_1 = Validator_instance.d2a(options, it);
|
|
338
338
|
// Inline function 'kotlin.collections.map' call
|
|
339
339
|
var this_5 = this_4.qk_1;
|
|
340
340
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -343,7 +343,7 @@ function convert(arguments_0) {
|
|
|
343
343
|
while (tmp0_iterator_1.h()) {
|
|
344
344
|
var item_1 = tmp0_iterator_1.i();
|
|
345
345
|
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>' call
|
|
346
|
-
var tmp$ret$10 = Validator_instance.
|
|
346
|
+
var tmp$ret$10 = Validator_instance.d2a(options, item_1);
|
|
347
347
|
destination_1.e(tmp$ret$10);
|
|
348
348
|
}
|
|
349
349
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -395,7 +395,7 @@ function convert(arguments_0) {
|
|
|
395
395
|
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>.<anonymous>' call
|
|
396
396
|
var ast = this_7.pk_1;
|
|
397
397
|
// Inline function 'arrow.core.NonEmptySet.flatMap' call
|
|
398
|
-
var this_8 = arguments_0.
|
|
398
|
+
var this_8 = arguments_0.c2k_1;
|
|
399
399
|
// Inline function 'kotlin.collections.flatMap' call
|
|
400
400
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
401
401
|
var this_9 = _NonEmptySet___get_elements__impl__g09gj9(this_8);
|
|
@@ -404,7 +404,7 @@ function convert(arguments_0) {
|
|
|
404
404
|
while (tmp0_iterator_2.h()) {
|
|
405
405
|
var element = tmp0_iterator_2.i();
|
|
406
406
|
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>.<anonymous>.<anonymous>' call
|
|
407
|
-
var list = element.g23(ast, arguments_0.
|
|
407
|
+
var list = element.g23(ast, arguments_0.g2k_1);
|
|
408
408
|
addAll(destination_2, list);
|
|
409
409
|
}
|
|
410
410
|
var tmp_5 = ensureNotNull(toNonEmptyListOrNull(destination_2)).nk();
|
|
@@ -417,7 +417,7 @@ function convert(arguments_0) {
|
|
|
417
417
|
var element_0 = tmp0_iterator_3.i();
|
|
418
418
|
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>.<anonymous>' call
|
|
419
419
|
// Inline function 'arrow.core.NonEmptySet.flatMap' call
|
|
420
|
-
var this_11 = arguments_0.
|
|
420
|
+
var this_11 = arguments_0.c2k_1;
|
|
421
421
|
// Inline function 'kotlin.collections.flatMap' call
|
|
422
422
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
423
423
|
var this_12 = _NonEmptySet___get_elements__impl__g09gj9(this_11);
|
|
@@ -426,7 +426,7 @@ function convert(arguments_0) {
|
|
|
426
426
|
while (tmp0_iterator_4.h()) {
|
|
427
427
|
var element_1 = tmp0_iterator_4.i();
|
|
428
428
|
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>.<anonymous>.<anonymous>' call
|
|
429
|
-
var list_0 = element_1.g23(element_0, arguments_0.
|
|
429
|
+
var list_0 = element_1.g23(element_0, arguments_0.g2k_1);
|
|
430
430
|
addAll(destination_4, list_0);
|
|
431
431
|
}
|
|
432
432
|
var list_1 = ensureNotNull(toNonEmptyListOrNull(destination_4));
|
|
@@ -500,8 +500,8 @@ function fold(_this__u8e3s4, arguments_0) {
|
|
|
500
500
|
}
|
|
501
501
|
}
|
|
502
502
|
var this_3 = tmp_1;
|
|
503
|
-
var ifLeft = arguments_0.
|
|
504
|
-
var ifRight = arguments_0.
|
|
503
|
+
var ifLeft = arguments_0.j2k();
|
|
504
|
+
var ifRight = arguments_0.k2k();
|
|
505
505
|
// Inline function 'kotlin.contracts.contract' call
|
|
506
506
|
var tmp_2;
|
|
507
507
|
if (this_3 instanceof Right) {
|
|
@@ -516,43 +516,43 @@ function fold(_this__u8e3s4, arguments_0) {
|
|
|
516
516
|
return tmp_2;
|
|
517
517
|
}
|
|
518
518
|
function compile$ctx$1($arguments) {
|
|
519
|
-
this.
|
|
520
|
-
this.
|
|
519
|
+
this.l2k_1 = $arguments.v2j_1;
|
|
520
|
+
this.m2k_1 = $arguments.r2j_1;
|
|
521
521
|
}
|
|
522
522
|
protoOf(compile$ctx$1).t22 = function () {
|
|
523
|
-
return this.
|
|
523
|
+
return this.l2k_1;
|
|
524
524
|
};
|
|
525
525
|
protoOf(compile$ctx$1).f23 = function () {
|
|
526
|
-
return this.
|
|
526
|
+
return this.m2k_1;
|
|
527
527
|
};
|
|
528
528
|
function CompilerArguments(input, emitters, writer, error, packageName, logger, shared, strict) {
|
|
529
|
-
this.
|
|
530
|
-
this.
|
|
531
|
-
this.
|
|
532
|
-
this.
|
|
533
|
-
this.
|
|
534
|
-
this.
|
|
535
|
-
this.
|
|
536
|
-
this.
|
|
537
|
-
}
|
|
538
|
-
protoOf(CompilerArguments).
|
|
539
|
-
return this.
|
|
529
|
+
this.q2j_1 = input;
|
|
530
|
+
this.r2j_1 = emitters;
|
|
531
|
+
this.s2j_1 = writer;
|
|
532
|
+
this.t2j_1 = error;
|
|
533
|
+
this.u2j_1 = packageName;
|
|
534
|
+
this.v2j_1 = logger;
|
|
535
|
+
this.w2j_1 = shared;
|
|
536
|
+
this.x2j_1 = strict;
|
|
537
|
+
}
|
|
538
|
+
protoOf(CompilerArguments).k2k = function () {
|
|
539
|
+
return this.s2j_1;
|
|
540
540
|
};
|
|
541
|
-
protoOf(CompilerArguments).
|
|
542
|
-
return this.
|
|
541
|
+
protoOf(CompilerArguments).j2k = function () {
|
|
542
|
+
return this.t2j_1;
|
|
543
543
|
};
|
|
544
544
|
protoOf(CompilerArguments).toString = function () {
|
|
545
|
-
return 'CompilerArguments(input=' + NonEmptySet__toString_impl_yfcj6n(this.
|
|
545
|
+
return 'CompilerArguments(input=' + NonEmptySet__toString_impl_yfcj6n(this.q2j_1) + ', emitters=' + NonEmptySet__toString_impl_yfcj6n(this.r2j_1) + ', writer=' + toString(this.s2j_1) + ', error=' + toString(this.t2j_1) + ', packageName=' + this.u2j_1.toString() + ', logger=' + toString(this.v2j_1) + ', shared=' + this.w2j_1 + ', strict=' + this.x2j_1 + ')';
|
|
546
546
|
};
|
|
547
547
|
protoOf(CompilerArguments).hashCode = function () {
|
|
548
|
-
var result = NonEmptySet__hashCode_impl_co6mds(this.
|
|
549
|
-
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.
|
|
550
|
-
result = imul(result, 31) + hashCode(this.
|
|
551
|
-
result = imul(result, 31) + hashCode(this.
|
|
552
|
-
result = imul(result, 31) + hashCode(this.
|
|
553
|
-
result = imul(result, 31) + hashCode(this.
|
|
554
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
555
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
548
|
+
var result = NonEmptySet__hashCode_impl_co6mds(this.q2j_1);
|
|
549
|
+
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.r2j_1) | 0;
|
|
550
|
+
result = imul(result, 31) + hashCode(this.s2j_1) | 0;
|
|
551
|
+
result = imul(result, 31) + hashCode(this.t2j_1) | 0;
|
|
552
|
+
result = imul(result, 31) + hashCode(this.u2j_1) | 0;
|
|
553
|
+
result = imul(result, 31) + hashCode(this.v2j_1) | 0;
|
|
554
|
+
result = imul(result, 31) + getBooleanHashCode(this.w2j_1) | 0;
|
|
555
|
+
result = imul(result, 31) + getBooleanHashCode(this.x2j_1) | 0;
|
|
556
556
|
return result;
|
|
557
557
|
};
|
|
558
558
|
protoOf(CompilerArguments).equals = function (other) {
|
|
@@ -561,54 +561,54 @@ protoOf(CompilerArguments).equals = function (other) {
|
|
|
561
561
|
if (!(other instanceof CompilerArguments))
|
|
562
562
|
return false;
|
|
563
563
|
var tmp0_other_with_cast = other instanceof CompilerArguments ? other : THROW_CCE();
|
|
564
|
-
if (!equals(new NonEmptySet(this.
|
|
564
|
+
if (!equals(new NonEmptySet(this.q2j_1), new NonEmptySet(tmp0_other_with_cast.q2j_1)))
|
|
565
565
|
return false;
|
|
566
|
-
if (!equals(new NonEmptySet(this.
|
|
566
|
+
if (!equals(new NonEmptySet(this.r2j_1), new NonEmptySet(tmp0_other_with_cast.r2j_1)))
|
|
567
567
|
return false;
|
|
568
|
-
if (!equals(this.
|
|
568
|
+
if (!equals(this.s2j_1, tmp0_other_with_cast.s2j_1))
|
|
569
569
|
return false;
|
|
570
|
-
if (!equals(this.
|
|
570
|
+
if (!equals(this.t2j_1, tmp0_other_with_cast.t2j_1))
|
|
571
571
|
return false;
|
|
572
|
-
if (!equals(this.
|
|
572
|
+
if (!equals(this.u2j_1, tmp0_other_with_cast.u2j_1))
|
|
573
573
|
return false;
|
|
574
|
-
if (!equals(this.
|
|
574
|
+
if (!equals(this.v2j_1, tmp0_other_with_cast.v2j_1))
|
|
575
575
|
return false;
|
|
576
|
-
if (!(this.
|
|
576
|
+
if (!(this.w2j_1 === tmp0_other_with_cast.w2j_1))
|
|
577
577
|
return false;
|
|
578
|
-
if (!(this.
|
|
578
|
+
if (!(this.x2j_1 === tmp0_other_with_cast.x2j_1))
|
|
579
579
|
return false;
|
|
580
580
|
return true;
|
|
581
581
|
};
|
|
582
582
|
function ConverterArguments(format, input, emitters, writer, error, packageName, logger, shared, strict) {
|
|
583
|
-
this.
|
|
584
|
-
this.
|
|
585
|
-
this.
|
|
586
|
-
this.
|
|
587
|
-
this.
|
|
588
|
-
this.
|
|
589
|
-
this.
|
|
590
|
-
this.
|
|
591
|
-
this.
|
|
592
|
-
}
|
|
593
|
-
protoOf(ConverterArguments).
|
|
594
|
-
return this.
|
|
583
|
+
this.a2k_1 = format;
|
|
584
|
+
this.b2k_1 = input;
|
|
585
|
+
this.c2k_1 = emitters;
|
|
586
|
+
this.d2k_1 = writer;
|
|
587
|
+
this.e2k_1 = error;
|
|
588
|
+
this.f2k_1 = packageName;
|
|
589
|
+
this.g2k_1 = logger;
|
|
590
|
+
this.h2k_1 = shared;
|
|
591
|
+
this.i2k_1 = strict;
|
|
592
|
+
}
|
|
593
|
+
protoOf(ConverterArguments).k2k = function () {
|
|
594
|
+
return this.d2k_1;
|
|
595
595
|
};
|
|
596
|
-
protoOf(ConverterArguments).
|
|
597
|
-
return this.
|
|
596
|
+
protoOf(ConverterArguments).j2k = function () {
|
|
597
|
+
return this.e2k_1;
|
|
598
598
|
};
|
|
599
599
|
protoOf(ConverterArguments).toString = function () {
|
|
600
|
-
return 'ConverterArguments(format=' + this.
|
|
600
|
+
return 'ConverterArguments(format=' + this.a2k_1.toString() + ', input=' + NonEmptySet__toString_impl_yfcj6n(this.b2k_1) + ', emitters=' + NonEmptySet__toString_impl_yfcj6n(this.c2k_1) + ', writer=' + toString(this.d2k_1) + ', error=' + toString(this.e2k_1) + ', packageName=' + this.f2k_1.toString() + ', logger=' + toString(this.g2k_1) + ', shared=' + this.h2k_1 + ', strict=' + this.i2k_1 + ')';
|
|
601
601
|
};
|
|
602
602
|
protoOf(ConverterArguments).hashCode = function () {
|
|
603
|
-
var result = this.
|
|
604
|
-
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.
|
|
605
|
-
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.
|
|
606
|
-
result = imul(result, 31) + hashCode(this.
|
|
607
|
-
result = imul(result, 31) + hashCode(this.
|
|
608
|
-
result = imul(result, 31) + hashCode(this.
|
|
609
|
-
result = imul(result, 31) + hashCode(this.
|
|
610
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
611
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
603
|
+
var result = this.a2k_1.hashCode();
|
|
604
|
+
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.b2k_1) | 0;
|
|
605
|
+
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.c2k_1) | 0;
|
|
606
|
+
result = imul(result, 31) + hashCode(this.d2k_1) | 0;
|
|
607
|
+
result = imul(result, 31) + hashCode(this.e2k_1) | 0;
|
|
608
|
+
result = imul(result, 31) + hashCode(this.f2k_1) | 0;
|
|
609
|
+
result = imul(result, 31) + hashCode(this.g2k_1) | 0;
|
|
610
|
+
result = imul(result, 31) + getBooleanHashCode(this.h2k_1) | 0;
|
|
611
|
+
result = imul(result, 31) + getBooleanHashCode(this.i2k_1) | 0;
|
|
612
612
|
return result;
|
|
613
613
|
};
|
|
614
614
|
protoOf(ConverterArguments).equals = function (other) {
|
|
@@ -617,36 +617,36 @@ protoOf(ConverterArguments).equals = function (other) {
|
|
|
617
617
|
if (!(other instanceof ConverterArguments))
|
|
618
618
|
return false;
|
|
619
619
|
var tmp0_other_with_cast = other instanceof ConverterArguments ? other : THROW_CCE();
|
|
620
|
-
if (!this.
|
|
620
|
+
if (!this.a2k_1.equals(tmp0_other_with_cast.a2k_1))
|
|
621
621
|
return false;
|
|
622
|
-
if (!equals(new NonEmptySet(this.
|
|
622
|
+
if (!equals(new NonEmptySet(this.b2k_1), new NonEmptySet(tmp0_other_with_cast.b2k_1)))
|
|
623
623
|
return false;
|
|
624
|
-
if (!equals(new NonEmptySet(this.
|
|
624
|
+
if (!equals(new NonEmptySet(this.c2k_1), new NonEmptySet(tmp0_other_with_cast.c2k_1)))
|
|
625
625
|
return false;
|
|
626
|
-
if (!equals(this.
|
|
626
|
+
if (!equals(this.d2k_1, tmp0_other_with_cast.d2k_1))
|
|
627
627
|
return false;
|
|
628
|
-
if (!equals(this.
|
|
628
|
+
if (!equals(this.e2k_1, tmp0_other_with_cast.e2k_1))
|
|
629
629
|
return false;
|
|
630
|
-
if (!equals(this.
|
|
630
|
+
if (!equals(this.f2k_1, tmp0_other_with_cast.f2k_1))
|
|
631
631
|
return false;
|
|
632
|
-
if (!equals(this.
|
|
632
|
+
if (!equals(this.g2k_1, tmp0_other_with_cast.g2k_1))
|
|
633
633
|
return false;
|
|
634
|
-
if (!(this.
|
|
634
|
+
if (!(this.h2k_1 === tmp0_other_with_cast.h2k_1))
|
|
635
635
|
return false;
|
|
636
|
-
if (!(this.
|
|
636
|
+
if (!(this.i2k_1 === tmp0_other_with_cast.i2k_1))
|
|
637
637
|
return false;
|
|
638
638
|
return true;
|
|
639
639
|
};
|
|
640
640
|
function Source(name, content) {
|
|
641
|
-
this.
|
|
642
|
-
this.
|
|
641
|
+
this.y2j_1 = name;
|
|
642
|
+
this.z2j_1 = content;
|
|
643
643
|
}
|
|
644
644
|
protoOf(Source).toString = function () {
|
|
645
|
-
return 'Source(name=' + Name__toString_impl_61tomu(this.
|
|
645
|
+
return 'Source(name=' + Name__toString_impl_61tomu(this.y2j_1) + ', content=' + this.z2j_1 + ')';
|
|
646
646
|
};
|
|
647
647
|
protoOf(Source).hashCode = function () {
|
|
648
|
-
var result = Name__hashCode_impl_fpc861(this.
|
|
649
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
648
|
+
var result = Name__hashCode_impl_fpc861(this.y2j_1);
|
|
649
|
+
result = imul(result, 31) + getStringHashCode(this.z2j_1) | 0;
|
|
650
650
|
return result;
|
|
651
651
|
};
|
|
652
652
|
protoOf(Source).equals = function (other) {
|
|
@@ -655,9 +655,9 @@ protoOf(Source).equals = function (other) {
|
|
|
655
655
|
if (!(other instanceof Source))
|
|
656
656
|
return false;
|
|
657
657
|
var tmp0_other_with_cast = other instanceof Source ? other : THROW_CCE();
|
|
658
|
-
if (!(this.
|
|
658
|
+
if (!(this.y2j_1 === tmp0_other_with_cast.y2j_1))
|
|
659
659
|
return false;
|
|
660
|
-
if (!(this.
|
|
660
|
+
if (!(this.z2j_1 === tmp0_other_with_cast.z2j_1))
|
|
661
661
|
return false;
|
|
662
662
|
return true;
|
|
663
663
|
};
|
|
@@ -688,21 +688,21 @@ function ClassPath__hashCode_impl_cciyyd($this) {
|
|
|
688
688
|
function ClassPath__equals_impl_kffpch($this, other) {
|
|
689
689
|
if (!(other instanceof ClassPath))
|
|
690
690
|
return false;
|
|
691
|
-
if (!($this === (other instanceof ClassPath ? other.
|
|
691
|
+
if (!($this === (other instanceof ClassPath ? other.n2k_1 : THROW_CCE())))
|
|
692
692
|
return false;
|
|
693
693
|
return true;
|
|
694
694
|
}
|
|
695
695
|
function ClassPath(value) {
|
|
696
|
-
this.
|
|
696
|
+
this.n2k_1 = value;
|
|
697
697
|
}
|
|
698
698
|
protoOf(ClassPath).toString = function () {
|
|
699
|
-
return ClassPath__toString_impl_y3ovr8(this.
|
|
699
|
+
return ClassPath__toString_impl_y3ovr8(this.n2k_1);
|
|
700
700
|
};
|
|
701
701
|
protoOf(ClassPath).hashCode = function () {
|
|
702
|
-
return ClassPath__hashCode_impl_cciyyd(this.
|
|
702
|
+
return ClassPath__hashCode_impl_cciyyd(this.n2k_1);
|
|
703
703
|
};
|
|
704
704
|
protoOf(ClassPath).equals = function (other) {
|
|
705
|
-
return ClassPath__equals_impl_kffpch(this.
|
|
705
|
+
return ClassPath__equals_impl_kffpch(this.n2k_1, other);
|
|
706
706
|
};
|
|
707
707
|
function _DirectoryPath___init__impl__5bzkjd(value) {
|
|
708
708
|
return value;
|
|
@@ -719,28 +719,28 @@ function DirectoryPath__hashCode_impl_cv3skg($this) {
|
|
|
719
719
|
function DirectoryPath__equals_impl_c2rwsc($this, other) {
|
|
720
720
|
if (!(other instanceof DirectoryPath))
|
|
721
721
|
return false;
|
|
722
|
-
if (!($this === (other instanceof DirectoryPath ? other.
|
|
722
|
+
if (!($this === (other instanceof DirectoryPath ? other.o2k_1 : THROW_CCE())))
|
|
723
723
|
return false;
|
|
724
724
|
return true;
|
|
725
725
|
}
|
|
726
726
|
function DirectoryPath(value) {
|
|
727
|
-
this.
|
|
727
|
+
this.o2k_1 = value;
|
|
728
728
|
}
|
|
729
729
|
protoOf(DirectoryPath).toString = function () {
|
|
730
|
-
return DirectoryPath__toString_impl_ym9pdb(this.
|
|
730
|
+
return DirectoryPath__toString_impl_ym9pdb(this.o2k_1);
|
|
731
731
|
};
|
|
732
732
|
protoOf(DirectoryPath).hashCode = function () {
|
|
733
|
-
return DirectoryPath__hashCode_impl_cv3skg(this.
|
|
733
|
+
return DirectoryPath__hashCode_impl_cv3skg(this.o2k_1);
|
|
734
734
|
};
|
|
735
735
|
protoOf(DirectoryPath).equals = function (other) {
|
|
736
|
-
return DirectoryPath__equals_impl_c2rwsc(this.
|
|
736
|
+
return DirectoryPath__equals_impl_c2rwsc(this.o2k_1, other);
|
|
737
737
|
};
|
|
738
738
|
function Directory(path) {
|
|
739
|
-
this.
|
|
739
|
+
this.p2k_1 = path;
|
|
740
740
|
}
|
|
741
741
|
function Companion_1() {
|
|
742
742
|
}
|
|
743
|
-
protoOf(Companion_1).
|
|
743
|
+
protoOf(Companion_1).q2k = function (input) {
|
|
744
744
|
// Inline function 'kotlin.let' call
|
|
745
745
|
// Inline function 'kotlin.contracts.contract' call
|
|
746
746
|
// Inline function 'community.flock.wirespec.plugin.io.Companion.invoke.<anonymous>' call
|
|
@@ -758,7 +758,7 @@ protoOf(Companion_1).b2k = function (input) {
|
|
|
758
758
|
while (tmp0_iterator.h()) {
|
|
759
759
|
var element = tmp0_iterator.i();
|
|
760
760
|
// Inline function 'community.flock.wirespec.plugin.io.Companion.invoke.<anonymous>' call
|
|
761
|
-
if (element.
|
|
761
|
+
if (element.e26_1 === ext) {
|
|
762
762
|
tmp$ret$5 = element;
|
|
763
763
|
break $l$block;
|
|
764
764
|
}
|
|
@@ -784,17 +784,17 @@ function Companion_getInstance_1() {
|
|
|
784
784
|
return Companion_instance_1;
|
|
785
785
|
}
|
|
786
786
|
function FilePath(directory, name, extension) {
|
|
787
|
-
this.
|
|
788
|
-
this.
|
|
789
|
-
this.
|
|
787
|
+
this.r2k_1 = directory;
|
|
788
|
+
this.s2k_1 = name;
|
|
789
|
+
this.t2k_1 = extension;
|
|
790
790
|
}
|
|
791
791
|
protoOf(FilePath).toString = function () {
|
|
792
|
-
return DirectoryPath__toString_impl_ym9pdb(this.
|
|
792
|
+
return DirectoryPath__toString_impl_ym9pdb(this.r2k_1) + '/' + _Name___get_value__impl__3tbxxy(this.s2k_1) + '.' + this.t2k_1.e26_1;
|
|
793
793
|
};
|
|
794
794
|
protoOf(FilePath).hashCode = function () {
|
|
795
|
-
var result = DirectoryPath__hashCode_impl_cv3skg(this.
|
|
796
|
-
result = imul(result, 31) + Name__hashCode_impl_fpc861(this.
|
|
797
|
-
result = imul(result, 31) + this.
|
|
795
|
+
var result = DirectoryPath__hashCode_impl_cv3skg(this.r2k_1);
|
|
796
|
+
result = imul(result, 31) + Name__hashCode_impl_fpc861(this.s2k_1) | 0;
|
|
797
|
+
result = imul(result, 31) + this.t2k_1.hashCode() | 0;
|
|
798
798
|
return result;
|
|
799
799
|
};
|
|
800
800
|
protoOf(FilePath).equals = function (other) {
|
|
@@ -803,24 +803,24 @@ protoOf(FilePath).equals = function (other) {
|
|
|
803
803
|
if (!(other instanceof FilePath))
|
|
804
804
|
return false;
|
|
805
805
|
var tmp0_other_with_cast = other instanceof FilePath ? other : THROW_CCE();
|
|
806
|
-
if (!(this.
|
|
806
|
+
if (!(this.r2k_1 === tmp0_other_with_cast.r2k_1))
|
|
807
807
|
return false;
|
|
808
|
-
if (!(this.
|
|
808
|
+
if (!(this.s2k_1 === tmp0_other_with_cast.s2k_1))
|
|
809
809
|
return false;
|
|
810
|
-
if (!this.
|
|
810
|
+
if (!this.t2k_1.equals(tmp0_other_with_cast.t2k_1))
|
|
811
811
|
return false;
|
|
812
812
|
return true;
|
|
813
813
|
};
|
|
814
814
|
function path(_this__u8e3s4) {
|
|
815
815
|
var tmp;
|
|
816
816
|
if (_this__u8e3s4 instanceof ClassPath) {
|
|
817
|
-
tmp = _ClassPath___get_value__impl__lfuxg0(_this__u8e3s4.
|
|
817
|
+
tmp = _ClassPath___get_value__impl__lfuxg0(_this__u8e3s4.n2k_1);
|
|
818
818
|
} else {
|
|
819
819
|
if (_this__u8e3s4 instanceof DirectoryPath) {
|
|
820
|
-
tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.
|
|
820
|
+
tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.o2k_1);
|
|
821
821
|
} else {
|
|
822
822
|
if (_this__u8e3s4 instanceof FilePath) {
|
|
823
|
-
tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.
|
|
823
|
+
tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.r2k_1);
|
|
824
824
|
} else {
|
|
825
825
|
noWhenBranchMatchedException();
|
|
826
826
|
}
|
|
@@ -829,7 +829,7 @@ function path(_this__u8e3s4) {
|
|
|
829
829
|
return tmp;
|
|
830
830
|
}
|
|
831
831
|
function IOError(message) {
|
|
832
|
-
this.
|
|
832
|
+
this.u2k_1 = message;
|
|
833
833
|
}
|
|
834
834
|
function WirespecFileError() {
|
|
835
835
|
SpecificFile.call(this, FileExtension_Wirespec_getInstance());
|
|
@@ -865,7 +865,7 @@ function getFullPath(input, createIfNotExists_0) {
|
|
|
865
865
|
tmp_0 = new ClassPath(_ClassPath___init__impl__obyw3o(substringAfter(input, 'classpath:')));
|
|
866
866
|
} else {
|
|
867
867
|
var path = createIfNotExists(Path(input), createIfNotExists_0);
|
|
868
|
-
var tmp0_elvis_lhs = get_SystemFileSystem().
|
|
868
|
+
var tmp0_elvis_lhs = get_SystemFileSystem().b2j(path);
|
|
869
869
|
var tmp_1;
|
|
870
870
|
if (tmp0_elvis_lhs == null) {
|
|
871
871
|
raise.mk(new CannotAccessFileOrDirectory(input));
|
|
@@ -875,10 +875,10 @@ function getFullPath(input, createIfNotExists_0) {
|
|
|
875
875
|
var meta = tmp_1;
|
|
876
876
|
var pathString = path.toString();
|
|
877
877
|
var tmp_2;
|
|
878
|
-
if (meta.
|
|
878
|
+
if (meta.e2j_1) {
|
|
879
879
|
tmp_2 = new DirectoryPath(_DirectoryPath___init__impl__5bzkjd(pathString));
|
|
880
|
-
} else if (meta.
|
|
881
|
-
tmp_2 = Companion_instance_1.
|
|
880
|
+
} else if (meta.d2j_1) {
|
|
881
|
+
tmp_2 = Companion_instance_1.q2k(pathString);
|
|
882
882
|
} else {
|
|
883
883
|
raise.mk(new IsNotAFileOrDirectory(pathString));
|
|
884
884
|
}
|
|
@@ -921,7 +921,7 @@ function or(_this__u8e3s4, errorFn) {
|
|
|
921
921
|
tmp = _this__u8e3s4.ek_1;
|
|
922
922
|
} else {
|
|
923
923
|
if (_this__u8e3s4 instanceof Left) {
|
|
924
|
-
errorFn(_this__u8e3s4.yj_1.
|
|
924
|
+
errorFn(_this__u8e3s4.yj_1.u2k_1);
|
|
925
925
|
tmp = throwKotlinNothingValueException();
|
|
926
926
|
} else {
|
|
927
927
|
noWhenBranchMatchedException();
|
|
@@ -945,10 +945,10 @@ function wirespecSources(_this__u8e3s4) {
|
|
|
945
945
|
// Inline function 'kotlin.collections.filter' call
|
|
946
946
|
// Inline function 'kotlin.collections.filter' call
|
|
947
947
|
// Inline function 'kotlin.let' call
|
|
948
|
-
var this_0 = Path(_DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.
|
|
948
|
+
var this_0 = Path(_DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.p2k_1));
|
|
949
949
|
// Inline function 'kotlin.contracts.contract' call
|
|
950
950
|
// Inline function 'kotlin.collections.filterTo' call
|
|
951
|
-
var this_1 = get_SystemFileSystem().
|
|
951
|
+
var this_1 = get_SystemFileSystem().c2j(this_0);
|
|
952
952
|
var destination = ArrayList_init_$Create$_0();
|
|
953
953
|
var tmp0_iterator = this_1.g();
|
|
954
954
|
while (tmp0_iterator.h()) {
|
|
@@ -972,7 +972,7 @@ function wirespecSources(_this__u8e3s4) {
|
|
|
972
972
|
while (tmp0_iterator_1.h()) {
|
|
973
973
|
var item = tmp0_iterator_1.i();
|
|
974
974
|
// Inline function 'community.flock.wirespec.plugin.io.wirespecSources.<anonymous>.<anonymous>' call
|
|
975
|
-
var tmp$ret$8 = to(Companion_instance_1.
|
|
975
|
+
var tmp$ret$8 = to(Companion_instance_1.q2k(item.toString()), readString(buffered(get_SystemFileSystem().y2i(item))));
|
|
976
976
|
destination_1.e(tmp$ret$8);
|
|
977
977
|
}
|
|
978
978
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -983,7 +983,7 @@ function wirespecSources(_this__u8e3s4) {
|
|
|
983
983
|
// Inline function 'community.flock.wirespec.plugin.io.wirespecSources.<anonymous>.<anonymous>' call
|
|
984
984
|
var path = item_0.sd();
|
|
985
985
|
var source = item_0.td();
|
|
986
|
-
var tmp$ret$11 = new Source(path.
|
|
986
|
+
var tmp$ret$11 = new Source(path.s2k_1, source);
|
|
987
987
|
destination_2.e(tmp$ret$11);
|
|
988
988
|
}
|
|
989
989
|
var tmp0_elvis_lhs = toNonEmptySetOrNull(destination_2);
|
|
@@ -1024,7 +1024,7 @@ function read(_this__u8e3s4) {
|
|
|
1024
1024
|
// Inline function 'kotlin.contracts.contract' call
|
|
1025
1025
|
// Inline function 'community.flock.wirespec.plugin.io.read.<anonymous>' call
|
|
1026
1026
|
var it = Path(_this__u8e3s4.toString());
|
|
1027
|
-
return readString(buffered(get_SystemFileSystem().
|
|
1027
|
+
return readString(buffered(get_SystemFileSystem().y2i(it)));
|
|
1028
1028
|
}
|
|
1029
1029
|
function getOutPutPath(inputPath, output) {
|
|
1030
1030
|
// Inline function 'arrow.core.raise.either' call
|
|
@@ -1043,7 +1043,7 @@ function getOutPutPath(inputPath, output) {
|
|
|
1043
1043
|
tmp_0 = _DirectoryPath___init__impl__5bzkjd(path(inputPath) + '/out');
|
|
1044
1044
|
} else {
|
|
1045
1045
|
if (it instanceof DirectoryPath) {
|
|
1046
|
-
tmp_0 = it.
|
|
1046
|
+
tmp_0 = it.o2k_1;
|
|
1047
1047
|
} else {
|
|
1048
1048
|
var tmp_1;
|
|
1049
1049
|
if (it instanceof FilePath) {
|
|
@@ -1089,14 +1089,14 @@ function write(_this__u8e3s4, string) {
|
|
|
1089
1089
|
var this_0 = Path(_this__u8e3s4.toString());
|
|
1090
1090
|
// Inline function 'kotlin.contracts.contract' call
|
|
1091
1091
|
// Inline function 'community.flock.wirespec.plugin.io.write.<anonymous>' call
|
|
1092
|
-
var tmp0_safe_receiver = this_0.
|
|
1092
|
+
var tmp0_safe_receiver = this_0.h2j();
|
|
1093
1093
|
if (tmp0_safe_receiver == null)
|
|
1094
1094
|
null;
|
|
1095
1095
|
else
|
|
1096
1096
|
createIfNotExists(tmp0_safe_receiver);
|
|
1097
1097
|
// Inline function 'kotlin.contracts.contract' call
|
|
1098
1098
|
// Inline function 'kotlin.apply' call
|
|
1099
|
-
var this_1 = buffered_0(get_SystemFileSystem().
|
|
1099
|
+
var this_1 = buffered_0(get_SystemFileSystem().a2j(this_0));
|
|
1100
1100
|
// Inline function 'kotlin.contracts.contract' call
|
|
1101
1101
|
// Inline function 'community.flock.wirespec.plugin.io.write.<anonymous>.<anonymous>' call
|
|
1102
1102
|
writeString(this_1, string);
|
|
@@ -1108,17 +1108,17 @@ function createIfNotExists(_this__u8e3s4, create) {
|
|
|
1108
1108
|
// Inline function 'kotlin.also' call
|
|
1109
1109
|
// Inline function 'kotlin.contracts.contract' call
|
|
1110
1110
|
// Inline function 'community.flock.wirespec.plugin.io.createIfNotExists.<anonymous>' call
|
|
1111
|
-
if (create && !get_SystemFileSystem().
|
|
1112
|
-
get_SystemFileSystem().
|
|
1111
|
+
if (create && !get_SystemFileSystem().w2i(_this__u8e3s4)) {
|
|
1112
|
+
get_SystemFileSystem().x2i(_this__u8e3s4, true);
|
|
1113
1113
|
}
|
|
1114
1114
|
return _this__u8e3s4;
|
|
1115
1115
|
}
|
|
1116
1116
|
function isWirespecFile(path) {
|
|
1117
|
-
return get_extension(path) === FileExtension_Wirespec_getInstance().
|
|
1117
|
+
return get_extension(path) === FileExtension_Wirespec_getInstance().e26_1;
|
|
1118
1118
|
}
|
|
1119
1119
|
function isRegularFile(path) {
|
|
1120
|
-
var tmp0_safe_receiver = get_SystemFileSystem().
|
|
1121
|
-
return (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1120
|
+
var tmp0_safe_receiver = get_SystemFileSystem().b2j(path);
|
|
1121
|
+
return (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.d2j_1) === true;
|
|
1122
1122
|
}
|
|
1123
1123
|
function get_extension(_this__u8e3s4) {
|
|
1124
1124
|
return substringAfterLast(_this__u8e3s4.s2(), _Char___init__impl__6a9atx(46), '');
|