@flock/wirespec 0.20.2 → 0.21.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/clikt-clikt-mordant.mjs +79 -79
- package/clikt-clikt.mjs +1329 -1329
- package/clikt-clikt.mjs.map +1 -1
- package/colormath-root-colormath.mjs +433 -433
- package/kotlin-kotlin-stdlib.mjs +6 -6
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +10144 -10144
- package/kotlin-rgxgen.mjs +1760 -1760
- package/kotlinx-io-kotlinx-io-core.mjs +404 -404
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1810 -1810
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1488 -1488
- package/mordant-mordant.mjs +1198 -1198
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +1652 -1139
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-java.mjs +206 -191
- package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-kotlin.mjs +153 -138
- package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-python.mjs +182 -153
- package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-rust.mjs +439 -379
- package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-scala.mjs +175 -160
- package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-typescript.mjs +268 -224
- package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-wirespec.mjs +98 -77
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-ir.mjs +3704 -3619
- package/wirespec-src-compiler-ir.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +308 -227
- package/wirespec-src-compiler-lib.mjs.map +1 -1
- package/wirespec-src-converter-avro.mjs +503 -503
- package/wirespec-src-converter-openapi.mjs +581 -569
- package/wirespec-src-converter-openapi.mjs.map +1 -1
- package/wirespec-src-ide-lsp.mjs +1352 -1352
- package/wirespec-src-plugin-arguments.mjs +136 -136
- package/wirespec-src-plugin-cli.mjs +85 -85
- package/wirespec-src-plugin-npm.d.mts +15 -0
- package/wirespec-src-plugin-npm.mjs +26 -26
- package/wirespec-src-tools-generator.mjs +29 -24
- package/wirespec-src-tools-generator.mjs.map +1 -1
|
@@ -151,7 +151,7 @@ function SpecificFile(extension) {
|
|
|
151
151
|
}
|
|
152
152
|
function Companion() {
|
|
153
153
|
}
|
|
154
|
-
protoOf(Companion).
|
|
154
|
+
protoOf(Companion).c4w = function (compile, convert) {
|
|
155
155
|
return subcommands(new WirespecCli(), [new Compile(compile), new Convert(convert)]);
|
|
156
156
|
};
|
|
157
157
|
var Companion_instance_4;
|
|
@@ -163,11 +163,11 @@ function WirespecCli() {
|
|
|
163
163
|
}
|
|
164
164
|
function _get_stdin__b8xnlj($this) {
|
|
165
165
|
var tmp = KProperty1;
|
|
166
|
-
return $this.
|
|
166
|
+
return $this.z4w_1.h1c($this, getPropertyCallableRef('stdin', 1, tmp, Compile$_get_stdin_$ref_5ywd7d_0(), null));
|
|
167
167
|
}
|
|
168
168
|
function _get_languages__ojonze($this) {
|
|
169
169
|
var tmp = KProperty1;
|
|
170
|
-
return $this.
|
|
170
|
+
return $this.a4x_1.h1c($this, getPropertyCallableRef('languages', 1, tmp, Compile$_get_languages_$ref_nluohg_0(), null));
|
|
171
171
|
}
|
|
172
172
|
function Compile$_get_stdin_$ref_5ywd7d() {
|
|
173
173
|
return function (p0) {
|
|
@@ -210,24 +210,24 @@ function handleError$ref_1() {
|
|
|
210
210
|
}
|
|
211
211
|
function Compile(compiler) {
|
|
212
212
|
CommonOptions.call(this);
|
|
213
|
-
this.
|
|
213
|
+
this.y4w_1 = compiler;
|
|
214
214
|
var tmp = this;
|
|
215
215
|
var tmp_0 = optional(argument(this, VOID, 'stdin'));
|
|
216
216
|
var tmp_1 = KProperty1;
|
|
217
|
-
tmp.
|
|
217
|
+
tmp.z4w_1 = tmp_0.n1b(this, getPropertyCallableRef('stdin', 1, tmp_1, Compile$_get_stdin_$ref_5ywd7d(), null));
|
|
218
218
|
var tmp_2 = this;
|
|
219
|
-
var tmp_3 = multiple(choice(option(this, Options_Language_getInstance().
|
|
219
|
+
var tmp_3 = multiple(choice(option(this, Options_Language_getInstance().d4x_1.slice(), 'Language'), Companion_instance_1.x4b(), VOID, true), listOf(Language_Kotlin_getInstance()));
|
|
220
220
|
var tmp_4 = KProperty1;
|
|
221
|
-
tmp_2.
|
|
221
|
+
tmp_2.a4x_1 = tmp_3.r1c(this, getPropertyCallableRef('languages', 1, tmp_4, Compile$_get_languages_$ref_nluohg(), null));
|
|
222
222
|
}
|
|
223
|
-
protoOf(Compile).
|
|
224
|
-
var logger = new Logger(this.
|
|
223
|
+
protoOf(Compile).g13 = function () {
|
|
224
|
+
var logger = new Logger(this.a4y(this.z4x()));
|
|
225
225
|
// Inline function 'arrow.core.getOrElse' call
|
|
226
|
-
var this_0 = getFullPath(this.
|
|
226
|
+
var this_0 = getFullPath(this.b4y());
|
|
227
227
|
var tmp;
|
|
228
228
|
if (this_0 instanceof Left) {
|
|
229
229
|
var it = this_0.mm_1;
|
|
230
|
-
throw new CliktError(it.
|
|
230
|
+
throw new CliktError(it.b4d_1);
|
|
231
231
|
} else {
|
|
232
232
|
if (this_0 instanceof Right) {
|
|
233
233
|
tmp = this_0.om_1;
|
|
@@ -260,16 +260,16 @@ protoOf(Compile).w12 = function () {
|
|
|
260
260
|
throw new NoClasspathPossible();
|
|
261
261
|
} else {
|
|
262
262
|
if (inputPath instanceof DirectoryPath) {
|
|
263
|
-
var tmp_4 = wirespecSources(new Directory(inputPath.
|
|
263
|
+
var tmp_4 = wirespecSources(new Directory(inputPath.v4c_1), logger);
|
|
264
264
|
tmp_0 = or(tmp_4, handleError$ref()).cn_1;
|
|
265
265
|
} else {
|
|
266
266
|
if (inputPath instanceof FilePath) {
|
|
267
267
|
var tmp_5;
|
|
268
|
-
if (inputPath.
|
|
268
|
+
if (inputPath.a4d_1.c3_1 === 6) {
|
|
269
269
|
// Inline function 'kotlin.also' call
|
|
270
|
-
var this_1 = new NonEmptySet(nonEmptySetOf(new Source(inputPath.
|
|
270
|
+
var this_1 = new NonEmptySet(nonEmptySetOf(new Source(inputPath.z4c_1, read(inputPath)), []));
|
|
271
271
|
this_1.cn_1;
|
|
272
|
-
logger.
|
|
272
|
+
logger.ir('Found 1 wirespec file to process: ' + inputPath.toString());
|
|
273
273
|
tmp_5 = this_1.cn_1;
|
|
274
274
|
} else {
|
|
275
275
|
throw new WirespecFileError();
|
|
@@ -282,32 +282,32 @@ protoOf(Compile).w12 = function () {
|
|
|
282
282
|
}
|
|
283
283
|
}
|
|
284
284
|
var sources = tmp_0;
|
|
285
|
-
var emitters = toEmitters(_get_languages__ojonze(this), Companion_instance_0.
|
|
285
|
+
var emitters = toEmitters(_get_languages__ojonze(this), Companion_instance_0.is(this.c1y()), new EmitShared(this.p4a()));
|
|
286
286
|
var tmp_6;
|
|
287
287
|
if (inputPath == null) {
|
|
288
288
|
tmp_6 = null;
|
|
289
289
|
} else {
|
|
290
290
|
// Inline function 'kotlin.let' call
|
|
291
|
-
var tmp_7 = getOutPutPath(inputPath, this.
|
|
292
|
-
tmp_6 = new Directory(or(tmp_7, handleError$ref_0()).
|
|
291
|
+
var tmp_7 = getOutPutPath(inputPath, this.c4y());
|
|
292
|
+
tmp_6 = new Directory(or(tmp_7, handleError$ref_0()).v4c_1);
|
|
293
293
|
}
|
|
294
294
|
var outputDir = tmp_6;
|
|
295
|
-
var tmp_8 = this.
|
|
296
|
-
var tmp0 = new CompilerArguments(sources, emitters, tmp_8, handleError$ref_1(), Companion_instance_0.
|
|
295
|
+
var tmp_8 = this.d4y(outputDir);
|
|
296
|
+
var tmp0 = new CompilerArguments(sources, emitters, tmp_8, handleError$ref_1(), Companion_instance_0.is(this.c1y()), logger, this.p4a(), this.e4y());
|
|
297
297
|
// Inline function 'kotlin.let' call
|
|
298
|
-
this.
|
|
298
|
+
this.y4w_1(tmp0);
|
|
299
299
|
};
|
|
300
300
|
function _get_format__qlarck($this) {
|
|
301
301
|
var tmp = KProperty1;
|
|
302
|
-
return $this.
|
|
302
|
+
return $this.b4z_1.h1c($this, getPropertyCallableRef('format', 1, tmp, Convert$_get_format_$ref_ve190_0(), null));
|
|
303
303
|
}
|
|
304
304
|
function _get_stdin__b8xnlj_0($this) {
|
|
305
305
|
var tmp = KProperty1;
|
|
306
|
-
return $this.
|
|
306
|
+
return $this.c4z_1.h1c($this, getPropertyCallableRef('stdin', 1, tmp, Convert$_get_stdin_$ref_yiqct5_0(), null));
|
|
307
307
|
}
|
|
308
308
|
function _get_languages__ojonze_0($this) {
|
|
309
309
|
var tmp = KProperty1;
|
|
310
|
-
return $this.
|
|
310
|
+
return $this.d4z_1.h1c($this, getPropertyCallableRef('languages', 1, tmp, Convert$_get_languages_$ref_ykvilw_0(), null));
|
|
311
311
|
}
|
|
312
312
|
function Convert$_get_format_$ref_ve190() {
|
|
313
313
|
return function (p0) {
|
|
@@ -360,7 +360,7 @@ function handleError$ref_4() {
|
|
|
360
360
|
}
|
|
361
361
|
function Convert(converter) {
|
|
362
362
|
CommonOptions.call(this);
|
|
363
|
-
this.
|
|
363
|
+
this.a4z_1 = converter;
|
|
364
364
|
var tmp = this;
|
|
365
365
|
// Inline function 'com.github.ajalt.clikt.parameters.types.enum' call
|
|
366
366
|
var this_0 = argument(this, VOID, 'Input format');
|
|
@@ -380,19 +380,19 @@ function Convert(converter) {
|
|
|
380
380
|
}
|
|
381
381
|
var tmp_0 = choice_0(this_0, destination, true);
|
|
382
382
|
var tmp_1 = KProperty1;
|
|
383
|
-
tmp.
|
|
383
|
+
tmp.b4z_1 = tmp_0.n1b(this, getPropertyCallableRef('format', 1, tmp_1, Convert$_get_format_$ref_ve190(), null));
|
|
384
384
|
var tmp_2 = this;
|
|
385
385
|
var tmp_3 = optional(argument(this, VOID, 'stdin'));
|
|
386
386
|
var tmp_4 = KProperty1;
|
|
387
|
-
tmp_2.
|
|
387
|
+
tmp_2.c4z_1 = tmp_3.n1b(this, getPropertyCallableRef('stdin', 1, tmp_4, Convert$_get_stdin_$ref_yiqct5(), null));
|
|
388
388
|
var tmp_5 = this;
|
|
389
|
-
var tmp_6 = multiple(choice(option(this, Options_Language_getInstance().
|
|
389
|
+
var tmp_6 = multiple(choice(option(this, Options_Language_getInstance().d4x_1.slice(), 'Language'), Companion_instance_1.x4b(), VOID, true));
|
|
390
390
|
var tmp_7 = KProperty1;
|
|
391
|
-
tmp_5.
|
|
391
|
+
tmp_5.d4z_1 = tmp_6.r1c(this, getPropertyCallableRef('languages', 1, tmp_7, Convert$_get_languages_$ref_ykvilw(), null));
|
|
392
392
|
}
|
|
393
|
-
protoOf(Convert).
|
|
394
|
-
var logger = new Logger(this.
|
|
395
|
-
var tmp = getFullPath(this.
|
|
393
|
+
protoOf(Convert).g13 = function () {
|
|
394
|
+
var logger = new Logger(this.a4y(this.z4x()));
|
|
395
|
+
var tmp = getFullPath(this.b4y());
|
|
396
396
|
var inputPath = or(tmp, handleError$ref_2());
|
|
397
397
|
var tmp_0;
|
|
398
398
|
if (inputPath == null) {
|
|
@@ -421,14 +421,14 @@ protoOf(Convert).w12 = function () {
|
|
|
421
421
|
} else {
|
|
422
422
|
if (inputPath instanceof FilePath) {
|
|
423
423
|
var tmp_3;
|
|
424
|
-
if (inputPath.
|
|
425
|
-
tmp_3 = new Source(inputPath.
|
|
424
|
+
if (inputPath.a4d_1.c3_1 === 7) {
|
|
425
|
+
tmp_3 = new Source(inputPath.z4c_1, read(inputPath));
|
|
426
426
|
} else {
|
|
427
427
|
throw new JSONFileError();
|
|
428
428
|
}
|
|
429
429
|
// Inline function 'kotlin.also' call
|
|
430
430
|
var this_0 = tmp_3;
|
|
431
|
-
logger.
|
|
431
|
+
logger.ir('Found 1 file to process: ' + inputPath.toString());
|
|
432
432
|
tmp_0 = this_0;
|
|
433
433
|
} else {
|
|
434
434
|
noWhenBranchMatchedException();
|
|
@@ -437,81 +437,81 @@ protoOf(Convert).w12 = function () {
|
|
|
437
437
|
}
|
|
438
438
|
}
|
|
439
439
|
var source = tmp_0;
|
|
440
|
-
var emitters = toEmitters(_get_languages__ojonze_0(this), Companion_instance_0.
|
|
440
|
+
var emitters = toEmitters(_get_languages__ojonze_0(this), Companion_instance_0.is(this.c1y()), new EmitShared(this.p4a()));
|
|
441
441
|
var tmp_4;
|
|
442
442
|
if (inputPath == null) {
|
|
443
443
|
tmp_4 = null;
|
|
444
444
|
} else {
|
|
445
445
|
// Inline function 'kotlin.let' call
|
|
446
|
-
var tmp_5 = getOutPutPath(inputPath, this.
|
|
447
|
-
tmp_4 = new Directory(or(tmp_5, handleError$ref_3()).
|
|
446
|
+
var tmp_5 = getOutPutPath(inputPath, this.c4y());
|
|
447
|
+
tmp_4 = new Directory(or(tmp_5, handleError$ref_3()).v4c_1);
|
|
448
448
|
}
|
|
449
449
|
var directory = tmp_4;
|
|
450
450
|
var tmp_6 = _get_format__qlarck(this);
|
|
451
451
|
var tmp_7 = nonEmptySetOf(source, []);
|
|
452
|
-
var tmp_8 = this.
|
|
453
|
-
var tmp0 = new ConverterArguments(tmp_6, tmp_7, emitters, tmp_8, handleError$ref_4(), Companion_instance_0.
|
|
452
|
+
var tmp_8 = this.d4y(directory);
|
|
453
|
+
var tmp0 = new ConverterArguments(tmp_6, tmp_7, emitters, tmp_8, handleError$ref_4(), Companion_instance_0.is(this.c1y()), logger, this.p4a(), this.e4y());
|
|
454
454
|
// Inline function 'kotlin.let' call
|
|
455
|
-
this.
|
|
455
|
+
this.a4z_1(tmp0);
|
|
456
456
|
};
|
|
457
457
|
function CommonOptions$_get_input_$ref_6c1nvp() {
|
|
458
458
|
return function (p0) {
|
|
459
|
-
return p0.
|
|
459
|
+
return p0.b4y();
|
|
460
460
|
};
|
|
461
461
|
}
|
|
462
462
|
function CommonOptions$_get_input_$ref_6c1nvp_0() {
|
|
463
463
|
return function (p0) {
|
|
464
|
-
return p0.
|
|
464
|
+
return p0.b4y();
|
|
465
465
|
};
|
|
466
466
|
}
|
|
467
467
|
function CommonOptions$_get_output_$ref_eo6xdi() {
|
|
468
468
|
return function (p0) {
|
|
469
|
-
return p0.
|
|
469
|
+
return p0.c4y();
|
|
470
470
|
};
|
|
471
471
|
}
|
|
472
472
|
function CommonOptions$_get_output_$ref_eo6xdi_0() {
|
|
473
473
|
return function (p0) {
|
|
474
|
-
return p0.
|
|
474
|
+
return p0.c4y();
|
|
475
475
|
};
|
|
476
476
|
}
|
|
477
477
|
function CommonOptions$_get_packageName_$ref_k5vxsu() {
|
|
478
478
|
return function (p0) {
|
|
479
|
-
return p0.
|
|
479
|
+
return p0.c1y();
|
|
480
480
|
};
|
|
481
481
|
}
|
|
482
482
|
function CommonOptions$_get_packageName_$ref_k5vxsu_0() {
|
|
483
483
|
return function (p0) {
|
|
484
|
-
return p0.
|
|
484
|
+
return p0.c1y();
|
|
485
485
|
};
|
|
486
486
|
}
|
|
487
487
|
function CommonOptions$_get_logLevel_$ref_mp4bhx() {
|
|
488
488
|
return function (p0) {
|
|
489
|
-
return p0.
|
|
489
|
+
return p0.z4x();
|
|
490
490
|
};
|
|
491
491
|
}
|
|
492
492
|
function CommonOptions$_get_logLevel_$ref_mp4bhx_0() {
|
|
493
493
|
return function (p0) {
|
|
494
|
-
return p0.
|
|
494
|
+
return p0.z4x();
|
|
495
495
|
};
|
|
496
496
|
}
|
|
497
497
|
function CommonOptions$_get_shared_$ref_7r7o2u() {
|
|
498
498
|
return function (p0) {
|
|
499
|
-
return p0.
|
|
499
|
+
return p0.p4a();
|
|
500
500
|
};
|
|
501
501
|
}
|
|
502
502
|
function CommonOptions$_get_shared_$ref_7r7o2u_0() {
|
|
503
503
|
return function (p0) {
|
|
504
|
-
return p0.
|
|
504
|
+
return p0.p4a();
|
|
505
505
|
};
|
|
506
506
|
}
|
|
507
507
|
function CommonOptions$_get_strict_$ref_vrzh6q() {
|
|
508
508
|
return function (p0) {
|
|
509
|
-
return p0.
|
|
509
|
+
return p0.e4y();
|
|
510
510
|
};
|
|
511
511
|
}
|
|
512
512
|
function CommonOptions$_get_strict_$ref_vrzh6q_0() {
|
|
513
513
|
return function (p0) {
|
|
514
|
-
return p0.
|
|
514
|
+
return p0.e4y();
|
|
515
515
|
};
|
|
516
516
|
}
|
|
517
517
|
function CommonOptions$writer$lambda($directory, this$0) {
|
|
@@ -526,11 +526,11 @@ function CommonOptions$writer$lambda($directory, this$0) {
|
|
|
526
526
|
tmp = null;
|
|
527
527
|
} else {
|
|
528
528
|
// Inline function 'kotlin.let' call
|
|
529
|
-
write(Companion_instance_2.
|
|
529
|
+
write(Companion_instance_2.x4c(_DirectoryPath___get_value__impl__hdy2e3(tmp0_safe_receiver.w4c_1) + '/' + element.hp_1), element.ip_1);
|
|
530
530
|
tmp = Unit_instance;
|
|
531
531
|
}
|
|
532
532
|
if (tmp == null) {
|
|
533
|
-
this$0.
|
|
533
|
+
this$0.v11(element.ip_1);
|
|
534
534
|
}
|
|
535
535
|
}
|
|
536
536
|
return Unit_instance;
|
|
@@ -539,55 +539,55 @@ function CommonOptions$writer$lambda($directory, this$0) {
|
|
|
539
539
|
function CommonOptions() {
|
|
540
540
|
CliktCommand.call(this);
|
|
541
541
|
var tmp = this;
|
|
542
|
-
var tmp_0 = option(this, Options_Input_getInstance().
|
|
542
|
+
var tmp_0 = option(this, Options_Input_getInstance().d4x_1.slice(), 'Input');
|
|
543
543
|
var tmp_1 = KProperty1;
|
|
544
|
-
tmp.
|
|
544
|
+
tmp.t4x_1 = tmp_0.r1c(this, getPropertyCallableRef('input', 1, tmp_1, CommonOptions$_get_input_$ref_6c1nvp(), null));
|
|
545
545
|
var tmp_2 = this;
|
|
546
|
-
var tmp_3 = option(this, Options_Output_getInstance().
|
|
546
|
+
var tmp_3 = option(this, Options_Output_getInstance().d4x_1.slice(), 'Output');
|
|
547
547
|
var tmp_4 = KProperty1;
|
|
548
|
-
tmp_2.
|
|
548
|
+
tmp_2.u4x_1 = tmp_3.r1c(this, getPropertyCallableRef('output', 1, tmp_4, CommonOptions$_get_output_$ref_eo6xdi(), null));
|
|
549
549
|
var tmp_5 = this;
|
|
550
|
-
var tmp_6 = default_0(option(this, Options_PackageName_getInstance().
|
|
550
|
+
var tmp_6 = default_0(option(this, Options_PackageName_getInstance().d4x_1.slice(), 'Package name'), 'community.flock.wirespec.generated');
|
|
551
551
|
var tmp_7 = KProperty1;
|
|
552
|
-
tmp_5.
|
|
552
|
+
tmp_5.v4x_1 = tmp_6.r1c(this, getPropertyCallableRef('packageName', 1, tmp_7, CommonOptions$_get_packageName_$ref_k5vxsu(), null));
|
|
553
553
|
var tmp_8 = this;
|
|
554
|
-
var tmp_9 = default_0(option(this, Options_LogLevel_getInstance().
|
|
554
|
+
var tmp_9 = default_0(option(this, Options_LogLevel_getInstance().d4x_1.slice(), 'Log level: ' + Companion_instance.toString()), Level_INFO_getInstance().toString());
|
|
555
555
|
var tmp_10 = KProperty1;
|
|
556
|
-
tmp_8.
|
|
556
|
+
tmp_8.w4x_1 = tmp_9.r1c(this, getPropertyCallableRef('logLevel', 1, tmp_10, CommonOptions$_get_logLevel_$ref_mp4bhx(), null));
|
|
557
557
|
var tmp_11 = this;
|
|
558
|
-
var tmp_12 = flag(option(this, Options_Shared_getInstance().
|
|
558
|
+
var tmp_12 = flag(option(this, Options_Shared_getInstance().d4x_1.slice(), 'Generate shared wirespec code'), [], false);
|
|
559
559
|
var tmp_13 = KProperty1;
|
|
560
|
-
tmp_11.
|
|
560
|
+
tmp_11.x4x_1 = tmp_12.r1c(this, getPropertyCallableRef('shared', 1, tmp_13, CommonOptions$_get_shared_$ref_7r7o2u(), null));
|
|
561
561
|
var tmp_14 = this;
|
|
562
|
-
var tmp_15 = flag(option(this, Options_Strict_getInstance().
|
|
562
|
+
var tmp_15 = flag(option(this, Options_Strict_getInstance().d4x_1.slice(), 'Strict mode'), []);
|
|
563
563
|
var tmp_16 = KProperty1;
|
|
564
|
-
tmp_14.
|
|
564
|
+
tmp_14.y4x_1 = tmp_15.r1c(this, getPropertyCallableRef('strict', 1, tmp_16, CommonOptions$_get_strict_$ref_vrzh6q(), null));
|
|
565
565
|
}
|
|
566
|
-
protoOf(CommonOptions).
|
|
566
|
+
protoOf(CommonOptions).b4y = function () {
|
|
567
567
|
var tmp = KProperty1;
|
|
568
|
-
return this.
|
|
568
|
+
return this.t4x_1.h1c(this, getPropertyCallableRef('input', 1, tmp, CommonOptions$_get_input_$ref_6c1nvp_0(), null));
|
|
569
569
|
};
|
|
570
|
-
protoOf(CommonOptions).
|
|
570
|
+
protoOf(CommonOptions).c4y = function () {
|
|
571
571
|
var tmp = KProperty1;
|
|
572
|
-
return this.
|
|
572
|
+
return this.u4x_1.h1c(this, getPropertyCallableRef('output', 1, tmp, CommonOptions$_get_output_$ref_eo6xdi_0(), null));
|
|
573
573
|
};
|
|
574
|
-
protoOf(CommonOptions).
|
|
574
|
+
protoOf(CommonOptions).c1y = function () {
|
|
575
575
|
var tmp = KProperty1;
|
|
576
|
-
return this.
|
|
576
|
+
return this.v4x_1.h1c(this, getPropertyCallableRef('packageName', 1, tmp, CommonOptions$_get_packageName_$ref_k5vxsu_0(), null));
|
|
577
577
|
};
|
|
578
|
-
protoOf(CommonOptions).
|
|
578
|
+
protoOf(CommonOptions).z4x = function () {
|
|
579
579
|
var tmp = KProperty1;
|
|
580
|
-
return this.
|
|
580
|
+
return this.w4x_1.h1c(this, getPropertyCallableRef('logLevel', 1, tmp, CommonOptions$_get_logLevel_$ref_mp4bhx_0(), null));
|
|
581
581
|
};
|
|
582
|
-
protoOf(CommonOptions).
|
|
582
|
+
protoOf(CommonOptions).p4a = function () {
|
|
583
583
|
var tmp = KProperty1;
|
|
584
|
-
return this.
|
|
584
|
+
return this.x4x_1.h1c(this, getPropertyCallableRef('shared', 1, tmp, CommonOptions$_get_shared_$ref_7r7o2u_0(), null));
|
|
585
585
|
};
|
|
586
|
-
protoOf(CommonOptions).
|
|
586
|
+
protoOf(CommonOptions).e4y = function () {
|
|
587
587
|
var tmp = KProperty1;
|
|
588
|
-
return this.
|
|
588
|
+
return this.y4x_1.h1c(this, getPropertyCallableRef('strict', 1, tmp, CommonOptions$_get_strict_$ref_vrzh6q_0(), null));
|
|
589
589
|
};
|
|
590
|
-
protoOf(CommonOptions).
|
|
590
|
+
protoOf(CommonOptions).a4y = function (_this__u8e3s4) {
|
|
591
591
|
// Inline function 'kotlin.text.trim' call
|
|
592
592
|
// Inline function 'kotlin.text.uppercase' call
|
|
593
593
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -610,7 +610,7 @@ protoOf(CommonOptions).q4x = function (_this__u8e3s4) {
|
|
|
610
610
|
}
|
|
611
611
|
return tmp;
|
|
612
612
|
};
|
|
613
|
-
protoOf(CommonOptions).
|
|
613
|
+
protoOf(CommonOptions).d4y = function (directory) {
|
|
614
614
|
return CommonOptions$writer$lambda(directory, this);
|
|
615
615
|
};
|
|
616
616
|
var Options_Input_instance;
|
|
@@ -635,7 +635,7 @@ function Options_initEntries() {
|
|
|
635
635
|
}
|
|
636
636
|
function Options(name, ordinal, flags) {
|
|
637
637
|
Enum.call(this, name, ordinal);
|
|
638
|
-
this.
|
|
638
|
+
this.d4x_1 = flags;
|
|
639
639
|
}
|
|
640
640
|
function handleError(string) {
|
|
641
641
|
throw new CliktError(string);
|
|
@@ -713,7 +713,7 @@ function main_0(args) {
|
|
|
713
713
|
// Inline function 'kotlin.let' call
|
|
714
714
|
var tmp = Companion_instance_4;
|
|
715
715
|
var tmp_0 = compile$ref();
|
|
716
|
-
main(tmp.
|
|
716
|
+
main(tmp.c4w(tmp_0, convert$ref()), destination);
|
|
717
717
|
}
|
|
718
718
|
function compile$ref() {
|
|
719
719
|
var l = function (p0) {
|
|
@@ -750,7 +750,7 @@ function parser(source) {
|
|
|
750
750
|
}
|
|
751
751
|
}
|
|
752
752
|
// Inline function 'arrow.core.NonEmptyList.flatMap' call
|
|
753
|
-
var this_1 = tmp.
|
|
753
|
+
var this_1 = tmp.hr_1;
|
|
754
754
|
// Inline function 'kotlin.collections.flatMap' call
|
|
755
755
|
var tmp0 = _NonEmptyList___get_all__impl__pmf509(this_1);
|
|
756
756
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -758,7 +758,7 @@ function parser(source) {
|
|
|
758
758
|
var _iterator__ex2g4s = tmp0.t();
|
|
759
759
|
while (_iterator__ex2g4s.u()) {
|
|
760
760
|
var element = _iterator__ex2g4s.v();
|
|
761
|
-
var list = new NonEmptyList(element.
|
|
761
|
+
var list = new NonEmptyList(element.gr_1);
|
|
762
762
|
addAll(destination, list);
|
|
763
763
|
}
|
|
764
764
|
var tmp$ret$4 = _NonEmptyList___init__impl__fxd0xp(destination);
|
|
@@ -114,6 +114,21 @@ export declare namespace WsChannel {
|
|
|
114
114
|
const constructor: abstract new () => WsChannel;
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
|
+
export declare class WsRpc implements WsDefinition {
|
|
118
|
+
constructor(identifier: string, comment: Nullable<string>, shape: WsShape, result: WsReference, error: Nullable<WsReference>);
|
|
119
|
+
get identifier(): string;
|
|
120
|
+
get comment(): Nullable<string>;
|
|
121
|
+
get shape(): WsShape;
|
|
122
|
+
get result(): WsReference;
|
|
123
|
+
get error(): Nullable<WsReference>;
|
|
124
|
+
readonly __doNotUseOrImplementIt: WsDefinition["__doNotUseOrImplementIt"];
|
|
125
|
+
}
|
|
126
|
+
export declare namespace WsRpc {
|
|
127
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
128
|
+
namespace $metadata$ {
|
|
129
|
+
const constructor: abstract new () => WsRpc;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
117
132
|
export declare class WsRefined implements WsDefinition {
|
|
118
133
|
constructor(identifier: string, comment: Nullable<string>, reference: WsReference);
|
|
119
134
|
get identifier(): string;
|
|
@@ -124,28 +124,28 @@ function Shared_initEntries() {
|
|
|
124
124
|
if (Shared_entriesInitialized)
|
|
125
125
|
return Unit_instance;
|
|
126
126
|
Shared_entriesInitialized = true;
|
|
127
|
-
var tmp0 = ensureNotNull((new KotlinIrEmitter(VOID, new EmitShared(true))).
|
|
127
|
+
var tmp0 = ensureNotNull((new KotlinIrEmitter(VOID, new EmitShared(true))).r1w());
|
|
128
128
|
// Inline function 'kotlin.let' call
|
|
129
|
-
var tmp$ret$1 = KotlinGenerator_getInstance().
|
|
129
|
+
var tmp$ret$1 = KotlinGenerator_getInstance().o1w(tmp0);
|
|
130
130
|
Shared_KOTLIN_instance = new Shared('KOTLIN', 0, tmp$ret$1);
|
|
131
|
-
var tmp0_0 = ensureNotNull((new JavaIrEmitter(VOID, new EmitShared(true))).
|
|
131
|
+
var tmp0_0 = ensureNotNull((new JavaIrEmitter(VOID, new EmitShared(true))).r1w());
|
|
132
132
|
// Inline function 'kotlin.let' call
|
|
133
|
-
var tmp$ret$3 = JavaGenerator_getInstance().
|
|
133
|
+
var tmp$ret$3 = JavaGenerator_getInstance().o1w(tmp0_0);
|
|
134
134
|
Shared_JAVA_instance = new Shared('JAVA', 1, tmp$ret$3);
|
|
135
|
-
var tmp0_1 = ensureNotNull((new TypeScriptIrEmitter()).
|
|
135
|
+
var tmp0_1 = ensureNotNull((new TypeScriptIrEmitter()).r1w());
|
|
136
136
|
// Inline function 'kotlin.let' call
|
|
137
|
-
var tmp$ret$5 = TypeScriptGenerator_getInstance().
|
|
137
|
+
var tmp$ret$5 = TypeScriptGenerator_getInstance().o1w(tmp0_1);
|
|
138
138
|
Shared_TYPESCRIPT_instance = new Shared('TYPESCRIPT', 2, tmp$ret$5);
|
|
139
|
-
var tmp0_2 = ensureNotNull((new PythonIrEmitter(VOID, new EmitShared(true))).
|
|
139
|
+
var tmp0_2 = ensureNotNull((new PythonIrEmitter(VOID, new EmitShared(true))).r1w());
|
|
140
140
|
// Inline function 'kotlin.let' call
|
|
141
|
-
var tmp$ret$7 = PythonGenerator_getInstance().
|
|
141
|
+
var tmp$ret$7 = PythonGenerator_getInstance().o1w(tmp0_2);
|
|
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).p2x = 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.c3_1) {
|
|
266
266
|
case 0:
|
|
267
|
-
tmp = produce_1(OpenAPIV2Parser_instance.
|
|
267
|
+
tmp = produce_1(OpenAPIV2Parser_instance.j46(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.j46(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.j46(new ModuleContent(new FileUri(''), source), strict));
|
|
274
274
|
break;
|
|
275
275
|
default:
|
|
276
276
|
noWhenBranchMatchedException();
|
|
@@ -308,19 +308,19 @@ function emit(wsAst, emitter, packageName, emitShared) {
|
|
|
308
308
|
tmp = (new TypeScriptIrEmitter()).no(ast, get_noLogger());
|
|
309
309
|
break;
|
|
310
310
|
case 2:
|
|
311
|
-
tmp = (new JavaIrEmitter(Companion_instance.
|
|
311
|
+
tmp = (new JavaIrEmitter(Companion_instance.is(packageName), new EmitShared(emitShared))).no(ast, get_noLogger());
|
|
312
312
|
break;
|
|
313
313
|
case 3:
|
|
314
|
-
tmp = (new KotlinIrEmitter(Companion_instance.
|
|
314
|
+
tmp = (new KotlinIrEmitter(Companion_instance.is(packageName), new EmitShared(emitShared))).no(ast, get_noLogger());
|
|
315
315
|
break;
|
|
316
316
|
case 4:
|
|
317
|
-
tmp = (new PythonIrEmitter(Companion_instance.
|
|
317
|
+
tmp = (new PythonIrEmitter(Companion_instance.is(packageName), new EmitShared(emitShared))).no(ast, get_noLogger());
|
|
318
318
|
break;
|
|
319
319
|
case 5:
|
|
320
320
|
var tmp_0 = OpenAPIV2Emitter_getInstance();
|
|
321
321
|
// Inline function 'arrow.core.NonEmptyList.flatMap' call
|
|
322
322
|
|
|
323
|
-
var this_0 = ast.
|
|
323
|
+
var this_0 = ast.hr_1;
|
|
324
324
|
// Inline function 'kotlin.collections.flatMap' call
|
|
325
325
|
|
|
326
326
|
var tmp0 = _NonEmptyList___get_all__impl__pmf509(this_0);
|
|
@@ -330,12 +330,12 @@ function emit(wsAst, emitter, packageName, emitShared) {
|
|
|
330
330
|
var _iterator__ex2g4s = tmp0.t();
|
|
331
331
|
while (_iterator__ex2g4s.u()) {
|
|
332
332
|
var element = _iterator__ex2g4s.v();
|
|
333
|
-
var list = new NonEmptyList(element.
|
|
333
|
+
var list = new NonEmptyList(element.gr_1);
|
|
334
334
|
addAll(destination, list);
|
|
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.h46(tmp$ret$3, get_noLogger());
|
|
339
339
|
// Inline function 'kotlin.let' call
|
|
340
340
|
|
|
341
341
|
// Inline function 'kotlin.let' call
|
|
@@ -350,7 +350,7 @@ function emit(wsAst, emitter, packageName, emitShared) {
|
|
|
350
350
|
var tmp_1 = OpenAPIV3Emitter_getInstance();
|
|
351
351
|
// Inline function 'arrow.core.NonEmptyList.flatMap' call
|
|
352
352
|
|
|
353
|
-
var this_1 = ast.
|
|
353
|
+
var this_1 = ast.hr_1;
|
|
354
354
|
// Inline function 'kotlin.collections.flatMap' call
|
|
355
355
|
|
|
356
356
|
var tmp0_1 = _NonEmptyList___get_all__impl__pmf509(this_1);
|
|
@@ -360,12 +360,12 @@ function emit(wsAst, emitter, packageName, emitShared) {
|
|
|
360
360
|
var _iterator__ex2g4s_0 = tmp0_1.t();
|
|
361
361
|
while (_iterator__ex2g4s_0.u()) {
|
|
362
362
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
363
|
-
var list_0 = new NonEmptyList(element_0.
|
|
363
|
+
var list_0 = new NonEmptyList(element_0.gr_1);
|
|
364
364
|
addAll(destination_0, list_0);
|
|
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.l46(tmp$ret$12, null, get_noLogger());
|
|
369
369
|
// Inline function 'kotlin.let' call
|
|
370
370
|
|
|
371
371
|
// Inline function 'kotlin.let' call
|
|
@@ -379,7 +379,7 @@ function emit(wsAst, emitter, packageName, emitShared) {
|
|
|
379
379
|
case 7:
|
|
380
380
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
381
381
|
|
|
382
|
-
var this_2 = ast.
|
|
382
|
+
var this_2 = ast.hr_1;
|
|
383
383
|
// Inline function 'kotlin.collections.map' call
|
|
384
384
|
|
|
385
385
|
var this_3 = _NonEmptyList___get_all__impl__pmf509(this_2);
|
|
@@ -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().r47(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.w23();
|
|
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.b2l(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().b2l($serializer, value);
|
|
468
468
|
};
|
|
469
469
|
}
|
|
470
470
|
function Shared_KOTLIN_getInstance() {
|