@flock/wirespec 0.22.4 → 0.22.6
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/arrow-arrow-core.mjs +13 -8
- package/arrow-arrow-core.mjs.map +1 -1
- package/clikt-clikt-mordant.mjs +79 -79
- package/clikt-clikt.mjs +1367 -1366
- package/clikt-clikt.mjs.map +1 -1
- package/colormath-root-colormath.mjs +436 -436
- package/kotlin-kotlin-stdlib.mjs +304 -239
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +10221 -10221
- package/kotlin-rgxgen.mjs +1771 -1771
- package/kotlinx-io-kotlinx-io-core.mjs +425 -425
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1824 -1824
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1509 -1509
- package/mordant-mordant.mjs +1246 -1246
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +5972 -5367
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-java.mjs +171 -187
- package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-kotlin.mjs +174 -165
- package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-python.mjs +147 -160
- package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-rust.mjs +356 -370
- package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-scala.mjs +165 -175
- package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-typescript.mjs +187 -313
- package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-wirespec.mjs +81 -81
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +194 -194
- package/wirespec-src-converter-asyncapi.mjs +545 -545
- package/wirespec-src-converter-avro.mjs +570 -514
- package/wirespec-src-converter-avro.mjs.map +1 -1
- package/wirespec-src-converter-common.mjs +11 -11
- package/wirespec-src-converter-graphql.mjs +942 -942
- package/wirespec-src-converter-openapi.mjs +453 -453
- package/wirespec-src-ide-lsp.mjs +1359 -1359
- package/wirespec-src-plugin-arguments.mjs +419 -224
- package/wirespec-src-plugin-arguments.mjs.map +1 -1
- package/wirespec-src-plugin-cli.mjs +170 -137
- package/wirespec-src-plugin-cli.mjs.map +1 -1
- package/wirespec-src-plugin-extensions.mjs +4874 -0
- package/wirespec-src-plugin-extensions.mjs.map +1 -0
- package/wirespec-src-plugin-npm.d.mts +43 -1
- package/wirespec-src-plugin-npm.mjs +230 -54
- package/wirespec-src-plugin-npm.mjs.map +1 -1
- package/wirespec-src-tools-generator.mjs +17 -17
|
@@ -22,14 +22,14 @@ import {
|
|
|
22
22
|
protoOf180f3jzyo7rfj as protoOf,
|
|
23
23
|
initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
|
|
24
24
|
listOfvhqybd2zx248 as listOf,
|
|
25
|
+
VOID3gxj6tk5isa35 as VOID,
|
|
25
26
|
to2cs3ny02qtbcb as to,
|
|
26
27
|
toMap1vec9topfei08 as toMap,
|
|
27
|
-
emptyList1g2z5xcrvp2zy as emptyList,
|
|
28
|
-
VOID3gxj6tk5isa35 as VOID,
|
|
29
28
|
ArrayList_init_$Create$37gc04va6yfo2 as ArrayList_init_$Create$_0,
|
|
30
29
|
Paire9pteg33gng7 as Pair,
|
|
31
30
|
plus20p0vtfmu0596 as plus,
|
|
32
31
|
plus310ted5e4i90h as plus_0,
|
|
32
|
+
emptyList1g2z5xcrvp2zy as emptyList,
|
|
33
33
|
startsWith26w8qjqapeeq6 as startsWith,
|
|
34
34
|
substringBefore3n7kj60w69hju as substringBefore,
|
|
35
35
|
listOf1jh22dvmctj1r as listOf_0,
|
|
@@ -58,12 +58,11 @@ import {
|
|
|
58
58
|
addBackticks1di5q03fw4yhx as addBackticks,
|
|
59
59
|
KotlinGenerator_getInstance2e31cf8vh2zcv as KotlinGenerator_getInstance,
|
|
60
60
|
Name1ijtblv1phm3y as Name,
|
|
61
|
-
|
|
61
|
+
SanitizationConfigunh0ok3qg1q3 as SanitizationConfig,
|
|
62
62
|
transformChildren34heehtlmzzif as transformChildren,
|
|
63
63
|
VariableReferencesji1q1tq3ygo as VariableReference,
|
|
64
64
|
sanitizeFieldName333wgwu6tt90n as sanitizeFieldName,
|
|
65
65
|
ConstructorStatement1edouznvc71xv as ConstructorStatement,
|
|
66
|
-
SanitizationConfigunh0ok3qg1q3 as SanitizationConfig,
|
|
67
66
|
Package1a6hdgk3p4frd as Package,
|
|
68
67
|
import3bym2b49e642p as import_0,
|
|
69
68
|
File12q75sqvz964e as File,
|
|
@@ -96,17 +95,17 @@ import {
|
|
|
96
95
|
sanitizeNames1v55mz1p84psg as sanitizeNames,
|
|
97
96
|
collectCustomTypeNames2atsrip288ol4 as collectCustomTypeNames,
|
|
98
97
|
placeInPackagea1jcxre6uf77 as placeInPackage_0,
|
|
99
|
-
|
|
98
|
+
convert23o50n5glj7h5 as convert_0,
|
|
100
99
|
sanitizeEnumDefaults29ynqh9a2ayr9 as sanitizeEnumDefaults,
|
|
101
100
|
ensureEmptyStructHasConstructorftf9v01tnb2y as ensureEmptyStructHasConstructor,
|
|
102
|
-
convert1ke01d6gmcvu7 as
|
|
101
|
+
convert1ke01d6gmcvu7 as convert_1,
|
|
103
102
|
injectEnumLabelField21kogrwccvlea as injectEnumLabelField,
|
|
104
|
-
convert29zpebhuxz599 as
|
|
105
|
-
convert39lmqftdnlhsy as
|
|
103
|
+
convert29zpebhuxz599 as convert_2,
|
|
104
|
+
convert39lmqftdnlhsy as convert_3,
|
|
106
105
|
markMembersAsOverridessfchvibgdcx as markMembersAsOverride,
|
|
107
|
-
convert333pgxr2q05n as
|
|
108
|
-
convert86y6uioox2cl as
|
|
109
|
-
convert1o5h4ulxoqycg as
|
|
106
|
+
convert333pgxr2q05n as convert_4,
|
|
107
|
+
convert86y6uioox2cl as convert_5,
|
|
108
|
+
convert1o5h4ulxoqycg as convert_6,
|
|
110
109
|
emitEndpointClient2og25opoka4ql as emitEndpointClient,
|
|
111
110
|
plus14o24vdaiongg as plus_1,
|
|
112
111
|
importReferencesy4xv7r53sjjs as importReferences,
|
|
@@ -127,33 +126,36 @@ initMetadataForCompanion(Companion);
|
|
|
127
126
|
initMetadataForClass(KotlinEmitter, 'KotlinEmitter', KotlinEmitter, VOID, [IrEmitter]);
|
|
128
127
|
//endregion
|
|
129
128
|
function _get_sanitizationConfig__sns434($this) {
|
|
130
|
-
var tmp0 = $this.
|
|
129
|
+
var tmp0 = $this.w37_1;
|
|
131
130
|
var tmp = KProperty1;
|
|
132
131
|
// Inline function 'kotlin.getValue' call
|
|
133
132
|
getPropertyCallableRef('sanitizationConfig', 1, tmp, KotlinEmitter$_get_sanitizationConfig_$ref_sjisty(), null);
|
|
134
133
|
return tmp0.o1();
|
|
135
134
|
}
|
|
136
135
|
function _get_modelSanitizationConfig__vgg831($this) {
|
|
137
|
-
var tmp0 = $this.
|
|
136
|
+
var tmp0 = $this.x37_1;
|
|
138
137
|
var tmp = KProperty1;
|
|
139
138
|
// Inline function 'kotlin.getValue' call
|
|
140
139
|
getPropertyCallableRef('modelSanitizationConfig', 1, tmp, KotlinEmitter$_get_modelSanitizationConfig_$ref_pvjfk5(), null);
|
|
141
140
|
return tmp0.o1();
|
|
142
141
|
}
|
|
142
|
+
function statementTransforms($this, namedArguments) {
|
|
143
|
+
return KotlinEmitter$statementTransforms$lambda(namedArguments, $this);
|
|
144
|
+
}
|
|
143
145
|
function withExplicitVisibility($this, $receiver) {
|
|
144
146
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transform' call
|
|
145
147
|
var scope = new TransformScope($receiver);
|
|
146
148
|
// Inline function 'community.flock.wirespec.compiler.core.ir.TransformScope.matchingElements' call
|
|
147
149
|
var tmp = scope;
|
|
148
150
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transformMatchingElements' call
|
|
149
|
-
var this_0 = scope.
|
|
151
|
+
var this_0 = scope.a19_1;
|
|
150
152
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
|
|
151
153
|
// Inline function 'kotlin.apply' call
|
|
152
154
|
var this_1 = new TransformerBuilder();
|
|
153
|
-
this_1.
|
|
154
|
-
var tmp$ret$4 = this_1.
|
|
155
|
-
tmp.
|
|
156
|
-
var tmp_0 = scope.
|
|
155
|
+
this_1.u19(KotlinEmitter$withExplicitVisibility$lambda);
|
|
156
|
+
var tmp$ret$4 = this_1.p19();
|
|
157
|
+
tmp.a19_1 = transform(this_0, tmp$ret$4);
|
|
158
|
+
var tmp_0 = scope.a19_1;
|
|
157
159
|
return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
|
|
158
160
|
}
|
|
159
161
|
function sanitize($this, $receiver) {
|
|
@@ -215,7 +217,7 @@ function sanitizeFirstIsDigit($this, $receiver) {
|
|
|
215
217
|
return tmp;
|
|
216
218
|
}
|
|
217
219
|
function sanitizeKeywords($this, $receiver) {
|
|
218
|
-
return Companion_getInstance_0().
|
|
220
|
+
return Companion_getInstance_0().i37().i1($receiver) ? addBackticks($receiver) : $receiver;
|
|
219
221
|
}
|
|
220
222
|
function sanitizeSymbol($this, $receiver) {
|
|
221
223
|
// Inline function 'kotlin.collections.mapIndexed' call
|
|
@@ -288,10 +290,10 @@ function sanitizeEnum($this, $receiver) {
|
|
|
288
290
|
}
|
|
289
291
|
function Companion() {
|
|
290
292
|
Companion_instance_2 = this;
|
|
291
|
-
this.
|
|
293
|
+
this.y37_1 = KotlinGenerator_getInstance();
|
|
292
294
|
}
|
|
293
|
-
protoOf(Companion).
|
|
294
|
-
return this.
|
|
295
|
+
protoOf(Companion).i37 = function () {
|
|
296
|
+
return this.y37_1.k1c_1;
|
|
295
297
|
};
|
|
296
298
|
var Companion_instance_2;
|
|
297
299
|
function Companion_getInstance_0() {
|
|
@@ -304,13 +306,13 @@ function KotlinEmitter$sanitizationConfig$delegate$lambda$lambda(it) {
|
|
|
304
306
|
}
|
|
305
307
|
function KotlinEmitter$sanitizationConfig$delegate$lambda$lambda_0(this$0) {
|
|
306
308
|
return function (name) {
|
|
307
|
-
var sanitized = name.ut_1.
|
|
309
|
+
var sanitized = name.ut_1.c1() > 1 ? name.yt() : sanitizeSymbol(this$0, name.xt());
|
|
308
310
|
return new Name(listOf(sanitized));
|
|
309
311
|
};
|
|
310
312
|
}
|
|
311
313
|
function KotlinEmitter$sanitizationConfig$delegate$lambda$lambda_1(this$0) {
|
|
312
314
|
return function (name) {
|
|
313
|
-
var sanitized = name.ut_1.
|
|
315
|
+
var sanitized = name.ut_1.c1() > 1 ? name.yt() : sanitizeSymbol(this$0, name.xt());
|
|
314
316
|
return new Name(listOf(sanitized));
|
|
315
317
|
};
|
|
316
318
|
}
|
|
@@ -320,57 +322,18 @@ function KotlinEmitter$sanitizationConfig$delegate$lambda$lambda_2(this$0) {
|
|
|
320
322
|
};
|
|
321
323
|
}
|
|
322
324
|
function KotlinEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
|
|
323
|
-
return function (
|
|
324
|
-
|
|
325
|
-
var tmp_0;
|
|
326
|
-
if (stmt instanceof FunctionCall) {
|
|
327
|
-
tmp_0 = stmt.eu_1.xt() === 'validate';
|
|
328
|
-
} else {
|
|
329
|
-
tmp_0 = false;
|
|
330
|
-
}
|
|
331
|
-
if (tmp_0) {
|
|
332
|
-
tmp = transformChildren(stmt.iu(VOID, emptyList()), tr);
|
|
333
|
-
} else {
|
|
334
|
-
if (stmt instanceof ConstructorStatement) {
|
|
335
|
-
var tmp_1 = tr.m17(stmt.dv_1);
|
|
336
|
-
// Inline function 'kotlin.collections.map' call
|
|
337
|
-
var this_0 = stmt.ev_1;
|
|
338
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
339
|
-
var destination = ArrayList_init_$Create$(this_0.b1());
|
|
340
|
-
// Inline function 'kotlin.collections.iterator' call
|
|
341
|
-
var _iterator__ex2g4s = this_0.m1().t();
|
|
342
|
-
while (_iterator__ex2g4s.u()) {
|
|
343
|
-
var item = _iterator__ex2g4s.v();
|
|
344
|
-
// Inline function 'kotlin.collections.component1' call
|
|
345
|
-
var name = item.n1();
|
|
346
|
-
// Inline function 'kotlin.collections.component2' call
|
|
347
|
-
var expr = item.o1();
|
|
348
|
-
var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), name), tr.p17(expr));
|
|
349
|
-
destination.x(tmp$ret$3);
|
|
350
|
-
}
|
|
351
|
-
tmp = new ConstructorStatement(tmp_1, toMap(destination));
|
|
352
|
-
} else {
|
|
353
|
-
if (stmt instanceof VariableReference) {
|
|
354
|
-
var cased = _get_sanitizationConfig__sns434(this$0).c1b_1(stmt.gv_1);
|
|
355
|
-
var sanitized = _get_sanitizationConfig__sns434(this$0).d1b_1(cased.xt());
|
|
356
|
-
var escaped = Companion_getInstance_0().v1z().i1(sanitized) ? addBackticks(sanitized) : sanitized;
|
|
357
|
-
tmp = new VariableReference(new Name(listOf(escaped)));
|
|
358
|
-
} else {
|
|
359
|
-
tmp = transformChildren(stmt, tr);
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
return tmp;
|
|
325
|
+
return function () {
|
|
326
|
+
return _get_sanitizationConfig__sns434(this$0);
|
|
364
327
|
};
|
|
365
328
|
}
|
|
366
329
|
function KotlinEmitter$sanitizationConfig$delegate$lambda(this$0) {
|
|
367
330
|
return function () {
|
|
368
|
-
var tmp = Companion_getInstance_0().
|
|
331
|
+
var tmp = Companion_getInstance_0().i37();
|
|
369
332
|
var tmp_0 = KotlinEmitter$sanitizationConfig$delegate$lambda$lambda;
|
|
370
333
|
var tmp_1 = KotlinEmitter$sanitizationConfig$delegate$lambda$lambda_0(this$0);
|
|
371
334
|
var tmp_2 = KotlinEmitter$sanitizationConfig$delegate$lambda$lambda_1(this$0);
|
|
372
335
|
var tmp_3 = KotlinEmitter$sanitizationConfig$delegate$lambda$lambda_2(this$0);
|
|
373
|
-
return new SanitizationConfig(tmp, tmp_0, tmp_1, tmp_2, tmp_3, KotlinEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0));
|
|
336
|
+
return new SanitizationConfig(tmp, tmp_0, tmp_1, tmp_2, tmp_3, statementTransforms(this$0, KotlinEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0)));
|
|
374
337
|
};
|
|
375
338
|
}
|
|
376
339
|
function KotlinEmitter$_get_sanitizationConfig_$ref_sjisty() {
|
|
@@ -386,11 +349,17 @@ function KotlinEmitter$modelSanitizationConfig$delegate$lambda$lambda_0(this$0)
|
|
|
386
349
|
return sanitizeFieldSymbol(this$0, it);
|
|
387
350
|
};
|
|
388
351
|
}
|
|
352
|
+
function KotlinEmitter$modelSanitizationConfig$delegate$lambda$lambda_1(this$0) {
|
|
353
|
+
return function () {
|
|
354
|
+
return _get_modelSanitizationConfig__vgg831(this$0);
|
|
355
|
+
};
|
|
356
|
+
}
|
|
389
357
|
function KotlinEmitter$modelSanitizationConfig$delegate$lambda(this$0) {
|
|
390
358
|
return function () {
|
|
391
359
|
var tmp = _get_sanitizationConfig__sns434(this$0);
|
|
392
360
|
var tmp_0 = KotlinEmitter$modelSanitizationConfig$delegate$lambda$lambda;
|
|
393
|
-
|
|
361
|
+
var tmp_1 = KotlinEmitter$modelSanitizationConfig$delegate$lambda$lambda_0(this$0);
|
|
362
|
+
return tmp.f1d(VOID, VOID, tmp_0, VOID, tmp_1, statementTransforms(this$0, KotlinEmitter$modelSanitizationConfig$delegate$lambda$lambda_1(this$0)));
|
|
394
363
|
};
|
|
395
364
|
}
|
|
396
365
|
function KotlinEmitter$_get_modelSanitizationConfig_$ref_pvjfk5() {
|
|
@@ -398,11 +367,45 @@ function KotlinEmitter$_get_modelSanitizationConfig_$ref_pvjfk5() {
|
|
|
398
367
|
return _get_modelSanitizationConfig__vgg831(p0);
|
|
399
368
|
};
|
|
400
369
|
}
|
|
370
|
+
function KotlinEmitter$statementTransforms$lambda($namedArguments, this$0) {
|
|
371
|
+
return function (stmt, tr) {
|
|
372
|
+
var tmp;
|
|
373
|
+
if (stmt instanceof ConstructorStatement) {
|
|
374
|
+
var tmp_0 = tr.s18(stmt.cu_1);
|
|
375
|
+
// Inline function 'kotlin.collections.map' call
|
|
376
|
+
var this_0 = stmt.du_1;
|
|
377
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
378
|
+
var destination = ArrayList_init_$Create$(this_0.c1());
|
|
379
|
+
// Inline function 'kotlin.collections.iterator' call
|
|
380
|
+
var _iterator__ex2g4s = this_0.m1().t();
|
|
381
|
+
while (_iterator__ex2g4s.u()) {
|
|
382
|
+
var item = _iterator__ex2g4s.v();
|
|
383
|
+
// Inline function 'kotlin.collections.component1' call
|
|
384
|
+
var name = item.n1();
|
|
385
|
+
// Inline function 'kotlin.collections.component2' call
|
|
386
|
+
var expr = item.o1();
|
|
387
|
+
var tmp$ret$3 = to(sanitizeFieldName($namedArguments(), name), tr.v18(expr));
|
|
388
|
+
destination.x(tmp$ret$3);
|
|
389
|
+
}
|
|
390
|
+
tmp = new ConstructorStatement(tmp_0, toMap(destination));
|
|
391
|
+
} else {
|
|
392
|
+
if (stmt instanceof VariableReference) {
|
|
393
|
+
var cased = _get_sanitizationConfig__sns434(this$0).a1d_1(stmt.av_1);
|
|
394
|
+
var sanitized = _get_sanitizationConfig__sns434(this$0).b1d_1(cased.xt());
|
|
395
|
+
var escaped = Companion_getInstance_0().i37().i1(sanitized) ? addBackticks(sanitized) : sanitized;
|
|
396
|
+
tmp = new VariableReference(new Name(listOf(escaped)));
|
|
397
|
+
} else {
|
|
398
|
+
tmp = transformChildren(stmt, tr);
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
return tmp;
|
|
402
|
+
};
|
|
403
|
+
}
|
|
401
404
|
function KotlinEmitter$emitShared$lambda(element, transformer) {
|
|
402
405
|
var tmp;
|
|
403
406
|
if (element instanceof File) {
|
|
404
407
|
// Inline function 'kotlin.collections.partition' call
|
|
405
|
-
var this_0 = element.
|
|
408
|
+
var this_0 = element.cv_1;
|
|
406
409
|
var first = ArrayList_init_$Create$_0();
|
|
407
410
|
var second = ArrayList_init_$Create$_0();
|
|
408
411
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -417,7 +420,7 @@ function KotlinEmitter$emitShared$lambda(element, transformer) {
|
|
|
417
420
|
var _destruct__k2r9zo = new Pair(first, second);
|
|
418
421
|
var packageElements = _destruct__k2r9zo.ze();
|
|
419
422
|
var rest = _destruct__k2r9zo.af();
|
|
420
|
-
tmp = element.
|
|
423
|
+
tmp = element.fv(VOID, plus_0(plus(packageElements, import_0('kotlin.reflect', 'KType')), rest));
|
|
421
424
|
} else {
|
|
422
425
|
tmp = element;
|
|
423
426
|
}
|
|
@@ -428,27 +431,27 @@ function KotlinEmitter$emitShared$lambda_0($clientServer) {
|
|
|
428
431
|
return function (element, transformer) {
|
|
429
432
|
var tmp;
|
|
430
433
|
if (element instanceof Namespace) {
|
|
431
|
-
var injected = element.
|
|
434
|
+
var injected = element.hv_1.equals(Companion_getInstance().wt('Wirespec')) ? $clientServer : emptyList();
|
|
432
435
|
var tmp_0;
|
|
433
436
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
434
437
|
if (!injected.r()) {
|
|
435
438
|
// Inline function 'community.flock.wirespec.compiler.core.ir.withElements' call
|
|
436
|
-
var elements = plus_0(element.
|
|
439
|
+
var elements = plus_0(element.dv(), injected);
|
|
437
440
|
var tmp_1;
|
|
438
441
|
if (element instanceof File) {
|
|
439
|
-
tmp_1 = element.
|
|
442
|
+
tmp_1 = element.fv(VOID, elements);
|
|
440
443
|
} else {
|
|
441
444
|
if (element instanceof Struct) {
|
|
442
|
-
tmp_1 = element.
|
|
445
|
+
tmp_1 = element.mx(VOID, VOID, VOID, VOID, elements);
|
|
443
446
|
} else {
|
|
444
447
|
if (element instanceof Namespace) {
|
|
445
|
-
tmp_1 = element.
|
|
448
|
+
tmp_1 = element.mv(VOID, elements);
|
|
446
449
|
} else {
|
|
447
450
|
if (element instanceof Interface) {
|
|
448
|
-
tmp_1 = element.
|
|
451
|
+
tmp_1 = element.vv(VOID, elements);
|
|
449
452
|
} else {
|
|
450
453
|
if (element instanceof Enum) {
|
|
451
|
-
tmp_1 = element.
|
|
454
|
+
tmp_1 = element.ax(VOID, VOID, VOID, VOID, VOID, elements);
|
|
452
455
|
} else {
|
|
453
456
|
if (element instanceof Main) {
|
|
454
457
|
tmp_1 = element;
|
|
@@ -478,33 +481,33 @@ function KotlinEmitter$withExplicitVisibility$lambda(element, transformer) {
|
|
|
478
481
|
if (isInterface(element, Element)) {
|
|
479
482
|
var tmp_0;
|
|
480
483
|
if (element instanceof Namespace) {
|
|
481
|
-
tmp_0 = element.
|
|
484
|
+
tmp_0 = element.mv(VOID, VOID, VOID, Visibility_PUBLIC_getInstance());
|
|
482
485
|
} else {
|
|
483
486
|
if (element instanceof Interface) {
|
|
484
487
|
var tmp2_visibility = Visibility_PUBLIC_getInstance();
|
|
485
488
|
// Inline function 'kotlin.collections.map' call
|
|
486
|
-
var this_0 = element.
|
|
489
|
+
var this_0 = element.sv_1;
|
|
487
490
|
// Inline function 'kotlin.collections.mapTo' call
|
|
488
491
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
489
492
|
var _iterator__ex2g4s = this_0.t();
|
|
490
493
|
while (_iterator__ex2g4s.u()) {
|
|
491
494
|
var item = _iterator__ex2g4s.v();
|
|
492
|
-
var tmp$ret$3 = item.
|
|
495
|
+
var tmp$ret$3 = item.gw(VOID, VOID, VOID, VOID, Visibility_PUBLIC_getInstance());
|
|
493
496
|
destination.x(tmp$ret$3);
|
|
494
497
|
}
|
|
495
|
-
tmp_0 = element.
|
|
498
|
+
tmp_0 = element.vv(VOID, VOID, VOID, VOID, VOID, destination, tmp2_visibility);
|
|
496
499
|
} else {
|
|
497
500
|
if (element instanceof Union) {
|
|
498
|
-
tmp_0 = element.
|
|
501
|
+
tmp_0 = element.nw(VOID, VOID, VOID, VOID, Visibility_PUBLIC_getInstance());
|
|
499
502
|
} else {
|
|
500
503
|
if (element instanceof Enum) {
|
|
501
|
-
tmp_0 = element.
|
|
504
|
+
tmp_0 = element.ax(VOID, VOID, VOID, VOID, VOID, VOID, Visibility_PUBLIC_getInstance());
|
|
502
505
|
} else {
|
|
503
506
|
if (element instanceof Struct) {
|
|
504
|
-
tmp_0 = element.
|
|
507
|
+
tmp_0 = element.mx(VOID, VOID, VOID, VOID, VOID, VOID, Visibility_PUBLIC_getInstance());
|
|
505
508
|
} else {
|
|
506
509
|
if (element instanceof Function) {
|
|
507
|
-
tmp_0 = element.
|
|
510
|
+
tmp_0 = element.zx(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Visibility_PUBLIC_getInstance());
|
|
508
511
|
} else {
|
|
509
512
|
tmp_0 = element;
|
|
510
513
|
}
|
|
@@ -533,7 +536,7 @@ function KotlinEmitter$emitGenerator$lambda_1(it) {
|
|
|
533
536
|
}
|
|
534
537
|
function KotlinEmitter$emitGenerator$lambda_2(this$0) {
|
|
535
538
|
return function (it) {
|
|
536
|
-
return import_0(this$0.
|
|
539
|
+
return import_0(this$0.p37().bt_1 + '.model', it);
|
|
537
540
|
};
|
|
538
541
|
}
|
|
539
542
|
function KotlinEmitter$emit$lambda(this$0) {
|
|
@@ -550,30 +553,30 @@ function KotlinEmitter(packageName, emitShared) {
|
|
|
550
553
|
Companion_getInstance_0();
|
|
551
554
|
packageName = packageName === VOID ? Companion_instance_0.at('community.flock.wirespec.generated') : packageName;
|
|
552
555
|
emitShared = emitShared === VOID ? Companion_instance_1.fq() : emitShared;
|
|
553
|
-
this.
|
|
554
|
-
this.
|
|
555
|
-
this.
|
|
556
|
-
this.
|
|
557
|
-
this.
|
|
558
|
-
this.
|
|
556
|
+
this.q37_1 = packageName;
|
|
557
|
+
this.r37_1 = emitShared;
|
|
558
|
+
this.s37_1 = KotlinGenerator_getInstance();
|
|
559
|
+
this.t37_1 = FileExtension_Kotlin_getInstance();
|
|
560
|
+
this.u37_1 = true;
|
|
561
|
+
this.v37_1 = listOf_0([import_0('community.flock.wirespec.kotlin', 'Wirespec'), import_0('kotlin.reflect', 'typeOf')]);
|
|
559
562
|
var tmp = this;
|
|
560
|
-
tmp.
|
|
563
|
+
tmp.w37_1 = lazy(KotlinEmitter$sanitizationConfig$delegate$lambda(this));
|
|
561
564
|
var tmp_0 = this;
|
|
562
|
-
tmp_0.
|
|
565
|
+
tmp_0.x37_1 = lazy(KotlinEmitter$modelSanitizationConfig$delegate$lambda(this));
|
|
563
566
|
}
|
|
564
|
-
protoOf(KotlinEmitter).
|
|
565
|
-
return this.
|
|
567
|
+
protoOf(KotlinEmitter).p37 = function () {
|
|
568
|
+
return this.q37_1;
|
|
566
569
|
};
|
|
567
|
-
protoOf(KotlinEmitter).
|
|
568
|
-
return this.
|
|
570
|
+
protoOf(KotlinEmitter).h1b = function () {
|
|
571
|
+
return this.s37_1;
|
|
569
572
|
};
|
|
570
573
|
protoOf(KotlinEmitter).wp = function () {
|
|
571
|
-
return this.
|
|
574
|
+
return this.t37_1;
|
|
572
575
|
};
|
|
573
576
|
protoOf(KotlinEmitter).vp = function () {
|
|
574
|
-
return this.
|
|
577
|
+
return this.u37_1;
|
|
575
578
|
};
|
|
576
|
-
protoOf(KotlinEmitter).
|
|
579
|
+
protoOf(KotlinEmitter).c1b = function () {
|
|
577
580
|
var packageName = Companion_instance_0.at('community.flock.wirespec.kotlin');
|
|
578
581
|
var clientServer = convertClientServer();
|
|
579
582
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transform' call
|
|
@@ -582,28 +585,28 @@ protoOf(KotlinEmitter).c1a = function () {
|
|
|
582
585
|
// Inline function 'community.flock.wirespec.compiler.core.ir.TransformScope.matchingElements' call
|
|
583
586
|
var tmp = scope;
|
|
584
587
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transformMatchingElements' call
|
|
585
|
-
var this_1 = scope.
|
|
588
|
+
var this_1 = scope.a19_1;
|
|
586
589
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
|
|
587
590
|
// Inline function 'kotlin.apply' call
|
|
588
591
|
var this_2 = new TransformerBuilder();
|
|
589
|
-
this_2.
|
|
590
|
-
var tmp$ret$4 = this_2.
|
|
591
|
-
tmp.
|
|
592
|
+
this_2.u19(KotlinEmitter$emitShared$lambda);
|
|
593
|
+
var tmp$ret$4 = this_2.p19();
|
|
594
|
+
tmp.a19_1 = transform(this_1, tmp$ret$4);
|
|
592
595
|
// Inline function 'community.flock.wirespec.compiler.core.ir.TransformScope.injectAfter' call
|
|
593
596
|
var tmp_0 = scope;
|
|
594
597
|
// Inline function 'community.flock.wirespec.compiler.core.ir.injectAfter' call
|
|
595
598
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transformMatchingElements' call
|
|
596
|
-
var this_3 = scope.
|
|
599
|
+
var this_3 = scope.a19_1;
|
|
597
600
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
|
|
598
601
|
// Inline function 'kotlin.apply' call
|
|
599
602
|
var this_4 = new TransformerBuilder();
|
|
600
|
-
this_4.
|
|
601
|
-
var tmp$ret$10 = this_4.
|
|
602
|
-
tmp_0.
|
|
603
|
-
var tmp_1 = scope.
|
|
603
|
+
this_4.u19(KotlinEmitter$emitShared$lambda_0(clientServer));
|
|
604
|
+
var tmp$ret$10 = this_4.p19();
|
|
605
|
+
tmp_0.a19_1 = transform(this_3, tmp$ret$10);
|
|
606
|
+
var tmp_1 = scope.a19_1;
|
|
604
607
|
var wirespecShared = isInterface(tmp_1, Element) ? tmp_1 : THROW_CCE();
|
|
605
608
|
var tmp_2;
|
|
606
|
-
if (this.
|
|
609
|
+
if (this.r37_1.gq_1) {
|
|
607
610
|
tmp_2 = withExplicitVisibility(this, wirespecShared);
|
|
608
611
|
} else {
|
|
609
612
|
tmp_2 = null;
|
|
@@ -613,7 +616,7 @@ protoOf(KotlinEmitter).c1a = function () {
|
|
|
613
616
|
protoOf(KotlinEmitter).cs = function (definition, module_0, logger) {
|
|
614
617
|
var file = emit.call(this, definition, module_0, logger);
|
|
615
618
|
// Inline function 'kotlin.takeIf' call
|
|
616
|
-
var this_0 = this.
|
|
619
|
+
var this_0 = this.v37_1;
|
|
617
620
|
var tmp;
|
|
618
621
|
if (Companion_instance.zr(module_0)) {
|
|
619
622
|
tmp = this_0;
|
|
@@ -621,9 +624,9 @@ protoOf(KotlinEmitter).cs = function (definition, module_0, logger) {
|
|
|
621
624
|
tmp = null;
|
|
622
625
|
}
|
|
623
626
|
var tmp$ret$0 = tmp;
|
|
624
|
-
return placeInPackage(prependImports(file, tmp$ret$0), this.
|
|
627
|
+
return placeInPackage(prependImports(file, tmp$ret$0), this.p37(), definition);
|
|
625
628
|
};
|
|
626
|
-
protoOf(KotlinEmitter).
|
|
629
|
+
protoOf(KotlinEmitter).k1b = function (definition, module_0) {
|
|
627
630
|
var tmp;
|
|
628
631
|
if (definition instanceof Type) {
|
|
629
632
|
tmp = convertToGenerator_2(definition, module_0);
|
|
@@ -643,31 +646,37 @@ protoOf(KotlinEmitter).k1a = function (definition, module_0) {
|
|
|
643
646
|
}
|
|
644
647
|
}
|
|
645
648
|
var generatorFile = tmp;
|
|
646
|
-
var
|
|
649
|
+
var tmp_0;
|
|
650
|
+
if (definition instanceof Type) {
|
|
651
|
+
tmp_0 = _get_modelSanitizationConfig__vgg831(this);
|
|
652
|
+
} else {
|
|
653
|
+
tmp_0 = _get_sanitizationConfig__sns434(this);
|
|
654
|
+
}
|
|
655
|
+
var sanitized = sanitizeNames(generatorFile, tmp_0);
|
|
647
656
|
var generatorOwnName = definition.ds().o1() + 'Generator';
|
|
648
|
-
var
|
|
649
|
-
var
|
|
650
|
-
var
|
|
651
|
-
var
|
|
652
|
-
var modelImports = toList(map(
|
|
653
|
-
return placeInPackage_0(prependImports(sanitized, plus_0(this.
|
|
657
|
+
var tmp_1 = asSequence(collectCustomTypeNames(sanitized));
|
|
658
|
+
var tmp_2 = filterNot(tmp_1, KotlinEmitter$emitGenerator$lambda);
|
|
659
|
+
var tmp_3 = filterNot(tmp_2, KotlinEmitter$emitGenerator$lambda_0(generatorOwnName));
|
|
660
|
+
var tmp_4 = distinct(map(tmp_3, KotlinEmitter$emitGenerator$lambda_1));
|
|
661
|
+
var modelImports = toList(map(tmp_4, KotlinEmitter$emitGenerator$lambda_2(this)));
|
|
662
|
+
return placeInPackage_0(prependImports(sanitized, plus_0(this.v37_1, modelImports)), this.p37(), 'generator');
|
|
654
663
|
};
|
|
655
664
|
protoOf(KotlinEmitter).us = function (type, module_0) {
|
|
656
|
-
var tmp = sanitizeNames(
|
|
665
|
+
var tmp = sanitizeNames(convert_0(type), _get_modelSanitizationConfig__vgg831(this));
|
|
657
666
|
return ensureEmptyStructHasConstructor(sanitizeEnumDefaults(tmp, KotlinEmitter$emit$lambda(this)));
|
|
658
667
|
};
|
|
659
668
|
protoOf(KotlinEmitter).ss = function (enum_0, module_0) {
|
|
660
|
-
var tmp = sanitizeNames(
|
|
669
|
+
var tmp = sanitizeNames(convert_1(enum_0), _get_sanitizationConfig__sns434(this));
|
|
661
670
|
return injectEnumLabelField(tmp, KotlinEmitter$emit$lambda_0(this));
|
|
662
671
|
};
|
|
663
672
|
protoOf(KotlinEmitter).is = function (union) {
|
|
664
|
-
return sanitizeNames(
|
|
673
|
+
return sanitizeNames(convert_2(union), _get_sanitizationConfig__sns434(this));
|
|
665
674
|
};
|
|
666
675
|
protoOf(KotlinEmitter).ns = function (refined) {
|
|
667
|
-
var file = sanitizeNames(
|
|
676
|
+
var file = sanitizeNames(convert_3(refined), _get_sanitizationConfig__sns434(this));
|
|
668
677
|
// Inline function 'community.flock.wirespec.compiler.core.ir.findElement' call
|
|
669
678
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
670
|
-
var tmp0 = file.
|
|
679
|
+
var tmp0 = file.dv();
|
|
671
680
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
672
681
|
var destination = ArrayList_init_$Create$_0();
|
|
673
682
|
var _iterator__ex2g4s = tmp0.t();
|
|
@@ -682,10 +691,10 @@ protoOf(KotlinEmitter).ns = function (refined) {
|
|
|
682
691
|
return new File(Companion_getInstance().wt(sanitize(this, refined.ls_1)), listOfNotNull(updatedStruct));
|
|
683
692
|
};
|
|
684
693
|
protoOf(KotlinEmitter).ts = function (endpoint) {
|
|
685
|
-
var imports = buildModelImports(endpoint, this.
|
|
694
|
+
var imports = buildModelImports(endpoint, this.p37());
|
|
686
695
|
// Inline function 'community.flock.wirespec.compiler.core.ir.findElement' call
|
|
687
696
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
688
|
-
var tmp0 =
|
|
697
|
+
var tmp0 = convert_4(endpoint).dv();
|
|
689
698
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
690
699
|
var destination = ArrayList_init_$Create$_0();
|
|
691
700
|
var _iterator__ex2g4s = tmp0.t();
|
|
@@ -711,9 +720,9 @@ protoOf(KotlinEmitter).ts = function (endpoint) {
|
|
|
711
720
|
return prependImports(tmp, tmp$ret$3);
|
|
712
721
|
};
|
|
713
722
|
protoOf(KotlinEmitter).hs = function (channel) {
|
|
714
|
-
var tmp = sanitizeNames(
|
|
723
|
+
var tmp = sanitizeNames(convert_5(channel), _get_sanitizationConfig__sns434(this));
|
|
715
724
|
// Inline function 'kotlin.takeIf' call
|
|
716
|
-
var this_0 = buildModelImports(channel, this.
|
|
725
|
+
var this_0 = buildModelImports(channel, this.p37());
|
|
717
726
|
var tmp_0;
|
|
718
727
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
719
728
|
if (!this_0.r()) {
|
|
@@ -725,9 +734,9 @@ protoOf(KotlinEmitter).hs = function (channel) {
|
|
|
725
734
|
return prependImports(tmp, tmp$ret$0);
|
|
726
735
|
};
|
|
727
736
|
protoOf(KotlinEmitter).gs = function (rpc) {
|
|
728
|
-
var tmp = sanitizeNames(
|
|
737
|
+
var tmp = sanitizeNames(convert_6(rpc), _get_sanitizationConfig__sns434(this));
|
|
729
738
|
// Inline function 'kotlin.takeIf' call
|
|
730
|
-
var this_0 = buildModelImports(rpc, this.
|
|
739
|
+
var this_0 = buildModelImports(rpc, this.p37());
|
|
731
740
|
var tmp_0;
|
|
732
741
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
733
742
|
if (!this_0.r()) {
|
|
@@ -738,25 +747,25 @@ protoOf(KotlinEmitter).gs = function (rpc) {
|
|
|
738
747
|
var tmp$ret$0 = tmp_0;
|
|
739
748
|
return prependImports(tmp, tmp$ret$0);
|
|
740
749
|
};
|
|
741
|
-
protoOf(KotlinEmitter).
|
|
742
|
-
var imports = buildModelImports(endpoint, this.
|
|
743
|
-
var endpointImport = import_0(this.
|
|
750
|
+
protoOf(KotlinEmitter).j1b = function (endpoint) {
|
|
751
|
+
var imports = buildModelImports(endpoint, this.p37());
|
|
752
|
+
var endpointImport = import_0(this.p37().bt_1 + '.endpoint', endpoint.fr_1.o1());
|
|
744
753
|
var file = sanitizeNames(emitEndpointClient.call(this, endpoint), _get_sanitizationConfig__sns434(this));
|
|
745
|
-
var subPackageName = plus_1(this.
|
|
746
|
-
var tmp = Companion_getInstance().wt(subPackageName.dt() + file.
|
|
754
|
+
var subPackageName = plus_1(this.p37(), 'client');
|
|
755
|
+
var tmp = Companion_getInstance().wt(subPackageName.dt() + file.bv_1.zt());
|
|
747
756
|
// Inline function 'kotlin.collections.buildList' call
|
|
748
757
|
// Inline function 'kotlin.collections.buildListInternal' call
|
|
749
758
|
// Inline function 'kotlin.apply' call
|
|
750
759
|
var this_0 = ArrayList_init_$Create$_0();
|
|
751
760
|
this_0.x(new Package(subPackageName.bt_1));
|
|
752
|
-
this_0.g1(this.
|
|
761
|
+
this_0.g1(this.v37_1);
|
|
753
762
|
this_0.g1(imports);
|
|
754
763
|
this_0.x(endpointImport);
|
|
755
|
-
this_0.g1(file.
|
|
764
|
+
this_0.g1(file.cv_1);
|
|
756
765
|
var tmp$ret$0 = this_0.q5();
|
|
757
766
|
return new File(tmp, tmp$ret$0);
|
|
758
767
|
};
|
|
759
|
-
protoOf(KotlinEmitter).
|
|
768
|
+
protoOf(KotlinEmitter).d1b = function (endpoints, logger) {
|
|
760
769
|
// Inline function 'kotlin.collections.flatMap' call
|
|
761
770
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
762
771
|
var destination = ArrayList_init_$Create$_0();
|
|
@@ -772,7 +781,7 @@ protoOf(KotlinEmitter).d1a = function (endpoints, logger) {
|
|
|
772
781
|
var _iterator__ex2g4s_0 = destination.t();
|
|
773
782
|
while (_iterator__ex2g4s_0.u()) {
|
|
774
783
|
var e = _iterator__ex2g4s_0.v();
|
|
775
|
-
var key = e.
|
|
784
|
+
var key = e.x19_1;
|
|
776
785
|
if (set.x(key)) {
|
|
777
786
|
list_0.x(e);
|
|
778
787
|
}
|
|
@@ -783,7 +792,7 @@ protoOf(KotlinEmitter).d1a = function (endpoints, logger) {
|
|
|
783
792
|
var _iterator__ex2g4s_1 = list_0.t();
|
|
784
793
|
while (_iterator__ex2g4s_1.u()) {
|
|
785
794
|
var item = _iterator__ex2g4s_1.v();
|
|
786
|
-
var tmp$ret$7 = import_0(this.
|
|
795
|
+
var tmp$ret$7 = import_0(this.p37().bt_1 + '.model', item.x19_1);
|
|
787
796
|
destination_0.x(tmp$ret$7);
|
|
788
797
|
}
|
|
789
798
|
var imports = destination_0;
|
|
@@ -793,7 +802,7 @@ protoOf(KotlinEmitter).d1a = function (endpoints, logger) {
|
|
|
793
802
|
var _iterator__ex2g4s_2 = endpoints.t();
|
|
794
803
|
while (_iterator__ex2g4s_2.u()) {
|
|
795
804
|
var item_0 = _iterator__ex2g4s_2.v();
|
|
796
|
-
var tmp$ret$10 = import_0(this.
|
|
805
|
+
var tmp$ret$10 = import_0(this.p37().bt_1 + '.endpoint', item_0.fr_1.o1());
|
|
797
806
|
destination_1.x(tmp$ret$10);
|
|
798
807
|
}
|
|
799
808
|
var endpointImports = destination_1;
|
|
@@ -803,21 +812,21 @@ protoOf(KotlinEmitter).d1a = function (endpoints, logger) {
|
|
|
803
812
|
var _iterator__ex2g4s_3 = endpoints.t();
|
|
804
813
|
while (_iterator__ex2g4s_3.u()) {
|
|
805
814
|
var item_1 = _iterator__ex2g4s_3.v();
|
|
806
|
-
var tmp$ret$13 = import_0(this.
|
|
815
|
+
var tmp$ret$13 = import_0(this.p37().bt_1 + '.client', item_1.fr_1.o1() + 'Client');
|
|
807
816
|
destination_2.x(tmp$ret$13);
|
|
808
817
|
}
|
|
809
818
|
var clientImports = destination_2;
|
|
810
819
|
var allImports = plus_0(plus_0(imports, endpointImports), clientImports);
|
|
811
820
|
var file = sanitizeNames(emitClient.call(this, endpoints, logger), _get_sanitizationConfig__sns434(this));
|
|
812
|
-
var tmp = Companion_getInstance().wt(this.
|
|
821
|
+
var tmp = Companion_getInstance().wt(this.p37().dt() + file.bv_1.zt());
|
|
813
822
|
// Inline function 'kotlin.collections.buildList' call
|
|
814
823
|
// Inline function 'kotlin.collections.buildListInternal' call
|
|
815
824
|
// Inline function 'kotlin.apply' call
|
|
816
825
|
var this_0 = ArrayList_init_$Create$_0();
|
|
817
|
-
this_0.x(new Package(this.
|
|
818
|
-
this_0.g1(this.
|
|
826
|
+
this_0.x(new Package(this.p37().bt_1));
|
|
827
|
+
this_0.g1(this.v37_1);
|
|
819
828
|
this_0.g1(allImports);
|
|
820
|
-
this_0.g1(file.
|
|
829
|
+
this_0.g1(file.cv_1);
|
|
821
830
|
var tmp$ret$14 = this_0.q5();
|
|
822
831
|
return new File(tmp, tmp$ret$14);
|
|
823
832
|
};
|
|
@@ -829,7 +838,7 @@ function buildModelImports(_this__u8e3s4, packageName) {
|
|
|
829
838
|
var _iterator__ex2g4s = this_0.t();
|
|
830
839
|
while (_iterator__ex2g4s.u()) {
|
|
831
840
|
var e = _iterator__ex2g4s.v();
|
|
832
|
-
var key = e.
|
|
841
|
+
var key = e.x19_1;
|
|
833
842
|
if (set.x(key)) {
|
|
834
843
|
list.x(e);
|
|
835
844
|
}
|
|
@@ -840,7 +849,7 @@ function buildModelImports(_this__u8e3s4, packageName) {
|
|
|
840
849
|
var _iterator__ex2g4s_0 = list.t();
|
|
841
850
|
while (_iterator__ex2g4s_0.u()) {
|
|
842
851
|
var item = _iterator__ex2g4s_0.v();
|
|
843
|
-
var tmp$ret$4 = import_0(packageName.bt_1 + '.model', Companion_getInstance().wt(item.
|
|
852
|
+
var tmp$ret$4 = import_0(packageName.bt_1 + '.model', Companion_getInstance().wt(item.x19_1).zt());
|
|
844
853
|
destination.x(tmp$ret$4);
|
|
845
854
|
}
|
|
846
855
|
return destination;
|
|
@@ -852,14 +861,14 @@ function injectApiObject(_this__u8e3s4, endpoint) {
|
|
|
852
861
|
var tmp = scope;
|
|
853
862
|
// Inline function 'community.flock.wirespec.compiler.core.ir.injectAfter' call
|
|
854
863
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transformMatchingElements' call
|
|
855
|
-
var this_0 = scope.
|
|
864
|
+
var this_0 = scope.a19_1;
|
|
856
865
|
// Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
|
|
857
866
|
// Inline function 'kotlin.apply' call
|
|
858
867
|
var this_1 = new TransformerBuilder();
|
|
859
|
-
this_1.
|
|
860
|
-
var tmp$ret$5 = this_1.
|
|
861
|
-
tmp.
|
|
862
|
-
var tmp_0 = scope.
|
|
868
|
+
this_1.u19(injectApiObject$lambda(endpoint));
|
|
869
|
+
var tmp$ret$5 = this_1.p19();
|
|
870
|
+
tmp.a19_1 = transform(this_0, tmp$ret$5);
|
|
871
|
+
var tmp_0 = scope.a19_1;
|
|
863
872
|
return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
|
|
864
873
|
}
|
|
865
874
|
function buildApiObject(endpoint) {
|
|
@@ -877,22 +886,22 @@ function injectApiObject$lambda($endpoint) {
|
|
|
877
886
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
878
887
|
if (!injected.r()) {
|
|
879
888
|
// Inline function 'community.flock.wirespec.compiler.core.ir.withElements' call
|
|
880
|
-
var elements = plus_0(element.
|
|
889
|
+
var elements = plus_0(element.dv(), injected);
|
|
881
890
|
var tmp_1;
|
|
882
891
|
if (element instanceof File) {
|
|
883
|
-
tmp_1 = element.
|
|
892
|
+
tmp_1 = element.fv(VOID, elements);
|
|
884
893
|
} else {
|
|
885
894
|
if (element instanceof Struct) {
|
|
886
|
-
tmp_1 = element.
|
|
895
|
+
tmp_1 = element.mx(VOID, VOID, VOID, VOID, elements);
|
|
887
896
|
} else {
|
|
888
897
|
if (element instanceof Namespace) {
|
|
889
|
-
tmp_1 = element.
|
|
898
|
+
tmp_1 = element.mv(VOID, elements);
|
|
890
899
|
} else {
|
|
891
900
|
if (element instanceof Interface) {
|
|
892
|
-
tmp_1 = element.
|
|
901
|
+
tmp_1 = element.vv(VOID, elements);
|
|
893
902
|
} else {
|
|
894
903
|
if (element instanceof Enum) {
|
|
895
|
-
tmp_1 = element.
|
|
904
|
+
tmp_1 = element.ax(VOID, VOID, VOID, VOID, VOID, elements);
|
|
896
905
|
} else {
|
|
897
906
|
if (element instanceof Main) {
|
|
898
907
|
tmp_1 = element;
|
|
@@ -920,7 +929,7 @@ function injectApiObject$lambda($endpoint) {
|
|
|
920
929
|
function buildApiObject$lambda(it) {
|
|
921
930
|
var tmp;
|
|
922
931
|
if (it instanceof Literal) {
|
|
923
|
-
tmp = it.
|
|
932
|
+
tmp = it.a1b_1;
|
|
924
933
|
} else {
|
|
925
934
|
if (it instanceof Param) {
|
|
926
935
|
tmp = '{' + it.mr_1.o1() + '}';
|
|
@@ -931,10 +940,10 @@ function buildApiObject$lambda(it) {
|
|
|
931
940
|
return tmp;
|
|
932
941
|
}
|
|
933
942
|
//region block: post-declaration
|
|
934
|
-
protoOf(KotlinEmitter).
|
|
943
|
+
protoOf(KotlinEmitter).e1b = get_extensions;
|
|
935
944
|
protoOf(KotlinEmitter).to = emit_0;
|
|
936
|
-
protoOf(KotlinEmitter).
|
|
937
|
-
protoOf(KotlinEmitter).
|
|
945
|
+
protoOf(KotlinEmitter).b1b = emit_1;
|
|
946
|
+
protoOf(KotlinEmitter).g1b = beforeGenerate;
|
|
938
947
|
//endregion
|
|
939
948
|
//region block: exports
|
|
940
949
|
export {
|