@flock/wirespec 0.20.2 → 0.21.1
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 +79 -79
- package/clikt-clikt.mjs +1329 -1329
- package/clikt-clikt.mjs.map +1 -1
- package/colormath-root-colormath.mjs +433 -433
- package/kotlin-kotlin-stdlib.mjs +15 -15
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +10144 -10144
- package/kotlin-rgxgen.mjs +1760 -1760
- package/kotlinx-io-kotlinx-io-core.mjs +404 -404
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1810 -1810
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1488 -1488
- package/mordant-mordant.mjs +1198 -1198
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +1652 -1139
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-java.mjs +206 -191
- package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-kotlin.mjs +153 -138
- package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-python.mjs +182 -153
- package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-rust.mjs +439 -379
- package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-scala.mjs +175 -160
- package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-typescript.mjs +268 -224
- package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-wirespec.mjs +102 -81
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-ir.mjs +3704 -3619
- package/wirespec-src-compiler-ir.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +308 -227
- package/wirespec-src-compiler-lib.mjs.map +1 -1
- package/wirespec-src-converter-avro.mjs +503 -503
- package/wirespec-src-converter-openapi.mjs +581 -569
- package/wirespec-src-converter-openapi.mjs.map +1 -1
- package/wirespec-src-ide-lsp.mjs +1352 -1352
- package/wirespec-src-plugin-arguments.mjs +136 -136
- package/wirespec-src-plugin-cli.mjs +85 -85
- package/wirespec-src-plugin-npm.d.mts +15 -0
- package/wirespec-src-plugin-npm.mjs +26 -26
- package/wirespec-src-tools-generator.mjs +29 -24
- package/wirespec-src-tools-generator.mjs.map +1 -1
|
@@ -95,6 +95,7 @@ import {
|
|
|
95
95
|
markMembersAsOverride3r1zpft8nbmxg as markMembersAsOverride,
|
|
96
96
|
convert32tuiui3czihh as convert_3,
|
|
97
97
|
convert1cn4bolzoed8c as convert_4,
|
|
98
|
+
convert3ewo9inue7gua as convert_5,
|
|
98
99
|
emitEndpointClient1meajc90wf3el as emitEndpointClient,
|
|
99
100
|
emitClient32kfwzg2hm5vj as emitClient,
|
|
100
101
|
get_extensions31c4or738wbxz as get_extensions,
|
|
@@ -127,14 +128,14 @@ initMetadataForCompanion(Companion);
|
|
|
127
128
|
initMetadataForClass(KotlinIrEmitter, 'KotlinIrEmitter', KotlinIrEmitter, VOID, [IrEmitter]);
|
|
128
129
|
//endregion
|
|
129
130
|
function _get_sanitizationConfig__sns434($this) {
|
|
130
|
-
var tmp0 = $this.
|
|
131
|
+
var tmp0 = $this.i1y_1;
|
|
131
132
|
var tmp = KProperty1;
|
|
132
133
|
// Inline function 'kotlin.getValue' call
|
|
133
134
|
getPropertyCallableRef('sanitizationConfig', 1, tmp, KotlinIrEmitter$_get_sanitizationConfig_$ref_tnafwf(), null);
|
|
134
135
|
return tmp0.m1();
|
|
135
136
|
}
|
|
136
137
|
function _get_modelSanitizationConfig__vgg831($this) {
|
|
137
|
-
var tmp0 = $this.
|
|
138
|
+
var tmp0 = $this.j1y_1;
|
|
138
139
|
var tmp = KProperty1;
|
|
139
140
|
// Inline function 'kotlin.getValue' call
|
|
140
141
|
getPropertyCallableRef('modelSanitizationConfig', 1, tmp, KotlinIrEmitter$_get_modelSanitizationConfig_$ref_iulb4s(), null);
|
|
@@ -146,14 +147,14 @@ function withExplicitVisibility($this, _this__u8e3s4) {
|
|
|
146
147
|
// Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
|
|
147
148
|
var tmp = scope;
|
|
148
149
|
// Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
|
|
149
|
-
var this_0 = scope.
|
|
150
|
+
var this_0 = scope.a1w_1;
|
|
150
151
|
// Inline function 'community.flock.wirespec.ir.core.transformer' call
|
|
151
152
|
// Inline function 'kotlin.apply' call
|
|
152
153
|
var this_1 = new TransformerBuilder();
|
|
153
|
-
this_1.
|
|
154
|
-
var tmp$ret$2 = this_1.
|
|
155
|
-
tmp.
|
|
156
|
-
var tmp_0 = scope.
|
|
154
|
+
this_1.u1i(KotlinIrEmitter$withExplicitVisibility$lambda);
|
|
155
|
+
var tmp$ret$2 = this_1.v1i();
|
|
156
|
+
tmp.a1w_1 = transform(this_0, tmp$ret$2);
|
|
157
|
+
var tmp_0 = scope.a1w_1;
|
|
157
158
|
return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
|
|
158
159
|
}
|
|
159
160
|
function sanitize($this, _this__u8e3s4) {
|
|
@@ -167,7 +168,7 @@ function sanitize($this, _this__u8e3s4) {
|
|
|
167
168
|
var item = _iterator__ex2g4s.v();
|
|
168
169
|
var _unary__edvuaz = index;
|
|
169
170
|
index = _unary__edvuaz + 1 | 0;
|
|
170
|
-
var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance.
|
|
171
|
+
var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance.dr(item) : item;
|
|
171
172
|
destination.x(tmp$ret$0);
|
|
172
173
|
}
|
|
173
174
|
// Inline function 'kotlin.text.filter' call
|
|
@@ -215,7 +216,7 @@ function sanitizeFirstIsDigit($this, _this__u8e3s4) {
|
|
|
215
216
|
return tmp;
|
|
216
217
|
}
|
|
217
218
|
function sanitizeKeywords($this, _this__u8e3s4) {
|
|
218
|
-
return Companion_getInstance_0().
|
|
219
|
+
return Companion_getInstance_0().v1x().v1(_this__u8e3s4) ? addBackticks(_this__u8e3s4) : _this__u8e3s4;
|
|
219
220
|
}
|
|
220
221
|
function sanitizeSymbol($this, _this__u8e3s4) {
|
|
221
222
|
// Inline function 'kotlin.collections.mapIndexed' call
|
|
@@ -228,7 +229,7 @@ function sanitizeSymbol($this, _this__u8e3s4) {
|
|
|
228
229
|
var item = _iterator__ex2g4s.v();
|
|
229
230
|
var _unary__edvuaz = index;
|
|
230
231
|
index = _unary__edvuaz + 1 | 0;
|
|
231
|
-
var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance.
|
|
232
|
+
var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance.dr(item) : item;
|
|
232
233
|
destination.x(tmp$ret$0);
|
|
233
234
|
}
|
|
234
235
|
// Inline function 'kotlin.text.filter' call
|
|
@@ -288,10 +289,10 @@ function sanitizeEnum($this, _this__u8e3s4) {
|
|
|
288
289
|
}
|
|
289
290
|
function Companion() {
|
|
290
291
|
Companion_instance_2 = this;
|
|
291
|
-
this.
|
|
292
|
+
this.k1y_1 = KotlinGenerator_getInstance();
|
|
292
293
|
}
|
|
293
|
-
protoOf(Companion).
|
|
294
|
-
return this.
|
|
294
|
+
protoOf(Companion).v1x = function () {
|
|
295
|
+
return this.k1y_1.z1w_1;
|
|
295
296
|
};
|
|
296
297
|
var Companion_instance_2;
|
|
297
298
|
function Companion_getInstance_0() {
|
|
@@ -304,13 +305,13 @@ function KotlinIrEmitter$sanitizationConfig$delegate$lambda$lambda(it) {
|
|
|
304
305
|
}
|
|
305
306
|
function KotlinIrEmitter$sanitizationConfig$delegate$lambda$lambda_0(this$0) {
|
|
306
307
|
return function (name) {
|
|
307
|
-
var sanitized = name.
|
|
308
|
+
var sanitized = name.f1h_1.b1() > 1 ? name.t1m() : sanitizeSymbol(this$0, name.g1j());
|
|
308
309
|
return new Name(listOf(sanitized));
|
|
309
310
|
};
|
|
310
311
|
}
|
|
311
312
|
function KotlinIrEmitter$sanitizationConfig$delegate$lambda$lambda_1(this$0) {
|
|
312
313
|
return function (name) {
|
|
313
|
-
var sanitized = name.
|
|
314
|
+
var sanitized = name.f1h_1.b1() > 1 ? name.t1m() : sanitizeSymbol(this$0, name.g1j());
|
|
314
315
|
return new Name(listOf(sanitized));
|
|
315
316
|
};
|
|
316
317
|
}
|
|
@@ -324,17 +325,17 @@ function KotlinIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
|
|
|
324
325
|
var tmp;
|
|
325
326
|
var tmp_0;
|
|
326
327
|
if (stmt instanceof FunctionCall) {
|
|
327
|
-
tmp_0 = stmt.
|
|
328
|
+
tmp_0 = stmt.d1n_1.g1j() === 'validate';
|
|
328
329
|
} else {
|
|
329
330
|
tmp_0 = false;
|
|
330
331
|
}
|
|
331
332
|
if (tmp_0) {
|
|
332
|
-
tmp = transformChildren(stmt.
|
|
333
|
+
tmp = transformChildren(stmt.h1n(VOID, emptyList()), tr);
|
|
333
334
|
} else {
|
|
334
335
|
if (stmt instanceof ConstructorStatement) {
|
|
335
|
-
var tmp_1 = tr.
|
|
336
|
+
var tmp_1 = tr.s1v(stmt.y1n_1);
|
|
336
337
|
// Inline function 'kotlin.collections.map' call
|
|
337
|
-
var this_0 = stmt.
|
|
338
|
+
var this_0 = stmt.z1n_1;
|
|
338
339
|
// Inline function 'kotlin.collections.mapTo' call
|
|
339
340
|
var destination = ArrayList_init_$Create$(this_0.b1());
|
|
340
341
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -345,15 +346,15 @@ function KotlinIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
|
|
|
345
346
|
var name = item.l1();
|
|
346
347
|
// Inline function 'kotlin.collections.component2' call
|
|
347
348
|
var expr = item.m1();
|
|
348
|
-
var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), name), tr.
|
|
349
|
+
var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), name), tr.v1v(expr));
|
|
349
350
|
destination.x(tmp$ret$3);
|
|
350
351
|
}
|
|
351
352
|
tmp = new ConstructorStatement(tmp_1, toMap(destination));
|
|
352
353
|
} else {
|
|
353
354
|
if (stmt instanceof VariableReference) {
|
|
354
|
-
var cased = _get_sanitizationConfig__sns434(this$0).
|
|
355
|
-
var sanitized = _get_sanitizationConfig__sns434(this$0).
|
|
356
|
-
var escaped = Companion_getInstance_0().
|
|
355
|
+
var cased = _get_sanitizationConfig__sns434(this$0).o1x_1(stmt.b1o_1);
|
|
356
|
+
var sanitized = _get_sanitizationConfig__sns434(this$0).p1x_1(cased.g1j());
|
|
357
|
+
var escaped = Companion_getInstance_0().v1x().v1(sanitized) ? addBackticks(sanitized) : sanitized;
|
|
357
358
|
tmp = new VariableReference(new Name(listOf(escaped)));
|
|
358
359
|
} else {
|
|
359
360
|
tmp = transformChildren(stmt, tr);
|
|
@@ -365,7 +366,7 @@ function KotlinIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
|
|
|
365
366
|
}
|
|
366
367
|
function KotlinIrEmitter$sanitizationConfig$delegate$lambda(this$0) {
|
|
367
368
|
return function () {
|
|
368
|
-
var tmp = Companion_getInstance_0().
|
|
369
|
+
var tmp = Companion_getInstance_0().v1x();
|
|
369
370
|
var tmp_0 = KotlinIrEmitter$sanitizationConfig$delegate$lambda$lambda;
|
|
370
371
|
var tmp_1 = KotlinIrEmitter$sanitizationConfig$delegate$lambda$lambda_0(this$0);
|
|
371
372
|
var tmp_2 = KotlinIrEmitter$sanitizationConfig$delegate$lambda$lambda_1(this$0);
|
|
@@ -379,7 +380,7 @@ function KotlinIrEmitter$_get_sanitizationConfig_$ref_tnafwf() {
|
|
|
379
380
|
};
|
|
380
381
|
}
|
|
381
382
|
function KotlinIrEmitter$modelSanitizationConfig$delegate$lambda$lambda(name) {
|
|
382
|
-
return new Name(listOf(name.
|
|
383
|
+
return new Name(listOf(name.g1j()));
|
|
383
384
|
}
|
|
384
385
|
function KotlinIrEmitter$modelSanitizationConfig$delegate$lambda$lambda_0(this$0) {
|
|
385
386
|
return function (it) {
|
|
@@ -390,7 +391,7 @@ function KotlinIrEmitter$modelSanitizationConfig$delegate$lambda(this$0) {
|
|
|
390
391
|
return function () {
|
|
391
392
|
var tmp = _get_sanitizationConfig__sns434(this$0);
|
|
392
393
|
var tmp_0 = KotlinIrEmitter$modelSanitizationConfig$delegate$lambda$lambda;
|
|
393
|
-
return tmp.
|
|
394
|
+
return tmp.t1x(VOID, VOID, tmp_0, VOID, KotlinIrEmitter$modelSanitizationConfig$delegate$lambda$lambda_0(this$0));
|
|
394
395
|
};
|
|
395
396
|
}
|
|
396
397
|
function KotlinIrEmitter$_get_modelSanitizationConfig_$ref_iulb4s() {
|
|
@@ -402,7 +403,7 @@ function KotlinIrEmitter$emitShared$lambda(element, transformer) {
|
|
|
402
403
|
var tmp;
|
|
403
404
|
if (element instanceof File) {
|
|
404
405
|
// Inline function 'kotlin.collections.partition' call
|
|
405
|
-
var this_0 = element.
|
|
406
|
+
var this_0 = element.d1o_1;
|
|
406
407
|
var first = ArrayList_init_$Create$_0();
|
|
407
408
|
var second = ArrayList_init_$Create$_0();
|
|
408
409
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -417,7 +418,7 @@ function KotlinIrEmitter$emitShared$lambda(element, transformer) {
|
|
|
417
418
|
var _destruct__k2r9zo = new Pair(first, second);
|
|
418
419
|
var packageElements = _destruct__k2r9zo.we();
|
|
419
420
|
var rest = _destruct__k2r9zo.xe();
|
|
420
|
-
tmp = element.
|
|
421
|
+
tmp = element.g1o(VOID, plus_0(plus(packageElements, import_0('kotlin.reflect', 'KType')), rest));
|
|
421
422
|
} else {
|
|
422
423
|
tmp = element;
|
|
423
424
|
}
|
|
@@ -428,27 +429,27 @@ function KotlinIrEmitter$emitShared$lambda_0($clientServer) {
|
|
|
428
429
|
return function (element, transformer) {
|
|
429
430
|
var tmp;
|
|
430
431
|
if (element instanceof Namespace) {
|
|
431
|
-
var injected = element.
|
|
432
|
+
var injected = element.i1o_1.equals(Companion_getInstance().h1h('Wirespec')) ? $clientServer : emptyList();
|
|
432
433
|
var tmp_0;
|
|
433
434
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
434
435
|
if (!injected.r()) {
|
|
435
436
|
// Inline function 'community.flock.wirespec.ir.core.withElements' call
|
|
436
|
-
var elements = plus_0(element.
|
|
437
|
+
var elements = plus_0(element.e1o(), injected);
|
|
437
438
|
var tmp_1;
|
|
438
439
|
if (element instanceof File) {
|
|
439
|
-
tmp_1 = element.
|
|
440
|
+
tmp_1 = element.g1o(VOID, elements);
|
|
440
441
|
} else {
|
|
441
442
|
if (element instanceof Struct) {
|
|
442
|
-
tmp_1 = element.
|
|
443
|
+
tmp_1 = element.n1q(VOID, VOID, VOID, VOID, elements);
|
|
443
444
|
} else {
|
|
444
445
|
if (element instanceof Namespace) {
|
|
445
|
-
tmp_1 = element.
|
|
446
|
+
tmp_1 = element.n1o(VOID, elements);
|
|
446
447
|
} else {
|
|
447
448
|
if (element instanceof Interface) {
|
|
448
|
-
tmp_1 = element.
|
|
449
|
+
tmp_1 = element.w1o(VOID, elements);
|
|
449
450
|
} else {
|
|
450
451
|
if (element instanceof Enum) {
|
|
451
|
-
tmp_1 = element.
|
|
452
|
+
tmp_1 = element.b1q(VOID, VOID, VOID, VOID, VOID, elements);
|
|
452
453
|
} else {
|
|
453
454
|
if (element instanceof Main) {
|
|
454
455
|
tmp_1 = element;
|
|
@@ -478,33 +479,33 @@ function KotlinIrEmitter$withExplicitVisibility$lambda(element, transformer) {
|
|
|
478
479
|
if (isInterface(element, Element)) {
|
|
479
480
|
var tmp_0;
|
|
480
481
|
if (element instanceof Namespace) {
|
|
481
|
-
tmp_0 = element.
|
|
482
|
+
tmp_0 = element.n1o(VOID, VOID, VOID, Visibility_PUBLIC_getInstance());
|
|
482
483
|
} else {
|
|
483
484
|
if (element instanceof Interface) {
|
|
484
485
|
var tmp2_visibility = Visibility_PUBLIC_getInstance();
|
|
485
486
|
// Inline function 'kotlin.collections.map' call
|
|
486
|
-
var this_0 = element.
|
|
487
|
+
var this_0 = element.t1o_1;
|
|
487
488
|
// Inline function 'kotlin.collections.mapTo' call
|
|
488
489
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
489
490
|
var _iterator__ex2g4s = this_0.t();
|
|
490
491
|
while (_iterator__ex2g4s.u()) {
|
|
491
492
|
var item = _iterator__ex2g4s.v();
|
|
492
|
-
var tmp$ret$0 = item.
|
|
493
|
+
var tmp$ret$0 = item.h1p(VOID, VOID, VOID, VOID, Visibility_PUBLIC_getInstance());
|
|
493
494
|
destination.x(tmp$ret$0);
|
|
494
495
|
}
|
|
495
|
-
tmp_0 = element.
|
|
496
|
+
tmp_0 = element.w1o(VOID, VOID, VOID, VOID, VOID, destination, tmp2_visibility);
|
|
496
497
|
} else {
|
|
497
498
|
if (element instanceof Union) {
|
|
498
|
-
tmp_0 = element.
|
|
499
|
+
tmp_0 = element.o1p(VOID, VOID, VOID, VOID, Visibility_PUBLIC_getInstance());
|
|
499
500
|
} else {
|
|
500
501
|
if (element instanceof Enum) {
|
|
501
|
-
tmp_0 = element.
|
|
502
|
+
tmp_0 = element.b1q(VOID, VOID, VOID, VOID, VOID, VOID, Visibility_PUBLIC_getInstance());
|
|
502
503
|
} else {
|
|
503
504
|
if (element instanceof Struct) {
|
|
504
|
-
tmp_0 = element.
|
|
505
|
+
tmp_0 = element.n1q(VOID, VOID, VOID, VOID, VOID, VOID, Visibility_PUBLIC_getInstance());
|
|
505
506
|
} else {
|
|
506
507
|
if (element instanceof Function) {
|
|
507
|
-
tmp_0 = element.
|
|
508
|
+
tmp_0 = element.p1l(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Visibility_PUBLIC_getInstance());
|
|
508
509
|
} else {
|
|
509
510
|
tmp_0 = element;
|
|
510
511
|
}
|
|
@@ -533,7 +534,7 @@ function KotlinIrEmitter$emitGenerator$lambda_1(it) {
|
|
|
533
534
|
}
|
|
534
535
|
function KotlinIrEmitter$emitGenerator$lambda_2(this$0) {
|
|
535
536
|
return function (it) {
|
|
536
|
-
return import_0(this$0.
|
|
537
|
+
return import_0(this$0.c1y().js_1 + '.model', it);
|
|
537
538
|
};
|
|
538
539
|
}
|
|
539
540
|
function KotlinIrEmitter$emit$lambda(this$0) {
|
|
@@ -543,29 +544,29 @@ function KotlinIrEmitter$emit$lambda(this$0) {
|
|
|
543
544
|
}
|
|
544
545
|
function KotlinIrEmitter(packageName, emitShared) {
|
|
545
546
|
Companion_getInstance_0();
|
|
546
|
-
packageName = packageName === VOID ? Companion_instance_0.
|
|
547
|
+
packageName = packageName === VOID ? Companion_instance_0.is('community.flock.wirespec.generated') : packageName;
|
|
547
548
|
emitShared = emitShared === VOID ? Companion_instance_1.fp() : emitShared;
|
|
548
|
-
this.
|
|
549
|
-
this.
|
|
550
|
-
this.
|
|
551
|
-
this.
|
|
552
|
-
this.
|
|
549
|
+
this.d1y_1 = packageName;
|
|
550
|
+
this.e1y_1 = emitShared;
|
|
551
|
+
this.f1y_1 = KotlinGenerator_getInstance();
|
|
552
|
+
this.g1y_1 = FileExtension_Kotlin_getInstance();
|
|
553
|
+
this.h1y_1 = listOf_0([import_0('community.flock.wirespec.kotlin', 'Wirespec'), import_0('kotlin.reflect', 'typeOf')]);
|
|
553
554
|
var tmp = this;
|
|
554
|
-
tmp.
|
|
555
|
+
tmp.i1y_1 = lazy(KotlinIrEmitter$sanitizationConfig$delegate$lambda(this));
|
|
555
556
|
var tmp_0 = this;
|
|
556
|
-
tmp_0.
|
|
557
|
+
tmp_0.j1y_1 = lazy(KotlinIrEmitter$modelSanitizationConfig$delegate$lambda(this));
|
|
557
558
|
}
|
|
558
|
-
protoOf(KotlinIrEmitter).
|
|
559
|
-
return this.
|
|
559
|
+
protoOf(KotlinIrEmitter).c1y = function () {
|
|
560
|
+
return this.d1y_1;
|
|
560
561
|
};
|
|
561
|
-
protoOf(KotlinIrEmitter).
|
|
562
|
-
return this.
|
|
562
|
+
protoOf(KotlinIrEmitter).n1w = function () {
|
|
563
|
+
return this.f1y_1;
|
|
563
564
|
};
|
|
564
|
-
protoOf(KotlinIrEmitter).
|
|
565
|
-
return this.
|
|
565
|
+
protoOf(KotlinIrEmitter).kr = function () {
|
|
566
|
+
return this.g1y_1;
|
|
566
567
|
};
|
|
567
|
-
protoOf(KotlinIrEmitter).
|
|
568
|
-
var packageName = Companion_instance_0.
|
|
568
|
+
protoOf(KotlinIrEmitter).r1w = function () {
|
|
569
|
+
var packageName = Companion_instance_0.is('community.flock.wirespec.kotlin');
|
|
569
570
|
var clientServer = convertClientServer();
|
|
570
571
|
// Inline function 'community.flock.wirespec.ir.core.transform' call
|
|
571
572
|
var this_0 = convert(packageName);
|
|
@@ -573,48 +574,48 @@ protoOf(KotlinIrEmitter).h1w = function () {
|
|
|
573
574
|
// Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
|
|
574
575
|
var tmp = scope;
|
|
575
576
|
// Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
|
|
576
|
-
var this_1 = scope.
|
|
577
|
+
var this_1 = scope.a1w_1;
|
|
577
578
|
// Inline function 'community.flock.wirespec.ir.core.transformer' call
|
|
578
579
|
// Inline function 'kotlin.apply' call
|
|
579
580
|
var this_2 = new TransformerBuilder();
|
|
580
|
-
this_2.
|
|
581
|
-
var tmp$ret$2 = this_2.
|
|
582
|
-
tmp.
|
|
581
|
+
this_2.u1i(KotlinIrEmitter$emitShared$lambda);
|
|
582
|
+
var tmp$ret$2 = this_2.v1i();
|
|
583
|
+
tmp.a1w_1 = transform(this_1, tmp$ret$2);
|
|
583
584
|
// Inline function 'community.flock.wirespec.ir.core.TransformScope.injectAfter' call
|
|
584
585
|
var tmp_0 = scope;
|
|
585
586
|
// Inline function 'community.flock.wirespec.ir.core.injectAfter' call
|
|
586
587
|
// Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
|
|
587
|
-
var this_3 = scope.
|
|
588
|
+
var this_3 = scope.a1w_1;
|
|
588
589
|
// Inline function 'community.flock.wirespec.ir.core.transformer' call
|
|
589
590
|
// Inline function 'kotlin.apply' call
|
|
590
591
|
var this_4 = new TransformerBuilder();
|
|
591
|
-
this_4.
|
|
592
|
-
var tmp$ret$7 = this_4.
|
|
593
|
-
tmp_0.
|
|
594
|
-
var tmp_1 = scope.
|
|
592
|
+
this_4.u1i(KotlinIrEmitter$emitShared$lambda_0(clientServer));
|
|
593
|
+
var tmp$ret$7 = this_4.v1i();
|
|
594
|
+
tmp_0.a1w_1 = transform(this_3, tmp$ret$7);
|
|
595
|
+
var tmp_1 = scope.a1w_1;
|
|
595
596
|
var wirespecShared = isInterface(tmp_1, Element) ? tmp_1 : THROW_CCE();
|
|
596
597
|
var tmp_2;
|
|
597
|
-
if (this.
|
|
598
|
+
if (this.e1y_1.gp_1) {
|
|
598
599
|
tmp_2 = withExplicitVisibility(this, wirespecShared);
|
|
599
600
|
} else {
|
|
600
601
|
tmp_2 = null;
|
|
601
602
|
}
|
|
602
603
|
return tmp_2;
|
|
603
604
|
};
|
|
604
|
-
protoOf(KotlinIrEmitter).
|
|
605
|
+
protoOf(KotlinIrEmitter).lr = function (definition, module_0, logger) {
|
|
605
606
|
var file = emit.call(this, definition, module_0, logger);
|
|
606
607
|
// Inline function 'kotlin.takeIf' call
|
|
607
|
-
var this_0 = this.
|
|
608
|
+
var this_0 = this.h1y_1;
|
|
608
609
|
var tmp;
|
|
609
|
-
if (Companion_instance.
|
|
610
|
+
if (Companion_instance.er(module_0)) {
|
|
610
611
|
tmp = this_0;
|
|
611
612
|
} else {
|
|
612
613
|
tmp = null;
|
|
613
614
|
}
|
|
614
615
|
var tmp$ret$1 = tmp;
|
|
615
|
-
return placeInPackage(prependImports(file, tmp$ret$1), this.
|
|
616
|
+
return placeInPackage(prependImports(file, tmp$ret$1), this.c1y(), definition);
|
|
616
617
|
};
|
|
617
|
-
protoOf(KotlinIrEmitter).
|
|
618
|
+
protoOf(KotlinIrEmitter).w1w = function (definition, module_0) {
|
|
618
619
|
var tmp;
|
|
619
620
|
if (definition instanceof Type) {
|
|
620
621
|
tmp = convertToGenerator_2(definition, module_0);
|
|
@@ -635,29 +636,29 @@ protoOf(KotlinIrEmitter).m1w = function (definition, module_0) {
|
|
|
635
636
|
}
|
|
636
637
|
var generatorFile = tmp;
|
|
637
638
|
var sanitized = sanitizeNames(generatorFile, _get_sanitizationConfig__sns434(this));
|
|
638
|
-
var generatorOwnName = definition.
|
|
639
|
+
var generatorOwnName = definition.mr().m1() + 'Generator';
|
|
639
640
|
var tmp_0 = asSequence(collectCustomTypeNames(sanitized));
|
|
640
641
|
var tmp_1 = filterNot(tmp_0, KotlinIrEmitter$emitGenerator$lambda);
|
|
641
642
|
var tmp_2 = filterNot(tmp_1, KotlinIrEmitter$emitGenerator$lambda_0(generatorOwnName));
|
|
642
643
|
var tmp_3 = distinct(map(tmp_2, KotlinIrEmitter$emitGenerator$lambda_1));
|
|
643
644
|
var modelImports = toList(map(tmp_3, KotlinIrEmitter$emitGenerator$lambda_2(this)));
|
|
644
|
-
return placeInPackage_0(prependImports(sanitized, plus_0(this.
|
|
645
|
+
return placeInPackage_0(prependImports(sanitized, plus_0(this.h1y_1, modelImports)), this.c1y(), 'generator');
|
|
645
646
|
};
|
|
646
|
-
protoOf(KotlinIrEmitter).
|
|
647
|
+
protoOf(KotlinIrEmitter).cs = function (type, module_0) {
|
|
647
648
|
return ensureEmptyStructHasConstructor(sanitizeNames(convertWithValidation(type, module_0), _get_modelSanitizationConfig__vgg831(this)));
|
|
648
649
|
};
|
|
649
|
-
protoOf(KotlinIrEmitter).
|
|
650
|
+
protoOf(KotlinIrEmitter).as = function (enum_0, module_0) {
|
|
650
651
|
var tmp = sanitizeNames(convert_0(enum_0), _get_sanitizationConfig__sns434(this));
|
|
651
652
|
return injectEnumLabelField(tmp, KotlinIrEmitter$emit$lambda(this));
|
|
652
653
|
};
|
|
653
|
-
protoOf(KotlinIrEmitter).
|
|
654
|
+
protoOf(KotlinIrEmitter).qr = function (union) {
|
|
654
655
|
return sanitizeNames(convert_1(union), _get_sanitizationConfig__sns434(this));
|
|
655
656
|
};
|
|
656
|
-
protoOf(KotlinIrEmitter).
|
|
657
|
+
protoOf(KotlinIrEmitter).vr = function (refined) {
|
|
657
658
|
var file = sanitizeNames(convert_2(refined), _get_sanitizationConfig__sns434(this));
|
|
658
659
|
// Inline function 'community.flock.wirespec.ir.core.findElement' call
|
|
659
660
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
660
|
-
var tmp0 = file.
|
|
661
|
+
var tmp0 = file.e1o();
|
|
661
662
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
662
663
|
var destination = ArrayList_init_$Create$_0();
|
|
663
664
|
var _iterator__ex2g4s = tmp0.t();
|
|
@@ -669,13 +670,13 @@ protoOf(KotlinIrEmitter).or = function (refined) {
|
|
|
669
670
|
}
|
|
670
671
|
var tmp0_safe_receiver = firstOrNull_0(destination);
|
|
671
672
|
var updatedStruct = tmp0_safe_receiver == null ? null : markMembersAsOverride(tmp0_safe_receiver);
|
|
672
|
-
return new File(Companion_getInstance().
|
|
673
|
+
return new File(Companion_getInstance().h1h(sanitize(this, refined.tr_1)), listOfNotNull(updatedStruct));
|
|
673
674
|
};
|
|
674
|
-
protoOf(KotlinIrEmitter).
|
|
675
|
-
var imports = buildModelImports(endpoint, this.
|
|
675
|
+
protoOf(KotlinIrEmitter).bs = function (endpoint) {
|
|
676
|
+
var imports = buildModelImports(endpoint, this.c1y());
|
|
676
677
|
// Inline function 'community.flock.wirespec.ir.core.findElement' call
|
|
677
678
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
678
|
-
var tmp0 = convert_3(endpoint).
|
|
679
|
+
var tmp0 = convert_3(endpoint).e1o();
|
|
679
680
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
680
681
|
var destination = ArrayList_init_$Create$_0();
|
|
681
682
|
var _iterator__ex2g4s = tmp0.t();
|
|
@@ -688,7 +689,7 @@ protoOf(KotlinIrEmitter).ur = function (endpoint) {
|
|
|
688
689
|
var tmp$ret$2 = firstOrNull_0(destination);
|
|
689
690
|
var endpointNamespace = ensureNotNull(tmp$ret$2);
|
|
690
691
|
var body = injectApiAlias(injectCompanionObject(endpointNamespace, endpoint));
|
|
691
|
-
var tmp = sanitizeNames(new File(Companion_getInstance().
|
|
692
|
+
var tmp = sanitizeNames(new File(Companion_getInstance().h1h(sanitize(this, endpoint.kq_1)), listOf(body)), _get_sanitizationConfig__sns434(this));
|
|
692
693
|
// Inline function 'kotlin.takeIf' call
|
|
693
694
|
var tmp_0;
|
|
694
695
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
@@ -700,10 +701,10 @@ protoOf(KotlinIrEmitter).ur = function (endpoint) {
|
|
|
700
701
|
var tmp$ret$5 = tmp_0;
|
|
701
702
|
return prependImports(tmp, tmp$ret$5);
|
|
702
703
|
};
|
|
703
|
-
protoOf(KotlinIrEmitter).
|
|
704
|
+
protoOf(KotlinIrEmitter).pr = function (channel) {
|
|
704
705
|
var tmp = sanitizeNames(convert_4(channel), _get_sanitizationConfig__sns434(this));
|
|
705
706
|
// Inline function 'kotlin.takeIf' call
|
|
706
|
-
var this_0 = buildModelImports(channel, this.
|
|
707
|
+
var this_0 = buildModelImports(channel, this.c1y());
|
|
707
708
|
var tmp_0;
|
|
708
709
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
709
710
|
if (!this_0.r()) {
|
|
@@ -714,25 +715,39 @@ protoOf(KotlinIrEmitter).ir = function (channel) {
|
|
|
714
715
|
var tmp$ret$2 = tmp_0;
|
|
715
716
|
return prependImports(tmp, tmp$ret$2);
|
|
716
717
|
};
|
|
717
|
-
protoOf(KotlinIrEmitter).
|
|
718
|
-
var
|
|
719
|
-
|
|
718
|
+
protoOf(KotlinIrEmitter).or = function (rpc) {
|
|
719
|
+
var tmp = sanitizeNames(convert_5(rpc), _get_sanitizationConfig__sns434(this));
|
|
720
|
+
// Inline function 'kotlin.takeIf' call
|
|
721
|
+
var this_0 = buildModelImports(rpc, this.c1y());
|
|
722
|
+
var tmp_0;
|
|
723
|
+
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
724
|
+
if (!this_0.r()) {
|
|
725
|
+
tmp_0 = this_0;
|
|
726
|
+
} else {
|
|
727
|
+
tmp_0 = null;
|
|
728
|
+
}
|
|
729
|
+
var tmp$ret$2 = tmp_0;
|
|
730
|
+
return prependImports(tmp, tmp$ret$2);
|
|
731
|
+
};
|
|
732
|
+
protoOf(KotlinIrEmitter).v1w = function (endpoint) {
|
|
733
|
+
var imports = buildModelImports(endpoint, this.c1y());
|
|
734
|
+
var endpointImport = import_0(this.c1y().js_1 + '.endpoint', endpoint.kq_1.m1());
|
|
720
735
|
var file = sanitizeNames(emitEndpointClient.call(this, endpoint), _get_sanitizationConfig__sns434(this));
|
|
721
|
-
var subPackageName = plus_1(this.
|
|
722
|
-
var tmp = Companion_getInstance().
|
|
736
|
+
var subPackageName = plus_1(this.c1y(), 'client');
|
|
737
|
+
var tmp = Companion_getInstance().h1h(subPackageName.ls() + file.c1o_1.i1h());
|
|
723
738
|
// Inline function 'kotlin.collections.buildList' call
|
|
724
739
|
// Inline function 'kotlin.collections.buildListInternal' call
|
|
725
740
|
// Inline function 'kotlin.apply' call
|
|
726
741
|
var this_0 = ArrayList_init_$Create$_0();
|
|
727
|
-
this_0.x(new Package(subPackageName.
|
|
728
|
-
this_0.g1(this.
|
|
742
|
+
this_0.x(new Package(subPackageName.js_1));
|
|
743
|
+
this_0.g1(this.h1y_1);
|
|
729
744
|
this_0.g1(imports);
|
|
730
745
|
this_0.x(endpointImport);
|
|
731
|
-
this_0.g1(file.
|
|
746
|
+
this_0.g1(file.d1o_1);
|
|
732
747
|
var tmp$ret$3 = this_0.p5();
|
|
733
748
|
return new File(tmp, tmp$ret$3);
|
|
734
749
|
};
|
|
735
|
-
protoOf(KotlinIrEmitter).
|
|
750
|
+
protoOf(KotlinIrEmitter).s1w = function (endpoints, logger) {
|
|
736
751
|
// Inline function 'kotlin.collections.flatMap' call
|
|
737
752
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
738
753
|
var destination = ArrayList_init_$Create$_0();
|
|
@@ -748,7 +763,7 @@ protoOf(KotlinIrEmitter).i1w = function (endpoints, logger) {
|
|
|
748
763
|
var _iterator__ex2g4s_0 = destination.t();
|
|
749
764
|
while (_iterator__ex2g4s_0.u()) {
|
|
750
765
|
var e = _iterator__ex2g4s_0.v();
|
|
751
|
-
var key = e.
|
|
766
|
+
var key = e.lv_1;
|
|
752
767
|
if (set.x(key)) {
|
|
753
768
|
list_0.x(e);
|
|
754
769
|
}
|
|
@@ -759,7 +774,7 @@ protoOf(KotlinIrEmitter).i1w = function (endpoints, logger) {
|
|
|
759
774
|
var _iterator__ex2g4s_1 = list_0.t();
|
|
760
775
|
while (_iterator__ex2g4s_1.u()) {
|
|
761
776
|
var item = _iterator__ex2g4s_1.v();
|
|
762
|
-
var tmp$ret$5 = import_0(this.
|
|
777
|
+
var tmp$ret$5 = import_0(this.c1y().js_1 + '.model', item.lv_1);
|
|
763
778
|
destination_0.x(tmp$ret$5);
|
|
764
779
|
}
|
|
765
780
|
var imports = destination_0;
|
|
@@ -769,7 +784,7 @@ protoOf(KotlinIrEmitter).i1w = function (endpoints, logger) {
|
|
|
769
784
|
var _iterator__ex2g4s_2 = endpoints.t();
|
|
770
785
|
while (_iterator__ex2g4s_2.u()) {
|
|
771
786
|
var item_0 = _iterator__ex2g4s_2.v();
|
|
772
|
-
var tmp$ret$8 = import_0(this.
|
|
787
|
+
var tmp$ret$8 = import_0(this.c1y().js_1 + '.endpoint', item_0.kq_1.m1());
|
|
773
788
|
destination_1.x(tmp$ret$8);
|
|
774
789
|
}
|
|
775
790
|
var endpointImports = destination_1;
|
|
@@ -779,21 +794,21 @@ protoOf(KotlinIrEmitter).i1w = function (endpoints, logger) {
|
|
|
779
794
|
var _iterator__ex2g4s_3 = endpoints.t();
|
|
780
795
|
while (_iterator__ex2g4s_3.u()) {
|
|
781
796
|
var item_1 = _iterator__ex2g4s_3.v();
|
|
782
|
-
var tmp$ret$11 = import_0(this.
|
|
797
|
+
var tmp$ret$11 = import_0(this.c1y().js_1 + '.client', item_1.kq_1.m1() + 'Client');
|
|
783
798
|
destination_2.x(tmp$ret$11);
|
|
784
799
|
}
|
|
785
800
|
var clientImports = destination_2;
|
|
786
801
|
var allImports = plus_0(plus_0(imports, endpointImports), clientImports);
|
|
787
802
|
var file = sanitizeNames(emitClient.call(this, endpoints, logger), _get_sanitizationConfig__sns434(this));
|
|
788
|
-
var tmp = Companion_getInstance().
|
|
803
|
+
var tmp = Companion_getInstance().h1h(this.c1y().ls() + file.c1o_1.i1h());
|
|
789
804
|
// Inline function 'kotlin.collections.buildList' call
|
|
790
805
|
// Inline function 'kotlin.collections.buildListInternal' call
|
|
791
806
|
// Inline function 'kotlin.apply' call
|
|
792
807
|
var this_0 = ArrayList_init_$Create$_0();
|
|
793
|
-
this_0.x(new Package(this.
|
|
794
|
-
this_0.g1(this.
|
|
808
|
+
this_0.x(new Package(this.c1y().js_1));
|
|
809
|
+
this_0.g1(this.h1y_1);
|
|
795
810
|
this_0.g1(allImports);
|
|
796
|
-
this_0.g1(file.
|
|
811
|
+
this_0.g1(file.d1o_1);
|
|
797
812
|
var tmp$ret$17 = this_0.p5();
|
|
798
813
|
return new File(tmp, tmp$ret$17);
|
|
799
814
|
};
|
|
@@ -805,7 +820,7 @@ function buildModelImports(_this__u8e3s4, packageName) {
|
|
|
805
820
|
var _iterator__ex2g4s = this_0.t();
|
|
806
821
|
while (_iterator__ex2g4s.u()) {
|
|
807
822
|
var e = _iterator__ex2g4s.v();
|
|
808
|
-
var key = e.
|
|
823
|
+
var key = e.lv_1;
|
|
809
824
|
if (set.x(key)) {
|
|
810
825
|
list.x(e);
|
|
811
826
|
}
|
|
@@ -816,7 +831,7 @@ function buildModelImports(_this__u8e3s4, packageName) {
|
|
|
816
831
|
var _iterator__ex2g4s_0 = list.t();
|
|
817
832
|
while (_iterator__ex2g4s_0.u()) {
|
|
818
833
|
var item = _iterator__ex2g4s_0.v();
|
|
819
|
-
var tmp$ret$2 = import_0(packageName.
|
|
834
|
+
var tmp$ret$2 = import_0(packageName.js_1 + '.model', Companion_getInstance().h1h(item.lv_1).i1h());
|
|
820
835
|
destination.x(tmp$ret$2);
|
|
821
836
|
}
|
|
822
837
|
return destination;
|
|
@@ -828,14 +843,14 @@ function injectApiAlias(_this__u8e3s4) {
|
|
|
828
843
|
var tmp = scope;
|
|
829
844
|
// Inline function 'community.flock.wirespec.ir.core.injectAfter' call
|
|
830
845
|
// Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
|
|
831
|
-
var this_0 = scope.
|
|
846
|
+
var this_0 = scope.a1w_1;
|
|
832
847
|
// Inline function 'community.flock.wirespec.ir.core.transformer' call
|
|
833
848
|
// Inline function 'kotlin.apply' call
|
|
834
849
|
var this_1 = new TransformerBuilder();
|
|
835
|
-
this_1.
|
|
836
|
-
var tmp$ret$2 = this_1.
|
|
837
|
-
tmp.
|
|
838
|
-
var tmp_0 = scope.
|
|
850
|
+
this_1.u1i(injectApiAlias$lambda);
|
|
851
|
+
var tmp$ret$2 = this_1.v1i();
|
|
852
|
+
tmp.a1w_1 = transform(this_0, tmp$ret$2);
|
|
853
|
+
var tmp_0 = scope.a1w_1;
|
|
839
854
|
return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
|
|
840
855
|
}
|
|
841
856
|
function injectCompanionObject(_this__u8e3s4, endpoint) {
|
|
@@ -845,20 +860,20 @@ function injectCompanionObject(_this__u8e3s4, endpoint) {
|
|
|
845
860
|
var tmp = scope;
|
|
846
861
|
// Inline function 'community.flock.wirespec.ir.core.injectAfter' call
|
|
847
862
|
// Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
|
|
848
|
-
var this_0 = scope.
|
|
863
|
+
var this_0 = scope.a1w_1;
|
|
849
864
|
// Inline function 'community.flock.wirespec.ir.core.transformer' call
|
|
850
865
|
// Inline function 'kotlin.apply' call
|
|
851
866
|
var this_1 = new TransformerBuilder();
|
|
852
|
-
this_1.
|
|
853
|
-
var tmp$ret$2 = this_1.
|
|
854
|
-
tmp.
|
|
855
|
-
var tmp_0 = scope.
|
|
867
|
+
this_1.u1i(injectCompanionObject$lambda(endpoint));
|
|
868
|
+
var tmp$ret$2 = this_1.v1i();
|
|
869
|
+
tmp.a1w_1 = transform(this_0, tmp$ret$2);
|
|
870
|
+
var tmp_0 = scope.a1w_1;
|
|
856
871
|
return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
|
|
857
872
|
}
|
|
858
873
|
function buildCompanionObject(endpoint) {
|
|
859
|
-
var pathTemplate = '/' + joinToString(endpoint.
|
|
874
|
+
var pathTemplate = '/' + joinToString(endpoint.mq_1, '/', VOID, VOID, VOID, VOID, buildCompanionObject$lambda);
|
|
860
875
|
// Inline function 'kotlin.let' call
|
|
861
|
-
var p0 = trimMargin('\n |companion object: Wirespec.Server<Request, Response<*>>, Wirespec.Client<Request, Response<*>> {\n | override val pathTemplate = "' + pathTemplate + '"\n | override val method = "' + endpoint.
|
|
876
|
+
var p0 = trimMargin('\n |companion object: Wirespec.Server<Request, Response<*>>, Wirespec.Client<Request, Response<*>> {\n | override val pathTemplate = "' + pathTemplate + '"\n | override val method = "' + endpoint.lq_1.toString() + '"\n | override fun server(serialization: Wirespec.Serialization) = object : Wirespec.ServerEdge<Request, Response<*>> {\n | override fun from(request: Wirespec.RawRequest) = fromRawRequest(serialization, request)\n | override fun to(response: Response<*>) = toRawResponse(serialization, response)\n | }\n | override fun client(serialization: Wirespec.Serialization) = object : Wirespec.ClientEdge<Request, Response<*>> {\n | override fun to(request: Request) = toRawRequest(serialization, request)\n | override fun from(response: Wirespec.RawResponse) = fromRawResponse(serialization, response)\n | }\n |}\n ');
|
|
862
877
|
return raw(p0);
|
|
863
878
|
}
|
|
864
879
|
function injectApiAlias$lambda(element, transformer) {
|
|
@@ -869,22 +884,22 @@ function injectApiAlias$lambda(element, transformer) {
|
|
|
869
884
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
870
885
|
if (!injected.r()) {
|
|
871
886
|
// Inline function 'community.flock.wirespec.ir.core.withElements' call
|
|
872
|
-
var elements = plus_0(element.
|
|
887
|
+
var elements = plus_0(element.e1o(), injected);
|
|
873
888
|
var tmp_1;
|
|
874
889
|
if (element instanceof File) {
|
|
875
|
-
tmp_1 = element.
|
|
890
|
+
tmp_1 = element.g1o(VOID, elements);
|
|
876
891
|
} else {
|
|
877
892
|
if (element instanceof Struct) {
|
|
878
|
-
tmp_1 = element.
|
|
893
|
+
tmp_1 = element.n1q(VOID, VOID, VOID, VOID, elements);
|
|
879
894
|
} else {
|
|
880
895
|
if (element instanceof Namespace) {
|
|
881
|
-
tmp_1 = element.
|
|
896
|
+
tmp_1 = element.n1o(VOID, elements);
|
|
882
897
|
} else {
|
|
883
898
|
if (element instanceof Interface) {
|
|
884
|
-
tmp_1 = element.
|
|
899
|
+
tmp_1 = element.w1o(VOID, elements);
|
|
885
900
|
} else {
|
|
886
901
|
if (element instanceof Enum) {
|
|
887
|
-
tmp_1 = element.
|
|
902
|
+
tmp_1 = element.b1q(VOID, VOID, VOID, VOID, VOID, elements);
|
|
888
903
|
} else {
|
|
889
904
|
if (element instanceof Main) {
|
|
890
905
|
tmp_1 = element;
|
|
@@ -912,27 +927,27 @@ function injectCompanionObject$lambda($endpoint) {
|
|
|
912
927
|
return function (element, transformer) {
|
|
913
928
|
var tmp;
|
|
914
929
|
if (element instanceof Interface) {
|
|
915
|
-
var injected = element.
|
|
930
|
+
var injected = element.o1o_1.equals(Companion_getInstance().h1h('Handler')) ? listOf(buildCompanionObject($endpoint)) : emptyList();
|
|
916
931
|
var tmp_0;
|
|
917
932
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
918
933
|
if (!injected.r()) {
|
|
919
934
|
// Inline function 'community.flock.wirespec.ir.core.withElements' call
|
|
920
|
-
var elements = plus_0(element.
|
|
935
|
+
var elements = plus_0(element.e1o(), injected);
|
|
921
936
|
var tmp_1;
|
|
922
937
|
if (element instanceof File) {
|
|
923
|
-
tmp_1 = element.
|
|
938
|
+
tmp_1 = element.g1o(VOID, elements);
|
|
924
939
|
} else {
|
|
925
940
|
if (element instanceof Struct) {
|
|
926
|
-
tmp_1 = element.
|
|
941
|
+
tmp_1 = element.n1q(VOID, VOID, VOID, VOID, elements);
|
|
927
942
|
} else {
|
|
928
943
|
if (element instanceof Namespace) {
|
|
929
|
-
tmp_1 = element.
|
|
944
|
+
tmp_1 = element.n1o(VOID, elements);
|
|
930
945
|
} else {
|
|
931
946
|
if (element instanceof Interface) {
|
|
932
|
-
tmp_1 = element.
|
|
947
|
+
tmp_1 = element.w1o(VOID, elements);
|
|
933
948
|
} else {
|
|
934
949
|
if (element instanceof Enum) {
|
|
935
|
-
tmp_1 = element.
|
|
950
|
+
tmp_1 = element.b1q(VOID, VOID, VOID, VOID, VOID, elements);
|
|
936
951
|
} else {
|
|
937
952
|
if (element instanceof Main) {
|
|
938
953
|
tmp_1 = element;
|
|
@@ -960,10 +975,10 @@ function injectCompanionObject$lambda($endpoint) {
|
|
|
960
975
|
function buildCompanionObject$lambda(it) {
|
|
961
976
|
var tmp;
|
|
962
977
|
if (it instanceof Literal) {
|
|
963
|
-
tmp = it.
|
|
978
|
+
tmp = it.bu_1;
|
|
964
979
|
} else {
|
|
965
980
|
if (it instanceof Param) {
|
|
966
|
-
tmp = '{' + it.
|
|
981
|
+
tmp = '{' + it.rq_1.m1() + '}';
|
|
967
982
|
} else {
|
|
968
983
|
noWhenBranchMatchedException();
|
|
969
984
|
}
|
|
@@ -971,10 +986,10 @@ function buildCompanionObject$lambda(it) {
|
|
|
971
986
|
return tmp;
|
|
972
987
|
}
|
|
973
988
|
//region block: post-declaration
|
|
974
|
-
protoOf(KotlinIrEmitter).
|
|
989
|
+
protoOf(KotlinIrEmitter).p1w = get_extensions;
|
|
975
990
|
protoOf(KotlinIrEmitter).no = emit_0;
|
|
976
|
-
protoOf(KotlinIrEmitter).
|
|
977
|
-
protoOf(KotlinIrEmitter).
|
|
991
|
+
protoOf(KotlinIrEmitter).q1w = emit_1;
|
|
992
|
+
protoOf(KotlinIrEmitter).u1w = beforeGenerate;
|
|
978
993
|
//endregion
|
|
979
994
|
//region block: exports
|
|
980
995
|
export {
|