@flock/wirespec 0.20.0-RC.8 → 0.20.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/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 +1575 -1575
- package/clikt-clikt.mjs.map +1 -1
- package/colormath-root-colormath.mjs +444 -444
- package/kotlin-kotlin-stdlib.mjs +2001 -1948
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +10254 -10254
- package/kotlin-rgxgen.mjs +1815 -1815
- package/kotlinx-io-kotlinx-io-core.mjs +440 -440
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1890 -1890
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1576 -1576
- package/mordant-mordant.mjs +1362 -1362
- package/package.json +2 -2
- package/wirespec-src-compiler-core.mjs +1768 -2207
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-java.mjs +384 -1254
- package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-kotlin.mjs +366 -1065
- package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-python.mjs +400 -1422
- package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-rust.mjs +424 -422
- package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-scala.mjs +214 -189
- package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-typescript.mjs +529 -1409
- package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-wirespec.mjs +92 -86
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-ir.mjs +4476 -4329
- package/wirespec-src-compiler-ir.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +250 -1120
- 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 +756 -756
- package/wirespec-src-converter-openapi.mjs.map +1 -1
- package/wirespec-src-ide-lsp.mjs +1408 -1393
- package/wirespec-src-ide-lsp.mjs.map +1 -1
- package/wirespec-src-plugin-arguments.mjs +185 -245
- package/wirespec-src-plugin-arguments.mjs.map +1 -1
- package/wirespec-src-plugin-cli.mjs +102 -128
- package/wirespec-src-plugin-cli.mjs.map +1 -1
- package/wirespec-src-plugin-npm.d.mts +0 -104
- package/wirespec-src-plugin-npm.mjs +40 -40
- package/wirespec-src-plugin-npm.mjs.map +1 -1
- package/wirespec-src-tools-generator.mjs +34 -34
- package/wirespec-src-tools-generator.mjs.map +1 -1
|
@@ -15,7 +15,6 @@ import {
|
|
|
15
15
|
firstOrNulltrxqttxfxqju as firstOrNull,
|
|
16
16
|
isDigit3mimrri4wkzop as isDigit,
|
|
17
17
|
Char19o2r8palgjof as Char,
|
|
18
|
-
setOf45ia9pnfhe90 as setOf,
|
|
19
18
|
protoOf180f3jzyo7rfj as protoOf,
|
|
20
19
|
initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
|
|
21
20
|
listOfvhqybd2zx248 as listOf,
|
|
@@ -26,13 +25,14 @@ import {
|
|
|
26
25
|
ArrayList_init_$Create$1jemgvhi5v0js as ArrayList_init_$Create$_0,
|
|
27
26
|
Paire9pteg33gng7 as Pair,
|
|
28
27
|
plus310ted5e4i90h as plus,
|
|
28
|
+
setOf45ia9pnfhe90 as setOf,
|
|
29
29
|
listOf1jh22dvmctj1r as listOf_0,
|
|
30
30
|
addAll1k27qatfgp3k5 as addAll,
|
|
31
|
+
THROW_CCE2g6jy02ryeudk as THROW_CCE,
|
|
31
32
|
startsWith26w8qjqapeeq6 as startsWith,
|
|
32
33
|
substringBefore3n7kj60w69hju as substringBefore,
|
|
33
34
|
lazy2hsh8ze7j6ikd as lazy,
|
|
34
35
|
plus20p0vtfmu0596 as plus_0,
|
|
35
|
-
THROW_CCE2g6jy02ryeudk as THROW_CCE,
|
|
36
36
|
isInterface3d6p8outrmvmk as isInterface,
|
|
37
37
|
asSequence2phdjljfh9jhx as asSequence,
|
|
38
38
|
filterNot56uwv8hfomaa as filterNot,
|
|
@@ -78,6 +78,7 @@ import {
|
|
|
78
78
|
Literal331hu9r04vptz as Literal,
|
|
79
79
|
} from './wirespec-src-compiler-core.mjs';
|
|
80
80
|
import {
|
|
81
|
+
ScalaGenerator_getInstance3tda4hcloy1pr as ScalaGenerator_getInstance,
|
|
81
82
|
Nameoqr8dt2fim9d as Name,
|
|
82
83
|
FunctionCall30872kpnbr7op as FunctionCall,
|
|
83
84
|
transformChildren2mszeagj5nq4c as transformChildren,
|
|
@@ -93,12 +94,13 @@ import {
|
|
|
93
94
|
Companion_getInstance3gvtuyxc9uhxj as Companion_getInstance,
|
|
94
95
|
Interface3pn84xq686t2r as Interface,
|
|
95
96
|
Namespace345pal554qu3j as Namespace,
|
|
96
|
-
|
|
97
|
-
|
|
97
|
+
Mainb4yvz4x0nrxd as Main,
|
|
98
|
+
Enumlszg09mwd24f as Enum_0,
|
|
99
|
+
Struct39wf79cwtn4ty as Struct,
|
|
98
100
|
import5uhkz67bd8tt as import_0,
|
|
99
101
|
interface24qlavvm81r6z as interface_0,
|
|
100
102
|
structo1silz79n3nu as struct,
|
|
101
|
-
|
|
103
|
+
convertClientServer1346neky3bhls as convertClientServer,
|
|
102
104
|
Array2goj74t0aak7b as Array_0,
|
|
103
105
|
Field354s1ceh5pvhf as Field,
|
|
104
106
|
convertnty9x0e63d0u as convert,
|
|
@@ -122,7 +124,6 @@ import {
|
|
|
122
124
|
injectEnumLabelFieldyfohidz6c88i as injectEnumLabelField,
|
|
123
125
|
convert37aabdzvtv9vg as convert_1,
|
|
124
126
|
convert17zcptkz4mhr4 as convert_2,
|
|
125
|
-
Struct39wf79cwtn4ty as Struct,
|
|
126
127
|
markMembersAsOverride3r1zpft8nbmxg as markMembersAsOverride,
|
|
127
128
|
convert32tuiui3czihh as convert_3,
|
|
128
129
|
convert1cn4bolzoed8c as convert_4,
|
|
@@ -137,7 +138,6 @@ import {
|
|
|
137
138
|
FieldCall1iz7z2fx2xo4p as FieldCall,
|
|
138
139
|
TypeParameter1x56bawg1pg87 as TypeParameter,
|
|
139
140
|
Function21cuq8qizkin7 as Function,
|
|
140
|
-
Custom2si7lto3wompr as Custom_0,
|
|
141
141
|
} from './wirespec-src-compiler-ir.mjs';
|
|
142
142
|
//region block: imports
|
|
143
143
|
//endregion
|
|
@@ -146,15 +146,15 @@ initMetadataForCompanion(Companion);
|
|
|
146
146
|
initMetadataForClass(ScalaIrEmitter, 'ScalaIrEmitter', ScalaIrEmitter, VOID, [IrEmitter]);
|
|
147
147
|
//endregion
|
|
148
148
|
function _get_sanitizationConfig__sns434($this) {
|
|
149
|
-
var tmp0 = $this.
|
|
149
|
+
var tmp0 = $this.i1z_1;
|
|
150
150
|
var tmp = KProperty1;
|
|
151
151
|
// Inline function 'kotlin.getValue' call
|
|
152
152
|
getPropertyCallableRef('sanitizationConfig', 1, tmp, ScalaIrEmitter$_get_sanitizationConfig_$ref_ydarb0(), null);
|
|
153
|
-
return tmp0.
|
|
153
|
+
return tmp0.m1();
|
|
154
154
|
}
|
|
155
155
|
function sanitize($this, _this__u8e3s4) {
|
|
156
156
|
// Inline function 'kotlin.collections.mapIndexed' call
|
|
157
|
-
var this_0 = split(_this__u8e3s4.
|
|
157
|
+
var this_0 = split(_this__u8e3s4.m1(), ['.', ' ']);
|
|
158
158
|
// Inline function 'kotlin.collections.mapIndexedTo' call
|
|
159
159
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
160
160
|
var index = 0;
|
|
@@ -163,7 +163,7 @@ function sanitize($this, _this__u8e3s4) {
|
|
|
163
163
|
var item = _iterator__ex2g4s.v();
|
|
164
164
|
var _unary__edvuaz = index;
|
|
165
165
|
index = _unary__edvuaz + 1 | 0;
|
|
166
|
-
var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance.
|
|
166
|
+
var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance.xq(item) : item;
|
|
167
167
|
destination.x(tmp$ret$0);
|
|
168
168
|
}
|
|
169
169
|
// Inline function 'kotlin.text.filter' call
|
|
@@ -211,7 +211,7 @@ function sanitizeFirstIsDigit($this, _this__u8e3s4) {
|
|
|
211
211
|
return tmp;
|
|
212
212
|
}
|
|
213
213
|
function sanitizeKeywords($this, _this__u8e3s4) {
|
|
214
|
-
return Companion_getInstance_0().
|
|
214
|
+
return Companion_getInstance_0().l1x().v1(_this__u8e3s4) ? addBackticks(_this__u8e3s4) : _this__u8e3s4;
|
|
215
215
|
}
|
|
216
216
|
function sanitizeSymbol($this, _this__u8e3s4) {
|
|
217
217
|
// Inline function 'kotlin.collections.mapIndexed' call
|
|
@@ -224,7 +224,7 @@ function sanitizeSymbol($this, _this__u8e3s4) {
|
|
|
224
224
|
var item = _iterator__ex2g4s.v();
|
|
225
225
|
var _unary__edvuaz = index;
|
|
226
226
|
index = _unary__edvuaz + 1 | 0;
|
|
227
|
-
var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance.
|
|
227
|
+
var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance.xq(item) : item;
|
|
228
228
|
destination.x(tmp$ret$0);
|
|
229
229
|
}
|
|
230
230
|
// Inline function 'kotlin.text.filter' call
|
|
@@ -251,8 +251,11 @@ function sanitizeEnum($this, _this__u8e3s4) {
|
|
|
251
251
|
}
|
|
252
252
|
function Companion() {
|
|
253
253
|
Companion_instance_2 = this;
|
|
254
|
-
this.
|
|
254
|
+
this.j1z_1 = ScalaGenerator_getInstance();
|
|
255
255
|
}
|
|
256
|
+
protoOf(Companion).l1x = function () {
|
|
257
|
+
return this.j1z_1.s1w_1;
|
|
258
|
+
};
|
|
256
259
|
var Companion_instance_2;
|
|
257
260
|
function Companion_getInstance_0() {
|
|
258
261
|
if (Companion_instance_2 == null)
|
|
@@ -264,13 +267,13 @@ function ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda(it) {
|
|
|
264
267
|
}
|
|
265
268
|
function ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda_0(this$0) {
|
|
266
269
|
return function (name) {
|
|
267
|
-
var sanitized = name.
|
|
270
|
+
var sanitized = name.v1g_1.b1() > 1 ? name.j1m() : sanitizeSymbol(this$0, name.w1i());
|
|
268
271
|
return new Name(listOf(sanitized));
|
|
269
272
|
};
|
|
270
273
|
}
|
|
271
274
|
function ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda_1(this$0) {
|
|
272
275
|
return function (name) {
|
|
273
|
-
return new Name(listOf(sanitizeSymbol(this$0, name.
|
|
276
|
+
return new Name(listOf(sanitizeSymbol(this$0, name.j1m())));
|
|
274
277
|
};
|
|
275
278
|
}
|
|
276
279
|
function ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda_2(this$0) {
|
|
@@ -283,28 +286,28 @@ function ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
|
|
|
283
286
|
var tmp;
|
|
284
287
|
var tmp_0;
|
|
285
288
|
if (stmt instanceof FunctionCall) {
|
|
286
|
-
tmp_0 = stmt.
|
|
289
|
+
tmp_0 = stmt.t1m_1.w1i() === 'validate';
|
|
287
290
|
} else {
|
|
288
291
|
tmp_0 = false;
|
|
289
292
|
}
|
|
290
293
|
if (tmp_0) {
|
|
291
|
-
tmp = transformChildren(stmt.
|
|
294
|
+
tmp = transformChildren(stmt.x1m(VOID, emptyList()), tr);
|
|
292
295
|
} else {
|
|
293
296
|
if (stmt instanceof ConstructorStatement) {
|
|
294
|
-
var tmp_1 = tr.
|
|
297
|
+
var tmp_1 = tr.i1v(stmt.o1n_1);
|
|
295
298
|
// Inline function 'kotlin.collections.map' call
|
|
296
|
-
var this_0 = stmt.
|
|
299
|
+
var this_0 = stmt.p1n_1;
|
|
297
300
|
// Inline function 'kotlin.collections.mapTo' call
|
|
298
|
-
var destination = ArrayList_init_$Create$(this_0.
|
|
301
|
+
var destination = ArrayList_init_$Create$(this_0.b1());
|
|
299
302
|
// Inline function 'kotlin.collections.iterator' call
|
|
300
|
-
var _iterator__ex2g4s = this_0.
|
|
303
|
+
var _iterator__ex2g4s = this_0.k1().t();
|
|
301
304
|
while (_iterator__ex2g4s.u()) {
|
|
302
305
|
var item = _iterator__ex2g4s.v();
|
|
303
306
|
// Inline function 'kotlin.collections.component1' call
|
|
304
|
-
var name = item.
|
|
307
|
+
var name = item.l1();
|
|
305
308
|
// Inline function 'kotlin.collections.component2' call
|
|
306
|
-
var expr = item.
|
|
307
|
-
var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), name), tr.
|
|
309
|
+
var expr = item.m1();
|
|
310
|
+
var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), name), tr.l1v(expr));
|
|
308
311
|
destination.x(tmp$ret$3);
|
|
309
312
|
}
|
|
310
313
|
tmp = new ConstructorStatement(tmp_1, toMap(destination));
|
|
@@ -317,7 +320,7 @@ function ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
|
|
|
317
320
|
}
|
|
318
321
|
function ScalaIrEmitter$sanitizationConfig$delegate$lambda(this$0) {
|
|
319
322
|
return function () {
|
|
320
|
-
var tmp = Companion_getInstance_0().
|
|
323
|
+
var tmp = Companion_getInstance_0().l1x();
|
|
321
324
|
var tmp_0 = ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda;
|
|
322
325
|
var tmp_1 = ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda_0(this$0);
|
|
323
326
|
var tmp_2 = ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda_1(this$0);
|
|
@@ -331,21 +334,21 @@ function ScalaIrEmitter$_get_sanitizationConfig_$ref_ydarb0() {
|
|
|
331
334
|
};
|
|
332
335
|
}
|
|
333
336
|
function ScalaIrEmitter$emitShared$lambda($this$struct) {
|
|
334
|
-
$this$struct.
|
|
335
|
-
$this$struct.
|
|
337
|
+
$this$struct.l1k(Custom_init_$Create$('PathSegment'));
|
|
338
|
+
$this$struct.g1k('value', String_instance);
|
|
336
339
|
return Unit_instance;
|
|
337
340
|
}
|
|
338
341
|
function ScalaIrEmitter$emitShared$lambda_0($this$struct) {
|
|
339
|
-
$this$struct.
|
|
340
|
-
$this$struct.
|
|
341
|
-
$this$struct.
|
|
342
|
+
$this$struct.l1k(Custom_init_$Create$('PathSegment'));
|
|
343
|
+
$this$struct.g1k('name', String_instance);
|
|
344
|
+
$this$struct.g1k('type', Reflect_instance);
|
|
342
345
|
return Unit_instance;
|
|
343
346
|
}
|
|
344
347
|
function ScalaIrEmitter$emitShared$lambda_1(element, transformer) {
|
|
345
348
|
var tmp;
|
|
346
349
|
if (element instanceof File) {
|
|
347
350
|
// Inline function 'kotlin.collections.partition' call
|
|
348
|
-
var this_0 = element.
|
|
351
|
+
var this_0 = element.t1n_1;
|
|
349
352
|
var first = ArrayList_init_$Create$_0();
|
|
350
353
|
var second = ArrayList_init_$Create$_0();
|
|
351
354
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -358,9 +361,9 @@ function ScalaIrEmitter$emitShared$lambda_1(element, transformer) {
|
|
|
358
361
|
}
|
|
359
362
|
}
|
|
360
363
|
var _destruct__k2r9zo = new Pair(first, second);
|
|
361
|
-
var packageElements = _destruct__k2r9zo.
|
|
362
|
-
var rest = _destruct__k2r9zo.
|
|
363
|
-
tmp = element.
|
|
364
|
+
var packageElements = _destruct__k2r9zo.we();
|
|
365
|
+
var rest = _destruct__k2r9zo.xe();
|
|
366
|
+
tmp = element.w1n(VOID, plus(packageElements, rest));
|
|
364
367
|
} else {
|
|
365
368
|
tmp = element;
|
|
366
369
|
}
|
|
@@ -372,12 +375,12 @@ function ScalaIrEmitter$emitShared$lambda_2(element, transformer) {
|
|
|
372
375
|
if (element instanceof Namespace) {
|
|
373
376
|
var tmp$ret$0;
|
|
374
377
|
$l$block: {
|
|
375
|
-
if (!element.
|
|
378
|
+
if (!element.y1n_1.equals(Companion_getInstance().x1g('Wirespec'))) {
|
|
376
379
|
tmp$ret$0 = element;
|
|
377
380
|
break $l$block;
|
|
378
381
|
}
|
|
379
382
|
// Inline function 'kotlin.collections.flatMap' call
|
|
380
|
-
var tmp0 = element.
|
|
383
|
+
var tmp0 = element.z1n_1;
|
|
381
384
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
382
385
|
var destination = ArrayList_init_$Create$_0();
|
|
383
386
|
var _iterator__ex2g4s = tmp0.t();
|
|
@@ -389,14 +392,14 @@ function ScalaIrEmitter$emitShared$lambda_2(element, transformer) {
|
|
|
389
392
|
if (!(element_0 instanceof Interface)) {
|
|
390
393
|
tmp_0 = true;
|
|
391
394
|
} else {
|
|
392
|
-
tmp_0 = !setOf(['Request', 'Response']).
|
|
395
|
+
tmp_0 = !setOf(['Request', 'Response']).v1(element_0.e1o_1.y1g());
|
|
393
396
|
}
|
|
394
397
|
if (tmp_0) {
|
|
395
398
|
tmp$ret$1 = listOf(element_0);
|
|
396
399
|
break $l$block_2;
|
|
397
400
|
}
|
|
398
401
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
399
|
-
var tmp0_0 = element_0.
|
|
402
|
+
var tmp0_0 = element_0.f1o_1;
|
|
400
403
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
401
404
|
var destination_0 = ArrayList_init_$Create$_0();
|
|
402
405
|
var _iterator__ex2g4s_0 = tmp0_0.t();
|
|
@@ -412,7 +415,7 @@ function ScalaIrEmitter$emitShared$lambda_2(element, transformer) {
|
|
|
412
415
|
var _iterator__ex2g4s_1 = destination_0.t();
|
|
413
416
|
while (_iterator__ex2g4s_1.u()) {
|
|
414
417
|
var element_2 = _iterator__ex2g4s_1.v();
|
|
415
|
-
if (element_2.
|
|
418
|
+
if (element_2.e1o_1.y1g() === 'Headers') {
|
|
416
419
|
tmp$ret$5 = element_2;
|
|
417
420
|
break $l$block_1;
|
|
418
421
|
}
|
|
@@ -428,9 +431,9 @@ function ScalaIrEmitter$emitShared$lambda_2(element, transformer) {
|
|
|
428
431
|
tmp_1 = tmp0_elvis_lhs;
|
|
429
432
|
}
|
|
430
433
|
var nestedHeaders = tmp_1;
|
|
431
|
-
var tmp_2 = new Namespace(element_0.
|
|
434
|
+
var tmp_2 = new Namespace(element_0.e1o_1, listOf(nestedHeaders));
|
|
432
435
|
// Inline function 'kotlin.collections.filter' call
|
|
433
|
-
var tmp0_1 = element_0.
|
|
436
|
+
var tmp0_1 = element_0.f1o_1;
|
|
434
437
|
// Inline function 'kotlin.collections.filterTo' call
|
|
435
438
|
var destination_1 = ArrayList_init_$Create$_0();
|
|
436
439
|
var _iterator__ex2g4s_2 = tmp0_1.t();
|
|
@@ -438,7 +441,7 @@ function ScalaIrEmitter$emitShared$lambda_2(element, transformer) {
|
|
|
438
441
|
var element_3 = _iterator__ex2g4s_2.v();
|
|
439
442
|
var tmp_3;
|
|
440
443
|
if (element_3 instanceof Interface) {
|
|
441
|
-
tmp_3 = element_3.
|
|
444
|
+
tmp_3 = element_3.e1o_1.y1g() === 'Headers';
|
|
442
445
|
} else {
|
|
443
446
|
tmp_3 = false;
|
|
444
447
|
}
|
|
@@ -448,28 +451,28 @@ function ScalaIrEmitter$emitShared$lambda_2(element, transformer) {
|
|
|
448
451
|
}
|
|
449
452
|
var tmp_4 = destination_1;
|
|
450
453
|
// Inline function 'kotlin.collections.map' call
|
|
451
|
-
var this_0 = element_0.
|
|
454
|
+
var this_0 = element_0.j1o_1;
|
|
452
455
|
// Inline function 'kotlin.collections.mapTo' call
|
|
453
456
|
var destination_2 = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
454
457
|
var _iterator__ex2g4s_3 = this_0.t();
|
|
455
458
|
while (_iterator__ex2g4s_3.u()) {
|
|
456
459
|
var item = _iterator__ex2g4s_3.v();
|
|
457
460
|
var tmp_5;
|
|
458
|
-
if (item.
|
|
459
|
-
tmp_5 = item.
|
|
461
|
+
if (item.n1o_1.w1i() === 'headers') {
|
|
462
|
+
tmp_5 = item.x1o(VOID, Custom_init_$Create$(element_0.e1o_1.y1g() + '.Headers'));
|
|
460
463
|
} else {
|
|
461
464
|
tmp_5 = item;
|
|
462
465
|
}
|
|
463
466
|
var tmp$ret$9 = tmp_5;
|
|
464
467
|
destination_2.x(tmp$ret$9);
|
|
465
468
|
}
|
|
466
|
-
tmp$ret$1 = listOf_0([tmp_2, element_0.
|
|
469
|
+
tmp$ret$1 = listOf_0([tmp_2, element_0.m1o(VOID, tmp_4, VOID, VOID, VOID, destination_2)]);
|
|
467
470
|
}
|
|
468
471
|
var list = tmp$ret$1;
|
|
469
472
|
addAll(destination, list);
|
|
470
473
|
}
|
|
471
474
|
var newElements = destination;
|
|
472
|
-
tmp$ret$0 = element.
|
|
475
|
+
tmp$ret$0 = element.d1o(VOID, newElements);
|
|
473
476
|
}
|
|
474
477
|
tmp = tmp$ret$0;
|
|
475
478
|
} else {
|
|
@@ -482,11 +485,40 @@ function ScalaIrEmitter$emitShared$lambda_3($clientServer) {
|
|
|
482
485
|
return function (element, transformer) {
|
|
483
486
|
var tmp;
|
|
484
487
|
if (element instanceof Namespace) {
|
|
485
|
-
var injected = element.
|
|
488
|
+
var injected = element.y1n_1.equals(Companion_getInstance().x1g('Wirespec')) ? $clientServer : emptyList();
|
|
486
489
|
var tmp_0;
|
|
487
490
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
488
491
|
if (!injected.r()) {
|
|
489
|
-
|
|
492
|
+
// Inline function 'community.flock.wirespec.ir.core.withElements' call
|
|
493
|
+
var elements = plus(element.u1n(), injected);
|
|
494
|
+
var tmp_1;
|
|
495
|
+
if (element instanceof File) {
|
|
496
|
+
tmp_1 = element.w1n(VOID, elements);
|
|
497
|
+
} else {
|
|
498
|
+
if (element instanceof Struct) {
|
|
499
|
+
tmp_1 = element.d1q(VOID, VOID, VOID, VOID, elements);
|
|
500
|
+
} else {
|
|
501
|
+
if (element instanceof Namespace) {
|
|
502
|
+
tmp_1 = element.d1o(VOID, elements);
|
|
503
|
+
} else {
|
|
504
|
+
if (element instanceof Interface) {
|
|
505
|
+
tmp_1 = element.m1o(VOID, elements);
|
|
506
|
+
} else {
|
|
507
|
+
if (element instanceof Enum_0) {
|
|
508
|
+
tmp_1 = element.r1p(VOID, VOID, VOID, VOID, VOID, elements);
|
|
509
|
+
} else {
|
|
510
|
+
if (element instanceof Main) {
|
|
511
|
+
tmp_1 = element;
|
|
512
|
+
} else {
|
|
513
|
+
tmp_1 = element;
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
var tmp_2 = tmp_1;
|
|
521
|
+
tmp_0 = tmp_2 instanceof Namespace ? tmp_2 : THROW_CCE();
|
|
490
522
|
} else {
|
|
491
523
|
tmp_0 = element;
|
|
492
524
|
}
|
|
@@ -516,35 +548,35 @@ function ScalaIrEmitter$emit$lambda(this$0) {
|
|
|
516
548
|
}
|
|
517
549
|
function ScalaIrEmitter(packageName, emitShared) {
|
|
518
550
|
Companion_getInstance_0();
|
|
519
|
-
packageName = packageName === VOID ? Companion_instance_0.
|
|
520
|
-
emitShared = emitShared === VOID ? Companion_instance_1.
|
|
521
|
-
this.
|
|
522
|
-
this.
|
|
523
|
-
this.
|
|
524
|
-
this.
|
|
525
|
-
this.
|
|
551
|
+
packageName = packageName === VOID ? Companion_instance_0.bs('community.flock.wirespec.generated') : packageName;
|
|
552
|
+
emitShared = emitShared === VOID ? Companion_instance_1.fp() : emitShared;
|
|
553
|
+
this.d1z_1 = packageName;
|
|
554
|
+
this.e1z_1 = emitShared;
|
|
555
|
+
this.f1z_1 = ScalaGenerator_getInstance();
|
|
556
|
+
this.g1z_1 = FileExtension_Scala_getInstance();
|
|
557
|
+
this.h1z_1 = listOf_0([import_0('community.flock.wirespec.scala', 'Wirespec'), import_0('scala.reflect', 'ClassTag')]);
|
|
526
558
|
var tmp = this;
|
|
527
|
-
tmp.
|
|
559
|
+
tmp.i1z_1 = lazy(ScalaIrEmitter$sanitizationConfig$delegate$lambda(this));
|
|
528
560
|
}
|
|
529
|
-
protoOf(ScalaIrEmitter).
|
|
530
|
-
return this.
|
|
561
|
+
protoOf(ScalaIrEmitter).s1x = function () {
|
|
562
|
+
return this.d1z_1;
|
|
531
563
|
};
|
|
532
|
-
protoOf(ScalaIrEmitter).
|
|
533
|
-
return this.
|
|
564
|
+
protoOf(ScalaIrEmitter).d1w = function () {
|
|
565
|
+
return this.f1z_1;
|
|
534
566
|
};
|
|
535
|
-
protoOf(ScalaIrEmitter).
|
|
536
|
-
return this.
|
|
567
|
+
protoOf(ScalaIrEmitter).er = function () {
|
|
568
|
+
return this.g1z_1;
|
|
537
569
|
};
|
|
538
|
-
protoOf(ScalaIrEmitter).
|
|
539
|
-
ScalaGenerator_getInstance().
|
|
570
|
+
protoOf(ScalaIrEmitter).k1w = function (allFiles) {
|
|
571
|
+
ScalaGenerator_getInstance().w1w(allFiles);
|
|
540
572
|
};
|
|
541
|
-
protoOf(ScalaIrEmitter).
|
|
542
|
-
var packageName = Companion_instance_0.
|
|
573
|
+
protoOf(ScalaIrEmitter).h1w = function () {
|
|
574
|
+
var packageName = Companion_instance_0.bs('community.flock.wirespec.scala');
|
|
543
575
|
var tmp = interface_0('PathSegment', true);
|
|
544
576
|
var tmp_0 = struct('Literal', ScalaIrEmitter$emitShared$lambda);
|
|
545
577
|
var pathSegmentTypes = listOf_0([tmp, tmp_0, struct('Param', ScalaIrEmitter$emitShared$lambda_0)]);
|
|
546
578
|
// Inline function 'kotlin.collections.map' call
|
|
547
|
-
var this_0 = convertClientServer(
|
|
579
|
+
var this_0 = convertClientServer();
|
|
548
580
|
// Inline function 'kotlin.collections.mapTo' call
|
|
549
581
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
550
582
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -553,12 +585,12 @@ protoOf(ScalaIrEmitter).a1w = function () {
|
|
|
553
585
|
var tmp_1;
|
|
554
586
|
var tmp_2;
|
|
555
587
|
if (item instanceof Interface) {
|
|
556
|
-
tmp_2 = setOf(['Client', 'Server']).
|
|
588
|
+
tmp_2 = setOf(['Client', 'Server']).v1(item.e1o_1.y1g());
|
|
557
589
|
} else {
|
|
558
590
|
tmp_2 = false;
|
|
559
591
|
}
|
|
560
592
|
if (tmp_2) {
|
|
561
|
-
tmp_1 = item.
|
|
593
|
+
tmp_1 = item.m1o(VOID, VOID, VOID, VOID, VOID, plus_0(item.j1o_1, new Field(Companion_getInstance().x1g('pathSegments'), new Array_0(Custom_init_$Create$('PathSegment')))));
|
|
562
594
|
} else {
|
|
563
595
|
tmp_1 = item;
|
|
564
596
|
}
|
|
@@ -572,58 +604,58 @@ protoOf(ScalaIrEmitter).a1w = function () {
|
|
|
572
604
|
// Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
|
|
573
605
|
var tmp_3 = scope;
|
|
574
606
|
// Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
|
|
575
|
-
var this_2 = scope.
|
|
607
|
+
var this_2 = scope.q1v_1;
|
|
576
608
|
// Inline function 'community.flock.wirespec.ir.core.transformer' call
|
|
577
609
|
// Inline function 'kotlin.apply' call
|
|
578
610
|
var this_3 = new TransformerBuilder();
|
|
579
|
-
this_3.
|
|
580
|
-
var tmp$ret$5 = this_3.
|
|
581
|
-
tmp_3.
|
|
611
|
+
this_3.k1i(ScalaIrEmitter$emitShared$lambda_1);
|
|
612
|
+
var tmp$ret$5 = this_3.l1i();
|
|
613
|
+
tmp_3.q1v_1 = transform(this_2, tmp$ret$5);
|
|
582
614
|
// Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
|
|
583
615
|
var tmp_4 = scope;
|
|
584
616
|
// Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
|
|
585
|
-
var this_4 = scope.
|
|
617
|
+
var this_4 = scope.q1v_1;
|
|
586
618
|
// Inline function 'community.flock.wirespec.ir.core.transformer' call
|
|
587
619
|
// Inline function 'kotlin.apply' call
|
|
588
620
|
var this_5 = new TransformerBuilder();
|
|
589
|
-
this_5.
|
|
590
|
-
var tmp$ret$10 = this_5.
|
|
591
|
-
tmp_4.
|
|
621
|
+
this_5.k1i(ScalaIrEmitter$emitShared$lambda_2);
|
|
622
|
+
var tmp$ret$10 = this_5.l1i();
|
|
623
|
+
tmp_4.q1v_1 = transform(this_4, tmp$ret$10);
|
|
592
624
|
// Inline function 'community.flock.wirespec.ir.core.TransformScope.injectAfter' call
|
|
593
625
|
var tmp_5 = scope;
|
|
594
626
|
// Inline function 'community.flock.wirespec.ir.core.injectAfter' call
|
|
595
627
|
// Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
|
|
596
|
-
var this_6 = scope.
|
|
628
|
+
var this_6 = scope.q1v_1;
|
|
597
629
|
// Inline function 'community.flock.wirespec.ir.core.transformer' call
|
|
598
630
|
// Inline function 'kotlin.apply' call
|
|
599
631
|
var this_7 = new TransformerBuilder();
|
|
600
|
-
this_7.
|
|
601
|
-
var tmp$ret$15 = this_7.
|
|
602
|
-
tmp_5.
|
|
603
|
-
var tmp_6 = scope.
|
|
632
|
+
this_7.k1i(ScalaIrEmitter$emitShared$lambda_3(clientServer));
|
|
633
|
+
var tmp$ret$15 = this_7.l1i();
|
|
634
|
+
tmp_5.q1v_1 = transform(this_6, tmp$ret$15);
|
|
635
|
+
var tmp_6 = scope.q1v_1;
|
|
604
636
|
var wirespecShared = isInterface(tmp_6, Element) ? tmp_6 : THROW_CCE();
|
|
605
637
|
var tmp_7;
|
|
606
|
-
if (this.
|
|
607
|
-
tmp_7 = wirespecShared.
|
|
638
|
+
if (this.e1z_1.gp_1) {
|
|
639
|
+
tmp_7 = wirespecShared.w1n(Companion_getInstance().x1g(packageName.es() + 'Wirespec'));
|
|
608
640
|
} else {
|
|
609
641
|
tmp_7 = null;
|
|
610
642
|
}
|
|
611
643
|
return tmp_7;
|
|
612
644
|
};
|
|
613
|
-
protoOf(ScalaIrEmitter).
|
|
645
|
+
protoOf(ScalaIrEmitter).fr = function (definition, module_0, logger) {
|
|
614
646
|
var file = emit.call(this, definition, module_0, logger);
|
|
615
647
|
// Inline function 'kotlin.takeIf' call
|
|
616
|
-
var this_0 = this.
|
|
648
|
+
var this_0 = this.h1z_1;
|
|
617
649
|
var tmp;
|
|
618
|
-
if (Companion_instance.
|
|
650
|
+
if (Companion_instance.yq(module_0)) {
|
|
619
651
|
tmp = this_0;
|
|
620
652
|
} else {
|
|
621
653
|
tmp = null;
|
|
622
654
|
}
|
|
623
655
|
var tmp$ret$1 = tmp;
|
|
624
|
-
return placeInPackage(prependImports(file, tmp$ret$1), this.
|
|
656
|
+
return placeInPackage(prependImports(file, tmp$ret$1), this.s1x(), definition);
|
|
625
657
|
};
|
|
626
|
-
protoOf(ScalaIrEmitter).
|
|
658
|
+
protoOf(ScalaIrEmitter).m1w = function (definition, module_0) {
|
|
627
659
|
var tmp;
|
|
628
660
|
if (definition instanceof Type) {
|
|
629
661
|
tmp = convertToGenerator_2(definition, module_0);
|
|
@@ -644,7 +676,7 @@ protoOf(ScalaIrEmitter).f1w = function (definition, module_0) {
|
|
|
644
676
|
}
|
|
645
677
|
var generatorFile = tmp;
|
|
646
678
|
var sanitized = sanitizeNames(generatorFile, _get_sanitizationConfig__sns434(this));
|
|
647
|
-
var generatorOwnName = definition.
|
|
679
|
+
var generatorOwnName = definition.gr().m1() + 'Generator';
|
|
648
680
|
var tmp_0 = asSequence(collectCustomTypeNames(sanitized));
|
|
649
681
|
var tmp_1 = filterNot(tmp_0, ScalaIrEmitter$emitGenerator$lambda);
|
|
650
682
|
var tmp_2 = filterNot(tmp_1, ScalaIrEmitter$emitGenerator$lambda_0(generatorOwnName));
|
|
@@ -665,27 +697,27 @@ protoOf(ScalaIrEmitter).f1w = function (definition, module_0) {
|
|
|
665
697
|
var _iterator__ex2g4s_0 = destination.t();
|
|
666
698
|
while (_iterator__ex2g4s_0.u()) {
|
|
667
699
|
var item = _iterator__ex2g4s_0.v();
|
|
668
|
-
var tmp$ret$3 = import_0(this.
|
|
700
|
+
var tmp$ret$3 = import_0(this.s1x().cs_1 + '.model', item);
|
|
669
701
|
destination_0.x(tmp$ret$3);
|
|
670
702
|
}
|
|
671
703
|
var modelImports = destination_0;
|
|
672
|
-
return placeInPackage_0(prependImports(sanitized, plus(this.
|
|
704
|
+
return placeInPackage_0(prependImports(sanitized, plus(this.h1z_1, modelImports)), this.s1x(), 'generator');
|
|
673
705
|
};
|
|
674
|
-
protoOf(ScalaIrEmitter).
|
|
706
|
+
protoOf(ScalaIrEmitter).vr = function (type, module_0) {
|
|
675
707
|
return ensureEmptyStructHasConstructor(sanitizeNames(convertWithValidation(type, module_0), _get_sanitizationConfig__sns434(this)));
|
|
676
708
|
};
|
|
677
|
-
protoOf(ScalaIrEmitter).
|
|
709
|
+
protoOf(ScalaIrEmitter).tr = function (enum_0, module_0) {
|
|
678
710
|
var tmp = sanitizeNames(convert_0(enum_0), _get_sanitizationConfig__sns434(this));
|
|
679
711
|
return injectEnumLabelField(tmp, ScalaIrEmitter$emit$lambda(this));
|
|
680
712
|
};
|
|
681
|
-
protoOf(ScalaIrEmitter).
|
|
713
|
+
protoOf(ScalaIrEmitter).jr = function (union) {
|
|
682
714
|
return sanitizeNames(convert_1(union), _get_sanitizationConfig__sns434(this));
|
|
683
715
|
};
|
|
684
|
-
protoOf(ScalaIrEmitter).
|
|
716
|
+
protoOf(ScalaIrEmitter).or = function (refined) {
|
|
685
717
|
var file = sanitizeNames(convert_2(refined), _get_sanitizationConfig__sns434(this));
|
|
686
718
|
// Inline function 'community.flock.wirespec.ir.core.findElement' call
|
|
687
719
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
688
|
-
var tmp0 = file.
|
|
720
|
+
var tmp0 = file.u1n();
|
|
689
721
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
690
722
|
var destination = ArrayList_init_$Create$_0();
|
|
691
723
|
var _iterator__ex2g4s = tmp0.t();
|
|
@@ -697,12 +729,12 @@ protoOf(ScalaIrEmitter).vr = function (refined) {
|
|
|
697
729
|
}
|
|
698
730
|
var tmp$ret$2 = firstOrNull_0(destination);
|
|
699
731
|
var updatedStruct = convertToStringCallsToFieldAccess(markMembersAsOverride(ensureNotNull(tmp$ret$2)));
|
|
700
|
-
return new File(Companion_getInstance().
|
|
732
|
+
return new File(Companion_getInstance().x1g(sanitize(this, refined.mr_1)), listOf(updatedStruct));
|
|
701
733
|
};
|
|
702
|
-
protoOf(ScalaIrEmitter).
|
|
734
|
+
protoOf(ScalaIrEmitter).ur = function (endpoint) {
|
|
703
735
|
// Inline function 'community.flock.wirespec.ir.core.findElement' call
|
|
704
736
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
705
|
-
var tmp0 = convert_3(endpoint).
|
|
737
|
+
var tmp0 = convert_3(endpoint).u1n();
|
|
706
738
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
707
739
|
var destination = ArrayList_init_$Create$_0();
|
|
708
740
|
var _iterator__ex2g4s = tmp0.t();
|
|
@@ -715,9 +747,9 @@ protoOf(ScalaIrEmitter).bs = function (endpoint) {
|
|
|
715
747
|
var tmp$ret$2 = firstOrNull_0(destination);
|
|
716
748
|
var endpointNamespace = ensureNotNull(tmp$ret$2);
|
|
717
749
|
var body = appendClientServerObjects(injectHandleFunction(endpointNamespace), endpoint, isRequestObject(endpointNamespace));
|
|
718
|
-
var tmp = sanitizeNames(new File(Companion_getInstance().
|
|
750
|
+
var tmp = sanitizeNames(new File(Companion_getInstance().x1g(sanitize(this, endpoint.eq_1)), listOf(body)), _get_sanitizationConfig__sns434(this));
|
|
719
751
|
// Inline function 'kotlin.takeIf' call
|
|
720
|
-
var this_0 = buildModelImports(endpoint, this.
|
|
752
|
+
var this_0 = buildModelImports(endpoint, this.s1x());
|
|
721
753
|
var tmp_0;
|
|
722
754
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
723
755
|
if (!this_0.r()) {
|
|
@@ -728,10 +760,10 @@ protoOf(ScalaIrEmitter).bs = function (endpoint) {
|
|
|
728
760
|
var tmp$ret$5 = tmp_0;
|
|
729
761
|
return prependImports(tmp, tmp$ret$5);
|
|
730
762
|
};
|
|
731
|
-
protoOf(ScalaIrEmitter).
|
|
763
|
+
protoOf(ScalaIrEmitter).ir = function (channel) {
|
|
732
764
|
var tmp = sanitizeNames(convert_4(channel), _get_sanitizationConfig__sns434(this));
|
|
733
765
|
// Inline function 'kotlin.takeIf' call
|
|
734
|
-
var this_0 = buildModelImports(channel, this.
|
|
766
|
+
var this_0 = buildModelImports(channel, this.s1x());
|
|
735
767
|
var tmp_0;
|
|
736
768
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
737
769
|
if (!this_0.r()) {
|
|
@@ -742,25 +774,25 @@ protoOf(ScalaIrEmitter).pr = function (channel) {
|
|
|
742
774
|
var tmp$ret$2 = tmp_0;
|
|
743
775
|
return prependImports(tmp, tmp$ret$2);
|
|
744
776
|
};
|
|
745
|
-
protoOf(ScalaIrEmitter).
|
|
746
|
-
var imports = buildModelImports(endpoint, this.
|
|
747
|
-
var endpointImport = import_0(this.
|
|
777
|
+
protoOf(ScalaIrEmitter).l1w = function (endpoint) {
|
|
778
|
+
var imports = buildModelImports(endpoint, this.s1x());
|
|
779
|
+
var endpointImport = import_0(this.s1x().cs_1 + '.endpoint', endpoint.eq_1.m1());
|
|
748
780
|
var file = addIdentityTypeToCall(sanitizeNames(emitEndpointClient.call(this, endpoint), _get_sanitizationConfig__sns434(this)));
|
|
749
|
-
var subPackageName = plus_1(this.
|
|
750
|
-
var tmp = Companion_getInstance().
|
|
781
|
+
var subPackageName = plus_1(this.s1x(), 'client');
|
|
782
|
+
var tmp = Companion_getInstance().x1g(subPackageName.es() + file.s1n_1.y1g());
|
|
751
783
|
// Inline function 'kotlin.collections.buildList' call
|
|
752
784
|
// Inline function 'kotlin.collections.buildListInternal' call
|
|
753
785
|
// Inline function 'kotlin.apply' call
|
|
754
786
|
var this_0 = ArrayList_init_$Create$_0();
|
|
755
|
-
this_0.x(new Package(subPackageName.
|
|
756
|
-
this_0.
|
|
757
|
-
this_0.
|
|
787
|
+
this_0.x(new Package(subPackageName.cs_1));
|
|
788
|
+
this_0.g1(this.h1z_1);
|
|
789
|
+
this_0.g1(imports);
|
|
758
790
|
this_0.x(endpointImport);
|
|
759
|
-
this_0.
|
|
760
|
-
var tmp$ret$3 = this_0.
|
|
791
|
+
this_0.g1(file.t1n_1);
|
|
792
|
+
var tmp$ret$3 = this_0.p5();
|
|
761
793
|
return new File(tmp, tmp$ret$3);
|
|
762
794
|
};
|
|
763
|
-
protoOf(ScalaIrEmitter).
|
|
795
|
+
protoOf(ScalaIrEmitter).i1w = function (endpoints, logger) {
|
|
764
796
|
// Inline function 'kotlin.collections.flatMap' call
|
|
765
797
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
766
798
|
var destination = ArrayList_init_$Create$_0();
|
|
@@ -776,7 +808,7 @@ protoOf(ScalaIrEmitter).b1w = function (endpoints, logger) {
|
|
|
776
808
|
var _iterator__ex2g4s_0 = destination.t();
|
|
777
809
|
while (_iterator__ex2g4s_0.u()) {
|
|
778
810
|
var e = _iterator__ex2g4s_0.v();
|
|
779
|
-
var key = e.
|
|
811
|
+
var key = e.dv_1;
|
|
780
812
|
if (set.x(key)) {
|
|
781
813
|
list_0.x(e);
|
|
782
814
|
}
|
|
@@ -787,7 +819,7 @@ protoOf(ScalaIrEmitter).b1w = function (endpoints, logger) {
|
|
|
787
819
|
var _iterator__ex2g4s_1 = list_0.t();
|
|
788
820
|
while (_iterator__ex2g4s_1.u()) {
|
|
789
821
|
var item = _iterator__ex2g4s_1.v();
|
|
790
|
-
var tmp$ret$5 = import_0(this.
|
|
822
|
+
var tmp$ret$5 = import_0(this.s1x().cs_1 + '.model', item.dv_1);
|
|
791
823
|
destination_0.x(tmp$ret$5);
|
|
792
824
|
}
|
|
793
825
|
var imports = destination_0;
|
|
@@ -797,7 +829,7 @@ protoOf(ScalaIrEmitter).b1w = function (endpoints, logger) {
|
|
|
797
829
|
var _iterator__ex2g4s_2 = endpoints.t();
|
|
798
830
|
while (_iterator__ex2g4s_2.u()) {
|
|
799
831
|
var item_0 = _iterator__ex2g4s_2.v();
|
|
800
|
-
var tmp$ret$8 = import_0(this.
|
|
832
|
+
var tmp$ret$8 = import_0(this.s1x().cs_1 + '.endpoint', item_0.eq_1.m1());
|
|
801
833
|
destination_1.x(tmp$ret$8);
|
|
802
834
|
}
|
|
803
835
|
var endpointImports = destination_1;
|
|
@@ -807,38 +839,38 @@ protoOf(ScalaIrEmitter).b1w = function (endpoints, logger) {
|
|
|
807
839
|
var _iterator__ex2g4s_3 = endpoints.t();
|
|
808
840
|
while (_iterator__ex2g4s_3.u()) {
|
|
809
841
|
var item_1 = _iterator__ex2g4s_3.v();
|
|
810
|
-
var tmp$ret$11 = import_0(this.
|
|
842
|
+
var tmp$ret$11 = import_0(this.s1x().cs_1 + '.client', item_1.eq_1.m1() + 'Client');
|
|
811
843
|
destination_2.x(tmp$ret$11);
|
|
812
844
|
}
|
|
813
845
|
var clientImports = destination_2;
|
|
814
846
|
var allImports = plus(plus(imports, endpointImports), clientImports);
|
|
815
847
|
var file = addIdentityTypeToCall(sanitizeNames(emitClient.call(this, endpoints, logger), _get_sanitizationConfig__sns434(this)));
|
|
816
|
-
var tmp = Companion_getInstance().
|
|
848
|
+
var tmp = Companion_getInstance().x1g(this.s1x().es() + file.s1n_1.y1g());
|
|
817
849
|
// Inline function 'kotlin.collections.buildList' call
|
|
818
850
|
// Inline function 'kotlin.collections.buildListInternal' call
|
|
819
851
|
// Inline function 'kotlin.apply' call
|
|
820
852
|
var this_0 = ArrayList_init_$Create$_0();
|
|
821
|
-
this_0.x(new Package(this.
|
|
822
|
-
this_0.
|
|
823
|
-
this_0.
|
|
824
|
-
this_0.
|
|
825
|
-
var tmp$ret$17 = this_0.
|
|
853
|
+
this_0.x(new Package(this.s1x().cs_1));
|
|
854
|
+
this_0.g1(this.h1z_1);
|
|
855
|
+
this_0.g1(allImports);
|
|
856
|
+
this_0.g1(file.t1n_1);
|
|
857
|
+
var tmp$ret$17 = this_0.p5();
|
|
826
858
|
return new File(tmp, tmp$ret$17);
|
|
827
859
|
};
|
|
828
860
|
function convertToStringCallsToFieldAccess(_this__u8e3s4) {
|
|
829
861
|
// Inline function 'community.flock.wirespec.ir.core.transform' call
|
|
830
862
|
var scope = new TransformScope(_this__u8e3s4);
|
|
831
|
-
scope.
|
|
832
|
-
var tmp = scope.
|
|
863
|
+
scope.y1v(convertToStringCallsToFieldAccess$lambda);
|
|
864
|
+
var tmp = scope.q1v_1;
|
|
833
865
|
return isInterface(tmp, Element) ? tmp : THROW_CCE();
|
|
834
866
|
}
|
|
835
867
|
function appendClientServerObjects(_this__u8e3s4, endpoint, requestIsObject) {
|
|
836
868
|
var reqType = requestIsObject ? 'Request.type' : 'Request';
|
|
837
|
-
var pathTemplate = '/' + joinToString(endpoint.
|
|
838
|
-
var pathSegmentsCode = joinToString(endpoint.
|
|
839
|
-
var clientObject = raw(trimMargin('\n |object Client extends Wirespec.Client[' + reqType + ', Response[?]] {\n | override val pathTemplate: String = "' + pathTemplate + '"\n | override val method: String = "' + endpoint.
|
|
840
|
-
var serverObject = raw(trimMargin('\n |object Server extends Wirespec.Server[' + reqType + ', Response[?]] {\n | override val pathTemplate: String = "' + pathTemplate + '"\n | override val method: String = "' + endpoint.
|
|
841
|
-
return _this__u8e3s4.
|
|
869
|
+
var pathTemplate = '/' + joinToString(endpoint.gq_1, '/', VOID, VOID, VOID, VOID, appendClientServerObjects$lambda);
|
|
870
|
+
var pathSegmentsCode = joinToString(endpoint.gq_1, ', ', VOID, VOID, VOID, VOID, appendClientServerObjects$lambda_0);
|
|
871
|
+
var clientObject = raw(trimMargin('\n |object Client extends Wirespec.Client[' + reqType + ', Response[?]] {\n | override val pathTemplate: String = "' + pathTemplate + '"\n | override val method: String = "' + endpoint.fq_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 '));
|
|
872
|
+
var serverObject = raw(trimMargin('\n |object Server extends Wirespec.Server[' + reqType + ', Response[?]] {\n | override val pathTemplate: String = "' + pathTemplate + '"\n | override val method: String = "' + endpoint.fq_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 '));
|
|
873
|
+
return _this__u8e3s4.d1o(VOID, plus_0(plus_0(_this__u8e3s4.z1n_1, clientObject), serverObject));
|
|
842
874
|
}
|
|
843
875
|
function injectHandleFunction(_this__u8e3s4) {
|
|
844
876
|
// Inline function 'community.flock.wirespec.ir.core.transform' call
|
|
@@ -846,19 +878,19 @@ function injectHandleFunction(_this__u8e3s4) {
|
|
|
846
878
|
// Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
|
|
847
879
|
var tmp = scope;
|
|
848
880
|
// Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
|
|
849
|
-
var this_0 = scope.
|
|
881
|
+
var this_0 = scope.q1v_1;
|
|
850
882
|
// Inline function 'community.flock.wirespec.ir.core.transformer' call
|
|
851
883
|
// Inline function 'kotlin.apply' call
|
|
852
884
|
var this_1 = new TransformerBuilder();
|
|
853
|
-
this_1.
|
|
854
|
-
var tmp$ret$2 = this_1.
|
|
855
|
-
tmp.
|
|
856
|
-
var tmp_0 = scope.
|
|
885
|
+
this_1.k1i(injectHandleFunction$lambda);
|
|
886
|
+
var tmp$ret$2 = this_1.l1i();
|
|
887
|
+
tmp.q1v_1 = transform(this_0, tmp$ret$2);
|
|
888
|
+
var tmp_0 = scope.q1v_1;
|
|
857
889
|
return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
|
|
858
890
|
}
|
|
859
891
|
function isRequestObject(namespace) {
|
|
860
892
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
861
|
-
var tmp0 = namespace.
|
|
893
|
+
var tmp0 = namespace.z1n_1;
|
|
862
894
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
863
895
|
var destination = ArrayList_init_$Create$_0();
|
|
864
896
|
var _iterator__ex2g4s = tmp0.t();
|
|
@@ -874,7 +906,7 @@ function isRequestObject(namespace) {
|
|
|
874
906
|
var _iterator__ex2g4s_0 = destination.t();
|
|
875
907
|
while (_iterator__ex2g4s_0.u()) {
|
|
876
908
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
877
|
-
if (element_0.
|
|
909
|
+
if (element_0.s1p_1.y1g() === 'Request') {
|
|
878
910
|
tmp$ret$3 = element_0;
|
|
879
911
|
break $l$block;
|
|
880
912
|
}
|
|
@@ -889,7 +921,7 @@ function isRequestObject(namespace) {
|
|
|
889
921
|
tmp = tmp0_elvis_lhs;
|
|
890
922
|
}
|
|
891
923
|
var requestStruct = tmp;
|
|
892
|
-
return requestStruct.
|
|
924
|
+
return requestStruct.u1p_1.b1() === 1 && single(requestStruct.u1p_1).a1s_1.r() || (requestStruct.t1p_1.r() && requestStruct.u1p_1.r());
|
|
893
925
|
}
|
|
894
926
|
function buildModelImports(_this__u8e3s4, packageName) {
|
|
895
927
|
// Inline function 'kotlin.collections.distinctBy' call
|
|
@@ -899,7 +931,7 @@ function buildModelImports(_this__u8e3s4, packageName) {
|
|
|
899
931
|
var _iterator__ex2g4s = this_0.t();
|
|
900
932
|
while (_iterator__ex2g4s.u()) {
|
|
901
933
|
var e = _iterator__ex2g4s.v();
|
|
902
|
-
var key = e.
|
|
934
|
+
var key = e.dv_1;
|
|
903
935
|
if (set.x(key)) {
|
|
904
936
|
list.x(e);
|
|
905
937
|
}
|
|
@@ -910,7 +942,7 @@ function buildModelImports(_this__u8e3s4, packageName) {
|
|
|
910
942
|
var _iterator__ex2g4s_0 = list.t();
|
|
911
943
|
while (_iterator__ex2g4s_0.u()) {
|
|
912
944
|
var item = _iterator__ex2g4s_0.v();
|
|
913
|
-
var tmp$ret$2 = import_0(packageName.
|
|
945
|
+
var tmp$ret$2 = import_0(packageName.cs_1 + '.model', Companion_getInstance().x1g(item.dv_1).y1g());
|
|
914
946
|
destination.x(tmp$ret$2);
|
|
915
947
|
}
|
|
916
948
|
return destination;
|
|
@@ -921,29 +953,29 @@ function addIdentityTypeToCall(_this__u8e3s4) {
|
|
|
921
953
|
// Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
|
|
922
954
|
var tmp = scope;
|
|
923
955
|
// Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
|
|
924
|
-
var this_0 = scope.
|
|
956
|
+
var this_0 = scope.q1v_1;
|
|
925
957
|
// Inline function 'community.flock.wirespec.ir.core.transformer' call
|
|
926
958
|
// Inline function 'kotlin.apply' call
|
|
927
959
|
var this_1 = new TransformerBuilder();
|
|
928
|
-
this_1.
|
|
929
|
-
var tmp$ret$2 = this_1.
|
|
930
|
-
tmp.
|
|
931
|
-
var tmp_0 = scope.
|
|
960
|
+
this_1.k1i(addIdentityTypeToCall$lambda);
|
|
961
|
+
var tmp$ret$2 = this_1.l1i();
|
|
962
|
+
tmp.q1v_1 = transform(this_0, tmp$ret$2);
|
|
963
|
+
var tmp_0 = scope.q1v_1;
|
|
932
964
|
return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
|
|
933
965
|
}
|
|
934
966
|
function toScalaTypeName(_this__u8e3s4) {
|
|
935
967
|
var tmp;
|
|
936
968
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
937
|
-
var t = _this__u8e3s4.
|
|
969
|
+
var t = _this__u8e3s4.ot_1;
|
|
938
970
|
var tmp_0;
|
|
939
971
|
if (t instanceof String_0) {
|
|
940
972
|
tmp_0 = 'String';
|
|
941
973
|
} else {
|
|
942
974
|
if (t instanceof Integer) {
|
|
943
|
-
tmp_0 = t.
|
|
975
|
+
tmp_0 = t.lu_1.equals(Precision_P32_getInstance()) ? 'Int' : 'Long';
|
|
944
976
|
} else {
|
|
945
977
|
if (t instanceof Number_0) {
|
|
946
|
-
tmp_0 = t.
|
|
978
|
+
tmp_0 = t.ou_1.equals(Precision_P32_getInstance()) ? 'Float' : 'Double';
|
|
947
979
|
} else {
|
|
948
980
|
if (equals(t, Boolean_instance)) {
|
|
949
981
|
tmp_0 = 'Boolean';
|
|
@@ -960,13 +992,13 @@ function toScalaTypeName(_this__u8e3s4) {
|
|
|
960
992
|
tmp = tmp_0;
|
|
961
993
|
} else {
|
|
962
994
|
if (_this__u8e3s4 instanceof Custom) {
|
|
963
|
-
tmp = _this__u8e3s4.
|
|
995
|
+
tmp = _this__u8e3s4.dv_1;
|
|
964
996
|
} else {
|
|
965
997
|
if (_this__u8e3s4 instanceof Iterable) {
|
|
966
|
-
tmp = 'List[' + toScalaTypeName(_this__u8e3s4.
|
|
998
|
+
tmp = 'List[' + toScalaTypeName(_this__u8e3s4.yo_1) + ']';
|
|
967
999
|
} else {
|
|
968
1000
|
if (_this__u8e3s4 instanceof Dict) {
|
|
969
|
-
tmp = 'Map[String, ' + toScalaTypeName(_this__u8e3s4.
|
|
1001
|
+
tmp = 'Map[String, ' + toScalaTypeName(_this__u8e3s4.bp_1) + ']';
|
|
970
1002
|
} else {
|
|
971
1003
|
if (_this__u8e3s4 instanceof Any) {
|
|
972
1004
|
tmp = 'Any';
|
|
@@ -982,32 +1014,32 @@ function toScalaTypeName(_this__u8e3s4) {
|
|
|
982
1014
|
}
|
|
983
1015
|
}
|
|
984
1016
|
var base = tmp;
|
|
985
|
-
return _this__u8e3s4.
|
|
1017
|
+
return _this__u8e3s4.vu() ? 'Option[' + base + ']' : base;
|
|
986
1018
|
}
|
|
987
1019
|
function convertToStringCallsToFieldAccess$lambda(expr, tr) {
|
|
988
1020
|
var tmp;
|
|
989
1021
|
var tmp_0;
|
|
990
1022
|
var tmp_1;
|
|
991
1023
|
if (expr instanceof FunctionCall) {
|
|
992
|
-
tmp_1 = expr.
|
|
1024
|
+
tmp_1 = expr.t1m_1.j1m() === 'toString';
|
|
993
1025
|
} else {
|
|
994
1026
|
tmp_1 = false;
|
|
995
1027
|
}
|
|
996
1028
|
if (tmp_1) {
|
|
997
|
-
tmp_0 = !(expr.
|
|
1029
|
+
tmp_0 = !(expr.r1m_1 == null);
|
|
998
1030
|
} else {
|
|
999
1031
|
tmp_0 = false;
|
|
1000
1032
|
}
|
|
1001
1033
|
if (tmp_0) {
|
|
1002
|
-
var tmp0_safe_receiver = expr.
|
|
1034
|
+
var tmp0_safe_receiver = expr.r1m_1;
|
|
1003
1035
|
var tmp_2;
|
|
1004
1036
|
if (tmp0_safe_receiver == null) {
|
|
1005
1037
|
tmp_2 = null;
|
|
1006
1038
|
} else {
|
|
1007
1039
|
// Inline function 'kotlin.let' call
|
|
1008
|
-
tmp_2 = tr.
|
|
1040
|
+
tmp_2 = tr.l1v(tmp0_safe_receiver);
|
|
1009
1041
|
}
|
|
1010
|
-
tmp = new FieldCall(tmp_2, Companion_getInstance().
|
|
1042
|
+
tmp = new FieldCall(tmp_2, Companion_getInstance().x1g('toString'));
|
|
1011
1043
|
} else {
|
|
1012
1044
|
tmp = transformChildren_1(expr, tr);
|
|
1013
1045
|
}
|
|
@@ -1016,10 +1048,10 @@ function convertToStringCallsToFieldAccess$lambda(expr, tr) {
|
|
|
1016
1048
|
function appendClientServerObjects$lambda(it) {
|
|
1017
1049
|
var tmp;
|
|
1018
1050
|
if (it instanceof Literal) {
|
|
1019
|
-
tmp = it.
|
|
1051
|
+
tmp = it.tt_1;
|
|
1020
1052
|
} else {
|
|
1021
1053
|
if (it instanceof Param) {
|
|
1022
|
-
tmp = '{' + it.
|
|
1054
|
+
tmp = '{' + it.lq_1.m1() + '}';
|
|
1023
1055
|
} else {
|
|
1024
1056
|
noWhenBranchMatchedException();
|
|
1025
1057
|
}
|
|
@@ -1029,10 +1061,10 @@ function appendClientServerObjects$lambda(it) {
|
|
|
1029
1061
|
function appendClientServerObjects$lambda_0(segment) {
|
|
1030
1062
|
var tmp;
|
|
1031
1063
|
if (segment instanceof Literal) {
|
|
1032
|
-
tmp = 'Wirespec.Literal("' + segment.
|
|
1064
|
+
tmp = 'Wirespec.Literal("' + segment.tt_1 + '")';
|
|
1033
1065
|
} else {
|
|
1034
1066
|
if (segment instanceof Param) {
|
|
1035
|
-
tmp = 'Wirespec.Param("' + segment.
|
|
1067
|
+
tmp = 'Wirespec.Param("' + segment.lq_1.m1() + '", scala.reflect.classTag[' + toScalaTypeName(segment.mq_1) + '])';
|
|
1036
1068
|
} else {
|
|
1037
1069
|
noWhenBranchMatchedException();
|
|
1038
1070
|
}
|
|
@@ -1044,13 +1076,13 @@ function injectHandleFunction$lambda(element, transformer) {
|
|
|
1044
1076
|
if (element instanceof Interface) {
|
|
1045
1077
|
var tmp$ret$0;
|
|
1046
1078
|
$l$block: {
|
|
1047
|
-
if (!element.
|
|
1079
|
+
if (!element.e1o_1.equals(Companion_getInstance().x1g('Handler')) && !element.e1o_1.equals(Companion_getInstance().x1g('Call'))) {
|
|
1048
1080
|
tmp$ret$0 = element;
|
|
1049
1081
|
break $l$block;
|
|
1050
1082
|
}
|
|
1051
1083
|
var tmp0_typeParameters = listOf(new TypeParameter(Custom_init_$Create$('F[_]')));
|
|
1052
1084
|
// Inline function 'kotlin.collections.map' call
|
|
1053
|
-
var this_0 = element.
|
|
1085
|
+
var this_0 = element.f1o_1;
|
|
1054
1086
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1055
1087
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
1056
1088
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -1061,7 +1093,7 @@ function injectHandleFunction$lambda(element, transformer) {
|
|
|
1061
1093
|
if (tmp0_safe_receiver == null) {
|
|
1062
1094
|
tmp_0 = null;
|
|
1063
1095
|
} else {
|
|
1064
|
-
var tmp1_safe_receiver = item.
|
|
1096
|
+
var tmp1_safe_receiver = item.x1k_1;
|
|
1065
1097
|
var tmp_1;
|
|
1066
1098
|
if (tmp1_safe_receiver == null) {
|
|
1067
1099
|
tmp_1 = null;
|
|
@@ -1070,13 +1102,13 @@ function injectHandleFunction$lambda(element, transformer) {
|
|
|
1070
1102
|
tmp_1 = Custom_init_$Create$('F', listOf(tmp1_safe_receiver));
|
|
1071
1103
|
}
|
|
1072
1104
|
var tmp3_returnType = tmp_1;
|
|
1073
|
-
tmp_0 = tmp0_safe_receiver.
|
|
1105
|
+
tmp_0 = tmp0_safe_receiver.f1l(VOID, VOID, VOID, tmp3_returnType, VOID, false);
|
|
1074
1106
|
}
|
|
1075
1107
|
var tmp4_elvis_lhs = tmp_0;
|
|
1076
1108
|
var tmp$ret$3 = tmp4_elvis_lhs == null ? item : tmp4_elvis_lhs;
|
|
1077
1109
|
destination.x(tmp$ret$3);
|
|
1078
1110
|
}
|
|
1079
|
-
tmp$ret$0 = element.
|
|
1111
|
+
tmp$ret$0 = element.m1o(VOID, destination, VOID, VOID, tmp0_typeParameters);
|
|
1080
1112
|
}
|
|
1081
1113
|
tmp = tmp$ret$0;
|
|
1082
1114
|
} else {
|
|
@@ -1089,32 +1121,25 @@ function addIdentityTypeToCall$lambda(element, transformer) {
|
|
|
1089
1121
|
var tmp;
|
|
1090
1122
|
if (element instanceof Struct) {
|
|
1091
1123
|
// Inline function 'kotlin.collections.map' call
|
|
1092
|
-
var this_0 = element.
|
|
1124
|
+
var this_0 = element.v1p_1;
|
|
1093
1125
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1094
1126
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
1095
1127
|
var _iterator__ex2g4s = this_0.t();
|
|
1096
1128
|
while (_iterator__ex2g4s.u()) {
|
|
1097
1129
|
var item = _iterator__ex2g4s.v();
|
|
1098
|
-
|
|
1130
|
+
// Inline function 'kotlin.takeIf' call
|
|
1099
1131
|
var tmp_0;
|
|
1100
|
-
if (
|
|
1101
|
-
tmp_0 =
|
|
1132
|
+
if (endsWith(item.u1i_1.y1g(), '.Call')) {
|
|
1133
|
+
tmp_0 = item;
|
|
1102
1134
|
} else {
|
|
1103
|
-
|
|
1104
|
-
var tmp_1;
|
|
1105
|
-
if (endsWith(tmp0_safe_receiver.m1j_1.t1h(), '.Call')) {
|
|
1106
|
-
tmp_1 = tmp0_safe_receiver;
|
|
1107
|
-
} else {
|
|
1108
|
-
tmp_1 = null;
|
|
1109
|
-
}
|
|
1110
|
-
tmp_0 = tmp_1;
|
|
1135
|
+
tmp_0 = null;
|
|
1111
1136
|
}
|
|
1112
|
-
var
|
|
1113
|
-
var
|
|
1114
|
-
var tmp$ret$2 =
|
|
1137
|
+
var tmp0_safe_receiver = tmp_0;
|
|
1138
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.f1n(VOID, listOf(Custom_init_$Create$('[A] =>> A')));
|
|
1139
|
+
var tmp$ret$2 = tmp1_elvis_lhs == null ? item : tmp1_elvis_lhs;
|
|
1115
1140
|
destination.x(tmp$ret$2);
|
|
1116
1141
|
}
|
|
1117
|
-
tmp = element.
|
|
1142
|
+
tmp = element.d1q(VOID, VOID, VOID, destination);
|
|
1118
1143
|
} else {
|
|
1119
1144
|
tmp = element;
|
|
1120
1145
|
}
|
|
@@ -1122,9 +1147,9 @@ function addIdentityTypeToCall$lambda(element, transformer) {
|
|
|
1122
1147
|
return transformChildren_0(transformed, transformer);
|
|
1123
1148
|
}
|
|
1124
1149
|
//region block: post-declaration
|
|
1125
|
-
protoOf(ScalaIrEmitter).
|
|
1126
|
-
protoOf(ScalaIrEmitter).
|
|
1127
|
-
protoOf(ScalaIrEmitter).
|
|
1150
|
+
protoOf(ScalaIrEmitter).f1w = get_extensions;
|
|
1151
|
+
protoOf(ScalaIrEmitter).no = emit_0;
|
|
1152
|
+
protoOf(ScalaIrEmitter).g1w = emit_1;
|
|
1128
1153
|
//endregion
|
|
1129
1154
|
//region block: exports
|
|
1130
1155
|
export {
|