@flock/wirespec 0.15.11 → 0.15.13
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 +1160 -1160
- package/colormath-root-colormath.mjs +425 -425
- package/kotlin-kotlin-stdlib.mjs +19 -19
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-rgxgen.mjs +1767 -1767
- package/kotlinx-io-kotlinx-io-core.mjs +378 -378
- package/markdown.mjs +1871 -1871
- package/mordant-mordant.mjs +1637 -1637
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +2496 -1471
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +262 -262
- package/wirespec-src-converter-avro.mjs +264 -264
- package/wirespec-src-converter-openapi.mjs +179 -179
- package/wirespec-src-plugin-arguments.mjs +124 -124
- package/wirespec-src-plugin-cli.mjs +70 -70
- package/wirespec-src-plugin-npm.mjs +7 -7
- package/wirespec-src-tools-generator.mjs +3 -3
|
@@ -152,7 +152,7 @@ function SpecificFile(extension) {
|
|
|
152
152
|
}
|
|
153
153
|
function Companion() {
|
|
154
154
|
}
|
|
155
|
-
protoOf(Companion).
|
|
155
|
+
protoOf(Companion).v4a = function (compile, convert) {
|
|
156
156
|
return subcommands(new WirespecCli(), [new Compile(compile), new Convert(convert)]);
|
|
157
157
|
};
|
|
158
158
|
var Companion_instance_4;
|
|
@@ -163,10 +163,10 @@ function WirespecCli() {
|
|
|
163
163
|
NoOpCliktCommand.call(this, VOID, VOID, 'wirespec');
|
|
164
164
|
}
|
|
165
165
|
function _get_stdin__b8xnlj($this) {
|
|
166
|
-
return $this.
|
|
166
|
+
return $this.u4b_1.d48($this, stdin$factory_0());
|
|
167
167
|
}
|
|
168
168
|
function _get_languages__ojonze($this) {
|
|
169
|
-
return $this.
|
|
169
|
+
return $this.v4b_1.d48($this, languages$factory_0());
|
|
170
170
|
}
|
|
171
171
|
function run$handleError(p0) {
|
|
172
172
|
handleError(p0);
|
|
@@ -193,15 +193,15 @@ function Compile$run$handleError$ref() {
|
|
|
193
193
|
}
|
|
194
194
|
function Compile(compiler) {
|
|
195
195
|
CommonOptions.call(this);
|
|
196
|
-
this.
|
|
197
|
-
this.
|
|
198
|
-
this.
|
|
196
|
+
this.t4b_1 = compiler;
|
|
197
|
+
this.u4b_1 = optional(argument(this, VOID, 'stdin')).j47(this, stdin$factory());
|
|
198
|
+
this.v4b_1 = multiple(choice(option(this, Options_Language_getInstance().y4b_1.slice(), 'Language'), Companion_instance_1.y2i(), VOID, true), listOf(Language_Kotlin_getInstance())).n48(this, languages$factory());
|
|
199
199
|
}
|
|
200
|
-
protoOf(Compile).
|
|
200
|
+
protoOf(Compile).r3y = function () {
|
|
201
201
|
// Inline function 'arrow.core.getOrElse' call
|
|
202
202
|
// Inline function 'kotlin.contracts.contract' call
|
|
203
203
|
// Inline function 'arrow.core.Either.fold' call
|
|
204
|
-
var this_0 = getFullPath(this.
|
|
204
|
+
var this_0 = getFullPath(this.w4c());
|
|
205
205
|
// Inline function 'kotlin.contracts.contract' call
|
|
206
206
|
var tmp;
|
|
207
207
|
if (this_0 instanceof Right) {
|
|
@@ -211,7 +211,7 @@ protoOf(Compile).l3y = function () {
|
|
|
211
211
|
} else {
|
|
212
212
|
if (this_0 instanceof Left) {
|
|
213
213
|
var it = this_0.xj_1;
|
|
214
|
-
throw new CliktError(it.
|
|
214
|
+
throw new CliktError(it.b2k_1);
|
|
215
215
|
} else {
|
|
216
216
|
noWhenBranchMatchedException();
|
|
217
217
|
}
|
|
@@ -243,13 +243,13 @@ protoOf(Compile).l3y = function () {
|
|
|
243
243
|
throw new NoClasspathPossible();
|
|
244
244
|
} else {
|
|
245
245
|
if (inputPath instanceof DirectoryPath) {
|
|
246
|
-
var tmp_4 = wirespecSources(new Directory(inputPath.
|
|
246
|
+
var tmp_4 = wirespecSources(new Directory(inputPath.v2j_1));
|
|
247
247
|
tmp_0 = or(tmp_4, handleError$ref()).qk_1;
|
|
248
248
|
} else {
|
|
249
249
|
if (inputPath instanceof FilePath) {
|
|
250
250
|
var tmp_5;
|
|
251
|
-
if (inputPath.
|
|
252
|
-
tmp_5 = nonEmptySetOf(new Source(inputPath.
|
|
251
|
+
if (inputPath.a2k_1.r2_1 === 4) {
|
|
252
|
+
tmp_5 = nonEmptySetOf(new Source(inputPath.z2j_1, read(inputPath)), []);
|
|
253
253
|
} else {
|
|
254
254
|
throw new WirespecFileError();
|
|
255
255
|
}
|
|
@@ -261,7 +261,7 @@ protoOf(Compile).l3y = function () {
|
|
|
261
261
|
}
|
|
262
262
|
}
|
|
263
263
|
var sources = tmp_0;
|
|
264
|
-
var emitters = toEmitters(_get_languages__ojonze(this), Companion_instance_0.w25(this.
|
|
264
|
+
var emitters = toEmitters(_get_languages__ojonze(this), Companion_instance_0.w25(this.x4c()), new EmitShared(this.z25()));
|
|
265
265
|
var tmp_6;
|
|
266
266
|
if (inputPath == null) {
|
|
267
267
|
tmp_6 = null;
|
|
@@ -269,24 +269,24 @@ protoOf(Compile).l3y = function () {
|
|
|
269
269
|
// Inline function 'kotlin.let' call
|
|
270
270
|
// Inline function 'kotlin.contracts.contract' call
|
|
271
271
|
// Inline function 'community.flock.wirespec.plugin.cli.Compile.run.<anonymous>' call
|
|
272
|
-
var tmp_7 = getOutPutPath(inputPath, this.
|
|
273
|
-
tmp_6 = new Directory(or(tmp_7, handleError$ref_0()).
|
|
272
|
+
var tmp_7 = getOutPutPath(inputPath, this.y4c());
|
|
273
|
+
tmp_6 = new Directory(or(tmp_7, handleError$ref_0()).v2j_1);
|
|
274
274
|
}
|
|
275
275
|
var outputDir = tmp_6;
|
|
276
276
|
// Inline function 'kotlin.let' call
|
|
277
|
-
var tmp_8 = this.
|
|
278
|
-
var this_1 = new CompilerArguments(sources, emitters, tmp_8, Compile$run$handleError$ref(), Companion_instance_0.w25(this.
|
|
277
|
+
var tmp_8 = this.z4c(outputDir);
|
|
278
|
+
var this_1 = new CompilerArguments(sources, emitters, tmp_8, Compile$run$handleError$ref(), Companion_instance_0.w25(this.x4c()), new Logger(this.b4d(this.a4d())), this.z25(), this.c4d());
|
|
279
279
|
// Inline function 'kotlin.contracts.contract' call
|
|
280
|
-
this.
|
|
280
|
+
this.t4b_1(this_1);
|
|
281
281
|
};
|
|
282
282
|
function _get_format__qlarck($this) {
|
|
283
|
-
return $this.
|
|
283
|
+
return $this.b4e_1.d48($this, format$factory_0());
|
|
284
284
|
}
|
|
285
285
|
function _get_stdin__b8xnlj_0($this) {
|
|
286
|
-
return $this.
|
|
286
|
+
return $this.c4e_1.d48($this, stdin$factory_2());
|
|
287
287
|
}
|
|
288
288
|
function _get_languages__ojonze_0($this) {
|
|
289
|
-
return $this.
|
|
289
|
+
return $this.d4e_1.d48($this, languages$factory_2());
|
|
290
290
|
}
|
|
291
291
|
function run$handleError_0(p0) {
|
|
292
292
|
handleError(p0);
|
|
@@ -313,7 +313,7 @@ function Convert$run$handleError$ref() {
|
|
|
313
313
|
}
|
|
314
314
|
function Convert(converter) {
|
|
315
315
|
CommonOptions.call(this);
|
|
316
|
-
this.
|
|
316
|
+
this.a4e_1 = converter;
|
|
317
317
|
var tmp = this;
|
|
318
318
|
// Inline function 'com.github.ajalt.clikt.parameters.types.enum' call
|
|
319
319
|
var this_0 = argument(this, VOID, 'Input format');
|
|
@@ -333,12 +333,12 @@ function Convert(converter) {
|
|
|
333
333
|
var tmp$ret$2 = element.q2_1;
|
|
334
334
|
destination.n2(tmp$ret$2, element);
|
|
335
335
|
}
|
|
336
|
-
tmp.
|
|
337
|
-
this.
|
|
338
|
-
this.
|
|
336
|
+
tmp.b4e_1 = choice_0(this_0, destination, true).j47(this, format$factory());
|
|
337
|
+
this.c4e_1 = optional(argument(this, VOID, 'stdin')).j47(this, stdin$factory_1());
|
|
338
|
+
this.d4e_1 = multiple(choice(option(this, Options_Language_getInstance().y4b_1.slice(), 'Language'), Companion_instance_1.y2i(), VOID, true)).n48(this, languages$factory_1());
|
|
339
339
|
}
|
|
340
|
-
protoOf(Convert).
|
|
341
|
-
var tmp = getFullPath(this.
|
|
340
|
+
protoOf(Convert).r3y = function () {
|
|
341
|
+
var tmp = getFullPath(this.w4c());
|
|
342
342
|
var inputPath = or(tmp, handleError$ref_1());
|
|
343
343
|
var tmp_0;
|
|
344
344
|
if (inputPath == null) {
|
|
@@ -369,8 +369,8 @@ protoOf(Convert).l3y = function () {
|
|
|
369
369
|
} else {
|
|
370
370
|
if (inputPath instanceof FilePath) {
|
|
371
371
|
var tmp_3;
|
|
372
|
-
if (inputPath.
|
|
373
|
-
tmp_3 = new Source(inputPath.
|
|
372
|
+
if (inputPath.a2k_1.r2_1 === 5) {
|
|
373
|
+
tmp_3 = new Source(inputPath.z2j_1, read(inputPath));
|
|
374
374
|
} else {
|
|
375
375
|
throw new JSONFileError();
|
|
376
376
|
}
|
|
@@ -382,7 +382,7 @@ protoOf(Convert).l3y = function () {
|
|
|
382
382
|
}
|
|
383
383
|
}
|
|
384
384
|
var source = tmp_0;
|
|
385
|
-
var emitters = toEmitters(_get_languages__ojonze_0(this), Companion_instance_0.w25(this.
|
|
385
|
+
var emitters = toEmitters(_get_languages__ojonze_0(this), Companion_instance_0.w25(this.x4c()), new EmitShared(this.z25()));
|
|
386
386
|
var tmp_4;
|
|
387
387
|
if (inputPath == null) {
|
|
388
388
|
tmp_4 = null;
|
|
@@ -390,17 +390,17 @@ protoOf(Convert).l3y = function () {
|
|
|
390
390
|
// Inline function 'kotlin.let' call
|
|
391
391
|
// Inline function 'kotlin.contracts.contract' call
|
|
392
392
|
// Inline function 'community.flock.wirespec.plugin.cli.Convert.run.<anonymous>' call
|
|
393
|
-
var tmp_5 = getOutPutPath(inputPath, this.
|
|
394
|
-
tmp_4 = new Directory(or(tmp_5, handleError$ref_2()).
|
|
393
|
+
var tmp_5 = getOutPutPath(inputPath, this.y4c());
|
|
394
|
+
tmp_4 = new Directory(or(tmp_5, handleError$ref_2()).v2j_1);
|
|
395
395
|
}
|
|
396
396
|
var directory = tmp_4;
|
|
397
397
|
// Inline function 'kotlin.let' call
|
|
398
398
|
var tmp_6 = _get_format__qlarck(this);
|
|
399
399
|
var tmp_7 = nonEmptySetOf(source, []);
|
|
400
|
-
var tmp_8 = this.
|
|
401
|
-
var this_0 = new ConverterArguments(tmp_6, tmp_7, emitters, tmp_8, Convert$run$handleError$ref(), Companion_instance_0.w25(this.
|
|
400
|
+
var tmp_8 = this.z4c(directory);
|
|
401
|
+
var this_0 = new ConverterArguments(tmp_6, tmp_7, emitters, tmp_8, Convert$run$handleError$ref(), Companion_instance_0.w25(this.x4c()), new Logger(this.b4d(this.a4d())), this.z25(), this.c4d());
|
|
402
402
|
// Inline function 'kotlin.contracts.contract' call
|
|
403
|
-
this.
|
|
403
|
+
this.a4e_1(this_0);
|
|
404
404
|
};
|
|
405
405
|
function CommonOptions$writer$lambda($directory, this$0) {
|
|
406
406
|
return function (emittedList) {
|
|
@@ -415,11 +415,11 @@ function CommonOptions$writer$lambda($directory, this$0) {
|
|
|
415
415
|
} else {
|
|
416
416
|
// Inline function 'kotlin.let' call
|
|
417
417
|
// Inline function 'kotlin.contracts.contract' call
|
|
418
|
-
write(Companion_instance_2.
|
|
418
|
+
write(Companion_instance_2.x2j(_DirectoryPath___get_value__impl__hdy2e3(tmp0_safe_receiver.w2j_1) + '/' + element.h26_1), element.i26_1);
|
|
419
419
|
tmp = Unit_instance;
|
|
420
420
|
}
|
|
421
421
|
if (tmp == null) {
|
|
422
|
-
this$0.
|
|
422
|
+
this$0.l3y(element.i26_1);
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
425
|
return Unit_instance;
|
|
@@ -427,32 +427,32 @@ function CommonOptions$writer$lambda($directory, this$0) {
|
|
|
427
427
|
}
|
|
428
428
|
function CommonOptions() {
|
|
429
429
|
CliktCommand.call(this);
|
|
430
|
-
this.
|
|
431
|
-
this.
|
|
432
|
-
this.
|
|
433
|
-
this.
|
|
434
|
-
this.
|
|
435
|
-
this.
|
|
436
|
-
}
|
|
437
|
-
protoOf(CommonOptions).
|
|
438
|
-
return this.
|
|
430
|
+
this.q4c_1 = option(this, Options_Input_getInstance().y4b_1.slice(), 'Input').n48(this, input$factory());
|
|
431
|
+
this.r4c_1 = option(this, Options_Output_getInstance().y4b_1.slice(), 'Output').n48(this, output$factory());
|
|
432
|
+
this.s4c_1 = default_0(option(this, Options_PackageName_getInstance().y4b_1.slice(), 'Package name'), 'community.flock.wirespec.generated').n48(this, packageName$factory());
|
|
433
|
+
this.t4c_1 = default_0(option(this, Options_LogLevel_getInstance().y4b_1.slice(), 'Log level: ' + Companion_instance.toString()), Level_ERROR_getInstance().toString()).n48(this, logLevel$factory());
|
|
434
|
+
this.u4c_1 = flag(option(this, Options_Shared_getInstance().y4b_1.slice(), 'Generate shared wirespec code'), [], false).n48(this, shared$factory());
|
|
435
|
+
this.v4c_1 = flag(option(this, Options_Strict_getInstance().y4b_1.slice(), 'Strict mode'), []).n48(this, strict$factory());
|
|
436
|
+
}
|
|
437
|
+
protoOf(CommonOptions).w4c = function () {
|
|
438
|
+
return this.q4c_1.d48(this, input$factory_0());
|
|
439
439
|
};
|
|
440
|
-
protoOf(CommonOptions).
|
|
441
|
-
return this.
|
|
440
|
+
protoOf(CommonOptions).y4c = function () {
|
|
441
|
+
return this.r4c_1.d48(this, output$factory_0());
|
|
442
442
|
};
|
|
443
|
-
protoOf(CommonOptions).
|
|
444
|
-
return this.
|
|
443
|
+
protoOf(CommonOptions).x4c = function () {
|
|
444
|
+
return this.s4c_1.d48(this, packageName$factory_0());
|
|
445
445
|
};
|
|
446
|
-
protoOf(CommonOptions).
|
|
447
|
-
return this.
|
|
446
|
+
protoOf(CommonOptions).a4d = function () {
|
|
447
|
+
return this.t4c_1.d48(this, logLevel$factory_0());
|
|
448
448
|
};
|
|
449
449
|
protoOf(CommonOptions).z25 = function () {
|
|
450
|
-
return this.
|
|
450
|
+
return this.u4c_1.d48(this, shared$factory_0());
|
|
451
451
|
};
|
|
452
|
-
protoOf(CommonOptions).
|
|
453
|
-
return this.
|
|
452
|
+
protoOf(CommonOptions).c4d = function () {
|
|
453
|
+
return this.v4c_1.d48(this, strict$factory_0());
|
|
454
454
|
};
|
|
455
|
-
protoOf(CommonOptions).
|
|
455
|
+
protoOf(CommonOptions).b4d = function (_this__u8e3s4) {
|
|
456
456
|
// Inline function 'kotlin.text.uppercase' call
|
|
457
457
|
// Inline function 'kotlin.text.trim' call
|
|
458
458
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -475,7 +475,7 @@ protoOf(CommonOptions).v4c = function (_this__u8e3s4) {
|
|
|
475
475
|
}
|
|
476
476
|
return tmp;
|
|
477
477
|
};
|
|
478
|
-
protoOf(CommonOptions).
|
|
478
|
+
protoOf(CommonOptions).z4c = function (directory) {
|
|
479
479
|
return CommonOptions$writer$lambda(directory, this);
|
|
480
480
|
};
|
|
481
481
|
var Options_Input_instance;
|
|
@@ -500,7 +500,7 @@ function Options_initEntries() {
|
|
|
500
500
|
}
|
|
501
501
|
function Options(name, ordinal, flags) {
|
|
502
502
|
Enum.call(this, name, ordinal);
|
|
503
|
-
this.
|
|
503
|
+
this.y4b_1 = flags;
|
|
504
504
|
}
|
|
505
505
|
function handleError(string) {
|
|
506
506
|
throw new CliktError(string);
|
|
@@ -633,22 +633,22 @@ function languages$factory_2() {
|
|
|
633
633
|
}
|
|
634
634
|
function input$factory() {
|
|
635
635
|
return getPropertyCallableRef('input', 1, KProperty1, function (receiver) {
|
|
636
|
-
return receiver.
|
|
636
|
+
return receiver.w4c();
|
|
637
637
|
}, null);
|
|
638
638
|
}
|
|
639
639
|
function output$factory() {
|
|
640
640
|
return getPropertyCallableRef('output', 1, KProperty1, function (receiver) {
|
|
641
|
-
return receiver.
|
|
641
|
+
return receiver.y4c();
|
|
642
642
|
}, null);
|
|
643
643
|
}
|
|
644
644
|
function packageName$factory() {
|
|
645
645
|
return getPropertyCallableRef('packageName', 1, KProperty1, function (receiver) {
|
|
646
|
-
return receiver.
|
|
646
|
+
return receiver.x4c();
|
|
647
647
|
}, null);
|
|
648
648
|
}
|
|
649
649
|
function logLevel$factory() {
|
|
650
650
|
return getPropertyCallableRef('logLevel', 1, KProperty1, function (receiver) {
|
|
651
|
-
return receiver.
|
|
651
|
+
return receiver.a4d();
|
|
652
652
|
}, null);
|
|
653
653
|
}
|
|
654
654
|
function shared$factory() {
|
|
@@ -658,27 +658,27 @@ function shared$factory() {
|
|
|
658
658
|
}
|
|
659
659
|
function strict$factory() {
|
|
660
660
|
return getPropertyCallableRef('strict', 1, KProperty1, function (receiver) {
|
|
661
|
-
return receiver.
|
|
661
|
+
return receiver.c4d();
|
|
662
662
|
}, null);
|
|
663
663
|
}
|
|
664
664
|
function input$factory_0() {
|
|
665
665
|
return getPropertyCallableRef('input', 1, KProperty1, function (receiver) {
|
|
666
|
-
return receiver.
|
|
666
|
+
return receiver.w4c();
|
|
667
667
|
}, null);
|
|
668
668
|
}
|
|
669
669
|
function output$factory_0() {
|
|
670
670
|
return getPropertyCallableRef('output', 1, KProperty1, function (receiver) {
|
|
671
|
-
return receiver.
|
|
671
|
+
return receiver.y4c();
|
|
672
672
|
}, null);
|
|
673
673
|
}
|
|
674
674
|
function packageName$factory_0() {
|
|
675
675
|
return getPropertyCallableRef('packageName', 1, KProperty1, function (receiver) {
|
|
676
|
-
return receiver.
|
|
676
|
+
return receiver.x4c();
|
|
677
677
|
}, null);
|
|
678
678
|
}
|
|
679
679
|
function logLevel$factory_0() {
|
|
680
680
|
return getPropertyCallableRef('logLevel', 1, KProperty1, function (receiver) {
|
|
681
|
-
return receiver.
|
|
681
|
+
return receiver.a4d();
|
|
682
682
|
}, null);
|
|
683
683
|
}
|
|
684
684
|
function shared$factory_0() {
|
|
@@ -688,7 +688,7 @@ function shared$factory_0() {
|
|
|
688
688
|
}
|
|
689
689
|
function strict$factory_0() {
|
|
690
690
|
return getPropertyCallableRef('strict', 1, KProperty1, function (receiver) {
|
|
691
|
-
return receiver.
|
|
691
|
+
return receiver.c4d();
|
|
692
692
|
}, null);
|
|
693
693
|
}
|
|
694
694
|
function main(args) {
|
|
@@ -719,7 +719,7 @@ function main(args) {
|
|
|
719
719
|
// Inline function 'kotlin.contracts.contract' call
|
|
720
720
|
var tmp = Companion_instance_4;
|
|
721
721
|
var tmp_0 = compile$ref();
|
|
722
|
-
tmp.
|
|
722
|
+
tmp.v4a(tmp_0, convert$ref()).q3y(destination);
|
|
723
723
|
}
|
|
724
724
|
function compile$ref() {
|
|
725
725
|
var l = function (p0) {
|
|
@@ -763,7 +763,7 @@ function parser(source) {
|
|
|
763
763
|
noWhenBranchMatchedException();
|
|
764
764
|
}
|
|
765
765
|
}
|
|
766
|
-
var this_1 = tmp.
|
|
766
|
+
var this_1 = tmp.f29_1;
|
|
767
767
|
var tmp_0 = this_1.ik_1.s26_1.gk();
|
|
768
768
|
// Inline function 'kotlin.collections.flatMap' call
|
|
769
769
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -117,7 +117,7 @@ function Shared_initEntries() {
|
|
|
117
117
|
Shared_entriesInitialized = true;
|
|
118
118
|
Shared_KOTLIN_instance = new Shared('KOTLIN', 0, KotlinShared_getInstance().e28_1);
|
|
119
119
|
Shared_JAVA_instance = new Shared('JAVA', 1, JavaShared_getInstance().e26_1);
|
|
120
|
-
Shared_TYPESCRIPT_instance = new Shared('TYPESCRIPT', 2, TypeScriptShared_getInstance().
|
|
120
|
+
Shared_TYPESCRIPT_instance = new Shared('TYPESCRIPT', 2, TypeScriptShared_getInstance().k29_1);
|
|
121
121
|
}
|
|
122
122
|
function Shared(name, ordinal, source) {
|
|
123
123
|
Enum.call(this, name, ordinal);
|
|
@@ -241,13 +241,13 @@ function convert(source, converters) {
|
|
|
241
241
|
var tmp;
|
|
242
242
|
switch (converters.r2_1) {
|
|
243
243
|
case 0:
|
|
244
|
-
tmp = produce_1(OpenAPIV2Parser_instance.
|
|
244
|
+
tmp = produce_1(OpenAPIV2Parser_instance.l2e(new ModuleContent('', source), true));
|
|
245
245
|
break;
|
|
246
246
|
case 1:
|
|
247
|
-
tmp = produce_1(OpenAPIV3Parser_instance.
|
|
247
|
+
tmp = produce_1(OpenAPIV3Parser_instance.l2e(new ModuleContent('', source), true));
|
|
248
248
|
break;
|
|
249
249
|
case 2:
|
|
250
|
-
tmp = produce_1(AvroParser_instance.
|
|
250
|
+
tmp = produce_1(AvroParser_instance.l2e(new ModuleContent('', source), true));
|
|
251
251
|
break;
|
|
252
252
|
default:
|
|
253
253
|
noWhenBranchMatchedException();
|
|
@@ -333,7 +333,7 @@ function emit(ast, emitter, packageName, emitShared) {
|
|
|
333
333
|
var tmp0_iterator_0 = this_1.g();
|
|
334
334
|
while (tmp0_iterator_0.h()) {
|
|
335
335
|
var item_0 = tmp0_iterator_0.i();
|
|
336
|
-
var tmp$ret$3 = tmp1_map_$receiver.
|
|
336
|
+
var tmp$ret$3 = tmp1_map_$receiver.s2e(item_0);
|
|
337
337
|
destination_1.e(tmp$ret$3);
|
|
338
338
|
}
|
|
339
339
|
|
|
@@ -375,7 +375,7 @@ function emit(ast, emitter, packageName, emitShared) {
|
|
|
375
375
|
while (tmp0_iterator_3.h()) {
|
|
376
376
|
var item_3 = tmp0_iterator_3.i();
|
|
377
377
|
// Inline function 'community.flock.wirespec.plugin.npm.emit.<anonymous>.<anonymous>' call
|
|
378
|
-
var tmp$ret$11 = OpenAPIV3Emitter_getInstance().
|
|
378
|
+
var tmp$ret$11 = OpenAPIV3Emitter_getInstance().j2f(item_3, null);
|
|
379
379
|
destination_4.e(tmp$ret$11);
|
|
380
380
|
}
|
|
381
381
|
|
|
@@ -417,7 +417,7 @@ function emit(ast, emitter, packageName, emitShared) {
|
|
|
417
417
|
while (tmp0_iterator_6.h()) {
|
|
418
418
|
var item_6 = tmp0_iterator_6.i();
|
|
419
419
|
// Inline function 'community.flock.wirespec.plugin.npm.emit.<anonymous>.<anonymous>' call
|
|
420
|
-
var tmp$ret$19 = AvroEmitter_getInstance().
|
|
420
|
+
var tmp$ret$19 = AvroEmitter_getInstance().m2d(item_6);
|
|
421
421
|
destination_7.e(tmp$ret$19);
|
|
422
422
|
}
|
|
423
423
|
|
|
@@ -99,7 +99,7 @@ function generateReference(_this__u8e3s4, ref, random) {
|
|
|
99
99
|
} else {
|
|
100
100
|
// Inline function 'kotlin.let' call
|
|
101
101
|
// Inline function 'kotlin.contracts.contract' call
|
|
102
|
-
var p0_2 = Companion_instance.
|
|
102
|
+
var p0_2 = Companion_instance.e4e('\\w{1,50}').n4e(random);
|
|
103
103
|
tmp_0 = JsonPrimitive(p0_2);
|
|
104
104
|
}
|
|
105
105
|
}
|
|
@@ -147,7 +147,7 @@ function generateIterator(_this__u8e3s4, def, random) {
|
|
|
147
147
|
function resolveReference(_this__u8e3s4, type) {
|
|
148
148
|
// Inline function 'kotlin.collections.find' call
|
|
149
149
|
// Inline function 'arrow.core.NonEmptyList.flatMap' call
|
|
150
|
-
var this_0 = _this__u8e3s4.
|
|
150
|
+
var this_0 = _this__u8e3s4.f29_1;
|
|
151
151
|
// Inline function 'community.flock.wirespec.generator.resolveReference.<anonymous>' call
|
|
152
152
|
var tmp = this_0.ik_1.s26_1.gk();
|
|
153
153
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -283,7 +283,7 @@ function randomRegex(regex, random) {
|
|
|
283
283
|
var endIndex = regex.length - 2 | 0;
|
|
284
284
|
// Inline function 'kotlin.js.asDynamic' call
|
|
285
285
|
var tmp$ret$1 = regex.substring(1, endIndex);
|
|
286
|
-
return tmp.
|
|
286
|
+
return tmp.e4e(tmp$ret$1).n4e(random);
|
|
287
287
|
}
|
|
288
288
|
//region block: exports
|
|
289
289
|
export {
|