@flock/wirespec 0.21.1 → 0.22.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/arrow-arrow-atomic.mjs +13 -13
- package/arrow-arrow-atomic.mjs.map +1 -1
- package/arrow-arrow-core.mjs +166 -167
- package/arrow-arrow-core.mjs.map +1 -1
- package/clikt-clikt-mordant.mjs +88 -88
- package/clikt-clikt-mordant.mjs.map +1 -1
- package/clikt-clikt.mjs +1545 -1547
- package/clikt-clikt.mjs.map +1 -1
- package/colormath-root-colormath.mjs +463 -463
- package/colormath-root-colormath.mjs.map +1 -1
- package/kotlin-kotlin-stdlib.mjs +1199 -1318
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +10323 -10296
- package/kotlin-openapi-bindings.mjs.map +1 -1
- package/kotlin-rgxgen.mjs +1811 -1815
- package/kotlin-rgxgen.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core.mjs +454 -454
- package/kotlinx-io-kotlinx-io-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1985 -1993
- package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1768 -1737
- package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
- package/mordant-mordant.mjs +1357 -1360
- package/mordant-mordant.mjs.map +1 -1
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +26678 -4523
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-java.mjs +373 -469
- package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-kotlin.mjs +322 -377
- package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-python.mjs +345 -344
- package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-rust.mjs +738 -736
- package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-scala.mjs +357 -357
- package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-typescript.mjs +472 -459
- package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-wirespec.mjs +214 -131
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +403 -336
- package/wirespec-src-compiler-lib.mjs.map +1 -1
- package/wirespec-src-converter-avro.mjs +713 -708
- package/wirespec-src-converter-avro.mjs.map +1 -1
- package/wirespec-src-converter-common.mjs +267 -0
- package/wirespec-src-converter-common.mjs.map +1 -1
- package/wirespec-src-converter-openapi.mjs +1156 -1086
- package/wirespec-src-converter-openapi.mjs.map +1 -1
- package/wirespec-src-ide-lsp.mjs +1720 -1634
- package/wirespec-src-ide-lsp.mjs.map +1 -1
- package/wirespec-src-plugin-arguments.mjs +274 -233
- package/wirespec-src-plugin-arguments.mjs.map +1 -1
- package/wirespec-src-plugin-cli.mjs +153 -128
- package/wirespec-src-plugin-cli.mjs.map +1 -1
- package/wirespec-src-plugin-npm.d.mts +23 -10
- package/wirespec-src-plugin-npm.mjs +79 -81
- package/wirespec-src-plugin-npm.mjs.map +1 -1
- package/wirespec-src-tools-generator.mjs +59 -51
- package/wirespec-src-tools-generator.mjs.map +1 -1
- package/wirespec-src-compiler-ir.mjs +0 -18912
- package/wirespec-src-compiler-ir.mjs.map +0 -1
|
@@ -3,17 +3,17 @@ import {
|
|
|
3
3
|
protoOf180f3jzyo7rfj as protoOf,
|
|
4
4
|
initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
|
|
5
5
|
enumEntries20mr21zbe3az4 as enumEntries,
|
|
6
|
-
|
|
6
|
+
Unit_instancev9v8hjid95df as Unit_instance,
|
|
7
7
|
Enum3alwj03lh1n41 as Enum,
|
|
8
8
|
initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
|
|
9
9
|
VOID3gxj6tk5isa35 as VOID,
|
|
10
10
|
collectionSizeOrDefault36dulx8yinfqm as collectionSizeOrDefault,
|
|
11
11
|
mapCapacity1h45rc3eh9p2l as mapCapacity,
|
|
12
12
|
coerceAtLeast2bkz8m9ik7hep as coerceAtLeast,
|
|
13
|
-
LinkedHashMap_init_$Create$
|
|
13
|
+
LinkedHashMap_init_$Create$1gzy1x4a46gd4 as LinkedHashMap_init_$Create$,
|
|
14
14
|
noWhenBranchMatchedException2a6r7ubxgky5j as noWhenBranchMatchedException,
|
|
15
|
-
ArrayList_init_$Create$
|
|
16
|
-
ArrayList_init_$Create$
|
|
15
|
+
ArrayList_init_$Create$2byt5m5yn22yy as ArrayList_init_$Create$,
|
|
16
|
+
ArrayList_init_$Create$37gc04va6yfo2 as ArrayList_init_$Create$_0,
|
|
17
17
|
addAll1k27qatfgp3k5 as addAll,
|
|
18
18
|
toString1pkumu07cwy4m as toString,
|
|
19
19
|
hashCodeq5arwsb9dgti as hashCode,
|
|
@@ -24,58 +24,59 @@ import {
|
|
|
24
24
|
dropLast1vpiyky649o34 as dropLast,
|
|
25
25
|
last1vo29oleiqj36 as last,
|
|
26
26
|
plus310ted5e4i90h as plus,
|
|
27
|
-
IllegalStateException_init_$Create$
|
|
27
|
+
IllegalStateException_init_$Create$1h4bcfod21ri0 as IllegalStateException_init_$Create$,
|
|
28
28
|
substringAfter35b3qhto7hchb as substringAfter,
|
|
29
29
|
startsWith26w8qjqapeeq6 as startsWith,
|
|
30
30
|
throwKotlinNothingValueException2lxmvl03dor6f as throwKotlinNothingValueException,
|
|
31
31
|
to2cs3ny02qtbcb as to,
|
|
32
32
|
checkIndexOverflow3frtmheghr0th as checkIndexOverflow,
|
|
33
|
-
|
|
33
|
+
_Char___init__impl__6a9atx2gndcvjvc5pke as _Char___init__impl__6a9atx,
|
|
34
34
|
substringAfterLast3r0t0my8cpqhk as substringAfterLast,
|
|
35
35
|
} from './kotlin-kotlin-stdlib.mjs';
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
36
|
+
import { JavaEmitter1ye60adpym6m1 as JavaEmitter } from './wirespec-src-compiler-emitters-java.mjs';
|
|
37
|
+
import { KotlinEmitterddb8247fx90i as KotlinEmitter } from './wirespec-src-compiler-emitters-kotlin.mjs';
|
|
38
|
+
import { PythonEmitter2pjclp0u1gkmn as PythonEmitter } from './wirespec-src-compiler-emitters-python.mjs';
|
|
39
|
+
import { RustEmitter1jgbjguzalmhv as RustEmitter } from './wirespec-src-compiler-emitters-rust.mjs';
|
|
40
|
+
import { ScalaEmitter3fpajh5neerxm as ScalaEmitter } from './wirespec-src-compiler-emitters-scala.mjs';
|
|
41
|
+
import { TypeScriptEmitter1b8xo1btx35xi as TypeScriptEmitter } from './wirespec-src-compiler-emitters-typescript.mjs';
|
|
42
42
|
import { WirespecEmitter2ad9je4ecrvjk as WirespecEmitter } from './wirespec-src-compiler-emitters-wirespec.mjs';
|
|
43
43
|
import {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
44
|
+
OpenAPIV2Emitter_getInstance225k4773lxme5 as OpenAPIV2Emitter_getInstance,
|
|
45
|
+
OpenAPIV3Emitter_getInstance1xw545fw8ct0e as OpenAPIV3Emitter_getInstance,
|
|
46
|
+
OpenAPIV2Parser_instanceod31xfqmuuw4 as OpenAPIV2Parser_instance,
|
|
47
|
+
OpenAPIV3Parser_instance2nsxoj7s65j71 as OpenAPIV3Parser_instance,
|
|
48
48
|
} from './wirespec-src-converter-openapi.mjs';
|
|
49
49
|
import {
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
AvroJsonEmitter_getInstanceqxb8ioshyd02 as AvroJsonEmitter_getInstance,
|
|
51
|
+
AvroJsonParser_instance5zz3bwjsci7v as AvroJsonParser_instance,
|
|
52
52
|
} from './wirespec-src-converter-avro.mjs';
|
|
53
53
|
import {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
54
|
+
NonEmptySet__map_impl_ngjswd1fxcincnj6e60 as NonEmptySet__map_impl_ngjswd,
|
|
55
|
+
_NonEmptyList___get_all__impl__pmf5092xnz0i2teaa6d as _NonEmptyList___get_all__impl__pmf509,
|
|
56
|
+
_NonEmptyList___init__impl__fxd0xprpnd63likgzm as _NonEmptyList___init__impl__fxd0xp,
|
|
57
57
|
NonEmptyList3ak25ihy2gcvs as NonEmptyList,
|
|
58
58
|
DefaultRaisevd10gc79qxh8 as DefaultRaise,
|
|
59
59
|
Right351sh2v8odavg as Right,
|
|
60
60
|
raisedOrRethrow397oyvsdde7oq as raisedOrRethrow,
|
|
61
61
|
Left2oemzq1tpcg4i as Left,
|
|
62
62
|
RaiseCancellationException3n5raogfhbd1l as RaiseCancellationException,
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
63
|
+
NonEmptySet__flatMap_impl_ovm5jg3sic4v1sa4qlf as NonEmptySet__flatMap_impl_ovm5jg,
|
|
64
|
+
NonEmptySet__toString_impl_yfcj6ns81v4qijlr42 as NonEmptySet__toString_impl_yfcj6n,
|
|
65
|
+
NonEmptySet__hashCode_impl_co6mdsl81ll59f92cp as NonEmptySet__hashCode_impl_co6mds,
|
|
66
66
|
NonEmptySet1rtvr2guloo52 as NonEmptySet,
|
|
67
67
|
toNonEmptySetOrNull1tjnd9jrkd4bs as toNonEmptySetOrNull,
|
|
68
68
|
} from './arrow-arrow-core.mjs';
|
|
69
69
|
import {
|
|
70
|
-
|
|
70
|
+
compile2gnmwcihhk0tg as compile,
|
|
71
71
|
ParseOptionspl50698nv4gs as ParseOptions,
|
|
72
|
-
|
|
72
|
+
Validator_instance3rdxavtegfyrs as Validator_instance,
|
|
73
|
+
withoutDefaults3uvx7w3zn9naw as withoutDefaults,
|
|
73
74
|
get_spec3cnzsbb1ufwje as get_spec,
|
|
74
75
|
HasLanguageSpec1fo5x3q6dcifj as HasLanguageSpec,
|
|
75
76
|
FileUri2xjkmf4jmvpab as FileUri,
|
|
76
77
|
ModuleContent750xezzquzy9 as ModuleContent,
|
|
77
78
|
get_entries1b334j69qpu9d as get_entries,
|
|
78
|
-
|
|
79
|
+
FileExtension_Wirespec_getInstance3awesett59616 as FileExtension_Wirespec_getInstance,
|
|
79
80
|
} from './wirespec-src-compiler-core.mjs';
|
|
80
81
|
import { nonFatalOrThrow35agffkx4bbtz as nonFatalOrThrow } from './arrow-arrow-exception-utils.mjs';
|
|
81
82
|
import {
|
|
@@ -167,7 +168,7 @@ var Language_OpenAPIV3_instance;
|
|
|
167
168
|
var Language_Avro_instance;
|
|
168
169
|
function Companion_0() {
|
|
169
170
|
}
|
|
170
|
-
protoOf(Companion_0).
|
|
171
|
+
protoOf(Companion_0).l4d = function () {
|
|
171
172
|
// Inline function 'kotlin.collections.associateBy' call
|
|
172
173
|
var this_0 = get_entries_1();
|
|
173
174
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
@@ -176,8 +177,8 @@ protoOf(Companion_0).x4b = function () {
|
|
|
176
177
|
var _iterator__ex2g4s = this_0.t();
|
|
177
178
|
while (_iterator__ex2g4s.u()) {
|
|
178
179
|
var element = _iterator__ex2g4s.v();
|
|
179
|
-
var tmp$ret$
|
|
180
|
-
destination.t2(tmp$ret$
|
|
180
|
+
var tmp$ret$2 = element.b3_1;
|
|
181
|
+
destination.t2(tmp$ret$2, element);
|
|
181
182
|
}
|
|
182
183
|
return destination;
|
|
183
184
|
};
|
|
@@ -220,22 +221,22 @@ function toEmitter(_this__u8e3s4, packageName, emitShared) {
|
|
|
220
221
|
var tmp;
|
|
221
222
|
switch (_this__u8e3s4.c3_1) {
|
|
222
223
|
case 0:
|
|
223
|
-
tmp = new
|
|
224
|
+
tmp = new JavaEmitter(packageName, emitShared);
|
|
224
225
|
break;
|
|
225
226
|
case 1:
|
|
226
|
-
tmp = new
|
|
227
|
+
tmp = new KotlinEmitter(packageName, emitShared);
|
|
227
228
|
break;
|
|
228
229
|
case 3:
|
|
229
|
-
tmp = new
|
|
230
|
+
tmp = new PythonEmitter(packageName, emitShared);
|
|
230
231
|
break;
|
|
231
232
|
case 4:
|
|
232
|
-
tmp = new
|
|
233
|
+
tmp = new RustEmitter(packageName, emitShared);
|
|
233
234
|
break;
|
|
234
235
|
case 5:
|
|
235
|
-
tmp = new
|
|
236
|
+
tmp = new ScalaEmitter(packageName, emitShared);
|
|
236
237
|
break;
|
|
237
238
|
case 2:
|
|
238
|
-
tmp = new
|
|
239
|
+
tmp = new TypeScriptEmitter();
|
|
239
240
|
break;
|
|
240
241
|
case 6:
|
|
241
242
|
tmp = new WirespecEmitter();
|
|
@@ -297,11 +298,11 @@ function Language_Avro_getInstance() {
|
|
|
297
298
|
}
|
|
298
299
|
function compile_0(arguments_0) {
|
|
299
300
|
var ctx = new compile$ctx$1(arguments_0);
|
|
300
|
-
fold(compile(ctx, NonEmptySet__map_impl_ngjswd(arguments_0.
|
|
301
|
+
fold(compile(ctx, NonEmptySet__map_impl_ngjswd(arguments_0.m4d_1, compile$lambda), arguments_0.u4d_1), arguments_0);
|
|
301
302
|
}
|
|
302
303
|
function convert(arguments_0) {
|
|
303
304
|
var tmp;
|
|
304
|
-
switch (arguments_0.
|
|
305
|
+
switch (arguments_0.v4d_1.c3_1) {
|
|
305
306
|
case 0:
|
|
306
307
|
tmp = OpenAPIV2Parser_instance;
|
|
307
308
|
break;
|
|
@@ -316,9 +317,9 @@ function convert(arguments_0) {
|
|
|
316
317
|
break;
|
|
317
318
|
}
|
|
318
319
|
var parser = tmp;
|
|
319
|
-
var options = new ParseOptions(arguments_0.
|
|
320
|
+
var options = new ParseOptions(arguments_0.d4e_1);
|
|
320
321
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
321
|
-
var this_0 = NonEmptySet__map_impl_ngjswd(arguments_0.
|
|
322
|
+
var this_0 = NonEmptySet__map_impl_ngjswd(arguments_0.w4d_1, convert$lambda);
|
|
322
323
|
// Inline function 'kotlin.collections.map' call
|
|
323
324
|
var this_1 = _NonEmptyList___get_all__impl__pmf509(this_0);
|
|
324
325
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -326,8 +327,8 @@ function convert(arguments_0) {
|
|
|
326
327
|
var _iterator__ex2g4s = this_1.t();
|
|
327
328
|
while (_iterator__ex2g4s.u()) {
|
|
328
329
|
var item = _iterator__ex2g4s.v();
|
|
329
|
-
var tmp$ret$
|
|
330
|
-
destination.x(tmp$ret$
|
|
330
|
+
var tmp$ret$3 = parser.v47(item, arguments_0.d4e_1);
|
|
331
|
+
destination.x(tmp$ret$3);
|
|
331
332
|
}
|
|
332
333
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
333
334
|
var this_2 = _NonEmptyList___init__impl__fxd0xp(destination);
|
|
@@ -338,8 +339,8 @@ function convert(arguments_0) {
|
|
|
338
339
|
var _iterator__ex2g4s_0 = this_3.t();
|
|
339
340
|
while (_iterator__ex2g4s_0.u()) {
|
|
340
341
|
var item_0 = _iterator__ex2g4s_0.v();
|
|
341
|
-
var tmp$ret$
|
|
342
|
-
destination_0.x(tmp$ret$
|
|
342
|
+
var tmp$ret$7 = Validator_instance.r1b(options, item_0);
|
|
343
|
+
destination_0.x(tmp$ret$7);
|
|
343
344
|
}
|
|
344
345
|
// Inline function 'kotlin.let' call
|
|
345
346
|
var it = _NonEmptyList___init__impl__fxd0xp(destination_0);
|
|
@@ -349,20 +350,20 @@ function convert(arguments_0) {
|
|
|
349
350
|
var raise = new DefaultRaise(false);
|
|
350
351
|
var tmp_0;
|
|
351
352
|
try {
|
|
352
|
-
var res = new NonEmptyList(raise.
|
|
353
|
-
raise.
|
|
353
|
+
var res = new NonEmptyList(raise.en(it));
|
|
354
|
+
raise.vm();
|
|
354
355
|
tmp_0 = new Right(res);
|
|
355
356
|
} catch ($p) {
|
|
356
357
|
var tmp_1;
|
|
357
358
|
if ($p instanceof RaiseCancellationException) {
|
|
358
359
|
var e = $p;
|
|
359
|
-
raise.
|
|
360
|
+
raise.vm();
|
|
360
361
|
var it_0 = raisedOrRethrow(e, raise);
|
|
361
362
|
tmp_1 = new Left(it_0);
|
|
362
363
|
} else {
|
|
363
364
|
if ($p instanceof Error) {
|
|
364
365
|
var e_0 = $p;
|
|
365
|
-
raise.
|
|
366
|
+
raise.vm();
|
|
366
367
|
throw nonFatalOrThrow(e_0);
|
|
367
368
|
} else {
|
|
368
369
|
throw $p;
|
|
@@ -375,20 +376,20 @@ function convert(arguments_0) {
|
|
|
375
376
|
var this_4 = tmp_0;
|
|
376
377
|
var tmp_2;
|
|
377
378
|
if (this_4 instanceof Right) {
|
|
378
|
-
// Inline function 'arrow.core.NonEmptyList.
|
|
379
|
-
var this_5 = this_4.
|
|
380
|
-
// Inline function 'kotlin.collections.
|
|
381
|
-
var
|
|
382
|
-
// Inline function 'kotlin.collections.
|
|
383
|
-
var destination_1 = ArrayList_init_$Create$
|
|
384
|
-
var _iterator__ex2g4s_1 =
|
|
379
|
+
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
380
|
+
var this_5 = this_4.nm_1.wm_1;
|
|
381
|
+
// Inline function 'kotlin.collections.map' call
|
|
382
|
+
var this_6 = _NonEmptyList___get_all__impl__pmf509(this_5);
|
|
383
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
384
|
+
var destination_1 = ArrayList_init_$Create$(collectionSizeOrDefault(this_6, 10));
|
|
385
|
+
var _iterator__ex2g4s_1 = this_6.t();
|
|
385
386
|
while (_iterator__ex2g4s_1.u()) {
|
|
386
|
-
var
|
|
387
|
-
var
|
|
388
|
-
|
|
387
|
+
var item_1 = _iterator__ex2g4s_1.v();
|
|
388
|
+
var tmp$ret$24 = arguments_0.e4e_1 ? withoutDefaults(item_1) : item_1;
|
|
389
|
+
destination_1.x(tmp$ret$24);
|
|
389
390
|
}
|
|
390
|
-
var tmp$ret$
|
|
391
|
-
var tmp$ret$20 = new NonEmptyList(tmp$ret$
|
|
391
|
+
var tmp$ret$21 = _NonEmptyList___init__impl__fxd0xp(destination_1);
|
|
392
|
+
var tmp$ret$20 = new NonEmptyList(tmp$ret$21);
|
|
392
393
|
tmp_2 = new Right(tmp$ret$20);
|
|
393
394
|
} else {
|
|
394
395
|
if (this_4 instanceof Left) {
|
|
@@ -397,15 +398,42 @@ function convert(arguments_0) {
|
|
|
397
398
|
noWhenBranchMatchedException();
|
|
398
399
|
}
|
|
399
400
|
}
|
|
400
|
-
|
|
401
|
-
|
|
401
|
+
// Inline function 'arrow.core.Either.map' call
|
|
402
|
+
// Inline function 'arrow.core.flatMap' call
|
|
403
|
+
var this_7 = tmp_2;
|
|
404
|
+
var tmp_3;
|
|
405
|
+
if (this_7 instanceof Right) {
|
|
406
|
+
// Inline function 'arrow.core.NonEmptyList.flatMap' call
|
|
407
|
+
var this_8 = this_7.nm_1.wm_1;
|
|
408
|
+
// Inline function 'kotlin.collections.flatMap' call
|
|
409
|
+
var tmp0 = _NonEmptyList___get_all__impl__pmf509(this_8);
|
|
410
|
+
// Inline function 'kotlin.collections.flatMapTo' call
|
|
411
|
+
var destination_2 = ArrayList_init_$Create$_0();
|
|
412
|
+
var _iterator__ex2g4s_2 = tmp0.t();
|
|
413
|
+
while (_iterator__ex2g4s_2.u()) {
|
|
414
|
+
var element = _iterator__ex2g4s_2.v();
|
|
415
|
+
var list = new NonEmptyList(NonEmptySet__flatMap_impl_ovm5jg(arguments_0.x4d_1, convert$lambda_0(element, arguments_0)));
|
|
416
|
+
addAll(destination_2, list);
|
|
417
|
+
}
|
|
418
|
+
var tmp$ret$29 = _NonEmptyList___init__impl__fxd0xp(destination_2);
|
|
419
|
+
var tmp$ret$28 = new NonEmptyList(tmp$ret$29);
|
|
420
|
+
tmp_3 = new Right(tmp$ret$28);
|
|
421
|
+
} else {
|
|
422
|
+
if (this_7 instanceof Left) {
|
|
423
|
+
tmp_3 = this_7;
|
|
424
|
+
} else {
|
|
425
|
+
noWhenBranchMatchedException();
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
var tmp$ret$25 = tmp_3;
|
|
429
|
+
fold(tmp$ret$25, arguments_0);
|
|
402
430
|
}
|
|
403
431
|
function fold(_this__u8e3s4, arguments_0) {
|
|
404
432
|
// Inline function 'arrow.core.Either.mapLeft' call
|
|
405
433
|
var tmp;
|
|
406
434
|
if (_this__u8e3s4 instanceof Left) {
|
|
407
435
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
408
|
-
var this_0 = _this__u8e3s4.
|
|
436
|
+
var this_0 = _this__u8e3s4.lm_1.wm_1;
|
|
409
437
|
// Inline function 'kotlin.collections.map' call
|
|
410
438
|
var this_1 = _NonEmptyList___get_all__impl__pmf509(this_0);
|
|
411
439
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -413,15 +441,15 @@ function fold(_this__u8e3s4, arguments_0) {
|
|
|
413
441
|
var _iterator__ex2g4s = this_1.t();
|
|
414
442
|
while (_iterator__ex2g4s.u()) {
|
|
415
443
|
var item = _iterator__ex2g4s.v();
|
|
416
|
-
var tmp$ret$
|
|
417
|
-
destination.x(tmp$ret$
|
|
444
|
+
var tmp$ret$5 = item.e();
|
|
445
|
+
destination.x(tmp$ret$5);
|
|
418
446
|
}
|
|
419
|
-
var tmp$ret$
|
|
420
|
-
var tmp$ret$
|
|
421
|
-
tmp = new Left(tmp$ret$
|
|
447
|
+
var tmp$ret$2 = _NonEmptyList___init__impl__fxd0xp(destination);
|
|
448
|
+
var tmp$ret$1 = new NonEmptyList(tmp$ret$2);
|
|
449
|
+
tmp = new Left(tmp$ret$1);
|
|
422
450
|
} else {
|
|
423
451
|
if (_this__u8e3s4 instanceof Right) {
|
|
424
|
-
tmp = new Right(_this__u8e3s4.
|
|
452
|
+
tmp = new Right(_this__u8e3s4.nm_1);
|
|
425
453
|
} else {
|
|
426
454
|
noWhenBranchMatchedException();
|
|
427
455
|
}
|
|
@@ -430,25 +458,25 @@ function fold(_this__u8e3s4, arguments_0) {
|
|
|
430
458
|
var this_2 = tmp;
|
|
431
459
|
var tmp_0;
|
|
432
460
|
if (this_2 instanceof Left) {
|
|
433
|
-
var it = this_2.
|
|
434
|
-
var tmp$ret$
|
|
435
|
-
tmp_0 = new Left(tmp$ret$
|
|
461
|
+
var it = this_2.lm_1.wm_1;
|
|
462
|
+
var tmp$ret$7 = joinToString(new NonEmptyList(it));
|
|
463
|
+
tmp_0 = new Left(tmp$ret$7);
|
|
436
464
|
} else {
|
|
437
465
|
if (this_2 instanceof Right) {
|
|
438
|
-
tmp_0 = new Right(this_2.
|
|
466
|
+
tmp_0 = new Right(this_2.nm_1);
|
|
439
467
|
} else {
|
|
440
468
|
noWhenBranchMatchedException();
|
|
441
469
|
}
|
|
442
470
|
}
|
|
443
471
|
var tmp0 = tmp_0;
|
|
444
|
-
var tmp2 = arguments_0.
|
|
472
|
+
var tmp2 = arguments_0.w1e();
|
|
445
473
|
// Inline function 'arrow.core.Either.fold' call
|
|
446
|
-
var ifRight = arguments_0.
|
|
474
|
+
var ifRight = arguments_0.f4e();
|
|
447
475
|
if (tmp0 instanceof Right)
|
|
448
|
-
ifRight(tmp0.
|
|
476
|
+
ifRight(tmp0.nm_1);
|
|
449
477
|
else {
|
|
450
478
|
if (tmp0 instanceof Left)
|
|
451
|
-
tmp2(tmp0.
|
|
479
|
+
tmp2(tmp0.lm_1);
|
|
452
480
|
else {
|
|
453
481
|
noWhenBranchMatchedException();
|
|
454
482
|
}
|
|
@@ -456,54 +484,57 @@ function fold(_this__u8e3s4, arguments_0) {
|
|
|
456
484
|
return Unit_instance;
|
|
457
485
|
}
|
|
458
486
|
function compile$ctx$1($arguments) {
|
|
459
|
-
this.
|
|
460
|
-
this.
|
|
487
|
+
this.g4e_1 = $arguments.r4d_1;
|
|
488
|
+
this.h4e_1 = $arguments.n4d_1;
|
|
461
489
|
}
|
|
462
|
-
protoOf(compile$ctx$1).
|
|
463
|
-
return this.
|
|
490
|
+
protoOf(compile$ctx$1).fo = function () {
|
|
491
|
+
return this.g4e_1;
|
|
464
492
|
};
|
|
465
|
-
protoOf(compile$ctx$1).
|
|
466
|
-
return this.
|
|
493
|
+
protoOf(compile$ctx$1).lo = function () {
|
|
494
|
+
return this.h4e_1;
|
|
467
495
|
};
|
|
468
496
|
function compile$lambda(it) {
|
|
469
|
-
return new ModuleContent(new FileUri(_Name___get_value__impl__3tbxxy(it.
|
|
497
|
+
return new ModuleContent(new FileUri(_Name___get_value__impl__3tbxxy(it.i4e_1)), it.j4e_1);
|
|
470
498
|
}
|
|
471
499
|
function convert$lambda(it) {
|
|
472
|
-
return new ModuleContent(new FileUri(_Name___get_value__impl__3tbxxy(it.
|
|
500
|
+
return new ModuleContent(new FileUri(_Name___get_value__impl__3tbxxy(it.i4e_1)), it.j4e_1);
|
|
473
501
|
}
|
|
474
502
|
function convert$lambda_0($ast, $arguments) {
|
|
475
503
|
return function (it) {
|
|
476
|
-
return new NonEmptyList(it.
|
|
504
|
+
return new NonEmptyList(it.mo($ast, $arguments.b4e_1));
|
|
477
505
|
};
|
|
478
506
|
}
|
|
479
|
-
function CompilerArguments(input, emitters, writer, error, packageName, logger, shared, strict) {
|
|
480
|
-
|
|
481
|
-
this.
|
|
482
|
-
this.
|
|
483
|
-
this.
|
|
484
|
-
this.
|
|
485
|
-
this.
|
|
486
|
-
this.
|
|
487
|
-
this.
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
507
|
+
function CompilerArguments(input, emitters, writer, error, packageName, logger, shared, strict, ignoreDefaults) {
|
|
508
|
+
ignoreDefaults = ignoreDefaults === VOID ? false : ignoreDefaults;
|
|
509
|
+
this.m4d_1 = input;
|
|
510
|
+
this.n4d_1 = emitters;
|
|
511
|
+
this.o4d_1 = writer;
|
|
512
|
+
this.p4d_1 = error;
|
|
513
|
+
this.q4d_1 = packageName;
|
|
514
|
+
this.r4d_1 = logger;
|
|
515
|
+
this.s4d_1 = shared;
|
|
516
|
+
this.t4d_1 = strict;
|
|
517
|
+
this.u4d_1 = ignoreDefaults;
|
|
518
|
+
}
|
|
519
|
+
protoOf(CompilerArguments).f4e = function () {
|
|
520
|
+
return this.o4d_1;
|
|
491
521
|
};
|
|
492
|
-
protoOf(CompilerArguments).
|
|
493
|
-
return this.
|
|
522
|
+
protoOf(CompilerArguments).w1e = function () {
|
|
523
|
+
return this.p4d_1;
|
|
494
524
|
};
|
|
495
525
|
protoOf(CompilerArguments).toString = function () {
|
|
496
|
-
return 'CompilerArguments(input=' + NonEmptySet__toString_impl_yfcj6n(this.
|
|
526
|
+
return 'CompilerArguments(input=' + NonEmptySet__toString_impl_yfcj6n(this.m4d_1) + ', emitters=' + NonEmptySet__toString_impl_yfcj6n(this.n4d_1) + ', writer=' + toString(this.o4d_1) + ', error=' + toString(this.p4d_1) + ', packageName=' + this.q4d_1.toString() + ', logger=' + toString(this.r4d_1) + ', shared=' + this.s4d_1 + ', strict=' + this.t4d_1 + ', ignoreDefaults=' + this.u4d_1 + ')';
|
|
497
527
|
};
|
|
498
528
|
protoOf(CompilerArguments).hashCode = function () {
|
|
499
|
-
var result = NonEmptySet__hashCode_impl_co6mds(this.
|
|
500
|
-
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.
|
|
501
|
-
result = imul(result, 31) + hashCode(this.
|
|
502
|
-
result = imul(result, 31) + hashCode(this.
|
|
503
|
-
result = imul(result, 31) + hashCode(this.
|
|
504
|
-
result = imul(result, 31) + hashCode(this.
|
|
505
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
506
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
529
|
+
var result = NonEmptySet__hashCode_impl_co6mds(this.m4d_1);
|
|
530
|
+
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.n4d_1) | 0;
|
|
531
|
+
result = imul(result, 31) + hashCode(this.o4d_1) | 0;
|
|
532
|
+
result = imul(result, 31) + hashCode(this.p4d_1) | 0;
|
|
533
|
+
result = imul(result, 31) + hashCode(this.q4d_1) | 0;
|
|
534
|
+
result = imul(result, 31) + hashCode(this.r4d_1) | 0;
|
|
535
|
+
result = imul(result, 31) + getBooleanHashCode(this.s4d_1) | 0;
|
|
536
|
+
result = imul(result, 31) + getBooleanHashCode(this.t4d_1) | 0;
|
|
537
|
+
result = imul(result, 31) + getBooleanHashCode(this.u4d_1) | 0;
|
|
507
538
|
return result;
|
|
508
539
|
};
|
|
509
540
|
protoOf(CompilerArguments).equals = function (other) {
|
|
@@ -511,54 +542,59 @@ protoOf(CompilerArguments).equals = function (other) {
|
|
|
511
542
|
return true;
|
|
512
543
|
if (!(other instanceof CompilerArguments))
|
|
513
544
|
return false;
|
|
514
|
-
if (!equals(new NonEmptySet(this.
|
|
545
|
+
if (!equals(new NonEmptySet(this.m4d_1), new NonEmptySet(other.m4d_1)))
|
|
515
546
|
return false;
|
|
516
|
-
if (!equals(new NonEmptySet(this.
|
|
547
|
+
if (!equals(new NonEmptySet(this.n4d_1), new NonEmptySet(other.n4d_1)))
|
|
517
548
|
return false;
|
|
518
|
-
if (!equals(this.
|
|
549
|
+
if (!equals(this.o4d_1, other.o4d_1))
|
|
519
550
|
return false;
|
|
520
|
-
if (!equals(this.
|
|
551
|
+
if (!equals(this.p4d_1, other.p4d_1))
|
|
521
552
|
return false;
|
|
522
|
-
if (!equals(this.
|
|
553
|
+
if (!equals(this.q4d_1, other.q4d_1))
|
|
523
554
|
return false;
|
|
524
|
-
if (!equals(this.
|
|
555
|
+
if (!equals(this.r4d_1, other.r4d_1))
|
|
525
556
|
return false;
|
|
526
|
-
if (!(this.
|
|
557
|
+
if (!(this.s4d_1 === other.s4d_1))
|
|
527
558
|
return false;
|
|
528
|
-
if (!(this.
|
|
559
|
+
if (!(this.t4d_1 === other.t4d_1))
|
|
560
|
+
return false;
|
|
561
|
+
if (!(this.u4d_1 === other.u4d_1))
|
|
529
562
|
return false;
|
|
530
563
|
return true;
|
|
531
564
|
};
|
|
532
|
-
function ConverterArguments(format, input, emitters, writer, error, packageName, logger, shared, strict) {
|
|
533
|
-
|
|
534
|
-
this.
|
|
535
|
-
this.
|
|
536
|
-
this.
|
|
537
|
-
this.
|
|
538
|
-
this.
|
|
539
|
-
this.
|
|
540
|
-
this.
|
|
541
|
-
this.
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
565
|
+
function ConverterArguments(format, input, emitters, writer, error, packageName, logger, shared, strict, ignoreDefaults) {
|
|
566
|
+
ignoreDefaults = ignoreDefaults === VOID ? false : ignoreDefaults;
|
|
567
|
+
this.v4d_1 = format;
|
|
568
|
+
this.w4d_1 = input;
|
|
569
|
+
this.x4d_1 = emitters;
|
|
570
|
+
this.y4d_1 = writer;
|
|
571
|
+
this.z4d_1 = error;
|
|
572
|
+
this.a4e_1 = packageName;
|
|
573
|
+
this.b4e_1 = logger;
|
|
574
|
+
this.c4e_1 = shared;
|
|
575
|
+
this.d4e_1 = strict;
|
|
576
|
+
this.e4e_1 = ignoreDefaults;
|
|
577
|
+
}
|
|
578
|
+
protoOf(ConverterArguments).f4e = function () {
|
|
579
|
+
return this.y4d_1;
|
|
545
580
|
};
|
|
546
|
-
protoOf(ConverterArguments).
|
|
547
|
-
return this.
|
|
581
|
+
protoOf(ConverterArguments).w1e = function () {
|
|
582
|
+
return this.z4d_1;
|
|
548
583
|
};
|
|
549
584
|
protoOf(ConverterArguments).toString = function () {
|
|
550
|
-
return 'ConverterArguments(format=' + this.
|
|
585
|
+
return 'ConverterArguments(format=' + this.v4d_1.toString() + ', input=' + NonEmptySet__toString_impl_yfcj6n(this.w4d_1) + ', emitters=' + NonEmptySet__toString_impl_yfcj6n(this.x4d_1) + ', writer=' + toString(this.y4d_1) + ', error=' + toString(this.z4d_1) + ', packageName=' + this.a4e_1.toString() + ', logger=' + toString(this.b4e_1) + ', shared=' + this.c4e_1 + ', strict=' + this.d4e_1 + ', ignoreDefaults=' + this.e4e_1 + ')';
|
|
551
586
|
};
|
|
552
587
|
protoOf(ConverterArguments).hashCode = function () {
|
|
553
|
-
var result = this.
|
|
554
|
-
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.
|
|
555
|
-
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.
|
|
556
|
-
result = imul(result, 31) + hashCode(this.
|
|
557
|
-
result = imul(result, 31) + hashCode(this.
|
|
558
|
-
result = imul(result, 31) + hashCode(this.
|
|
559
|
-
result = imul(result, 31) + hashCode(this.
|
|
560
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
561
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
588
|
+
var result = this.v4d_1.hashCode();
|
|
589
|
+
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.w4d_1) | 0;
|
|
590
|
+
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.x4d_1) | 0;
|
|
591
|
+
result = imul(result, 31) + hashCode(this.y4d_1) | 0;
|
|
592
|
+
result = imul(result, 31) + hashCode(this.z4d_1) | 0;
|
|
593
|
+
result = imul(result, 31) + hashCode(this.a4e_1) | 0;
|
|
594
|
+
result = imul(result, 31) + hashCode(this.b4e_1) | 0;
|
|
595
|
+
result = imul(result, 31) + getBooleanHashCode(this.c4e_1) | 0;
|
|
596
|
+
result = imul(result, 31) + getBooleanHashCode(this.d4e_1) | 0;
|
|
597
|
+
result = imul(result, 31) + getBooleanHashCode(this.e4e_1) | 0;
|
|
562
598
|
return result;
|
|
563
599
|
};
|
|
564
600
|
protoOf(ConverterArguments).equals = function (other) {
|
|
@@ -566,36 +602,38 @@ protoOf(ConverterArguments).equals = function (other) {
|
|
|
566
602
|
return true;
|
|
567
603
|
if (!(other instanceof ConverterArguments))
|
|
568
604
|
return false;
|
|
569
|
-
if (!this.
|
|
605
|
+
if (!this.v4d_1.equals(other.v4d_1))
|
|
606
|
+
return false;
|
|
607
|
+
if (!equals(new NonEmptySet(this.w4d_1), new NonEmptySet(other.w4d_1)))
|
|
570
608
|
return false;
|
|
571
|
-
if (!equals(new NonEmptySet(this.
|
|
609
|
+
if (!equals(new NonEmptySet(this.x4d_1), new NonEmptySet(other.x4d_1)))
|
|
572
610
|
return false;
|
|
573
|
-
if (!equals(
|
|
611
|
+
if (!equals(this.y4d_1, other.y4d_1))
|
|
574
612
|
return false;
|
|
575
|
-
if (!equals(this.
|
|
613
|
+
if (!equals(this.z4d_1, other.z4d_1))
|
|
576
614
|
return false;
|
|
577
|
-
if (!equals(this.
|
|
615
|
+
if (!equals(this.a4e_1, other.a4e_1))
|
|
578
616
|
return false;
|
|
579
|
-
if (!equals(this.
|
|
617
|
+
if (!equals(this.b4e_1, other.b4e_1))
|
|
580
618
|
return false;
|
|
581
|
-
if (!
|
|
619
|
+
if (!(this.c4e_1 === other.c4e_1))
|
|
582
620
|
return false;
|
|
583
|
-
if (!(this.
|
|
621
|
+
if (!(this.d4e_1 === other.d4e_1))
|
|
584
622
|
return false;
|
|
585
|
-
if (!(this.
|
|
623
|
+
if (!(this.e4e_1 === other.e4e_1))
|
|
586
624
|
return false;
|
|
587
625
|
return true;
|
|
588
626
|
};
|
|
589
627
|
function Source(name, content) {
|
|
590
|
-
this.
|
|
591
|
-
this.
|
|
628
|
+
this.i4e_1 = name;
|
|
629
|
+
this.j4e_1 = content;
|
|
592
630
|
}
|
|
593
631
|
protoOf(Source).toString = function () {
|
|
594
|
-
return 'Source(name=' + Name__toString_impl_61tomu(this.
|
|
632
|
+
return 'Source(name=' + Name__toString_impl_61tomu(this.i4e_1) + ', content=' + this.j4e_1 + ')';
|
|
595
633
|
};
|
|
596
634
|
protoOf(Source).hashCode = function () {
|
|
597
|
-
var result = Name__hashCode_impl_fpc861(this.
|
|
598
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
635
|
+
var result = Name__hashCode_impl_fpc861(this.i4e_1);
|
|
636
|
+
result = imul(result, 31) + getStringHashCode(this.j4e_1) | 0;
|
|
599
637
|
return result;
|
|
600
638
|
};
|
|
601
639
|
protoOf(Source).equals = function (other) {
|
|
@@ -603,9 +641,9 @@ protoOf(Source).equals = function (other) {
|
|
|
603
641
|
return true;
|
|
604
642
|
if (!(other instanceof Source))
|
|
605
643
|
return false;
|
|
606
|
-
if (!(this.
|
|
644
|
+
if (!(this.i4e_1 === other.i4e_1))
|
|
607
645
|
return false;
|
|
608
|
-
if (!(this.
|
|
646
|
+
if (!(this.j4e_1 === other.j4e_1))
|
|
609
647
|
return false;
|
|
610
648
|
return true;
|
|
611
649
|
};
|
|
@@ -636,24 +674,24 @@ function ClassPath__hashCode_impl_cciyyd($this) {
|
|
|
636
674
|
function ClassPath__equals_impl_kffpch($this, other) {
|
|
637
675
|
if (!(other instanceof ClassPath))
|
|
638
676
|
return false;
|
|
639
|
-
if (!($this === other.
|
|
677
|
+
if (!($this === other.k4e_1))
|
|
640
678
|
return false;
|
|
641
679
|
return true;
|
|
642
680
|
}
|
|
643
681
|
function ClassPath(value) {
|
|
644
|
-
this.
|
|
682
|
+
this.k4e_1 = value;
|
|
645
683
|
}
|
|
646
684
|
protoOf(ClassPath).m1 = function () {
|
|
647
|
-
return _ClassPath___get_value__impl__lfuxg0(this.
|
|
685
|
+
return _ClassPath___get_value__impl__lfuxg0(this.k4e_1);
|
|
648
686
|
};
|
|
649
687
|
protoOf(ClassPath).toString = function () {
|
|
650
|
-
return ClassPath__toString_impl_y3ovr8(this.
|
|
688
|
+
return ClassPath__toString_impl_y3ovr8(this.k4e_1);
|
|
651
689
|
};
|
|
652
690
|
protoOf(ClassPath).hashCode = function () {
|
|
653
|
-
return ClassPath__hashCode_impl_cciyyd(this.
|
|
691
|
+
return ClassPath__hashCode_impl_cciyyd(this.k4e_1);
|
|
654
692
|
};
|
|
655
693
|
protoOf(ClassPath).equals = function (other) {
|
|
656
|
-
return ClassPath__equals_impl_kffpch(this.
|
|
694
|
+
return ClassPath__equals_impl_kffpch(this.k4e_1, other);
|
|
657
695
|
};
|
|
658
696
|
function _DirectoryPath___init__impl__5bzkjd(value) {
|
|
659
697
|
return value;
|
|
@@ -670,31 +708,31 @@ function DirectoryPath__hashCode_impl_cv3skg($this) {
|
|
|
670
708
|
function DirectoryPath__equals_impl_c2rwsc($this, other) {
|
|
671
709
|
if (!(other instanceof DirectoryPath))
|
|
672
710
|
return false;
|
|
673
|
-
if (!($this === other.
|
|
711
|
+
if (!($this === other.l4e_1))
|
|
674
712
|
return false;
|
|
675
713
|
return true;
|
|
676
714
|
}
|
|
677
715
|
function DirectoryPath(value) {
|
|
678
|
-
this.
|
|
716
|
+
this.l4e_1 = value;
|
|
679
717
|
}
|
|
680
718
|
protoOf(DirectoryPath).m1 = function () {
|
|
681
|
-
return _DirectoryPath___get_value__impl__hdy2e3(this.
|
|
719
|
+
return _DirectoryPath___get_value__impl__hdy2e3(this.l4e_1);
|
|
682
720
|
};
|
|
683
721
|
protoOf(DirectoryPath).toString = function () {
|
|
684
|
-
return DirectoryPath__toString_impl_ym9pdb(this.
|
|
722
|
+
return DirectoryPath__toString_impl_ym9pdb(this.l4e_1);
|
|
685
723
|
};
|
|
686
724
|
protoOf(DirectoryPath).hashCode = function () {
|
|
687
|
-
return DirectoryPath__hashCode_impl_cv3skg(this.
|
|
725
|
+
return DirectoryPath__hashCode_impl_cv3skg(this.l4e_1);
|
|
688
726
|
};
|
|
689
727
|
protoOf(DirectoryPath).equals = function (other) {
|
|
690
|
-
return DirectoryPath__equals_impl_c2rwsc(this.
|
|
728
|
+
return DirectoryPath__equals_impl_c2rwsc(this.l4e_1, other);
|
|
691
729
|
};
|
|
692
730
|
function Directory(path) {
|
|
693
|
-
this.
|
|
731
|
+
this.m4e_1 = path;
|
|
694
732
|
}
|
|
695
733
|
function Companion_1() {
|
|
696
734
|
}
|
|
697
|
-
protoOf(Companion_1).
|
|
735
|
+
protoOf(Companion_1).n4e = function (input) {
|
|
698
736
|
// Inline function 'kotlin.let' call
|
|
699
737
|
var it = split(input, ['/']);
|
|
700
738
|
var list = plus(dropLast(it, 1), split(last(it), ['.']));
|
|
@@ -709,7 +747,7 @@ protoOf(Companion_1).x4c = function (input) {
|
|
|
709
747
|
var _iterator__ex2g4s = tmp0.t();
|
|
710
748
|
while (_iterator__ex2g4s.u()) {
|
|
711
749
|
var element = _iterator__ex2g4s.v();
|
|
712
|
-
if (element.
|
|
750
|
+
if (element.nr_1 === ext) {
|
|
713
751
|
tmp$ret$5 = element;
|
|
714
752
|
break $l$block;
|
|
715
753
|
}
|
|
@@ -719,6 +757,7 @@ protoOf(Companion_1).x4c = function (input) {
|
|
|
719
757
|
var tmp0_elvis_lhs = tmp$ret$5;
|
|
720
758
|
var tmp;
|
|
721
759
|
if (tmp0_elvis_lhs == null) {
|
|
760
|
+
// Inline function 'kotlin.error' call
|
|
722
761
|
var message = 'Invalid file extension: ' + ext;
|
|
723
762
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
724
763
|
} else {
|
|
@@ -735,17 +774,17 @@ function Companion_getInstance_1() {
|
|
|
735
774
|
return Companion_instance_1;
|
|
736
775
|
}
|
|
737
776
|
function FilePath(directory, name, extension) {
|
|
738
|
-
this.
|
|
739
|
-
this.
|
|
740
|
-
this.
|
|
777
|
+
this.o4e_1 = directory;
|
|
778
|
+
this.p4e_1 = name;
|
|
779
|
+
this.q4e_1 = extension;
|
|
741
780
|
}
|
|
742
781
|
protoOf(FilePath).toString = function () {
|
|
743
|
-
return DirectoryPath__toString_impl_ym9pdb(this.
|
|
782
|
+
return DirectoryPath__toString_impl_ym9pdb(this.o4e_1) + '/' + _Name___get_value__impl__3tbxxy(this.p4e_1) + '.' + this.q4e_1.nr_1;
|
|
744
783
|
};
|
|
745
784
|
protoOf(FilePath).hashCode = function () {
|
|
746
|
-
var result = DirectoryPath__hashCode_impl_cv3skg(this.
|
|
747
|
-
result = imul(result, 31) + Name__hashCode_impl_fpc861(this.
|
|
748
|
-
result = imul(result, 31) + this.
|
|
785
|
+
var result = DirectoryPath__hashCode_impl_cv3skg(this.o4e_1);
|
|
786
|
+
result = imul(result, 31) + Name__hashCode_impl_fpc861(this.p4e_1) | 0;
|
|
787
|
+
result = imul(result, 31) + this.q4e_1.hashCode() | 0;
|
|
749
788
|
return result;
|
|
750
789
|
};
|
|
751
790
|
protoOf(FilePath).equals = function (other) {
|
|
@@ -753,24 +792,24 @@ protoOf(FilePath).equals = function (other) {
|
|
|
753
792
|
return true;
|
|
754
793
|
if (!(other instanceof FilePath))
|
|
755
794
|
return false;
|
|
756
|
-
if (!(this.
|
|
795
|
+
if (!(this.o4e_1 === other.o4e_1))
|
|
757
796
|
return false;
|
|
758
|
-
if (!(this.
|
|
797
|
+
if (!(this.p4e_1 === other.p4e_1))
|
|
759
798
|
return false;
|
|
760
|
-
if (!this.
|
|
799
|
+
if (!this.q4e_1.equals(other.q4e_1))
|
|
761
800
|
return false;
|
|
762
801
|
return true;
|
|
763
802
|
};
|
|
764
803
|
function path(_this__u8e3s4) {
|
|
765
804
|
var tmp;
|
|
766
805
|
if (_this__u8e3s4 instanceof ClassPath) {
|
|
767
|
-
tmp = _ClassPath___get_value__impl__lfuxg0(_this__u8e3s4.
|
|
806
|
+
tmp = _ClassPath___get_value__impl__lfuxg0(_this__u8e3s4.k4e_1);
|
|
768
807
|
} else {
|
|
769
808
|
if (_this__u8e3s4 instanceof DirectoryPath) {
|
|
770
|
-
tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.
|
|
809
|
+
tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.l4e_1);
|
|
771
810
|
} else {
|
|
772
811
|
if (_this__u8e3s4 instanceof FilePath) {
|
|
773
|
-
tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.
|
|
812
|
+
tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.o4e_1);
|
|
774
813
|
} else {
|
|
775
814
|
noWhenBranchMatchedException();
|
|
776
815
|
}
|
|
@@ -779,7 +818,7 @@ function path(_this__u8e3s4) {
|
|
|
779
818
|
return tmp;
|
|
780
819
|
}
|
|
781
820
|
function IOError(message) {
|
|
782
|
-
this.
|
|
821
|
+
this.r4e_1 = message;
|
|
783
822
|
}
|
|
784
823
|
function WirespecFileError() {
|
|
785
824
|
SpecificFile.call(this, FileExtension_Wirespec_getInstance());
|
|
@@ -811,39 +850,39 @@ function getFullPath(input, createIfNotExists_0) {
|
|
|
811
850
|
tmp_0 = new ClassPath(_ClassPath___init__impl__obyw3o(substringAfter(input, 'classpath:')));
|
|
812
851
|
} else {
|
|
813
852
|
var path = createIfNotExists(Path(input), createIfNotExists_0);
|
|
814
|
-
var tmp0_elvis_lhs = get_SystemFileSystem().
|
|
853
|
+
var tmp0_elvis_lhs = get_SystemFileSystem().a4d(path);
|
|
815
854
|
var tmp_1;
|
|
816
855
|
if (tmp0_elvis_lhs == null) {
|
|
817
|
-
raise.
|
|
856
|
+
raise.zm(new CannotAccessFileOrDirectory(input));
|
|
818
857
|
} else {
|
|
819
858
|
tmp_1 = tmp0_elvis_lhs;
|
|
820
859
|
}
|
|
821
860
|
var meta = tmp_1;
|
|
822
861
|
var pathString = path.toString();
|
|
823
862
|
var tmp_2;
|
|
824
|
-
if (meta.
|
|
863
|
+
if (meta.t4c_1) {
|
|
825
864
|
tmp_2 = new DirectoryPath(_DirectoryPath___init__impl__5bzkjd(pathString));
|
|
826
|
-
} else if (meta.
|
|
827
|
-
tmp_2 = Companion_instance_1.
|
|
865
|
+
} else if (meta.s4c_1) {
|
|
866
|
+
tmp_2 = Companion_instance_1.n4e(pathString);
|
|
828
867
|
} else {
|
|
829
|
-
raise.
|
|
868
|
+
raise.zm(new IsNotAFileOrDirectory(pathString));
|
|
830
869
|
}
|
|
831
870
|
tmp_0 = tmp_2;
|
|
832
871
|
}
|
|
833
872
|
var res = tmp_0;
|
|
834
|
-
raise.
|
|
873
|
+
raise.vm();
|
|
835
874
|
tmp = new Right(res);
|
|
836
875
|
} catch ($p) {
|
|
837
876
|
var tmp_3;
|
|
838
877
|
if ($p instanceof RaiseCancellationException) {
|
|
839
878
|
var e = $p;
|
|
840
|
-
raise.
|
|
879
|
+
raise.vm();
|
|
841
880
|
var it = raisedOrRethrow(e, raise);
|
|
842
881
|
tmp_3 = new Left(it);
|
|
843
882
|
} else {
|
|
844
883
|
if ($p instanceof Error) {
|
|
845
884
|
var e_0 = $p;
|
|
846
|
-
raise.
|
|
885
|
+
raise.vm();
|
|
847
886
|
throw nonFatalOrThrow(e_0);
|
|
848
887
|
} else {
|
|
849
888
|
throw $p;
|
|
@@ -857,11 +896,13 @@ function or(_this__u8e3s4, errorFn) {
|
|
|
857
896
|
// Inline function 'arrow.core.getOrElse' call
|
|
858
897
|
var tmp;
|
|
859
898
|
if (_this__u8e3s4 instanceof Left) {
|
|
860
|
-
|
|
861
|
-
|
|
899
|
+
var tmp$ret$1;
|
|
900
|
+
errorFn(_this__u8e3s4.lm_1.r4e_1);
|
|
901
|
+
throwKotlinNothingValueException();
|
|
902
|
+
tmp = tmp$ret$1;
|
|
862
903
|
} else {
|
|
863
904
|
if (_this__u8e3s4 instanceof Right) {
|
|
864
|
-
tmp = _this__u8e3s4.
|
|
905
|
+
tmp = _this__u8e3s4.nm_1;
|
|
865
906
|
} else {
|
|
866
907
|
noWhenBranchMatchedException();
|
|
867
908
|
}
|
|
@@ -875,10 +916,10 @@ function wirespecSources(_this__u8e3s4, logger) {
|
|
|
875
916
|
var raise = new DefaultRaise(false);
|
|
876
917
|
var tmp;
|
|
877
918
|
try {
|
|
878
|
-
var tmp0 = Path(_DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.
|
|
919
|
+
var tmp0 = Path(_DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.m4e_1));
|
|
879
920
|
// Inline function 'kotlin.let' call
|
|
880
921
|
// Inline function 'kotlin.collections.filter' call
|
|
881
|
-
var tmp0_0 = get_SystemFileSystem().
|
|
922
|
+
var tmp0_0 = get_SystemFileSystem().b4d(tmp0);
|
|
882
923
|
// Inline function 'kotlin.collections.filterTo' call
|
|
883
924
|
var destination = ArrayList_init_$Create$_0();
|
|
884
925
|
var _iterator__ex2g4s = tmp0_0.t();
|
|
@@ -904,11 +945,11 @@ function wirespecSources(_this__u8e3s4, logger) {
|
|
|
904
945
|
var _iterator__ex2g4s_1 = destination_0.t();
|
|
905
946
|
while (_iterator__ex2g4s_1.u()) {
|
|
906
947
|
var item = _iterator__ex2g4s_1.v();
|
|
907
|
-
var tmp$ret$
|
|
908
|
-
destination_1.x(tmp$ret$
|
|
948
|
+
var tmp$ret$14 = to(Companion_instance_1.n4e(item.toString()), readString(buffered(get_SystemFileSystem().x4c(item))));
|
|
949
|
+
destination_1.x(tmp$ret$14);
|
|
909
950
|
}
|
|
910
951
|
// Inline function 'kotlin.also' call
|
|
911
|
-
logger.
|
|
952
|
+
logger.qr('Found ' + destination_1.b1() + ' file(s) to process in ' + _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.m4e_1));
|
|
912
953
|
// Inline function 'kotlin.collections.forEachIndexed' call
|
|
913
954
|
var index = 0;
|
|
914
955
|
var _iterator__ex2g4s_2 = destination_1.t();
|
|
@@ -917,7 +958,7 @@ function wirespecSources(_this__u8e3s4, logger) {
|
|
|
917
958
|
var _unary__edvuaz = index;
|
|
918
959
|
index = _unary__edvuaz + 1 | 0;
|
|
919
960
|
var prefix = checkIndexOverflow(_unary__edvuaz) < (destination_1.b1() - 1 | 0) ? '\u251C\u2500\u2500 ' : '\u2514\u2500\u2500 ';
|
|
920
|
-
logger.
|
|
961
|
+
logger.qr(' ' + prefix + ' ' + _Name___get_value__impl__3tbxxy(item_0.ef_1.p4e_1) + '.' + item_0.ef_1.q4e_1.nr_1);
|
|
921
962
|
}
|
|
922
963
|
// Inline function 'kotlin.collections.map' call
|
|
923
964
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -925,33 +966,33 @@ function wirespecSources(_this__u8e3s4, logger) {
|
|
|
925
966
|
var _iterator__ex2g4s_3 = destination_1.t();
|
|
926
967
|
while (_iterator__ex2g4s_3.u()) {
|
|
927
968
|
var item_1 = _iterator__ex2g4s_3.v();
|
|
928
|
-
var path = item_1.
|
|
929
|
-
var source = item_1.
|
|
930
|
-
var tmp$ret$
|
|
931
|
-
destination_2.x(tmp$ret$
|
|
969
|
+
var path = item_1.ve();
|
|
970
|
+
var source = item_1.we();
|
|
971
|
+
var tmp$ret$21 = new Source(path.p4e_1, source);
|
|
972
|
+
destination_2.x(tmp$ret$21);
|
|
932
973
|
}
|
|
933
974
|
var tmp0_elvis_lhs = toNonEmptySetOrNull(destination_2);
|
|
934
975
|
var tmp_0;
|
|
935
976
|
var tmp_1 = tmp0_elvis_lhs;
|
|
936
977
|
if ((tmp_1 == null ? null : new NonEmptySet(tmp_1)) == null) {
|
|
937
|
-
raise.
|
|
978
|
+
raise.zm(new WirespecFileError());
|
|
938
979
|
} else {
|
|
939
980
|
tmp_0 = tmp0_elvis_lhs;
|
|
940
981
|
}
|
|
941
982
|
var res = new NonEmptySet(tmp_0);
|
|
942
|
-
raise.
|
|
983
|
+
raise.vm();
|
|
943
984
|
tmp = new Right(res);
|
|
944
985
|
} catch ($p) {
|
|
945
986
|
var tmp_2;
|
|
946
987
|
if ($p instanceof RaiseCancellationException) {
|
|
947
988
|
var e = $p;
|
|
948
|
-
raise.
|
|
989
|
+
raise.vm();
|
|
949
990
|
var it = raisedOrRethrow(e, raise);
|
|
950
991
|
tmp_2 = new Left(it);
|
|
951
992
|
} else {
|
|
952
993
|
if ($p instanceof Error) {
|
|
953
994
|
var e_0 = $p;
|
|
954
|
-
raise.
|
|
995
|
+
raise.vm();
|
|
955
996
|
throw nonFatalOrThrow(e_0);
|
|
956
997
|
} else {
|
|
957
998
|
throw $p;
|
|
@@ -964,7 +1005,7 @@ function wirespecSources(_this__u8e3s4, logger) {
|
|
|
964
1005
|
function read(_this__u8e3s4) {
|
|
965
1006
|
// Inline function 'kotlin.let' call
|
|
966
1007
|
var it = Path(_this__u8e3s4.toString());
|
|
967
|
-
return readString(buffered(get_SystemFileSystem().
|
|
1008
|
+
return readString(buffered(get_SystemFileSystem().x4c(it)));
|
|
968
1009
|
}
|
|
969
1010
|
function getOutPutPath(inputPath, output) {
|
|
970
1011
|
// Inline function 'arrow.core.raise.either' call
|
|
@@ -973,13 +1014,13 @@ function getOutPutPath(inputPath, output) {
|
|
|
973
1014
|
var raise = new DefaultRaise(false);
|
|
974
1015
|
var tmp;
|
|
975
1016
|
try {
|
|
976
|
-
var it = raise.
|
|
1017
|
+
var it = raise.dn(getFullPath(output, true));
|
|
977
1018
|
var tmp_0;
|
|
978
1019
|
if (it == null) {
|
|
979
1020
|
tmp_0 = _DirectoryPath___init__impl__5bzkjd(path(inputPath) + '/out');
|
|
980
1021
|
} else {
|
|
981
1022
|
if (it instanceof DirectoryPath) {
|
|
982
|
-
tmp_0 = it.
|
|
1023
|
+
tmp_0 = it.l4e_1;
|
|
983
1024
|
} else {
|
|
984
1025
|
var tmp_1;
|
|
985
1026
|
if (it instanceof FilePath) {
|
|
@@ -988,26 +1029,26 @@ function getOutPutPath(inputPath, output) {
|
|
|
988
1029
|
tmp_1 = it instanceof ClassPath;
|
|
989
1030
|
}
|
|
990
1031
|
if (tmp_1) {
|
|
991
|
-
raise.
|
|
1032
|
+
raise.zm(new OutputShouldBeADirectory());
|
|
992
1033
|
} else {
|
|
993
1034
|
noWhenBranchMatchedException();
|
|
994
1035
|
}
|
|
995
1036
|
}
|
|
996
1037
|
}
|
|
997
1038
|
var res = new DirectoryPath(tmp_0);
|
|
998
|
-
raise.
|
|
1039
|
+
raise.vm();
|
|
999
1040
|
tmp = new Right(res);
|
|
1000
1041
|
} catch ($p) {
|
|
1001
1042
|
var tmp_2;
|
|
1002
1043
|
if ($p instanceof RaiseCancellationException) {
|
|
1003
1044
|
var e = $p;
|
|
1004
|
-
raise.
|
|
1045
|
+
raise.vm();
|
|
1005
1046
|
var it_0 = raisedOrRethrow(e, raise);
|
|
1006
1047
|
tmp_2 = new Left(it_0);
|
|
1007
1048
|
} else {
|
|
1008
1049
|
if ($p instanceof Error) {
|
|
1009
1050
|
var e_0 = $p;
|
|
1010
|
-
raise.
|
|
1051
|
+
raise.vm();
|
|
1011
1052
|
throw nonFatalOrThrow(e_0);
|
|
1012
1053
|
} else {
|
|
1013
1054
|
throw $p;
|
|
@@ -1020,14 +1061,14 @@ function getOutPutPath(inputPath, output) {
|
|
|
1020
1061
|
function write(_this__u8e3s4, string) {
|
|
1021
1062
|
// Inline function 'kotlin.also' call
|
|
1022
1063
|
var this_0 = Path(_this__u8e3s4.toString());
|
|
1023
|
-
var tmp0_safe_receiver = this_0.
|
|
1064
|
+
var tmp0_safe_receiver = this_0.d4d();
|
|
1024
1065
|
if (tmp0_safe_receiver == null)
|
|
1025
1066
|
null;
|
|
1026
1067
|
else
|
|
1027
1068
|
createIfNotExists(tmp0_safe_receiver);
|
|
1028
1069
|
// Inline function 'kotlin.let' call
|
|
1029
1070
|
// Inline function 'kotlin.apply' call
|
|
1030
|
-
var this_1 = buffered_0(get_SystemFileSystem().
|
|
1071
|
+
var this_1 = buffered_0(get_SystemFileSystem().z4c(this_0));
|
|
1031
1072
|
writeString(this_1, string);
|
|
1032
1073
|
this_1.a9();
|
|
1033
1074
|
return Unit_instance;
|
|
@@ -1035,23 +1076,23 @@ function write(_this__u8e3s4, string) {
|
|
|
1035
1076
|
function createIfNotExists(_this__u8e3s4, create) {
|
|
1036
1077
|
create = create === VOID ? true : create;
|
|
1037
1078
|
// Inline function 'kotlin.also' call
|
|
1038
|
-
if (create && !get_SystemFileSystem().
|
|
1039
|
-
get_SystemFileSystem().
|
|
1079
|
+
if (create && !get_SystemFileSystem().v4c(_this__u8e3s4)) {
|
|
1080
|
+
get_SystemFileSystem().w4c(_this__u8e3s4, true);
|
|
1040
1081
|
}
|
|
1041
1082
|
return _this__u8e3s4;
|
|
1042
1083
|
}
|
|
1043
1084
|
function isRegularFile(path) {
|
|
1044
|
-
var tmp0_safe_receiver = get_SystemFileSystem().
|
|
1045
|
-
return (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1085
|
+
var tmp0_safe_receiver = get_SystemFileSystem().a4d(path);
|
|
1086
|
+
return (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.s4c_1) === true;
|
|
1046
1087
|
}
|
|
1047
1088
|
function isWirespecFile(path) {
|
|
1048
|
-
return get_extension(path) === FileExtension_Wirespec_getInstance().
|
|
1089
|
+
return get_extension(path) === FileExtension_Wirespec_getInstance().nr_1;
|
|
1049
1090
|
}
|
|
1050
1091
|
function get_extension(_this__u8e3s4) {
|
|
1051
1092
|
return substringAfterLast(_this__u8e3s4.m(), _Char___init__impl__6a9atx(46), '');
|
|
1052
1093
|
}
|
|
1053
1094
|
//region block: post-declaration
|
|
1054
|
-
protoOf(compile$ctx$1).
|
|
1095
|
+
protoOf(compile$ctx$1).eo = get_spec;
|
|
1055
1096
|
//endregion
|
|
1056
1097
|
//region block: init
|
|
1057
1098
|
Companion_instance = new Companion();
|
|
@@ -1077,11 +1118,11 @@ export {
|
|
|
1077
1118
|
compile_0 as compile3ocumkpx3p9ko,
|
|
1078
1119
|
convert as convert3g5kyi4d6y9kc,
|
|
1079
1120
|
toEmitter as toEmitter3vk7m5bivtqhk,
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1121
|
+
Companion_instance_1 as Companion_instance3u189ncjgxp6,
|
|
1122
|
+
Companion_instance_0 as Companion_instanceostrm0i8dq1p,
|
|
1123
|
+
Language_Kotlin_getInstance as Language_Kotlin_getInstancel9flkgp6e3q4,
|
|
1124
|
+
_DirectoryPath___get_value__impl__hdy2e3 as _DirectoryPath___get_value__impl__hdy2e31of6jj3zjtzs5,
|
|
1125
|
+
_Name___init__impl__o4q07e as _Name___init__impl__o4q07e3vb5gulc0hok1,
|
|
1085
1126
|
};
|
|
1086
1127
|
//endregion
|
|
1087
1128
|
|