@flock/wirespec 0.22.0 → 0.22.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 +166 -154
- package/arrow-arrow-core.mjs.map +1 -1
- package/clikt-clikt-mordant.mjs +80 -80
- package/clikt-clikt.mjs +1559 -1559
- package/colormath-root-colormath.mjs +441 -441
- package/kotlin-kotlin-stdlib.mjs +2239 -1951
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +10246 -10246
- package/kotlin-rgxgen.mjs +1808 -1808
- package/kotlinx-io-kotlinx-io-core.mjs +419 -419
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1868 -1868
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1607 -1586
- package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
- package/mordant-mordant.mjs +1335 -1321
- package/mordant-mordant.mjs.map +1 -1
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +6432 -6170
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-java.mjs +181 -181
- package/wirespec-src-compiler-emitters-kotlin.mjs +143 -143
- package/wirespec-src-compiler-emitters-python.mjs +179 -179
- package/wirespec-src-compiler-emitters-rust.mjs +423 -423
- package/wirespec-src-compiler-emitters-scala.mjs +176 -176
- package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-typescript.mjs +254 -255
- package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-wirespec.mjs +361 -163
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +937 -405
- package/wirespec-src-compiler-lib.mjs.map +1 -1
- package/wirespec-src-converter-asyncapi.mjs +5382 -0
- package/wirespec-src-converter-asyncapi.mjs.map +1 -0
- package/wirespec-src-converter-avro.mjs +1075 -508
- package/wirespec-src-converter-avro.mjs.map +1 -1
- package/wirespec-src-converter-common.mjs +20 -20
- package/wirespec-src-converter-common.mjs.map +1 -1
- package/wirespec-src-converter-graphql.mjs +6895 -0
- package/wirespec-src-converter-graphql.mjs.map +1 -0
- package/wirespec-src-converter-openapi.mjs +786 -777
- package/wirespec-src-converter-openapi.mjs.map +1 -1
- package/wirespec-src-ide-lsp.mjs +1395 -1395
- package/wirespec-src-plugin-arguments.mjs +204 -184
- package/wirespec-src-plugin-arguments.mjs.map +1 -1
- package/wirespec-src-plugin-cli.mjs +111 -108
- package/wirespec-src-plugin-cli.mjs.map +1 -1
- package/wirespec-src-plugin-npm.d.mts +219 -27
- package/wirespec-src-plugin-npm.mjs +144 -49
- package/wirespec-src-plugin-npm.mjs.map +1 -1
- package/wirespec-src-tools-generator.mjs +35 -35
|
@@ -78,6 +78,8 @@ import {
|
|
|
78
78
|
get_entries1b334j69qpu9d as get_entries,
|
|
79
79
|
FileExtension_Wirespec_getInstance3awesett59616 as FileExtension_Wirespec_getInstance,
|
|
80
80
|
} from './wirespec-src-compiler-core.mjs';
|
|
81
|
+
import { GraphQLParser_instancea59ka24ixfoj as GraphQLParser_instance } from './wirespec-src-converter-graphql.mjs';
|
|
82
|
+
import { AsyncAPIParser_instance1afg6q7t1ch1g as AsyncAPIParser_instance } from './wirespec-src-converter-asyncapi.mjs';
|
|
81
83
|
import { nonFatalOrThrow35agffkx4bbtz as nonFatalOrThrow } from './arrow-arrow-exception-utils.mjs';
|
|
82
84
|
import {
|
|
83
85
|
Path21qufdfgaayly as Path,
|
|
@@ -114,6 +116,8 @@ initMetadataForClass(OutputShouldBeADirectory, 'OutputShouldBeADirectory', Outpu
|
|
|
114
116
|
var Format_OpenAPIV2_instance;
|
|
115
117
|
var Format_OpenAPIV3_instance;
|
|
116
118
|
var Format_Avro_instance;
|
|
119
|
+
var Format_GraphQL_instance;
|
|
120
|
+
var Format_AsyncAPI_instance;
|
|
117
121
|
function Companion() {
|
|
118
122
|
}
|
|
119
123
|
protoOf(Companion).toString = function () {
|
|
@@ -124,7 +128,7 @@ function Companion_getInstance() {
|
|
|
124
128
|
return Companion_instance;
|
|
125
129
|
}
|
|
126
130
|
function values() {
|
|
127
|
-
return [Format_OpenAPIV2_getInstance(), Format_OpenAPIV3_getInstance(), Format_Avro_getInstance()];
|
|
131
|
+
return [Format_OpenAPIV2_getInstance(), Format_OpenAPIV3_getInstance(), Format_Avro_getInstance(), Format_GraphQL_getInstance(), Format_AsyncAPI_getInstance()];
|
|
128
132
|
}
|
|
129
133
|
function get_entries_0() {
|
|
130
134
|
if ($ENTRIES == null)
|
|
@@ -139,6 +143,8 @@ function Format_initEntries() {
|
|
|
139
143
|
Format_OpenAPIV2_instance = new Format('OpenAPIV2', 0);
|
|
140
144
|
Format_OpenAPIV3_instance = new Format('OpenAPIV3', 1);
|
|
141
145
|
Format_Avro_instance = new Format('Avro', 2);
|
|
146
|
+
Format_GraphQL_instance = new Format('GraphQL', 3);
|
|
147
|
+
Format_AsyncAPI_instance = new Format('AsyncAPI', 4);
|
|
142
148
|
}
|
|
143
149
|
var $ENTRIES;
|
|
144
150
|
function Format(name, ordinal) {
|
|
@@ -156,6 +162,14 @@ function Format_Avro_getInstance() {
|
|
|
156
162
|
Format_initEntries();
|
|
157
163
|
return Format_Avro_instance;
|
|
158
164
|
}
|
|
165
|
+
function Format_GraphQL_getInstance() {
|
|
166
|
+
Format_initEntries();
|
|
167
|
+
return Format_GraphQL_instance;
|
|
168
|
+
}
|
|
169
|
+
function Format_AsyncAPI_getInstance() {
|
|
170
|
+
Format_initEntries();
|
|
171
|
+
return Format_AsyncAPI_instance;
|
|
172
|
+
}
|
|
159
173
|
var Language_Java_instance;
|
|
160
174
|
var Language_Kotlin_instance;
|
|
161
175
|
var Language_TypeScript_instance;
|
|
@@ -168,7 +182,7 @@ var Language_OpenAPIV3_instance;
|
|
|
168
182
|
var Language_Avro_instance;
|
|
169
183
|
function Companion_0() {
|
|
170
184
|
}
|
|
171
|
-
protoOf(Companion_0).
|
|
185
|
+
protoOf(Companion_0).v4q = function () {
|
|
172
186
|
// Inline function 'kotlin.collections.associateBy' call
|
|
173
187
|
var this_0 = get_entries_1();
|
|
174
188
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
@@ -177,8 +191,8 @@ protoOf(Companion_0).l4d = function () {
|
|
|
177
191
|
var _iterator__ex2g4s = this_0.t();
|
|
178
192
|
while (_iterator__ex2g4s.u()) {
|
|
179
193
|
var element = _iterator__ex2g4s.v();
|
|
180
|
-
var tmp$ret$2 = element.
|
|
181
|
-
destination.
|
|
194
|
+
var tmp$ret$2 = element.d3_1;
|
|
195
|
+
destination.v2(tmp$ret$2, element);
|
|
182
196
|
}
|
|
183
197
|
return destination;
|
|
184
198
|
};
|
|
@@ -219,7 +233,7 @@ function Language(name, ordinal) {
|
|
|
219
233
|
}
|
|
220
234
|
function toEmitter(_this__u8e3s4, packageName, emitShared) {
|
|
221
235
|
var tmp;
|
|
222
|
-
switch (_this__u8e3s4.
|
|
236
|
+
switch (_this__u8e3s4.e3_1) {
|
|
223
237
|
case 0:
|
|
224
238
|
tmp = new JavaEmitter(packageName, emitShared);
|
|
225
239
|
break;
|
|
@@ -298,11 +312,11 @@ function Language_Avro_getInstance() {
|
|
|
298
312
|
}
|
|
299
313
|
function compile_0(arguments_0) {
|
|
300
314
|
var ctx = new compile$ctx$1(arguments_0);
|
|
301
|
-
fold(compile(ctx, NonEmptySet__map_impl_ngjswd(arguments_0.
|
|
315
|
+
fold(compile(ctx, NonEmptySet__map_impl_ngjswd(arguments_0.w4q_1, compile$lambda), arguments_0.e4r_1), arguments_0);
|
|
302
316
|
}
|
|
303
317
|
function convert(arguments_0) {
|
|
304
318
|
var tmp;
|
|
305
|
-
switch (arguments_0.
|
|
319
|
+
switch (arguments_0.f4r_1.e3_1) {
|
|
306
320
|
case 0:
|
|
307
321
|
tmp = OpenAPIV2Parser_instance;
|
|
308
322
|
break;
|
|
@@ -312,14 +326,20 @@ function convert(arguments_0) {
|
|
|
312
326
|
case 2:
|
|
313
327
|
tmp = AvroJsonParser_instance;
|
|
314
328
|
break;
|
|
329
|
+
case 3:
|
|
330
|
+
tmp = GraphQLParser_instance;
|
|
331
|
+
break;
|
|
332
|
+
case 4:
|
|
333
|
+
tmp = AsyncAPIParser_instance;
|
|
334
|
+
break;
|
|
315
335
|
default:
|
|
316
336
|
noWhenBranchMatchedException();
|
|
317
337
|
break;
|
|
318
338
|
}
|
|
319
339
|
var parser = tmp;
|
|
320
|
-
var options = new ParseOptions(arguments_0.
|
|
340
|
+
var options = new ParseOptions(arguments_0.n4r_1);
|
|
321
341
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
322
|
-
var this_0 = NonEmptySet__map_impl_ngjswd(arguments_0.
|
|
342
|
+
var this_0 = NonEmptySet__map_impl_ngjswd(arguments_0.g4r_1, convert$lambda);
|
|
323
343
|
// Inline function 'kotlin.collections.map' call
|
|
324
344
|
var this_1 = _NonEmptyList___get_all__impl__pmf509(this_0);
|
|
325
345
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -327,7 +347,7 @@ function convert(arguments_0) {
|
|
|
327
347
|
var _iterator__ex2g4s = this_1.t();
|
|
328
348
|
while (_iterator__ex2g4s.u()) {
|
|
329
349
|
var item = _iterator__ex2g4s.v();
|
|
330
|
-
var tmp$ret$3 = parser.
|
|
350
|
+
var tmp$ret$3 = parser.w48(item, arguments_0.n4r_1);
|
|
331
351
|
destination.x(tmp$ret$3);
|
|
332
352
|
}
|
|
333
353
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
@@ -339,7 +359,7 @@ function convert(arguments_0) {
|
|
|
339
359
|
var _iterator__ex2g4s_0 = this_3.t();
|
|
340
360
|
while (_iterator__ex2g4s_0.u()) {
|
|
341
361
|
var item_0 = _iterator__ex2g4s_0.v();
|
|
342
|
-
var tmp$ret$7 = Validator_instance.
|
|
362
|
+
var tmp$ret$7 = Validator_instance.a1c(options, item_0);
|
|
343
363
|
destination_0.x(tmp$ret$7);
|
|
344
364
|
}
|
|
345
365
|
// Inline function 'kotlin.let' call
|
|
@@ -350,20 +370,20 @@ function convert(arguments_0) {
|
|
|
350
370
|
var raise = new DefaultRaise(false);
|
|
351
371
|
var tmp_0;
|
|
352
372
|
try {
|
|
353
|
-
var res = new NonEmptyList(raise.
|
|
354
|
-
raise.
|
|
373
|
+
var res = new NonEmptyList(raise.ln(it));
|
|
374
|
+
raise.cn();
|
|
355
375
|
tmp_0 = new Right(res);
|
|
356
376
|
} catch ($p) {
|
|
357
377
|
var tmp_1;
|
|
358
378
|
if ($p instanceof RaiseCancellationException) {
|
|
359
379
|
var e = $p;
|
|
360
|
-
raise.
|
|
380
|
+
raise.cn();
|
|
361
381
|
var it_0 = raisedOrRethrow(e, raise);
|
|
362
382
|
tmp_1 = new Left(it_0);
|
|
363
383
|
} else {
|
|
364
384
|
if ($p instanceof Error) {
|
|
365
385
|
var e_0 = $p;
|
|
366
|
-
raise.
|
|
386
|
+
raise.cn();
|
|
367
387
|
throw nonFatalOrThrow(e_0);
|
|
368
388
|
} else {
|
|
369
389
|
throw $p;
|
|
@@ -377,7 +397,7 @@ function convert(arguments_0) {
|
|
|
377
397
|
var tmp_2;
|
|
378
398
|
if (this_4 instanceof Right) {
|
|
379
399
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
380
|
-
var this_5 = this_4.
|
|
400
|
+
var this_5 = this_4.um_1.dn_1;
|
|
381
401
|
// Inline function 'kotlin.collections.map' call
|
|
382
402
|
var this_6 = _NonEmptyList___get_all__impl__pmf509(this_5);
|
|
383
403
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -385,7 +405,7 @@ function convert(arguments_0) {
|
|
|
385
405
|
var _iterator__ex2g4s_1 = this_6.t();
|
|
386
406
|
while (_iterator__ex2g4s_1.u()) {
|
|
387
407
|
var item_1 = _iterator__ex2g4s_1.v();
|
|
388
|
-
var tmp$ret$24 = arguments_0.
|
|
408
|
+
var tmp$ret$24 = arguments_0.o4r_1 ? withoutDefaults(item_1) : item_1;
|
|
389
409
|
destination_1.x(tmp$ret$24);
|
|
390
410
|
}
|
|
391
411
|
var tmp$ret$21 = _NonEmptyList___init__impl__fxd0xp(destination_1);
|
|
@@ -404,7 +424,7 @@ function convert(arguments_0) {
|
|
|
404
424
|
var tmp_3;
|
|
405
425
|
if (this_7 instanceof Right) {
|
|
406
426
|
// Inline function 'arrow.core.NonEmptyList.flatMap' call
|
|
407
|
-
var this_8 = this_7.
|
|
427
|
+
var this_8 = this_7.um_1.dn_1;
|
|
408
428
|
// Inline function 'kotlin.collections.flatMap' call
|
|
409
429
|
var tmp0 = _NonEmptyList___get_all__impl__pmf509(this_8);
|
|
410
430
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -412,7 +432,7 @@ function convert(arguments_0) {
|
|
|
412
432
|
var _iterator__ex2g4s_2 = tmp0.t();
|
|
413
433
|
while (_iterator__ex2g4s_2.u()) {
|
|
414
434
|
var element = _iterator__ex2g4s_2.v();
|
|
415
|
-
var list = new NonEmptyList(NonEmptySet__flatMap_impl_ovm5jg(arguments_0.
|
|
435
|
+
var list = new NonEmptyList(NonEmptySet__flatMap_impl_ovm5jg(arguments_0.h4r_1, convert$lambda_0(element, arguments_0)));
|
|
416
436
|
addAll(destination_2, list);
|
|
417
437
|
}
|
|
418
438
|
var tmp$ret$29 = _NonEmptyList___init__impl__fxd0xp(destination_2);
|
|
@@ -433,7 +453,7 @@ function fold(_this__u8e3s4, arguments_0) {
|
|
|
433
453
|
var tmp;
|
|
434
454
|
if (_this__u8e3s4 instanceof Left) {
|
|
435
455
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
436
|
-
var this_0 = _this__u8e3s4.
|
|
456
|
+
var this_0 = _this__u8e3s4.sm_1.dn_1;
|
|
437
457
|
// Inline function 'kotlin.collections.map' call
|
|
438
458
|
var this_1 = _NonEmptyList___get_all__impl__pmf509(this_0);
|
|
439
459
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -449,7 +469,7 @@ function fold(_this__u8e3s4, arguments_0) {
|
|
|
449
469
|
tmp = new Left(tmp$ret$1);
|
|
450
470
|
} else {
|
|
451
471
|
if (_this__u8e3s4 instanceof Right) {
|
|
452
|
-
tmp = new Right(_this__u8e3s4.
|
|
472
|
+
tmp = new Right(_this__u8e3s4.um_1);
|
|
453
473
|
} else {
|
|
454
474
|
noWhenBranchMatchedException();
|
|
455
475
|
}
|
|
@@ -458,25 +478,25 @@ function fold(_this__u8e3s4, arguments_0) {
|
|
|
458
478
|
var this_2 = tmp;
|
|
459
479
|
var tmp_0;
|
|
460
480
|
if (this_2 instanceof Left) {
|
|
461
|
-
var it = this_2.
|
|
481
|
+
var it = this_2.sm_1.dn_1;
|
|
462
482
|
var tmp$ret$7 = joinToString(new NonEmptyList(it));
|
|
463
483
|
tmp_0 = new Left(tmp$ret$7);
|
|
464
484
|
} else {
|
|
465
485
|
if (this_2 instanceof Right) {
|
|
466
|
-
tmp_0 = new Right(this_2.
|
|
486
|
+
tmp_0 = new Right(this_2.um_1);
|
|
467
487
|
} else {
|
|
468
488
|
noWhenBranchMatchedException();
|
|
469
489
|
}
|
|
470
490
|
}
|
|
471
491
|
var tmp0 = tmp_0;
|
|
472
|
-
var tmp2 = arguments_0.
|
|
492
|
+
var tmp2 = arguments_0.r1f();
|
|
473
493
|
// Inline function 'arrow.core.Either.fold' call
|
|
474
|
-
var ifRight = arguments_0.
|
|
494
|
+
var ifRight = arguments_0.p4r();
|
|
475
495
|
if (tmp0 instanceof Right)
|
|
476
|
-
ifRight(tmp0.
|
|
496
|
+
ifRight(tmp0.um_1);
|
|
477
497
|
else {
|
|
478
498
|
if (tmp0 instanceof Left)
|
|
479
|
-
tmp2(tmp0.
|
|
499
|
+
tmp2(tmp0.sm_1);
|
|
480
500
|
else {
|
|
481
501
|
noWhenBranchMatchedException();
|
|
482
502
|
}
|
|
@@ -484,57 +504,57 @@ function fold(_this__u8e3s4, arguments_0) {
|
|
|
484
504
|
return Unit_instance;
|
|
485
505
|
}
|
|
486
506
|
function compile$ctx$1($arguments) {
|
|
487
|
-
this.
|
|
488
|
-
this.
|
|
507
|
+
this.q4r_1 = $arguments.b4r_1;
|
|
508
|
+
this.r4r_1 = $arguments.x4q_1;
|
|
489
509
|
}
|
|
490
|
-
protoOf(compile$ctx$1).
|
|
491
|
-
return this.
|
|
510
|
+
protoOf(compile$ctx$1).mo = function () {
|
|
511
|
+
return this.q4r_1;
|
|
492
512
|
};
|
|
493
|
-
protoOf(compile$ctx$1).
|
|
494
|
-
return this.
|
|
513
|
+
protoOf(compile$ctx$1).so = function () {
|
|
514
|
+
return this.r4r_1;
|
|
495
515
|
};
|
|
496
516
|
function compile$lambda(it) {
|
|
497
|
-
return new ModuleContent(new FileUri(_Name___get_value__impl__3tbxxy(it.
|
|
517
|
+
return new ModuleContent(new FileUri(_Name___get_value__impl__3tbxxy(it.s4r_1)), it.t4r_1);
|
|
498
518
|
}
|
|
499
519
|
function convert$lambda(it) {
|
|
500
|
-
return new ModuleContent(new FileUri(_Name___get_value__impl__3tbxxy(it.
|
|
520
|
+
return new ModuleContent(new FileUri(_Name___get_value__impl__3tbxxy(it.s4r_1)), it.t4r_1);
|
|
501
521
|
}
|
|
502
522
|
function convert$lambda_0($ast, $arguments) {
|
|
503
523
|
return function (it) {
|
|
504
|
-
return new NonEmptyList(it.
|
|
524
|
+
return new NonEmptyList(it.to($ast, $arguments.l4r_1));
|
|
505
525
|
};
|
|
506
526
|
}
|
|
507
527
|
function CompilerArguments(input, emitters, writer, error, packageName, logger, shared, strict, ignoreDefaults) {
|
|
508
528
|
ignoreDefaults = ignoreDefaults === VOID ? false : ignoreDefaults;
|
|
509
|
-
this.
|
|
510
|
-
this.
|
|
511
|
-
this.
|
|
512
|
-
this.
|
|
513
|
-
this.
|
|
514
|
-
this.
|
|
515
|
-
this.
|
|
516
|
-
this.
|
|
517
|
-
this.
|
|
518
|
-
}
|
|
519
|
-
protoOf(CompilerArguments).
|
|
520
|
-
return this.
|
|
529
|
+
this.w4q_1 = input;
|
|
530
|
+
this.x4q_1 = emitters;
|
|
531
|
+
this.y4q_1 = writer;
|
|
532
|
+
this.z4q_1 = error;
|
|
533
|
+
this.a4r_1 = packageName;
|
|
534
|
+
this.b4r_1 = logger;
|
|
535
|
+
this.c4r_1 = shared;
|
|
536
|
+
this.d4r_1 = strict;
|
|
537
|
+
this.e4r_1 = ignoreDefaults;
|
|
538
|
+
}
|
|
539
|
+
protoOf(CompilerArguments).p4r = function () {
|
|
540
|
+
return this.y4q_1;
|
|
521
541
|
};
|
|
522
|
-
protoOf(CompilerArguments).
|
|
523
|
-
return this.
|
|
542
|
+
protoOf(CompilerArguments).r1f = function () {
|
|
543
|
+
return this.z4q_1;
|
|
524
544
|
};
|
|
525
545
|
protoOf(CompilerArguments).toString = function () {
|
|
526
|
-
return 'CompilerArguments(input=' + NonEmptySet__toString_impl_yfcj6n(this.
|
|
546
|
+
return 'CompilerArguments(input=' + NonEmptySet__toString_impl_yfcj6n(this.w4q_1) + ', emitters=' + NonEmptySet__toString_impl_yfcj6n(this.x4q_1) + ', writer=' + toString(this.y4q_1) + ', error=' + toString(this.z4q_1) + ', packageName=' + this.a4r_1.toString() + ', logger=' + toString(this.b4r_1) + ', shared=' + this.c4r_1 + ', strict=' + this.d4r_1 + ', ignoreDefaults=' + this.e4r_1 + ')';
|
|
527
547
|
};
|
|
528
548
|
protoOf(CompilerArguments).hashCode = function () {
|
|
529
|
-
var result = NonEmptySet__hashCode_impl_co6mds(this.
|
|
530
|
-
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.
|
|
531
|
-
result = imul(result, 31) + hashCode(this.
|
|
532
|
-
result = imul(result, 31) + hashCode(this.
|
|
533
|
-
result = imul(result, 31) + hashCode(this.
|
|
534
|
-
result = imul(result, 31) + hashCode(this.
|
|
535
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
536
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
537
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
549
|
+
var result = NonEmptySet__hashCode_impl_co6mds(this.w4q_1);
|
|
550
|
+
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.x4q_1) | 0;
|
|
551
|
+
result = imul(result, 31) + hashCode(this.y4q_1) | 0;
|
|
552
|
+
result = imul(result, 31) + hashCode(this.z4q_1) | 0;
|
|
553
|
+
result = imul(result, 31) + hashCode(this.a4r_1) | 0;
|
|
554
|
+
result = imul(result, 31) + hashCode(this.b4r_1) | 0;
|
|
555
|
+
result = imul(result, 31) + getBooleanHashCode(this.c4r_1) | 0;
|
|
556
|
+
result = imul(result, 31) + getBooleanHashCode(this.d4r_1) | 0;
|
|
557
|
+
result = imul(result, 31) + getBooleanHashCode(this.e4r_1) | 0;
|
|
538
558
|
return result;
|
|
539
559
|
};
|
|
540
560
|
protoOf(CompilerArguments).equals = function (other) {
|
|
@@ -542,59 +562,59 @@ protoOf(CompilerArguments).equals = function (other) {
|
|
|
542
562
|
return true;
|
|
543
563
|
if (!(other instanceof CompilerArguments))
|
|
544
564
|
return false;
|
|
545
|
-
if (!equals(new NonEmptySet(this.
|
|
565
|
+
if (!equals(new NonEmptySet(this.w4q_1), new NonEmptySet(other.w4q_1)))
|
|
546
566
|
return false;
|
|
547
|
-
if (!equals(new NonEmptySet(this.
|
|
567
|
+
if (!equals(new NonEmptySet(this.x4q_1), new NonEmptySet(other.x4q_1)))
|
|
548
568
|
return false;
|
|
549
|
-
if (!equals(this.
|
|
569
|
+
if (!equals(this.y4q_1, other.y4q_1))
|
|
550
570
|
return false;
|
|
551
|
-
if (!equals(this.
|
|
571
|
+
if (!equals(this.z4q_1, other.z4q_1))
|
|
552
572
|
return false;
|
|
553
|
-
if (!equals(this.
|
|
573
|
+
if (!equals(this.a4r_1, other.a4r_1))
|
|
554
574
|
return false;
|
|
555
|
-
if (!equals(this.
|
|
575
|
+
if (!equals(this.b4r_1, other.b4r_1))
|
|
556
576
|
return false;
|
|
557
|
-
if (!(this.
|
|
577
|
+
if (!(this.c4r_1 === other.c4r_1))
|
|
558
578
|
return false;
|
|
559
|
-
if (!(this.
|
|
579
|
+
if (!(this.d4r_1 === other.d4r_1))
|
|
560
580
|
return false;
|
|
561
|
-
if (!(this.
|
|
581
|
+
if (!(this.e4r_1 === other.e4r_1))
|
|
562
582
|
return false;
|
|
563
583
|
return true;
|
|
564
584
|
};
|
|
565
585
|
function ConverterArguments(format, input, emitters, writer, error, packageName, logger, shared, strict, ignoreDefaults) {
|
|
566
586
|
ignoreDefaults = ignoreDefaults === VOID ? false : ignoreDefaults;
|
|
567
|
-
this.
|
|
568
|
-
this.
|
|
569
|
-
this.
|
|
570
|
-
this.
|
|
571
|
-
this.
|
|
572
|
-
this.
|
|
573
|
-
this.
|
|
574
|
-
this.
|
|
575
|
-
this.
|
|
576
|
-
this.
|
|
577
|
-
}
|
|
578
|
-
protoOf(ConverterArguments).
|
|
579
|
-
return this.
|
|
587
|
+
this.f4r_1 = format;
|
|
588
|
+
this.g4r_1 = input;
|
|
589
|
+
this.h4r_1 = emitters;
|
|
590
|
+
this.i4r_1 = writer;
|
|
591
|
+
this.j4r_1 = error;
|
|
592
|
+
this.k4r_1 = packageName;
|
|
593
|
+
this.l4r_1 = logger;
|
|
594
|
+
this.m4r_1 = shared;
|
|
595
|
+
this.n4r_1 = strict;
|
|
596
|
+
this.o4r_1 = ignoreDefaults;
|
|
597
|
+
}
|
|
598
|
+
protoOf(ConverterArguments).p4r = function () {
|
|
599
|
+
return this.i4r_1;
|
|
580
600
|
};
|
|
581
|
-
protoOf(ConverterArguments).
|
|
582
|
-
return this.
|
|
601
|
+
protoOf(ConverterArguments).r1f = function () {
|
|
602
|
+
return this.j4r_1;
|
|
583
603
|
};
|
|
584
604
|
protoOf(ConverterArguments).toString = function () {
|
|
585
|
-
return 'ConverterArguments(format=' + this.
|
|
605
|
+
return 'ConverterArguments(format=' + this.f4r_1.toString() + ', input=' + NonEmptySet__toString_impl_yfcj6n(this.g4r_1) + ', emitters=' + NonEmptySet__toString_impl_yfcj6n(this.h4r_1) + ', writer=' + toString(this.i4r_1) + ', error=' + toString(this.j4r_1) + ', packageName=' + this.k4r_1.toString() + ', logger=' + toString(this.l4r_1) + ', shared=' + this.m4r_1 + ', strict=' + this.n4r_1 + ', ignoreDefaults=' + this.o4r_1 + ')';
|
|
586
606
|
};
|
|
587
607
|
protoOf(ConverterArguments).hashCode = function () {
|
|
588
|
-
var result = this.
|
|
589
|
-
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.
|
|
590
|
-
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.
|
|
591
|
-
result = imul(result, 31) + hashCode(this.
|
|
592
|
-
result = imul(result, 31) + hashCode(this.
|
|
593
|
-
result = imul(result, 31) + hashCode(this.
|
|
594
|
-
result = imul(result, 31) + hashCode(this.
|
|
595
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
596
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
597
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
608
|
+
var result = this.f4r_1.hashCode();
|
|
609
|
+
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.g4r_1) | 0;
|
|
610
|
+
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.h4r_1) | 0;
|
|
611
|
+
result = imul(result, 31) + hashCode(this.i4r_1) | 0;
|
|
612
|
+
result = imul(result, 31) + hashCode(this.j4r_1) | 0;
|
|
613
|
+
result = imul(result, 31) + hashCode(this.k4r_1) | 0;
|
|
614
|
+
result = imul(result, 31) + hashCode(this.l4r_1) | 0;
|
|
615
|
+
result = imul(result, 31) + getBooleanHashCode(this.m4r_1) | 0;
|
|
616
|
+
result = imul(result, 31) + getBooleanHashCode(this.n4r_1) | 0;
|
|
617
|
+
result = imul(result, 31) + getBooleanHashCode(this.o4r_1) | 0;
|
|
598
618
|
return result;
|
|
599
619
|
};
|
|
600
620
|
protoOf(ConverterArguments).equals = function (other) {
|
|
@@ -602,38 +622,38 @@ protoOf(ConverterArguments).equals = function (other) {
|
|
|
602
622
|
return true;
|
|
603
623
|
if (!(other instanceof ConverterArguments))
|
|
604
624
|
return false;
|
|
605
|
-
if (!this.
|
|
625
|
+
if (!this.f4r_1.equals(other.f4r_1))
|
|
606
626
|
return false;
|
|
607
|
-
if (!equals(new NonEmptySet(this.
|
|
627
|
+
if (!equals(new NonEmptySet(this.g4r_1), new NonEmptySet(other.g4r_1)))
|
|
608
628
|
return false;
|
|
609
|
-
if (!equals(new NonEmptySet(this.
|
|
629
|
+
if (!equals(new NonEmptySet(this.h4r_1), new NonEmptySet(other.h4r_1)))
|
|
610
630
|
return false;
|
|
611
|
-
if (!equals(this.
|
|
631
|
+
if (!equals(this.i4r_1, other.i4r_1))
|
|
612
632
|
return false;
|
|
613
|
-
if (!equals(this.
|
|
633
|
+
if (!equals(this.j4r_1, other.j4r_1))
|
|
614
634
|
return false;
|
|
615
|
-
if (!equals(this.
|
|
635
|
+
if (!equals(this.k4r_1, other.k4r_1))
|
|
616
636
|
return false;
|
|
617
|
-
if (!equals(this.
|
|
637
|
+
if (!equals(this.l4r_1, other.l4r_1))
|
|
618
638
|
return false;
|
|
619
|
-
if (!(this.
|
|
639
|
+
if (!(this.m4r_1 === other.m4r_1))
|
|
620
640
|
return false;
|
|
621
|
-
if (!(this.
|
|
641
|
+
if (!(this.n4r_1 === other.n4r_1))
|
|
622
642
|
return false;
|
|
623
|
-
if (!(this.
|
|
643
|
+
if (!(this.o4r_1 === other.o4r_1))
|
|
624
644
|
return false;
|
|
625
645
|
return true;
|
|
626
646
|
};
|
|
627
647
|
function Source(name, content) {
|
|
628
|
-
this.
|
|
629
|
-
this.
|
|
648
|
+
this.s4r_1 = name;
|
|
649
|
+
this.t4r_1 = content;
|
|
630
650
|
}
|
|
631
651
|
protoOf(Source).toString = function () {
|
|
632
|
-
return 'Source(name=' + Name__toString_impl_61tomu(this.
|
|
652
|
+
return 'Source(name=' + Name__toString_impl_61tomu(this.s4r_1) + ', content=' + this.t4r_1 + ')';
|
|
633
653
|
};
|
|
634
654
|
protoOf(Source).hashCode = function () {
|
|
635
|
-
var result = Name__hashCode_impl_fpc861(this.
|
|
636
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
655
|
+
var result = Name__hashCode_impl_fpc861(this.s4r_1);
|
|
656
|
+
result = imul(result, 31) + getStringHashCode(this.t4r_1) | 0;
|
|
637
657
|
return result;
|
|
638
658
|
};
|
|
639
659
|
protoOf(Source).equals = function (other) {
|
|
@@ -641,9 +661,9 @@ protoOf(Source).equals = function (other) {
|
|
|
641
661
|
return true;
|
|
642
662
|
if (!(other instanceof Source))
|
|
643
663
|
return false;
|
|
644
|
-
if (!(this.
|
|
664
|
+
if (!(this.s4r_1 === other.s4r_1))
|
|
645
665
|
return false;
|
|
646
|
-
if (!(this.
|
|
666
|
+
if (!(this.t4r_1 === other.t4r_1))
|
|
647
667
|
return false;
|
|
648
668
|
return true;
|
|
649
669
|
};
|
|
@@ -674,24 +694,24 @@ function ClassPath__hashCode_impl_cciyyd($this) {
|
|
|
674
694
|
function ClassPath__equals_impl_kffpch($this, other) {
|
|
675
695
|
if (!(other instanceof ClassPath))
|
|
676
696
|
return false;
|
|
677
|
-
if (!($this === other.
|
|
697
|
+
if (!($this === other.u4r_1))
|
|
678
698
|
return false;
|
|
679
699
|
return true;
|
|
680
700
|
}
|
|
681
701
|
function ClassPath(value) {
|
|
682
|
-
this.
|
|
702
|
+
this.u4r_1 = value;
|
|
683
703
|
}
|
|
684
|
-
protoOf(ClassPath).
|
|
685
|
-
return _ClassPath___get_value__impl__lfuxg0(this.
|
|
704
|
+
protoOf(ClassPath).o1 = function () {
|
|
705
|
+
return _ClassPath___get_value__impl__lfuxg0(this.u4r_1);
|
|
686
706
|
};
|
|
687
707
|
protoOf(ClassPath).toString = function () {
|
|
688
|
-
return ClassPath__toString_impl_y3ovr8(this.
|
|
708
|
+
return ClassPath__toString_impl_y3ovr8(this.u4r_1);
|
|
689
709
|
};
|
|
690
710
|
protoOf(ClassPath).hashCode = function () {
|
|
691
|
-
return ClassPath__hashCode_impl_cciyyd(this.
|
|
711
|
+
return ClassPath__hashCode_impl_cciyyd(this.u4r_1);
|
|
692
712
|
};
|
|
693
713
|
protoOf(ClassPath).equals = function (other) {
|
|
694
|
-
return ClassPath__equals_impl_kffpch(this.
|
|
714
|
+
return ClassPath__equals_impl_kffpch(this.u4r_1, other);
|
|
695
715
|
};
|
|
696
716
|
function _DirectoryPath___init__impl__5bzkjd(value) {
|
|
697
717
|
return value;
|
|
@@ -708,31 +728,31 @@ function DirectoryPath__hashCode_impl_cv3skg($this) {
|
|
|
708
728
|
function DirectoryPath__equals_impl_c2rwsc($this, other) {
|
|
709
729
|
if (!(other instanceof DirectoryPath))
|
|
710
730
|
return false;
|
|
711
|
-
if (!($this === other.
|
|
731
|
+
if (!($this === other.v4r_1))
|
|
712
732
|
return false;
|
|
713
733
|
return true;
|
|
714
734
|
}
|
|
715
735
|
function DirectoryPath(value) {
|
|
716
|
-
this.
|
|
736
|
+
this.v4r_1 = value;
|
|
717
737
|
}
|
|
718
|
-
protoOf(DirectoryPath).
|
|
719
|
-
return _DirectoryPath___get_value__impl__hdy2e3(this.
|
|
738
|
+
protoOf(DirectoryPath).o1 = function () {
|
|
739
|
+
return _DirectoryPath___get_value__impl__hdy2e3(this.v4r_1);
|
|
720
740
|
};
|
|
721
741
|
protoOf(DirectoryPath).toString = function () {
|
|
722
|
-
return DirectoryPath__toString_impl_ym9pdb(this.
|
|
742
|
+
return DirectoryPath__toString_impl_ym9pdb(this.v4r_1);
|
|
723
743
|
};
|
|
724
744
|
protoOf(DirectoryPath).hashCode = function () {
|
|
725
|
-
return DirectoryPath__hashCode_impl_cv3skg(this.
|
|
745
|
+
return DirectoryPath__hashCode_impl_cv3skg(this.v4r_1);
|
|
726
746
|
};
|
|
727
747
|
protoOf(DirectoryPath).equals = function (other) {
|
|
728
|
-
return DirectoryPath__equals_impl_c2rwsc(this.
|
|
748
|
+
return DirectoryPath__equals_impl_c2rwsc(this.v4r_1, other);
|
|
729
749
|
};
|
|
730
750
|
function Directory(path) {
|
|
731
|
-
this.
|
|
751
|
+
this.w4r_1 = path;
|
|
732
752
|
}
|
|
733
753
|
function Companion_1() {
|
|
734
754
|
}
|
|
735
|
-
protoOf(Companion_1).
|
|
755
|
+
protoOf(Companion_1).x4r = function (input) {
|
|
736
756
|
// Inline function 'kotlin.let' call
|
|
737
757
|
var it = split(input, ['/']);
|
|
738
758
|
var list = plus(dropLast(it, 1), split(last(it), ['.']));
|
|
@@ -747,7 +767,7 @@ protoOf(Companion_1).n4e = function (input) {
|
|
|
747
767
|
var _iterator__ex2g4s = tmp0.t();
|
|
748
768
|
while (_iterator__ex2g4s.u()) {
|
|
749
769
|
var element = _iterator__ex2g4s.v();
|
|
750
|
-
if (element.
|
|
770
|
+
if (element.xr_1 === ext) {
|
|
751
771
|
tmp$ret$5 = element;
|
|
752
772
|
break $l$block;
|
|
753
773
|
}
|
|
@@ -766,7 +786,7 @@ protoOf(Companion_1).n4e = function (input) {
|
|
|
766
786
|
var extension = tmp;
|
|
767
787
|
var idxOfFileName = list.b1() - 2 | 0;
|
|
768
788
|
var filename = _Name___init__impl__o4q07e(list.c1(idxOfFileName));
|
|
769
|
-
var path = joinToString(list.
|
|
789
|
+
var path = joinToString(list.p2(0, idxOfFileName), '/');
|
|
770
790
|
return new FilePath(_DirectoryPath___init__impl__5bzkjd(path), filename, extension);
|
|
771
791
|
};
|
|
772
792
|
var Companion_instance_1;
|
|
@@ -774,17 +794,17 @@ function Companion_getInstance_1() {
|
|
|
774
794
|
return Companion_instance_1;
|
|
775
795
|
}
|
|
776
796
|
function FilePath(directory, name, extension) {
|
|
777
|
-
this.
|
|
778
|
-
this.
|
|
779
|
-
this.
|
|
797
|
+
this.y4r_1 = directory;
|
|
798
|
+
this.z4r_1 = name;
|
|
799
|
+
this.a4s_1 = extension;
|
|
780
800
|
}
|
|
781
801
|
protoOf(FilePath).toString = function () {
|
|
782
|
-
return DirectoryPath__toString_impl_ym9pdb(this.
|
|
802
|
+
return DirectoryPath__toString_impl_ym9pdb(this.y4r_1) + '/' + _Name___get_value__impl__3tbxxy(this.z4r_1) + '.' + this.a4s_1.xr_1;
|
|
783
803
|
};
|
|
784
804
|
protoOf(FilePath).hashCode = function () {
|
|
785
|
-
var result = DirectoryPath__hashCode_impl_cv3skg(this.
|
|
786
|
-
result = imul(result, 31) + Name__hashCode_impl_fpc861(this.
|
|
787
|
-
result = imul(result, 31) + this.
|
|
805
|
+
var result = DirectoryPath__hashCode_impl_cv3skg(this.y4r_1);
|
|
806
|
+
result = imul(result, 31) + Name__hashCode_impl_fpc861(this.z4r_1) | 0;
|
|
807
|
+
result = imul(result, 31) + this.a4s_1.hashCode() | 0;
|
|
788
808
|
return result;
|
|
789
809
|
};
|
|
790
810
|
protoOf(FilePath).equals = function (other) {
|
|
@@ -792,24 +812,24 @@ protoOf(FilePath).equals = function (other) {
|
|
|
792
812
|
return true;
|
|
793
813
|
if (!(other instanceof FilePath))
|
|
794
814
|
return false;
|
|
795
|
-
if (!(this.
|
|
815
|
+
if (!(this.y4r_1 === other.y4r_1))
|
|
796
816
|
return false;
|
|
797
|
-
if (!(this.
|
|
817
|
+
if (!(this.z4r_1 === other.z4r_1))
|
|
798
818
|
return false;
|
|
799
|
-
if (!this.
|
|
819
|
+
if (!this.a4s_1.equals(other.a4s_1))
|
|
800
820
|
return false;
|
|
801
821
|
return true;
|
|
802
822
|
};
|
|
803
823
|
function path(_this__u8e3s4) {
|
|
804
824
|
var tmp;
|
|
805
825
|
if (_this__u8e3s4 instanceof ClassPath) {
|
|
806
|
-
tmp = _ClassPath___get_value__impl__lfuxg0(_this__u8e3s4.
|
|
826
|
+
tmp = _ClassPath___get_value__impl__lfuxg0(_this__u8e3s4.u4r_1);
|
|
807
827
|
} else {
|
|
808
828
|
if (_this__u8e3s4 instanceof DirectoryPath) {
|
|
809
|
-
tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.
|
|
829
|
+
tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.v4r_1);
|
|
810
830
|
} else {
|
|
811
831
|
if (_this__u8e3s4 instanceof FilePath) {
|
|
812
|
-
tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.
|
|
832
|
+
tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.y4r_1);
|
|
813
833
|
} else {
|
|
814
834
|
noWhenBranchMatchedException();
|
|
815
835
|
}
|
|
@@ -818,13 +838,13 @@ function path(_this__u8e3s4) {
|
|
|
818
838
|
return tmp;
|
|
819
839
|
}
|
|
820
840
|
function IOError(message) {
|
|
821
|
-
this.
|
|
841
|
+
this.b4s_1 = message;
|
|
822
842
|
}
|
|
823
843
|
function WirespecFileError() {
|
|
824
844
|
SpecificFile.call(this, FileExtension_Wirespec_getInstance());
|
|
825
845
|
}
|
|
826
846
|
function SpecificFile(extension) {
|
|
827
|
-
IOError.call(this, 'No ' + extension.
|
|
847
|
+
IOError.call(this, 'No ' + extension.d3_1 + ' file found');
|
|
828
848
|
}
|
|
829
849
|
function CannotAccessFileOrDirectory(input) {
|
|
830
850
|
IOError.call(this, 'Cannot access file or directory: ' + input + '.');
|
|
@@ -850,39 +870,39 @@ function getFullPath(input, createIfNotExists_0) {
|
|
|
850
870
|
tmp_0 = new ClassPath(_ClassPath___init__impl__obyw3o(substringAfter(input, 'classpath:')));
|
|
851
871
|
} else {
|
|
852
872
|
var path = createIfNotExists(Path(input), createIfNotExists_0);
|
|
853
|
-
var tmp0_elvis_lhs = get_SystemFileSystem().
|
|
873
|
+
var tmp0_elvis_lhs = get_SystemFileSystem().k4q(path);
|
|
854
874
|
var tmp_1;
|
|
855
875
|
if (tmp0_elvis_lhs == null) {
|
|
856
|
-
raise.
|
|
876
|
+
raise.gn(new CannotAccessFileOrDirectory(input));
|
|
857
877
|
} else {
|
|
858
878
|
tmp_1 = tmp0_elvis_lhs;
|
|
859
879
|
}
|
|
860
880
|
var meta = tmp_1;
|
|
861
881
|
var pathString = path.toString();
|
|
862
882
|
var tmp_2;
|
|
863
|
-
if (meta.
|
|
883
|
+
if (meta.d4q_1) {
|
|
864
884
|
tmp_2 = new DirectoryPath(_DirectoryPath___init__impl__5bzkjd(pathString));
|
|
865
|
-
} else if (meta.
|
|
866
|
-
tmp_2 = Companion_instance_1.
|
|
885
|
+
} else if (meta.c4q_1) {
|
|
886
|
+
tmp_2 = Companion_instance_1.x4r(pathString);
|
|
867
887
|
} else {
|
|
868
|
-
raise.
|
|
888
|
+
raise.gn(new IsNotAFileOrDirectory(pathString));
|
|
869
889
|
}
|
|
870
890
|
tmp_0 = tmp_2;
|
|
871
891
|
}
|
|
872
892
|
var res = tmp_0;
|
|
873
|
-
raise.
|
|
893
|
+
raise.cn();
|
|
874
894
|
tmp = new Right(res);
|
|
875
895
|
} catch ($p) {
|
|
876
896
|
var tmp_3;
|
|
877
897
|
if ($p instanceof RaiseCancellationException) {
|
|
878
898
|
var e = $p;
|
|
879
|
-
raise.
|
|
899
|
+
raise.cn();
|
|
880
900
|
var it = raisedOrRethrow(e, raise);
|
|
881
901
|
tmp_3 = new Left(it);
|
|
882
902
|
} else {
|
|
883
903
|
if ($p instanceof Error) {
|
|
884
904
|
var e_0 = $p;
|
|
885
|
-
raise.
|
|
905
|
+
raise.cn();
|
|
886
906
|
throw nonFatalOrThrow(e_0);
|
|
887
907
|
} else {
|
|
888
908
|
throw $p;
|
|
@@ -897,12 +917,12 @@ function or(_this__u8e3s4, errorFn) {
|
|
|
897
917
|
var tmp;
|
|
898
918
|
if (_this__u8e3s4 instanceof Left) {
|
|
899
919
|
var tmp$ret$1;
|
|
900
|
-
errorFn(_this__u8e3s4.
|
|
920
|
+
errorFn(_this__u8e3s4.sm_1.b4s_1);
|
|
901
921
|
throwKotlinNothingValueException();
|
|
902
922
|
tmp = tmp$ret$1;
|
|
903
923
|
} else {
|
|
904
924
|
if (_this__u8e3s4 instanceof Right) {
|
|
905
|
-
tmp = _this__u8e3s4.
|
|
925
|
+
tmp = _this__u8e3s4.um_1;
|
|
906
926
|
} else {
|
|
907
927
|
noWhenBranchMatchedException();
|
|
908
928
|
}
|
|
@@ -916,10 +936,10 @@ function wirespecSources(_this__u8e3s4, logger) {
|
|
|
916
936
|
var raise = new DefaultRaise(false);
|
|
917
937
|
var tmp;
|
|
918
938
|
try {
|
|
919
|
-
var tmp0 = Path(_DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.
|
|
939
|
+
var tmp0 = Path(_DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.w4r_1));
|
|
920
940
|
// Inline function 'kotlin.let' call
|
|
921
941
|
// Inline function 'kotlin.collections.filter' call
|
|
922
|
-
var tmp0_0 = get_SystemFileSystem().
|
|
942
|
+
var tmp0_0 = get_SystemFileSystem().l4q(tmp0);
|
|
923
943
|
// Inline function 'kotlin.collections.filterTo' call
|
|
924
944
|
var destination = ArrayList_init_$Create$_0();
|
|
925
945
|
var _iterator__ex2g4s = tmp0_0.t();
|
|
@@ -945,11 +965,11 @@ function wirespecSources(_this__u8e3s4, logger) {
|
|
|
945
965
|
var _iterator__ex2g4s_1 = destination_0.t();
|
|
946
966
|
while (_iterator__ex2g4s_1.u()) {
|
|
947
967
|
var item = _iterator__ex2g4s_1.v();
|
|
948
|
-
var tmp$ret$14 = to(Companion_instance_1.
|
|
968
|
+
var tmp$ret$14 = to(Companion_instance_1.x4r(item.toString()), readString(buffered(get_SystemFileSystem().h4q(item))));
|
|
949
969
|
destination_1.x(tmp$ret$14);
|
|
950
970
|
}
|
|
951
971
|
// Inline function 'kotlin.also' call
|
|
952
|
-
logger.
|
|
972
|
+
logger.as('Found ' + destination_1.b1() + ' file(s) to process in ' + _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.w4r_1));
|
|
953
973
|
// Inline function 'kotlin.collections.forEachIndexed' call
|
|
954
974
|
var index = 0;
|
|
955
975
|
var _iterator__ex2g4s_2 = destination_1.t();
|
|
@@ -958,7 +978,7 @@ function wirespecSources(_this__u8e3s4, logger) {
|
|
|
958
978
|
var _unary__edvuaz = index;
|
|
959
979
|
index = _unary__edvuaz + 1 | 0;
|
|
960
980
|
var prefix = checkIndexOverflow(_unary__edvuaz) < (destination_1.b1() - 1 | 0) ? '\u251C\u2500\u2500 ' : '\u2514\u2500\u2500 ';
|
|
961
|
-
logger.
|
|
981
|
+
logger.as(' ' + prefix + ' ' + _Name___get_value__impl__3tbxxy(item_0.ff_1.z4r_1) + '.' + item_0.ff_1.a4s_1.xr_1);
|
|
962
982
|
}
|
|
963
983
|
// Inline function 'kotlin.collections.map' call
|
|
964
984
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -966,33 +986,33 @@ function wirespecSources(_this__u8e3s4, logger) {
|
|
|
966
986
|
var _iterator__ex2g4s_3 = destination_1.t();
|
|
967
987
|
while (_iterator__ex2g4s_3.u()) {
|
|
968
988
|
var item_1 = _iterator__ex2g4s_3.v();
|
|
969
|
-
var path = item_1.
|
|
970
|
-
var source = item_1.
|
|
971
|
-
var tmp$ret$21 = new Source(path.
|
|
989
|
+
var path = item_1.ze();
|
|
990
|
+
var source = item_1.af();
|
|
991
|
+
var tmp$ret$21 = new Source(path.z4r_1, source);
|
|
972
992
|
destination_2.x(tmp$ret$21);
|
|
973
993
|
}
|
|
974
994
|
var tmp0_elvis_lhs = toNonEmptySetOrNull(destination_2);
|
|
975
995
|
var tmp_0;
|
|
976
996
|
var tmp_1 = tmp0_elvis_lhs;
|
|
977
997
|
if ((tmp_1 == null ? null : new NonEmptySet(tmp_1)) == null) {
|
|
978
|
-
raise.
|
|
998
|
+
raise.gn(new WirespecFileError());
|
|
979
999
|
} else {
|
|
980
1000
|
tmp_0 = tmp0_elvis_lhs;
|
|
981
1001
|
}
|
|
982
1002
|
var res = new NonEmptySet(tmp_0);
|
|
983
|
-
raise.
|
|
1003
|
+
raise.cn();
|
|
984
1004
|
tmp = new Right(res);
|
|
985
1005
|
} catch ($p) {
|
|
986
1006
|
var tmp_2;
|
|
987
1007
|
if ($p instanceof RaiseCancellationException) {
|
|
988
1008
|
var e = $p;
|
|
989
|
-
raise.
|
|
1009
|
+
raise.cn();
|
|
990
1010
|
var it = raisedOrRethrow(e, raise);
|
|
991
1011
|
tmp_2 = new Left(it);
|
|
992
1012
|
} else {
|
|
993
1013
|
if ($p instanceof Error) {
|
|
994
1014
|
var e_0 = $p;
|
|
995
|
-
raise.
|
|
1015
|
+
raise.cn();
|
|
996
1016
|
throw nonFatalOrThrow(e_0);
|
|
997
1017
|
} else {
|
|
998
1018
|
throw $p;
|
|
@@ -1005,7 +1025,7 @@ function wirespecSources(_this__u8e3s4, logger) {
|
|
|
1005
1025
|
function read(_this__u8e3s4) {
|
|
1006
1026
|
// Inline function 'kotlin.let' call
|
|
1007
1027
|
var it = Path(_this__u8e3s4.toString());
|
|
1008
|
-
return readString(buffered(get_SystemFileSystem().
|
|
1028
|
+
return readString(buffered(get_SystemFileSystem().h4q(it)));
|
|
1009
1029
|
}
|
|
1010
1030
|
function getOutPutPath(inputPath, output) {
|
|
1011
1031
|
// Inline function 'arrow.core.raise.either' call
|
|
@@ -1014,13 +1034,13 @@ function getOutPutPath(inputPath, output) {
|
|
|
1014
1034
|
var raise = new DefaultRaise(false);
|
|
1015
1035
|
var tmp;
|
|
1016
1036
|
try {
|
|
1017
|
-
var it = raise.
|
|
1037
|
+
var it = raise.kn(getFullPath(output, true));
|
|
1018
1038
|
var tmp_0;
|
|
1019
1039
|
if (it == null) {
|
|
1020
1040
|
tmp_0 = _DirectoryPath___init__impl__5bzkjd(path(inputPath) + '/out');
|
|
1021
1041
|
} else {
|
|
1022
1042
|
if (it instanceof DirectoryPath) {
|
|
1023
|
-
tmp_0 = it.
|
|
1043
|
+
tmp_0 = it.v4r_1;
|
|
1024
1044
|
} else {
|
|
1025
1045
|
var tmp_1;
|
|
1026
1046
|
if (it instanceof FilePath) {
|
|
@@ -1029,26 +1049,26 @@ function getOutPutPath(inputPath, output) {
|
|
|
1029
1049
|
tmp_1 = it instanceof ClassPath;
|
|
1030
1050
|
}
|
|
1031
1051
|
if (tmp_1) {
|
|
1032
|
-
raise.
|
|
1052
|
+
raise.gn(new OutputShouldBeADirectory());
|
|
1033
1053
|
} else {
|
|
1034
1054
|
noWhenBranchMatchedException();
|
|
1035
1055
|
}
|
|
1036
1056
|
}
|
|
1037
1057
|
}
|
|
1038
1058
|
var res = new DirectoryPath(tmp_0);
|
|
1039
|
-
raise.
|
|
1059
|
+
raise.cn();
|
|
1040
1060
|
tmp = new Right(res);
|
|
1041
1061
|
} catch ($p) {
|
|
1042
1062
|
var tmp_2;
|
|
1043
1063
|
if ($p instanceof RaiseCancellationException) {
|
|
1044
1064
|
var e = $p;
|
|
1045
|
-
raise.
|
|
1065
|
+
raise.cn();
|
|
1046
1066
|
var it_0 = raisedOrRethrow(e, raise);
|
|
1047
1067
|
tmp_2 = new Left(it_0);
|
|
1048
1068
|
} else {
|
|
1049
1069
|
if ($p instanceof Error) {
|
|
1050
1070
|
var e_0 = $p;
|
|
1051
|
-
raise.
|
|
1071
|
+
raise.cn();
|
|
1052
1072
|
throw nonFatalOrThrow(e_0);
|
|
1053
1073
|
} else {
|
|
1054
1074
|
throw $p;
|
|
@@ -1061,38 +1081,38 @@ function getOutPutPath(inputPath, output) {
|
|
|
1061
1081
|
function write(_this__u8e3s4, string) {
|
|
1062
1082
|
// Inline function 'kotlin.also' call
|
|
1063
1083
|
var this_0 = Path(_this__u8e3s4.toString());
|
|
1064
|
-
var tmp0_safe_receiver = this_0.
|
|
1084
|
+
var tmp0_safe_receiver = this_0.n4q();
|
|
1065
1085
|
if (tmp0_safe_receiver == null)
|
|
1066
1086
|
null;
|
|
1067
1087
|
else
|
|
1068
1088
|
createIfNotExists(tmp0_safe_receiver);
|
|
1069
1089
|
// Inline function 'kotlin.let' call
|
|
1070
1090
|
// Inline function 'kotlin.apply' call
|
|
1071
|
-
var this_1 = buffered_0(get_SystemFileSystem().
|
|
1091
|
+
var this_1 = buffered_0(get_SystemFileSystem().j4q(this_0));
|
|
1072
1092
|
writeString(this_1, string);
|
|
1073
|
-
this_1.
|
|
1093
|
+
this_1.c9();
|
|
1074
1094
|
return Unit_instance;
|
|
1075
1095
|
}
|
|
1076
1096
|
function createIfNotExists(_this__u8e3s4, create) {
|
|
1077
1097
|
create = create === VOID ? true : create;
|
|
1078
1098
|
// Inline function 'kotlin.also' call
|
|
1079
|
-
if (create && !get_SystemFileSystem().
|
|
1080
|
-
get_SystemFileSystem().
|
|
1099
|
+
if (create && !get_SystemFileSystem().f4q(_this__u8e3s4)) {
|
|
1100
|
+
get_SystemFileSystem().g4q(_this__u8e3s4, true);
|
|
1081
1101
|
}
|
|
1082
1102
|
return _this__u8e3s4;
|
|
1083
1103
|
}
|
|
1084
1104
|
function isRegularFile(path) {
|
|
1085
|
-
var tmp0_safe_receiver = get_SystemFileSystem().
|
|
1086
|
-
return (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1105
|
+
var tmp0_safe_receiver = get_SystemFileSystem().k4q(path);
|
|
1106
|
+
return (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.c4q_1) === true;
|
|
1087
1107
|
}
|
|
1088
1108
|
function isWirespecFile(path) {
|
|
1089
|
-
return get_extension(path) === FileExtension_Wirespec_getInstance().
|
|
1109
|
+
return get_extension(path) === FileExtension_Wirespec_getInstance().xr_1;
|
|
1090
1110
|
}
|
|
1091
1111
|
function get_extension(_this__u8e3s4) {
|
|
1092
1112
|
return substringAfterLast(_this__u8e3s4.m(), _Char___init__impl__6a9atx(46), '');
|
|
1093
1113
|
}
|
|
1094
1114
|
//region block: post-declaration
|
|
1095
|
-
protoOf(compile$ctx$1).
|
|
1115
|
+
protoOf(compile$ctx$1).lo = get_spec;
|
|
1096
1116
|
//endregion
|
|
1097
1117
|
//region block: init
|
|
1098
1118
|
Companion_instance = new Companion();
|