@flock/wirespec 0.19.4 → 0.19.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/clikt-clikt-mordant.mjs +78 -78
- package/clikt-clikt.mjs +1312 -1312
- package/clikt-clikt.mjs.map +1 -1
- package/colormath-root-colormath.mjs +426 -426
- package/kotlin-kotlin-stdlib.mjs +78 -77
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +9632 -9632
- package/kotlin-rgxgen.mjs +1759 -1759
- package/kotlinx-io-kotlinx-io-core.mjs +403 -403
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1729 -1729
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1467 -1467
- package/mordant-mordant.mjs +1157 -1157
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +13 -1
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-java.mjs +311 -340
- package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-kotlin.mjs +143 -143
- package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-python.mjs +204 -196
- package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-rust.mjs +349 -349
- package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-scala.mjs +123 -123
- package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-typescript.mjs +194 -194
- package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-wirespec.mjs +22 -22
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-ir.mjs +3584 -3460
- package/wirespec-src-compiler-ir.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +227 -58
- package/wirespec-src-compiler-lib.mjs.map +1 -1
- package/wirespec-src-converter-avro.mjs +473 -473
- package/wirespec-src-converter-openapi.mjs +342 -342
- package/wirespec-src-ide-lsp.mjs +1346 -1346
- package/wirespec-src-plugin-arguments.mjs +131 -131
- package/wirespec-src-plugin-cli.mjs +87 -87
- package/wirespec-src-plugin-npm.d.mts +39 -2
- package/wirespec-src-plugin-npm.mjs +21 -21
- package/wirespec-src-plugin-npm.mjs.map +1 -1
- package/wirespec-src-tools-generator.mjs +2 -2
|
@@ -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.p20_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);
|
|
@@ -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().q20_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
|
|
@@ -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.q20_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,13 +264,13 @@ 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.p1h_1.a1() > 1 ? name.t1m() : sanitizeSymbol(this$0, name.n1j());
|
|
268
268
|
return new Name(listOf(sanitized));
|
|
269
269
|
};
|
|
270
270
|
}
|
|
271
271
|
function ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda_1(this$0) {
|
|
272
272
|
return function (name) {
|
|
273
|
-
return new Name(listOf(sanitizeSymbol(this$0, name.
|
|
273
|
+
return new Name(listOf(sanitizeSymbol(this$0, name.t1m())));
|
|
274
274
|
};
|
|
275
275
|
}
|
|
276
276
|
function ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda_2(this$0) {
|
|
@@ -283,17 +283,17 @@ 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.
|
|
286
|
+
tmp_0 = stmt.d1n_1.n1j() === 'validate';
|
|
287
287
|
} else {
|
|
288
288
|
tmp_0 = false;
|
|
289
289
|
}
|
|
290
290
|
if (tmp_0) {
|
|
291
|
-
tmp = transformChildren(stmt.
|
|
291
|
+
tmp = transformChildren(stmt.h1n(VOID, emptyList()), tr);
|
|
292
292
|
} else {
|
|
293
293
|
if (stmt instanceof ConstructorStatement) {
|
|
294
|
-
var tmp_1 = tr.
|
|
294
|
+
var tmp_1 = tr.a1v(stmt.v1n_1);
|
|
295
295
|
// Inline function 'kotlin.collections.map' call
|
|
296
|
-
var this_0 = stmt.
|
|
296
|
+
var this_0 = stmt.w1n_1;
|
|
297
297
|
// Inline function 'kotlin.collections.mapTo' call
|
|
298
298
|
var destination = ArrayList_init_$Create$(this_0.a1());
|
|
299
299
|
// Inline function 'kotlin.collections.iterator' 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.d1v(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().q20_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,21 +331,21 @@ 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.y1k(Custom_init_$Create$('PathSegment'));
|
|
335
|
+
$this$struct.t1k('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.y1k(Custom_init_$Create$('PathSegment'));
|
|
340
|
+
$this$struct.t1k('name', String_instance);
|
|
341
|
+
$this$struct.t1k('type', Reflect_instance);
|
|
342
342
|
return Unit_instance;
|
|
343
343
|
}
|
|
344
344
|
function ScalaIrEmitter$emitShared$lambda_1(element, transformer) {
|
|
345
345
|
var tmp;
|
|
346
346
|
if (element instanceof File) {
|
|
347
347
|
// Inline function 'kotlin.collections.partition' call
|
|
348
|
-
var this_0 = element.
|
|
348
|
+
var this_0 = element.z1n_1;
|
|
349
349
|
var first = ArrayList_init_$Create$_0();
|
|
350
350
|
var second = ArrayList_init_$Create$_0();
|
|
351
351
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -360,7 +360,7 @@ function ScalaIrEmitter$emitShared$lambda_1(element, transformer) {
|
|
|
360
360
|
var _destruct__k2r9zo = new Pair(first, second);
|
|
361
361
|
var packageElements = _destruct__k2r9zo.ve();
|
|
362
362
|
var rest = _destruct__k2r9zo.we();
|
|
363
|
-
tmp = element.
|
|
363
|
+
tmp = element.c1o(VOID, plus(packageElements, rest));
|
|
364
364
|
} else {
|
|
365
365
|
tmp = element;
|
|
366
366
|
}
|
|
@@ -372,12 +372,12 @@ 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.
|
|
375
|
+
if (!element.e1o_1.equals(Companion_getInstance().r1h('Wirespec'))) {
|
|
376
376
|
tmp$ret$0 = element;
|
|
377
377
|
break $l$block;
|
|
378
378
|
}
|
|
379
379
|
// Inline function 'kotlin.collections.flatMap' call
|
|
380
|
-
var tmp0 = element.
|
|
380
|
+
var tmp0 = element.f1o_1;
|
|
381
381
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
382
382
|
var destination = ArrayList_init_$Create$_0();
|
|
383
383
|
var _iterator__ex2g4s = tmp0.t();
|
|
@@ -389,14 +389,14 @@ 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.
|
|
392
|
+
tmp_0 = !setOf(['Request', 'Response']).u1(element_0.s1o_1.s1h());
|
|
393
393
|
}
|
|
394
394
|
if (tmp_0) {
|
|
395
395
|
tmp$ret$1 = listOf(element_0);
|
|
396
396
|
break $l$block_2;
|
|
397
397
|
}
|
|
398
398
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
399
|
-
var tmp0_0 = element_0.
|
|
399
|
+
var tmp0_0 = element_0.t1o_1;
|
|
400
400
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
401
401
|
var destination_0 = ArrayList_init_$Create$_0();
|
|
402
402
|
var _iterator__ex2g4s_0 = tmp0_0.t();
|
|
@@ -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.
|
|
415
|
+
if (element_2.s1o_1.s1h() === 'Headers') {
|
|
416
416
|
tmp$ret$5 = element_2;
|
|
417
417
|
break $l$block_1;
|
|
418
418
|
}
|
|
@@ -428,9 +428,9 @@ function ScalaIrEmitter$emitShared$lambda_2(element, transformer) {
|
|
|
428
428
|
tmp_1 = tmp0_elvis_lhs;
|
|
429
429
|
}
|
|
430
430
|
var nestedHeaders = tmp_1;
|
|
431
|
-
var tmp_2 = new Namespace(element_0.
|
|
431
|
+
var tmp_2 = new Namespace(element_0.s1o_1, listOf(nestedHeaders));
|
|
432
432
|
// Inline function 'kotlin.collections.filter' call
|
|
433
|
-
var tmp0_1 = element_0.
|
|
433
|
+
var tmp0_1 = element_0.t1o_1;
|
|
434
434
|
// Inline function 'kotlin.collections.filterTo' call
|
|
435
435
|
var destination_1 = ArrayList_init_$Create$_0();
|
|
436
436
|
var _iterator__ex2g4s_2 = tmp0_1.t();
|
|
@@ -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.
|
|
441
|
+
tmp_3 = element_3.s1o_1.s1h() === 'Headers';
|
|
442
442
|
} else {
|
|
443
443
|
tmp_3 = false;
|
|
444
444
|
}
|
|
@@ -448,28 +448,28 @@ function ScalaIrEmitter$emitShared$lambda_2(element, transformer) {
|
|
|
448
448
|
}
|
|
449
449
|
var tmp_4 = destination_1;
|
|
450
450
|
// Inline function 'kotlin.collections.map' call
|
|
451
|
-
var this_0 = element_0.
|
|
451
|
+
var this_0 = element_0.x1o_1;
|
|
452
452
|
// Inline function 'kotlin.collections.mapTo' call
|
|
453
453
|
var destination_2 = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
454
454
|
var _iterator__ex2g4s_3 = this_0.t();
|
|
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.b1q_1.n1j() === 'headers') {
|
|
459
|
+
tmp_5 = item.f1q(VOID, Custom_init_$Create$(element_0.s1o_1.s1h() + '.Headers'));
|
|
460
460
|
} else {
|
|
461
461
|
tmp_5 = item;
|
|
462
462
|
}
|
|
463
463
|
var tmp$ret$9 = tmp_5;
|
|
464
464
|
destination_2.x(tmp$ret$9);
|
|
465
465
|
}
|
|
466
|
-
tmp$ret$1 = listOf_0([tmp_2, element_0.
|
|
466
|
+
tmp$ret$1 = listOf_0([tmp_2, element_0.z1o(VOID, tmp_4, VOID, VOID, VOID, destination_2)]);
|
|
467
467
|
}
|
|
468
468
|
var list = tmp$ret$1;
|
|
469
469
|
addAll(destination, list);
|
|
470
470
|
}
|
|
471
471
|
var newElements = destination;
|
|
472
|
-
tmp$ret$0 = element.
|
|
472
|
+
tmp$ret$0 = element.i1o(VOID, newElements);
|
|
473
473
|
}
|
|
474
474
|
tmp = tmp$ret$0;
|
|
475
475
|
} else {
|
|
@@ -482,11 +482,11 @@ 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.
|
|
485
|
+
var injected = element.e1o_1.equals(Companion_getInstance().r1h('Wirespec')) ? $clientServer : emptyList();
|
|
486
486
|
var tmp_0;
|
|
487
487
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
488
488
|
if (!injected.r()) {
|
|
489
|
-
tmp_0 = withElements(element, plus(element.
|
|
489
|
+
tmp_0 = withElements(element, plus(element.a1o(), injected));
|
|
490
490
|
} else {
|
|
491
491
|
tmp_0 = element;
|
|
492
492
|
}
|
|
@@ -518,27 +518,27 @@ function ScalaIrEmitter(packageName, emitShared) {
|
|
|
518
518
|
Companion_getInstance_0();
|
|
519
519
|
packageName = packageName === VOID ? Companion_instance_0.cs('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.k20_1 = packageName;
|
|
522
|
+
this.l20_1 = emitShared;
|
|
523
|
+
this.m20_1 = ScalaGenerator_getInstance();
|
|
524
|
+
this.n20_1 = FileExtension_Scala_getInstance();
|
|
525
|
+
this.o20_1 = listOf_0([import_0('community.flock.wirespec.scala', 'Wirespec'), import_0('scala.reflect', 'ClassTag')]);
|
|
526
526
|
var tmp = this;
|
|
527
|
-
tmp.
|
|
527
|
+
tmp.p20_1 = lazy(ScalaIrEmitter$sanitizationConfig$delegate$lambda(this));
|
|
528
528
|
}
|
|
529
|
-
protoOf(ScalaIrEmitter).
|
|
530
|
-
return this.i20_1;
|
|
531
|
-
};
|
|
532
|
-
protoOf(ScalaIrEmitter).t1v = function () {
|
|
529
|
+
protoOf(ScalaIrEmitter).w1w = function () {
|
|
533
530
|
return this.k20_1;
|
|
534
531
|
};
|
|
532
|
+
protoOf(ScalaIrEmitter).v1v = function () {
|
|
533
|
+
return this.m20_1;
|
|
534
|
+
};
|
|
535
535
|
protoOf(ScalaIrEmitter).uq = function () {
|
|
536
|
-
return this.
|
|
536
|
+
return this.n20_1;
|
|
537
537
|
};
|
|
538
|
-
protoOf(ScalaIrEmitter).
|
|
539
|
-
ScalaGenerator_getInstance().
|
|
538
|
+
protoOf(ScalaIrEmitter).c1w = function (allFiles) {
|
|
539
|
+
ScalaGenerator_getInstance().j1w(allFiles);
|
|
540
540
|
};
|
|
541
|
-
protoOf(ScalaIrEmitter).
|
|
541
|
+
protoOf(ScalaIrEmitter).z1v = function () {
|
|
542
542
|
var packageName = Companion_instance_0.cs('community.flock.wirespec.scala');
|
|
543
543
|
var tmp = interface_0('PathSegment', true);
|
|
544
544
|
var tmp_0 = struct('Literal', ScalaIrEmitter$emitShared$lambda);
|
|
@@ -553,12 +553,12 @@ protoOf(ScalaIrEmitter).x1v = 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.
|
|
556
|
+
tmp_2 = setOf(['Client', 'Server']).u1(item.s1o_1.s1h());
|
|
557
557
|
} else {
|
|
558
558
|
tmp_2 = false;
|
|
559
559
|
}
|
|
560
560
|
if (tmp_2) {
|
|
561
|
-
tmp_1 = item.
|
|
561
|
+
tmp_1 = item.z1o(VOID, VOID, VOID, VOID, VOID, plus_0(item.x1o_1, new Field(Companion_getInstance().r1h('pathSegments'), new Array_0(Custom_init_$Create$('PathSegment')))));
|
|
562
562
|
} else {
|
|
563
563
|
tmp_1 = item;
|
|
564
564
|
}
|
|
@@ -572,39 +572,39 @@ protoOf(ScalaIrEmitter).x1v = 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.i1v_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.b1j(ScalaIrEmitter$emitShared$lambda_1);
|
|
580
|
+
var tmp$ret$5 = this_3.c1j();
|
|
581
|
+
tmp_3.i1v_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.i1v_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.b1j(ScalaIrEmitter$emitShared$lambda_2);
|
|
590
|
+
var tmp$ret$10 = this_5.c1j();
|
|
591
|
+
tmp_4.i1v_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.i1v_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.b1j(ScalaIrEmitter$emitShared$lambda_3(clientServer));
|
|
601
|
+
var tmp$ret$15 = this_7.c1j();
|
|
602
|
+
tmp_5.i1v_1 = transform(this_6, tmp$ret$15);
|
|
603
|
+
var tmp_6 = scope.i1v_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.
|
|
606
|
+
if (this.l20_1.xo_1) {
|
|
607
|
+
tmp_7 = wirespecShared.c1o(Companion_getInstance().r1h(packageName.fs() + 'Wirespec'));
|
|
608
608
|
} else {
|
|
609
609
|
tmp_7 = null;
|
|
610
610
|
}
|
|
@@ -613,7 +613,7 @@ protoOf(ScalaIrEmitter).x1v = function () {
|
|
|
613
613
|
protoOf(ScalaIrEmitter).lr = 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.o20_1;
|
|
617
617
|
var tmp;
|
|
618
618
|
if (Companion_instance.hr(module_0)) {
|
|
619
619
|
tmp = this_0;
|
|
@@ -621,9 +621,9 @@ protoOf(ScalaIrEmitter).lr = function (definition, module_0, logger) {
|
|
|
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.w1w(), definition);
|
|
625
625
|
};
|
|
626
|
-
protoOf(ScalaIrEmitter).
|
|
626
|
+
protoOf(ScalaIrEmitter).e1w = function (definition, module_0) {
|
|
627
627
|
var tmp;
|
|
628
628
|
if (definition instanceof Type) {
|
|
629
629
|
tmp = convertToGenerator_2(definition, module_0);
|
|
@@ -665,11 +665,11 @@ protoOf(ScalaIrEmitter).c1w = 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.w1w().ds_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.o20_1, modelImports)), this.w1w(), 'generator');
|
|
673
673
|
};
|
|
674
674
|
protoOf(ScalaIrEmitter).kq = function (type, module_0) {
|
|
675
675
|
return ensureEmptyStructHasConstructor(sanitizeNames(convertWithValidation(type, module_0), _get_sanitizationConfig__sns434(this)));
|
|
@@ -685,7 +685,7 @@ protoOf(ScalaIrEmitter).ur = 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
|
|
688
|
-
var tmp0 = file.
|
|
688
|
+
var tmp0 = file.a1o();
|
|
689
689
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
690
690
|
var destination = ArrayList_init_$Create$_0();
|
|
691
691
|
var _iterator__ex2g4s = tmp0.t();
|
|
@@ -697,12 +697,12 @@ 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().r1h(sanitize(this, refined.sr_1)), listOf(updatedStruct));
|
|
701
701
|
};
|
|
702
702
|
protoOf(ScalaIrEmitter).as = function (endpoint) {
|
|
703
703
|
// Inline function 'community.flock.wirespec.ir.core.findElement' call
|
|
704
704
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
705
|
-
var tmp0 = convert_3(endpoint).
|
|
705
|
+
var tmp0 = convert_3(endpoint).a1o();
|
|
706
706
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
707
707
|
var destination = ArrayList_init_$Create$_0();
|
|
708
708
|
var _iterator__ex2g4s = tmp0.t();
|
|
@@ -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().r1h(sanitize(this, endpoint.up_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.w1w());
|
|
721
721
|
var tmp_0;
|
|
722
722
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
723
723
|
if (!this_0.r()) {
|
|
@@ -731,7 +731,7 @@ protoOf(ScalaIrEmitter).as = function (endpoint) {
|
|
|
731
731
|
protoOf(ScalaIrEmitter).or = 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.w1w());
|
|
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).d1w = function (endpoint) {
|
|
746
|
+
var imports = buildModelImports(endpoint, this.w1w());
|
|
747
|
+
var endpointImport = import_0(this.w1w().ds_1 + '.endpoint', endpoint.up_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.w1w(), 'client');
|
|
750
|
+
var tmp = Companion_getInstance().r1h(subPackageName.fs() + file.y1n_1.s1h());
|
|
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
755
|
this_0.x(new Package(subPackageName.ds_1));
|
|
756
|
-
this_0.f1(this.
|
|
756
|
+
this_0.f1(this.o20_1);
|
|
757
757
|
this_0.f1(imports);
|
|
758
758
|
this_0.x(endpointImport);
|
|
759
|
-
this_0.f1(file.
|
|
759
|
+
this_0.f1(file.z1n_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).a1w = 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();
|
|
@@ -787,7 +787,7 @@ protoOf(ScalaIrEmitter).y1v = 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.w1w().ds_1 + '.model', item.bv_1);
|
|
791
791
|
destination_0.x(tmp$ret$5);
|
|
792
792
|
}
|
|
793
793
|
var imports = destination_0;
|
|
@@ -797,7 +797,7 @@ protoOf(ScalaIrEmitter).y1v = 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.w1w().ds_1 + '.endpoint', item_0.up_1.l1());
|
|
801
801
|
destination_1.x(tmp$ret$8);
|
|
802
802
|
}
|
|
803
803
|
var endpointImports = destination_1;
|
|
@@ -807,29 +807,29 @@ protoOf(ScalaIrEmitter).y1v = 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.w1w().ds_1 + '.client', item_1.up_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().r1h(this.w1w().fs() + file.y1n_1.s1h());
|
|
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.w1w().ds_1));
|
|
822
|
+
this_0.f1(this.o20_1);
|
|
823
823
|
this_0.f1(allImports);
|
|
824
|
-
this_0.f1(file.
|
|
824
|
+
this_0.f1(file.z1n_1);
|
|
825
825
|
var tmp$ret$17 = this_0.o5();
|
|
826
826
|
return new File(tmp, tmp$ret$17);
|
|
827
827
|
};
|
|
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.q1v(convertToStringCallsToFieldAccess$lambda);
|
|
832
|
+
var tmp = scope.i1v_1;
|
|
833
833
|
return isInterface(tmp, Element) ? tmp : THROW_CCE();
|
|
834
834
|
}
|
|
835
835
|
function appendClientServerObjects(_this__u8e3s4, endpoint, requestIsObject) {
|
|
@@ -838,7 +838,7 @@ function appendClientServerObjects(_this__u8e3s4, endpoint, requestIsObject) {
|
|
|
838
838
|
var pathSegmentsCode = joinToString(endpoint.wp_1, ', ', VOID, VOID, VOID, VOID, appendClientServerObjects$lambda_0);
|
|
839
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.vp_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
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.vp_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
|
-
return _this__u8e3s4.
|
|
841
|
+
return _this__u8e3s4.i1o(VOID, plus_0(plus_0(_this__u8e3s4.f1o_1, clientObject), serverObject));
|
|
842
842
|
}
|
|
843
843
|
function injectHandleFunction(_this__u8e3s4) {
|
|
844
844
|
// Inline function 'community.flock.wirespec.ir.core.transform' call
|
|
@@ -846,19 +846,19 @@ 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.i1v_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.b1j(injectHandleFunction$lambda);
|
|
854
|
+
var tmp$ret$2 = this_1.c1j();
|
|
855
|
+
tmp.i1v_1 = transform(this_0, tmp$ret$2);
|
|
856
|
+
var tmp_0 = scope.i1v_1;
|
|
857
857
|
return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
|
|
858
858
|
}
|
|
859
859
|
function isRequestObject(namespace) {
|
|
860
860
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
861
|
-
var tmp0 = namespace.
|
|
861
|
+
var tmp0 = namespace.f1o_1;
|
|
862
862
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
863
863
|
var destination = ArrayList_init_$Create$_0();
|
|
864
864
|
var _iterator__ex2g4s = tmp0.t();
|
|
@@ -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.
|
|
877
|
+
if (element_0.j1o_1.s1h() === 'Request') {
|
|
878
878
|
tmp$ret$3 = element_0;
|
|
879
879
|
break $l$block;
|
|
880
880
|
}
|
|
@@ -889,7 +889,7 @@ function isRequestObject(namespace) {
|
|
|
889
889
|
tmp = tmp0_elvis_lhs;
|
|
890
890
|
}
|
|
891
891
|
var requestStruct = tmp;
|
|
892
|
-
return requestStruct.
|
|
892
|
+
return requestStruct.l1o_1.a1() === 1 && single(requestStruct.l1o_1).s1r_1.r() || (requestStruct.k1o_1.r() && requestStruct.l1o_1.r());
|
|
893
893
|
}
|
|
894
894
|
function buildModelImports(_this__u8e3s4, packageName) {
|
|
895
895
|
// Inline function 'kotlin.collections.distinctBy' call
|
|
@@ -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.ds_1 + '.model', Companion_getInstance().
|
|
913
|
+
var tmp$ret$2 = import_0(packageName.ds_1 + '.model', Companion_getInstance().r1h(item.bv_1).s1h());
|
|
914
914
|
destination.x(tmp$ret$2);
|
|
915
915
|
}
|
|
916
916
|
return destination;
|
|
@@ -921,14 +921,14 @@ 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.i1v_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.b1j(addIdentityTypeToCall$lambda);
|
|
929
|
+
var tmp$ret$2 = this_1.c1j();
|
|
930
|
+
tmp.i1v_1 = transform(this_0, tmp$ret$2);
|
|
931
|
+
var tmp_0 = scope.i1v_1;
|
|
932
932
|
return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
|
|
933
933
|
}
|
|
934
934
|
function toScalaTypeName(_this__u8e3s4) {
|
|
@@ -989,25 +989,25 @@ function convertToStringCallsToFieldAccess$lambda(expr, tr) {
|
|
|
989
989
|
var tmp_0;
|
|
990
990
|
var tmp_1;
|
|
991
991
|
if (expr instanceof FunctionCall) {
|
|
992
|
-
tmp_1 = expr.
|
|
992
|
+
tmp_1 = expr.d1n_1.t1m() === 'toString';
|
|
993
993
|
} else {
|
|
994
994
|
tmp_1 = false;
|
|
995
995
|
}
|
|
996
996
|
if (tmp_1) {
|
|
997
|
-
tmp_0 = !(expr.
|
|
997
|
+
tmp_0 = !(expr.b1n_1 == null);
|
|
998
998
|
} else {
|
|
999
999
|
tmp_0 = false;
|
|
1000
1000
|
}
|
|
1001
1001
|
if (tmp_0) {
|
|
1002
|
-
var tmp0_safe_receiver = expr.
|
|
1002
|
+
var tmp0_safe_receiver = expr.b1n_1;
|
|
1003
1003
|
var tmp_2;
|
|
1004
1004
|
if (tmp0_safe_receiver == null) {
|
|
1005
1005
|
tmp_2 = null;
|
|
1006
1006
|
} else {
|
|
1007
1007
|
// Inline function 'kotlin.let' call
|
|
1008
|
-
tmp_2 = tr.
|
|
1008
|
+
tmp_2 = tr.d1v(tmp0_safe_receiver);
|
|
1009
1009
|
}
|
|
1010
|
-
tmp = new FieldCall(tmp_2, Companion_getInstance().
|
|
1010
|
+
tmp = new FieldCall(tmp_2, Companion_getInstance().r1h('toString'));
|
|
1011
1011
|
} else {
|
|
1012
1012
|
tmp = transformChildren_1(expr, tr);
|
|
1013
1013
|
}
|
|
@@ -1044,13 +1044,13 @@ function injectHandleFunction$lambda(element, transformer) {
|
|
|
1044
1044
|
if (element instanceof Interface) {
|
|
1045
1045
|
var tmp$ret$0;
|
|
1046
1046
|
$l$block: {
|
|
1047
|
-
if (!element.
|
|
1047
|
+
if (!element.s1o_1.equals(Companion_getInstance().r1h('Handler')) && !element.s1o_1.equals(Companion_getInstance().r1h('Call'))) {
|
|
1048
1048
|
tmp$ret$0 = element;
|
|
1049
1049
|
break $l$block;
|
|
1050
1050
|
}
|
|
1051
1051
|
var tmp0_typeParameters = listOf(new TypeParameter(Custom_init_$Create$('F[_]')));
|
|
1052
1052
|
// Inline function 'kotlin.collections.map' call
|
|
1053
|
-
var this_0 = element.
|
|
1053
|
+
var this_0 = element.t1o_1;
|
|
1054
1054
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1055
1055
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
1056
1056
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -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.k1l_1;
|
|
1065
1065
|
var tmp_1;
|
|
1066
1066
|
if (tmp1_safe_receiver == null) {
|
|
1067
1067
|
tmp_1 = null;
|
|
@@ -1070,13 +1070,13 @@ 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.p1l(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;
|
|
1077
1077
|
destination.x(tmp$ret$3);
|
|
1078
1078
|
}
|
|
1079
|
-
tmp$ret$0 = element.
|
|
1079
|
+
tmp$ret$0 = element.z1o(VOID, destination, VOID, VOID, tmp0_typeParameters);
|
|
1080
1080
|
}
|
|
1081
1081
|
tmp = tmp$ret$0;
|
|
1082
1082
|
} else {
|
|
@@ -1089,7 +1089,7 @@ function addIdentityTypeToCall$lambda(element, transformer) {
|
|
|
1089
1089
|
var tmp;
|
|
1090
1090
|
if (element instanceof Struct) {
|
|
1091
1091
|
// Inline function 'kotlin.collections.map' call
|
|
1092
|
-
var this_0 = element.
|
|
1092
|
+
var this_0 = element.m1o_1;
|
|
1093
1093
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1094
1094
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
1095
1095
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -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.l1j_1.s1h(), '.Call')) {
|
|
1106
1106
|
tmp_1 = tmp0_safe_receiver;
|
|
1107
1107
|
} else {
|
|
1108
1108
|
tmp_1 = null;
|
|
@@ -1110,11 +1110,11 @@ function addIdentityTypeToCall$lambda(element, transformer) {
|
|
|
1110
1110
|
tmp_0 = tmp_1;
|
|
1111
1111
|
}
|
|
1112
1112
|
var tmp1_safe_receiver = tmp_0;
|
|
1113
|
-
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
1113
|
+
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.p1n(VOID, listOf(Custom_init_$Create$('[A] =>> A')));
|
|
1114
1114
|
var tmp$ret$2 = tmp2_elvis_lhs == null ? item : tmp2_elvis_lhs;
|
|
1115
1115
|
destination.x(tmp$ret$2);
|
|
1116
1116
|
}
|
|
1117
|
-
tmp = element.
|
|
1117
|
+
tmp = element.q1o(VOID, VOID, VOID, destination);
|
|
1118
1118
|
} else {
|
|
1119
1119
|
tmp = element;
|
|
1120
1120
|
}
|
|
@@ -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).x1v = get_extensions;
|
|
1126
1126
|
protoOf(ScalaIrEmitter).eo = emit_0;
|
|
1127
|
-
protoOf(ScalaIrEmitter).
|
|
1127
|
+
protoOf(ScalaIrEmitter).y1v = emit_1;
|
|
1128
1128
|
//endregion
|
|
1129
1129
|
//region block: exports
|
|
1130
1130
|
export {
|