@flock/wirespec 0.18.5 → 0.19.0-RC.2
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 +163 -163
- package/clikt-clikt-mordant.mjs +80 -80
- package/clikt-clikt-mordant.mjs.map +1 -1
- package/clikt-clikt.mjs +1574 -1574
- package/clikt-clikt.mjs.map +1 -1
- package/colormath-root-colormath.mjs +444 -444
- 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 +3230 -0
- package/kotest-kotest-property.mjs.map +1 -0
- package/kotest-property-arbs.mjs +482 -0
- package/kotest-property-arbs.mjs.map +1 -0
- package/kotlin-kotlin-stdlib.mjs +5618 -2436
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +4931 -4931
- package/kotlin-openapi-bindings.mjs.map +1 -1
- package/kotlin-rgxgen.mjs +1819 -1819
- package/kotlinx-coroutines-test.mjs +4 -0
- package/kotlinx-coroutines-test.mjs.map +1 -0
- package/kotlinx-io-kotlinx-io-core.mjs +453 -453
- package/kotlinx-io-kotlinx-io-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +2017 -1983
- package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1395 -1395
- package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
- package/mordant-mordant.mjs +1364 -1364
- package/package.json +9 -2
- package/wirespec-generator.d.ts +52 -0
- package/wirespec-generator.mjs +9 -0
- package/wirespec-src-compiler-core.mjs +1542 -1541
- package/wirespec-src-compiler-emitters-java.mjs +476 -413
- package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-kotlin.mjs +359 -296
- package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-python.mjs +560 -362
- package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-rust.mjs +754 -443
- package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-scala.mjs +243 -164
- package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-typescript.mjs +709 -420
- package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-wirespec.mjs +82 -82
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-ir.mjs +6676 -4858
- 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 +512 -512
- package/wirespec-src-converter-avro.mjs.map +1 -1
- package/wirespec-src-converter-openapi.mjs +772 -772
- package/wirespec-src-converter-openapi.mjs.map +1 -1
- package/wirespec-src-integration-kotest.mjs +1537 -0
- package/wirespec-src-integration-kotest.mjs.map +1 -0
- package/wirespec-src-plugin-arguments.mjs +185 -185
- 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,
|
|
@@ -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,
|
|
@@ -128,15 +145,15 @@ initMetadataForCompanion(Companion);
|
|
|
128
145
|
initMetadataForClass(ScalaIrEmitter, 'ScalaIrEmitter', ScalaIrEmitter, VOID, [IrEmitter]);
|
|
129
146
|
//endregion
|
|
130
147
|
function _get_sanitizationConfig__sns434($this) {
|
|
131
|
-
var tmp0 = $this.
|
|
148
|
+
var tmp0 = $this.f24_1;
|
|
132
149
|
var tmp = KProperty1;
|
|
133
150
|
// Inline function 'kotlin.getValue' call
|
|
134
151
|
getPropertyCallableRef('sanitizationConfig', 1, tmp, ScalaIrEmitter$_get_sanitizationConfig_$ref_ydarb0(), null);
|
|
135
|
-
return tmp0.
|
|
152
|
+
return tmp0.n1();
|
|
136
153
|
}
|
|
137
154
|
function sanitize($this, _this__u8e3s4) {
|
|
138
155
|
// Inline function 'kotlin.collections.mapIndexed' call
|
|
139
|
-
var this_0 = split(_this__u8e3s4.
|
|
156
|
+
var this_0 = split(_this__u8e3s4.n1(), ['.', ' ']);
|
|
140
157
|
// Inline function 'kotlin.collections.mapIndexedTo' call
|
|
141
158
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
142
159
|
var index = 0;
|
|
@@ -145,7 +162,7 @@ function sanitize($this, _this__u8e3s4) {
|
|
|
145
162
|
var item = _iterator__ex2g4s.v();
|
|
146
163
|
var _unary__edvuaz = index;
|
|
147
164
|
index = _unary__edvuaz + 1 | 0;
|
|
148
|
-
var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance.
|
|
165
|
+
var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance.ev(item) : item;
|
|
149
166
|
destination.x(tmp$ret$0);
|
|
150
167
|
}
|
|
151
168
|
// Inline function 'kotlin.text.filter' call
|
|
@@ -193,7 +210,7 @@ function sanitizeFirstIsDigit($this, _this__u8e3s4) {
|
|
|
193
210
|
return tmp;
|
|
194
211
|
}
|
|
195
212
|
function sanitizeKeywords($this, _this__u8e3s4) {
|
|
196
|
-
return Companion_getInstance_0().
|
|
213
|
+
return Companion_getInstance_0().g24_1.a2(_this__u8e3s4) ? addBackticks(_this__u8e3s4) : _this__u8e3s4;
|
|
197
214
|
}
|
|
198
215
|
function sanitizeSymbol($this, _this__u8e3s4) {
|
|
199
216
|
// Inline function 'kotlin.collections.mapIndexed' call
|
|
@@ -206,7 +223,7 @@ function sanitizeSymbol($this, _this__u8e3s4) {
|
|
|
206
223
|
var item = _iterator__ex2g4s.v();
|
|
207
224
|
var _unary__edvuaz = index;
|
|
208
225
|
index = _unary__edvuaz + 1 | 0;
|
|
209
|
-
var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance.
|
|
226
|
+
var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance.ev(item) : item;
|
|
210
227
|
destination.x(tmp$ret$0);
|
|
211
228
|
}
|
|
212
229
|
// Inline function 'kotlin.text.filter' call
|
|
@@ -233,7 +250,7 @@ function sanitizeEnum($this, _this__u8e3s4) {
|
|
|
233
250
|
}
|
|
234
251
|
function Companion() {
|
|
235
252
|
Companion_instance_2 = this;
|
|
236
|
-
this.
|
|
253
|
+
this.g24_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
254
|
}
|
|
238
255
|
var Companion_instance_2;
|
|
239
256
|
function Companion_getInstance_0() {
|
|
@@ -246,13 +263,13 @@ function ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda(it) {
|
|
|
246
263
|
}
|
|
247
264
|
function ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda_0(this$0) {
|
|
248
265
|
return function (name) {
|
|
249
|
-
var sanitized = name.
|
|
266
|
+
var sanitized = name.k1l_1.b1() > 1 ? name.n1q() : sanitizeSymbol(this$0, name.h1n());
|
|
250
267
|
return new Name(listOf(sanitized));
|
|
251
268
|
};
|
|
252
269
|
}
|
|
253
270
|
function ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda_1(this$0) {
|
|
254
271
|
return function (name) {
|
|
255
|
-
return new Name(listOf(sanitizeSymbol(this$0, name.
|
|
272
|
+
return new Name(listOf(sanitizeSymbol(this$0, name.n1q())));
|
|
256
273
|
};
|
|
257
274
|
}
|
|
258
275
|
function ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda_2(this$0) {
|
|
@@ -265,28 +282,28 @@ function ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
|
|
|
265
282
|
var tmp;
|
|
266
283
|
var tmp_0;
|
|
267
284
|
if (stmt instanceof FunctionCall) {
|
|
268
|
-
tmp_0 = stmt.
|
|
285
|
+
tmp_0 = stmt.x1q_1.h1n() === 'validate';
|
|
269
286
|
} else {
|
|
270
287
|
tmp_0 = false;
|
|
271
288
|
}
|
|
272
289
|
if (tmp_0) {
|
|
273
|
-
tmp = transformChildren(stmt.
|
|
290
|
+
tmp = transformChildren(stmt.b1r(VOID, emptyList()), tr);
|
|
274
291
|
} else {
|
|
275
292
|
if (stmt instanceof ConstructorStatement) {
|
|
276
|
-
var tmp_1 = tr.
|
|
293
|
+
var tmp_1 = tr.v1y(stmt.p1r_1);
|
|
277
294
|
// Inline function 'kotlin.collections.map' call
|
|
278
|
-
var this_0 = stmt.
|
|
295
|
+
var this_0 = stmt.q1r_1;
|
|
279
296
|
// Inline function 'kotlin.collections.mapTo' call
|
|
280
|
-
var destination = ArrayList_init_$Create$(this_0.
|
|
297
|
+
var destination = ArrayList_init_$Create$(this_0.b1());
|
|
281
298
|
// Inline function 'kotlin.collections.iterator' call
|
|
282
|
-
var _iterator__ex2g4s = this_0.
|
|
299
|
+
var _iterator__ex2g4s = this_0.l1().t();
|
|
283
300
|
while (_iterator__ex2g4s.u()) {
|
|
284
301
|
var item = _iterator__ex2g4s.v();
|
|
285
302
|
// Inline function 'kotlin.collections.component1' call
|
|
286
|
-
var name = item.
|
|
303
|
+
var name = item.m1();
|
|
287
304
|
// Inline function 'kotlin.collections.component2' call
|
|
288
|
-
var expr = item.
|
|
289
|
-
var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), name), tr.
|
|
305
|
+
var expr = item.n1();
|
|
306
|
+
var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), name), tr.y1y(expr));
|
|
290
307
|
destination.x(tmp$ret$3);
|
|
291
308
|
}
|
|
292
309
|
tmp = new ConstructorStatement(tmp_1, toMap(destination));
|
|
@@ -299,7 +316,7 @@ function ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
|
|
|
299
316
|
}
|
|
300
317
|
function ScalaIrEmitter$sanitizationConfig$delegate$lambda(this$0) {
|
|
301
318
|
return function () {
|
|
302
|
-
var tmp = Companion_getInstance_0().
|
|
319
|
+
var tmp = Companion_getInstance_0().g24_1;
|
|
303
320
|
var tmp_0 = ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda;
|
|
304
321
|
var tmp_1 = ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda_0(this$0);
|
|
305
322
|
var tmp_2 = ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda_1(this$0);
|
|
@@ -313,21 +330,21 @@ function ScalaIrEmitter$_get_sanitizationConfig_$ref_ydarb0() {
|
|
|
313
330
|
};
|
|
314
331
|
}
|
|
315
332
|
function ScalaIrEmitter$emitShared$lambda($this$struct) {
|
|
316
|
-
$this$struct.
|
|
317
|
-
$this$struct.
|
|
333
|
+
$this$struct.s1o(new Custom_0('PathSegment'));
|
|
334
|
+
$this$struct.n1o('value', String_instance);
|
|
318
335
|
return Unit_instance;
|
|
319
336
|
}
|
|
320
337
|
function ScalaIrEmitter$emitShared$lambda_0($this$struct) {
|
|
321
|
-
$this$struct.
|
|
322
|
-
$this$struct.
|
|
323
|
-
$this$struct.
|
|
338
|
+
$this$struct.s1o(new Custom_0('PathSegment'));
|
|
339
|
+
$this$struct.n1o('name', String_instance);
|
|
340
|
+
$this$struct.n1o('type', Reflect_instance);
|
|
324
341
|
return Unit_instance;
|
|
325
342
|
}
|
|
326
343
|
function ScalaIrEmitter$emitShared$lambda_1(element, transformer) {
|
|
327
344
|
var tmp;
|
|
328
345
|
if (element instanceof File) {
|
|
329
346
|
// Inline function 'kotlin.collections.partition' call
|
|
330
|
-
var this_0 = element.
|
|
347
|
+
var this_0 = element.t1r_1;
|
|
331
348
|
var first = ArrayList_init_$Create$_0();
|
|
332
349
|
var second = ArrayList_init_$Create$_0();
|
|
333
350
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -340,9 +357,9 @@ function ScalaIrEmitter$emitShared$lambda_1(element, transformer) {
|
|
|
340
357
|
}
|
|
341
358
|
}
|
|
342
359
|
var _destruct__k2r9zo = new Pair(first, second);
|
|
343
|
-
var packageElements = _destruct__k2r9zo.
|
|
344
|
-
var rest = _destruct__k2r9zo.
|
|
345
|
-
tmp = element.
|
|
360
|
+
var packageElements = _destruct__k2r9zo.pf();
|
|
361
|
+
var rest = _destruct__k2r9zo.qf();
|
|
362
|
+
tmp = element.w1r(VOID, plus(packageElements, rest));
|
|
346
363
|
} else {
|
|
347
364
|
tmp = element;
|
|
348
365
|
}
|
|
@@ -354,12 +371,12 @@ function ScalaIrEmitter$emitShared$lambda_2(element, transformer) {
|
|
|
354
371
|
if (element instanceof Namespace) {
|
|
355
372
|
var tmp$ret$0;
|
|
356
373
|
$l$block: {
|
|
357
|
-
if (!element.
|
|
374
|
+
if (!element.y1r_1.equals(Companion_getInstance().m1l('Wirespec'))) {
|
|
358
375
|
tmp$ret$0 = element;
|
|
359
376
|
break $l$block;
|
|
360
377
|
}
|
|
361
378
|
// Inline function 'kotlin.collections.flatMap' call
|
|
362
|
-
var tmp0 = element.
|
|
379
|
+
var tmp0 = element.z1r_1;
|
|
363
380
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
364
381
|
var destination = ArrayList_init_$Create$_0();
|
|
365
382
|
var _iterator__ex2g4s = tmp0.t();
|
|
@@ -371,14 +388,14 @@ function ScalaIrEmitter$emitShared$lambda_2(element, transformer) {
|
|
|
371
388
|
if (!(element_0 instanceof Interface)) {
|
|
372
389
|
tmp_0 = true;
|
|
373
390
|
} else {
|
|
374
|
-
tmp_0 = !setOf(['Request', 'Response']).
|
|
391
|
+
tmp_0 = !setOf(['Request', 'Response']).a2(element_0.l1s_1.t1q());
|
|
375
392
|
}
|
|
376
393
|
if (tmp_0) {
|
|
377
394
|
tmp$ret$1 = listOf(element_0);
|
|
378
395
|
break $l$block_2;
|
|
379
396
|
}
|
|
380
397
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
381
|
-
var tmp0_0 = element_0.
|
|
398
|
+
var tmp0_0 = element_0.m1s_1;
|
|
382
399
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
383
400
|
var destination_0 = ArrayList_init_$Create$_0();
|
|
384
401
|
var _iterator__ex2g4s_0 = tmp0_0.t();
|
|
@@ -394,7 +411,7 @@ function ScalaIrEmitter$emitShared$lambda_2(element, transformer) {
|
|
|
394
411
|
var _iterator__ex2g4s_1 = destination_0.t();
|
|
395
412
|
while (_iterator__ex2g4s_1.u()) {
|
|
396
413
|
var element_2 = _iterator__ex2g4s_1.v();
|
|
397
|
-
if (element_2.
|
|
414
|
+
if (element_2.l1s_1.t1q() === 'Headers') {
|
|
398
415
|
tmp$ret$5 = element_2;
|
|
399
416
|
break $l$block_1;
|
|
400
417
|
}
|
|
@@ -410,9 +427,9 @@ function ScalaIrEmitter$emitShared$lambda_2(element, transformer) {
|
|
|
410
427
|
tmp_1 = tmp0_elvis_lhs;
|
|
411
428
|
}
|
|
412
429
|
var nestedHeaders = tmp_1;
|
|
413
|
-
var tmp_2 = new Namespace(element_0.
|
|
430
|
+
var tmp_2 = new Namespace(element_0.l1s_1, listOf(nestedHeaders));
|
|
414
431
|
// Inline function 'kotlin.collections.filter' call
|
|
415
|
-
var tmp0_1 = element_0.
|
|
432
|
+
var tmp0_1 = element_0.m1s_1;
|
|
416
433
|
// Inline function 'kotlin.collections.filterTo' call
|
|
417
434
|
var destination_1 = ArrayList_init_$Create$_0();
|
|
418
435
|
var _iterator__ex2g4s_2 = tmp0_1.t();
|
|
@@ -420,7 +437,7 @@ function ScalaIrEmitter$emitShared$lambda_2(element, transformer) {
|
|
|
420
437
|
var element_3 = _iterator__ex2g4s_2.v();
|
|
421
438
|
var tmp_3;
|
|
422
439
|
if (element_3 instanceof Interface) {
|
|
423
|
-
tmp_3 = element_3.
|
|
440
|
+
tmp_3 = element_3.l1s_1.t1q() === 'Headers';
|
|
424
441
|
} else {
|
|
425
442
|
tmp_3 = false;
|
|
426
443
|
}
|
|
@@ -430,28 +447,28 @@ function ScalaIrEmitter$emitShared$lambda_2(element, transformer) {
|
|
|
430
447
|
}
|
|
431
448
|
var tmp_4 = destination_1;
|
|
432
449
|
// Inline function 'kotlin.collections.map' call
|
|
433
|
-
var this_0 = element_0.
|
|
450
|
+
var this_0 = element_0.q1s_1;
|
|
434
451
|
// Inline function 'kotlin.collections.mapTo' call
|
|
435
452
|
var destination_2 = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
436
453
|
var _iterator__ex2g4s_3 = this_0.t();
|
|
437
454
|
while (_iterator__ex2g4s_3.u()) {
|
|
438
455
|
var item = _iterator__ex2g4s_3.v();
|
|
439
456
|
var tmp_5;
|
|
440
|
-
if (item.
|
|
441
|
-
tmp_5 = item.
|
|
457
|
+
if (item.z1t_1.h1n() === 'headers') {
|
|
458
|
+
tmp_5 = item.d1u(VOID, new Custom_0(element_0.l1s_1.t1q() + '.Headers'));
|
|
442
459
|
} else {
|
|
443
460
|
tmp_5 = item;
|
|
444
461
|
}
|
|
445
462
|
var tmp$ret$9 = tmp_5;
|
|
446
463
|
destination_2.x(tmp$ret$9);
|
|
447
464
|
}
|
|
448
|
-
tmp$ret$1 = listOf_0([tmp_2, element_0.
|
|
465
|
+
tmp$ret$1 = listOf_0([tmp_2, element_0.s1s(VOID, tmp_4, VOID, VOID, VOID, destination_2)]);
|
|
449
466
|
}
|
|
450
467
|
var list = tmp$ret$1;
|
|
451
468
|
addAll(destination, list);
|
|
452
469
|
}
|
|
453
470
|
var newElements = destination;
|
|
454
|
-
tmp$ret$0 = element.
|
|
471
|
+
tmp$ret$0 = element.c1s(VOID, newElements);
|
|
455
472
|
}
|
|
456
473
|
tmp = tmp$ret$0;
|
|
457
474
|
} else {
|
|
@@ -464,11 +481,11 @@ function ScalaIrEmitter$emitShared$lambda_3($clientServer) {
|
|
|
464
481
|
return function (element, transformer) {
|
|
465
482
|
var tmp;
|
|
466
483
|
if (element instanceof Namespace) {
|
|
467
|
-
var injected = element.
|
|
484
|
+
var injected = element.y1r_1.equals(Companion_getInstance().m1l('Wirespec')) ? $clientServer : emptyList();
|
|
468
485
|
var tmp_0;
|
|
469
486
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
470
487
|
if (!injected.r()) {
|
|
471
|
-
tmp_0 = withElements(element, plus(element.
|
|
488
|
+
tmp_0 = withElements(element, plus(element.u1r(), injected));
|
|
472
489
|
} else {
|
|
473
490
|
tmp_0 = element;
|
|
474
491
|
}
|
|
@@ -480,6 +497,17 @@ function ScalaIrEmitter$emitShared$lambda_3($clientServer) {
|
|
|
480
497
|
return transformChildren_0(transformed, transformer);
|
|
481
498
|
};
|
|
482
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
|
+
}
|
|
483
511
|
function ScalaIrEmitter$emit$lambda(this$0) {
|
|
484
512
|
return function (it) {
|
|
485
513
|
return sanitizeEnum(this$0, it);
|
|
@@ -487,27 +515,30 @@ function ScalaIrEmitter$emit$lambda(this$0) {
|
|
|
487
515
|
}
|
|
488
516
|
function ScalaIrEmitter(packageName, emitShared) {
|
|
489
517
|
Companion_getInstance_0();
|
|
490
|
-
packageName = packageName === VOID ? Companion_instance_0.
|
|
491
|
-
emitShared = emitShared === VOID ? Companion_instance_1.
|
|
492
|
-
this.
|
|
493
|
-
this.
|
|
494
|
-
this.
|
|
495
|
-
this.
|
|
496
|
-
this.
|
|
518
|
+
packageName = packageName === VOID ? Companion_instance_0.bw('community.flock.wirespec.generated') : packageName;
|
|
519
|
+
emitShared = emitShared === VOID ? Companion_instance_1.ws() : emitShared;
|
|
520
|
+
this.a24_1 = packageName;
|
|
521
|
+
this.b24_1 = emitShared;
|
|
522
|
+
this.c24_1 = ScalaGenerator_getInstance();
|
|
523
|
+
this.d24_1 = FileExtension_Scala_getInstance();
|
|
524
|
+
this.e24_1 = listOf_0([import_0('community.flock.wirespec.scala', 'Wirespec'), import_0('scala.reflect', 'ClassTag')]);
|
|
497
525
|
var tmp = this;
|
|
498
|
-
tmp.
|
|
526
|
+
tmp.f24_1 = lazy(ScalaIrEmitter$sanitizationConfig$delegate$lambda(this));
|
|
499
527
|
}
|
|
500
|
-
protoOf(ScalaIrEmitter).
|
|
501
|
-
return this.
|
|
528
|
+
protoOf(ScalaIrEmitter).n20 = function () {
|
|
529
|
+
return this.a24_1;
|
|
530
|
+
};
|
|
531
|
+
protoOf(ScalaIrEmitter).q1z = function () {
|
|
532
|
+
return this.c24_1;
|
|
502
533
|
};
|
|
503
|
-
protoOf(ScalaIrEmitter).
|
|
504
|
-
return this.
|
|
534
|
+
protoOf(ScalaIrEmitter).uu = function () {
|
|
535
|
+
return this.d24_1;
|
|
505
536
|
};
|
|
506
|
-
protoOf(ScalaIrEmitter).
|
|
507
|
-
|
|
537
|
+
protoOf(ScalaIrEmitter).v1z = function (allFiles) {
|
|
538
|
+
ScalaGenerator_getInstance().c20(allFiles);
|
|
508
539
|
};
|
|
509
|
-
protoOf(ScalaIrEmitter).
|
|
510
|
-
var packageName = Companion_instance_0.
|
|
540
|
+
protoOf(ScalaIrEmitter).t1z = function () {
|
|
541
|
+
var packageName = Companion_instance_0.bw('community.flock.wirespec.scala');
|
|
511
542
|
var tmp = interface_0('PathSegment', true);
|
|
512
543
|
var tmp_0 = struct('Literal', ScalaIrEmitter$emitShared$lambda);
|
|
513
544
|
var pathSegmentTypes = listOf_0([tmp, tmp_0, struct('Param', ScalaIrEmitter$emitShared$lambda_0)]);
|
|
@@ -521,12 +552,12 @@ protoOf(ScalaIrEmitter).m1u = function () {
|
|
|
521
552
|
var tmp_1;
|
|
522
553
|
var tmp_2;
|
|
523
554
|
if (item instanceof Interface) {
|
|
524
|
-
tmp_2 = setOf(['Client', 'Server']).
|
|
555
|
+
tmp_2 = setOf(['Client', 'Server']).a2(item.l1s_1.t1q());
|
|
525
556
|
} else {
|
|
526
557
|
tmp_2 = false;
|
|
527
558
|
}
|
|
528
559
|
if (tmp_2) {
|
|
529
|
-
tmp_1 = item.
|
|
560
|
+
tmp_1 = item.s1s(VOID, VOID, VOID, VOID, VOID, plus_0(item.q1s_1, new Field(Companion_getInstance().m1l('pathSegments'), new Array_0(new Custom_0('PathSegment')))));
|
|
530
561
|
} else {
|
|
531
562
|
tmp_1 = item;
|
|
532
563
|
}
|
|
@@ -540,72 +571,120 @@ protoOf(ScalaIrEmitter).m1u = function () {
|
|
|
540
571
|
// Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
|
|
541
572
|
var tmp_3 = scope;
|
|
542
573
|
// Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
|
|
543
|
-
var this_2 = scope.
|
|
574
|
+
var this_2 = scope.d1z_1;
|
|
544
575
|
// Inline function 'community.flock.wirespec.ir.core.transformer' call
|
|
545
576
|
// Inline function 'kotlin.apply' call
|
|
546
577
|
var this_3 = new TransformerBuilder();
|
|
547
|
-
this_3.
|
|
548
|
-
var tmp$ret$5 = this_3.
|
|
549
|
-
tmp_3.
|
|
578
|
+
this_3.v1m(ScalaIrEmitter$emitShared$lambda_1);
|
|
579
|
+
var tmp$ret$5 = this_3.w1m();
|
|
580
|
+
tmp_3.d1z_1 = transform(this_2, tmp$ret$5);
|
|
550
581
|
// Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
|
|
551
582
|
var tmp_4 = scope;
|
|
552
583
|
// Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
|
|
553
|
-
var this_4 = scope.
|
|
584
|
+
var this_4 = scope.d1z_1;
|
|
554
585
|
// Inline function 'community.flock.wirespec.ir.core.transformer' call
|
|
555
586
|
// Inline function 'kotlin.apply' call
|
|
556
587
|
var this_5 = new TransformerBuilder();
|
|
557
|
-
this_5.
|
|
558
|
-
var tmp$ret$10 = this_5.
|
|
559
|
-
tmp_4.
|
|
588
|
+
this_5.v1m(ScalaIrEmitter$emitShared$lambda_2);
|
|
589
|
+
var tmp$ret$10 = this_5.w1m();
|
|
590
|
+
tmp_4.d1z_1 = transform(this_4, tmp$ret$10);
|
|
560
591
|
// Inline function 'community.flock.wirespec.ir.core.TransformScope.injectAfter' call
|
|
561
592
|
var tmp_5 = scope;
|
|
562
593
|
// Inline function 'community.flock.wirespec.ir.core.injectAfter' call
|
|
563
594
|
// Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
|
|
564
|
-
var this_6 = scope.
|
|
595
|
+
var this_6 = scope.d1z_1;
|
|
565
596
|
// Inline function 'community.flock.wirespec.ir.core.transformer' call
|
|
566
597
|
// Inline function 'kotlin.apply' call
|
|
567
598
|
var this_7 = new TransformerBuilder();
|
|
568
|
-
this_7.
|
|
569
|
-
var tmp$ret$15 = this_7.
|
|
570
|
-
tmp_5.
|
|
571
|
-
var tmp_6 = scope.
|
|
599
|
+
this_7.v1m(ScalaIrEmitter$emitShared$lambda_3(clientServer));
|
|
600
|
+
var tmp$ret$15 = this_7.w1m();
|
|
601
|
+
tmp_5.d1z_1 = transform(this_6, tmp$ret$15);
|
|
602
|
+
var tmp_6 = scope.d1z_1;
|
|
572
603
|
var wirespecShared = isInterface(tmp_6, Element) ? tmp_6 : THROW_CCE();
|
|
573
604
|
var tmp_7;
|
|
574
|
-
if (this.
|
|
575
|
-
tmp_7 = wirespecShared.
|
|
605
|
+
if (this.b24_1.xs_1) {
|
|
606
|
+
tmp_7 = wirespecShared.w1r(Companion_getInstance().m1l(packageName.ew() + 'Wirespec'));
|
|
576
607
|
} else {
|
|
577
608
|
tmp_7 = null;
|
|
578
609
|
}
|
|
579
610
|
return tmp_7;
|
|
580
611
|
};
|
|
581
|
-
protoOf(ScalaIrEmitter).
|
|
612
|
+
protoOf(ScalaIrEmitter).kv = function (definition, module_0, logger) {
|
|
582
613
|
var file = emit.call(this, definition, module_0, logger);
|
|
583
614
|
// Inline function 'kotlin.takeIf' call
|
|
584
|
-
var this_0 = this.
|
|
615
|
+
var this_0 = this.e24_1;
|
|
585
616
|
var tmp;
|
|
586
|
-
if (Companion_instance.
|
|
617
|
+
if (Companion_instance.gv(module_0)) {
|
|
587
618
|
tmp = this_0;
|
|
588
619
|
} else {
|
|
589
620
|
tmp = null;
|
|
590
621
|
}
|
|
591
622
|
var tmp$ret$1 = tmp;
|
|
592
|
-
return placeInPackage(prependImports(file, tmp$ret$1), this.
|
|
623
|
+
return placeInPackage(prependImports(file, tmp$ret$1), this.n20(), definition);
|
|
624
|
+
};
|
|
625
|
+
protoOf(ScalaIrEmitter).x1z = 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.lv().n1() + '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.n20().cw_1 + '.model', item);
|
|
668
|
+
destination_0.x(tmp$ret$3);
|
|
669
|
+
}
|
|
670
|
+
var modelImports = destination_0;
|
|
671
|
+
return placeInPackage_0(prependImports(sanitized, plus(this.e24_1, modelImports)), this.n20(), 'generator');
|
|
593
672
|
};
|
|
594
|
-
protoOf(ScalaIrEmitter).
|
|
673
|
+
protoOf(ScalaIrEmitter).ku = function (type, module_0) {
|
|
595
674
|
return ensureEmptyStructHasConstructor(sanitizeNames(convertWithValidation(type, module_0), _get_sanitizationConfig__sns434(this)));
|
|
596
675
|
};
|
|
597
|
-
protoOf(ScalaIrEmitter).
|
|
676
|
+
protoOf(ScalaIrEmitter).yv = function (enum_0, module_0) {
|
|
598
677
|
var tmp = sanitizeNames(convert_0(enum_0), _get_sanitizationConfig__sns434(this));
|
|
599
678
|
return injectEnumLabelField(tmp, ScalaIrEmitter$emit$lambda(this));
|
|
600
679
|
};
|
|
601
|
-
protoOf(ScalaIrEmitter).
|
|
680
|
+
protoOf(ScalaIrEmitter).ov = function (union) {
|
|
602
681
|
return sanitizeNames(convert_1(union), _get_sanitizationConfig__sns434(this));
|
|
603
682
|
};
|
|
604
|
-
protoOf(ScalaIrEmitter).
|
|
683
|
+
protoOf(ScalaIrEmitter).tv = function (refined) {
|
|
605
684
|
var file = sanitizeNames(convert_2(refined), _get_sanitizationConfig__sns434(this));
|
|
606
685
|
// Inline function 'community.flock.wirespec.ir.core.findElement' call
|
|
607
686
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
608
|
-
var tmp0 = file.
|
|
687
|
+
var tmp0 = file.u1r();
|
|
609
688
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
610
689
|
var destination = ArrayList_init_$Create$_0();
|
|
611
690
|
var _iterator__ex2g4s = tmp0.t();
|
|
@@ -617,12 +696,12 @@ protoOf(ScalaIrEmitter).dr = function (refined) {
|
|
|
617
696
|
}
|
|
618
697
|
var tmp$ret$2 = firstOrNull_0(destination);
|
|
619
698
|
var updatedStruct = convertToStringCallsToFieldAccess(markMembersAsOverride(ensureNotNull(tmp$ret$2)));
|
|
620
|
-
return new File(Companion_getInstance().
|
|
699
|
+
return new File(Companion_getInstance().m1l(sanitize(this, refined.rv_1)), listOf(updatedStruct));
|
|
621
700
|
};
|
|
622
|
-
protoOf(ScalaIrEmitter).
|
|
701
|
+
protoOf(ScalaIrEmitter).zv = function (endpoint) {
|
|
623
702
|
// Inline function 'community.flock.wirespec.ir.core.findElement' call
|
|
624
703
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
625
|
-
var tmp0 = convert_3(endpoint).
|
|
704
|
+
var tmp0 = convert_3(endpoint).u1r();
|
|
626
705
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
627
706
|
var destination = ArrayList_init_$Create$_0();
|
|
628
707
|
var _iterator__ex2g4s = tmp0.t();
|
|
@@ -636,9 +715,9 @@ protoOf(ScalaIrEmitter).jr = function (endpoint) {
|
|
|
636
715
|
var endpointNamespace = ensureNotNull(tmp$ret$2);
|
|
637
716
|
var flattened = flattenNestedStructs(endpointNamespace);
|
|
638
717
|
var body = appendClientServerObjects(injectHandleFunction(flattened), endpoint, isRequestObject(flattened));
|
|
639
|
-
var tmp = sanitizeNames(new File(Companion_getInstance().
|
|
718
|
+
var tmp = sanitizeNames(new File(Companion_getInstance().m1l(sanitize(this, endpoint.ut_1)), listOf(body)), _get_sanitizationConfig__sns434(this));
|
|
640
719
|
// Inline function 'kotlin.takeIf' call
|
|
641
|
-
var this_0 = buildModelImports(endpoint, this.
|
|
720
|
+
var this_0 = buildModelImports(endpoint, this.n20());
|
|
642
721
|
var tmp_0;
|
|
643
722
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
644
723
|
if (!this_0.r()) {
|
|
@@ -649,10 +728,10 @@ protoOf(ScalaIrEmitter).jr = function (endpoint) {
|
|
|
649
728
|
var tmp$ret$5 = tmp_0;
|
|
650
729
|
return prependImports(tmp, tmp$ret$5);
|
|
651
730
|
};
|
|
652
|
-
protoOf(ScalaIrEmitter).
|
|
731
|
+
protoOf(ScalaIrEmitter).nv = function (channel) {
|
|
653
732
|
var tmp = sanitizeNames(convert_4(channel), _get_sanitizationConfig__sns434(this));
|
|
654
733
|
// Inline function 'kotlin.takeIf' call
|
|
655
|
-
var this_0 = buildModelImports(channel, this.
|
|
734
|
+
var this_0 = buildModelImports(channel, this.n20());
|
|
656
735
|
var tmp_0;
|
|
657
736
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
658
737
|
if (!this_0.r()) {
|
|
@@ -663,25 +742,25 @@ protoOf(ScalaIrEmitter).xq = function (channel) {
|
|
|
663
742
|
var tmp$ret$2 = tmp_0;
|
|
664
743
|
return prependImports(tmp, tmp$ret$2);
|
|
665
744
|
};
|
|
666
|
-
protoOf(ScalaIrEmitter).
|
|
667
|
-
var imports = buildModelImports(endpoint, this.
|
|
668
|
-
var endpointImport = import_0(this.
|
|
745
|
+
protoOf(ScalaIrEmitter).w1z = function (endpoint) {
|
|
746
|
+
var imports = buildModelImports(endpoint, this.n20());
|
|
747
|
+
var endpointImport = import_0(this.n20().cw_1 + '.endpoint', endpoint.ut_1.n1());
|
|
669
748
|
var file = addIdentityTypeToCall(sanitizeNames(emitEndpointClient.call(this, endpoint), _get_sanitizationConfig__sns434(this)));
|
|
670
|
-
var subPackageName = plus_1(this.
|
|
671
|
-
var tmp = Companion_getInstance().
|
|
749
|
+
var subPackageName = plus_1(this.n20(), 'client');
|
|
750
|
+
var tmp = Companion_getInstance().m1l(subPackageName.ew() + file.s1r_1.t1q());
|
|
672
751
|
// Inline function 'kotlin.collections.buildList' call
|
|
673
752
|
// Inline function 'kotlin.collections.buildListInternal' call
|
|
674
753
|
// Inline function 'kotlin.apply' call
|
|
675
754
|
var this_0 = ArrayList_init_$Create$_0();
|
|
676
|
-
this_0.x(new Package(subPackageName.
|
|
677
|
-
this_0.
|
|
678
|
-
this_0.
|
|
755
|
+
this_0.x(new Package(subPackageName.cw_1));
|
|
756
|
+
this_0.f1(this.e24_1);
|
|
757
|
+
this_0.f1(imports);
|
|
679
758
|
this_0.x(endpointImport);
|
|
680
|
-
this_0.
|
|
681
|
-
var tmp$ret$3 = this_0.
|
|
759
|
+
this_0.f1(file.t1r_1);
|
|
760
|
+
var tmp$ret$3 = this_0.u5();
|
|
682
761
|
return new File(tmp, tmp$ret$3);
|
|
683
762
|
};
|
|
684
|
-
protoOf(ScalaIrEmitter).
|
|
763
|
+
protoOf(ScalaIrEmitter).u1z = function (endpoints, logger) {
|
|
685
764
|
// Inline function 'kotlin.collections.flatMap' call
|
|
686
765
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
687
766
|
var destination = ArrayList_init_$Create$_0();
|
|
@@ -697,7 +776,7 @@ protoOf(ScalaIrEmitter).n1u = function (endpoints, logger) {
|
|
|
697
776
|
var _iterator__ex2g4s_0 = destination.t();
|
|
698
777
|
while (_iterator__ex2g4s_0.u()) {
|
|
699
778
|
var e = _iterator__ex2g4s_0.v();
|
|
700
|
-
var key = e.
|
|
779
|
+
var key = e.az_1;
|
|
701
780
|
if (set.x(key)) {
|
|
702
781
|
list_0.x(e);
|
|
703
782
|
}
|
|
@@ -708,7 +787,7 @@ protoOf(ScalaIrEmitter).n1u = function (endpoints, logger) {
|
|
|
708
787
|
var _iterator__ex2g4s_1 = list_0.t();
|
|
709
788
|
while (_iterator__ex2g4s_1.u()) {
|
|
710
789
|
var item = _iterator__ex2g4s_1.v();
|
|
711
|
-
var tmp$ret$5 = import_0(this.
|
|
790
|
+
var tmp$ret$5 = import_0(this.n20().cw_1 + '.model', item.az_1);
|
|
712
791
|
destination_0.x(tmp$ret$5);
|
|
713
792
|
}
|
|
714
793
|
var imports = destination_0;
|
|
@@ -718,7 +797,7 @@ protoOf(ScalaIrEmitter).n1u = function (endpoints, logger) {
|
|
|
718
797
|
var _iterator__ex2g4s_2 = endpoints.t();
|
|
719
798
|
while (_iterator__ex2g4s_2.u()) {
|
|
720
799
|
var item_0 = _iterator__ex2g4s_2.v();
|
|
721
|
-
var tmp$ret$8 = import_0(this.
|
|
800
|
+
var tmp$ret$8 = import_0(this.n20().cw_1 + '.endpoint', item_0.ut_1.n1());
|
|
722
801
|
destination_1.x(tmp$ret$8);
|
|
723
802
|
}
|
|
724
803
|
var endpointImports = destination_1;
|
|
@@ -728,38 +807,38 @@ protoOf(ScalaIrEmitter).n1u = function (endpoints, logger) {
|
|
|
728
807
|
var _iterator__ex2g4s_3 = endpoints.t();
|
|
729
808
|
while (_iterator__ex2g4s_3.u()) {
|
|
730
809
|
var item_1 = _iterator__ex2g4s_3.v();
|
|
731
|
-
var tmp$ret$11 = import_0(this.
|
|
810
|
+
var tmp$ret$11 = import_0(this.n20().cw_1 + '.client', item_1.ut_1.n1() + 'Client');
|
|
732
811
|
destination_2.x(tmp$ret$11);
|
|
733
812
|
}
|
|
734
813
|
var clientImports = destination_2;
|
|
735
814
|
var allImports = plus(plus(imports, endpointImports), clientImports);
|
|
736
815
|
var file = addIdentityTypeToCall(sanitizeNames(emitClient.call(this, endpoints, logger), _get_sanitizationConfig__sns434(this)));
|
|
737
|
-
var tmp = Companion_getInstance().
|
|
816
|
+
var tmp = Companion_getInstance().m1l(this.n20().ew() + file.s1r_1.t1q());
|
|
738
817
|
// Inline function 'kotlin.collections.buildList' call
|
|
739
818
|
// Inline function 'kotlin.collections.buildListInternal' call
|
|
740
819
|
// Inline function 'kotlin.apply' call
|
|
741
820
|
var this_0 = ArrayList_init_$Create$_0();
|
|
742
|
-
this_0.x(new Package(this.
|
|
743
|
-
this_0.
|
|
744
|
-
this_0.
|
|
745
|
-
this_0.
|
|
746
|
-
var tmp$ret$17 = this_0.
|
|
821
|
+
this_0.x(new Package(this.n20().cw_1));
|
|
822
|
+
this_0.f1(this.e24_1);
|
|
823
|
+
this_0.f1(allImports);
|
|
824
|
+
this_0.f1(file.t1r_1);
|
|
825
|
+
var tmp$ret$17 = this_0.u5();
|
|
747
826
|
return new File(tmp, tmp$ret$17);
|
|
748
827
|
};
|
|
749
828
|
function convertToStringCallsToFieldAccess(_this__u8e3s4) {
|
|
750
829
|
// Inline function 'community.flock.wirespec.ir.core.transform' call
|
|
751
830
|
var scope = new TransformScope(_this__u8e3s4);
|
|
752
|
-
scope.
|
|
753
|
-
var tmp = scope.
|
|
831
|
+
scope.l1z(convertToStringCallsToFieldAccess$lambda);
|
|
832
|
+
var tmp = scope.d1z_1;
|
|
754
833
|
return isInterface(tmp, Element) ? tmp : THROW_CCE();
|
|
755
834
|
}
|
|
756
835
|
function appendClientServerObjects(_this__u8e3s4, endpoint, requestIsObject) {
|
|
757
836
|
var reqType = requestIsObject ? 'Request.type' : 'Request';
|
|
758
|
-
var pathTemplate = '/' + joinToString(endpoint.
|
|
759
|
-
var pathSegmentsCode = joinToString(endpoint.
|
|
760
|
-
var clientObject = raw(trimMargin('\n |object Client extends Wirespec.Client[' + reqType + ', Response[?]] {\n | override val pathTemplate: String = "' + pathTemplate + '"\n | override val method: String = "' + endpoint.
|
|
761
|
-
var serverObject = raw(trimMargin('\n |object Server extends Wirespec.Server[' + reqType + ', Response[?]] {\n | override val pathTemplate: String = "' + pathTemplate + '"\n | override val method: String = "' + endpoint.
|
|
762
|
-
return _this__u8e3s4.
|
|
837
|
+
var pathTemplate = '/' + joinToString(endpoint.wt_1, '/', VOID, VOID, VOID, VOID, appendClientServerObjects$lambda);
|
|
838
|
+
var pathSegmentsCode = joinToString(endpoint.wt_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.vt_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.vt_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.c1s(VOID, plus_0(plus_0(_this__u8e3s4.z1r_1, clientObject), serverObject));
|
|
763
842
|
}
|
|
764
843
|
function injectHandleFunction(_this__u8e3s4) {
|
|
765
844
|
// Inline function 'community.flock.wirespec.ir.core.transform' call
|
|
@@ -767,19 +846,19 @@ function injectHandleFunction(_this__u8e3s4) {
|
|
|
767
846
|
// Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
|
|
768
847
|
var tmp = scope;
|
|
769
848
|
// Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
|
|
770
|
-
var this_0 = scope.
|
|
849
|
+
var this_0 = scope.d1z_1;
|
|
771
850
|
// Inline function 'community.flock.wirespec.ir.core.transformer' call
|
|
772
851
|
// Inline function 'kotlin.apply' call
|
|
773
852
|
var this_1 = new TransformerBuilder();
|
|
774
|
-
this_1.
|
|
775
|
-
var tmp$ret$2 = this_1.
|
|
776
|
-
tmp.
|
|
777
|
-
var tmp_0 = scope.
|
|
853
|
+
this_1.v1m(injectHandleFunction$lambda);
|
|
854
|
+
var tmp$ret$2 = this_1.w1m();
|
|
855
|
+
tmp.d1z_1 = transform(this_0, tmp$ret$2);
|
|
856
|
+
var tmp_0 = scope.d1z_1;
|
|
778
857
|
return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
|
|
779
858
|
}
|
|
780
859
|
function isRequestObject(namespace) {
|
|
781
860
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
782
|
-
var tmp0 = namespace.
|
|
861
|
+
var tmp0 = namespace.z1r_1;
|
|
783
862
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
784
863
|
var destination = ArrayList_init_$Create$_0();
|
|
785
864
|
var _iterator__ex2g4s = tmp0.t();
|
|
@@ -795,7 +874,7 @@ function isRequestObject(namespace) {
|
|
|
795
874
|
var _iterator__ex2g4s_0 = destination.t();
|
|
796
875
|
while (_iterator__ex2g4s_0.u()) {
|
|
797
876
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
798
|
-
if (element_0.
|
|
877
|
+
if (element_0.d1s_1.t1q() === 'Request') {
|
|
799
878
|
tmp$ret$3 = element_0;
|
|
800
879
|
break $l$block;
|
|
801
880
|
}
|
|
@@ -810,7 +889,7 @@ function isRequestObject(namespace) {
|
|
|
810
889
|
tmp = tmp0_elvis_lhs;
|
|
811
890
|
}
|
|
812
891
|
var requestStruct = tmp;
|
|
813
|
-
return requestStruct.
|
|
892
|
+
return requestStruct.f1s_1.b1() === 1 && single(requestStruct.f1s_1).m1v_1.r() || (requestStruct.e1s_1.r() && requestStruct.f1s_1.r());
|
|
814
893
|
}
|
|
815
894
|
function buildModelImports(_this__u8e3s4, packageName) {
|
|
816
895
|
// Inline function 'kotlin.collections.distinctBy' call
|
|
@@ -820,7 +899,7 @@ function buildModelImports(_this__u8e3s4, packageName) {
|
|
|
820
899
|
var _iterator__ex2g4s = this_0.t();
|
|
821
900
|
while (_iterator__ex2g4s.u()) {
|
|
822
901
|
var e = _iterator__ex2g4s.v();
|
|
823
|
-
var key = e.
|
|
902
|
+
var key = e.az_1;
|
|
824
903
|
if (set.x(key)) {
|
|
825
904
|
list.x(e);
|
|
826
905
|
}
|
|
@@ -831,7 +910,7 @@ function buildModelImports(_this__u8e3s4, packageName) {
|
|
|
831
910
|
var _iterator__ex2g4s_0 = list.t();
|
|
832
911
|
while (_iterator__ex2g4s_0.u()) {
|
|
833
912
|
var item = _iterator__ex2g4s_0.v();
|
|
834
|
-
var tmp$ret$2 = import_0(packageName.
|
|
913
|
+
var tmp$ret$2 = import_0(packageName.cw_1 + '.model', item.az_1);
|
|
835
914
|
destination.x(tmp$ret$2);
|
|
836
915
|
}
|
|
837
916
|
return destination;
|
|
@@ -842,29 +921,29 @@ function addIdentityTypeToCall(_this__u8e3s4) {
|
|
|
842
921
|
// Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
|
|
843
922
|
var tmp = scope;
|
|
844
923
|
// Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
|
|
845
|
-
var this_0 = scope.
|
|
924
|
+
var this_0 = scope.d1z_1;
|
|
846
925
|
// Inline function 'community.flock.wirespec.ir.core.transformer' call
|
|
847
926
|
// Inline function 'kotlin.apply' call
|
|
848
927
|
var this_1 = new TransformerBuilder();
|
|
849
|
-
this_1.
|
|
850
|
-
var tmp$ret$2 = this_1.
|
|
851
|
-
tmp.
|
|
852
|
-
var tmp_0 = scope.
|
|
928
|
+
this_1.v1m(addIdentityTypeToCall$lambda);
|
|
929
|
+
var tmp$ret$2 = this_1.w1m();
|
|
930
|
+
tmp.d1z_1 = transform(this_0, tmp$ret$2);
|
|
931
|
+
var tmp_0 = scope.d1z_1;
|
|
853
932
|
return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
|
|
854
933
|
}
|
|
855
934
|
function toScalaTypeName(_this__u8e3s4) {
|
|
856
935
|
var tmp;
|
|
857
936
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
858
|
-
var t = _this__u8e3s4.
|
|
937
|
+
var t = _this__u8e3s4.ez_1;
|
|
859
938
|
var tmp_0;
|
|
860
939
|
if (t instanceof String_0) {
|
|
861
940
|
tmp_0 = 'String';
|
|
862
941
|
} else {
|
|
863
942
|
if (t instanceof Integer) {
|
|
864
|
-
tmp_0 = t.
|
|
943
|
+
tmp_0 = t.iy_1.equals(Precision_P32_getInstance()) ? 'Int' : 'Long';
|
|
865
944
|
} else {
|
|
866
945
|
if (t instanceof Number_0) {
|
|
867
|
-
tmp_0 = t.
|
|
946
|
+
tmp_0 = t.ly_1.equals(Precision_P32_getInstance()) ? 'Float' : 'Double';
|
|
868
947
|
} else {
|
|
869
948
|
if (equals(t, Boolean_instance)) {
|
|
870
949
|
tmp_0 = 'Boolean';
|
|
@@ -881,13 +960,13 @@ function toScalaTypeName(_this__u8e3s4) {
|
|
|
881
960
|
tmp = tmp_0;
|
|
882
961
|
} else {
|
|
883
962
|
if (_this__u8e3s4 instanceof Custom) {
|
|
884
|
-
tmp = _this__u8e3s4.
|
|
963
|
+
tmp = _this__u8e3s4.az_1;
|
|
885
964
|
} else {
|
|
886
965
|
if (_this__u8e3s4 instanceof Iterable) {
|
|
887
|
-
tmp = 'List[' + toScalaTypeName(_this__u8e3s4.
|
|
966
|
+
tmp = 'List[' + toScalaTypeName(_this__u8e3s4.ps_1) + ']';
|
|
888
967
|
} else {
|
|
889
968
|
if (_this__u8e3s4 instanceof Dict) {
|
|
890
|
-
tmp = 'Map[String, ' + toScalaTypeName(_this__u8e3s4.
|
|
969
|
+
tmp = 'Map[String, ' + toScalaTypeName(_this__u8e3s4.ss_1) + ']';
|
|
891
970
|
} else {
|
|
892
971
|
if (_this__u8e3s4 instanceof Any) {
|
|
893
972
|
tmp = 'Any';
|
|
@@ -903,32 +982,32 @@ function toScalaTypeName(_this__u8e3s4) {
|
|
|
903
982
|
}
|
|
904
983
|
}
|
|
905
984
|
var base = tmp;
|
|
906
|
-
return _this__u8e3s4.
|
|
985
|
+
return _this__u8e3s4.sy() ? 'Option[' + base + ']' : base;
|
|
907
986
|
}
|
|
908
987
|
function convertToStringCallsToFieldAccess$lambda(expr, tr) {
|
|
909
988
|
var tmp;
|
|
910
989
|
var tmp_0;
|
|
911
990
|
var tmp_1;
|
|
912
991
|
if (expr instanceof FunctionCall) {
|
|
913
|
-
tmp_1 = expr.
|
|
992
|
+
tmp_1 = expr.x1q_1.n1q() === 'toString';
|
|
914
993
|
} else {
|
|
915
994
|
tmp_1 = false;
|
|
916
995
|
}
|
|
917
996
|
if (tmp_1) {
|
|
918
|
-
tmp_0 = !(expr.
|
|
997
|
+
tmp_0 = !(expr.v1q_1 == null);
|
|
919
998
|
} else {
|
|
920
999
|
tmp_0 = false;
|
|
921
1000
|
}
|
|
922
1001
|
if (tmp_0) {
|
|
923
|
-
var tmp0_safe_receiver = expr.
|
|
1002
|
+
var tmp0_safe_receiver = expr.v1q_1;
|
|
924
1003
|
var tmp_2;
|
|
925
1004
|
if (tmp0_safe_receiver == null) {
|
|
926
1005
|
tmp_2 = null;
|
|
927
1006
|
} else {
|
|
928
1007
|
// Inline function 'kotlin.let' call
|
|
929
|
-
tmp_2 = tr.
|
|
1008
|
+
tmp_2 = tr.y1y(tmp0_safe_receiver);
|
|
930
1009
|
}
|
|
931
|
-
tmp = new FieldCall(tmp_2, Companion_getInstance().
|
|
1010
|
+
tmp = new FieldCall(tmp_2, Companion_getInstance().m1l('toString'));
|
|
932
1011
|
} else {
|
|
933
1012
|
tmp = transformChildren_1(expr, tr);
|
|
934
1013
|
}
|
|
@@ -937,10 +1016,10 @@ function convertToStringCallsToFieldAccess$lambda(expr, tr) {
|
|
|
937
1016
|
function appendClientServerObjects$lambda(it) {
|
|
938
1017
|
var tmp;
|
|
939
1018
|
if (it instanceof Literal) {
|
|
940
|
-
tmp = it.
|
|
1019
|
+
tmp = it.xu_1;
|
|
941
1020
|
} else {
|
|
942
1021
|
if (it instanceof Param) {
|
|
943
|
-
tmp = '{' + it.
|
|
1022
|
+
tmp = '{' + it.bu_1.n1() + '}';
|
|
944
1023
|
} else {
|
|
945
1024
|
noWhenBranchMatchedException();
|
|
946
1025
|
}
|
|
@@ -950,10 +1029,10 @@ function appendClientServerObjects$lambda(it) {
|
|
|
950
1029
|
function appendClientServerObjects$lambda_0(segment) {
|
|
951
1030
|
var tmp;
|
|
952
1031
|
if (segment instanceof Literal) {
|
|
953
|
-
tmp = 'Wirespec.Literal("' + segment.
|
|
1032
|
+
tmp = 'Wirespec.Literal("' + segment.xu_1 + '")';
|
|
954
1033
|
} else {
|
|
955
1034
|
if (segment instanceof Param) {
|
|
956
|
-
tmp = 'Wirespec.Param("' + segment.
|
|
1035
|
+
tmp = 'Wirespec.Param("' + segment.bu_1.n1() + '", scala.reflect.classTag[' + toScalaTypeName(segment.cu_1) + '])';
|
|
957
1036
|
} else {
|
|
958
1037
|
noWhenBranchMatchedException();
|
|
959
1038
|
}
|
|
@@ -965,13 +1044,13 @@ function injectHandleFunction$lambda(element, transformer) {
|
|
|
965
1044
|
if (element instanceof Interface) {
|
|
966
1045
|
var tmp$ret$0;
|
|
967
1046
|
$l$block: {
|
|
968
|
-
if (!element.
|
|
1047
|
+
if (!element.l1s_1.equals(Companion_getInstance().m1l('Handler')) && !element.l1s_1.equals(Companion_getInstance().m1l('Call'))) {
|
|
969
1048
|
tmp$ret$0 = element;
|
|
970
1049
|
break $l$block;
|
|
971
1050
|
}
|
|
972
1051
|
var tmp0_typeParameters = listOf(new TypeParameter(new Custom_0('F[_]')));
|
|
973
1052
|
// Inline function 'kotlin.collections.map' call
|
|
974
|
-
var this_0 = element.
|
|
1053
|
+
var this_0 = element.m1s_1;
|
|
975
1054
|
// Inline function 'kotlin.collections.mapTo' call
|
|
976
1055
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
977
1056
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -982,7 +1061,7 @@ function injectHandleFunction$lambda(element, transformer) {
|
|
|
982
1061
|
if (tmp0_safe_receiver == null) {
|
|
983
1062
|
tmp_0 = null;
|
|
984
1063
|
} else {
|
|
985
|
-
var tmp1_safe_receiver = item.
|
|
1064
|
+
var tmp1_safe_receiver = item.e1p_1;
|
|
986
1065
|
var tmp_1;
|
|
987
1066
|
if (tmp1_safe_receiver == null) {
|
|
988
1067
|
tmp_1 = null;
|
|
@@ -991,13 +1070,13 @@ function injectHandleFunction$lambda(element, transformer) {
|
|
|
991
1070
|
tmp_1 = new Custom_0('F', listOf(tmp1_safe_receiver));
|
|
992
1071
|
}
|
|
993
1072
|
var tmp3_returnType = tmp_1;
|
|
994
|
-
tmp_0 = tmp0_safe_receiver.
|
|
1073
|
+
tmp_0 = tmp0_safe_receiver.j1p(VOID, VOID, VOID, tmp3_returnType, VOID, false);
|
|
995
1074
|
}
|
|
996
1075
|
var tmp4_elvis_lhs = tmp_0;
|
|
997
1076
|
var tmp$ret$3 = tmp4_elvis_lhs == null ? item : tmp4_elvis_lhs;
|
|
998
1077
|
destination.x(tmp$ret$3);
|
|
999
1078
|
}
|
|
1000
|
-
tmp$ret$0 = element.
|
|
1079
|
+
tmp$ret$0 = element.s1s(VOID, destination, VOID, VOID, tmp0_typeParameters);
|
|
1001
1080
|
}
|
|
1002
1081
|
tmp = tmp$ret$0;
|
|
1003
1082
|
} else {
|
|
@@ -1010,7 +1089,7 @@ function addIdentityTypeToCall$lambda(element, transformer) {
|
|
|
1010
1089
|
var tmp;
|
|
1011
1090
|
if (element instanceof Struct) {
|
|
1012
1091
|
// Inline function 'kotlin.collections.map' call
|
|
1013
|
-
var this_0 = element.
|
|
1092
|
+
var this_0 = element.g1s_1;
|
|
1014
1093
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1015
1094
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
1016
1095
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -1023,7 +1102,7 @@ function addIdentityTypeToCall$lambda(element, transformer) {
|
|
|
1023
1102
|
} else {
|
|
1024
1103
|
// Inline function 'kotlin.takeIf' call
|
|
1025
1104
|
var tmp_1;
|
|
1026
|
-
if (endsWith(tmp0_safe_receiver.
|
|
1105
|
+
if (endsWith(tmp0_safe_receiver.f1n_1, '.Call')) {
|
|
1027
1106
|
tmp_1 = tmp0_safe_receiver;
|
|
1028
1107
|
} else {
|
|
1029
1108
|
tmp_1 = null;
|
|
@@ -1031,11 +1110,11 @@ function addIdentityTypeToCall$lambda(element, transformer) {
|
|
|
1031
1110
|
tmp_0 = tmp_1;
|
|
1032
1111
|
}
|
|
1033
1112
|
var tmp1_safe_receiver = tmp_0;
|
|
1034
|
-
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.j1r(VOID, listOf(new Custom_0('[A] =>> A')));
|
|
1035
1114
|
var tmp$ret$2 = tmp2_elvis_lhs == null ? item : tmp2_elvis_lhs;
|
|
1036
1115
|
destination.x(tmp$ret$2);
|
|
1037
1116
|
}
|
|
1038
|
-
tmp = element.
|
|
1117
|
+
tmp = element.k1s(VOID, VOID, VOID, destination);
|
|
1039
1118
|
} else {
|
|
1040
1119
|
tmp = element;
|
|
1041
1120
|
}
|
|
@@ -1043,8 +1122,8 @@ function addIdentityTypeToCall$lambda(element, transformer) {
|
|
|
1043
1122
|
return transformChildren_0(transformed, transformer);
|
|
1044
1123
|
}
|
|
1045
1124
|
//region block: post-declaration
|
|
1046
|
-
protoOf(ScalaIrEmitter).
|
|
1047
|
-
protoOf(ScalaIrEmitter).
|
|
1125
|
+
protoOf(ScalaIrEmitter).es = emit_0;
|
|
1126
|
+
protoOf(ScalaIrEmitter).s1z = emit_1;
|
|
1048
1127
|
//endregion
|
|
1049
1128
|
//region block: exports
|
|
1050
1129
|
export {
|