@flock/wirespec 0.18.5 → 0.19.0-RC.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Kotlin-DateTime-library-kotlinx-datetime.mjs +4 -0
- package/Kotlin-DateTime-library-kotlinx-datetime.mjs.map +1 -0
- package/arrow-arrow-atomic.mjs +12 -12
- package/arrow-arrow-core.mjs +163 -163
- package/clikt-clikt-mordant.mjs +80 -80
- package/clikt-clikt-mordant.mjs.map +1 -1
- package/clikt-clikt.mjs +1574 -1574
- package/clikt-clikt.mjs.map +1 -1
- package/colormath-root-colormath.mjs +444 -444
- package/kotest-kotest-assertions-kotest-assertions-core.mjs +4 -0
- package/kotest-kotest-assertions-kotest-assertions-core.mjs.map +1 -0
- package/kotest-kotest-assertions-kotest-assertions-shared.mjs +4 -0
- package/kotest-kotest-assertions-kotest-assertions-shared.mjs.map +1 -0
- package/kotest-kotest-common.mjs +56 -0
- package/kotest-kotest-common.mjs.map +1 -0
- package/kotest-kotest-framework-kotest-framework-engine.mjs +4 -0
- package/kotest-kotest-framework-kotest-framework-engine.mjs.map +1 -0
- package/kotest-kotest-property-kotest-property-datetime.mjs +4 -0
- package/kotest-kotest-property-kotest-property-datetime.mjs.map +1 -0
- package/kotest-kotest-property.mjs +3230 -0
- package/kotest-kotest-property.mjs.map +1 -0
- package/kotest-property-arbs.mjs +482 -0
- package/kotest-property-arbs.mjs.map +1 -0
- package/kotlin-kotlin-stdlib.mjs +5618 -2436
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +4931 -4931
- package/kotlin-openapi-bindings.mjs.map +1 -1
- package/kotlin-rgxgen.mjs +1819 -1819
- package/kotlinx-coroutines-test.mjs +4 -0
- package/kotlinx-coroutines-test.mjs.map +1 -0
- package/kotlinx-io-kotlinx-io-core.mjs +453 -453
- package/kotlinx-io-kotlinx-io-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +2017 -1983
- package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1395 -1395
- package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
- package/mordant-mordant.mjs +1364 -1364
- package/package.json +9 -2
- package/wirespec-generator.d.ts +52 -0
- package/wirespec-generator.mjs +9 -0
- package/wirespec-src-compiler-core.mjs +1542 -1541
- package/wirespec-src-compiler-emitters-java.mjs +476 -413
- package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-kotlin.mjs +359 -296
- package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-python.mjs +560 -362
- package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-rust.mjs +754 -443
- package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-scala.mjs +243 -164
- package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-typescript.mjs +709 -420
- package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-wirespec.mjs +82 -82
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-ir.mjs +6676 -4858
- package/wirespec-src-compiler-ir.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +418 -418
- package/wirespec-src-compiler-lib.mjs.map +1 -1
- package/wirespec-src-converter-avro.mjs +512 -512
- package/wirespec-src-converter-avro.mjs.map +1 -1
- package/wirespec-src-converter-openapi.mjs +772 -772
- package/wirespec-src-converter-openapi.mjs.map +1 -1
- package/wirespec-src-integration-kotest.mjs +1537 -0
- package/wirespec-src-integration-kotest.mjs.map +1 -0
- package/wirespec-src-plugin-arguments.mjs +185 -185
- package/wirespec-src-plugin-arguments.mjs.map +1 -1
- package/wirespec-src-plugin-cli.mjs +106 -106
- package/wirespec-src-plugin-npm.d.mts +11 -0
- package/wirespec-src-plugin-npm.mjs +41 -41
- package/wirespec-src-plugin-npm.mjs.map +1 -1
- package/wirespec-src-tools-generator.mjs +53 -53
- package/wirespec-src-tools-generator.mjs.map +1 -1
- package/xmlutil-core.mjs +4 -0
- package/xmlutil-core.mjs.map +1 -0
- package/xmlutil-serialization.mjs +4 -0
- package/xmlutil-serialization.mjs.map +1 -0
|
@@ -22,6 +22,10 @@ import {
|
|
|
22
22
|
FieldIdentifier34k7iphndcnl0 as FieldIdentifier,
|
|
23
23
|
DefinitionIdentifiervfasqdb33qef as DefinitionIdentifier,
|
|
24
24
|
addBackticks1di5q03fw4yhx as addBackticks,
|
|
25
|
+
Unionccsavx6nrdr2 as Union,
|
|
26
|
+
Refined1lkzc0dg6wey7 as Refined,
|
|
27
|
+
Enum3l2iuc342kle6 as Enum,
|
|
28
|
+
Type12n1gx16iqtcu as Type,
|
|
25
29
|
plus14o24vdaiongg as plus_0,
|
|
26
30
|
Bytes_instance1o9u095wd3kx6 as Bytes_instance,
|
|
27
31
|
Boolean_instance237vwt01w3hs8 as Boolean_instance,
|
|
@@ -88,9 +92,15 @@ import {
|
|
|
88
92
|
Paire9pteg33gng7 as Pair,
|
|
89
93
|
plus20p0vtfmu0596 as plus_1,
|
|
90
94
|
plus310ted5e4i90h as plus_2,
|
|
95
|
+
substringBefore3n7kj60w69hju as substringBefore,
|
|
91
96
|
listOf1jh22dvmctj1r as listOf_0,
|
|
92
97
|
lazy2hsh8ze7j6ikd as lazy,
|
|
93
98
|
isInterface3d6p8outrmvmk as isInterface,
|
|
99
|
+
asSequence2phdjljfh9jhx as asSequence_0,
|
|
100
|
+
filterNot56uwv8hfomaa as filterNot,
|
|
101
|
+
mapsbvh18eqox7a as map,
|
|
102
|
+
distinct17vua5ffe1cfv as distinct_0,
|
|
103
|
+
toListx6x8nvfmvvht as toList,
|
|
94
104
|
firstOrNull1982767dljvdy as firstOrNull_0,
|
|
95
105
|
listOfNotNull1v4ggfackvuny as listOfNotNull_0,
|
|
96
106
|
ensureNotNull1e947j3ixpazm as ensureNotNull,
|
|
@@ -128,8 +138,14 @@ import {
|
|
|
128
138
|
emitn3eihixilqyh as emit_0,
|
|
129
139
|
prependImports32gcj3yb8voha as prependImports,
|
|
130
140
|
placeInPackage1ffljbk9me4ug as placeInPackage,
|
|
131
|
-
|
|
141
|
+
convertToGenerator2wzjrmaavxhph as convertToGenerator,
|
|
142
|
+
convertToGeneratorkggw47cqose7 as convertToGenerator_0,
|
|
143
|
+
convertToGenerator3rjr3azp4vdsx as convertToGenerator_1,
|
|
144
|
+
convertToGenerator2msmr3acdd5nx as convertToGenerator_2,
|
|
132
145
|
sanitizeNames2wqmyf8vafp9x as sanitizeNames,
|
|
146
|
+
collectCustomTypeNames373f3lwl9sqd5 as collectCustomTypeNames,
|
|
147
|
+
placeInPackagena6oqbi45fz6 as placeInPackage_0,
|
|
148
|
+
convertWithValidation3ar3nbcqsbkpn as convertWithValidation,
|
|
133
149
|
ensureEmptyStructHasConstructorfl467argh9dd as ensureEmptyStructHasConstructor,
|
|
134
150
|
convert11ert2po54h1y as convert_0,
|
|
135
151
|
injectEnumLabelFieldyfohidz6c88i as injectEnumLabelField,
|
|
@@ -143,6 +159,7 @@ import {
|
|
|
143
159
|
emitClient32kfwzg2hm5vj as emitClient,
|
|
144
160
|
emit1oxjujel6f3jb as emit_1,
|
|
145
161
|
emit3bzdcd0f6nwtj as emit_2,
|
|
162
|
+
beforeGenerate3o8idb3hey1b0 as beforeGenerate,
|
|
146
163
|
IrEmitterh2m93ojzvkep as IrEmitter,
|
|
147
164
|
rawttvqxl50flj9 as raw,
|
|
148
165
|
Interface3pn84xq686t2r as Interface,
|
|
@@ -153,10 +170,10 @@ import {
|
|
|
153
170
|
function emit_3(identifier) {
|
|
154
171
|
var tmp;
|
|
155
172
|
if (identifier instanceof DefinitionIdentifier) {
|
|
156
|
-
tmp = this.
|
|
173
|
+
tmp = this.n21(identifier);
|
|
157
174
|
} else {
|
|
158
175
|
if (identifier instanceof FieldIdentifier) {
|
|
159
|
-
tmp = this.
|
|
176
|
+
tmp = this.d21(this.n21(identifier));
|
|
160
177
|
} else {
|
|
161
178
|
noWhenBranchMatchedException();
|
|
162
179
|
}
|
|
@@ -165,7 +182,7 @@ function emit_3(identifier) {
|
|
|
165
182
|
}
|
|
166
183
|
function sanitize(_this__u8e3s4) {
|
|
167
184
|
// Inline function 'kotlin.collections.mapIndexed' call
|
|
168
|
-
var this_0 = split(_this__u8e3s4.
|
|
185
|
+
var this_0 = split(_this__u8e3s4.n1(), ['.', ' ']);
|
|
169
186
|
// Inline function 'kotlin.collections.mapIndexedTo' call
|
|
170
187
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
171
188
|
var index = 0;
|
|
@@ -174,11 +191,11 @@ function sanitize(_this__u8e3s4) {
|
|
|
174
191
|
var item = _iterator__ex2g4s.v();
|
|
175
192
|
var _unary__edvuaz = index;
|
|
176
193
|
index = _unary__edvuaz + 1 | 0;
|
|
177
|
-
var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance_1.
|
|
194
|
+
var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance_1.ev(item) : item;
|
|
178
195
|
destination.x(tmp$ret$0);
|
|
179
196
|
}
|
|
180
197
|
var tmp = asSequence(joinToString(destination, ''));
|
|
181
|
-
return this.
|
|
198
|
+
return this.c21(joinToString_0(filter(tmp, KotlinIdentifierEmitter$sanitize$lambda), ''));
|
|
182
199
|
}
|
|
183
200
|
function sanitizeFirstIsDigit(_this__u8e3s4) {
|
|
184
201
|
var tmp;
|
|
@@ -198,18 +215,18 @@ function sanitizeFirstIsDigit(_this__u8e3s4) {
|
|
|
198
215
|
return tmp;
|
|
199
216
|
}
|
|
200
217
|
function sanitizeKeywords(_this__u8e3s4) {
|
|
201
|
-
return Companion_getInstance_0().
|
|
218
|
+
return Companion_getInstance_0().a22_1.a2(_this__u8e3s4) ? addBackticks(_this__u8e3s4) : _this__u8e3s4;
|
|
202
219
|
}
|
|
203
220
|
initMetadataForInterface(KotlinIdentifierEmitter, 'KotlinIdentifierEmitter');
|
|
204
221
|
function emit_4(type, module_0) {
|
|
205
222
|
var tmp;
|
|
206
|
-
if (type.
|
|
207
|
-
tmp = 'data object ' + this.
|
|
223
|
+
if (type.mt_1.it_1.r()) {
|
|
224
|
+
tmp = 'data object ' + this.mv(type.lt_1);
|
|
208
225
|
} else {
|
|
209
|
-
var tmp_0 = this.
|
|
210
|
-
var tmp_1 = this.
|
|
226
|
+
var tmp_0 = this.mv(type.lt_1);
|
|
227
|
+
var tmp_1 = this.lu(type.mt_1);
|
|
211
228
|
// Inline function 'kotlin.run' call
|
|
212
|
-
var $this$run = type.
|
|
229
|
+
var $this$run = type.nt_1;
|
|
213
230
|
var tmp_2;
|
|
214
231
|
if ($this$run.r()) {
|
|
215
232
|
tmp_2 = '';
|
|
@@ -222,18 +239,18 @@ function emit_4(type, module_0) {
|
|
|
222
239
|
return tmp;
|
|
223
240
|
}
|
|
224
241
|
function emit_5(_this__u8e3s4) {
|
|
225
|
-
return dropLast(joinToString(_this__u8e3s4.
|
|
242
|
+
return dropLast(joinToString(_this__u8e3s4.it_1, '\n', VOID, VOID, VOID, VOID, KotlinTypeDefinitionEmitter$emit$lambda_0(this)), 1);
|
|
226
243
|
}
|
|
227
244
|
function emit_6(_this__u8e3s4) {
|
|
228
|
-
return this.
|
|
245
|
+
return this.mv(_this__u8e3s4.qt_1) + ': ' + this.nu(_this__u8e3s4.rt_1);
|
|
229
246
|
}
|
|
230
247
|
function emit_7(_this__u8e3s4) {
|
|
231
248
|
var tmp;
|
|
232
249
|
if (_this__u8e3s4 instanceof Dict) {
|
|
233
|
-
tmp = 'Map<String, ' + this.
|
|
250
|
+
tmp = 'Map<String, ' + this.nu(_this__u8e3s4.ss_1) + '>';
|
|
234
251
|
} else {
|
|
235
252
|
if (_this__u8e3s4 instanceof Iterable) {
|
|
236
|
-
tmp = 'List<' + this.
|
|
253
|
+
tmp = 'List<' + this.nu(_this__u8e3s4.ps_1) + '>';
|
|
237
254
|
} else {
|
|
238
255
|
if (_this__u8e3s4 instanceof Unit) {
|
|
239
256
|
tmp = 'Unit';
|
|
@@ -242,17 +259,17 @@ function emit_7(_this__u8e3s4) {
|
|
|
242
259
|
tmp = 'Any';
|
|
243
260
|
} else {
|
|
244
261
|
if (_this__u8e3s4 instanceof Custom) {
|
|
245
|
-
tmp = _this__u8e3s4.
|
|
262
|
+
tmp = _this__u8e3s4.az_1;
|
|
246
263
|
} else {
|
|
247
264
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
248
|
-
var t = _this__u8e3s4.
|
|
265
|
+
var t = _this__u8e3s4.ez_1;
|
|
249
266
|
var tmp_0;
|
|
250
267
|
if (t instanceof String_0) {
|
|
251
268
|
tmp_0 = 'String';
|
|
252
269
|
} else {
|
|
253
270
|
if (t instanceof Integer) {
|
|
254
271
|
var tmp_1;
|
|
255
|
-
switch (t.
|
|
272
|
+
switch (t.iy_1.h3_1) {
|
|
256
273
|
case 0:
|
|
257
274
|
tmp_1 = 'Int';
|
|
258
275
|
break;
|
|
@@ -267,7 +284,7 @@ function emit_7(_this__u8e3s4) {
|
|
|
267
284
|
} else {
|
|
268
285
|
if (t instanceof Number_0) {
|
|
269
286
|
var tmp_2;
|
|
270
|
-
switch (t.
|
|
287
|
+
switch (t.ly_1.h3_1) {
|
|
271
288
|
case 0:
|
|
272
289
|
tmp_2 = 'Float';
|
|
273
290
|
break;
|
|
@@ -303,15 +320,15 @@ function emit_7(_this__u8e3s4) {
|
|
|
303
320
|
}
|
|
304
321
|
// Inline function 'kotlin.let' call
|
|
305
322
|
var it = tmp;
|
|
306
|
-
return _this__u8e3s4.
|
|
323
|
+
return _this__u8e3s4.sy() ? it + '?' : it;
|
|
307
324
|
}
|
|
308
325
|
function emit_8(_this__u8e3s4) {
|
|
309
326
|
var tmp;
|
|
310
327
|
if (_this__u8e3s4 instanceof RegExp_0) {
|
|
311
|
-
tmp = 'Regex("""' + this.
|
|
328
|
+
tmp = 'Regex("""' + this.pu(_this__u8e3s4.ox_1) + '""").matches(value)';
|
|
312
329
|
} else {
|
|
313
330
|
if (_this__u8e3s4 instanceof Bound) {
|
|
314
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
331
|
+
var tmp1_safe_receiver = _this__u8e3s4.ey_1;
|
|
315
332
|
var tmp_0;
|
|
316
333
|
if (tmp1_safe_receiver == null) {
|
|
317
334
|
tmp_0 = null;
|
|
@@ -320,7 +337,7 @@ function emit_8(_this__u8e3s4) {
|
|
|
320
337
|
tmp_0 = tmp1_safe_receiver + ' < value';
|
|
321
338
|
}
|
|
322
339
|
var minCheck = tmp_0;
|
|
323
|
-
var tmp2_safe_receiver = _this__u8e3s4.
|
|
340
|
+
var tmp2_safe_receiver = _this__u8e3s4.fy_1;
|
|
324
341
|
var tmp_1;
|
|
325
342
|
if (tmp2_safe_receiver == null) {
|
|
326
343
|
tmp_1 = null;
|
|
@@ -348,34 +365,34 @@ function emit_8(_this__u8e3s4) {
|
|
|
348
365
|
}
|
|
349
366
|
initMetadataForInterface(KotlinTypeDefinitionEmitter, 'KotlinTypeDefinitionEmitter', VOID, VOID, [TypeDefinitionEmitter, KotlinIdentifierEmitter]);
|
|
350
367
|
function emit_9(channel) {
|
|
351
|
-
return trimMargin('\n |' + emitImports(this, channel) + '\n |\n |fun interface ' + this.
|
|
368
|
+
return trimMargin('\n |' + emitImports(this, channel) + '\n |\n |fun interface ' + this.mv(channel.ct_1) + ' {\n | operator fun invoke(message: ' + this.nu(channel.dt_1) + ')\n |}\n |\n ');
|
|
352
369
|
}
|
|
353
370
|
initMetadataForInterface(KotlinChannelDefinitionEmitter, 'KotlinChannelDefinitionEmitter', VOID, VOID, [KotlinTypeDefinitionEmitter]);
|
|
354
371
|
function emit_10(refined) {
|
|
355
|
-
return trimMargin('\n |data class ' + this.
|
|
372
|
+
return trimMargin('\n |data class ' + this.n21(refined.rv_1) + '(override val value: ' + this.nu(refined.sv_1) + '): Wirespec.Refined<' + this.nu(refined.sv_1) + '> {\n |' + Spacer_instance.toString() + 'override fun toString() = value.toString()\n |' + Spacer_instance.toString() + 'override fun validate() = ' + this.aw(refined) + '\n |}\n |\n ');
|
|
356
373
|
}
|
|
357
374
|
function emitValidator(_this__u8e3s4) {
|
|
358
375
|
var defaultReturn = 'true';
|
|
359
|
-
var type = _this__u8e3s4.
|
|
376
|
+
var type = _this__u8e3s4.sv_1.ez_1;
|
|
360
377
|
var tmp;
|
|
361
378
|
if (type instanceof Integer) {
|
|
362
|
-
var tmp0_safe_receiver = type.
|
|
363
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : this.
|
|
379
|
+
var tmp0_safe_receiver = type.jy_1;
|
|
380
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : this.ou(tmp0_safe_receiver);
|
|
364
381
|
tmp = tmp1_elvis_lhs == null ? defaultReturn : tmp1_elvis_lhs;
|
|
365
382
|
} else {
|
|
366
383
|
if (type instanceof Number_0) {
|
|
367
|
-
var tmp2_safe_receiver = type.
|
|
368
|
-
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : this.
|
|
384
|
+
var tmp2_safe_receiver = type.my_1;
|
|
385
|
+
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : this.ou(tmp2_safe_receiver);
|
|
369
386
|
tmp = tmp3_elvis_lhs == null ? defaultReturn : tmp3_elvis_lhs;
|
|
370
387
|
} else {
|
|
371
388
|
if (type instanceof String_0) {
|
|
372
|
-
var tmp4_safe_receiver = type.
|
|
389
|
+
var tmp4_safe_receiver = type.gy_1;
|
|
373
390
|
var tmp_0;
|
|
374
391
|
var tmp_1 = tmp4_safe_receiver;
|
|
375
392
|
if ((tmp_1 == null ? null : new RegExp_0(tmp_1)) == null) {
|
|
376
393
|
tmp_0 = null;
|
|
377
394
|
} else {
|
|
378
|
-
tmp_0 = this.
|
|
395
|
+
tmp_0 = this.ou(new RegExp_0(tmp4_safe_receiver));
|
|
379
396
|
}
|
|
380
397
|
var tmp5_elvis_lhs = tmp_0;
|
|
381
398
|
tmp = tmp5_elvis_lhs == null ? defaultReturn : tmp5_elvis_lhs;
|
|
@@ -403,89 +420,89 @@ function emit_11(endpoint) {
|
|
|
403
420
|
var _iterator__ex2g4s = this_0.t();
|
|
404
421
|
while (_iterator__ex2g4s.u()) {
|
|
405
422
|
var item = _iterator__ex2g4s.v();
|
|
406
|
-
var tmp$ret$0 = 'import ' + this.
|
|
423
|
+
var tmp$ret$0 = 'import ' + this.n20().cw_1 + '.model.' + item.az_1;
|
|
407
424
|
destination.x(tmp$ret$0);
|
|
408
425
|
}
|
|
409
426
|
var tmp = destination;
|
|
410
427
|
var tmp_0 = joinToString(tmp, '\n', VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda);
|
|
411
|
-
var tmp_1 = this.
|
|
428
|
+
var tmp_1 = this.mv(endpoint.ut_1);
|
|
412
429
|
var tmp_2 = get_pathParams(endpoint);
|
|
413
430
|
var tmp_3 = emitObject$default(this, tmp_2, 'Path', 'Wirespec.Path', VOID, KotlinEndpointDefinitionEmitter$emit$lambda_0(this));
|
|
414
|
-
var tmp_4 = emitObject$default(this, endpoint.
|
|
415
|
-
var tmp_5 = emitObject$default(this, endpoint.
|
|
416
|
-
var tmp_6 = this.
|
|
431
|
+
var tmp_4 = emitObject$default(this, endpoint.xt_1, 'Queries', 'Wirespec.Queries', VOID, KotlinEndpointDefinitionEmitter$emit$lambda_1(this));
|
|
432
|
+
var tmp_5 = emitObject$default(this, endpoint.yt_1, 'Headers', 'Wirespec.Request.Headers', VOID, KotlinEndpointDefinitionEmitter$emit$lambda_2(this));
|
|
433
|
+
var tmp_6 = this.a21(first(endpoint.zt_1), endpoint);
|
|
417
434
|
var tmp_7 = Spacer_instance.toString();
|
|
418
435
|
var tmp_8 = emitStatusInterfaces(this, endpoint);
|
|
419
436
|
var tmp_9 = emitResponseInterfaces(this, endpoint);
|
|
420
|
-
var tmp_10 = distinctByStatus(endpoint.
|
|
437
|
+
var tmp_10 = distinctByStatus(endpoint.au_1);
|
|
421
438
|
var tmp_11 = joinToString(tmp_10, '\n\n', VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda_3(this));
|
|
422
439
|
var tmp_12 = Spacer_instance.toString();
|
|
423
|
-
var tmp_13 = Spacer_instance.
|
|
424
|
-
var tmp_14 = distinctByStatus(endpoint.
|
|
440
|
+
var tmp_13 = Spacer_instance.gw(2);
|
|
441
|
+
var tmp_14 = distinctByStatus(endpoint.au_1);
|
|
425
442
|
var tmp_15 = joinToString(tmp_14, '\n', VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda_4(this));
|
|
426
|
-
var tmp_16 = Spacer_instance.
|
|
443
|
+
var tmp_16 = Spacer_instance.gw(2);
|
|
427
444
|
var tmp_17 = Spacer_instance.toString();
|
|
428
|
-
var tmp_18 = Spacer_instance.
|
|
445
|
+
var tmp_18 = Spacer_instance.gw(2);
|
|
429
446
|
// Inline function 'kotlin.collections.filter' call
|
|
430
|
-
var tmp0 = distinctByStatus(endpoint.
|
|
447
|
+
var tmp0 = distinctByStatus(endpoint.au_1);
|
|
431
448
|
// Inline function 'kotlin.collections.filterTo' call
|
|
432
449
|
var destination_0 = ArrayList_init_$Create$_0();
|
|
433
450
|
var _iterator__ex2g4s_0 = tmp0.t();
|
|
434
451
|
while (_iterator__ex2g4s_0.u()) {
|
|
435
452
|
var element = _iterator__ex2g4s_0.v();
|
|
436
|
-
if (Companion_instance_1.
|
|
453
|
+
if (Companion_instance_1.hv(element.gu_1)) {
|
|
437
454
|
destination_0.x(element);
|
|
438
455
|
}
|
|
439
456
|
}
|
|
440
457
|
var tmp_19 = destination_0;
|
|
441
458
|
var tmp_20 = joinToString(tmp_19, '\n', VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda_5(this));
|
|
442
|
-
var tmp_21 = Spacer_instance.
|
|
443
|
-
var tmp_22 = Spacer_instance.
|
|
459
|
+
var tmp_21 = Spacer_instance.gw(3);
|
|
460
|
+
var tmp_22 = Spacer_instance.gw(2);
|
|
444
461
|
var tmp_23 = Spacer_instance.toString();
|
|
445
|
-
var tmp_24 = Spacer_instance.
|
|
446
|
-
var tmp_25 = this.
|
|
447
|
-
var tmp_26 = Spacer_instance.
|
|
448
|
-
var tmp_27 = Spacer_instance.
|
|
449
|
-
return trimMargin('\n |' + tmp_0 + '\n |\n |object ' + tmp_1 + ' : Wirespec.Endpoint {\n |' + tmp_3 + '\n |\n |' + tmp_4 + '\n |\n |' + tmp_5 + '\n |\n |' + tmp_6 + '\n |\n |' + tmp_7 + 'sealed interface Response<T: Any> : Wirespec.Response<T>\n |\n |' + tmp_8 + '\n |\n |' + tmp_9 + '\n |\n |' + tmp_11 + '\n |\n |' + tmp_12 + 'fun toResponse(serialization: Wirespec.Serializer, response: Response<*>): Wirespec.RawResponse =\n |' + tmp_13 + 'when(response) {\n |' + tmp_15 + '\n |' + tmp_16 + '}\n |\n |' + tmp_17 + 'fun fromResponse(serialization: Wirespec.Deserializer, response: Wirespec.RawResponse): Response<*> =\n |' + tmp_18 + 'when (response.statusCode) {\n |' + tmp_20 + '\n |' + tmp_21 + 'else -> error("Cannot match response with status: ${response.statusCode}")\n |' + tmp_22 + '}\n |\n |' + tmp_23 + 'interface Handler: Wirespec.Handler {\n |' + tmp_24 + tmp_25 + '\n |' + tmp_26 + 'companion object: Wirespec.Server<Request, Response<*>>, Wirespec.Client<Request, Response<*>> {\n |' + tmp_27 + 'override val pathTemplate = "/' + joinToString(endpoint.
|
|
462
|
+
var tmp_24 = Spacer_instance.gw(2);
|
|
463
|
+
var tmp_25 = this.e21(endpoint);
|
|
464
|
+
var tmp_26 = Spacer_instance.gw(2);
|
|
465
|
+
var tmp_27 = Spacer_instance.gw(3);
|
|
466
|
+
return trimMargin('\n |' + tmp_0 + '\n |\n |object ' + tmp_1 + ' : Wirespec.Endpoint {\n |' + tmp_3 + '\n |\n |' + tmp_4 + '\n |\n |' + tmp_5 + '\n |\n |' + tmp_6 + '\n |\n |' + tmp_7 + 'sealed interface Response<T: Any> : Wirespec.Response<T>\n |\n |' + tmp_8 + '\n |\n |' + tmp_9 + '\n |\n |' + tmp_11 + '\n |\n |' + tmp_12 + 'fun toResponse(serialization: Wirespec.Serializer, response: Response<*>): Wirespec.RawResponse =\n |' + tmp_13 + 'when(response) {\n |' + tmp_15 + '\n |' + tmp_16 + '}\n |\n |' + tmp_17 + 'fun fromResponse(serialization: Wirespec.Deserializer, response: Wirespec.RawResponse): Response<*> =\n |' + tmp_18 + 'when (response.statusCode) {\n |' + tmp_20 + '\n |' + tmp_21 + 'else -> error("Cannot match response with status: ${response.statusCode}")\n |' + tmp_22 + '}\n |\n |' + tmp_23 + 'interface Handler: Wirespec.Handler {\n |' + tmp_24 + tmp_25 + '\n |' + tmp_26 + 'companion object: Wirespec.Server<Request, Response<*>>, Wirespec.Client<Request, Response<*>> {\n |' + tmp_27 + 'override val pathTemplate = "/' + joinToString(endpoint.wt_1, '/', VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda_6) + '"\n |' + Spacer_instance.gw(3) + 'override val method = "' + endpoint.vt_1.toString() + '"\n |' + Spacer_instance.gw(3) + 'override fun server(serialization: Wirespec.Serialization) = object : Wirespec.ServerEdge<Request, Response<*>> {\n |' + Spacer_instance.gw(4) + 'override fun from(request: Wirespec.RawRequest) = fromRequest(serialization, request)\n |' + Spacer_instance.gw(4) + 'override fun to(response: Response<*>) = toResponse(serialization, response)\n |' + Spacer_instance.gw(3) + '}\n |' + Spacer_instance.gw(3) + 'override fun client(serialization: Wirespec.Serialization) = object : Wirespec.ClientEdge<Request, Response<*>> {\n |' + Spacer_instance.gw(4) + 'override fun to(request: Request) = toRequest(serialization, request)\n |' + Spacer_instance.gw(4) + 'override fun from(response: Wirespec.RawResponse) = fromResponse(serialization, response)\n |' + Spacer_instance.gw(3) + '}\n |' + Spacer_instance.gw(2) + '}\n |' + Spacer_instance.toString() + '}\n |}\n |\n ');
|
|
450
467
|
}
|
|
451
468
|
function emitHandleFunction(endpoint) {
|
|
452
|
-
return 'suspend fun ' + Companion_instance_1.
|
|
469
|
+
return 'suspend fun ' + Companion_instance_1.fv(this.mv(endpoint.ut_1)) + '(request: Request): Response<*>';
|
|
453
470
|
}
|
|
454
471
|
function emit_12(_this__u8e3s4, endpoint) {
|
|
455
472
|
var tmp = Spacer_instance.toString();
|
|
456
473
|
var tmp_0 = emitConstructor(this, _this__u8e3s4, endpoint);
|
|
457
|
-
var tmp_1 = Spacer_instance.
|
|
474
|
+
var tmp_1 = Spacer_instance.gw(2);
|
|
458
475
|
var tmp_2 = get_pathParams(endpoint);
|
|
459
476
|
var tmp_3 = brace(this, joinToString(tmp_2, VOID, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda_7(this)));
|
|
460
|
-
var tmp_4 = Spacer_instance.
|
|
461
|
-
var tmp_5 = Spacer_instance.
|
|
462
|
-
var tmp_6 = brace(this, joinToString(endpoint.
|
|
463
|
-
var tmp_7 = Spacer_instance.
|
|
464
|
-
var tmp_8 = brace(this, joinToString(endpoint.
|
|
465
|
-
var tmp_9 = _this__u8e3s4.
|
|
477
|
+
var tmp_4 = Spacer_instance.gw(2);
|
|
478
|
+
var tmp_5 = Spacer_instance.gw(2);
|
|
479
|
+
var tmp_6 = brace(this, joinToString(endpoint.xt_1, VOID, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda_8(this)));
|
|
480
|
+
var tmp_7 = Spacer_instance.gw(2);
|
|
481
|
+
var tmp_8 = brace(this, joinToString(endpoint.yt_1, VOID, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda_9(this)));
|
|
482
|
+
var tmp_9 = _this__u8e3s4.du_1 == null ? Spacer_instance.gw(2) + 'override val body = Unit\n' + Spacer_instance.toString() + '}' : Spacer_instance.toString() + '}';
|
|
466
483
|
var tmp_10 = Spacer_instance.toString();
|
|
467
|
-
var tmp_11 = Spacer_instance.
|
|
468
|
-
var tmp_12 = Spacer_instance.
|
|
469
|
-
return trimMargin('\n |' + tmp + tmp_0 + '\n |' + tmp_1 + 'override val path = Path' + tmp_3 + '\n |' + tmp_4 + 'override val method = Wirespec.Method.' + endpoint.
|
|
484
|
+
var tmp_11 = Spacer_instance.gw(2);
|
|
485
|
+
var tmp_12 = Spacer_instance.gw(3);
|
|
486
|
+
return trimMargin('\n |' + tmp + tmp_0 + '\n |' + tmp_1 + 'override val path = Path' + tmp_3 + '\n |' + tmp_4 + 'override val method = Wirespec.Method.' + endpoint.vt_1.g3_1 + '\n |' + tmp_5 + 'override val queries = Queries' + tmp_6 + '\n |' + tmp_7 + 'override val headers = Headers' + tmp_8 + '\n |' + tmp_9 + '\n |\n |' + tmp_10 + 'fun toRequest(serialization: Wirespec.Serializer, request: Request): Wirespec.RawRequest =\n |' + tmp_11 + 'Wirespec.RawRequest(\n |' + tmp_12 + 'path = listOf(' + joinToString(endpoint.wt_1, VOID, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda_10(this)) + '),\n |' + Spacer_instance.gw(3) + 'method = request.method.name,\n |' + Spacer_instance.gw(3) + 'queries = ' + this.x21(endpoint) + ',\n |' + Spacer_instance.gw(3) + 'headers = ' + this.w21(endpoint) + ',\n |' + Spacer_instance.gw(3) + 'body = ' + (!(_this__u8e3s4.du_1 == null) ? 'serialization.serializeBody(request.body, typeOf<' + emit_16(this, _this__u8e3s4.du_1) + '>())' : 'null') + ',\n |' + Spacer_instance.gw(2) + ')\n |\n |' + Spacer_instance.toString() + 'fun fromRequest(serialization: Wirespec.Deserializer, request: Wirespec.RawRequest): Request =\n |' + Spacer_instance.gw(2) + 'Request' + emitDeserializedParams(this, _this__u8e3s4, endpoint) + '\n ');
|
|
470
487
|
}
|
|
471
488
|
function emitRequestHeaders(_this__u8e3s4) {
|
|
472
489
|
var tmp;
|
|
473
|
-
if (_this__u8e3s4.
|
|
490
|
+
if (_this__u8e3s4.yt_1.r()) {
|
|
474
491
|
tmp = 'emptyMap()';
|
|
475
492
|
} else {
|
|
476
|
-
var tmp_0 = Spacer_instance.
|
|
477
|
-
var tmp_1 = ',\n' + Spacer_instance.
|
|
478
|
-
tmp = trimMargin('\n |mapOf(\n |' + tmp_0 + joinToString(_this__u8e3s4.
|
|
493
|
+
var tmp_0 = Spacer_instance.gw(5);
|
|
494
|
+
var tmp_1 = ',\n' + Spacer_instance.gw(5);
|
|
495
|
+
tmp = trimMargin('\n |mapOf(\n |' + tmp_0 + joinToString(_this__u8e3s4.yt_1, tmp_1, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitRequestHeaders$lambda(this)) + '\n |' + Spacer_instance.gw(4) + ')\n ');
|
|
479
496
|
}
|
|
480
497
|
return tmp;
|
|
481
498
|
}
|
|
482
499
|
function emitQueries(endpoint) {
|
|
483
500
|
var tmp;
|
|
484
501
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
485
|
-
if (!endpoint.
|
|
486
|
-
var tmp_0 = Spacer_instance.
|
|
487
|
-
var tmp_1 = ',\n' + Spacer_instance.
|
|
488
|
-
tmp = trimMargin('\n |mapOf(\n |' + tmp_0 + joinToString(endpoint.
|
|
502
|
+
if (!endpoint.xt_1.r()) {
|
|
503
|
+
var tmp_0 = Spacer_instance.gw(5);
|
|
504
|
+
var tmp_1 = ',\n' + Spacer_instance.gw(5);
|
|
505
|
+
tmp = trimMargin('\n |mapOf(\n |' + tmp_0 + joinToString(endpoint.xt_1, tmp_1, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitQueries$lambda(this)) + '\n |' + Spacer_instance.gw(4) + ')\n ');
|
|
489
506
|
} else {
|
|
490
507
|
tmp = 'emptyMap()';
|
|
491
508
|
}
|
|
@@ -493,44 +510,44 @@ function emitQueries(endpoint) {
|
|
|
493
510
|
}
|
|
494
511
|
function emit_13(_this__u8e3s4) {
|
|
495
512
|
// Inline function 'kotlin.let' call
|
|
496
|
-
var it = joinToString(_this__u8e3s4.
|
|
513
|
+
var it = joinToString(_this__u8e3s4.hu_1, ', ', VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda_11(this));
|
|
497
514
|
var responseHeaderFields = isBlank(it) ? '' : ', ' + it;
|
|
498
515
|
var tmp = Spacer_instance.toString();
|
|
499
|
-
var tmp_0 = emit_16(this, _this__u8e3s4.
|
|
500
|
-
var tmp_1 = toString_0(charCodeAt(_this__u8e3s4.
|
|
501
|
-
var tmp_2 = emit_16(this, _this__u8e3s4.
|
|
502
|
-
var tmp_3 = concatGenerics(emit_16(this, _this__u8e3s4.
|
|
503
|
-
var tmp_4 = Spacer_instance.
|
|
504
|
-
var tmp_5 = fixStatus(_this__u8e3s4.
|
|
505
|
-
var tmp_6 = Spacer_instance.
|
|
506
|
-
var tmp_7 = brace(this, joinToString(_this__u8e3s4.
|
|
507
|
-
return trimMargin('\n |' + tmp + 'data class Response' + _this__u8e3s4.
|
|
516
|
+
var tmp_0 = emit_16(this, _this__u8e3s4.iu_1);
|
|
517
|
+
var tmp_1 = toString_0(charCodeAt(_this__u8e3s4.gu_1, 0));
|
|
518
|
+
var tmp_2 = emit_16(this, _this__u8e3s4.iu_1);
|
|
519
|
+
var tmp_3 = concatGenerics(emit_16(this, _this__u8e3s4.iu_1));
|
|
520
|
+
var tmp_4 = Spacer_instance.gw(2);
|
|
521
|
+
var tmp_5 = fixStatus(_this__u8e3s4.gu_1);
|
|
522
|
+
var tmp_6 = Spacer_instance.gw(2);
|
|
523
|
+
var tmp_7 = brace(this, joinToString(_this__u8e3s4.hu_1, VOID, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda_12(this)));
|
|
524
|
+
return trimMargin('\n |' + tmp + 'data class Response' + _this__u8e3s4.gu_1 + '(override val body: ' + tmp_0 + responseHeaderFields + ') : Response' + tmp_1 + 'XX<' + tmp_2 + '>, Response' + tmp_3 + ' {\n |' + tmp_4 + 'override val status = ' + tmp_5 + '\n |' + tmp_6 + 'override val headers = ResponseHeaders' + tmp_7 + '\n |' + emitObject(this, _this__u8e3s4.hu_1, 'ResponseHeaders', 'Wirespec.Response.Headers', 2, KotlinEndpointDefinitionEmitter$emit$lambda_13(this)) + '\n |' + Spacer_instance.toString() + '}\n ');
|
|
508
525
|
}
|
|
509
526
|
function emitBody(_this__u8e3s4, content) {
|
|
510
527
|
return 'serialization.serializeBody(response.body, typeOf<' + emit_16(_this__u8e3s4, content) + '>())';
|
|
511
528
|
}
|
|
512
529
|
function emitHeaders(_this__u8e3s4) {
|
|
513
530
|
var tmp;
|
|
514
|
-
if (_this__u8e3s4.
|
|
531
|
+
if (_this__u8e3s4.hu_1.r()) {
|
|
515
532
|
tmp = 'emptyMap()';
|
|
516
533
|
} else {
|
|
517
|
-
var tmp_0 = Spacer_instance.
|
|
518
|
-
var tmp_1 = ',\n' + Spacer_instance.
|
|
519
|
-
tmp = trimMargin('\n |mapOf(\n |' + tmp_0 + joinToString(_this__u8e3s4.
|
|
534
|
+
var tmp_0 = Spacer_instance.gw(5);
|
|
535
|
+
var tmp_1 = ',\n' + Spacer_instance.gw(5);
|
|
536
|
+
tmp = trimMargin('\n |mapOf(\n |' + tmp_0 + joinToString(_this__u8e3s4.hu_1, tmp_1, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitHeaders$lambda(this)) + '\n |' + Spacer_instance.gw(4) + ')\n ');
|
|
520
537
|
}
|
|
521
538
|
return tmp;
|
|
522
539
|
}
|
|
523
540
|
initMetadataForInterface(KotlinEndpointDefinitionEmitter, 'KotlinEndpointDefinitionEmitter', VOID, VOID, [KotlinTypeDefinitionEmitter]);
|
|
524
541
|
function emit_14(union) {
|
|
525
|
-
return trimMargin('\n |sealed interface ' + this.
|
|
542
|
+
return trimMargin('\n |sealed interface ' + this.mv(union.gt_1) + '\n |\n ');
|
|
526
543
|
}
|
|
527
544
|
initMetadataForInterface(KotlinUnionDefinitionEmitter, 'KotlinUnionDefinitionEmitter', VOID, VOID, [KotlinIdentifierEmitter]);
|
|
528
545
|
function emit_15(enum_0, module_0) {
|
|
529
|
-
var tmp = this.
|
|
530
|
-
return trimMargin('\n |enum class ' + tmp + ' (override val label: String): Wirespec.Enum {\n |' + spacer(joinToString(enum_0.
|
|
546
|
+
var tmp = this.n21(enum_0.wv_1);
|
|
547
|
+
return trimMargin('\n |enum class ' + tmp + ' (override val label: String): Wirespec.Enum {\n |' + spacer(joinToString(enum_0.xv_1, ',\n', VOID, VOID, VOID, VOID, KotlinEnumDefinitionEmitter$emit$lambda(this))) + ';\n |' + Spacer_instance.toString() + 'override fun toString(): String {\n |' + Spacer_instance.gw(2) + 'return label\n |' + Spacer_instance.toString() + '}\n |}\n |\n ');
|
|
531
548
|
}
|
|
532
549
|
initMetadataForInterface(KotlinEnumDefinitionEmitter, 'KotlinEnumDefinitionEmitter', VOID, VOID, [KotlinIdentifierEmitter]);
|
|
533
|
-
initMetadataForClass(KotlinEmitter, 'KotlinEmitter', KotlinEmitter, LanguageEmitter, [LanguageEmitter,
|
|
550
|
+
initMetadataForClass(KotlinEmitter, 'KotlinEmitter', KotlinEmitter, LanguageEmitter, [LanguageEmitter, KotlinTypeDefinitionEmitter, KotlinRefinedTypeDefinitionEmitter, KotlinEndpointDefinitionEmitter, KotlinUnionDefinitionEmitter, KotlinEnumDefinitionEmitter, KotlinIdentifierEmitter, KotlinChannelDefinitionEmitter]);
|
|
534
551
|
initMetadataForCompanion(Companion);
|
|
535
552
|
initMetadataForCompanion(Companion_0);
|
|
536
553
|
initMetadataForClass(KotlinIrEmitter, 'KotlinIrEmitter', KotlinIrEmitter, VOID, [IrEmitter]);
|
|
@@ -544,7 +561,7 @@ function emitImports($this, _this__u8e3s4) {
|
|
|
544
561
|
var _iterator__ex2g4s = this_0.t();
|
|
545
562
|
while (_iterator__ex2g4s.u()) {
|
|
546
563
|
var item = _iterator__ex2g4s.v();
|
|
547
|
-
var tmp$ret$0 = 'import ' + $this.
|
|
564
|
+
var tmp$ret$0 = 'import ' + $this.n20().cw_1 + '.model.' + item.az_1 + ';';
|
|
548
565
|
destination.x(tmp$ret$0);
|
|
549
566
|
}
|
|
550
567
|
var tmp = destination;
|
|
@@ -557,52 +574,52 @@ function KotlinChannelDefinitionEmitter$emitImports$lambda(it) {
|
|
|
557
574
|
function KotlinChannelDefinitionEmitter() {
|
|
558
575
|
}
|
|
559
576
|
function KotlinEmitter(packageName, emitShared) {
|
|
560
|
-
packageName = packageName === VOID ? Companion_instance.
|
|
561
|
-
emitShared = emitShared === VOID ? Companion_instance_0.
|
|
577
|
+
packageName = packageName === VOID ? Companion_instance.bw('community.flock.wirespec.generated') : packageName;
|
|
578
|
+
emitShared = emitShared === VOID ? Companion_instance_0.ws() : emitShared;
|
|
562
579
|
LanguageEmitter.call(this);
|
|
563
|
-
this.
|
|
564
|
-
this.
|
|
565
|
-
this.
|
|
566
|
-
this.
|
|
567
|
-
this.
|
|
568
|
-
this.
|
|
569
|
-
}
|
|
570
|
-
protoOf(KotlinEmitter).
|
|
571
|
-
return this.
|
|
580
|
+
this.o21_1 = packageName;
|
|
581
|
+
this.p21_1 = emitShared;
|
|
582
|
+
this.q21_1 = '\nimport community.flock.wirespec.kotlin.Wirespec\nimport kotlin.reflect.typeOf\n';
|
|
583
|
+
this.r21_1 = FileExtension_Kotlin_getInstance();
|
|
584
|
+
this.s21_1 = KotlinShared_getInstance();
|
|
585
|
+
this.t21_1 = '//';
|
|
586
|
+
}
|
|
587
|
+
protoOf(KotlinEmitter).n20 = function () {
|
|
588
|
+
return this.o21_1;
|
|
572
589
|
};
|
|
573
|
-
protoOf(KotlinEmitter).
|
|
574
|
-
return this.
|
|
590
|
+
protoOf(KotlinEmitter).uu = function () {
|
|
591
|
+
return this.r21_1;
|
|
575
592
|
};
|
|
576
|
-
protoOf(KotlinEmitter).
|
|
577
|
-
return this.
|
|
593
|
+
protoOf(KotlinEmitter).w20 = function () {
|
|
594
|
+
return this.s21_1;
|
|
578
595
|
};
|
|
579
|
-
protoOf(KotlinEmitter).
|
|
580
|
-
return this.
|
|
596
|
+
protoOf(KotlinEmitter).vu = function () {
|
|
597
|
+
return this.t21_1;
|
|
581
598
|
};
|
|
582
|
-
protoOf(KotlinEmitter).
|
|
599
|
+
protoOf(KotlinEmitter).jv = function (module_0, logger) {
|
|
583
600
|
// Inline function 'kotlin.let' call
|
|
584
|
-
var it = protoOf(LanguageEmitter).
|
|
585
|
-
return this.
|
|
601
|
+
var it = protoOf(LanguageEmitter).jv.call(this, module_0, logger);
|
|
602
|
+
return this.p21_1.xs_1 ? NonEmptyList__plus_impl_xqmb9(it, new Emitted(Companion_instance.bw('community.flock.wirespec.kotlin').ew() + 'Wirespec', this.w20().v21_1)) : it;
|
|
586
603
|
};
|
|
587
|
-
protoOf(KotlinEmitter).
|
|
604
|
+
protoOf(KotlinEmitter).kv = function (definition, module_0, logger) {
|
|
588
605
|
// Inline function 'kotlin.let' call
|
|
589
|
-
var it = protoOf(LanguageEmitter).
|
|
590
|
-
var subPackageName = plus(this.
|
|
591
|
-
var tmp = subPackageName.
|
|
606
|
+
var it = protoOf(LanguageEmitter).kv.call(this, definition, module_0, logger);
|
|
607
|
+
var subPackageName = plus(this.n20(), definition);
|
|
608
|
+
var tmp = subPackageName.ew() + it.ys_1;
|
|
592
609
|
// Inline function 'kotlin.text.trimStart' call
|
|
593
|
-
var this_0 = trimMargin('\n |package ' + subPackageName.toString() + '\n |' + (Companion_instance_1.
|
|
610
|
+
var this_0 = trimMargin('\n |package ' + subPackageName.toString() + '\n |' + (Companion_instance_1.gv(module_0) ? this.q21_1 : '') + '\n |' + it.zs_1 + '\n ');
|
|
594
611
|
var tmp$ret$0 = toString(trimStart(isCharSequence(this_0) ? this_0 : THROW_CCE()));
|
|
595
612
|
return new Emitted(tmp, tmp$ret$0);
|
|
596
613
|
};
|
|
597
614
|
function emitStatusInterfaces($this, _this__u8e3s4) {
|
|
598
615
|
// Inline function 'kotlin.collections.map' call
|
|
599
|
-
var this_0 = _this__u8e3s4.
|
|
616
|
+
var this_0 = _this__u8e3s4.au_1;
|
|
600
617
|
// Inline function 'kotlin.collections.mapTo' call
|
|
601
618
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
602
619
|
var _iterator__ex2g4s = this_0.t();
|
|
603
620
|
while (_iterator__ex2g4s.u()) {
|
|
604
621
|
var item = _iterator__ex2g4s.v();
|
|
605
|
-
var tmp$ret$0 = new Char(charCodeAt(item.
|
|
622
|
+
var tmp$ret$0 = new Char(charCodeAt(item.gu_1, 0));
|
|
606
623
|
destination.x(tmp$ret$0);
|
|
607
624
|
}
|
|
608
625
|
var tmp = distinct(destination);
|
|
@@ -610,13 +627,13 @@ function emitStatusInterfaces($this, _this__u8e3s4) {
|
|
|
610
627
|
}
|
|
611
628
|
function emitResponseInterfaces($this, _this__u8e3s4) {
|
|
612
629
|
// Inline function 'kotlin.collections.map' call
|
|
613
|
-
var this_0 = _this__u8e3s4.
|
|
630
|
+
var this_0 = _this__u8e3s4.au_1;
|
|
614
631
|
// Inline function 'kotlin.collections.mapTo' call
|
|
615
632
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
616
633
|
var _iterator__ex2g4s = this_0.t();
|
|
617
634
|
while (_iterator__ex2g4s.u()) {
|
|
618
635
|
var item = _iterator__ex2g4s.v();
|
|
619
|
-
var tmp$ret$0 = emit_16($this, item.
|
|
636
|
+
var tmp$ret$0 = emit_16($this, item.iu_1);
|
|
620
637
|
destination.x(tmp$ret$0);
|
|
621
638
|
}
|
|
622
639
|
var tmp = distinct(destination);
|
|
@@ -625,64 +642,64 @@ function emitResponseInterfaces($this, _this__u8e3s4) {
|
|
|
625
642
|
function emitConstructor($this, _this__u8e3s4, endpoint) {
|
|
626
643
|
var tmp = get_pathParams(endpoint);
|
|
627
644
|
var tmp_0 = orNull(joinToString(tmp, VOID, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitConstructor$lambda($this)));
|
|
628
|
-
var tmp_1 = orNull(joinToString(endpoint.
|
|
629
|
-
var tmp_2 = orNull(joinToString(endpoint.
|
|
630
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
645
|
+
var tmp_1 = orNull(joinToString(endpoint.xt_1, VOID, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitConstructor$lambda_0($this)));
|
|
646
|
+
var tmp_2 = orNull(joinToString(endpoint.yt_1, VOID, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitConstructor$lambda_1($this)));
|
|
647
|
+
var tmp0_safe_receiver = _this__u8e3s4.du_1;
|
|
631
648
|
var tmp_3;
|
|
632
649
|
if (tmp0_safe_receiver == null) {
|
|
633
650
|
tmp_3 = null;
|
|
634
651
|
} else {
|
|
635
652
|
// Inline function 'kotlin.let' call
|
|
636
|
-
tmp_3 = Spacer_instance.
|
|
653
|
+
tmp_3 = Spacer_instance.gw(2) + 'override val body: ' + emit_16($this, tmp0_safe_receiver) + ',';
|
|
637
654
|
}
|
|
638
655
|
// Inline function 'kotlin.let' call
|
|
639
656
|
var it = joinToString(listOfNotNull([tmp_0, tmp_1, tmp_2, tmp_3]), ',\n');
|
|
640
|
-
return isBlank(it) ? 'object Request : Wirespec.Request<' + emit_16($this, _this__u8e3s4.
|
|
657
|
+
return isBlank(it) ? 'object Request : Wirespec.Request<' + emit_16($this, _this__u8e3s4.du_1) + '> {' : 'class Request(\n' + it + '\n' + Spacer_instance.toString() + ') : Wirespec.Request<' + emit_16($this, _this__u8e3s4.du_1) + '> {';
|
|
641
658
|
}
|
|
642
659
|
function emitDeserializedParams($this, _this__u8e3s4, endpoint) {
|
|
643
660
|
var tmp = get_indexedPathParams(endpoint);
|
|
644
661
|
var tmp_0 = orNull(joinToString(tmp, VOID, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitDeserializedParams$lambda($this)));
|
|
645
|
-
var tmp_1 = orNull(joinToString(endpoint.
|
|
646
|
-
var tmp_2 = orNull(joinToString(endpoint.
|
|
647
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
662
|
+
var tmp_1 = orNull(joinToString(endpoint.xt_1, ',\n', VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitDeserializedParams$lambda_0($this)));
|
|
663
|
+
var tmp_2 = orNull(joinToString(endpoint.yt_1, ',\n', VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitDeserializedParams$lambda_1($this)));
|
|
664
|
+
var tmp0_safe_receiver = _this__u8e3s4.du_1;
|
|
648
665
|
var tmp_3;
|
|
649
666
|
if (tmp0_safe_receiver == null) {
|
|
650
667
|
tmp_3 = null;
|
|
651
668
|
} else {
|
|
652
669
|
// Inline function 'kotlin.let' call
|
|
653
|
-
tmp_3 = Spacer_instance.
|
|
670
|
+
tmp_3 = Spacer_instance.gw(3) + 'body = serialization.deserializeBody(requireNotNull(request.body) { "body is null" }, typeOf<' + emit_16($this, tmp0_safe_receiver) + '>()),';
|
|
654
671
|
}
|
|
655
672
|
// Inline function 'kotlin.let' call
|
|
656
673
|
var it = joinToString(listOfNotNull([tmp_0, tmp_1, tmp_2, tmp_3]), ',\n');
|
|
657
|
-
return isBlank(it) ? '' : '(\n' + it + '\n' + Spacer_instance.
|
|
674
|
+
return isBlank(it) ? '' : '(\n' + it + '\n' + Spacer_instance.gw(2) + ')';
|
|
658
675
|
}
|
|
659
676
|
function emitSerialized($this, _this__u8e3s4) {
|
|
660
|
-
return trimMargin('\n |' + Spacer_instance.
|
|
677
|
+
return trimMargin('\n |' + Spacer_instance.gw(3) + 'is Response' + _this__u8e3s4.gu_1 + ' -> Wirespec.RawResponse(\n |' + Spacer_instance.gw(4) + 'statusCode = response.status,\n |' + Spacer_instance.gw(4) + 'headers = ' + $this.z21(_this__u8e3s4) + ',\n |' + Spacer_instance.gw(4) + 'body = ' + (!(_this__u8e3s4.iu_1 == null) ? $this.y21($this, _this__u8e3s4.iu_1) : 'null') + ',\n |' + Spacer_instance.gw(3) + ')\n ');
|
|
661
678
|
}
|
|
662
679
|
function emitDeserialized($this, _this__u8e3s4) {
|
|
663
|
-
var tmp = Spacer_instance.
|
|
680
|
+
var tmp = Spacer_instance.gw(3) + _this__u8e3s4.gu_1 + ' -> Response' + _this__u8e3s4.gu_1 + '(';
|
|
664
681
|
var tmp_0;
|
|
665
|
-
if (!(_this__u8e3s4.
|
|
666
|
-
tmp_0 = Spacer_instance.
|
|
682
|
+
if (!(_this__u8e3s4.iu_1 == null)) {
|
|
683
|
+
tmp_0 = Spacer_instance.gw(4) + 'body = serialization.deserializeBody(requireNotNull(response.body) { "body is null" }, typeOf<' + emit_16($this, _this__u8e3s4.iu_1) + '>()),';
|
|
667
684
|
} else {
|
|
668
|
-
tmp_0 = Spacer_instance.
|
|
685
|
+
tmp_0 = Spacer_instance.gw(4) + 'body = Unit,';
|
|
669
686
|
}
|
|
670
687
|
var tmp_1 = tmp_0;
|
|
671
|
-
return joinToString(listOfNotNull([tmp, tmp_1, orNull(joinToString(_this__u8e3s4.
|
|
688
|
+
return joinToString(listOfNotNull([tmp, tmp_1, orNull(joinToString(_this__u8e3s4.hu_1, ',\n', VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitDeserialized$lambda($this))), Spacer_instance.gw(3) + ')']), '\n');
|
|
672
689
|
}
|
|
673
690
|
function emitSerializedMapEntry($this, _this__u8e3s4, type, fields) {
|
|
674
|
-
return '"' + _this__u8e3s4.
|
|
691
|
+
return '"' + _this__u8e3s4.qt_1.n1() + '" to ' + type + '.' + fields + '.' + $this.mv(_this__u8e3s4.qt_1) + '?.let{ serialization.serializeParam(it, typeOf<' + $this.nu(_this__u8e3s4.rt_1) + '>()) }.orEmpty()';
|
|
675
692
|
}
|
|
676
693
|
function emitDeserialized_0($this, _this__u8e3s4) {
|
|
677
|
-
return Spacer_instance.
|
|
694
|
+
return Spacer_instance.gw(3) + $this.mv(_this__u8e3s4.of_1.bu_1) + ' = serialization.deserializePath(request.path[' + _this__u8e3s4.nf_1 + '], typeOf<' + $this.nu(_this__u8e3s4.of_1.cu_1) + '>())';
|
|
678
695
|
}
|
|
679
696
|
function emitDeserializedParams_0($this, _this__u8e3s4, type, fields, spaces, caseSensitive) {
|
|
680
|
-
var trimMargin_0 = trimMargin('\n |' + Spacer_instance.
|
|
697
|
+
var trimMargin_0 = trimMargin('\n |' + Spacer_instance.gw(spaces) + $this.mv(_this__u8e3s4.qt_1) + ' =\n |' + Spacer_instance.gw(spaces + 1 | 0) + type + '.' + fields + '\n |' + Spacer_instance.gw(spaces + 2 | 0) + '.entries\n |' + Spacer_instance.gw(spaces + 2 | 0) + '.find { it.key.equals("' + _this__u8e3s4.qt_1.n1() + '", ignoreCase = ' + !caseSensitive + ') }\n |' + Spacer_instance.gw(spaces + 2 | 0) + '?.let { serialization.deserializeParam(it.value, typeOf<' + $this.nu(_this__u8e3s4.rt_1) + '>()) }\n ');
|
|
681
698
|
var tmp;
|
|
682
|
-
if (_this__u8e3s4.
|
|
699
|
+
if (_this__u8e3s4.rt_1.sy()) {
|
|
683
700
|
tmp = trimMargin_0;
|
|
684
701
|
} else {
|
|
685
|
-
tmp = trimMargin_0 + '\n' + Spacer_instance.
|
|
702
|
+
tmp = trimMargin_0 + '\n' + Spacer_instance.gw(spaces + 2 | 0) + '?: throw IllegalArgumentException("' + $this.mv(_this__u8e3s4.qt_1) + ' is null")';
|
|
686
703
|
}
|
|
687
704
|
return tmp;
|
|
688
705
|
}
|
|
@@ -692,16 +709,16 @@ function emitDeserializedParams$default($this, _this__u8e3s4, type, fields, spac
|
|
|
692
709
|
return emitDeserializedParams_0($this, _this__u8e3s4, type, fields, spaces, caseSensitive);
|
|
693
710
|
}
|
|
694
711
|
function emitIdentifier($this, _this__u8e3s4) {
|
|
695
|
-
return 'request.path.' + $this.
|
|
712
|
+
return 'request.path.' + $this.mv(_this__u8e3s4.bu_1) + '.let{serialization.serializePath(it, typeOf<' + $this.nu(_this__u8e3s4.cu_1) + '>())}';
|
|
696
713
|
}
|
|
697
714
|
function emit_16($this, _this__u8e3s4) {
|
|
698
|
-
var tmp1_safe_receiver = _this__u8e3s4 == null ? null : _this__u8e3s4.
|
|
699
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : $this.
|
|
715
|
+
var tmp1_safe_receiver = _this__u8e3s4 == null ? null : _this__u8e3s4.fu_1;
|
|
716
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : $this.nu(tmp1_safe_receiver);
|
|
700
717
|
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : removeQuestionMark(tmp2_safe_receiver);
|
|
701
718
|
return tmp3_elvis_lhs == null ? 'Unit' : tmp3_elvis_lhs;
|
|
702
719
|
}
|
|
703
720
|
function emit_17($this, _this__u8e3s4) {
|
|
704
|
-
return $this.
|
|
721
|
+
return $this.mv(_this__u8e3s4.bu_1) + ': ' + $this.nu(_this__u8e3s4.cu_1);
|
|
705
722
|
}
|
|
706
723
|
function brace($this, _this__u8e3s4) {
|
|
707
724
|
return wrap($this, _this__u8e3s4, '(', ')');
|
|
@@ -719,10 +736,10 @@ function wrap($this, _this__u8e3s4, prefix, postfix) {
|
|
|
719
736
|
function emitObject($this, _this__u8e3s4, name, extends_0, spaces, block) {
|
|
720
737
|
var tmp;
|
|
721
738
|
if (_this__u8e3s4.r()) {
|
|
722
|
-
tmp = Spacer_instance.
|
|
739
|
+
tmp = Spacer_instance.gw(spaces) + 'data object ' + name + ' : ' + extends_0;
|
|
723
740
|
} else {
|
|
724
|
-
var tmp_0 = Spacer_instance.
|
|
725
|
-
tmp = trimMargin('\n |' + tmp_0 + 'data class ' + name + '(\n |' + joinToString(_this__u8e3s4, ',\n', VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitObject$lambda(spaces, block)) + ',\n |' + Spacer_instance.
|
|
741
|
+
var tmp_0 = Spacer_instance.gw(spaces);
|
|
742
|
+
tmp = trimMargin('\n |' + tmp_0 + 'data class ' + name + '(\n |' + joinToString(_this__u8e3s4, ',\n', VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitObject$lambda(spaces, block)) + ',\n |' + Spacer_instance.gw(spaces) + ') : ' + extends_0 + '\n ');
|
|
726
743
|
}
|
|
727
744
|
return tmp;
|
|
728
745
|
}
|
|
@@ -741,17 +758,17 @@ function KotlinEndpointDefinitionEmitter$emit$lambda_0(this$0) {
|
|
|
741
758
|
}
|
|
742
759
|
function KotlinEndpointDefinitionEmitter$emit$lambda_1(this$0) {
|
|
743
760
|
return function (it) {
|
|
744
|
-
return this$0.
|
|
761
|
+
return this$0.mu(it);
|
|
745
762
|
};
|
|
746
763
|
}
|
|
747
764
|
function KotlinEndpointDefinitionEmitter$emit$lambda_2(this$0) {
|
|
748
765
|
return function (it) {
|
|
749
|
-
return this$0.
|
|
766
|
+
return this$0.mu(it);
|
|
750
767
|
};
|
|
751
768
|
}
|
|
752
769
|
function KotlinEndpointDefinitionEmitter$emit$lambda_3(this$0) {
|
|
753
770
|
return function (it) {
|
|
754
|
-
return this$0.
|
|
771
|
+
return this$0.b21(it);
|
|
755
772
|
};
|
|
756
773
|
}
|
|
757
774
|
function KotlinEndpointDefinitionEmitter$emit$lambda_4(this$0) {
|
|
@@ -768,31 +785,31 @@ function KotlinEndpointDefinitionEmitter$emit$lambda_6(it) {
|
|
|
768
785
|
return emit(it);
|
|
769
786
|
}
|
|
770
787
|
function KotlinEndpointDefinitionEmitter$emitStatusInterfaces$lambda(it) {
|
|
771
|
-
return Spacer_instance.toString() + 'sealed interface Response' + toString_0(it.
|
|
788
|
+
return Spacer_instance.toString() + 'sealed interface Response' + toString_0(it.i1_1) + 'XX<T: Any> : Response<T>';
|
|
772
789
|
}
|
|
773
790
|
function KotlinEndpointDefinitionEmitter$emitResponseInterfaces$lambda(it) {
|
|
774
791
|
return Spacer_instance.toString() + 'sealed interface Response' + concatGenerics(it) + ' : Response<' + it + '>';
|
|
775
792
|
}
|
|
776
793
|
function KotlinEndpointDefinitionEmitter$emit$lambda_7(this$0) {
|
|
777
794
|
return function (it) {
|
|
778
|
-
return this$0.
|
|
795
|
+
return this$0.mv(it.bu_1);
|
|
779
796
|
};
|
|
780
797
|
}
|
|
781
798
|
function KotlinEndpointDefinitionEmitter$emit$lambda_8(this$0) {
|
|
782
799
|
return function (it) {
|
|
783
|
-
return this$0.
|
|
800
|
+
return this$0.mv(it.qt_1);
|
|
784
801
|
};
|
|
785
802
|
}
|
|
786
803
|
function KotlinEndpointDefinitionEmitter$emit$lambda_9(this$0) {
|
|
787
804
|
return function (it) {
|
|
788
|
-
return this$0.
|
|
805
|
+
return this$0.mv(it.qt_1);
|
|
789
806
|
};
|
|
790
807
|
}
|
|
791
808
|
function KotlinEndpointDefinitionEmitter$emit$lambda_10(this$0) {
|
|
792
809
|
return function (it) {
|
|
793
810
|
var tmp;
|
|
794
811
|
if (it instanceof Literal) {
|
|
795
|
-
tmp = '"' + it.
|
|
812
|
+
tmp = '"' + it.xu_1 + '"';
|
|
796
813
|
} else {
|
|
797
814
|
if (it instanceof Param) {
|
|
798
815
|
tmp = emitIdentifier(this$0, it);
|
|
@@ -815,32 +832,32 @@ function KotlinEndpointDefinitionEmitter$emitQueries$lambda(this$0) {
|
|
|
815
832
|
}
|
|
816
833
|
function KotlinEndpointDefinitionEmitter$emit$lambda_11(this$0) {
|
|
817
834
|
return function (it) {
|
|
818
|
-
return 'val ' + this$0.
|
|
835
|
+
return 'val ' + this$0.mu(it);
|
|
819
836
|
};
|
|
820
837
|
}
|
|
821
838
|
function KotlinEndpointDefinitionEmitter$emit$lambda_12(this$0) {
|
|
822
839
|
return function (it) {
|
|
823
|
-
return this$0.
|
|
840
|
+
return this$0.mv(it.qt_1);
|
|
824
841
|
};
|
|
825
842
|
}
|
|
826
843
|
function KotlinEndpointDefinitionEmitter$emit$lambda_13(this$0) {
|
|
827
844
|
return function (it) {
|
|
828
|
-
return this$0.
|
|
845
|
+
return this$0.mu(it);
|
|
829
846
|
};
|
|
830
847
|
}
|
|
831
848
|
function KotlinEndpointDefinitionEmitter$emitConstructor$lambda(this$0) {
|
|
832
849
|
return function (it) {
|
|
833
|
-
return Spacer_instance.
|
|
850
|
+
return Spacer_instance.gw(2) + emit_17(this$0, it);
|
|
834
851
|
};
|
|
835
852
|
}
|
|
836
853
|
function KotlinEndpointDefinitionEmitter$emitConstructor$lambda_0(this$0) {
|
|
837
854
|
return function (it) {
|
|
838
|
-
return Spacer_instance.
|
|
855
|
+
return Spacer_instance.gw(2) + this$0.mu(it);
|
|
839
856
|
};
|
|
840
857
|
}
|
|
841
858
|
function KotlinEndpointDefinitionEmitter$emitConstructor$lambda_1(this$0) {
|
|
842
859
|
return function (it) {
|
|
843
|
-
return Spacer_instance.
|
|
860
|
+
return Spacer_instance.gw(2) + this$0.mu(it);
|
|
844
861
|
};
|
|
845
862
|
}
|
|
846
863
|
function KotlinEndpointDefinitionEmitter$emitDeserializedParams$lambda(this$0) {
|
|
@@ -870,7 +887,7 @@ function KotlinEndpointDefinitionEmitter$emitDeserialized$lambda(this$0) {
|
|
|
870
887
|
}
|
|
871
888
|
function KotlinEndpointDefinitionEmitter$emitObject$lambda($spaces, $block) {
|
|
872
889
|
return function (it) {
|
|
873
|
-
return Spacer_instance.
|
|
890
|
+
return Spacer_instance.gw($spaces + 1 | 0) + 'val ' + $block(it);
|
|
874
891
|
};
|
|
875
892
|
}
|
|
876
893
|
function KotlinEndpointDefinitionEmitter() {
|
|
@@ -879,18 +896,18 @@ function sanitizeNegative($this, _this__u8e3s4) {
|
|
|
879
896
|
return startsWith(_this__u8e3s4, '-') ? '__' + substring(_this__u8e3s4, 1) : _this__u8e3s4;
|
|
880
897
|
}
|
|
881
898
|
function sanitizeEnum($this, _this__u8e3s4) {
|
|
882
|
-
return $this.
|
|
899
|
+
return $this.c21(joinToString(split(sanitizeNegative($this, _this__u8e3s4), ['-', ', ', '.', ' ', '//']), '_'));
|
|
883
900
|
}
|
|
884
901
|
function KotlinEnumDefinitionEmitter$emit$lambda(this$0) {
|
|
885
902
|
return function (it) {
|
|
886
|
-
return this$0.
|
|
903
|
+
return this$0.d21(sanitizeEnum(this$0, it)) + '("' + it + '")';
|
|
887
904
|
};
|
|
888
905
|
}
|
|
889
906
|
function KotlinEnumDefinitionEmitter() {
|
|
890
907
|
}
|
|
891
908
|
function Companion() {
|
|
892
909
|
Companion_instance_2 = this;
|
|
893
|
-
this.
|
|
910
|
+
this.a22_1 = setOf(['as', 'break', 'class', 'continue', 'do', 'else', 'false', 'for', 'fun', 'if', 'in', 'interface', 'internal', 'is', 'null', 'object', 'open', 'package', 'return', 'super', 'this', 'throw', 'true', 'try', 'typealias', 'typeof', 'val', 'var', 'when', 'while', 'private', 'public']);
|
|
894
911
|
}
|
|
895
912
|
var Companion_instance_2;
|
|
896
913
|
function Companion_getInstance_0() {
|
|
@@ -899,20 +916,20 @@ function Companion_getInstance_0() {
|
|
|
899
916
|
return Companion_instance_2;
|
|
900
917
|
}
|
|
901
918
|
function KotlinIdentifierEmitter$sanitize$lambda(it) {
|
|
902
|
-
return isLetterOrDigit(it.
|
|
919
|
+
return isLetterOrDigit(it.i1_1) || listOf(new Char(_Char___init__impl__6a9atx(95))).a2(it);
|
|
903
920
|
}
|
|
904
921
|
function KotlinIdentifierEmitter() {
|
|
905
922
|
}
|
|
906
923
|
function _get_sanitizationConfig__sns434($this) {
|
|
907
|
-
var tmp0 = $this.
|
|
924
|
+
var tmp0 = $this.g22_1;
|
|
908
925
|
var tmp = KProperty1;
|
|
909
926
|
// Inline function 'kotlin.getValue' call
|
|
910
927
|
getPropertyCallableRef('sanitizationConfig', 1, tmp, KotlinIrEmitter$_get_sanitizationConfig_$ref_tnafwf(), null);
|
|
911
|
-
return tmp0.
|
|
928
|
+
return tmp0.n1();
|
|
912
929
|
}
|
|
913
930
|
function sanitize_0($this, _this__u8e3s4) {
|
|
914
931
|
// Inline function 'kotlin.collections.mapIndexed' call
|
|
915
|
-
var this_0 = split(_this__u8e3s4.
|
|
932
|
+
var this_0 = split(_this__u8e3s4.n1(), ['.', ' ']);
|
|
916
933
|
// Inline function 'kotlin.collections.mapIndexedTo' call
|
|
917
934
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
918
935
|
var index = 0;
|
|
@@ -921,7 +938,7 @@ function sanitize_0($this, _this__u8e3s4) {
|
|
|
921
938
|
var item = _iterator__ex2g4s.v();
|
|
922
939
|
var _unary__edvuaz = index;
|
|
923
940
|
index = _unary__edvuaz + 1 | 0;
|
|
924
|
-
var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance_1.
|
|
941
|
+
var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance_1.ev(item) : item;
|
|
925
942
|
destination.x(tmp$ret$0);
|
|
926
943
|
}
|
|
927
944
|
// Inline function 'kotlin.text.filter' call
|
|
@@ -969,7 +986,7 @@ function sanitizeFirstIsDigit_0($this, _this__u8e3s4) {
|
|
|
969
986
|
return tmp;
|
|
970
987
|
}
|
|
971
988
|
function sanitizeKeywords_0($this, _this__u8e3s4) {
|
|
972
|
-
return Companion_getInstance_1().
|
|
989
|
+
return Companion_getInstance_1().h22_1.a2(_this__u8e3s4) ? addBackticks(_this__u8e3s4) : _this__u8e3s4;
|
|
973
990
|
}
|
|
974
991
|
function sanitizeSymbol($this, _this__u8e3s4) {
|
|
975
992
|
// Inline function 'kotlin.collections.mapIndexed' call
|
|
@@ -982,7 +999,7 @@ function sanitizeSymbol($this, _this__u8e3s4) {
|
|
|
982
999
|
var item = _iterator__ex2g4s.v();
|
|
983
1000
|
var _unary__edvuaz = index;
|
|
984
1001
|
index = _unary__edvuaz + 1 | 0;
|
|
985
|
-
var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance_1.
|
|
1002
|
+
var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance_1.ev(item) : item;
|
|
986
1003
|
destination.x(tmp$ret$0);
|
|
987
1004
|
}
|
|
988
1005
|
// Inline function 'kotlin.text.filter' call
|
|
@@ -1009,7 +1026,7 @@ function sanitizeEnum_0($this, _this__u8e3s4) {
|
|
|
1009
1026
|
}
|
|
1010
1027
|
function Companion_0() {
|
|
1011
1028
|
Companion_instance_3 = this;
|
|
1012
|
-
this.
|
|
1029
|
+
this.h22_1 = setOf(['as', 'break', 'class', 'continue', 'do', 'else', 'false', 'for', 'fun', 'if', 'in', 'interface', 'internal', 'is', 'null', 'object', 'open', 'package', 'return', 'super', 'this', 'throw', 'true', 'try', 'typealias', 'typeof', 'val', 'var', 'when', 'while', 'private', 'public']);
|
|
1013
1030
|
}
|
|
1014
1031
|
var Companion_instance_3;
|
|
1015
1032
|
function Companion_getInstance_1() {
|
|
@@ -1022,13 +1039,13 @@ function KotlinIrEmitter$sanitizationConfig$delegate$lambda$lambda(it) {
|
|
|
1022
1039
|
}
|
|
1023
1040
|
function KotlinIrEmitter$sanitizationConfig$delegate$lambda$lambda_0(this$0) {
|
|
1024
1041
|
return function (name) {
|
|
1025
|
-
var sanitized = name.
|
|
1042
|
+
var sanitized = name.k1l_1.b1() > 1 ? name.n1q() : sanitizeSymbol(this$0, name.h1n());
|
|
1026
1043
|
return new Name(listOf(sanitized));
|
|
1027
1044
|
};
|
|
1028
1045
|
}
|
|
1029
1046
|
function KotlinIrEmitter$sanitizationConfig$delegate$lambda$lambda_1(this$0) {
|
|
1030
1047
|
return function (name) {
|
|
1031
|
-
return new Name(listOf(sanitizeSymbol(this$0, name.
|
|
1048
|
+
return new Name(listOf(sanitizeSymbol(this$0, name.n1q())));
|
|
1032
1049
|
};
|
|
1033
1050
|
}
|
|
1034
1051
|
function KotlinIrEmitter$sanitizationConfig$delegate$lambda$lambda_2(this$0) {
|
|
@@ -1041,28 +1058,28 @@ function KotlinIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
|
|
|
1041
1058
|
var tmp;
|
|
1042
1059
|
var tmp_0;
|
|
1043
1060
|
if (stmt instanceof FunctionCall) {
|
|
1044
|
-
tmp_0 = stmt.
|
|
1061
|
+
tmp_0 = stmt.x1q_1.h1n() === 'validate';
|
|
1045
1062
|
} else {
|
|
1046
1063
|
tmp_0 = false;
|
|
1047
1064
|
}
|
|
1048
1065
|
if (tmp_0) {
|
|
1049
|
-
tmp = transformChildren(stmt.
|
|
1066
|
+
tmp = transformChildren(stmt.b1r(VOID, emptyList()), tr);
|
|
1050
1067
|
} else {
|
|
1051
1068
|
if (stmt instanceof ConstructorStatement) {
|
|
1052
|
-
var tmp_1 = tr.
|
|
1069
|
+
var tmp_1 = tr.v1y(stmt.p1r_1);
|
|
1053
1070
|
// Inline function 'kotlin.collections.map' call
|
|
1054
|
-
var this_0 = stmt.
|
|
1071
|
+
var this_0 = stmt.q1r_1;
|
|
1055
1072
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1056
|
-
var destination = ArrayList_init_$Create$(this_0.
|
|
1073
|
+
var destination = ArrayList_init_$Create$(this_0.b1());
|
|
1057
1074
|
// Inline function 'kotlin.collections.iterator' call
|
|
1058
|
-
var _iterator__ex2g4s = this_0.
|
|
1075
|
+
var _iterator__ex2g4s = this_0.l1().t();
|
|
1059
1076
|
while (_iterator__ex2g4s.u()) {
|
|
1060
1077
|
var item = _iterator__ex2g4s.v();
|
|
1061
1078
|
// Inline function 'kotlin.collections.component1' call
|
|
1062
|
-
var name = item.
|
|
1079
|
+
var name = item.m1();
|
|
1063
1080
|
// Inline function 'kotlin.collections.component2' call
|
|
1064
|
-
var expr = item.
|
|
1065
|
-
var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), name), tr.
|
|
1081
|
+
var expr = item.n1();
|
|
1082
|
+
var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), name), tr.y1y(expr));
|
|
1066
1083
|
destination.x(tmp$ret$3);
|
|
1067
1084
|
}
|
|
1068
1085
|
tmp = new ConstructorStatement(tmp_1, toMap(destination));
|
|
@@ -1075,7 +1092,7 @@ function KotlinIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
|
|
|
1075
1092
|
}
|
|
1076
1093
|
function KotlinIrEmitter$sanitizationConfig$delegate$lambda(this$0) {
|
|
1077
1094
|
return function () {
|
|
1078
|
-
var tmp = Companion_getInstance_1().
|
|
1095
|
+
var tmp = Companion_getInstance_1().h22_1;
|
|
1079
1096
|
var tmp_0 = KotlinIrEmitter$sanitizationConfig$delegate$lambda$lambda;
|
|
1080
1097
|
var tmp_1 = KotlinIrEmitter$sanitizationConfig$delegate$lambda$lambda_0(this$0);
|
|
1081
1098
|
var tmp_2 = KotlinIrEmitter$sanitizationConfig$delegate$lambda$lambda_1(this$0);
|
|
@@ -1092,7 +1109,7 @@ function KotlinIrEmitter$emitShared$lambda(element, transformer) {
|
|
|
1092
1109
|
var tmp;
|
|
1093
1110
|
if (element instanceof File) {
|
|
1094
1111
|
// Inline function 'kotlin.collections.partition' call
|
|
1095
|
-
var this_0 = element.
|
|
1112
|
+
var this_0 = element.t1r_1;
|
|
1096
1113
|
var first = ArrayList_init_$Create$_0();
|
|
1097
1114
|
var second = ArrayList_init_$Create$_0();
|
|
1098
1115
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -1105,9 +1122,9 @@ function KotlinIrEmitter$emitShared$lambda(element, transformer) {
|
|
|
1105
1122
|
}
|
|
1106
1123
|
}
|
|
1107
1124
|
var _destruct__k2r9zo = new Pair(first, second);
|
|
1108
|
-
var packageElements = _destruct__k2r9zo.
|
|
1109
|
-
var rest = _destruct__k2r9zo.
|
|
1110
|
-
tmp = element.
|
|
1125
|
+
var packageElements = _destruct__k2r9zo.pf();
|
|
1126
|
+
var rest = _destruct__k2r9zo.qf();
|
|
1127
|
+
tmp = element.w1r(VOID, plus_2(plus_1(packageElements, import_0('kotlin.reflect', 'KType')), rest));
|
|
1111
1128
|
} else {
|
|
1112
1129
|
tmp = element;
|
|
1113
1130
|
}
|
|
@@ -1118,11 +1135,11 @@ function KotlinIrEmitter$emitShared$lambda_0($clientServer) {
|
|
|
1118
1135
|
return function (element, transformer) {
|
|
1119
1136
|
var tmp;
|
|
1120
1137
|
if (element instanceof Namespace) {
|
|
1121
|
-
var injected = element.
|
|
1138
|
+
var injected = element.y1r_1.equals(Companion_getInstance().m1l('Wirespec')) ? $clientServer : emptyList();
|
|
1122
1139
|
var tmp_0;
|
|
1123
1140
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
1124
1141
|
if (!injected.r()) {
|
|
1125
|
-
tmp_0 = withElements(element, plus_2(element.
|
|
1142
|
+
tmp_0 = withElements(element, plus_2(element.u1r(), injected));
|
|
1126
1143
|
} else {
|
|
1127
1144
|
tmp_0 = element;
|
|
1128
1145
|
}
|
|
@@ -1134,6 +1151,22 @@ function KotlinIrEmitter$emitShared$lambda_0($clientServer) {
|
|
|
1134
1151
|
return transformChildren_0(transformed, transformer);
|
|
1135
1152
|
};
|
|
1136
1153
|
}
|
|
1154
|
+
function KotlinIrEmitter$emitGenerator$lambda(it) {
|
|
1155
|
+
return startsWith(it, 'Wirespec.') || it === 'Wirespec';
|
|
1156
|
+
}
|
|
1157
|
+
function KotlinIrEmitter$emitGenerator$lambda_0($generatorOwnName) {
|
|
1158
|
+
return function (it) {
|
|
1159
|
+
return it === $generatorOwnName;
|
|
1160
|
+
};
|
|
1161
|
+
}
|
|
1162
|
+
function KotlinIrEmitter$emitGenerator$lambda_1(it) {
|
|
1163
|
+
return substringBefore(it, _Char___init__impl__6a9atx(60));
|
|
1164
|
+
}
|
|
1165
|
+
function KotlinIrEmitter$emitGenerator$lambda_2(this$0) {
|
|
1166
|
+
return function (it) {
|
|
1167
|
+
return import_0(this$0.n20().cw_1 + '.model', it);
|
|
1168
|
+
};
|
|
1169
|
+
}
|
|
1137
1170
|
function KotlinIrEmitter$emit$lambda(this$0) {
|
|
1138
1171
|
return function (it) {
|
|
1139
1172
|
return sanitizeEnum_0(this$0, it);
|
|
@@ -1141,27 +1174,27 @@ function KotlinIrEmitter$emit$lambda(this$0) {
|
|
|
1141
1174
|
}
|
|
1142
1175
|
function KotlinIrEmitter(packageName, emitShared) {
|
|
1143
1176
|
Companion_getInstance_1();
|
|
1144
|
-
packageName = packageName === VOID ? Companion_instance.
|
|
1145
|
-
emitShared = emitShared === VOID ? Companion_instance_0.
|
|
1146
|
-
this.
|
|
1147
|
-
this.
|
|
1148
|
-
this.
|
|
1149
|
-
this.
|
|
1150
|
-
this.
|
|
1177
|
+
packageName = packageName === VOID ? Companion_instance.bw('community.flock.wirespec.generated') : packageName;
|
|
1178
|
+
emitShared = emitShared === VOID ? Companion_instance_0.ws() : emitShared;
|
|
1179
|
+
this.b22_1 = packageName;
|
|
1180
|
+
this.c22_1 = emitShared;
|
|
1181
|
+
this.d22_1 = KotlinGenerator_instance;
|
|
1182
|
+
this.e22_1 = FileExtension_Kotlin_getInstance();
|
|
1183
|
+
this.f22_1 = listOf_0([import_0('community.flock.wirespec.kotlin', 'Wirespec'), import_0('kotlin.reflect', 'typeOf')]);
|
|
1151
1184
|
var tmp = this;
|
|
1152
|
-
tmp.
|
|
1185
|
+
tmp.g22_1 = lazy(KotlinIrEmitter$sanitizationConfig$delegate$lambda(this));
|
|
1153
1186
|
}
|
|
1154
|
-
protoOf(KotlinIrEmitter).
|
|
1155
|
-
return this.
|
|
1187
|
+
protoOf(KotlinIrEmitter).n20 = function () {
|
|
1188
|
+
return this.b22_1;
|
|
1156
1189
|
};
|
|
1157
|
-
protoOf(KotlinIrEmitter).
|
|
1158
|
-
return this.
|
|
1190
|
+
protoOf(KotlinIrEmitter).q1z = function () {
|
|
1191
|
+
return this.d22_1;
|
|
1159
1192
|
};
|
|
1160
|
-
protoOf(KotlinIrEmitter).
|
|
1161
|
-
return this.
|
|
1193
|
+
protoOf(KotlinIrEmitter).uu = function () {
|
|
1194
|
+
return this.e22_1;
|
|
1162
1195
|
};
|
|
1163
|
-
protoOf(KotlinIrEmitter).
|
|
1164
|
-
var packageName = Companion_instance.
|
|
1196
|
+
protoOf(KotlinIrEmitter).t1z = function () {
|
|
1197
|
+
var packageName = Companion_instance.bw('community.flock.wirespec.kotlin');
|
|
1165
1198
|
var clientServer = convertClientServer(packageName);
|
|
1166
1199
|
// Inline function 'community.flock.wirespec.ir.core.transform' call
|
|
1167
1200
|
var this_0 = convert(packageName);
|
|
@@ -1169,62 +1202,91 @@ protoOf(KotlinIrEmitter).m1u = function () {
|
|
|
1169
1202
|
// Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
|
|
1170
1203
|
var tmp = scope;
|
|
1171
1204
|
// Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
|
|
1172
|
-
var this_1 = scope.
|
|
1205
|
+
var this_1 = scope.d1z_1;
|
|
1173
1206
|
// Inline function 'community.flock.wirespec.ir.core.transformer' call
|
|
1174
1207
|
// Inline function 'kotlin.apply' call
|
|
1175
1208
|
var this_2 = new TransformerBuilder();
|
|
1176
|
-
this_2.
|
|
1177
|
-
var tmp$ret$2 = this_2.
|
|
1178
|
-
tmp.
|
|
1209
|
+
this_2.v1m(KotlinIrEmitter$emitShared$lambda);
|
|
1210
|
+
var tmp$ret$2 = this_2.w1m();
|
|
1211
|
+
tmp.d1z_1 = transform(this_1, tmp$ret$2);
|
|
1179
1212
|
// Inline function 'community.flock.wirespec.ir.core.TransformScope.injectAfter' call
|
|
1180
1213
|
var tmp_0 = scope;
|
|
1181
1214
|
// Inline function 'community.flock.wirespec.ir.core.injectAfter' call
|
|
1182
1215
|
// Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
|
|
1183
|
-
var this_3 = scope.
|
|
1216
|
+
var this_3 = scope.d1z_1;
|
|
1184
1217
|
// Inline function 'community.flock.wirespec.ir.core.transformer' call
|
|
1185
1218
|
// Inline function 'kotlin.apply' call
|
|
1186
1219
|
var this_4 = new TransformerBuilder();
|
|
1187
|
-
this_4.
|
|
1188
|
-
var tmp$ret$7 = this_4.
|
|
1189
|
-
tmp_0.
|
|
1190
|
-
var tmp_1 = scope.
|
|
1220
|
+
this_4.v1m(KotlinIrEmitter$emitShared$lambda_0(clientServer));
|
|
1221
|
+
var tmp$ret$7 = this_4.w1m();
|
|
1222
|
+
tmp_0.d1z_1 = transform(this_3, tmp$ret$7);
|
|
1223
|
+
var tmp_1 = scope.d1z_1;
|
|
1191
1224
|
var wirespecShared = isInterface(tmp_1, Element) ? tmp_1 : THROW_CCE();
|
|
1192
1225
|
var tmp_2;
|
|
1193
|
-
if (this.
|
|
1194
|
-
tmp_2 = wirespecShared;
|
|
1226
|
+
if (this.c22_1.xs_1) {
|
|
1227
|
+
tmp_2 = wirespecShared.w1r(Companion_getInstance().m1l(packageName.ew() + wirespecShared.s1r_1.h1n()));
|
|
1195
1228
|
} else {
|
|
1196
1229
|
tmp_2 = null;
|
|
1197
1230
|
}
|
|
1198
1231
|
return tmp_2;
|
|
1199
1232
|
};
|
|
1200
|
-
protoOf(KotlinIrEmitter).
|
|
1233
|
+
protoOf(KotlinIrEmitter).kv = function (definition, module_0, logger) {
|
|
1201
1234
|
var file = emit_0.call(this, definition, module_0, logger);
|
|
1202
1235
|
// Inline function 'kotlin.takeIf' call
|
|
1203
|
-
var this_0 = this.
|
|
1236
|
+
var this_0 = this.f22_1;
|
|
1204
1237
|
var tmp;
|
|
1205
|
-
if (Companion_instance_1.
|
|
1238
|
+
if (Companion_instance_1.gv(module_0)) {
|
|
1206
1239
|
tmp = this_0;
|
|
1207
1240
|
} else {
|
|
1208
1241
|
tmp = null;
|
|
1209
1242
|
}
|
|
1210
1243
|
var tmp$ret$1 = tmp;
|
|
1211
|
-
return placeInPackage(prependImports(file, tmp$ret$1), this.
|
|
1244
|
+
return placeInPackage(prependImports(file, tmp$ret$1), this.n20(), definition);
|
|
1245
|
+
};
|
|
1246
|
+
protoOf(KotlinIrEmitter).x1z = function (definition, module_0) {
|
|
1247
|
+
var tmp;
|
|
1248
|
+
if (definition instanceof Type) {
|
|
1249
|
+
tmp = convertToGenerator_2(definition, module_0);
|
|
1250
|
+
} else {
|
|
1251
|
+
if (definition instanceof Enum) {
|
|
1252
|
+
tmp = convertToGenerator_1(definition);
|
|
1253
|
+
} else {
|
|
1254
|
+
if (definition instanceof Refined) {
|
|
1255
|
+
tmp = convertToGenerator_0(definition);
|
|
1256
|
+
} else {
|
|
1257
|
+
if (definition instanceof Union) {
|
|
1258
|
+
tmp = convertToGenerator(definition);
|
|
1259
|
+
} else {
|
|
1260
|
+
return null;
|
|
1261
|
+
}
|
|
1262
|
+
}
|
|
1263
|
+
}
|
|
1264
|
+
}
|
|
1265
|
+
var generatorFile = tmp;
|
|
1266
|
+
var sanitized = sanitizeNames(generatorFile, _get_sanitizationConfig__sns434(this));
|
|
1267
|
+
var generatorOwnName = definition.lv().n1() + 'Generator';
|
|
1268
|
+
var tmp_0 = asSequence_0(collectCustomTypeNames(sanitized));
|
|
1269
|
+
var tmp_1 = filterNot(tmp_0, KotlinIrEmitter$emitGenerator$lambda);
|
|
1270
|
+
var tmp_2 = filterNot(tmp_1, KotlinIrEmitter$emitGenerator$lambda_0(generatorOwnName));
|
|
1271
|
+
var tmp_3 = distinct_0(map(tmp_2, KotlinIrEmitter$emitGenerator$lambda_1));
|
|
1272
|
+
var modelImports = toList(map(tmp_3, KotlinIrEmitter$emitGenerator$lambda_2(this)));
|
|
1273
|
+
return placeInPackage_0(prependImports(sanitized, plus_2(this.f22_1, modelImports)), this.n20(), 'generator');
|
|
1212
1274
|
};
|
|
1213
|
-
protoOf(KotlinIrEmitter).
|
|
1275
|
+
protoOf(KotlinIrEmitter).ku = function (type, module_0) {
|
|
1214
1276
|
return ensureEmptyStructHasConstructor(sanitizeNames(convertWithValidation(type, module_0), _get_sanitizationConfig__sns434(this)));
|
|
1215
1277
|
};
|
|
1216
|
-
protoOf(KotlinIrEmitter).
|
|
1278
|
+
protoOf(KotlinIrEmitter).yv = function (enum_0, module_0) {
|
|
1217
1279
|
var tmp = sanitizeNames(convert_0(enum_0), _get_sanitizationConfig__sns434(this));
|
|
1218
1280
|
return injectEnumLabelField(tmp, KotlinIrEmitter$emit$lambda(this));
|
|
1219
1281
|
};
|
|
1220
|
-
protoOf(KotlinIrEmitter).
|
|
1282
|
+
protoOf(KotlinIrEmitter).ov = function (union) {
|
|
1221
1283
|
return sanitizeNames(convert_1(union), _get_sanitizationConfig__sns434(this));
|
|
1222
1284
|
};
|
|
1223
|
-
protoOf(KotlinIrEmitter).
|
|
1285
|
+
protoOf(KotlinIrEmitter).tv = function (refined) {
|
|
1224
1286
|
var file = sanitizeNames(convert_2(refined), _get_sanitizationConfig__sns434(this));
|
|
1225
1287
|
// Inline function 'community.flock.wirespec.ir.core.findElement' call
|
|
1226
1288
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
1227
|
-
var tmp0 = file.
|
|
1289
|
+
var tmp0 = file.u1r();
|
|
1228
1290
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
1229
1291
|
var destination = ArrayList_init_$Create$_0();
|
|
1230
1292
|
var _iterator__ex2g4s = tmp0.t();
|
|
@@ -1236,13 +1298,13 @@ protoOf(KotlinIrEmitter).dr = function (refined) {
|
|
|
1236
1298
|
}
|
|
1237
1299
|
var tmp0_safe_receiver = firstOrNull_0(destination);
|
|
1238
1300
|
var updatedStruct = tmp0_safe_receiver == null ? null : markMembersAsOverride(tmp0_safe_receiver);
|
|
1239
|
-
return new File(Companion_getInstance().
|
|
1301
|
+
return new File(Companion_getInstance().m1l(sanitize_0(this, refined.rv_1)), listOfNotNull_0(updatedStruct));
|
|
1240
1302
|
};
|
|
1241
|
-
protoOf(KotlinIrEmitter).
|
|
1242
|
-
var imports = buildModelImports(endpoint, this.
|
|
1303
|
+
protoOf(KotlinIrEmitter).zv = function (endpoint) {
|
|
1304
|
+
var imports = buildModelImports(endpoint, this.n20());
|
|
1243
1305
|
// Inline function 'community.flock.wirespec.ir.core.findElement' call
|
|
1244
1306
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
1245
|
-
var tmp0 = convert_3(endpoint).
|
|
1307
|
+
var tmp0 = convert_3(endpoint).u1r();
|
|
1246
1308
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
1247
1309
|
var destination = ArrayList_init_$Create$_0();
|
|
1248
1310
|
var _iterator__ex2g4s = tmp0.t();
|
|
@@ -1255,7 +1317,7 @@ protoOf(KotlinIrEmitter).jr = function (endpoint) {
|
|
|
1255
1317
|
var tmp$ret$2 = firstOrNull_0(destination);
|
|
1256
1318
|
var endpointNamespace = ensureNotNull(tmp$ret$2);
|
|
1257
1319
|
var body = injectCompanionObject(endpointNamespace, endpoint);
|
|
1258
|
-
var tmp = sanitizeNames(new File(Companion_getInstance().
|
|
1320
|
+
var tmp = sanitizeNames(new File(Companion_getInstance().m1l(sanitize_0(this, endpoint.ut_1)), listOf(body)), _get_sanitizationConfig__sns434(this));
|
|
1259
1321
|
// Inline function 'kotlin.takeIf' call
|
|
1260
1322
|
var tmp_0;
|
|
1261
1323
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
@@ -1267,10 +1329,10 @@ protoOf(KotlinIrEmitter).jr = function (endpoint) {
|
|
|
1267
1329
|
var tmp$ret$5 = tmp_0;
|
|
1268
1330
|
return prependImports(tmp, tmp$ret$5);
|
|
1269
1331
|
};
|
|
1270
|
-
protoOf(KotlinIrEmitter).
|
|
1332
|
+
protoOf(KotlinIrEmitter).nv = function (channel) {
|
|
1271
1333
|
var tmp = sanitizeNames(convert_4(channel), _get_sanitizationConfig__sns434(this));
|
|
1272
1334
|
// Inline function 'kotlin.takeIf' call
|
|
1273
|
-
var this_0 = buildModelImports(channel, this.
|
|
1335
|
+
var this_0 = buildModelImports(channel, this.n20());
|
|
1274
1336
|
var tmp_0;
|
|
1275
1337
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
1276
1338
|
if (!this_0.r()) {
|
|
@@ -1281,25 +1343,25 @@ protoOf(KotlinIrEmitter).xq = function (channel) {
|
|
|
1281
1343
|
var tmp$ret$2 = tmp_0;
|
|
1282
1344
|
return prependImports(tmp, tmp$ret$2);
|
|
1283
1345
|
};
|
|
1284
|
-
protoOf(KotlinIrEmitter).
|
|
1285
|
-
var imports = buildModelImports(endpoint, this.
|
|
1286
|
-
var endpointImport = import_0(this.
|
|
1346
|
+
protoOf(KotlinIrEmitter).w1z = function (endpoint) {
|
|
1347
|
+
var imports = buildModelImports(endpoint, this.n20());
|
|
1348
|
+
var endpointImport = import_0(this.n20().cw_1 + '.endpoint', endpoint.ut_1.n1());
|
|
1287
1349
|
var file = sanitizeNames(emitEndpointClient.call(this, endpoint), _get_sanitizationConfig__sns434(this));
|
|
1288
|
-
var subPackageName = plus_0(this.
|
|
1289
|
-
var tmp = Companion_getInstance().
|
|
1350
|
+
var subPackageName = plus_0(this.n20(), 'client');
|
|
1351
|
+
var tmp = Companion_getInstance().m1l(subPackageName.ew() + file.s1r_1.t1q());
|
|
1290
1352
|
// Inline function 'kotlin.collections.buildList' call
|
|
1291
1353
|
// Inline function 'kotlin.collections.buildListInternal' call
|
|
1292
1354
|
// Inline function 'kotlin.apply' call
|
|
1293
1355
|
var this_0 = ArrayList_init_$Create$_0();
|
|
1294
|
-
this_0.x(new Package(subPackageName.
|
|
1295
|
-
this_0.
|
|
1296
|
-
this_0.
|
|
1356
|
+
this_0.x(new Package(subPackageName.cw_1));
|
|
1357
|
+
this_0.f1(this.f22_1);
|
|
1358
|
+
this_0.f1(imports);
|
|
1297
1359
|
this_0.x(endpointImport);
|
|
1298
|
-
this_0.
|
|
1299
|
-
var tmp$ret$3 = this_0.
|
|
1360
|
+
this_0.f1(file.t1r_1);
|
|
1361
|
+
var tmp$ret$3 = this_0.u5();
|
|
1300
1362
|
return new File(tmp, tmp$ret$3);
|
|
1301
1363
|
};
|
|
1302
|
-
protoOf(KotlinIrEmitter).
|
|
1364
|
+
protoOf(KotlinIrEmitter).u1z = function (endpoints, logger) {
|
|
1303
1365
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1304
1366
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1305
1367
|
var destination = ArrayList_init_$Create$_0();
|
|
@@ -1315,7 +1377,7 @@ protoOf(KotlinIrEmitter).n1u = function (endpoints, logger) {
|
|
|
1315
1377
|
var _iterator__ex2g4s_0 = destination.t();
|
|
1316
1378
|
while (_iterator__ex2g4s_0.u()) {
|
|
1317
1379
|
var e = _iterator__ex2g4s_0.v();
|
|
1318
|
-
var key = e.
|
|
1380
|
+
var key = e.az_1;
|
|
1319
1381
|
if (set.x(key)) {
|
|
1320
1382
|
list_0.x(e);
|
|
1321
1383
|
}
|
|
@@ -1326,7 +1388,7 @@ protoOf(KotlinIrEmitter).n1u = function (endpoints, logger) {
|
|
|
1326
1388
|
var _iterator__ex2g4s_1 = list_0.t();
|
|
1327
1389
|
while (_iterator__ex2g4s_1.u()) {
|
|
1328
1390
|
var item = _iterator__ex2g4s_1.v();
|
|
1329
|
-
var tmp$ret$5 = import_0(this.
|
|
1391
|
+
var tmp$ret$5 = import_0(this.n20().cw_1 + '.model', item.az_1);
|
|
1330
1392
|
destination_0.x(tmp$ret$5);
|
|
1331
1393
|
}
|
|
1332
1394
|
var imports = destination_0;
|
|
@@ -1336,7 +1398,7 @@ protoOf(KotlinIrEmitter).n1u = function (endpoints, logger) {
|
|
|
1336
1398
|
var _iterator__ex2g4s_2 = endpoints.t();
|
|
1337
1399
|
while (_iterator__ex2g4s_2.u()) {
|
|
1338
1400
|
var item_0 = _iterator__ex2g4s_2.v();
|
|
1339
|
-
var tmp$ret$8 = import_0(this.
|
|
1401
|
+
var tmp$ret$8 = import_0(this.n20().cw_1 + '.endpoint', item_0.ut_1.n1());
|
|
1340
1402
|
destination_1.x(tmp$ret$8);
|
|
1341
1403
|
}
|
|
1342
1404
|
var endpointImports = destination_1;
|
|
@@ -1346,22 +1408,22 @@ protoOf(KotlinIrEmitter).n1u = function (endpoints, logger) {
|
|
|
1346
1408
|
var _iterator__ex2g4s_3 = endpoints.t();
|
|
1347
1409
|
while (_iterator__ex2g4s_3.u()) {
|
|
1348
1410
|
var item_1 = _iterator__ex2g4s_3.v();
|
|
1349
|
-
var tmp$ret$11 = import_0(this.
|
|
1411
|
+
var tmp$ret$11 = import_0(this.n20().cw_1 + '.client', item_1.ut_1.n1() + 'Client');
|
|
1350
1412
|
destination_2.x(tmp$ret$11);
|
|
1351
1413
|
}
|
|
1352
1414
|
var clientImports = destination_2;
|
|
1353
1415
|
var allImports = plus_2(plus_2(imports, endpointImports), clientImports);
|
|
1354
1416
|
var file = sanitizeNames(emitClient.call(this, endpoints, logger), _get_sanitizationConfig__sns434(this));
|
|
1355
|
-
var tmp = Companion_getInstance().
|
|
1417
|
+
var tmp = Companion_getInstance().m1l(this.n20().ew() + file.s1r_1.t1q());
|
|
1356
1418
|
// Inline function 'kotlin.collections.buildList' call
|
|
1357
1419
|
// Inline function 'kotlin.collections.buildListInternal' call
|
|
1358
1420
|
// Inline function 'kotlin.apply' call
|
|
1359
1421
|
var this_0 = ArrayList_init_$Create$_0();
|
|
1360
|
-
this_0.x(new Package(this.
|
|
1361
|
-
this_0.
|
|
1362
|
-
this_0.
|
|
1363
|
-
this_0.
|
|
1364
|
-
var tmp$ret$17 = this_0.
|
|
1422
|
+
this_0.x(new Package(this.n20().cw_1));
|
|
1423
|
+
this_0.f1(this.f22_1);
|
|
1424
|
+
this_0.f1(allImports);
|
|
1425
|
+
this_0.f1(file.t1r_1);
|
|
1426
|
+
var tmp$ret$17 = this_0.u5();
|
|
1365
1427
|
return new File(tmp, tmp$ret$17);
|
|
1366
1428
|
};
|
|
1367
1429
|
function buildModelImports(_this__u8e3s4, packageName) {
|
|
@@ -1372,7 +1434,7 @@ function buildModelImports(_this__u8e3s4, packageName) {
|
|
|
1372
1434
|
var _iterator__ex2g4s = this_0.t();
|
|
1373
1435
|
while (_iterator__ex2g4s.u()) {
|
|
1374
1436
|
var e = _iterator__ex2g4s.v();
|
|
1375
|
-
var key = e.
|
|
1437
|
+
var key = e.az_1;
|
|
1376
1438
|
if (set.x(key)) {
|
|
1377
1439
|
list.x(e);
|
|
1378
1440
|
}
|
|
@@ -1383,7 +1445,7 @@ function buildModelImports(_this__u8e3s4, packageName) {
|
|
|
1383
1445
|
var _iterator__ex2g4s_0 = list.t();
|
|
1384
1446
|
while (_iterator__ex2g4s_0.u()) {
|
|
1385
1447
|
var item = _iterator__ex2g4s_0.v();
|
|
1386
|
-
var tmp$ret$2 = import_0(packageName.
|
|
1448
|
+
var tmp$ret$2 = import_0(packageName.cw_1 + '.model', item.az_1);
|
|
1387
1449
|
destination.x(tmp$ret$2);
|
|
1388
1450
|
}
|
|
1389
1451
|
return destination;
|
|
@@ -1395,31 +1457,31 @@ function injectCompanionObject(_this__u8e3s4, endpoint) {
|
|
|
1395
1457
|
var tmp = scope;
|
|
1396
1458
|
// Inline function 'community.flock.wirespec.ir.core.injectAfter' call
|
|
1397
1459
|
// Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
|
|
1398
|
-
var this_0 = scope.
|
|
1460
|
+
var this_0 = scope.d1z_1;
|
|
1399
1461
|
// Inline function 'community.flock.wirespec.ir.core.transformer' call
|
|
1400
1462
|
// Inline function 'kotlin.apply' call
|
|
1401
1463
|
var this_1 = new TransformerBuilder();
|
|
1402
|
-
this_1.
|
|
1403
|
-
var tmp$ret$2 = this_1.
|
|
1404
|
-
tmp.
|
|
1405
|
-
var tmp_0 = scope.
|
|
1464
|
+
this_1.v1m(injectCompanionObject$lambda(endpoint));
|
|
1465
|
+
var tmp$ret$2 = this_1.w1m();
|
|
1466
|
+
tmp.d1z_1 = transform(this_0, tmp$ret$2);
|
|
1467
|
+
var tmp_0 = scope.d1z_1;
|
|
1406
1468
|
return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
|
|
1407
1469
|
}
|
|
1408
1470
|
function buildCompanionObject(endpoint) {
|
|
1409
|
-
var pathTemplate = '/' + joinToString(endpoint.
|
|
1471
|
+
var pathTemplate = '/' + joinToString(endpoint.wt_1, '/', VOID, VOID, VOID, VOID, buildCompanionObject$lambda);
|
|
1410
1472
|
// Inline function 'kotlin.let' call
|
|
1411
|
-
var p0 = trimMargin('\n |companion object: Wirespec.Server<Request, Response<*>>, Wirespec.Client<Request, Response<*>> {\n | override val pathTemplate = "' + pathTemplate + '"\n | override val method = "' + endpoint.
|
|
1473
|
+
var p0 = trimMargin('\n |companion object: Wirespec.Server<Request, Response<*>>, Wirespec.Client<Request, Response<*>> {\n | override val pathTemplate = "' + pathTemplate + '"\n | override val method = "' + endpoint.vt_1.toString() + '"\n | override fun server(serialization: Wirespec.Serialization) = object : Wirespec.ServerEdge<Request, Response<*>> {\n | override fun from(request: Wirespec.RawRequest) = fromRawRequest(serialization, request)\n | override fun to(response: Response<*>) = toRawResponse(serialization, response)\n | }\n | override fun client(serialization: Wirespec.Serialization) = object : Wirespec.ClientEdge<Request, Response<*>> {\n | override fun to(request: Request) = toRawRequest(serialization, request)\n | override fun from(response: Wirespec.RawResponse) = fromRawResponse(serialization, response)\n | }\n |}\n ');
|
|
1412
1474
|
return raw(p0);
|
|
1413
1475
|
}
|
|
1414
1476
|
function injectCompanionObject$lambda($endpoint) {
|
|
1415
1477
|
return function (element, transformer) {
|
|
1416
1478
|
var tmp;
|
|
1417
1479
|
if (element instanceof Interface) {
|
|
1418
|
-
var injected = element.
|
|
1480
|
+
var injected = element.l1s_1.equals(Companion_getInstance().m1l('Handler')) ? listOf(buildCompanionObject($endpoint)) : emptyList();
|
|
1419
1481
|
var tmp_0;
|
|
1420
1482
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
1421
1483
|
if (!injected.r()) {
|
|
1422
|
-
tmp_0 = withElements(element, plus_2(element.
|
|
1484
|
+
tmp_0 = withElements(element, plus_2(element.u1r(), injected));
|
|
1423
1485
|
} else {
|
|
1424
1486
|
tmp_0 = element;
|
|
1425
1487
|
}
|
|
@@ -1434,10 +1496,10 @@ function injectCompanionObject$lambda($endpoint) {
|
|
|
1434
1496
|
function buildCompanionObject$lambda(it) {
|
|
1435
1497
|
var tmp;
|
|
1436
1498
|
if (it instanceof Literal) {
|
|
1437
|
-
tmp = it.
|
|
1499
|
+
tmp = it.xu_1;
|
|
1438
1500
|
} else {
|
|
1439
1501
|
if (it instanceof Param) {
|
|
1440
|
-
tmp = '{' + it.
|
|
1502
|
+
tmp = '{' + it.bu_1.n1() + '}';
|
|
1441
1503
|
} else {
|
|
1442
1504
|
noWhenBranchMatchedException();
|
|
1443
1505
|
}
|
|
@@ -1448,8 +1510,8 @@ function KotlinRefinedTypeDefinitionEmitter() {
|
|
|
1448
1510
|
}
|
|
1449
1511
|
function KotlinShared() {
|
|
1450
1512
|
KotlinShared_instance = this;
|
|
1451
|
-
this.
|
|
1452
|
-
this.
|
|
1513
|
+
this.u21_1 = 'community.flock.wirespec.kotlin';
|
|
1514
|
+
this.v21_1 = trimMargin('\n |package ' + this.u21_1 + '\n |\n |import kotlin.reflect.KType\n |\n |object Wirespec {\n |' + Spacer_instance.toString() + 'interface Enum { val label: String }\n |' + Spacer_instance.toString() + 'interface Endpoint\n |' + Spacer_instance.toString() + 'interface Refined<T> { val value: T }\n |' + Spacer_instance.toString() + 'interface Path\n |' + Spacer_instance.toString() + 'interface Queries\n |' + Spacer_instance.toString() + 'interface Headers\n |' + Spacer_instance.toString() + 'interface Handler\n |' + Spacer_instance.toString() + 'interface ServerEdge<Req: Request<*>, Res: Response<*>> { \n |' + Spacer_instance.toString() + 'fun from(request: RawRequest): Req \n |' + Spacer_instance.toString() + 'fun to(response: Res): RawResponse\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'interface ClientEdge<Req: Request<*>, Res: Response<*>> { \n |' + Spacer_instance.gw(2) + 'fun to(request: Req): RawRequest\n |' + Spacer_instance.gw(2) + 'fun from(response: RawResponse): Res\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'interface Client<Req : Request<*>, Res : Response<*>> {\n |' + Spacer_instance.gw(2) + 'val pathTemplate: String\n |' + Spacer_instance.gw(2) + 'val method: String\n |' + Spacer_instance.gw(2) + 'fun client(serialization: Serialization): ClientEdge<Req, Res>\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'interface Server<Req : Request<*>, Res : Response<*>> {\n |' + Spacer_instance.gw(2) + 'val pathTemplate: String\n |' + Spacer_instance.gw(2) + 'val method: String\n |' + Spacer_instance.gw(2) + 'fun server(serialization: Serialization): ServerEdge<Req, Res>\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'enum class Method { GET, PUT, POST, DELETE, OPTIONS, HEAD, PATCH, TRACE }\n |' + Spacer_instance.toString() + 'interface Request<T : Any> { val path: Path; val method: Method; val queries: Queries; val headers: Headers; val body: T; interface Headers : Wirespec.Headers }\n |' + Spacer_instance.toString() + 'interface Response<T : Any> { val status: Int; val headers: Headers; val body: T; interface Headers : Wirespec.Headers }\n |' + Spacer_instance.toString() + 'interface Serialization : Serializer, Deserializer\n |' + Spacer_instance.toString() + 'interface Serializer : BodySerializer, PathSerializer, ParamSerializer\n |' + Spacer_instance.toString() + 'interface Deserializer : BodyDeserializer, PathDeserializer, ParamDeserializer\n |' + Spacer_instance.toString() + 'interface BodySerialization : BodySerializer, BodyDeserializer\n |' + Spacer_instance.toString() + 'interface BodySerializer { fun <T : Any> serializeBody(t: T, kType: KType): ByteArray }\n |' + Spacer_instance.toString() + 'interface BodyDeserializer { fun <T : Any> deserializeBody(raw: ByteArray, kType: KType): T }\n |' + Spacer_instance.toString() + 'interface PathSerialization : PathSerializer, PathDeserializer\n |' + Spacer_instance.toString() + 'interface PathSerializer { fun <T : Any> serializePath(t: T, kType: KType): String }\n |' + Spacer_instance.toString() + 'interface PathDeserializer { fun <T : Any> deserializePath(raw: String, kType: KType): T }\n |' + Spacer_instance.toString() + 'interface ParamSerialization : ParamSerializer, ParamDeserializer\n |' + Spacer_instance.toString() + 'interface ParamSerializer { fun <T : Any> serializeParam(value: T, kType: KType): List<String> }\n |' + Spacer_instance.toString() + 'interface ParamDeserializer { fun <T : Any> deserializeParam(values: List<String>, kType: KType): T }\n |' + Spacer_instance.toString() + 'data class RawRequest(val method: String, val path: List<String>, val queries: Map<String, List<String>>, val headers: Map<String, List<String>>, val body: ByteArray?) \n |' + Spacer_instance.toString() + 'data class RawResponse(val statusCode: Int, val headers: Map<String, List<String>>, val body: ByteArray?)\n |}\n ');
|
|
1453
1515
|
}
|
|
1454
1516
|
protoOf(KotlinShared).toString = function () {
|
|
1455
1517
|
return 'KotlinShared';
|
|
@@ -1472,12 +1534,12 @@ function KotlinShared_getInstance() {
|
|
|
1472
1534
|
}
|
|
1473
1535
|
function KotlinTypeDefinitionEmitter$emit$lambda(this$0) {
|
|
1474
1536
|
return function (it) {
|
|
1475
|
-
return this$0.
|
|
1537
|
+
return this$0.nu(it);
|
|
1476
1538
|
};
|
|
1477
1539
|
}
|
|
1478
1540
|
function KotlinTypeDefinitionEmitter$emit$lambda_0(this$0) {
|
|
1479
1541
|
return function (it) {
|
|
1480
|
-
return Spacer_instance.toString() + 'val ' + this$0.
|
|
1542
|
+
return Spacer_instance.toString() + 'val ' + this$0.mu(it) + ',';
|
|
1481
1543
|
};
|
|
1482
1544
|
}
|
|
1483
1545
|
function KotlinTypeDefinitionEmitter() {
|
|
@@ -1485,30 +1547,31 @@ function KotlinTypeDefinitionEmitter() {
|
|
|
1485
1547
|
function KotlinUnionDefinitionEmitter() {
|
|
1486
1548
|
}
|
|
1487
1549
|
//region block: post-declaration
|
|
1488
|
-
protoOf(KotlinEmitter).
|
|
1489
|
-
protoOf(KotlinEmitter).
|
|
1490
|
-
protoOf(KotlinEmitter).
|
|
1491
|
-
protoOf(KotlinEmitter).
|
|
1492
|
-
protoOf(KotlinEmitter).
|
|
1493
|
-
protoOf(KotlinEmitter).
|
|
1494
|
-
protoOf(KotlinEmitter).
|
|
1495
|
-
protoOf(KotlinEmitter).
|
|
1496
|
-
protoOf(KotlinEmitter).
|
|
1497
|
-
protoOf(KotlinEmitter).
|
|
1498
|
-
protoOf(KotlinEmitter).
|
|
1499
|
-
protoOf(KotlinEmitter).
|
|
1500
|
-
protoOf(KotlinEmitter).
|
|
1501
|
-
protoOf(KotlinEmitter).
|
|
1502
|
-
protoOf(KotlinEmitter).
|
|
1503
|
-
protoOf(KotlinEmitter).
|
|
1504
|
-
protoOf(KotlinEmitter).
|
|
1505
|
-
protoOf(KotlinEmitter).
|
|
1506
|
-
protoOf(KotlinEmitter).
|
|
1507
|
-
protoOf(KotlinEmitter).
|
|
1508
|
-
protoOf(KotlinEmitter).
|
|
1509
|
-
protoOf(KotlinEmitter).
|
|
1510
|
-
protoOf(KotlinIrEmitter).
|
|
1511
|
-
protoOf(KotlinIrEmitter).
|
|
1550
|
+
protoOf(KotlinEmitter).ku = emit_4;
|
|
1551
|
+
protoOf(KotlinEmitter).lu = emit_5;
|
|
1552
|
+
protoOf(KotlinEmitter).mu = emit_6;
|
|
1553
|
+
protoOf(KotlinEmitter).nu = emit_7;
|
|
1554
|
+
protoOf(KotlinEmitter).ou = emit_8;
|
|
1555
|
+
protoOf(KotlinEmitter).yv = emit_15;
|
|
1556
|
+
protoOf(KotlinEmitter).tv = emit_10;
|
|
1557
|
+
protoOf(KotlinEmitter).zv = emit_11;
|
|
1558
|
+
protoOf(KotlinEmitter).ov = emit_14;
|
|
1559
|
+
protoOf(KotlinEmitter).mv = emit_3;
|
|
1560
|
+
protoOf(KotlinEmitter).nv = emit_9;
|
|
1561
|
+
protoOf(KotlinEmitter).a21 = emit_12;
|
|
1562
|
+
protoOf(KotlinEmitter).b21 = emit_13;
|
|
1563
|
+
protoOf(KotlinEmitter).aw = emitValidator;
|
|
1564
|
+
protoOf(KotlinEmitter).n21 = sanitize;
|
|
1565
|
+
protoOf(KotlinEmitter).c21 = sanitizeFirstIsDigit;
|
|
1566
|
+
protoOf(KotlinEmitter).d21 = sanitizeKeywords;
|
|
1567
|
+
protoOf(KotlinEmitter).e21 = emitHandleFunction;
|
|
1568
|
+
protoOf(KotlinEmitter).w21 = emitRequestHeaders;
|
|
1569
|
+
protoOf(KotlinEmitter).x21 = emitQueries;
|
|
1570
|
+
protoOf(KotlinEmitter).y21 = emitBody;
|
|
1571
|
+
protoOf(KotlinEmitter).z21 = emitHeaders;
|
|
1572
|
+
protoOf(KotlinIrEmitter).es = emit_1;
|
|
1573
|
+
protoOf(KotlinIrEmitter).s1z = emit_2;
|
|
1574
|
+
protoOf(KotlinIrEmitter).v1z = beforeGenerate;
|
|
1512
1575
|
//endregion
|
|
1513
1576
|
//region block: exports
|
|
1514
1577
|
export {
|