@flock/wirespec 0.17.2 → 0.17.4
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.mjs +1174 -1174
- package/colormath-root-colormath.mjs +425 -425
- package/kotlin-kotlin-stdlib.mjs +44 -43
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +9202 -9761
- package/kotlin-openapi-bindings.mjs.map +1 -1
- package/kotlin-rgxgen.mjs +1767 -1767
- package/kotlinx-io-kotlinx-io-core.mjs +380 -380
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +4 -0
- package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +299 -299
- package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
- package/markdown.mjs +1876 -1876
- package/mordant-mordant.mjs +1643 -1643
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +1059 -1059
- package/wirespec-src-compiler-emitters-java.mjs +260 -260
- package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-kotlin.mjs +186 -186
- package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-python.mjs +183 -183
- package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-typescript.mjs +196 -196
- package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-wirespec.mjs +76 -76
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +377 -327
- package/wirespec-src-compiler-lib.mjs.map +1 -1
- package/wirespec-src-converter-avro.mjs +316 -316
- package/wirespec-src-converter-openapi.mjs +2565 -2561
- package/wirespec-src-converter-openapi.mjs.map +1 -1
- package/wirespec-src-plugin-arguments.mjs +139 -139
- package/wirespec-src-plugin-cli.mjs +77 -77
- package/wirespec-src-plugin-npm.d.ts +13 -5
- package/wirespec-src-plugin-npm.mjs +41 -41
- package/wirespec-src-plugin-npm.mjs.map +1 -1
- package/wirespec-src-tools-generator.mjs +25 -25
|
@@ -146,7 +146,7 @@ function SpecificFile(extension) {
|
|
|
146
146
|
}
|
|
147
147
|
function Companion() {
|
|
148
148
|
}
|
|
149
|
-
protoOf(Companion).
|
|
149
|
+
protoOf(Companion).b4a = function (compile, convert) {
|
|
150
150
|
return subcommands(new WirespecCli(), [new Compile(compile), new Convert(convert)]);
|
|
151
151
|
};
|
|
152
152
|
var Companion_instance_4;
|
|
@@ -157,10 +157,10 @@ function WirespecCli() {
|
|
|
157
157
|
NoOpCliktCommand.call(this, VOID, VOID, 'wirespec');
|
|
158
158
|
}
|
|
159
159
|
function _get_stdin__b8xnlj($this) {
|
|
160
|
-
return $this.
|
|
160
|
+
return $this.a4b_1.j47($this, stdin$factory_0());
|
|
161
161
|
}
|
|
162
162
|
function _get_languages__ojonze($this) {
|
|
163
|
-
return $this.
|
|
163
|
+
return $this.b4b_1.j47($this, languages$factory_0());
|
|
164
164
|
}
|
|
165
165
|
function run$handleError(p0) {
|
|
166
166
|
handleError(p0);
|
|
@@ -187,15 +187,15 @@ function Compile$run$handleError$ref() {
|
|
|
187
187
|
}
|
|
188
188
|
function Compile(compiler) {
|
|
189
189
|
CommonOptions.call(this);
|
|
190
|
-
this.
|
|
191
|
-
this.
|
|
192
|
-
this.
|
|
190
|
+
this.z4a_1 = compiler;
|
|
191
|
+
this.a4b_1 = optional(argument(this, VOID, 'stdin')).p46(this, stdin$factory());
|
|
192
|
+
this.b4b_1 = multiple(choice(option(this, Options_Language_getInstance().e4b_1.slice(), 'Language'), Companion_instance_1.g2i(), VOID, true), listOf(Language_Kotlin_getInstance())).t47(this, languages$factory());
|
|
193
193
|
}
|
|
194
|
-
protoOf(Compile).
|
|
194
|
+
protoOf(Compile).x3x = function () {
|
|
195
195
|
// Inline function 'arrow.core.getOrElse' call
|
|
196
196
|
// Inline function 'kotlin.contracts.contract' call
|
|
197
197
|
// Inline function 'arrow.core.Either.fold' call
|
|
198
|
-
var this_0 = getFullPath(this.
|
|
198
|
+
var this_0 = getFullPath(this.c4c());
|
|
199
199
|
// Inline function 'kotlin.contracts.contract' call
|
|
200
200
|
var tmp;
|
|
201
201
|
if (this_0 instanceof Right) {
|
|
@@ -205,7 +205,7 @@ protoOf(Compile).g3z = function () {
|
|
|
205
205
|
} else {
|
|
206
206
|
if (this_0 instanceof Left) {
|
|
207
207
|
var it = this_0.yj_1;
|
|
208
|
-
throw new CliktError(it.
|
|
208
|
+
throw new CliktError(it.l2j_1);
|
|
209
209
|
} else {
|
|
210
210
|
noWhenBranchMatchedException();
|
|
211
211
|
}
|
|
@@ -237,13 +237,13 @@ protoOf(Compile).g3z = function () {
|
|
|
237
237
|
throw new NoClasspathPossible();
|
|
238
238
|
} else {
|
|
239
239
|
if (inputPath instanceof DirectoryPath) {
|
|
240
|
-
var tmp_4 = wirespecSources(new Directory(inputPath.
|
|
240
|
+
var tmp_4 = wirespecSources(new Directory(inputPath.f2j_1));
|
|
241
241
|
tmp_0 = or(tmp_4, handleError$ref()).xk_1;
|
|
242
242
|
} else {
|
|
243
243
|
if (inputPath instanceof FilePath) {
|
|
244
244
|
var tmp_5;
|
|
245
|
-
if (inputPath.
|
|
246
|
-
tmp_5 = nonEmptySetOf(new Source(inputPath.
|
|
245
|
+
if (inputPath.k2j_1.r2_1 === 4) {
|
|
246
|
+
tmp_5 = nonEmptySetOf(new Source(inputPath.j2j_1, read(inputPath)), []);
|
|
247
247
|
} else {
|
|
248
248
|
throw new WirespecFileError();
|
|
249
249
|
}
|
|
@@ -255,7 +255,7 @@ protoOf(Compile).g3z = function () {
|
|
|
255
255
|
}
|
|
256
256
|
}
|
|
257
257
|
var sources = tmp_0;
|
|
258
|
-
var emitters = toEmitters(_get_languages__ojonze(this), Companion_instance_0.
|
|
258
|
+
var emitters = toEmitters(_get_languages__ojonze(this), Companion_instance_0.w25(this.q29()), new EmitShared(this.a2a()));
|
|
259
259
|
var tmp_6;
|
|
260
260
|
if (inputPath == null) {
|
|
261
261
|
tmp_6 = null;
|
|
@@ -263,24 +263,24 @@ protoOf(Compile).g3z = function () {
|
|
|
263
263
|
// Inline function 'kotlin.let' call
|
|
264
264
|
// Inline function 'kotlin.contracts.contract' call
|
|
265
265
|
// Inline function 'community.flock.wirespec.plugin.cli.Compile.run.<anonymous>' call
|
|
266
|
-
var tmp_7 = getOutPutPath(inputPath, this.
|
|
267
|
-
tmp_6 = new Directory(or(tmp_7, handleError$ref_0()).
|
|
266
|
+
var tmp_7 = getOutPutPath(inputPath, this.d4c());
|
|
267
|
+
tmp_6 = new Directory(or(tmp_7, handleError$ref_0()).f2j_1);
|
|
268
268
|
}
|
|
269
269
|
var outputDir = tmp_6;
|
|
270
270
|
// Inline function 'kotlin.let' call
|
|
271
|
-
var tmp_8 = this.
|
|
272
|
-
var this_1 = new CompilerArguments(sources, emitters, tmp_8, Compile$run$handleError$ref(), Companion_instance_0.
|
|
271
|
+
var tmp_8 = this.e4c(outputDir);
|
|
272
|
+
var this_1 = new CompilerArguments(sources, emitters, tmp_8, Compile$run$handleError$ref(), Companion_instance_0.w25(this.q29()), new Logger(this.g4c(this.f4c())), this.a2a(), this.h4c());
|
|
273
273
|
// Inline function 'kotlin.contracts.contract' call
|
|
274
|
-
this.
|
|
274
|
+
this.z4a_1(this_1);
|
|
275
275
|
};
|
|
276
276
|
function _get_format__qlarck($this) {
|
|
277
|
-
return $this.
|
|
277
|
+
return $this.g4d_1.j47($this, format$factory_0());
|
|
278
278
|
}
|
|
279
279
|
function _get_stdin__b8xnlj_0($this) {
|
|
280
|
-
return $this.
|
|
280
|
+
return $this.h4d_1.j47($this, stdin$factory_2());
|
|
281
281
|
}
|
|
282
282
|
function _get_languages__ojonze_0($this) {
|
|
283
|
-
return $this.
|
|
283
|
+
return $this.i4d_1.j47($this, languages$factory_2());
|
|
284
284
|
}
|
|
285
285
|
function run$handleError_0(p0) {
|
|
286
286
|
handleError(p0);
|
|
@@ -307,7 +307,7 @@ function Convert$run$handleError$ref() {
|
|
|
307
307
|
}
|
|
308
308
|
function Convert(converter) {
|
|
309
309
|
CommonOptions.call(this);
|
|
310
|
-
this.
|
|
310
|
+
this.f4d_1 = converter;
|
|
311
311
|
var tmp = this;
|
|
312
312
|
// Inline function 'com.github.ajalt.clikt.parameters.types.enum' call
|
|
313
313
|
var this_0 = argument(this, VOID, 'Input format');
|
|
@@ -327,12 +327,12 @@ function Convert(converter) {
|
|
|
327
327
|
var tmp$ret$2 = element.q2_1;
|
|
328
328
|
destination.n2(tmp$ret$2, element);
|
|
329
329
|
}
|
|
330
|
-
tmp.
|
|
331
|
-
this.
|
|
332
|
-
this.
|
|
330
|
+
tmp.g4d_1 = choice_0(this_0, destination, true).p46(this, format$factory());
|
|
331
|
+
this.h4d_1 = optional(argument(this, VOID, 'stdin')).p46(this, stdin$factory_1());
|
|
332
|
+
this.i4d_1 = multiple(choice(option(this, Options_Language_getInstance().e4b_1.slice(), 'Language'), Companion_instance_1.g2i(), VOID, true)).t47(this, languages$factory_1());
|
|
333
333
|
}
|
|
334
|
-
protoOf(Convert).
|
|
335
|
-
var tmp = getFullPath(this.
|
|
334
|
+
protoOf(Convert).x3x = function () {
|
|
335
|
+
var tmp = getFullPath(this.c4c());
|
|
336
336
|
var inputPath = or(tmp, handleError$ref_1());
|
|
337
337
|
var tmp_0;
|
|
338
338
|
if (inputPath == null) {
|
|
@@ -363,8 +363,8 @@ protoOf(Convert).g3z = function () {
|
|
|
363
363
|
} else {
|
|
364
364
|
if (inputPath instanceof FilePath) {
|
|
365
365
|
var tmp_3;
|
|
366
|
-
if (inputPath.
|
|
367
|
-
tmp_3 = new Source(inputPath.
|
|
366
|
+
if (inputPath.k2j_1.r2_1 === 5) {
|
|
367
|
+
tmp_3 = new Source(inputPath.j2j_1, read(inputPath));
|
|
368
368
|
} else {
|
|
369
369
|
throw new JSONFileError();
|
|
370
370
|
}
|
|
@@ -376,7 +376,7 @@ protoOf(Convert).g3z = function () {
|
|
|
376
376
|
}
|
|
377
377
|
}
|
|
378
378
|
var source = tmp_0;
|
|
379
|
-
var emitters = toEmitters(_get_languages__ojonze_0(this), Companion_instance_0.
|
|
379
|
+
var emitters = toEmitters(_get_languages__ojonze_0(this), Companion_instance_0.w25(this.q29()), new EmitShared(this.a2a()));
|
|
380
380
|
var tmp_4;
|
|
381
381
|
if (inputPath == null) {
|
|
382
382
|
tmp_4 = null;
|
|
@@ -384,17 +384,17 @@ protoOf(Convert).g3z = function () {
|
|
|
384
384
|
// Inline function 'kotlin.let' call
|
|
385
385
|
// Inline function 'kotlin.contracts.contract' call
|
|
386
386
|
// Inline function 'community.flock.wirespec.plugin.cli.Convert.run.<anonymous>' call
|
|
387
|
-
var tmp_5 = getOutPutPath(inputPath, this.
|
|
388
|
-
tmp_4 = new Directory(or(tmp_5, handleError$ref_2()).
|
|
387
|
+
var tmp_5 = getOutPutPath(inputPath, this.d4c());
|
|
388
|
+
tmp_4 = new Directory(or(tmp_5, handleError$ref_2()).f2j_1);
|
|
389
389
|
}
|
|
390
390
|
var directory = tmp_4;
|
|
391
391
|
// Inline function 'kotlin.let' call
|
|
392
392
|
var tmp_6 = _get_format__qlarck(this);
|
|
393
393
|
var tmp_7 = nonEmptySetOf(source, []);
|
|
394
|
-
var tmp_8 = this.
|
|
395
|
-
var this_0 = new ConverterArguments(tmp_6, tmp_7, emitters, tmp_8, Convert$run$handleError$ref(), Companion_instance_0.
|
|
394
|
+
var tmp_8 = this.e4c(directory);
|
|
395
|
+
var this_0 = new ConverterArguments(tmp_6, tmp_7, emitters, tmp_8, Convert$run$handleError$ref(), Companion_instance_0.w25(this.q29()), new Logger(this.g4c(this.f4c())), this.a2a(), this.h4c());
|
|
396
396
|
// Inline function 'kotlin.contracts.contract' call
|
|
397
|
-
this.
|
|
397
|
+
this.f4d_1(this_0);
|
|
398
398
|
};
|
|
399
399
|
function CommonOptions$writer$lambda($directory, this$0) {
|
|
400
400
|
return function (emittedList) {
|
|
@@ -409,11 +409,11 @@ function CommonOptions$writer$lambda($directory, this$0) {
|
|
|
409
409
|
} else {
|
|
410
410
|
// Inline function 'kotlin.let' call
|
|
411
411
|
// Inline function 'kotlin.contracts.contract' call
|
|
412
|
-
write(Companion_instance_2.
|
|
412
|
+
write(Companion_instance_2.h2j(_DirectoryPath___get_value__impl__hdy2e3(tmp0_safe_receiver.g2j_1) + '/' + element.u22_1), element.v22_1);
|
|
413
413
|
tmp = Unit_instance;
|
|
414
414
|
}
|
|
415
415
|
if (tmp == null) {
|
|
416
|
-
this$0.
|
|
416
|
+
this$0.r3x(element.v22_1);
|
|
417
417
|
}
|
|
418
418
|
}
|
|
419
419
|
return Unit_instance;
|
|
@@ -421,32 +421,32 @@ function CommonOptions$writer$lambda($directory, this$0) {
|
|
|
421
421
|
}
|
|
422
422
|
function CommonOptions() {
|
|
423
423
|
CliktCommand.call(this);
|
|
424
|
-
this.
|
|
425
|
-
this.
|
|
426
|
-
this.
|
|
427
|
-
this.
|
|
428
|
-
this.
|
|
429
|
-
this.
|
|
430
|
-
}
|
|
431
|
-
protoOf(CommonOptions).
|
|
432
|
-
return this.
|
|
424
|
+
this.w4b_1 = option(this, Options_Input_getInstance().e4b_1.slice(), 'Input').t47(this, input$factory());
|
|
425
|
+
this.x4b_1 = option(this, Options_Output_getInstance().e4b_1.slice(), 'Output').t47(this, output$factory());
|
|
426
|
+
this.y4b_1 = default_0(option(this, Options_PackageName_getInstance().e4b_1.slice(), 'Package name'), 'community.flock.wirespec.generated').t47(this, packageName$factory());
|
|
427
|
+
this.z4b_1 = default_0(option(this, Options_LogLevel_getInstance().e4b_1.slice(), 'Log level: ' + Companion_instance.toString()), Level_ERROR_getInstance().toString()).t47(this, logLevel$factory());
|
|
428
|
+
this.a4c_1 = flag(option(this, Options_Shared_getInstance().e4b_1.slice(), 'Generate shared wirespec code'), [], false).t47(this, shared$factory());
|
|
429
|
+
this.b4c_1 = flag(option(this, Options_Strict_getInstance().e4b_1.slice(), 'Strict mode'), []).t47(this, strict$factory());
|
|
430
|
+
}
|
|
431
|
+
protoOf(CommonOptions).c4c = function () {
|
|
432
|
+
return this.w4b_1.j47(this, input$factory_0());
|
|
433
433
|
};
|
|
434
|
-
protoOf(CommonOptions).
|
|
435
|
-
return this.
|
|
434
|
+
protoOf(CommonOptions).d4c = function () {
|
|
435
|
+
return this.x4b_1.j47(this, output$factory_0());
|
|
436
436
|
};
|
|
437
|
-
protoOf(CommonOptions).
|
|
438
|
-
return this.
|
|
437
|
+
protoOf(CommonOptions).q29 = function () {
|
|
438
|
+
return this.y4b_1.j47(this, packageName$factory_0());
|
|
439
439
|
};
|
|
440
|
-
protoOf(CommonOptions).
|
|
441
|
-
return this.
|
|
440
|
+
protoOf(CommonOptions).f4c = function () {
|
|
441
|
+
return this.z4b_1.j47(this, logLevel$factory_0());
|
|
442
442
|
};
|
|
443
|
-
protoOf(CommonOptions).
|
|
444
|
-
return this.
|
|
443
|
+
protoOf(CommonOptions).a2a = function () {
|
|
444
|
+
return this.a4c_1.j47(this, shared$factory_0());
|
|
445
445
|
};
|
|
446
|
-
protoOf(CommonOptions).
|
|
447
|
-
return this.
|
|
446
|
+
protoOf(CommonOptions).h4c = function () {
|
|
447
|
+
return this.b4c_1.j47(this, strict$factory_0());
|
|
448
448
|
};
|
|
449
|
-
protoOf(CommonOptions).
|
|
449
|
+
protoOf(CommonOptions).g4c = function (_this__u8e3s4) {
|
|
450
450
|
// Inline function 'kotlin.text.uppercase' call
|
|
451
451
|
// Inline function 'kotlin.text.trim' call
|
|
452
452
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -469,7 +469,7 @@ protoOf(CommonOptions).p4d = function (_this__u8e3s4) {
|
|
|
469
469
|
}
|
|
470
470
|
return tmp;
|
|
471
471
|
};
|
|
472
|
-
protoOf(CommonOptions).
|
|
472
|
+
protoOf(CommonOptions).e4c = function (directory) {
|
|
473
473
|
return CommonOptions$writer$lambda(directory, this);
|
|
474
474
|
};
|
|
475
475
|
var Options_Input_instance;
|
|
@@ -494,7 +494,7 @@ function Options_initEntries() {
|
|
|
494
494
|
}
|
|
495
495
|
function Options(name, ordinal, flags) {
|
|
496
496
|
Enum.call(this, name, ordinal);
|
|
497
|
-
this.
|
|
497
|
+
this.e4b_1 = flags;
|
|
498
498
|
}
|
|
499
499
|
function handleError(string) {
|
|
500
500
|
throw new CliktError(string);
|
|
@@ -600,62 +600,62 @@ function languages$factory_2() {
|
|
|
600
600
|
}
|
|
601
601
|
function input$factory() {
|
|
602
602
|
return getPropertyCallableRef('input', 1, KProperty1, function (receiver) {
|
|
603
|
-
return receiver.
|
|
603
|
+
return receiver.c4c();
|
|
604
604
|
}, null);
|
|
605
605
|
}
|
|
606
606
|
function output$factory() {
|
|
607
607
|
return getPropertyCallableRef('output', 1, KProperty1, function (receiver) {
|
|
608
|
-
return receiver.
|
|
608
|
+
return receiver.d4c();
|
|
609
609
|
}, null);
|
|
610
610
|
}
|
|
611
611
|
function packageName$factory() {
|
|
612
612
|
return getPropertyCallableRef('packageName', 1, KProperty1, function (receiver) {
|
|
613
|
-
return receiver.
|
|
613
|
+
return receiver.q29();
|
|
614
614
|
}, null);
|
|
615
615
|
}
|
|
616
616
|
function logLevel$factory() {
|
|
617
617
|
return getPropertyCallableRef('logLevel', 1, KProperty1, function (receiver) {
|
|
618
|
-
return receiver.
|
|
618
|
+
return receiver.f4c();
|
|
619
619
|
}, null);
|
|
620
620
|
}
|
|
621
621
|
function shared$factory() {
|
|
622
622
|
return getPropertyCallableRef('shared', 1, KProperty1, function (receiver) {
|
|
623
|
-
return receiver.
|
|
623
|
+
return receiver.a2a();
|
|
624
624
|
}, null);
|
|
625
625
|
}
|
|
626
626
|
function strict$factory() {
|
|
627
627
|
return getPropertyCallableRef('strict', 1, KProperty1, function (receiver) {
|
|
628
|
-
return receiver.
|
|
628
|
+
return receiver.h4c();
|
|
629
629
|
}, null);
|
|
630
630
|
}
|
|
631
631
|
function input$factory_0() {
|
|
632
632
|
return getPropertyCallableRef('input', 1, KProperty1, function (receiver) {
|
|
633
|
-
return receiver.
|
|
633
|
+
return receiver.c4c();
|
|
634
634
|
}, null);
|
|
635
635
|
}
|
|
636
636
|
function output$factory_0() {
|
|
637
637
|
return getPropertyCallableRef('output', 1, KProperty1, function (receiver) {
|
|
638
|
-
return receiver.
|
|
638
|
+
return receiver.d4c();
|
|
639
639
|
}, null);
|
|
640
640
|
}
|
|
641
641
|
function packageName$factory_0() {
|
|
642
642
|
return getPropertyCallableRef('packageName', 1, KProperty1, function (receiver) {
|
|
643
|
-
return receiver.
|
|
643
|
+
return receiver.q29();
|
|
644
644
|
}, null);
|
|
645
645
|
}
|
|
646
646
|
function logLevel$factory_0() {
|
|
647
647
|
return getPropertyCallableRef('logLevel', 1, KProperty1, function (receiver) {
|
|
648
|
-
return receiver.
|
|
648
|
+
return receiver.f4c();
|
|
649
649
|
}, null);
|
|
650
650
|
}
|
|
651
651
|
function shared$factory_0() {
|
|
652
652
|
return getPropertyCallableRef('shared', 1, KProperty1, function (receiver) {
|
|
653
|
-
return receiver.
|
|
653
|
+
return receiver.a2a();
|
|
654
654
|
}, null);
|
|
655
655
|
}
|
|
656
656
|
function strict$factory_0() {
|
|
657
657
|
return getPropertyCallableRef('strict', 1, KProperty1, function (receiver) {
|
|
658
|
-
return receiver.
|
|
658
|
+
return receiver.h4c();
|
|
659
659
|
}, null);
|
|
660
660
|
}
|
|
661
661
|
function main(args) {
|
|
@@ -686,7 +686,7 @@ function main(args) {
|
|
|
686
686
|
// Inline function 'kotlin.contracts.contract' call
|
|
687
687
|
var tmp = Companion_instance_4;
|
|
688
688
|
var tmp_0 = compile$ref();
|
|
689
|
-
tmp.
|
|
689
|
+
tmp.b4a(tmp_0, convert$ref()).w3x(destination);
|
|
690
690
|
}
|
|
691
691
|
function compile$ref() {
|
|
692
692
|
var l = function (p0) {
|
|
@@ -730,8 +730,8 @@ function parser(source) {
|
|
|
730
730
|
noWhenBranchMatchedException();
|
|
731
731
|
}
|
|
732
732
|
}
|
|
733
|
-
var this_1 = tmp.
|
|
734
|
-
var tmp_0 = this_1.pk_1.
|
|
733
|
+
var this_1 = tmp.m24_1;
|
|
734
|
+
var tmp_0 = this_1.pk_1.o24_1.nk();
|
|
735
735
|
// Inline function 'kotlin.collections.flatMap' call
|
|
736
736
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
737
737
|
var this_2 = this_1.qk_1;
|
|
@@ -739,7 +739,7 @@ function parser(source) {
|
|
|
739
739
|
var tmp0_iterator = this_2.g();
|
|
740
740
|
while (tmp0_iterator.h()) {
|
|
741
741
|
var element = tmp0_iterator.i();
|
|
742
|
-
var list = element.
|
|
742
|
+
var list = element.o24_1;
|
|
743
743
|
addAll(destination, list);
|
|
744
744
|
}
|
|
745
745
|
var this_3 = tmp_0.uk(destination).tk();
|
|
@@ -797,8 +797,8 @@ function _init_properties_CommandLineArguments_kt__b5v7hl() {
|
|
|
797
797
|
}
|
|
798
798
|
}
|
|
799
799
|
//region block: post-declaration
|
|
800
|
-
protoOf(parser$this$this$this$this$1).
|
|
801
|
-
protoOf(parser$this$this$this$this$1).
|
|
800
|
+
protoOf(parser$this$this$this$this$1).y21 = get_spec;
|
|
801
|
+
protoOf(parser$this$this$this$this$1).n21 = get_logger;
|
|
802
802
|
//endregion
|
|
803
803
|
//region block: init
|
|
804
804
|
Companion_instance_4 = new Companion();
|
|
@@ -285,20 +285,28 @@ export declare abstract class WsPrimitiveType {
|
|
|
285
285
|
get name(): "Integer";
|
|
286
286
|
get ordinal(): 1;
|
|
287
287
|
};
|
|
288
|
+
static get Integer32(): WsPrimitiveType & {
|
|
289
|
+
get name(): "Integer32";
|
|
290
|
+
get ordinal(): 2;
|
|
291
|
+
};
|
|
288
292
|
static get Number(): WsPrimitiveType & {
|
|
289
293
|
get name(): "Number";
|
|
290
|
-
get ordinal():
|
|
294
|
+
get ordinal(): 3;
|
|
295
|
+
};
|
|
296
|
+
static get Number32(): WsPrimitiveType & {
|
|
297
|
+
get name(): "Number32";
|
|
298
|
+
get ordinal(): 4;
|
|
291
299
|
};
|
|
292
300
|
static get Boolean(): WsPrimitiveType & {
|
|
293
301
|
get name(): "Boolean";
|
|
294
|
-
get ordinal():
|
|
302
|
+
get ordinal(): 5;
|
|
295
303
|
};
|
|
296
304
|
static get Bytes(): WsPrimitiveType & {
|
|
297
305
|
get name(): "Bytes";
|
|
298
|
-
get ordinal():
|
|
306
|
+
get ordinal(): 6;
|
|
299
307
|
};
|
|
300
|
-
get name(): "String" | "Integer" | "Number" | "Boolean" | "Bytes";
|
|
301
|
-
get ordinal(): 0 | 1 | 2 | 3 | 4;
|
|
308
|
+
get name(): "String" | "Integer" | "Integer32" | "Number" | "Number32" | "Boolean" | "Bytes";
|
|
309
|
+
get ordinal(): 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
302
310
|
static values(): Array<WsPrimitiveType>;
|
|
303
311
|
static valueOf(value: string): WsPrimitiveType;
|
|
304
312
|
}
|
|
@@ -82,8 +82,8 @@ import {
|
|
|
82
82
|
import { generate2z40chlsobs62 as generate } from './wirespec-src-tools-generator.mjs';
|
|
83
83
|
import { WirespecEmitter2ad9je4ecrvjk as WirespecEmitter } from './wirespec-src-compiler-emitters-wirespec.mjs';
|
|
84
84
|
import {
|
|
85
|
-
|
|
86
|
-
|
|
85
|
+
Companion_getInstance1eu1ler40job2 as Companion_getInstance,
|
|
86
|
+
Companion_getInstance3ql5ifssck6g1 as Companion_getInstance_0,
|
|
87
87
|
} from './kotlin-openapi-bindings.mjs';
|
|
88
88
|
import { Default_getInstance2o39jijms8bnj as Default_getInstance } from './kotlinx-serialization-kotlinx-serialization-json.mjs';
|
|
89
89
|
import {
|
|
@@ -127,10 +127,10 @@ function Shared_initEntries() {
|
|
|
127
127
|
if (Shared_entriesInitialized)
|
|
128
128
|
return Unit_instance;
|
|
129
129
|
Shared_entriesInitialized = true;
|
|
130
|
-
Shared_KOTLIN_instance = new Shared('KOTLIN', 0, KotlinShared_getInstance().
|
|
131
|
-
Shared_JAVA_instance = new Shared('JAVA', 1, JavaShared_getInstance().
|
|
132
|
-
Shared_TYPESCRIPT_instance = new Shared('TYPESCRIPT', 2, TypeScriptShared_getInstance().
|
|
133
|
-
Shared_PYTHON_instance = new Shared('PYTHON', 3, PythonShared_instance.
|
|
130
|
+
Shared_KOTLIN_instance = new Shared('KOTLIN', 0, KotlinShared_getInstance().c2a_1);
|
|
131
|
+
Shared_JAVA_instance = new Shared('JAVA', 1, JavaShared_getInstance().r2a_1);
|
|
132
|
+
Shared_TYPESCRIPT_instance = new Shared('TYPESCRIPT', 2, TypeScriptShared_getInstance().a2b_1);
|
|
133
|
+
Shared_PYTHON_instance = new Shared('PYTHON', 3, PythonShared_instance.k2b_1);
|
|
134
134
|
}
|
|
135
135
|
function Shared(name, ordinal, source) {
|
|
136
136
|
Enum.call(this, name, ordinal);
|
|
@@ -255,13 +255,13 @@ function convert(source, converters, strict) {
|
|
|
255
255
|
var tmp;
|
|
256
256
|
switch (converters.r2_1) {
|
|
257
257
|
case 0:
|
|
258
|
-
tmp = produce_1(OpenAPIV2Parser_instance.
|
|
258
|
+
tmp = produce_1(OpenAPIV2Parser_instance.a2e(new ModuleContent(_FileUri___init__impl__ujwvc9(''), source), strict));
|
|
259
259
|
break;
|
|
260
260
|
case 1:
|
|
261
|
-
tmp = produce_1(OpenAPIV3Parser_instance.
|
|
261
|
+
tmp = produce_1(OpenAPIV3Parser_instance.a2e(new ModuleContent(_FileUri___init__impl__ujwvc9(''), source), strict));
|
|
262
262
|
break;
|
|
263
263
|
case 2:
|
|
264
|
-
tmp = produce_1(AvroParser_instance.
|
|
264
|
+
tmp = produce_1(AvroParser_instance.a2e(new ModuleContent(_FileUri___init__impl__ujwvc9(''), source), strict));
|
|
265
265
|
break;
|
|
266
266
|
default:
|
|
267
267
|
noWhenBranchMatchedException();
|
|
@@ -301,11 +301,11 @@ function emit(wsAst, emitter, packageName, emitShared) {
|
|
|
301
301
|
case 0:
|
|
302
302
|
// Inline function 'arrow.core.NonEmptyList.flatMap' call
|
|
303
303
|
|
|
304
|
-
var this_0 = ast.
|
|
304
|
+
var this_0 = ast.m24_1;
|
|
305
305
|
// Inline function 'community.flock.wirespec.plugin.npm.emit.<anonymous>' call
|
|
306
306
|
|
|
307
307
|
var it = this_0.pk_1;
|
|
308
|
-
var tmp_0 = (new WirespecEmitter()).
|
|
308
|
+
var tmp_0 = (new WirespecEmitter()).d25(it, get_noLogger()).nk();
|
|
309
309
|
// Inline function 'kotlin.collections.flatMap' call
|
|
310
310
|
|
|
311
311
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -316,7 +316,7 @@ function emit(wsAst, emitter, packageName, emitShared) {
|
|
|
316
316
|
while (tmp0_iterator.h()) {
|
|
317
317
|
var element = tmp0_iterator.i();
|
|
318
318
|
// Inline function 'community.flock.wirespec.plugin.npm.emit.<anonymous>' call
|
|
319
|
-
var list = (new WirespecEmitter()).
|
|
319
|
+
var list = (new WirespecEmitter()).d25(element, get_noLogger());
|
|
320
320
|
addAll(destination, list);
|
|
321
321
|
}
|
|
322
322
|
|
|
@@ -325,11 +325,11 @@ function emit(wsAst, emitter, packageName, emitShared) {
|
|
|
325
325
|
case 1:
|
|
326
326
|
// Inline function 'arrow.core.NonEmptyList.flatMap' call
|
|
327
327
|
|
|
328
|
-
var this_2 = ast.
|
|
328
|
+
var this_2 = ast.m24_1;
|
|
329
329
|
// Inline function 'community.flock.wirespec.plugin.npm.emit.<anonymous>' call
|
|
330
330
|
|
|
331
331
|
var it_0 = this_2.pk_1;
|
|
332
|
-
var tmp_1 = (new TypeScriptEmitter()).
|
|
332
|
+
var tmp_1 = (new TypeScriptEmitter()).d25(it_0, get_noLogger()).nk();
|
|
333
333
|
// Inline function 'kotlin.collections.flatMap' call
|
|
334
334
|
|
|
335
335
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -340,7 +340,7 @@ function emit(wsAst, emitter, packageName, emitShared) {
|
|
|
340
340
|
while (tmp0_iterator_0.h()) {
|
|
341
341
|
var element_0 = tmp0_iterator_0.i();
|
|
342
342
|
// Inline function 'community.flock.wirespec.plugin.npm.emit.<anonymous>' call
|
|
343
|
-
var list_0 = (new TypeScriptEmitter()).
|
|
343
|
+
var list_0 = (new TypeScriptEmitter()).d25(element_0, get_noLogger());
|
|
344
344
|
addAll(destination_0, list_0);
|
|
345
345
|
}
|
|
346
346
|
|
|
@@ -349,11 +349,11 @@ function emit(wsAst, emitter, packageName, emitShared) {
|
|
|
349
349
|
case 2:
|
|
350
350
|
// Inline function 'arrow.core.NonEmptyList.flatMap' call
|
|
351
351
|
|
|
352
|
-
var this_4 = ast.
|
|
352
|
+
var this_4 = ast.m24_1;
|
|
353
353
|
// Inline function 'community.flock.wirespec.plugin.npm.emit.<anonymous>' call
|
|
354
354
|
|
|
355
355
|
var it_1 = this_4.pk_1;
|
|
356
|
-
var tmp_2 = (new JavaEmitter(Companion_instance.
|
|
356
|
+
var tmp_2 = (new JavaEmitter(Companion_instance.w25(packageName), new EmitShared(emitShared))).d25(it_1, get_noLogger()).nk();
|
|
357
357
|
// Inline function 'kotlin.collections.flatMap' call
|
|
358
358
|
|
|
359
359
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -364,7 +364,7 @@ function emit(wsAst, emitter, packageName, emitShared) {
|
|
|
364
364
|
while (tmp0_iterator_1.h()) {
|
|
365
365
|
var element_1 = tmp0_iterator_1.i();
|
|
366
366
|
// Inline function 'community.flock.wirespec.plugin.npm.emit.<anonymous>' call
|
|
367
|
-
var list_1 = (new JavaEmitter(Companion_instance.
|
|
367
|
+
var list_1 = (new JavaEmitter(Companion_instance.w25(packageName), new EmitShared(emitShared))).d25(element_1, get_noLogger());
|
|
368
368
|
addAll(destination_1, list_1);
|
|
369
369
|
}
|
|
370
370
|
|
|
@@ -373,11 +373,11 @@ function emit(wsAst, emitter, packageName, emitShared) {
|
|
|
373
373
|
case 3:
|
|
374
374
|
// Inline function 'arrow.core.NonEmptyList.flatMap' call
|
|
375
375
|
|
|
376
|
-
var this_6 = ast.
|
|
376
|
+
var this_6 = ast.m24_1;
|
|
377
377
|
// Inline function 'community.flock.wirespec.plugin.npm.emit.<anonymous>' call
|
|
378
378
|
|
|
379
379
|
var it_2 = this_6.pk_1;
|
|
380
|
-
var tmp_3 = (new KotlinEmitter(Companion_instance.
|
|
380
|
+
var tmp_3 = (new KotlinEmitter(Companion_instance.w25(packageName), new EmitShared(emitShared))).d25(it_2, get_noLogger()).nk();
|
|
381
381
|
// Inline function 'kotlin.collections.flatMap' call
|
|
382
382
|
|
|
383
383
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -388,7 +388,7 @@ function emit(wsAst, emitter, packageName, emitShared) {
|
|
|
388
388
|
while (tmp0_iterator_2.h()) {
|
|
389
389
|
var element_2 = tmp0_iterator_2.i();
|
|
390
390
|
// Inline function 'community.flock.wirespec.plugin.npm.emit.<anonymous>' call
|
|
391
|
-
var list_2 = (new KotlinEmitter(Companion_instance.
|
|
391
|
+
var list_2 = (new KotlinEmitter(Companion_instance.w25(packageName), new EmitShared(emitShared))).d25(element_2, get_noLogger());
|
|
392
392
|
addAll(destination_2, list_2);
|
|
393
393
|
}
|
|
394
394
|
|
|
@@ -397,11 +397,11 @@ function emit(wsAst, emitter, packageName, emitShared) {
|
|
|
397
397
|
case 4:
|
|
398
398
|
// Inline function 'arrow.core.NonEmptyList.flatMap' call
|
|
399
399
|
|
|
400
|
-
var this_8 = ast.
|
|
400
|
+
var this_8 = ast.m24_1;
|
|
401
401
|
// Inline function 'community.flock.wirespec.plugin.npm.emit.<anonymous>' call
|
|
402
402
|
|
|
403
403
|
var it_3 = this_8.pk_1;
|
|
404
|
-
var tmp_4 = (new PythonEmitter(Companion_instance.
|
|
404
|
+
var tmp_4 = (new PythonEmitter(Companion_instance.w25(packageName), new EmitShared(emitShared))).d25(it_3, get_noLogger()).nk();
|
|
405
405
|
// Inline function 'kotlin.collections.flatMap' call
|
|
406
406
|
|
|
407
407
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -412,7 +412,7 @@ function emit(wsAst, emitter, packageName, emitShared) {
|
|
|
412
412
|
while (tmp0_iterator_3.h()) {
|
|
413
413
|
var element_3 = tmp0_iterator_3.i();
|
|
414
414
|
// Inline function 'community.flock.wirespec.plugin.npm.emit.<anonymous>' call
|
|
415
|
-
var list_3 = (new PythonEmitter(Companion_instance.
|
|
415
|
+
var list_3 = (new PythonEmitter(Companion_instance.w25(packageName), new EmitShared(emitShared))).d25(element_3, get_noLogger());
|
|
416
416
|
addAll(destination_3, list_3);
|
|
417
417
|
}
|
|
418
418
|
|
|
@@ -428,10 +428,10 @@ function emit(wsAst, emitter, packageName, emitShared) {
|
|
|
428
428
|
var tmp_5 = OpenAPIV2Emitter_getInstance();
|
|
429
429
|
// Inline function 'arrow.core.NonEmptyList.flatMap' call
|
|
430
430
|
|
|
431
|
-
var this_10 = ast.
|
|
431
|
+
var this_10 = ast.m24_1;
|
|
432
432
|
// Inline function 'community.flock.wirespec.plugin.npm.emit.<anonymous>' call
|
|
433
433
|
|
|
434
|
-
var tmp_6 = this_10.pk_1.
|
|
434
|
+
var tmp_6 = this_10.pk_1.o24_1.nk();
|
|
435
435
|
// Inline function 'kotlin.collections.flatMap' call
|
|
436
436
|
|
|
437
437
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -442,15 +442,15 @@ function emit(wsAst, emitter, packageName, emitShared) {
|
|
|
442
442
|
while (tmp0_iterator_4.h()) {
|
|
443
443
|
var element_4 = tmp0_iterator_4.i();
|
|
444
444
|
// Inline function 'community.flock.wirespec.plugin.npm.emit.<anonymous>' call
|
|
445
|
-
var list_4 = element_4.
|
|
445
|
+
var list_4 = element_4.o24_1;
|
|
446
446
|
addAll(destination_4, list_4);
|
|
447
447
|
}
|
|
448
448
|
|
|
449
449
|
var tmp$ret$29 = tmp_6.uk(destination_4);
|
|
450
|
-
var this_12 = tmp_5.
|
|
450
|
+
var this_12 = tmp_5.e2e(tmp$ret$29);
|
|
451
451
|
// Inline function 'kotlin.contracts.contract' call
|
|
452
452
|
|
|
453
|
-
var this_13 = encode(Companion_getInstance().
|
|
453
|
+
var this_13 = encode(Companion_getInstance().v17())(this_12);
|
|
454
454
|
// Inline function 'kotlin.contracts.contract' call
|
|
455
455
|
|
|
456
456
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -470,10 +470,10 @@ function emit(wsAst, emitter, packageName, emitShared) {
|
|
|
470
470
|
var tmp_7 = OpenAPIV3Emitter_getInstance();
|
|
471
471
|
// Inline function 'arrow.core.NonEmptyList.flatMap' call
|
|
472
472
|
|
|
473
|
-
var this_14 = ast.
|
|
473
|
+
var this_14 = ast.m24_1;
|
|
474
474
|
// Inline function 'community.flock.wirespec.plugin.npm.emit.<anonymous>' call
|
|
475
475
|
|
|
476
|
-
var tmp_8 = this_14.pk_1.
|
|
476
|
+
var tmp_8 = this_14.pk_1.o24_1.nk();
|
|
477
477
|
// Inline function 'kotlin.collections.flatMap' call
|
|
478
478
|
|
|
479
479
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -484,15 +484,15 @@ function emit(wsAst, emitter, packageName, emitShared) {
|
|
|
484
484
|
while (tmp0_iterator_5.h()) {
|
|
485
485
|
var element_5 = tmp0_iterator_5.i();
|
|
486
486
|
// Inline function 'community.flock.wirespec.plugin.npm.emit.<anonymous>' call
|
|
487
|
-
var list_5 = element_5.
|
|
487
|
+
var list_5 = element_5.o24_1;
|
|
488
488
|
addAll(destination_5, list_5);
|
|
489
489
|
}
|
|
490
490
|
|
|
491
491
|
var tmp$ret$39 = tmp_8.uk(destination_5);
|
|
492
|
-
var this_16 = tmp_7.
|
|
492
|
+
var this_16 = tmp_7.d2e(tmp$ret$39, null);
|
|
493
493
|
// Inline function 'kotlin.contracts.contract' call
|
|
494
494
|
|
|
495
|
-
var this_17 = encode(Companion_getInstance_0().
|
|
495
|
+
var this_17 = encode(Companion_getInstance_0().v17())(this_16);
|
|
496
496
|
// Inline function 'kotlin.contracts.contract' call
|
|
497
497
|
|
|
498
498
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -509,11 +509,11 @@ function emit(wsAst, emitter, packageName, emitShared) {
|
|
|
509
509
|
|
|
510
510
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
511
511
|
|
|
512
|
-
var this_18 = ast.
|
|
512
|
+
var this_18 = ast.m24_1;
|
|
513
513
|
// Inline function 'community.flock.wirespec.plugin.npm.emit.<anonymous>' call
|
|
514
514
|
|
|
515
515
|
var ast_0 = this_18.pk_1;
|
|
516
|
-
var tmp_9 = AvroEmitter_getInstance().
|
|
516
|
+
var tmp_9 = AvroEmitter_getInstance().w2c(ast_0);
|
|
517
517
|
// Inline function 'kotlin.collections.map' call
|
|
518
518
|
|
|
519
519
|
var this_19 = this_18.qk_1;
|
|
@@ -524,7 +524,7 @@ function emit(wsAst, emitter, packageName, emitShared) {
|
|
|
524
524
|
while (tmp0_iterator_6.h()) {
|
|
525
525
|
var item = tmp0_iterator_6.i();
|
|
526
526
|
// Inline function 'community.flock.wirespec.plugin.npm.emit.<anonymous>' call
|
|
527
|
-
var tmp$ret$46 = AvroEmitter_getInstance().
|
|
527
|
+
var tmp$ret$46 = AvroEmitter_getInstance().w2c(item);
|
|
528
528
|
destination_6.e(tmp$ret$46);
|
|
529
529
|
}
|
|
530
530
|
|
|
@@ -704,10 +704,10 @@ defineProp(protoOf(Emitters), 'name', protoOf(Emitters).s2);
|
|
|
704
704
|
defineProp(protoOf(Emitters), 'ordinal', protoOf(Emitters).t2);
|
|
705
705
|
defineProp(protoOf(Converters), 'name', protoOf(Converters).s2);
|
|
706
706
|
defineProp(protoOf(Converters), 'ordinal', protoOf(Converters).t2);
|
|
707
|
-
protoOf(parse$1).
|
|
708
|
-
protoOf(parse$1).
|
|
709
|
-
protoOf(generate$this$1).
|
|
710
|
-
protoOf(generate$this$1).
|
|
707
|
+
protoOf(parse$1).y21 = get_spec;
|
|
708
|
+
protoOf(parse$1).n21 = get_logger;
|
|
709
|
+
protoOf(generate$this$1).y21 = get_spec;
|
|
710
|
+
protoOf(generate$this$1).n21 = get_logger;
|
|
711
711
|
//endregion
|
|
712
712
|
//region block: exports
|
|
713
713
|
Shared.values = values;
|