@flock/wirespec 0.18.6 → 0.19.0-RC.3
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/Kotlin-DateTime-library-kotlinx-datetime.mjs +4 -0
- package/Kotlin-DateTime-library-kotlinx-datetime.mjs.map +1 -0
- package/arrow-arrow-atomic.mjs +12 -12
- package/arrow-arrow-core.mjs +154 -154
- package/clikt-clikt-mordant.mjs +80 -80
- package/clikt-clikt-mordant.mjs.map +1 -1
- package/clikt-clikt.mjs +1549 -1549
- package/clikt-clikt.mjs.map +1 -1
- package/colormath-root-colormath.mjs +441 -441
- package/kotest-kotest-assertions-kotest-assertions-core.mjs +4 -0
- package/kotest-kotest-assertions-kotest-assertions-core.mjs.map +1 -0
- package/kotest-kotest-assertions-kotest-assertions-shared.mjs +4 -0
- package/kotest-kotest-assertions-kotest-assertions-shared.mjs.map +1 -0
- package/kotest-kotest-common.mjs +56 -0
- package/kotest-kotest-common.mjs.map +1 -0
- package/kotest-kotest-framework-kotest-framework-engine.mjs +4 -0
- package/kotest-kotest-framework-kotest-framework-engine.mjs.map +1 -0
- package/kotest-kotest-property-kotest-property-datetime.mjs +4 -0
- package/kotest-kotest-property-kotest-property-datetime.mjs.map +1 -0
- package/kotest-kotest-property.mjs +2400 -0
- package/kotest-kotest-property.mjs.map +1 -0
- package/kotest-property-arbs.mjs +4 -0
- package/kotest-property-arbs.mjs.map +1 -0
- package/kotlin-kotlin-stdlib.mjs +5198 -2276
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +4933 -4933
- package/kotlin-openapi-bindings.mjs.map +1 -1
- package/kotlin-rgxgen.mjs +1802 -1802
- package/kotlinx-coroutines-test.mjs +4 -0
- package/kotlinx-coroutines-test.mjs.map +1 -0
- package/kotlinx-io-kotlinx-io-core.mjs +432 -432
- package/kotlinx-io-kotlinx-io-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1993 -1959
- package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1388 -1388
- package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
- package/mordant-mordant.mjs +1321 -1321
- package/package.json +9 -2
- package/wirespec-generator.d.ts +52 -0
- package/wirespec-generator.mjs +9 -0
- package/wirespec-src-compiler-core.mjs +1538 -1537
- package/wirespec-src-compiler-emitters-java.mjs +451 -389
- package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-kotlin.mjs +364 -301
- package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-python.mjs +556 -359
- package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-rust.mjs +758 -458
- package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-scala.mjs +243 -165
- package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-typescript.mjs +706 -420
- package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-wirespec.mjs +80 -80
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-ir.mjs +6639 -4861
- package/wirespec-src-compiler-ir.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +418 -418
- package/wirespec-src-compiler-lib.mjs.map +1 -1
- package/wirespec-src-converter-avro.mjs +509 -509
- package/wirespec-src-converter-avro.mjs.map +1 -1
- package/wirespec-src-converter-openapi.mjs +753 -753
- package/wirespec-src-converter-openapi.mjs.map +1 -1
- package/wirespec-src-integration-kotest.mjs +1455 -0
- package/wirespec-src-integration-kotest.mjs.map +1 -0
- package/wirespec-src-plugin-arguments.mjs +182 -182
- package/wirespec-src-plugin-arguments.mjs.map +1 -1
- package/wirespec-src-plugin-cli.mjs +106 -106
- package/wirespec-src-plugin-npm.d.mts +11 -0
- package/wirespec-src-plugin-npm.mjs +41 -41
- package/wirespec-src-plugin-npm.mjs.map +1 -1
- package/wirespec-src-tools-generator.mjs +53 -53
- package/wirespec-src-tools-generator.mjs.map +1 -1
- package/xmlutil-core.mjs +4 -0
- package/xmlutil-core.mjs.map +1 -0
- package/xmlutil-serialization.mjs +4 -0
- package/xmlutil-serialization.mjs.map +1 -0
|
@@ -28,10 +28,18 @@ import {
|
|
|
28
28
|
plus310ted5e4i90h as plus,
|
|
29
29
|
listOf1jh22dvmctj1r as listOf_0,
|
|
30
30
|
addAll1k27qatfgp3k5 as addAll,
|
|
31
|
+
startsWith26w8qjqapeeq6 as startsWith,
|
|
32
|
+
substringBefore3n7kj60w69hju as substringBefore,
|
|
31
33
|
lazy2hsh8ze7j6ikd as lazy,
|
|
32
34
|
plus20p0vtfmu0596 as plus_0,
|
|
33
35
|
THROW_CCE2g6jy02ryeudk as THROW_CCE,
|
|
34
36
|
isInterface3d6p8outrmvmk as isInterface,
|
|
37
|
+
asSequence2phdjljfh9jhx as asSequence,
|
|
38
|
+
filterNot56uwv8hfomaa as filterNot,
|
|
39
|
+
mapsbvh18eqox7a as map,
|
|
40
|
+
distinct17vua5ffe1cfv as distinct,
|
|
41
|
+
toListx6x8nvfmvvht as toList,
|
|
42
|
+
endsWith3cq61xxngobwh as endsWith,
|
|
35
43
|
firstOrNull1982767dljvdy as firstOrNull_0,
|
|
36
44
|
ensureNotNull1e947j3ixpazm as ensureNotNull,
|
|
37
45
|
HashSet_init_$Create$33p49hmosnvr4 as HashSet_init_$Create$,
|
|
@@ -40,7 +48,6 @@ import {
|
|
|
40
48
|
singleo93pzdgfc557 as single,
|
|
41
49
|
noWhenBranchMatchedException2a6r7ubxgky5j as noWhenBranchMatchedException,
|
|
42
50
|
equals2au1ep9vhcato as equals,
|
|
43
|
-
endsWith3cq61xxngobwh as endsWith,
|
|
44
51
|
} from './kotlin-kotlin-stdlib.mjs';
|
|
45
52
|
import {
|
|
46
53
|
Companion_instancebcq57hoyp8c2 as Companion_instance,
|
|
@@ -49,6 +56,10 @@ import {
|
|
|
49
56
|
Companion_instance1a2xqc448tlhh as Companion_instance_0,
|
|
50
57
|
Companion_instance2ryk3262e300f as Companion_instance_1,
|
|
51
58
|
FileExtension_Scala_getInstancedd4dbv51x4if as FileExtension_Scala_getInstance,
|
|
59
|
+
Unionccsavx6nrdr2 as Union,
|
|
60
|
+
Refined1lkzc0dg6wey7 as Refined,
|
|
61
|
+
Enum3l2iuc342kle6 as Enum,
|
|
62
|
+
Type12n1gx16iqtcu as Type,
|
|
52
63
|
plus14o24vdaiongg as plus_1,
|
|
53
64
|
importReferencesy4xv7r53sjjs as importReferences,
|
|
54
65
|
Unit2z95clvxm08vr as Unit,
|
|
@@ -73,7 +84,7 @@ import {
|
|
|
73
84
|
sanitizeFieldName1ptgy1kxy8u2m as sanitizeFieldName,
|
|
74
85
|
ConstructorStatement1x4n4sr59iy4n as ConstructorStatement,
|
|
75
86
|
SanitizationConfig11mmn3p2c03c1 as SanitizationConfig,
|
|
76
|
-
|
|
87
|
+
Custom2si7lto3wompr as Custom_0,
|
|
77
88
|
String_instance3uxvo48ki208u as String_instance,
|
|
78
89
|
Reflect_instance3i17lxiopj78t as Reflect_instance,
|
|
79
90
|
Package2tniq694j1763 as Package,
|
|
@@ -98,8 +109,14 @@ import {
|
|
|
98
109
|
emitn3eihixilqyh as emit,
|
|
99
110
|
prependImports32gcj3yb8voha as prependImports,
|
|
100
111
|
placeInPackage1ffljbk9me4ug as placeInPackage,
|
|
101
|
-
|
|
112
|
+
convertToGenerator2wzjrmaavxhph as convertToGenerator,
|
|
113
|
+
convertToGeneratorkggw47cqose7 as convertToGenerator_0,
|
|
114
|
+
convertToGenerator3rjr3azp4vdsx as convertToGenerator_1,
|
|
115
|
+
convertToGenerator2msmr3acdd5nx as convertToGenerator_2,
|
|
102
116
|
sanitizeNames2wqmyf8vafp9x as sanitizeNames,
|
|
117
|
+
collectCustomTypeNames373f3lwl9sqd5 as collectCustomTypeNames,
|
|
118
|
+
placeInPackagena6oqbi45fz6 as placeInPackage_0,
|
|
119
|
+
convertWithValidation3ar3nbcqsbkpn as convertWithValidation,
|
|
103
120
|
ensureEmptyStructHasConstructorfl467argh9dd as ensureEmptyStructHasConstructor,
|
|
104
121
|
convert11ert2po54h1y as convert_0,
|
|
105
122
|
injectEnumLabelFieldyfohidz6c88i as injectEnumLabelField,
|
|
@@ -120,7 +137,6 @@ import {
|
|
|
120
137
|
FieldCall1iz7z2fx2xo4p as FieldCall,
|
|
121
138
|
TypeParameter1x56bawg1pg87 as TypeParameter,
|
|
122
139
|
Function21cuq8qizkin7 as Function,
|
|
123
|
-
Custom2si7lto3wompr as Custom_0,
|
|
124
140
|
} from './wirespec-src-compiler-ir.mjs';
|
|
125
141
|
//region block: imports
|
|
126
142
|
//endregion
|
|
@@ -129,15 +145,15 @@ initMetadataForCompanion(Companion);
|
|
|
129
145
|
initMetadataForClass(ScalaIrEmitter, 'ScalaIrEmitter', ScalaIrEmitter, VOID, [IrEmitter]);
|
|
130
146
|
//endregion
|
|
131
147
|
function _get_sanitizationConfig__sns434($this) {
|
|
132
|
-
var tmp0 = $this.
|
|
148
|
+
var tmp0 = $this.n23_1;
|
|
133
149
|
var tmp = KProperty1;
|
|
134
150
|
// Inline function 'kotlin.getValue' call
|
|
135
151
|
getPropertyCallableRef('sanitizationConfig', 1, tmp, ScalaIrEmitter$_get_sanitizationConfig_$ref_ydarb0(), null);
|
|
136
|
-
return tmp0.
|
|
152
|
+
return tmp0.m1();
|
|
137
153
|
}
|
|
138
154
|
function sanitize($this, _this__u8e3s4) {
|
|
139
155
|
// Inline function 'kotlin.collections.mapIndexed' call
|
|
140
|
-
var this_0 = split(_this__u8e3s4.
|
|
156
|
+
var this_0 = split(_this__u8e3s4.m1(), ['.', ' ']);
|
|
141
157
|
// Inline function 'kotlin.collections.mapIndexedTo' call
|
|
142
158
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
143
159
|
var index = 0;
|
|
@@ -146,7 +162,7 @@ function sanitize($this, _this__u8e3s4) {
|
|
|
146
162
|
var item = _iterator__ex2g4s.v();
|
|
147
163
|
var _unary__edvuaz = index;
|
|
148
164
|
index = _unary__edvuaz + 1 | 0;
|
|
149
|
-
var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance.
|
|
165
|
+
var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance.mu(item) : item;
|
|
150
166
|
destination.x(tmp$ret$0);
|
|
151
167
|
}
|
|
152
168
|
// Inline function 'kotlin.text.filter' call
|
|
@@ -194,7 +210,7 @@ function sanitizeFirstIsDigit($this, _this__u8e3s4) {
|
|
|
194
210
|
return tmp;
|
|
195
211
|
}
|
|
196
212
|
function sanitizeKeywords($this, _this__u8e3s4) {
|
|
197
|
-
return Companion_getInstance_0().
|
|
213
|
+
return Companion_getInstance_0().o23_1.v1(_this__u8e3s4) ? addBackticks(_this__u8e3s4) : _this__u8e3s4;
|
|
198
214
|
}
|
|
199
215
|
function sanitizeSymbol($this, _this__u8e3s4) {
|
|
200
216
|
// Inline function 'kotlin.collections.mapIndexed' call
|
|
@@ -207,7 +223,7 @@ function sanitizeSymbol($this, _this__u8e3s4) {
|
|
|
207
223
|
var item = _iterator__ex2g4s.v();
|
|
208
224
|
var _unary__edvuaz = index;
|
|
209
225
|
index = _unary__edvuaz + 1 | 0;
|
|
210
|
-
var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance.
|
|
226
|
+
var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance.mu(item) : item;
|
|
211
227
|
destination.x(tmp$ret$0);
|
|
212
228
|
}
|
|
213
229
|
// Inline function 'kotlin.text.filter' call
|
|
@@ -234,7 +250,7 @@ function sanitizeEnum($this, _this__u8e3s4) {
|
|
|
234
250
|
}
|
|
235
251
|
function Companion() {
|
|
236
252
|
Companion_instance_2 = this;
|
|
237
|
-
this.
|
|
253
|
+
this.o23_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']);
|
|
238
254
|
}
|
|
239
255
|
var Companion_instance_2;
|
|
240
256
|
function Companion_getInstance_0() {
|
|
@@ -247,13 +263,13 @@ function ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda(it) {
|
|
|
247
263
|
}
|
|
248
264
|
function ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda_0(this$0) {
|
|
249
265
|
return function (name) {
|
|
250
|
-
var sanitized = name.
|
|
266
|
+
var sanitized = name.s1k_1.a1() > 1 ? name.v1p() : sanitizeSymbol(this$0, name.p1m());
|
|
251
267
|
return new Name(listOf(sanitized));
|
|
252
268
|
};
|
|
253
269
|
}
|
|
254
270
|
function ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda_1(this$0) {
|
|
255
271
|
return function (name) {
|
|
256
|
-
return new Name(listOf(sanitizeSymbol(this$0, name.
|
|
272
|
+
return new Name(listOf(sanitizeSymbol(this$0, name.v1p())));
|
|
257
273
|
};
|
|
258
274
|
}
|
|
259
275
|
function ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda_2(this$0) {
|
|
@@ -266,28 +282,28 @@ function ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
|
|
|
266
282
|
var tmp;
|
|
267
283
|
var tmp_0;
|
|
268
284
|
if (stmt instanceof FunctionCall) {
|
|
269
|
-
tmp_0 = stmt.
|
|
285
|
+
tmp_0 = stmt.f1q_1.p1m() === 'validate';
|
|
270
286
|
} else {
|
|
271
287
|
tmp_0 = false;
|
|
272
288
|
}
|
|
273
289
|
if (tmp_0) {
|
|
274
|
-
tmp = transformChildren(stmt.
|
|
290
|
+
tmp = transformChildren(stmt.j1q(VOID, emptyList()), tr);
|
|
275
291
|
} else {
|
|
276
292
|
if (stmt instanceof ConstructorStatement) {
|
|
277
|
-
var tmp_1 = tr.
|
|
293
|
+
var tmp_1 = tr.d1y(stmt.x1q_1);
|
|
278
294
|
// Inline function 'kotlin.collections.map' call
|
|
279
|
-
var this_0 = stmt.
|
|
295
|
+
var this_0 = stmt.y1q_1;
|
|
280
296
|
// Inline function 'kotlin.collections.mapTo' call
|
|
281
297
|
var destination = ArrayList_init_$Create$(this_0.a1());
|
|
282
298
|
// Inline function 'kotlin.collections.iterator' call
|
|
283
|
-
var _iterator__ex2g4s = this_0.
|
|
299
|
+
var _iterator__ex2g4s = this_0.k1().t();
|
|
284
300
|
while (_iterator__ex2g4s.u()) {
|
|
285
301
|
var item = _iterator__ex2g4s.v();
|
|
286
302
|
// Inline function 'kotlin.collections.component1' call
|
|
287
|
-
var name = item.
|
|
303
|
+
var name = item.l1();
|
|
288
304
|
// Inline function 'kotlin.collections.component2' call
|
|
289
|
-
var expr = item.
|
|
290
|
-
var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), name), tr.
|
|
305
|
+
var expr = item.m1();
|
|
306
|
+
var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), name), tr.g1y(expr));
|
|
291
307
|
destination.x(tmp$ret$3);
|
|
292
308
|
}
|
|
293
309
|
tmp = new ConstructorStatement(tmp_1, toMap(destination));
|
|
@@ -300,7 +316,7 @@ function ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
|
|
|
300
316
|
}
|
|
301
317
|
function ScalaIrEmitter$sanitizationConfig$delegate$lambda(this$0) {
|
|
302
318
|
return function () {
|
|
303
|
-
var tmp = Companion_getInstance_0().
|
|
319
|
+
var tmp = Companion_getInstance_0().o23_1;
|
|
304
320
|
var tmp_0 = ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda;
|
|
305
321
|
var tmp_1 = ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda_0(this$0);
|
|
306
322
|
var tmp_2 = ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda_1(this$0);
|
|
@@ -314,21 +330,21 @@ function ScalaIrEmitter$_get_sanitizationConfig_$ref_ydarb0() {
|
|
|
314
330
|
};
|
|
315
331
|
}
|
|
316
332
|
function ScalaIrEmitter$emitShared$lambda($this$struct) {
|
|
317
|
-
$this$struct.
|
|
318
|
-
$this$struct.
|
|
333
|
+
$this$struct.a1o(new Custom_0('PathSegment'));
|
|
334
|
+
$this$struct.v1n('value', String_instance);
|
|
319
335
|
return Unit_instance;
|
|
320
336
|
}
|
|
321
337
|
function ScalaIrEmitter$emitShared$lambda_0($this$struct) {
|
|
322
|
-
$this$struct.
|
|
323
|
-
$this$struct.
|
|
324
|
-
$this$struct.
|
|
338
|
+
$this$struct.a1o(new Custom_0('PathSegment'));
|
|
339
|
+
$this$struct.v1n('name', String_instance);
|
|
340
|
+
$this$struct.v1n('type', Reflect_instance);
|
|
325
341
|
return Unit_instance;
|
|
326
342
|
}
|
|
327
343
|
function ScalaIrEmitter$emitShared$lambda_1(element, transformer) {
|
|
328
344
|
var tmp;
|
|
329
345
|
if (element instanceof File) {
|
|
330
346
|
// Inline function 'kotlin.collections.partition' call
|
|
331
|
-
var this_0 = element.
|
|
347
|
+
var this_0 = element.b1r_1;
|
|
332
348
|
var first = ArrayList_init_$Create$_0();
|
|
333
349
|
var second = ArrayList_init_$Create$_0();
|
|
334
350
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -341,9 +357,9 @@ function ScalaIrEmitter$emitShared$lambda_1(element, transformer) {
|
|
|
341
357
|
}
|
|
342
358
|
}
|
|
343
359
|
var _destruct__k2r9zo = new Pair(first, second);
|
|
344
|
-
var packageElements = _destruct__k2r9zo.
|
|
345
|
-
var rest = _destruct__k2r9zo.
|
|
346
|
-
tmp = element.
|
|
360
|
+
var packageElements = _destruct__k2r9zo.kf();
|
|
361
|
+
var rest = _destruct__k2r9zo.lf();
|
|
362
|
+
tmp = element.e1r(VOID, plus(packageElements, rest));
|
|
347
363
|
} else {
|
|
348
364
|
tmp = element;
|
|
349
365
|
}
|
|
@@ -355,12 +371,12 @@ function ScalaIrEmitter$emitShared$lambda_2(element, transformer) {
|
|
|
355
371
|
if (element instanceof Namespace) {
|
|
356
372
|
var tmp$ret$0;
|
|
357
373
|
$l$block: {
|
|
358
|
-
if (!element.
|
|
374
|
+
if (!element.g1r_1.equals(Companion_getInstance().u1k('Wirespec'))) {
|
|
359
375
|
tmp$ret$0 = element;
|
|
360
376
|
break $l$block;
|
|
361
377
|
}
|
|
362
378
|
// Inline function 'kotlin.collections.flatMap' call
|
|
363
|
-
var tmp0 = element.
|
|
379
|
+
var tmp0 = element.h1r_1;
|
|
364
380
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
365
381
|
var destination = ArrayList_init_$Create$_0();
|
|
366
382
|
var _iterator__ex2g4s = tmp0.t();
|
|
@@ -372,14 +388,14 @@ function ScalaIrEmitter$emitShared$lambda_2(element, transformer) {
|
|
|
372
388
|
if (!(element_0 instanceof Interface)) {
|
|
373
389
|
tmp_0 = true;
|
|
374
390
|
} else {
|
|
375
|
-
tmp_0 = !setOf(['Request', 'Response']).
|
|
391
|
+
tmp_0 = !setOf(['Request', 'Response']).v1(element_0.t1r_1.b1q());
|
|
376
392
|
}
|
|
377
393
|
if (tmp_0) {
|
|
378
394
|
tmp$ret$1 = listOf(element_0);
|
|
379
395
|
break $l$block_2;
|
|
380
396
|
}
|
|
381
397
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
382
|
-
var tmp0_0 = element_0.
|
|
398
|
+
var tmp0_0 = element_0.u1r_1;
|
|
383
399
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
384
400
|
var destination_0 = ArrayList_init_$Create$_0();
|
|
385
401
|
var _iterator__ex2g4s_0 = tmp0_0.t();
|
|
@@ -395,7 +411,7 @@ function ScalaIrEmitter$emitShared$lambda_2(element, transformer) {
|
|
|
395
411
|
var _iterator__ex2g4s_1 = destination_0.t();
|
|
396
412
|
while (_iterator__ex2g4s_1.u()) {
|
|
397
413
|
var element_2 = _iterator__ex2g4s_1.v();
|
|
398
|
-
if (element_2.
|
|
414
|
+
if (element_2.t1r_1.b1q() === 'Headers') {
|
|
399
415
|
tmp$ret$5 = element_2;
|
|
400
416
|
break $l$block_1;
|
|
401
417
|
}
|
|
@@ -411,9 +427,9 @@ function ScalaIrEmitter$emitShared$lambda_2(element, transformer) {
|
|
|
411
427
|
tmp_1 = tmp0_elvis_lhs;
|
|
412
428
|
}
|
|
413
429
|
var nestedHeaders = tmp_1;
|
|
414
|
-
var tmp_2 = new Namespace(element_0.
|
|
430
|
+
var tmp_2 = new Namespace(element_0.t1r_1, listOf(nestedHeaders));
|
|
415
431
|
// Inline function 'kotlin.collections.filter' call
|
|
416
|
-
var tmp0_1 = element_0.
|
|
432
|
+
var tmp0_1 = element_0.u1r_1;
|
|
417
433
|
// Inline function 'kotlin.collections.filterTo' call
|
|
418
434
|
var destination_1 = ArrayList_init_$Create$_0();
|
|
419
435
|
var _iterator__ex2g4s_2 = tmp0_1.t();
|
|
@@ -421,7 +437,7 @@ function ScalaIrEmitter$emitShared$lambda_2(element, transformer) {
|
|
|
421
437
|
var element_3 = _iterator__ex2g4s_2.v();
|
|
422
438
|
var tmp_3;
|
|
423
439
|
if (element_3 instanceof Interface) {
|
|
424
|
-
tmp_3 = element_3.
|
|
440
|
+
tmp_3 = element_3.t1r_1.b1q() === 'Headers';
|
|
425
441
|
} else {
|
|
426
442
|
tmp_3 = false;
|
|
427
443
|
}
|
|
@@ -431,28 +447,28 @@ function ScalaIrEmitter$emitShared$lambda_2(element, transformer) {
|
|
|
431
447
|
}
|
|
432
448
|
var tmp_4 = destination_1;
|
|
433
449
|
// Inline function 'kotlin.collections.map' call
|
|
434
|
-
var this_0 = element_0.
|
|
450
|
+
var this_0 = element_0.y1r_1;
|
|
435
451
|
// Inline function 'kotlin.collections.mapTo' call
|
|
436
452
|
var destination_2 = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
437
453
|
var _iterator__ex2g4s_3 = this_0.t();
|
|
438
454
|
while (_iterator__ex2g4s_3.u()) {
|
|
439
455
|
var item = _iterator__ex2g4s_3.v();
|
|
440
456
|
var tmp_5;
|
|
441
|
-
if (item.
|
|
442
|
-
tmp_5 = item.
|
|
457
|
+
if (item.h1t_1.p1m() === 'headers') {
|
|
458
|
+
tmp_5 = item.l1t(VOID, new Custom_0(element_0.t1r_1.b1q() + '.Headers'));
|
|
443
459
|
} else {
|
|
444
460
|
tmp_5 = item;
|
|
445
461
|
}
|
|
446
462
|
var tmp$ret$9 = tmp_5;
|
|
447
463
|
destination_2.x(tmp$ret$9);
|
|
448
464
|
}
|
|
449
|
-
tmp$ret$1 = listOf_0([tmp_2, element_0.
|
|
465
|
+
tmp$ret$1 = listOf_0([tmp_2, element_0.a1s(VOID, tmp_4, VOID, VOID, VOID, destination_2)]);
|
|
450
466
|
}
|
|
451
467
|
var list = tmp$ret$1;
|
|
452
468
|
addAll(destination, list);
|
|
453
469
|
}
|
|
454
470
|
var newElements = destination;
|
|
455
|
-
tmp$ret$0 = element.
|
|
471
|
+
tmp$ret$0 = element.k1r(VOID, newElements);
|
|
456
472
|
}
|
|
457
473
|
tmp = tmp$ret$0;
|
|
458
474
|
} else {
|
|
@@ -465,11 +481,11 @@ function ScalaIrEmitter$emitShared$lambda_3($clientServer) {
|
|
|
465
481
|
return function (element, transformer) {
|
|
466
482
|
var tmp;
|
|
467
483
|
if (element instanceof Namespace) {
|
|
468
|
-
var injected = element.
|
|
484
|
+
var injected = element.g1r_1.equals(Companion_getInstance().u1k('Wirespec')) ? $clientServer : emptyList();
|
|
469
485
|
var tmp_0;
|
|
470
486
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
471
487
|
if (!injected.r()) {
|
|
472
|
-
tmp_0 = withElements(element, plus(element.
|
|
488
|
+
tmp_0 = withElements(element, plus(element.c1r(), injected));
|
|
473
489
|
} else {
|
|
474
490
|
tmp_0 = element;
|
|
475
491
|
}
|
|
@@ -481,6 +497,17 @@ function ScalaIrEmitter$emitShared$lambda_3($clientServer) {
|
|
|
481
497
|
return transformChildren_0(transformed, transformer);
|
|
482
498
|
};
|
|
483
499
|
}
|
|
500
|
+
function ScalaIrEmitter$emitGenerator$lambda(it) {
|
|
501
|
+
return startsWith(it, 'Wirespec.') || it === 'Wirespec';
|
|
502
|
+
}
|
|
503
|
+
function ScalaIrEmitter$emitGenerator$lambda_0($generatorOwnName) {
|
|
504
|
+
return function (it) {
|
|
505
|
+
return it === $generatorOwnName;
|
|
506
|
+
};
|
|
507
|
+
}
|
|
508
|
+
function ScalaIrEmitter$emitGenerator$lambda_1(it) {
|
|
509
|
+
return substringBefore(it, _Char___init__impl__6a9atx(60));
|
|
510
|
+
}
|
|
484
511
|
function ScalaIrEmitter$emit$lambda(this$0) {
|
|
485
512
|
return function (it) {
|
|
486
513
|
return sanitizeEnum(this$0, it);
|
|
@@ -488,27 +515,30 @@ function ScalaIrEmitter$emit$lambda(this$0) {
|
|
|
488
515
|
}
|
|
489
516
|
function ScalaIrEmitter(packageName, emitShared) {
|
|
490
517
|
Companion_getInstance_0();
|
|
491
|
-
packageName = packageName === VOID ? Companion_instance_0.
|
|
492
|
-
emitShared = emitShared === VOID ? Companion_instance_1.
|
|
493
|
-
this.
|
|
494
|
-
this.
|
|
495
|
-
this.
|
|
496
|
-
this.
|
|
497
|
-
this.
|
|
518
|
+
packageName = packageName === VOID ? Companion_instance_0.jv('community.flock.wirespec.generated') : packageName;
|
|
519
|
+
emitShared = emitShared === VOID ? Companion_instance_1.es() : emitShared;
|
|
520
|
+
this.i23_1 = packageName;
|
|
521
|
+
this.j23_1 = emitShared;
|
|
522
|
+
this.k23_1 = ScalaGenerator_getInstance();
|
|
523
|
+
this.l23_1 = FileExtension_Scala_getInstance();
|
|
524
|
+
this.m23_1 = listOf_0([import_0('community.flock.wirespec.scala', 'Wirespec'), import_0('scala.reflect', 'ClassTag')]);
|
|
498
525
|
var tmp = this;
|
|
499
|
-
tmp.
|
|
526
|
+
tmp.n23_1 = lazy(ScalaIrEmitter$sanitizationConfig$delegate$lambda(this));
|
|
500
527
|
}
|
|
501
|
-
protoOf(ScalaIrEmitter).
|
|
502
|
-
return this.
|
|
528
|
+
protoOf(ScalaIrEmitter).v1z = function () {
|
|
529
|
+
return this.i23_1;
|
|
503
530
|
};
|
|
504
|
-
protoOf(ScalaIrEmitter).
|
|
505
|
-
return this.
|
|
531
|
+
protoOf(ScalaIrEmitter).y1y = function () {
|
|
532
|
+
return this.k23_1;
|
|
506
533
|
};
|
|
507
|
-
protoOf(ScalaIrEmitter).
|
|
508
|
-
return this.
|
|
534
|
+
protoOf(ScalaIrEmitter).cu = function () {
|
|
535
|
+
return this.l23_1;
|
|
509
536
|
};
|
|
510
|
-
protoOf(ScalaIrEmitter).
|
|
511
|
-
|
|
537
|
+
protoOf(ScalaIrEmitter).d1z = function (allFiles) {
|
|
538
|
+
ScalaGenerator_getInstance().k1z(allFiles);
|
|
539
|
+
};
|
|
540
|
+
protoOf(ScalaIrEmitter).b1z = function () {
|
|
541
|
+
var packageName = Companion_instance_0.jv('community.flock.wirespec.scala');
|
|
512
542
|
var tmp = interface_0('PathSegment', true);
|
|
513
543
|
var tmp_0 = struct('Literal', ScalaIrEmitter$emitShared$lambda);
|
|
514
544
|
var pathSegmentTypes = listOf_0([tmp, tmp_0, struct('Param', ScalaIrEmitter$emitShared$lambda_0)]);
|
|
@@ -522,12 +552,12 @@ protoOf(ScalaIrEmitter).n1u = function () {
|
|
|
522
552
|
var tmp_1;
|
|
523
553
|
var tmp_2;
|
|
524
554
|
if (item instanceof Interface) {
|
|
525
|
-
tmp_2 = setOf(['Client', 'Server']).
|
|
555
|
+
tmp_2 = setOf(['Client', 'Server']).v1(item.t1r_1.b1q());
|
|
526
556
|
} else {
|
|
527
557
|
tmp_2 = false;
|
|
528
558
|
}
|
|
529
559
|
if (tmp_2) {
|
|
530
|
-
tmp_1 = item.
|
|
560
|
+
tmp_1 = item.a1s(VOID, VOID, VOID, VOID, VOID, plus_0(item.y1r_1, new Field(Companion_getInstance().u1k('pathSegments'), new Array_0(new Custom_0('PathSegment')))));
|
|
531
561
|
} else {
|
|
532
562
|
tmp_1 = item;
|
|
533
563
|
}
|
|
@@ -541,72 +571,120 @@ protoOf(ScalaIrEmitter).n1u = function () {
|
|
|
541
571
|
// Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
|
|
542
572
|
var tmp_3 = scope;
|
|
543
573
|
// Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
|
|
544
|
-
var this_2 = scope.
|
|
574
|
+
var this_2 = scope.l1y_1;
|
|
545
575
|
// Inline function 'community.flock.wirespec.ir.core.transformer' call
|
|
546
576
|
// Inline function 'kotlin.apply' call
|
|
547
577
|
var this_3 = new TransformerBuilder();
|
|
548
|
-
this_3.
|
|
549
|
-
var tmp$ret$5 = this_3.
|
|
550
|
-
tmp_3.
|
|
578
|
+
this_3.d1m(ScalaIrEmitter$emitShared$lambda_1);
|
|
579
|
+
var tmp$ret$5 = this_3.e1m();
|
|
580
|
+
tmp_3.l1y_1 = transform(this_2, tmp$ret$5);
|
|
551
581
|
// Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
|
|
552
582
|
var tmp_4 = scope;
|
|
553
583
|
// Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
|
|
554
|
-
var this_4 = scope.
|
|
584
|
+
var this_4 = scope.l1y_1;
|
|
555
585
|
// Inline function 'community.flock.wirespec.ir.core.transformer' call
|
|
556
586
|
// Inline function 'kotlin.apply' call
|
|
557
587
|
var this_5 = new TransformerBuilder();
|
|
558
|
-
this_5.
|
|
559
|
-
var tmp$ret$10 = this_5.
|
|
560
|
-
tmp_4.
|
|
588
|
+
this_5.d1m(ScalaIrEmitter$emitShared$lambda_2);
|
|
589
|
+
var tmp$ret$10 = this_5.e1m();
|
|
590
|
+
tmp_4.l1y_1 = transform(this_4, tmp$ret$10);
|
|
561
591
|
// Inline function 'community.flock.wirespec.ir.core.TransformScope.injectAfter' call
|
|
562
592
|
var tmp_5 = scope;
|
|
563
593
|
// Inline function 'community.flock.wirespec.ir.core.injectAfter' call
|
|
564
594
|
// Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
|
|
565
|
-
var this_6 = scope.
|
|
595
|
+
var this_6 = scope.l1y_1;
|
|
566
596
|
// Inline function 'community.flock.wirespec.ir.core.transformer' call
|
|
567
597
|
// Inline function 'kotlin.apply' call
|
|
568
598
|
var this_7 = new TransformerBuilder();
|
|
569
|
-
this_7.
|
|
570
|
-
var tmp$ret$15 = this_7.
|
|
571
|
-
tmp_5.
|
|
572
|
-
var tmp_6 = scope.
|
|
599
|
+
this_7.d1m(ScalaIrEmitter$emitShared$lambda_3(clientServer));
|
|
600
|
+
var tmp$ret$15 = this_7.e1m();
|
|
601
|
+
tmp_5.l1y_1 = transform(this_6, tmp$ret$15);
|
|
602
|
+
var tmp_6 = scope.l1y_1;
|
|
573
603
|
var wirespecShared = isInterface(tmp_6, Element) ? tmp_6 : THROW_CCE();
|
|
574
604
|
var tmp_7;
|
|
575
|
-
if (this.
|
|
576
|
-
tmp_7 = wirespecShared.
|
|
605
|
+
if (this.j23_1.fs_1) {
|
|
606
|
+
tmp_7 = wirespecShared.e1r(Companion_getInstance().u1k(packageName.mv() + 'Wirespec'));
|
|
577
607
|
} else {
|
|
578
608
|
tmp_7 = null;
|
|
579
609
|
}
|
|
580
610
|
return tmp_7;
|
|
581
611
|
};
|
|
582
|
-
protoOf(ScalaIrEmitter).
|
|
612
|
+
protoOf(ScalaIrEmitter).su = function (definition, module_0, logger) {
|
|
583
613
|
var file = emit.call(this, definition, module_0, logger);
|
|
584
614
|
// Inline function 'kotlin.takeIf' call
|
|
585
|
-
var this_0 = this.
|
|
615
|
+
var this_0 = this.m23_1;
|
|
586
616
|
var tmp;
|
|
587
|
-
if (Companion_instance.
|
|
617
|
+
if (Companion_instance.ou(module_0)) {
|
|
588
618
|
tmp = this_0;
|
|
589
619
|
} else {
|
|
590
620
|
tmp = null;
|
|
591
621
|
}
|
|
592
622
|
var tmp$ret$1 = tmp;
|
|
593
|
-
return placeInPackage(prependImports(file, tmp$ret$1), this.
|
|
623
|
+
return placeInPackage(prependImports(file, tmp$ret$1), this.v1z(), definition);
|
|
624
|
+
};
|
|
625
|
+
protoOf(ScalaIrEmitter).f1z = function (definition, module_0) {
|
|
626
|
+
var tmp;
|
|
627
|
+
if (definition instanceof Type) {
|
|
628
|
+
tmp = convertToGenerator_2(definition, module_0);
|
|
629
|
+
} else {
|
|
630
|
+
if (definition instanceof Enum) {
|
|
631
|
+
tmp = convertToGenerator_1(definition);
|
|
632
|
+
} else {
|
|
633
|
+
if (definition instanceof Refined) {
|
|
634
|
+
tmp = convertToGenerator_0(definition);
|
|
635
|
+
} else {
|
|
636
|
+
if (definition instanceof Union) {
|
|
637
|
+
tmp = convertToGenerator(definition);
|
|
638
|
+
} else {
|
|
639
|
+
return null;
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
var generatorFile = tmp;
|
|
645
|
+
var sanitized = sanitizeNames(generatorFile, _get_sanitizationConfig__sns434(this));
|
|
646
|
+
var generatorOwnName = definition.tu().m1() + 'Generator';
|
|
647
|
+
var tmp_0 = asSequence(collectCustomTypeNames(sanitized));
|
|
648
|
+
var tmp_1 = filterNot(tmp_0, ScalaIrEmitter$emitGenerator$lambda);
|
|
649
|
+
var tmp_2 = filterNot(tmp_1, ScalaIrEmitter$emitGenerator$lambda_0(generatorOwnName));
|
|
650
|
+
var customNames = toList(distinct(map(tmp_2, ScalaIrEmitter$emitGenerator$lambda_1)));
|
|
651
|
+
// Inline function 'kotlin.collections.filterNot' call
|
|
652
|
+
// Inline function 'kotlin.collections.filterNotTo' call
|
|
653
|
+
var destination = ArrayList_init_$Create$_0();
|
|
654
|
+
var _iterator__ex2g4s = customNames.t();
|
|
655
|
+
while (_iterator__ex2g4s.u()) {
|
|
656
|
+
var element = _iterator__ex2g4s.v();
|
|
657
|
+
if (!endsWith(element, 'Generator')) {
|
|
658
|
+
destination.x(element);
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
// Inline function 'kotlin.collections.map' call
|
|
662
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
663
|
+
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(destination, 10));
|
|
664
|
+
var _iterator__ex2g4s_0 = destination.t();
|
|
665
|
+
while (_iterator__ex2g4s_0.u()) {
|
|
666
|
+
var item = _iterator__ex2g4s_0.v();
|
|
667
|
+
var tmp$ret$3 = import_0(this.v1z().kv_1 + '.model', item);
|
|
668
|
+
destination_0.x(tmp$ret$3);
|
|
669
|
+
}
|
|
670
|
+
var modelImports = destination_0;
|
|
671
|
+
return placeInPackage_0(prependImports(sanitized, plus(this.m23_1, modelImports)), this.v1z(), 'generator');
|
|
594
672
|
};
|
|
595
|
-
protoOf(ScalaIrEmitter).
|
|
673
|
+
protoOf(ScalaIrEmitter).st = function (type, module_0) {
|
|
596
674
|
return ensureEmptyStructHasConstructor(sanitizeNames(convertWithValidation(type, module_0), _get_sanitizationConfig__sns434(this)));
|
|
597
675
|
};
|
|
598
|
-
protoOf(ScalaIrEmitter).
|
|
676
|
+
protoOf(ScalaIrEmitter).gv = function (enum_0, module_0) {
|
|
599
677
|
var tmp = sanitizeNames(convert_0(enum_0), _get_sanitizationConfig__sns434(this));
|
|
600
678
|
return injectEnumLabelField(tmp, ScalaIrEmitter$emit$lambda(this));
|
|
601
679
|
};
|
|
602
|
-
protoOf(ScalaIrEmitter).
|
|
680
|
+
protoOf(ScalaIrEmitter).wu = function (union) {
|
|
603
681
|
return sanitizeNames(convert_1(union), _get_sanitizationConfig__sns434(this));
|
|
604
682
|
};
|
|
605
|
-
protoOf(ScalaIrEmitter).
|
|
683
|
+
protoOf(ScalaIrEmitter).bv = function (refined) {
|
|
606
684
|
var file = sanitizeNames(convert_2(refined), _get_sanitizationConfig__sns434(this));
|
|
607
685
|
// Inline function 'community.flock.wirespec.ir.core.findElement' call
|
|
608
686
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
609
|
-
var tmp0 = file.
|
|
687
|
+
var tmp0 = file.c1r();
|
|
610
688
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
611
689
|
var destination = ArrayList_init_$Create$_0();
|
|
612
690
|
var _iterator__ex2g4s = tmp0.t();
|
|
@@ -618,12 +696,12 @@ protoOf(ScalaIrEmitter).dr = function (refined) {
|
|
|
618
696
|
}
|
|
619
697
|
var tmp$ret$2 = firstOrNull_0(destination);
|
|
620
698
|
var updatedStruct = convertToStringCallsToFieldAccess(markMembersAsOverride(ensureNotNull(tmp$ret$2)));
|
|
621
|
-
return new File(Companion_getInstance().
|
|
699
|
+
return new File(Companion_getInstance().u1k(sanitize(this, refined.zu_1)), listOf(updatedStruct));
|
|
622
700
|
};
|
|
623
|
-
protoOf(ScalaIrEmitter).
|
|
701
|
+
protoOf(ScalaIrEmitter).hv = function (endpoint) {
|
|
624
702
|
// Inline function 'community.flock.wirespec.ir.core.findElement' call
|
|
625
703
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
626
|
-
var tmp0 = convert_3(endpoint).
|
|
704
|
+
var tmp0 = convert_3(endpoint).c1r();
|
|
627
705
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
628
706
|
var destination = ArrayList_init_$Create$_0();
|
|
629
707
|
var _iterator__ex2g4s = tmp0.t();
|
|
@@ -637,9 +715,9 @@ protoOf(ScalaIrEmitter).jr = function (endpoint) {
|
|
|
637
715
|
var endpointNamespace = ensureNotNull(tmp$ret$2);
|
|
638
716
|
var flattened = flattenNestedStructs(endpointNamespace);
|
|
639
717
|
var body = appendClientServerObjects(injectHandleFunction(flattened), endpoint, isRequestObject(flattened));
|
|
640
|
-
var tmp = sanitizeNames(new File(Companion_getInstance().
|
|
718
|
+
var tmp = sanitizeNames(new File(Companion_getInstance().u1k(sanitize(this, endpoint.ct_1)), listOf(body)), _get_sanitizationConfig__sns434(this));
|
|
641
719
|
// Inline function 'kotlin.takeIf' call
|
|
642
|
-
var this_0 = buildModelImports(endpoint, this.
|
|
720
|
+
var this_0 = buildModelImports(endpoint, this.v1z());
|
|
643
721
|
var tmp_0;
|
|
644
722
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
645
723
|
if (!this_0.r()) {
|
|
@@ -650,10 +728,10 @@ protoOf(ScalaIrEmitter).jr = function (endpoint) {
|
|
|
650
728
|
var tmp$ret$5 = tmp_0;
|
|
651
729
|
return prependImports(tmp, tmp$ret$5);
|
|
652
730
|
};
|
|
653
|
-
protoOf(ScalaIrEmitter).
|
|
731
|
+
protoOf(ScalaIrEmitter).vu = function (channel) {
|
|
654
732
|
var tmp = sanitizeNames(convert_4(channel), _get_sanitizationConfig__sns434(this));
|
|
655
733
|
// Inline function 'kotlin.takeIf' call
|
|
656
|
-
var this_0 = buildModelImports(channel, this.
|
|
734
|
+
var this_0 = buildModelImports(channel, this.v1z());
|
|
657
735
|
var tmp_0;
|
|
658
736
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
659
737
|
if (!this_0.r()) {
|
|
@@ -664,25 +742,25 @@ protoOf(ScalaIrEmitter).xq = function (channel) {
|
|
|
664
742
|
var tmp$ret$2 = tmp_0;
|
|
665
743
|
return prependImports(tmp, tmp$ret$2);
|
|
666
744
|
};
|
|
667
|
-
protoOf(ScalaIrEmitter).
|
|
668
|
-
var imports = buildModelImports(endpoint, this.
|
|
669
|
-
var endpointImport = import_0(this.
|
|
745
|
+
protoOf(ScalaIrEmitter).e1z = function (endpoint) {
|
|
746
|
+
var imports = buildModelImports(endpoint, this.v1z());
|
|
747
|
+
var endpointImport = import_0(this.v1z().kv_1 + '.endpoint', endpoint.ct_1.m1());
|
|
670
748
|
var file = addIdentityTypeToCall(sanitizeNames(emitEndpointClient.call(this, endpoint), _get_sanitizationConfig__sns434(this)));
|
|
671
|
-
var subPackageName = plus_1(this.
|
|
672
|
-
var tmp = Companion_getInstance().
|
|
749
|
+
var subPackageName = plus_1(this.v1z(), 'client');
|
|
750
|
+
var tmp = Companion_getInstance().u1k(subPackageName.mv() + file.a1r_1.b1q());
|
|
673
751
|
// Inline function 'kotlin.collections.buildList' call
|
|
674
752
|
// Inline function 'kotlin.collections.buildListInternal' call
|
|
675
753
|
// Inline function 'kotlin.apply' call
|
|
676
754
|
var this_0 = ArrayList_init_$Create$_0();
|
|
677
|
-
this_0.x(new Package(subPackageName.
|
|
678
|
-
this_0.e1(this.
|
|
755
|
+
this_0.x(new Package(subPackageName.kv_1));
|
|
756
|
+
this_0.e1(this.m23_1);
|
|
679
757
|
this_0.e1(imports);
|
|
680
758
|
this_0.x(endpointImport);
|
|
681
|
-
this_0.e1(file.
|
|
682
|
-
var tmp$ret$3 = this_0.
|
|
759
|
+
this_0.e1(file.b1r_1);
|
|
760
|
+
var tmp$ret$3 = this_0.p5();
|
|
683
761
|
return new File(tmp, tmp$ret$3);
|
|
684
762
|
};
|
|
685
|
-
protoOf(ScalaIrEmitter).
|
|
763
|
+
protoOf(ScalaIrEmitter).c1z = function (endpoints, logger) {
|
|
686
764
|
// Inline function 'kotlin.collections.flatMap' call
|
|
687
765
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
688
766
|
var destination = ArrayList_init_$Create$_0();
|
|
@@ -698,7 +776,7 @@ protoOf(ScalaIrEmitter).o1u = function (endpoints, logger) {
|
|
|
698
776
|
var _iterator__ex2g4s_0 = destination.t();
|
|
699
777
|
while (_iterator__ex2g4s_0.u()) {
|
|
700
778
|
var e = _iterator__ex2g4s_0.v();
|
|
701
|
-
var key = e.
|
|
779
|
+
var key = e.iy_1;
|
|
702
780
|
if (set.x(key)) {
|
|
703
781
|
list_0.x(e);
|
|
704
782
|
}
|
|
@@ -709,7 +787,7 @@ protoOf(ScalaIrEmitter).o1u = function (endpoints, logger) {
|
|
|
709
787
|
var _iterator__ex2g4s_1 = list_0.t();
|
|
710
788
|
while (_iterator__ex2g4s_1.u()) {
|
|
711
789
|
var item = _iterator__ex2g4s_1.v();
|
|
712
|
-
var tmp$ret$5 = import_0(this.
|
|
790
|
+
var tmp$ret$5 = import_0(this.v1z().kv_1 + '.model', item.iy_1);
|
|
713
791
|
destination_0.x(tmp$ret$5);
|
|
714
792
|
}
|
|
715
793
|
var imports = destination_0;
|
|
@@ -719,7 +797,7 @@ protoOf(ScalaIrEmitter).o1u = function (endpoints, logger) {
|
|
|
719
797
|
var _iterator__ex2g4s_2 = endpoints.t();
|
|
720
798
|
while (_iterator__ex2g4s_2.u()) {
|
|
721
799
|
var item_0 = _iterator__ex2g4s_2.v();
|
|
722
|
-
var tmp$ret$8 = import_0(this.
|
|
800
|
+
var tmp$ret$8 = import_0(this.v1z().kv_1 + '.endpoint', item_0.ct_1.m1());
|
|
723
801
|
destination_1.x(tmp$ret$8);
|
|
724
802
|
}
|
|
725
803
|
var endpointImports = destination_1;
|
|
@@ -729,38 +807,38 @@ protoOf(ScalaIrEmitter).o1u = function (endpoints, logger) {
|
|
|
729
807
|
var _iterator__ex2g4s_3 = endpoints.t();
|
|
730
808
|
while (_iterator__ex2g4s_3.u()) {
|
|
731
809
|
var item_1 = _iterator__ex2g4s_3.v();
|
|
732
|
-
var tmp$ret$11 = import_0(this.
|
|
810
|
+
var tmp$ret$11 = import_0(this.v1z().kv_1 + '.client', item_1.ct_1.m1() + 'Client');
|
|
733
811
|
destination_2.x(tmp$ret$11);
|
|
734
812
|
}
|
|
735
813
|
var clientImports = destination_2;
|
|
736
814
|
var allImports = plus(plus(imports, endpointImports), clientImports);
|
|
737
815
|
var file = addIdentityTypeToCall(sanitizeNames(emitClient.call(this, endpoints, logger), _get_sanitizationConfig__sns434(this)));
|
|
738
|
-
var tmp = Companion_getInstance().
|
|
816
|
+
var tmp = Companion_getInstance().u1k(this.v1z().mv() + file.a1r_1.b1q());
|
|
739
817
|
// Inline function 'kotlin.collections.buildList' call
|
|
740
818
|
// Inline function 'kotlin.collections.buildListInternal' call
|
|
741
819
|
// Inline function 'kotlin.apply' call
|
|
742
820
|
var this_0 = ArrayList_init_$Create$_0();
|
|
743
|
-
this_0.x(new Package(this.
|
|
744
|
-
this_0.e1(this.
|
|
821
|
+
this_0.x(new Package(this.v1z().kv_1));
|
|
822
|
+
this_0.e1(this.m23_1);
|
|
745
823
|
this_0.e1(allImports);
|
|
746
|
-
this_0.e1(file.
|
|
747
|
-
var tmp$ret$17 = this_0.
|
|
824
|
+
this_0.e1(file.b1r_1);
|
|
825
|
+
var tmp$ret$17 = this_0.p5();
|
|
748
826
|
return new File(tmp, tmp$ret$17);
|
|
749
827
|
};
|
|
750
828
|
function convertToStringCallsToFieldAccess(_this__u8e3s4) {
|
|
751
829
|
// Inline function 'community.flock.wirespec.ir.core.transform' call
|
|
752
830
|
var scope = new TransformScope(_this__u8e3s4);
|
|
753
|
-
scope.
|
|
754
|
-
var tmp = scope.
|
|
831
|
+
scope.t1y(convertToStringCallsToFieldAccess$lambda);
|
|
832
|
+
var tmp = scope.l1y_1;
|
|
755
833
|
return isInterface(tmp, Element) ? tmp : THROW_CCE();
|
|
756
834
|
}
|
|
757
835
|
function appendClientServerObjects(_this__u8e3s4, endpoint, requestIsObject) {
|
|
758
836
|
var reqType = requestIsObject ? 'Request.type' : 'Request';
|
|
759
|
-
var pathTemplate = '/' + joinToString(endpoint.
|
|
760
|
-
var pathSegmentsCode = joinToString(endpoint.
|
|
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.
|
|
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.
|
|
763
|
-
return _this__u8e3s4.
|
|
837
|
+
var pathTemplate = '/' + joinToString(endpoint.et_1, '/', VOID, VOID, VOID, VOID, appendClientServerObjects$lambda);
|
|
838
|
+
var pathSegmentsCode = joinToString(endpoint.et_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.dt_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.dt_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.k1r(VOID, plus_0(plus_0(_this__u8e3s4.h1r_1, clientObject), serverObject));
|
|
764
842
|
}
|
|
765
843
|
function injectHandleFunction(_this__u8e3s4) {
|
|
766
844
|
// Inline function 'community.flock.wirespec.ir.core.transform' call
|
|
@@ -768,19 +846,19 @@ function injectHandleFunction(_this__u8e3s4) {
|
|
|
768
846
|
// Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
|
|
769
847
|
var tmp = scope;
|
|
770
848
|
// Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
|
|
771
|
-
var this_0 = scope.
|
|
849
|
+
var this_0 = scope.l1y_1;
|
|
772
850
|
// Inline function 'community.flock.wirespec.ir.core.transformer' call
|
|
773
851
|
// Inline function 'kotlin.apply' call
|
|
774
852
|
var this_1 = new TransformerBuilder();
|
|
775
|
-
this_1.
|
|
776
|
-
var tmp$ret$2 = this_1.
|
|
777
|
-
tmp.
|
|
778
|
-
var tmp_0 = scope.
|
|
853
|
+
this_1.d1m(injectHandleFunction$lambda);
|
|
854
|
+
var tmp$ret$2 = this_1.e1m();
|
|
855
|
+
tmp.l1y_1 = transform(this_0, tmp$ret$2);
|
|
856
|
+
var tmp_0 = scope.l1y_1;
|
|
779
857
|
return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
|
|
780
858
|
}
|
|
781
859
|
function isRequestObject(namespace) {
|
|
782
860
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
783
|
-
var tmp0 = namespace.
|
|
861
|
+
var tmp0 = namespace.h1r_1;
|
|
784
862
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
785
863
|
var destination = ArrayList_init_$Create$_0();
|
|
786
864
|
var _iterator__ex2g4s = tmp0.t();
|
|
@@ -796,7 +874,7 @@ function isRequestObject(namespace) {
|
|
|
796
874
|
var _iterator__ex2g4s_0 = destination.t();
|
|
797
875
|
while (_iterator__ex2g4s_0.u()) {
|
|
798
876
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
799
|
-
if (element_0.
|
|
877
|
+
if (element_0.l1r_1.b1q() === 'Request') {
|
|
800
878
|
tmp$ret$3 = element_0;
|
|
801
879
|
break $l$block;
|
|
802
880
|
}
|
|
@@ -811,7 +889,7 @@ function isRequestObject(namespace) {
|
|
|
811
889
|
tmp = tmp0_elvis_lhs;
|
|
812
890
|
}
|
|
813
891
|
var requestStruct = tmp;
|
|
814
|
-
return requestStruct.
|
|
892
|
+
return requestStruct.n1r_1.a1() === 1 && single(requestStruct.n1r_1).u1u_1.r() || (requestStruct.m1r_1.r() && requestStruct.n1r_1.r());
|
|
815
893
|
}
|
|
816
894
|
function buildModelImports(_this__u8e3s4, packageName) {
|
|
817
895
|
// Inline function 'kotlin.collections.distinctBy' call
|
|
@@ -821,7 +899,7 @@ function buildModelImports(_this__u8e3s4, packageName) {
|
|
|
821
899
|
var _iterator__ex2g4s = this_0.t();
|
|
822
900
|
while (_iterator__ex2g4s.u()) {
|
|
823
901
|
var e = _iterator__ex2g4s.v();
|
|
824
|
-
var key = e.
|
|
902
|
+
var key = e.iy_1;
|
|
825
903
|
if (set.x(key)) {
|
|
826
904
|
list.x(e);
|
|
827
905
|
}
|
|
@@ -832,7 +910,7 @@ function buildModelImports(_this__u8e3s4, packageName) {
|
|
|
832
910
|
var _iterator__ex2g4s_0 = list.t();
|
|
833
911
|
while (_iterator__ex2g4s_0.u()) {
|
|
834
912
|
var item = _iterator__ex2g4s_0.v();
|
|
835
|
-
var tmp$ret$2 = import_0(packageName.
|
|
913
|
+
var tmp$ret$2 = import_0(packageName.kv_1 + '.model', item.iy_1);
|
|
836
914
|
destination.x(tmp$ret$2);
|
|
837
915
|
}
|
|
838
916
|
return destination;
|
|
@@ -843,29 +921,29 @@ function addIdentityTypeToCall(_this__u8e3s4) {
|
|
|
843
921
|
// Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
|
|
844
922
|
var tmp = scope;
|
|
845
923
|
// Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
|
|
846
|
-
var this_0 = scope.
|
|
924
|
+
var this_0 = scope.l1y_1;
|
|
847
925
|
// Inline function 'community.flock.wirespec.ir.core.transformer' call
|
|
848
926
|
// Inline function 'kotlin.apply' call
|
|
849
927
|
var this_1 = new TransformerBuilder();
|
|
850
|
-
this_1.
|
|
851
|
-
var tmp$ret$2 = this_1.
|
|
852
|
-
tmp.
|
|
853
|
-
var tmp_0 = scope.
|
|
928
|
+
this_1.d1m(addIdentityTypeToCall$lambda);
|
|
929
|
+
var tmp$ret$2 = this_1.e1m();
|
|
930
|
+
tmp.l1y_1 = transform(this_0, tmp$ret$2);
|
|
931
|
+
var tmp_0 = scope.l1y_1;
|
|
854
932
|
return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
|
|
855
933
|
}
|
|
856
934
|
function toScalaTypeName(_this__u8e3s4) {
|
|
857
935
|
var tmp;
|
|
858
936
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
859
|
-
var t = _this__u8e3s4.
|
|
937
|
+
var t = _this__u8e3s4.my_1;
|
|
860
938
|
var tmp_0;
|
|
861
939
|
if (t instanceof String_0) {
|
|
862
940
|
tmp_0 = 'String';
|
|
863
941
|
} else {
|
|
864
942
|
if (t instanceof Integer) {
|
|
865
|
-
tmp_0 = t.
|
|
943
|
+
tmp_0 = t.qx_1.equals(Precision_P32_getInstance()) ? 'Int' : 'Long';
|
|
866
944
|
} else {
|
|
867
945
|
if (t instanceof Number_0) {
|
|
868
|
-
tmp_0 = t.
|
|
946
|
+
tmp_0 = t.tx_1.equals(Precision_P32_getInstance()) ? 'Float' : 'Double';
|
|
869
947
|
} else {
|
|
870
948
|
if (equals(t, Boolean_instance)) {
|
|
871
949
|
tmp_0 = 'Boolean';
|
|
@@ -882,13 +960,13 @@ function toScalaTypeName(_this__u8e3s4) {
|
|
|
882
960
|
tmp = tmp_0;
|
|
883
961
|
} else {
|
|
884
962
|
if (_this__u8e3s4 instanceof Custom) {
|
|
885
|
-
tmp = _this__u8e3s4.
|
|
963
|
+
tmp = _this__u8e3s4.iy_1;
|
|
886
964
|
} else {
|
|
887
965
|
if (_this__u8e3s4 instanceof Iterable) {
|
|
888
|
-
tmp = 'List[' + toScalaTypeName(_this__u8e3s4.
|
|
966
|
+
tmp = 'List[' + toScalaTypeName(_this__u8e3s4.xr_1) + ']';
|
|
889
967
|
} else {
|
|
890
968
|
if (_this__u8e3s4 instanceof Dict) {
|
|
891
|
-
tmp = 'Map[String, ' + toScalaTypeName(_this__u8e3s4.
|
|
969
|
+
tmp = 'Map[String, ' + toScalaTypeName(_this__u8e3s4.as_1) + ']';
|
|
892
970
|
} else {
|
|
893
971
|
if (_this__u8e3s4 instanceof Any) {
|
|
894
972
|
tmp = 'Any';
|
|
@@ -904,32 +982,32 @@ function toScalaTypeName(_this__u8e3s4) {
|
|
|
904
982
|
}
|
|
905
983
|
}
|
|
906
984
|
var base = tmp;
|
|
907
|
-
return _this__u8e3s4.
|
|
985
|
+
return _this__u8e3s4.ay() ? 'Option[' + base + ']' : base;
|
|
908
986
|
}
|
|
909
987
|
function convertToStringCallsToFieldAccess$lambda(expr, tr) {
|
|
910
988
|
var tmp;
|
|
911
989
|
var tmp_0;
|
|
912
990
|
var tmp_1;
|
|
913
991
|
if (expr instanceof FunctionCall) {
|
|
914
|
-
tmp_1 = expr.
|
|
992
|
+
tmp_1 = expr.f1q_1.v1p() === 'toString';
|
|
915
993
|
} else {
|
|
916
994
|
tmp_1 = false;
|
|
917
995
|
}
|
|
918
996
|
if (tmp_1) {
|
|
919
|
-
tmp_0 = !(expr.
|
|
997
|
+
tmp_0 = !(expr.d1q_1 == null);
|
|
920
998
|
} else {
|
|
921
999
|
tmp_0 = false;
|
|
922
1000
|
}
|
|
923
1001
|
if (tmp_0) {
|
|
924
|
-
var tmp0_safe_receiver = expr.
|
|
1002
|
+
var tmp0_safe_receiver = expr.d1q_1;
|
|
925
1003
|
var tmp_2;
|
|
926
1004
|
if (tmp0_safe_receiver == null) {
|
|
927
1005
|
tmp_2 = null;
|
|
928
1006
|
} else {
|
|
929
1007
|
// Inline function 'kotlin.let' call
|
|
930
|
-
tmp_2 = tr.
|
|
1008
|
+
tmp_2 = tr.g1y(tmp0_safe_receiver);
|
|
931
1009
|
}
|
|
932
|
-
tmp = new FieldCall(tmp_2, Companion_getInstance().
|
|
1010
|
+
tmp = new FieldCall(tmp_2, Companion_getInstance().u1k('toString'));
|
|
933
1011
|
} else {
|
|
934
1012
|
tmp = transformChildren_1(expr, tr);
|
|
935
1013
|
}
|
|
@@ -938,10 +1016,10 @@ function convertToStringCallsToFieldAccess$lambda(expr, tr) {
|
|
|
938
1016
|
function appendClientServerObjects$lambda(it) {
|
|
939
1017
|
var tmp;
|
|
940
1018
|
if (it instanceof Literal) {
|
|
941
|
-
tmp = it.
|
|
1019
|
+
tmp = it.fu_1;
|
|
942
1020
|
} else {
|
|
943
1021
|
if (it instanceof Param) {
|
|
944
|
-
tmp = '{' + it.
|
|
1022
|
+
tmp = '{' + it.jt_1.m1() + '}';
|
|
945
1023
|
} else {
|
|
946
1024
|
noWhenBranchMatchedException();
|
|
947
1025
|
}
|
|
@@ -951,10 +1029,10 @@ function appendClientServerObjects$lambda(it) {
|
|
|
951
1029
|
function appendClientServerObjects$lambda_0(segment) {
|
|
952
1030
|
var tmp;
|
|
953
1031
|
if (segment instanceof Literal) {
|
|
954
|
-
tmp = 'Wirespec.Literal("' + segment.
|
|
1032
|
+
tmp = 'Wirespec.Literal("' + segment.fu_1 + '")';
|
|
955
1033
|
} else {
|
|
956
1034
|
if (segment instanceof Param) {
|
|
957
|
-
tmp = 'Wirespec.Param("' + segment.
|
|
1035
|
+
tmp = 'Wirespec.Param("' + segment.jt_1.m1() + '", scala.reflect.classTag[' + toScalaTypeName(segment.kt_1) + '])';
|
|
958
1036
|
} else {
|
|
959
1037
|
noWhenBranchMatchedException();
|
|
960
1038
|
}
|
|
@@ -966,13 +1044,13 @@ function injectHandleFunction$lambda(element, transformer) {
|
|
|
966
1044
|
if (element instanceof Interface) {
|
|
967
1045
|
var tmp$ret$0;
|
|
968
1046
|
$l$block: {
|
|
969
|
-
if (!element.
|
|
1047
|
+
if (!element.t1r_1.equals(Companion_getInstance().u1k('Handler')) && !element.t1r_1.equals(Companion_getInstance().u1k('Call'))) {
|
|
970
1048
|
tmp$ret$0 = element;
|
|
971
1049
|
break $l$block;
|
|
972
1050
|
}
|
|
973
|
-
var tmp0_typeParameters = listOf(new TypeParameter(
|
|
1051
|
+
var tmp0_typeParameters = listOf(new TypeParameter(new Custom_0('F[_]')));
|
|
974
1052
|
// Inline function 'kotlin.collections.map' call
|
|
975
|
-
var this_0 = element.
|
|
1053
|
+
var this_0 = element.u1r_1;
|
|
976
1054
|
// Inline function 'kotlin.collections.mapTo' call
|
|
977
1055
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
978
1056
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -983,22 +1061,22 @@ function injectHandleFunction$lambda(element, transformer) {
|
|
|
983
1061
|
if (tmp0_safe_receiver == null) {
|
|
984
1062
|
tmp_0 = null;
|
|
985
1063
|
} else {
|
|
986
|
-
var tmp1_safe_receiver = item.
|
|
1064
|
+
var tmp1_safe_receiver = item.m1o_1;
|
|
987
1065
|
var tmp_1;
|
|
988
1066
|
if (tmp1_safe_receiver == null) {
|
|
989
1067
|
tmp_1 = null;
|
|
990
1068
|
} else {
|
|
991
1069
|
// Inline function 'kotlin.let' call
|
|
992
|
-
tmp_1 =
|
|
1070
|
+
tmp_1 = new Custom_0('F', listOf(tmp1_safe_receiver));
|
|
993
1071
|
}
|
|
994
1072
|
var tmp3_returnType = tmp_1;
|
|
995
|
-
tmp_0 = tmp0_safe_receiver.
|
|
1073
|
+
tmp_0 = tmp0_safe_receiver.r1o(VOID, VOID, VOID, tmp3_returnType, VOID, false);
|
|
996
1074
|
}
|
|
997
1075
|
var tmp4_elvis_lhs = tmp_0;
|
|
998
1076
|
var tmp$ret$3 = tmp4_elvis_lhs == null ? item : tmp4_elvis_lhs;
|
|
999
1077
|
destination.x(tmp$ret$3);
|
|
1000
1078
|
}
|
|
1001
|
-
tmp$ret$0 = element.
|
|
1079
|
+
tmp$ret$0 = element.a1s(VOID, destination, VOID, VOID, tmp0_typeParameters);
|
|
1002
1080
|
}
|
|
1003
1081
|
tmp = tmp$ret$0;
|
|
1004
1082
|
} else {
|
|
@@ -1011,7 +1089,7 @@ function addIdentityTypeToCall$lambda(element, transformer) {
|
|
|
1011
1089
|
var tmp;
|
|
1012
1090
|
if (element instanceof Struct) {
|
|
1013
1091
|
// Inline function 'kotlin.collections.map' call
|
|
1014
|
-
var this_0 = element.
|
|
1092
|
+
var this_0 = element.o1r_1;
|
|
1015
1093
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1016
1094
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
1017
1095
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -1024,7 +1102,7 @@ function addIdentityTypeToCall$lambda(element, transformer) {
|
|
|
1024
1102
|
} else {
|
|
1025
1103
|
// Inline function 'kotlin.takeIf' call
|
|
1026
1104
|
var tmp_1;
|
|
1027
|
-
if (endsWith(tmp0_safe_receiver.
|
|
1105
|
+
if (endsWith(tmp0_safe_receiver.n1m_1, '.Call')) {
|
|
1028
1106
|
tmp_1 = tmp0_safe_receiver;
|
|
1029
1107
|
} else {
|
|
1030
1108
|
tmp_1 = null;
|
|
@@ -1032,11 +1110,11 @@ function addIdentityTypeToCall$lambda(element, transformer) {
|
|
|
1032
1110
|
tmp_0 = tmp_1;
|
|
1033
1111
|
}
|
|
1034
1112
|
var tmp1_safe_receiver = tmp_0;
|
|
1035
|
-
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.r1q(VOID, listOf(new Custom_0('[A] =>> A')));
|
|
1036
1114
|
var tmp$ret$2 = tmp2_elvis_lhs == null ? item : tmp2_elvis_lhs;
|
|
1037
1115
|
destination.x(tmp$ret$2);
|
|
1038
1116
|
}
|
|
1039
|
-
tmp = element.
|
|
1117
|
+
tmp = element.s1r(VOID, VOID, VOID, destination);
|
|
1040
1118
|
} else {
|
|
1041
1119
|
tmp = element;
|
|
1042
1120
|
}
|
|
@@ -1044,8 +1122,8 @@ function addIdentityTypeToCall$lambda(element, transformer) {
|
|
|
1044
1122
|
return transformChildren_0(transformed, transformer);
|
|
1045
1123
|
}
|
|
1046
1124
|
//region block: post-declaration
|
|
1047
|
-
protoOf(ScalaIrEmitter).
|
|
1048
|
-
protoOf(ScalaIrEmitter).
|
|
1125
|
+
protoOf(ScalaIrEmitter).mr = emit_0;
|
|
1126
|
+
protoOf(ScalaIrEmitter).a1z = emit_1;
|
|
1049
1127
|
//endregion
|
|
1050
1128
|
//region block: exports
|
|
1051
1129
|
export {
|