@flock/wirespec 0.19.5 → 0.19.7
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 +1265 -1265
- package/clikt-clikt.mjs.map +1 -1
- package/colormath-root-colormath.mjs +406 -406
- package/kotlin-kotlin-stdlib.mjs +78 -77
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +9382 -9382
- package/kotlin-rgxgen.mjs +1757 -1757
- package/kotlinx-io-kotlinx-io-core.mjs +397 -397
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1708 -1708
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1449 -1449
- package/mordant-mordant.mjs +1095 -1095
- package/package.json +2 -2
- package/wirespec-src-compiler-core.mjs +985 -968
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-java.mjs +379 -408
- package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-kotlin.mjs +289 -289
- package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-python.mjs +365 -357
- package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-rust.mjs +319 -319
- package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-scala.mjs +125 -125
- package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-typescript.mjs +377 -377
- package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-wirespec.mjs +89 -79
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-ir.mjs +2159 -2035
- package/wirespec-src-compiler-ir.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +343 -343
- package/wirespec-src-converter-avro.mjs +499 -499
- package/wirespec-src-converter-openapi.mjs +555 -555
- package/wirespec-src-ide-lsp.mjs +1350 -1350
- package/wirespec-src-plugin-arguments.mjs +121 -121
- package/wirespec-src-plugin-cli.mjs +91 -91
- package/wirespec-src-plugin-npm.mjs +26 -26
- package/wirespec-src-tools-generator.mjs +23 -23
|
@@ -146,7 +146,7 @@ initMetadataForCompanion(Companion);
|
|
|
146
146
|
initMetadataForClass(ScalaIrEmitter, 'ScalaIrEmitter', ScalaIrEmitter, VOID, [IrEmitter]);
|
|
147
147
|
//endregion
|
|
148
148
|
function _get_sanitizationConfig__sns434($this) {
|
|
149
|
-
var tmp0 = $this.
|
|
149
|
+
var tmp0 = $this.q20_1;
|
|
150
150
|
var tmp = KProperty1;
|
|
151
151
|
// Inline function 'kotlin.getValue' call
|
|
152
152
|
getPropertyCallableRef('sanitizationConfig', 1, tmp, ScalaIrEmitter$_get_sanitizationConfig_$ref_ydarb0(), null);
|
|
@@ -163,7 +163,7 @@ function sanitize($this, _this__u8e3s4) {
|
|
|
163
163
|
var item = _iterator__ex2g4s.v();
|
|
164
164
|
var _unary__edvuaz = index;
|
|
165
165
|
index = _unary__edvuaz + 1 | 0;
|
|
166
|
-
var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance.
|
|
166
|
+
var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance.fr(item) : item;
|
|
167
167
|
destination.x(tmp$ret$0);
|
|
168
168
|
}
|
|
169
169
|
// Inline function 'kotlin.text.filter' call
|
|
@@ -211,7 +211,7 @@ function sanitizeFirstIsDigit($this, _this__u8e3s4) {
|
|
|
211
211
|
return tmp;
|
|
212
212
|
}
|
|
213
213
|
function sanitizeKeywords($this, _this__u8e3s4) {
|
|
214
|
-
return Companion_getInstance_0().
|
|
214
|
+
return Companion_getInstance_0().r20_1.u1(_this__u8e3s4) ? addBackticks(_this__u8e3s4) : _this__u8e3s4;
|
|
215
215
|
}
|
|
216
216
|
function sanitizeSymbol($this, _this__u8e3s4) {
|
|
217
217
|
// Inline function 'kotlin.collections.mapIndexed' call
|
|
@@ -224,7 +224,7 @@ function sanitizeSymbol($this, _this__u8e3s4) {
|
|
|
224
224
|
var item = _iterator__ex2g4s.v();
|
|
225
225
|
var _unary__edvuaz = index;
|
|
226
226
|
index = _unary__edvuaz + 1 | 0;
|
|
227
|
-
var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance.
|
|
227
|
+
var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance.fr(item) : item;
|
|
228
228
|
destination.x(tmp$ret$0);
|
|
229
229
|
}
|
|
230
230
|
// Inline function 'kotlin.text.filter' call
|
|
@@ -251,7 +251,7 @@ function sanitizeEnum($this, _this__u8e3s4) {
|
|
|
251
251
|
}
|
|
252
252
|
function Companion() {
|
|
253
253
|
Companion_instance_2 = this;
|
|
254
|
-
this.
|
|
254
|
+
this.r20_1 = setOf(['abstract', 'case', 'class', 'def', 'do', 'else', 'extends', 'false', 'final', 'for', 'forSome', 'if', 'implicit', 'import', 'lazy', 'match', 'new', 'null', 'object', 'override', 'package', 'private', 'protected', 'return', 'sealed', 'super', 'this', 'throw', 'trait', 'true', 'try', 'type', 'val', 'var', 'while', 'with', 'yield', 'given', 'using', 'enum', 'export', 'then']);
|
|
255
255
|
}
|
|
256
256
|
var Companion_instance_2;
|
|
257
257
|
function Companion_getInstance_0() {
|
|
@@ -264,7 +264,7 @@ function ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda(it) {
|
|
|
264
264
|
}
|
|
265
265
|
function ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda_0(this$0) {
|
|
266
266
|
return function (name) {
|
|
267
|
-
var sanitized = name.
|
|
267
|
+
var sanitized = name.q1h_1.a1() > 1 ? name.u1m() : sanitizeSymbol(this$0, name.o1j());
|
|
268
268
|
return new Name(listOf(sanitized));
|
|
269
269
|
};
|
|
270
270
|
}
|
|
@@ -283,7 +283,7 @@ function ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
|
|
|
283
283
|
var tmp;
|
|
284
284
|
var tmp_0;
|
|
285
285
|
if (stmt instanceof FunctionCall) {
|
|
286
|
-
tmp_0 = stmt.e1n_1.
|
|
286
|
+
tmp_0 = stmt.e1n_1.o1j() === 'validate';
|
|
287
287
|
} else {
|
|
288
288
|
tmp_0 = false;
|
|
289
289
|
}
|
|
@@ -291,7 +291,7 @@ function ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
|
|
|
291
291
|
tmp = transformChildren(stmt.i1n(VOID, emptyList()), tr);
|
|
292
292
|
} else {
|
|
293
293
|
if (stmt instanceof ConstructorStatement) {
|
|
294
|
-
var tmp_1 = tr.
|
|
294
|
+
var tmp_1 = tr.b1v(stmt.w1n_1);
|
|
295
295
|
// Inline function 'kotlin.collections.map' call
|
|
296
296
|
var this_0 = stmt.x1n_1;
|
|
297
297
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -304,7 +304,7 @@ function ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
|
|
|
304
304
|
var name = item.k1();
|
|
305
305
|
// Inline function 'kotlin.collections.component2' call
|
|
306
306
|
var expr = item.l1();
|
|
307
|
-
var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), name), tr.
|
|
307
|
+
var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), name), tr.e1v(expr));
|
|
308
308
|
destination.x(tmp$ret$3);
|
|
309
309
|
}
|
|
310
310
|
tmp = new ConstructorStatement(tmp_1, toMap(destination));
|
|
@@ -317,7 +317,7 @@ function ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
|
|
|
317
317
|
}
|
|
318
318
|
function ScalaIrEmitter$sanitizationConfig$delegate$lambda(this$0) {
|
|
319
319
|
return function () {
|
|
320
|
-
var tmp = Companion_getInstance_0().
|
|
320
|
+
var tmp = Companion_getInstance_0().r20_1;
|
|
321
321
|
var tmp_0 = ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda;
|
|
322
322
|
var tmp_1 = ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda_0(this$0);
|
|
323
323
|
var tmp_2 = ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda_1(this$0);
|
|
@@ -331,14 +331,14 @@ function ScalaIrEmitter$_get_sanitizationConfig_$ref_ydarb0() {
|
|
|
331
331
|
};
|
|
332
332
|
}
|
|
333
333
|
function ScalaIrEmitter$emitShared$lambda($this$struct) {
|
|
334
|
-
$this$struct.
|
|
335
|
-
$this$struct.
|
|
334
|
+
$this$struct.z1k(Custom_init_$Create$('PathSegment'));
|
|
335
|
+
$this$struct.u1k('value', String_instance);
|
|
336
336
|
return Unit_instance;
|
|
337
337
|
}
|
|
338
338
|
function ScalaIrEmitter$emitShared$lambda_0($this$struct) {
|
|
339
|
-
$this$struct.
|
|
340
|
-
$this$struct.
|
|
341
|
-
$this$struct.
|
|
339
|
+
$this$struct.z1k(Custom_init_$Create$('PathSegment'));
|
|
340
|
+
$this$struct.u1k('name', String_instance);
|
|
341
|
+
$this$struct.u1k('type', Reflect_instance);
|
|
342
342
|
return Unit_instance;
|
|
343
343
|
}
|
|
344
344
|
function ScalaIrEmitter$emitShared$lambda_1(element, transformer) {
|
|
@@ -372,7 +372,7 @@ function ScalaIrEmitter$emitShared$lambda_2(element, transformer) {
|
|
|
372
372
|
if (element instanceof Namespace) {
|
|
373
373
|
var tmp$ret$0;
|
|
374
374
|
$l$block: {
|
|
375
|
-
if (!element.f1o_1.equals(Companion_getInstance().
|
|
375
|
+
if (!element.f1o_1.equals(Companion_getInstance().s1h('Wirespec'))) {
|
|
376
376
|
tmp$ret$0 = element;
|
|
377
377
|
break $l$block;
|
|
378
378
|
}
|
|
@@ -389,7 +389,7 @@ function ScalaIrEmitter$emitShared$lambda_2(element, transformer) {
|
|
|
389
389
|
if (!(element_0 instanceof Interface)) {
|
|
390
390
|
tmp_0 = true;
|
|
391
391
|
} else {
|
|
392
|
-
tmp_0 = !setOf(['Request', 'Response']).u1(element_0.t1o_1.
|
|
392
|
+
tmp_0 = !setOf(['Request', 'Response']).u1(element_0.t1o_1.t1h());
|
|
393
393
|
}
|
|
394
394
|
if (tmp_0) {
|
|
395
395
|
tmp$ret$1 = listOf(element_0);
|
|
@@ -412,7 +412,7 @@ function ScalaIrEmitter$emitShared$lambda_2(element, transformer) {
|
|
|
412
412
|
var _iterator__ex2g4s_1 = destination_0.t();
|
|
413
413
|
while (_iterator__ex2g4s_1.u()) {
|
|
414
414
|
var element_2 = _iterator__ex2g4s_1.v();
|
|
415
|
-
if (element_2.t1o_1.
|
|
415
|
+
if (element_2.t1o_1.t1h() === 'Headers') {
|
|
416
416
|
tmp$ret$5 = element_2;
|
|
417
417
|
break $l$block_1;
|
|
418
418
|
}
|
|
@@ -438,7 +438,7 @@ function ScalaIrEmitter$emitShared$lambda_2(element, transformer) {
|
|
|
438
438
|
var element_3 = _iterator__ex2g4s_2.v();
|
|
439
439
|
var tmp_3;
|
|
440
440
|
if (element_3 instanceof Interface) {
|
|
441
|
-
tmp_3 = element_3.t1o_1.
|
|
441
|
+
tmp_3 = element_3.t1o_1.t1h() === 'Headers';
|
|
442
442
|
} else {
|
|
443
443
|
tmp_3 = false;
|
|
444
444
|
}
|
|
@@ -455,8 +455,8 @@ function ScalaIrEmitter$emitShared$lambda_2(element, transformer) {
|
|
|
455
455
|
while (_iterator__ex2g4s_3.u()) {
|
|
456
456
|
var item = _iterator__ex2g4s_3.v();
|
|
457
457
|
var tmp_5;
|
|
458
|
-
if (item.
|
|
459
|
-
tmp_5 = item.
|
|
458
|
+
if (item.c1q_1.o1j() === 'headers') {
|
|
459
|
+
tmp_5 = item.g1q(VOID, Custom_init_$Create$(element_0.t1o_1.t1h() + '.Headers'));
|
|
460
460
|
} else {
|
|
461
461
|
tmp_5 = item;
|
|
462
462
|
}
|
|
@@ -482,7 +482,7 @@ function ScalaIrEmitter$emitShared$lambda_3($clientServer) {
|
|
|
482
482
|
return function (element, transformer) {
|
|
483
483
|
var tmp;
|
|
484
484
|
if (element instanceof Namespace) {
|
|
485
|
-
var injected = element.f1o_1.equals(Companion_getInstance().
|
|
485
|
+
var injected = element.f1o_1.equals(Companion_getInstance().s1h('Wirespec')) ? $clientServer : emptyList();
|
|
486
486
|
var tmp_0;
|
|
487
487
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
488
488
|
if (!injected.r()) {
|
|
@@ -516,30 +516,30 @@ function ScalaIrEmitter$emit$lambda(this$0) {
|
|
|
516
516
|
}
|
|
517
517
|
function ScalaIrEmitter(packageName, emitShared) {
|
|
518
518
|
Companion_getInstance_0();
|
|
519
|
-
packageName = packageName === VOID ? Companion_instance_0.
|
|
519
|
+
packageName = packageName === VOID ? Companion_instance_0.ds('community.flock.wirespec.generated') : packageName;
|
|
520
520
|
emitShared = emitShared === VOID ? Companion_instance_1.wo() : emitShared;
|
|
521
|
-
this.
|
|
522
|
-
this.
|
|
523
|
-
this.
|
|
524
|
-
this.
|
|
525
|
-
this.
|
|
521
|
+
this.l20_1 = packageName;
|
|
522
|
+
this.m20_1 = emitShared;
|
|
523
|
+
this.n20_1 = ScalaGenerator_getInstance();
|
|
524
|
+
this.o20_1 = FileExtension_Scala_getInstance();
|
|
525
|
+
this.p20_1 = listOf_0([import_0('community.flock.wirespec.scala', 'Wirespec'), import_0('scala.reflect', 'ClassTag')]);
|
|
526
526
|
var tmp = this;
|
|
527
|
-
tmp.
|
|
527
|
+
tmp.q20_1 = lazy(ScalaIrEmitter$sanitizationConfig$delegate$lambda(this));
|
|
528
528
|
}
|
|
529
|
-
protoOf(ScalaIrEmitter).
|
|
530
|
-
return this.
|
|
529
|
+
protoOf(ScalaIrEmitter).x1w = function () {
|
|
530
|
+
return this.l20_1;
|
|
531
531
|
};
|
|
532
|
-
protoOf(ScalaIrEmitter).
|
|
533
|
-
return this.
|
|
532
|
+
protoOf(ScalaIrEmitter).w1v = function () {
|
|
533
|
+
return this.n20_1;
|
|
534
534
|
};
|
|
535
|
-
protoOf(ScalaIrEmitter).
|
|
536
|
-
return this.
|
|
535
|
+
protoOf(ScalaIrEmitter).vq = function () {
|
|
536
|
+
return this.o20_1;
|
|
537
537
|
};
|
|
538
|
-
protoOf(ScalaIrEmitter).
|
|
539
|
-
ScalaGenerator_getInstance().
|
|
538
|
+
protoOf(ScalaIrEmitter).d1w = function (allFiles) {
|
|
539
|
+
ScalaGenerator_getInstance().k1w(allFiles);
|
|
540
540
|
};
|
|
541
|
-
protoOf(ScalaIrEmitter).
|
|
542
|
-
var packageName = Companion_instance_0.
|
|
541
|
+
protoOf(ScalaIrEmitter).a1w = function () {
|
|
542
|
+
var packageName = Companion_instance_0.ds('community.flock.wirespec.scala');
|
|
543
543
|
var tmp = interface_0('PathSegment', true);
|
|
544
544
|
var tmp_0 = struct('Literal', ScalaIrEmitter$emitShared$lambda);
|
|
545
545
|
var pathSegmentTypes = listOf_0([tmp, tmp_0, struct('Param', ScalaIrEmitter$emitShared$lambda_0)]);
|
|
@@ -553,12 +553,12 @@ protoOf(ScalaIrEmitter).b1w = function () {
|
|
|
553
553
|
var tmp_1;
|
|
554
554
|
var tmp_2;
|
|
555
555
|
if (item instanceof Interface) {
|
|
556
|
-
tmp_2 = setOf(['Client', 'Server']).u1(item.t1o_1.
|
|
556
|
+
tmp_2 = setOf(['Client', 'Server']).u1(item.t1o_1.t1h());
|
|
557
557
|
} else {
|
|
558
558
|
tmp_2 = false;
|
|
559
559
|
}
|
|
560
560
|
if (tmp_2) {
|
|
561
|
-
tmp_1 = item.a1p(VOID, VOID, VOID, VOID, VOID, plus_0(item.y1o_1, new Field(Companion_getInstance().
|
|
561
|
+
tmp_1 = item.a1p(VOID, VOID, VOID, VOID, VOID, plus_0(item.y1o_1, new Field(Companion_getInstance().s1h('pathSegments'), new Array_0(Custom_init_$Create$('PathSegment')))));
|
|
562
562
|
} else {
|
|
563
563
|
tmp_1 = item;
|
|
564
564
|
}
|
|
@@ -572,58 +572,58 @@ protoOf(ScalaIrEmitter).b1w = function () {
|
|
|
572
572
|
// Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
|
|
573
573
|
var tmp_3 = scope;
|
|
574
574
|
// Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
|
|
575
|
-
var this_2 = scope.
|
|
575
|
+
var this_2 = scope.j1v_1;
|
|
576
576
|
// Inline function 'community.flock.wirespec.ir.core.transformer' call
|
|
577
577
|
// Inline function 'kotlin.apply' call
|
|
578
578
|
var this_3 = new TransformerBuilder();
|
|
579
|
-
this_3.
|
|
580
|
-
var tmp$ret$5 = this_3.
|
|
581
|
-
tmp_3.
|
|
579
|
+
this_3.c1j(ScalaIrEmitter$emitShared$lambda_1);
|
|
580
|
+
var tmp$ret$5 = this_3.d1j();
|
|
581
|
+
tmp_3.j1v_1 = transform(this_2, tmp$ret$5);
|
|
582
582
|
// Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
|
|
583
583
|
var tmp_4 = scope;
|
|
584
584
|
// Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
|
|
585
|
-
var this_4 = scope.
|
|
585
|
+
var this_4 = scope.j1v_1;
|
|
586
586
|
// Inline function 'community.flock.wirespec.ir.core.transformer' call
|
|
587
587
|
// Inline function 'kotlin.apply' call
|
|
588
588
|
var this_5 = new TransformerBuilder();
|
|
589
|
-
this_5.
|
|
590
|
-
var tmp$ret$10 = this_5.
|
|
591
|
-
tmp_4.
|
|
589
|
+
this_5.c1j(ScalaIrEmitter$emitShared$lambda_2);
|
|
590
|
+
var tmp$ret$10 = this_5.d1j();
|
|
591
|
+
tmp_4.j1v_1 = transform(this_4, tmp$ret$10);
|
|
592
592
|
// Inline function 'community.flock.wirespec.ir.core.TransformScope.injectAfter' call
|
|
593
593
|
var tmp_5 = scope;
|
|
594
594
|
// Inline function 'community.flock.wirespec.ir.core.injectAfter' call
|
|
595
595
|
// Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
|
|
596
|
-
var this_6 = scope.
|
|
596
|
+
var this_6 = scope.j1v_1;
|
|
597
597
|
// Inline function 'community.flock.wirespec.ir.core.transformer' call
|
|
598
598
|
// Inline function 'kotlin.apply' call
|
|
599
599
|
var this_7 = new TransformerBuilder();
|
|
600
|
-
this_7.
|
|
601
|
-
var tmp$ret$15 = this_7.
|
|
602
|
-
tmp_5.
|
|
603
|
-
var tmp_6 = scope.
|
|
600
|
+
this_7.c1j(ScalaIrEmitter$emitShared$lambda_3(clientServer));
|
|
601
|
+
var tmp$ret$15 = this_7.d1j();
|
|
602
|
+
tmp_5.j1v_1 = transform(this_6, tmp$ret$15);
|
|
603
|
+
var tmp_6 = scope.j1v_1;
|
|
604
604
|
var wirespecShared = isInterface(tmp_6, Element) ? tmp_6 : THROW_CCE();
|
|
605
605
|
var tmp_7;
|
|
606
|
-
if (this.
|
|
607
|
-
tmp_7 = wirespecShared.d1o(Companion_getInstance().
|
|
606
|
+
if (this.m20_1.xo_1) {
|
|
607
|
+
tmp_7 = wirespecShared.d1o(Companion_getInstance().s1h(packageName.gs() + 'Wirespec'));
|
|
608
608
|
} else {
|
|
609
609
|
tmp_7 = null;
|
|
610
610
|
}
|
|
611
611
|
return tmp_7;
|
|
612
612
|
};
|
|
613
|
-
protoOf(ScalaIrEmitter).
|
|
613
|
+
protoOf(ScalaIrEmitter).mr = function (definition, module_0, logger) {
|
|
614
614
|
var file = emit.call(this, definition, module_0, logger);
|
|
615
615
|
// Inline function 'kotlin.takeIf' call
|
|
616
|
-
var this_0 = this.
|
|
616
|
+
var this_0 = this.p20_1;
|
|
617
617
|
var tmp;
|
|
618
|
-
if (Companion_instance.
|
|
618
|
+
if (Companion_instance.ir(module_0)) {
|
|
619
619
|
tmp = this_0;
|
|
620
620
|
} else {
|
|
621
621
|
tmp = null;
|
|
622
622
|
}
|
|
623
623
|
var tmp$ret$1 = tmp;
|
|
624
|
-
return placeInPackage(prependImports(file, tmp$ret$1), this.
|
|
624
|
+
return placeInPackage(prependImports(file, tmp$ret$1), this.x1w(), definition);
|
|
625
625
|
};
|
|
626
|
-
protoOf(ScalaIrEmitter).
|
|
626
|
+
protoOf(ScalaIrEmitter).f1w = function (definition, module_0) {
|
|
627
627
|
var tmp;
|
|
628
628
|
if (definition instanceof Type) {
|
|
629
629
|
tmp = convertToGenerator_2(definition, module_0);
|
|
@@ -644,7 +644,7 @@ protoOf(ScalaIrEmitter).g1w = function (definition, module_0) {
|
|
|
644
644
|
}
|
|
645
645
|
var generatorFile = tmp;
|
|
646
646
|
var sanitized = sanitizeNames(generatorFile, _get_sanitizationConfig__sns434(this));
|
|
647
|
-
var generatorOwnName = definition.
|
|
647
|
+
var generatorOwnName = definition.nr().l1() + 'Generator';
|
|
648
648
|
var tmp_0 = asSequence(collectCustomTypeNames(sanitized));
|
|
649
649
|
var tmp_1 = filterNot(tmp_0, ScalaIrEmitter$emitGenerator$lambda);
|
|
650
650
|
var tmp_2 = filterNot(tmp_1, ScalaIrEmitter$emitGenerator$lambda_0(generatorOwnName));
|
|
@@ -665,23 +665,23 @@ protoOf(ScalaIrEmitter).g1w = function (definition, module_0) {
|
|
|
665
665
|
var _iterator__ex2g4s_0 = destination.t();
|
|
666
666
|
while (_iterator__ex2g4s_0.u()) {
|
|
667
667
|
var item = _iterator__ex2g4s_0.v();
|
|
668
|
-
var tmp$ret$3 = import_0(this.
|
|
668
|
+
var tmp$ret$3 = import_0(this.x1w().es_1 + '.model', item);
|
|
669
669
|
destination_0.x(tmp$ret$3);
|
|
670
670
|
}
|
|
671
671
|
var modelImports = destination_0;
|
|
672
|
-
return placeInPackage_0(prependImports(sanitized, plus(this.
|
|
672
|
+
return placeInPackage_0(prependImports(sanitized, plus(this.p20_1, modelImports)), this.x1w(), 'generator');
|
|
673
673
|
};
|
|
674
|
-
protoOf(ScalaIrEmitter).
|
|
674
|
+
protoOf(ScalaIrEmitter).lq = function (type, module_0) {
|
|
675
675
|
return ensureEmptyStructHasConstructor(sanitizeNames(convertWithValidation(type, module_0), _get_sanitizationConfig__sns434(this)));
|
|
676
676
|
};
|
|
677
|
-
protoOf(ScalaIrEmitter).
|
|
677
|
+
protoOf(ScalaIrEmitter).as = function (enum_0, module_0) {
|
|
678
678
|
var tmp = sanitizeNames(convert_0(enum_0), _get_sanitizationConfig__sns434(this));
|
|
679
679
|
return injectEnumLabelField(tmp, ScalaIrEmitter$emit$lambda(this));
|
|
680
680
|
};
|
|
681
|
-
protoOf(ScalaIrEmitter).
|
|
681
|
+
protoOf(ScalaIrEmitter).qr = function (union) {
|
|
682
682
|
return sanitizeNames(convert_1(union), _get_sanitizationConfig__sns434(this));
|
|
683
683
|
};
|
|
684
|
-
protoOf(ScalaIrEmitter).
|
|
684
|
+
protoOf(ScalaIrEmitter).vr = function (refined) {
|
|
685
685
|
var file = sanitizeNames(convert_2(refined), _get_sanitizationConfig__sns434(this));
|
|
686
686
|
// Inline function 'community.flock.wirespec.ir.core.findElement' call
|
|
687
687
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
@@ -697,9 +697,9 @@ protoOf(ScalaIrEmitter).ur = function (refined) {
|
|
|
697
697
|
}
|
|
698
698
|
var tmp$ret$2 = firstOrNull_0(destination);
|
|
699
699
|
var updatedStruct = convertToStringCallsToFieldAccess(markMembersAsOverride(ensureNotNull(tmp$ret$2)));
|
|
700
|
-
return new File(Companion_getInstance().
|
|
700
|
+
return new File(Companion_getInstance().s1h(sanitize(this, refined.tr_1)), listOf(updatedStruct));
|
|
701
701
|
};
|
|
702
|
-
protoOf(ScalaIrEmitter).
|
|
702
|
+
protoOf(ScalaIrEmitter).bs = function (endpoint) {
|
|
703
703
|
// Inline function 'community.flock.wirespec.ir.core.findElement' call
|
|
704
704
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
705
705
|
var tmp0 = convert_3(endpoint).b1o();
|
|
@@ -715,9 +715,9 @@ protoOf(ScalaIrEmitter).as = function (endpoint) {
|
|
|
715
715
|
var tmp$ret$2 = firstOrNull_0(destination);
|
|
716
716
|
var endpointNamespace = ensureNotNull(tmp$ret$2);
|
|
717
717
|
var body = appendClientServerObjects(injectHandleFunction(endpointNamespace), endpoint, isRequestObject(endpointNamespace));
|
|
718
|
-
var tmp = sanitizeNames(new File(Companion_getInstance().
|
|
718
|
+
var tmp = sanitizeNames(new File(Companion_getInstance().s1h(sanitize(this, endpoint.vp_1)), listOf(body)), _get_sanitizationConfig__sns434(this));
|
|
719
719
|
// Inline function 'kotlin.takeIf' call
|
|
720
|
-
var this_0 = buildModelImports(endpoint, this.
|
|
720
|
+
var this_0 = buildModelImports(endpoint, this.x1w());
|
|
721
721
|
var tmp_0;
|
|
722
722
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
723
723
|
if (!this_0.r()) {
|
|
@@ -728,10 +728,10 @@ protoOf(ScalaIrEmitter).as = function (endpoint) {
|
|
|
728
728
|
var tmp$ret$5 = tmp_0;
|
|
729
729
|
return prependImports(tmp, tmp$ret$5);
|
|
730
730
|
};
|
|
731
|
-
protoOf(ScalaIrEmitter).
|
|
731
|
+
protoOf(ScalaIrEmitter).pr = function (channel) {
|
|
732
732
|
var tmp = sanitizeNames(convert_4(channel), _get_sanitizationConfig__sns434(this));
|
|
733
733
|
// Inline function 'kotlin.takeIf' call
|
|
734
|
-
var this_0 = buildModelImports(channel, this.
|
|
734
|
+
var this_0 = buildModelImports(channel, this.x1w());
|
|
735
735
|
var tmp_0;
|
|
736
736
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
737
737
|
if (!this_0.r()) {
|
|
@@ -742,25 +742,25 @@ protoOf(ScalaIrEmitter).or = function (channel) {
|
|
|
742
742
|
var tmp$ret$2 = tmp_0;
|
|
743
743
|
return prependImports(tmp, tmp$ret$2);
|
|
744
744
|
};
|
|
745
|
-
protoOf(ScalaIrEmitter).
|
|
746
|
-
var imports = buildModelImports(endpoint, this.
|
|
747
|
-
var endpointImport = import_0(this.
|
|
745
|
+
protoOf(ScalaIrEmitter).e1w = function (endpoint) {
|
|
746
|
+
var imports = buildModelImports(endpoint, this.x1w());
|
|
747
|
+
var endpointImport = import_0(this.x1w().es_1 + '.endpoint', endpoint.vp_1.l1());
|
|
748
748
|
var file = addIdentityTypeToCall(sanitizeNames(emitEndpointClient.call(this, endpoint), _get_sanitizationConfig__sns434(this)));
|
|
749
|
-
var subPackageName = plus_1(this.
|
|
750
|
-
var tmp = Companion_getInstance().
|
|
749
|
+
var subPackageName = plus_1(this.x1w(), 'client');
|
|
750
|
+
var tmp = Companion_getInstance().s1h(subPackageName.gs() + file.z1n_1.t1h());
|
|
751
751
|
// Inline function 'kotlin.collections.buildList' call
|
|
752
752
|
// Inline function 'kotlin.collections.buildListInternal' call
|
|
753
753
|
// Inline function 'kotlin.apply' call
|
|
754
754
|
var this_0 = ArrayList_init_$Create$_0();
|
|
755
|
-
this_0.x(new Package(subPackageName.
|
|
756
|
-
this_0.f1(this.
|
|
755
|
+
this_0.x(new Package(subPackageName.es_1));
|
|
756
|
+
this_0.f1(this.p20_1);
|
|
757
757
|
this_0.f1(imports);
|
|
758
758
|
this_0.x(endpointImport);
|
|
759
759
|
this_0.f1(file.a1o_1);
|
|
760
760
|
var tmp$ret$3 = this_0.o5();
|
|
761
761
|
return new File(tmp, tmp$ret$3);
|
|
762
762
|
};
|
|
763
|
-
protoOf(ScalaIrEmitter).
|
|
763
|
+
protoOf(ScalaIrEmitter).b1w = function (endpoints, logger) {
|
|
764
764
|
// Inline function 'kotlin.collections.flatMap' call
|
|
765
765
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
766
766
|
var destination = ArrayList_init_$Create$_0();
|
|
@@ -776,7 +776,7 @@ protoOf(ScalaIrEmitter).c1w = function (endpoints, logger) {
|
|
|
776
776
|
var _iterator__ex2g4s_0 = destination.t();
|
|
777
777
|
while (_iterator__ex2g4s_0.u()) {
|
|
778
778
|
var e = _iterator__ex2g4s_0.v();
|
|
779
|
-
var key = e.
|
|
779
|
+
var key = e.cv_1;
|
|
780
780
|
if (set.x(key)) {
|
|
781
781
|
list_0.x(e);
|
|
782
782
|
}
|
|
@@ -787,7 +787,7 @@ protoOf(ScalaIrEmitter).c1w = function (endpoints, logger) {
|
|
|
787
787
|
var _iterator__ex2g4s_1 = list_0.t();
|
|
788
788
|
while (_iterator__ex2g4s_1.u()) {
|
|
789
789
|
var item = _iterator__ex2g4s_1.v();
|
|
790
|
-
var tmp$ret$5 = import_0(this.
|
|
790
|
+
var tmp$ret$5 = import_0(this.x1w().es_1 + '.model', item.cv_1);
|
|
791
791
|
destination_0.x(tmp$ret$5);
|
|
792
792
|
}
|
|
793
793
|
var imports = destination_0;
|
|
@@ -797,7 +797,7 @@ protoOf(ScalaIrEmitter).c1w = function (endpoints, logger) {
|
|
|
797
797
|
var _iterator__ex2g4s_2 = endpoints.t();
|
|
798
798
|
while (_iterator__ex2g4s_2.u()) {
|
|
799
799
|
var item_0 = _iterator__ex2g4s_2.v();
|
|
800
|
-
var tmp$ret$8 = import_0(this.
|
|
800
|
+
var tmp$ret$8 = import_0(this.x1w().es_1 + '.endpoint', item_0.vp_1.l1());
|
|
801
801
|
destination_1.x(tmp$ret$8);
|
|
802
802
|
}
|
|
803
803
|
var endpointImports = destination_1;
|
|
@@ -807,19 +807,19 @@ protoOf(ScalaIrEmitter).c1w = function (endpoints, logger) {
|
|
|
807
807
|
var _iterator__ex2g4s_3 = endpoints.t();
|
|
808
808
|
while (_iterator__ex2g4s_3.u()) {
|
|
809
809
|
var item_1 = _iterator__ex2g4s_3.v();
|
|
810
|
-
var tmp$ret$11 = import_0(this.
|
|
810
|
+
var tmp$ret$11 = import_0(this.x1w().es_1 + '.client', item_1.vp_1.l1() + 'Client');
|
|
811
811
|
destination_2.x(tmp$ret$11);
|
|
812
812
|
}
|
|
813
813
|
var clientImports = destination_2;
|
|
814
814
|
var allImports = plus(plus(imports, endpointImports), clientImports);
|
|
815
815
|
var file = addIdentityTypeToCall(sanitizeNames(emitClient.call(this, endpoints, logger), _get_sanitizationConfig__sns434(this)));
|
|
816
|
-
var tmp = Companion_getInstance().
|
|
816
|
+
var tmp = Companion_getInstance().s1h(this.x1w().gs() + file.z1n_1.t1h());
|
|
817
817
|
// Inline function 'kotlin.collections.buildList' call
|
|
818
818
|
// Inline function 'kotlin.collections.buildListInternal' call
|
|
819
819
|
// Inline function 'kotlin.apply' call
|
|
820
820
|
var this_0 = ArrayList_init_$Create$_0();
|
|
821
|
-
this_0.x(new Package(this.
|
|
822
|
-
this_0.f1(this.
|
|
821
|
+
this_0.x(new Package(this.x1w().es_1));
|
|
822
|
+
this_0.f1(this.p20_1);
|
|
823
823
|
this_0.f1(allImports);
|
|
824
824
|
this_0.f1(file.a1o_1);
|
|
825
825
|
var tmp$ret$17 = this_0.o5();
|
|
@@ -828,16 +828,16 @@ protoOf(ScalaIrEmitter).c1w = function (endpoints, logger) {
|
|
|
828
828
|
function convertToStringCallsToFieldAccess(_this__u8e3s4) {
|
|
829
829
|
// Inline function 'community.flock.wirespec.ir.core.transform' call
|
|
830
830
|
var scope = new TransformScope(_this__u8e3s4);
|
|
831
|
-
scope.
|
|
832
|
-
var tmp = scope.
|
|
831
|
+
scope.r1v(convertToStringCallsToFieldAccess$lambda);
|
|
832
|
+
var tmp = scope.j1v_1;
|
|
833
833
|
return isInterface(tmp, Element) ? tmp : THROW_CCE();
|
|
834
834
|
}
|
|
835
835
|
function appendClientServerObjects(_this__u8e3s4, endpoint, requestIsObject) {
|
|
836
836
|
var reqType = requestIsObject ? 'Request.type' : 'Request';
|
|
837
|
-
var pathTemplate = '/' + joinToString(endpoint.
|
|
838
|
-
var pathSegmentsCode = joinToString(endpoint.
|
|
839
|
-
var clientObject = raw(trimMargin('\n |object Client extends Wirespec.Client[' + reqType + ', Response[?]] {\n | override val pathTemplate: String = "' + pathTemplate + '"\n | override val method: String = "' + endpoint.
|
|
840
|
-
var serverObject = raw(trimMargin('\n |object Server extends Wirespec.Server[' + reqType + ', Response[?]] {\n | override val pathTemplate: String = "' + pathTemplate + '"\n | override val method: String = "' + endpoint.
|
|
837
|
+
var pathTemplate = '/' + joinToString(endpoint.xp_1, '/', VOID, VOID, VOID, VOID, appendClientServerObjects$lambda);
|
|
838
|
+
var pathSegmentsCode = joinToString(endpoint.xp_1, ', ', VOID, VOID, VOID, VOID, appendClientServerObjects$lambda_0);
|
|
839
|
+
var clientObject = raw(trimMargin('\n |object Client extends Wirespec.Client[' + reqType + ', Response[?]] {\n | override val pathTemplate: String = "' + pathTemplate + '"\n | override val method: String = "' + endpoint.wp_1.toString() + '"\n | override val pathSegments: List[Wirespec.PathSegment] = List(' + pathSegmentsCode + ')\n | override def client(serialization: Wirespec.Serialization): Wirespec.ClientEdge[' + reqType + ', Response[?]] = new Wirespec.ClientEdge[' + reqType + ', Response[?]] {\n | override def to(request: ' + reqType + '): Wirespec.RawRequest = toRawRequest(serialization, request)\n | override def from(response: Wirespec.RawResponse): Response[?] = fromRawResponse(serialization, response)\n | }\n |}\n '));
|
|
840
|
+
var serverObject = raw(trimMargin('\n |object Server extends Wirespec.Server[' + reqType + ', Response[?]] {\n | override val pathTemplate: String = "' + pathTemplate + '"\n | override val method: String = "' + endpoint.wp_1.toString() + '"\n | override val pathSegments: List[Wirespec.PathSegment] = List(' + pathSegmentsCode + ')\n | override def server(serialization: Wirespec.Serialization): Wirespec.ServerEdge[' + reqType + ', Response[?]] = new Wirespec.ServerEdge[' + reqType + ', Response[?]] {\n | override def from(request: Wirespec.RawRequest): ' + reqType + ' = fromRawRequest(serialization, request)\n | override def to(response: Response[?]): Wirespec.RawResponse = toRawResponse(serialization, response)\n | }\n |}\n '));
|
|
841
841
|
return _this__u8e3s4.j1o(VOID, plus_0(plus_0(_this__u8e3s4.g1o_1, clientObject), serverObject));
|
|
842
842
|
}
|
|
843
843
|
function injectHandleFunction(_this__u8e3s4) {
|
|
@@ -846,14 +846,14 @@ function injectHandleFunction(_this__u8e3s4) {
|
|
|
846
846
|
// Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
|
|
847
847
|
var tmp = scope;
|
|
848
848
|
// Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
|
|
849
|
-
var this_0 = scope.
|
|
849
|
+
var this_0 = scope.j1v_1;
|
|
850
850
|
// Inline function 'community.flock.wirespec.ir.core.transformer' call
|
|
851
851
|
// Inline function 'kotlin.apply' call
|
|
852
852
|
var this_1 = new TransformerBuilder();
|
|
853
|
-
this_1.
|
|
854
|
-
var tmp$ret$2 = this_1.
|
|
855
|
-
tmp.
|
|
856
|
-
var tmp_0 = scope.
|
|
853
|
+
this_1.c1j(injectHandleFunction$lambda);
|
|
854
|
+
var tmp$ret$2 = this_1.d1j();
|
|
855
|
+
tmp.j1v_1 = transform(this_0, tmp$ret$2);
|
|
856
|
+
var tmp_0 = scope.j1v_1;
|
|
857
857
|
return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
|
|
858
858
|
}
|
|
859
859
|
function isRequestObject(namespace) {
|
|
@@ -874,7 +874,7 @@ function isRequestObject(namespace) {
|
|
|
874
874
|
var _iterator__ex2g4s_0 = destination.t();
|
|
875
875
|
while (_iterator__ex2g4s_0.u()) {
|
|
876
876
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
877
|
-
if (element_0.k1o_1.
|
|
877
|
+
if (element_0.k1o_1.t1h() === 'Request') {
|
|
878
878
|
tmp$ret$3 = element_0;
|
|
879
879
|
break $l$block;
|
|
880
880
|
}
|
|
@@ -899,7 +899,7 @@ function buildModelImports(_this__u8e3s4, packageName) {
|
|
|
899
899
|
var _iterator__ex2g4s = this_0.t();
|
|
900
900
|
while (_iterator__ex2g4s.u()) {
|
|
901
901
|
var e = _iterator__ex2g4s.v();
|
|
902
|
-
var key = e.
|
|
902
|
+
var key = e.cv_1;
|
|
903
903
|
if (set.x(key)) {
|
|
904
904
|
list.x(e);
|
|
905
905
|
}
|
|
@@ -910,7 +910,7 @@ function buildModelImports(_this__u8e3s4, packageName) {
|
|
|
910
910
|
var _iterator__ex2g4s_0 = list.t();
|
|
911
911
|
while (_iterator__ex2g4s_0.u()) {
|
|
912
912
|
var item = _iterator__ex2g4s_0.v();
|
|
913
|
-
var tmp$ret$2 = import_0(packageName.
|
|
913
|
+
var tmp$ret$2 = import_0(packageName.es_1 + '.model', Companion_getInstance().s1h(item.cv_1).t1h());
|
|
914
914
|
destination.x(tmp$ret$2);
|
|
915
915
|
}
|
|
916
916
|
return destination;
|
|
@@ -921,29 +921,29 @@ function addIdentityTypeToCall(_this__u8e3s4) {
|
|
|
921
921
|
// Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
|
|
922
922
|
var tmp = scope;
|
|
923
923
|
// Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
|
|
924
|
-
var this_0 = scope.
|
|
924
|
+
var this_0 = scope.j1v_1;
|
|
925
925
|
// Inline function 'community.flock.wirespec.ir.core.transformer' call
|
|
926
926
|
// Inline function 'kotlin.apply' call
|
|
927
927
|
var this_1 = new TransformerBuilder();
|
|
928
|
-
this_1.
|
|
929
|
-
var tmp$ret$2 = this_1.
|
|
930
|
-
tmp.
|
|
931
|
-
var tmp_0 = scope.
|
|
928
|
+
this_1.c1j(addIdentityTypeToCall$lambda);
|
|
929
|
+
var tmp$ret$2 = this_1.d1j();
|
|
930
|
+
tmp.j1v_1 = transform(this_0, tmp$ret$2);
|
|
931
|
+
var tmp_0 = scope.j1v_1;
|
|
932
932
|
return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
|
|
933
933
|
}
|
|
934
934
|
function toScalaTypeName(_this__u8e3s4) {
|
|
935
935
|
var tmp;
|
|
936
936
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
937
|
-
var t = _this__u8e3s4.
|
|
937
|
+
var t = _this__u8e3s4.gv_1;
|
|
938
938
|
var tmp_0;
|
|
939
939
|
if (t instanceof String_0) {
|
|
940
940
|
tmp_0 = 'String';
|
|
941
941
|
} else {
|
|
942
942
|
if (t instanceof Integer) {
|
|
943
|
-
tmp_0 = t.
|
|
943
|
+
tmp_0 = t.ku_1.equals(Precision_P32_getInstance()) ? 'Int' : 'Long';
|
|
944
944
|
} else {
|
|
945
945
|
if (t instanceof Number_0) {
|
|
946
|
-
tmp_0 = t.
|
|
946
|
+
tmp_0 = t.nu_1.equals(Precision_P32_getInstance()) ? 'Float' : 'Double';
|
|
947
947
|
} else {
|
|
948
948
|
if (equals(t, Boolean_instance)) {
|
|
949
949
|
tmp_0 = 'Boolean';
|
|
@@ -960,7 +960,7 @@ function toScalaTypeName(_this__u8e3s4) {
|
|
|
960
960
|
tmp = tmp_0;
|
|
961
961
|
} else {
|
|
962
962
|
if (_this__u8e3s4 instanceof Custom) {
|
|
963
|
-
tmp = _this__u8e3s4.
|
|
963
|
+
tmp = _this__u8e3s4.cv_1;
|
|
964
964
|
} else {
|
|
965
965
|
if (_this__u8e3s4 instanceof Iterable) {
|
|
966
966
|
tmp = 'List[' + toScalaTypeName(_this__u8e3s4.po_1) + ']';
|
|
@@ -982,7 +982,7 @@ function toScalaTypeName(_this__u8e3s4) {
|
|
|
982
982
|
}
|
|
983
983
|
}
|
|
984
984
|
var base = tmp;
|
|
985
|
-
return _this__u8e3s4.
|
|
985
|
+
return _this__u8e3s4.uu() ? 'Option[' + base + ']' : base;
|
|
986
986
|
}
|
|
987
987
|
function convertToStringCallsToFieldAccess$lambda(expr, tr) {
|
|
988
988
|
var tmp;
|
|
@@ -1005,9 +1005,9 @@ function convertToStringCallsToFieldAccess$lambda(expr, tr) {
|
|
|
1005
1005
|
tmp_2 = null;
|
|
1006
1006
|
} else {
|
|
1007
1007
|
// Inline function 'kotlin.let' call
|
|
1008
|
-
tmp_2 = tr.
|
|
1008
|
+
tmp_2 = tr.e1v(tmp0_safe_receiver);
|
|
1009
1009
|
}
|
|
1010
|
-
tmp = new FieldCall(tmp_2, Companion_getInstance().
|
|
1010
|
+
tmp = new FieldCall(tmp_2, Companion_getInstance().s1h('toString'));
|
|
1011
1011
|
} else {
|
|
1012
1012
|
tmp = transformChildren_1(expr, tr);
|
|
1013
1013
|
}
|
|
@@ -1016,10 +1016,10 @@ function convertToStringCallsToFieldAccess$lambda(expr, tr) {
|
|
|
1016
1016
|
function appendClientServerObjects$lambda(it) {
|
|
1017
1017
|
var tmp;
|
|
1018
1018
|
if (it instanceof Literal) {
|
|
1019
|
-
tmp = it.
|
|
1019
|
+
tmp = it.yq_1;
|
|
1020
1020
|
} else {
|
|
1021
1021
|
if (it instanceof Param) {
|
|
1022
|
-
tmp = '{' + it.
|
|
1022
|
+
tmp = '{' + it.cq_1.l1() + '}';
|
|
1023
1023
|
} else {
|
|
1024
1024
|
noWhenBranchMatchedException();
|
|
1025
1025
|
}
|
|
@@ -1029,10 +1029,10 @@ function appendClientServerObjects$lambda(it) {
|
|
|
1029
1029
|
function appendClientServerObjects$lambda_0(segment) {
|
|
1030
1030
|
var tmp;
|
|
1031
1031
|
if (segment instanceof Literal) {
|
|
1032
|
-
tmp = 'Wirespec.Literal("' + segment.
|
|
1032
|
+
tmp = 'Wirespec.Literal("' + segment.yq_1 + '")';
|
|
1033
1033
|
} else {
|
|
1034
1034
|
if (segment instanceof Param) {
|
|
1035
|
-
tmp = 'Wirespec.Param("' + segment.
|
|
1035
|
+
tmp = 'Wirespec.Param("' + segment.cq_1.l1() + '", scala.reflect.classTag[' + toScalaTypeName(segment.dq_1) + '])';
|
|
1036
1036
|
} else {
|
|
1037
1037
|
noWhenBranchMatchedException();
|
|
1038
1038
|
}
|
|
@@ -1044,7 +1044,7 @@ function injectHandleFunction$lambda(element, transformer) {
|
|
|
1044
1044
|
if (element instanceof Interface) {
|
|
1045
1045
|
var tmp$ret$0;
|
|
1046
1046
|
$l$block: {
|
|
1047
|
-
if (!element.t1o_1.equals(Companion_getInstance().
|
|
1047
|
+
if (!element.t1o_1.equals(Companion_getInstance().s1h('Handler')) && !element.t1o_1.equals(Companion_getInstance().s1h('Call'))) {
|
|
1048
1048
|
tmp$ret$0 = element;
|
|
1049
1049
|
break $l$block;
|
|
1050
1050
|
}
|
|
@@ -1061,7 +1061,7 @@ function injectHandleFunction$lambda(element, transformer) {
|
|
|
1061
1061
|
if (tmp0_safe_receiver == null) {
|
|
1062
1062
|
tmp_0 = null;
|
|
1063
1063
|
} else {
|
|
1064
|
-
var tmp1_safe_receiver = item.
|
|
1064
|
+
var tmp1_safe_receiver = item.l1l_1;
|
|
1065
1065
|
var tmp_1;
|
|
1066
1066
|
if (tmp1_safe_receiver == null) {
|
|
1067
1067
|
tmp_1 = null;
|
|
@@ -1070,7 +1070,7 @@ function injectHandleFunction$lambda(element, transformer) {
|
|
|
1070
1070
|
tmp_1 = Custom_init_$Create$('F', listOf(tmp1_safe_receiver));
|
|
1071
1071
|
}
|
|
1072
1072
|
var tmp3_returnType = tmp_1;
|
|
1073
|
-
tmp_0 = tmp0_safe_receiver.
|
|
1073
|
+
tmp_0 = tmp0_safe_receiver.q1l(VOID, VOID, VOID, tmp3_returnType, VOID, false);
|
|
1074
1074
|
}
|
|
1075
1075
|
var tmp4_elvis_lhs = tmp_0;
|
|
1076
1076
|
var tmp$ret$3 = tmp4_elvis_lhs == null ? item : tmp4_elvis_lhs;
|
|
@@ -1102,7 +1102,7 @@ function addIdentityTypeToCall$lambda(element, transformer) {
|
|
|
1102
1102
|
} else {
|
|
1103
1103
|
// Inline function 'kotlin.takeIf' call
|
|
1104
1104
|
var tmp_1;
|
|
1105
|
-
if (endsWith(tmp0_safe_receiver.
|
|
1105
|
+
if (endsWith(tmp0_safe_receiver.m1j_1.t1h(), '.Call')) {
|
|
1106
1106
|
tmp_1 = tmp0_safe_receiver;
|
|
1107
1107
|
} else {
|
|
1108
1108
|
tmp_1 = null;
|
|
@@ -1122,9 +1122,9 @@ function addIdentityTypeToCall$lambda(element, transformer) {
|
|
|
1122
1122
|
return transformChildren_0(transformed, transformer);
|
|
1123
1123
|
}
|
|
1124
1124
|
//region block: post-declaration
|
|
1125
|
-
protoOf(ScalaIrEmitter).
|
|
1125
|
+
protoOf(ScalaIrEmitter).y1v = get_extensions;
|
|
1126
1126
|
protoOf(ScalaIrEmitter).eo = emit_0;
|
|
1127
|
-
protoOf(ScalaIrEmitter).
|
|
1127
|
+
protoOf(ScalaIrEmitter).z1v = emit_1;
|
|
1128
1128
|
//endregion
|
|
1129
1129
|
//region block: exports
|
|
1130
1130
|
export {
|