@flock/wirespec 0.14.30 → 0.15.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.mjs +1125 -1125
- package/colormath-root-colormath.mjs +400 -400
- package/kotlin-kotlin-stdlib.mjs +11 -11
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-rgxgen.mjs +1764 -1764
- package/kotlinx-io-kotlinx-io-core.mjs +371 -371
- package/markdown.mjs +1816 -1816
- package/mordant-mordant.mjs +1531 -1531
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +632 -508
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +269 -269
- package/wirespec-src-converter-avro.mjs +263 -263
- package/wirespec-src-converter-openapi.mjs +171 -171
- package/wirespec-src-plugin-arguments.mjs +119 -119
- package/wirespec-src-plugin-cli.mjs +61 -61
- package/wirespec-src-plugin-npm.d.ts +1 -1
- package/wirespec-src-plugin-npm.mjs +13 -12
- package/wirespec-src-plugin-npm.mjs.map +1 -1
- package/wirespec-src-tools-generator.mjs +3 -3
|
@@ -146,7 +146,7 @@ function SpecificFile(extension) {
|
|
|
146
146
|
}
|
|
147
147
|
function Companion() {
|
|
148
148
|
}
|
|
149
|
-
protoOf(Companion).
|
|
149
|
+
protoOf(Companion).h4b = function (compile, convert) {
|
|
150
150
|
return subcommands(new WirespecCli(), [new Compile(compile), new Convert(convert)]);
|
|
151
151
|
};
|
|
152
152
|
var Companion_instance_3;
|
|
@@ -157,7 +157,7 @@ function WirespecCli() {
|
|
|
157
157
|
NoOpCliktCommand.call(this, VOID, VOID, 'wirespec');
|
|
158
158
|
}
|
|
159
159
|
function _get_languages__ojonze($this) {
|
|
160
|
-
return $this.
|
|
160
|
+
return $this.g4c_1.o48($this, languages$factory_0());
|
|
161
161
|
}
|
|
162
162
|
function run$handleError(p0) {
|
|
163
163
|
handleError(p0);
|
|
@@ -188,14 +188,14 @@ function Compile$run$handleError$ref() {
|
|
|
188
188
|
}
|
|
189
189
|
function Compile(compiler) {
|
|
190
190
|
CommonOptions.call(this);
|
|
191
|
-
this.
|
|
192
|
-
this.
|
|
191
|
+
this.f4c_1 = compiler;
|
|
192
|
+
this.g4c_1 = multiple(choice(option(this, Options_Language_getInstance().j4c_1.slice(), 'Language'), Companion_instance_1.g2j(), VOID, true), VOID, true).z48(this, languages$factory());
|
|
193
193
|
}
|
|
194
|
-
protoOf(Compile).
|
|
194
|
+
protoOf(Compile).d3z = 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.h4d());
|
|
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).e3z = function () {
|
|
|
205
205
|
} else {
|
|
206
206
|
if (this_0 instanceof Left) {
|
|
207
207
|
var it = this_0.jk_1;
|
|
208
|
-
throw new CliktError(it.
|
|
208
|
+
throw new CliktError(it.l2k_1);
|
|
209
209
|
} else {
|
|
210
210
|
noWhenBranchMatchedException();
|
|
211
211
|
}
|
|
@@ -219,13 +219,13 @@ protoOf(Compile).e3z = function () {
|
|
|
219
219
|
throw new NoClasspathPossible();
|
|
220
220
|
} else {
|
|
221
221
|
if (inputPath instanceof DirectoryPath) {
|
|
222
|
-
var tmp_1 = wirespecSources(new Directory(inputPath.
|
|
222
|
+
var tmp_1 = wirespecSources(new Directory(inputPath.h2k_1));
|
|
223
223
|
tmp_0 = or(tmp_1, handleError$ref()).cl_1;
|
|
224
224
|
} else {
|
|
225
225
|
if (inputPath instanceof FilePath) {
|
|
226
226
|
var tmp_2;
|
|
227
|
-
if (inputPath.
|
|
228
|
-
tmp_2 = nonEmptySetOf(new Source(inputPath.
|
|
227
|
+
if (inputPath.k2k_1.r2_1 === 4) {
|
|
228
|
+
tmp_2 = nonEmptySetOf(new Source(inputPath.j2k_1, read(inputPath)), []);
|
|
229
229
|
} else {
|
|
230
230
|
throw new WirespecFileError();
|
|
231
231
|
}
|
|
@@ -237,19 +237,19 @@ protoOf(Compile).e3z = function () {
|
|
|
237
237
|
}
|
|
238
238
|
}
|
|
239
239
|
var sources = tmp_0;
|
|
240
|
-
var emitters = toEmitters(_get_languages__ojonze(this), Companion_instance_0.h26(this.
|
|
241
|
-
var tmp_3 = getOutPutPath(inputPath, this.
|
|
242
|
-
var tmp_4 = new Directory(or(tmp_3, handleError$ref_0()).
|
|
240
|
+
var emitters = toEmitters(_get_languages__ojonze(this), Companion_instance_0.h26(this.i4d()), new EmitShared(this.k26()));
|
|
241
|
+
var tmp_3 = getOutPutPath(inputPath, this.j4d());
|
|
242
|
+
var tmp_4 = new Directory(or(tmp_3, handleError$ref_0()).h2k_1);
|
|
243
243
|
var tmp_5 = Compile$run$lambda;
|
|
244
|
-
var tmp2 = new CompilerArguments(sources, tmp_4, emitters, tmp_5, Compile$run$handleError$ref(), Companion_instance_0.h26(this.
|
|
244
|
+
var tmp2 = new CompilerArguments(sources, tmp_4, emitters, tmp_5, Compile$run$handleError$ref(), Companion_instance_0.h26(this.i4d()), new Logger(this.l4d(this.k4d())), this.k26(), this.m4d());
|
|
245
245
|
// Inline function 'kotlin.let' call
|
|
246
|
-
this.
|
|
246
|
+
this.f4c_1(tmp2);
|
|
247
247
|
};
|
|
248
248
|
function _get_format__qlarck($this) {
|
|
249
|
-
return $this.
|
|
249
|
+
return $this.l4e_1.o48($this, format$factory_0());
|
|
250
250
|
}
|
|
251
251
|
function _get_languages__ojonze_0($this) {
|
|
252
|
-
return $this.
|
|
252
|
+
return $this.m4e_1.o48($this, languages$factory_2());
|
|
253
253
|
}
|
|
254
254
|
function run$handleError_0(p0) {
|
|
255
255
|
handleError(p0);
|
|
@@ -280,7 +280,7 @@ function Convert$run$handleError$ref() {
|
|
|
280
280
|
}
|
|
281
281
|
function Convert(converter) {
|
|
282
282
|
CommonOptions.call(this);
|
|
283
|
-
this.
|
|
283
|
+
this.k4e_1 = converter;
|
|
284
284
|
var tmp = this;
|
|
285
285
|
// Inline function 'com.github.ajalt.clikt.parameters.types.enum' call
|
|
286
286
|
var this_0 = argument(this, VOID, 'Input format');
|
|
@@ -300,11 +300,11 @@ function Convert(converter) {
|
|
|
300
300
|
var tmp$ret$2 = element.q2_1;
|
|
301
301
|
destination.n2(tmp$ret$2, element);
|
|
302
302
|
}
|
|
303
|
-
tmp.
|
|
304
|
-
this.
|
|
303
|
+
tmp.l4e_1 = choice_0(this_0, destination, true).u47(this, format$factory());
|
|
304
|
+
this.m4e_1 = multiple(choice(option(this, Options_Language_getInstance().j4c_1.slice(), 'Language'), Companion_instance_1.g2j(), VOID, true)).z48(this, languages$factory_1());
|
|
305
305
|
}
|
|
306
|
-
protoOf(Convert).
|
|
307
|
-
var tmp = getFullPath(this.
|
|
306
|
+
protoOf(Convert).d3z = function () {
|
|
307
|
+
var tmp = getFullPath(this.h4d());
|
|
308
308
|
var inputPath = or(tmp, handleError$ref_1());
|
|
309
309
|
var tmp_0;
|
|
310
310
|
if (inputPath == null) {
|
|
@@ -318,8 +318,8 @@ protoOf(Convert).e3z = function () {
|
|
|
318
318
|
} else {
|
|
319
319
|
if (inputPath instanceof FilePath) {
|
|
320
320
|
var tmp_1;
|
|
321
|
-
if (inputPath.
|
|
322
|
-
tmp_1 = new Source(inputPath.
|
|
321
|
+
if (inputPath.k2k_1.r2_1 === 5) {
|
|
322
|
+
tmp_1 = new Source(inputPath.j2k_1, read(inputPath));
|
|
323
323
|
} else {
|
|
324
324
|
throw new JSONFileError();
|
|
325
325
|
}
|
|
@@ -331,44 +331,44 @@ protoOf(Convert).e3z = function () {
|
|
|
331
331
|
}
|
|
332
332
|
}
|
|
333
333
|
var source = tmp_0;
|
|
334
|
-
var emitters = toEmitters(_get_languages__ojonze_0(this), Companion_instance_0.h26(this.
|
|
334
|
+
var emitters = toEmitters(_get_languages__ojonze_0(this), Companion_instance_0.h26(this.i4d()), new EmitShared(this.k26()));
|
|
335
335
|
var tmp_2 = _get_format__qlarck(this);
|
|
336
336
|
var tmp_3 = nonEmptySetOf(source, []);
|
|
337
|
-
var tmp_4 = getOutPutPath(inputPath, this.
|
|
338
|
-
var tmp_5 = new Directory(or(tmp_4, handleError$ref_2()).
|
|
337
|
+
var tmp_4 = getOutPutPath(inputPath, this.j4d());
|
|
338
|
+
var tmp_5 = new Directory(or(tmp_4, handleError$ref_2()).h2k_1);
|
|
339
339
|
var tmp_6 = Convert$run$lambda;
|
|
340
|
-
var tmp0 = new ConverterArguments(tmp_2, tmp_3, tmp_5, emitters, tmp_6, Convert$run$handleError$ref(), Companion_instance_0.h26(this.
|
|
340
|
+
var tmp0 = new ConverterArguments(tmp_2, tmp_3, tmp_5, emitters, tmp_6, Convert$run$handleError$ref(), Companion_instance_0.h26(this.i4d()), new Logger(this.l4d(this.k4d())), this.k26(), this.m4d());
|
|
341
341
|
// Inline function 'kotlin.let' call
|
|
342
|
-
this.
|
|
342
|
+
this.k4e_1(tmp0);
|
|
343
343
|
};
|
|
344
344
|
function CommonOptions() {
|
|
345
345
|
CliktCommand.call(this);
|
|
346
|
-
this.
|
|
347
|
-
this.
|
|
348
|
-
this.
|
|
349
|
-
this.
|
|
350
|
-
this.
|
|
351
|
-
this.
|
|
352
|
-
}
|
|
353
|
-
protoOf(CommonOptions).
|
|
354
|
-
return this.
|
|
355
|
-
};
|
|
356
|
-
protoOf(CommonOptions).k4d = function () {
|
|
357
|
-
return this.d4d_1.p48(this, output$factory_0());
|
|
346
|
+
this.b4d_1 = option(this, Options_Input_getInstance().j4c_1.slice(), 'Input').z48(this, input$factory());
|
|
347
|
+
this.c4d_1 = option(this, Options_Output_getInstance().j4c_1.slice(), 'Output').z48(this, output$factory());
|
|
348
|
+
this.d4d_1 = default_0(option(this, Options_PackageName_getInstance().j4c_1.slice(), 'Package name'), 'community.flock.wirespec.generated').z48(this, packageName$factory());
|
|
349
|
+
this.e4d_1 = default_0(option(this, Options_LogLevel_getInstance().j4c_1.slice(), 'Log level: ' + Companion_instance.toString()), Level_ERROR_getInstance().toString()).z48(this, logLevel$factory());
|
|
350
|
+
this.f4d_1 = flag(option(this, Options_Shared_getInstance().j4c_1.slice(), 'Generate shared wirespec code'), [], false).z48(this, shared$factory());
|
|
351
|
+
this.g4d_1 = flag(option(this, Options_Strict_getInstance().j4c_1.slice(), 'Strict mode'), []).z48(this, strict$factory());
|
|
352
|
+
}
|
|
353
|
+
protoOf(CommonOptions).h4d = function () {
|
|
354
|
+
return this.b4d_1.o48(this, input$factory_0());
|
|
358
355
|
};
|
|
359
356
|
protoOf(CommonOptions).j4d = function () {
|
|
360
|
-
return this.
|
|
357
|
+
return this.c4d_1.o48(this, output$factory_0());
|
|
358
|
+
};
|
|
359
|
+
protoOf(CommonOptions).i4d = function () {
|
|
360
|
+
return this.d4d_1.o48(this, packageName$factory_0());
|
|
361
361
|
};
|
|
362
|
-
protoOf(CommonOptions).
|
|
363
|
-
return this.
|
|
362
|
+
protoOf(CommonOptions).k4d = function () {
|
|
363
|
+
return this.e4d_1.o48(this, logLevel$factory_0());
|
|
364
364
|
};
|
|
365
365
|
protoOf(CommonOptions).k26 = function () {
|
|
366
|
-
return this.
|
|
366
|
+
return this.f4d_1.o48(this, shared$factory_0());
|
|
367
367
|
};
|
|
368
|
-
protoOf(CommonOptions).
|
|
369
|
-
return this.
|
|
368
|
+
protoOf(CommonOptions).m4d = function () {
|
|
369
|
+
return this.g4d_1.o48(this, strict$factory_0());
|
|
370
370
|
};
|
|
371
|
-
protoOf(CommonOptions).
|
|
371
|
+
protoOf(CommonOptions).l4d = function (_this__u8e3s4) {
|
|
372
372
|
// Inline function 'kotlin.text.trim' call
|
|
373
373
|
// Inline function 'kotlin.text.uppercase' call
|
|
374
374
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -413,7 +413,7 @@ function Options_initEntries() {
|
|
|
413
413
|
}
|
|
414
414
|
function Options(name, ordinal, flags) {
|
|
415
415
|
Enum.call(this, name, ordinal);
|
|
416
|
-
this.
|
|
416
|
+
this.j4c_1 = flags;
|
|
417
417
|
}
|
|
418
418
|
function handleError(string) {
|
|
419
419
|
throw new CliktError(string);
|
|
@@ -526,22 +526,22 @@ function languages$factory_2() {
|
|
|
526
526
|
}
|
|
527
527
|
function input$factory() {
|
|
528
528
|
return getPropertyCallableRef('input', 1, KProperty1, function (receiver) {
|
|
529
|
-
return receiver.
|
|
529
|
+
return receiver.h4d();
|
|
530
530
|
}, null);
|
|
531
531
|
}
|
|
532
532
|
function output$factory() {
|
|
533
533
|
return getPropertyCallableRef('output', 1, KProperty1, function (receiver) {
|
|
534
|
-
return receiver.
|
|
534
|
+
return receiver.j4d();
|
|
535
535
|
}, null);
|
|
536
536
|
}
|
|
537
537
|
function packageName$factory() {
|
|
538
538
|
return getPropertyCallableRef('packageName', 1, KProperty1, function (receiver) {
|
|
539
|
-
return receiver.
|
|
539
|
+
return receiver.i4d();
|
|
540
540
|
}, null);
|
|
541
541
|
}
|
|
542
542
|
function logLevel$factory() {
|
|
543
543
|
return getPropertyCallableRef('logLevel', 1, KProperty1, function (receiver) {
|
|
544
|
-
return receiver.
|
|
544
|
+
return receiver.k4d();
|
|
545
545
|
}, null);
|
|
546
546
|
}
|
|
547
547
|
function shared$factory() {
|
|
@@ -551,27 +551,27 @@ function shared$factory() {
|
|
|
551
551
|
}
|
|
552
552
|
function strict$factory() {
|
|
553
553
|
return getPropertyCallableRef('strict', 1, KProperty1, function (receiver) {
|
|
554
|
-
return receiver.
|
|
554
|
+
return receiver.m4d();
|
|
555
555
|
}, null);
|
|
556
556
|
}
|
|
557
557
|
function input$factory_0() {
|
|
558
558
|
return getPropertyCallableRef('input', 1, KProperty1, function (receiver) {
|
|
559
|
-
return receiver.
|
|
559
|
+
return receiver.h4d();
|
|
560
560
|
}, null);
|
|
561
561
|
}
|
|
562
562
|
function output$factory_0() {
|
|
563
563
|
return getPropertyCallableRef('output', 1, KProperty1, function (receiver) {
|
|
564
|
-
return receiver.
|
|
564
|
+
return receiver.j4d();
|
|
565
565
|
}, null);
|
|
566
566
|
}
|
|
567
567
|
function packageName$factory_0() {
|
|
568
568
|
return getPropertyCallableRef('packageName', 1, KProperty1, function (receiver) {
|
|
569
|
-
return receiver.
|
|
569
|
+
return receiver.i4d();
|
|
570
570
|
}, null);
|
|
571
571
|
}
|
|
572
572
|
function logLevel$factory_0() {
|
|
573
573
|
return getPropertyCallableRef('logLevel', 1, KProperty1, function (receiver) {
|
|
574
|
-
return receiver.
|
|
574
|
+
return receiver.k4d();
|
|
575
575
|
}, null);
|
|
576
576
|
}
|
|
577
577
|
function shared$factory_0() {
|
|
@@ -581,7 +581,7 @@ function shared$factory_0() {
|
|
|
581
581
|
}
|
|
582
582
|
function strict$factory_0() {
|
|
583
583
|
return getPropertyCallableRef('strict', 1, KProperty1, function (receiver) {
|
|
584
|
-
return receiver.
|
|
584
|
+
return receiver.m4d();
|
|
585
585
|
}, null);
|
|
586
586
|
}
|
|
587
587
|
function main(args) {
|
|
@@ -615,7 +615,7 @@ function main(args) {
|
|
|
615
615
|
var tmp_0 = compile$ref();
|
|
616
616
|
// Inline function 'kotlin.let' call
|
|
617
617
|
// Inline function 'community.flock.wirespec.plugin.cli.main.stub_for_inlining' call
|
|
618
|
-
tmp.
|
|
618
|
+
tmp.h4b(tmp_0, convert$ref()).c3z(tmp4);
|
|
619
619
|
}
|
|
620
620
|
function compile$ref() {
|
|
621
621
|
var l = function (p0) {
|
|
@@ -657,7 +657,7 @@ function parser(source) {
|
|
|
657
657
|
}
|
|
658
658
|
}
|
|
659
659
|
// Inline function 'arrow.core.NonEmptyList.flatMap' call
|
|
660
|
-
var this_1 = tmp.
|
|
660
|
+
var this_1 = tmp.r29_1;
|
|
661
661
|
// Inline function 'community.flock.wirespec.plugin.cli.parser.stub_for_inlining' call
|
|
662
662
|
var tmp_0 = this_1.uk_1.d27_1.sk();
|
|
663
663
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -502,4 +502,4 @@ export declare function tokenize(source: string): Array<WsToken>;
|
|
|
502
502
|
export declare function parse(source: string): WsParseResult;
|
|
503
503
|
export declare function convert(source: string, converters: Converters): WsAST;
|
|
504
504
|
export declare function generate(source: string, type: string): WsStringResult;
|
|
505
|
-
export declare function emit(ast: WsAST, emitter: Emitters, packageName: string): Array<WsEmitted>;
|
|
505
|
+
export declare function emit(ast: WsAST, emitter: Emitters, packageName: string, emitShared: boolean): Array<WsEmitted>;
|
|
@@ -32,6 +32,7 @@ import {
|
|
|
32
32
|
parse24q0pxmbph48t as parse,
|
|
33
33
|
WirespecEmitterzy8hsjgf4ddx as WirespecEmitter,
|
|
34
34
|
get_noLogger1h44wq0vgj38h as get_noLogger,
|
|
35
|
+
EmitShared28lad9gpofiy4 as EmitShared,
|
|
35
36
|
TypeScriptEmitter15xnhgx1fp785 as TypeScriptEmitter,
|
|
36
37
|
Companion_instance102bxzj2ej5fu as Companion_instance,
|
|
37
38
|
JavaEmitter1iajkiqm8e1w2 as JavaEmitter,
|
|
@@ -116,7 +117,7 @@ function Shared_initEntries() {
|
|
|
116
117
|
Shared_entriesInitialized = true;
|
|
117
118
|
Shared_KOTLIN_instance = new Shared('KOTLIN', 0, KotlinShared_getInstance().r28_1);
|
|
118
119
|
Shared_JAVA_instance = new Shared('JAVA', 1, JavaShared_getInstance().p26_1);
|
|
119
|
-
Shared_TYPESCRIPT_instance = new Shared('TYPESCRIPT', 2, TypeScriptShared_getInstance().
|
|
120
|
+
Shared_TYPESCRIPT_instance = new Shared('TYPESCRIPT', 2, TypeScriptShared_getInstance().w29_1);
|
|
120
121
|
}
|
|
121
122
|
function Shared(name, ordinal, source) {
|
|
122
123
|
Enum.call(this, name, ordinal);
|
|
@@ -240,13 +241,13 @@ function convert(source, converters) {
|
|
|
240
241
|
var tmp;
|
|
241
242
|
switch (converters.r2_1) {
|
|
242
243
|
case 0:
|
|
243
|
-
tmp = produce_1(OpenAPIV2Parser_instance.
|
|
244
|
+
tmp = produce_1(OpenAPIV2Parser_instance.m2f(new ModuleContent('', source)));
|
|
244
245
|
break;
|
|
245
246
|
case 1:
|
|
246
|
-
tmp = produce_1(OpenAPIV3Parser_instance.
|
|
247
|
+
tmp = produce_1(OpenAPIV3Parser_instance.e2g(new ModuleContent('', source)));
|
|
247
248
|
break;
|
|
248
249
|
case 2:
|
|
249
|
-
tmp = produce_1(AvroParser_instance.
|
|
250
|
+
tmp = produce_1(AvroParser_instance.r2e(new ModuleContent('', source)));
|
|
250
251
|
break;
|
|
251
252
|
default:
|
|
252
253
|
noWhenBranchMatchedException();
|
|
@@ -277,7 +278,7 @@ function generate_0(source, type) {
|
|
|
277
278
|
var tmp$ret$3 = tmp;
|
|
278
279
|
return produce_2(tmp$ret$3);
|
|
279
280
|
}
|
|
280
|
-
function emit(ast, emitter, packageName) {
|
|
281
|
+
function emit(ast, emitter, packageName, emitShared) {
|
|
281
282
|
// Inline function 'kotlin.collections.map' call
|
|
282
283
|
var this_0 = ast.modules;
|
|
283
284
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -304,16 +305,16 @@ function emit(ast, emitter, packageName) {
|
|
|
304
305
|
tmp = (new WirespecEmitter()).m26(element, get_noLogger());
|
|
305
306
|
break;
|
|
306
307
|
case 1:
|
|
307
|
-
tmp = (new TypeScriptEmitter()).m26(element, get_noLogger());
|
|
308
|
+
tmp = (new TypeScriptEmitter(new EmitShared(emitShared))).m26(element, get_noLogger());
|
|
308
309
|
break;
|
|
309
310
|
case 2:
|
|
310
|
-
tmp = (new JavaEmitter(Companion_instance.h26(packageName))).m26(element, get_noLogger());
|
|
311
|
+
tmp = (new JavaEmitter(Companion_instance.h26(packageName), new EmitShared(emitShared))).m26(element, get_noLogger());
|
|
311
312
|
break;
|
|
312
313
|
case 3:
|
|
313
|
-
tmp = (new KotlinEmitter(Companion_instance.h26(packageName))).m26(element, get_noLogger());
|
|
314
|
+
tmp = (new KotlinEmitter(Companion_instance.h26(packageName), new EmitShared(emitShared))).m26(element, get_noLogger());
|
|
314
315
|
break;
|
|
315
316
|
case 4:
|
|
316
|
-
tmp = (new PythonEmitter()).m26(element, get_noLogger());
|
|
317
|
+
tmp = (new PythonEmitter(Companion_instance.h26(packageName), new EmitShared(emitShared))).m26(element, get_noLogger());
|
|
317
318
|
break;
|
|
318
319
|
case 5:
|
|
319
320
|
var tmp0 = listOf(element);
|
|
@@ -327,7 +328,7 @@ function emit(ast, emitter, packageName) {
|
|
|
327
328
|
while (_iterator__ex2g4s_0.h()) {
|
|
328
329
|
var item_0 = _iterator__ex2g4s_0.i();
|
|
329
330
|
// Inline function 'community.flock.wirespec.plugin.npm.emit.<anonymous>.stub_for_inlining' call
|
|
330
|
-
var tmp$ret$3 = tmp1_map_$receiver.
|
|
331
|
+
var tmp$ret$3 = tmp1_map_$receiver.y2e(item_0);
|
|
331
332
|
destination_1.e(tmp$ret$3);
|
|
332
333
|
}
|
|
333
334
|
|
|
@@ -370,7 +371,7 @@ function emit(ast, emitter, packageName) {
|
|
|
370
371
|
while (_iterator__ex2g4s_3.h()) {
|
|
371
372
|
var item_3 = _iterator__ex2g4s_3.i();
|
|
372
373
|
// Inline function 'community.flock.wirespec.plugin.npm.emit.<anonymous>.<anonymous>' call
|
|
373
|
-
var tmp$ret$11 = OpenAPIV3Emitter_getInstance().
|
|
374
|
+
var tmp$ret$11 = OpenAPIV3Emitter_getInstance().q2f(item_3, null);
|
|
374
375
|
destination_4.e(tmp$ret$11);
|
|
375
376
|
}
|
|
376
377
|
|
|
@@ -413,7 +414,7 @@ function emit(ast, emitter, packageName) {
|
|
|
413
414
|
while (_iterator__ex2g4s_6.h()) {
|
|
414
415
|
var item_6 = _iterator__ex2g4s_6.i();
|
|
415
416
|
// Inline function 'community.flock.wirespec.plugin.npm.emit.<anonymous>.<anonymous>' call
|
|
416
|
-
var tmp$ret$19 = AvroEmitter_getInstance().
|
|
417
|
+
var tmp$ret$19 = AvroEmitter_getInstance().r2d(item_6);
|
|
417
418
|
destination_7.e(tmp$ret$19);
|
|
418
419
|
}
|
|
419
420
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../src/jsMain/kotlin/community/flock/wirespec/plugin/npm/Main.kt","../../../../../../../../../../../arrow/arrow/arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow/core/NonEmptyList.kt","common/src/generated/_Collections.kt","js/src/kotlin/collectionJs.kt","../../../../../../../../../../../arrow/arrow/arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow/core/Either.kt","common/src/generated/_Arrays.kt","Z:/BuildAgent/work/b2fef8360e1bcf3d/core/commonMain/src/kotlinx/serialization/SerialFormat.kt","Z:/BuildAgent/work/b2fef8360e1bcf3d/core/commonMain/src/kotlinx/serialization/Serializers.kt","Z:/BuildAgent/work/b2fef8360e1bcf3d/core/commonMain/src/kotlinx/serialization/internal/Platform.common.kt"],"sourcesContent":[null,null,null,null,null,null,null,null,null],"names":["values","valueOf","value","<init>","source","<get-source>","cli","args","tokenize","item","parse","convert","converters","generate","type","emit","ast","emitter","packageName","element","list","encode","serializer","Emitted$<init>$ref","Emitted$<init>$ref$lambda","encode$lambda","$serializer","encode$lambda$lambda"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../../../../src/jsMain/kotlin/community/flock/wirespec/plugin/npm/Main.kt","../../../../../../../../../../../arrow/arrow/arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow/core/NonEmptyList.kt","common/src/generated/_Collections.kt","js/src/kotlin/collectionJs.kt","../../../../../../../../../../../arrow/arrow/arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow/core/Either.kt","common/src/generated/_Arrays.kt","Z:/BuildAgent/work/b2fef8360e1bcf3d/core/commonMain/src/kotlinx/serialization/SerialFormat.kt","Z:/BuildAgent/work/b2fef8360e1bcf3d/core/commonMain/src/kotlinx/serialization/Serializers.kt","Z:/BuildAgent/work/b2fef8360e1bcf3d/core/commonMain/src/kotlinx/serialization/internal/Platform.common.kt"],"sourcesContent":[null,null,null,null,null,null,null,null,null],"names":["values","valueOf","value","<init>","source","<get-source>","cli","args","tokenize","item","parse","convert","converters","generate","type","emit","ast","emitter","packageName","emitShared","element","list","encode","serializer","Emitted$<init>$ref","Emitted$<init>$ref$lambda","encode$lambda","$serializer","encode$lambda$lambda"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eA0CAA,CAAAA,E;;C;gBAAAC,CAAAC,KAAAD,E;;;;;;;;;;;;;C;;;;;;8EAEwB,K;wEACJ,K;0FACY,K;;eAHfE,C,eAACC,MAADD,EAAA;A;EAAC,oB;AAAD,C;+BAACE,CAAAA,EAAA;A,EAAA,kB;AAAiB,C;;;;;;;;;iBAMnCL,CAAAA,E;;C;kBAAAC,CAAAC,KAAAD,E;;;;;;;;;;;;;;;;;;;;;;;C;;;;;;;;;;;;;;;iBAAAE,C,aAAAA,EAAA;A;AAAA,C;;;;iBAYAH,CAAAA,E;;C;kBAAAC,CAAAC,KAAAD,E;;;;;;;;;;;;;C;;;;;;;;;;mBAAAE,C,aAAAA,EAAA;A;AAAA,C;YAOAG,CACQC,IADRD,EAC+B;A,EAAU,OAAV,KAAK,IAAL,C;AAAS,C;mBAExCE,CACaJ,MADbI,EAC+B;A;eAC1B,qCAAS,MAAT,C;;WC+GsB,M,CAAA,I;YD9Gb,QAAH,EAAG,C;;eC8GoB,M,CAAA,I;;oBC41CjB,wBAAa,gCAAwB,EAAxB,CAAb,C;MAuEA,oBAvEN,MAuEM,I;SAAA,qB,EACT;A,QADCC,OAAQ,qB;;oBFjhDH,QEkhDoB,IFlhDpB,C;IEkhDN,WAAY,GAAI,SAAJ,C;EAAmB,C;;eDp6CnC,sBCq6CO,WDr6CP,C;ED7Ge,OGjDmD,Y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CA,SAAQ,uB;;2BACO,mBFv+CH,CEu+Ca,MFv+Cb,C;UEu+Cb,aAAY,GAAI,UAAJ,C;QAAmB,C;;cAC5B,a;;;QF3/CH,8B;;;QE40CAY,OF50CA,G;IE60CY,OAAZ,aAAY,EAAO,IAAP,C;EAChB,C;;;uBAoGa,wBAAa,wBAnGnB,aAmGmB,EAAwB,EAAxB,CAAb,C;MAuEA,sBA1KN,aA0KM,I;SAAA,uB,EACT;A,QADCZ,SAAQ,uB;;qBFn+CH,UEo+CoB,MFp+CpB,C;IEo+CN,cAAY,GAAI,UAAJ,C;EAAmB,C;;EFn+CpB,OG/FmD,YDmkD3D,cCnkD2D,C;AH+FpD,C;eAElBa,CAAuBC,UAAvBD,EAA+D;A,EAAsD,OAAtD,yB;AAAqD,C;gBA7CxFnB,CAAAA,EAAA;AAAA,C;mBAUiCA,CAAAA,EAAA;AAAA,C;kCAmBxCqB,CAAAA,E;mBAAAC,C,MAAAA,EAAA;A;EAAQ,C;;;C;oCAKRD,CAAAA,E;mBAAAC,C,MAAAA,EAAA;A;EAAQ,C;;;C;oCAKRD,CAAAA,E;mBAAAC,C,MAAAA,EAAA;A;EAAQ,C;;;C;sBAMkCC,CAAxCC,WAAwCD,E;kBAAAE,CAAE1B,KAAF0B,EAAA;A,IAAoD,OAAjC,0BAAe,WAAf,EAA2B,KAA3B,C;EAAkC,C;C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -97,7 +97,7 @@ function generateReference(_this__u8e3s4, ref, random) {
|
|
|
97
97
|
} else {
|
|
98
98
|
// Inline function 'kotlin.let' call
|
|
99
99
|
// Inline function 'community.flock.wirespec.generator.generateReference.stub_for_inlining' call
|
|
100
|
-
var p0_2 = Companion_instance.
|
|
100
|
+
var p0_2 = Companion_instance.n4e('\\w{1,50}').w4e(random);
|
|
101
101
|
tmp_0 = JsonPrimitive(p0_2);
|
|
102
102
|
}
|
|
103
103
|
}
|
|
@@ -144,7 +144,7 @@ function generateIterator(_this__u8e3s4, def, random) {
|
|
|
144
144
|
}
|
|
145
145
|
function resolveReference(_this__u8e3s4, type) {
|
|
146
146
|
// Inline function 'arrow.core.NonEmptyList.flatMap' call
|
|
147
|
-
var this_0 = _this__u8e3s4.
|
|
147
|
+
var this_0 = _this__u8e3s4.r29_1;
|
|
148
148
|
// Inline function 'community.flock.wirespec.generator.resolveReference.<anonymous>' call
|
|
149
149
|
var tmp = this_0.uk_1.d27_1.sk();
|
|
150
150
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -278,7 +278,7 @@ function randomRegex(regex, random) {
|
|
|
278
278
|
var endIndex = regex.length - 2 | 0;
|
|
279
279
|
// Inline function 'kotlin.js.asDynamic' call
|
|
280
280
|
var tmp$ret$1 = regex.substring(1, endIndex);
|
|
281
|
-
return tmp.
|
|
281
|
+
return tmp.n4e(tmp$ret$1).w4e(random);
|
|
282
282
|
}
|
|
283
283
|
//region block: exports
|
|
284
284
|
export {
|