@flock/wirespec 0.22.7 → 0.23.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 +39 -39
- package/colormath-root-colormath.mjs +433 -433
- package/kotlin-kotlin-stdlib.mjs +115 -82
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +6385 -6385
- package/kotlin-rgxgen.mjs +1756 -1756
- package/kotlinx-io-kotlinx-io-core.mjs +404 -404
- package/mordant-mordant.mjs +1202 -1202
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +1603 -1889
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-java.mjs +45 -45
- package/wirespec-src-compiler-emitters-kotlin.mjs +39 -39
- package/wirespec-src-compiler-emitters-python.mjs +29 -29
- package/wirespec-src-compiler-emitters-rust.mjs +1335 -1950
- package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-scala.mjs +523 -37
- package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-typescript.mjs +26 -26
- package/wirespec-src-compiler-emitters-wirespec.mjs +44 -44
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-converter-asyncapi.mjs +447 -447
- package/wirespec-src-converter-graphql.mjs +1500 -986
- package/wirespec-src-converter-graphql.mjs.map +1 -1
- package/wirespec-src-converter-openapi.mjs +332 -332
- package/wirespec-src-ide-lsp.mjs +767 -767
- package/wirespec-src-plugin-arguments.mjs +165 -154
- package/wirespec-src-plugin-arguments.mjs.map +1 -1
- package/wirespec-src-plugin-cli.mjs +87 -87
- package/wirespec-src-plugin-extensions.mjs +2603 -694
- package/wirespec-src-plugin-extensions.mjs.map +1 -1
- package/wirespec-src-plugin-npm.d.mts +13 -9
- package/wirespec-src-plugin-npm.mjs +24 -14
- package/wirespec-src-plugin-npm.mjs.map +1 -1
- package/wirespec-src-tools-generator.mjs +2 -2
|
@@ -187,17 +187,17 @@ function sanitizeFirstIsDigit($this, $receiver) {
|
|
|
187
187
|
return tmp;
|
|
188
188
|
}
|
|
189
189
|
function sanitizeKeywords($this, $receiver) {
|
|
190
|
-
return Companion_getInstance_0().
|
|
190
|
+
return Companion_getInstance_0().g3j().i1($receiver) ? '_' + $receiver : $receiver;
|
|
191
191
|
}
|
|
192
192
|
function sanitizeEnum($this, $receiver) {
|
|
193
193
|
return sanitizeKeywords($this, sanitizeFirstIsDigit($this, joinToString(split($receiver, ['-', ', ', '.', ' ', '//']), '_')));
|
|
194
194
|
}
|
|
195
195
|
function Companion() {
|
|
196
196
|
Companion_instance_2 = this;
|
|
197
|
-
this.
|
|
197
|
+
this.f3j_1 = JavaGenerator_getInstance();
|
|
198
198
|
}
|
|
199
|
-
protoOf(Companion).
|
|
200
|
-
return this.
|
|
199
|
+
protoOf(Companion).g3j = function () {
|
|
200
|
+
return this.f3j_1.m1c_1;
|
|
201
201
|
};
|
|
202
202
|
var Companion_instance_2;
|
|
203
203
|
function Companion_getInstance_0() {
|
|
@@ -319,7 +319,7 @@ function JavaEmitter$emitGenerator$lambda_1(it) {
|
|
|
319
319
|
}
|
|
320
320
|
function JavaEmitter$emitGenerator$lambda_2(this$0) {
|
|
321
321
|
return function (it) {
|
|
322
|
-
return import_0(this$0.
|
|
322
|
+
return import_0(this$0.n3j().bt_1 + '.model', it);
|
|
323
323
|
};
|
|
324
324
|
}
|
|
325
325
|
function JavaEmitter$emit$lambda(this$0) {
|
|
@@ -339,26 +339,26 @@ function JavaEmitter(packageName, emitShared) {
|
|
|
339
339
|
Companion_getInstance_0();
|
|
340
340
|
packageName = packageName === VOID ? Companion_instance_0.at('community.flock.wirespec.generated') : packageName;
|
|
341
341
|
emitShared = emitShared === VOID ? Companion_instance_1.gq() : emitShared;
|
|
342
|
-
this.
|
|
343
|
-
this.
|
|
344
|
-
this.
|
|
345
|
-
this.
|
|
346
|
-
this.
|
|
342
|
+
this.h3j_1 = packageName;
|
|
343
|
+
this.i3j_1 = emitShared;
|
|
344
|
+
this.j3j_1 = JavaGenerator_getInstance();
|
|
345
|
+
this.k3j_1 = FileExtension_Java_getInstance();
|
|
346
|
+
this.l3j_1 = listOf(import_0('community.flock.wirespec.java', 'Wirespec'));
|
|
347
347
|
var tmp = this;
|
|
348
|
-
var tmp_0 = Companion_getInstance_0().
|
|
348
|
+
var tmp_0 = Companion_getInstance_0().g3j();
|
|
349
349
|
var tmp_1 = JavaEmitter$sanitizationConfig$lambda;
|
|
350
350
|
var tmp_2 = JavaEmitter$sanitizationConfig$lambda_0;
|
|
351
351
|
var tmp_3 = JavaEmitter$sanitizationConfig$lambda_1;
|
|
352
|
-
tmp.
|
|
352
|
+
tmp.m3j_1 = new SanitizationConfig(tmp_0, tmp_1, tmp_2, tmp_3, JavaEmitter$sanitizationConfig$lambda_2(this));
|
|
353
353
|
}
|
|
354
|
-
protoOf(JavaEmitter).
|
|
355
|
-
return this.
|
|
354
|
+
protoOf(JavaEmitter).n3j = function () {
|
|
355
|
+
return this.h3j_1;
|
|
356
356
|
};
|
|
357
357
|
protoOf(JavaEmitter).l1b = function () {
|
|
358
|
-
return this.
|
|
358
|
+
return this.j3j_1;
|
|
359
359
|
};
|
|
360
360
|
protoOf(JavaEmitter).xp = function () {
|
|
361
|
-
return this.
|
|
361
|
+
return this.k3j_1;
|
|
362
362
|
};
|
|
363
363
|
protoOf(JavaEmitter).g1b = function () {
|
|
364
364
|
var packageName = Companion_instance_0.at('community.flock.wirespec.java');
|
|
@@ -401,7 +401,7 @@ protoOf(JavaEmitter).g1b = function () {
|
|
|
401
401
|
var tmp_1 = scope.e19_1;
|
|
402
402
|
var wirespecShared = isInterface(tmp_1, Element) ? tmp_1 : THROW_CCE();
|
|
403
403
|
var tmp_2;
|
|
404
|
-
if (this.
|
|
404
|
+
if (this.i3j_1.hq_1) {
|
|
405
405
|
tmp_2 = wirespecShared;
|
|
406
406
|
} else {
|
|
407
407
|
tmp_2 = null;
|
|
@@ -412,7 +412,7 @@ protoOf(JavaEmitter).ds = function (definition, module_0, logger) {
|
|
|
412
412
|
var file = emit.call(this, definition, module_0, logger);
|
|
413
413
|
var tmp = file.jv(Companion_getInstance().au(sanitizeSymbol(this, file.fv_1.du())));
|
|
414
414
|
// Inline function 'kotlin.takeIf' call
|
|
415
|
-
var this_0 = this.
|
|
415
|
+
var this_0 = this.l3j_1;
|
|
416
416
|
var tmp_0;
|
|
417
417
|
if (Companion_instance.as(module_0)) {
|
|
418
418
|
tmp_0 = this_0;
|
|
@@ -420,7 +420,7 @@ protoOf(JavaEmitter).ds = function (definition, module_0, logger) {
|
|
|
420
420
|
tmp_0 = null;
|
|
421
421
|
}
|
|
422
422
|
var tmp$ret$0 = tmp_0;
|
|
423
|
-
return placeInPackage(prependImports(tmp, tmp$ret$0), this.
|
|
423
|
+
return placeInPackage(prependImports(tmp, tmp$ret$0), this.n3j(), definition);
|
|
424
424
|
};
|
|
425
425
|
protoOf(JavaEmitter).o1b = function (definition, module_0) {
|
|
426
426
|
var tmp;
|
|
@@ -442,33 +442,33 @@ protoOf(JavaEmitter).o1b = function (definition, module_0) {
|
|
|
442
442
|
}
|
|
443
443
|
}
|
|
444
444
|
var generatorFile = tmp;
|
|
445
|
-
var sanitized = sanitizeNames(generatorFile, this.
|
|
445
|
+
var sanitized = sanitizeNames(generatorFile, this.m3j_1);
|
|
446
446
|
var generatorOwnName = definition.es().o1() + 'Generator';
|
|
447
447
|
var tmp_0 = asSequence(collectCustomTypeNames(sanitized));
|
|
448
448
|
var tmp_1 = filterNot(tmp_0, JavaEmitter$emitGenerator$lambda);
|
|
449
449
|
var tmp_2 = filterNot(tmp_1, JavaEmitter$emitGenerator$lambda_0(generatorOwnName));
|
|
450
450
|
var tmp_3 = distinct(map(tmp_2, JavaEmitter$emitGenerator$lambda_1));
|
|
451
451
|
var modelImports = toList(map(tmp_3, JavaEmitter$emitGenerator$lambda_2(this)));
|
|
452
|
-
return placeInPackage_0(prependImports(sanitized, plus(this.
|
|
452
|
+
return placeInPackage_0(prependImports(sanitized, plus(this.l3j_1, modelImports)), this.n3j(), 'generator');
|
|
453
453
|
};
|
|
454
454
|
protoOf(JavaEmitter).vs = function (type, module_0) {
|
|
455
|
-
return sanitizeNames(convert_0(type), this.
|
|
455
|
+
return sanitizeNames(convert_0(type), this.m3j_1);
|
|
456
456
|
};
|
|
457
457
|
protoOf(JavaEmitter).ts = function (enum_0, module_0) {
|
|
458
458
|
var tmp = convert_1(enum_0);
|
|
459
459
|
var tmp_0 = JavaEmitter$emit$lambda(this);
|
|
460
|
-
return sanitizeNames(injectEnumLabelField(tmp, tmp_0, JavaEmitter$emit$lambda_0), this.
|
|
460
|
+
return sanitizeNames(injectEnumLabelField(tmp, tmp_0, JavaEmitter$emit$lambda_0), this.m3j_1);
|
|
461
461
|
};
|
|
462
462
|
protoOf(JavaEmitter).js = function (union) {
|
|
463
|
-
return sanitizeNames(convert_2(union), this.
|
|
463
|
+
return sanitizeNames(convert_2(union), this.m3j_1);
|
|
464
464
|
};
|
|
465
465
|
protoOf(JavaEmitter).os = function (refined) {
|
|
466
|
-
return sanitizeNames(applyRefinedStructShape(convert_3(refined), refined), this.
|
|
466
|
+
return sanitizeNames(applyRefinedStructShape(convert_3(refined), refined), this.m3j_1);
|
|
467
467
|
};
|
|
468
468
|
protoOf(JavaEmitter).us = function (endpoint) {
|
|
469
|
-
var tmp = sanitizeNames(transformTypeDescriptors(injectApi(convert_4(endpoint), endpoint)), this.
|
|
469
|
+
var tmp = sanitizeNames(transformTypeDescriptors(injectApi(convert_4(endpoint), endpoint)), this.m3j_1);
|
|
470
470
|
// Inline function 'kotlin.takeIf' call
|
|
471
|
-
var this_0 = buildModelImports(endpoint, this.
|
|
471
|
+
var this_0 = buildModelImports(endpoint, this.n3j());
|
|
472
472
|
var tmp_0;
|
|
473
473
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
474
474
|
if (!this_0.r()) {
|
|
@@ -482,17 +482,17 @@ protoOf(JavaEmitter).us = function (endpoint) {
|
|
|
482
482
|
protoOf(JavaEmitter).is = function (channel) {
|
|
483
483
|
var tmp;
|
|
484
484
|
if (channel.yq_1.o1() === channel.zq_1.o1()) {
|
|
485
|
-
tmp = this.
|
|
485
|
+
tmp = this.n3j().bt_1 + '.model.';
|
|
486
486
|
} else {
|
|
487
487
|
tmp = '';
|
|
488
488
|
}
|
|
489
489
|
var fullyQualifiedPrefix = tmp;
|
|
490
|
-
return qualifyChannelReferences(sanitizeNames(convert_5(channel), this.
|
|
490
|
+
return qualifyChannelReferences(sanitizeNames(convert_5(channel), this.m3j_1), fullyQualifiedPrefix);
|
|
491
491
|
};
|
|
492
492
|
protoOf(JavaEmitter).hs = function (rpc) {
|
|
493
|
-
var tmp = sanitizeNames(convert_6(rpc), this.
|
|
493
|
+
var tmp = sanitizeNames(convert_6(rpc), this.m3j_1);
|
|
494
494
|
// Inline function 'kotlin.takeIf' call
|
|
495
|
-
var this_0 = buildModelImports(rpc, this.
|
|
495
|
+
var this_0 = buildModelImports(rpc, this.n3j());
|
|
496
496
|
var tmp_0;
|
|
497
497
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
498
498
|
if (!this_0.r()) {
|
|
@@ -504,12 +504,12 @@ protoOf(JavaEmitter).hs = function (rpc) {
|
|
|
504
504
|
return prependImports(tmp, tmp$ret$0);
|
|
505
505
|
};
|
|
506
506
|
protoOf(JavaEmitter).n1b = function (endpoint) {
|
|
507
|
-
var imports = buildModelImports(endpoint, this.
|
|
508
|
-
var endpointImport = import_0(this.
|
|
507
|
+
var imports = buildModelImports(endpoint, this.n3j());
|
|
508
|
+
var endpointImport = import_0(this.n3j().bt_1 + '.endpoint', endpoint.gr_1.o1());
|
|
509
509
|
var endpointName = endpoint.gr_1.o1();
|
|
510
|
-
var file = wrapAsyncReturnInThenApply(transformTypeDescriptors(sanitizeNames(emitEndpointClient.call(this, endpoint), this.
|
|
511
|
-
var subPackageName = plus_1(this.
|
|
512
|
-
return new File(Companion_getInstance().au(subPackageName.dt() + sanitizeSymbol(this, file.fv_1.du())), plus(plus(plus(plus(listOf(new Package(subPackageName.bt_1)), this.
|
|
510
|
+
var file = wrapAsyncReturnInThenApply(transformTypeDescriptors(sanitizeNames(emitEndpointClient.call(this, endpoint), this.m3j_1)), endpointName);
|
|
511
|
+
var subPackageName = plus_1(this.n3j(), 'client');
|
|
512
|
+
return new File(Companion_getInstance().au(subPackageName.dt() + sanitizeSymbol(this, file.fv_1.du())), plus(plus(plus(plus(listOf(new Package(subPackageName.bt_1)), this.l3j_1), imports), listOf(endpointImport)), file.gv_1));
|
|
513
513
|
};
|
|
514
514
|
protoOf(JavaEmitter).h1b = function (endpoints, logger) {
|
|
515
515
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -571,7 +571,7 @@ protoOf(JavaEmitter).h1b = function (endpoints, logger) {
|
|
|
571
571
|
var _iterator__ex2g4s_3 = destination_0.t();
|
|
572
572
|
while (_iterator__ex2g4s_3.u()) {
|
|
573
573
|
var item = _iterator__ex2g4s_3.v();
|
|
574
|
-
var tmp$ret$12 = import_0(this.
|
|
574
|
+
var tmp$ret$12 = import_0(this.n3j().bt_1 + '.model', item.b1a_1);
|
|
575
575
|
destination_1.x(tmp$ret$12);
|
|
576
576
|
}
|
|
577
577
|
var imports = destination_1;
|
|
@@ -581,7 +581,7 @@ protoOf(JavaEmitter).h1b = function (endpoints, logger) {
|
|
|
581
581
|
var _iterator__ex2g4s_4 = endpoints.t();
|
|
582
582
|
while (_iterator__ex2g4s_4.u()) {
|
|
583
583
|
var item_0 = _iterator__ex2g4s_4.v();
|
|
584
|
-
var tmp$ret$15 = import_0(this.
|
|
584
|
+
var tmp$ret$15 = import_0(this.n3j().bt_1 + '.endpoint', item_0.gr_1.o1());
|
|
585
585
|
destination_2.x(tmp$ret$15);
|
|
586
586
|
}
|
|
587
587
|
var endpointImports = destination_2;
|
|
@@ -591,13 +591,13 @@ protoOf(JavaEmitter).h1b = function (endpoints, logger) {
|
|
|
591
591
|
var _iterator__ex2g4s_5 = endpoints.t();
|
|
592
592
|
while (_iterator__ex2g4s_5.u()) {
|
|
593
593
|
var item_1 = _iterator__ex2g4s_5.v();
|
|
594
|
-
var tmp$ret$18 = import_0(this.
|
|
594
|
+
var tmp$ret$18 = import_0(this.n3j().bt_1 + '.client', item_1.gr_1.o1() + 'Client');
|
|
595
595
|
destination_3.x(tmp$ret$18);
|
|
596
596
|
}
|
|
597
597
|
var clientImports = destination_3;
|
|
598
598
|
var allImports = plus(plus(imports, endpointImports), clientImports);
|
|
599
|
-
var file = sanitizeNames(emitClient.call(this, endpoints, logger), this.
|
|
600
|
-
return new File(Companion_getInstance().au(this.
|
|
599
|
+
var file = sanitizeNames(emitClient.call(this, endpoints, logger), this.m3j_1);
|
|
600
|
+
return new File(Companion_getInstance().au(this.n3j().dt() + sanitizeSymbol(this, file.fv_1.du())), plus(plus(plus(listOf(new Package(this.n3j().bt_1)), this.l3j_1), allImports), file.gv_1));
|
|
601
601
|
};
|
|
602
602
|
function transformTypeDescriptors(_this__u8e3s4) {
|
|
603
603
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transform' call
|
|
@@ -1042,10 +1042,10 @@ function buildApiStruct$lambda_0($pathTemplate, $this_buildApiStruct) {
|
|
|
1042
1042
|
return function ($this$struct) {
|
|
1043
1043
|
$this$struct.x15($this$struct.e15('Wirespec.Server', [$this$struct.e15('Request', []), $this$struct.e15('Response', [Wildcard_instance])]));
|
|
1044
1044
|
$this$struct.x15($this$struct.e15('Wirespec.Client', [$this$struct.e15('Request', []), $this$struct.e15('Response', [Wildcard_instance])]));
|
|
1045
|
-
$this$struct.
|
|
1046
|
-
$this$struct.
|
|
1047
|
-
$this$struct.
|
|
1048
|
-
$this$struct.
|
|
1045
|
+
$this$struct.l16('getPathTemplate', VOID, true, buildApiStruct$lambda$lambda($pathTemplate));
|
|
1046
|
+
$this$struct.l16('getMethod', VOID, true, buildApiStruct$lambda$lambda_0($this_buildApiStruct));
|
|
1047
|
+
$this$struct.l16('getServer', VOID, true, buildApiStruct$lambda$lambda_1);
|
|
1048
|
+
$this$struct.l16('getClient', VOID, true, buildApiStruct$lambda$lambda_2);
|
|
1049
1049
|
return Unit_instance;
|
|
1050
1050
|
};
|
|
1051
1051
|
}
|
|
@@ -126,14 +126,14 @@ initMetadataForCompanion(Companion);
|
|
|
126
126
|
initMetadataForClass(KotlinEmitter, 'KotlinEmitter', KotlinEmitter, VOID, [IrEmitter]);
|
|
127
127
|
//endregion
|
|
128
128
|
function _get_sanitizationConfig__sns434($this) {
|
|
129
|
-
var tmp0 = $this.
|
|
129
|
+
var tmp0 = $this.u3j_1;
|
|
130
130
|
var tmp = KProperty1;
|
|
131
131
|
// Inline function 'kotlin.getValue' call
|
|
132
132
|
getPropertyCallableRef('sanitizationConfig', 1, tmp, KotlinEmitter$_get_sanitizationConfig_$ref_sjisty(), null);
|
|
133
133
|
return tmp0.o1();
|
|
134
134
|
}
|
|
135
135
|
function _get_modelSanitizationConfig__vgg831($this) {
|
|
136
|
-
var tmp0 = $this.
|
|
136
|
+
var tmp0 = $this.v3j_1;
|
|
137
137
|
var tmp = KProperty1;
|
|
138
138
|
// Inline function 'kotlin.getValue' call
|
|
139
139
|
getPropertyCallableRef('modelSanitizationConfig', 1, tmp, KotlinEmitter$_get_modelSanitizationConfig_$ref_pvjfk5(), null);
|
|
@@ -217,7 +217,7 @@ function sanitizeFirstIsDigit($this, $receiver) {
|
|
|
217
217
|
return tmp;
|
|
218
218
|
}
|
|
219
219
|
function sanitizeKeywords($this, $receiver) {
|
|
220
|
-
return Companion_getInstance_0().
|
|
220
|
+
return Companion_getInstance_0().g3j().i1($receiver) ? addBackticks($receiver) : $receiver;
|
|
221
221
|
}
|
|
222
222
|
function sanitizeSymbol($this, $receiver) {
|
|
223
223
|
// Inline function 'kotlin.collections.mapIndexed' call
|
|
@@ -290,10 +290,10 @@ function sanitizeEnum($this, $receiver) {
|
|
|
290
290
|
}
|
|
291
291
|
function Companion() {
|
|
292
292
|
Companion_instance_2 = this;
|
|
293
|
-
this.
|
|
293
|
+
this.w3j_1 = KotlinGenerator_getInstance();
|
|
294
294
|
}
|
|
295
|
-
protoOf(Companion).
|
|
296
|
-
return this.
|
|
295
|
+
protoOf(Companion).g3j = function () {
|
|
296
|
+
return this.w3j_1.o1c_1;
|
|
297
297
|
};
|
|
298
298
|
var Companion_instance_2;
|
|
299
299
|
function Companion_getInstance_0() {
|
|
@@ -328,7 +328,7 @@ function KotlinEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
|
|
|
328
328
|
}
|
|
329
329
|
function KotlinEmitter$sanitizationConfig$delegate$lambda(this$0) {
|
|
330
330
|
return function () {
|
|
331
|
-
var tmp = Companion_getInstance_0().
|
|
331
|
+
var tmp = Companion_getInstance_0().g3j();
|
|
332
332
|
var tmp_0 = KotlinEmitter$sanitizationConfig$delegate$lambda$lambda;
|
|
333
333
|
var tmp_1 = KotlinEmitter$sanitizationConfig$delegate$lambda$lambda_0(this$0);
|
|
334
334
|
var tmp_2 = KotlinEmitter$sanitizationConfig$delegate$lambda$lambda_1(this$0);
|
|
@@ -392,7 +392,7 @@ function KotlinEmitter$statementTransforms$lambda($namedArguments, this$0) {
|
|
|
392
392
|
if (stmt instanceof VariableReference) {
|
|
393
393
|
var cased = _get_sanitizationConfig__sns434(this$0).e1d_1(stmt.ev_1);
|
|
394
394
|
var sanitized = _get_sanitizationConfig__sns434(this$0).f1d_1(cased.bu());
|
|
395
|
-
var escaped = Companion_getInstance_0().
|
|
395
|
+
var escaped = Companion_getInstance_0().g3j().i1(sanitized) ? addBackticks(sanitized) : sanitized;
|
|
396
396
|
tmp = new VariableReference(new Name(listOf(escaped)));
|
|
397
397
|
} else {
|
|
398
398
|
tmp = transformChildren(stmt, tr);
|
|
@@ -536,7 +536,7 @@ function KotlinEmitter$emitGenerator$lambda_1(it) {
|
|
|
536
536
|
}
|
|
537
537
|
function KotlinEmitter$emitGenerator$lambda_2(this$0) {
|
|
538
538
|
return function (it) {
|
|
539
|
-
return import_0(this$0.
|
|
539
|
+
return import_0(this$0.n3j().bt_1 + '.model', it);
|
|
540
540
|
};
|
|
541
541
|
}
|
|
542
542
|
function KotlinEmitter$emit$lambda(this$0) {
|
|
@@ -553,28 +553,28 @@ function KotlinEmitter(packageName, emitShared) {
|
|
|
553
553
|
Companion_getInstance_0();
|
|
554
554
|
packageName = packageName === VOID ? Companion_instance_0.at('community.flock.wirespec.generated') : packageName;
|
|
555
555
|
emitShared = emitShared === VOID ? Companion_instance_1.gq() : emitShared;
|
|
556
|
-
this.
|
|
557
|
-
this.
|
|
558
|
-
this.
|
|
559
|
-
this.
|
|
560
|
-
this.
|
|
561
|
-
this.
|
|
556
|
+
this.o3j_1 = packageName;
|
|
557
|
+
this.p3j_1 = emitShared;
|
|
558
|
+
this.q3j_1 = KotlinGenerator_getInstance();
|
|
559
|
+
this.r3j_1 = FileExtension_Kotlin_getInstance();
|
|
560
|
+
this.s3j_1 = true;
|
|
561
|
+
this.t3j_1 = listOf_0([import_0('community.flock.wirespec.kotlin', 'Wirespec'), import_0('kotlin.reflect', 'typeOf')]);
|
|
562
562
|
var tmp = this;
|
|
563
|
-
tmp.
|
|
563
|
+
tmp.u3j_1 = lazy(KotlinEmitter$sanitizationConfig$delegate$lambda(this));
|
|
564
564
|
var tmp_0 = this;
|
|
565
|
-
tmp_0.
|
|
565
|
+
tmp_0.v3j_1 = lazy(KotlinEmitter$modelSanitizationConfig$delegate$lambda(this));
|
|
566
566
|
}
|
|
567
|
-
protoOf(KotlinEmitter).
|
|
568
|
-
return this.
|
|
567
|
+
protoOf(KotlinEmitter).n3j = function () {
|
|
568
|
+
return this.o3j_1;
|
|
569
569
|
};
|
|
570
570
|
protoOf(KotlinEmitter).l1b = function () {
|
|
571
|
-
return this.
|
|
571
|
+
return this.q3j_1;
|
|
572
572
|
};
|
|
573
573
|
protoOf(KotlinEmitter).xp = function () {
|
|
574
|
-
return this.
|
|
574
|
+
return this.r3j_1;
|
|
575
575
|
};
|
|
576
576
|
protoOf(KotlinEmitter).wp = function () {
|
|
577
|
-
return this.
|
|
577
|
+
return this.s3j_1;
|
|
578
578
|
};
|
|
579
579
|
protoOf(KotlinEmitter).g1b = function () {
|
|
580
580
|
var packageName = Companion_instance_0.at('community.flock.wirespec.kotlin');
|
|
@@ -606,7 +606,7 @@ protoOf(KotlinEmitter).g1b = function () {
|
|
|
606
606
|
var tmp_1 = scope.e19_1;
|
|
607
607
|
var wirespecShared = isInterface(tmp_1, Element) ? tmp_1 : THROW_CCE();
|
|
608
608
|
var tmp_2;
|
|
609
|
-
if (this.
|
|
609
|
+
if (this.p3j_1.hq_1) {
|
|
610
610
|
tmp_2 = withExplicitVisibility(this, wirespecShared);
|
|
611
611
|
} else {
|
|
612
612
|
tmp_2 = null;
|
|
@@ -616,7 +616,7 @@ protoOf(KotlinEmitter).g1b = function () {
|
|
|
616
616
|
protoOf(KotlinEmitter).ds = function (definition, module_0, logger) {
|
|
617
617
|
var file = emit.call(this, definition, module_0, logger);
|
|
618
618
|
// Inline function 'kotlin.takeIf' call
|
|
619
|
-
var this_0 = this.
|
|
619
|
+
var this_0 = this.t3j_1;
|
|
620
620
|
var tmp;
|
|
621
621
|
if (Companion_instance.as(module_0)) {
|
|
622
622
|
tmp = this_0;
|
|
@@ -624,7 +624,7 @@ protoOf(KotlinEmitter).ds = function (definition, module_0, logger) {
|
|
|
624
624
|
tmp = null;
|
|
625
625
|
}
|
|
626
626
|
var tmp$ret$0 = tmp;
|
|
627
|
-
return placeInPackage(prependImports(file, tmp$ret$0), this.
|
|
627
|
+
return placeInPackage(prependImports(file, tmp$ret$0), this.n3j(), definition);
|
|
628
628
|
};
|
|
629
629
|
protoOf(KotlinEmitter).o1b = function (definition, module_0) {
|
|
630
630
|
var tmp;
|
|
@@ -659,7 +659,7 @@ protoOf(KotlinEmitter).o1b = function (definition, module_0) {
|
|
|
659
659
|
var tmp_3 = filterNot(tmp_2, KotlinEmitter$emitGenerator$lambda_0(generatorOwnName));
|
|
660
660
|
var tmp_4 = distinct(map(tmp_3, KotlinEmitter$emitGenerator$lambda_1));
|
|
661
661
|
var modelImports = toList(map(tmp_4, KotlinEmitter$emitGenerator$lambda_2(this)));
|
|
662
|
-
return placeInPackage_0(prependImports(sanitized, plus_0(this.
|
|
662
|
+
return placeInPackage_0(prependImports(sanitized, plus_0(this.t3j_1, modelImports)), this.n3j(), 'generator');
|
|
663
663
|
};
|
|
664
664
|
protoOf(KotlinEmitter).vs = function (type, module_0) {
|
|
665
665
|
var tmp = sanitizeNames(convert_0(type), _get_modelSanitizationConfig__vgg831(this));
|
|
@@ -691,7 +691,7 @@ protoOf(KotlinEmitter).os = function (refined) {
|
|
|
691
691
|
return new File(Companion_getInstance().au(sanitize(this, refined.ms_1)), listOfNotNull(updatedStruct));
|
|
692
692
|
};
|
|
693
693
|
protoOf(KotlinEmitter).us = function (endpoint) {
|
|
694
|
-
var imports = buildModelImports(endpoint, this.
|
|
694
|
+
var imports = buildModelImports(endpoint, this.n3j());
|
|
695
695
|
// Inline function 'community.flock.wirespec.compiler.core.ir.findElement' call
|
|
696
696
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
697
697
|
var tmp0 = convert_4(endpoint).hv();
|
|
@@ -722,7 +722,7 @@ protoOf(KotlinEmitter).us = function (endpoint) {
|
|
|
722
722
|
protoOf(KotlinEmitter).is = function (channel) {
|
|
723
723
|
var tmp = sanitizeNames(convert_5(channel), _get_sanitizationConfig__sns434(this));
|
|
724
724
|
// Inline function 'kotlin.takeIf' call
|
|
725
|
-
var this_0 = buildModelImports(channel, this.
|
|
725
|
+
var this_0 = buildModelImports(channel, this.n3j());
|
|
726
726
|
var tmp_0;
|
|
727
727
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
728
728
|
if (!this_0.r()) {
|
|
@@ -736,7 +736,7 @@ protoOf(KotlinEmitter).is = function (channel) {
|
|
|
736
736
|
protoOf(KotlinEmitter).hs = function (rpc) {
|
|
737
737
|
var tmp = sanitizeNames(convert_6(rpc), _get_sanitizationConfig__sns434(this));
|
|
738
738
|
// Inline function 'kotlin.takeIf' call
|
|
739
|
-
var this_0 = buildModelImports(rpc, this.
|
|
739
|
+
var this_0 = buildModelImports(rpc, this.n3j());
|
|
740
740
|
var tmp_0;
|
|
741
741
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
742
742
|
if (!this_0.r()) {
|
|
@@ -748,17 +748,17 @@ protoOf(KotlinEmitter).hs = function (rpc) {
|
|
|
748
748
|
return prependImports(tmp, tmp$ret$0);
|
|
749
749
|
};
|
|
750
750
|
protoOf(KotlinEmitter).n1b = function (endpoint) {
|
|
751
|
-
var imports = buildModelImports(endpoint, this.
|
|
752
|
-
var endpointImport = import_0(this.
|
|
751
|
+
var imports = buildModelImports(endpoint, this.n3j());
|
|
752
|
+
var endpointImport = import_0(this.n3j().bt_1 + '.endpoint', endpoint.gr_1.o1());
|
|
753
753
|
var file = sanitizeNames(emitEndpointClient.call(this, endpoint), _get_sanitizationConfig__sns434(this));
|
|
754
|
-
var subPackageName = plus_1(this.
|
|
754
|
+
var subPackageName = plus_1(this.n3j(), 'client');
|
|
755
755
|
var tmp = Companion_getInstance().au(subPackageName.dt() + file.fv_1.du());
|
|
756
756
|
// Inline function 'kotlin.collections.buildList' call
|
|
757
757
|
// Inline function 'kotlin.collections.buildListInternal' call
|
|
758
758
|
// Inline function 'kotlin.apply' call
|
|
759
759
|
var this_0 = ArrayList_init_$Create$_0();
|
|
760
760
|
this_0.x(new Package(subPackageName.bt_1));
|
|
761
|
-
this_0.g1(this.
|
|
761
|
+
this_0.g1(this.t3j_1);
|
|
762
762
|
this_0.g1(imports);
|
|
763
763
|
this_0.x(endpointImport);
|
|
764
764
|
this_0.g1(file.gv_1);
|
|
@@ -792,7 +792,7 @@ protoOf(KotlinEmitter).h1b = function (endpoints, logger) {
|
|
|
792
792
|
var _iterator__ex2g4s_1 = list_0.t();
|
|
793
793
|
while (_iterator__ex2g4s_1.u()) {
|
|
794
794
|
var item = _iterator__ex2g4s_1.v();
|
|
795
|
-
var tmp$ret$7 = import_0(this.
|
|
795
|
+
var tmp$ret$7 = import_0(this.n3j().bt_1 + '.model', item.b1a_1);
|
|
796
796
|
destination_0.x(tmp$ret$7);
|
|
797
797
|
}
|
|
798
798
|
var imports = destination_0;
|
|
@@ -802,7 +802,7 @@ protoOf(KotlinEmitter).h1b = function (endpoints, logger) {
|
|
|
802
802
|
var _iterator__ex2g4s_2 = endpoints.t();
|
|
803
803
|
while (_iterator__ex2g4s_2.u()) {
|
|
804
804
|
var item_0 = _iterator__ex2g4s_2.v();
|
|
805
|
-
var tmp$ret$10 = import_0(this.
|
|
805
|
+
var tmp$ret$10 = import_0(this.n3j().bt_1 + '.endpoint', item_0.gr_1.o1());
|
|
806
806
|
destination_1.x(tmp$ret$10);
|
|
807
807
|
}
|
|
808
808
|
var endpointImports = destination_1;
|
|
@@ -812,19 +812,19 @@ protoOf(KotlinEmitter).h1b = function (endpoints, logger) {
|
|
|
812
812
|
var _iterator__ex2g4s_3 = endpoints.t();
|
|
813
813
|
while (_iterator__ex2g4s_3.u()) {
|
|
814
814
|
var item_1 = _iterator__ex2g4s_3.v();
|
|
815
|
-
var tmp$ret$13 = import_0(this.
|
|
815
|
+
var tmp$ret$13 = import_0(this.n3j().bt_1 + '.client', item_1.gr_1.o1() + 'Client');
|
|
816
816
|
destination_2.x(tmp$ret$13);
|
|
817
817
|
}
|
|
818
818
|
var clientImports = destination_2;
|
|
819
819
|
var allImports = plus_0(plus_0(imports, endpointImports), clientImports);
|
|
820
820
|
var file = sanitizeNames(emitClient.call(this, endpoints, logger), _get_sanitizationConfig__sns434(this));
|
|
821
|
-
var tmp = Companion_getInstance().au(this.
|
|
821
|
+
var tmp = Companion_getInstance().au(this.n3j().dt() + file.fv_1.du());
|
|
822
822
|
// Inline function 'kotlin.collections.buildList' call
|
|
823
823
|
// Inline function 'kotlin.collections.buildListInternal' call
|
|
824
824
|
// Inline function 'kotlin.apply' call
|
|
825
825
|
var this_0 = ArrayList_init_$Create$_0();
|
|
826
|
-
this_0.x(new Package(this.
|
|
827
|
-
this_0.g1(this.
|
|
826
|
+
this_0.x(new Package(this.n3j().bt_1));
|
|
827
|
+
this_0.g1(this.t3j_1);
|
|
828
828
|
this_0.g1(allImports);
|
|
829
829
|
this_0.g1(file.gv_1);
|
|
830
830
|
var tmp$ret$14 = this_0.r5();
|
|
@@ -158,7 +158,7 @@ initMetadataForClass(sam$kotlin_Comparator$0, 'sam$kotlin_Comparator$0', VOID, V
|
|
|
158
158
|
initMetadataForClass(PythonEmitter, 'PythonEmitter', PythonEmitter, VOID, [IrEmitter]);
|
|
159
159
|
//endregion
|
|
160
160
|
function _get_sanitizationConfig__sns434($this) {
|
|
161
|
-
var tmp0 = $this.
|
|
161
|
+
var tmp0 = $this.b3k_1;
|
|
162
162
|
var tmp = KProperty1;
|
|
163
163
|
// Inline function 'kotlin.getValue' call
|
|
164
164
|
getPropertyCallableRef('sanitizationConfig', 1, tmp, PythonEmitter$_get_sanitizationConfig_$ref_crpgpd(), null);
|
|
@@ -221,7 +221,7 @@ function sanitize($this, $receiver) {
|
|
|
221
221
|
return tmp_2;
|
|
222
222
|
}
|
|
223
223
|
function sanitizeKeywords($this, $receiver) {
|
|
224
|
-
return Companion_getInstance_0().
|
|
224
|
+
return Companion_getInstance_0().g3j().i1($receiver) ? '_' + $receiver : $receiver;
|
|
225
225
|
}
|
|
226
226
|
function sanitizeEnum($this, $receiver) {
|
|
227
227
|
// Inline function 'kotlin.let' call
|
|
@@ -247,10 +247,10 @@ function buildImports($this, wirespecPath) {
|
|
|
247
247
|
}
|
|
248
248
|
function Companion() {
|
|
249
249
|
Companion_instance_2 = this;
|
|
250
|
-
this.
|
|
250
|
+
this.d3k_1 = PythonGenerator_getInstance();
|
|
251
251
|
}
|
|
252
|
-
protoOf(Companion).
|
|
253
|
-
return this.
|
|
252
|
+
protoOf(Companion).g3j = function () {
|
|
253
|
+
return this.d3k_1.q1c_1;
|
|
254
254
|
};
|
|
255
255
|
var Companion_instance_2;
|
|
256
256
|
function Companion_getInstance_0() {
|
|
@@ -259,16 +259,16 @@ function Companion_getInstance_0() {
|
|
|
259
259
|
return Companion_instance_2;
|
|
260
260
|
}
|
|
261
261
|
function sam$kotlin_Comparator$0(function_0) {
|
|
262
|
-
this.
|
|
262
|
+
this.e3k_1 = function_0;
|
|
263
263
|
}
|
|
264
264
|
protoOf(sam$kotlin_Comparator$0).zd = function (a, b) {
|
|
265
|
-
return this.
|
|
265
|
+
return this.e3k_1(a, b);
|
|
266
266
|
};
|
|
267
267
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
268
268
|
return this.zd(a, b);
|
|
269
269
|
};
|
|
270
270
|
protoOf(sam$kotlin_Comparator$0).p3 = function () {
|
|
271
|
-
return this.
|
|
271
|
+
return this.e3k_1;
|
|
272
272
|
};
|
|
273
273
|
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
274
274
|
var tmp;
|
|
@@ -330,7 +330,7 @@ function PythonEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
|
|
|
330
330
|
}
|
|
331
331
|
function PythonEmitter$sanitizationConfig$delegate$lambda(this$0) {
|
|
332
332
|
return function () {
|
|
333
|
-
var tmp = Companion_getInstance_0().
|
|
333
|
+
var tmp = Companion_getInstance_0().g3j();
|
|
334
334
|
var tmp_0 = PythonEmitter$sanitizationConfig$delegate$lambda$lambda;
|
|
335
335
|
var tmp_1 = PythonEmitter$sanitizationConfig$delegate$lambda$lambda_0;
|
|
336
336
|
var tmp_2 = PythonEmitter$sanitizationConfig$delegate$lambda$lambda_1;
|
|
@@ -394,25 +394,25 @@ function PythonEmitter(packageName, emitShared) {
|
|
|
394
394
|
Companion_getInstance_0();
|
|
395
395
|
packageName = packageName === VOID ? Companion_instance_0.at('community.flock.wirespec.generated') : packageName;
|
|
396
396
|
emitShared = emitShared === VOID ? Companion_instance_1.gq() : emitShared;
|
|
397
|
-
this.
|
|
398
|
-
this.
|
|
399
|
-
this.
|
|
400
|
-
this.
|
|
397
|
+
this.x3j_1 = packageName;
|
|
398
|
+
this.y3j_1 = emitShared;
|
|
399
|
+
this.z3j_1 = PythonGenerator_getInstance();
|
|
400
|
+
this.a3k_1 = FileExtension_Python_getInstance();
|
|
401
401
|
var tmp = this;
|
|
402
|
-
tmp.
|
|
403
|
-
this.
|
|
402
|
+
tmp.b3k_1 = lazy(PythonEmitter$sanitizationConfig$delegate$lambda(this));
|
|
403
|
+
this.c3k_1 = "from __future__ import annotations\n\nimport enum\nfrom abc import ABC, abstractmethod\nfrom dataclasses import dataclass\nfrom typing import Any, Callable, Generic, Optional, Type, TypeVar\n\nT = TypeVar('T')\nV = TypeVar('V')\n\n\ndef _raise(msg: str) -> Any:\n raise Exception(msg)\n\n";
|
|
404
404
|
}
|
|
405
405
|
protoOf(PythonEmitter).l1b = function () {
|
|
406
|
-
return this.
|
|
406
|
+
return this.z3j_1;
|
|
407
407
|
};
|
|
408
408
|
protoOf(PythonEmitter).xp = function () {
|
|
409
|
-
return this.
|
|
409
|
+
return this.a3k_1;
|
|
410
410
|
};
|
|
411
411
|
protoOf(PythonEmitter).g1b = function () {
|
|
412
412
|
var source = replaceReflectInNonGenericStructFields(convert(Companion_instance_0.at('shared')));
|
|
413
413
|
var tmp;
|
|
414
|
-
if (this.
|
|
415
|
-
tmp = new File(Companion_getInstance().au(this.
|
|
414
|
+
if (this.y3j_1.hq_1) {
|
|
415
|
+
tmp = new File(Companion_getInstance().au(this.x3j_1.dt() + 'wirespec'), listOf_0(raw(this.c3k_1 + PythonGenerator_getInstance().m1b(source))));
|
|
416
416
|
} else {
|
|
417
417
|
tmp = null;
|
|
418
418
|
}
|
|
@@ -453,7 +453,7 @@ protoOf(PythonEmitter).f1b = function (module_0, logger) {
|
|
|
453
453
|
tmp$ret$2 = false;
|
|
454
454
|
}
|
|
455
455
|
var hasEndpoints = tmp$ret$2;
|
|
456
|
-
var tmp_2 = Companion_getInstance().au(this.
|
|
456
|
+
var tmp_2 = Companion_getInstance().au(this.x3j_1.dt() + '__init__');
|
|
457
457
|
// Inline function 'kotlin.collections.buildList' call
|
|
458
458
|
// Inline function 'kotlin.collections.buildListInternal' call
|
|
459
459
|
// Inline function 'kotlin.apply' call
|
|
@@ -466,7 +466,7 @@ protoOf(PythonEmitter).f1b = function (module_0, logger) {
|
|
|
466
466
|
this_1.x(import_0('.', 'wirespec'));
|
|
467
467
|
var tmp$ret$4 = this_1.r5();
|
|
468
468
|
var init = new File(tmp_2, tmp$ret$4);
|
|
469
|
-
var tmp_3 = Companion_getInstance().au(this.
|
|
469
|
+
var tmp_3 = Companion_getInstance().au(this.x3j_1.dt() + 'endpoint/' + '__init__');
|
|
470
470
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
471
471
|
var tmp0_0 = new NonEmptyList(module_0.hp_1);
|
|
472
472
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
@@ -488,7 +488,7 @@ protoOf(PythonEmitter).f1b = function (module_0, logger) {
|
|
|
488
488
|
destination_0.x(tmp$ret$12);
|
|
489
489
|
}
|
|
490
490
|
var initEndpoint = new File(tmp_3, destination_0);
|
|
491
|
-
var tmp_4 = Companion_getInstance().au(this.
|
|
491
|
+
var tmp_4 = Companion_getInstance().au(this.x3j_1.dt() + 'model/' + '__init__');
|
|
492
492
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
493
493
|
var tmp0_1 = new NonEmptyList(module_0.hp_1);
|
|
494
494
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
@@ -510,8 +510,8 @@ protoOf(PythonEmitter).f1b = function (module_0, logger) {
|
|
|
510
510
|
destination_2.x(tmp$ret$17);
|
|
511
511
|
}
|
|
512
512
|
var initModel = new File(tmp_4, destination_2);
|
|
513
|
-
var initClient = hasEndpoints ? listOf_0(new File(Companion_getInstance().au(this.
|
|
514
|
-
var tmp0_2 = dropLast(split(this.
|
|
513
|
+
var initClient = hasEndpoints ? listOf_0(new File(Companion_getInstance().au(this.x3j_1.dt() + 'client/' + '__init__'), emptyList())) : emptyList();
|
|
514
|
+
var tmp0_2 = dropLast(split(this.x3j_1.bt_1, ['.']), 1);
|
|
515
515
|
var tmp$ret$18;
|
|
516
516
|
$l$block_1: {
|
|
517
517
|
// Inline function 'kotlin.collections.runningFold' call
|
|
@@ -552,11 +552,11 @@ protoOf(PythonEmitter).f1b = function (module_0, logger) {
|
|
|
552
552
|
destination_3.x(tmp$ret$25);
|
|
553
553
|
}
|
|
554
554
|
var parentInits = destination_3;
|
|
555
|
-
return this.
|
|
555
|
+
return this.y3j_1.hq_1 ? NonEmptyList__plus_impl_xqmb9_0(NonEmptyList__plus_impl_xqmb9_0(NonEmptyList__plus_impl_xqmb9(NonEmptyList__plus_impl_xqmb9(NonEmptyList__plus_impl_xqmb9(emitted, init), initEndpoint), initModel), initClient), parentInits) : NonEmptyList__plus_impl_xqmb9_0(NonEmptyList__plus_impl_xqmb9(emitted, init), parentInits);
|
|
556
556
|
};
|
|
557
557
|
protoOf(PythonEmitter).ds = function (definition, module_0, logger) {
|
|
558
558
|
var file = emit_0.call(this, definition, module_0, logger);
|
|
559
|
-
return placeInModule(prependImports(file, buildImports(this, '..wirespec')), this.
|
|
559
|
+
return placeInModule(prependImports(file, buildImports(this, '..wirespec')), this.x3j_1, definition);
|
|
560
560
|
};
|
|
561
561
|
protoOf(PythonEmitter).o1b = function (definition, module_0) {
|
|
562
562
|
var tmp;
|
|
@@ -632,7 +632,7 @@ protoOf(PythonEmitter).o1b = function (definition, module_0) {
|
|
|
632
632
|
destination_2.x(tmp$ret$14);
|
|
633
633
|
}
|
|
634
634
|
var modelImports = destination_2;
|
|
635
|
-
return placeInModule_0(prependImports(sanitized, plus(plus(buildImports(this, '..wirespec'), modelImports), generatorImports)), this.
|
|
635
|
+
return placeInModule_0(prependImports(sanitized, plus(plus(buildImports(this, '..wirespec'), modelImports), generatorImports)), this.x3j_1, 'generator');
|
|
636
636
|
};
|
|
637
637
|
protoOf(PythonEmitter).vs = function (type, module_0) {
|
|
638
638
|
// Inline function 'kotlin.collections.distinctBy' call
|
|
@@ -764,7 +764,7 @@ protoOf(PythonEmitter).n1b = function (endpoint) {
|
|
|
764
764
|
var endpointImport = import_0('..endpoint.' + endpoint.gr_1.o1(), '*');
|
|
765
765
|
var endpointName = endpoint.gr_1.o1();
|
|
766
766
|
var file = flattenEndpointTypeRefs(snakeCaseClientFunctions(addSelfReceiverToClientFields(sanitizeNames(emitEndpointClient.call(this, endpoint), _get_sanitizationConfig__sns434(this)))), endpointName);
|
|
767
|
-
var subPackageName = plus_1(this.
|
|
767
|
+
var subPackageName = plus_1(this.x3j_1, 'client');
|
|
768
768
|
return new File(Companion_getInstance().au(subPackageName.dt() + file.fv_1.du()), plus(plus(plus(buildImports(this, '..wirespec'), modelImports), listOf_0(endpointImport)), file.gv_1));
|
|
769
769
|
};
|
|
770
770
|
protoOf(PythonEmitter).h1b = function (endpoints, logger) {
|
|
@@ -839,7 +839,7 @@ protoOf(PythonEmitter).h1b = function (endpoints, logger) {
|
|
|
839
839
|
accumulator = flattenEndpointTypeRefs(acc, element_0);
|
|
840
840
|
}
|
|
841
841
|
var file = accumulator;
|
|
842
|
-
return new File(Companion_getInstance().au(this.
|
|
842
|
+
return new File(Companion_getInstance().au(this.x3j_1.dt() + file.fv_1.du()), plus(plus(buildImports(this, '.wirespec'), allImports), file.gv_1));
|
|
843
843
|
};
|
|
844
844
|
function replaceReflectInNonGenericStructFields(_this__u8e3s4) {
|
|
845
845
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transform' call
|