@flock/wirespec 0.16.7 → 0.16.8
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 +1172 -1172
- package/colormath-root-colormath.mjs +425 -425
- package/kotlin-kotlin-stdlib.mjs +31 -31
- 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 +1908 -1928
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-java.mjs +697 -609
- package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-kotlin.mjs +627 -577
- package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-python.mjs +789 -739
- package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-typescript.mjs +288 -284
- package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-wirespec.mjs +258 -222
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +310 -310
- package/wirespec-src-converter-avro.mjs +372 -347
- package/wirespec-src-converter-avro.mjs.map +1 -1
- package/wirespec-src-converter-openapi.mjs +507 -499
- 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.mjs +15 -15
- package/wirespec-src-tools-generator.mjs +24 -24
|
@@ -157,7 +157,7 @@ var Language_OpenAPIV2_instance;
|
|
|
157
157
|
var Language_OpenAPIV3_instance;
|
|
158
158
|
function Companion_0() {
|
|
159
159
|
}
|
|
160
|
-
protoOf(Companion_0).
|
|
160
|
+
protoOf(Companion_0).u2i = function () {
|
|
161
161
|
// Inline function 'kotlin.collections.associateBy' call
|
|
162
162
|
var this_0 = get_entries_1();
|
|
163
163
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
@@ -265,7 +265,7 @@ function Language_OpenAPIV3_getInstance() {
|
|
|
265
265
|
function compile_0(arguments_0) {
|
|
266
266
|
var ctx = new compile$ctx$1(arguments_0);
|
|
267
267
|
// Inline function 'arrow.core.NonEmptySet.map' call
|
|
268
|
-
var this_0 = arguments_0.
|
|
268
|
+
var this_0 = arguments_0.v2i_1;
|
|
269
269
|
// Inline function 'kotlin.collections.map' call
|
|
270
270
|
var this_1 = _NonEmptySet___get_elements__impl__g09gj9(this_0);
|
|
271
271
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -274,7 +274,7 @@ function compile_0(arguments_0) {
|
|
|
274
274
|
while (tmp0_iterator.h()) {
|
|
275
275
|
var item = tmp0_iterator.i();
|
|
276
276
|
// Inline function 'community.flock.wirespec.plugin.compile.<anonymous>' call
|
|
277
|
-
var tmp$ret$0 = new ModuleContent(_Name___get_value__impl__3tbxxy(item.
|
|
277
|
+
var tmp$ret$0 = new ModuleContent(_Name___get_value__impl__3tbxxy(item.d2j_1), item.e2j_1);
|
|
278
278
|
destination.e(tmp$ret$0);
|
|
279
279
|
}
|
|
280
280
|
var tmp$ret$3 = ensureNotNull(toNonEmptyListOrNull(destination));
|
|
@@ -282,7 +282,7 @@ function compile_0(arguments_0) {
|
|
|
282
282
|
}
|
|
283
283
|
function convert(arguments_0) {
|
|
284
284
|
var tmp;
|
|
285
|
-
switch (arguments_0.
|
|
285
|
+
switch (arguments_0.f2j_1.r2_1) {
|
|
286
286
|
case 0:
|
|
287
287
|
tmp = OpenAPIV2Parser_instance;
|
|
288
288
|
break;
|
|
@@ -297,13 +297,13 @@ function convert(arguments_0) {
|
|
|
297
297
|
break;
|
|
298
298
|
}
|
|
299
299
|
var parser = tmp;
|
|
300
|
-
var options = new ParseOptions(arguments_0.
|
|
300
|
+
var options = new ParseOptions(arguments_0.n2j_1);
|
|
301
301
|
// Inline function 'arrow.core.Either.map' call
|
|
302
302
|
// Inline function 'kotlin.let' call
|
|
303
303
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
304
304
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
305
305
|
// Inline function 'arrow.core.NonEmptySet.map' call
|
|
306
|
-
var this_0 = arguments_0.
|
|
306
|
+
var this_0 = arguments_0.g2j_1;
|
|
307
307
|
// Inline function 'kotlin.collections.map' call
|
|
308
308
|
var this_1 = _NonEmptySet___get_elements__impl__g09gj9(this_0);
|
|
309
309
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -312,13 +312,13 @@ function convert(arguments_0) {
|
|
|
312
312
|
while (tmp0_iterator.h()) {
|
|
313
313
|
var item = tmp0_iterator.i();
|
|
314
314
|
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>' call
|
|
315
|
-
var tmp$ret$0 = new ModuleContent(_Name___get_value__impl__3tbxxy(item.
|
|
315
|
+
var tmp$ret$0 = new ModuleContent(_Name___get_value__impl__3tbxxy(item.d2j_1), item.e2j_1);
|
|
316
316
|
destination.e(tmp$ret$0);
|
|
317
317
|
}
|
|
318
318
|
var this_2 = ensureNotNull(toNonEmptyListOrNull(destination));
|
|
319
319
|
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>' call
|
|
320
320
|
var moduleContent = this_2.jk_1;
|
|
321
|
-
var tmp_0 = parser.
|
|
321
|
+
var tmp_0 = parser.l2e(moduleContent, arguments_0.n2j_1);
|
|
322
322
|
// Inline function 'kotlin.collections.map' call
|
|
323
323
|
var this_3 = this_2.kk_1;
|
|
324
324
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -327,13 +327,13 @@ function convert(arguments_0) {
|
|
|
327
327
|
while (tmp0_iterator_0.h()) {
|
|
328
328
|
var item_0 = tmp0_iterator_0.i();
|
|
329
329
|
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>' call
|
|
330
|
-
var tmp$ret$5 = parser.
|
|
330
|
+
var tmp$ret$5 = parser.l2e(item_0, arguments_0.n2j_1);
|
|
331
331
|
destination_0.e(tmp$ret$5);
|
|
332
332
|
}
|
|
333
333
|
var this_4 = new NonEmptyList(tmp_0, destination_0);
|
|
334
334
|
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>' call
|
|
335
335
|
var it = this_4.jk_1;
|
|
336
|
-
var tmp_1 = Validator_instance.
|
|
336
|
+
var tmp_1 = Validator_instance.j29(options, it);
|
|
337
337
|
// Inline function 'kotlin.collections.map' call
|
|
338
338
|
var this_5 = this_4.kk_1;
|
|
339
339
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -342,7 +342,7 @@ function convert(arguments_0) {
|
|
|
342
342
|
while (tmp0_iterator_1.h()) {
|
|
343
343
|
var item_1 = tmp0_iterator_1.i();
|
|
344
344
|
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>' call
|
|
345
|
-
var tmp$ret$10 = Validator_instance.
|
|
345
|
+
var tmp$ret$10 = Validator_instance.j29(options, item_1);
|
|
346
346
|
destination_1.e(tmp$ret$10);
|
|
347
347
|
}
|
|
348
348
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -394,7 +394,7 @@ function convert(arguments_0) {
|
|
|
394
394
|
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>.<anonymous>' call
|
|
395
395
|
var ast = this_7.jk_1;
|
|
396
396
|
// Inline function 'arrow.core.NonEmptySet.flatMap' call
|
|
397
|
-
var this_8 = arguments_0.
|
|
397
|
+
var this_8 = arguments_0.h2j_1;
|
|
398
398
|
// Inline function 'kotlin.collections.flatMap' call
|
|
399
399
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
400
400
|
var this_9 = _NonEmptySet___get_elements__impl__g09gj9(this_8);
|
|
@@ -403,7 +403,7 @@ function convert(arguments_0) {
|
|
|
403
403
|
while (tmp0_iterator_2.h()) {
|
|
404
404
|
var element = tmp0_iterator_2.i();
|
|
405
405
|
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>.<anonymous>.<anonymous>' call
|
|
406
|
-
var list = element.d23(ast, arguments_0.
|
|
406
|
+
var list = element.d23(ast, arguments_0.l2j_1);
|
|
407
407
|
addAll(destination_2, list);
|
|
408
408
|
}
|
|
409
409
|
var tmp_5 = ensureNotNull(toNonEmptyListOrNull(destination_2)).hk();
|
|
@@ -416,7 +416,7 @@ function convert(arguments_0) {
|
|
|
416
416
|
var element_0 = tmp0_iterator_3.i();
|
|
417
417
|
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>.<anonymous>' call
|
|
418
418
|
// Inline function 'arrow.core.NonEmptySet.flatMap' call
|
|
419
|
-
var this_11 = arguments_0.
|
|
419
|
+
var this_11 = arguments_0.h2j_1;
|
|
420
420
|
// Inline function 'kotlin.collections.flatMap' call
|
|
421
421
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
422
422
|
var this_12 = _NonEmptySet___get_elements__impl__g09gj9(this_11);
|
|
@@ -425,7 +425,7 @@ function convert(arguments_0) {
|
|
|
425
425
|
while (tmp0_iterator_4.h()) {
|
|
426
426
|
var element_1 = tmp0_iterator_4.i();
|
|
427
427
|
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>.<anonymous>.<anonymous>' call
|
|
428
|
-
var list_0 = element_1.d23(element_0, arguments_0.
|
|
428
|
+
var list_0 = element_1.d23(element_0, arguments_0.l2j_1);
|
|
429
429
|
addAll(destination_4, list_0);
|
|
430
430
|
}
|
|
431
431
|
var list_1 = ensureNotNull(toNonEmptyListOrNull(destination_4));
|
|
@@ -499,8 +499,8 @@ function fold(_this__u8e3s4, arguments_0) {
|
|
|
499
499
|
}
|
|
500
500
|
}
|
|
501
501
|
var this_3 = tmp_1;
|
|
502
|
-
var ifLeft = arguments_0.
|
|
503
|
-
var ifRight = arguments_0.
|
|
502
|
+
var ifLeft = arguments_0.o2j();
|
|
503
|
+
var ifRight = arguments_0.p2j();
|
|
504
504
|
// Inline function 'kotlin.contracts.contract' call
|
|
505
505
|
var tmp_2;
|
|
506
506
|
if (this_3 instanceof Right) {
|
|
@@ -515,43 +515,43 @@ function fold(_this__u8e3s4, arguments_0) {
|
|
|
515
515
|
return tmp_2;
|
|
516
516
|
}
|
|
517
517
|
function compile$ctx$1($arguments) {
|
|
518
|
-
this.
|
|
519
|
-
this.
|
|
518
|
+
this.q2j_1 = $arguments.a2j_1;
|
|
519
|
+
this.r2j_1 = $arguments.w2i_1;
|
|
520
520
|
}
|
|
521
521
|
protoOf(compile$ctx$1).q22 = function () {
|
|
522
|
-
return this.
|
|
522
|
+
return this.q2j_1;
|
|
523
523
|
};
|
|
524
524
|
protoOf(compile$ctx$1).c23 = function () {
|
|
525
|
-
return this.
|
|
525
|
+
return this.r2j_1;
|
|
526
526
|
};
|
|
527
527
|
function CompilerArguments(input, emitters, writer, error, packageName, logger, shared, strict) {
|
|
528
|
-
this.
|
|
529
|
-
this.
|
|
530
|
-
this.
|
|
531
|
-
this.
|
|
532
|
-
this.
|
|
533
|
-
this.
|
|
534
|
-
this.
|
|
535
|
-
this.
|
|
536
|
-
}
|
|
537
|
-
protoOf(CompilerArguments).
|
|
538
|
-
return this.
|
|
528
|
+
this.v2i_1 = input;
|
|
529
|
+
this.w2i_1 = emitters;
|
|
530
|
+
this.x2i_1 = writer;
|
|
531
|
+
this.y2i_1 = error;
|
|
532
|
+
this.z2i_1 = packageName;
|
|
533
|
+
this.a2j_1 = logger;
|
|
534
|
+
this.b2j_1 = shared;
|
|
535
|
+
this.c2j_1 = strict;
|
|
536
|
+
}
|
|
537
|
+
protoOf(CompilerArguments).p2j = function () {
|
|
538
|
+
return this.x2i_1;
|
|
539
539
|
};
|
|
540
|
-
protoOf(CompilerArguments).
|
|
541
|
-
return this.
|
|
540
|
+
protoOf(CompilerArguments).o2j = function () {
|
|
541
|
+
return this.y2i_1;
|
|
542
542
|
};
|
|
543
543
|
protoOf(CompilerArguments).toString = function () {
|
|
544
|
-
return 'CompilerArguments(input=' + NonEmptySet__toString_impl_yfcj6n(this.
|
|
544
|
+
return 'CompilerArguments(input=' + NonEmptySet__toString_impl_yfcj6n(this.v2i_1) + ', emitters=' + NonEmptySet__toString_impl_yfcj6n(this.w2i_1) + ', writer=' + toString(this.x2i_1) + ', error=' + toString(this.y2i_1) + ', packageName=' + this.z2i_1.toString() + ', logger=' + toString(this.a2j_1) + ', shared=' + this.b2j_1 + ', strict=' + this.c2j_1 + ')';
|
|
545
545
|
};
|
|
546
546
|
protoOf(CompilerArguments).hashCode = function () {
|
|
547
|
-
var result = NonEmptySet__hashCode_impl_co6mds(this.
|
|
548
|
-
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.
|
|
549
|
-
result = imul(result, 31) + hashCode(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) + getBooleanHashCode(this.
|
|
554
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
547
|
+
var result = NonEmptySet__hashCode_impl_co6mds(this.v2i_1);
|
|
548
|
+
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.w2i_1) | 0;
|
|
549
|
+
result = imul(result, 31) + hashCode(this.x2i_1) | 0;
|
|
550
|
+
result = imul(result, 31) + hashCode(this.y2i_1) | 0;
|
|
551
|
+
result = imul(result, 31) + hashCode(this.z2i_1) | 0;
|
|
552
|
+
result = imul(result, 31) + hashCode(this.a2j_1) | 0;
|
|
553
|
+
result = imul(result, 31) + getBooleanHashCode(this.b2j_1) | 0;
|
|
554
|
+
result = imul(result, 31) + getBooleanHashCode(this.c2j_1) | 0;
|
|
555
555
|
return result;
|
|
556
556
|
};
|
|
557
557
|
protoOf(CompilerArguments).equals = function (other) {
|
|
@@ -560,54 +560,54 @@ protoOf(CompilerArguments).equals = function (other) {
|
|
|
560
560
|
if (!(other instanceof CompilerArguments))
|
|
561
561
|
return false;
|
|
562
562
|
var tmp0_other_with_cast = other instanceof CompilerArguments ? other : THROW_CCE();
|
|
563
|
-
if (!equals(new NonEmptySet(this.
|
|
563
|
+
if (!equals(new NonEmptySet(this.v2i_1), new NonEmptySet(tmp0_other_with_cast.v2i_1)))
|
|
564
564
|
return false;
|
|
565
|
-
if (!equals(new NonEmptySet(this.
|
|
565
|
+
if (!equals(new NonEmptySet(this.w2i_1), new NonEmptySet(tmp0_other_with_cast.w2i_1)))
|
|
566
566
|
return false;
|
|
567
|
-
if (!equals(this.
|
|
567
|
+
if (!equals(this.x2i_1, tmp0_other_with_cast.x2i_1))
|
|
568
568
|
return false;
|
|
569
|
-
if (!equals(this.
|
|
569
|
+
if (!equals(this.y2i_1, tmp0_other_with_cast.y2i_1))
|
|
570
570
|
return false;
|
|
571
|
-
if (!equals(this.
|
|
571
|
+
if (!equals(this.z2i_1, tmp0_other_with_cast.z2i_1))
|
|
572
572
|
return false;
|
|
573
|
-
if (!equals(this.
|
|
573
|
+
if (!equals(this.a2j_1, tmp0_other_with_cast.a2j_1))
|
|
574
574
|
return false;
|
|
575
|
-
if (!(this.
|
|
575
|
+
if (!(this.b2j_1 === tmp0_other_with_cast.b2j_1))
|
|
576
576
|
return false;
|
|
577
|
-
if (!(this.
|
|
577
|
+
if (!(this.c2j_1 === tmp0_other_with_cast.c2j_1))
|
|
578
578
|
return false;
|
|
579
579
|
return true;
|
|
580
580
|
};
|
|
581
581
|
function ConverterArguments(format, input, emitters, writer, error, packageName, logger, shared, strict) {
|
|
582
|
-
this.
|
|
583
|
-
this.
|
|
584
|
-
this.
|
|
585
|
-
this.
|
|
586
|
-
this.
|
|
587
|
-
this.
|
|
588
|
-
this.
|
|
589
|
-
this.
|
|
590
|
-
this.
|
|
591
|
-
}
|
|
592
|
-
protoOf(ConverterArguments).
|
|
593
|
-
return this.
|
|
582
|
+
this.f2j_1 = format;
|
|
583
|
+
this.g2j_1 = input;
|
|
584
|
+
this.h2j_1 = emitters;
|
|
585
|
+
this.i2j_1 = writer;
|
|
586
|
+
this.j2j_1 = error;
|
|
587
|
+
this.k2j_1 = packageName;
|
|
588
|
+
this.l2j_1 = logger;
|
|
589
|
+
this.m2j_1 = shared;
|
|
590
|
+
this.n2j_1 = strict;
|
|
591
|
+
}
|
|
592
|
+
protoOf(ConverterArguments).p2j = function () {
|
|
593
|
+
return this.i2j_1;
|
|
594
594
|
};
|
|
595
|
-
protoOf(ConverterArguments).
|
|
596
|
-
return this.
|
|
595
|
+
protoOf(ConverterArguments).o2j = function () {
|
|
596
|
+
return this.j2j_1;
|
|
597
597
|
};
|
|
598
598
|
protoOf(ConverterArguments).toString = function () {
|
|
599
|
-
return 'ConverterArguments(format=' + this.
|
|
599
|
+
return 'ConverterArguments(format=' + this.f2j_1.toString() + ', input=' + NonEmptySet__toString_impl_yfcj6n(this.g2j_1) + ', emitters=' + NonEmptySet__toString_impl_yfcj6n(this.h2j_1) + ', writer=' + toString(this.i2j_1) + ', error=' + toString(this.j2j_1) + ', packageName=' + this.k2j_1.toString() + ', logger=' + toString(this.l2j_1) + ', shared=' + this.m2j_1 + ', strict=' + this.n2j_1 + ')';
|
|
600
600
|
};
|
|
601
601
|
protoOf(ConverterArguments).hashCode = function () {
|
|
602
|
-
var result = this.
|
|
603
|
-
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.
|
|
604
|
-
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.
|
|
605
|
-
result = imul(result, 31) + hashCode(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) + getBooleanHashCode(this.
|
|
610
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
602
|
+
var result = this.f2j_1.hashCode();
|
|
603
|
+
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.g2j_1) | 0;
|
|
604
|
+
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.h2j_1) | 0;
|
|
605
|
+
result = imul(result, 31) + hashCode(this.i2j_1) | 0;
|
|
606
|
+
result = imul(result, 31) + hashCode(this.j2j_1) | 0;
|
|
607
|
+
result = imul(result, 31) + hashCode(this.k2j_1) | 0;
|
|
608
|
+
result = imul(result, 31) + hashCode(this.l2j_1) | 0;
|
|
609
|
+
result = imul(result, 31) + getBooleanHashCode(this.m2j_1) | 0;
|
|
610
|
+
result = imul(result, 31) + getBooleanHashCode(this.n2j_1) | 0;
|
|
611
611
|
return result;
|
|
612
612
|
};
|
|
613
613
|
protoOf(ConverterArguments).equals = function (other) {
|
|
@@ -616,36 +616,36 @@ protoOf(ConverterArguments).equals = function (other) {
|
|
|
616
616
|
if (!(other instanceof ConverterArguments))
|
|
617
617
|
return false;
|
|
618
618
|
var tmp0_other_with_cast = other instanceof ConverterArguments ? other : THROW_CCE();
|
|
619
|
-
if (!this.
|
|
619
|
+
if (!this.f2j_1.equals(tmp0_other_with_cast.f2j_1))
|
|
620
620
|
return false;
|
|
621
|
-
if (!equals(new NonEmptySet(this.
|
|
621
|
+
if (!equals(new NonEmptySet(this.g2j_1), new NonEmptySet(tmp0_other_with_cast.g2j_1)))
|
|
622
622
|
return false;
|
|
623
|
-
if (!equals(new NonEmptySet(this.
|
|
623
|
+
if (!equals(new NonEmptySet(this.h2j_1), new NonEmptySet(tmp0_other_with_cast.h2j_1)))
|
|
624
624
|
return false;
|
|
625
|
-
if (!equals(this.
|
|
625
|
+
if (!equals(this.i2j_1, tmp0_other_with_cast.i2j_1))
|
|
626
626
|
return false;
|
|
627
|
-
if (!equals(this.
|
|
627
|
+
if (!equals(this.j2j_1, tmp0_other_with_cast.j2j_1))
|
|
628
628
|
return false;
|
|
629
|
-
if (!equals(this.
|
|
629
|
+
if (!equals(this.k2j_1, tmp0_other_with_cast.k2j_1))
|
|
630
630
|
return false;
|
|
631
|
-
if (!equals(this.
|
|
631
|
+
if (!equals(this.l2j_1, tmp0_other_with_cast.l2j_1))
|
|
632
632
|
return false;
|
|
633
|
-
if (!(this.
|
|
633
|
+
if (!(this.m2j_1 === tmp0_other_with_cast.m2j_1))
|
|
634
634
|
return false;
|
|
635
|
-
if (!(this.
|
|
635
|
+
if (!(this.n2j_1 === tmp0_other_with_cast.n2j_1))
|
|
636
636
|
return false;
|
|
637
637
|
return true;
|
|
638
638
|
};
|
|
639
639
|
function Source(name, content) {
|
|
640
|
-
this.
|
|
641
|
-
this.
|
|
640
|
+
this.d2j_1 = name;
|
|
641
|
+
this.e2j_1 = content;
|
|
642
642
|
}
|
|
643
643
|
protoOf(Source).toString = function () {
|
|
644
|
-
return 'Source(name=' + Name__toString_impl_61tomu(this.
|
|
644
|
+
return 'Source(name=' + Name__toString_impl_61tomu(this.d2j_1) + ', content=' + this.e2j_1 + ')';
|
|
645
645
|
};
|
|
646
646
|
protoOf(Source).hashCode = function () {
|
|
647
|
-
var result = Name__hashCode_impl_fpc861(this.
|
|
648
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
647
|
+
var result = Name__hashCode_impl_fpc861(this.d2j_1);
|
|
648
|
+
result = imul(result, 31) + getStringHashCode(this.e2j_1) | 0;
|
|
649
649
|
return result;
|
|
650
650
|
};
|
|
651
651
|
protoOf(Source).equals = function (other) {
|
|
@@ -654,9 +654,9 @@ protoOf(Source).equals = function (other) {
|
|
|
654
654
|
if (!(other instanceof Source))
|
|
655
655
|
return false;
|
|
656
656
|
var tmp0_other_with_cast = other instanceof Source ? other : THROW_CCE();
|
|
657
|
-
if (!(this.
|
|
657
|
+
if (!(this.d2j_1 === tmp0_other_with_cast.d2j_1))
|
|
658
658
|
return false;
|
|
659
|
-
if (!(this.
|
|
659
|
+
if (!(this.e2j_1 === tmp0_other_with_cast.e2j_1))
|
|
660
660
|
return false;
|
|
661
661
|
return true;
|
|
662
662
|
};
|
|
@@ -687,21 +687,21 @@ function ClassPath__hashCode_impl_cciyyd($this) {
|
|
|
687
687
|
function ClassPath__equals_impl_kffpch($this, other) {
|
|
688
688
|
if (!(other instanceof ClassPath))
|
|
689
689
|
return false;
|
|
690
|
-
if (!($this === (other instanceof ClassPath ? other.
|
|
690
|
+
if (!($this === (other instanceof ClassPath ? other.s2j_1 : THROW_CCE())))
|
|
691
691
|
return false;
|
|
692
692
|
return true;
|
|
693
693
|
}
|
|
694
694
|
function ClassPath(value) {
|
|
695
|
-
this.
|
|
695
|
+
this.s2j_1 = value;
|
|
696
696
|
}
|
|
697
697
|
protoOf(ClassPath).toString = function () {
|
|
698
|
-
return ClassPath__toString_impl_y3ovr8(this.
|
|
698
|
+
return ClassPath__toString_impl_y3ovr8(this.s2j_1);
|
|
699
699
|
};
|
|
700
700
|
protoOf(ClassPath).hashCode = function () {
|
|
701
|
-
return ClassPath__hashCode_impl_cciyyd(this.
|
|
701
|
+
return ClassPath__hashCode_impl_cciyyd(this.s2j_1);
|
|
702
702
|
};
|
|
703
703
|
protoOf(ClassPath).equals = function (other) {
|
|
704
|
-
return ClassPath__equals_impl_kffpch(this.
|
|
704
|
+
return ClassPath__equals_impl_kffpch(this.s2j_1, other);
|
|
705
705
|
};
|
|
706
706
|
function _DirectoryPath___init__impl__5bzkjd(value) {
|
|
707
707
|
return value;
|
|
@@ -718,28 +718,28 @@ function DirectoryPath__hashCode_impl_cv3skg($this) {
|
|
|
718
718
|
function DirectoryPath__equals_impl_c2rwsc($this, other) {
|
|
719
719
|
if (!(other instanceof DirectoryPath))
|
|
720
720
|
return false;
|
|
721
|
-
if (!($this === (other instanceof DirectoryPath ? other.
|
|
721
|
+
if (!($this === (other instanceof DirectoryPath ? other.t2j_1 : THROW_CCE())))
|
|
722
722
|
return false;
|
|
723
723
|
return true;
|
|
724
724
|
}
|
|
725
725
|
function DirectoryPath(value) {
|
|
726
|
-
this.
|
|
726
|
+
this.t2j_1 = value;
|
|
727
727
|
}
|
|
728
728
|
protoOf(DirectoryPath).toString = function () {
|
|
729
|
-
return DirectoryPath__toString_impl_ym9pdb(this.
|
|
729
|
+
return DirectoryPath__toString_impl_ym9pdb(this.t2j_1);
|
|
730
730
|
};
|
|
731
731
|
protoOf(DirectoryPath).hashCode = function () {
|
|
732
|
-
return DirectoryPath__hashCode_impl_cv3skg(this.
|
|
732
|
+
return DirectoryPath__hashCode_impl_cv3skg(this.t2j_1);
|
|
733
733
|
};
|
|
734
734
|
protoOf(DirectoryPath).equals = function (other) {
|
|
735
|
-
return DirectoryPath__equals_impl_c2rwsc(this.
|
|
735
|
+
return DirectoryPath__equals_impl_c2rwsc(this.t2j_1, other);
|
|
736
736
|
};
|
|
737
737
|
function Directory(path) {
|
|
738
|
-
this.
|
|
738
|
+
this.u2j_1 = path;
|
|
739
739
|
}
|
|
740
740
|
function Companion_1() {
|
|
741
741
|
}
|
|
742
|
-
protoOf(Companion_1).
|
|
742
|
+
protoOf(Companion_1).v2j = function (input) {
|
|
743
743
|
// Inline function 'kotlin.let' call
|
|
744
744
|
// Inline function 'kotlin.contracts.contract' call
|
|
745
745
|
// Inline function 'community.flock.wirespec.plugin.io.Companion.invoke.<anonymous>' call
|
|
@@ -760,7 +760,7 @@ protoOf(Companion_1).j2k = function (input) {
|
|
|
760
760
|
while (tmp0_iterator.h()) {
|
|
761
761
|
var element = tmp0_iterator.i();
|
|
762
762
|
// Inline function 'community.flock.wirespec.plugin.io.Companion.invoke.<anonymous>.<anonymous>' call
|
|
763
|
-
if (element.
|
|
763
|
+
if (element.w25_1 === ext) {
|
|
764
764
|
tmp$ret$5 = element;
|
|
765
765
|
break $l$block;
|
|
766
766
|
}
|
|
@@ -788,17 +788,17 @@ function Companion_getInstance_1() {
|
|
|
788
788
|
return Companion_instance_1;
|
|
789
789
|
}
|
|
790
790
|
function FilePath(directory, name, extension) {
|
|
791
|
-
this.
|
|
792
|
-
this.
|
|
793
|
-
this.
|
|
791
|
+
this.w2j_1 = directory;
|
|
792
|
+
this.x2j_1 = name;
|
|
793
|
+
this.y2j_1 = extension;
|
|
794
794
|
}
|
|
795
795
|
protoOf(FilePath).toString = function () {
|
|
796
|
-
return DirectoryPath__toString_impl_ym9pdb(this.
|
|
796
|
+
return DirectoryPath__toString_impl_ym9pdb(this.w2j_1) + '/' + _Name___get_value__impl__3tbxxy(this.x2j_1) + '.' + this.y2j_1.w25_1;
|
|
797
797
|
};
|
|
798
798
|
protoOf(FilePath).hashCode = function () {
|
|
799
|
-
var result = DirectoryPath__hashCode_impl_cv3skg(this.
|
|
800
|
-
result = imul(result, 31) + Name__hashCode_impl_fpc861(this.
|
|
801
|
-
result = imul(result, 31) + this.
|
|
799
|
+
var result = DirectoryPath__hashCode_impl_cv3skg(this.w2j_1);
|
|
800
|
+
result = imul(result, 31) + Name__hashCode_impl_fpc861(this.x2j_1) | 0;
|
|
801
|
+
result = imul(result, 31) + this.y2j_1.hashCode() | 0;
|
|
802
802
|
return result;
|
|
803
803
|
};
|
|
804
804
|
protoOf(FilePath).equals = function (other) {
|
|
@@ -807,24 +807,24 @@ protoOf(FilePath).equals = function (other) {
|
|
|
807
807
|
if (!(other instanceof FilePath))
|
|
808
808
|
return false;
|
|
809
809
|
var tmp0_other_with_cast = other instanceof FilePath ? other : THROW_CCE();
|
|
810
|
-
if (!(this.
|
|
810
|
+
if (!(this.w2j_1 === tmp0_other_with_cast.w2j_1))
|
|
811
811
|
return false;
|
|
812
|
-
if (!(this.
|
|
812
|
+
if (!(this.x2j_1 === tmp0_other_with_cast.x2j_1))
|
|
813
813
|
return false;
|
|
814
|
-
if (!this.
|
|
814
|
+
if (!this.y2j_1.equals(tmp0_other_with_cast.y2j_1))
|
|
815
815
|
return false;
|
|
816
816
|
return true;
|
|
817
817
|
};
|
|
818
818
|
function path(_this__u8e3s4) {
|
|
819
819
|
var tmp;
|
|
820
820
|
if (_this__u8e3s4 instanceof ClassPath) {
|
|
821
|
-
tmp = _ClassPath___get_value__impl__lfuxg0(_this__u8e3s4.
|
|
821
|
+
tmp = _ClassPath___get_value__impl__lfuxg0(_this__u8e3s4.s2j_1);
|
|
822
822
|
} else {
|
|
823
823
|
if (_this__u8e3s4 instanceof DirectoryPath) {
|
|
824
|
-
tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.
|
|
824
|
+
tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.t2j_1);
|
|
825
825
|
} else {
|
|
826
826
|
if (_this__u8e3s4 instanceof FilePath) {
|
|
827
|
-
tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.
|
|
827
|
+
tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.w2j_1);
|
|
828
828
|
} else {
|
|
829
829
|
noWhenBranchMatchedException();
|
|
830
830
|
}
|
|
@@ -833,7 +833,7 @@ function path(_this__u8e3s4) {
|
|
|
833
833
|
return tmp;
|
|
834
834
|
}
|
|
835
835
|
function IOError(message) {
|
|
836
|
-
this.
|
|
836
|
+
this.z2j_1 = message;
|
|
837
837
|
}
|
|
838
838
|
function WirespecFileError() {
|
|
839
839
|
SpecificFile.call(this, FileExtension_Wirespec_getInstance());
|
|
@@ -869,7 +869,7 @@ function getFullPath(input, createIfNotExists_0) {
|
|
|
869
869
|
tmp_0 = new ClassPath(_ClassPath___init__impl__obyw3o(substringAfter(input, 'classpath:')));
|
|
870
870
|
} else {
|
|
871
871
|
var path = createIfNotExists(Path(input), createIfNotExists_0);
|
|
872
|
-
var tmp0_elvis_lhs = get_SystemFileSystem().
|
|
872
|
+
var tmp0_elvis_lhs = get_SystemFileSystem().g2i(path);
|
|
873
873
|
var tmp_1;
|
|
874
874
|
if (tmp0_elvis_lhs == null) {
|
|
875
875
|
raise.zk(new CannotAccessFileOrDirectory(input));
|
|
@@ -879,10 +879,10 @@ function getFullPath(input, createIfNotExists_0) {
|
|
|
879
879
|
var meta = tmp_1;
|
|
880
880
|
var pathString = path.toString();
|
|
881
881
|
var tmp_2;
|
|
882
|
-
if (meta.
|
|
882
|
+
if (meta.j2i_1) {
|
|
883
883
|
tmp_2 = new DirectoryPath(_DirectoryPath___init__impl__5bzkjd(pathString));
|
|
884
|
-
} else if (meta.
|
|
885
|
-
tmp_2 = Companion_instance_1.
|
|
884
|
+
} else if (meta.i2i_1) {
|
|
885
|
+
tmp_2 = Companion_instance_1.v2j(pathString);
|
|
886
886
|
} else {
|
|
887
887
|
raise.zk(new IsNotAFileOrDirectory(pathString));
|
|
888
888
|
}
|
|
@@ -925,7 +925,7 @@ function or(_this__u8e3s4, errorFn) {
|
|
|
925
925
|
tmp = _this__u8e3s4.ek_1;
|
|
926
926
|
} else {
|
|
927
927
|
if (_this__u8e3s4 instanceof Left) {
|
|
928
|
-
errorFn(_this__u8e3s4.yj_1.
|
|
928
|
+
errorFn(_this__u8e3s4.yj_1.z2j_1);
|
|
929
929
|
tmp = throwKotlinNothingValueException();
|
|
930
930
|
} else {
|
|
931
931
|
noWhenBranchMatchedException();
|
|
@@ -949,10 +949,10 @@ function wirespecSources(_this__u8e3s4) {
|
|
|
949
949
|
// Inline function 'kotlin.collections.filter' call
|
|
950
950
|
// Inline function 'kotlin.collections.filter' call
|
|
951
951
|
// Inline function 'kotlin.let' call
|
|
952
|
-
var this_0 = Path(_DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.
|
|
952
|
+
var this_0 = Path(_DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.u2j_1));
|
|
953
953
|
// Inline function 'kotlin.contracts.contract' call
|
|
954
954
|
// Inline function 'kotlin.collections.filterTo' call
|
|
955
|
-
var this_1 = get_SystemFileSystem().
|
|
955
|
+
var this_1 = get_SystemFileSystem().h2i(this_0);
|
|
956
956
|
var destination = ArrayList_init_$Create$_0();
|
|
957
957
|
var tmp0_iterator = this_1.g();
|
|
958
958
|
while (tmp0_iterator.h()) {
|
|
@@ -976,7 +976,7 @@ function wirespecSources(_this__u8e3s4) {
|
|
|
976
976
|
while (tmp0_iterator_1.h()) {
|
|
977
977
|
var item = tmp0_iterator_1.i();
|
|
978
978
|
// Inline function 'community.flock.wirespec.plugin.io.wirespecSources.<anonymous>.<anonymous>' call
|
|
979
|
-
var tmp$ret$8 = to(Companion_instance_1.
|
|
979
|
+
var tmp$ret$8 = to(Companion_instance_1.v2j(item.toString()), readString(buffered(get_SystemFileSystem().d2i(item))));
|
|
980
980
|
destination_1.e(tmp$ret$8);
|
|
981
981
|
}
|
|
982
982
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -987,7 +987,7 @@ function wirespecSources(_this__u8e3s4) {
|
|
|
987
987
|
// Inline function 'community.flock.wirespec.plugin.io.wirespecSources.<anonymous>.<anonymous>' call
|
|
988
988
|
var path = item_0.sd();
|
|
989
989
|
var source = item_0.td();
|
|
990
|
-
var tmp$ret$11 = new Source(path.
|
|
990
|
+
var tmp$ret$11 = new Source(path.x2j_1, source);
|
|
991
991
|
destination_2.e(tmp$ret$11);
|
|
992
992
|
}
|
|
993
993
|
var tmp0_elvis_lhs = toNonEmptySetOrNull(destination_2);
|
|
@@ -1028,7 +1028,7 @@ function read(_this__u8e3s4) {
|
|
|
1028
1028
|
// Inline function 'kotlin.contracts.contract' call
|
|
1029
1029
|
// Inline function 'community.flock.wirespec.plugin.io.read.<anonymous>' call
|
|
1030
1030
|
var it = Path(_this__u8e3s4.toString());
|
|
1031
|
-
return readString(buffered(get_SystemFileSystem().
|
|
1031
|
+
return readString(buffered(get_SystemFileSystem().d2i(it)));
|
|
1032
1032
|
}
|
|
1033
1033
|
function getOutPutPath(inputPath, output) {
|
|
1034
1034
|
// Inline function 'arrow.core.raise.either' call
|
|
@@ -1047,7 +1047,7 @@ function getOutPutPath(inputPath, output) {
|
|
|
1047
1047
|
tmp_0 = _DirectoryPath___init__impl__5bzkjd(path(inputPath) + '/out');
|
|
1048
1048
|
} else {
|
|
1049
1049
|
if (it instanceof DirectoryPath) {
|
|
1050
|
-
tmp_0 = it.
|
|
1050
|
+
tmp_0 = it.t2j_1;
|
|
1051
1051
|
} else {
|
|
1052
1052
|
var tmp_1;
|
|
1053
1053
|
if (it instanceof FilePath) {
|
|
@@ -1093,14 +1093,14 @@ function write(_this__u8e3s4, string) {
|
|
|
1093
1093
|
var this_0 = Path(_this__u8e3s4.toString());
|
|
1094
1094
|
// Inline function 'kotlin.contracts.contract' call
|
|
1095
1095
|
// Inline function 'community.flock.wirespec.plugin.io.write.<anonymous>' call
|
|
1096
|
-
var tmp0_safe_receiver = this_0.
|
|
1096
|
+
var tmp0_safe_receiver = this_0.m2i();
|
|
1097
1097
|
if (tmp0_safe_receiver == null)
|
|
1098
1098
|
null;
|
|
1099
1099
|
else
|
|
1100
1100
|
createIfNotExists(tmp0_safe_receiver);
|
|
1101
1101
|
// Inline function 'kotlin.contracts.contract' call
|
|
1102
1102
|
// Inline function 'kotlin.apply' call
|
|
1103
|
-
var this_1 = buffered_0(get_SystemFileSystem().
|
|
1103
|
+
var this_1 = buffered_0(get_SystemFileSystem().f2i(this_0));
|
|
1104
1104
|
// Inline function 'kotlin.contracts.contract' call
|
|
1105
1105
|
// Inline function 'community.flock.wirespec.plugin.io.write.<anonymous>.<anonymous>' call
|
|
1106
1106
|
writeString(this_1, string);
|
|
@@ -1112,17 +1112,17 @@ function createIfNotExists(_this__u8e3s4, create) {
|
|
|
1112
1112
|
// Inline function 'kotlin.also' call
|
|
1113
1113
|
// Inline function 'kotlin.contracts.contract' call
|
|
1114
1114
|
// Inline function 'community.flock.wirespec.plugin.io.createIfNotExists.<anonymous>' call
|
|
1115
|
-
if (create && !get_SystemFileSystem().
|
|
1116
|
-
get_SystemFileSystem().
|
|
1115
|
+
if (create && !get_SystemFileSystem().b2i(_this__u8e3s4)) {
|
|
1116
|
+
get_SystemFileSystem().c2i(_this__u8e3s4, true);
|
|
1117
1117
|
}
|
|
1118
1118
|
return _this__u8e3s4;
|
|
1119
1119
|
}
|
|
1120
1120
|
function isWirespecFile(path) {
|
|
1121
|
-
return get_extension(path) === FileExtension_Wirespec_getInstance().
|
|
1121
|
+
return get_extension(path) === FileExtension_Wirespec_getInstance().w25_1;
|
|
1122
1122
|
}
|
|
1123
1123
|
function isRegularFile(path) {
|
|
1124
|
-
var tmp0_safe_receiver = get_SystemFileSystem().
|
|
1125
|
-
return (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1124
|
+
var tmp0_safe_receiver = get_SystemFileSystem().g2i(path);
|
|
1125
|
+
return (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.i2i_1) === true;
|
|
1126
1126
|
}
|
|
1127
1127
|
function get_extension(_this__u8e3s4) {
|
|
1128
1128
|
return substringAfterLast(_this__u8e3s4.s2(), _Char___init__impl__6a9atx(46), '');
|