@flock/wirespec 0.17.2 → 0.17.4
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/clikt-clikt.mjs +1174 -1174
- package/colormath-root-colormath.mjs +425 -425
- package/kotlin-kotlin-stdlib.mjs +44 -43
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +9202 -9761
- package/kotlin-openapi-bindings.mjs.map +1 -1
- package/kotlin-rgxgen.mjs +1767 -1767
- package/kotlinx-io-kotlinx-io-core.mjs +380 -380
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +4 -0
- package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +299 -299
- package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
- package/markdown.mjs +1876 -1876
- package/mordant-mordant.mjs +1643 -1643
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +1059 -1059
- package/wirespec-src-compiler-emitters-java.mjs +260 -260
- package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-kotlin.mjs +186 -186
- package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-python.mjs +183 -183
- package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-typescript.mjs +196 -196
- package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-wirespec.mjs +76 -76
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +377 -327
- package/wirespec-src-compiler-lib.mjs.map +1 -1
- package/wirespec-src-converter-avro.mjs +316 -316
- package/wirespec-src-converter-openapi.mjs +2565 -2561
- package/wirespec-src-converter-openapi.mjs.map +1 -1
- package/wirespec-src-plugin-arguments.mjs +139 -139
- package/wirespec-src-plugin-cli.mjs +77 -77
- package/wirespec-src-plugin-npm.d.ts +13 -5
- package/wirespec-src-plugin-npm.mjs +41 -41
- package/wirespec-src-plugin-npm.mjs.map +1 -1
- package/wirespec-src-tools-generator.mjs +25 -25
|
@@ -85,10 +85,10 @@ import {
|
|
|
85
85
|
function emit_0(identifier) {
|
|
86
86
|
var tmp;
|
|
87
87
|
if (identifier instanceof DefinitionIdentifier) {
|
|
88
|
-
tmp = this.
|
|
88
|
+
tmp = this.r29(identifier);
|
|
89
89
|
} else {
|
|
90
90
|
if (identifier instanceof FieldIdentifier) {
|
|
91
|
-
tmp = this.
|
|
91
|
+
tmp = this.t29(this.r29(identifier));
|
|
92
92
|
} else {
|
|
93
93
|
noWhenBranchMatchedException();
|
|
94
94
|
}
|
|
@@ -107,11 +107,11 @@ function sanitize(_this__u8e3s4) {
|
|
|
107
107
|
// Inline function 'community.flock.wirespec.emitters.kotlin.KotlinIdentifierEmitter.sanitize.<anonymous>' call
|
|
108
108
|
var tmp1 = index;
|
|
109
109
|
index = tmp1 + 1 | 0;
|
|
110
|
-
var tmp$ret$0 = checkIndexOverflow(tmp1) > 0 ? Companion_instance_1.
|
|
110
|
+
var tmp$ret$0 = checkIndexOverflow(tmp1) > 0 ? Companion_instance_1.z24(item) : item;
|
|
111
111
|
destination.e(tmp$ret$0);
|
|
112
112
|
}
|
|
113
113
|
var tmp = asSequence(joinToString(destination, ''));
|
|
114
|
-
return this.
|
|
114
|
+
return this.s29(joinToString_0(filter(tmp, KotlinIdentifierEmitter$sanitize$lambda), ''));
|
|
115
115
|
}
|
|
116
116
|
function sanitizeFirstIsDigit(_this__u8e3s4) {
|
|
117
117
|
var tmp;
|
|
@@ -131,20 +131,20 @@ function sanitizeFirstIsDigit(_this__u8e3s4) {
|
|
|
131
131
|
return tmp;
|
|
132
132
|
}
|
|
133
133
|
function sanitizeKeywords(_this__u8e3s4) {
|
|
134
|
-
return Companion_getInstance().
|
|
134
|
+
return Companion_getInstance().h2a_1.o1(_this__u8e3s4) ? addBackticks(_this__u8e3s4) : _this__u8e3s4;
|
|
135
135
|
}
|
|
136
136
|
initMetadataForInterface(KotlinIdentifierEmitter, 'KotlinIdentifierEmitter');
|
|
137
137
|
function emit_1(type, module_0) {
|
|
138
138
|
var tmp;
|
|
139
|
-
if (type.
|
|
140
|
-
tmp = 'data object ' + this.
|
|
139
|
+
if (type.i23_1.e23_1.l()) {
|
|
140
|
+
tmp = 'data object ' + this.h25(type.h23_1);
|
|
141
141
|
} else {
|
|
142
|
-
var tmp_0 = this.
|
|
143
|
-
var tmp_1 = this.
|
|
142
|
+
var tmp_0 = this.h25(type.h23_1);
|
|
143
|
+
var tmp_1 = this.g24(type.i23_1);
|
|
144
144
|
// Inline function 'kotlin.run' call
|
|
145
145
|
// Inline function 'kotlin.contracts.contract' call
|
|
146
146
|
// Inline function 'community.flock.wirespec.emitters.kotlin.KotlinTypeDefinitionEmitter.emit.<anonymous>' call
|
|
147
|
-
var $this$run = type.
|
|
147
|
+
var $this$run = type.j23_1;
|
|
148
148
|
var tmp_2;
|
|
149
149
|
if ($this$run.l()) {
|
|
150
150
|
tmp_2 = '';
|
|
@@ -157,19 +157,19 @@ function emit_1(type, module_0) {
|
|
|
157
157
|
return tmp;
|
|
158
158
|
}
|
|
159
159
|
function emit_2(_this__u8e3s4) {
|
|
160
|
-
return dropLast(joinToString(_this__u8e3s4.
|
|
160
|
+
return dropLast(joinToString(_this__u8e3s4.e23_1, '\n', VOID, VOID, VOID, VOID, KotlinTypeDefinitionEmitter$emit$lambda_0(this)), 1);
|
|
161
161
|
}
|
|
162
162
|
function emit_3(_this__u8e3s4) {
|
|
163
|
-
return this.
|
|
163
|
+
return this.h25(_this__u8e3s4.l23_1) + ': ' + this.i24(_this__u8e3s4.m23_1);
|
|
164
164
|
}
|
|
165
165
|
function emit_4(_this__u8e3s4) {
|
|
166
166
|
// Inline function 'kotlin.let' call
|
|
167
167
|
var tmp;
|
|
168
168
|
if (_this__u8e3s4 instanceof Dict) {
|
|
169
|
-
tmp = 'Map<String, ' + this.
|
|
169
|
+
tmp = 'Map<String, ' + this.i24(_this__u8e3s4.o22_1) + '>';
|
|
170
170
|
} else {
|
|
171
171
|
if (_this__u8e3s4 instanceof Iterable) {
|
|
172
|
-
tmp = 'List<' + this.
|
|
172
|
+
tmp = 'List<' + this.i24(_this__u8e3s4.l22_1) + '>';
|
|
173
173
|
} else {
|
|
174
174
|
if (_this__u8e3s4 instanceof Unit) {
|
|
175
175
|
tmp = 'Unit';
|
|
@@ -178,17 +178,17 @@ function emit_4(_this__u8e3s4) {
|
|
|
178
178
|
tmp = 'Any';
|
|
179
179
|
} else {
|
|
180
180
|
if (_this__u8e3s4 instanceof Custom) {
|
|
181
|
-
tmp = _this__u8e3s4.
|
|
181
|
+
tmp = _this__u8e3s4.l28_1;
|
|
182
182
|
} else {
|
|
183
183
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
184
|
-
var t = _this__u8e3s4.
|
|
184
|
+
var t = _this__u8e3s4.p28_1;
|
|
185
185
|
var tmp_0;
|
|
186
186
|
if (t instanceof String_0) {
|
|
187
187
|
tmp_0 = 'String';
|
|
188
188
|
} else {
|
|
189
189
|
if (t instanceof Integer) {
|
|
190
190
|
var tmp_1;
|
|
191
|
-
switch (t.
|
|
191
|
+
switch (t.u27_1.r2_1) {
|
|
192
192
|
case 0:
|
|
193
193
|
tmp_1 = 'Int';
|
|
194
194
|
break;
|
|
@@ -203,7 +203,7 @@ function emit_4(_this__u8e3s4) {
|
|
|
203
203
|
} else {
|
|
204
204
|
if (t instanceof Number_0) {
|
|
205
205
|
var tmp_2;
|
|
206
|
-
switch (t.
|
|
206
|
+
switch (t.x27_1.r2_1) {
|
|
207
207
|
case 0:
|
|
208
208
|
tmp_2 = 'Float';
|
|
209
209
|
break;
|
|
@@ -245,10 +245,10 @@ function emit_4(_this__u8e3s4) {
|
|
|
245
245
|
function emit_5(_this__u8e3s4) {
|
|
246
246
|
var tmp;
|
|
247
247
|
if (_this__u8e3s4 instanceof RegExp_0) {
|
|
248
|
-
tmp = 'Regex("""' + this.
|
|
248
|
+
tmp = 'Regex("""' + this.k24(_this__u8e3s4.p27_1) + '""").matches(value)';
|
|
249
249
|
} else {
|
|
250
250
|
if (_this__u8e3s4 instanceof Bound) {
|
|
251
|
-
tmp = Spacer_instance.toString() + _this__u8e3s4.
|
|
251
|
+
tmp = Spacer_instance.toString() + _this__u8e3s4.q27_1 + ' < record.value < ' + _this__u8e3s4.r27_1 + ';';
|
|
252
252
|
} else {
|
|
253
253
|
noWhenBranchMatchedException();
|
|
254
254
|
}
|
|
@@ -257,7 +257,7 @@ function emit_5(_this__u8e3s4) {
|
|
|
257
257
|
}
|
|
258
258
|
initMetadataForInterface(KotlinTypeDefinitionEmitter, 'KotlinTypeDefinitionEmitter', VOID, VOID, [TypeDefinitionEmitter, KotlinIdentifierEmitter]);
|
|
259
259
|
function emit_6(channel) {
|
|
260
|
-
return trimMargin('\n |' + emitImports(channel, this) + '\n |\n |fun interface ' + this.
|
|
260
|
+
return trimMargin('\n |' + emitImports(channel, this) + '\n |\n |fun interface ' + this.h25(channel.y22_1) + ' {\n | operator fun invoke(message: ' + this.i24(channel.z22_1) + ')\n |}\n |\n ');
|
|
261
261
|
}
|
|
262
262
|
initMetadataForInterface(KotlinChannelDefinitionEmitter, 'KotlinChannelDefinitionEmitter', VOID, VOID, [KotlinTypeDefinitionEmitter]);
|
|
263
263
|
function emit_7(endpoint) {
|
|
@@ -269,147 +269,147 @@ function emit_7(endpoint) {
|
|
|
269
269
|
while (tmp0_iterator.h()) {
|
|
270
270
|
var item = tmp0_iterator.i();
|
|
271
271
|
// Inline function 'community.flock.wirespec.emitters.kotlin.KotlinEndpointDefinitionEmitter.emit.<anonymous>' call
|
|
272
|
-
var tmp$ret$0 = 'import ' + this.
|
|
272
|
+
var tmp$ret$0 = 'import ' + this.q29().x25_1 + '.model.' + item.l28_1;
|
|
273
273
|
destination.e(tmp$ret$0);
|
|
274
274
|
}
|
|
275
275
|
var tmp = destination;
|
|
276
276
|
var tmp_0 = joinToString(tmp, '\n', VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda);
|
|
277
|
-
var tmp_1 = this.
|
|
277
|
+
var tmp_1 = this.h25(endpoint.q23_1);
|
|
278
278
|
var tmp_2 = get_pathParams(endpoint);
|
|
279
279
|
var tmp_3 = emitObject$default(tmp_2, this, 'Path', 'Wirespec.Path', VOID, KotlinEndpointDefinitionEmitter$emit$lambda_0(this));
|
|
280
|
-
var tmp_4 = emitObject$default(endpoint.
|
|
281
|
-
var tmp_5 = emitObject$default(endpoint.
|
|
282
|
-
var tmp_6 = this.
|
|
280
|
+
var tmp_4 = emitObject$default(endpoint.t23_1, this, 'Queries', 'Wirespec.Queries', VOID, KotlinEndpointDefinitionEmitter$emit$lambda_1(this));
|
|
281
|
+
var tmp_5 = emitObject$default(endpoint.u23_1, this, 'Headers', 'Wirespec.Request.Headers', VOID, KotlinEndpointDefinitionEmitter$emit$lambda_2(this));
|
|
282
|
+
var tmp_6 = this.d2a(first(endpoint.v23_1), endpoint);
|
|
283
283
|
var tmp_7 = Spacer_instance.toString();
|
|
284
284
|
var tmp_8 = emitStatusInterfaces(endpoint, this);
|
|
285
285
|
var tmp_9 = emitResponseInterfaces(endpoint, this);
|
|
286
|
-
var tmp_10 = distinctByStatus(endpoint.
|
|
286
|
+
var tmp_10 = distinctByStatus(endpoint.w23_1);
|
|
287
287
|
var tmp_11 = joinToString(tmp_10, '\n\n', VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda_3(this));
|
|
288
288
|
var tmp_12 = Spacer_instance.toString();
|
|
289
|
-
var tmp_13 = Spacer_instance.
|
|
290
|
-
var tmp_14 = distinctByStatus(endpoint.
|
|
289
|
+
var tmp_13 = Spacer_instance.b26(2);
|
|
290
|
+
var tmp_14 = distinctByStatus(endpoint.w23_1);
|
|
291
291
|
var tmp_15 = joinToString(tmp_14, '\n', VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda_4(this));
|
|
292
|
-
var tmp_16 = Spacer_instance.
|
|
292
|
+
var tmp_16 = Spacer_instance.b26(2);
|
|
293
293
|
var tmp_17 = Spacer_instance.toString();
|
|
294
|
-
var tmp_18 = Spacer_instance.
|
|
294
|
+
var tmp_18 = Spacer_instance.b26(2);
|
|
295
295
|
// Inline function 'kotlin.collections.filter' call
|
|
296
296
|
// Inline function 'kotlin.collections.filterTo' call
|
|
297
|
-
var this_1 = distinctByStatus(endpoint.
|
|
297
|
+
var this_1 = distinctByStatus(endpoint.w23_1);
|
|
298
298
|
var destination_0 = ArrayList_init_$Create$_0();
|
|
299
299
|
var tmp0_iterator_0 = this_1.g();
|
|
300
300
|
while (tmp0_iterator_0.h()) {
|
|
301
301
|
var element = tmp0_iterator_0.i();
|
|
302
302
|
// Inline function 'community.flock.wirespec.emitters.kotlin.KotlinEndpointDefinitionEmitter.emit.<anonymous>' call
|
|
303
|
-
if (Companion_instance_1.
|
|
303
|
+
if (Companion_instance_1.c25(element.c24_1)) {
|
|
304
304
|
destination_0.e(element);
|
|
305
305
|
}
|
|
306
306
|
}
|
|
307
307
|
var tmp_19 = destination_0;
|
|
308
308
|
var tmp_20 = joinToString(tmp_19, '\n', VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda_5(this));
|
|
309
|
-
var tmp_21 = Spacer_instance.
|
|
310
|
-
var tmp_22 = Spacer_instance.
|
|
309
|
+
var tmp_21 = Spacer_instance.b26(3);
|
|
310
|
+
var tmp_22 = Spacer_instance.b26(2);
|
|
311
311
|
var tmp_23 = Spacer_instance.toString();
|
|
312
|
-
var tmp_24 = Spacer_instance.
|
|
313
|
-
var tmp_25 = this.
|
|
314
|
-
var tmp_26 = Spacer_instance.
|
|
315
|
-
var tmp_27 = Spacer_instance.
|
|
316
|
-
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
|
|
312
|
+
var tmp_24 = Spacer_instance.b26(2);
|
|
313
|
+
var tmp_25 = this.f2a(endpoint);
|
|
314
|
+
var tmp_26 = Spacer_instance.b26(2);
|
|
315
|
+
var tmp_27 = Spacer_instance.b26(3);
|
|
316
|
+
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.s23_1, '/', VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda_6) + '"\n |' + Spacer_instance.b26(3) + 'override val method = "' + endpoint.r23_1.toString() + '"\n |' + Spacer_instance.b26(3) + 'override fun server(serialization: Wirespec.Serialization) = object : Wirespec.ServerEdge<Request, Response<*>> {\n |' + Spacer_instance.b26(4) + 'override fun from(request: Wirespec.RawRequest) = fromRequest(serialization, request)\n |' + Spacer_instance.b26(4) + 'override fun to(response: Response<*>) = toResponse(serialization, response)\n |' + Spacer_instance.b26(3) + '}\n |' + Spacer_instance.b26(3) + 'override fun client(serialization: Wirespec.Serialization) = object : Wirespec.ClientEdge<Request, Response<*>> {\n |' + Spacer_instance.b26(4) + 'override fun to(request: Request) = toRequest(serialization, request)\n |' + Spacer_instance.b26(4) + 'override fun from(response: Wirespec.RawResponse) = fromResponse(serialization, response)\n |' + Spacer_instance.b26(3) + '}\n |' + Spacer_instance.b26(2) + '}\n |' + Spacer_instance.toString() + '}\n |}\n |\n ');
|
|
317
317
|
}
|
|
318
318
|
function emitHandleFunction(endpoint) {
|
|
319
|
-
return 'suspend fun ' + Companion_instance_1.
|
|
319
|
+
return 'suspend fun ' + Companion_instance_1.a25(this.h25(endpoint.q23_1)) + '(request: Request): Response<*>';
|
|
320
320
|
}
|
|
321
321
|
function emit_8(_this__u8e3s4, endpoint) {
|
|
322
322
|
var tmp = Spacer_instance.toString();
|
|
323
323
|
var tmp_0 = emitConstructor(_this__u8e3s4, this, endpoint);
|
|
324
|
-
var tmp_1 = Spacer_instance.
|
|
324
|
+
var tmp_1 = Spacer_instance.b26(2);
|
|
325
325
|
var tmp_2 = get_pathParams(endpoint);
|
|
326
326
|
var tmp_3 = brace(joinToString(tmp_2, VOID, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda_7(this)), this);
|
|
327
|
-
var tmp_4 = Spacer_instance.
|
|
328
|
-
var tmp_5 = Spacer_instance.
|
|
329
|
-
var tmp_6 = brace(joinToString(endpoint.
|
|
330
|
-
var tmp_7 = Spacer_instance.
|
|
331
|
-
var tmp_8 = brace(joinToString(endpoint.
|
|
332
|
-
var tmp_9 = _this__u8e3s4.
|
|
327
|
+
var tmp_4 = Spacer_instance.b26(2);
|
|
328
|
+
var tmp_5 = Spacer_instance.b26(2);
|
|
329
|
+
var tmp_6 = brace(joinToString(endpoint.t23_1, VOID, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda_8(this)), this);
|
|
330
|
+
var tmp_7 = Spacer_instance.b26(2);
|
|
331
|
+
var tmp_8 = brace(joinToString(endpoint.u23_1, VOID, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda_9(this)), this);
|
|
332
|
+
var tmp_9 = _this__u8e3s4.z23_1 == null ? '\n' + Spacer_instance.b26(2) + 'override val body = Unit' : '';
|
|
333
333
|
var tmp_10 = Spacer_instance.toString();
|
|
334
334
|
var tmp_11 = Spacer_instance.toString();
|
|
335
|
-
var tmp_12 = Spacer_instance.
|
|
336
|
-
var tmp_13 = Spacer_instance.
|
|
337
|
-
var tmp_14 = joinToString(endpoint.
|
|
338
|
-
var tmp_15 = Spacer_instance.
|
|
339
|
-
var tmp_16 = Spacer_instance.
|
|
335
|
+
var tmp_12 = Spacer_instance.b26(2);
|
|
336
|
+
var tmp_13 = Spacer_instance.b26(3);
|
|
337
|
+
var tmp_14 = joinToString(endpoint.s23_1, VOID, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda_10(this));
|
|
338
|
+
var tmp_15 = Spacer_instance.b26(3);
|
|
339
|
+
var tmp_16 = Spacer_instance.b26(3);
|
|
340
340
|
var tmp_17;
|
|
341
341
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
342
|
-
if (!endpoint.
|
|
343
|
-
tmp_17 = joinToString(endpoint.
|
|
342
|
+
if (!endpoint.t23_1.l()) {
|
|
343
|
+
tmp_17 = joinToString(endpoint.t23_1, ' + ', VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda_11(this));
|
|
344
344
|
} else {
|
|
345
345
|
tmp_17 = 'emptyMap()';
|
|
346
346
|
}
|
|
347
347
|
var tmp_18 = tmp_17;
|
|
348
|
-
var tmp_19 = Spacer_instance.
|
|
348
|
+
var tmp_19 = Spacer_instance.b26(3);
|
|
349
349
|
var tmp_20;
|
|
350
350
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
351
|
-
if (!endpoint.
|
|
352
|
-
tmp_20 = joinToString(endpoint.
|
|
351
|
+
if (!endpoint.u23_1.l()) {
|
|
352
|
+
tmp_20 = joinToString(endpoint.u23_1, ' + ', VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda_12(this));
|
|
353
353
|
} else {
|
|
354
354
|
tmp_20 = 'emptyMap()';
|
|
355
355
|
}
|
|
356
|
-
return trimMargin('\n |' + tmp + tmp_0 + '\n |' + tmp_1 + 'override val path = Path' + tmp_3 + '\n |' + tmp_4 + 'override val method = Wirespec.Method.' + endpoint.
|
|
356
|
+
return trimMargin('\n |' + tmp + tmp_0 + '\n |' + tmp_1 + 'override val path = Path' + tmp_3 + '\n |' + tmp_4 + 'override val method = Wirespec.Method.' + endpoint.r23_1.q2_1 + '\n |' + tmp_5 + 'override val queries = Queries' + tmp_6 + '\n |' + tmp_7 + 'override val headers = Headers' + tmp_8 + tmp_9 + '\n |' + tmp_10 + '}\n |\n |' + tmp_11 + 'fun toRequest(serialization: Wirespec.Serializer, request: Request): Wirespec.RawRequest =\n |' + tmp_12 + 'Wirespec.RawRequest(\n |' + tmp_13 + 'path = listOf(' + tmp_14 + '),\n |' + tmp_15 + 'method = request.method.name,\n |' + tmp_16 + 'queries = ' + tmp_18 + ',\n |' + tmp_19 + 'headers = ' + tmp_20 + ',\n |' + Spacer_instance.b26(3) + 'body = ' + (!(_this__u8e3s4.z23_1 == null) ? 'serialization.serializeBody(request.body, typeOf<' + emit_13(_this__u8e3s4.z23_1, this) + '>())' : 'null') + ',\n |' + Spacer_instance.b26(2) + ')\n |\n |' + Spacer_instance.toString() + 'fun fromRequest(serialization: Wirespec.Deserializer, request: Wirespec.RawRequest): Request =\n |' + Spacer_instance.b26(2) + 'Request' + emitDeserializedParams(_this__u8e3s4, this, endpoint) + '\n ');
|
|
357
357
|
}
|
|
358
358
|
function emit_9(_this__u8e3s4) {
|
|
359
359
|
var tmp = Spacer_instance.toString();
|
|
360
|
-
var tmp_0 = emit_13(_this__u8e3s4.
|
|
360
|
+
var tmp_0 = emit_13(_this__u8e3s4.e24_1, this);
|
|
361
361
|
// Inline function 'kotlin.let' call
|
|
362
362
|
// Inline function 'kotlin.contracts.contract' call
|
|
363
363
|
// Inline function 'community.flock.wirespec.emitters.kotlin.KotlinEndpointDefinitionEmitter.emit.<anonymous>' call
|
|
364
|
-
var it = joinToString(_this__u8e3s4.
|
|
364
|
+
var it = joinToString(_this__u8e3s4.d24_1, ', ', VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda_13(this));
|
|
365
365
|
var tmp_1 = isBlank(it) ? '' : ', ' + it;
|
|
366
|
-
var tmp_2 = toString_0(charSequenceGet(_this__u8e3s4.
|
|
367
|
-
var tmp_3 = emit_13(_this__u8e3s4.
|
|
368
|
-
var tmp_4 = concatGenerics(emit_13(_this__u8e3s4.
|
|
369
|
-
var tmp_5 = Spacer_instance.
|
|
370
|
-
var tmp_6 = fixStatus(_this__u8e3s4.
|
|
371
|
-
var tmp_7 = Spacer_instance.
|
|
372
|
-
var tmp_8 = brace(joinToString(_this__u8e3s4.
|
|
373
|
-
return trimMargin('\n |' + tmp + 'data class Response' + _this__u8e3s4.
|
|
366
|
+
var tmp_2 = toString_0(charSequenceGet(_this__u8e3s4.c24_1, 0));
|
|
367
|
+
var tmp_3 = emit_13(_this__u8e3s4.e24_1, this);
|
|
368
|
+
var tmp_4 = concatGenerics(emit_13(_this__u8e3s4.e24_1, this));
|
|
369
|
+
var tmp_5 = Spacer_instance.b26(2);
|
|
370
|
+
var tmp_6 = fixStatus(_this__u8e3s4.c24_1);
|
|
371
|
+
var tmp_7 = Spacer_instance.b26(2);
|
|
372
|
+
var tmp_8 = brace(joinToString(_this__u8e3s4.d24_1, VOID, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda_14(this)), this);
|
|
373
|
+
return trimMargin('\n |' + tmp + 'data class Response' + _this__u8e3s4.c24_1 + '(override val body: ' + tmp_0 + tmp_1 + ') : Response' + tmp_2 + 'XX<' + tmp_3 + '>, Response' + tmp_4 + ' {\n |' + tmp_5 + 'override val status = ' + tmp_6 + '\n |' + tmp_7 + 'override val headers = ResponseHeaders' + tmp_8 + '\n |' + emitObject(_this__u8e3s4.d24_1, this, 'ResponseHeaders', 'Wirespec.Response.Headers', 2, KotlinEndpointDefinitionEmitter$emit$lambda_15(this)) + '\n |' + Spacer_instance.toString() + '}\n ');
|
|
374
374
|
}
|
|
375
375
|
initMetadataForInterface(KotlinEndpointDefinitionEmitter, 'KotlinEndpointDefinitionEmitter', VOID, VOID, [KotlinTypeDefinitionEmitter]);
|
|
376
|
-
function emit_10(
|
|
377
|
-
|
|
378
|
-
|
|
376
|
+
function emit_10(union) {
|
|
377
|
+
return trimMargin('\n |sealed interface ' + this.h25(union.c23_1) + '\n |\n ');
|
|
378
|
+
}
|
|
379
|
+
initMetadataForInterface(KotlinUnionDefinitionEmitter, 'KotlinUnionDefinitionEmitter', VOID, VOID, [KotlinIdentifierEmitter]);
|
|
380
|
+
function emit_11(enum_0, module_0) {
|
|
381
|
+
var tmp = this.r29(enum_0.r25_1);
|
|
382
|
+
return trimMargin('\n |enum class ' + tmp + ' (override val label: String): Wirespec.Enum {\n |' + spacer(joinToString(enum_0.s25_1, ',\n', VOID, VOID, VOID, VOID, KotlinEnumDefinitionEmitter$emit$lambda(this))) + ';\n |' + Spacer_instance.toString() + 'override fun toString(): String {\n |' + Spacer_instance.b26(2) + 'return label\n |' + Spacer_instance.toString() + '}\n |}\n |\n ');
|
|
379
383
|
}
|
|
380
384
|
function sanitizeEnum(_this__u8e3s4) {
|
|
381
|
-
return this.
|
|
385
|
+
return this.s29(joinToString(split(_this__u8e3s4, ['-', ', ', '.', ' ', '//']), '_'));
|
|
382
386
|
}
|
|
383
387
|
initMetadataForInterface(KotlinEnumDefinitionEmitter, 'KotlinEnumDefinitionEmitter', VOID, VOID, [KotlinIdentifierEmitter]);
|
|
384
|
-
function emit_11(union) {
|
|
385
|
-
return trimMargin('\n |sealed interface ' + this.n26(union.i24_1) + '\n |\n ');
|
|
386
|
-
}
|
|
387
|
-
initMetadataForInterface(KotlinUnionDefinitionEmitter, 'KotlinUnionDefinitionEmitter', VOID, VOID, [KotlinIdentifierEmitter]);
|
|
388
388
|
function emit_12(refined) {
|
|
389
|
-
return trimMargin('\n |data class ' + this.
|
|
389
|
+
return trimMargin('\n |data class ' + this.r29(refined.m25_1) + '(override val value: String): Wirespec.Refined {\n |' + Spacer_instance.toString() + 'override fun toString() = value\n |}\n |\n |fun ' + refined.m25_1.b1() + '.validate() = ' + this.v25(refined) + '\n |\n ');
|
|
390
390
|
}
|
|
391
391
|
function emitValidator(_this__u8e3s4) {
|
|
392
392
|
var defaultReturn = 'true';
|
|
393
|
-
var type = _this__u8e3s4.
|
|
393
|
+
var type = _this__u8e3s4.n25_1.p28_1;
|
|
394
394
|
var tmp;
|
|
395
395
|
if (type instanceof Integer) {
|
|
396
|
-
var tmp0_safe_receiver = type.
|
|
397
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : this.
|
|
396
|
+
var tmp0_safe_receiver = type.v27_1;
|
|
397
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : this.j24(tmp0_safe_receiver);
|
|
398
398
|
tmp = tmp1_elvis_lhs == null ? defaultReturn : tmp1_elvis_lhs;
|
|
399
399
|
} else {
|
|
400
400
|
if (type instanceof Number_0) {
|
|
401
|
-
var tmp2_safe_receiver = type.
|
|
402
|
-
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : this.
|
|
401
|
+
var tmp2_safe_receiver = type.y27_1;
|
|
402
|
+
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : this.j24(tmp2_safe_receiver);
|
|
403
403
|
tmp = tmp3_elvis_lhs == null ? defaultReturn : tmp3_elvis_lhs;
|
|
404
404
|
} else {
|
|
405
405
|
if (type instanceof String_0) {
|
|
406
|
-
var tmp4_safe_receiver = type.
|
|
406
|
+
var tmp4_safe_receiver = type.s27_1;
|
|
407
407
|
var tmp_0;
|
|
408
408
|
var tmp_1 = tmp4_safe_receiver;
|
|
409
409
|
if ((tmp_1 == null ? null : new RegExp_0(tmp_1)) == null) {
|
|
410
410
|
tmp_0 = null;
|
|
411
411
|
} else {
|
|
412
|
-
tmp_0 = this.
|
|
412
|
+
tmp_0 = this.j24(new RegExp_0(tmp4_safe_receiver));
|
|
413
413
|
}
|
|
414
414
|
var tmp5_elvis_lhs = tmp_0;
|
|
415
415
|
tmp = tmp5_elvis_lhs == null ? defaultReturn : tmp5_elvis_lhs;
|
|
@@ -429,7 +429,7 @@ function emitValidator(_this__u8e3s4) {
|
|
|
429
429
|
return tmp;
|
|
430
430
|
}
|
|
431
431
|
initMetadataForInterface(KotlinRefinedTypeDefinitionEmitter, 'KotlinRefinedTypeDefinitionEmitter', VOID, VOID, [KotlinIdentifierEmitter, KotlinTypeDefinitionEmitter]);
|
|
432
|
-
initMetadataForClass(KotlinEmitter, 'KotlinEmitter', KotlinEmitter, LanguageEmitter, [LanguageEmitter,
|
|
432
|
+
initMetadataForClass(KotlinEmitter, 'KotlinEmitter', KotlinEmitter, LanguageEmitter, [LanguageEmitter, KotlinEndpointDefinitionEmitter, KotlinTypeDefinitionEmitter, KotlinIdentifierEmitter, KotlinChannelDefinitionEmitter, KotlinUnionDefinitionEmitter, KotlinEnumDefinitionEmitter, KotlinRefinedTypeDefinitionEmitter]);
|
|
433
433
|
initMetadataForCompanion(Companion);
|
|
434
434
|
initMetadataForObject(KotlinShared, 'KotlinShared');
|
|
435
435
|
//endregion
|
|
@@ -442,7 +442,7 @@ function emitImports(_this__u8e3s4, $this) {
|
|
|
442
442
|
while (tmp0_iterator.h()) {
|
|
443
443
|
var item = tmp0_iterator.i();
|
|
444
444
|
// Inline function 'community.flock.wirespec.emitters.kotlin.KotlinChannelDefinitionEmitter.emitImports.<anonymous>' call
|
|
445
|
-
var tmp$ret$0 = 'import ' + $this.
|
|
445
|
+
var tmp$ret$0 = 'import ' + $this.q29().x25_1 + '.model.' + item.l28_1 + ';';
|
|
446
446
|
destination.e(tmp$ret$0);
|
|
447
447
|
}
|
|
448
448
|
var tmp = destination;
|
|
@@ -455,57 +455,57 @@ function KotlinChannelDefinitionEmitter$emitImports$lambda(it) {
|
|
|
455
455
|
function KotlinChannelDefinitionEmitter() {
|
|
456
456
|
}
|
|
457
457
|
function KotlinEmitter(packageName, emitShared) {
|
|
458
|
-
packageName = packageName === VOID ? Companion_instance.
|
|
459
|
-
emitShared = emitShared === VOID ? Companion_instance_0.
|
|
458
|
+
packageName = packageName === VOID ? Companion_instance.w25('community.flock.wirespec.generated') : packageName;
|
|
459
|
+
emitShared = emitShared === VOID ? Companion_instance_0.s22() : emitShared;
|
|
460
460
|
LanguageEmitter.call(this);
|
|
461
|
-
this.
|
|
462
|
-
this.
|
|
463
|
-
this.
|
|
464
|
-
this.
|
|
465
|
-
this.
|
|
466
|
-
this.
|
|
467
|
-
}
|
|
468
|
-
protoOf(KotlinEmitter).
|
|
469
|
-
return this.
|
|
461
|
+
this.u29_1 = packageName;
|
|
462
|
+
this.v29_1 = emitShared;
|
|
463
|
+
this.w29_1 = '\nimport community.flock.wirespec.kotlin.Wirespec\nimport kotlin.reflect.typeOf\n';
|
|
464
|
+
this.x29_1 = FileExtension_Kotlin_getInstance();
|
|
465
|
+
this.y29_1 = KotlinShared_getInstance();
|
|
466
|
+
this.z29_1 = '//';
|
|
467
|
+
}
|
|
468
|
+
protoOf(KotlinEmitter).q29 = function () {
|
|
469
|
+
return this.u29_1;
|
|
470
470
|
};
|
|
471
|
-
protoOf(KotlinEmitter).
|
|
472
|
-
return this.
|
|
471
|
+
protoOf(KotlinEmitter).p24 = function () {
|
|
472
|
+
return this.x29_1;
|
|
473
473
|
};
|
|
474
|
-
protoOf(KotlinEmitter).
|
|
475
|
-
return this.
|
|
474
|
+
protoOf(KotlinEmitter).a2a = function () {
|
|
475
|
+
return this.y29_1;
|
|
476
476
|
};
|
|
477
|
-
protoOf(KotlinEmitter).
|
|
478
|
-
return this.
|
|
477
|
+
protoOf(KotlinEmitter).q24 = function () {
|
|
478
|
+
return this.z29_1;
|
|
479
479
|
};
|
|
480
|
-
protoOf(KotlinEmitter).
|
|
480
|
+
protoOf(KotlinEmitter).d25 = function (module_0, logger) {
|
|
481
481
|
// Inline function 'kotlin.let' call
|
|
482
482
|
// Inline function 'kotlin.contracts.contract' call
|
|
483
483
|
// Inline function 'community.flock.wirespec.emitters.kotlin.KotlinEmitter.emit.<anonymous>' call
|
|
484
|
-
var it = protoOf(LanguageEmitter).
|
|
485
|
-
return this.
|
|
484
|
+
var it = protoOf(LanguageEmitter).d25.call(this, module_0, logger);
|
|
485
|
+
return this.v29_1.t22_1 ? it.vk(new Emitted(Companion_instance.w25('community.flock.wirespec.kotlin').z25() + 'Wirespec', this.a2a().c2a_1)) : it;
|
|
486
486
|
};
|
|
487
|
-
protoOf(KotlinEmitter).
|
|
487
|
+
protoOf(KotlinEmitter).e25 = function (definition, module_0, logger) {
|
|
488
488
|
// Inline function 'kotlin.let' call
|
|
489
489
|
// Inline function 'kotlin.contracts.contract' call
|
|
490
490
|
// Inline function 'community.flock.wirespec.emitters.kotlin.KotlinEmitter.emit.<anonymous>' call
|
|
491
|
-
var it = protoOf(LanguageEmitter).
|
|
492
|
-
var subPackageName = plus(this.
|
|
493
|
-
var tmp = subPackageName.
|
|
491
|
+
var it = protoOf(LanguageEmitter).e25.call(this, definition, module_0, logger);
|
|
492
|
+
var subPackageName = plus(this.q29(), definition);
|
|
493
|
+
var tmp = subPackageName.z25() + it.u22_1;
|
|
494
494
|
// Inline function 'kotlin.text.trimStart' call
|
|
495
|
-
var this_0 = trimMargin('\n |package ' + subPackageName.toString() + '\n |' + (Companion_instance_1.
|
|
495
|
+
var this_0 = trimMargin('\n |package ' + subPackageName.toString() + '\n |' + (Companion_instance_1.b25(module_0) ? this.w29_1 : '') + '\n |' + it.v22_1 + '\n ');
|
|
496
496
|
var tmp$ret$0 = toString(trimStart(isCharSequence(this_0) ? this_0 : THROW_CCE()));
|
|
497
497
|
return new Emitted(tmp, tmp$ret$0);
|
|
498
498
|
};
|
|
499
499
|
function emitStatusInterfaces(_this__u8e3s4, $this) {
|
|
500
500
|
// Inline function 'kotlin.collections.map' call
|
|
501
|
-
var this_0 = _this__u8e3s4.
|
|
501
|
+
var this_0 = _this__u8e3s4.w23_1;
|
|
502
502
|
// Inline function 'kotlin.collections.mapTo' call
|
|
503
503
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
504
504
|
var tmp0_iterator = this_0.g();
|
|
505
505
|
while (tmp0_iterator.h()) {
|
|
506
506
|
var item = tmp0_iterator.i();
|
|
507
507
|
// Inline function 'community.flock.wirespec.emitters.kotlin.KotlinEndpointDefinitionEmitter.emitStatusInterfaces.<anonymous>' call
|
|
508
|
-
var tmp$ret$0 = new Char(charSequenceGet(item.
|
|
508
|
+
var tmp$ret$0 = new Char(charSequenceGet(item.c24_1, 0));
|
|
509
509
|
destination.e(tmp$ret$0);
|
|
510
510
|
}
|
|
511
511
|
var tmp = distinct(destination);
|
|
@@ -513,14 +513,14 @@ function emitStatusInterfaces(_this__u8e3s4, $this) {
|
|
|
513
513
|
}
|
|
514
514
|
function emitResponseInterfaces(_this__u8e3s4, $this) {
|
|
515
515
|
// Inline function 'kotlin.collections.map' call
|
|
516
|
-
var this_0 = _this__u8e3s4.
|
|
516
|
+
var this_0 = _this__u8e3s4.w23_1;
|
|
517
517
|
// Inline function 'kotlin.collections.mapTo' call
|
|
518
518
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
519
519
|
var tmp0_iterator = this_0.g();
|
|
520
520
|
while (tmp0_iterator.h()) {
|
|
521
521
|
var item = tmp0_iterator.i();
|
|
522
522
|
// Inline function 'community.flock.wirespec.emitters.kotlin.KotlinEndpointDefinitionEmitter.emitResponseInterfaces.<anonymous>' call
|
|
523
|
-
var tmp$ret$0 = emit_13(item.
|
|
523
|
+
var tmp$ret$0 = emit_13(item.e24_1, $this);
|
|
524
524
|
destination.e(tmp$ret$0);
|
|
525
525
|
}
|
|
526
526
|
var tmp = distinct(destination);
|
|
@@ -530,9 +530,9 @@ function emitConstructor(_this__u8e3s4, $this, endpoint) {
|
|
|
530
530
|
// Inline function 'kotlin.let' call
|
|
531
531
|
var tmp = get_pathParams(endpoint);
|
|
532
532
|
var tmp_0 = orNull(joinToString(tmp, VOID, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitConstructor$lambda($this)));
|
|
533
|
-
var tmp_1 = orNull(joinToString(endpoint.
|
|
534
|
-
var tmp_2 = orNull(joinToString(endpoint.
|
|
535
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
533
|
+
var tmp_1 = orNull(joinToString(endpoint.t23_1, VOID, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitConstructor$lambda_0($this)));
|
|
534
|
+
var tmp_2 = orNull(joinToString(endpoint.u23_1, VOID, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitConstructor$lambda_1($this)));
|
|
535
|
+
var tmp0_safe_receiver = _this__u8e3s4.z23_1;
|
|
536
536
|
var tmp_3;
|
|
537
537
|
if (tmp0_safe_receiver == null) {
|
|
538
538
|
tmp_3 = null;
|
|
@@ -540,20 +540,20 @@ function emitConstructor(_this__u8e3s4, $this, endpoint) {
|
|
|
540
540
|
// Inline function 'kotlin.let' call
|
|
541
541
|
// Inline function 'kotlin.contracts.contract' call
|
|
542
542
|
// Inline function 'community.flock.wirespec.emitters.kotlin.KotlinEndpointDefinitionEmitter.emitConstructor.<anonymous>' call
|
|
543
|
-
tmp_3 = Spacer_instance.
|
|
543
|
+
tmp_3 = Spacer_instance.b26(2) + 'override val body: ' + emit_13(tmp0_safe_receiver, $this) + ',';
|
|
544
544
|
}
|
|
545
545
|
// Inline function 'kotlin.contracts.contract' call
|
|
546
546
|
// Inline function 'community.flock.wirespec.emitters.kotlin.KotlinEndpointDefinitionEmitter.emitConstructor.<anonymous>' call
|
|
547
547
|
var it = joinToString(listOfNotNull([tmp_0, tmp_1, tmp_2, tmp_3]), ',\n');
|
|
548
|
-
return isBlank(it) ? 'object Request : Wirespec.Request<' + emit_13(_this__u8e3s4.
|
|
548
|
+
return isBlank(it) ? 'object Request : Wirespec.Request<' + emit_13(_this__u8e3s4.z23_1, $this) + '> {' : 'class Request(\n' + it + '\n' + Spacer_instance.toString() + ') : Wirespec.Request<' + emit_13(_this__u8e3s4.z23_1, $this) + '> {';
|
|
549
549
|
}
|
|
550
550
|
function emitDeserializedParams(_this__u8e3s4, $this, endpoint) {
|
|
551
551
|
// Inline function 'kotlin.let' call
|
|
552
552
|
var tmp = get_indexedPathParams(endpoint);
|
|
553
553
|
var tmp_0 = orNull(joinToString(tmp, VOID, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitDeserializedParams$lambda($this)));
|
|
554
|
-
var tmp_1 = orNull(joinToString(endpoint.
|
|
555
|
-
var tmp_2 = orNull(joinToString(endpoint.
|
|
556
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
554
|
+
var tmp_1 = orNull(joinToString(endpoint.t23_1, VOID, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitDeserializedParams$lambda_0($this)));
|
|
555
|
+
var tmp_2 = orNull(joinToString(endpoint.u23_1, VOID, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitDeserializedParams$lambda_1($this)));
|
|
556
|
+
var tmp0_safe_receiver = _this__u8e3s4.z23_1;
|
|
557
557
|
var tmp_3;
|
|
558
558
|
if (tmp0_safe_receiver == null) {
|
|
559
559
|
tmp_3 = null;
|
|
@@ -561,61 +561,61 @@ function emitDeserializedParams(_this__u8e3s4, $this, endpoint) {
|
|
|
561
561
|
// Inline function 'kotlin.let' call
|
|
562
562
|
// Inline function 'kotlin.contracts.contract' call
|
|
563
563
|
// Inline function 'community.flock.wirespec.emitters.kotlin.KotlinEndpointDefinitionEmitter.emitDeserializedParams.<anonymous>' call
|
|
564
|
-
tmp_3 = Spacer_instance.
|
|
564
|
+
tmp_3 = Spacer_instance.b26(3) + 'body = serialization.deserializeBody(requireNotNull(request.body) { "body is null" }, typeOf<' + emit_13(tmp0_safe_receiver, $this) + '>()),';
|
|
565
565
|
}
|
|
566
566
|
// Inline function 'kotlin.contracts.contract' call
|
|
567
567
|
// Inline function 'community.flock.wirespec.emitters.kotlin.KotlinEndpointDefinitionEmitter.emitDeserializedParams.<anonymous>' call
|
|
568
568
|
var it = joinToString(listOfNotNull([tmp_0, tmp_1, tmp_2, tmp_3]), ',\n');
|
|
569
|
-
return isBlank(it) ? '' : '(\n' + it + '\n' + Spacer_instance.
|
|
569
|
+
return isBlank(it) ? '' : '(\n' + it + '\n' + Spacer_instance.b26(2) + ')';
|
|
570
570
|
}
|
|
571
571
|
function emitSerialized(_this__u8e3s4, $this) {
|
|
572
|
-
var tmp = Spacer_instance.
|
|
573
|
-
var tmp_0 = Spacer_instance.
|
|
574
|
-
var tmp_1 = Spacer_instance.
|
|
572
|
+
var tmp = Spacer_instance.b26(3);
|
|
573
|
+
var tmp_0 = Spacer_instance.b26(4);
|
|
574
|
+
var tmp_1 = Spacer_instance.b26(4);
|
|
575
575
|
var tmp_2;
|
|
576
576
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
577
|
-
if (!_this__u8e3s4.
|
|
578
|
-
tmp_2 = joinToString(_this__u8e3s4.
|
|
577
|
+
if (!_this__u8e3s4.d24_1.l()) {
|
|
578
|
+
tmp_2 = joinToString(_this__u8e3s4.d24_1, ' + ', VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitSerialized$lambda($this));
|
|
579
579
|
} else {
|
|
580
580
|
tmp_2 = 'emptyMap()';
|
|
581
581
|
}
|
|
582
|
-
return trimMargin('\n |' + tmp + 'is Response' + _this__u8e3s4.
|
|
582
|
+
return trimMargin('\n |' + tmp + 'is Response' + _this__u8e3s4.c24_1 + ' -> Wirespec.RawResponse(\n |' + tmp_0 + 'statusCode = response.status,\n |' + tmp_1 + 'headers = ' + tmp_2 + ',\n |' + Spacer_instance.b26(4) + 'body = ' + (!(_this__u8e3s4.e24_1 == null) ? 'serialization.serializeBody(response.body, typeOf<' + emit_13(_this__u8e3s4.e24_1, $this) + '>())' : 'null') + ',\n |' + Spacer_instance.b26(3) + ')\n ');
|
|
583
583
|
}
|
|
584
584
|
function emitDeserialized(_this__u8e3s4, $this) {
|
|
585
|
-
var tmp = Spacer_instance.
|
|
585
|
+
var tmp = Spacer_instance.b26(3) + _this__u8e3s4.c24_1 + ' -> Response' + _this__u8e3s4.c24_1 + '(';
|
|
586
586
|
var tmp_0;
|
|
587
|
-
if (!(_this__u8e3s4.
|
|
588
|
-
tmp_0 = Spacer_instance.
|
|
587
|
+
if (!(_this__u8e3s4.e24_1 == null)) {
|
|
588
|
+
tmp_0 = Spacer_instance.b26(4) + 'body = serialization.deserializeBody(requireNotNull(response.body) { "body is null" }, typeOf<' + emit_13(_this__u8e3s4.e24_1, $this) + '>()),';
|
|
589
589
|
} else {
|
|
590
|
-
tmp_0 = Spacer_instance.
|
|
590
|
+
tmp_0 = Spacer_instance.b26(4) + 'body = Unit,';
|
|
591
591
|
}
|
|
592
592
|
var tmp_1 = tmp_0;
|
|
593
|
-
return joinToString(listOfNotNull([tmp, tmp_1, orNull(joinToString(_this__u8e3s4.
|
|
593
|
+
return joinToString(listOfNotNull([tmp, tmp_1, orNull(joinToString(_this__u8e3s4.d24_1, ',\n', VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitDeserialized$lambda($this))), Spacer_instance.b26(3) + ')']), '\n');
|
|
594
594
|
}
|
|
595
595
|
function emitSerializedParams(_this__u8e3s4, $this, type, fields) {
|
|
596
|
-
return 'mapOf("' + _this__u8e3s4.
|
|
596
|
+
return 'mapOf("' + _this__u8e3s4.l23_1.b1() + '" to (' + type + '.' + fields + '.' + $this.h25(_this__u8e3s4.l23_1) + '?.let{ serialization.serializeParam(it, typeOf<' + $this.i24(_this__u8e3s4.m23_1) + '>()) } ?: emptyList()))';
|
|
597
597
|
}
|
|
598
598
|
function emitDeserialized_0(_this__u8e3s4, $this) {
|
|
599
|
-
return Spacer_instance.
|
|
599
|
+
return Spacer_instance.b26(3) + $this.h25(_this__u8e3s4.rd_1.x23_1) + ' = serialization.deserializePath(request.path[' + _this__u8e3s4.qd_1 + '], typeOf<' + $this.i24(_this__u8e3s4.rd_1.y23_1) + '>())';
|
|
600
600
|
}
|
|
601
601
|
function emitDeserializedParams_0(_this__u8e3s4, $this, type, fields, spaces) {
|
|
602
|
-
return _this__u8e3s4.
|
|
602
|
+
return _this__u8e3s4.m23_1.jm() ? Spacer_instance.b26(spaces) + $this.h25(_this__u8e3s4.l23_1) + ' = ' + type + '.' + fields + '["' + _this__u8e3s4.l23_1.b1() + '"]?.let{ serialization.deserializeParam(it, typeOf<' + $this.i24(_this__u8e3s4.m23_1) + '>()) }' : Spacer_instance.b26(spaces) + $this.h25(_this__u8e3s4.l23_1) + ' = serialization.deserializeParam(requireNotNull(' + type + '.' + fields + '["' + _this__u8e3s4.l23_1.b1() + '"]) { "' + $this.h25(_this__u8e3s4.l23_1) + ' is null" }, typeOf<' + $this.i24(_this__u8e3s4.m23_1) + '>())';
|
|
603
603
|
}
|
|
604
604
|
function emitDeserializedParams$default(_this__u8e3s4, $this, type, fields, spaces, $super) {
|
|
605
605
|
spaces = spaces === VOID ? 3 : spaces;
|
|
606
606
|
return emitDeserializedParams_0(_this__u8e3s4, $this, type, fields, spaces);
|
|
607
607
|
}
|
|
608
608
|
function emitIdentifier(_this__u8e3s4, $this) {
|
|
609
|
-
return 'request.path.' + $this.
|
|
609
|
+
return 'request.path.' + $this.h25(_this__u8e3s4.x23_1) + '.let{serialization.serializePath(it, typeOf<' + $this.i24(_this__u8e3s4.y23_1) + '>())}';
|
|
610
610
|
}
|
|
611
611
|
function emit_13(_this__u8e3s4, $this) {
|
|
612
|
-
var tmp1_safe_receiver = _this__u8e3s4 == null ? null : _this__u8e3s4.
|
|
613
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : $this.
|
|
612
|
+
var tmp1_safe_receiver = _this__u8e3s4 == null ? null : _this__u8e3s4.b24_1;
|
|
613
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : $this.i24(tmp1_safe_receiver);
|
|
614
614
|
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : removeQuestionMark(tmp2_safe_receiver);
|
|
615
615
|
return tmp3_elvis_lhs == null ? 'Unit' : tmp3_elvis_lhs;
|
|
616
616
|
}
|
|
617
617
|
function emit_14(_this__u8e3s4, $this) {
|
|
618
|
-
return $this.
|
|
618
|
+
return $this.h25(_this__u8e3s4.x23_1) + ': ' + $this.i24(_this__u8e3s4.y23_1);
|
|
619
619
|
}
|
|
620
620
|
function brace(_this__u8e3s4, $this) {
|
|
621
621
|
return wrap(_this__u8e3s4, $this, '(', ')');
|
|
@@ -633,10 +633,10 @@ function wrap(_this__u8e3s4, $this, prefix, postfix) {
|
|
|
633
633
|
function emitObject(_this__u8e3s4, $this, name, extends_0, spaces, block) {
|
|
634
634
|
var tmp;
|
|
635
635
|
if (_this__u8e3s4.l()) {
|
|
636
|
-
tmp = Spacer_instance.
|
|
636
|
+
tmp = Spacer_instance.b26(spaces) + 'data object ' + name + ' : ' + extends_0;
|
|
637
637
|
} else {
|
|
638
|
-
var tmp_0 = Spacer_instance.
|
|
639
|
-
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.
|
|
638
|
+
var tmp_0 = Spacer_instance.b26(spaces);
|
|
639
|
+
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.b26(spaces) + ') : ' + extends_0 + '\n ');
|
|
640
640
|
}
|
|
641
641
|
return tmp;
|
|
642
642
|
}
|
|
@@ -655,17 +655,17 @@ function KotlinEndpointDefinitionEmitter$emit$lambda_0(this$0) {
|
|
|
655
655
|
}
|
|
656
656
|
function KotlinEndpointDefinitionEmitter$emit$lambda_1(this$0) {
|
|
657
657
|
return function (it) {
|
|
658
|
-
return this$0.
|
|
658
|
+
return this$0.h24(it);
|
|
659
659
|
};
|
|
660
660
|
}
|
|
661
661
|
function KotlinEndpointDefinitionEmitter$emit$lambda_2(this$0) {
|
|
662
662
|
return function (it) {
|
|
663
|
-
return this$0.
|
|
663
|
+
return this$0.h24(it);
|
|
664
664
|
};
|
|
665
665
|
}
|
|
666
666
|
function KotlinEndpointDefinitionEmitter$emit$lambda_3(this$0) {
|
|
667
667
|
return function (it) {
|
|
668
|
-
return this$0.
|
|
668
|
+
return this$0.e2a(it);
|
|
669
669
|
};
|
|
670
670
|
}
|
|
671
671
|
function KotlinEndpointDefinitionEmitter$emit$lambda_4(this$0) {
|
|
@@ -689,24 +689,24 @@ function KotlinEndpointDefinitionEmitter$emitResponseInterfaces$lambda(it) {
|
|
|
689
689
|
}
|
|
690
690
|
function KotlinEndpointDefinitionEmitter$emit$lambda_7(this$0) {
|
|
691
691
|
return function (it) {
|
|
692
|
-
return this$0.
|
|
692
|
+
return this$0.h25(it.x23_1);
|
|
693
693
|
};
|
|
694
694
|
}
|
|
695
695
|
function KotlinEndpointDefinitionEmitter$emit$lambda_8(this$0) {
|
|
696
696
|
return function (it) {
|
|
697
|
-
return this$0.
|
|
697
|
+
return this$0.h25(it.l23_1);
|
|
698
698
|
};
|
|
699
699
|
}
|
|
700
700
|
function KotlinEndpointDefinitionEmitter$emit$lambda_9(this$0) {
|
|
701
701
|
return function (it) {
|
|
702
|
-
return this$0.
|
|
702
|
+
return this$0.h25(it.l23_1);
|
|
703
703
|
};
|
|
704
704
|
}
|
|
705
705
|
function KotlinEndpointDefinitionEmitter$emit$lambda_10(this$0) {
|
|
706
706
|
return function (it) {
|
|
707
707
|
var tmp;
|
|
708
708
|
if (it instanceof Literal) {
|
|
709
|
-
tmp = '"' + it.
|
|
709
|
+
tmp = '"' + it.s24_1 + '"';
|
|
710
710
|
} else {
|
|
711
711
|
if (it instanceof Param) {
|
|
712
712
|
tmp = emitIdentifier(it, this$0);
|
|
@@ -729,32 +729,32 @@ function KotlinEndpointDefinitionEmitter$emit$lambda_12(this$0) {
|
|
|
729
729
|
}
|
|
730
730
|
function KotlinEndpointDefinitionEmitter$emit$lambda_13(this$0) {
|
|
731
731
|
return function (it) {
|
|
732
|
-
return 'val ' + this$0.
|
|
732
|
+
return 'val ' + this$0.h24(it);
|
|
733
733
|
};
|
|
734
734
|
}
|
|
735
735
|
function KotlinEndpointDefinitionEmitter$emit$lambda_14(this$0) {
|
|
736
736
|
return function (it) {
|
|
737
|
-
return this$0.
|
|
737
|
+
return this$0.h25(it.l23_1);
|
|
738
738
|
};
|
|
739
739
|
}
|
|
740
740
|
function KotlinEndpointDefinitionEmitter$emit$lambda_15(this$0) {
|
|
741
741
|
return function (it) {
|
|
742
|
-
return this$0.
|
|
742
|
+
return this$0.h24(it);
|
|
743
743
|
};
|
|
744
744
|
}
|
|
745
745
|
function KotlinEndpointDefinitionEmitter$emitConstructor$lambda(this$0) {
|
|
746
746
|
return function (it) {
|
|
747
|
-
return Spacer_instance.
|
|
747
|
+
return Spacer_instance.b26(2) + emit_14(it, this$0);
|
|
748
748
|
};
|
|
749
749
|
}
|
|
750
750
|
function KotlinEndpointDefinitionEmitter$emitConstructor$lambda_0(this$0) {
|
|
751
751
|
return function (it) {
|
|
752
|
-
return Spacer_instance.
|
|
752
|
+
return Spacer_instance.b26(2) + this$0.h24(it);
|
|
753
753
|
};
|
|
754
754
|
}
|
|
755
755
|
function KotlinEndpointDefinitionEmitter$emitConstructor$lambda_1(this$0) {
|
|
756
756
|
return function (it) {
|
|
757
|
-
return Spacer_instance.
|
|
757
|
+
return Spacer_instance.b26(2) + this$0.h24(it);
|
|
758
758
|
};
|
|
759
759
|
}
|
|
760
760
|
function KotlinEndpointDefinitionEmitter$emitDeserializedParams$lambda(this$0) {
|
|
@@ -784,21 +784,21 @@ function KotlinEndpointDefinitionEmitter$emitDeserialized$lambda(this$0) {
|
|
|
784
784
|
}
|
|
785
785
|
function KotlinEndpointDefinitionEmitter$emitObject$lambda($spaces, $block) {
|
|
786
786
|
return function (it) {
|
|
787
|
-
return Spacer_instance.
|
|
787
|
+
return Spacer_instance.b26($spaces + 1 | 0) + 'val ' + $block(it);
|
|
788
788
|
};
|
|
789
789
|
}
|
|
790
790
|
function KotlinEndpointDefinitionEmitter() {
|
|
791
791
|
}
|
|
792
792
|
function KotlinEnumDefinitionEmitter$emit$lambda(this$0) {
|
|
793
793
|
return function (it) {
|
|
794
|
-
return this$0.
|
|
794
|
+
return this$0.t29(this$0.g2a(it)) + '("' + it + '")';
|
|
795
795
|
};
|
|
796
796
|
}
|
|
797
797
|
function KotlinEnumDefinitionEmitter() {
|
|
798
798
|
}
|
|
799
799
|
function Companion() {
|
|
800
800
|
Companion_instance_2 = this;
|
|
801
|
-
this.
|
|
801
|
+
this.h2a_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']);
|
|
802
802
|
}
|
|
803
803
|
var Companion_instance_2;
|
|
804
804
|
function Companion_getInstance() {
|
|
@@ -815,8 +815,8 @@ function KotlinRefinedTypeDefinitionEmitter() {
|
|
|
815
815
|
}
|
|
816
816
|
function KotlinShared() {
|
|
817
817
|
KotlinShared_instance = this;
|
|
818
|
-
this.
|
|
819
|
-
this.
|
|
818
|
+
this.b2a_1 = 'community.flock.wirespec.kotlin';
|
|
819
|
+
this.c2a_1 = trimMargin('\n |package ' + this.b2a_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 { val value: String }\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.b26(2) + 'fun to(request: Req): RawRequest\n |' + Spacer_instance.b26(2) + 'fun from(response: RawResponse): Res\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'interface Client<Req : Request<*>, Res : Response<*>> {\n |' + Spacer_instance.b26(2) + 'val pathTemplate: String\n |' + Spacer_instance.b26(2) + 'val method: String\n |' + Spacer_instance.b26(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.b26(2) + 'val pathTemplate: String\n |' + Spacer_instance.b26(2) + 'val method: String\n |' + Spacer_instance.b26(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> serializeBody(t: T, kType: KType): ByteArray }\n |' + Spacer_instance.toString() + 'interface BodyDeserializer { fun <T> deserializeBody(raw: ByteArray, kType: KType): T }\n |' + Spacer_instance.toString() + 'interface PathSerialization : PathSerializer, PathDeserializer\n |' + Spacer_instance.toString() + 'interface PathSerializer { fun <T> serializePath(t: T, kType: KType): String }\n |' + Spacer_instance.toString() + 'interface PathDeserializer { fun <T> deserializePath(raw: String, kType: KType): T }\n |' + Spacer_instance.toString() + 'interface ParamSerialization : ParamSerializer, ParamDeserializer\n |' + Spacer_instance.toString() + 'interface ParamSerializer { fun <T> serializeParam(value: T, kType: KType): List<String> }\n |' + Spacer_instance.toString() + 'interface ParamDeserializer { fun <T> 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 ');
|
|
820
820
|
}
|
|
821
821
|
protoOf(KotlinShared).toString = function () {
|
|
822
822
|
return 'KotlinShared';
|
|
@@ -840,12 +840,12 @@ function KotlinShared_getInstance() {
|
|
|
840
840
|
}
|
|
841
841
|
function KotlinTypeDefinitionEmitter$emit$lambda(this$0) {
|
|
842
842
|
return function (it) {
|
|
843
|
-
return this$0.
|
|
843
|
+
return this$0.i24(it);
|
|
844
844
|
};
|
|
845
845
|
}
|
|
846
846
|
function KotlinTypeDefinitionEmitter$emit$lambda_0(this$0) {
|
|
847
847
|
return function (it) {
|
|
848
|
-
return Spacer_instance.toString() + 'val ' + this$0.
|
|
848
|
+
return Spacer_instance.toString() + 'val ' + this$0.h24(it) + ',';
|
|
849
849
|
};
|
|
850
850
|
}
|
|
851
851
|
function KotlinTypeDefinitionEmitter() {
|
|
@@ -853,25 +853,25 @@ function KotlinTypeDefinitionEmitter() {
|
|
|
853
853
|
function KotlinUnionDefinitionEmitter() {
|
|
854
854
|
}
|
|
855
855
|
//region block: post-declaration
|
|
856
|
-
protoOf(KotlinEmitter).
|
|
857
|
-
protoOf(KotlinEmitter).
|
|
858
|
-
protoOf(KotlinEmitter).
|
|
859
|
-
protoOf(KotlinEmitter).
|
|
860
|
-
protoOf(KotlinEmitter).
|
|
861
|
-
protoOf(KotlinEmitter).
|
|
862
|
-
protoOf(KotlinEmitter).
|
|
863
|
-
protoOf(KotlinEmitter).
|
|
864
|
-
protoOf(KotlinEmitter).
|
|
865
|
-
protoOf(KotlinEmitter).
|
|
866
|
-
protoOf(KotlinEmitter).
|
|
867
|
-
protoOf(KotlinEmitter).
|
|
868
|
-
protoOf(KotlinEmitter).
|
|
869
|
-
protoOf(KotlinEmitter).
|
|
870
|
-
protoOf(KotlinEmitter).
|
|
871
|
-
protoOf(KotlinEmitter).
|
|
872
|
-
protoOf(KotlinEmitter).
|
|
873
|
-
protoOf(KotlinEmitter).
|
|
874
|
-
protoOf(KotlinEmitter).
|
|
856
|
+
protoOf(KotlinEmitter).h25 = emit_0;
|
|
857
|
+
protoOf(KotlinEmitter).f24 = emit_1;
|
|
858
|
+
protoOf(KotlinEmitter).g24 = emit_2;
|
|
859
|
+
protoOf(KotlinEmitter).h24 = emit_3;
|
|
860
|
+
protoOf(KotlinEmitter).i24 = emit_4;
|
|
861
|
+
protoOf(KotlinEmitter).j24 = emit_5;
|
|
862
|
+
protoOf(KotlinEmitter).u25 = emit_7;
|
|
863
|
+
protoOf(KotlinEmitter).d2a = emit_8;
|
|
864
|
+
protoOf(KotlinEmitter).e2a = emit_9;
|
|
865
|
+
protoOf(KotlinEmitter).i25 = emit_6;
|
|
866
|
+
protoOf(KotlinEmitter).t25 = emit_11;
|
|
867
|
+
protoOf(KotlinEmitter).j25 = emit_10;
|
|
868
|
+
protoOf(KotlinEmitter).o25 = emit_12;
|
|
869
|
+
protoOf(KotlinEmitter).v25 = emitValidator;
|
|
870
|
+
protoOf(KotlinEmitter).r29 = sanitize;
|
|
871
|
+
protoOf(KotlinEmitter).s29 = sanitizeFirstIsDigit;
|
|
872
|
+
protoOf(KotlinEmitter).t29 = sanitizeKeywords;
|
|
873
|
+
protoOf(KotlinEmitter).f2a = emitHandleFunction;
|
|
874
|
+
protoOf(KotlinEmitter).g2a = sanitizeEnum;
|
|
875
875
|
//endregion
|
|
876
876
|
//region block: exports
|
|
877
877
|
export {
|