@flock/wirespec 0.20.0-RC.9 → 0.20.2
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-atomic.mjs +12 -12
- package/arrow-arrow-core.mjs +163 -163
- package/clikt-clikt-mordant.mjs +80 -80
- package/clikt-clikt-mordant.mjs.map +1 -1
- package/clikt-clikt.mjs +1575 -1575
- package/clikt-clikt.mjs.map +1 -1
- package/colormath-root-colormath.mjs +444 -444
- package/kotlin-kotlin-stdlib.mjs +2007 -1954
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +10261 -10261
- package/kotlin-rgxgen.mjs +1819 -1819
- package/kotlinx-io-kotlinx-io-core.mjs +440 -440
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1887 -1887
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1577 -1577
- package/mordant-mordant.mjs +1363 -1363
- package/package.json +2 -2
- package/wirespec-src-compiler-core.mjs +1768 -2207
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-java.mjs +381 -1251
- package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-kotlin.mjs +366 -1065
- package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-python.mjs +397 -1419
- package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-rust.mjs +405 -403
- package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-scala.mjs +214 -189
- package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-typescript.mjs +526 -1406
- package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-wirespec.mjs +92 -86
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-ir.mjs +4116 -4307
- package/wirespec-src-compiler-ir.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +250 -1120
- package/wirespec-src-compiler-lib.mjs.map +1 -1
- package/wirespec-src-converter-avro.mjs +512 -512
- package/wirespec-src-converter-avro.mjs.map +1 -1
- package/wirespec-src-converter-openapi.mjs +756 -756
- package/wirespec-src-converter-openapi.mjs.map +1 -1
- package/wirespec-src-ide-lsp.mjs +1411 -1396
- package/wirespec-src-ide-lsp.mjs.map +1 -1
- package/wirespec-src-plugin-arguments.mjs +185 -245
- package/wirespec-src-plugin-arguments.mjs.map +1 -1
- package/wirespec-src-plugin-cli.mjs +102 -128
- package/wirespec-src-plugin-cli.mjs.map +1 -1
- package/wirespec-src-plugin-npm.d.mts +0 -104
- package/wirespec-src-plugin-npm.mjs +40 -40
- package/wirespec-src-plugin-npm.mjs.map +1 -1
- package/wirespec-src-tools-generator.mjs +34 -34
- package/wirespec-src-tools-generator.mjs.map +1 -1
|
@@ -33,24 +33,12 @@ import {
|
|
|
33
33
|
_Char___init__impl__6a9atx1csff5kwtduxl as _Char___init__impl__6a9atx,
|
|
34
34
|
substringAfterLast3r0t0my8cpqhk as substringAfterLast,
|
|
35
35
|
} from './kotlin-kotlin-stdlib.mjs';
|
|
36
|
-
import {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
} from './wirespec-src-compiler-emitters-java.mjs';
|
|
40
|
-
import {
|
|
41
|
-
KotlinIrEmitterbehcpsqpuupy as KotlinIrEmitter,
|
|
42
|
-
KotlinEmitterddb8247fx90i as KotlinEmitter,
|
|
43
|
-
} from './wirespec-src-compiler-emitters-kotlin.mjs';
|
|
44
|
-
import {
|
|
45
|
-
PythonIrEmittergogj1wcisct7 as PythonIrEmitter,
|
|
46
|
-
PythonEmitter2pjclp0u1gkmn as PythonEmitter,
|
|
47
|
-
} from './wirespec-src-compiler-emitters-python.mjs';
|
|
36
|
+
import { JavaIrEmittereoab4zj7i4gq as JavaIrEmitter } from './wirespec-src-compiler-emitters-java.mjs';
|
|
37
|
+
import { KotlinIrEmitterbehcpsqpuupy as KotlinIrEmitter } from './wirespec-src-compiler-emitters-kotlin.mjs';
|
|
38
|
+
import { PythonIrEmittergogj1wcisct7 as PythonIrEmitter } from './wirespec-src-compiler-emitters-python.mjs';
|
|
48
39
|
import { RustIrEmitterluw00jp360tz as RustIrEmitter } from './wirespec-src-compiler-emitters-rust.mjs';
|
|
49
40
|
import { ScalaIrEmitterytuwlk19c8ah as ScalaIrEmitter } from './wirespec-src-compiler-emitters-scala.mjs';
|
|
50
|
-
import {
|
|
51
|
-
TypeScriptIrEmitter3q01omscsvyj9 as TypeScriptIrEmitter,
|
|
52
|
-
TypeScriptEmitter1b8xo1btx35xi as TypeScriptEmitter,
|
|
53
|
-
} from './wirespec-src-compiler-emitters-typescript.mjs';
|
|
41
|
+
import { TypeScriptIrEmitter3q01omscsvyj9 as TypeScriptIrEmitter } from './wirespec-src-compiler-emitters-typescript.mjs';
|
|
54
42
|
import { WirespecEmitter2ad9je4ecrvjk as WirespecEmitter } from './wirespec-src-compiler-emitters-wirespec.mjs';
|
|
55
43
|
import {
|
|
56
44
|
OpenAPIV2Emitter_getInstance102n45c081e7p as OpenAPIV2Emitter_getInstance,
|
|
@@ -179,7 +167,7 @@ var Language_OpenAPIV3_instance;
|
|
|
179
167
|
var Language_Avro_instance;
|
|
180
168
|
function Companion_0() {
|
|
181
169
|
}
|
|
182
|
-
protoOf(Companion_0).
|
|
170
|
+
protoOf(Companion_0).n4b = function () {
|
|
183
171
|
// Inline function 'kotlin.collections.associateBy' call
|
|
184
172
|
var this_0 = get_entries_1();
|
|
185
173
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
@@ -188,8 +176,8 @@ protoOf(Companion_0).a4e = function () {
|
|
|
188
176
|
var _iterator__ex2g4s = this_0.t();
|
|
189
177
|
while (_iterator__ex2g4s.u()) {
|
|
190
178
|
var element = _iterator__ex2g4s.v();
|
|
191
|
-
var tmp$ret$0 = element.
|
|
192
|
-
destination.
|
|
179
|
+
var tmp$ret$0 = element.b3_1;
|
|
180
|
+
destination.t2(tmp$ret$0, element);
|
|
193
181
|
}
|
|
194
182
|
return destination;
|
|
195
183
|
};
|
|
@@ -228,9 +216,9 @@ var $ENTRIES_0;
|
|
|
228
216
|
function Language(name, ordinal) {
|
|
229
217
|
Enum.call(this, name, ordinal);
|
|
230
218
|
}
|
|
231
|
-
function
|
|
219
|
+
function toEmitter(_this__u8e3s4, packageName, emitShared) {
|
|
232
220
|
var tmp;
|
|
233
|
-
switch (_this__u8e3s4.
|
|
221
|
+
switch (_this__u8e3s4.c3_1) {
|
|
234
222
|
case 0:
|
|
235
223
|
tmp = new JavaIrEmitter(packageName, emitShared);
|
|
236
224
|
break;
|
|
@@ -267,45 +255,6 @@ function toIrEmitter(_this__u8e3s4, packageName, emitShared) {
|
|
|
267
255
|
}
|
|
268
256
|
return tmp;
|
|
269
257
|
}
|
|
270
|
-
function toEmitter(_this__u8e3s4, packageName, emitShared) {
|
|
271
|
-
var tmp;
|
|
272
|
-
switch (_this__u8e3s4.b3_1) {
|
|
273
|
-
case 0:
|
|
274
|
-
tmp = new JavaEmitter(packageName, emitShared);
|
|
275
|
-
break;
|
|
276
|
-
case 1:
|
|
277
|
-
tmp = new KotlinEmitter(packageName, emitShared);
|
|
278
|
-
break;
|
|
279
|
-
case 3:
|
|
280
|
-
tmp = new PythonEmitter(packageName, emitShared);
|
|
281
|
-
break;
|
|
282
|
-
case 4:
|
|
283
|
-
tmp = new RustIrEmitter(packageName, emitShared);
|
|
284
|
-
break;
|
|
285
|
-
case 5:
|
|
286
|
-
tmp = new ScalaIrEmitter(packageName, emitShared);
|
|
287
|
-
break;
|
|
288
|
-
case 2:
|
|
289
|
-
tmp = new TypeScriptEmitter();
|
|
290
|
-
break;
|
|
291
|
-
case 6:
|
|
292
|
-
tmp = new WirespecEmitter();
|
|
293
|
-
break;
|
|
294
|
-
case 7:
|
|
295
|
-
tmp = OpenAPIV2Emitter_getInstance();
|
|
296
|
-
break;
|
|
297
|
-
case 8:
|
|
298
|
-
tmp = OpenAPIV3Emitter_getInstance();
|
|
299
|
-
break;
|
|
300
|
-
case 9:
|
|
301
|
-
tmp = AvroJsonEmitter_getInstance();
|
|
302
|
-
break;
|
|
303
|
-
default:
|
|
304
|
-
noWhenBranchMatchedException();
|
|
305
|
-
break;
|
|
306
|
-
}
|
|
307
|
-
return tmp;
|
|
308
|
-
}
|
|
309
258
|
function Language_Java_getInstance() {
|
|
310
259
|
Language_initEntries();
|
|
311
260
|
return Language_Java_instance;
|
|
@@ -348,11 +297,11 @@ function Language_Avro_getInstance() {
|
|
|
348
297
|
}
|
|
349
298
|
function compile_0(arguments_0) {
|
|
350
299
|
var ctx = new compile$ctx$1(arguments_0);
|
|
351
|
-
fold(compile(ctx, NonEmptySet__map_impl_ngjswd(arguments_0.
|
|
300
|
+
fold(compile(ctx, NonEmptySet__map_impl_ngjswd(arguments_0.o4b_1, compile$lambda)), arguments_0);
|
|
352
301
|
}
|
|
353
302
|
function convert(arguments_0) {
|
|
354
303
|
var tmp;
|
|
355
|
-
switch (arguments_0.
|
|
304
|
+
switch (arguments_0.w4b_1.c3_1) {
|
|
356
305
|
case 0:
|
|
357
306
|
tmp = OpenAPIV2Parser_instance;
|
|
358
307
|
break;
|
|
@@ -367,9 +316,9 @@ function convert(arguments_0) {
|
|
|
367
316
|
break;
|
|
368
317
|
}
|
|
369
318
|
var parser = tmp;
|
|
370
|
-
var options = new ParseOptions(arguments_0.
|
|
319
|
+
var options = new ParseOptions(arguments_0.e4c_1);
|
|
371
320
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
372
|
-
var this_0 = NonEmptySet__map_impl_ngjswd(arguments_0.
|
|
321
|
+
var this_0 = NonEmptySet__map_impl_ngjswd(arguments_0.x4b_1, convert$lambda);
|
|
373
322
|
// Inline function 'kotlin.collections.map' call
|
|
374
323
|
var this_1 = _NonEmptyList___get_all__impl__pmf509(this_0);
|
|
375
324
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -377,7 +326,7 @@ function convert(arguments_0) {
|
|
|
377
326
|
var _iterator__ex2g4s = this_1.t();
|
|
378
327
|
while (_iterator__ex2g4s.u()) {
|
|
379
328
|
var item = _iterator__ex2g4s.v();
|
|
380
|
-
var tmp$ret$0 = parser.
|
|
329
|
+
var tmp$ret$0 = parser.z45(item, arguments_0.e4c_1);
|
|
381
330
|
destination.x(tmp$ret$0);
|
|
382
331
|
}
|
|
383
332
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
@@ -389,7 +338,7 @@ function convert(arguments_0) {
|
|
|
389
338
|
var _iterator__ex2g4s_0 = this_3.t();
|
|
390
339
|
while (_iterator__ex2g4s_0.u()) {
|
|
391
340
|
var item_0 = _iterator__ex2g4s_0.v();
|
|
392
|
-
var tmp$ret$4 = Validator_instance.
|
|
341
|
+
var tmp$ret$4 = Validator_instance.gt(options, item_0);
|
|
393
342
|
destination_0.x(tmp$ret$4);
|
|
394
343
|
}
|
|
395
344
|
// Inline function 'kotlin.let' call
|
|
@@ -400,20 +349,20 @@ function convert(arguments_0) {
|
|
|
400
349
|
var raise = new DefaultRaise(false);
|
|
401
350
|
var tmp_0;
|
|
402
351
|
try {
|
|
403
|
-
var res = new NonEmptyList(raise.
|
|
404
|
-
raise.
|
|
352
|
+
var res = new NonEmptyList(raise.fn(it));
|
|
353
|
+
raise.wm();
|
|
405
354
|
tmp_0 = new Right(res);
|
|
406
355
|
} catch ($p) {
|
|
407
356
|
var tmp_1;
|
|
408
357
|
if ($p instanceof RaiseCancellationException) {
|
|
409
358
|
var e = $p;
|
|
410
|
-
raise.
|
|
359
|
+
raise.wm();
|
|
411
360
|
var it_0 = raisedOrRethrow(e, raise);
|
|
412
361
|
tmp_1 = new Left(it_0);
|
|
413
362
|
} else {
|
|
414
363
|
if ($p instanceof Error) {
|
|
415
364
|
var e_0 = $p;
|
|
416
|
-
raise.
|
|
365
|
+
raise.wm();
|
|
417
366
|
throw nonFatalOrThrow(e_0);
|
|
418
367
|
} else {
|
|
419
368
|
throw $p;
|
|
@@ -427,7 +376,7 @@ function convert(arguments_0) {
|
|
|
427
376
|
var tmp_2;
|
|
428
377
|
if (this_4 instanceof Right) {
|
|
429
378
|
// Inline function 'arrow.core.NonEmptyList.flatMap' call
|
|
430
|
-
var this_5 = this_4.
|
|
379
|
+
var this_5 = this_4.om_1.xm_1;
|
|
431
380
|
// Inline function 'kotlin.collections.flatMap' call
|
|
432
381
|
var tmp0 = _NonEmptyList___get_all__impl__pmf509(this_5);
|
|
433
382
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -435,7 +384,7 @@ function convert(arguments_0) {
|
|
|
435
384
|
var _iterator__ex2g4s_1 = tmp0.t();
|
|
436
385
|
while (_iterator__ex2g4s_1.u()) {
|
|
437
386
|
var element = _iterator__ex2g4s_1.v();
|
|
438
|
-
var list = new NonEmptyList(NonEmptySet__flatMap_impl_ovm5jg(arguments_0.
|
|
387
|
+
var list = new NonEmptyList(NonEmptySet__flatMap_impl_ovm5jg(arguments_0.y4b_1, convert$lambda_0(element, arguments_0)));
|
|
439
388
|
addAll(destination_1, list);
|
|
440
389
|
}
|
|
441
390
|
var tmp$ret$19 = _NonEmptyList___init__impl__fxd0xp(destination_1);
|
|
@@ -456,7 +405,7 @@ function fold(_this__u8e3s4, arguments_0) {
|
|
|
456
405
|
var tmp;
|
|
457
406
|
if (_this__u8e3s4 instanceof Left) {
|
|
458
407
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
459
|
-
var this_0 = _this__u8e3s4.
|
|
408
|
+
var this_0 = _this__u8e3s4.mm_1.xm_1;
|
|
460
409
|
// Inline function 'kotlin.collections.map' call
|
|
461
410
|
var this_1 = _NonEmptyList___get_all__impl__pmf509(this_0);
|
|
462
411
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -472,7 +421,7 @@ function fold(_this__u8e3s4, arguments_0) {
|
|
|
472
421
|
tmp = new Left(tmp$ret$4);
|
|
473
422
|
} else {
|
|
474
423
|
if (_this__u8e3s4 instanceof Right) {
|
|
475
|
-
tmp = new Right(_this__u8e3s4.
|
|
424
|
+
tmp = new Right(_this__u8e3s4.om_1);
|
|
476
425
|
} else {
|
|
477
426
|
noWhenBranchMatchedException();
|
|
478
427
|
}
|
|
@@ -481,25 +430,25 @@ function fold(_this__u8e3s4, arguments_0) {
|
|
|
481
430
|
var this_2 = tmp;
|
|
482
431
|
var tmp_0;
|
|
483
432
|
if (this_2 instanceof Left) {
|
|
484
|
-
var it = this_2.
|
|
433
|
+
var it = this_2.mm_1.xm_1;
|
|
485
434
|
var tmp$ret$6 = joinToString(new NonEmptyList(it));
|
|
486
435
|
tmp_0 = new Left(tmp$ret$6);
|
|
487
436
|
} else {
|
|
488
437
|
if (this_2 instanceof Right) {
|
|
489
|
-
tmp_0 = new Right(this_2.
|
|
438
|
+
tmp_0 = new Right(this_2.om_1);
|
|
490
439
|
} else {
|
|
491
440
|
noWhenBranchMatchedException();
|
|
492
441
|
}
|
|
493
442
|
}
|
|
494
443
|
var tmp0 = tmp_0;
|
|
495
|
-
var tmp2 = arguments_0.
|
|
444
|
+
var tmp2 = arguments_0.px();
|
|
496
445
|
// Inline function 'arrow.core.Either.fold' call
|
|
497
|
-
var ifRight = arguments_0.
|
|
446
|
+
var ifRight = arguments_0.f4c();
|
|
498
447
|
if (tmp0 instanceof Right)
|
|
499
|
-
ifRight(tmp0.
|
|
448
|
+
ifRight(tmp0.om_1);
|
|
500
449
|
else {
|
|
501
450
|
if (tmp0 instanceof Left)
|
|
502
|
-
tmp2(tmp0.
|
|
451
|
+
tmp2(tmp0.mm_1);
|
|
503
452
|
else {
|
|
504
453
|
noWhenBranchMatchedException();
|
|
505
454
|
}
|
|
@@ -507,56 +456,54 @@ function fold(_this__u8e3s4, arguments_0) {
|
|
|
507
456
|
return Unit_instance;
|
|
508
457
|
}
|
|
509
458
|
function compile$ctx$1($arguments) {
|
|
510
|
-
this.
|
|
511
|
-
this.
|
|
459
|
+
this.g4c_1 = $arguments.t4b_1;
|
|
460
|
+
this.h4c_1 = $arguments.p4b_1;
|
|
512
461
|
}
|
|
513
|
-
protoOf(compile$ctx$1).
|
|
514
|
-
return this.
|
|
462
|
+
protoOf(compile$ctx$1).go = function () {
|
|
463
|
+
return this.g4c_1;
|
|
515
464
|
};
|
|
516
|
-
protoOf(compile$ctx$1).
|
|
517
|
-
return this.
|
|
465
|
+
protoOf(compile$ctx$1).mo = function () {
|
|
466
|
+
return this.h4c_1;
|
|
518
467
|
};
|
|
519
468
|
function compile$lambda(it) {
|
|
520
|
-
return new ModuleContent(new FileUri(_Name___get_value__impl__3tbxxy(it.
|
|
469
|
+
return new ModuleContent(new FileUri(_Name___get_value__impl__3tbxxy(it.i4c_1)), it.j4c_1);
|
|
521
470
|
}
|
|
522
471
|
function convert$lambda(it) {
|
|
523
|
-
return new ModuleContent(new FileUri(_Name___get_value__impl__3tbxxy(it.
|
|
472
|
+
return new ModuleContent(new FileUri(_Name___get_value__impl__3tbxxy(it.i4c_1)), it.j4c_1);
|
|
524
473
|
}
|
|
525
474
|
function convert$lambda_0($ast, $arguments) {
|
|
526
475
|
return function (it) {
|
|
527
|
-
return new NonEmptyList(it.
|
|
476
|
+
return new NonEmptyList(it.no($ast, $arguments.c4c_1));
|
|
528
477
|
};
|
|
529
478
|
}
|
|
530
|
-
function CompilerArguments(input, emitters, writer, error, packageName, logger, shared, strict
|
|
531
|
-
this.
|
|
532
|
-
this.
|
|
533
|
-
this.
|
|
534
|
-
this.
|
|
535
|
-
this.
|
|
536
|
-
this.
|
|
537
|
-
this.
|
|
538
|
-
this.
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
return this.d4e_1;
|
|
479
|
+
function CompilerArguments(input, emitters, writer, error, packageName, logger, shared, strict) {
|
|
480
|
+
this.o4b_1 = input;
|
|
481
|
+
this.p4b_1 = emitters;
|
|
482
|
+
this.q4b_1 = writer;
|
|
483
|
+
this.r4b_1 = error;
|
|
484
|
+
this.s4b_1 = packageName;
|
|
485
|
+
this.t4b_1 = logger;
|
|
486
|
+
this.u4b_1 = shared;
|
|
487
|
+
this.v4b_1 = strict;
|
|
488
|
+
}
|
|
489
|
+
protoOf(CompilerArguments).f4c = function () {
|
|
490
|
+
return this.q4b_1;
|
|
543
491
|
};
|
|
544
|
-
protoOf(CompilerArguments).
|
|
545
|
-
return this.
|
|
492
|
+
protoOf(CompilerArguments).px = function () {
|
|
493
|
+
return this.r4b_1;
|
|
546
494
|
};
|
|
547
495
|
protoOf(CompilerArguments).toString = function () {
|
|
548
|
-
return 'CompilerArguments(input=' + NonEmptySet__toString_impl_yfcj6n(this.
|
|
496
|
+
return 'CompilerArguments(input=' + NonEmptySet__toString_impl_yfcj6n(this.o4b_1) + ', emitters=' + NonEmptySet__toString_impl_yfcj6n(this.p4b_1) + ', writer=' + toString(this.q4b_1) + ', error=' + toString(this.r4b_1) + ', packageName=' + this.s4b_1.toString() + ', logger=' + toString(this.t4b_1) + ', shared=' + this.u4b_1 + ', strict=' + this.v4b_1 + ')';
|
|
549
497
|
};
|
|
550
498
|
protoOf(CompilerArguments).hashCode = function () {
|
|
551
|
-
var result = NonEmptySet__hashCode_impl_co6mds(this.
|
|
552
|
-
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.
|
|
553
|
-
result = imul(result, 31) + hashCode(this.
|
|
554
|
-
result = imul(result, 31) + hashCode(this.
|
|
555
|
-
result = imul(result, 31) + hashCode(this.
|
|
556
|
-
result = imul(result, 31) + hashCode(this.
|
|
557
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
558
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
559
|
-
result = imul(result, 31) + getBooleanHashCode(this.j4e_1) | 0;
|
|
499
|
+
var result = NonEmptySet__hashCode_impl_co6mds(this.o4b_1);
|
|
500
|
+
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.p4b_1) | 0;
|
|
501
|
+
result = imul(result, 31) + hashCode(this.q4b_1) | 0;
|
|
502
|
+
result = imul(result, 31) + hashCode(this.r4b_1) | 0;
|
|
503
|
+
result = imul(result, 31) + hashCode(this.s4b_1) | 0;
|
|
504
|
+
result = imul(result, 31) + hashCode(this.t4b_1) | 0;
|
|
505
|
+
result = imul(result, 31) + getBooleanHashCode(this.u4b_1) | 0;
|
|
506
|
+
result = imul(result, 31) + getBooleanHashCode(this.v4b_1) | 0;
|
|
560
507
|
return result;
|
|
561
508
|
};
|
|
562
509
|
protoOf(CompilerArguments).equals = function (other) {
|
|
@@ -564,58 +511,54 @@ protoOf(CompilerArguments).equals = function (other) {
|
|
|
564
511
|
return true;
|
|
565
512
|
if (!(other instanceof CompilerArguments))
|
|
566
513
|
return false;
|
|
567
|
-
if (!equals(new NonEmptySet(this.
|
|
514
|
+
if (!equals(new NonEmptySet(this.o4b_1), new NonEmptySet(other.o4b_1)))
|
|
568
515
|
return false;
|
|
569
|
-
if (!equals(new NonEmptySet(this.
|
|
516
|
+
if (!equals(new NonEmptySet(this.p4b_1), new NonEmptySet(other.p4b_1)))
|
|
570
517
|
return false;
|
|
571
|
-
if (!equals(this.
|
|
518
|
+
if (!equals(this.q4b_1, other.q4b_1))
|
|
572
519
|
return false;
|
|
573
|
-
if (!equals(this.
|
|
520
|
+
if (!equals(this.r4b_1, other.r4b_1))
|
|
574
521
|
return false;
|
|
575
|
-
if (!equals(this.
|
|
522
|
+
if (!equals(this.s4b_1, other.s4b_1))
|
|
576
523
|
return false;
|
|
577
|
-
if (!equals(this.
|
|
524
|
+
if (!equals(this.t4b_1, other.t4b_1))
|
|
578
525
|
return false;
|
|
579
|
-
if (!(this.
|
|
526
|
+
if (!(this.u4b_1 === other.u4b_1))
|
|
580
527
|
return false;
|
|
581
|
-
if (!(this.
|
|
582
|
-
return false;
|
|
583
|
-
if (!(this.j4e_1 === other.j4e_1))
|
|
528
|
+
if (!(this.v4b_1 === other.v4b_1))
|
|
584
529
|
return false;
|
|
585
530
|
return true;
|
|
586
531
|
};
|
|
587
|
-
function ConverterArguments(format, input, emitters, writer, error, packageName, logger, shared, strict
|
|
588
|
-
this.
|
|
589
|
-
this.
|
|
590
|
-
this.
|
|
591
|
-
this.
|
|
592
|
-
this.
|
|
593
|
-
this.
|
|
594
|
-
this.
|
|
595
|
-
this.
|
|
596
|
-
this.
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
return this.n4e_1;
|
|
532
|
+
function ConverterArguments(format, input, emitters, writer, error, packageName, logger, shared, strict) {
|
|
533
|
+
this.w4b_1 = format;
|
|
534
|
+
this.x4b_1 = input;
|
|
535
|
+
this.y4b_1 = emitters;
|
|
536
|
+
this.z4b_1 = writer;
|
|
537
|
+
this.a4c_1 = error;
|
|
538
|
+
this.b4c_1 = packageName;
|
|
539
|
+
this.c4c_1 = logger;
|
|
540
|
+
this.d4c_1 = shared;
|
|
541
|
+
this.e4c_1 = strict;
|
|
542
|
+
}
|
|
543
|
+
protoOf(ConverterArguments).f4c = function () {
|
|
544
|
+
return this.z4b_1;
|
|
601
545
|
};
|
|
602
|
-
protoOf(ConverterArguments).
|
|
603
|
-
return this.
|
|
546
|
+
protoOf(ConverterArguments).px = function () {
|
|
547
|
+
return this.a4c_1;
|
|
604
548
|
};
|
|
605
549
|
protoOf(ConverterArguments).toString = function () {
|
|
606
|
-
return 'ConverterArguments(format=' + this.
|
|
550
|
+
return 'ConverterArguments(format=' + this.w4b_1.toString() + ', input=' + NonEmptySet__toString_impl_yfcj6n(this.x4b_1) + ', emitters=' + NonEmptySet__toString_impl_yfcj6n(this.y4b_1) + ', writer=' + toString(this.z4b_1) + ', error=' + toString(this.a4c_1) + ', packageName=' + this.b4c_1.toString() + ', logger=' + toString(this.c4c_1) + ', shared=' + this.d4c_1 + ', strict=' + this.e4c_1 + ')';
|
|
607
551
|
};
|
|
608
552
|
protoOf(ConverterArguments).hashCode = function () {
|
|
609
|
-
var result = this.
|
|
610
|
-
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.
|
|
611
|
-
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.
|
|
612
|
-
result = imul(result, 31) + hashCode(this.
|
|
613
|
-
result = imul(result, 31) + hashCode(this.
|
|
614
|
-
result = imul(result, 31) + hashCode(this.
|
|
615
|
-
result = imul(result, 31) + hashCode(this.
|
|
616
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
617
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
618
|
-
result = imul(result, 31) + getBooleanHashCode(this.t4e_1) | 0;
|
|
553
|
+
var result = this.w4b_1.hashCode();
|
|
554
|
+
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.x4b_1) | 0;
|
|
555
|
+
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.y4b_1) | 0;
|
|
556
|
+
result = imul(result, 31) + hashCode(this.z4b_1) | 0;
|
|
557
|
+
result = imul(result, 31) + hashCode(this.a4c_1) | 0;
|
|
558
|
+
result = imul(result, 31) + hashCode(this.b4c_1) | 0;
|
|
559
|
+
result = imul(result, 31) + hashCode(this.c4c_1) | 0;
|
|
560
|
+
result = imul(result, 31) + getBooleanHashCode(this.d4c_1) | 0;
|
|
561
|
+
result = imul(result, 31) + getBooleanHashCode(this.e4c_1) | 0;
|
|
619
562
|
return result;
|
|
620
563
|
};
|
|
621
564
|
protoOf(ConverterArguments).equals = function (other) {
|
|
@@ -623,38 +566,36 @@ protoOf(ConverterArguments).equals = function (other) {
|
|
|
623
566
|
return true;
|
|
624
567
|
if (!(other instanceof ConverterArguments))
|
|
625
568
|
return false;
|
|
626
|
-
if (!this.
|
|
627
|
-
return false;
|
|
628
|
-
if (!equals(new NonEmptySet(this.l4e_1), new NonEmptySet(other.l4e_1)))
|
|
569
|
+
if (!this.w4b_1.equals(other.w4b_1))
|
|
629
570
|
return false;
|
|
630
|
-
if (!equals(new NonEmptySet(this.
|
|
571
|
+
if (!equals(new NonEmptySet(this.x4b_1), new NonEmptySet(other.x4b_1)))
|
|
631
572
|
return false;
|
|
632
|
-
if (!equals(this.
|
|
573
|
+
if (!equals(new NonEmptySet(this.y4b_1), new NonEmptySet(other.y4b_1)))
|
|
633
574
|
return false;
|
|
634
|
-
if (!equals(this.
|
|
575
|
+
if (!equals(this.z4b_1, other.z4b_1))
|
|
635
576
|
return false;
|
|
636
|
-
if (!equals(this.
|
|
577
|
+
if (!equals(this.a4c_1, other.a4c_1))
|
|
637
578
|
return false;
|
|
638
|
-
if (!equals(this.
|
|
579
|
+
if (!equals(this.b4c_1, other.b4c_1))
|
|
639
580
|
return false;
|
|
640
|
-
if (!(this.
|
|
581
|
+
if (!equals(this.c4c_1, other.c4c_1))
|
|
641
582
|
return false;
|
|
642
|
-
if (!(this.
|
|
583
|
+
if (!(this.d4c_1 === other.d4c_1))
|
|
643
584
|
return false;
|
|
644
|
-
if (!(this.
|
|
585
|
+
if (!(this.e4c_1 === other.e4c_1))
|
|
645
586
|
return false;
|
|
646
587
|
return true;
|
|
647
588
|
};
|
|
648
589
|
function Source(name, content) {
|
|
649
|
-
this.
|
|
650
|
-
this.
|
|
590
|
+
this.i4c_1 = name;
|
|
591
|
+
this.j4c_1 = content;
|
|
651
592
|
}
|
|
652
593
|
protoOf(Source).toString = function () {
|
|
653
|
-
return 'Source(name=' + Name__toString_impl_61tomu(this.
|
|
594
|
+
return 'Source(name=' + Name__toString_impl_61tomu(this.i4c_1) + ', content=' + this.j4c_1 + ')';
|
|
654
595
|
};
|
|
655
596
|
protoOf(Source).hashCode = function () {
|
|
656
|
-
var result = Name__hashCode_impl_fpc861(this.
|
|
657
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
597
|
+
var result = Name__hashCode_impl_fpc861(this.i4c_1);
|
|
598
|
+
result = imul(result, 31) + getStringHashCode(this.j4c_1) | 0;
|
|
658
599
|
return result;
|
|
659
600
|
};
|
|
660
601
|
protoOf(Source).equals = function (other) {
|
|
@@ -662,9 +603,9 @@ protoOf(Source).equals = function (other) {
|
|
|
662
603
|
return true;
|
|
663
604
|
if (!(other instanceof Source))
|
|
664
605
|
return false;
|
|
665
|
-
if (!(this.
|
|
606
|
+
if (!(this.i4c_1 === other.i4c_1))
|
|
666
607
|
return false;
|
|
667
|
-
if (!(this.
|
|
608
|
+
if (!(this.j4c_1 === other.j4c_1))
|
|
668
609
|
return false;
|
|
669
610
|
return true;
|
|
670
611
|
};
|
|
@@ -695,24 +636,24 @@ function ClassPath__hashCode_impl_cciyyd($this) {
|
|
|
695
636
|
function ClassPath__equals_impl_kffpch($this, other) {
|
|
696
637
|
if (!(other instanceof ClassPath))
|
|
697
638
|
return false;
|
|
698
|
-
if (!($this === other.
|
|
639
|
+
if (!($this === other.k4c_1))
|
|
699
640
|
return false;
|
|
700
641
|
return true;
|
|
701
642
|
}
|
|
702
643
|
function ClassPath(value) {
|
|
703
|
-
this.
|
|
644
|
+
this.k4c_1 = value;
|
|
704
645
|
}
|
|
705
|
-
protoOf(ClassPath).
|
|
706
|
-
return _ClassPath___get_value__impl__lfuxg0(this.
|
|
646
|
+
protoOf(ClassPath).m1 = function () {
|
|
647
|
+
return _ClassPath___get_value__impl__lfuxg0(this.k4c_1);
|
|
707
648
|
};
|
|
708
649
|
protoOf(ClassPath).toString = function () {
|
|
709
|
-
return ClassPath__toString_impl_y3ovr8(this.
|
|
650
|
+
return ClassPath__toString_impl_y3ovr8(this.k4c_1);
|
|
710
651
|
};
|
|
711
652
|
protoOf(ClassPath).hashCode = function () {
|
|
712
|
-
return ClassPath__hashCode_impl_cciyyd(this.
|
|
653
|
+
return ClassPath__hashCode_impl_cciyyd(this.k4c_1);
|
|
713
654
|
};
|
|
714
655
|
protoOf(ClassPath).equals = function (other) {
|
|
715
|
-
return ClassPath__equals_impl_kffpch(this.
|
|
656
|
+
return ClassPath__equals_impl_kffpch(this.k4c_1, other);
|
|
716
657
|
};
|
|
717
658
|
function _DirectoryPath___init__impl__5bzkjd(value) {
|
|
718
659
|
return value;
|
|
@@ -729,31 +670,31 @@ function DirectoryPath__hashCode_impl_cv3skg($this) {
|
|
|
729
670
|
function DirectoryPath__equals_impl_c2rwsc($this, other) {
|
|
730
671
|
if (!(other instanceof DirectoryPath))
|
|
731
672
|
return false;
|
|
732
|
-
if (!($this === other.
|
|
673
|
+
if (!($this === other.l4c_1))
|
|
733
674
|
return false;
|
|
734
675
|
return true;
|
|
735
676
|
}
|
|
736
677
|
function DirectoryPath(value) {
|
|
737
|
-
this.
|
|
678
|
+
this.l4c_1 = value;
|
|
738
679
|
}
|
|
739
|
-
protoOf(DirectoryPath).
|
|
740
|
-
return _DirectoryPath___get_value__impl__hdy2e3(this.
|
|
680
|
+
protoOf(DirectoryPath).m1 = function () {
|
|
681
|
+
return _DirectoryPath___get_value__impl__hdy2e3(this.l4c_1);
|
|
741
682
|
};
|
|
742
683
|
protoOf(DirectoryPath).toString = function () {
|
|
743
|
-
return DirectoryPath__toString_impl_ym9pdb(this.
|
|
684
|
+
return DirectoryPath__toString_impl_ym9pdb(this.l4c_1);
|
|
744
685
|
};
|
|
745
686
|
protoOf(DirectoryPath).hashCode = function () {
|
|
746
|
-
return DirectoryPath__hashCode_impl_cv3skg(this.
|
|
687
|
+
return DirectoryPath__hashCode_impl_cv3skg(this.l4c_1);
|
|
747
688
|
};
|
|
748
689
|
protoOf(DirectoryPath).equals = function (other) {
|
|
749
|
-
return DirectoryPath__equals_impl_c2rwsc(this.
|
|
690
|
+
return DirectoryPath__equals_impl_c2rwsc(this.l4c_1, other);
|
|
750
691
|
};
|
|
751
692
|
function Directory(path) {
|
|
752
|
-
this.
|
|
693
|
+
this.m4c_1 = path;
|
|
753
694
|
}
|
|
754
695
|
function Companion_1() {
|
|
755
696
|
}
|
|
756
|
-
protoOf(Companion_1).
|
|
697
|
+
protoOf(Companion_1).n4c = function (input) {
|
|
757
698
|
// Inline function 'kotlin.let' call
|
|
758
699
|
var it = split(input, ['/']);
|
|
759
700
|
var list = plus(dropLast(it, 1), split(last(it), ['.']));
|
|
@@ -768,7 +709,7 @@ protoOf(Companion_1).c4f = function (input) {
|
|
|
768
709
|
var _iterator__ex2g4s = tmp0.t();
|
|
769
710
|
while (_iterator__ex2g4s.u()) {
|
|
770
711
|
var element = _iterator__ex2g4s.v();
|
|
771
|
-
if (element.
|
|
712
|
+
if (element.wq_1 === ext) {
|
|
772
713
|
tmp$ret$5 = element;
|
|
773
714
|
break $l$block;
|
|
774
715
|
}
|
|
@@ -784,9 +725,9 @@ protoOf(Companion_1).c4f = function (input) {
|
|
|
784
725
|
tmp = tmp0_elvis_lhs;
|
|
785
726
|
}
|
|
786
727
|
var extension = tmp;
|
|
787
|
-
var idxOfFileName = list.
|
|
788
|
-
var filename = _Name___init__impl__o4q07e(list.
|
|
789
|
-
var path = joinToString(list.
|
|
728
|
+
var idxOfFileName = list.b1() - 2 | 0;
|
|
729
|
+
var filename = _Name___init__impl__o4q07e(list.c1(idxOfFileName));
|
|
730
|
+
var path = joinToString(list.m2(0, idxOfFileName), '/');
|
|
790
731
|
return new FilePath(_DirectoryPath___init__impl__5bzkjd(path), filename, extension);
|
|
791
732
|
};
|
|
792
733
|
var Companion_instance_1;
|
|
@@ -794,17 +735,17 @@ function Companion_getInstance_1() {
|
|
|
794
735
|
return Companion_instance_1;
|
|
795
736
|
}
|
|
796
737
|
function FilePath(directory, name, extension) {
|
|
797
|
-
this.
|
|
798
|
-
this.
|
|
799
|
-
this.
|
|
738
|
+
this.o4c_1 = directory;
|
|
739
|
+
this.p4c_1 = name;
|
|
740
|
+
this.q4c_1 = extension;
|
|
800
741
|
}
|
|
801
742
|
protoOf(FilePath).toString = function () {
|
|
802
|
-
return DirectoryPath__toString_impl_ym9pdb(this.
|
|
743
|
+
return DirectoryPath__toString_impl_ym9pdb(this.o4c_1) + '/' + _Name___get_value__impl__3tbxxy(this.p4c_1) + '.' + this.q4c_1.wq_1;
|
|
803
744
|
};
|
|
804
745
|
protoOf(FilePath).hashCode = function () {
|
|
805
|
-
var result = DirectoryPath__hashCode_impl_cv3skg(this.
|
|
806
|
-
result = imul(result, 31) + Name__hashCode_impl_fpc861(this.
|
|
807
|
-
result = imul(result, 31) + this.
|
|
746
|
+
var result = DirectoryPath__hashCode_impl_cv3skg(this.o4c_1);
|
|
747
|
+
result = imul(result, 31) + Name__hashCode_impl_fpc861(this.p4c_1) | 0;
|
|
748
|
+
result = imul(result, 31) + this.q4c_1.hashCode() | 0;
|
|
808
749
|
return result;
|
|
809
750
|
};
|
|
810
751
|
protoOf(FilePath).equals = function (other) {
|
|
@@ -812,24 +753,24 @@ protoOf(FilePath).equals = function (other) {
|
|
|
812
753
|
return true;
|
|
813
754
|
if (!(other instanceof FilePath))
|
|
814
755
|
return false;
|
|
815
|
-
if (!(this.
|
|
756
|
+
if (!(this.o4c_1 === other.o4c_1))
|
|
816
757
|
return false;
|
|
817
|
-
if (!(this.
|
|
758
|
+
if (!(this.p4c_1 === other.p4c_1))
|
|
818
759
|
return false;
|
|
819
|
-
if (!this.
|
|
760
|
+
if (!this.q4c_1.equals(other.q4c_1))
|
|
820
761
|
return false;
|
|
821
762
|
return true;
|
|
822
763
|
};
|
|
823
764
|
function path(_this__u8e3s4) {
|
|
824
765
|
var tmp;
|
|
825
766
|
if (_this__u8e3s4 instanceof ClassPath) {
|
|
826
|
-
tmp = _ClassPath___get_value__impl__lfuxg0(_this__u8e3s4.
|
|
767
|
+
tmp = _ClassPath___get_value__impl__lfuxg0(_this__u8e3s4.k4c_1);
|
|
827
768
|
} else {
|
|
828
769
|
if (_this__u8e3s4 instanceof DirectoryPath) {
|
|
829
|
-
tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.
|
|
770
|
+
tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.l4c_1);
|
|
830
771
|
} else {
|
|
831
772
|
if (_this__u8e3s4 instanceof FilePath) {
|
|
832
|
-
tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.
|
|
773
|
+
tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.o4c_1);
|
|
833
774
|
} else {
|
|
834
775
|
noWhenBranchMatchedException();
|
|
835
776
|
}
|
|
@@ -838,13 +779,13 @@ function path(_this__u8e3s4) {
|
|
|
838
779
|
return tmp;
|
|
839
780
|
}
|
|
840
781
|
function IOError(message) {
|
|
841
|
-
this.
|
|
782
|
+
this.r4c_1 = message;
|
|
842
783
|
}
|
|
843
784
|
function WirespecFileError() {
|
|
844
785
|
SpecificFile.call(this, FileExtension_Wirespec_getInstance());
|
|
845
786
|
}
|
|
846
787
|
function SpecificFile(extension) {
|
|
847
|
-
IOError.call(this, 'No ' + extension.
|
|
788
|
+
IOError.call(this, 'No ' + extension.b3_1 + ' file found');
|
|
848
789
|
}
|
|
849
790
|
function CannotAccessFileOrDirectory(input) {
|
|
850
791
|
IOError.call(this, 'Cannot access file or directory: ' + input + '.');
|
|
@@ -870,39 +811,39 @@ function getFullPath(input, createIfNotExists_0) {
|
|
|
870
811
|
tmp_0 = new ClassPath(_ClassPath___init__impl__obyw3o(substringAfter(input, 'classpath:')));
|
|
871
812
|
} else {
|
|
872
813
|
var path = createIfNotExists(Path(input), createIfNotExists_0);
|
|
873
|
-
var tmp0_elvis_lhs = get_SystemFileSystem().
|
|
814
|
+
var tmp0_elvis_lhs = get_SystemFileSystem().c4b(path);
|
|
874
815
|
var tmp_1;
|
|
875
816
|
if (tmp0_elvis_lhs == null) {
|
|
876
|
-
raise.
|
|
817
|
+
raise.an(new CannotAccessFileOrDirectory(input));
|
|
877
818
|
} else {
|
|
878
819
|
tmp_1 = tmp0_elvis_lhs;
|
|
879
820
|
}
|
|
880
821
|
var meta = tmp_1;
|
|
881
822
|
var pathString = path.toString();
|
|
882
823
|
var tmp_2;
|
|
883
|
-
if (meta.
|
|
824
|
+
if (meta.v4a_1) {
|
|
884
825
|
tmp_2 = new DirectoryPath(_DirectoryPath___init__impl__5bzkjd(pathString));
|
|
885
|
-
} else if (meta.
|
|
886
|
-
tmp_2 = Companion_instance_1.
|
|
826
|
+
} else if (meta.u4a_1) {
|
|
827
|
+
tmp_2 = Companion_instance_1.n4c(pathString);
|
|
887
828
|
} else {
|
|
888
|
-
raise.
|
|
829
|
+
raise.an(new IsNotAFileOrDirectory(pathString));
|
|
889
830
|
}
|
|
890
831
|
tmp_0 = tmp_2;
|
|
891
832
|
}
|
|
892
833
|
var res = tmp_0;
|
|
893
|
-
raise.
|
|
834
|
+
raise.wm();
|
|
894
835
|
tmp = new Right(res);
|
|
895
836
|
} catch ($p) {
|
|
896
837
|
var tmp_3;
|
|
897
838
|
if ($p instanceof RaiseCancellationException) {
|
|
898
839
|
var e = $p;
|
|
899
|
-
raise.
|
|
840
|
+
raise.wm();
|
|
900
841
|
var it = raisedOrRethrow(e, raise);
|
|
901
842
|
tmp_3 = new Left(it);
|
|
902
843
|
} else {
|
|
903
844
|
if ($p instanceof Error) {
|
|
904
845
|
var e_0 = $p;
|
|
905
|
-
raise.
|
|
846
|
+
raise.wm();
|
|
906
847
|
throw nonFatalOrThrow(e_0);
|
|
907
848
|
} else {
|
|
908
849
|
throw $p;
|
|
@@ -916,11 +857,11 @@ function or(_this__u8e3s4, errorFn) {
|
|
|
916
857
|
// Inline function 'arrow.core.getOrElse' call
|
|
917
858
|
var tmp;
|
|
918
859
|
if (_this__u8e3s4 instanceof Left) {
|
|
919
|
-
errorFn(_this__u8e3s4.
|
|
860
|
+
errorFn(_this__u8e3s4.mm_1.r4c_1);
|
|
920
861
|
tmp = throwKotlinNothingValueException();
|
|
921
862
|
} else {
|
|
922
863
|
if (_this__u8e3s4 instanceof Right) {
|
|
923
|
-
tmp = _this__u8e3s4.
|
|
864
|
+
tmp = _this__u8e3s4.om_1;
|
|
924
865
|
} else {
|
|
925
866
|
noWhenBranchMatchedException();
|
|
926
867
|
}
|
|
@@ -934,10 +875,10 @@ function wirespecSources(_this__u8e3s4, logger) {
|
|
|
934
875
|
var raise = new DefaultRaise(false);
|
|
935
876
|
var tmp;
|
|
936
877
|
try {
|
|
937
|
-
var tmp0 = Path(_DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.
|
|
878
|
+
var tmp0 = Path(_DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.m4c_1));
|
|
938
879
|
// Inline function 'kotlin.let' call
|
|
939
880
|
// Inline function 'kotlin.collections.filter' call
|
|
940
|
-
var tmp0_0 = get_SystemFileSystem().
|
|
881
|
+
var tmp0_0 = get_SystemFileSystem().d4b(tmp0);
|
|
941
882
|
// Inline function 'kotlin.collections.filterTo' call
|
|
942
883
|
var destination = ArrayList_init_$Create$_0();
|
|
943
884
|
var _iterator__ex2g4s = tmp0_0.t();
|
|
@@ -963,11 +904,11 @@ function wirespecSources(_this__u8e3s4, logger) {
|
|
|
963
904
|
var _iterator__ex2g4s_1 = destination_0.t();
|
|
964
905
|
while (_iterator__ex2g4s_1.u()) {
|
|
965
906
|
var item = _iterator__ex2g4s_1.v();
|
|
966
|
-
var tmp$ret$8 = to(Companion_instance_1.
|
|
907
|
+
var tmp$ret$8 = to(Companion_instance_1.n4c(item.toString()), readString(buffered(get_SystemFileSystem().z4a(item))));
|
|
967
908
|
destination_1.x(tmp$ret$8);
|
|
968
909
|
}
|
|
969
910
|
// Inline function 'kotlin.also' call
|
|
970
|
-
logger.
|
|
911
|
+
logger.cr('Found ' + destination_1.b1() + ' file(s) to process in ' + _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.m4c_1));
|
|
971
912
|
// Inline function 'kotlin.collections.forEachIndexed' call
|
|
972
913
|
var index = 0;
|
|
973
914
|
var _iterator__ex2g4s_2 = destination_1.t();
|
|
@@ -975,8 +916,8 @@ function wirespecSources(_this__u8e3s4, logger) {
|
|
|
975
916
|
var item_0 = _iterator__ex2g4s_2.v();
|
|
976
917
|
var _unary__edvuaz = index;
|
|
977
918
|
index = _unary__edvuaz + 1 | 0;
|
|
978
|
-
var prefix = checkIndexOverflow(_unary__edvuaz) < (destination_1.
|
|
979
|
-
logger.
|
|
919
|
+
var prefix = checkIndexOverflow(_unary__edvuaz) < (destination_1.b1() - 1 | 0) ? '\u251C\u2500\u2500 ' : '\u2514\u2500\u2500 ';
|
|
920
|
+
logger.cr(' ' + prefix + ' ' + _Name___get_value__impl__3tbxxy(item_0.ff_1.p4c_1) + '.' + item_0.ff_1.q4c_1.wq_1);
|
|
980
921
|
}
|
|
981
922
|
// Inline function 'kotlin.collections.map' call
|
|
982
923
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -984,33 +925,33 @@ function wirespecSources(_this__u8e3s4, logger) {
|
|
|
984
925
|
var _iterator__ex2g4s_3 = destination_1.t();
|
|
985
926
|
while (_iterator__ex2g4s_3.u()) {
|
|
986
927
|
var item_1 = _iterator__ex2g4s_3.v();
|
|
987
|
-
var path = item_1.
|
|
988
|
-
var source = item_1.
|
|
989
|
-
var tmp$ret$15 = new Source(path.
|
|
928
|
+
var path = item_1.we();
|
|
929
|
+
var source = item_1.xe();
|
|
930
|
+
var tmp$ret$15 = new Source(path.p4c_1, source);
|
|
990
931
|
destination_2.x(tmp$ret$15);
|
|
991
932
|
}
|
|
992
933
|
var tmp0_elvis_lhs = toNonEmptySetOrNull(destination_2);
|
|
993
934
|
var tmp_0;
|
|
994
935
|
var tmp_1 = tmp0_elvis_lhs;
|
|
995
936
|
if ((tmp_1 == null ? null : new NonEmptySet(tmp_1)) == null) {
|
|
996
|
-
raise.
|
|
937
|
+
raise.an(new WirespecFileError());
|
|
997
938
|
} else {
|
|
998
939
|
tmp_0 = tmp0_elvis_lhs;
|
|
999
940
|
}
|
|
1000
941
|
var res = new NonEmptySet(tmp_0);
|
|
1001
|
-
raise.
|
|
942
|
+
raise.wm();
|
|
1002
943
|
tmp = new Right(res);
|
|
1003
944
|
} catch ($p) {
|
|
1004
945
|
var tmp_2;
|
|
1005
946
|
if ($p instanceof RaiseCancellationException) {
|
|
1006
947
|
var e = $p;
|
|
1007
|
-
raise.
|
|
948
|
+
raise.wm();
|
|
1008
949
|
var it = raisedOrRethrow(e, raise);
|
|
1009
950
|
tmp_2 = new Left(it);
|
|
1010
951
|
} else {
|
|
1011
952
|
if ($p instanceof Error) {
|
|
1012
953
|
var e_0 = $p;
|
|
1013
|
-
raise.
|
|
954
|
+
raise.wm();
|
|
1014
955
|
throw nonFatalOrThrow(e_0);
|
|
1015
956
|
} else {
|
|
1016
957
|
throw $p;
|
|
@@ -1023,7 +964,7 @@ function wirespecSources(_this__u8e3s4, logger) {
|
|
|
1023
964
|
function read(_this__u8e3s4) {
|
|
1024
965
|
// Inline function 'kotlin.let' call
|
|
1025
966
|
var it = Path(_this__u8e3s4.toString());
|
|
1026
|
-
return readString(buffered(get_SystemFileSystem().
|
|
967
|
+
return readString(buffered(get_SystemFileSystem().z4a(it)));
|
|
1027
968
|
}
|
|
1028
969
|
function getOutPutPath(inputPath, output) {
|
|
1029
970
|
// Inline function 'arrow.core.raise.either' call
|
|
@@ -1032,13 +973,13 @@ function getOutPutPath(inputPath, output) {
|
|
|
1032
973
|
var raise = new DefaultRaise(false);
|
|
1033
974
|
var tmp;
|
|
1034
975
|
try {
|
|
1035
|
-
var it = raise.
|
|
976
|
+
var it = raise.en(getFullPath(output, true));
|
|
1036
977
|
var tmp_0;
|
|
1037
978
|
if (it == null) {
|
|
1038
979
|
tmp_0 = _DirectoryPath___init__impl__5bzkjd(path(inputPath) + '/out');
|
|
1039
980
|
} else {
|
|
1040
981
|
if (it instanceof DirectoryPath) {
|
|
1041
|
-
tmp_0 = it.
|
|
982
|
+
tmp_0 = it.l4c_1;
|
|
1042
983
|
} else {
|
|
1043
984
|
var tmp_1;
|
|
1044
985
|
if (it instanceof FilePath) {
|
|
@@ -1047,26 +988,26 @@ function getOutPutPath(inputPath, output) {
|
|
|
1047
988
|
tmp_1 = it instanceof ClassPath;
|
|
1048
989
|
}
|
|
1049
990
|
if (tmp_1) {
|
|
1050
|
-
raise.
|
|
991
|
+
raise.an(new OutputShouldBeADirectory());
|
|
1051
992
|
} else {
|
|
1052
993
|
noWhenBranchMatchedException();
|
|
1053
994
|
}
|
|
1054
995
|
}
|
|
1055
996
|
}
|
|
1056
997
|
var res = new DirectoryPath(tmp_0);
|
|
1057
|
-
raise.
|
|
998
|
+
raise.wm();
|
|
1058
999
|
tmp = new Right(res);
|
|
1059
1000
|
} catch ($p) {
|
|
1060
1001
|
var tmp_2;
|
|
1061
1002
|
if ($p instanceof RaiseCancellationException) {
|
|
1062
1003
|
var e = $p;
|
|
1063
|
-
raise.
|
|
1004
|
+
raise.wm();
|
|
1064
1005
|
var it_0 = raisedOrRethrow(e, raise);
|
|
1065
1006
|
tmp_2 = new Left(it_0);
|
|
1066
1007
|
} else {
|
|
1067
1008
|
if ($p instanceof Error) {
|
|
1068
1009
|
var e_0 = $p;
|
|
1069
|
-
raise.
|
|
1010
|
+
raise.wm();
|
|
1070
1011
|
throw nonFatalOrThrow(e_0);
|
|
1071
1012
|
} else {
|
|
1072
1013
|
throw $p;
|
|
@@ -1079,38 +1020,38 @@ function getOutPutPath(inputPath, output) {
|
|
|
1079
1020
|
function write(_this__u8e3s4, string) {
|
|
1080
1021
|
// Inline function 'kotlin.also' call
|
|
1081
1022
|
var this_0 = Path(_this__u8e3s4.toString());
|
|
1082
|
-
var tmp0_safe_receiver = this_0.
|
|
1023
|
+
var tmp0_safe_receiver = this_0.f4b();
|
|
1083
1024
|
if (tmp0_safe_receiver == null)
|
|
1084
1025
|
null;
|
|
1085
1026
|
else
|
|
1086
1027
|
createIfNotExists(tmp0_safe_receiver);
|
|
1087
1028
|
// Inline function 'kotlin.let' call
|
|
1088
1029
|
// Inline function 'kotlin.apply' call
|
|
1089
|
-
var this_1 = buffered_0(get_SystemFileSystem().
|
|
1030
|
+
var this_1 = buffered_0(get_SystemFileSystem().b4b(this_0));
|
|
1090
1031
|
writeString(this_1, string);
|
|
1091
|
-
this_1.
|
|
1032
|
+
this_1.a9();
|
|
1092
1033
|
return Unit_instance;
|
|
1093
1034
|
}
|
|
1094
1035
|
function createIfNotExists(_this__u8e3s4, create) {
|
|
1095
1036
|
create = create === VOID ? true : create;
|
|
1096
1037
|
// Inline function 'kotlin.also' call
|
|
1097
|
-
if (create && !get_SystemFileSystem().
|
|
1098
|
-
get_SystemFileSystem().
|
|
1038
|
+
if (create && !get_SystemFileSystem().x4a(_this__u8e3s4)) {
|
|
1039
|
+
get_SystemFileSystem().y4a(_this__u8e3s4, true);
|
|
1099
1040
|
}
|
|
1100
1041
|
return _this__u8e3s4;
|
|
1101
1042
|
}
|
|
1102
1043
|
function isRegularFile(path) {
|
|
1103
|
-
var tmp0_safe_receiver = get_SystemFileSystem().
|
|
1104
|
-
return (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1044
|
+
var tmp0_safe_receiver = get_SystemFileSystem().c4b(path);
|
|
1045
|
+
return (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.u4a_1) === true;
|
|
1105
1046
|
}
|
|
1106
1047
|
function isWirespecFile(path) {
|
|
1107
|
-
return get_extension(path) === FileExtension_Wirespec_getInstance().
|
|
1048
|
+
return get_extension(path) === FileExtension_Wirespec_getInstance().wq_1;
|
|
1108
1049
|
}
|
|
1109
1050
|
function get_extension(_this__u8e3s4) {
|
|
1110
1051
|
return substringAfterLast(_this__u8e3s4.m(), _Char___init__impl__6a9atx(46), '');
|
|
1111
1052
|
}
|
|
1112
1053
|
//region block: post-declaration
|
|
1113
|
-
protoOf(compile$ctx$1).
|
|
1054
|
+
protoOf(compile$ctx$1).fo = get_spec;
|
|
1114
1055
|
//endregion
|
|
1115
1056
|
//region block: init
|
|
1116
1057
|
Companion_instance = new Companion();
|
|
@@ -1136,7 +1077,6 @@ export {
|
|
|
1136
1077
|
compile_0 as compile3ocumkpx3p9ko,
|
|
1137
1078
|
convert as convert3g5kyi4d6y9kc,
|
|
1138
1079
|
toEmitter as toEmitter3vk7m5bivtqhk,
|
|
1139
|
-
toIrEmitter as toIrEmitter26636pwh5dqqw,
|
|
1140
1080
|
Language_Kotlin_getInstance as Language_Kotlin_getInstance86uxb9qtensx,
|
|
1141
1081
|
_DirectoryPath___get_value__impl__hdy2e3 as _DirectoryPath___get_value__impl__hdy2e33f4bkvzwyu6et,
|
|
1142
1082
|
_Name___init__impl__o4q07e as _Name___init__impl__o4q07e2eria0k23tn4,
|