@flock/wirespec 0.21.1 → 0.22.1
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 +14 -14
- package/arrow-arrow-atomic.mjs.map +1 -1
- package/arrow-arrow-core.mjs +187 -182
- package/arrow-arrow-core.mjs.map +1 -1
- package/clikt-clikt-mordant.mjs +89 -89
- package/clikt-clikt-mordant.mjs.map +1 -1
- package/clikt-clikt.mjs +1704 -1706
- package/clikt-clikt.mjs.map +1 -1
- package/colormath-root-colormath.mjs +465 -465
- package/colormath-root-colormath.mjs.map +1 -1
- package/kotlin-kotlin-stdlib.mjs +2644 -2481
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +10373 -10346
- package/kotlin-openapi-bindings.mjs.map +1 -1
- package/kotlin-rgxgen.mjs +1851 -1855
- package/kotlin-rgxgen.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core.mjs +469 -469
- package/kotlinx-io-kotlinx-io-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +2038 -2046
- package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1859 -1813
- package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
- package/mordant-mordant.mjs +1452 -1447
- package/mordant-mordant.mjs.map +1 -1
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +25964 -3598
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-java.mjs +373 -469
- package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-kotlin.mjs +327 -382
- package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-python.mjs +355 -354
- package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-rust.mjs +756 -754
- package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-scala.mjs +361 -361
- package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-typescript.mjs +484 -472
- package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-wirespec.mjs +434 -153
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +978 -441
- package/wirespec-src-compiler-lib.mjs.map +1 -1
- package/wirespec-src-converter-asyncapi.mjs +5382 -0
- package/wirespec-src-converter-asyncapi.mjs.map +1 -0
- package/wirespec-src-converter-avro.mjs +1297 -725
- package/wirespec-src-converter-avro.mjs.map +1 -1
- package/wirespec-src-converter-common.mjs +267 -0
- package/wirespec-src-converter-common.mjs.map +1 -1
- package/wirespec-src-converter-graphql.mjs +5691 -0
- package/wirespec-src-converter-graphql.mjs.map +1 -0
- package/wirespec-src-converter-openapi.mjs +1304 -1225
- package/wirespec-src-converter-openapi.mjs.map +1 -1
- package/wirespec-src-ide-lsp.mjs +1728 -1642
- package/wirespec-src-ide-lsp.mjs.map +1 -1
- package/wirespec-src-plugin-arguments.mjs +301 -240
- package/wirespec-src-plugin-arguments.mjs.map +1 -1
- package/wirespec-src-plugin-cli.mjs +161 -133
- package/wirespec-src-plugin-cli.mjs.map +1 -1
- package/wirespec-src-plugin-npm.d.mts +216 -29
- package/wirespec-src-plugin-npm.mjs +188 -95
- package/wirespec-src-plugin-npm.mjs.map +1 -1
- package/wirespec-src-tools-generator.mjs +61 -53
- package/wirespec-src-tools-generator.mjs.map +1 -1
- package/wirespec-src-compiler-ir.mjs +0 -18912
- package/wirespec-src-compiler-ir.mjs.map +0 -1
|
@@ -3,15 +3,15 @@ import {
|
|
|
3
3
|
getPropertyCallableRef3hckxc0xueiaj as getPropertyCallableRef,
|
|
4
4
|
split2bvyvnrlcifjv as split,
|
|
5
5
|
collectionSizeOrDefault36dulx8yinfqm as collectionSizeOrDefault,
|
|
6
|
-
ArrayList_init_$Create$
|
|
6
|
+
ArrayList_init_$Create$2byt5m5yn22yy as ArrayList_init_$Create$,
|
|
7
7
|
checkIndexOverflow3frtmheghr0th as checkIndexOverflow,
|
|
8
|
-
|
|
8
|
+
Unit_instancev9v8hjid95df as Unit_instance,
|
|
9
9
|
joinToString1cxrrlmo0chqs as joinToString,
|
|
10
|
-
StringBuilder_init_$Create$
|
|
10
|
+
StringBuilder_init_$Create$3ds9zx2kx9u4d as StringBuilder_init_$Create$,
|
|
11
11
|
charSequenceLength3278n89t01tmv as charSequenceLength,
|
|
12
12
|
charSequenceGet1vxk1y5n17t1z as charSequenceGet,
|
|
13
13
|
isLetterOrDigit2kuxd9e198haf as isLetterOrDigit,
|
|
14
|
-
|
|
14
|
+
_Char___init__impl__6a9atx2gndcvjvc5pke as _Char___init__impl__6a9atx,
|
|
15
15
|
firstOrNulltrxqttxfxqju as firstOrNull,
|
|
16
16
|
isDigit3mimrri4wkzop as isDigit,
|
|
17
17
|
Char19o2r8palgjof as Char,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
toMap1vec9topfei08 as toMap,
|
|
23
23
|
emptyList1g2z5xcrvp2zy as emptyList,
|
|
24
24
|
VOID3gxj6tk5isa35 as VOID,
|
|
25
|
-
ArrayList_init_$Create$
|
|
25
|
+
ArrayList_init_$Create$37gc04va6yfo2 as ArrayList_init_$Create$_0,
|
|
26
26
|
Paire9pteg33gng7 as Pair,
|
|
27
27
|
plus310ted5e4i90h as plus,
|
|
28
28
|
setOf45ia9pnfhe90 as setOf,
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
endsWith3cq61xxngobwh as endsWith,
|
|
43
43
|
firstOrNull1982767dljvdy as firstOrNull_0,
|
|
44
44
|
ensureNotNull1e947j3ixpazm as ensureNotNull,
|
|
45
|
-
HashSet_init_$Create$
|
|
45
|
+
HashSet_init_$Create$2w31ptb4ree5i as HashSet_init_$Create$,
|
|
46
46
|
initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
|
|
47
47
|
trimMarginhyd3fsmh8iev as trimMargin,
|
|
48
48
|
singleo93pzdgfc557 as single,
|
|
@@ -50,112 +50,111 @@ import {
|
|
|
50
50
|
equals2au1ep9vhcato as equals,
|
|
51
51
|
} from './kotlin-kotlin-stdlib.mjs';
|
|
52
52
|
import {
|
|
53
|
-
|
|
53
|
+
Companion_instance27ueeez2qu1l as Companion_instance,
|
|
54
54
|
FieldIdentifier34k7iphndcnl0 as FieldIdentifier,
|
|
55
55
|
addBackticks1di5q03fw4yhx as addBackticks,
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
ScalaGenerator_getInstance1imy4g5e4y6qp as ScalaGenerator_getInstance,
|
|
57
|
+
Name1ijtblv1phm3y as Name,
|
|
58
|
+
FunctionCall1a3g4e6bcljl6 as FunctionCall,
|
|
59
|
+
transformChildren34heehtlmzzif as transformChildren,
|
|
60
|
+
sanitizeFieldName333wgwu6tt90n as sanitizeFieldName,
|
|
61
|
+
ConstructorStatement1edouznvc71xv as ConstructorStatement,
|
|
62
|
+
SanitizationConfigunh0ok3qg1q3 as SanitizationConfig,
|
|
63
|
+
Custom_init_$Create$kfegfgqdjj1p as Custom_init_$Create$,
|
|
64
|
+
String_instance2j5u8j0qc6lge as String_instance,
|
|
65
|
+
Reflect_instance2hvndzkpwulla as Reflect_instance,
|
|
66
|
+
Package1a6hdgk3p4frd as Package,
|
|
67
|
+
File12q75sqvz964e as File,
|
|
68
|
+
transformChildren14suh59vxsgt as transformChildren_0,
|
|
69
|
+
Companion_getInstance34fvro4h6bumb as Companion_getInstance,
|
|
70
|
+
Interface2g99rmjjt5ne as Interface,
|
|
71
|
+
Namespacex2gpe17ntoag as Namespace,
|
|
72
|
+
Main3fexakddcxfff as Main,
|
|
73
|
+
Enumoqsp4e7al89r as Enum,
|
|
74
|
+
Structakfq94wrq695 as Struct,
|
|
75
|
+
Companion_instance21vwhhqsaytqt as Companion_instance_0,
|
|
76
|
+
Companion_instance2oq66qbk0c5g8 as Companion_instance_1,
|
|
77
|
+
FileExtension_Scala_getInstance2u2efusiez9e8 as FileExtension_Scala_getInstance,
|
|
78
|
+
import3bym2b49e642p as import_0,
|
|
79
|
+
interface44jdw6t56okg as interface_0,
|
|
80
|
+
struct1gzvysjt73bn4 as struct,
|
|
81
|
+
convertClientServerdyft3utnhf92 as convertClientServer,
|
|
82
|
+
Array2vay9bq78aua1 as Array_0,
|
|
83
|
+
Field26remk4nlwax4 as Field,
|
|
84
|
+
convert37y165c07dvpq as convert,
|
|
85
|
+
TransformScope3fhztkr2eyk36 as TransformScope,
|
|
86
|
+
TransformerBuilder26pbjl5nmg6wa as TransformerBuilder,
|
|
87
|
+
transformhd96z3w1u5uc as transform,
|
|
88
|
+
Element3p1xrn21d2w4b as Element,
|
|
89
|
+
emit1w04jgbmswnni as emit,
|
|
90
|
+
prependImportslco5lco5if44 as prependImports,
|
|
91
|
+
placeInPackage3aq544c1svvop as placeInPackage,
|
|
92
|
+
convertToGenerator115obo0n49kco as convertToGenerator,
|
|
59
93
|
Unionccsavx6nrdr2 as Union,
|
|
94
|
+
convertToGenerator1x32vg5qdleq8 as convertToGenerator_0,
|
|
60
95
|
Refined1lkzc0dg6wey7 as Refined,
|
|
61
|
-
|
|
96
|
+
convertToGenerator33dm40iimoy3x as convertToGenerator_1,
|
|
97
|
+
Enum3l2iuc342kle6 as Enum_0,
|
|
98
|
+
convertToGenerator1arvbkvdv4bro as convertToGenerator_2,
|
|
62
99
|
Type12n1gx16iqtcu as Type,
|
|
100
|
+
sanitizeNames1v55mz1p84psg as sanitizeNames,
|
|
101
|
+
collectCustomTypeNames2atsrip288ol4 as collectCustomTypeNames,
|
|
102
|
+
placeInPackagea1jcxre6uf77 as placeInPackage_0,
|
|
103
|
+
convertWithValidation24mbxf4x2u6w4 as convertWithValidation,
|
|
104
|
+
ensureEmptyStructHasConstructorftf9v01tnb2y as ensureEmptyStructHasConstructor,
|
|
105
|
+
convert1ke01d6gmcvu7 as convert_0,
|
|
106
|
+
injectEnumLabelField21kogrwccvlea as injectEnumLabelField,
|
|
107
|
+
convert29zpebhuxz599 as convert_1,
|
|
108
|
+
convert39lmqftdnlhsy as convert_2,
|
|
109
|
+
markMembersAsOverridessfchvibgdcx as markMembersAsOverride,
|
|
110
|
+
convert333pgxr2q05n as convert_3,
|
|
111
|
+
convert86y6uioox2cl as convert_4,
|
|
112
|
+
convert1o5h4ulxoqycg as convert_5,
|
|
113
|
+
emitEndpointClient2og25opoka4ql as emitEndpointClient,
|
|
63
114
|
plus14o24vdaiongg as plus_1,
|
|
64
115
|
importReferencesy4xv7r53sjjs as importReferences,
|
|
116
|
+
emitClient1ucatfg1ovgb6 as emitClient,
|
|
117
|
+
get_extensions1p1y8uybwv35q as get_extensions,
|
|
118
|
+
emit2s9bv7yrx5jcs as emit_0,
|
|
119
|
+
emit3e40nagyc4qho as emit_1,
|
|
120
|
+
get_supportsDefaults2j8lo8mbv0egf as get_supportsDefaults,
|
|
121
|
+
IrEmitter2jy94gp21kviv as IrEmitter,
|
|
122
|
+
raw1mm1rmqheq474 as raw,
|
|
65
123
|
Unit2z95clvxm08vr as Unit,
|
|
66
124
|
Anyv7qdq63z63rc as Any,
|
|
67
125
|
Dict3g7w5wia7rncj as Dict,
|
|
68
126
|
Iterable29qbzfup67wqp as Iterable,
|
|
69
127
|
Custom1lu6o8txpimqz as Custom,
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
128
|
+
Bytes_instance1cqd1xiwjq94x as Bytes_instance,
|
|
129
|
+
Boolean_instance15wa4iqeayn6f as Boolean_instance,
|
|
130
|
+
Precision_P32_getInstance1wn9hty3a2xeu as Precision_P32_getInstance,
|
|
73
131
|
Number1mui0heypwdhp as Number_0,
|
|
74
132
|
Integer39lqx4uc63u28 as Integer,
|
|
75
133
|
String1czvr8pxnm6on as String_0,
|
|
76
134
|
Primitive1i8my14jkp3nk as Primitive,
|
|
135
|
+
transformChildren21ucrga4lv4sn as transformChildren_1,
|
|
136
|
+
FieldCall2nusnrnm7uuow as FieldCall,
|
|
77
137
|
Paramvfwnys2w6aj1 as Param,
|
|
78
138
|
Literal331hu9r04vptz as Literal,
|
|
139
|
+
TypeParameter31flcv4tnuq1v as TypeParameter,
|
|
140
|
+
Function1wme41sk2huri as Function,
|
|
79
141
|
} from './wirespec-src-compiler-core.mjs';
|
|
80
|
-
import {
|
|
81
|
-
ScalaGenerator_getInstance3tda4hcloy1pr as ScalaGenerator_getInstance,
|
|
82
|
-
Nameoqr8dt2fim9d as Name,
|
|
83
|
-
FunctionCall30872kpnbr7op as FunctionCall,
|
|
84
|
-
transformChildren2mszeagj5nq4c as transformChildren,
|
|
85
|
-
sanitizeFieldName1ptgy1kxy8u2m as sanitizeFieldName,
|
|
86
|
-
ConstructorStatement1x4n4sr59iy4n as ConstructorStatement,
|
|
87
|
-
SanitizationConfig11mmn3p2c03c1 as SanitizationConfig,
|
|
88
|
-
Custom_init_$Create$2enn7oyj71j1t as Custom_init_$Create$,
|
|
89
|
-
String_instance3uxvo48ki208u as String_instance,
|
|
90
|
-
Reflect_instance3i17lxiopj78t as Reflect_instance,
|
|
91
|
-
Package2tniq694j1763 as Package,
|
|
92
|
-
File3dimy4iqmuock as File,
|
|
93
|
-
transformChildrend9p91tpcqdkx as transformChildren_0,
|
|
94
|
-
Companion_getInstance3gvtuyxc9uhxj as Companion_getInstance,
|
|
95
|
-
Interface3pn84xq686t2r as Interface,
|
|
96
|
-
Namespace345pal554qu3j as Namespace,
|
|
97
|
-
Mainb4yvz4x0nrxd as Main,
|
|
98
|
-
Enumlszg09mwd24f as Enum_0,
|
|
99
|
-
Struct39wf79cwtn4ty as Struct,
|
|
100
|
-
import5uhkz67bd8tt as import_0,
|
|
101
|
-
interface24qlavvm81r6z as interface_0,
|
|
102
|
-
structo1silz79n3nu as struct,
|
|
103
|
-
convertClientServer1346neky3bhls as convertClientServer,
|
|
104
|
-
Array2goj74t0aak7b as Array_0,
|
|
105
|
-
Field354s1ceh5pvhf as Field,
|
|
106
|
-
convertnty9x0e63d0u as convert,
|
|
107
|
-
TransformScopeyrd3lf4zrk76 as TransformScope,
|
|
108
|
-
TransformerBuildera6a1gvlhjj9b as TransformerBuilder,
|
|
109
|
-
transform3eti8i2bqvifx as transform,
|
|
110
|
-
Elementitq62jg6fid3 as Element,
|
|
111
|
-
emitn3eihixilqyh as emit,
|
|
112
|
-
prependImports32gcj3yb8voha as prependImports,
|
|
113
|
-
placeInPackage1ffljbk9me4ug as placeInPackage,
|
|
114
|
-
convertToGenerator2wzjrmaavxhph as convertToGenerator,
|
|
115
|
-
convertToGeneratorkggw47cqose7 as convertToGenerator_0,
|
|
116
|
-
convertToGenerator3rjr3azp4vdsx as convertToGenerator_1,
|
|
117
|
-
convertToGenerator2msmr3acdd5nx as convertToGenerator_2,
|
|
118
|
-
sanitizeNames2wqmyf8vafp9x as sanitizeNames,
|
|
119
|
-
collectCustomTypeNames373f3lwl9sqd5 as collectCustomTypeNames,
|
|
120
|
-
placeInPackagena6oqbi45fz6 as placeInPackage_0,
|
|
121
|
-
convertWithValidation3ar3nbcqsbkpn as convertWithValidation,
|
|
122
|
-
ensureEmptyStructHasConstructorfl467argh9dd as ensureEmptyStructHasConstructor,
|
|
123
|
-
convert11ert2po54h1y as convert_0,
|
|
124
|
-
injectEnumLabelFieldyfohidz6c88i as injectEnumLabelField,
|
|
125
|
-
convert37aabdzvtv9vg as convert_1,
|
|
126
|
-
convert17zcptkz4mhr4 as convert_2,
|
|
127
|
-
markMembersAsOverride3r1zpft8nbmxg as markMembersAsOverride,
|
|
128
|
-
convert32tuiui3czihh as convert_3,
|
|
129
|
-
convert1cn4bolzoed8c as convert_4,
|
|
130
|
-
convert3ewo9inue7gua as convert_5,
|
|
131
|
-
emitEndpointClient1meajc90wf3el as emitEndpointClient,
|
|
132
|
-
emitClient32kfwzg2hm5vj as emitClient,
|
|
133
|
-
get_extensions31c4or738wbxz as get_extensions,
|
|
134
|
-
emit1oxjujel6f3jb as emit_0,
|
|
135
|
-
emit3bzdcd0f6nwtj as emit_1,
|
|
136
|
-
IrEmitterh2m93ojzvkep as IrEmitter,
|
|
137
|
-
rawttvqxl50flj9 as raw,
|
|
138
|
-
transformChildren3n5cjwmxlhwx9 as transformChildren_1,
|
|
139
|
-
FieldCall1iz7z2fx2xo4p as FieldCall,
|
|
140
|
-
TypeParameter1x56bawg1pg87 as TypeParameter,
|
|
141
|
-
Function21cuq8qizkin7 as Function,
|
|
142
|
-
} from './wirespec-src-compiler-ir.mjs';
|
|
143
142
|
//region block: imports
|
|
144
143
|
//endregion
|
|
145
144
|
//region block: pre-declaration
|
|
146
145
|
initMetadataForCompanion(Companion);
|
|
147
|
-
initMetadataForClass(
|
|
146
|
+
initMetadataForClass(ScalaEmitter, 'ScalaEmitter', ScalaEmitter, VOID, [IrEmitter]);
|
|
148
147
|
//endregion
|
|
149
148
|
function _get_sanitizationConfig__sns434($this) {
|
|
150
|
-
var tmp0 = $this.
|
|
149
|
+
var tmp0 = $this.p21_1;
|
|
151
150
|
var tmp = KProperty1;
|
|
152
151
|
// Inline function 'kotlin.getValue' call
|
|
153
|
-
getPropertyCallableRef('sanitizationConfig', 1, tmp,
|
|
154
|
-
return tmp0.
|
|
152
|
+
getPropertyCallableRef('sanitizationConfig', 1, tmp, ScalaEmitter$_get_sanitizationConfig_$ref_u7mbyd(), null);
|
|
153
|
+
return tmp0.o1();
|
|
155
154
|
}
|
|
156
|
-
function sanitize($this,
|
|
155
|
+
function sanitize($this, $receiver) {
|
|
157
156
|
// Inline function 'kotlin.collections.mapIndexed' call
|
|
158
|
-
var this_0 = split(
|
|
157
|
+
var this_0 = split($receiver.o1(), ['.', ' ']);
|
|
159
158
|
// Inline function 'kotlin.collections.mapIndexedTo' call
|
|
160
159
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
161
160
|
var index = 0;
|
|
@@ -164,8 +163,8 @@ function sanitize($this, _this__u8e3s4) {
|
|
|
164
163
|
var item = _iterator__ex2g4s.v();
|
|
165
164
|
var _unary__edvuaz = index;
|
|
166
165
|
index = _unary__edvuaz + 1 | 0;
|
|
167
|
-
var tmp$ret$
|
|
168
|
-
destination.x(tmp$ret$
|
|
166
|
+
var tmp$ret$2 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance.xr(item) : item;
|
|
167
|
+
destination.x(tmp$ret$2);
|
|
169
168
|
}
|
|
170
169
|
// Inline function 'kotlin.text.filter' call
|
|
171
170
|
var tmp0 = joinToString(destination, '');
|
|
@@ -183,20 +182,20 @@ function sanitize($this, _this__u8e3s4) {
|
|
|
183
182
|
}
|
|
184
183
|
}
|
|
185
184
|
while (inductionVariable < last);
|
|
186
|
-
var tmp$ret$
|
|
185
|
+
var tmp$ret$3 = destination_0.toString();
|
|
187
186
|
// Inline function 'kotlin.let' call
|
|
188
|
-
var it = sanitizeFirstIsDigit($this, tmp$ret$
|
|
187
|
+
var it = sanitizeFirstIsDigit($this, tmp$ret$3);
|
|
189
188
|
var tmp;
|
|
190
|
-
if (
|
|
189
|
+
if ($receiver instanceof FieldIdentifier) {
|
|
191
190
|
tmp = sanitizeKeywords($this, it);
|
|
192
191
|
} else {
|
|
193
192
|
tmp = it;
|
|
194
193
|
}
|
|
195
194
|
return tmp;
|
|
196
195
|
}
|
|
197
|
-
function sanitizeFirstIsDigit($this,
|
|
196
|
+
function sanitizeFirstIsDigit($this, $receiver) {
|
|
198
197
|
var tmp;
|
|
199
|
-
var tmp0_safe_receiver = firstOrNull(
|
|
198
|
+
var tmp0_safe_receiver = firstOrNull($receiver);
|
|
200
199
|
var tmp_0;
|
|
201
200
|
var tmp_1 = tmp0_safe_receiver;
|
|
202
201
|
if ((tmp_1 == null ? null : new Char(tmp_1)) == null) {
|
|
@@ -205,18 +204,18 @@ function sanitizeFirstIsDigit($this, _this__u8e3s4) {
|
|
|
205
204
|
tmp_0 = isDigit(tmp0_safe_receiver);
|
|
206
205
|
}
|
|
207
206
|
if (tmp_0 === true) {
|
|
208
|
-
tmp = '_' +
|
|
207
|
+
tmp = '_' + $receiver;
|
|
209
208
|
} else {
|
|
210
|
-
tmp =
|
|
209
|
+
tmp = $receiver;
|
|
211
210
|
}
|
|
212
211
|
return tmp;
|
|
213
212
|
}
|
|
214
|
-
function sanitizeKeywords($this,
|
|
215
|
-
return Companion_getInstance_0().
|
|
213
|
+
function sanitizeKeywords($this, $receiver) {
|
|
214
|
+
return Companion_getInstance_0().r1z().i1($receiver) ? addBackticks($receiver) : $receiver;
|
|
216
215
|
}
|
|
217
|
-
function sanitizeSymbol($this,
|
|
216
|
+
function sanitizeSymbol($this, $receiver) {
|
|
218
217
|
// Inline function 'kotlin.collections.mapIndexed' call
|
|
219
|
-
var this_0 = split(
|
|
218
|
+
var this_0 = split($receiver, ['.', ' ', '-']);
|
|
220
219
|
// Inline function 'kotlin.collections.mapIndexedTo' call
|
|
221
220
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
222
221
|
var index = 0;
|
|
@@ -225,8 +224,8 @@ function sanitizeSymbol($this, _this__u8e3s4) {
|
|
|
225
224
|
var item = _iterator__ex2g4s.v();
|
|
226
225
|
var _unary__edvuaz = index;
|
|
227
226
|
index = _unary__edvuaz + 1 | 0;
|
|
228
|
-
var tmp$ret$
|
|
229
|
-
destination.x(tmp$ret$
|
|
227
|
+
var tmp$ret$2 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance.xr(item) : item;
|
|
228
|
+
destination.x(tmp$ret$2);
|
|
230
229
|
}
|
|
231
230
|
// Inline function 'kotlin.text.filter' call
|
|
232
231
|
var tmp0 = joinToString(destination, '');
|
|
@@ -244,18 +243,18 @@ function sanitizeSymbol($this, _this__u8e3s4) {
|
|
|
244
243
|
}
|
|
245
244
|
}
|
|
246
245
|
while (inductionVariable < last);
|
|
247
|
-
var tmp$ret$
|
|
248
|
-
return sanitizeFirstIsDigit($this, tmp$ret$
|
|
246
|
+
var tmp$ret$3 = destination_0.toString();
|
|
247
|
+
return sanitizeFirstIsDigit($this, tmp$ret$3);
|
|
249
248
|
}
|
|
250
|
-
function sanitizeEnum($this,
|
|
251
|
-
return sanitizeKeywords($this, sanitizeFirstIsDigit($this, joinToString(split(
|
|
249
|
+
function sanitizeEnum($this, $receiver) {
|
|
250
|
+
return sanitizeKeywords($this, sanitizeFirstIsDigit($this, joinToString(split($receiver, ['-', ', ', '.', ' ', '//']), '_')));
|
|
252
251
|
}
|
|
253
252
|
function Companion() {
|
|
254
253
|
Companion_instance_2 = this;
|
|
255
|
-
this.
|
|
254
|
+
this.q21_1 = ScalaGenerator_getInstance();
|
|
256
255
|
}
|
|
257
|
-
protoOf(Companion).
|
|
258
|
-
return this.
|
|
256
|
+
protoOf(Companion).r1z = function () {
|
|
257
|
+
return this.q21_1.p1a_1;
|
|
259
258
|
};
|
|
260
259
|
var Companion_instance_2;
|
|
261
260
|
function Companion_getInstance_0() {
|
|
@@ -263,52 +262,52 @@ function Companion_getInstance_0() {
|
|
|
263
262
|
new Companion();
|
|
264
263
|
return Companion_instance_2;
|
|
265
264
|
}
|
|
266
|
-
function
|
|
265
|
+
function ScalaEmitter$sanitizationConfig$delegate$lambda$lambda(it) {
|
|
267
266
|
return addBackticks(it);
|
|
268
267
|
}
|
|
269
|
-
function
|
|
268
|
+
function ScalaEmitter$sanitizationConfig$delegate$lambda$lambda_0(this$0) {
|
|
270
269
|
return function (name) {
|
|
271
|
-
var sanitized = name.
|
|
270
|
+
var sanitized = name.tt_1.b1() > 1 ? name.xt() : sanitizeSymbol(this$0, name.wt());
|
|
272
271
|
return new Name(listOf(sanitized));
|
|
273
272
|
};
|
|
274
273
|
}
|
|
275
|
-
function
|
|
274
|
+
function ScalaEmitter$sanitizationConfig$delegate$lambda$lambda_1(this$0) {
|
|
276
275
|
return function (name) {
|
|
277
|
-
return new Name(listOf(sanitizeSymbol(this$0, name.
|
|
276
|
+
return new Name(listOf(sanitizeSymbol(this$0, name.xt())));
|
|
278
277
|
};
|
|
279
278
|
}
|
|
280
|
-
function
|
|
279
|
+
function ScalaEmitter$sanitizationConfig$delegate$lambda$lambda_2(this$0) {
|
|
281
280
|
return function (it) {
|
|
282
281
|
return sanitizeSymbol(this$0, it);
|
|
283
282
|
};
|
|
284
283
|
}
|
|
285
|
-
function
|
|
284
|
+
function ScalaEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
|
|
286
285
|
return function (stmt, tr) {
|
|
287
286
|
var tmp;
|
|
288
287
|
var tmp_0;
|
|
289
288
|
if (stmt instanceof FunctionCall) {
|
|
290
|
-
tmp_0 = stmt.
|
|
289
|
+
tmp_0 = stmt.du_1.wt() === 'validate';
|
|
291
290
|
} else {
|
|
292
291
|
tmp_0 = false;
|
|
293
292
|
}
|
|
294
293
|
if (tmp_0) {
|
|
295
|
-
tmp = transformChildren(stmt.
|
|
294
|
+
tmp = transformChildren(stmt.hu(VOID, emptyList()), tr);
|
|
296
295
|
} else {
|
|
297
296
|
if (stmt instanceof ConstructorStatement) {
|
|
298
|
-
var tmp_1 = tr.
|
|
297
|
+
var tmp_1 = tr.l17(stmt.cv_1);
|
|
299
298
|
// Inline function 'kotlin.collections.map' call
|
|
300
|
-
var this_0 = stmt.
|
|
299
|
+
var this_0 = stmt.dv_1;
|
|
301
300
|
// Inline function 'kotlin.collections.mapTo' call
|
|
302
301
|
var destination = ArrayList_init_$Create$(this_0.b1());
|
|
303
302
|
// Inline function 'kotlin.collections.iterator' call
|
|
304
|
-
var _iterator__ex2g4s = this_0.
|
|
303
|
+
var _iterator__ex2g4s = this_0.m1().t();
|
|
305
304
|
while (_iterator__ex2g4s.u()) {
|
|
306
305
|
var item = _iterator__ex2g4s.v();
|
|
307
306
|
// Inline function 'kotlin.collections.component1' call
|
|
308
|
-
var name = item.
|
|
307
|
+
var name = item.n1();
|
|
309
308
|
// Inline function 'kotlin.collections.component2' call
|
|
310
|
-
var expr = item.
|
|
311
|
-
var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), name), tr.
|
|
309
|
+
var expr = item.o1();
|
|
310
|
+
var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), name), tr.o17(expr));
|
|
312
311
|
destination.x(tmp$ret$3);
|
|
313
312
|
}
|
|
314
313
|
tmp = new ConstructorStatement(tmp_1, toMap(destination));
|
|
@@ -319,37 +318,37 @@ function ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
|
|
|
319
318
|
return tmp;
|
|
320
319
|
};
|
|
321
320
|
}
|
|
322
|
-
function
|
|
321
|
+
function ScalaEmitter$sanitizationConfig$delegate$lambda(this$0) {
|
|
323
322
|
return function () {
|
|
324
|
-
var tmp = Companion_getInstance_0().
|
|
325
|
-
var tmp_0 =
|
|
326
|
-
var tmp_1 =
|
|
327
|
-
var tmp_2 =
|
|
328
|
-
var tmp_3 =
|
|
329
|
-
return new SanitizationConfig(tmp, tmp_0, tmp_1, tmp_2, tmp_3,
|
|
323
|
+
var tmp = Companion_getInstance_0().r1z();
|
|
324
|
+
var tmp_0 = ScalaEmitter$sanitizationConfig$delegate$lambda$lambda;
|
|
325
|
+
var tmp_1 = ScalaEmitter$sanitizationConfig$delegate$lambda$lambda_0(this$0);
|
|
326
|
+
var tmp_2 = ScalaEmitter$sanitizationConfig$delegate$lambda$lambda_1(this$0);
|
|
327
|
+
var tmp_3 = ScalaEmitter$sanitizationConfig$delegate$lambda$lambda_2(this$0);
|
|
328
|
+
return new SanitizationConfig(tmp, tmp_0, tmp_1, tmp_2, tmp_3, ScalaEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0));
|
|
330
329
|
};
|
|
331
330
|
}
|
|
332
|
-
function
|
|
331
|
+
function ScalaEmitter$_get_sanitizationConfig_$ref_u7mbyd() {
|
|
333
332
|
return function (p0) {
|
|
334
333
|
return _get_sanitizationConfig__sns434(p0);
|
|
335
334
|
};
|
|
336
335
|
}
|
|
337
|
-
function
|
|
338
|
-
$this$struct.
|
|
339
|
-
$this$struct.
|
|
336
|
+
function ScalaEmitter$emitShared$lambda($this$struct) {
|
|
337
|
+
$this$struct.q14(Custom_init_$Create$('PathSegment'));
|
|
338
|
+
$this$struct.s14('value', String_instance);
|
|
340
339
|
return Unit_instance;
|
|
341
340
|
}
|
|
342
|
-
function
|
|
343
|
-
$this$struct.
|
|
344
|
-
$this$struct.
|
|
345
|
-
$this$struct.
|
|
341
|
+
function ScalaEmitter$emitShared$lambda_0($this$struct) {
|
|
342
|
+
$this$struct.q14(Custom_init_$Create$('PathSegment'));
|
|
343
|
+
$this$struct.s14('name', String_instance);
|
|
344
|
+
$this$struct.s14('type', Reflect_instance);
|
|
346
345
|
return Unit_instance;
|
|
347
346
|
}
|
|
348
|
-
function
|
|
347
|
+
function ScalaEmitter$emitShared$lambda_1(element, transformer) {
|
|
349
348
|
var tmp;
|
|
350
349
|
if (element instanceof File) {
|
|
351
350
|
// Inline function 'kotlin.collections.partition' call
|
|
352
|
-
var this_0 = element.
|
|
351
|
+
var this_0 = element.hv_1;
|
|
353
352
|
var first = ArrayList_init_$Create$_0();
|
|
354
353
|
var second = ArrayList_init_$Create$_0();
|
|
355
354
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -362,45 +361,45 @@ function ScalaIrEmitter$emitShared$lambda_1(element, transformer) {
|
|
|
362
361
|
}
|
|
363
362
|
}
|
|
364
363
|
var _destruct__k2r9zo = new Pair(first, second);
|
|
365
|
-
var packageElements = _destruct__k2r9zo.
|
|
366
|
-
var rest = _destruct__k2r9zo.
|
|
367
|
-
tmp = element.
|
|
364
|
+
var packageElements = _destruct__k2r9zo.ye();
|
|
365
|
+
var rest = _destruct__k2r9zo.ze();
|
|
366
|
+
tmp = element.kv(VOID, plus(packageElements, rest));
|
|
368
367
|
} else {
|
|
369
368
|
tmp = element;
|
|
370
369
|
}
|
|
371
370
|
var transformed = tmp;
|
|
372
371
|
return transformChildren_0(transformed, transformer);
|
|
373
372
|
}
|
|
374
|
-
function
|
|
373
|
+
function ScalaEmitter$emitShared$lambda_2(element, transformer) {
|
|
375
374
|
var tmp;
|
|
376
375
|
if (element instanceof Namespace) {
|
|
377
376
|
var tmp$ret$0;
|
|
378
377
|
$l$block: {
|
|
379
|
-
if (!element.
|
|
378
|
+
if (!element.mv_1.equals(Companion_getInstance().vt('Wirespec'))) {
|
|
380
379
|
tmp$ret$0 = element;
|
|
381
380
|
break $l$block;
|
|
382
381
|
}
|
|
383
382
|
// Inline function 'kotlin.collections.flatMap' call
|
|
384
|
-
var tmp0 = element.
|
|
383
|
+
var tmp0 = element.nv_1;
|
|
385
384
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
386
385
|
var destination = ArrayList_init_$Create$_0();
|
|
387
386
|
var _iterator__ex2g4s = tmp0.t();
|
|
388
387
|
while (_iterator__ex2g4s.u()) {
|
|
389
388
|
var element_0 = _iterator__ex2g4s.v();
|
|
390
|
-
var tmp$ret$
|
|
389
|
+
var tmp$ret$3;
|
|
391
390
|
$l$block_2: {
|
|
392
391
|
var tmp_0;
|
|
393
392
|
if (!(element_0 instanceof Interface)) {
|
|
394
393
|
tmp_0 = true;
|
|
395
394
|
} else {
|
|
396
|
-
tmp_0 = !setOf(['Request', 'Response']).
|
|
395
|
+
tmp_0 = !setOf(['Request', 'Response']).i1(element_0.sv_1.yt());
|
|
397
396
|
}
|
|
398
397
|
if (tmp_0) {
|
|
399
|
-
tmp$ret$
|
|
398
|
+
tmp$ret$3 = listOf(element_0);
|
|
400
399
|
break $l$block_2;
|
|
401
400
|
}
|
|
402
401
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
403
|
-
var tmp0_0 = element_0.
|
|
402
|
+
var tmp0_0 = element_0.tv_1;
|
|
404
403
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
405
404
|
var destination_0 = ArrayList_init_$Create$_0();
|
|
406
405
|
var _iterator__ex2g4s_0 = tmp0_0.t();
|
|
@@ -410,31 +409,31 @@ function ScalaIrEmitter$emitShared$lambda_2(element, transformer) {
|
|
|
410
409
|
destination_0.x(element_1);
|
|
411
410
|
}
|
|
412
411
|
}
|
|
413
|
-
var tmp$ret$
|
|
412
|
+
var tmp$ret$6;
|
|
414
413
|
$l$block_1: {
|
|
415
414
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
416
415
|
var _iterator__ex2g4s_1 = destination_0.t();
|
|
417
416
|
while (_iterator__ex2g4s_1.u()) {
|
|
418
417
|
var element_2 = _iterator__ex2g4s_1.v();
|
|
419
|
-
if (element_2.
|
|
420
|
-
tmp$ret$
|
|
418
|
+
if (element_2.sv_1.yt() === 'Headers') {
|
|
419
|
+
tmp$ret$6 = element_2;
|
|
421
420
|
break $l$block_1;
|
|
422
421
|
}
|
|
423
422
|
}
|
|
424
|
-
tmp$ret$
|
|
423
|
+
tmp$ret$6 = null;
|
|
425
424
|
}
|
|
426
|
-
var tmp0_elvis_lhs = tmp$ret$
|
|
425
|
+
var tmp0_elvis_lhs = tmp$ret$6;
|
|
427
426
|
var tmp_1;
|
|
428
427
|
if (tmp0_elvis_lhs == null) {
|
|
429
|
-
tmp$ret$
|
|
428
|
+
tmp$ret$3 = listOf(element_0);
|
|
430
429
|
break $l$block_2;
|
|
431
430
|
} else {
|
|
432
431
|
tmp_1 = tmp0_elvis_lhs;
|
|
433
432
|
}
|
|
434
433
|
var nestedHeaders = tmp_1;
|
|
435
|
-
var tmp_2 = new Namespace(element_0.
|
|
434
|
+
var tmp_2 = new Namespace(element_0.sv_1, listOf(nestedHeaders));
|
|
436
435
|
// Inline function 'kotlin.collections.filter' call
|
|
437
|
-
var tmp0_1 = element_0.
|
|
436
|
+
var tmp0_1 = element_0.tv_1;
|
|
438
437
|
// Inline function 'kotlin.collections.filterTo' call
|
|
439
438
|
var destination_1 = ArrayList_init_$Create$_0();
|
|
440
439
|
var _iterator__ex2g4s_2 = tmp0_1.t();
|
|
@@ -442,7 +441,7 @@ function ScalaIrEmitter$emitShared$lambda_2(element, transformer) {
|
|
|
442
441
|
var element_3 = _iterator__ex2g4s_2.v();
|
|
443
442
|
var tmp_3;
|
|
444
443
|
if (element_3 instanceof Interface) {
|
|
445
|
-
tmp_3 = element_3.
|
|
444
|
+
tmp_3 = element_3.sv_1.yt() === 'Headers';
|
|
446
445
|
} else {
|
|
447
446
|
tmp_3 = false;
|
|
448
447
|
}
|
|
@@ -452,28 +451,28 @@ function ScalaIrEmitter$emitShared$lambda_2(element, transformer) {
|
|
|
452
451
|
}
|
|
453
452
|
var tmp_4 = destination_1;
|
|
454
453
|
// Inline function 'kotlin.collections.map' call
|
|
455
|
-
var this_0 = element_0.
|
|
454
|
+
var this_0 = element_0.xv_1;
|
|
456
455
|
// Inline function 'kotlin.collections.mapTo' call
|
|
457
456
|
var destination_2 = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
458
457
|
var _iterator__ex2g4s_3 = this_0.t();
|
|
459
458
|
while (_iterator__ex2g4s_3.u()) {
|
|
460
459
|
var item = _iterator__ex2g4s_3.v();
|
|
461
460
|
var tmp_5;
|
|
462
|
-
if (item.
|
|
463
|
-
tmp_5 = item.
|
|
461
|
+
if (item.bw_1.wt() === 'headers') {
|
|
462
|
+
tmp_5 = item.lw(VOID, Custom_init_$Create$(element_0.sv_1.yt() + '.Headers'));
|
|
464
463
|
} else {
|
|
465
464
|
tmp_5 = item;
|
|
466
465
|
}
|
|
467
|
-
var tmp$ret$
|
|
468
|
-
destination_2.x(tmp$ret$
|
|
466
|
+
var tmp$ret$13 = tmp_5;
|
|
467
|
+
destination_2.x(tmp$ret$13);
|
|
469
468
|
}
|
|
470
|
-
tmp$ret$
|
|
469
|
+
tmp$ret$3 = listOf_0([tmp_2, element_0.aw(VOID, tmp_4, VOID, VOID, VOID, destination_2)]);
|
|
471
470
|
}
|
|
472
|
-
var list = tmp$ret$
|
|
471
|
+
var list = tmp$ret$3;
|
|
473
472
|
addAll(destination, list);
|
|
474
473
|
}
|
|
475
474
|
var newElements = destination;
|
|
476
|
-
tmp$ret$0 = element.
|
|
475
|
+
tmp$ret$0 = element.rv(VOID, newElements);
|
|
477
476
|
}
|
|
478
477
|
tmp = tmp$ret$0;
|
|
479
478
|
} else {
|
|
@@ -482,31 +481,31 @@ function ScalaIrEmitter$emitShared$lambda_2(element, transformer) {
|
|
|
482
481
|
var transformed = tmp;
|
|
483
482
|
return transformChildren_0(transformed, transformer);
|
|
484
483
|
}
|
|
485
|
-
function
|
|
484
|
+
function ScalaEmitter$emitShared$lambda_3($clientServer) {
|
|
486
485
|
return function (element, transformer) {
|
|
487
486
|
var tmp;
|
|
488
487
|
if (element instanceof Namespace) {
|
|
489
|
-
var injected = element.
|
|
488
|
+
var injected = element.mv_1.equals(Companion_getInstance().vt('Wirespec')) ? $clientServer : emptyList();
|
|
490
489
|
var tmp_0;
|
|
491
490
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
492
491
|
if (!injected.r()) {
|
|
493
|
-
// Inline function 'community.flock.wirespec.
|
|
494
|
-
var elements = plus(element.
|
|
492
|
+
// Inline function 'community.flock.wirespec.compiler.core.ir.withElements' call
|
|
493
|
+
var elements = plus(element.iv(), injected);
|
|
495
494
|
var tmp_1;
|
|
496
495
|
if (element instanceof File) {
|
|
497
|
-
tmp_1 = element.
|
|
496
|
+
tmp_1 = element.kv(VOID, elements);
|
|
498
497
|
} else {
|
|
499
498
|
if (element instanceof Struct) {
|
|
500
|
-
tmp_1 = element.
|
|
499
|
+
tmp_1 = element.rx(VOID, VOID, VOID, VOID, elements);
|
|
501
500
|
} else {
|
|
502
501
|
if (element instanceof Namespace) {
|
|
503
|
-
tmp_1 = element.
|
|
502
|
+
tmp_1 = element.rv(VOID, elements);
|
|
504
503
|
} else {
|
|
505
504
|
if (element instanceof Interface) {
|
|
506
|
-
tmp_1 = element.
|
|
505
|
+
tmp_1 = element.aw(VOID, elements);
|
|
507
506
|
} else {
|
|
508
|
-
if (element instanceof
|
|
509
|
-
tmp_1 = element.
|
|
507
|
+
if (element instanceof Enum) {
|
|
508
|
+
tmp_1 = element.fx(VOID, VOID, VOID, VOID, VOID, elements);
|
|
510
509
|
} else {
|
|
511
510
|
if (element instanceof Main) {
|
|
512
511
|
tmp_1 = element;
|
|
@@ -531,51 +530,51 @@ function ScalaIrEmitter$emitShared$lambda_3($clientServer) {
|
|
|
531
530
|
return transformChildren_0(transformed, transformer);
|
|
532
531
|
};
|
|
533
532
|
}
|
|
534
|
-
function
|
|
533
|
+
function ScalaEmitter$emitGenerator$lambda(it) {
|
|
535
534
|
return startsWith(it, 'Wirespec.') || it === 'Wirespec';
|
|
536
535
|
}
|
|
537
|
-
function
|
|
536
|
+
function ScalaEmitter$emitGenerator$lambda_0($generatorOwnName) {
|
|
538
537
|
return function (it) {
|
|
539
538
|
return it === $generatorOwnName;
|
|
540
539
|
};
|
|
541
540
|
}
|
|
542
|
-
function
|
|
541
|
+
function ScalaEmitter$emitGenerator$lambda_1(it) {
|
|
543
542
|
return substringBefore(it, _Char___init__impl__6a9atx(60));
|
|
544
543
|
}
|
|
545
|
-
function
|
|
544
|
+
function ScalaEmitter$emit$lambda(this$0) {
|
|
546
545
|
return function (it) {
|
|
547
546
|
return sanitizeEnum(this$0, it);
|
|
548
547
|
};
|
|
549
548
|
}
|
|
550
|
-
function
|
|
549
|
+
function ScalaEmitter(packageName, emitShared) {
|
|
551
550
|
Companion_getInstance_0();
|
|
552
|
-
packageName = packageName === VOID ? Companion_instance_0.
|
|
553
|
-
emitShared = emitShared === VOID ? Companion_instance_1.
|
|
554
|
-
this.
|
|
555
|
-
this.
|
|
556
|
-
this.
|
|
557
|
-
this.
|
|
558
|
-
this.
|
|
551
|
+
packageName = packageName === VOID ? Companion_instance_0.zs('community.flock.wirespec.generated') : packageName;
|
|
552
|
+
emitShared = emitShared === VOID ? Companion_instance_1.eq() : emitShared;
|
|
553
|
+
this.k21_1 = packageName;
|
|
554
|
+
this.l21_1 = emitShared;
|
|
555
|
+
this.m21_1 = ScalaGenerator_getInstance();
|
|
556
|
+
this.n21_1 = FileExtension_Scala_getInstance();
|
|
557
|
+
this.o21_1 = listOf_0([import_0('community.flock.wirespec.scala', 'Wirespec'), import_0('scala.reflect', 'ClassTag')]);
|
|
559
558
|
var tmp = this;
|
|
560
|
-
tmp.
|
|
559
|
+
tmp.p21_1 = lazy(ScalaEmitter$sanitizationConfig$delegate$lambda(this));
|
|
561
560
|
}
|
|
562
|
-
protoOf(
|
|
563
|
-
return this.
|
|
561
|
+
protoOf(ScalaEmitter).y1z = function () {
|
|
562
|
+
return this.k21_1;
|
|
564
563
|
};
|
|
565
|
-
protoOf(
|
|
566
|
-
return this.
|
|
564
|
+
protoOf(ScalaEmitter).g1a = function () {
|
|
565
|
+
return this.m21_1;
|
|
567
566
|
};
|
|
568
|
-
protoOf(
|
|
569
|
-
return this.
|
|
567
|
+
protoOf(ScalaEmitter).vp = function () {
|
|
568
|
+
return this.n21_1;
|
|
570
569
|
};
|
|
571
|
-
protoOf(
|
|
572
|
-
ScalaGenerator_getInstance().
|
|
570
|
+
protoOf(ScalaEmitter).f1a = function (allFiles) {
|
|
571
|
+
ScalaGenerator_getInstance().t1a(allFiles);
|
|
573
572
|
};
|
|
574
|
-
protoOf(
|
|
575
|
-
var packageName = Companion_instance_0.
|
|
573
|
+
protoOf(ScalaEmitter).b1a = function () {
|
|
574
|
+
var packageName = Companion_instance_0.zs('community.flock.wirespec.scala');
|
|
576
575
|
var tmp = interface_0('PathSegment', true);
|
|
577
|
-
var tmp_0 = struct('Literal',
|
|
578
|
-
var pathSegmentTypes = listOf_0([tmp, tmp_0, struct('Param',
|
|
576
|
+
var tmp_0 = struct('Literal', ScalaEmitter$emitShared$lambda);
|
|
577
|
+
var pathSegmentTypes = listOf_0([tmp, tmp_0, struct('Param', ScalaEmitter$emitShared$lambda_0)]);
|
|
579
578
|
// Inline function 'kotlin.collections.map' call
|
|
580
579
|
var this_0 = convertClientServer();
|
|
581
580
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -586,82 +585,82 @@ protoOf(ScalaIrEmitter).r1w = function () {
|
|
|
586
585
|
var tmp_1;
|
|
587
586
|
var tmp_2;
|
|
588
587
|
if (item instanceof Interface) {
|
|
589
|
-
tmp_2 = setOf(['Client', 'Server']).
|
|
588
|
+
tmp_2 = setOf(['Client', 'Server']).i1(item.sv_1.yt());
|
|
590
589
|
} else {
|
|
591
590
|
tmp_2 = false;
|
|
592
591
|
}
|
|
593
592
|
if (tmp_2) {
|
|
594
|
-
tmp_1 = item.
|
|
593
|
+
tmp_1 = item.aw(VOID, VOID, VOID, VOID, VOID, plus_0(item.xv_1, new Field(Companion_getInstance().vt('pathSegments'), new Array_0(Custom_init_$Create$('PathSegment')))));
|
|
595
594
|
} else {
|
|
596
595
|
tmp_1 = item;
|
|
597
596
|
}
|
|
598
|
-
var tmp$ret$
|
|
599
|
-
destination.x(tmp$ret$
|
|
597
|
+
var tmp$ret$2 = tmp_1;
|
|
598
|
+
destination.x(tmp$ret$2);
|
|
600
599
|
}
|
|
601
600
|
var clientServer = plus(pathSegmentTypes, destination);
|
|
602
|
-
// Inline function 'community.flock.wirespec.
|
|
601
|
+
// Inline function 'community.flock.wirespec.compiler.core.ir.transform' call
|
|
603
602
|
var this_1 = convert(packageName);
|
|
604
603
|
var scope = new TransformScope(this_1);
|
|
605
|
-
// Inline function 'community.flock.wirespec.
|
|
604
|
+
// Inline function 'community.flock.wirespec.compiler.core.ir.TransformScope.matchingElements' call
|
|
606
605
|
var tmp_3 = scope;
|
|
607
|
-
// Inline function 'community.flock.wirespec.
|
|
608
|
-
var this_2 = scope.
|
|
609
|
-
// Inline function 'community.flock.wirespec.
|
|
606
|
+
// Inline function 'community.flock.wirespec.compiler.core.ir.transformMatchingElements' call
|
|
607
|
+
var this_2 = scope.t17_1;
|
|
608
|
+
// Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
|
|
610
609
|
// Inline function 'kotlin.apply' call
|
|
611
610
|
var this_3 = new TransformerBuilder();
|
|
612
|
-
this_3.
|
|
613
|
-
var tmp$ret$
|
|
614
|
-
tmp_3.
|
|
615
|
-
// Inline function 'community.flock.wirespec.
|
|
611
|
+
this_3.n18(ScalaEmitter$emitShared$lambda_1);
|
|
612
|
+
var tmp$ret$7 = this_3.i18();
|
|
613
|
+
tmp_3.t17_1 = transform(this_2, tmp$ret$7);
|
|
614
|
+
// Inline function 'community.flock.wirespec.compiler.core.ir.TransformScope.matchingElements' call
|
|
616
615
|
var tmp_4 = scope;
|
|
617
|
-
// Inline function 'community.flock.wirespec.
|
|
618
|
-
var this_4 = scope.
|
|
619
|
-
// Inline function 'community.flock.wirespec.
|
|
616
|
+
// Inline function 'community.flock.wirespec.compiler.core.ir.transformMatchingElements' call
|
|
617
|
+
var this_4 = scope.t17_1;
|
|
618
|
+
// Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
|
|
620
619
|
// Inline function 'kotlin.apply' call
|
|
621
620
|
var this_5 = new TransformerBuilder();
|
|
622
|
-
this_5.
|
|
623
|
-
var tmp$ret$
|
|
624
|
-
tmp_4.
|
|
625
|
-
// Inline function 'community.flock.wirespec.
|
|
621
|
+
this_5.n18(ScalaEmitter$emitShared$lambda_2);
|
|
622
|
+
var tmp$ret$12 = this_5.i18();
|
|
623
|
+
tmp_4.t17_1 = transform(this_4, tmp$ret$12);
|
|
624
|
+
// Inline function 'community.flock.wirespec.compiler.core.ir.TransformScope.injectAfter' call
|
|
626
625
|
var tmp_5 = scope;
|
|
627
|
-
// Inline function 'community.flock.wirespec.
|
|
628
|
-
// Inline function 'community.flock.wirespec.
|
|
629
|
-
var this_6 = scope.
|
|
630
|
-
// Inline function 'community.flock.wirespec.
|
|
626
|
+
// Inline function 'community.flock.wirespec.compiler.core.ir.injectAfter' call
|
|
627
|
+
// Inline function 'community.flock.wirespec.compiler.core.ir.transformMatchingElements' call
|
|
628
|
+
var this_6 = scope.t17_1;
|
|
629
|
+
// Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
|
|
631
630
|
// Inline function 'kotlin.apply' call
|
|
632
631
|
var this_7 = new TransformerBuilder();
|
|
633
|
-
this_7.
|
|
634
|
-
var tmp$ret$
|
|
635
|
-
tmp_5.
|
|
636
|
-
var tmp_6 = scope.
|
|
632
|
+
this_7.n18(ScalaEmitter$emitShared$lambda_3(clientServer));
|
|
633
|
+
var tmp$ret$18 = this_7.i18();
|
|
634
|
+
tmp_5.t17_1 = transform(this_6, tmp$ret$18);
|
|
635
|
+
var tmp_6 = scope.t17_1;
|
|
637
636
|
var wirespecShared = isInterface(tmp_6, Element) ? tmp_6 : THROW_CCE();
|
|
638
637
|
var tmp_7;
|
|
639
|
-
if (this.
|
|
640
|
-
tmp_7 = wirespecShared.
|
|
638
|
+
if (this.l21_1.fq_1) {
|
|
639
|
+
tmp_7 = wirespecShared.kv(Companion_getInstance().vt(packageName.ct() + 'Wirespec'));
|
|
641
640
|
} else {
|
|
642
641
|
tmp_7 = null;
|
|
643
642
|
}
|
|
644
643
|
return tmp_7;
|
|
645
644
|
};
|
|
646
|
-
protoOf(
|
|
645
|
+
protoOf(ScalaEmitter).bs = function (definition, module_0, logger) {
|
|
647
646
|
var file = emit.call(this, definition, module_0, logger);
|
|
648
647
|
// Inline function 'kotlin.takeIf' call
|
|
649
|
-
var this_0 = this.
|
|
648
|
+
var this_0 = this.o21_1;
|
|
650
649
|
var tmp;
|
|
651
|
-
if (Companion_instance.
|
|
650
|
+
if (Companion_instance.yr(module_0)) {
|
|
652
651
|
tmp = this_0;
|
|
653
652
|
} else {
|
|
654
653
|
tmp = null;
|
|
655
654
|
}
|
|
656
|
-
var tmp$ret$
|
|
657
|
-
return placeInPackage(prependImports(file, tmp$ret$
|
|
655
|
+
var tmp$ret$0 = tmp;
|
|
656
|
+
return placeInPackage(prependImports(file, tmp$ret$0), this.y1z(), definition);
|
|
658
657
|
};
|
|
659
|
-
protoOf(
|
|
658
|
+
protoOf(ScalaEmitter).j1a = function (definition, module_0) {
|
|
660
659
|
var tmp;
|
|
661
660
|
if (definition instanceof Type) {
|
|
662
661
|
tmp = convertToGenerator_2(definition, module_0);
|
|
663
662
|
} else {
|
|
664
|
-
if (definition instanceof
|
|
663
|
+
if (definition instanceof Enum_0) {
|
|
665
664
|
tmp = convertToGenerator_1(definition);
|
|
666
665
|
} else {
|
|
667
666
|
if (definition instanceof Refined) {
|
|
@@ -677,11 +676,11 @@ protoOf(ScalaIrEmitter).w1w = function (definition, module_0) {
|
|
|
677
676
|
}
|
|
678
677
|
var generatorFile = tmp;
|
|
679
678
|
var sanitized = sanitizeNames(generatorFile, _get_sanitizationConfig__sns434(this));
|
|
680
|
-
var generatorOwnName = definition.
|
|
679
|
+
var generatorOwnName = definition.cs().o1() + 'Generator';
|
|
681
680
|
var tmp_0 = asSequence(collectCustomTypeNames(sanitized));
|
|
682
|
-
var tmp_1 = filterNot(tmp_0,
|
|
683
|
-
var tmp_2 = filterNot(tmp_1,
|
|
684
|
-
var customNames = toList(distinct(map(tmp_2,
|
|
681
|
+
var tmp_1 = filterNot(tmp_0, ScalaEmitter$emitGenerator$lambda);
|
|
682
|
+
var tmp_2 = filterNot(tmp_1, ScalaEmitter$emitGenerator$lambda_0(generatorOwnName));
|
|
683
|
+
var customNames = toList(distinct(map(tmp_2, ScalaEmitter$emitGenerator$lambda_1)));
|
|
685
684
|
// Inline function 'kotlin.collections.filterNot' call
|
|
686
685
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
687
686
|
var destination = ArrayList_init_$Create$_0();
|
|
@@ -698,27 +697,27 @@ protoOf(ScalaIrEmitter).w1w = function (definition, module_0) {
|
|
|
698
697
|
var _iterator__ex2g4s_0 = destination.t();
|
|
699
698
|
while (_iterator__ex2g4s_0.u()) {
|
|
700
699
|
var item = _iterator__ex2g4s_0.v();
|
|
701
|
-
var tmp$ret$
|
|
702
|
-
destination_0.x(tmp$ret$
|
|
700
|
+
var tmp$ret$5 = import_0(this.y1z().at_1 + '.model', item);
|
|
701
|
+
destination_0.x(tmp$ret$5);
|
|
703
702
|
}
|
|
704
703
|
var modelImports = destination_0;
|
|
705
|
-
return placeInPackage_0(prependImports(sanitized, plus(this.
|
|
704
|
+
return placeInPackage_0(prependImports(sanitized, plus(this.o21_1, modelImports)), this.y1z(), 'generator');
|
|
706
705
|
};
|
|
707
|
-
protoOf(
|
|
706
|
+
protoOf(ScalaEmitter).ts = function (type, module_0) {
|
|
708
707
|
return ensureEmptyStructHasConstructor(sanitizeNames(convertWithValidation(type, module_0), _get_sanitizationConfig__sns434(this)));
|
|
709
708
|
};
|
|
710
|
-
protoOf(
|
|
709
|
+
protoOf(ScalaEmitter).rs = function (enum_0, module_0) {
|
|
711
710
|
var tmp = sanitizeNames(convert_0(enum_0), _get_sanitizationConfig__sns434(this));
|
|
712
|
-
return injectEnumLabelField(tmp,
|
|
711
|
+
return injectEnumLabelField(tmp, ScalaEmitter$emit$lambda(this));
|
|
713
712
|
};
|
|
714
|
-
protoOf(
|
|
713
|
+
protoOf(ScalaEmitter).hs = function (union) {
|
|
715
714
|
return sanitizeNames(convert_1(union), _get_sanitizationConfig__sns434(this));
|
|
716
715
|
};
|
|
717
|
-
protoOf(
|
|
716
|
+
protoOf(ScalaEmitter).ms = function (refined) {
|
|
718
717
|
var file = sanitizeNames(convert_2(refined), _get_sanitizationConfig__sns434(this));
|
|
719
|
-
// Inline function 'community.flock.wirespec.
|
|
718
|
+
// Inline function 'community.flock.wirespec.compiler.core.ir.findElement' call
|
|
720
719
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
721
|
-
var tmp0 = file.
|
|
720
|
+
var tmp0 = file.iv();
|
|
722
721
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
723
722
|
var destination = ArrayList_init_$Create$_0();
|
|
724
723
|
var _iterator__ex2g4s = tmp0.t();
|
|
@@ -728,14 +727,14 @@ protoOf(ScalaIrEmitter).vr = function (refined) {
|
|
|
728
727
|
destination.x(element);
|
|
729
728
|
}
|
|
730
729
|
}
|
|
731
|
-
var tmp$ret$
|
|
732
|
-
var updatedStruct = convertToStringCallsToFieldAccess(markMembersAsOverride(ensureNotNull(tmp$ret$
|
|
733
|
-
return new File(Companion_getInstance().
|
|
730
|
+
var tmp$ret$0 = firstOrNull_0(destination);
|
|
731
|
+
var updatedStruct = convertToStringCallsToFieldAccess(markMembersAsOverride(ensureNotNull(tmp$ret$0)));
|
|
732
|
+
return new File(Companion_getInstance().vt(sanitize(this, refined.ks_1)), listOf(updatedStruct));
|
|
734
733
|
};
|
|
735
|
-
protoOf(
|
|
736
|
-
// Inline function 'community.flock.wirespec.
|
|
734
|
+
protoOf(ScalaEmitter).ss = function (endpoint) {
|
|
735
|
+
// Inline function 'community.flock.wirespec.compiler.core.ir.findElement' call
|
|
737
736
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
738
|
-
var tmp0 = convert_3(endpoint).
|
|
737
|
+
var tmp0 = convert_3(endpoint).iv();
|
|
739
738
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
740
739
|
var destination = ArrayList_init_$Create$_0();
|
|
741
740
|
var _iterator__ex2g4s = tmp0.t();
|
|
@@ -745,12 +744,12 @@ protoOf(ScalaIrEmitter).bs = function (endpoint) {
|
|
|
745
744
|
destination.x(element);
|
|
746
745
|
}
|
|
747
746
|
}
|
|
748
|
-
var tmp$ret$
|
|
749
|
-
var endpointNamespace = ensureNotNull(tmp$ret$
|
|
747
|
+
var tmp$ret$0 = firstOrNull_0(destination);
|
|
748
|
+
var endpointNamespace = ensureNotNull(tmp$ret$0);
|
|
750
749
|
var body = appendClientServerObjects(injectHandleFunction(endpointNamespace), endpoint, isRequestObject(endpointNamespace));
|
|
751
|
-
var tmp = sanitizeNames(new File(Companion_getInstance().
|
|
750
|
+
var tmp = sanitizeNames(new File(Companion_getInstance().vt(sanitize(this, endpoint.er_1)), listOf(body)), _get_sanitizationConfig__sns434(this));
|
|
752
751
|
// Inline function 'kotlin.takeIf' call
|
|
753
|
-
var this_0 = buildModelImports(endpoint, this.
|
|
752
|
+
var this_0 = buildModelImports(endpoint, this.y1z());
|
|
754
753
|
var tmp_0;
|
|
755
754
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
756
755
|
if (!this_0.r()) {
|
|
@@ -758,13 +757,13 @@ protoOf(ScalaIrEmitter).bs = function (endpoint) {
|
|
|
758
757
|
} else {
|
|
759
758
|
tmp_0 = null;
|
|
760
759
|
}
|
|
761
|
-
var tmp$ret$
|
|
762
|
-
return prependImports(tmp, tmp$ret$
|
|
760
|
+
var tmp$ret$3 = tmp_0;
|
|
761
|
+
return prependImports(tmp, tmp$ret$3);
|
|
763
762
|
};
|
|
764
|
-
protoOf(
|
|
763
|
+
protoOf(ScalaEmitter).gs = function (channel) {
|
|
765
764
|
var tmp = sanitizeNames(convert_4(channel), _get_sanitizationConfig__sns434(this));
|
|
766
765
|
// Inline function 'kotlin.takeIf' call
|
|
767
|
-
var this_0 = buildModelImports(channel, this.
|
|
766
|
+
var this_0 = buildModelImports(channel, this.y1z());
|
|
768
767
|
var tmp_0;
|
|
769
768
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
770
769
|
if (!this_0.r()) {
|
|
@@ -772,13 +771,13 @@ protoOf(ScalaIrEmitter).pr = function (channel) {
|
|
|
772
771
|
} else {
|
|
773
772
|
tmp_0 = null;
|
|
774
773
|
}
|
|
775
|
-
var tmp$ret$
|
|
776
|
-
return prependImports(tmp, tmp$ret$
|
|
774
|
+
var tmp$ret$0 = tmp_0;
|
|
775
|
+
return prependImports(tmp, tmp$ret$0);
|
|
777
776
|
};
|
|
778
|
-
protoOf(
|
|
777
|
+
protoOf(ScalaEmitter).fs = function (rpc) {
|
|
779
778
|
var tmp = sanitizeNames(convert_5(rpc), _get_sanitizationConfig__sns434(this));
|
|
780
779
|
// Inline function 'kotlin.takeIf' call
|
|
781
|
-
var this_0 = buildModelImports(rpc, this.
|
|
780
|
+
var this_0 = buildModelImports(rpc, this.y1z());
|
|
782
781
|
var tmp_0;
|
|
783
782
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
784
783
|
if (!this_0.r()) {
|
|
@@ -786,28 +785,28 @@ protoOf(ScalaIrEmitter).or = function (rpc) {
|
|
|
786
785
|
} else {
|
|
787
786
|
tmp_0 = null;
|
|
788
787
|
}
|
|
789
|
-
var tmp$ret$
|
|
790
|
-
return prependImports(tmp, tmp$ret$
|
|
788
|
+
var tmp$ret$0 = tmp_0;
|
|
789
|
+
return prependImports(tmp, tmp$ret$0);
|
|
791
790
|
};
|
|
792
|
-
protoOf(
|
|
793
|
-
var imports = buildModelImports(endpoint, this.
|
|
794
|
-
var endpointImport = import_0(this.
|
|
791
|
+
protoOf(ScalaEmitter).i1a = function (endpoint) {
|
|
792
|
+
var imports = buildModelImports(endpoint, this.y1z());
|
|
793
|
+
var endpointImport = import_0(this.y1z().at_1 + '.endpoint', endpoint.er_1.o1());
|
|
795
794
|
var file = addIdentityTypeToCall(sanitizeNames(emitEndpointClient.call(this, endpoint), _get_sanitizationConfig__sns434(this)));
|
|
796
|
-
var subPackageName = plus_1(this.
|
|
797
|
-
var tmp = Companion_getInstance().
|
|
795
|
+
var subPackageName = plus_1(this.y1z(), 'client');
|
|
796
|
+
var tmp = Companion_getInstance().vt(subPackageName.ct() + file.gv_1.yt());
|
|
798
797
|
// Inline function 'kotlin.collections.buildList' call
|
|
799
798
|
// Inline function 'kotlin.collections.buildListInternal' call
|
|
800
799
|
// Inline function 'kotlin.apply' call
|
|
801
800
|
var this_0 = ArrayList_init_$Create$_0();
|
|
802
|
-
this_0.x(new Package(subPackageName.
|
|
803
|
-
this_0.g1(this.
|
|
801
|
+
this_0.x(new Package(subPackageName.at_1));
|
|
802
|
+
this_0.g1(this.o21_1);
|
|
804
803
|
this_0.g1(imports);
|
|
805
804
|
this_0.x(endpointImport);
|
|
806
|
-
this_0.g1(file.
|
|
807
|
-
var tmp$ret$
|
|
808
|
-
return new File(tmp, tmp$ret$
|
|
805
|
+
this_0.g1(file.hv_1);
|
|
806
|
+
var tmp$ret$0 = this_0.q5();
|
|
807
|
+
return new File(tmp, tmp$ret$0);
|
|
809
808
|
};
|
|
810
|
-
protoOf(
|
|
809
|
+
protoOf(ScalaEmitter).c1a = function (endpoints, logger) {
|
|
811
810
|
// Inline function 'kotlin.collections.flatMap' call
|
|
812
811
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
813
812
|
var destination = ArrayList_init_$Create$_0();
|
|
@@ -823,7 +822,7 @@ protoOf(ScalaIrEmitter).s1w = function (endpoints, logger) {
|
|
|
823
822
|
var _iterator__ex2g4s_0 = destination.t();
|
|
824
823
|
while (_iterator__ex2g4s_0.u()) {
|
|
825
824
|
var e = _iterator__ex2g4s_0.v();
|
|
826
|
-
var key = e.
|
|
825
|
+
var key = e.q18_1;
|
|
827
826
|
if (set.x(key)) {
|
|
828
827
|
list_0.x(e);
|
|
829
828
|
}
|
|
@@ -834,8 +833,8 @@ protoOf(ScalaIrEmitter).s1w = function (endpoints, logger) {
|
|
|
834
833
|
var _iterator__ex2g4s_1 = list_0.t();
|
|
835
834
|
while (_iterator__ex2g4s_1.u()) {
|
|
836
835
|
var item = _iterator__ex2g4s_1.v();
|
|
837
|
-
var tmp$ret$
|
|
838
|
-
destination_0.x(tmp$ret$
|
|
836
|
+
var tmp$ret$7 = import_0(this.y1z().at_1 + '.model', item.q18_1);
|
|
837
|
+
destination_0.x(tmp$ret$7);
|
|
839
838
|
}
|
|
840
839
|
var imports = destination_0;
|
|
841
840
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -844,8 +843,8 @@ protoOf(ScalaIrEmitter).s1w = function (endpoints, logger) {
|
|
|
844
843
|
var _iterator__ex2g4s_2 = endpoints.t();
|
|
845
844
|
while (_iterator__ex2g4s_2.u()) {
|
|
846
845
|
var item_0 = _iterator__ex2g4s_2.v();
|
|
847
|
-
var tmp$ret$
|
|
848
|
-
destination_1.x(tmp$ret$
|
|
846
|
+
var tmp$ret$10 = import_0(this.y1z().at_1 + '.endpoint', item_0.er_1.o1());
|
|
847
|
+
destination_1.x(tmp$ret$10);
|
|
849
848
|
}
|
|
850
849
|
var endpointImports = destination_1;
|
|
851
850
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -854,58 +853,58 @@ protoOf(ScalaIrEmitter).s1w = function (endpoints, logger) {
|
|
|
854
853
|
var _iterator__ex2g4s_3 = endpoints.t();
|
|
855
854
|
while (_iterator__ex2g4s_3.u()) {
|
|
856
855
|
var item_1 = _iterator__ex2g4s_3.v();
|
|
857
|
-
var tmp$ret$
|
|
858
|
-
destination_2.x(tmp$ret$
|
|
856
|
+
var tmp$ret$13 = import_0(this.y1z().at_1 + '.client', item_1.er_1.o1() + 'Client');
|
|
857
|
+
destination_2.x(tmp$ret$13);
|
|
859
858
|
}
|
|
860
859
|
var clientImports = destination_2;
|
|
861
860
|
var allImports = plus(plus(imports, endpointImports), clientImports);
|
|
862
861
|
var file = addIdentityTypeToCall(sanitizeNames(emitClient.call(this, endpoints, logger), _get_sanitizationConfig__sns434(this)));
|
|
863
|
-
var tmp = Companion_getInstance().
|
|
862
|
+
var tmp = Companion_getInstance().vt(this.y1z().ct() + file.gv_1.yt());
|
|
864
863
|
// Inline function 'kotlin.collections.buildList' call
|
|
865
864
|
// Inline function 'kotlin.collections.buildListInternal' call
|
|
866
865
|
// Inline function 'kotlin.apply' call
|
|
867
866
|
var this_0 = ArrayList_init_$Create$_0();
|
|
868
|
-
this_0.x(new Package(this.
|
|
869
|
-
this_0.g1(this.
|
|
867
|
+
this_0.x(new Package(this.y1z().at_1));
|
|
868
|
+
this_0.g1(this.o21_1);
|
|
870
869
|
this_0.g1(allImports);
|
|
871
|
-
this_0.g1(file.
|
|
872
|
-
var tmp$ret$
|
|
873
|
-
return new File(tmp, tmp$ret$
|
|
870
|
+
this_0.g1(file.hv_1);
|
|
871
|
+
var tmp$ret$14 = this_0.q5();
|
|
872
|
+
return new File(tmp, tmp$ret$14);
|
|
874
873
|
};
|
|
875
874
|
function convertToStringCallsToFieldAccess(_this__u8e3s4) {
|
|
876
|
-
// Inline function 'community.flock.wirespec.
|
|
875
|
+
// Inline function 'community.flock.wirespec.compiler.core.ir.transform' call
|
|
877
876
|
var scope = new TransformScope(_this__u8e3s4);
|
|
878
|
-
scope.
|
|
879
|
-
var tmp = scope.
|
|
877
|
+
scope.k18(convertToStringCallsToFieldAccess$lambda);
|
|
878
|
+
var tmp = scope.t17_1;
|
|
880
879
|
return isInterface(tmp, Element) ? tmp : THROW_CCE();
|
|
881
880
|
}
|
|
882
881
|
function appendClientServerObjects(_this__u8e3s4, endpoint, requestIsObject) {
|
|
883
882
|
var reqType = requestIsObject ? 'Request.type' : 'Request';
|
|
884
|
-
var pathTemplate = '/' + joinToString(endpoint.
|
|
885
|
-
var pathSegmentsCode = joinToString(endpoint.
|
|
886
|
-
var clientObject = raw(trimMargin('\n |object Client extends Wirespec.Client[' + reqType + ', Response[?]] {\n | override val pathTemplate: String = "' + pathTemplate + '"\n | override val method: String = "' + endpoint.
|
|
887
|
-
var serverObject = raw(trimMargin('\n |object Server extends Wirespec.Server[' + reqType + ', Response[?]] {\n | override val pathTemplate: String = "' + pathTemplate + '"\n | override val method: String = "' + endpoint.
|
|
888
|
-
return _this__u8e3s4.
|
|
883
|
+
var pathTemplate = '/' + joinToString(endpoint.gr_1, '/', VOID, VOID, VOID, VOID, appendClientServerObjects$lambda);
|
|
884
|
+
var pathSegmentsCode = joinToString(endpoint.gr_1, ', ', VOID, VOID, VOID, VOID, appendClientServerObjects$lambda_0);
|
|
885
|
+
var clientObject = raw(trimMargin('\n |object Client extends Wirespec.Client[' + reqType + ', Response[?]] {\n | override val pathTemplate: String = "' + pathTemplate + '"\n | override val method: String = "' + endpoint.fr_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 '));
|
|
886
|
+
var serverObject = raw(trimMargin('\n |object Server extends Wirespec.Server[' + reqType + ', Response[?]] {\n | override val pathTemplate: String = "' + pathTemplate + '"\n | override val method: String = "' + endpoint.fr_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 '));
|
|
887
|
+
return _this__u8e3s4.rv(VOID, plus_0(plus_0(_this__u8e3s4.nv_1, clientObject), serverObject));
|
|
889
888
|
}
|
|
890
889
|
function injectHandleFunction(_this__u8e3s4) {
|
|
891
|
-
// Inline function 'community.flock.wirespec.
|
|
890
|
+
// Inline function 'community.flock.wirespec.compiler.core.ir.transform' call
|
|
892
891
|
var scope = new TransformScope(_this__u8e3s4);
|
|
893
|
-
// Inline function 'community.flock.wirespec.
|
|
892
|
+
// Inline function 'community.flock.wirespec.compiler.core.ir.TransformScope.matchingElements' call
|
|
894
893
|
var tmp = scope;
|
|
895
|
-
// Inline function 'community.flock.wirespec.
|
|
896
|
-
var this_0 = scope.
|
|
897
|
-
// Inline function 'community.flock.wirespec.
|
|
894
|
+
// Inline function 'community.flock.wirespec.compiler.core.ir.transformMatchingElements' call
|
|
895
|
+
var this_0 = scope.t17_1;
|
|
896
|
+
// Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
|
|
898
897
|
// Inline function 'kotlin.apply' call
|
|
899
898
|
var this_1 = new TransformerBuilder();
|
|
900
|
-
this_1.
|
|
901
|
-
var tmp$ret$
|
|
902
|
-
tmp.
|
|
903
|
-
var tmp_0 = scope.
|
|
899
|
+
this_1.n18(injectHandleFunction$lambda);
|
|
900
|
+
var tmp$ret$4 = this_1.i18();
|
|
901
|
+
tmp.t17_1 = transform(this_0, tmp$ret$4);
|
|
902
|
+
var tmp_0 = scope.t17_1;
|
|
904
903
|
return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
|
|
905
904
|
}
|
|
906
905
|
function isRequestObject(namespace) {
|
|
907
906
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
908
|
-
var tmp0 = namespace.
|
|
907
|
+
var tmp0 = namespace.nv_1;
|
|
909
908
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
910
909
|
var destination = ArrayList_init_$Create$_0();
|
|
911
910
|
var _iterator__ex2g4s = tmp0.t();
|
|
@@ -915,20 +914,20 @@ function isRequestObject(namespace) {
|
|
|
915
914
|
destination.x(element);
|
|
916
915
|
}
|
|
917
916
|
}
|
|
918
|
-
var tmp$ret$
|
|
917
|
+
var tmp$ret$2;
|
|
919
918
|
$l$block: {
|
|
920
919
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
921
920
|
var _iterator__ex2g4s_0 = destination.t();
|
|
922
921
|
while (_iterator__ex2g4s_0.u()) {
|
|
923
922
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
924
|
-
if (element_0.
|
|
925
|
-
tmp$ret$
|
|
923
|
+
if (element_0.gx_1.yt() === 'Request') {
|
|
924
|
+
tmp$ret$2 = element_0;
|
|
926
925
|
break $l$block;
|
|
927
926
|
}
|
|
928
927
|
}
|
|
929
|
-
tmp$ret$
|
|
928
|
+
tmp$ret$2 = null;
|
|
930
929
|
}
|
|
931
|
-
var tmp0_elvis_lhs = tmp$ret$
|
|
930
|
+
var tmp0_elvis_lhs = tmp$ret$2;
|
|
932
931
|
var tmp;
|
|
933
932
|
if (tmp0_elvis_lhs == null) {
|
|
934
933
|
return false;
|
|
@@ -936,7 +935,7 @@ function isRequestObject(namespace) {
|
|
|
936
935
|
tmp = tmp0_elvis_lhs;
|
|
937
936
|
}
|
|
938
937
|
var requestStruct = tmp;
|
|
939
|
-
return requestStruct.
|
|
938
|
+
return requestStruct.ix_1.b1() === 1 && single(requestStruct.ix_1).a10_1.r() || (requestStruct.hx_1.r() && requestStruct.ix_1.r());
|
|
940
939
|
}
|
|
941
940
|
function buildModelImports(_this__u8e3s4, packageName) {
|
|
942
941
|
// Inline function 'kotlin.collections.distinctBy' call
|
|
@@ -946,7 +945,7 @@ function buildModelImports(_this__u8e3s4, packageName) {
|
|
|
946
945
|
var _iterator__ex2g4s = this_0.t();
|
|
947
946
|
while (_iterator__ex2g4s.u()) {
|
|
948
947
|
var e = _iterator__ex2g4s.v();
|
|
949
|
-
var key = e.
|
|
948
|
+
var key = e.q18_1;
|
|
950
949
|
if (set.x(key)) {
|
|
951
950
|
list.x(e);
|
|
952
951
|
}
|
|
@@ -957,40 +956,40 @@ function buildModelImports(_this__u8e3s4, packageName) {
|
|
|
957
956
|
var _iterator__ex2g4s_0 = list.t();
|
|
958
957
|
while (_iterator__ex2g4s_0.u()) {
|
|
959
958
|
var item = _iterator__ex2g4s_0.v();
|
|
960
|
-
var tmp$ret$
|
|
961
|
-
destination.x(tmp$ret$
|
|
959
|
+
var tmp$ret$4 = import_0(packageName.at_1 + '.model', Companion_getInstance().vt(item.q18_1).yt());
|
|
960
|
+
destination.x(tmp$ret$4);
|
|
962
961
|
}
|
|
963
962
|
return destination;
|
|
964
963
|
}
|
|
965
964
|
function addIdentityTypeToCall(_this__u8e3s4) {
|
|
966
|
-
// Inline function 'community.flock.wirespec.
|
|
965
|
+
// Inline function 'community.flock.wirespec.compiler.core.ir.transform' call
|
|
967
966
|
var scope = new TransformScope(_this__u8e3s4);
|
|
968
|
-
// Inline function 'community.flock.wirespec.
|
|
967
|
+
// Inline function 'community.flock.wirespec.compiler.core.ir.TransformScope.matchingElements' call
|
|
969
968
|
var tmp = scope;
|
|
970
|
-
// Inline function 'community.flock.wirespec.
|
|
971
|
-
var this_0 = scope.
|
|
972
|
-
// Inline function 'community.flock.wirespec.
|
|
969
|
+
// Inline function 'community.flock.wirespec.compiler.core.ir.transformMatchingElements' call
|
|
970
|
+
var this_0 = scope.t17_1;
|
|
971
|
+
// Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
|
|
973
972
|
// Inline function 'kotlin.apply' call
|
|
974
973
|
var this_1 = new TransformerBuilder();
|
|
975
|
-
this_1.
|
|
976
|
-
var tmp$ret$
|
|
977
|
-
tmp.
|
|
978
|
-
var tmp_0 = scope.
|
|
974
|
+
this_1.n18(addIdentityTypeToCall$lambda);
|
|
975
|
+
var tmp$ret$4 = this_1.i18();
|
|
976
|
+
tmp.t17_1 = transform(this_0, tmp$ret$4);
|
|
977
|
+
var tmp_0 = scope.t17_1;
|
|
979
978
|
return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
|
|
980
979
|
}
|
|
981
980
|
function toScalaTypeName(_this__u8e3s4) {
|
|
982
981
|
var tmp;
|
|
983
982
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
984
|
-
var t = _this__u8e3s4.
|
|
983
|
+
var t = _this__u8e3s4.s18_1;
|
|
985
984
|
var tmp_0;
|
|
986
985
|
if (t instanceof String_0) {
|
|
987
986
|
tmp_0 = 'String';
|
|
988
987
|
} else {
|
|
989
988
|
if (t instanceof Integer) {
|
|
990
|
-
tmp_0 = t.
|
|
989
|
+
tmp_0 = t.a19_1.equals(Precision_P32_getInstance()) ? 'Int' : 'Long';
|
|
991
990
|
} else {
|
|
992
991
|
if (t instanceof Number_0) {
|
|
993
|
-
tmp_0 = t.
|
|
992
|
+
tmp_0 = t.v18_1.equals(Precision_P32_getInstance()) ? 'Float' : 'Double';
|
|
994
993
|
} else {
|
|
995
994
|
if (equals(t, Boolean_instance)) {
|
|
996
995
|
tmp_0 = 'Boolean';
|
|
@@ -1007,13 +1006,13 @@ function toScalaTypeName(_this__u8e3s4) {
|
|
|
1007
1006
|
tmp = tmp_0;
|
|
1008
1007
|
} else {
|
|
1009
1008
|
if (_this__u8e3s4 instanceof Custom) {
|
|
1010
|
-
tmp = _this__u8e3s4.
|
|
1009
|
+
tmp = _this__u8e3s4.q18_1;
|
|
1011
1010
|
} else {
|
|
1012
1011
|
if (_this__u8e3s4 instanceof Iterable) {
|
|
1013
|
-
tmp = 'List[' + toScalaTypeName(_this__u8e3s4.
|
|
1012
|
+
tmp = 'List[' + toScalaTypeName(_this__u8e3s4.xp_1) + ']';
|
|
1014
1013
|
} else {
|
|
1015
1014
|
if (_this__u8e3s4 instanceof Dict) {
|
|
1016
|
-
tmp = 'Map[String, ' + toScalaTypeName(_this__u8e3s4.
|
|
1015
|
+
tmp = 'Map[String, ' + toScalaTypeName(_this__u8e3s4.aq_1) + ']';
|
|
1017
1016
|
} else {
|
|
1018
1017
|
if (_this__u8e3s4 instanceof Any) {
|
|
1019
1018
|
tmp = 'Any';
|
|
@@ -1029,32 +1028,32 @@ function toScalaTypeName(_this__u8e3s4) {
|
|
|
1029
1028
|
}
|
|
1030
1029
|
}
|
|
1031
1030
|
var base = tmp;
|
|
1032
|
-
return _this__u8e3s4.
|
|
1031
|
+
return _this__u8e3s4.nt() ? 'Option[' + base + ']' : base;
|
|
1033
1032
|
}
|
|
1034
1033
|
function convertToStringCallsToFieldAccess$lambda(expr, tr) {
|
|
1035
1034
|
var tmp;
|
|
1036
1035
|
var tmp_0;
|
|
1037
1036
|
var tmp_1;
|
|
1038
1037
|
if (expr instanceof FunctionCall) {
|
|
1039
|
-
tmp_1 = expr.
|
|
1038
|
+
tmp_1 = expr.du_1.xt() === 'toString';
|
|
1040
1039
|
} else {
|
|
1041
1040
|
tmp_1 = false;
|
|
1042
1041
|
}
|
|
1043
1042
|
if (tmp_1) {
|
|
1044
|
-
tmp_0 = !(expr.
|
|
1043
|
+
tmp_0 = !(expr.bu_1 == null);
|
|
1045
1044
|
} else {
|
|
1046
1045
|
tmp_0 = false;
|
|
1047
1046
|
}
|
|
1048
1047
|
if (tmp_0) {
|
|
1049
|
-
var tmp0_safe_receiver = expr.
|
|
1048
|
+
var tmp0_safe_receiver = expr.bu_1;
|
|
1050
1049
|
var tmp_2;
|
|
1051
1050
|
if (tmp0_safe_receiver == null) {
|
|
1052
1051
|
tmp_2 = null;
|
|
1053
1052
|
} else {
|
|
1054
1053
|
// Inline function 'kotlin.let' call
|
|
1055
|
-
tmp_2 = tr.
|
|
1054
|
+
tmp_2 = tr.o17(tmp0_safe_receiver);
|
|
1056
1055
|
}
|
|
1057
|
-
tmp = new FieldCall(tmp_2, Companion_getInstance().
|
|
1056
|
+
tmp = new FieldCall(tmp_2, Companion_getInstance().vt('toString'));
|
|
1058
1057
|
} else {
|
|
1059
1058
|
tmp = transformChildren_1(expr, tr);
|
|
1060
1059
|
}
|
|
@@ -1063,10 +1062,10 @@ function convertToStringCallsToFieldAccess$lambda(expr, tr) {
|
|
|
1063
1062
|
function appendClientServerObjects$lambda(it) {
|
|
1064
1063
|
var tmp;
|
|
1065
1064
|
if (it instanceof Literal) {
|
|
1066
|
-
tmp = it.
|
|
1065
|
+
tmp = it.z19_1;
|
|
1067
1066
|
} else {
|
|
1068
1067
|
if (it instanceof Param) {
|
|
1069
|
-
tmp = '{' + it.
|
|
1068
|
+
tmp = '{' + it.lr_1.o1() + '}';
|
|
1070
1069
|
} else {
|
|
1071
1070
|
noWhenBranchMatchedException();
|
|
1072
1071
|
}
|
|
@@ -1076,10 +1075,10 @@ function appendClientServerObjects$lambda(it) {
|
|
|
1076
1075
|
function appendClientServerObjects$lambda_0(segment) {
|
|
1077
1076
|
var tmp;
|
|
1078
1077
|
if (segment instanceof Literal) {
|
|
1079
|
-
tmp = 'Wirespec.Literal("' + segment.
|
|
1078
|
+
tmp = 'Wirespec.Literal("' + segment.z19_1 + '")';
|
|
1080
1079
|
} else {
|
|
1081
1080
|
if (segment instanceof Param) {
|
|
1082
|
-
tmp = 'Wirespec.Param("' + segment.
|
|
1081
|
+
tmp = 'Wirespec.Param("' + segment.lr_1.o1() + '", scala.reflect.classTag[' + toScalaTypeName(segment.mr_1) + '])';
|
|
1083
1082
|
} else {
|
|
1084
1083
|
noWhenBranchMatchedException();
|
|
1085
1084
|
}
|
|
@@ -1091,13 +1090,13 @@ function injectHandleFunction$lambda(element, transformer) {
|
|
|
1091
1090
|
if (element instanceof Interface) {
|
|
1092
1091
|
var tmp$ret$0;
|
|
1093
1092
|
$l$block: {
|
|
1094
|
-
if (!element.
|
|
1093
|
+
if (!element.sv_1.equals(Companion_getInstance().vt('Handler')) && !element.sv_1.equals(Companion_getInstance().vt('Call'))) {
|
|
1095
1094
|
tmp$ret$0 = element;
|
|
1096
1095
|
break $l$block;
|
|
1097
1096
|
}
|
|
1098
1097
|
var tmp0_typeParameters = listOf(new TypeParameter(Custom_init_$Create$('F[_]')));
|
|
1099
1098
|
// Inline function 'kotlin.collections.map' call
|
|
1100
|
-
var this_0 = element.
|
|
1099
|
+
var this_0 = element.tv_1;
|
|
1101
1100
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1102
1101
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
1103
1102
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -1108,7 +1107,7 @@ function injectHandleFunction$lambda(element, transformer) {
|
|
|
1108
1107
|
if (tmp0_safe_receiver == null) {
|
|
1109
1108
|
tmp_0 = null;
|
|
1110
1109
|
} else {
|
|
1111
|
-
var tmp1_safe_receiver = item.
|
|
1110
|
+
var tmp1_safe_receiver = item.vx_1;
|
|
1112
1111
|
var tmp_1;
|
|
1113
1112
|
if (tmp1_safe_receiver == null) {
|
|
1114
1113
|
tmp_1 = null;
|
|
@@ -1117,13 +1116,13 @@ function injectHandleFunction$lambda(element, transformer) {
|
|
|
1117
1116
|
tmp_1 = Custom_init_$Create$('F', listOf(tmp1_safe_receiver));
|
|
1118
1117
|
}
|
|
1119
1118
|
var tmp3_returnType = tmp_1;
|
|
1120
|
-
tmp_0 = tmp0_safe_receiver.
|
|
1119
|
+
tmp_0 = tmp0_safe_receiver.ey(VOID, VOID, VOID, tmp3_returnType, VOID, false);
|
|
1121
1120
|
}
|
|
1122
1121
|
var tmp4_elvis_lhs = tmp_0;
|
|
1123
1122
|
var tmp$ret$3 = tmp4_elvis_lhs == null ? item : tmp4_elvis_lhs;
|
|
1124
1123
|
destination.x(tmp$ret$3);
|
|
1125
1124
|
}
|
|
1126
|
-
tmp$ret$0 = element.
|
|
1125
|
+
tmp$ret$0 = element.aw(VOID, destination, VOID, VOID, tmp0_typeParameters);
|
|
1127
1126
|
}
|
|
1128
1127
|
tmp = tmp$ret$0;
|
|
1129
1128
|
} else {
|
|
@@ -1136,7 +1135,7 @@ function addIdentityTypeToCall$lambda(element, transformer) {
|
|
|
1136
1135
|
var tmp;
|
|
1137
1136
|
if (element instanceof Struct) {
|
|
1138
1137
|
// Inline function 'kotlin.collections.map' call
|
|
1139
|
-
var this_0 = element.
|
|
1138
|
+
var this_0 = element.jx_1;
|
|
1140
1139
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1141
1140
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
1142
1141
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -1144,17 +1143,17 @@ function addIdentityTypeToCall$lambda(element, transformer) {
|
|
|
1144
1143
|
var item = _iterator__ex2g4s.v();
|
|
1145
1144
|
// Inline function 'kotlin.takeIf' call
|
|
1146
1145
|
var tmp_0;
|
|
1147
|
-
if (endsWith(item.
|
|
1146
|
+
if (endsWith(item.pu_1.yt(), '.Call')) {
|
|
1148
1147
|
tmp_0 = item;
|
|
1149
1148
|
} else {
|
|
1150
1149
|
tmp_0 = null;
|
|
1151
1150
|
}
|
|
1152
1151
|
var tmp0_safe_receiver = tmp_0;
|
|
1153
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1154
|
-
var tmp$ret$
|
|
1155
|
-
destination.x(tmp$ret$
|
|
1152
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.su(VOID, listOf(Custom_init_$Create$('[A] =>> A')));
|
|
1153
|
+
var tmp$ret$3 = tmp1_elvis_lhs == null ? item : tmp1_elvis_lhs;
|
|
1154
|
+
destination.x(tmp$ret$3);
|
|
1156
1155
|
}
|
|
1157
|
-
tmp = element.
|
|
1156
|
+
tmp = element.rx(VOID, VOID, VOID, destination);
|
|
1158
1157
|
} else {
|
|
1159
1158
|
tmp = element;
|
|
1160
1159
|
}
|
|
@@ -1162,13 +1161,14 @@ function addIdentityTypeToCall$lambda(element, transformer) {
|
|
|
1162
1161
|
return transformChildren_0(transformed, transformer);
|
|
1163
1162
|
}
|
|
1164
1163
|
//region block: post-declaration
|
|
1165
|
-
protoOf(
|
|
1166
|
-
protoOf(
|
|
1167
|
-
protoOf(
|
|
1164
|
+
protoOf(ScalaEmitter).d1a = get_extensions;
|
|
1165
|
+
protoOf(ScalaEmitter).to = emit_0;
|
|
1166
|
+
protoOf(ScalaEmitter).a1a = emit_1;
|
|
1167
|
+
protoOf(ScalaEmitter).up = get_supportsDefaults;
|
|
1168
1168
|
//endregion
|
|
1169
1169
|
//region block: exports
|
|
1170
1170
|
export {
|
|
1171
|
-
|
|
1171
|
+
ScalaEmitter as ScalaEmitter3fpajh5neerxm,
|
|
1172
1172
|
};
|
|
1173
1173
|
//endregion
|
|
1174
1174
|
|