@flock/wirespec 0.14.30 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/clikt-clikt.mjs +1125 -1125
- package/colormath-root-colormath.mjs +400 -400
- package/kotlin-kotlin-stdlib.mjs +11 -11
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-rgxgen.mjs +1764 -1764
- package/kotlinx-io-kotlinx-io-core.mjs +371 -371
- package/markdown.mjs +1816 -1816
- package/mordant-mordant.mjs +1531 -1531
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +632 -508
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +269 -269
- package/wirespec-src-converter-avro.mjs +263 -263
- package/wirespec-src-converter-openapi.mjs +171 -171
- package/wirespec-src-plugin-arguments.mjs +119 -119
- package/wirespec-src-plugin-cli.mjs +61 -61
- package/wirespec-src-plugin-npm.d.ts +1 -1
- package/wirespec-src-plugin-npm.mjs +13 -12
- package/wirespec-src-plugin-npm.mjs.map +1 -1
- 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).g2j = 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);
|
|
@@ -226,7 +226,7 @@ function Language_OpenAPIV3_getInstance() {
|
|
|
226
226
|
function compile_0(arguments_0) {
|
|
227
227
|
var ctx = new compile$ctx$1(arguments_0);
|
|
228
228
|
// Inline function 'arrow.core.NonEmptySet.map' call
|
|
229
|
-
var this_0 = arguments_0.
|
|
229
|
+
var this_0 = arguments_0.h2j_1;
|
|
230
230
|
// Inline function 'kotlin.collections.map' call
|
|
231
231
|
var this_1 = _NonEmptySet___get_elements__impl__g09gj9(this_0);
|
|
232
232
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -235,7 +235,7 @@ function compile_0(arguments_0) {
|
|
|
235
235
|
while (_iterator__ex2g4s.h()) {
|
|
236
236
|
var item = _iterator__ex2g4s.i();
|
|
237
237
|
// Inline function 'community.flock.wirespec.plugin.compile.<anonymous>' call
|
|
238
|
-
var tmp$ret$0 = new ModuleContent(_Name___get_value__impl__3tbxxy(item.
|
|
238
|
+
var tmp$ret$0 = new ModuleContent(_Name___get_value__impl__3tbxxy(item.q2j_1), item.r2j_1);
|
|
239
239
|
destination.e(tmp$ret$0);
|
|
240
240
|
}
|
|
241
241
|
var tmp$ret$3 = ensureNotNull(toNonEmptyListOrNull(destination));
|
|
@@ -286,13 +286,13 @@ function compile_0(arguments_0) {
|
|
|
286
286
|
// Inline function 'community.flock.wirespec.plugin.compile.<anonymous>.<anonymous>' call
|
|
287
287
|
var file = element.yd();
|
|
288
288
|
var result = element.zd();
|
|
289
|
-
arguments_0.
|
|
289
|
+
arguments_0.k2j_1(Companion_instance_1.t2j(_DirectoryPath___get_value__impl__hdy2e3(arguments_0.i2j_1.s2j_1) + '/' + file), result);
|
|
290
290
|
}
|
|
291
291
|
} else {
|
|
292
292
|
if (this_5 instanceof Left) {
|
|
293
293
|
// Inline function 'community.flock.wirespec.plugin.compile.<anonymous>' call
|
|
294
294
|
var it_0 = this_5.jk_1;
|
|
295
|
-
arguments_0.
|
|
295
|
+
arguments_0.l2j_1(joinToString(it_0));
|
|
296
296
|
} else {
|
|
297
297
|
noWhenBranchMatchedException();
|
|
298
298
|
}
|
|
@@ -300,7 +300,7 @@ function compile_0(arguments_0) {
|
|
|
300
300
|
}
|
|
301
301
|
function convert(arguments_0) {
|
|
302
302
|
var tmp;
|
|
303
|
-
switch (arguments_0.
|
|
303
|
+
switch (arguments_0.u2j_1.r2_1) {
|
|
304
304
|
case 0:
|
|
305
305
|
tmp = OpenAPIV2Parser$parse$ref(OpenAPIV2Parser_instance);
|
|
306
306
|
break;
|
|
@@ -316,7 +316,7 @@ function convert(arguments_0) {
|
|
|
316
316
|
}
|
|
317
317
|
var parser = tmp;
|
|
318
318
|
// Inline function 'arrow.core.NonEmptySet.map' call
|
|
319
|
-
var this_0 = arguments_0.
|
|
319
|
+
var this_0 = arguments_0.v2j_1;
|
|
320
320
|
// Inline function 'kotlin.collections.map' call
|
|
321
321
|
var this_1 = _NonEmptySet___get_elements__impl__g09gj9(this_0);
|
|
322
322
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -325,13 +325,13 @@ function convert(arguments_0) {
|
|
|
325
325
|
while (_iterator__ex2g4s.h()) {
|
|
326
326
|
var item = _iterator__ex2g4s.i();
|
|
327
327
|
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>' call
|
|
328
|
-
var tmp$ret$0 = new ModuleContent(_Name___get_value__impl__3tbxxy(item.
|
|
328
|
+
var tmp$ret$0 = new ModuleContent(_Name___get_value__impl__3tbxxy(item.q2j_1), item.r2j_1);
|
|
329
329
|
destination.e(tmp$ret$0);
|
|
330
330
|
}
|
|
331
331
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
332
332
|
var this_2 = ensureNotNull(toNonEmptyListOrNull(destination));
|
|
333
333
|
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>' call
|
|
334
|
-
var tmp_0 = parser(this_2.uk_1, arguments_0.
|
|
334
|
+
var tmp_0 = parser(this_2.uk_1, arguments_0.d2k_1);
|
|
335
335
|
// Inline function 'kotlin.collections.map' call
|
|
336
336
|
var this_3 = this_2.vk_1;
|
|
337
337
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -340,7 +340,7 @@ function convert(arguments_0) {
|
|
|
340
340
|
while (_iterator__ex2g4s_0.h()) {
|
|
341
341
|
var item_0 = _iterator__ex2g4s_0.i();
|
|
342
342
|
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>' call
|
|
343
|
-
var tmp$ret$5 = parser(item_0, arguments_0.
|
|
343
|
+
var tmp$ret$5 = parser(item_0, arguments_0.d2k_1);
|
|
344
344
|
destination_0.e(tmp$ret$5);
|
|
345
345
|
}
|
|
346
346
|
// Inline function 'arrow.core.NonEmptyList.flatMap' call
|
|
@@ -348,7 +348,7 @@ function convert(arguments_0) {
|
|
|
348
348
|
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>' call
|
|
349
349
|
var ast = this_4.uk_1;
|
|
350
350
|
// Inline function 'arrow.core.NonEmptySet.flatMap' call
|
|
351
|
-
var this_5 = arguments_0.
|
|
351
|
+
var this_5 = arguments_0.x2j_1;
|
|
352
352
|
// Inline function 'kotlin.collections.flatMap' call
|
|
353
353
|
var tmp0 = _NonEmptySet___get_elements__impl__g09gj9(this_5);
|
|
354
354
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -357,7 +357,7 @@ function convert(arguments_0) {
|
|
|
357
357
|
while (_iterator__ex2g4s_1.h()) {
|
|
358
358
|
var element = _iterator__ex2g4s_1.i();
|
|
359
359
|
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>.<anonymous>' call
|
|
360
|
-
var list = element.n23(ast, arguments_0.
|
|
360
|
+
var list = element.n23(ast, arguments_0.b2k_1);
|
|
361
361
|
addAll(destination_1, list);
|
|
362
362
|
}
|
|
363
363
|
var tmp_1 = ensureNotNull(toNonEmptyListOrNull(destination_1)).sk();
|
|
@@ -370,7 +370,7 @@ function convert(arguments_0) {
|
|
|
370
370
|
var element_0 = _iterator__ex2g4s_2.i();
|
|
371
371
|
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>' call
|
|
372
372
|
// Inline function 'arrow.core.NonEmptySet.flatMap' call
|
|
373
|
-
var this_6 = arguments_0.
|
|
373
|
+
var this_6 = arguments_0.x2j_1;
|
|
374
374
|
// Inline function 'kotlin.collections.flatMap' call
|
|
375
375
|
var tmp0_1 = _NonEmptySet___get_elements__impl__g09gj9(this_6);
|
|
376
376
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -379,7 +379,7 @@ function convert(arguments_0) {
|
|
|
379
379
|
while (_iterator__ex2g4s_3.h()) {
|
|
380
380
|
var element_1 = _iterator__ex2g4s_3.i();
|
|
381
381
|
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>.<anonymous>' call
|
|
382
|
-
var list_0 = element_1.n23(element_0, arguments_0.
|
|
382
|
+
var list_0 = element_1.n23(element_0, arguments_0.b2k_1);
|
|
383
383
|
addAll(destination_3, list_0);
|
|
384
384
|
}
|
|
385
385
|
var list_1 = ensureNotNull(toNonEmptyListOrNull(destination_3));
|
|
@@ -392,64 +392,64 @@ function convert(arguments_0) {
|
|
|
392
392
|
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>' call
|
|
393
393
|
var file = element_2.yd();
|
|
394
394
|
var result = element_2.zd();
|
|
395
|
-
arguments_0.
|
|
395
|
+
arguments_0.y2j_1(Companion_instance_1.t2j(_DirectoryPath___get_value__impl__hdy2e3(arguments_0.w2j_1.s2j_1) + '/' + file), result);
|
|
396
396
|
}
|
|
397
397
|
}
|
|
398
398
|
function compile$ctx$1($arguments) {
|
|
399
|
-
this.
|
|
400
|
-
this.
|
|
399
|
+
this.e2k_1 = $arguments.n2j_1;
|
|
400
|
+
this.f2k_1 = $arguments.j2j_1;
|
|
401
401
|
}
|
|
402
402
|
protoOf(compile$ctx$1).a23 = function () {
|
|
403
|
-
return this.
|
|
403
|
+
return this.e2k_1;
|
|
404
404
|
};
|
|
405
405
|
protoOf(compile$ctx$1).m23 = function () {
|
|
406
|
-
return this.
|
|
406
|
+
return this.f2k_1;
|
|
407
407
|
};
|
|
408
408
|
function OpenAPIV2Parser$parse$ref($boundThis) {
|
|
409
409
|
var l = function (p0, p1) {
|
|
410
|
-
return $boundThis.
|
|
410
|
+
return $boundThis.q2e(p0, p1);
|
|
411
411
|
};
|
|
412
412
|
l.callableName = 'parse';
|
|
413
413
|
return l;
|
|
414
414
|
}
|
|
415
415
|
function OpenAPIV3Parser$parse$ref($boundThis) {
|
|
416
416
|
var l = function (p0, p1) {
|
|
417
|
-
return $boundThis.
|
|
417
|
+
return $boundThis.q2e(p0, p1);
|
|
418
418
|
};
|
|
419
419
|
l.callableName = 'parse';
|
|
420
420
|
return l;
|
|
421
421
|
}
|
|
422
422
|
function AvroParser$parse$ref($boundThis) {
|
|
423
423
|
var l = function (p0, p1) {
|
|
424
|
-
return $boundThis.
|
|
424
|
+
return $boundThis.q2e(p0, p1);
|
|
425
425
|
};
|
|
426
426
|
l.callableName = 'parse';
|
|
427
427
|
return l;
|
|
428
428
|
}
|
|
429
429
|
function CompilerArguments(input, output, emitters, writer, error, packageName, logger, shared, strict) {
|
|
430
|
-
this.
|
|
431
|
-
this.
|
|
432
|
-
this.
|
|
433
|
-
this.
|
|
434
|
-
this.
|
|
435
|
-
this.
|
|
436
|
-
this.
|
|
437
|
-
this.
|
|
438
|
-
this.
|
|
430
|
+
this.h2j_1 = input;
|
|
431
|
+
this.i2j_1 = output;
|
|
432
|
+
this.j2j_1 = emitters;
|
|
433
|
+
this.k2j_1 = writer;
|
|
434
|
+
this.l2j_1 = error;
|
|
435
|
+
this.m2j_1 = packageName;
|
|
436
|
+
this.n2j_1 = logger;
|
|
437
|
+
this.o2j_1 = shared;
|
|
438
|
+
this.p2j_1 = strict;
|
|
439
439
|
}
|
|
440
440
|
protoOf(CompilerArguments).toString = function () {
|
|
441
|
-
return 'CompilerArguments(input=' + NonEmptySet__toString_impl_yfcj6n(this.
|
|
441
|
+
return 'CompilerArguments(input=' + NonEmptySet__toString_impl_yfcj6n(this.h2j_1) + ', output=' + toString(this.i2j_1) + ', emitters=' + NonEmptySet__toString_impl_yfcj6n(this.j2j_1) + ', writer=' + toString(this.k2j_1) + ', error=' + toString(this.l2j_1) + ', packageName=' + this.m2j_1.toString() + ', logger=' + toString(this.n2j_1) + ', shared=' + this.o2j_1 + ', strict=' + this.p2j_1 + ')';
|
|
442
442
|
};
|
|
443
443
|
protoOf(CompilerArguments).hashCode = function () {
|
|
444
|
-
var result = NonEmptySet__hashCode_impl_co6mds(this.
|
|
445
|
-
result = imul(result, 31) + hashCode(this.
|
|
446
|
-
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.
|
|
444
|
+
var result = NonEmptySet__hashCode_impl_co6mds(this.h2j_1);
|
|
445
|
+
result = imul(result, 31) + hashCode(this.i2j_1) | 0;
|
|
446
|
+
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.j2j_1) | 0;
|
|
447
|
+
result = imul(result, 31) + hashCode(this.k2j_1) | 0;
|
|
447
448
|
result = imul(result, 31) + hashCode(this.l2j_1) | 0;
|
|
448
449
|
result = imul(result, 31) + hashCode(this.m2j_1) | 0;
|
|
449
450
|
result = imul(result, 31) + hashCode(this.n2j_1) | 0;
|
|
450
|
-
result = imul(result, 31) +
|
|
451
|
+
result = imul(result, 31) + getBooleanHashCode(this.o2j_1) | 0;
|
|
451
452
|
result = imul(result, 31) + getBooleanHashCode(this.p2j_1) | 0;
|
|
452
|
-
result = imul(result, 31) + getBooleanHashCode(this.q2j_1) | 0;
|
|
453
453
|
return result;
|
|
454
454
|
};
|
|
455
455
|
protoOf(CompilerArguments).equals = function (other) {
|
|
@@ -458,11 +458,13 @@ protoOf(CompilerArguments).equals = function (other) {
|
|
|
458
458
|
if (!(other instanceof CompilerArguments))
|
|
459
459
|
return false;
|
|
460
460
|
var tmp0_other_with_cast = other instanceof CompilerArguments ? other : THROW_CCE();
|
|
461
|
-
if (!equals(new NonEmptySet(this.
|
|
461
|
+
if (!equals(new NonEmptySet(this.h2j_1), new NonEmptySet(tmp0_other_with_cast.h2j_1)))
|
|
462
462
|
return false;
|
|
463
|
-
if (!equals(this.
|
|
463
|
+
if (!equals(this.i2j_1, tmp0_other_with_cast.i2j_1))
|
|
464
464
|
return false;
|
|
465
|
-
if (!equals(new NonEmptySet(this.
|
|
465
|
+
if (!equals(new NonEmptySet(this.j2j_1), new NonEmptySet(tmp0_other_with_cast.j2j_1)))
|
|
466
|
+
return false;
|
|
467
|
+
if (!equals(this.k2j_1, tmp0_other_with_cast.k2j_1))
|
|
466
468
|
return false;
|
|
467
469
|
if (!equals(this.l2j_1, tmp0_other_with_cast.l2j_1))
|
|
468
470
|
return false;
|
|
@@ -470,40 +472,38 @@ protoOf(CompilerArguments).equals = function (other) {
|
|
|
470
472
|
return false;
|
|
471
473
|
if (!equals(this.n2j_1, tmp0_other_with_cast.n2j_1))
|
|
472
474
|
return false;
|
|
473
|
-
if (!
|
|
475
|
+
if (!(this.o2j_1 === tmp0_other_with_cast.o2j_1))
|
|
474
476
|
return false;
|
|
475
477
|
if (!(this.p2j_1 === tmp0_other_with_cast.p2j_1))
|
|
476
478
|
return false;
|
|
477
|
-
if (!(this.q2j_1 === tmp0_other_with_cast.q2j_1))
|
|
478
|
-
return false;
|
|
479
479
|
return true;
|
|
480
480
|
};
|
|
481
481
|
function ConverterArguments(format, input, output, emitters, writer, error, packageName, logger, shared, strict) {
|
|
482
|
-
this.
|
|
483
|
-
this.
|
|
484
|
-
this.
|
|
485
|
-
this.
|
|
486
|
-
this.
|
|
487
|
-
this.
|
|
488
|
-
this.
|
|
489
|
-
this.
|
|
490
|
-
this.
|
|
491
|
-
this.
|
|
482
|
+
this.u2j_1 = format;
|
|
483
|
+
this.v2j_1 = input;
|
|
484
|
+
this.w2j_1 = output;
|
|
485
|
+
this.x2j_1 = emitters;
|
|
486
|
+
this.y2j_1 = writer;
|
|
487
|
+
this.z2j_1 = error;
|
|
488
|
+
this.a2k_1 = packageName;
|
|
489
|
+
this.b2k_1 = logger;
|
|
490
|
+
this.c2k_1 = shared;
|
|
491
|
+
this.d2k_1 = strict;
|
|
492
492
|
}
|
|
493
493
|
protoOf(ConverterArguments).toString = function () {
|
|
494
|
-
return 'ConverterArguments(format=' + this.
|
|
494
|
+
return 'ConverterArguments(format=' + this.u2j_1.toString() + ', input=' + NonEmptySet__toString_impl_yfcj6n(this.v2j_1) + ', output=' + toString(this.w2j_1) + ', emitters=' + NonEmptySet__toString_impl_yfcj6n(this.x2j_1) + ', writer=' + toString(this.y2j_1) + ', error=' + toString(this.z2j_1) + ', packageName=' + this.a2k_1.toString() + ', logger=' + toString(this.b2k_1) + ', shared=' + this.c2k_1 + ', strict=' + this.d2k_1 + ')';
|
|
495
495
|
};
|
|
496
496
|
protoOf(ConverterArguments).hashCode = function () {
|
|
497
|
-
var result = this.
|
|
498
|
-
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.
|
|
499
|
-
result = imul(result, 31) + hashCode(this.
|
|
500
|
-
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.
|
|
497
|
+
var result = this.u2j_1.hashCode();
|
|
498
|
+
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.v2j_1) | 0;
|
|
499
|
+
result = imul(result, 31) + hashCode(this.w2j_1) | 0;
|
|
500
|
+
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.x2j_1) | 0;
|
|
501
|
+
result = imul(result, 31) + hashCode(this.y2j_1) | 0;
|
|
501
502
|
result = imul(result, 31) + hashCode(this.z2j_1) | 0;
|
|
502
503
|
result = imul(result, 31) + hashCode(this.a2k_1) | 0;
|
|
503
504
|
result = imul(result, 31) + hashCode(this.b2k_1) | 0;
|
|
504
|
-
result = imul(result, 31) +
|
|
505
|
+
result = imul(result, 31) + getBooleanHashCode(this.c2k_1) | 0;
|
|
505
506
|
result = imul(result, 31) + getBooleanHashCode(this.d2k_1) | 0;
|
|
506
|
-
result = imul(result, 31) + getBooleanHashCode(this.e2k_1) | 0;
|
|
507
507
|
return result;
|
|
508
508
|
};
|
|
509
509
|
protoOf(ConverterArguments).equals = function (other) {
|
|
@@ -512,13 +512,15 @@ protoOf(ConverterArguments).equals = function (other) {
|
|
|
512
512
|
if (!(other instanceof ConverterArguments))
|
|
513
513
|
return false;
|
|
514
514
|
var tmp0_other_with_cast = other instanceof ConverterArguments ? other : THROW_CCE();
|
|
515
|
-
if (!this.
|
|
515
|
+
if (!this.u2j_1.equals(tmp0_other_with_cast.u2j_1))
|
|
516
|
+
return false;
|
|
517
|
+
if (!equals(new NonEmptySet(this.v2j_1), new NonEmptySet(tmp0_other_with_cast.v2j_1)))
|
|
516
518
|
return false;
|
|
517
|
-
if (!equals(
|
|
519
|
+
if (!equals(this.w2j_1, tmp0_other_with_cast.w2j_1))
|
|
518
520
|
return false;
|
|
519
|
-
if (!equals(this.x2j_1, tmp0_other_with_cast.x2j_1))
|
|
521
|
+
if (!equals(new NonEmptySet(this.x2j_1), new NonEmptySet(tmp0_other_with_cast.x2j_1)))
|
|
520
522
|
return false;
|
|
521
|
-
if (!equals(
|
|
523
|
+
if (!equals(this.y2j_1, tmp0_other_with_cast.y2j_1))
|
|
522
524
|
return false;
|
|
523
525
|
if (!equals(this.z2j_1, tmp0_other_with_cast.z2j_1))
|
|
524
526
|
return false;
|
|
@@ -526,24 +528,22 @@ protoOf(ConverterArguments).equals = function (other) {
|
|
|
526
528
|
return false;
|
|
527
529
|
if (!equals(this.b2k_1, tmp0_other_with_cast.b2k_1))
|
|
528
530
|
return false;
|
|
529
|
-
if (!
|
|
531
|
+
if (!(this.c2k_1 === tmp0_other_with_cast.c2k_1))
|
|
530
532
|
return false;
|
|
531
533
|
if (!(this.d2k_1 === tmp0_other_with_cast.d2k_1))
|
|
532
534
|
return false;
|
|
533
|
-
if (!(this.e2k_1 === tmp0_other_with_cast.e2k_1))
|
|
534
|
-
return false;
|
|
535
535
|
return true;
|
|
536
536
|
};
|
|
537
537
|
function Source(name, content) {
|
|
538
|
-
this.
|
|
539
|
-
this.
|
|
538
|
+
this.q2j_1 = name;
|
|
539
|
+
this.r2j_1 = content;
|
|
540
540
|
}
|
|
541
541
|
protoOf(Source).toString = function () {
|
|
542
|
-
return 'Source(name=' + Name__toString_impl_61tomu(this.
|
|
542
|
+
return 'Source(name=' + Name__toString_impl_61tomu(this.q2j_1) + ', content=' + this.r2j_1 + ')';
|
|
543
543
|
};
|
|
544
544
|
protoOf(Source).hashCode = function () {
|
|
545
|
-
var result = Name__hashCode_impl_fpc861(this.
|
|
546
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
545
|
+
var result = Name__hashCode_impl_fpc861(this.q2j_1);
|
|
546
|
+
result = imul(result, 31) + getStringHashCode(this.r2j_1) | 0;
|
|
547
547
|
return result;
|
|
548
548
|
};
|
|
549
549
|
protoOf(Source).equals = function (other) {
|
|
@@ -552,9 +552,9 @@ protoOf(Source).equals = function (other) {
|
|
|
552
552
|
if (!(other instanceof Source))
|
|
553
553
|
return false;
|
|
554
554
|
var tmp0_other_with_cast = other instanceof Source ? other : THROW_CCE();
|
|
555
|
-
if (!(this.
|
|
555
|
+
if (!(this.q2j_1 === tmp0_other_with_cast.q2j_1))
|
|
556
556
|
return false;
|
|
557
|
-
if (!(this.
|
|
557
|
+
if (!(this.r2j_1 === tmp0_other_with_cast.r2j_1))
|
|
558
558
|
return false;
|
|
559
559
|
return true;
|
|
560
560
|
};
|
|
@@ -573,21 +573,21 @@ function SourcePath__hashCode_impl_up72k2($this) {
|
|
|
573
573
|
function SourcePath__equals_impl_mf6vea($this, other) {
|
|
574
574
|
if (!(other instanceof SourcePath))
|
|
575
575
|
return false;
|
|
576
|
-
if (!($this === (other instanceof SourcePath ? other.
|
|
576
|
+
if (!($this === (other instanceof SourcePath ? other.g2k_1 : THROW_CCE())))
|
|
577
577
|
return false;
|
|
578
578
|
return true;
|
|
579
579
|
}
|
|
580
580
|
function SourcePath(value) {
|
|
581
|
-
this.
|
|
581
|
+
this.g2k_1 = value;
|
|
582
582
|
}
|
|
583
583
|
protoOf(SourcePath).toString = function () {
|
|
584
|
-
return SourcePath__toString_impl_ikr2m7(this.
|
|
584
|
+
return SourcePath__toString_impl_ikr2m7(this.g2k_1);
|
|
585
585
|
};
|
|
586
586
|
protoOf(SourcePath).hashCode = function () {
|
|
587
|
-
return SourcePath__hashCode_impl_up72k2(this.
|
|
587
|
+
return SourcePath__hashCode_impl_up72k2(this.g2k_1);
|
|
588
588
|
};
|
|
589
589
|
protoOf(SourcePath).equals = function (other) {
|
|
590
|
-
return SourcePath__equals_impl_mf6vea(this.
|
|
590
|
+
return SourcePath__equals_impl_mf6vea(this.g2k_1, other);
|
|
591
591
|
};
|
|
592
592
|
function _DirectoryPath___init__impl__5bzkjd(value) {
|
|
593
593
|
return value;
|
|
@@ -604,28 +604,28 @@ function DirectoryPath__hashCode_impl_cv3skg($this) {
|
|
|
604
604
|
function DirectoryPath__equals_impl_c2rwsc($this, other) {
|
|
605
605
|
if (!(other instanceof DirectoryPath))
|
|
606
606
|
return false;
|
|
607
|
-
if (!($this === (other instanceof DirectoryPath ? other.
|
|
607
|
+
if (!($this === (other instanceof DirectoryPath ? other.h2k_1 : THROW_CCE())))
|
|
608
608
|
return false;
|
|
609
609
|
return true;
|
|
610
610
|
}
|
|
611
611
|
function DirectoryPath(value) {
|
|
612
|
-
this.
|
|
612
|
+
this.h2k_1 = value;
|
|
613
613
|
}
|
|
614
614
|
protoOf(DirectoryPath).toString = function () {
|
|
615
|
-
return DirectoryPath__toString_impl_ym9pdb(this.
|
|
615
|
+
return DirectoryPath__toString_impl_ym9pdb(this.h2k_1);
|
|
616
616
|
};
|
|
617
617
|
protoOf(DirectoryPath).hashCode = function () {
|
|
618
|
-
return DirectoryPath__hashCode_impl_cv3skg(this.
|
|
618
|
+
return DirectoryPath__hashCode_impl_cv3skg(this.h2k_1);
|
|
619
619
|
};
|
|
620
620
|
protoOf(DirectoryPath).equals = function (other) {
|
|
621
|
-
return DirectoryPath__equals_impl_c2rwsc(this.
|
|
621
|
+
return DirectoryPath__equals_impl_c2rwsc(this.h2k_1, other);
|
|
622
622
|
};
|
|
623
623
|
function Directory(path) {
|
|
624
|
-
this.
|
|
624
|
+
this.s2j_1 = path;
|
|
625
625
|
}
|
|
626
626
|
function Companion_1() {
|
|
627
627
|
}
|
|
628
|
-
protoOf(Companion_1).
|
|
628
|
+
protoOf(Companion_1).t2j = function (input) {
|
|
629
629
|
// Inline function 'kotlin.let' call
|
|
630
630
|
// Inline function 'community.flock.wirespec.plugin.io.Companion.invoke.<anonymous>' call
|
|
631
631
|
var it = split(input, ['/']);
|
|
@@ -644,7 +644,7 @@ protoOf(Companion_1).u2j = function (input) {
|
|
|
644
644
|
while (_iterator__ex2g4s.h()) {
|
|
645
645
|
var element = _iterator__ex2g4s.i();
|
|
646
646
|
// Inline function 'community.flock.wirespec.plugin.io.Companion.invoke.<anonymous>.<anonymous>' call
|
|
647
|
-
if (element.
|
|
647
|
+
if (element.u29_1 === ext) {
|
|
648
648
|
tmp$ret$5 = element;
|
|
649
649
|
break $l$block;
|
|
650
650
|
}
|
|
@@ -670,17 +670,17 @@ function Companion_getInstance_1() {
|
|
|
670
670
|
return Companion_instance_1;
|
|
671
671
|
}
|
|
672
672
|
function FilePath(directory, name, extension) {
|
|
673
|
-
this.
|
|
674
|
-
this.
|
|
675
|
-
this.
|
|
673
|
+
this.i2k_1 = directory;
|
|
674
|
+
this.j2k_1 = name;
|
|
675
|
+
this.k2k_1 = extension;
|
|
676
676
|
}
|
|
677
677
|
protoOf(FilePath).toString = function () {
|
|
678
|
-
return DirectoryPath__toString_impl_ym9pdb(this.
|
|
678
|
+
return DirectoryPath__toString_impl_ym9pdb(this.i2k_1) + '/' + _Name___get_value__impl__3tbxxy(this.j2k_1) + '.' + this.k2k_1.u29_1;
|
|
679
679
|
};
|
|
680
680
|
protoOf(FilePath).hashCode = function () {
|
|
681
|
-
var result = DirectoryPath__hashCode_impl_cv3skg(this.
|
|
682
|
-
result = imul(result, 31) + Name__hashCode_impl_fpc861(this.
|
|
683
|
-
result = imul(result, 31) + this.
|
|
681
|
+
var result = DirectoryPath__hashCode_impl_cv3skg(this.i2k_1);
|
|
682
|
+
result = imul(result, 31) + Name__hashCode_impl_fpc861(this.j2k_1) | 0;
|
|
683
|
+
result = imul(result, 31) + this.k2k_1.hashCode() | 0;
|
|
684
684
|
return result;
|
|
685
685
|
};
|
|
686
686
|
protoOf(FilePath).equals = function (other) {
|
|
@@ -689,11 +689,11 @@ protoOf(FilePath).equals = function (other) {
|
|
|
689
689
|
if (!(other instanceof FilePath))
|
|
690
690
|
return false;
|
|
691
691
|
var tmp0_other_with_cast = other instanceof FilePath ? other : THROW_CCE();
|
|
692
|
-
if (!(this.
|
|
692
|
+
if (!(this.i2k_1 === tmp0_other_with_cast.i2k_1))
|
|
693
693
|
return false;
|
|
694
|
-
if (!(this.
|
|
694
|
+
if (!(this.j2k_1 === tmp0_other_with_cast.j2k_1))
|
|
695
695
|
return false;
|
|
696
|
-
if (!this.
|
|
696
|
+
if (!this.k2k_1.equals(tmp0_other_with_cast.k2k_1))
|
|
697
697
|
return false;
|
|
698
698
|
return true;
|
|
699
699
|
};
|
|
@@ -712,13 +712,13 @@ function Name__hashCode_impl_fpc861($this) {
|
|
|
712
712
|
function path(_this__u8e3s4) {
|
|
713
713
|
var tmp;
|
|
714
714
|
if (_this__u8e3s4 instanceof SourcePath) {
|
|
715
|
-
tmp = _SourcePath___get_value__impl__3qmxh1(_this__u8e3s4.
|
|
715
|
+
tmp = _SourcePath___get_value__impl__3qmxh1(_this__u8e3s4.g2k_1);
|
|
716
716
|
} else {
|
|
717
717
|
if (_this__u8e3s4 instanceof DirectoryPath) {
|
|
718
|
-
tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.
|
|
718
|
+
tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.h2k_1);
|
|
719
719
|
} else {
|
|
720
720
|
if (_this__u8e3s4 instanceof FilePath) {
|
|
721
|
-
tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.
|
|
721
|
+
tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.i2k_1);
|
|
722
722
|
} else {
|
|
723
723
|
noWhenBranchMatchedException();
|
|
724
724
|
}
|
|
@@ -727,7 +727,7 @@ function path(_this__u8e3s4) {
|
|
|
727
727
|
return tmp;
|
|
728
728
|
}
|
|
729
729
|
function IOError(message) {
|
|
730
|
-
this.
|
|
730
|
+
this.l2k_1 = message;
|
|
731
731
|
}
|
|
732
732
|
function WirespecFileError() {
|
|
733
733
|
SpecificFile.call(this, FileExtension_Wirespec_getInstance());
|
|
@@ -763,7 +763,7 @@ function getFullPath(input, createIfNotExists_0) {
|
|
|
763
763
|
tmp_0 = new SourcePath(_SourcePath___init__impl__vbnish(substringAfter(input, 'classpath:')));
|
|
764
764
|
} else {
|
|
765
765
|
var path = createIfNotExists(Path(input), createIfNotExists_0);
|
|
766
|
-
var tmp0_elvis_lhs = get_SystemFileSystem().
|
|
766
|
+
var tmp0_elvis_lhs = get_SystemFileSystem().s2i(path);
|
|
767
767
|
var tmp_1;
|
|
768
768
|
if (tmp0_elvis_lhs == null) {
|
|
769
769
|
raise.kl(new CannotAccessFileOrDirectory(input));
|
|
@@ -773,10 +773,10 @@ function getFullPath(input, createIfNotExists_0) {
|
|
|
773
773
|
var meta = tmp_1;
|
|
774
774
|
var pathString = path.toString();
|
|
775
775
|
var tmp_2;
|
|
776
|
-
if (meta.
|
|
776
|
+
if (meta.v2i_1) {
|
|
777
777
|
tmp_2 = new DirectoryPath(_DirectoryPath___init__impl__5bzkjd(pathString));
|
|
778
|
-
} else if (meta.
|
|
779
|
-
tmp_2 = Companion_instance_1.
|
|
778
|
+
} else if (meta.u2i_1) {
|
|
779
|
+
tmp_2 = Companion_instance_1.t2j(pathString);
|
|
780
780
|
} else {
|
|
781
781
|
raise.kl(new IsNotAFileOrDirectory(pathString));
|
|
782
782
|
}
|
|
@@ -819,7 +819,7 @@ function or(_this__u8e3s4, errorFn) {
|
|
|
819
819
|
tmp = _this__u8e3s4.pk_1;
|
|
820
820
|
} else {
|
|
821
821
|
if (_this__u8e3s4 instanceof Left) {
|
|
822
|
-
errorFn(_this__u8e3s4.jk_1.
|
|
822
|
+
errorFn(_this__u8e3s4.jk_1.l2k_1);
|
|
823
823
|
tmp = throwKotlinNothingValueException();
|
|
824
824
|
} else {
|
|
825
825
|
noWhenBranchMatchedException();
|
|
@@ -838,11 +838,11 @@ function wirespecSources(_this__u8e3s4) {
|
|
|
838
838
|
try {
|
|
839
839
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
840
840
|
// Inline function 'community.flock.wirespec.plugin.io.wirespecSources.<anonymous>' call
|
|
841
|
-
var tmp0 = Path(_DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.
|
|
841
|
+
var tmp0 = Path(_DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.s2j_1));
|
|
842
842
|
// Inline function 'kotlin.let' call
|
|
843
843
|
// Inline function 'community.flock.wirespec.plugin.io.wirespecSources.<anonymous>.stub_for_inlining' call
|
|
844
844
|
// Inline function 'kotlin.collections.filter' call
|
|
845
|
-
var tmp0_0 = get_SystemFileSystem().
|
|
845
|
+
var tmp0_0 = get_SystemFileSystem().t2i(tmp0);
|
|
846
846
|
// Inline function 'kotlin.collections.filterTo' call
|
|
847
847
|
var destination = ArrayList_init_$Create$_0();
|
|
848
848
|
var _iterator__ex2g4s = tmp0_0.g();
|
|
@@ -871,7 +871,7 @@ function wirespecSources(_this__u8e3s4) {
|
|
|
871
871
|
while (_iterator__ex2g4s_1.h()) {
|
|
872
872
|
var item = _iterator__ex2g4s_1.i();
|
|
873
873
|
// Inline function 'community.flock.wirespec.plugin.io.wirespecSources.<anonymous>.<anonymous>' call
|
|
874
|
-
var tmp$ret$8 = to(Companion_instance_1.
|
|
874
|
+
var tmp$ret$8 = to(Companion_instance_1.t2j(item.toString()), readString(buffered(get_SystemFileSystem().p2i(item))));
|
|
875
875
|
destination_1.e(tmp$ret$8);
|
|
876
876
|
}
|
|
877
877
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -883,7 +883,7 @@ function wirespecSources(_this__u8e3s4) {
|
|
|
883
883
|
// Inline function 'community.flock.wirespec.plugin.io.wirespecSources.<anonymous>.<anonymous>' call
|
|
884
884
|
var path = item_0.yd();
|
|
885
885
|
var source = item_0.zd();
|
|
886
|
-
var tmp$ret$11 = new Source(path.
|
|
886
|
+
var tmp$ret$11 = new Source(path.j2k_1, source);
|
|
887
887
|
destination_2.e(tmp$ret$11);
|
|
888
888
|
}
|
|
889
889
|
var tmp0_elvis_lhs = toNonEmptySetOrNull(destination_2);
|
|
@@ -923,7 +923,7 @@ function read(_this__u8e3s4) {
|
|
|
923
923
|
// Inline function 'kotlin.let' call
|
|
924
924
|
// Inline function 'community.flock.wirespec.plugin.io.read.<anonymous>' call
|
|
925
925
|
var it = Path(_this__u8e3s4.toString());
|
|
926
|
-
return readString(buffered(get_SystemFileSystem().
|
|
926
|
+
return readString(buffered(get_SystemFileSystem().p2i(it)));
|
|
927
927
|
}
|
|
928
928
|
function getOutPutPath(inputPath, output) {
|
|
929
929
|
// Inline function 'arrow.core.raise.either' call
|
|
@@ -942,7 +942,7 @@ function getOutPutPath(inputPath, output) {
|
|
|
942
942
|
tmp_0 = _DirectoryPath___init__impl__5bzkjd(path(inputPath) + '/out');
|
|
943
943
|
} else {
|
|
944
944
|
if (it instanceof DirectoryPath) {
|
|
945
|
-
tmp_0 = it.
|
|
945
|
+
tmp_0 = it.h2k_1;
|
|
946
946
|
} else {
|
|
947
947
|
var tmp_1;
|
|
948
948
|
if (it instanceof FilePath) {
|
|
@@ -986,7 +986,7 @@ function write(_this__u8e3s4, string) {
|
|
|
986
986
|
// Inline function 'kotlin.also' call
|
|
987
987
|
var this_0 = Path(_this__u8e3s4.toString());
|
|
988
988
|
// Inline function 'community.flock.wirespec.plugin.io.write.<anonymous>' call
|
|
989
|
-
var tmp0_safe_receiver = this_0.
|
|
989
|
+
var tmp0_safe_receiver = this_0.y2i();
|
|
990
990
|
if (tmp0_safe_receiver == null)
|
|
991
991
|
null;
|
|
992
992
|
else
|
|
@@ -994,7 +994,7 @@ function write(_this__u8e3s4, string) {
|
|
|
994
994
|
// Inline function 'kotlin.let' call
|
|
995
995
|
// Inline function 'community.flock.wirespec.plugin.io.write.<anonymous>' call
|
|
996
996
|
// Inline function 'kotlin.apply' call
|
|
997
|
-
var this_1 = buffered_0(get_SystemFileSystem().
|
|
997
|
+
var this_1 = buffered_0(get_SystemFileSystem().r2i(this_0));
|
|
998
998
|
// Inline function 'community.flock.wirespec.plugin.io.write.<anonymous>.<anonymous>' call
|
|
999
999
|
writeString(this_1, string);
|
|
1000
1000
|
this_1.r8();
|
|
@@ -1004,17 +1004,17 @@ function createIfNotExists(_this__u8e3s4, create) {
|
|
|
1004
1004
|
create = create === VOID ? true : create;
|
|
1005
1005
|
// Inline function 'kotlin.also' call
|
|
1006
1006
|
// Inline function 'community.flock.wirespec.plugin.io.createIfNotExists.<anonymous>' call
|
|
1007
|
-
if (create && !get_SystemFileSystem().
|
|
1008
|
-
get_SystemFileSystem().
|
|
1007
|
+
if (create && !get_SystemFileSystem().n2i(_this__u8e3s4)) {
|
|
1008
|
+
get_SystemFileSystem().o2i(_this__u8e3s4, true);
|
|
1009
1009
|
}
|
|
1010
1010
|
return _this__u8e3s4;
|
|
1011
1011
|
}
|
|
1012
1012
|
function isWirespecFile(path) {
|
|
1013
|
-
return get_extension(path) === FileExtension_Wirespec_getInstance().
|
|
1013
|
+
return get_extension(path) === FileExtension_Wirespec_getInstance().u29_1;
|
|
1014
1014
|
}
|
|
1015
1015
|
function isRegularFile(path) {
|
|
1016
|
-
var tmp0_safe_receiver = get_SystemFileSystem().
|
|
1017
|
-
return (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1016
|
+
var tmp0_safe_receiver = get_SystemFileSystem().s2i(path);
|
|
1017
|
+
return (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.u2i_1) === true;
|
|
1018
1018
|
}
|
|
1019
1019
|
function get_extension(_this__u8e3s4) {
|
|
1020
1020
|
return substringAfterLast(_this__u8e3s4.s2(), _Char___init__impl__6a9atx(46), '');
|