@flock/wirespec 0.19.2 → 0.19.3
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/clikt-clikt-mordant.mjs +39 -39
- package/colormath-root-colormath.mjs +432 -432
- package/kotlin-kotlin-stdlib.mjs +6 -6
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +9765 -9765
- package/kotlin-rgxgen.mjs +1756 -1756
- package/kotlinx-io-kotlinx-io-core.mjs +403 -403
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1759 -1759
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1468 -1468
- package/mordant-mordant.mjs +1181 -1181
- package/package.json +1 -1
- package/wirespec-src-compiler-emitters-java.mjs +238 -236
- package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-kotlin.mjs +139 -137
- package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-python.mjs +176 -174
- package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-rust.mjs +305 -303
- package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-scala.mjs +112 -110
- package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-typescript.mjs +179 -177
- package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-wirespec.mjs +24 -24
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-ir.mjs +2626 -2578
- package/wirespec-src-compiler-ir.mjs.map +1 -1
- package/wirespec-src-converter-avro.mjs +479 -479
- package/wirespec-src-converter-openapi.mjs +338 -338
- package/wirespec-src-ide-lsp.mjs +1351 -1351
- package/wirespec-src-plugin-arguments.mjs +134 -134
- package/wirespec-src-plugin-cli.mjs +84 -84
- package/wirespec-src-plugin-npm.mjs +18 -18
- package/wirespec-src-tools-generator.mjs +2 -2
|
@@ -152,7 +152,7 @@ function SpecificFile(extension) {
|
|
|
152
152
|
}
|
|
153
153
|
function Companion() {
|
|
154
154
|
}
|
|
155
|
-
protoOf(Companion).
|
|
155
|
+
protoOf(Companion).g4x = 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.e4y_1.n1c($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.f4y_1.n1c($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,24 +211,24 @@ function handleError$ref_1() {
|
|
|
211
211
|
}
|
|
212
212
|
function Compile(compiler) {
|
|
213
213
|
CommonOptions.call(this);
|
|
214
|
-
this.
|
|
214
|
+
this.d4y_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.e4y_1 = tmp_0.t1b(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().i4y_1.slice(), 'Language'), Companion_instance_1.z4c(), VOID, true), listOf(Language_Kotlin_getInstance()));
|
|
221
221
|
var tmp_4 = KProperty1;
|
|
222
|
-
tmp_2.
|
|
222
|
+
tmp_2.f4y_1 = tmp_3.x1c(this, getPropertyCallableRef('languages', 1, tmp_4, Compile$_get_languages_$ref_nluohg(), null));
|
|
223
223
|
}
|
|
224
224
|
protoOf(Compile).m13 = function () {
|
|
225
|
-
var logger = new Logger(this.
|
|
225
|
+
var logger = new Logger(this.g4z(this.f4z()));
|
|
226
226
|
// Inline function 'arrow.core.getOrElse' call
|
|
227
|
-
var this_0 = getFullPath(this.
|
|
227
|
+
var this_0 = getFullPath(this.h4z());
|
|
228
228
|
var tmp;
|
|
229
229
|
if (this_0 instanceof Left) {
|
|
230
230
|
var it = this_0.dm_1;
|
|
231
|
-
throw new CliktError(it.
|
|
231
|
+
throw new CliktError(it.f4e_1);
|
|
232
232
|
} else {
|
|
233
233
|
if (this_0 instanceof Right) {
|
|
234
234
|
tmp = this_0.fm_1;
|
|
@@ -261,14 +261,14 @@ protoOf(Compile).m13 = function () {
|
|
|
261
261
|
throw new NoClasspathPossible();
|
|
262
262
|
} else {
|
|
263
263
|
if (inputPath instanceof DirectoryPath) {
|
|
264
|
-
var tmp_4 = wirespecSources(new Directory(inputPath.
|
|
264
|
+
var tmp_4 = wirespecSources(new Directory(inputPath.z4d_1), logger);
|
|
265
265
|
tmp_0 = or(tmp_4, handleError$ref()).tm_1;
|
|
266
266
|
} else {
|
|
267
267
|
if (inputPath instanceof FilePath) {
|
|
268
268
|
var tmp_5;
|
|
269
|
-
if (inputPath.
|
|
269
|
+
if (inputPath.e4e_1.b3_1 === 6) {
|
|
270
270
|
// Inline function 'kotlin.also' call
|
|
271
|
-
var this_1 = new NonEmptySet(nonEmptySetOf(new Source(inputPath.
|
|
271
|
+
var this_1 = new NonEmptySet(nonEmptySetOf(new Source(inputPath.d4e_1, read(inputPath)), []));
|
|
272
272
|
this_1.tm_1;
|
|
273
273
|
logger.jr('Found 1 wirespec file to process: ' + inputPath.toString());
|
|
274
274
|
tmp_5 = this_1.tm_1;
|
|
@@ -283,32 +283,32 @@ protoOf(Compile).m13 = function () {
|
|
|
283
283
|
}
|
|
284
284
|
}
|
|
285
285
|
var sources = tmp_0;
|
|
286
|
-
var emitters = toEmitters(_get_languages__ojonze(this), Companion_instance_0.cs(this.
|
|
286
|
+
var emitters = toEmitters(_get_languages__ojonze(this), Companion_instance_0.cs(this.u1w()), new EmitShared(this.d1x()), this.i4z());
|
|
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.j4z());
|
|
293
|
+
tmp_6 = new Directory(or(tmp_7, handleError$ref_0()).z4d_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.cs(this.
|
|
296
|
+
var tmp_8 = this.k4z(outputDir);
|
|
297
|
+
var tmp0 = new CompilerArguments(sources, emitters, tmp_8, handleError$ref_1(), Companion_instance_0.cs(this.u1w()), logger, this.d1x(), this.l4z(), this.i4z());
|
|
298
298
|
// Inline function 'kotlin.let' call
|
|
299
|
-
this.
|
|
299
|
+
this.d4y_1(tmp0);
|
|
300
300
|
};
|
|
301
301
|
function _get_format__qlarck($this) {
|
|
302
302
|
var tmp = KProperty1;
|
|
303
|
-
return $this.
|
|
303
|
+
return $this.j50_1.n1c($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.k50_1.n1c($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.l50_1.n1c($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.i50_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');
|
|
@@ -381,19 +381,19 @@ function Convert(converter) {
|
|
|
381
381
|
}
|
|
382
382
|
var tmp_0 = choice_0(this_0, destination, true);
|
|
383
383
|
var tmp_1 = KProperty1;
|
|
384
|
-
tmp.
|
|
384
|
+
tmp.j50_1 = tmp_0.t1b(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.k50_1 = tmp_3.t1b(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().i4y_1.slice(), 'Language'), Companion_instance_1.z4c(), VOID, true));
|
|
391
391
|
var tmp_7 = KProperty1;
|
|
392
|
-
tmp_5.
|
|
392
|
+
tmp_5.l50_1 = tmp_6.x1c(this, getPropertyCallableRef('languages', 1, tmp_7, Convert$_get_languages_$ref_ykvilw(), null));
|
|
393
393
|
}
|
|
394
394
|
protoOf(Convert).m13 = function () {
|
|
395
|
-
var logger = new Logger(this.
|
|
396
|
-
var tmp = getFullPath(this.
|
|
395
|
+
var logger = new Logger(this.g4z(this.f4z()));
|
|
396
|
+
var tmp = getFullPath(this.h4z());
|
|
397
397
|
var inputPath = or(tmp, handleError$ref_2());
|
|
398
398
|
var tmp_0;
|
|
399
399
|
if (inputPath == null) {
|
|
@@ -422,8 +422,8 @@ protoOf(Convert).m13 = 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.e4e_1.b3_1 === 7) {
|
|
426
|
+
tmp_3 = new Source(inputPath.d4e_1, read(inputPath));
|
|
427
427
|
} else {
|
|
428
428
|
throw new JSONFileError();
|
|
429
429
|
}
|
|
@@ -438,91 +438,91 @@ protoOf(Convert).m13 = function () {
|
|
|
438
438
|
}
|
|
439
439
|
}
|
|
440
440
|
var source = tmp_0;
|
|
441
|
-
var emitters = toEmitters(_get_languages__ojonze_0(this), Companion_instance_0.cs(this.
|
|
441
|
+
var emitters = toEmitters(_get_languages__ojonze_0(this), Companion_instance_0.cs(this.u1w()), new EmitShared(this.d1x()), this.i4z());
|
|
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.j4z());
|
|
448
|
+
tmp_4 = new Directory(or(tmp_5, handleError$ref_3()).z4d_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.cs(this.
|
|
453
|
+
var tmp_8 = this.k4z(directory);
|
|
454
|
+
var tmp0 = new ConverterArguments(tmp_6, tmp_7, emitters, tmp_8, handleError$ref_4(), Companion_instance_0.cs(this.u1w()), logger, this.d1x(), this.l4z(), this.i4z());
|
|
455
455
|
// Inline function 'kotlin.let' call
|
|
456
|
-
this.
|
|
456
|
+
this.i50_1(tmp0);
|
|
457
457
|
};
|
|
458
458
|
function CommonOptions$_get_input_$ref_6c1nvp() {
|
|
459
459
|
return function (p0) {
|
|
460
|
-
return p0.
|
|
460
|
+
return p0.h4z();
|
|
461
461
|
};
|
|
462
462
|
}
|
|
463
463
|
function CommonOptions$_get_input_$ref_6c1nvp_0() {
|
|
464
464
|
return function (p0) {
|
|
465
|
-
return p0.
|
|
465
|
+
return p0.h4z();
|
|
466
466
|
};
|
|
467
467
|
}
|
|
468
468
|
function CommonOptions$_get_output_$ref_eo6xdi() {
|
|
469
469
|
return function (p0) {
|
|
470
|
-
return p0.
|
|
470
|
+
return p0.j4z();
|
|
471
471
|
};
|
|
472
472
|
}
|
|
473
473
|
function CommonOptions$_get_output_$ref_eo6xdi_0() {
|
|
474
474
|
return function (p0) {
|
|
475
|
-
return p0.
|
|
475
|
+
return p0.j4z();
|
|
476
476
|
};
|
|
477
477
|
}
|
|
478
478
|
function CommonOptions$_get_packageName_$ref_k5vxsu() {
|
|
479
479
|
return function (p0) {
|
|
480
|
-
return p0.
|
|
480
|
+
return p0.u1w();
|
|
481
481
|
};
|
|
482
482
|
}
|
|
483
483
|
function CommonOptions$_get_packageName_$ref_k5vxsu_0() {
|
|
484
484
|
return function (p0) {
|
|
485
|
-
return p0.
|
|
485
|
+
return p0.u1w();
|
|
486
486
|
};
|
|
487
487
|
}
|
|
488
488
|
function CommonOptions$_get_logLevel_$ref_mp4bhx() {
|
|
489
489
|
return function (p0) {
|
|
490
|
-
return p0.
|
|
490
|
+
return p0.f4z();
|
|
491
491
|
};
|
|
492
492
|
}
|
|
493
493
|
function CommonOptions$_get_logLevel_$ref_mp4bhx_0() {
|
|
494
494
|
return function (p0) {
|
|
495
|
-
return p0.
|
|
495
|
+
return p0.f4z();
|
|
496
496
|
};
|
|
497
497
|
}
|
|
498
498
|
function CommonOptions$_get_shared_$ref_7r7o2u() {
|
|
499
499
|
return function (p0) {
|
|
500
|
-
return p0.
|
|
500
|
+
return p0.d1x();
|
|
501
501
|
};
|
|
502
502
|
}
|
|
503
503
|
function CommonOptions$_get_shared_$ref_7r7o2u_0() {
|
|
504
504
|
return function (p0) {
|
|
505
|
-
return p0.
|
|
505
|
+
return p0.d1x();
|
|
506
506
|
};
|
|
507
507
|
}
|
|
508
508
|
function CommonOptions$_get_strict_$ref_vrzh6q() {
|
|
509
509
|
return function (p0) {
|
|
510
|
-
return p0.
|
|
510
|
+
return p0.l4z();
|
|
511
511
|
};
|
|
512
512
|
}
|
|
513
513
|
function CommonOptions$_get_strict_$ref_vrzh6q_0() {
|
|
514
514
|
return function (p0) {
|
|
515
|
-
return p0.
|
|
515
|
+
return p0.l4z();
|
|
516
516
|
};
|
|
517
517
|
}
|
|
518
518
|
function CommonOptions$_get_ir_$ref_x8twf6() {
|
|
519
519
|
return function (p0) {
|
|
520
|
-
return p0.
|
|
520
|
+
return p0.i4z();
|
|
521
521
|
};
|
|
522
522
|
}
|
|
523
523
|
function CommonOptions$_get_ir_$ref_x8twf6_0() {
|
|
524
524
|
return function (p0) {
|
|
525
|
-
return p0.
|
|
525
|
+
return p0.i4z();
|
|
526
526
|
};
|
|
527
527
|
}
|
|
528
528
|
function CommonOptions$writer$lambda($directory, this$0) {
|
|
@@ -537,7 +537,7 @@ 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.b4e(_DirectoryPath___get_value__impl__hdy2e3(tmp0_safe_receiver.a4e_1) + '/' + element.yo_1), element.zo_1);
|
|
541
541
|
tmp = Unit_instance;
|
|
542
542
|
}
|
|
543
543
|
if (tmp == null) {
|
|
@@ -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().i4y_1.slice(), 'Input');
|
|
554
554
|
var tmp_1 = KProperty1;
|
|
555
|
-
tmp.
|
|
555
|
+
tmp.y4y_1 = tmp_0.x1c(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().i4y_1.slice(), 'Output');
|
|
558
558
|
var tmp_4 = KProperty1;
|
|
559
|
-
tmp_2.
|
|
559
|
+
tmp_2.z4y_1 = tmp_3.x1c(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().i4y_1.slice(), 'Package name'), 'community.flock.wirespec.generated');
|
|
562
562
|
var tmp_7 = KProperty1;
|
|
563
|
-
tmp_5.
|
|
563
|
+
tmp_5.a4z_1 = tmp_6.x1c(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().i4y_1.slice(), 'Log level: ' + Companion_instance.toString()), Level_INFO_getInstance().toString());
|
|
566
566
|
var tmp_10 = KProperty1;
|
|
567
|
-
tmp_8.
|
|
567
|
+
tmp_8.b4z_1 = tmp_9.x1c(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().i4y_1.slice(), 'Generate shared wirespec code'), [], false);
|
|
570
570
|
var tmp_13 = KProperty1;
|
|
571
|
-
tmp_11.
|
|
571
|
+
tmp_11.c4z_1 = tmp_12.x1c(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().i4y_1.slice(), 'Strict mode'), []);
|
|
574
574
|
var tmp_16 = KProperty1;
|
|
575
|
-
tmp_14.
|
|
575
|
+
tmp_14.d4z_1 = tmp_15.x1c(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().i4y_1.slice(), 'Output intermediate representation'), [], false);
|
|
578
578
|
var tmp_19 = KProperty1;
|
|
579
|
-
tmp_17.
|
|
579
|
+
tmp_17.e4z_1 = tmp_18.x1c(this, getPropertyCallableRef('ir', 1, tmp_19, CommonOptions$_get_ir_$ref_x8twf6(), null));
|
|
580
580
|
}
|
|
581
|
-
protoOf(CommonOptions).
|
|
581
|
+
protoOf(CommonOptions).h4z = function () {
|
|
582
582
|
var tmp = KProperty1;
|
|
583
|
-
return this.
|
|
583
|
+
return this.y4y_1.n1c(this, getPropertyCallableRef('input', 1, tmp, CommonOptions$_get_input_$ref_6c1nvp_0(), null));
|
|
584
584
|
};
|
|
585
|
-
protoOf(CommonOptions).
|
|
585
|
+
protoOf(CommonOptions).j4z = function () {
|
|
586
586
|
var tmp = KProperty1;
|
|
587
|
-
return this.
|
|
587
|
+
return this.z4y_1.n1c(this, getPropertyCallableRef('output', 1, tmp, CommonOptions$_get_output_$ref_eo6xdi_0(), null));
|
|
588
588
|
};
|
|
589
|
-
protoOf(CommonOptions).
|
|
589
|
+
protoOf(CommonOptions).u1w = function () {
|
|
590
590
|
var tmp = KProperty1;
|
|
591
|
-
return this.
|
|
591
|
+
return this.a4z_1.n1c(this, getPropertyCallableRef('packageName', 1, tmp, CommonOptions$_get_packageName_$ref_k5vxsu_0(), null));
|
|
592
592
|
};
|
|
593
|
-
protoOf(CommonOptions).
|
|
593
|
+
protoOf(CommonOptions).f4z = function () {
|
|
594
594
|
var tmp = KProperty1;
|
|
595
|
-
return this.
|
|
595
|
+
return this.b4z_1.n1c(this, getPropertyCallableRef('logLevel', 1, tmp, CommonOptions$_get_logLevel_$ref_mp4bhx_0(), null));
|
|
596
596
|
};
|
|
597
|
-
protoOf(CommonOptions).
|
|
597
|
+
protoOf(CommonOptions).d1x = function () {
|
|
598
598
|
var tmp = KProperty1;
|
|
599
|
-
return this.
|
|
599
|
+
return this.c4z_1.n1c(this, getPropertyCallableRef('shared', 1, tmp, CommonOptions$_get_shared_$ref_7r7o2u_0(), null));
|
|
600
600
|
};
|
|
601
|
-
protoOf(CommonOptions).
|
|
601
|
+
protoOf(CommonOptions).l4z = function () {
|
|
602
602
|
var tmp = KProperty1;
|
|
603
|
-
return this.
|
|
603
|
+
return this.d4z_1.n1c(this, getPropertyCallableRef('strict', 1, tmp, CommonOptions$_get_strict_$ref_vrzh6q_0(), null));
|
|
604
604
|
};
|
|
605
|
-
protoOf(CommonOptions).
|
|
605
|
+
protoOf(CommonOptions).i4z = function () {
|
|
606
606
|
var tmp = KProperty1;
|
|
607
|
-
return this.
|
|
607
|
+
return this.e4z_1.n1c(this, getPropertyCallableRef('ir', 1, tmp, CommonOptions$_get_ir_$ref_x8twf6_0(), null));
|
|
608
608
|
};
|
|
609
|
-
protoOf(CommonOptions).
|
|
609
|
+
protoOf(CommonOptions).g4z = 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).d4z = function (_this__u8e3s4) {
|
|
|
629
629
|
}
|
|
630
630
|
return tmp;
|
|
631
631
|
};
|
|
632
|
-
protoOf(CommonOptions).
|
|
632
|
+
protoOf(CommonOptions).k4z = 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.i4y_1 = flags;
|
|
660
660
|
}
|
|
661
661
|
function handleError(string) {
|
|
662
662
|
throw new CliktError(string);
|
|
@@ -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.g4x(tmp_0, convert$ref()), destination);
|
|
743
743
|
}
|
|
744
744
|
function compile$ref() {
|
|
745
745
|
var l = function (p0) {
|
|
@@ -125,27 +125,27 @@ function Shared_initEntries() {
|
|
|
125
125
|
return Unit_instance;
|
|
126
126
|
Shared_entriesInitialized = true;
|
|
127
127
|
// Inline function 'kotlin.let' call
|
|
128
|
-
var p0 = ensureNotNull((new KotlinIrEmitter(VOID, new EmitShared(true))).
|
|
129
|
-
var tmp$ret$1 = KotlinGenerator_instance.
|
|
128
|
+
var p0 = ensureNotNull((new KotlinIrEmitter(VOID, new EmitShared(true))).x1v());
|
|
129
|
+
var tmp$ret$1 = KotlinGenerator_instance.u1v(p0);
|
|
130
130
|
Shared_KOTLIN_instance = new Shared('KOTLIN', 0, tmp$ret$1);
|
|
131
|
-
var tmp0 = ensureNotNull((new JavaIrEmitter(VOID, new EmitShared(true))).
|
|
131
|
+
var tmp0 = ensureNotNull((new JavaIrEmitter(VOID, new EmitShared(true))).x1v());
|
|
132
132
|
// Inline function 'kotlin.let' call
|
|
133
|
-
var tmp$ret$3 = JavaGenerator_getInstance().
|
|
133
|
+
var tmp$ret$3 = JavaGenerator_getInstance().u1v(tmp0);
|
|
134
134
|
Shared_JAVA_instance = new Shared('JAVA', 1, tmp$ret$3);
|
|
135
|
-
var tmp0_0 = ensureNotNull((new TypeScriptIrEmitter()).
|
|
135
|
+
var tmp0_0 = ensureNotNull((new TypeScriptIrEmitter()).x1v());
|
|
136
136
|
// Inline function 'kotlin.let' call
|
|
137
|
-
var tmp$ret$5 = TypeScriptGenerator_getInstance().
|
|
137
|
+
var tmp$ret$5 = TypeScriptGenerator_getInstance().u1v(tmp0_0);
|
|
138
138
|
Shared_TYPESCRIPT_instance = new Shared('TYPESCRIPT', 2, tmp$ret$5);
|
|
139
139
|
// Inline function 'kotlin.let' call
|
|
140
|
-
var p0_0 = ensureNotNull((new PythonIrEmitter(VOID, new EmitShared(true))).
|
|
141
|
-
var tmp$ret$7 = PythonGenerator_instance.
|
|
140
|
+
var p0_0 = ensureNotNull((new PythonIrEmitter(VOID, new EmitShared(true))).x1v());
|
|
141
|
+
var tmp$ret$7 = PythonGenerator_instance.u1v(p0_0);
|
|
142
142
|
Shared_PYTHON_instance = new Shared('PYTHON', 3, tmp$ret$7);
|
|
143
143
|
}
|
|
144
144
|
function Shared(name, ordinal, source) {
|
|
145
145
|
Enum.call(this, name, ordinal);
|
|
146
146
|
this.source = source;
|
|
147
147
|
}
|
|
148
|
-
protoOf(Shared).
|
|
148
|
+
protoOf(Shared).s2y = function () {
|
|
149
149
|
return this.source;
|
|
150
150
|
};
|
|
151
151
|
var Emitters_WIRESPEC_instance;
|
|
@@ -264,13 +264,13 @@ function convert(source, converters, strict) {
|
|
|
264
264
|
var tmp;
|
|
265
265
|
switch (converters.b3_1) {
|
|
266
266
|
case 0:
|
|
267
|
-
tmp = produce_1(OpenAPIV2Parser_instance.
|
|
267
|
+
tmp = produce_1(OpenAPIV2Parser_instance.m47(new ModuleContent(new FileUri(''), source), strict));
|
|
268
268
|
break;
|
|
269
269
|
case 1:
|
|
270
|
-
tmp = produce_1(OpenAPIV3Parser_instance.
|
|
270
|
+
tmp = produce_1(OpenAPIV3Parser_instance.m47(new ModuleContent(new FileUri(''), source), strict));
|
|
271
271
|
break;
|
|
272
272
|
case 2:
|
|
273
|
-
tmp = produce_1(AvroJsonParser_instance.
|
|
273
|
+
tmp = produce_1(AvroJsonParser_instance.m47(new ModuleContent(new FileUri(''), source), strict));
|
|
274
274
|
break;
|
|
275
275
|
default:
|
|
276
276
|
noWhenBranchMatchedException();
|
|
@@ -335,7 +335,7 @@ function emit(wsAst, emitter, packageName, emitShared) {
|
|
|
335
335
|
}
|
|
336
336
|
|
|
337
337
|
var tmp$ret$3 = _NonEmptyList___init__impl__fxd0xp(destination);
|
|
338
|
-
var tmp0_0 = tmp_0.
|
|
338
|
+
var tmp0_0 = tmp_0.k47(tmp$ret$3, get_noLogger());
|
|
339
339
|
// Inline function 'kotlin.let' call
|
|
340
340
|
|
|
341
341
|
// Inline function 'kotlin.let' call
|
|
@@ -365,7 +365,7 @@ function emit(wsAst, emitter, packageName, emitShared) {
|
|
|
365
365
|
}
|
|
366
366
|
|
|
367
367
|
var tmp$ret$12 = _NonEmptyList___init__impl__fxd0xp(destination_0);
|
|
368
|
-
var tmp0_2 = tmp_1.
|
|
368
|
+
var tmp0_2 = tmp_1.o47(tmp$ret$12, null, get_noLogger());
|
|
369
369
|
// Inline function 'kotlin.let' call
|
|
370
370
|
|
|
371
371
|
// Inline function 'kotlin.let' call
|
|
@@ -389,7 +389,7 @@ function emit(wsAst, emitter, packageName, emitShared) {
|
|
|
389
389
|
var _iterator__ex2g4s_1 = this_3.t();
|
|
390
390
|
while (_iterator__ex2g4s_1.u()) {
|
|
391
391
|
var item = _iterator__ex2g4s_1.v();
|
|
392
|
-
var tmp$ret$18 = AvroJsonEmitter_getInstance().
|
|
392
|
+
var tmp$ret$18 = AvroJsonEmitter_getInstance().u48(item);
|
|
393
393
|
destination_1.x(tmp$ret$18);
|
|
394
394
|
}
|
|
395
395
|
|
|
@@ -408,11 +408,11 @@ function emit(wsAst, emitter, packageName, emitShared) {
|
|
|
408
408
|
// Inline function 'kotlinx.serialization.encodeToString' call
|
|
409
409
|
var this_6 = Default_getInstance();
|
|
410
410
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
411
|
-
var this_7 = this_6.
|
|
411
|
+
var this_7 = this_6.z24();
|
|
412
412
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
413
413
|
var this_8 = serializer(this_7, createKType(getKClass(KtList), arrayOf([createInvariantKTypeProjection(createKType(getKClass(Type), arrayOf([]), false))]), false));
|
|
414
414
|
var tmp$ret$23 = isInterface(this_8, KSerializer) ? this_8 : THROW_CCE();
|
|
415
|
-
var tmp$ret$25 = this_6.
|
|
415
|
+
var tmp$ret$25 = this_6.e2m(tmp$ret$23, item_0);
|
|
416
416
|
destination_2.x(tmp$ret$25);
|
|
417
417
|
}
|
|
418
418
|
|
|
@@ -464,7 +464,7 @@ function generate$1() {
|
|
|
464
464
|
}
|
|
465
465
|
function encode$lambda($serializer) {
|
|
466
466
|
return function (value) {
|
|
467
|
-
return Default_getInstance().
|
|
467
|
+
return Default_getInstance().e2m($serializer, value);
|
|
468
468
|
};
|
|
469
469
|
}
|
|
470
470
|
function Shared_KOTLIN_getInstance() {
|
|
@@ -188,7 +188,7 @@ function resolveReference(_this__u8e3s4, type) {
|
|
|
188
188
|
}
|
|
189
189
|
function defaultGenerator(random) {
|
|
190
190
|
// Inline function 'kotlin.let' call
|
|
191
|
-
var p0 = Companion_instance.
|
|
191
|
+
var p0 = Companion_instance.t56('\\w{1,50}').c57(random);
|
|
192
192
|
return JsonPrimitive_1(p0);
|
|
193
193
|
}
|
|
194
194
|
function generateObject(_this__u8e3s4, def, random) {
|
|
@@ -326,7 +326,7 @@ function generateUnion(_this__u8e3s4, def, random) {
|
|
|
326
326
|
return generate_0(_this__u8e3s4, it, random);
|
|
327
327
|
}
|
|
328
328
|
function randomRegex(regex, random) {
|
|
329
|
-
return Companion_instance.
|
|
329
|
+
return Companion_instance.t56(substring(regex, 1, regex.length - 2 | 0)).c57(random);
|
|
330
330
|
}
|
|
331
331
|
//region block: exports
|
|
332
332
|
export {
|