@flock/wirespec 0.18.4 → 0.18.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 +39 -39
- package/colormath-root-colormath.mjs +406 -406
- package/kotlin-kotlin-stdlib.mjs +5 -5
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +4585 -4585
- package/kotlin-rgxgen.mjs +1757 -1757
- package/kotlinx-io-kotlinx-io-core.mjs +397 -397
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1616 -1616
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1271 -1271
- package/mordant-mordant.mjs +1097 -1097
- package/package.json +1 -1
- package/wirespec-src-compiler-emitters-java.mjs +189 -188
- package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-kotlin.mjs +166 -166
- package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-python.mjs +218 -217
- package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-rust.mjs +303 -292
- package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-scala.mjs +111 -110
- package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-typescript.mjs +149 -146
- package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-wirespec.mjs +25 -25
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-ir.mjs +2974 -2934
- package/wirespec-src-compiler-ir.mjs.map +1 -1
- package/wirespec-src-converter-avro.mjs +475 -475
- package/wirespec-src-converter-openapi.mjs +365 -365
- package/wirespec-src-plugin-arguments.mjs +115 -115
- package/wirespec-src-plugin-cli.mjs +84 -84
- package/wirespec-src-plugin-npm.mjs +20 -20
- package/wirespec-src-tools-generator.mjs +2 -2
|
@@ -73,7 +73,7 @@ import {
|
|
|
73
73
|
sanitizeFieldName1ptgy1kxy8u2m as sanitizeFieldName,
|
|
74
74
|
ConstructorStatement1x4n4sr59iy4n as ConstructorStatement,
|
|
75
75
|
SanitizationConfig11mmn3p2c03c1 as SanitizationConfig,
|
|
76
|
-
|
|
76
|
+
Custom_init_$Create$2enn7oyj71j1t as Custom_init_$Create$,
|
|
77
77
|
String_instance3uxvo48ki208u as String_instance,
|
|
78
78
|
Reflect_instance3i17lxiopj78t as Reflect_instance,
|
|
79
79
|
Package2tniq694j1763 as Package,
|
|
@@ -120,6 +120,7 @@ import {
|
|
|
120
120
|
FieldCall1iz7z2fx2xo4p as FieldCall,
|
|
121
121
|
TypeParameter1x56bawg1pg87 as TypeParameter,
|
|
122
122
|
Function21cuq8qizkin7 as Function,
|
|
123
|
+
Custom2si7lto3wompr as Custom_0,
|
|
123
124
|
} from './wirespec-src-compiler-ir.mjs';
|
|
124
125
|
//region block: imports
|
|
125
126
|
//endregion
|
|
@@ -128,7 +129,7 @@ initMetadataForCompanion(Companion);
|
|
|
128
129
|
initMetadataForClass(ScalaIrEmitter, 'ScalaIrEmitter', ScalaIrEmitter, VOID, [IrEmitter]);
|
|
129
130
|
//endregion
|
|
130
131
|
function _get_sanitizationConfig__sns434($this) {
|
|
131
|
-
var tmp0 = $this.
|
|
132
|
+
var tmp0 = $this.u1y_1;
|
|
132
133
|
var tmp = KProperty1;
|
|
133
134
|
// Inline function 'kotlin.getValue' call
|
|
134
135
|
getPropertyCallableRef('sanitizationConfig', 1, tmp, ScalaIrEmitter$_get_sanitizationConfig_$ref_ydarb0(), null);
|
|
@@ -193,7 +194,7 @@ function sanitizeFirstIsDigit($this, _this__u8e3s4) {
|
|
|
193
194
|
return tmp;
|
|
194
195
|
}
|
|
195
196
|
function sanitizeKeywords($this, _this__u8e3s4) {
|
|
196
|
-
return Companion_getInstance_0().
|
|
197
|
+
return Companion_getInstance_0().v1y_1.u1(_this__u8e3s4) ? addBackticks(_this__u8e3s4) : _this__u8e3s4;
|
|
197
198
|
}
|
|
198
199
|
function sanitizeSymbol($this, _this__u8e3s4) {
|
|
199
200
|
// Inline function 'kotlin.collections.mapIndexed' call
|
|
@@ -233,7 +234,7 @@ function sanitizeEnum($this, _this__u8e3s4) {
|
|
|
233
234
|
}
|
|
234
235
|
function Companion() {
|
|
235
236
|
Companion_instance_2 = this;
|
|
236
|
-
this.
|
|
237
|
+
this.v1y_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']);
|
|
237
238
|
}
|
|
238
239
|
var Companion_instance_2;
|
|
239
240
|
function Companion_getInstance_0() {
|
|
@@ -246,13 +247,13 @@ function ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda(it) {
|
|
|
246
247
|
}
|
|
247
248
|
function ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda_0(this$0) {
|
|
248
249
|
return function (name) {
|
|
249
|
-
var sanitized = name.
|
|
250
|
+
var sanitized = name.g1h_1.a1() > 1 ? name.s1l() : sanitizeSymbol(this$0, name.s1h());
|
|
250
251
|
return new Name(listOf(sanitized));
|
|
251
252
|
};
|
|
252
253
|
}
|
|
253
254
|
function ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda_1(this$0) {
|
|
254
255
|
return function (name) {
|
|
255
|
-
return new Name(listOf(sanitizeSymbol(this$0, name.
|
|
256
|
+
return new Name(listOf(sanitizeSymbol(this$0, name.s1l())));
|
|
256
257
|
};
|
|
257
258
|
}
|
|
258
259
|
function ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda_2(this$0) {
|
|
@@ -265,17 +266,17 @@ function ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
|
|
|
265
266
|
var tmp;
|
|
266
267
|
var tmp_0;
|
|
267
268
|
if (stmt instanceof FunctionCall) {
|
|
268
|
-
tmp_0 = stmt.
|
|
269
|
+
tmp_0 = stmt.b1m_1.s1h() === 'validate';
|
|
269
270
|
} else {
|
|
270
271
|
tmp_0 = false;
|
|
271
272
|
}
|
|
272
273
|
if (tmp_0) {
|
|
273
|
-
tmp = transformChildren(stmt.
|
|
274
|
+
tmp = transformChildren(stmt.f1m(VOID, emptyList()), tr);
|
|
274
275
|
} else {
|
|
275
276
|
if (stmt instanceof ConstructorStatement) {
|
|
276
|
-
var tmp_1 = tr.
|
|
277
|
+
var tmp_1 = tr.p1t(stmt.p1m_1);
|
|
277
278
|
// Inline function 'kotlin.collections.map' call
|
|
278
|
-
var this_0 = stmt.
|
|
279
|
+
var this_0 = stmt.q1m_1;
|
|
279
280
|
// Inline function 'kotlin.collections.mapTo' call
|
|
280
281
|
var destination = ArrayList_init_$Create$(this_0.a1());
|
|
281
282
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -286,7 +287,7 @@ function ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
|
|
|
286
287
|
var name = item.k1();
|
|
287
288
|
// Inline function 'kotlin.collections.component2' call
|
|
288
289
|
var expr = item.l1();
|
|
289
|
-
var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), name), tr.
|
|
290
|
+
var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), name), tr.s1t(expr));
|
|
290
291
|
destination.x(tmp$ret$3);
|
|
291
292
|
}
|
|
292
293
|
tmp = new ConstructorStatement(tmp_1, toMap(destination));
|
|
@@ -299,7 +300,7 @@ function ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
|
|
|
299
300
|
}
|
|
300
301
|
function ScalaIrEmitter$sanitizationConfig$delegate$lambda(this$0) {
|
|
301
302
|
return function () {
|
|
302
|
-
var tmp = Companion_getInstance_0().
|
|
303
|
+
var tmp = Companion_getInstance_0().v1y_1;
|
|
303
304
|
var tmp_0 = ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda;
|
|
304
305
|
var tmp_1 = ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda_0(this$0);
|
|
305
306
|
var tmp_2 = ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda_1(this$0);
|
|
@@ -313,21 +314,21 @@ function ScalaIrEmitter$_get_sanitizationConfig_$ref_ydarb0() {
|
|
|
313
314
|
};
|
|
314
315
|
}
|
|
315
316
|
function ScalaIrEmitter$emitShared$lambda($this$struct) {
|
|
316
|
-
$this$struct.
|
|
317
|
-
$this$struct.
|
|
317
|
+
$this$struct.k1k(Custom_init_$Create$('PathSegment'));
|
|
318
|
+
$this$struct.k1j('value', String_instance);
|
|
318
319
|
return Unit_instance;
|
|
319
320
|
}
|
|
320
321
|
function ScalaIrEmitter$emitShared$lambda_0($this$struct) {
|
|
321
|
-
$this$struct.
|
|
322
|
-
$this$struct.
|
|
323
|
-
$this$struct.
|
|
322
|
+
$this$struct.k1k(Custom_init_$Create$('PathSegment'));
|
|
323
|
+
$this$struct.k1j('name', String_instance);
|
|
324
|
+
$this$struct.k1j('type', Reflect_instance);
|
|
324
325
|
return Unit_instance;
|
|
325
326
|
}
|
|
326
327
|
function ScalaIrEmitter$emitShared$lambda_1(element, transformer) {
|
|
327
328
|
var tmp;
|
|
328
329
|
if (element instanceof File) {
|
|
329
330
|
// Inline function 'kotlin.collections.partition' call
|
|
330
|
-
var this_0 = element.
|
|
331
|
+
var this_0 = element.t1m_1;
|
|
331
332
|
var first = ArrayList_init_$Create$_0();
|
|
332
333
|
var second = ArrayList_init_$Create$_0();
|
|
333
334
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -342,7 +343,7 @@ function ScalaIrEmitter$emitShared$lambda_1(element, transformer) {
|
|
|
342
343
|
var _destruct__k2r9zo = new Pair(first, second);
|
|
343
344
|
var packageElements = _destruct__k2r9zo.ne();
|
|
344
345
|
var rest = _destruct__k2r9zo.oe();
|
|
345
|
-
tmp = element.
|
|
346
|
+
tmp = element.w1m(VOID, plus(packageElements, rest));
|
|
346
347
|
} else {
|
|
347
348
|
tmp = element;
|
|
348
349
|
}
|
|
@@ -354,12 +355,12 @@ function ScalaIrEmitter$emitShared$lambda_2(element, transformer) {
|
|
|
354
355
|
if (element instanceof Namespace) {
|
|
355
356
|
var tmp$ret$0;
|
|
356
357
|
$l$block: {
|
|
357
|
-
if (!element.
|
|
358
|
+
if (!element.y1m_1.equals(Companion_getInstance().f1h('Wirespec'))) {
|
|
358
359
|
tmp$ret$0 = element;
|
|
359
360
|
break $l$block;
|
|
360
361
|
}
|
|
361
362
|
// Inline function 'kotlin.collections.flatMap' call
|
|
362
|
-
var tmp0 = element.
|
|
363
|
+
var tmp0 = element.z1m_1;
|
|
363
364
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
364
365
|
var destination = ArrayList_init_$Create$_0();
|
|
365
366
|
var _iterator__ex2g4s = tmp0.t();
|
|
@@ -371,14 +372,14 @@ function ScalaIrEmitter$emitShared$lambda_2(element, transformer) {
|
|
|
371
372
|
if (!(element_0 instanceof Interface)) {
|
|
372
373
|
tmp_0 = true;
|
|
373
374
|
} else {
|
|
374
|
-
tmp_0 = !setOf(['Request', 'Response']).u1(element_0.
|
|
375
|
+
tmp_0 = !setOf(['Request', 'Response']).u1(element_0.k1n_1.h1h());
|
|
375
376
|
}
|
|
376
377
|
if (tmp_0) {
|
|
377
378
|
tmp$ret$1 = listOf(element_0);
|
|
378
379
|
break $l$block_2;
|
|
379
380
|
}
|
|
380
381
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
381
|
-
var tmp0_0 = element_0.
|
|
382
|
+
var tmp0_0 = element_0.l1n_1;
|
|
382
383
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
383
384
|
var destination_0 = ArrayList_init_$Create$_0();
|
|
384
385
|
var _iterator__ex2g4s_0 = tmp0_0.t();
|
|
@@ -394,7 +395,7 @@ function ScalaIrEmitter$emitShared$lambda_2(element, transformer) {
|
|
|
394
395
|
var _iterator__ex2g4s_1 = destination_0.t();
|
|
395
396
|
while (_iterator__ex2g4s_1.u()) {
|
|
396
397
|
var element_2 = _iterator__ex2g4s_1.v();
|
|
397
|
-
if (element_2.
|
|
398
|
+
if (element_2.k1n_1.h1h() === 'Headers') {
|
|
398
399
|
tmp$ret$5 = element_2;
|
|
399
400
|
break $l$block_1;
|
|
400
401
|
}
|
|
@@ -410,9 +411,9 @@ function ScalaIrEmitter$emitShared$lambda_2(element, transformer) {
|
|
|
410
411
|
tmp_1 = tmp0_elvis_lhs;
|
|
411
412
|
}
|
|
412
413
|
var nestedHeaders = tmp_1;
|
|
413
|
-
var tmp_2 = new Namespace(element_0.
|
|
414
|
+
var tmp_2 = new Namespace(element_0.k1n_1, listOf(nestedHeaders));
|
|
414
415
|
// Inline function 'kotlin.collections.filter' call
|
|
415
|
-
var tmp0_1 = element_0.
|
|
416
|
+
var tmp0_1 = element_0.l1n_1;
|
|
416
417
|
// Inline function 'kotlin.collections.filterTo' call
|
|
417
418
|
var destination_1 = ArrayList_init_$Create$_0();
|
|
418
419
|
var _iterator__ex2g4s_2 = tmp0_1.t();
|
|
@@ -420,7 +421,7 @@ function ScalaIrEmitter$emitShared$lambda_2(element, transformer) {
|
|
|
420
421
|
var element_3 = _iterator__ex2g4s_2.v();
|
|
421
422
|
var tmp_3;
|
|
422
423
|
if (element_3 instanceof Interface) {
|
|
423
|
-
tmp_3 = element_3.
|
|
424
|
+
tmp_3 = element_3.k1n_1.h1h() === 'Headers';
|
|
424
425
|
} else {
|
|
425
426
|
tmp_3 = false;
|
|
426
427
|
}
|
|
@@ -430,28 +431,28 @@ function ScalaIrEmitter$emitShared$lambda_2(element, transformer) {
|
|
|
430
431
|
}
|
|
431
432
|
var tmp_4 = destination_1;
|
|
432
433
|
// Inline function 'kotlin.collections.map' call
|
|
433
|
-
var this_0 = element_0.
|
|
434
|
+
var this_0 = element_0.p1n_1;
|
|
434
435
|
// Inline function 'kotlin.collections.mapTo' call
|
|
435
436
|
var destination_2 = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
436
437
|
var _iterator__ex2g4s_3 = this_0.t();
|
|
437
438
|
while (_iterator__ex2g4s_3.u()) {
|
|
438
439
|
var item = _iterator__ex2g4s_3.v();
|
|
439
440
|
var tmp_5;
|
|
440
|
-
if (item.
|
|
441
|
-
tmp_5 = item.
|
|
441
|
+
if (item.z1p_1.s1h() === 'headers') {
|
|
442
|
+
tmp_5 = item.d1q(VOID, Custom_init_$Create$(element_0.k1n_1.h1h() + '.Headers'));
|
|
442
443
|
} else {
|
|
443
444
|
tmp_5 = item;
|
|
444
445
|
}
|
|
445
446
|
var tmp$ret$9 = tmp_5;
|
|
446
447
|
destination_2.x(tmp$ret$9);
|
|
447
448
|
}
|
|
448
|
-
tmp$ret$1 = listOf_0([tmp_2, element_0.
|
|
449
|
+
tmp$ret$1 = listOf_0([tmp_2, element_0.r1n(VOID, tmp_4, VOID, VOID, VOID, destination_2)]);
|
|
449
450
|
}
|
|
450
451
|
var list = tmp$ret$1;
|
|
451
452
|
addAll(destination, list);
|
|
452
453
|
}
|
|
453
454
|
var newElements = destination;
|
|
454
|
-
tmp$ret$0 = element.
|
|
455
|
+
tmp$ret$0 = element.c1n(VOID, newElements);
|
|
455
456
|
}
|
|
456
457
|
tmp = tmp$ret$0;
|
|
457
458
|
} else {
|
|
@@ -464,11 +465,11 @@ function ScalaIrEmitter$emitShared$lambda_3($clientServer) {
|
|
|
464
465
|
return function (element, transformer) {
|
|
465
466
|
var tmp;
|
|
466
467
|
if (element instanceof Namespace) {
|
|
467
|
-
var injected = element.
|
|
468
|
+
var injected = element.y1m_1.equals(Companion_getInstance().f1h('Wirespec')) ? $clientServer : emptyList();
|
|
468
469
|
var tmp_0;
|
|
469
470
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
470
471
|
if (!injected.r()) {
|
|
471
|
-
tmp_0 = withElements(element, plus(element.
|
|
472
|
+
tmp_0 = withElements(element, plus(element.u1m(), injected));
|
|
472
473
|
} else {
|
|
473
474
|
tmp_0 = element;
|
|
474
475
|
}
|
|
@@ -489,24 +490,24 @@ function ScalaIrEmitter(packageName, emitShared) {
|
|
|
489
490
|
Companion_getInstance_0();
|
|
490
491
|
packageName = packageName === VOID ? Companion_instance_0.lr('community.flock.wirespec.generated') : packageName;
|
|
491
492
|
emitShared = emitShared === VOID ? Companion_instance_1.go() : emitShared;
|
|
492
|
-
this.
|
|
493
|
-
this.
|
|
494
|
-
this.
|
|
495
|
-
this.
|
|
496
|
-
this.
|
|
493
|
+
this.p1y_1 = packageName;
|
|
494
|
+
this.q1y_1 = emitShared;
|
|
495
|
+
this.r1y_1 = ScalaGenerator_getInstance();
|
|
496
|
+
this.s1y_1 = FileExtension_Scala_getInstance();
|
|
497
|
+
this.t1y_1 = listOf_0([import_0('community.flock.wirespec.scala', 'Wirespec'), import_0('scala.reflect', 'ClassTag')]);
|
|
497
498
|
var tmp = this;
|
|
498
|
-
tmp.
|
|
499
|
+
tmp.u1y_1 = lazy(ScalaIrEmitter$sanitizationConfig$delegate$lambda(this));
|
|
499
500
|
}
|
|
500
|
-
protoOf(ScalaIrEmitter).
|
|
501
|
-
return this.
|
|
501
|
+
protoOf(ScalaIrEmitter).d1v = function () {
|
|
502
|
+
return this.p1y_1;
|
|
502
503
|
};
|
|
503
|
-
protoOf(ScalaIrEmitter).
|
|
504
|
-
return this.
|
|
504
|
+
protoOf(ScalaIrEmitter).k1u = function () {
|
|
505
|
+
return this.r1y_1;
|
|
505
506
|
};
|
|
506
507
|
protoOf(ScalaIrEmitter).eq = function () {
|
|
507
|
-
return this.
|
|
508
|
+
return this.s1y_1;
|
|
508
509
|
};
|
|
509
|
-
protoOf(ScalaIrEmitter).
|
|
510
|
+
protoOf(ScalaIrEmitter).n1u = function () {
|
|
510
511
|
var packageName = Companion_instance_0.lr('community.flock.wirespec.scala');
|
|
511
512
|
var tmp = interface_0('PathSegment', true);
|
|
512
513
|
var tmp_0 = struct('Literal', ScalaIrEmitter$emitShared$lambda);
|
|
@@ -521,12 +522,12 @@ protoOf(ScalaIrEmitter).m1u = function () {
|
|
|
521
522
|
var tmp_1;
|
|
522
523
|
var tmp_2;
|
|
523
524
|
if (item instanceof Interface) {
|
|
524
|
-
tmp_2 = setOf(['Client', 'Server']).u1(item.
|
|
525
|
+
tmp_2 = setOf(['Client', 'Server']).u1(item.k1n_1.h1h());
|
|
525
526
|
} else {
|
|
526
527
|
tmp_2 = false;
|
|
527
528
|
}
|
|
528
529
|
if (tmp_2) {
|
|
529
|
-
tmp_1 = item.
|
|
530
|
+
tmp_1 = item.r1n(VOID, VOID, VOID, VOID, VOID, plus_0(item.p1n_1, new Field(Companion_getInstance().f1h('pathSegments'), new Array_0(Custom_init_$Create$('PathSegment')))));
|
|
530
531
|
} else {
|
|
531
532
|
tmp_1 = item;
|
|
532
533
|
}
|
|
@@ -540,39 +541,39 @@ protoOf(ScalaIrEmitter).m1u = function () {
|
|
|
540
541
|
// Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
|
|
541
542
|
var tmp_3 = scope;
|
|
542
543
|
// Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
|
|
543
|
-
var this_2 = scope.
|
|
544
|
+
var this_2 = scope.x1t_1;
|
|
544
545
|
// Inline function 'community.flock.wirespec.ir.core.transformer' call
|
|
545
546
|
// Inline function 'kotlin.apply' call
|
|
546
547
|
var this_3 = new TransformerBuilder();
|
|
547
548
|
this_3.c1h(ScalaIrEmitter$emitShared$lambda_1);
|
|
548
549
|
var tmp$ret$5 = this_3.d1h();
|
|
549
|
-
tmp_3.
|
|
550
|
+
tmp_3.x1t_1 = transform(this_2, tmp$ret$5);
|
|
550
551
|
// Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
|
|
551
552
|
var tmp_4 = scope;
|
|
552
553
|
// Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
|
|
553
|
-
var this_4 = scope.
|
|
554
|
+
var this_4 = scope.x1t_1;
|
|
554
555
|
// Inline function 'community.flock.wirespec.ir.core.transformer' call
|
|
555
556
|
// Inline function 'kotlin.apply' call
|
|
556
557
|
var this_5 = new TransformerBuilder();
|
|
557
558
|
this_5.c1h(ScalaIrEmitter$emitShared$lambda_2);
|
|
558
559
|
var tmp$ret$10 = this_5.d1h();
|
|
559
|
-
tmp_4.
|
|
560
|
+
tmp_4.x1t_1 = transform(this_4, tmp$ret$10);
|
|
560
561
|
// Inline function 'community.flock.wirespec.ir.core.TransformScope.injectAfter' call
|
|
561
562
|
var tmp_5 = scope;
|
|
562
563
|
// Inline function 'community.flock.wirespec.ir.core.injectAfter' call
|
|
563
564
|
// Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
|
|
564
|
-
var this_6 = scope.
|
|
565
|
+
var this_6 = scope.x1t_1;
|
|
565
566
|
// Inline function 'community.flock.wirespec.ir.core.transformer' call
|
|
566
567
|
// Inline function 'kotlin.apply' call
|
|
567
568
|
var this_7 = new TransformerBuilder();
|
|
568
569
|
this_7.c1h(ScalaIrEmitter$emitShared$lambda_3(clientServer));
|
|
569
570
|
var tmp$ret$15 = this_7.d1h();
|
|
570
|
-
tmp_5.
|
|
571
|
-
var tmp_6 = scope.
|
|
571
|
+
tmp_5.x1t_1 = transform(this_6, tmp$ret$15);
|
|
572
|
+
var tmp_6 = scope.x1t_1;
|
|
572
573
|
var wirespecShared = isInterface(tmp_6, Element) ? tmp_6 : THROW_CCE();
|
|
573
574
|
var tmp_7;
|
|
574
|
-
if (this.
|
|
575
|
-
tmp_7 = wirespecShared.
|
|
575
|
+
if (this.q1y_1.ho_1) {
|
|
576
|
+
tmp_7 = wirespecShared.w1m(Companion_getInstance().f1h(packageName.or() + 'Wirespec'));
|
|
576
577
|
} else {
|
|
577
578
|
tmp_7 = null;
|
|
578
579
|
}
|
|
@@ -581,7 +582,7 @@ protoOf(ScalaIrEmitter).m1u = function () {
|
|
|
581
582
|
protoOf(ScalaIrEmitter).uq = function (definition, module_0, logger) {
|
|
582
583
|
var file = emit.call(this, definition, module_0, logger);
|
|
583
584
|
// Inline function 'kotlin.takeIf' call
|
|
584
|
-
var this_0 = this.
|
|
585
|
+
var this_0 = this.t1y_1;
|
|
585
586
|
var tmp;
|
|
586
587
|
if (Companion_instance.qq(module_0)) {
|
|
587
588
|
tmp = this_0;
|
|
@@ -589,7 +590,7 @@ protoOf(ScalaIrEmitter).uq = function (definition, module_0, logger) {
|
|
|
589
590
|
tmp = null;
|
|
590
591
|
}
|
|
591
592
|
var tmp$ret$1 = tmp;
|
|
592
|
-
return placeInPackage(prependImports(file, tmp$ret$1), this.
|
|
593
|
+
return placeInPackage(prependImports(file, tmp$ret$1), this.d1v(), definition);
|
|
593
594
|
};
|
|
594
595
|
protoOf(ScalaIrEmitter).up = function (type, module_0) {
|
|
595
596
|
return ensureEmptyStructHasConstructor(sanitizeNames(convertWithValidation(type, module_0), _get_sanitizationConfig__sns434(this)));
|
|
@@ -605,7 +606,7 @@ protoOf(ScalaIrEmitter).dr = function (refined) {
|
|
|
605
606
|
var file = sanitizeNames(convert_2(refined), _get_sanitizationConfig__sns434(this));
|
|
606
607
|
// Inline function 'community.flock.wirespec.ir.core.findElement' call
|
|
607
608
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
608
|
-
var tmp0 = file.
|
|
609
|
+
var tmp0 = file.u1m();
|
|
609
610
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
610
611
|
var destination = ArrayList_init_$Create$_0();
|
|
611
612
|
var _iterator__ex2g4s = tmp0.t();
|
|
@@ -617,12 +618,12 @@ protoOf(ScalaIrEmitter).dr = function (refined) {
|
|
|
617
618
|
}
|
|
618
619
|
var tmp$ret$2 = firstOrNull_0(destination);
|
|
619
620
|
var updatedStruct = convertToStringCallsToFieldAccess(markMembersAsOverride(ensureNotNull(tmp$ret$2)));
|
|
620
|
-
return new File(Companion_getInstance().
|
|
621
|
+
return new File(Companion_getInstance().f1h(sanitize(this, refined.br_1)), listOf(updatedStruct));
|
|
621
622
|
};
|
|
622
623
|
protoOf(ScalaIrEmitter).jr = function (endpoint) {
|
|
623
624
|
// Inline function 'community.flock.wirespec.ir.core.findElement' call
|
|
624
625
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
625
|
-
var tmp0 = convert_3(endpoint).
|
|
626
|
+
var tmp0 = convert_3(endpoint).u1m();
|
|
626
627
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
627
628
|
var destination = ArrayList_init_$Create$_0();
|
|
628
629
|
var _iterator__ex2g4s = tmp0.t();
|
|
@@ -636,9 +637,9 @@ protoOf(ScalaIrEmitter).jr = function (endpoint) {
|
|
|
636
637
|
var endpointNamespace = ensureNotNull(tmp$ret$2);
|
|
637
638
|
var flattened = flattenNestedStructs(endpointNamespace);
|
|
638
639
|
var body = appendClientServerObjects(injectHandleFunction(flattened), endpoint, isRequestObject(flattened));
|
|
639
|
-
var tmp = sanitizeNames(new File(Companion_getInstance().
|
|
640
|
+
var tmp = sanitizeNames(new File(Companion_getInstance().f1h(sanitize(this, endpoint.ep_1)), listOf(body)), _get_sanitizationConfig__sns434(this));
|
|
640
641
|
// Inline function 'kotlin.takeIf' call
|
|
641
|
-
var this_0 = buildModelImports(endpoint, this.
|
|
642
|
+
var this_0 = buildModelImports(endpoint, this.d1v());
|
|
642
643
|
var tmp_0;
|
|
643
644
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
644
645
|
if (!this_0.r()) {
|
|
@@ -652,7 +653,7 @@ protoOf(ScalaIrEmitter).jr = function (endpoint) {
|
|
|
652
653
|
protoOf(ScalaIrEmitter).xq = function (channel) {
|
|
653
654
|
var tmp = sanitizeNames(convert_4(channel), _get_sanitizationConfig__sns434(this));
|
|
654
655
|
// Inline function 'kotlin.takeIf' call
|
|
655
|
-
var this_0 = buildModelImports(channel, this.
|
|
656
|
+
var this_0 = buildModelImports(channel, this.d1v());
|
|
656
657
|
var tmp_0;
|
|
657
658
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
658
659
|
if (!this_0.r()) {
|
|
@@ -663,25 +664,25 @@ protoOf(ScalaIrEmitter).xq = function (channel) {
|
|
|
663
664
|
var tmp$ret$2 = tmp_0;
|
|
664
665
|
return prependImports(tmp, tmp$ret$2);
|
|
665
666
|
};
|
|
666
|
-
protoOf(ScalaIrEmitter).
|
|
667
|
-
var imports = buildModelImports(endpoint, this.
|
|
668
|
-
var endpointImport = import_0(this.
|
|
667
|
+
protoOf(ScalaIrEmitter).p1u = function (endpoint) {
|
|
668
|
+
var imports = buildModelImports(endpoint, this.d1v());
|
|
669
|
+
var endpointImport = import_0(this.d1v().mr_1 + '.endpoint', endpoint.ep_1.l1());
|
|
669
670
|
var file = addIdentityTypeToCall(sanitizeNames(emitEndpointClient.call(this, endpoint), _get_sanitizationConfig__sns434(this)));
|
|
670
|
-
var subPackageName = plus_1(this.
|
|
671
|
-
var tmp = Companion_getInstance().
|
|
671
|
+
var subPackageName = plus_1(this.d1v(), 'client');
|
|
672
|
+
var tmp = Companion_getInstance().f1h(subPackageName.or() + file.s1m_1.h1h());
|
|
672
673
|
// Inline function 'kotlin.collections.buildList' call
|
|
673
674
|
// Inline function 'kotlin.collections.buildListInternal' call
|
|
674
675
|
// Inline function 'kotlin.apply' call
|
|
675
676
|
var this_0 = ArrayList_init_$Create$_0();
|
|
676
677
|
this_0.x(new Package(subPackageName.mr_1));
|
|
677
|
-
this_0.e1(this.
|
|
678
|
+
this_0.e1(this.t1y_1);
|
|
678
679
|
this_0.e1(imports);
|
|
679
680
|
this_0.x(endpointImport);
|
|
680
|
-
this_0.e1(file.
|
|
681
|
+
this_0.e1(file.t1m_1);
|
|
681
682
|
var tmp$ret$3 = this_0.o5();
|
|
682
683
|
return new File(tmp, tmp$ret$3);
|
|
683
684
|
};
|
|
684
|
-
protoOf(ScalaIrEmitter).
|
|
685
|
+
protoOf(ScalaIrEmitter).o1u = function (endpoints, logger) {
|
|
685
686
|
// Inline function 'kotlin.collections.flatMap' call
|
|
686
687
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
687
688
|
var destination = ArrayList_init_$Create$_0();
|
|
@@ -708,7 +709,7 @@ protoOf(ScalaIrEmitter).n1u = function (endpoints, logger) {
|
|
|
708
709
|
var _iterator__ex2g4s_1 = list_0.t();
|
|
709
710
|
while (_iterator__ex2g4s_1.u()) {
|
|
710
711
|
var item = _iterator__ex2g4s_1.v();
|
|
711
|
-
var tmp$ret$5 = import_0(this.
|
|
712
|
+
var tmp$ret$5 = import_0(this.d1v().mr_1 + '.model', item.ku_1);
|
|
712
713
|
destination_0.x(tmp$ret$5);
|
|
713
714
|
}
|
|
714
715
|
var imports = destination_0;
|
|
@@ -718,7 +719,7 @@ protoOf(ScalaIrEmitter).n1u = function (endpoints, logger) {
|
|
|
718
719
|
var _iterator__ex2g4s_2 = endpoints.t();
|
|
719
720
|
while (_iterator__ex2g4s_2.u()) {
|
|
720
721
|
var item_0 = _iterator__ex2g4s_2.v();
|
|
721
|
-
var tmp$ret$8 = import_0(this.
|
|
722
|
+
var tmp$ret$8 = import_0(this.d1v().mr_1 + '.endpoint', item_0.ep_1.l1());
|
|
722
723
|
destination_1.x(tmp$ret$8);
|
|
723
724
|
}
|
|
724
725
|
var endpointImports = destination_1;
|
|
@@ -728,29 +729,29 @@ protoOf(ScalaIrEmitter).n1u = function (endpoints, logger) {
|
|
|
728
729
|
var _iterator__ex2g4s_3 = endpoints.t();
|
|
729
730
|
while (_iterator__ex2g4s_3.u()) {
|
|
730
731
|
var item_1 = _iterator__ex2g4s_3.v();
|
|
731
|
-
var tmp$ret$11 = import_0(this.
|
|
732
|
+
var tmp$ret$11 = import_0(this.d1v().mr_1 + '.client', item_1.ep_1.l1() + 'Client');
|
|
732
733
|
destination_2.x(tmp$ret$11);
|
|
733
734
|
}
|
|
734
735
|
var clientImports = destination_2;
|
|
735
736
|
var allImports = plus(plus(imports, endpointImports), clientImports);
|
|
736
737
|
var file = addIdentityTypeToCall(sanitizeNames(emitClient.call(this, endpoints, logger), _get_sanitizationConfig__sns434(this)));
|
|
737
|
-
var tmp = Companion_getInstance().
|
|
738
|
+
var tmp = Companion_getInstance().f1h(this.d1v().or() + file.s1m_1.h1h());
|
|
738
739
|
// Inline function 'kotlin.collections.buildList' call
|
|
739
740
|
// Inline function 'kotlin.collections.buildListInternal' call
|
|
740
741
|
// Inline function 'kotlin.apply' call
|
|
741
742
|
var this_0 = ArrayList_init_$Create$_0();
|
|
742
|
-
this_0.x(new Package(this.
|
|
743
|
-
this_0.e1(this.
|
|
743
|
+
this_0.x(new Package(this.d1v().mr_1));
|
|
744
|
+
this_0.e1(this.t1y_1);
|
|
744
745
|
this_0.e1(allImports);
|
|
745
|
-
this_0.e1(file.
|
|
746
|
+
this_0.e1(file.t1m_1);
|
|
746
747
|
var tmp$ret$17 = this_0.o5();
|
|
747
748
|
return new File(tmp, tmp$ret$17);
|
|
748
749
|
};
|
|
749
750
|
function convertToStringCallsToFieldAccess(_this__u8e3s4) {
|
|
750
751
|
// Inline function 'community.flock.wirespec.ir.core.transform' call
|
|
751
752
|
var scope = new TransformScope(_this__u8e3s4);
|
|
752
|
-
scope.
|
|
753
|
-
var tmp = scope.
|
|
753
|
+
scope.f1u(convertToStringCallsToFieldAccess$lambda);
|
|
754
|
+
var tmp = scope.x1t_1;
|
|
754
755
|
return isInterface(tmp, Element) ? tmp : THROW_CCE();
|
|
755
756
|
}
|
|
756
757
|
function appendClientServerObjects(_this__u8e3s4, endpoint, requestIsObject) {
|
|
@@ -759,7 +760,7 @@ function appendClientServerObjects(_this__u8e3s4, endpoint, requestIsObject) {
|
|
|
759
760
|
var pathSegmentsCode = joinToString(endpoint.gp_1, ', ', VOID, VOID, VOID, VOID, appendClientServerObjects$lambda_0);
|
|
760
761
|
var clientObject = raw(trimMargin('\n |object Client extends Wirespec.Client[' + reqType + ', Response[?]] {\n | override val pathTemplate: String = "' + pathTemplate + '"\n | override val method: String = "' + endpoint.fp_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 '));
|
|
761
762
|
var serverObject = raw(trimMargin('\n |object Server extends Wirespec.Server[' + reqType + ', Response[?]] {\n | override val pathTemplate: String = "' + pathTemplate + '"\n | override val method: String = "' + endpoint.fp_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 '));
|
|
762
|
-
return _this__u8e3s4.
|
|
763
|
+
return _this__u8e3s4.c1n(VOID, plus_0(plus_0(_this__u8e3s4.z1m_1, clientObject), serverObject));
|
|
763
764
|
}
|
|
764
765
|
function injectHandleFunction(_this__u8e3s4) {
|
|
765
766
|
// Inline function 'community.flock.wirespec.ir.core.transform' call
|
|
@@ -767,19 +768,19 @@ function injectHandleFunction(_this__u8e3s4) {
|
|
|
767
768
|
// Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
|
|
768
769
|
var tmp = scope;
|
|
769
770
|
// Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
|
|
770
|
-
var this_0 = scope.
|
|
771
|
+
var this_0 = scope.x1t_1;
|
|
771
772
|
// Inline function 'community.flock.wirespec.ir.core.transformer' call
|
|
772
773
|
// Inline function 'kotlin.apply' call
|
|
773
774
|
var this_1 = new TransformerBuilder();
|
|
774
775
|
this_1.c1h(injectHandleFunction$lambda);
|
|
775
776
|
var tmp$ret$2 = this_1.d1h();
|
|
776
|
-
tmp.
|
|
777
|
-
var tmp_0 = scope.
|
|
777
|
+
tmp.x1t_1 = transform(this_0, tmp$ret$2);
|
|
778
|
+
var tmp_0 = scope.x1t_1;
|
|
778
779
|
return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
|
|
779
780
|
}
|
|
780
781
|
function isRequestObject(namespace) {
|
|
781
782
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
782
|
-
var tmp0 = namespace.
|
|
783
|
+
var tmp0 = namespace.z1m_1;
|
|
783
784
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
784
785
|
var destination = ArrayList_init_$Create$_0();
|
|
785
786
|
var _iterator__ex2g4s = tmp0.t();
|
|
@@ -795,7 +796,7 @@ function isRequestObject(namespace) {
|
|
|
795
796
|
var _iterator__ex2g4s_0 = destination.t();
|
|
796
797
|
while (_iterator__ex2g4s_0.u()) {
|
|
797
798
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
798
|
-
if (element_0.
|
|
799
|
+
if (element_0.d1n_1.h1h() === 'Request') {
|
|
799
800
|
tmp$ret$3 = element_0;
|
|
800
801
|
break $l$block;
|
|
801
802
|
}
|
|
@@ -810,7 +811,7 @@ function isRequestObject(namespace) {
|
|
|
810
811
|
tmp = tmp0_elvis_lhs;
|
|
811
812
|
}
|
|
812
813
|
var requestStruct = tmp;
|
|
813
|
-
return requestStruct.
|
|
814
|
+
return requestStruct.f1n_1.a1() === 1 && single(requestStruct.f1n_1).l1q_1.r() || (requestStruct.e1n_1.r() && requestStruct.f1n_1.r());
|
|
814
815
|
}
|
|
815
816
|
function buildModelImports(_this__u8e3s4, packageName) {
|
|
816
817
|
// Inline function 'kotlin.collections.distinctBy' call
|
|
@@ -831,7 +832,7 @@ function buildModelImports(_this__u8e3s4, packageName) {
|
|
|
831
832
|
var _iterator__ex2g4s_0 = list.t();
|
|
832
833
|
while (_iterator__ex2g4s_0.u()) {
|
|
833
834
|
var item = _iterator__ex2g4s_0.v();
|
|
834
|
-
var tmp$ret$2 = import_0(packageName.mr_1 + '.model', item.ku_1);
|
|
835
|
+
var tmp$ret$2 = import_0(packageName.mr_1 + '.model', Companion_getInstance().f1h(item.ku_1).h1h());
|
|
835
836
|
destination.x(tmp$ret$2);
|
|
836
837
|
}
|
|
837
838
|
return destination;
|
|
@@ -842,14 +843,14 @@ function addIdentityTypeToCall(_this__u8e3s4) {
|
|
|
842
843
|
// Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
|
|
843
844
|
var tmp = scope;
|
|
844
845
|
// Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
|
|
845
|
-
var this_0 = scope.
|
|
846
|
+
var this_0 = scope.x1t_1;
|
|
846
847
|
// Inline function 'community.flock.wirespec.ir.core.transformer' call
|
|
847
848
|
// Inline function 'kotlin.apply' call
|
|
848
849
|
var this_1 = new TransformerBuilder();
|
|
849
850
|
this_1.c1h(addIdentityTypeToCall$lambda);
|
|
850
851
|
var tmp$ret$2 = this_1.d1h();
|
|
851
|
-
tmp.
|
|
852
|
-
var tmp_0 = scope.
|
|
852
|
+
tmp.x1t_1 = transform(this_0, tmp$ret$2);
|
|
853
|
+
var tmp_0 = scope.x1t_1;
|
|
853
854
|
return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
|
|
854
855
|
}
|
|
855
856
|
function toScalaTypeName(_this__u8e3s4) {
|
|
@@ -910,25 +911,25 @@ function convertToStringCallsToFieldAccess$lambda(expr, tr) {
|
|
|
910
911
|
var tmp_0;
|
|
911
912
|
var tmp_1;
|
|
912
913
|
if (expr instanceof FunctionCall) {
|
|
913
|
-
tmp_1 = expr.
|
|
914
|
+
tmp_1 = expr.b1m_1.s1l() === 'toString';
|
|
914
915
|
} else {
|
|
915
916
|
tmp_1 = false;
|
|
916
917
|
}
|
|
917
918
|
if (tmp_1) {
|
|
918
|
-
tmp_0 = !(expr.
|
|
919
|
+
tmp_0 = !(expr.z1l_1 == null);
|
|
919
920
|
} else {
|
|
920
921
|
tmp_0 = false;
|
|
921
922
|
}
|
|
922
923
|
if (tmp_0) {
|
|
923
|
-
var tmp0_safe_receiver = expr.
|
|
924
|
+
var tmp0_safe_receiver = expr.z1l_1;
|
|
924
925
|
var tmp_2;
|
|
925
926
|
if (tmp0_safe_receiver == null) {
|
|
926
927
|
tmp_2 = null;
|
|
927
928
|
} else {
|
|
928
929
|
// Inline function 'kotlin.let' call
|
|
929
|
-
tmp_2 = tr.
|
|
930
|
+
tmp_2 = tr.s1t(tmp0_safe_receiver);
|
|
930
931
|
}
|
|
931
|
-
tmp = new FieldCall(tmp_2, Companion_getInstance().
|
|
932
|
+
tmp = new FieldCall(tmp_2, Companion_getInstance().f1h('toString'));
|
|
932
933
|
} else {
|
|
933
934
|
tmp = transformChildren_1(expr, tr);
|
|
934
935
|
}
|
|
@@ -965,13 +966,13 @@ function injectHandleFunction$lambda(element, transformer) {
|
|
|
965
966
|
if (element instanceof Interface) {
|
|
966
967
|
var tmp$ret$0;
|
|
967
968
|
$l$block: {
|
|
968
|
-
if (!element.
|
|
969
|
+
if (!element.k1n_1.equals(Companion_getInstance().f1h('Handler')) && !element.k1n_1.equals(Companion_getInstance().f1h('Call'))) {
|
|
969
970
|
tmp$ret$0 = element;
|
|
970
971
|
break $l$block;
|
|
971
972
|
}
|
|
972
|
-
var tmp0_typeParameters = listOf(new TypeParameter(
|
|
973
|
+
var tmp0_typeParameters = listOf(new TypeParameter(Custom_init_$Create$('F[_]')));
|
|
973
974
|
// Inline function 'kotlin.collections.map' call
|
|
974
|
-
var this_0 = element.
|
|
975
|
+
var this_0 = element.l1n_1;
|
|
975
976
|
// Inline function 'kotlin.collections.mapTo' call
|
|
976
977
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
977
978
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -982,22 +983,22 @@ function injectHandleFunction$lambda(element, transformer) {
|
|
|
982
983
|
if (tmp0_safe_receiver == null) {
|
|
983
984
|
tmp_0 = null;
|
|
984
985
|
} else {
|
|
985
|
-
var tmp1_safe_receiver = item.
|
|
986
|
+
var tmp1_safe_receiver = item.w1j_1;
|
|
986
987
|
var tmp_1;
|
|
987
988
|
if (tmp1_safe_receiver == null) {
|
|
988
989
|
tmp_1 = null;
|
|
989
990
|
} else {
|
|
990
991
|
// Inline function 'kotlin.let' call
|
|
991
|
-
tmp_1 =
|
|
992
|
+
tmp_1 = Custom_init_$Create$('F', listOf(tmp1_safe_receiver));
|
|
992
993
|
}
|
|
993
994
|
var tmp3_returnType = tmp_1;
|
|
994
|
-
tmp_0 = tmp0_safe_receiver.
|
|
995
|
+
tmp_0 = tmp0_safe_receiver.b1k(VOID, VOID, VOID, tmp3_returnType, VOID, false);
|
|
995
996
|
}
|
|
996
997
|
var tmp4_elvis_lhs = tmp_0;
|
|
997
998
|
var tmp$ret$3 = tmp4_elvis_lhs == null ? item : tmp4_elvis_lhs;
|
|
998
999
|
destination.x(tmp$ret$3);
|
|
999
1000
|
}
|
|
1000
|
-
tmp$ret$0 = element.
|
|
1001
|
+
tmp$ret$0 = element.r1n(VOID, destination, VOID, VOID, tmp0_typeParameters);
|
|
1001
1002
|
}
|
|
1002
1003
|
tmp = tmp$ret$0;
|
|
1003
1004
|
} else {
|
|
@@ -1010,7 +1011,7 @@ function addIdentityTypeToCall$lambda(element, transformer) {
|
|
|
1010
1011
|
var tmp;
|
|
1011
1012
|
if (element instanceof Struct) {
|
|
1012
1013
|
// Inline function 'kotlin.collections.map' call
|
|
1013
|
-
var this_0 = element.
|
|
1014
|
+
var this_0 = element.g1n_1;
|
|
1014
1015
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1015
1016
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
1016
1017
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -1023,7 +1024,7 @@ function addIdentityTypeToCall$lambda(element, transformer) {
|
|
|
1023
1024
|
} else {
|
|
1024
1025
|
// Inline function 'kotlin.takeIf' call
|
|
1025
1026
|
var tmp_1;
|
|
1026
|
-
if (endsWith(tmp0_safe_receiver.
|
|
1027
|
+
if (endsWith(tmp0_safe_receiver.q1h_1.h1h(), '.Call')) {
|
|
1027
1028
|
tmp_1 = tmp0_safe_receiver;
|
|
1028
1029
|
} else {
|
|
1029
1030
|
tmp_1 = null;
|
|
@@ -1031,11 +1032,11 @@ function addIdentityTypeToCall$lambda(element, transformer) {
|
|
|
1031
1032
|
tmp_0 = tmp_1;
|
|
1032
1033
|
}
|
|
1033
1034
|
var tmp1_safe_receiver = tmp_0;
|
|
1034
|
-
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
1035
|
+
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.n1m(VOID, listOf(Custom_init_$Create$('[A] =>> A')));
|
|
1035
1036
|
var tmp$ret$2 = tmp2_elvis_lhs == null ? item : tmp2_elvis_lhs;
|
|
1036
1037
|
destination.x(tmp$ret$2);
|
|
1037
1038
|
}
|
|
1038
|
-
tmp = element.
|
|
1039
|
+
tmp = element.j1n(VOID, VOID, VOID, destination);
|
|
1039
1040
|
} else {
|
|
1040
1041
|
tmp = element;
|
|
1041
1042
|
}
|
|
@@ -1044,7 +1045,7 @@ function addIdentityTypeToCall$lambda(element, transformer) {
|
|
|
1044
1045
|
}
|
|
1045
1046
|
//region block: post-declaration
|
|
1046
1047
|
protoOf(ScalaIrEmitter).on = emit_0;
|
|
1047
|
-
protoOf(ScalaIrEmitter).
|
|
1048
|
+
protoOf(ScalaIrEmitter).m1u = emit_1;
|
|
1048
1049
|
//endregion
|
|
1049
1050
|
//region block: exports
|
|
1050
1051
|
export {
|