@flock/wirespec 0.18.0-RC.1 → 0.18.1-RC.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/arrow-arrow-atomic.mjs +12 -12
- package/arrow-arrow-core.mjs +152 -158
- package/arrow-arrow-core.mjs.map +1 -1
- package/clikt-clikt-mordant.mjs +80 -80
- package/clikt-clikt.mjs +1442 -1442
- package/clikt-clikt.mjs.map +1 -1
- package/colormath-root-colormath.mjs +439 -439
- package/kotlin-kotlin-stdlib.mjs +1067 -1131
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +4857 -4857
- package/kotlin-rgxgen.mjs +1793 -1793
- package/kotlinx-io-kotlinx-io-core.mjs +415 -415
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1752 -1752
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1348 -1356
- package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
- package/mordant-mordant.mjs +1303 -1311
- package/mordant-mordant.mjs.map +1 -1
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +1527 -1527
- package/wirespec-src-compiler-emitters-java.mjs +477 -451
- package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-kotlin.mjs +413 -408
- package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-python.mjs +379 -378
- package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-rust.mjs +939 -725
- package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-scala.mjs +225 -233
- package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-typescript.mjs +558 -589
- package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-wirespec.mjs +82 -82
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-ir.mjs +3738 -3708
- package/wirespec-src-compiler-ir.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +418 -418
- package/wirespec-src-converter-avro.mjs +506 -506
- package/wirespec-src-converter-openapi.mjs +684 -684
- package/wirespec-src-plugin-arguments.mjs +181 -181
- package/wirespec-src-plugin-cli.mjs +106 -106
- package/wirespec-src-plugin-npm.mjs +36 -36
- package/wirespec-src-tools-generator.mjs +34 -34
|
@@ -147,12 +147,12 @@ function ChooseALogLevel() {
|
|
|
147
147
|
captureStack(this, ChooseALogLevel);
|
|
148
148
|
}
|
|
149
149
|
function SpecificFile(extension) {
|
|
150
|
-
CliktError.call(this, 'No ' + extension.
|
|
150
|
+
CliktError.call(this, 'No ' + extension.a3_1 + ' file found');
|
|
151
151
|
captureStack(this, SpecificFile);
|
|
152
152
|
}
|
|
153
153
|
function Companion() {
|
|
154
154
|
}
|
|
155
|
-
protoOf(Companion).
|
|
155
|
+
protoOf(Companion).a48 = function (compile, convert) {
|
|
156
156
|
return subcommands(new WirespecCli(), [new Compile(compile), new Convert(convert)]);
|
|
157
157
|
};
|
|
158
158
|
var Companion_instance_4;
|
|
@@ -164,11 +164,11 @@ function WirespecCli() {
|
|
|
164
164
|
}
|
|
165
165
|
function _get_stdin__b8xnlj($this) {
|
|
166
166
|
var tmp = KProperty1;
|
|
167
|
-
return $this.
|
|
167
|
+
return $this.y48_1.x1b($this, getPropertyCallableRef('stdin', 1, tmp, Compile$_get_stdin_$ref_5ywd7d_0(), null));
|
|
168
168
|
}
|
|
169
169
|
function _get_languages__ojonze($this) {
|
|
170
170
|
var tmp = KProperty1;
|
|
171
|
-
return $this.
|
|
171
|
+
return $this.z48_1.x1b($this, getPropertyCallableRef('languages', 1, tmp, Compile$_get_languages_$ref_nluohg_0(), null));
|
|
172
172
|
}
|
|
173
173
|
function Compile$_get_stdin_$ref_5ywd7d() {
|
|
174
174
|
return function (p0) {
|
|
@@ -211,27 +211,27 @@ function handleError$ref_1() {
|
|
|
211
211
|
}
|
|
212
212
|
function Compile(compiler) {
|
|
213
213
|
CommonOptions.call(this);
|
|
214
|
-
this.
|
|
214
|
+
this.x48_1 = compiler;
|
|
215
215
|
var tmp = this;
|
|
216
216
|
var tmp_0 = optional(argument(this, VOID, 'stdin'));
|
|
217
217
|
var tmp_1 = KProperty1;
|
|
218
|
-
tmp.
|
|
218
|
+
tmp.y48_1 = tmp_0.d1b(this, getPropertyCallableRef('stdin', 1, tmp_1, Compile$_get_stdin_$ref_5ywd7d(), null));
|
|
219
219
|
var tmp_2 = this;
|
|
220
|
-
var tmp_3 = multiple(choice(option(this, Options_Language_getInstance().
|
|
220
|
+
var tmp_3 = multiple(choice(option(this, Options_Language_getInstance().c49_1.slice(), 'Language'), Companion_instance_1.s3n(), VOID, true), listOf(Language_Kotlin_getInstance()));
|
|
221
221
|
var tmp_4 = KProperty1;
|
|
222
|
-
tmp_2.
|
|
222
|
+
tmp_2.z48_1 = tmp_3.h1c(this, getPropertyCallableRef('languages', 1, tmp_4, Compile$_get_languages_$ref_nluohg(), null));
|
|
223
223
|
}
|
|
224
|
-
protoOf(Compile).
|
|
225
|
-
var logger = new Logger(this.
|
|
224
|
+
protoOf(Compile).w12 = function () {
|
|
225
|
+
var logger = new Logger(this.a4a(this.z49()));
|
|
226
226
|
// Inline function 'arrow.core.getOrElse' call
|
|
227
|
-
var this_0 = getFullPath(this.
|
|
227
|
+
var this_0 = getFullPath(this.b4a());
|
|
228
228
|
var tmp;
|
|
229
229
|
if (this_0 instanceof Left) {
|
|
230
|
-
var it = this_0.
|
|
231
|
-
throw new CliktError(it.
|
|
230
|
+
var it = this_0.nl_1;
|
|
231
|
+
throw new CliktError(it.y3o_1);
|
|
232
232
|
} else {
|
|
233
233
|
if (this_0 instanceof Right) {
|
|
234
|
-
tmp = this_0.
|
|
234
|
+
tmp = this_0.pl_1;
|
|
235
235
|
} else {
|
|
236
236
|
noWhenBranchMatchedException();
|
|
237
237
|
}
|
|
@@ -261,17 +261,17 @@ protoOf(Compile).y12 = function () {
|
|
|
261
261
|
throw new NoClasspathPossible();
|
|
262
262
|
} else {
|
|
263
263
|
if (inputPath instanceof DirectoryPath) {
|
|
264
|
-
var tmp_4 = wirespecSources(new Directory(inputPath.
|
|
265
|
-
tmp_0 = or(tmp_4, handleError$ref()).
|
|
264
|
+
var tmp_4 = wirespecSources(new Directory(inputPath.s3o_1), logger);
|
|
265
|
+
tmp_0 = or(tmp_4, handleError$ref()).dm_1;
|
|
266
266
|
} else {
|
|
267
267
|
if (inputPath instanceof FilePath) {
|
|
268
268
|
var tmp_5;
|
|
269
|
-
if (inputPath.
|
|
269
|
+
if (inputPath.x3o_1.b3_1 === 6) {
|
|
270
270
|
// Inline function 'kotlin.also' call
|
|
271
|
-
var this_1 = new NonEmptySet(nonEmptySetOf(new Source(inputPath.
|
|
272
|
-
this_1.
|
|
273
|
-
logger.
|
|
274
|
-
tmp_5 = this_1.
|
|
271
|
+
var this_1 = new NonEmptySet(nonEmptySetOf(new Source(inputPath.w3o_1, read(inputPath)), []));
|
|
272
|
+
this_1.dm_1;
|
|
273
|
+
logger.sq('Found 1 wirespec file to process: ' + inputPath.toString());
|
|
274
|
+
tmp_5 = this_1.dm_1;
|
|
275
275
|
} else {
|
|
276
276
|
throw new WirespecFileError();
|
|
277
277
|
}
|
|
@@ -283,32 +283,32 @@ protoOf(Compile).y12 = function () {
|
|
|
283
283
|
}
|
|
284
284
|
}
|
|
285
285
|
var sources = tmp_0;
|
|
286
|
-
var emitters = toEmitters(_get_languages__ojonze(this), Companion_instance_0.
|
|
286
|
+
var emitters = toEmitters(_get_languages__ojonze(this), Companion_instance_0.lr(this.k1v()), new EmitShared(this.t1v()), this.c4a());
|
|
287
287
|
var tmp_6;
|
|
288
288
|
if (inputPath == null) {
|
|
289
289
|
tmp_6 = null;
|
|
290
290
|
} else {
|
|
291
291
|
// Inline function 'kotlin.let' call
|
|
292
|
-
var tmp_7 = getOutPutPath(inputPath, this.
|
|
293
|
-
tmp_6 = new Directory(or(tmp_7, handleError$ref_0()).
|
|
292
|
+
var tmp_7 = getOutPutPath(inputPath, this.d4a());
|
|
293
|
+
tmp_6 = new Directory(or(tmp_7, handleError$ref_0()).s3o_1);
|
|
294
294
|
}
|
|
295
295
|
var outputDir = tmp_6;
|
|
296
|
-
var tmp_8 = this.
|
|
297
|
-
var tmp0 = new CompilerArguments(sources, emitters, tmp_8, handleError$ref_1(), Companion_instance_0.
|
|
296
|
+
var tmp_8 = this.e4a(outputDir);
|
|
297
|
+
var tmp0 = new CompilerArguments(sources, emitters, tmp_8, handleError$ref_1(), Companion_instance_0.lr(this.k1v()), logger, this.t1v(), this.f4a(), this.c4a());
|
|
298
298
|
// Inline function 'kotlin.let' call
|
|
299
|
-
this.
|
|
299
|
+
this.x48_1(tmp0);
|
|
300
300
|
};
|
|
301
301
|
function _get_format__qlarck($this) {
|
|
302
302
|
var tmp = KProperty1;
|
|
303
|
-
return $this.
|
|
303
|
+
return $this.d4b_1.x1b($this, getPropertyCallableRef('format', 1, tmp, Convert$_get_format_$ref_ve190_0(), null));
|
|
304
304
|
}
|
|
305
305
|
function _get_stdin__b8xnlj_0($this) {
|
|
306
306
|
var tmp = KProperty1;
|
|
307
|
-
return $this.
|
|
307
|
+
return $this.e4b_1.x1b($this, getPropertyCallableRef('stdin', 1, tmp, Convert$_get_stdin_$ref_yiqct5_0(), null));
|
|
308
308
|
}
|
|
309
309
|
function _get_languages__ojonze_0($this) {
|
|
310
310
|
var tmp = KProperty1;
|
|
311
|
-
return $this.
|
|
311
|
+
return $this.f4b_1.x1b($this, getPropertyCallableRef('languages', 1, tmp, Convert$_get_languages_$ref_ykvilw_0(), null));
|
|
312
312
|
}
|
|
313
313
|
function Convert$_get_format_$ref_ve190() {
|
|
314
314
|
return function (p0) {
|
|
@@ -361,7 +361,7 @@ function handleError$ref_4() {
|
|
|
361
361
|
}
|
|
362
362
|
function Convert(converter) {
|
|
363
363
|
CommonOptions.call(this);
|
|
364
|
-
this.
|
|
364
|
+
this.c4b_1 = converter;
|
|
365
365
|
var tmp = this;
|
|
366
366
|
// Inline function 'com.github.ajalt.clikt.parameters.types.enum' call
|
|
367
367
|
var this_0 = argument(this, VOID, 'Input format');
|
|
@@ -376,24 +376,24 @@ function Convert(converter) {
|
|
|
376
376
|
while (inductionVariable < last) {
|
|
377
377
|
var element = this_1[inductionVariable];
|
|
378
378
|
inductionVariable = inductionVariable + 1 | 0;
|
|
379
|
-
var tmp$ret$2 = element.
|
|
380
|
-
destination.
|
|
379
|
+
var tmp$ret$2 = element.a3_1;
|
|
380
|
+
destination.w2(tmp$ret$2, element);
|
|
381
381
|
}
|
|
382
382
|
var tmp_0 = choice_0(this_0, destination, true);
|
|
383
383
|
var tmp_1 = KProperty1;
|
|
384
|
-
tmp.
|
|
384
|
+
tmp.d4b_1 = tmp_0.d1b(this, getPropertyCallableRef('format', 1, tmp_1, Convert$_get_format_$ref_ve190(), null));
|
|
385
385
|
var tmp_2 = this;
|
|
386
386
|
var tmp_3 = optional(argument(this, VOID, 'stdin'));
|
|
387
387
|
var tmp_4 = KProperty1;
|
|
388
|
-
tmp_2.
|
|
388
|
+
tmp_2.e4b_1 = tmp_3.d1b(this, getPropertyCallableRef('stdin', 1, tmp_4, Convert$_get_stdin_$ref_yiqct5(), null));
|
|
389
389
|
var tmp_5 = this;
|
|
390
|
-
var tmp_6 = multiple(choice(option(this, Options_Language_getInstance().
|
|
390
|
+
var tmp_6 = multiple(choice(option(this, Options_Language_getInstance().c49_1.slice(), 'Language'), Companion_instance_1.s3n(), VOID, true));
|
|
391
391
|
var tmp_7 = KProperty1;
|
|
392
|
-
tmp_5.
|
|
392
|
+
tmp_5.f4b_1 = tmp_6.h1c(this, getPropertyCallableRef('languages', 1, tmp_7, Convert$_get_languages_$ref_ykvilw(), null));
|
|
393
393
|
}
|
|
394
|
-
protoOf(Convert).
|
|
395
|
-
var logger = new Logger(this.
|
|
396
|
-
var tmp = getFullPath(this.
|
|
394
|
+
protoOf(Convert).w12 = function () {
|
|
395
|
+
var logger = new Logger(this.a4a(this.z49()));
|
|
396
|
+
var tmp = getFullPath(this.b4a());
|
|
397
397
|
var inputPath = or(tmp, handleError$ref_2());
|
|
398
398
|
var tmp_0;
|
|
399
399
|
if (inputPath == null) {
|
|
@@ -422,14 +422,14 @@ protoOf(Convert).y12 = function () {
|
|
|
422
422
|
} else {
|
|
423
423
|
if (inputPath instanceof FilePath) {
|
|
424
424
|
var tmp_3;
|
|
425
|
-
if (inputPath.
|
|
426
|
-
tmp_3 = new Source(inputPath.
|
|
425
|
+
if (inputPath.x3o_1.b3_1 === 7) {
|
|
426
|
+
tmp_3 = new Source(inputPath.w3o_1, read(inputPath));
|
|
427
427
|
} else {
|
|
428
428
|
throw new JSONFileError();
|
|
429
429
|
}
|
|
430
430
|
// Inline function 'kotlin.also' call
|
|
431
431
|
var this_0 = tmp_3;
|
|
432
|
-
logger.
|
|
432
|
+
logger.sq('Found 1 file to process: ' + inputPath.toString());
|
|
433
433
|
tmp_0 = this_0;
|
|
434
434
|
} else {
|
|
435
435
|
noWhenBranchMatchedException();
|
|
@@ -438,91 +438,91 @@ protoOf(Convert).y12 = function () {
|
|
|
438
438
|
}
|
|
439
439
|
}
|
|
440
440
|
var source = tmp_0;
|
|
441
|
-
var emitters = toEmitters(_get_languages__ojonze_0(this), Companion_instance_0.
|
|
441
|
+
var emitters = toEmitters(_get_languages__ojonze_0(this), Companion_instance_0.lr(this.k1v()), new EmitShared(this.t1v()), this.c4a());
|
|
442
442
|
var tmp_4;
|
|
443
443
|
if (inputPath == null) {
|
|
444
444
|
tmp_4 = null;
|
|
445
445
|
} else {
|
|
446
446
|
// Inline function 'kotlin.let' call
|
|
447
|
-
var tmp_5 = getOutPutPath(inputPath, this.
|
|
448
|
-
tmp_4 = new Directory(or(tmp_5, handleError$ref_3()).
|
|
447
|
+
var tmp_5 = getOutPutPath(inputPath, this.d4a());
|
|
448
|
+
tmp_4 = new Directory(or(tmp_5, handleError$ref_3()).s3o_1);
|
|
449
449
|
}
|
|
450
450
|
var directory = tmp_4;
|
|
451
451
|
var tmp_6 = _get_format__qlarck(this);
|
|
452
452
|
var tmp_7 = nonEmptySetOf(source, []);
|
|
453
|
-
var tmp_8 = this.
|
|
454
|
-
var tmp0 = new ConverterArguments(tmp_6, tmp_7, emitters, tmp_8, handleError$ref_4(), Companion_instance_0.
|
|
453
|
+
var tmp_8 = this.e4a(directory);
|
|
454
|
+
var tmp0 = new ConverterArguments(tmp_6, tmp_7, emitters, tmp_8, handleError$ref_4(), Companion_instance_0.lr(this.k1v()), logger, this.t1v(), this.f4a(), this.c4a());
|
|
455
455
|
// Inline function 'kotlin.let' call
|
|
456
|
-
this.
|
|
456
|
+
this.c4b_1(tmp0);
|
|
457
457
|
};
|
|
458
458
|
function CommonOptions$_get_input_$ref_6c1nvp() {
|
|
459
459
|
return function (p0) {
|
|
460
|
-
return p0.
|
|
460
|
+
return p0.b4a();
|
|
461
461
|
};
|
|
462
462
|
}
|
|
463
463
|
function CommonOptions$_get_input_$ref_6c1nvp_0() {
|
|
464
464
|
return function (p0) {
|
|
465
|
-
return p0.
|
|
465
|
+
return p0.b4a();
|
|
466
466
|
};
|
|
467
467
|
}
|
|
468
468
|
function CommonOptions$_get_output_$ref_eo6xdi() {
|
|
469
469
|
return function (p0) {
|
|
470
|
-
return p0.
|
|
470
|
+
return p0.d4a();
|
|
471
471
|
};
|
|
472
472
|
}
|
|
473
473
|
function CommonOptions$_get_output_$ref_eo6xdi_0() {
|
|
474
474
|
return function (p0) {
|
|
475
|
-
return p0.
|
|
475
|
+
return p0.d4a();
|
|
476
476
|
};
|
|
477
477
|
}
|
|
478
478
|
function CommonOptions$_get_packageName_$ref_k5vxsu() {
|
|
479
479
|
return function (p0) {
|
|
480
|
-
return p0.
|
|
480
|
+
return p0.k1v();
|
|
481
481
|
};
|
|
482
482
|
}
|
|
483
483
|
function CommonOptions$_get_packageName_$ref_k5vxsu_0() {
|
|
484
484
|
return function (p0) {
|
|
485
|
-
return p0.
|
|
485
|
+
return p0.k1v();
|
|
486
486
|
};
|
|
487
487
|
}
|
|
488
488
|
function CommonOptions$_get_logLevel_$ref_mp4bhx() {
|
|
489
489
|
return function (p0) {
|
|
490
|
-
return p0.
|
|
490
|
+
return p0.z49();
|
|
491
491
|
};
|
|
492
492
|
}
|
|
493
493
|
function CommonOptions$_get_logLevel_$ref_mp4bhx_0() {
|
|
494
494
|
return function (p0) {
|
|
495
|
-
return p0.
|
|
495
|
+
return p0.z49();
|
|
496
496
|
};
|
|
497
497
|
}
|
|
498
498
|
function CommonOptions$_get_shared_$ref_7r7o2u() {
|
|
499
499
|
return function (p0) {
|
|
500
|
-
return p0.
|
|
500
|
+
return p0.t1v();
|
|
501
501
|
};
|
|
502
502
|
}
|
|
503
503
|
function CommonOptions$_get_shared_$ref_7r7o2u_0() {
|
|
504
504
|
return function (p0) {
|
|
505
|
-
return p0.
|
|
505
|
+
return p0.t1v();
|
|
506
506
|
};
|
|
507
507
|
}
|
|
508
508
|
function CommonOptions$_get_strict_$ref_vrzh6q() {
|
|
509
509
|
return function (p0) {
|
|
510
|
-
return p0.
|
|
510
|
+
return p0.f4a();
|
|
511
511
|
};
|
|
512
512
|
}
|
|
513
513
|
function CommonOptions$_get_strict_$ref_vrzh6q_0() {
|
|
514
514
|
return function (p0) {
|
|
515
|
-
return p0.
|
|
515
|
+
return p0.f4a();
|
|
516
516
|
};
|
|
517
517
|
}
|
|
518
518
|
function CommonOptions$_get_ir_$ref_x8twf6() {
|
|
519
519
|
return function (p0) {
|
|
520
|
-
return p0.
|
|
520
|
+
return p0.c4a();
|
|
521
521
|
};
|
|
522
522
|
}
|
|
523
523
|
function CommonOptions$_get_ir_$ref_x8twf6_0() {
|
|
524
524
|
return function (p0) {
|
|
525
|
-
return p0.
|
|
525
|
+
return p0.c4a();
|
|
526
526
|
};
|
|
527
527
|
}
|
|
528
528
|
function CommonOptions$writer$lambda($directory, this$0) {
|
|
@@ -537,11 +537,11 @@ function CommonOptions$writer$lambda($directory, this$0) {
|
|
|
537
537
|
tmp = null;
|
|
538
538
|
} else {
|
|
539
539
|
// Inline function 'kotlin.let' call
|
|
540
|
-
write(Companion_instance_2.
|
|
540
|
+
write(Companion_instance_2.u3o(_DirectoryPath___get_value__impl__hdy2e3(tmp0_safe_receiver.t3o_1) + '/' + element.io_1), element.jo_1);
|
|
541
541
|
tmp = Unit_instance;
|
|
542
542
|
}
|
|
543
543
|
if (tmp == null) {
|
|
544
|
-
this$0.
|
|
544
|
+
this$0.l11(element.jo_1);
|
|
545
545
|
}
|
|
546
546
|
}
|
|
547
547
|
return Unit_instance;
|
|
@@ -550,63 +550,63 @@ function CommonOptions$writer$lambda($directory, this$0) {
|
|
|
550
550
|
function CommonOptions() {
|
|
551
551
|
CliktCommand.call(this);
|
|
552
552
|
var tmp = this;
|
|
553
|
-
var tmp_0 = option(this, Options_Input_getInstance().
|
|
553
|
+
var tmp_0 = option(this, Options_Input_getInstance().c49_1.slice(), 'Input');
|
|
554
554
|
var tmp_1 = KProperty1;
|
|
555
|
-
tmp.
|
|
555
|
+
tmp.s49_1 = tmp_0.h1c(this, getPropertyCallableRef('input', 1, tmp_1, CommonOptions$_get_input_$ref_6c1nvp(), null));
|
|
556
556
|
var tmp_2 = this;
|
|
557
|
-
var tmp_3 = option(this, Options_Output_getInstance().
|
|
557
|
+
var tmp_3 = option(this, Options_Output_getInstance().c49_1.slice(), 'Output');
|
|
558
558
|
var tmp_4 = KProperty1;
|
|
559
|
-
tmp_2.
|
|
559
|
+
tmp_2.t49_1 = tmp_3.h1c(this, getPropertyCallableRef('output', 1, tmp_4, CommonOptions$_get_output_$ref_eo6xdi(), null));
|
|
560
560
|
var tmp_5 = this;
|
|
561
|
-
var tmp_6 = default_0(option(this, Options_PackageName_getInstance().
|
|
561
|
+
var tmp_6 = default_0(option(this, Options_PackageName_getInstance().c49_1.slice(), 'Package name'), 'community.flock.wirespec.generated');
|
|
562
562
|
var tmp_7 = KProperty1;
|
|
563
|
-
tmp_5.
|
|
563
|
+
tmp_5.u49_1 = tmp_6.h1c(this, getPropertyCallableRef('packageName', 1, tmp_7, CommonOptions$_get_packageName_$ref_k5vxsu(), null));
|
|
564
564
|
var tmp_8 = this;
|
|
565
|
-
var tmp_9 = default_0(option(this, Options_LogLevel_getInstance().
|
|
565
|
+
var tmp_9 = default_0(option(this, Options_LogLevel_getInstance().c49_1.slice(), 'Log level: ' + Companion_instance.toString()), Level_INFO_getInstance().toString());
|
|
566
566
|
var tmp_10 = KProperty1;
|
|
567
|
-
tmp_8.
|
|
567
|
+
tmp_8.v49_1 = tmp_9.h1c(this, getPropertyCallableRef('logLevel', 1, tmp_10, CommonOptions$_get_logLevel_$ref_mp4bhx(), null));
|
|
568
568
|
var tmp_11 = this;
|
|
569
|
-
var tmp_12 = flag(option(this, Options_Shared_getInstance().
|
|
569
|
+
var tmp_12 = flag(option(this, Options_Shared_getInstance().c49_1.slice(), 'Generate shared wirespec code'), [], false);
|
|
570
570
|
var tmp_13 = KProperty1;
|
|
571
|
-
tmp_11.
|
|
571
|
+
tmp_11.w49_1 = tmp_12.h1c(this, getPropertyCallableRef('shared', 1, tmp_13, CommonOptions$_get_shared_$ref_7r7o2u(), null));
|
|
572
572
|
var tmp_14 = this;
|
|
573
|
-
var tmp_15 = flag(option(this, Options_Strict_getInstance().
|
|
573
|
+
var tmp_15 = flag(option(this, Options_Strict_getInstance().c49_1.slice(), 'Strict mode'), []);
|
|
574
574
|
var tmp_16 = KProperty1;
|
|
575
|
-
tmp_14.
|
|
575
|
+
tmp_14.x49_1 = tmp_15.h1c(this, getPropertyCallableRef('strict', 1, tmp_16, CommonOptions$_get_strict_$ref_vrzh6q(), null));
|
|
576
576
|
var tmp_17 = this;
|
|
577
|
-
var tmp_18 = flag(option(this, Options_Ir_getInstance().
|
|
577
|
+
var tmp_18 = flag(option(this, Options_Ir_getInstance().c49_1.slice(), 'Output intermediate representation'), [], false);
|
|
578
578
|
var tmp_19 = KProperty1;
|
|
579
|
-
tmp_17.
|
|
579
|
+
tmp_17.y49_1 = tmp_18.h1c(this, getPropertyCallableRef('ir', 1, tmp_19, CommonOptions$_get_ir_$ref_x8twf6(), null));
|
|
580
580
|
}
|
|
581
|
-
protoOf(CommonOptions).
|
|
581
|
+
protoOf(CommonOptions).b4a = function () {
|
|
582
582
|
var tmp = KProperty1;
|
|
583
|
-
return this.
|
|
583
|
+
return this.s49_1.x1b(this, getPropertyCallableRef('input', 1, tmp, CommonOptions$_get_input_$ref_6c1nvp_0(), null));
|
|
584
584
|
};
|
|
585
|
-
protoOf(CommonOptions).
|
|
585
|
+
protoOf(CommonOptions).d4a = function () {
|
|
586
586
|
var tmp = KProperty1;
|
|
587
|
-
return this.
|
|
587
|
+
return this.t49_1.x1b(this, getPropertyCallableRef('output', 1, tmp, CommonOptions$_get_output_$ref_eo6xdi_0(), null));
|
|
588
588
|
};
|
|
589
|
-
protoOf(CommonOptions).
|
|
589
|
+
protoOf(CommonOptions).k1v = function () {
|
|
590
590
|
var tmp = KProperty1;
|
|
591
|
-
return this.
|
|
591
|
+
return this.u49_1.x1b(this, getPropertyCallableRef('packageName', 1, tmp, CommonOptions$_get_packageName_$ref_k5vxsu_0(), null));
|
|
592
592
|
};
|
|
593
|
-
protoOf(CommonOptions).
|
|
593
|
+
protoOf(CommonOptions).z49 = function () {
|
|
594
594
|
var tmp = KProperty1;
|
|
595
|
-
return this.
|
|
595
|
+
return this.v49_1.x1b(this, getPropertyCallableRef('logLevel', 1, tmp, CommonOptions$_get_logLevel_$ref_mp4bhx_0(), null));
|
|
596
596
|
};
|
|
597
|
-
protoOf(CommonOptions).
|
|
597
|
+
protoOf(CommonOptions).t1v = function () {
|
|
598
598
|
var tmp = KProperty1;
|
|
599
|
-
return this.
|
|
599
|
+
return this.w49_1.x1b(this, getPropertyCallableRef('shared', 1, tmp, CommonOptions$_get_shared_$ref_7r7o2u_0(), null));
|
|
600
600
|
};
|
|
601
|
-
protoOf(CommonOptions).
|
|
601
|
+
protoOf(CommonOptions).f4a = function () {
|
|
602
602
|
var tmp = KProperty1;
|
|
603
|
-
return this.
|
|
603
|
+
return this.x49_1.x1b(this, getPropertyCallableRef('strict', 1, tmp, CommonOptions$_get_strict_$ref_vrzh6q_0(), null));
|
|
604
604
|
};
|
|
605
|
-
protoOf(CommonOptions).
|
|
605
|
+
protoOf(CommonOptions).c4a = function () {
|
|
606
606
|
var tmp = KProperty1;
|
|
607
|
-
return this.
|
|
607
|
+
return this.y49_1.x1b(this, getPropertyCallableRef('ir', 1, tmp, CommonOptions$_get_ir_$ref_x8twf6_0(), null));
|
|
608
608
|
};
|
|
609
|
-
protoOf(CommonOptions).
|
|
609
|
+
protoOf(CommonOptions).a4a = function (_this__u8e3s4) {
|
|
610
610
|
// Inline function 'kotlin.text.trim' call
|
|
611
611
|
// Inline function 'kotlin.text.uppercase' call
|
|
612
612
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -629,7 +629,7 @@ protoOf(CommonOptions).w49 = function (_this__u8e3s4) {
|
|
|
629
629
|
}
|
|
630
630
|
return tmp;
|
|
631
631
|
};
|
|
632
|
-
protoOf(CommonOptions).
|
|
632
|
+
protoOf(CommonOptions).e4a = function (directory) {
|
|
633
633
|
return CommonOptions$writer$lambda(directory, this);
|
|
634
634
|
};
|
|
635
635
|
var Options_Input_instance;
|
|
@@ -656,7 +656,7 @@ function Options_initEntries() {
|
|
|
656
656
|
}
|
|
657
657
|
function Options(name, ordinal, flags) {
|
|
658
658
|
Enum.call(this, name, ordinal);
|
|
659
|
-
this.
|
|
659
|
+
this.c49_1 = flags;
|
|
660
660
|
}
|
|
661
661
|
function handleError(string) {
|
|
662
662
|
throw new CliktError(string);
|
|
@@ -720,8 +720,8 @@ function main_0(args) {
|
|
|
720
720
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
721
721
|
var destination = ArrayList_init_$Create$_0();
|
|
722
722
|
// Inline function 'kotlin.collections.forEach' call
|
|
723
|
-
var inductionVariable = tmp0.
|
|
724
|
-
var last = tmp0.
|
|
723
|
+
var inductionVariable = tmp0.n1_1;
|
|
724
|
+
var last = tmp0.o1_1;
|
|
725
725
|
if (inductionVariable <= last)
|
|
726
726
|
do {
|
|
727
727
|
var element = inductionVariable;
|
|
@@ -739,7 +739,7 @@ function main_0(args) {
|
|
|
739
739
|
// Inline function 'kotlin.let' call
|
|
740
740
|
var tmp = Companion_instance_4;
|
|
741
741
|
var tmp_0 = compile$ref();
|
|
742
|
-
main(tmp.
|
|
742
|
+
main(tmp.a48(tmp_0, convert$ref()), destination);
|
|
743
743
|
}
|
|
744
744
|
function compile$ref() {
|
|
745
745
|
var l = function (p0) {
|
|
@@ -765,18 +765,18 @@ function parser(source) {
|
|
|
765
765
|
var this_0 = parse(new parser$1(), nonEmptyListOf(new ModuleContent(new FileUri(''), source), []));
|
|
766
766
|
var tmp;
|
|
767
767
|
if (this_0 instanceof Left) {
|
|
768
|
-
var it = this_0.
|
|
768
|
+
var it = this_0.nl_1.yl_1;
|
|
769
769
|
var message = 'Cannot parse source: ' + joinToString(new NonEmptyList(it), VOID, VOID, VOID, VOID, VOID, parser$lambda);
|
|
770
770
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
771
771
|
} else {
|
|
772
772
|
if (this_0 instanceof Right) {
|
|
773
|
-
tmp = this_0.
|
|
773
|
+
tmp = this_0.pl_1;
|
|
774
774
|
} else {
|
|
775
775
|
noWhenBranchMatchedException();
|
|
776
776
|
}
|
|
777
777
|
}
|
|
778
778
|
// Inline function 'arrow.core.NonEmptyList.flatMap' call
|
|
779
|
-
var this_1 = tmp.
|
|
779
|
+
var this_1 = tmp.bq_1;
|
|
780
780
|
// Inline function 'kotlin.collections.flatMap' call
|
|
781
781
|
var tmp0 = _NonEmptyList___get_all__impl__pmf509(this_1);
|
|
782
782
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -784,7 +784,7 @@ function parser(source) {
|
|
|
784
784
|
var _iterator__ex2g4s = tmp0.t();
|
|
785
785
|
while (_iterator__ex2g4s.u()) {
|
|
786
786
|
var element = _iterator__ex2g4s.v();
|
|
787
|
-
var list = new NonEmptyList(element.
|
|
787
|
+
var list = new NonEmptyList(element.dq_1);
|
|
788
788
|
addAll(destination, list);
|
|
789
789
|
}
|
|
790
790
|
var tmp$ret$4 = _NonEmptyList___init__impl__fxd0xp(destination);
|
|
@@ -835,7 +835,7 @@ function orNull(_this__u8e3s4, idx) {
|
|
|
835
835
|
var value = tmp;
|
|
836
836
|
tmp$ret$3 = new Right(value);
|
|
837
837
|
}
|
|
838
|
-
return tmp$ret$3.
|
|
838
|
+
return tmp$ret$3.ol();
|
|
839
839
|
}
|
|
840
840
|
var properties_initialized_CommandLineArguments_kt_ekn5uh;
|
|
841
841
|
function _init_properties_CommandLineArguments_kt__b5v7hl() {
|
|
@@ -846,8 +846,8 @@ function _init_properties_CommandLineArguments_kt__b5v7hl() {
|
|
|
846
846
|
}
|
|
847
847
|
}
|
|
848
848
|
//region block: post-declaration
|
|
849
|
-
protoOf(parser$1).
|
|
850
|
-
protoOf(parser$1).
|
|
849
|
+
protoOf(parser$1).gn = get_spec;
|
|
850
|
+
protoOf(parser$1).hn = get_logger;
|
|
851
851
|
//endregion
|
|
852
852
|
//region block: init
|
|
853
853
|
Companion_instance_4 = new Companion();
|