@flock/wirespec 0.15.11 → 0.15.13
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 +1160 -1160
- package/colormath-root-colormath.mjs +425 -425
- package/kotlin-kotlin-stdlib.mjs +19 -19
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-rgxgen.mjs +1767 -1767
- package/kotlinx-io-kotlinx-io-core.mjs +378 -378
- package/markdown.mjs +1871 -1871
- package/mordant-mordant.mjs +1637 -1637
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +2496 -1471
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +262 -262
- package/wirespec-src-converter-avro.mjs +264 -264
- package/wirespec-src-converter-openapi.mjs +179 -179
- package/wirespec-src-plugin-arguments.mjs +124 -124
- package/wirespec-src-plugin-cli.mjs +70 -70
- package/wirespec-src-plugin-npm.mjs +7 -7
- package/wirespec-src-tools-generator.mjs +3 -3
|
@@ -148,7 +148,7 @@ var Language_OpenAPIV2_instance;
|
|
|
148
148
|
var Language_OpenAPIV3_instance;
|
|
149
149
|
function Companion_0() {
|
|
150
150
|
}
|
|
151
|
-
protoOf(Companion_0).
|
|
151
|
+
protoOf(Companion_0).y2i = function () {
|
|
152
152
|
// Inline function 'kotlin.collections.associateBy' call
|
|
153
153
|
var this_0 = get_entries_1();
|
|
154
154
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
@@ -228,7 +228,7 @@ function compile_0(arguments_0) {
|
|
|
228
228
|
// Inline function 'arrow.core.Either.fold' call
|
|
229
229
|
// Inline function 'arrow.core.Either.mapLeft' call
|
|
230
230
|
// Inline function 'arrow.core.NonEmptySet.map' call
|
|
231
|
-
var this_0 = arguments_0.
|
|
231
|
+
var this_0 = arguments_0.z2i_1;
|
|
232
232
|
// Inline function 'kotlin.collections.map' call
|
|
233
233
|
var this_1 = _NonEmptySet___get_elements__impl__g09gj9(this_0);
|
|
234
234
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -237,7 +237,7 @@ function compile_0(arguments_0) {
|
|
|
237
237
|
while (tmp0_iterator.h()) {
|
|
238
238
|
var item = tmp0_iterator.i();
|
|
239
239
|
// Inline function 'community.flock.wirespec.plugin.compile.<anonymous>' call
|
|
240
|
-
var tmp$ret$0 = new ModuleContent(_Name___get_value__impl__3tbxxy(item.
|
|
240
|
+
var tmp$ret$0 = new ModuleContent(_Name___get_value__impl__3tbxxy(item.h2j_1), item.i2j_1);
|
|
241
241
|
destination.e(tmp$ret$0);
|
|
242
242
|
}
|
|
243
243
|
var tmp$ret$3 = ensureNotNull(toNonEmptyListOrNull(destination));
|
|
@@ -278,11 +278,11 @@ function compile_0(arguments_0) {
|
|
|
278
278
|
var tmp_1;
|
|
279
279
|
if (this_5 instanceof Right) {
|
|
280
280
|
var it_0 = this_5.dk_1;
|
|
281
|
-
tmp_1 = arguments_0.
|
|
281
|
+
tmp_1 = arguments_0.b2j_1(it_0);
|
|
282
282
|
} else {
|
|
283
283
|
if (this_5 instanceof Left) {
|
|
284
284
|
var it_1 = this_5.xj_1;
|
|
285
|
-
tmp_1 = arguments_0.
|
|
285
|
+
tmp_1 = arguments_0.c2j_1(joinToString(it_1));
|
|
286
286
|
} else {
|
|
287
287
|
noWhenBranchMatchedException();
|
|
288
288
|
}
|
|
@@ -290,7 +290,7 @@ function compile_0(arguments_0) {
|
|
|
290
290
|
}
|
|
291
291
|
function convert(arguments_0) {
|
|
292
292
|
var tmp;
|
|
293
|
-
switch (arguments_0.
|
|
293
|
+
switch (arguments_0.j2j_1.r2_1) {
|
|
294
294
|
case 0:
|
|
295
295
|
tmp = OpenAPIV2Parser_instance;
|
|
296
296
|
break;
|
|
@@ -309,7 +309,7 @@ function convert(arguments_0) {
|
|
|
309
309
|
// Inline function 'arrow.core.NonEmptyList.flatMap' call
|
|
310
310
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
311
311
|
// Inline function 'arrow.core.NonEmptySet.map' call
|
|
312
|
-
var this_0 = arguments_0.
|
|
312
|
+
var this_0 = arguments_0.k2j_1;
|
|
313
313
|
// Inline function 'kotlin.collections.map' call
|
|
314
314
|
var this_1 = _NonEmptySet___get_elements__impl__g09gj9(this_0);
|
|
315
315
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -318,13 +318,13 @@ function convert(arguments_0) {
|
|
|
318
318
|
while (tmp0_iterator.h()) {
|
|
319
319
|
var item = tmp0_iterator.i();
|
|
320
320
|
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>' call
|
|
321
|
-
var tmp$ret$0 = new ModuleContent(_Name___get_value__impl__3tbxxy(item.
|
|
321
|
+
var tmp$ret$0 = new ModuleContent(_Name___get_value__impl__3tbxxy(item.h2j_1), item.i2j_1);
|
|
322
322
|
destination.e(tmp$ret$0);
|
|
323
323
|
}
|
|
324
324
|
var this_2 = ensureNotNull(toNonEmptyListOrNull(destination));
|
|
325
325
|
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>' call
|
|
326
326
|
var moduleContent = this_2.ik_1;
|
|
327
|
-
var tmp_0 = parser.
|
|
327
|
+
var tmp_0 = parser.l2e(moduleContent, arguments_0.r2j_1);
|
|
328
328
|
// Inline function 'kotlin.collections.map' call
|
|
329
329
|
var this_3 = this_2.jk_1;
|
|
330
330
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -333,14 +333,14 @@ function convert(arguments_0) {
|
|
|
333
333
|
while (tmp0_iterator_0.h()) {
|
|
334
334
|
var item_0 = tmp0_iterator_0.i();
|
|
335
335
|
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>' call
|
|
336
|
-
var tmp$ret$5 = parser.
|
|
336
|
+
var tmp$ret$5 = parser.l2e(item_0, arguments_0.r2j_1);
|
|
337
337
|
destination_0.e(tmp$ret$5);
|
|
338
338
|
}
|
|
339
339
|
var this_4 = new NonEmptyList(tmp_0, destination_0);
|
|
340
340
|
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>' call
|
|
341
341
|
var ast = this_4.ik_1;
|
|
342
342
|
// Inline function 'arrow.core.NonEmptySet.flatMap' call
|
|
343
|
-
var this_5 = arguments_0.
|
|
343
|
+
var this_5 = arguments_0.l2j_1;
|
|
344
344
|
// Inline function 'kotlin.collections.flatMap' call
|
|
345
345
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
346
346
|
var this_6 = _NonEmptySet___get_elements__impl__g09gj9(this_5);
|
|
@@ -349,7 +349,7 @@ function convert(arguments_0) {
|
|
|
349
349
|
while (tmp0_iterator_1.h()) {
|
|
350
350
|
var element = tmp0_iterator_1.i();
|
|
351
351
|
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>.<anonymous>' call
|
|
352
|
-
var list = element.b23(ast, arguments_0.
|
|
352
|
+
var list = element.b23(ast, arguments_0.p2j_1);
|
|
353
353
|
addAll(destination_1, list);
|
|
354
354
|
}
|
|
355
355
|
var tmp_1 = ensureNotNull(toNonEmptyListOrNull(destination_1)).gk();
|
|
@@ -362,7 +362,7 @@ function convert(arguments_0) {
|
|
|
362
362
|
var element_0 = tmp0_iterator_2.i();
|
|
363
363
|
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>' call
|
|
364
364
|
// Inline function 'arrow.core.NonEmptySet.flatMap' call
|
|
365
|
-
var this_8 = arguments_0.
|
|
365
|
+
var this_8 = arguments_0.l2j_1;
|
|
366
366
|
// Inline function 'kotlin.collections.flatMap' call
|
|
367
367
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
368
368
|
var this_9 = _NonEmptySet___get_elements__impl__g09gj9(this_8);
|
|
@@ -371,7 +371,7 @@ function convert(arguments_0) {
|
|
|
371
371
|
while (tmp0_iterator_3.h()) {
|
|
372
372
|
var element_1 = tmp0_iterator_3.i();
|
|
373
373
|
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>.<anonymous>' call
|
|
374
|
-
var list_0 = element_1.b23(element_0, arguments_0.
|
|
374
|
+
var list_0 = element_1.b23(element_0, arguments_0.p2j_1);
|
|
375
375
|
addAll(destination_3, list_0);
|
|
376
376
|
}
|
|
377
377
|
var list_1 = ensureNotNull(toNonEmptyListOrNull(destination_3));
|
|
@@ -379,40 +379,40 @@ function convert(arguments_0) {
|
|
|
379
379
|
}
|
|
380
380
|
var this_10 = tmp_1.nk(destination_2);
|
|
381
381
|
// Inline function 'kotlin.contracts.contract' call
|
|
382
|
-
arguments_0.
|
|
382
|
+
arguments_0.m2j_1(this_10);
|
|
383
383
|
}
|
|
384
384
|
function compile$ctx$1($arguments) {
|
|
385
|
-
this.
|
|
386
|
-
this.
|
|
385
|
+
this.s2j_1 = $arguments.e2j_1;
|
|
386
|
+
this.t2j_1 = $arguments.a2j_1;
|
|
387
387
|
}
|
|
388
388
|
protoOf(compile$ctx$1).o22 = function () {
|
|
389
|
-
return this.
|
|
389
|
+
return this.s2j_1;
|
|
390
390
|
};
|
|
391
391
|
protoOf(compile$ctx$1).a23 = function () {
|
|
392
|
-
return this.
|
|
392
|
+
return this.t2j_1;
|
|
393
393
|
};
|
|
394
394
|
function CompilerArguments(input, emitters, writer, error, packageName, logger, shared, strict) {
|
|
395
|
-
this.
|
|
396
|
-
this.
|
|
397
|
-
this.
|
|
398
|
-
this.
|
|
399
|
-
this.
|
|
400
|
-
this.
|
|
401
|
-
this.
|
|
402
|
-
this.
|
|
395
|
+
this.z2i_1 = input;
|
|
396
|
+
this.a2j_1 = emitters;
|
|
397
|
+
this.b2j_1 = writer;
|
|
398
|
+
this.c2j_1 = error;
|
|
399
|
+
this.d2j_1 = packageName;
|
|
400
|
+
this.e2j_1 = logger;
|
|
401
|
+
this.f2j_1 = shared;
|
|
402
|
+
this.g2j_1 = strict;
|
|
403
403
|
}
|
|
404
404
|
protoOf(CompilerArguments).toString = function () {
|
|
405
|
-
return 'CompilerArguments(input=' + NonEmptySet__toString_impl_yfcj6n(this.
|
|
405
|
+
return 'CompilerArguments(input=' + NonEmptySet__toString_impl_yfcj6n(this.z2i_1) + ', emitters=' + NonEmptySet__toString_impl_yfcj6n(this.a2j_1) + ', writer=' + toString(this.b2j_1) + ', error=' + toString(this.c2j_1) + ', packageName=' + this.d2j_1.toString() + ', logger=' + toString(this.e2j_1) + ', shared=' + this.f2j_1 + ', strict=' + this.g2j_1 + ')';
|
|
406
406
|
};
|
|
407
407
|
protoOf(CompilerArguments).hashCode = function () {
|
|
408
|
-
var result = NonEmptySet__hashCode_impl_co6mds(this.
|
|
409
|
-
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.
|
|
410
|
-
result = imul(result, 31) + hashCode(this.
|
|
411
|
-
result = imul(result, 31) + hashCode(this.
|
|
412
|
-
result = imul(result, 31) + hashCode(this.
|
|
413
|
-
result = imul(result, 31) + hashCode(this.
|
|
414
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
415
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
408
|
+
var result = NonEmptySet__hashCode_impl_co6mds(this.z2i_1);
|
|
409
|
+
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.a2j_1) | 0;
|
|
410
|
+
result = imul(result, 31) + hashCode(this.b2j_1) | 0;
|
|
411
|
+
result = imul(result, 31) + hashCode(this.c2j_1) | 0;
|
|
412
|
+
result = imul(result, 31) + hashCode(this.d2j_1) | 0;
|
|
413
|
+
result = imul(result, 31) + hashCode(this.e2j_1) | 0;
|
|
414
|
+
result = imul(result, 31) + getBooleanHashCode(this.f2j_1) | 0;
|
|
415
|
+
result = imul(result, 31) + getBooleanHashCode(this.g2j_1) | 0;
|
|
416
416
|
return result;
|
|
417
417
|
};
|
|
418
418
|
protoOf(CompilerArguments).equals = function (other) {
|
|
@@ -421,48 +421,48 @@ protoOf(CompilerArguments).equals = function (other) {
|
|
|
421
421
|
if (!(other instanceof CompilerArguments))
|
|
422
422
|
return false;
|
|
423
423
|
var tmp0_other_with_cast = other instanceof CompilerArguments ? other : THROW_CCE();
|
|
424
|
-
if (!equals(new NonEmptySet(this.
|
|
424
|
+
if (!equals(new NonEmptySet(this.z2i_1), new NonEmptySet(tmp0_other_with_cast.z2i_1)))
|
|
425
425
|
return false;
|
|
426
|
-
if (!equals(new NonEmptySet(this.
|
|
426
|
+
if (!equals(new NonEmptySet(this.a2j_1), new NonEmptySet(tmp0_other_with_cast.a2j_1)))
|
|
427
427
|
return false;
|
|
428
|
-
if (!equals(this.
|
|
428
|
+
if (!equals(this.b2j_1, tmp0_other_with_cast.b2j_1))
|
|
429
429
|
return false;
|
|
430
|
-
if (!equals(this.
|
|
430
|
+
if (!equals(this.c2j_1, tmp0_other_with_cast.c2j_1))
|
|
431
431
|
return false;
|
|
432
|
-
if (!equals(this.
|
|
432
|
+
if (!equals(this.d2j_1, tmp0_other_with_cast.d2j_1))
|
|
433
433
|
return false;
|
|
434
|
-
if (!equals(this.
|
|
434
|
+
if (!equals(this.e2j_1, tmp0_other_with_cast.e2j_1))
|
|
435
435
|
return false;
|
|
436
|
-
if (!(this.
|
|
436
|
+
if (!(this.f2j_1 === tmp0_other_with_cast.f2j_1))
|
|
437
437
|
return false;
|
|
438
|
-
if (!(this.
|
|
438
|
+
if (!(this.g2j_1 === tmp0_other_with_cast.g2j_1))
|
|
439
439
|
return false;
|
|
440
440
|
return true;
|
|
441
441
|
};
|
|
442
442
|
function ConverterArguments(format, input, emitters, writer, error, packageName, logger, shared, strict) {
|
|
443
|
-
this.
|
|
444
|
-
this.
|
|
445
|
-
this.
|
|
446
|
-
this.
|
|
447
|
-
this.
|
|
448
|
-
this.
|
|
449
|
-
this.
|
|
450
|
-
this.
|
|
451
|
-
this.
|
|
443
|
+
this.j2j_1 = format;
|
|
444
|
+
this.k2j_1 = input;
|
|
445
|
+
this.l2j_1 = emitters;
|
|
446
|
+
this.m2j_1 = writer;
|
|
447
|
+
this.n2j_1 = error;
|
|
448
|
+
this.o2j_1 = packageName;
|
|
449
|
+
this.p2j_1 = logger;
|
|
450
|
+
this.q2j_1 = shared;
|
|
451
|
+
this.r2j_1 = strict;
|
|
452
452
|
}
|
|
453
453
|
protoOf(ConverterArguments).toString = function () {
|
|
454
|
-
return 'ConverterArguments(format=' + this.
|
|
454
|
+
return 'ConverterArguments(format=' + this.j2j_1.toString() + ', input=' + NonEmptySet__toString_impl_yfcj6n(this.k2j_1) + ', emitters=' + NonEmptySet__toString_impl_yfcj6n(this.l2j_1) + ', writer=' + toString(this.m2j_1) + ', error=' + toString(this.n2j_1) + ', packageName=' + this.o2j_1.toString() + ', logger=' + toString(this.p2j_1) + ', shared=' + this.q2j_1 + ', strict=' + this.r2j_1 + ')';
|
|
455
455
|
};
|
|
456
456
|
protoOf(ConverterArguments).hashCode = function () {
|
|
457
|
-
var result = this.
|
|
458
|
-
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.
|
|
459
|
-
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.
|
|
460
|
-
result = imul(result, 31) + hashCode(this.
|
|
461
|
-
result = imul(result, 31) + hashCode(this.
|
|
462
|
-
result = imul(result, 31) + hashCode(this.
|
|
463
|
-
result = imul(result, 31) + hashCode(this.
|
|
464
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
465
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
457
|
+
var result = this.j2j_1.hashCode();
|
|
458
|
+
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.k2j_1) | 0;
|
|
459
|
+
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.l2j_1) | 0;
|
|
460
|
+
result = imul(result, 31) + hashCode(this.m2j_1) | 0;
|
|
461
|
+
result = imul(result, 31) + hashCode(this.n2j_1) | 0;
|
|
462
|
+
result = imul(result, 31) + hashCode(this.o2j_1) | 0;
|
|
463
|
+
result = imul(result, 31) + hashCode(this.p2j_1) | 0;
|
|
464
|
+
result = imul(result, 31) + getBooleanHashCode(this.q2j_1) | 0;
|
|
465
|
+
result = imul(result, 31) + getBooleanHashCode(this.r2j_1) | 0;
|
|
466
466
|
return result;
|
|
467
467
|
};
|
|
468
468
|
protoOf(ConverterArguments).equals = function (other) {
|
|
@@ -471,36 +471,36 @@ protoOf(ConverterArguments).equals = function (other) {
|
|
|
471
471
|
if (!(other instanceof ConverterArguments))
|
|
472
472
|
return false;
|
|
473
473
|
var tmp0_other_with_cast = other instanceof ConverterArguments ? other : THROW_CCE();
|
|
474
|
-
if (!this.
|
|
474
|
+
if (!this.j2j_1.equals(tmp0_other_with_cast.j2j_1))
|
|
475
475
|
return false;
|
|
476
|
-
if (!equals(new NonEmptySet(this.
|
|
476
|
+
if (!equals(new NonEmptySet(this.k2j_1), new NonEmptySet(tmp0_other_with_cast.k2j_1)))
|
|
477
477
|
return false;
|
|
478
|
-
if (!equals(new NonEmptySet(this.
|
|
478
|
+
if (!equals(new NonEmptySet(this.l2j_1), new NonEmptySet(tmp0_other_with_cast.l2j_1)))
|
|
479
479
|
return false;
|
|
480
|
-
if (!equals(this.
|
|
480
|
+
if (!equals(this.m2j_1, tmp0_other_with_cast.m2j_1))
|
|
481
481
|
return false;
|
|
482
|
-
if (!equals(this.
|
|
482
|
+
if (!equals(this.n2j_1, tmp0_other_with_cast.n2j_1))
|
|
483
483
|
return false;
|
|
484
|
-
if (!equals(this.
|
|
484
|
+
if (!equals(this.o2j_1, tmp0_other_with_cast.o2j_1))
|
|
485
485
|
return false;
|
|
486
|
-
if (!equals(this.
|
|
486
|
+
if (!equals(this.p2j_1, tmp0_other_with_cast.p2j_1))
|
|
487
487
|
return false;
|
|
488
|
-
if (!(this.
|
|
488
|
+
if (!(this.q2j_1 === tmp0_other_with_cast.q2j_1))
|
|
489
489
|
return false;
|
|
490
|
-
if (!(this.
|
|
490
|
+
if (!(this.r2j_1 === tmp0_other_with_cast.r2j_1))
|
|
491
491
|
return false;
|
|
492
492
|
return true;
|
|
493
493
|
};
|
|
494
494
|
function Source(name, content) {
|
|
495
|
-
this.
|
|
496
|
-
this.
|
|
495
|
+
this.h2j_1 = name;
|
|
496
|
+
this.i2j_1 = content;
|
|
497
497
|
}
|
|
498
498
|
protoOf(Source).toString = function () {
|
|
499
|
-
return 'Source(name=' + Name__toString_impl_61tomu(this.
|
|
499
|
+
return 'Source(name=' + Name__toString_impl_61tomu(this.h2j_1) + ', content=' + this.i2j_1 + ')';
|
|
500
500
|
};
|
|
501
501
|
protoOf(Source).hashCode = function () {
|
|
502
|
-
var result = Name__hashCode_impl_fpc861(this.
|
|
503
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
502
|
+
var result = Name__hashCode_impl_fpc861(this.h2j_1);
|
|
503
|
+
result = imul(result, 31) + getStringHashCode(this.i2j_1) | 0;
|
|
504
504
|
return result;
|
|
505
505
|
};
|
|
506
506
|
protoOf(Source).equals = function (other) {
|
|
@@ -509,9 +509,9 @@ protoOf(Source).equals = function (other) {
|
|
|
509
509
|
if (!(other instanceof Source))
|
|
510
510
|
return false;
|
|
511
511
|
var tmp0_other_with_cast = other instanceof Source ? other : THROW_CCE();
|
|
512
|
-
if (!(this.
|
|
512
|
+
if (!(this.h2j_1 === tmp0_other_with_cast.h2j_1))
|
|
513
513
|
return false;
|
|
514
|
-
if (!(this.
|
|
514
|
+
if (!(this.i2j_1 === tmp0_other_with_cast.i2j_1))
|
|
515
515
|
return false;
|
|
516
516
|
return true;
|
|
517
517
|
};
|
|
@@ -542,21 +542,21 @@ function ClassPath__hashCode_impl_cciyyd($this) {
|
|
|
542
542
|
function ClassPath__equals_impl_kffpch($this, other) {
|
|
543
543
|
if (!(other instanceof ClassPath))
|
|
544
544
|
return false;
|
|
545
|
-
if (!($this === (other instanceof ClassPath ? other.
|
|
545
|
+
if (!($this === (other instanceof ClassPath ? other.u2j_1 : THROW_CCE())))
|
|
546
546
|
return false;
|
|
547
547
|
return true;
|
|
548
548
|
}
|
|
549
549
|
function ClassPath(value) {
|
|
550
|
-
this.
|
|
550
|
+
this.u2j_1 = value;
|
|
551
551
|
}
|
|
552
552
|
protoOf(ClassPath).toString = function () {
|
|
553
|
-
return ClassPath__toString_impl_y3ovr8(this.
|
|
553
|
+
return ClassPath__toString_impl_y3ovr8(this.u2j_1);
|
|
554
554
|
};
|
|
555
555
|
protoOf(ClassPath).hashCode = function () {
|
|
556
|
-
return ClassPath__hashCode_impl_cciyyd(this.
|
|
556
|
+
return ClassPath__hashCode_impl_cciyyd(this.u2j_1);
|
|
557
557
|
};
|
|
558
558
|
protoOf(ClassPath).equals = function (other) {
|
|
559
|
-
return ClassPath__equals_impl_kffpch(this.
|
|
559
|
+
return ClassPath__equals_impl_kffpch(this.u2j_1, other);
|
|
560
560
|
};
|
|
561
561
|
function _DirectoryPath___init__impl__5bzkjd(value) {
|
|
562
562
|
return value;
|
|
@@ -573,28 +573,28 @@ function DirectoryPath__hashCode_impl_cv3skg($this) {
|
|
|
573
573
|
function DirectoryPath__equals_impl_c2rwsc($this, other) {
|
|
574
574
|
if (!(other instanceof DirectoryPath))
|
|
575
575
|
return false;
|
|
576
|
-
if (!($this === (other instanceof DirectoryPath ? other.
|
|
576
|
+
if (!($this === (other instanceof DirectoryPath ? other.v2j_1 : THROW_CCE())))
|
|
577
577
|
return false;
|
|
578
578
|
return true;
|
|
579
579
|
}
|
|
580
580
|
function DirectoryPath(value) {
|
|
581
|
-
this.
|
|
581
|
+
this.v2j_1 = value;
|
|
582
582
|
}
|
|
583
583
|
protoOf(DirectoryPath).toString = function () {
|
|
584
|
-
return DirectoryPath__toString_impl_ym9pdb(this.
|
|
584
|
+
return DirectoryPath__toString_impl_ym9pdb(this.v2j_1);
|
|
585
585
|
};
|
|
586
586
|
protoOf(DirectoryPath).hashCode = function () {
|
|
587
|
-
return DirectoryPath__hashCode_impl_cv3skg(this.
|
|
587
|
+
return DirectoryPath__hashCode_impl_cv3skg(this.v2j_1);
|
|
588
588
|
};
|
|
589
589
|
protoOf(DirectoryPath).equals = function (other) {
|
|
590
|
-
return DirectoryPath__equals_impl_c2rwsc(this.
|
|
590
|
+
return DirectoryPath__equals_impl_c2rwsc(this.v2j_1, other);
|
|
591
591
|
};
|
|
592
592
|
function Directory(path) {
|
|
593
|
-
this.
|
|
593
|
+
this.w2j_1 = path;
|
|
594
594
|
}
|
|
595
595
|
function Companion_1() {
|
|
596
596
|
}
|
|
597
|
-
protoOf(Companion_1).
|
|
597
|
+
protoOf(Companion_1).x2j = function (input) {
|
|
598
598
|
// Inline function 'kotlin.let' call
|
|
599
599
|
// Inline function 'kotlin.contracts.contract' call
|
|
600
600
|
// Inline function 'community.flock.wirespec.plugin.io.Companion.invoke.<anonymous>' call
|
|
@@ -615,7 +615,7 @@ protoOf(Companion_1).p2j = function (input) {
|
|
|
615
615
|
while (tmp0_iterator.h()) {
|
|
616
616
|
var element = tmp0_iterator.i();
|
|
617
617
|
// Inline function 'community.flock.wirespec.plugin.io.Companion.invoke.<anonymous>.<anonymous>' call
|
|
618
|
-
if (element.
|
|
618
|
+
if (element.i29_1 === ext) {
|
|
619
619
|
tmp$ret$5 = element;
|
|
620
620
|
break $l$block;
|
|
621
621
|
}
|
|
@@ -641,17 +641,17 @@ function Companion_getInstance_1() {
|
|
|
641
641
|
return Companion_instance_1;
|
|
642
642
|
}
|
|
643
643
|
function FilePath(directory, name, extension) {
|
|
644
|
-
this.
|
|
645
|
-
this.
|
|
646
|
-
this.
|
|
644
|
+
this.y2j_1 = directory;
|
|
645
|
+
this.z2j_1 = name;
|
|
646
|
+
this.a2k_1 = extension;
|
|
647
647
|
}
|
|
648
648
|
protoOf(FilePath).toString = function () {
|
|
649
|
-
return DirectoryPath__toString_impl_ym9pdb(this.
|
|
649
|
+
return DirectoryPath__toString_impl_ym9pdb(this.y2j_1) + '/' + _Name___get_value__impl__3tbxxy(this.z2j_1) + '.' + this.a2k_1.i29_1;
|
|
650
650
|
};
|
|
651
651
|
protoOf(FilePath).hashCode = function () {
|
|
652
|
-
var result = DirectoryPath__hashCode_impl_cv3skg(this.
|
|
653
|
-
result = imul(result, 31) + Name__hashCode_impl_fpc861(this.
|
|
654
|
-
result = imul(result, 31) + this.
|
|
652
|
+
var result = DirectoryPath__hashCode_impl_cv3skg(this.y2j_1);
|
|
653
|
+
result = imul(result, 31) + Name__hashCode_impl_fpc861(this.z2j_1) | 0;
|
|
654
|
+
result = imul(result, 31) + this.a2k_1.hashCode() | 0;
|
|
655
655
|
return result;
|
|
656
656
|
};
|
|
657
657
|
protoOf(FilePath).equals = function (other) {
|
|
@@ -660,24 +660,24 @@ protoOf(FilePath).equals = function (other) {
|
|
|
660
660
|
if (!(other instanceof FilePath))
|
|
661
661
|
return false;
|
|
662
662
|
var tmp0_other_with_cast = other instanceof FilePath ? other : THROW_CCE();
|
|
663
|
-
if (!(this.
|
|
663
|
+
if (!(this.y2j_1 === tmp0_other_with_cast.y2j_1))
|
|
664
664
|
return false;
|
|
665
|
-
if (!(this.
|
|
665
|
+
if (!(this.z2j_1 === tmp0_other_with_cast.z2j_1))
|
|
666
666
|
return false;
|
|
667
|
-
if (!this.
|
|
667
|
+
if (!this.a2k_1.equals(tmp0_other_with_cast.a2k_1))
|
|
668
668
|
return false;
|
|
669
669
|
return true;
|
|
670
670
|
};
|
|
671
671
|
function path(_this__u8e3s4) {
|
|
672
672
|
var tmp;
|
|
673
673
|
if (_this__u8e3s4 instanceof ClassPath) {
|
|
674
|
-
tmp = _ClassPath___get_value__impl__lfuxg0(_this__u8e3s4.
|
|
674
|
+
tmp = _ClassPath___get_value__impl__lfuxg0(_this__u8e3s4.u2j_1);
|
|
675
675
|
} else {
|
|
676
676
|
if (_this__u8e3s4 instanceof DirectoryPath) {
|
|
677
|
-
tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.
|
|
677
|
+
tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.v2j_1);
|
|
678
678
|
} else {
|
|
679
679
|
if (_this__u8e3s4 instanceof FilePath) {
|
|
680
|
-
tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.
|
|
680
|
+
tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.y2j_1);
|
|
681
681
|
} else {
|
|
682
682
|
noWhenBranchMatchedException();
|
|
683
683
|
}
|
|
@@ -686,7 +686,7 @@ function path(_this__u8e3s4) {
|
|
|
686
686
|
return tmp;
|
|
687
687
|
}
|
|
688
688
|
function IOError(message) {
|
|
689
|
-
this.
|
|
689
|
+
this.b2k_1 = message;
|
|
690
690
|
}
|
|
691
691
|
function WirespecFileError() {
|
|
692
692
|
SpecificFile.call(this, FileExtension_Wirespec_getInstance());
|
|
@@ -722,7 +722,7 @@ function getFullPath(input, createIfNotExists_0) {
|
|
|
722
722
|
tmp_0 = new ClassPath(_ClassPath___init__impl__obyw3o(substringAfter(input, 'classpath:')));
|
|
723
723
|
} else {
|
|
724
724
|
var path = createIfNotExists(Path(input), createIfNotExists_0);
|
|
725
|
-
var tmp0_elvis_lhs = get_SystemFileSystem().
|
|
725
|
+
var tmp0_elvis_lhs = get_SystemFileSystem().k2i(path);
|
|
726
726
|
var tmp_1;
|
|
727
727
|
if (tmp0_elvis_lhs == null) {
|
|
728
728
|
raise.yk(new CannotAccessFileOrDirectory(input));
|
|
@@ -732,10 +732,10 @@ function getFullPath(input, createIfNotExists_0) {
|
|
|
732
732
|
var meta = tmp_1;
|
|
733
733
|
var pathString = path.toString();
|
|
734
734
|
var tmp_2;
|
|
735
|
-
if (meta.
|
|
735
|
+
if (meta.n2i_1) {
|
|
736
736
|
tmp_2 = new DirectoryPath(_DirectoryPath___init__impl__5bzkjd(pathString));
|
|
737
|
-
} else if (meta.
|
|
738
|
-
tmp_2 = Companion_instance_1.
|
|
737
|
+
} else if (meta.m2i_1) {
|
|
738
|
+
tmp_2 = Companion_instance_1.x2j(pathString);
|
|
739
739
|
} else {
|
|
740
740
|
raise.yk(new IsNotAFileOrDirectory(pathString));
|
|
741
741
|
}
|
|
@@ -778,7 +778,7 @@ function or(_this__u8e3s4, errorFn) {
|
|
|
778
778
|
tmp = _this__u8e3s4.dk_1;
|
|
779
779
|
} else {
|
|
780
780
|
if (_this__u8e3s4 instanceof Left) {
|
|
781
|
-
errorFn(_this__u8e3s4.xj_1.
|
|
781
|
+
errorFn(_this__u8e3s4.xj_1.b2k_1);
|
|
782
782
|
tmp = throwKotlinNothingValueException();
|
|
783
783
|
} else {
|
|
784
784
|
noWhenBranchMatchedException();
|
|
@@ -802,10 +802,10 @@ function wirespecSources(_this__u8e3s4) {
|
|
|
802
802
|
// Inline function 'kotlin.collections.filter' call
|
|
803
803
|
// Inline function 'kotlin.collections.filter' call
|
|
804
804
|
// Inline function 'kotlin.let' call
|
|
805
|
-
var this_0 = Path(_DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.
|
|
805
|
+
var this_0 = Path(_DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.w2j_1));
|
|
806
806
|
// Inline function 'kotlin.contracts.contract' call
|
|
807
807
|
// Inline function 'kotlin.collections.filterTo' call
|
|
808
|
-
var this_1 = get_SystemFileSystem().
|
|
808
|
+
var this_1 = get_SystemFileSystem().l2i(this_0);
|
|
809
809
|
var destination = ArrayList_init_$Create$_0();
|
|
810
810
|
var tmp0_iterator = this_1.g();
|
|
811
811
|
while (tmp0_iterator.h()) {
|
|
@@ -829,7 +829,7 @@ function wirespecSources(_this__u8e3s4) {
|
|
|
829
829
|
while (tmp0_iterator_1.h()) {
|
|
830
830
|
var item = tmp0_iterator_1.i();
|
|
831
831
|
// Inline function 'community.flock.wirespec.plugin.io.wirespecSources.<anonymous>.<anonymous>' call
|
|
832
|
-
var tmp$ret$8 = to(Companion_instance_1.
|
|
832
|
+
var tmp$ret$8 = to(Companion_instance_1.x2j(item.toString()), readString(buffered(get_SystemFileSystem().h2i(item))));
|
|
833
833
|
destination_1.e(tmp$ret$8);
|
|
834
834
|
}
|
|
835
835
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -840,7 +840,7 @@ function wirespecSources(_this__u8e3s4) {
|
|
|
840
840
|
// Inline function 'community.flock.wirespec.plugin.io.wirespecSources.<anonymous>.<anonymous>' call
|
|
841
841
|
var path = item_0.sd();
|
|
842
842
|
var source = item_0.td();
|
|
843
|
-
var tmp$ret$11 = new Source(path.
|
|
843
|
+
var tmp$ret$11 = new Source(path.z2j_1, source);
|
|
844
844
|
destination_2.e(tmp$ret$11);
|
|
845
845
|
}
|
|
846
846
|
var tmp0_elvis_lhs = toNonEmptySetOrNull(destination_2);
|
|
@@ -881,7 +881,7 @@ function read(_this__u8e3s4) {
|
|
|
881
881
|
// Inline function 'kotlin.contracts.contract' call
|
|
882
882
|
// Inline function 'community.flock.wirespec.plugin.io.read.<anonymous>' call
|
|
883
883
|
var it = Path(_this__u8e3s4.toString());
|
|
884
|
-
return readString(buffered(get_SystemFileSystem().
|
|
884
|
+
return readString(buffered(get_SystemFileSystem().h2i(it)));
|
|
885
885
|
}
|
|
886
886
|
function getOutPutPath(inputPath, output) {
|
|
887
887
|
// Inline function 'arrow.core.raise.either' call
|
|
@@ -900,7 +900,7 @@ function getOutPutPath(inputPath, output) {
|
|
|
900
900
|
tmp_0 = _DirectoryPath___init__impl__5bzkjd(path(inputPath) + '/out');
|
|
901
901
|
} else {
|
|
902
902
|
if (it instanceof DirectoryPath) {
|
|
903
|
-
tmp_0 = it.
|
|
903
|
+
tmp_0 = it.v2j_1;
|
|
904
904
|
} else {
|
|
905
905
|
var tmp_1;
|
|
906
906
|
if (it instanceof FilePath) {
|
|
@@ -946,14 +946,14 @@ function write(_this__u8e3s4, string) {
|
|
|
946
946
|
var this_0 = Path(_this__u8e3s4.toString());
|
|
947
947
|
// Inline function 'kotlin.contracts.contract' call
|
|
948
948
|
// Inline function 'community.flock.wirespec.plugin.io.write.<anonymous>' call
|
|
949
|
-
var tmp0_safe_receiver = this_0.
|
|
949
|
+
var tmp0_safe_receiver = this_0.q2i();
|
|
950
950
|
if (tmp0_safe_receiver == null)
|
|
951
951
|
null;
|
|
952
952
|
else
|
|
953
953
|
createIfNotExists(tmp0_safe_receiver);
|
|
954
954
|
// Inline function 'kotlin.contracts.contract' call
|
|
955
955
|
// Inline function 'kotlin.apply' call
|
|
956
|
-
var this_1 = buffered_0(get_SystemFileSystem().
|
|
956
|
+
var this_1 = buffered_0(get_SystemFileSystem().j2i(this_0));
|
|
957
957
|
// Inline function 'kotlin.contracts.contract' call
|
|
958
958
|
// Inline function 'community.flock.wirespec.plugin.io.write.<anonymous>.<anonymous>' call
|
|
959
959
|
writeString(this_1, string);
|
|
@@ -965,17 +965,17 @@ function createIfNotExists(_this__u8e3s4, create) {
|
|
|
965
965
|
// Inline function 'kotlin.also' call
|
|
966
966
|
// Inline function 'kotlin.contracts.contract' call
|
|
967
967
|
// Inline function 'community.flock.wirespec.plugin.io.createIfNotExists.<anonymous>' call
|
|
968
|
-
if (create && !get_SystemFileSystem().
|
|
969
|
-
get_SystemFileSystem().
|
|
968
|
+
if (create && !get_SystemFileSystem().f2i(_this__u8e3s4)) {
|
|
969
|
+
get_SystemFileSystem().g2i(_this__u8e3s4, true);
|
|
970
970
|
}
|
|
971
971
|
return _this__u8e3s4;
|
|
972
972
|
}
|
|
973
973
|
function isWirespecFile(path) {
|
|
974
|
-
return get_extension(path) === FileExtension_Wirespec_getInstance().
|
|
974
|
+
return get_extension(path) === FileExtension_Wirespec_getInstance().i29_1;
|
|
975
975
|
}
|
|
976
976
|
function isRegularFile(path) {
|
|
977
|
-
var tmp0_safe_receiver = get_SystemFileSystem().
|
|
978
|
-
return (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
977
|
+
var tmp0_safe_receiver = get_SystemFileSystem().k2i(path);
|
|
978
|
+
return (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m2i_1) === true;
|
|
979
979
|
}
|
|
980
980
|
function get_extension(_this__u8e3s4) {
|
|
981
981
|
return substringAfterLast(_this__u8e3s4.s2(), _Char___init__impl__6a9atx(46), '');
|