@flock/wirespec 0.15.13 → 0.16.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 +11 -11
- package/arrow-arrow-core.mjs +84 -84
- package/clikt-clikt.mjs +1168 -1168
- package/colormath-root-colormath.mjs +427 -427
- package/kotlin-kotlin-stdlib.mjs +374 -310
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +5729 -5657
- package/kotlin-openapi-bindings.mjs.map +1 -1
- package/kotlin-rgxgen.mjs +1768 -1768
- package/kotlinx-io-kotlinx-io-core.mjs +380 -380
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1625 -1625
- package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1295 -1295
- package/markdown.mjs +1872 -1872
- package/mordant-mordant.mjs +1642 -1642
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +3796 -2397
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +379 -371
- package/wirespec-src-compiler-lib.mjs.map +1 -1
- package/wirespec-src-converter-avro.mjs +513 -514
- package/wirespec-src-converter-avro.mjs.map +1 -1
- package/wirespec-src-converter-openapi.mjs +869 -673
- package/wirespec-src-converter-openapi.mjs.map +1 -1
- package/wirespec-src-plugin-arguments.mjs +310 -174
- package/wirespec-src-plugin-arguments.mjs.map +1 -1
- package/wirespec-src-plugin-cli.mjs +85 -85
- package/wirespec-src-plugin-npm.d.ts +3 -3
- package/wirespec-src-plugin-npm.mjs +27 -27
- package/wirespec-src-tools-generator.mjs +101 -31
- package/wirespec-src-tools-generator.mjs.map +1 -1
|
@@ -14,9 +14,10 @@ import {
|
|
|
14
14
|
ArrayList_init_$Create$3m1kyiqequwm5 as ArrayList_init_$Create$,
|
|
15
15
|
ensureNotNull1e947j3ixpazm as ensureNotNull,
|
|
16
16
|
noWhenBranchMatchedException2a6r7ubxgky5j as noWhenBranchMatchedException,
|
|
17
|
+
toString1pkumu07cwy4m as toString,
|
|
18
|
+
IllegalStateException_init_$Create$1nm9y6jd3c9iy as IllegalStateException_init_$Create$,
|
|
17
19
|
ArrayList_init_$Create$2rimpp4x9tjd3 as ArrayList_init_$Create$_0,
|
|
18
20
|
addAll1k27qatfgp3k5 as addAll,
|
|
19
|
-
toString1pkumu07cwy4m as toString,
|
|
20
21
|
hashCodeq5arwsb9dgti as hashCode,
|
|
21
22
|
getBooleanHashCode1bbj3u6b3v0a7 as getBooleanHashCode,
|
|
22
23
|
THROW_CCE2g6jy02ryeudk as THROW_CCE,
|
|
@@ -26,7 +27,6 @@ import {
|
|
|
26
27
|
dropLast1vpiyky649o34 as dropLast,
|
|
27
28
|
last1vo29oleiqj36 as last,
|
|
28
29
|
plus310ted5e4i90h as plus,
|
|
29
|
-
IllegalStateException_init_$Create$1nm9y6jd3c9iy as IllegalStateException_init_$Create$,
|
|
30
30
|
substringAfter35b3qhto7hchb as substringAfter,
|
|
31
31
|
startsWith26w8qjqapeeq6 as startsWith,
|
|
32
32
|
throwKotlinNothingValueException2lxmvl03dor6f as throwKotlinNothingValueException,
|
|
@@ -52,6 +52,8 @@ import {
|
|
|
52
52
|
import {
|
|
53
53
|
ModuleContent750xezzquzy9 as ModuleContent,
|
|
54
54
|
compile2rgmakz9u3swp as compile,
|
|
55
|
+
Parser_instance3aef7lsz2n7s7 as Parser_instance,
|
|
56
|
+
ParseOptionspl50698nv4gs as ParseOptions,
|
|
55
57
|
get_spec3cnzsbb1ufwje as get_spec,
|
|
56
58
|
HasLanguageSpec1fo5x3q6dcifj as HasLanguageSpec,
|
|
57
59
|
get_entries4pic4pnz9ji1 as get_entries,
|
|
@@ -148,7 +150,7 @@ var Language_OpenAPIV2_instance;
|
|
|
148
150
|
var Language_OpenAPIV3_instance;
|
|
149
151
|
function Companion_0() {
|
|
150
152
|
}
|
|
151
|
-
protoOf(Companion_0).
|
|
153
|
+
protoOf(Companion_0).i2j = function () {
|
|
152
154
|
// Inline function 'kotlin.collections.associateBy' call
|
|
153
155
|
var this_0 = get_entries_1();
|
|
154
156
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
@@ -228,7 +230,7 @@ function compile_0(arguments_0) {
|
|
|
228
230
|
// Inline function 'arrow.core.Either.fold' call
|
|
229
231
|
// Inline function 'arrow.core.Either.mapLeft' call
|
|
230
232
|
// Inline function 'arrow.core.NonEmptySet.map' call
|
|
231
|
-
var this_0 = arguments_0.
|
|
233
|
+
var this_0 = arguments_0.j2j_1;
|
|
232
234
|
// Inline function 'kotlin.collections.map' call
|
|
233
235
|
var this_1 = _NonEmptySet___get_elements__impl__g09gj9(this_0);
|
|
234
236
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -237,7 +239,7 @@ function compile_0(arguments_0) {
|
|
|
237
239
|
while (tmp0_iterator.h()) {
|
|
238
240
|
var item = tmp0_iterator.i();
|
|
239
241
|
// Inline function 'community.flock.wirespec.plugin.compile.<anonymous>' call
|
|
240
|
-
var tmp$ret$0 = new ModuleContent(_Name___get_value__impl__3tbxxy(item.
|
|
242
|
+
var tmp$ret$0 = new ModuleContent(_Name___get_value__impl__3tbxxy(item.r2j_1), item.s2j_1);
|
|
241
243
|
destination.e(tmp$ret$0);
|
|
242
244
|
}
|
|
243
245
|
var tmp$ret$3 = ensureNotNull(toNonEmptyListOrNull(destination));
|
|
@@ -248,17 +250,17 @@ function compile_0(arguments_0) {
|
|
|
248
250
|
var tmp;
|
|
249
251
|
if (this_2 instanceof Right) {
|
|
250
252
|
// Inline function 'arrow.core.Either.mapLeft.<anonymous>' call
|
|
251
|
-
var it = this_2.
|
|
253
|
+
var it = this_2.ek_1;
|
|
252
254
|
tmp = new Right(it);
|
|
253
255
|
} else {
|
|
254
256
|
if (this_2 instanceof Left) {
|
|
255
257
|
// Inline function 'arrow.core.Either.mapLeft.<anonymous>' call
|
|
256
258
|
// Inline function 'community.flock.wirespec.plugin.compile.<anonymous>' call
|
|
257
259
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
258
|
-
var this_3 = this_2.
|
|
259
|
-
var tmp_0 = this_3.
|
|
260
|
+
var this_3 = this_2.yj_1;
|
|
261
|
+
var tmp_0 = this_3.jk_1.r1();
|
|
260
262
|
// Inline function 'kotlin.collections.map' call
|
|
261
|
-
var this_4 = this_3.
|
|
263
|
+
var this_4 = this_3.kk_1;
|
|
262
264
|
// Inline function 'kotlin.collections.mapTo' call
|
|
263
265
|
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(this_4, 10));
|
|
264
266
|
var tmp0_iterator_0 = this_4.g();
|
|
@@ -277,12 +279,12 @@ function compile_0(arguments_0) {
|
|
|
277
279
|
// Inline function 'kotlin.contracts.contract' call
|
|
278
280
|
var tmp_1;
|
|
279
281
|
if (this_5 instanceof Right) {
|
|
280
|
-
var it_0 = this_5.
|
|
281
|
-
tmp_1 = arguments_0.
|
|
282
|
+
var it_0 = this_5.ek_1;
|
|
283
|
+
tmp_1 = arguments_0.l2j_1(it_0);
|
|
282
284
|
} else {
|
|
283
285
|
if (this_5 instanceof Left) {
|
|
284
|
-
var it_1 = this_5.
|
|
285
|
-
tmp_1 = arguments_0.
|
|
286
|
+
var it_1 = this_5.yj_1;
|
|
287
|
+
tmp_1 = arguments_0.m2j_1(joinToString(it_1));
|
|
286
288
|
} else {
|
|
287
289
|
noWhenBranchMatchedException();
|
|
288
290
|
}
|
|
@@ -290,7 +292,7 @@ function compile_0(arguments_0) {
|
|
|
290
292
|
}
|
|
291
293
|
function convert(arguments_0) {
|
|
292
294
|
var tmp;
|
|
293
|
-
switch (arguments_0.
|
|
295
|
+
switch (arguments_0.t2j_1.r2_1) {
|
|
294
296
|
case 0:
|
|
295
297
|
tmp = OpenAPIV2Parser_instance;
|
|
296
298
|
break;
|
|
@@ -305,11 +307,13 @@ function convert(arguments_0) {
|
|
|
305
307
|
break;
|
|
306
308
|
}
|
|
307
309
|
var parser = tmp;
|
|
310
|
+
var options = parseOptions(arguments_0);
|
|
308
311
|
// Inline function 'kotlin.let' call
|
|
309
312
|
// Inline function 'arrow.core.NonEmptyList.flatMap' call
|
|
310
313
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
314
|
+
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
311
315
|
// Inline function 'arrow.core.NonEmptySet.map' call
|
|
312
|
-
var this_0 = arguments_0.
|
|
316
|
+
var this_0 = arguments_0.u2j_1;
|
|
313
317
|
// Inline function 'kotlin.collections.map' call
|
|
314
318
|
var this_1 = _NonEmptySet___get_elements__impl__g09gj9(this_0);
|
|
315
319
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -318,101 +322,233 @@ function convert(arguments_0) {
|
|
|
318
322
|
while (tmp0_iterator.h()) {
|
|
319
323
|
var item = tmp0_iterator.i();
|
|
320
324
|
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>' call
|
|
321
|
-
var tmp$ret$0 = new ModuleContent(_Name___get_value__impl__3tbxxy(item.
|
|
325
|
+
var tmp$ret$0 = new ModuleContent(_Name___get_value__impl__3tbxxy(item.r2j_1), item.s2j_1);
|
|
322
326
|
destination.e(tmp$ret$0);
|
|
323
327
|
}
|
|
324
328
|
var this_2 = ensureNotNull(toNonEmptyListOrNull(destination));
|
|
325
329
|
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>' call
|
|
326
|
-
var moduleContent = this_2.
|
|
327
|
-
var tmp_0 = parser.
|
|
330
|
+
var moduleContent = this_2.jk_1;
|
|
331
|
+
var tmp_0 = parser.v2e(moduleContent, arguments_0.b2k_1);
|
|
328
332
|
// Inline function 'kotlin.collections.map' call
|
|
329
|
-
var this_3 = this_2.
|
|
333
|
+
var this_3 = this_2.kk_1;
|
|
330
334
|
// Inline function 'kotlin.collections.mapTo' call
|
|
331
335
|
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(this_3, 10));
|
|
332
336
|
var tmp0_iterator_0 = this_3.g();
|
|
333
337
|
while (tmp0_iterator_0.h()) {
|
|
334
338
|
var item_0 = tmp0_iterator_0.i();
|
|
335
339
|
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>' call
|
|
336
|
-
var tmp$ret$5 = parser.
|
|
340
|
+
var tmp$ret$5 = parser.v2e(item_0, arguments_0.b2k_1);
|
|
337
341
|
destination_0.e(tmp$ret$5);
|
|
338
342
|
}
|
|
339
343
|
var this_4 = new NonEmptyList(tmp_0, destination_0);
|
|
340
344
|
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>' call
|
|
341
|
-
var ast = this_4.
|
|
345
|
+
var ast = this_4.jk_1;
|
|
346
|
+
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
347
|
+
var this_5 = ast.o29_1;
|
|
348
|
+
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>.<anonymous>' call
|
|
349
|
+
var module_0 = this_5.jk_1;
|
|
350
|
+
// Inline function 'arrow.core.getOrElse' call
|
|
351
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
352
|
+
// Inline function 'arrow.core.Either.fold' call
|
|
353
|
+
var this_6 = Parser_instance.t2b(options)(module_0.w26_1);
|
|
354
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
355
|
+
var tmp_1;
|
|
356
|
+
if (this_6 instanceof Right) {
|
|
357
|
+
// Inline function 'arrow.core.identity' call
|
|
358
|
+
// Inline function 'arrow.core.identity' call
|
|
359
|
+
tmp_1 = this_6.ek_1;
|
|
360
|
+
} else {
|
|
361
|
+
if (this_6 instanceof Left) {
|
|
362
|
+
this_6.yj_1;
|
|
363
|
+
var message = 'Invalid statements';
|
|
364
|
+
throw IllegalStateException_init_$Create$(toString(message));
|
|
365
|
+
} else {
|
|
366
|
+
noWhenBranchMatchedException();
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
var tmp$ret$12 = tmp_1;
|
|
370
|
+
var tmp_2 = module_0.f29(VOID, tmp$ret$12);
|
|
371
|
+
// Inline function 'kotlin.collections.map' call
|
|
372
|
+
var this_7 = this_5.kk_1;
|
|
373
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
374
|
+
var destination_1 = ArrayList_init_$Create$(collectionSizeOrDefault(this_7, 10));
|
|
375
|
+
var tmp0_iterator_1 = this_7.g();
|
|
376
|
+
while (tmp0_iterator_1.h()) {
|
|
377
|
+
var item_1 = tmp0_iterator_1.i();
|
|
378
|
+
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>.<anonymous>' call
|
|
379
|
+
// Inline function 'arrow.core.getOrElse' call
|
|
380
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
381
|
+
// Inline function 'arrow.core.Either.fold' call
|
|
382
|
+
var this_8 = Parser_instance.t2b(options)(item_1.w26_1);
|
|
383
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
384
|
+
var tmp_3;
|
|
385
|
+
if (this_8 instanceof Right) {
|
|
386
|
+
// Inline function 'arrow.core.identity' call
|
|
387
|
+
// Inline function 'arrow.core.identity' call
|
|
388
|
+
tmp_3 = this_8.ek_1;
|
|
389
|
+
} else {
|
|
390
|
+
if (this_8 instanceof Left) {
|
|
391
|
+
this_8.yj_1;
|
|
392
|
+
var message_0 = 'Invalid statements';
|
|
393
|
+
throw IllegalStateException_init_$Create$(toString(message_0));
|
|
394
|
+
} else {
|
|
395
|
+
noWhenBranchMatchedException();
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
var tmp$ret$17 = tmp_3;
|
|
399
|
+
var tmp$ret$18 = item_1.f29(VOID, tmp$ret$17);
|
|
400
|
+
destination_1.e(tmp$ret$18);
|
|
401
|
+
}
|
|
402
|
+
var tmp$ret$21 = new NonEmptyList(tmp_2, destination_1);
|
|
403
|
+
var tmp_4 = ast.w2a(tmp$ret$21);
|
|
404
|
+
// Inline function 'kotlin.collections.map' call
|
|
405
|
+
var this_9 = this_4.kk_1;
|
|
406
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
407
|
+
var destination_2 = ArrayList_init_$Create$(collectionSizeOrDefault(this_9, 10));
|
|
408
|
+
var tmp0_iterator_2 = this_9.g();
|
|
409
|
+
while (tmp0_iterator_2.h()) {
|
|
410
|
+
var item_2 = tmp0_iterator_2.i();
|
|
411
|
+
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>' call
|
|
412
|
+
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
413
|
+
var this_10 = item_2.o29_1;
|
|
414
|
+
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>.<anonymous>' call
|
|
415
|
+
var module_1 = this_10.jk_1;
|
|
416
|
+
// Inline function 'arrow.core.getOrElse' call
|
|
417
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
418
|
+
// Inline function 'arrow.core.Either.fold' call
|
|
419
|
+
var this_11 = Parser_instance.t2b(options)(module_1.w26_1);
|
|
420
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
421
|
+
var tmp_5;
|
|
422
|
+
if (this_11 instanceof Right) {
|
|
423
|
+
// Inline function 'arrow.core.identity' call
|
|
424
|
+
// Inline function 'arrow.core.identity' call
|
|
425
|
+
tmp_5 = this_11.ek_1;
|
|
426
|
+
} else {
|
|
427
|
+
if (this_11 instanceof Left) {
|
|
428
|
+
this_11.yj_1;
|
|
429
|
+
var message_1 = 'Invalid statements';
|
|
430
|
+
throw IllegalStateException_init_$Create$(toString(message_1));
|
|
431
|
+
} else {
|
|
432
|
+
noWhenBranchMatchedException();
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
var tmp$ret$26 = tmp_5;
|
|
436
|
+
var tmp_6 = module_1.f29(VOID, tmp$ret$26);
|
|
437
|
+
// Inline function 'kotlin.collections.map' call
|
|
438
|
+
var this_12 = this_10.kk_1;
|
|
439
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
440
|
+
var destination_3 = ArrayList_init_$Create$(collectionSizeOrDefault(this_12, 10));
|
|
441
|
+
var tmp0_iterator_3 = this_12.g();
|
|
442
|
+
while (tmp0_iterator_3.h()) {
|
|
443
|
+
var item_3 = tmp0_iterator_3.i();
|
|
444
|
+
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>.<anonymous>' call
|
|
445
|
+
// Inline function 'arrow.core.getOrElse' call
|
|
446
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
447
|
+
// Inline function 'arrow.core.Either.fold' call
|
|
448
|
+
var this_13 = Parser_instance.t2b(options)(item_3.w26_1);
|
|
449
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
450
|
+
var tmp_7;
|
|
451
|
+
if (this_13 instanceof Right) {
|
|
452
|
+
// Inline function 'arrow.core.identity' call
|
|
453
|
+
// Inline function 'arrow.core.identity' call
|
|
454
|
+
tmp_7 = this_13.ek_1;
|
|
455
|
+
} else {
|
|
456
|
+
if (this_13 instanceof Left) {
|
|
457
|
+
this_13.yj_1;
|
|
458
|
+
var message_2 = 'Invalid statements';
|
|
459
|
+
throw IllegalStateException_init_$Create$(toString(message_2));
|
|
460
|
+
} else {
|
|
461
|
+
noWhenBranchMatchedException();
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
var tmp$ret$31 = tmp_7;
|
|
465
|
+
var tmp$ret$32 = item_3.f29(VOID, tmp$ret$31);
|
|
466
|
+
destination_3.e(tmp$ret$32);
|
|
467
|
+
}
|
|
468
|
+
var tmp$ret$35 = new NonEmptyList(tmp_6, destination_3);
|
|
469
|
+
var tmp$ret$36 = item_2.w2a(tmp$ret$35);
|
|
470
|
+
destination_2.e(tmp$ret$36);
|
|
471
|
+
}
|
|
472
|
+
var this_14 = new NonEmptyList(tmp_4, destination_2);
|
|
473
|
+
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>' call
|
|
474
|
+
var ast_0 = this_14.jk_1;
|
|
342
475
|
// Inline function 'arrow.core.NonEmptySet.flatMap' call
|
|
343
|
-
var
|
|
476
|
+
var this_15 = arguments_0.v2j_1;
|
|
344
477
|
// Inline function 'kotlin.collections.flatMap' call
|
|
345
478
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
346
|
-
var
|
|
347
|
-
var
|
|
348
|
-
var
|
|
349
|
-
while (
|
|
350
|
-
var element =
|
|
479
|
+
var this_16 = _NonEmptySet___get_elements__impl__g09gj9(this_15);
|
|
480
|
+
var destination_4 = ArrayList_init_$Create$_0();
|
|
481
|
+
var tmp0_iterator_4 = this_16.g();
|
|
482
|
+
while (tmp0_iterator_4.h()) {
|
|
483
|
+
var element = tmp0_iterator_4.i();
|
|
351
484
|
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>.<anonymous>' call
|
|
352
|
-
var list = element.
|
|
353
|
-
addAll(
|
|
485
|
+
var list = element.d23(ast_0, arguments_0.z2j_1);
|
|
486
|
+
addAll(destination_4, list);
|
|
354
487
|
}
|
|
355
|
-
var
|
|
488
|
+
var tmp_8 = ensureNotNull(toNonEmptyListOrNull(destination_4)).hk();
|
|
356
489
|
// Inline function 'kotlin.collections.flatMap' call
|
|
357
490
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
358
|
-
var
|
|
359
|
-
var
|
|
360
|
-
var
|
|
361
|
-
while (
|
|
362
|
-
var element_0 =
|
|
491
|
+
var this_17 = this_14.kk_1;
|
|
492
|
+
var destination_5 = ArrayList_init_$Create$_0();
|
|
493
|
+
var tmp0_iterator_5 = this_17.g();
|
|
494
|
+
while (tmp0_iterator_5.h()) {
|
|
495
|
+
var element_0 = tmp0_iterator_5.i();
|
|
363
496
|
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>' call
|
|
364
497
|
// Inline function 'arrow.core.NonEmptySet.flatMap' call
|
|
365
|
-
var
|
|
498
|
+
var this_18 = arguments_0.v2j_1;
|
|
366
499
|
// Inline function 'kotlin.collections.flatMap' call
|
|
367
500
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
368
|
-
var
|
|
369
|
-
var
|
|
370
|
-
var
|
|
371
|
-
while (
|
|
372
|
-
var element_1 =
|
|
501
|
+
var this_19 = _NonEmptySet___get_elements__impl__g09gj9(this_18);
|
|
502
|
+
var destination_6 = ArrayList_init_$Create$_0();
|
|
503
|
+
var tmp0_iterator_6 = this_19.g();
|
|
504
|
+
while (tmp0_iterator_6.h()) {
|
|
505
|
+
var element_1 = tmp0_iterator_6.i();
|
|
373
506
|
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>.<anonymous>' call
|
|
374
|
-
var list_0 = element_1.
|
|
375
|
-
addAll(
|
|
507
|
+
var list_0 = element_1.d23(element_0, arguments_0.z2j_1);
|
|
508
|
+
addAll(destination_6, list_0);
|
|
376
509
|
}
|
|
377
|
-
var list_1 = ensureNotNull(toNonEmptyListOrNull(
|
|
378
|
-
addAll(
|
|
510
|
+
var list_1 = ensureNotNull(toNonEmptyListOrNull(destination_6));
|
|
511
|
+
addAll(destination_5, list_1);
|
|
379
512
|
}
|
|
380
|
-
var
|
|
513
|
+
var this_20 = tmp_8.ok(destination_5);
|
|
381
514
|
// Inline function 'kotlin.contracts.contract' call
|
|
382
|
-
arguments_0.
|
|
515
|
+
arguments_0.w2j_1(this_20);
|
|
516
|
+
}
|
|
517
|
+
function parseOptions(_this__u8e3s4) {
|
|
518
|
+
return new ParseOptions(_this__u8e3s4.b2k_1, true);
|
|
383
519
|
}
|
|
384
520
|
function compile$ctx$1($arguments) {
|
|
385
|
-
this.
|
|
386
|
-
this.
|
|
521
|
+
this.c2k_1 = $arguments.o2j_1;
|
|
522
|
+
this.d2k_1 = $arguments.k2j_1;
|
|
387
523
|
}
|
|
388
|
-
protoOf(compile$ctx$1).
|
|
389
|
-
return this.
|
|
524
|
+
protoOf(compile$ctx$1).q22 = function () {
|
|
525
|
+
return this.c2k_1;
|
|
390
526
|
};
|
|
391
|
-
protoOf(compile$ctx$1).
|
|
392
|
-
return this.
|
|
527
|
+
protoOf(compile$ctx$1).c23 = function () {
|
|
528
|
+
return this.d2k_1;
|
|
393
529
|
};
|
|
394
530
|
function CompilerArguments(input, emitters, writer, error, packageName, logger, shared, strict) {
|
|
395
|
-
this.
|
|
396
|
-
this.
|
|
397
|
-
this.
|
|
398
|
-
this.
|
|
399
|
-
this.
|
|
400
|
-
this.
|
|
401
|
-
this.
|
|
402
|
-
this.
|
|
531
|
+
this.j2j_1 = input;
|
|
532
|
+
this.k2j_1 = emitters;
|
|
533
|
+
this.l2j_1 = writer;
|
|
534
|
+
this.m2j_1 = error;
|
|
535
|
+
this.n2j_1 = packageName;
|
|
536
|
+
this.o2j_1 = logger;
|
|
537
|
+
this.p2j_1 = shared;
|
|
538
|
+
this.q2j_1 = strict;
|
|
403
539
|
}
|
|
404
540
|
protoOf(CompilerArguments).toString = function () {
|
|
405
|
-
return 'CompilerArguments(input=' + NonEmptySet__toString_impl_yfcj6n(this.
|
|
541
|
+
return 'CompilerArguments(input=' + NonEmptySet__toString_impl_yfcj6n(this.j2j_1) + ', emitters=' + NonEmptySet__toString_impl_yfcj6n(this.k2j_1) + ', writer=' + toString(this.l2j_1) + ', error=' + toString(this.m2j_1) + ', packageName=' + this.n2j_1.toString() + ', logger=' + toString(this.o2j_1) + ', shared=' + this.p2j_1 + ', strict=' + this.q2j_1 + ')';
|
|
406
542
|
};
|
|
407
543
|
protoOf(CompilerArguments).hashCode = function () {
|
|
408
|
-
var result = NonEmptySet__hashCode_impl_co6mds(this.
|
|
409
|
-
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.
|
|
410
|
-
result = imul(result, 31) + hashCode(this.
|
|
411
|
-
result = imul(result, 31) + hashCode(this.
|
|
412
|
-
result = imul(result, 31) + hashCode(this.
|
|
413
|
-
result = imul(result, 31) + hashCode(this.
|
|
414
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
415
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
544
|
+
var result = NonEmptySet__hashCode_impl_co6mds(this.j2j_1);
|
|
545
|
+
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.k2j_1) | 0;
|
|
546
|
+
result = imul(result, 31) + hashCode(this.l2j_1) | 0;
|
|
547
|
+
result = imul(result, 31) + hashCode(this.m2j_1) | 0;
|
|
548
|
+
result = imul(result, 31) + hashCode(this.n2j_1) | 0;
|
|
549
|
+
result = imul(result, 31) + hashCode(this.o2j_1) | 0;
|
|
550
|
+
result = imul(result, 31) + getBooleanHashCode(this.p2j_1) | 0;
|
|
551
|
+
result = imul(result, 31) + getBooleanHashCode(this.q2j_1) | 0;
|
|
416
552
|
return result;
|
|
417
553
|
};
|
|
418
554
|
protoOf(CompilerArguments).equals = function (other) {
|
|
@@ -421,48 +557,48 @@ protoOf(CompilerArguments).equals = function (other) {
|
|
|
421
557
|
if (!(other instanceof CompilerArguments))
|
|
422
558
|
return false;
|
|
423
559
|
var tmp0_other_with_cast = other instanceof CompilerArguments ? other : THROW_CCE();
|
|
424
|
-
if (!equals(new NonEmptySet(this.
|
|
560
|
+
if (!equals(new NonEmptySet(this.j2j_1), new NonEmptySet(tmp0_other_with_cast.j2j_1)))
|
|
425
561
|
return false;
|
|
426
|
-
if (!equals(new NonEmptySet(this.
|
|
562
|
+
if (!equals(new NonEmptySet(this.k2j_1), new NonEmptySet(tmp0_other_with_cast.k2j_1)))
|
|
427
563
|
return false;
|
|
428
|
-
if (!equals(this.
|
|
564
|
+
if (!equals(this.l2j_1, tmp0_other_with_cast.l2j_1))
|
|
429
565
|
return false;
|
|
430
|
-
if (!equals(this.
|
|
566
|
+
if (!equals(this.m2j_1, tmp0_other_with_cast.m2j_1))
|
|
431
567
|
return false;
|
|
432
|
-
if (!equals(this.
|
|
568
|
+
if (!equals(this.n2j_1, tmp0_other_with_cast.n2j_1))
|
|
433
569
|
return false;
|
|
434
|
-
if (!equals(this.
|
|
570
|
+
if (!equals(this.o2j_1, tmp0_other_with_cast.o2j_1))
|
|
435
571
|
return false;
|
|
436
|
-
if (!(this.
|
|
572
|
+
if (!(this.p2j_1 === tmp0_other_with_cast.p2j_1))
|
|
437
573
|
return false;
|
|
438
|
-
if (!(this.
|
|
574
|
+
if (!(this.q2j_1 === tmp0_other_with_cast.q2j_1))
|
|
439
575
|
return false;
|
|
440
576
|
return true;
|
|
441
577
|
};
|
|
442
578
|
function ConverterArguments(format, input, emitters, writer, error, packageName, logger, shared, strict) {
|
|
443
|
-
this.
|
|
444
|
-
this.
|
|
445
|
-
this.
|
|
446
|
-
this.
|
|
447
|
-
this.
|
|
448
|
-
this.
|
|
449
|
-
this.
|
|
450
|
-
this.
|
|
451
|
-
this.
|
|
579
|
+
this.t2j_1 = format;
|
|
580
|
+
this.u2j_1 = input;
|
|
581
|
+
this.v2j_1 = emitters;
|
|
582
|
+
this.w2j_1 = writer;
|
|
583
|
+
this.x2j_1 = error;
|
|
584
|
+
this.y2j_1 = packageName;
|
|
585
|
+
this.z2j_1 = logger;
|
|
586
|
+
this.a2k_1 = shared;
|
|
587
|
+
this.b2k_1 = strict;
|
|
452
588
|
}
|
|
453
589
|
protoOf(ConverterArguments).toString = function () {
|
|
454
|
-
return 'ConverterArguments(format=' + this.
|
|
590
|
+
return 'ConverterArguments(format=' + this.t2j_1.toString() + ', input=' + NonEmptySet__toString_impl_yfcj6n(this.u2j_1) + ', emitters=' + NonEmptySet__toString_impl_yfcj6n(this.v2j_1) + ', writer=' + toString(this.w2j_1) + ', error=' + toString(this.x2j_1) + ', packageName=' + this.y2j_1.toString() + ', logger=' + toString(this.z2j_1) + ', shared=' + this.a2k_1 + ', strict=' + this.b2k_1 + ')';
|
|
455
591
|
};
|
|
456
592
|
protoOf(ConverterArguments).hashCode = function () {
|
|
457
|
-
var result = this.
|
|
458
|
-
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.
|
|
459
|
-
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.
|
|
460
|
-
result = imul(result, 31) + hashCode(this.
|
|
461
|
-
result = imul(result, 31) + hashCode(this.
|
|
462
|
-
result = imul(result, 31) + hashCode(this.
|
|
463
|
-
result = imul(result, 31) + hashCode(this.
|
|
464
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
465
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
593
|
+
var result = this.t2j_1.hashCode();
|
|
594
|
+
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.u2j_1) | 0;
|
|
595
|
+
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.v2j_1) | 0;
|
|
596
|
+
result = imul(result, 31) + hashCode(this.w2j_1) | 0;
|
|
597
|
+
result = imul(result, 31) + hashCode(this.x2j_1) | 0;
|
|
598
|
+
result = imul(result, 31) + hashCode(this.y2j_1) | 0;
|
|
599
|
+
result = imul(result, 31) + hashCode(this.z2j_1) | 0;
|
|
600
|
+
result = imul(result, 31) + getBooleanHashCode(this.a2k_1) | 0;
|
|
601
|
+
result = imul(result, 31) + getBooleanHashCode(this.b2k_1) | 0;
|
|
466
602
|
return result;
|
|
467
603
|
};
|
|
468
604
|
protoOf(ConverterArguments).equals = function (other) {
|
|
@@ -471,36 +607,36 @@ protoOf(ConverterArguments).equals = function (other) {
|
|
|
471
607
|
if (!(other instanceof ConverterArguments))
|
|
472
608
|
return false;
|
|
473
609
|
var tmp0_other_with_cast = other instanceof ConverterArguments ? other : THROW_CCE();
|
|
474
|
-
if (!this.
|
|
610
|
+
if (!this.t2j_1.equals(tmp0_other_with_cast.t2j_1))
|
|
475
611
|
return false;
|
|
476
|
-
if (!equals(new NonEmptySet(this.
|
|
612
|
+
if (!equals(new NonEmptySet(this.u2j_1), new NonEmptySet(tmp0_other_with_cast.u2j_1)))
|
|
477
613
|
return false;
|
|
478
|
-
if (!equals(new NonEmptySet(this.
|
|
614
|
+
if (!equals(new NonEmptySet(this.v2j_1), new NonEmptySet(tmp0_other_with_cast.v2j_1)))
|
|
479
615
|
return false;
|
|
480
|
-
if (!equals(this.
|
|
616
|
+
if (!equals(this.w2j_1, tmp0_other_with_cast.w2j_1))
|
|
481
617
|
return false;
|
|
482
|
-
if (!equals(this.
|
|
618
|
+
if (!equals(this.x2j_1, tmp0_other_with_cast.x2j_1))
|
|
483
619
|
return false;
|
|
484
|
-
if (!equals(this.
|
|
620
|
+
if (!equals(this.y2j_1, tmp0_other_with_cast.y2j_1))
|
|
485
621
|
return false;
|
|
486
|
-
if (!equals(this.
|
|
622
|
+
if (!equals(this.z2j_1, tmp0_other_with_cast.z2j_1))
|
|
487
623
|
return false;
|
|
488
|
-
if (!(this.
|
|
624
|
+
if (!(this.a2k_1 === tmp0_other_with_cast.a2k_1))
|
|
489
625
|
return false;
|
|
490
|
-
if (!(this.
|
|
626
|
+
if (!(this.b2k_1 === tmp0_other_with_cast.b2k_1))
|
|
491
627
|
return false;
|
|
492
628
|
return true;
|
|
493
629
|
};
|
|
494
630
|
function Source(name, content) {
|
|
495
|
-
this.
|
|
496
|
-
this.
|
|
631
|
+
this.r2j_1 = name;
|
|
632
|
+
this.s2j_1 = content;
|
|
497
633
|
}
|
|
498
634
|
protoOf(Source).toString = function () {
|
|
499
|
-
return 'Source(name=' + Name__toString_impl_61tomu(this.
|
|
635
|
+
return 'Source(name=' + Name__toString_impl_61tomu(this.r2j_1) + ', content=' + this.s2j_1 + ')';
|
|
500
636
|
};
|
|
501
637
|
protoOf(Source).hashCode = function () {
|
|
502
|
-
var result = Name__hashCode_impl_fpc861(this.
|
|
503
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
638
|
+
var result = Name__hashCode_impl_fpc861(this.r2j_1);
|
|
639
|
+
result = imul(result, 31) + getStringHashCode(this.s2j_1) | 0;
|
|
504
640
|
return result;
|
|
505
641
|
};
|
|
506
642
|
protoOf(Source).equals = function (other) {
|
|
@@ -509,9 +645,9 @@ protoOf(Source).equals = function (other) {
|
|
|
509
645
|
if (!(other instanceof Source))
|
|
510
646
|
return false;
|
|
511
647
|
var tmp0_other_with_cast = other instanceof Source ? other : THROW_CCE();
|
|
512
|
-
if (!(this.
|
|
648
|
+
if (!(this.r2j_1 === tmp0_other_with_cast.r2j_1))
|
|
513
649
|
return false;
|
|
514
|
-
if (!(this.
|
|
650
|
+
if (!(this.s2j_1 === tmp0_other_with_cast.s2j_1))
|
|
515
651
|
return false;
|
|
516
652
|
return true;
|
|
517
653
|
};
|
|
@@ -542,21 +678,21 @@ function ClassPath__hashCode_impl_cciyyd($this) {
|
|
|
542
678
|
function ClassPath__equals_impl_kffpch($this, other) {
|
|
543
679
|
if (!(other instanceof ClassPath))
|
|
544
680
|
return false;
|
|
545
|
-
if (!($this === (other instanceof ClassPath ? other.
|
|
681
|
+
if (!($this === (other instanceof ClassPath ? other.e2k_1 : THROW_CCE())))
|
|
546
682
|
return false;
|
|
547
683
|
return true;
|
|
548
684
|
}
|
|
549
685
|
function ClassPath(value) {
|
|
550
|
-
this.
|
|
686
|
+
this.e2k_1 = value;
|
|
551
687
|
}
|
|
552
688
|
protoOf(ClassPath).toString = function () {
|
|
553
|
-
return ClassPath__toString_impl_y3ovr8(this.
|
|
689
|
+
return ClassPath__toString_impl_y3ovr8(this.e2k_1);
|
|
554
690
|
};
|
|
555
691
|
protoOf(ClassPath).hashCode = function () {
|
|
556
|
-
return ClassPath__hashCode_impl_cciyyd(this.
|
|
692
|
+
return ClassPath__hashCode_impl_cciyyd(this.e2k_1);
|
|
557
693
|
};
|
|
558
694
|
protoOf(ClassPath).equals = function (other) {
|
|
559
|
-
return ClassPath__equals_impl_kffpch(this.
|
|
695
|
+
return ClassPath__equals_impl_kffpch(this.e2k_1, other);
|
|
560
696
|
};
|
|
561
697
|
function _DirectoryPath___init__impl__5bzkjd(value) {
|
|
562
698
|
return value;
|
|
@@ -573,28 +709,28 @@ function DirectoryPath__hashCode_impl_cv3skg($this) {
|
|
|
573
709
|
function DirectoryPath__equals_impl_c2rwsc($this, other) {
|
|
574
710
|
if (!(other instanceof DirectoryPath))
|
|
575
711
|
return false;
|
|
576
|
-
if (!($this === (other instanceof DirectoryPath ? other.
|
|
712
|
+
if (!($this === (other instanceof DirectoryPath ? other.f2k_1 : THROW_CCE())))
|
|
577
713
|
return false;
|
|
578
714
|
return true;
|
|
579
715
|
}
|
|
580
716
|
function DirectoryPath(value) {
|
|
581
|
-
this.
|
|
717
|
+
this.f2k_1 = value;
|
|
582
718
|
}
|
|
583
719
|
protoOf(DirectoryPath).toString = function () {
|
|
584
|
-
return DirectoryPath__toString_impl_ym9pdb(this.
|
|
720
|
+
return DirectoryPath__toString_impl_ym9pdb(this.f2k_1);
|
|
585
721
|
};
|
|
586
722
|
protoOf(DirectoryPath).hashCode = function () {
|
|
587
|
-
return DirectoryPath__hashCode_impl_cv3skg(this.
|
|
723
|
+
return DirectoryPath__hashCode_impl_cv3skg(this.f2k_1);
|
|
588
724
|
};
|
|
589
725
|
protoOf(DirectoryPath).equals = function (other) {
|
|
590
|
-
return DirectoryPath__equals_impl_c2rwsc(this.
|
|
726
|
+
return DirectoryPath__equals_impl_c2rwsc(this.f2k_1, other);
|
|
591
727
|
};
|
|
592
728
|
function Directory(path) {
|
|
593
|
-
this.
|
|
729
|
+
this.g2k_1 = path;
|
|
594
730
|
}
|
|
595
731
|
function Companion_1() {
|
|
596
732
|
}
|
|
597
|
-
protoOf(Companion_1).
|
|
733
|
+
protoOf(Companion_1).h2k = function (input) {
|
|
598
734
|
// Inline function 'kotlin.let' call
|
|
599
735
|
// Inline function 'kotlin.contracts.contract' call
|
|
600
736
|
// Inline function 'community.flock.wirespec.plugin.io.Companion.invoke.<anonymous>' call
|
|
@@ -615,7 +751,7 @@ protoOf(Companion_1).x2j = function (input) {
|
|
|
615
751
|
while (tmp0_iterator.h()) {
|
|
616
752
|
var element = tmp0_iterator.i();
|
|
617
753
|
// Inline function 'community.flock.wirespec.plugin.io.Companion.invoke.<anonymous>.<anonymous>' call
|
|
618
|
-
if (element.
|
|
754
|
+
if (element.r29_1 === ext) {
|
|
619
755
|
tmp$ret$5 = element;
|
|
620
756
|
break $l$block;
|
|
621
757
|
}
|
|
@@ -641,17 +777,17 @@ function Companion_getInstance_1() {
|
|
|
641
777
|
return Companion_instance_1;
|
|
642
778
|
}
|
|
643
779
|
function FilePath(directory, name, extension) {
|
|
644
|
-
this.
|
|
645
|
-
this.
|
|
646
|
-
this.
|
|
780
|
+
this.i2k_1 = directory;
|
|
781
|
+
this.j2k_1 = name;
|
|
782
|
+
this.k2k_1 = extension;
|
|
647
783
|
}
|
|
648
784
|
protoOf(FilePath).toString = function () {
|
|
649
|
-
return DirectoryPath__toString_impl_ym9pdb(this.
|
|
785
|
+
return DirectoryPath__toString_impl_ym9pdb(this.i2k_1) + '/' + _Name___get_value__impl__3tbxxy(this.j2k_1) + '.' + this.k2k_1.r29_1;
|
|
650
786
|
};
|
|
651
787
|
protoOf(FilePath).hashCode = function () {
|
|
652
|
-
var result = DirectoryPath__hashCode_impl_cv3skg(this.
|
|
653
|
-
result = imul(result, 31) + Name__hashCode_impl_fpc861(this.
|
|
654
|
-
result = imul(result, 31) + this.
|
|
788
|
+
var result = DirectoryPath__hashCode_impl_cv3skg(this.i2k_1);
|
|
789
|
+
result = imul(result, 31) + Name__hashCode_impl_fpc861(this.j2k_1) | 0;
|
|
790
|
+
result = imul(result, 31) + this.k2k_1.hashCode() | 0;
|
|
655
791
|
return result;
|
|
656
792
|
};
|
|
657
793
|
protoOf(FilePath).equals = function (other) {
|
|
@@ -660,24 +796,24 @@ protoOf(FilePath).equals = function (other) {
|
|
|
660
796
|
if (!(other instanceof FilePath))
|
|
661
797
|
return false;
|
|
662
798
|
var tmp0_other_with_cast = other instanceof FilePath ? other : THROW_CCE();
|
|
663
|
-
if (!(this.
|
|
799
|
+
if (!(this.i2k_1 === tmp0_other_with_cast.i2k_1))
|
|
664
800
|
return false;
|
|
665
|
-
if (!(this.
|
|
801
|
+
if (!(this.j2k_1 === tmp0_other_with_cast.j2k_1))
|
|
666
802
|
return false;
|
|
667
|
-
if (!this.
|
|
803
|
+
if (!this.k2k_1.equals(tmp0_other_with_cast.k2k_1))
|
|
668
804
|
return false;
|
|
669
805
|
return true;
|
|
670
806
|
};
|
|
671
807
|
function path(_this__u8e3s4) {
|
|
672
808
|
var tmp;
|
|
673
809
|
if (_this__u8e3s4 instanceof ClassPath) {
|
|
674
|
-
tmp = _ClassPath___get_value__impl__lfuxg0(_this__u8e3s4.
|
|
810
|
+
tmp = _ClassPath___get_value__impl__lfuxg0(_this__u8e3s4.e2k_1);
|
|
675
811
|
} else {
|
|
676
812
|
if (_this__u8e3s4 instanceof DirectoryPath) {
|
|
677
|
-
tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.
|
|
813
|
+
tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.f2k_1);
|
|
678
814
|
} else {
|
|
679
815
|
if (_this__u8e3s4 instanceof FilePath) {
|
|
680
|
-
tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.
|
|
816
|
+
tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.i2k_1);
|
|
681
817
|
} else {
|
|
682
818
|
noWhenBranchMatchedException();
|
|
683
819
|
}
|
|
@@ -686,7 +822,7 @@ function path(_this__u8e3s4) {
|
|
|
686
822
|
return tmp;
|
|
687
823
|
}
|
|
688
824
|
function IOError(message) {
|
|
689
|
-
this.
|
|
825
|
+
this.l2k_1 = message;
|
|
690
826
|
}
|
|
691
827
|
function WirespecFileError() {
|
|
692
828
|
SpecificFile.call(this, FileExtension_Wirespec_getInstance());
|
|
@@ -722,41 +858,41 @@ function getFullPath(input, createIfNotExists_0) {
|
|
|
722
858
|
tmp_0 = new ClassPath(_ClassPath___init__impl__obyw3o(substringAfter(input, 'classpath:')));
|
|
723
859
|
} else {
|
|
724
860
|
var path = createIfNotExists(Path(input), createIfNotExists_0);
|
|
725
|
-
var tmp0_elvis_lhs = get_SystemFileSystem().
|
|
861
|
+
var tmp0_elvis_lhs = get_SystemFileSystem().u2i(path);
|
|
726
862
|
var tmp_1;
|
|
727
863
|
if (tmp0_elvis_lhs == null) {
|
|
728
|
-
raise.
|
|
864
|
+
raise.zk(new CannotAccessFileOrDirectory(input));
|
|
729
865
|
} else {
|
|
730
866
|
tmp_1 = tmp0_elvis_lhs;
|
|
731
867
|
}
|
|
732
868
|
var meta = tmp_1;
|
|
733
869
|
var pathString = path.toString();
|
|
734
870
|
var tmp_2;
|
|
735
|
-
if (meta.
|
|
871
|
+
if (meta.x2i_1) {
|
|
736
872
|
tmp_2 = new DirectoryPath(_DirectoryPath___init__impl__5bzkjd(pathString));
|
|
737
|
-
} else if (meta.
|
|
738
|
-
tmp_2 = Companion_instance_1.
|
|
873
|
+
} else if (meta.w2i_1) {
|
|
874
|
+
tmp_2 = Companion_instance_1.h2k(pathString);
|
|
739
875
|
} else {
|
|
740
|
-
raise.
|
|
876
|
+
raise.zk(new IsNotAFileOrDirectory(pathString));
|
|
741
877
|
}
|
|
742
878
|
tmp_0 = tmp_2;
|
|
743
879
|
}
|
|
744
880
|
var res = tmp_0;
|
|
745
|
-
raise.
|
|
881
|
+
raise.xk();
|
|
746
882
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
747
883
|
tmp = new Right(res);
|
|
748
884
|
} catch ($p) {
|
|
749
885
|
var tmp_3;
|
|
750
886
|
if ($p instanceof RaiseCancellationException) {
|
|
751
887
|
var e = $p;
|
|
752
|
-
raise.
|
|
888
|
+
raise.xk();
|
|
753
889
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
754
890
|
var it = raisedOrRethrow(e, raise);
|
|
755
891
|
tmp_3 = new Left(it);
|
|
756
892
|
} else {
|
|
757
893
|
if ($p instanceof Error) {
|
|
758
894
|
var e_0 = $p;
|
|
759
|
-
raise.
|
|
895
|
+
raise.xk();
|
|
760
896
|
throw nonFatalOrThrow(e_0);
|
|
761
897
|
} else {
|
|
762
898
|
throw $p;
|
|
@@ -775,10 +911,10 @@ function or(_this__u8e3s4, errorFn) {
|
|
|
775
911
|
if (_this__u8e3s4 instanceof Right) {
|
|
776
912
|
// Inline function 'arrow.core.identity' call
|
|
777
913
|
// Inline function 'arrow.core.identity' call
|
|
778
|
-
tmp = _this__u8e3s4.
|
|
914
|
+
tmp = _this__u8e3s4.ek_1;
|
|
779
915
|
} else {
|
|
780
916
|
if (_this__u8e3s4 instanceof Left) {
|
|
781
|
-
errorFn(_this__u8e3s4.
|
|
917
|
+
errorFn(_this__u8e3s4.yj_1.l2k_1);
|
|
782
918
|
tmp = throwKotlinNothingValueException();
|
|
783
919
|
} else {
|
|
784
920
|
noWhenBranchMatchedException();
|
|
@@ -802,10 +938,10 @@ function wirespecSources(_this__u8e3s4) {
|
|
|
802
938
|
// Inline function 'kotlin.collections.filter' call
|
|
803
939
|
// Inline function 'kotlin.collections.filter' call
|
|
804
940
|
// Inline function 'kotlin.let' call
|
|
805
|
-
var this_0 = Path(_DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.
|
|
941
|
+
var this_0 = Path(_DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.g2k_1));
|
|
806
942
|
// Inline function 'kotlin.contracts.contract' call
|
|
807
943
|
// Inline function 'kotlin.collections.filterTo' call
|
|
808
|
-
var this_1 = get_SystemFileSystem().
|
|
944
|
+
var this_1 = get_SystemFileSystem().v2i(this_0);
|
|
809
945
|
var destination = ArrayList_init_$Create$_0();
|
|
810
946
|
var tmp0_iterator = this_1.g();
|
|
811
947
|
while (tmp0_iterator.h()) {
|
|
@@ -829,7 +965,7 @@ function wirespecSources(_this__u8e3s4) {
|
|
|
829
965
|
while (tmp0_iterator_1.h()) {
|
|
830
966
|
var item = tmp0_iterator_1.i();
|
|
831
967
|
// Inline function 'community.flock.wirespec.plugin.io.wirespecSources.<anonymous>.<anonymous>' call
|
|
832
|
-
var tmp$ret$8 = to(Companion_instance_1.
|
|
968
|
+
var tmp$ret$8 = to(Companion_instance_1.h2k(item.toString()), readString(buffered(get_SystemFileSystem().r2i(item))));
|
|
833
969
|
destination_1.e(tmp$ret$8);
|
|
834
970
|
}
|
|
835
971
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -840,33 +976,33 @@ function wirespecSources(_this__u8e3s4) {
|
|
|
840
976
|
// Inline function 'community.flock.wirespec.plugin.io.wirespecSources.<anonymous>.<anonymous>' call
|
|
841
977
|
var path = item_0.sd();
|
|
842
978
|
var source = item_0.td();
|
|
843
|
-
var tmp$ret$11 = new Source(path.
|
|
979
|
+
var tmp$ret$11 = new Source(path.j2k_1, source);
|
|
844
980
|
destination_2.e(tmp$ret$11);
|
|
845
981
|
}
|
|
846
982
|
var tmp0_elvis_lhs = toNonEmptySetOrNull(destination_2);
|
|
847
983
|
var tmp_0;
|
|
848
984
|
var tmp_1 = tmp0_elvis_lhs;
|
|
849
985
|
if ((tmp_1 == null ? null : new NonEmptySet(tmp_1)) == null) {
|
|
850
|
-
raise.
|
|
986
|
+
raise.zk(new WirespecFileError());
|
|
851
987
|
} else {
|
|
852
988
|
tmp_0 = tmp0_elvis_lhs;
|
|
853
989
|
}
|
|
854
990
|
var res = new NonEmptySet(tmp_0);
|
|
855
|
-
raise.
|
|
991
|
+
raise.xk();
|
|
856
992
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
857
993
|
tmp = new Right(res);
|
|
858
994
|
} catch ($p) {
|
|
859
995
|
var tmp_2;
|
|
860
996
|
if ($p instanceof RaiseCancellationException) {
|
|
861
997
|
var e = $p;
|
|
862
|
-
raise.
|
|
998
|
+
raise.xk();
|
|
863
999
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
864
1000
|
var it = raisedOrRethrow(e, raise);
|
|
865
1001
|
tmp_2 = new Left(it);
|
|
866
1002
|
} else {
|
|
867
1003
|
if ($p instanceof Error) {
|
|
868
1004
|
var e_0 = $p;
|
|
869
|
-
raise.
|
|
1005
|
+
raise.xk();
|
|
870
1006
|
throw nonFatalOrThrow(e_0);
|
|
871
1007
|
} else {
|
|
872
1008
|
throw $p;
|
|
@@ -881,7 +1017,7 @@ function read(_this__u8e3s4) {
|
|
|
881
1017
|
// Inline function 'kotlin.contracts.contract' call
|
|
882
1018
|
// Inline function 'community.flock.wirespec.plugin.io.read.<anonymous>' call
|
|
883
1019
|
var it = Path(_this__u8e3s4.toString());
|
|
884
|
-
return readString(buffered(get_SystemFileSystem().
|
|
1020
|
+
return readString(buffered(get_SystemFileSystem().r2i(it)));
|
|
885
1021
|
}
|
|
886
1022
|
function getOutPutPath(inputPath, output) {
|
|
887
1023
|
// Inline function 'arrow.core.raise.either' call
|
|
@@ -894,13 +1030,13 @@ function getOutPutPath(inputPath, output) {
|
|
|
894
1030
|
try {
|
|
895
1031
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
896
1032
|
// Inline function 'community.flock.wirespec.plugin.io.getOutPutPath.<anonymous>' call
|
|
897
|
-
var it = raise.
|
|
1033
|
+
var it = raise.al(getFullPath(output, true));
|
|
898
1034
|
var tmp_0;
|
|
899
1035
|
if (it == null) {
|
|
900
1036
|
tmp_0 = _DirectoryPath___init__impl__5bzkjd(path(inputPath) + '/out');
|
|
901
1037
|
} else {
|
|
902
1038
|
if (it instanceof DirectoryPath) {
|
|
903
|
-
tmp_0 = it.
|
|
1039
|
+
tmp_0 = it.f2k_1;
|
|
904
1040
|
} else {
|
|
905
1041
|
var tmp_1;
|
|
906
1042
|
if (it instanceof FilePath) {
|
|
@@ -909,28 +1045,28 @@ function getOutPutPath(inputPath, output) {
|
|
|
909
1045
|
tmp_1 = it instanceof ClassPath;
|
|
910
1046
|
}
|
|
911
1047
|
if (tmp_1) {
|
|
912
|
-
raise.
|
|
1048
|
+
raise.zk(new OutputShouldBeADirectory());
|
|
913
1049
|
} else {
|
|
914
1050
|
noWhenBranchMatchedException();
|
|
915
1051
|
}
|
|
916
1052
|
}
|
|
917
1053
|
}
|
|
918
1054
|
var res = new DirectoryPath(tmp_0);
|
|
919
|
-
raise.
|
|
1055
|
+
raise.xk();
|
|
920
1056
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
921
1057
|
tmp = new Right(res);
|
|
922
1058
|
} catch ($p) {
|
|
923
1059
|
var tmp_2;
|
|
924
1060
|
if ($p instanceof RaiseCancellationException) {
|
|
925
1061
|
var e = $p;
|
|
926
|
-
raise.
|
|
1062
|
+
raise.xk();
|
|
927
1063
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
928
1064
|
var it_0 = raisedOrRethrow(e, raise);
|
|
929
1065
|
tmp_2 = new Left(it_0);
|
|
930
1066
|
} else {
|
|
931
1067
|
if ($p instanceof Error) {
|
|
932
1068
|
var e_0 = $p;
|
|
933
|
-
raise.
|
|
1069
|
+
raise.xk();
|
|
934
1070
|
throw nonFatalOrThrow(e_0);
|
|
935
1071
|
} else {
|
|
936
1072
|
throw $p;
|
|
@@ -946,14 +1082,14 @@ function write(_this__u8e3s4, string) {
|
|
|
946
1082
|
var this_0 = Path(_this__u8e3s4.toString());
|
|
947
1083
|
// Inline function 'kotlin.contracts.contract' call
|
|
948
1084
|
// Inline function 'community.flock.wirespec.plugin.io.write.<anonymous>' call
|
|
949
|
-
var tmp0_safe_receiver = this_0.
|
|
1085
|
+
var tmp0_safe_receiver = this_0.a2j();
|
|
950
1086
|
if (tmp0_safe_receiver == null)
|
|
951
1087
|
null;
|
|
952
1088
|
else
|
|
953
1089
|
createIfNotExists(tmp0_safe_receiver);
|
|
954
1090
|
// Inline function 'kotlin.contracts.contract' call
|
|
955
1091
|
// Inline function 'kotlin.apply' call
|
|
956
|
-
var this_1 = buffered_0(get_SystemFileSystem().
|
|
1092
|
+
var this_1 = buffered_0(get_SystemFileSystem().t2i(this_0));
|
|
957
1093
|
// Inline function 'kotlin.contracts.contract' call
|
|
958
1094
|
// Inline function 'community.flock.wirespec.plugin.io.write.<anonymous>.<anonymous>' call
|
|
959
1095
|
writeString(this_1, string);
|
|
@@ -965,23 +1101,23 @@ function createIfNotExists(_this__u8e3s4, create) {
|
|
|
965
1101
|
// Inline function 'kotlin.also' call
|
|
966
1102
|
// Inline function 'kotlin.contracts.contract' call
|
|
967
1103
|
// Inline function 'community.flock.wirespec.plugin.io.createIfNotExists.<anonymous>' call
|
|
968
|
-
if (create && !get_SystemFileSystem().
|
|
969
|
-
get_SystemFileSystem().
|
|
1104
|
+
if (create && !get_SystemFileSystem().p2i(_this__u8e3s4)) {
|
|
1105
|
+
get_SystemFileSystem().q2i(_this__u8e3s4, true);
|
|
970
1106
|
}
|
|
971
1107
|
return _this__u8e3s4;
|
|
972
1108
|
}
|
|
973
1109
|
function isWirespecFile(path) {
|
|
974
|
-
return get_extension(path) === FileExtension_Wirespec_getInstance().
|
|
1110
|
+
return get_extension(path) === FileExtension_Wirespec_getInstance().r29_1;
|
|
975
1111
|
}
|
|
976
1112
|
function isRegularFile(path) {
|
|
977
|
-
var tmp0_safe_receiver = get_SystemFileSystem().
|
|
978
|
-
return (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1113
|
+
var tmp0_safe_receiver = get_SystemFileSystem().u2i(path);
|
|
1114
|
+
return (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.w2i_1) === true;
|
|
979
1115
|
}
|
|
980
1116
|
function get_extension(_this__u8e3s4) {
|
|
981
1117
|
return substringAfterLast(_this__u8e3s4.s2(), _Char___init__impl__6a9atx(46), '');
|
|
982
1118
|
}
|
|
983
1119
|
//region block: post-declaration
|
|
984
|
-
protoOf(compile$ctx$1).
|
|
1120
|
+
protoOf(compile$ctx$1).b23 = get_spec;
|
|
985
1121
|
//endregion
|
|
986
1122
|
//region block: init
|
|
987
1123
|
Companion_instance = new Companion();
|