@flock/wirespec 0.16.8 → 0.16.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/arrow-arrow-core.mjs +306 -61
- package/arrow-arrow-core.mjs.map +1 -1
- package/clikt-clikt.mjs +1160 -1160
- package/colormath-root-colormath.mjs +425 -425
- package/kotlin-kotlin-stdlib.mjs +3 -3
- package/kotlin-openapi-bindings.mjs +4762 -4762
- package/kotlin-rgxgen.mjs +1769 -1769
- package/kotlinx-io-kotlinx-io-core.mjs +380 -380
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1645 -1645
- package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1307 -1307
- package/markdown.mjs +1871 -1871
- package/mordant-mordant.mjs +1637 -1637
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +1672 -1502
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-java.mjs +251 -251
- package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-kotlin.mjs +193 -193
- package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-python.mjs +187 -187
- package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-typescript.mjs +195 -195
- package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-wirespec.mjs +76 -76
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +342 -340
- package/wirespec-src-compiler-lib.mjs.map +1 -1
- package/wirespec-src-converter-avro.mjs +511 -511
- package/wirespec-src-converter-avro.mjs.map +1 -1
- package/wirespec-src-converter-openapi.mjs +578 -576
- package/wirespec-src-converter-openapi.mjs.map +1 -1
- package/wirespec-src-plugin-arguments.mjs +168 -167
- package/wirespec-src-plugin-arguments.mjs.map +1 -1
- package/wirespec-src-plugin-cli.mjs +82 -81
- package/wirespec-src-plugin-cli.mjs.map +1 -1
- package/wirespec-src-plugin-npm.mjs +30 -29
- package/wirespec-src-plugin-npm.mjs.map +1 -1
- package/wirespec-src-tools-generator.mjs +27 -27
|
@@ -61,6 +61,7 @@ import {
|
|
|
61
61
|
toNonEmptySetOrNull1tjnd9jrkd4bs as toNonEmptySetOrNull,
|
|
62
62
|
} from './arrow-arrow-core.mjs';
|
|
63
63
|
import {
|
|
64
|
+
_FileUri___init__impl__ujwvc91797d3q83xxiv as _FileUri___init__impl__ujwvc9,
|
|
64
65
|
ModuleContent750xezzquzy9 as ModuleContent,
|
|
65
66
|
compile2rgmakz9u3swp as compile,
|
|
66
67
|
ParseOptionspl50698nv4gs as ParseOptions,
|
|
@@ -157,7 +158,7 @@ var Language_OpenAPIV2_instance;
|
|
|
157
158
|
var Language_OpenAPIV3_instance;
|
|
158
159
|
function Companion_0() {
|
|
159
160
|
}
|
|
160
|
-
protoOf(Companion_0).
|
|
161
|
+
protoOf(Companion_0).a2j = function () {
|
|
161
162
|
// Inline function 'kotlin.collections.associateBy' call
|
|
162
163
|
var this_0 = get_entries_1();
|
|
163
164
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
@@ -265,7 +266,7 @@ function Language_OpenAPIV3_getInstance() {
|
|
|
265
266
|
function compile_0(arguments_0) {
|
|
266
267
|
var ctx = new compile$ctx$1(arguments_0);
|
|
267
268
|
// Inline function 'arrow.core.NonEmptySet.map' call
|
|
268
|
-
var this_0 = arguments_0.
|
|
269
|
+
var this_0 = arguments_0.b2j_1;
|
|
269
270
|
// Inline function 'kotlin.collections.map' call
|
|
270
271
|
var this_1 = _NonEmptySet___get_elements__impl__g09gj9(this_0);
|
|
271
272
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -274,7 +275,7 @@ function compile_0(arguments_0) {
|
|
|
274
275
|
while (tmp0_iterator.h()) {
|
|
275
276
|
var item = tmp0_iterator.i();
|
|
276
277
|
// Inline function 'community.flock.wirespec.plugin.compile.<anonymous>' call
|
|
277
|
-
var tmp$ret$0 = new ModuleContent(_Name___get_value__impl__3tbxxy(item.
|
|
278
|
+
var tmp$ret$0 = new ModuleContent(_FileUri___init__impl__ujwvc9(_Name___get_value__impl__3tbxxy(item.j2j_1)), item.k2j_1);
|
|
278
279
|
destination.e(tmp$ret$0);
|
|
279
280
|
}
|
|
280
281
|
var tmp$ret$3 = ensureNotNull(toNonEmptyListOrNull(destination));
|
|
@@ -282,7 +283,7 @@ function compile_0(arguments_0) {
|
|
|
282
283
|
}
|
|
283
284
|
function convert(arguments_0) {
|
|
284
285
|
var tmp;
|
|
285
|
-
switch (arguments_0.
|
|
286
|
+
switch (arguments_0.l2j_1.r2_1) {
|
|
286
287
|
case 0:
|
|
287
288
|
tmp = OpenAPIV2Parser_instance;
|
|
288
289
|
break;
|
|
@@ -297,13 +298,13 @@ function convert(arguments_0) {
|
|
|
297
298
|
break;
|
|
298
299
|
}
|
|
299
300
|
var parser = tmp;
|
|
300
|
-
var options = new ParseOptions(arguments_0.
|
|
301
|
+
var options = new ParseOptions(arguments_0.t2j_1);
|
|
301
302
|
// Inline function 'arrow.core.Either.map' call
|
|
302
303
|
// Inline function 'kotlin.let' call
|
|
303
304
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
304
305
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
305
306
|
// Inline function 'arrow.core.NonEmptySet.map' call
|
|
306
|
-
var this_0 = arguments_0.
|
|
307
|
+
var this_0 = arguments_0.m2j_1;
|
|
307
308
|
// Inline function 'kotlin.collections.map' call
|
|
308
309
|
var this_1 = _NonEmptySet___get_elements__impl__g09gj9(this_0);
|
|
309
310
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -312,37 +313,37 @@ function convert(arguments_0) {
|
|
|
312
313
|
while (tmp0_iterator.h()) {
|
|
313
314
|
var item = tmp0_iterator.i();
|
|
314
315
|
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>' call
|
|
315
|
-
var tmp$ret$0 = new ModuleContent(_Name___get_value__impl__3tbxxy(item.
|
|
316
|
+
var tmp$ret$0 = new ModuleContent(_FileUri___init__impl__ujwvc9(_Name___get_value__impl__3tbxxy(item.j2j_1)), item.k2j_1);
|
|
316
317
|
destination.e(tmp$ret$0);
|
|
317
318
|
}
|
|
318
319
|
var this_2 = ensureNotNull(toNonEmptyListOrNull(destination));
|
|
319
320
|
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>' call
|
|
320
|
-
var moduleContent = this_2.
|
|
321
|
-
var tmp_0 = parser.
|
|
321
|
+
var moduleContent = this_2.pk_1;
|
|
322
|
+
var tmp_0 = parser.r2e(moduleContent, arguments_0.t2j_1);
|
|
322
323
|
// Inline function 'kotlin.collections.map' call
|
|
323
|
-
var this_3 = this_2.
|
|
324
|
+
var this_3 = this_2.qk_1;
|
|
324
325
|
// Inline function 'kotlin.collections.mapTo' call
|
|
325
326
|
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(this_3, 10));
|
|
326
327
|
var tmp0_iterator_0 = this_3.g();
|
|
327
328
|
while (tmp0_iterator_0.h()) {
|
|
328
329
|
var item_0 = tmp0_iterator_0.i();
|
|
329
330
|
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>' call
|
|
330
|
-
var tmp$ret$5 = parser.
|
|
331
|
+
var tmp$ret$5 = parser.r2e(item_0, arguments_0.t2j_1);
|
|
331
332
|
destination_0.e(tmp$ret$5);
|
|
332
333
|
}
|
|
333
334
|
var this_4 = new NonEmptyList(tmp_0, destination_0);
|
|
334
335
|
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>' call
|
|
335
|
-
var it = this_4.
|
|
336
|
-
var tmp_1 = Validator_instance.
|
|
336
|
+
var it = this_4.pk_1;
|
|
337
|
+
var tmp_1 = Validator_instance.o29(options, it);
|
|
337
338
|
// Inline function 'kotlin.collections.map' call
|
|
338
|
-
var this_5 = this_4.
|
|
339
|
+
var this_5 = this_4.qk_1;
|
|
339
340
|
// Inline function 'kotlin.collections.mapTo' call
|
|
340
341
|
var destination_1 = ArrayList_init_$Create$(collectionSizeOrDefault(this_5, 10));
|
|
341
342
|
var tmp0_iterator_1 = this_5.g();
|
|
342
343
|
while (tmp0_iterator_1.h()) {
|
|
343
344
|
var item_1 = tmp0_iterator_1.i();
|
|
344
345
|
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>' call
|
|
345
|
-
var tmp$ret$10 = Validator_instance.
|
|
346
|
+
var tmp$ret$10 = Validator_instance.o29(options, item_1);
|
|
346
347
|
destination_1.e(tmp$ret$10);
|
|
347
348
|
}
|
|
348
349
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -358,22 +359,22 @@ function convert(arguments_0) {
|
|
|
358
359
|
try {
|
|
359
360
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
360
361
|
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>.<anonymous>' call
|
|
361
|
-
var res = raise.
|
|
362
|
-
raise.
|
|
362
|
+
var res = raise.dl(it_0);
|
|
363
|
+
raise.lk();
|
|
363
364
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
364
365
|
tmp_2 = new Right(res);
|
|
365
366
|
} catch ($p) {
|
|
366
367
|
var tmp_3;
|
|
367
368
|
if ($p instanceof RaiseCancellationException) {
|
|
368
369
|
var e = $p;
|
|
369
|
-
raise.
|
|
370
|
+
raise.lk();
|
|
370
371
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
371
372
|
var it_1 = raisedOrRethrow(e, raise);
|
|
372
373
|
tmp_3 = new Left(it_1);
|
|
373
374
|
} else {
|
|
374
375
|
if ($p instanceof Error) {
|
|
375
376
|
var e_0 = $p;
|
|
376
|
-
raise.
|
|
377
|
+
raise.lk();
|
|
377
378
|
throw nonFatalOrThrow(e_0);
|
|
378
379
|
} else {
|
|
379
380
|
throw $p;
|
|
@@ -392,9 +393,9 @@ function convert(arguments_0) {
|
|
|
392
393
|
// Inline function 'arrow.core.NonEmptyList.flatMap' call
|
|
393
394
|
var this_7 = this_6.ek_1;
|
|
394
395
|
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>.<anonymous>' call
|
|
395
|
-
var ast = this_7.
|
|
396
|
+
var ast = this_7.pk_1;
|
|
396
397
|
// Inline function 'arrow.core.NonEmptySet.flatMap' call
|
|
397
|
-
var this_8 = arguments_0.
|
|
398
|
+
var this_8 = arguments_0.n2j_1;
|
|
398
399
|
// Inline function 'kotlin.collections.flatMap' call
|
|
399
400
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
400
401
|
var this_9 = _NonEmptySet___get_elements__impl__g09gj9(this_8);
|
|
@@ -403,20 +404,20 @@ function convert(arguments_0) {
|
|
|
403
404
|
while (tmp0_iterator_2.h()) {
|
|
404
405
|
var element = tmp0_iterator_2.i();
|
|
405
406
|
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>.<anonymous>.<anonymous>' call
|
|
406
|
-
var list = element.
|
|
407
|
+
var list = element.g23(ast, arguments_0.r2j_1);
|
|
407
408
|
addAll(destination_2, list);
|
|
408
409
|
}
|
|
409
|
-
var tmp_5 = ensureNotNull(toNonEmptyListOrNull(destination_2)).
|
|
410
|
+
var tmp_5 = ensureNotNull(toNonEmptyListOrNull(destination_2)).nk();
|
|
410
411
|
// Inline function 'kotlin.collections.flatMap' call
|
|
411
412
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
412
|
-
var this_10 = this_7.
|
|
413
|
+
var this_10 = this_7.qk_1;
|
|
413
414
|
var destination_3 = ArrayList_init_$Create$_0();
|
|
414
415
|
var tmp0_iterator_3 = this_10.g();
|
|
415
416
|
while (tmp0_iterator_3.h()) {
|
|
416
417
|
var element_0 = tmp0_iterator_3.i();
|
|
417
418
|
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>.<anonymous>' call
|
|
418
419
|
// Inline function 'arrow.core.NonEmptySet.flatMap' call
|
|
419
|
-
var this_11 = arguments_0.
|
|
420
|
+
var this_11 = arguments_0.n2j_1;
|
|
420
421
|
// Inline function 'kotlin.collections.flatMap' call
|
|
421
422
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
422
423
|
var this_12 = _NonEmptySet___get_elements__impl__g09gj9(this_11);
|
|
@@ -425,13 +426,13 @@ function convert(arguments_0) {
|
|
|
425
426
|
while (tmp0_iterator_4.h()) {
|
|
426
427
|
var element_1 = tmp0_iterator_4.i();
|
|
427
428
|
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>.<anonymous>.<anonymous>' call
|
|
428
|
-
var list_0 = element_1.
|
|
429
|
+
var list_0 = element_1.g23(element_0, arguments_0.r2j_1);
|
|
429
430
|
addAll(destination_4, list_0);
|
|
430
431
|
}
|
|
431
432
|
var list_1 = ensureNotNull(toNonEmptyListOrNull(destination_4));
|
|
432
433
|
addAll(destination_3, list_1);
|
|
433
434
|
}
|
|
434
|
-
var tmp$ret$36 = tmp_5.
|
|
435
|
+
var tmp$ret$36 = tmp_5.uk(destination_3);
|
|
435
436
|
tmp_4 = new Right(tmp$ret$36);
|
|
436
437
|
} else {
|
|
437
438
|
if (this_6 instanceof Left) {
|
|
@@ -461,9 +462,9 @@ function fold(_this__u8e3s4, arguments_0) {
|
|
|
461
462
|
// Inline function 'community.flock.wirespec.plugin.fold.<anonymous>' call
|
|
462
463
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
463
464
|
var this_0 = _this__u8e3s4.yj_1;
|
|
464
|
-
var tmp_0 = this_0.
|
|
465
|
+
var tmp_0 = this_0.pk_1.r1();
|
|
465
466
|
// Inline function 'kotlin.collections.map' call
|
|
466
|
-
var this_1 = this_0.
|
|
467
|
+
var this_1 = this_0.qk_1;
|
|
467
468
|
// Inline function 'kotlin.collections.mapTo' call
|
|
468
469
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_1, 10));
|
|
469
470
|
var tmp0_iterator = this_1.g();
|
|
@@ -499,8 +500,8 @@ function fold(_this__u8e3s4, arguments_0) {
|
|
|
499
500
|
}
|
|
500
501
|
}
|
|
501
502
|
var this_3 = tmp_1;
|
|
502
|
-
var ifLeft = arguments_0.
|
|
503
|
-
var ifRight = arguments_0.
|
|
503
|
+
var ifLeft = arguments_0.u2j();
|
|
504
|
+
var ifRight = arguments_0.v2j();
|
|
504
505
|
// Inline function 'kotlin.contracts.contract' call
|
|
505
506
|
var tmp_2;
|
|
506
507
|
if (this_3 instanceof Right) {
|
|
@@ -515,43 +516,43 @@ function fold(_this__u8e3s4, arguments_0) {
|
|
|
515
516
|
return tmp_2;
|
|
516
517
|
}
|
|
517
518
|
function compile$ctx$1($arguments) {
|
|
518
|
-
this.
|
|
519
|
-
this.
|
|
519
|
+
this.w2j_1 = $arguments.g2j_1;
|
|
520
|
+
this.x2j_1 = $arguments.c2j_1;
|
|
520
521
|
}
|
|
521
|
-
protoOf(compile$ctx$1).
|
|
522
|
-
return this.
|
|
522
|
+
protoOf(compile$ctx$1).t22 = function () {
|
|
523
|
+
return this.w2j_1;
|
|
523
524
|
};
|
|
524
|
-
protoOf(compile$ctx$1).
|
|
525
|
-
return this.
|
|
525
|
+
protoOf(compile$ctx$1).f23 = function () {
|
|
526
|
+
return this.x2j_1;
|
|
526
527
|
};
|
|
527
528
|
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.
|
|
529
|
+
this.b2j_1 = input;
|
|
530
|
+
this.c2j_1 = emitters;
|
|
531
|
+
this.d2j_1 = writer;
|
|
532
|
+
this.e2j_1 = error;
|
|
533
|
+
this.f2j_1 = packageName;
|
|
534
|
+
this.g2j_1 = logger;
|
|
535
|
+
this.h2j_1 = shared;
|
|
536
|
+
this.i2j_1 = strict;
|
|
537
|
+
}
|
|
538
|
+
protoOf(CompilerArguments).v2j = function () {
|
|
539
|
+
return this.d2j_1;
|
|
539
540
|
};
|
|
540
|
-
protoOf(CompilerArguments).
|
|
541
|
-
return this.
|
|
541
|
+
protoOf(CompilerArguments).u2j = function () {
|
|
542
|
+
return this.e2j_1;
|
|
542
543
|
};
|
|
543
544
|
protoOf(CompilerArguments).toString = function () {
|
|
544
|
-
return 'CompilerArguments(input=' + NonEmptySet__toString_impl_yfcj6n(this.
|
|
545
|
+
return 'CompilerArguments(input=' + NonEmptySet__toString_impl_yfcj6n(this.b2j_1) + ', emitters=' + NonEmptySet__toString_impl_yfcj6n(this.c2j_1) + ', writer=' + toString(this.d2j_1) + ', error=' + toString(this.e2j_1) + ', packageName=' + this.f2j_1.toString() + ', logger=' + toString(this.g2j_1) + ', shared=' + this.h2j_1 + ', strict=' + this.i2j_1 + ')';
|
|
545
546
|
};
|
|
546
547
|
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.
|
|
548
|
+
var result = NonEmptySet__hashCode_impl_co6mds(this.b2j_1);
|
|
549
|
+
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.c2j_1) | 0;
|
|
550
|
+
result = imul(result, 31) + hashCode(this.d2j_1) | 0;
|
|
551
|
+
result = imul(result, 31) + hashCode(this.e2j_1) | 0;
|
|
552
|
+
result = imul(result, 31) + hashCode(this.f2j_1) | 0;
|
|
553
|
+
result = imul(result, 31) + hashCode(this.g2j_1) | 0;
|
|
554
|
+
result = imul(result, 31) + getBooleanHashCode(this.h2j_1) | 0;
|
|
555
|
+
result = imul(result, 31) + getBooleanHashCode(this.i2j_1) | 0;
|
|
555
556
|
return result;
|
|
556
557
|
};
|
|
557
558
|
protoOf(CompilerArguments).equals = function (other) {
|
|
@@ -560,54 +561,54 @@ protoOf(CompilerArguments).equals = function (other) {
|
|
|
560
561
|
if (!(other instanceof CompilerArguments))
|
|
561
562
|
return false;
|
|
562
563
|
var tmp0_other_with_cast = other instanceof CompilerArguments ? other : THROW_CCE();
|
|
563
|
-
if (!equals(new NonEmptySet(this.
|
|
564
|
+
if (!equals(new NonEmptySet(this.b2j_1), new NonEmptySet(tmp0_other_with_cast.b2j_1)))
|
|
564
565
|
return false;
|
|
565
|
-
if (!equals(new NonEmptySet(this.
|
|
566
|
+
if (!equals(new NonEmptySet(this.c2j_1), new NonEmptySet(tmp0_other_with_cast.c2j_1)))
|
|
566
567
|
return false;
|
|
567
|
-
if (!equals(this.
|
|
568
|
+
if (!equals(this.d2j_1, tmp0_other_with_cast.d2j_1))
|
|
568
569
|
return false;
|
|
569
|
-
if (!equals(this.
|
|
570
|
+
if (!equals(this.e2j_1, tmp0_other_with_cast.e2j_1))
|
|
570
571
|
return false;
|
|
571
|
-
if (!equals(this.
|
|
572
|
+
if (!equals(this.f2j_1, tmp0_other_with_cast.f2j_1))
|
|
572
573
|
return false;
|
|
573
|
-
if (!equals(this.
|
|
574
|
+
if (!equals(this.g2j_1, tmp0_other_with_cast.g2j_1))
|
|
574
575
|
return false;
|
|
575
|
-
if (!(this.
|
|
576
|
+
if (!(this.h2j_1 === tmp0_other_with_cast.h2j_1))
|
|
576
577
|
return false;
|
|
577
|
-
if (!(this.
|
|
578
|
+
if (!(this.i2j_1 === tmp0_other_with_cast.i2j_1))
|
|
578
579
|
return false;
|
|
579
580
|
return true;
|
|
580
581
|
};
|
|
581
582
|
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.
|
|
583
|
+
this.l2j_1 = format;
|
|
584
|
+
this.m2j_1 = input;
|
|
585
|
+
this.n2j_1 = emitters;
|
|
586
|
+
this.o2j_1 = writer;
|
|
587
|
+
this.p2j_1 = error;
|
|
588
|
+
this.q2j_1 = packageName;
|
|
589
|
+
this.r2j_1 = logger;
|
|
590
|
+
this.s2j_1 = shared;
|
|
591
|
+
this.t2j_1 = strict;
|
|
592
|
+
}
|
|
593
|
+
protoOf(ConverterArguments).v2j = function () {
|
|
594
|
+
return this.o2j_1;
|
|
594
595
|
};
|
|
595
|
-
protoOf(ConverterArguments).
|
|
596
|
-
return this.
|
|
596
|
+
protoOf(ConverterArguments).u2j = function () {
|
|
597
|
+
return this.p2j_1;
|
|
597
598
|
};
|
|
598
599
|
protoOf(ConverterArguments).toString = function () {
|
|
599
|
-
return 'ConverterArguments(format=' + this.
|
|
600
|
+
return 'ConverterArguments(format=' + this.l2j_1.toString() + ', input=' + NonEmptySet__toString_impl_yfcj6n(this.m2j_1) + ', emitters=' + NonEmptySet__toString_impl_yfcj6n(this.n2j_1) + ', writer=' + toString(this.o2j_1) + ', error=' + toString(this.p2j_1) + ', packageName=' + this.q2j_1.toString() + ', logger=' + toString(this.r2j_1) + ', shared=' + this.s2j_1 + ', strict=' + this.t2j_1 + ')';
|
|
600
601
|
};
|
|
601
602
|
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.
|
|
603
|
+
var result = this.l2j_1.hashCode();
|
|
604
|
+
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.m2j_1) | 0;
|
|
605
|
+
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.n2j_1) | 0;
|
|
606
|
+
result = imul(result, 31) + hashCode(this.o2j_1) | 0;
|
|
607
|
+
result = imul(result, 31) + hashCode(this.p2j_1) | 0;
|
|
608
|
+
result = imul(result, 31) + hashCode(this.q2j_1) | 0;
|
|
609
|
+
result = imul(result, 31) + hashCode(this.r2j_1) | 0;
|
|
610
|
+
result = imul(result, 31) + getBooleanHashCode(this.s2j_1) | 0;
|
|
611
|
+
result = imul(result, 31) + getBooleanHashCode(this.t2j_1) | 0;
|
|
611
612
|
return result;
|
|
612
613
|
};
|
|
613
614
|
protoOf(ConverterArguments).equals = function (other) {
|
|
@@ -616,36 +617,36 @@ protoOf(ConverterArguments).equals = function (other) {
|
|
|
616
617
|
if (!(other instanceof ConverterArguments))
|
|
617
618
|
return false;
|
|
618
619
|
var tmp0_other_with_cast = other instanceof ConverterArguments ? other : THROW_CCE();
|
|
619
|
-
if (!this.
|
|
620
|
+
if (!this.l2j_1.equals(tmp0_other_with_cast.l2j_1))
|
|
620
621
|
return false;
|
|
621
|
-
if (!equals(new NonEmptySet(this.
|
|
622
|
+
if (!equals(new NonEmptySet(this.m2j_1), new NonEmptySet(tmp0_other_with_cast.m2j_1)))
|
|
622
623
|
return false;
|
|
623
|
-
if (!equals(new NonEmptySet(this.
|
|
624
|
+
if (!equals(new NonEmptySet(this.n2j_1), new NonEmptySet(tmp0_other_with_cast.n2j_1)))
|
|
624
625
|
return false;
|
|
625
|
-
if (!equals(this.
|
|
626
|
+
if (!equals(this.o2j_1, tmp0_other_with_cast.o2j_1))
|
|
626
627
|
return false;
|
|
627
|
-
if (!equals(this.
|
|
628
|
+
if (!equals(this.p2j_1, tmp0_other_with_cast.p2j_1))
|
|
628
629
|
return false;
|
|
629
|
-
if (!equals(this.
|
|
630
|
+
if (!equals(this.q2j_1, tmp0_other_with_cast.q2j_1))
|
|
630
631
|
return false;
|
|
631
|
-
if (!equals(this.
|
|
632
|
+
if (!equals(this.r2j_1, tmp0_other_with_cast.r2j_1))
|
|
632
633
|
return false;
|
|
633
|
-
if (!(this.
|
|
634
|
+
if (!(this.s2j_1 === tmp0_other_with_cast.s2j_1))
|
|
634
635
|
return false;
|
|
635
|
-
if (!(this.
|
|
636
|
+
if (!(this.t2j_1 === tmp0_other_with_cast.t2j_1))
|
|
636
637
|
return false;
|
|
637
638
|
return true;
|
|
638
639
|
};
|
|
639
640
|
function Source(name, content) {
|
|
640
|
-
this.
|
|
641
|
-
this.
|
|
641
|
+
this.j2j_1 = name;
|
|
642
|
+
this.k2j_1 = content;
|
|
642
643
|
}
|
|
643
644
|
protoOf(Source).toString = function () {
|
|
644
|
-
return 'Source(name=' + Name__toString_impl_61tomu(this.
|
|
645
|
+
return 'Source(name=' + Name__toString_impl_61tomu(this.j2j_1) + ', content=' + this.k2j_1 + ')';
|
|
645
646
|
};
|
|
646
647
|
protoOf(Source).hashCode = function () {
|
|
647
|
-
var result = Name__hashCode_impl_fpc861(this.
|
|
648
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
648
|
+
var result = Name__hashCode_impl_fpc861(this.j2j_1);
|
|
649
|
+
result = imul(result, 31) + getStringHashCode(this.k2j_1) | 0;
|
|
649
650
|
return result;
|
|
650
651
|
};
|
|
651
652
|
protoOf(Source).equals = function (other) {
|
|
@@ -654,9 +655,9 @@ protoOf(Source).equals = function (other) {
|
|
|
654
655
|
if (!(other instanceof Source))
|
|
655
656
|
return false;
|
|
656
657
|
var tmp0_other_with_cast = other instanceof Source ? other : THROW_CCE();
|
|
657
|
-
if (!(this.
|
|
658
|
+
if (!(this.j2j_1 === tmp0_other_with_cast.j2j_1))
|
|
658
659
|
return false;
|
|
659
|
-
if (!(this.
|
|
660
|
+
if (!(this.k2j_1 === tmp0_other_with_cast.k2j_1))
|
|
660
661
|
return false;
|
|
661
662
|
return true;
|
|
662
663
|
};
|
|
@@ -687,21 +688,21 @@ function ClassPath__hashCode_impl_cciyyd($this) {
|
|
|
687
688
|
function ClassPath__equals_impl_kffpch($this, other) {
|
|
688
689
|
if (!(other instanceof ClassPath))
|
|
689
690
|
return false;
|
|
690
|
-
if (!($this === (other instanceof ClassPath ? other.
|
|
691
|
+
if (!($this === (other instanceof ClassPath ? other.y2j_1 : THROW_CCE())))
|
|
691
692
|
return false;
|
|
692
693
|
return true;
|
|
693
694
|
}
|
|
694
695
|
function ClassPath(value) {
|
|
695
|
-
this.
|
|
696
|
+
this.y2j_1 = value;
|
|
696
697
|
}
|
|
697
698
|
protoOf(ClassPath).toString = function () {
|
|
698
|
-
return ClassPath__toString_impl_y3ovr8(this.
|
|
699
|
+
return ClassPath__toString_impl_y3ovr8(this.y2j_1);
|
|
699
700
|
};
|
|
700
701
|
protoOf(ClassPath).hashCode = function () {
|
|
701
|
-
return ClassPath__hashCode_impl_cciyyd(this.
|
|
702
|
+
return ClassPath__hashCode_impl_cciyyd(this.y2j_1);
|
|
702
703
|
};
|
|
703
704
|
protoOf(ClassPath).equals = function (other) {
|
|
704
|
-
return ClassPath__equals_impl_kffpch(this.
|
|
705
|
+
return ClassPath__equals_impl_kffpch(this.y2j_1, other);
|
|
705
706
|
};
|
|
706
707
|
function _DirectoryPath___init__impl__5bzkjd(value) {
|
|
707
708
|
return value;
|
|
@@ -718,28 +719,28 @@ function DirectoryPath__hashCode_impl_cv3skg($this) {
|
|
|
718
719
|
function DirectoryPath__equals_impl_c2rwsc($this, other) {
|
|
719
720
|
if (!(other instanceof DirectoryPath))
|
|
720
721
|
return false;
|
|
721
|
-
if (!($this === (other instanceof DirectoryPath ? other.
|
|
722
|
+
if (!($this === (other instanceof DirectoryPath ? other.z2j_1 : THROW_CCE())))
|
|
722
723
|
return false;
|
|
723
724
|
return true;
|
|
724
725
|
}
|
|
725
726
|
function DirectoryPath(value) {
|
|
726
|
-
this.
|
|
727
|
+
this.z2j_1 = value;
|
|
727
728
|
}
|
|
728
729
|
protoOf(DirectoryPath).toString = function () {
|
|
729
|
-
return DirectoryPath__toString_impl_ym9pdb(this.
|
|
730
|
+
return DirectoryPath__toString_impl_ym9pdb(this.z2j_1);
|
|
730
731
|
};
|
|
731
732
|
protoOf(DirectoryPath).hashCode = function () {
|
|
732
|
-
return DirectoryPath__hashCode_impl_cv3skg(this.
|
|
733
|
+
return DirectoryPath__hashCode_impl_cv3skg(this.z2j_1);
|
|
733
734
|
};
|
|
734
735
|
protoOf(DirectoryPath).equals = function (other) {
|
|
735
|
-
return DirectoryPath__equals_impl_c2rwsc(this.
|
|
736
|
+
return DirectoryPath__equals_impl_c2rwsc(this.z2j_1, other);
|
|
736
737
|
};
|
|
737
738
|
function Directory(path) {
|
|
738
|
-
this.
|
|
739
|
+
this.a2k_1 = path;
|
|
739
740
|
}
|
|
740
741
|
function Companion_1() {
|
|
741
742
|
}
|
|
742
|
-
protoOf(Companion_1).
|
|
743
|
+
protoOf(Companion_1).b2k = function (input) {
|
|
743
744
|
// Inline function 'kotlin.let' call
|
|
744
745
|
// Inline function 'kotlin.contracts.contract' call
|
|
745
746
|
// Inline function 'community.flock.wirespec.plugin.io.Companion.invoke.<anonymous>' call
|
|
@@ -760,7 +761,7 @@ protoOf(Companion_1).v2j = function (input) {
|
|
|
760
761
|
while (tmp0_iterator.h()) {
|
|
761
762
|
var element = tmp0_iterator.i();
|
|
762
763
|
// Inline function 'community.flock.wirespec.plugin.io.Companion.invoke.<anonymous>.<anonymous>' call
|
|
763
|
-
if (element.
|
|
764
|
+
if (element.z25_1 === ext) {
|
|
764
765
|
tmp$ret$5 = element;
|
|
765
766
|
break $l$block;
|
|
766
767
|
}
|
|
@@ -788,17 +789,17 @@ function Companion_getInstance_1() {
|
|
|
788
789
|
return Companion_instance_1;
|
|
789
790
|
}
|
|
790
791
|
function FilePath(directory, name, extension) {
|
|
791
|
-
this.
|
|
792
|
-
this.
|
|
793
|
-
this.
|
|
792
|
+
this.c2k_1 = directory;
|
|
793
|
+
this.d2k_1 = name;
|
|
794
|
+
this.e2k_1 = extension;
|
|
794
795
|
}
|
|
795
796
|
protoOf(FilePath).toString = function () {
|
|
796
|
-
return DirectoryPath__toString_impl_ym9pdb(this.
|
|
797
|
+
return DirectoryPath__toString_impl_ym9pdb(this.c2k_1) + '/' + _Name___get_value__impl__3tbxxy(this.d2k_1) + '.' + this.e2k_1.z25_1;
|
|
797
798
|
};
|
|
798
799
|
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.
|
|
800
|
+
var result = DirectoryPath__hashCode_impl_cv3skg(this.c2k_1);
|
|
801
|
+
result = imul(result, 31) + Name__hashCode_impl_fpc861(this.d2k_1) | 0;
|
|
802
|
+
result = imul(result, 31) + this.e2k_1.hashCode() | 0;
|
|
802
803
|
return result;
|
|
803
804
|
};
|
|
804
805
|
protoOf(FilePath).equals = function (other) {
|
|
@@ -807,24 +808,24 @@ protoOf(FilePath).equals = function (other) {
|
|
|
807
808
|
if (!(other instanceof FilePath))
|
|
808
809
|
return false;
|
|
809
810
|
var tmp0_other_with_cast = other instanceof FilePath ? other : THROW_CCE();
|
|
810
|
-
if (!(this.
|
|
811
|
+
if (!(this.c2k_1 === tmp0_other_with_cast.c2k_1))
|
|
811
812
|
return false;
|
|
812
|
-
if (!(this.
|
|
813
|
+
if (!(this.d2k_1 === tmp0_other_with_cast.d2k_1))
|
|
813
814
|
return false;
|
|
814
|
-
if (!this.
|
|
815
|
+
if (!this.e2k_1.equals(tmp0_other_with_cast.e2k_1))
|
|
815
816
|
return false;
|
|
816
817
|
return true;
|
|
817
818
|
};
|
|
818
819
|
function path(_this__u8e3s4) {
|
|
819
820
|
var tmp;
|
|
820
821
|
if (_this__u8e3s4 instanceof ClassPath) {
|
|
821
|
-
tmp = _ClassPath___get_value__impl__lfuxg0(_this__u8e3s4.
|
|
822
|
+
tmp = _ClassPath___get_value__impl__lfuxg0(_this__u8e3s4.y2j_1);
|
|
822
823
|
} else {
|
|
823
824
|
if (_this__u8e3s4 instanceof DirectoryPath) {
|
|
824
|
-
tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.
|
|
825
|
+
tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.z2j_1);
|
|
825
826
|
} else {
|
|
826
827
|
if (_this__u8e3s4 instanceof FilePath) {
|
|
827
|
-
tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.
|
|
828
|
+
tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.c2k_1);
|
|
828
829
|
} else {
|
|
829
830
|
noWhenBranchMatchedException();
|
|
830
831
|
}
|
|
@@ -833,7 +834,7 @@ function path(_this__u8e3s4) {
|
|
|
833
834
|
return tmp;
|
|
834
835
|
}
|
|
835
836
|
function IOError(message) {
|
|
836
|
-
this.
|
|
837
|
+
this.f2k_1 = message;
|
|
837
838
|
}
|
|
838
839
|
function WirespecFileError() {
|
|
839
840
|
SpecificFile.call(this, FileExtension_Wirespec_getInstance());
|
|
@@ -869,41 +870,41 @@ function getFullPath(input, createIfNotExists_0) {
|
|
|
869
870
|
tmp_0 = new ClassPath(_ClassPath___init__impl__obyw3o(substringAfter(input, 'classpath:')));
|
|
870
871
|
} else {
|
|
871
872
|
var path = createIfNotExists(Path(input), createIfNotExists_0);
|
|
872
|
-
var tmp0_elvis_lhs = get_SystemFileSystem().
|
|
873
|
+
var tmp0_elvis_lhs = get_SystemFileSystem().m2i(path);
|
|
873
874
|
var tmp_1;
|
|
874
875
|
if (tmp0_elvis_lhs == null) {
|
|
875
|
-
raise.
|
|
876
|
+
raise.mk(new CannotAccessFileOrDirectory(input));
|
|
876
877
|
} else {
|
|
877
878
|
tmp_1 = tmp0_elvis_lhs;
|
|
878
879
|
}
|
|
879
880
|
var meta = tmp_1;
|
|
880
881
|
var pathString = path.toString();
|
|
881
882
|
var tmp_2;
|
|
882
|
-
if (meta.
|
|
883
|
+
if (meta.p2i_1) {
|
|
883
884
|
tmp_2 = new DirectoryPath(_DirectoryPath___init__impl__5bzkjd(pathString));
|
|
884
|
-
} else if (meta.
|
|
885
|
-
tmp_2 = Companion_instance_1.
|
|
885
|
+
} else if (meta.o2i_1) {
|
|
886
|
+
tmp_2 = Companion_instance_1.b2k(pathString);
|
|
886
887
|
} else {
|
|
887
|
-
raise.
|
|
888
|
+
raise.mk(new IsNotAFileOrDirectory(pathString));
|
|
888
889
|
}
|
|
889
890
|
tmp_0 = tmp_2;
|
|
890
891
|
}
|
|
891
892
|
var res = tmp_0;
|
|
892
|
-
raise.
|
|
893
|
+
raise.lk();
|
|
893
894
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
894
895
|
tmp = new Right(res);
|
|
895
896
|
} catch ($p) {
|
|
896
897
|
var tmp_3;
|
|
897
898
|
if ($p instanceof RaiseCancellationException) {
|
|
898
899
|
var e = $p;
|
|
899
|
-
raise.
|
|
900
|
+
raise.lk();
|
|
900
901
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
901
902
|
var it = raisedOrRethrow(e, raise);
|
|
902
903
|
tmp_3 = new Left(it);
|
|
903
904
|
} else {
|
|
904
905
|
if ($p instanceof Error) {
|
|
905
906
|
var e_0 = $p;
|
|
906
|
-
raise.
|
|
907
|
+
raise.lk();
|
|
907
908
|
throw nonFatalOrThrow(e_0);
|
|
908
909
|
} else {
|
|
909
910
|
throw $p;
|
|
@@ -925,7 +926,7 @@ function or(_this__u8e3s4, errorFn) {
|
|
|
925
926
|
tmp = _this__u8e3s4.ek_1;
|
|
926
927
|
} else {
|
|
927
928
|
if (_this__u8e3s4 instanceof Left) {
|
|
928
|
-
errorFn(_this__u8e3s4.yj_1.
|
|
929
|
+
errorFn(_this__u8e3s4.yj_1.f2k_1);
|
|
929
930
|
tmp = throwKotlinNothingValueException();
|
|
930
931
|
} else {
|
|
931
932
|
noWhenBranchMatchedException();
|
|
@@ -949,10 +950,10 @@ function wirespecSources(_this__u8e3s4) {
|
|
|
949
950
|
// Inline function 'kotlin.collections.filter' call
|
|
950
951
|
// Inline function 'kotlin.collections.filter' call
|
|
951
952
|
// Inline function 'kotlin.let' call
|
|
952
|
-
var this_0 = Path(_DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.
|
|
953
|
+
var this_0 = Path(_DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.a2k_1));
|
|
953
954
|
// Inline function 'kotlin.contracts.contract' call
|
|
954
955
|
// Inline function 'kotlin.collections.filterTo' call
|
|
955
|
-
var this_1 = get_SystemFileSystem().
|
|
956
|
+
var this_1 = get_SystemFileSystem().n2i(this_0);
|
|
956
957
|
var destination = ArrayList_init_$Create$_0();
|
|
957
958
|
var tmp0_iterator = this_1.g();
|
|
958
959
|
while (tmp0_iterator.h()) {
|
|
@@ -976,7 +977,7 @@ function wirespecSources(_this__u8e3s4) {
|
|
|
976
977
|
while (tmp0_iterator_1.h()) {
|
|
977
978
|
var item = tmp0_iterator_1.i();
|
|
978
979
|
// Inline function 'community.flock.wirespec.plugin.io.wirespecSources.<anonymous>.<anonymous>' call
|
|
979
|
-
var tmp$ret$8 = to(Companion_instance_1.
|
|
980
|
+
var tmp$ret$8 = to(Companion_instance_1.b2k(item.toString()), readString(buffered(get_SystemFileSystem().j2i(item))));
|
|
980
981
|
destination_1.e(tmp$ret$8);
|
|
981
982
|
}
|
|
982
983
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -987,33 +988,33 @@ function wirespecSources(_this__u8e3s4) {
|
|
|
987
988
|
// Inline function 'community.flock.wirespec.plugin.io.wirespecSources.<anonymous>.<anonymous>' call
|
|
988
989
|
var path = item_0.sd();
|
|
989
990
|
var source = item_0.td();
|
|
990
|
-
var tmp$ret$11 = new Source(path.
|
|
991
|
+
var tmp$ret$11 = new Source(path.d2k_1, source);
|
|
991
992
|
destination_2.e(tmp$ret$11);
|
|
992
993
|
}
|
|
993
994
|
var tmp0_elvis_lhs = toNonEmptySetOrNull(destination_2);
|
|
994
995
|
var tmp_0;
|
|
995
996
|
var tmp_1 = tmp0_elvis_lhs;
|
|
996
997
|
if ((tmp_1 == null ? null : new NonEmptySet(tmp_1)) == null) {
|
|
997
|
-
raise.
|
|
998
|
+
raise.mk(new WirespecFileError());
|
|
998
999
|
} else {
|
|
999
1000
|
tmp_0 = tmp0_elvis_lhs;
|
|
1000
1001
|
}
|
|
1001
1002
|
var res = new NonEmptySet(tmp_0);
|
|
1002
|
-
raise.
|
|
1003
|
+
raise.lk();
|
|
1003
1004
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
1004
1005
|
tmp = new Right(res);
|
|
1005
1006
|
} catch ($p) {
|
|
1006
1007
|
var tmp_2;
|
|
1007
1008
|
if ($p instanceof RaiseCancellationException) {
|
|
1008
1009
|
var e = $p;
|
|
1009
|
-
raise.
|
|
1010
|
+
raise.lk();
|
|
1010
1011
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
1011
1012
|
var it = raisedOrRethrow(e, raise);
|
|
1012
1013
|
tmp_2 = new Left(it);
|
|
1013
1014
|
} else {
|
|
1014
1015
|
if ($p instanceof Error) {
|
|
1015
1016
|
var e_0 = $p;
|
|
1016
|
-
raise.
|
|
1017
|
+
raise.lk();
|
|
1017
1018
|
throw nonFatalOrThrow(e_0);
|
|
1018
1019
|
} else {
|
|
1019
1020
|
throw $p;
|
|
@@ -1028,7 +1029,7 @@ function read(_this__u8e3s4) {
|
|
|
1028
1029
|
// Inline function 'kotlin.contracts.contract' call
|
|
1029
1030
|
// Inline function 'community.flock.wirespec.plugin.io.read.<anonymous>' call
|
|
1030
1031
|
var it = Path(_this__u8e3s4.toString());
|
|
1031
|
-
return readString(buffered(get_SystemFileSystem().
|
|
1032
|
+
return readString(buffered(get_SystemFileSystem().j2i(it)));
|
|
1032
1033
|
}
|
|
1033
1034
|
function getOutPutPath(inputPath, output) {
|
|
1034
1035
|
// Inline function 'arrow.core.raise.either' call
|
|
@@ -1041,13 +1042,13 @@ function getOutPutPath(inputPath, output) {
|
|
|
1041
1042
|
try {
|
|
1042
1043
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
1043
1044
|
// Inline function 'community.flock.wirespec.plugin.io.getOutPutPath.<anonymous>' call
|
|
1044
|
-
var it = raise.
|
|
1045
|
+
var it = raise.cl(getFullPath(output, true));
|
|
1045
1046
|
var tmp_0;
|
|
1046
1047
|
if (it == null) {
|
|
1047
1048
|
tmp_0 = _DirectoryPath___init__impl__5bzkjd(path(inputPath) + '/out');
|
|
1048
1049
|
} else {
|
|
1049
1050
|
if (it instanceof DirectoryPath) {
|
|
1050
|
-
tmp_0 = it.
|
|
1051
|
+
tmp_0 = it.z2j_1;
|
|
1051
1052
|
} else {
|
|
1052
1053
|
var tmp_1;
|
|
1053
1054
|
if (it instanceof FilePath) {
|
|
@@ -1056,28 +1057,28 @@ function getOutPutPath(inputPath, output) {
|
|
|
1056
1057
|
tmp_1 = it instanceof ClassPath;
|
|
1057
1058
|
}
|
|
1058
1059
|
if (tmp_1) {
|
|
1059
|
-
raise.
|
|
1060
|
+
raise.mk(new OutputShouldBeADirectory());
|
|
1060
1061
|
} else {
|
|
1061
1062
|
noWhenBranchMatchedException();
|
|
1062
1063
|
}
|
|
1063
1064
|
}
|
|
1064
1065
|
}
|
|
1065
1066
|
var res = new DirectoryPath(tmp_0);
|
|
1066
|
-
raise.
|
|
1067
|
+
raise.lk();
|
|
1067
1068
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
1068
1069
|
tmp = new Right(res);
|
|
1069
1070
|
} catch ($p) {
|
|
1070
1071
|
var tmp_2;
|
|
1071
1072
|
if ($p instanceof RaiseCancellationException) {
|
|
1072
1073
|
var e = $p;
|
|
1073
|
-
raise.
|
|
1074
|
+
raise.lk();
|
|
1074
1075
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
1075
1076
|
var it_0 = raisedOrRethrow(e, raise);
|
|
1076
1077
|
tmp_2 = new Left(it_0);
|
|
1077
1078
|
} else {
|
|
1078
1079
|
if ($p instanceof Error) {
|
|
1079
1080
|
var e_0 = $p;
|
|
1080
|
-
raise.
|
|
1081
|
+
raise.lk();
|
|
1081
1082
|
throw nonFatalOrThrow(e_0);
|
|
1082
1083
|
} else {
|
|
1083
1084
|
throw $p;
|
|
@@ -1093,14 +1094,14 @@ function write(_this__u8e3s4, string) {
|
|
|
1093
1094
|
var this_0 = Path(_this__u8e3s4.toString());
|
|
1094
1095
|
// Inline function 'kotlin.contracts.contract' call
|
|
1095
1096
|
// Inline function 'community.flock.wirespec.plugin.io.write.<anonymous>' call
|
|
1096
|
-
var tmp0_safe_receiver = this_0.
|
|
1097
|
+
var tmp0_safe_receiver = this_0.s2i();
|
|
1097
1098
|
if (tmp0_safe_receiver == null)
|
|
1098
1099
|
null;
|
|
1099
1100
|
else
|
|
1100
1101
|
createIfNotExists(tmp0_safe_receiver);
|
|
1101
1102
|
// Inline function 'kotlin.contracts.contract' call
|
|
1102
1103
|
// Inline function 'kotlin.apply' call
|
|
1103
|
-
var this_1 = buffered_0(get_SystemFileSystem().
|
|
1104
|
+
var this_1 = buffered_0(get_SystemFileSystem().l2i(this_0));
|
|
1104
1105
|
// Inline function 'kotlin.contracts.contract' call
|
|
1105
1106
|
// Inline function 'community.flock.wirespec.plugin.io.write.<anonymous>.<anonymous>' call
|
|
1106
1107
|
writeString(this_1, string);
|
|
@@ -1112,23 +1113,23 @@ function createIfNotExists(_this__u8e3s4, create) {
|
|
|
1112
1113
|
// Inline function 'kotlin.also' call
|
|
1113
1114
|
// Inline function 'kotlin.contracts.contract' call
|
|
1114
1115
|
// Inline function 'community.flock.wirespec.plugin.io.createIfNotExists.<anonymous>' call
|
|
1115
|
-
if (create && !get_SystemFileSystem().
|
|
1116
|
-
get_SystemFileSystem().
|
|
1116
|
+
if (create && !get_SystemFileSystem().h2i(_this__u8e3s4)) {
|
|
1117
|
+
get_SystemFileSystem().i2i(_this__u8e3s4, true);
|
|
1117
1118
|
}
|
|
1118
1119
|
return _this__u8e3s4;
|
|
1119
1120
|
}
|
|
1120
1121
|
function isWirespecFile(path) {
|
|
1121
|
-
return get_extension(path) === FileExtension_Wirespec_getInstance().
|
|
1122
|
+
return get_extension(path) === FileExtension_Wirespec_getInstance().z25_1;
|
|
1122
1123
|
}
|
|
1123
1124
|
function isRegularFile(path) {
|
|
1124
|
-
var tmp0_safe_receiver = get_SystemFileSystem().
|
|
1125
|
-
return (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1125
|
+
var tmp0_safe_receiver = get_SystemFileSystem().m2i(path);
|
|
1126
|
+
return (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.o2i_1) === true;
|
|
1126
1127
|
}
|
|
1127
1128
|
function get_extension(_this__u8e3s4) {
|
|
1128
1129
|
return substringAfterLast(_this__u8e3s4.s2(), _Char___init__impl__6a9atx(46), '');
|
|
1129
1130
|
}
|
|
1130
1131
|
//region block: post-declaration
|
|
1131
|
-
protoOf(compile$ctx$1).
|
|
1132
|
+
protoOf(compile$ctx$1).e23 = get_spec;
|
|
1132
1133
|
//endregion
|
|
1133
1134
|
//region block: init
|
|
1134
1135
|
Companion_instance = new Companion();
|