@flock/wirespec 0.17.18 → 0.17.19
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 +1148 -1148
- package/colormath-root-colormath.mjs +418 -418
- package/kotlin-kotlin-stdlib.mjs +5 -5
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-rgxgen.mjs +1766 -1766
- package/kotlinx-io-kotlinx-io-core.mjs +379 -379
- package/markdown.mjs +1829 -1829
- package/mordant-mordant.mjs +1582 -1582
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +205 -182
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-java.mjs +120 -120
- package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-kotlin.mjs +104 -104
- package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-python.mjs +64 -64
- package/wirespec-src-compiler-emitters-typescript.mjs +43 -43
- package/wirespec-src-compiler-emitters-wirespec.mjs +27 -27
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +260 -260
- package/wirespec-src-converter-avro.mjs +269 -269
- package/wirespec-src-converter-openapi.mjs +370 -368
- package/wirespec-src-converter-openapi.mjs.map +1 -1
- package/wirespec-src-plugin-arguments.mjs +130 -130
- package/wirespec-src-plugin-cli.mjs +74 -74
- package/wirespec-src-plugin-npm.mjs +11 -11
- package/wirespec-src-tools-generator.mjs +13 -13
|
@@ -115,10 +115,10 @@ function emit_3(_this__u8e3s4) {
|
|
|
115
115
|
function emitRoot(_this__u8e3s4, void_0) {
|
|
116
116
|
var tmp;
|
|
117
117
|
if (_this__u8e3s4 instanceof Dict) {
|
|
118
|
-
tmp = this.
|
|
118
|
+
tmp = this.d2b(_this__u8e3s4.e23_1);
|
|
119
119
|
} else {
|
|
120
120
|
if (_this__u8e3s4 instanceof Iterable) {
|
|
121
|
-
tmp = this.
|
|
121
|
+
tmp = this.d2b(_this__u8e3s4.b23_1);
|
|
122
122
|
} else {
|
|
123
123
|
if (_this__u8e3s4 instanceof Unit) {
|
|
124
124
|
tmp = void_0;
|
|
@@ -147,7 +147,7 @@ function emitRoot(_this__u8e3s4, void_0) {
|
|
|
147
147
|
}
|
|
148
148
|
function emitRoot$default(_this__u8e3s4, void_0, $super) {
|
|
149
149
|
void_0 = void_0 === VOID ? 'void' : void_0;
|
|
150
|
-
return $super === VOID ? this.
|
|
150
|
+
return $super === VOID ? this.e2b(_this__u8e3s4, void_0) : emitRoot(_this__u8e3s4, void_0);
|
|
151
151
|
}
|
|
152
152
|
function emit_4(_this__u8e3s4) {
|
|
153
153
|
var tmp;
|
|
@@ -155,7 +155,7 @@ function emit_4(_this__u8e3s4) {
|
|
|
155
155
|
tmp = 'return java.util.regex.Pattern.compile("' + replace(this.b25(_this__u8e3s4.a28_1), '\\', '\\\\') + '").matcher(record.value).find();';
|
|
156
156
|
} else {
|
|
157
157
|
if (_this__u8e3s4 instanceof Bound) {
|
|
158
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
158
|
+
var tmp1_safe_receiver = _this__u8e3s4.q28_1;
|
|
159
159
|
var tmp_0;
|
|
160
160
|
if (tmp1_safe_receiver == null) {
|
|
161
161
|
tmp_0 = null;
|
|
@@ -166,7 +166,7 @@ function emit_4(_this__u8e3s4) {
|
|
|
166
166
|
tmp_0 = tmp1_safe_receiver + ' < record.value';
|
|
167
167
|
}
|
|
168
168
|
var minCheck = tmp_0;
|
|
169
|
-
var tmp2_safe_receiver = _this__u8e3s4.
|
|
169
|
+
var tmp2_safe_receiver = _this__u8e3s4.r28_1;
|
|
170
170
|
var tmp_1;
|
|
171
171
|
if (tmp2_safe_receiver == null) {
|
|
172
172
|
tmp_1 = null;
|
|
@@ -194,16 +194,60 @@ function emit_4(_this__u8e3s4) {
|
|
|
194
194
|
}
|
|
195
195
|
initMetadataForInterface(JavaTypeDefinitionEmitter, 'JavaTypeDefinitionEmitter', VOID, VOID, [TypeDefinitionEmitter]);
|
|
196
196
|
function emit_5(channel) {
|
|
197
|
-
return trimMargin('\n |' + emitImports(channel, this) + '\n |\n |@FunctionalInterface\n |public interface ' + this.y25(channel.o23_1) + ' {\n | void invoke(' + emitFullyQualified(channel, this, channel.p23_1) + this.
|
|
197
|
+
return trimMargin('\n |' + emitImports(channel, this) + '\n |\n |@FunctionalInterface\n |public interface ' + this.y25(channel.o23_1) + ' {\n | void invoke(' + emitFullyQualified(channel, this, channel.p23_1) + this.d2b(channel.p23_1) + ' message);\n |}\n |\n ');
|
|
198
198
|
}
|
|
199
199
|
initMetadataForInterface(JavaChannelDefinitionEmitter, 'JavaChannelDefinitionEmitter', VOID, VOID, [JavaTypeDefinitionEmitter]);
|
|
200
|
-
function emit_6(
|
|
200
|
+
function emit_6(refined) {
|
|
201
|
+
return trimMargin('\n |public record ' + this.y25(refined.d26_1) + ' (' + this.z24(refined.e26_1) + ' value) implements Wirespec.Refined<' + this.z24(refined.e26_1) + '> {\n |' + Spacer_instance.toString() + '@Override\n |' + Spacer_instance.toString() + 'public String toString() { return value.toString(); }\n |' + Spacer_instance.toString() + 'public static boolean validate(' + this.y25(refined.d26_1) + ' record) {\n |' + Spacer_instance.toString() + Spacer_instance.toString() + this.m26(refined) + '\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + '@Override\n |' + Spacer_instance.toString() + 'public ' + this.z24(refined.e26_1) + ' getValue() { return value; }\n |}\n |\n ');
|
|
202
|
+
}
|
|
203
|
+
function emitValidator(_this__u8e3s4) {
|
|
204
|
+
var defaultReturn = 'return true;';
|
|
205
|
+
var type = _this__u8e3s4.e26_1.p29_1;
|
|
206
|
+
var tmp;
|
|
207
|
+
if (type instanceof Integer) {
|
|
208
|
+
var tmp0_safe_receiver = type.v28_1;
|
|
209
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : this.a25(tmp0_safe_receiver);
|
|
210
|
+
tmp = tmp1_elvis_lhs == null ? defaultReturn : tmp1_elvis_lhs;
|
|
211
|
+
} else {
|
|
212
|
+
if (type instanceof Number_0) {
|
|
213
|
+
var tmp2_safe_receiver = type.y28_1;
|
|
214
|
+
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : this.a25(tmp2_safe_receiver);
|
|
215
|
+
tmp = tmp3_elvis_lhs == null ? defaultReturn : tmp3_elvis_lhs;
|
|
216
|
+
} else {
|
|
217
|
+
if (type instanceof String_0) {
|
|
218
|
+
var tmp4_safe_receiver = type.s28_1;
|
|
219
|
+
var tmp_0;
|
|
220
|
+
var tmp_1 = tmp4_safe_receiver;
|
|
221
|
+
if ((tmp_1 == null ? null : new RegExp_0(tmp_1)) == null) {
|
|
222
|
+
tmp_0 = null;
|
|
223
|
+
} else {
|
|
224
|
+
tmp_0 = this.a25(new RegExp_0(tmp4_safe_receiver));
|
|
225
|
+
}
|
|
226
|
+
var tmp5_elvis_lhs = tmp_0;
|
|
227
|
+
tmp = tmp5_elvis_lhs == null ? defaultReturn : tmp5_elvis_lhs;
|
|
228
|
+
} else {
|
|
229
|
+
if (equals(type, Boolean_instance)) {
|
|
230
|
+
tmp = defaultReturn;
|
|
231
|
+
} else {
|
|
232
|
+
if (equals(type, Bytes_instance)) {
|
|
233
|
+
tmp = defaultReturn;
|
|
234
|
+
} else {
|
|
235
|
+
noWhenBranchMatchedException();
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
return tmp;
|
|
242
|
+
}
|
|
243
|
+
initMetadataForInterface(JavaRefinedTypeDefinitionEmitter, 'JavaRefinedTypeDefinitionEmitter', VOID, VOID, [JavaTypeDefinitionEmitter]);
|
|
244
|
+
function emit_7(identifier) {
|
|
201
245
|
var tmp;
|
|
202
246
|
if (identifier instanceof DefinitionIdentifier) {
|
|
203
|
-
tmp = this.
|
|
247
|
+
tmp = this.n2b(identifier.b1());
|
|
204
248
|
} else {
|
|
205
249
|
if (identifier instanceof FieldIdentifier) {
|
|
206
|
-
tmp = this.
|
|
250
|
+
tmp = this.l2a(this.n2b(identifier.b1()));
|
|
207
251
|
} else {
|
|
208
252
|
noWhenBranchMatchedException();
|
|
209
253
|
}
|
|
@@ -226,7 +270,7 @@ function sanitizeSymbol(_this__u8e3s4) {
|
|
|
226
270
|
destination.e(tmp$ret$0);
|
|
227
271
|
}
|
|
228
272
|
var tmp = asSequence(joinToString(destination, ''));
|
|
229
|
-
return this.
|
|
273
|
+
return this.k2a(joinToString_0(filter(tmp, JavaIdentifierEmitter$sanitizeSymbol$lambda), ''));
|
|
230
274
|
}
|
|
231
275
|
function sanitizeFirstIsDigit(_this__u8e3s4) {
|
|
232
276
|
var tmp;
|
|
@@ -246,27 +290,17 @@ function sanitizeFirstIsDigit(_this__u8e3s4) {
|
|
|
246
290
|
return tmp;
|
|
247
291
|
}
|
|
248
292
|
function sanitizeKeywords(_this__u8e3s4) {
|
|
249
|
-
return Companion_getInstance().
|
|
293
|
+
return Companion_getInstance().o2b_1.o1(_this__u8e3s4) ? '_' + _this__u8e3s4 : _this__u8e3s4;
|
|
250
294
|
}
|
|
251
295
|
initMetadataForInterface(JavaIdentifierEmitter, 'JavaIdentifierEmitter');
|
|
252
|
-
function
|
|
253
|
-
var tmp = this.y25(enum_0.i26_1);
|
|
254
|
-
return trimMargin('\n |public enum ' + tmp + ' implements Wirespec.Enum {\n |' + spacer(joinToString(enum_0.j26_1, ',\n', VOID, VOID, VOID, VOID, JavaEnumDefinitionEmitter$emit$lambda(this))) + ';\n |' + Spacer_instance.toString() + 'public final String label;\n |' + Spacer_instance.toString() + this.y25(enum_0.i26_1) + '(String label) {\n |' + Spacer_instance.s26(2) + 'this.label = label;\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + '@Override\n |' + Spacer_instance.toString() + 'public String toString() {\n |' + Spacer_instance.s26(2) + 'return label;\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + '@Override\n |' + Spacer_instance.toString() + 'public String getLabel() {\n |' + Spacer_instance.s26(2) + 'return label;\n |' + Spacer_instance.toString() + '}\n |}\n |\n ');
|
|
255
|
-
}
|
|
256
|
-
initMetadataForInterface(JavaEnumDefinitionEmitter, 'JavaEnumDefinitionEmitter', VOID, VOID, [JavaIdentifierEmitter]);
|
|
257
|
-
function emit_8(union) {
|
|
258
|
-
var tmp = this.y25(union.s23_1);
|
|
259
|
-
return trimMargin('\n |public sealed interface ' + tmp + ' permits ' + joinToString(union.t23_1, VOID, VOID, VOID, VOID, VOID, JavaUnionDefinitionEmitter$emit$lambda) + ' {}\n |\n ');
|
|
260
|
-
}
|
|
261
|
-
initMetadataForInterface(JavaUnionDefinitionEmitter, 'JavaUnionDefinitionEmitter', VOID, VOID, [JavaIdentifierEmitter]);
|
|
262
|
-
function emit_9(endpoint) {
|
|
296
|
+
function emit_8(endpoint) {
|
|
263
297
|
var tmp = emitImports_0(endpoint, this);
|
|
264
298
|
var tmp_0 = this.y25(endpoint.g24_1);
|
|
265
299
|
var tmp_1 = get_pathParams(endpoint);
|
|
266
300
|
var tmp_2 = emitObject(tmp_1, this, 'Path', 'Wirespec.Path', JavaEndpointDefinitionEmitter$emit$lambda(this));
|
|
267
301
|
var tmp_3 = emitObject(endpoint.j24_1, this, 'Queries', 'Wirespec.Queries', JavaEndpointDefinitionEmitter$emit$lambda_0(this));
|
|
268
302
|
var tmp_4 = emitObject(endpoint.k24_1, this, 'RequestHeaders', 'Wirespec.Request.Headers', JavaEndpointDefinitionEmitter$emit$lambda_1(this));
|
|
269
|
-
var tmp_5 = this.
|
|
303
|
+
var tmp_5 = this.v2a(first_0(endpoint.l24_1), endpoint);
|
|
270
304
|
var tmp_6 = Spacer_instance.toString();
|
|
271
305
|
var tmp_7 = emitStatusInterfaces(endpoint, this);
|
|
272
306
|
var tmp_8 = emitResponseInterfaces(endpoint, this);
|
|
@@ -283,7 +317,7 @@ function emit_9(endpoint) {
|
|
|
283
317
|
var tmp_19 = emitFromResponse(endpoint, this);
|
|
284
318
|
var tmp_20 = Spacer_instance.s26(2);
|
|
285
319
|
var tmp_21 = Spacer_instance.s26(2);
|
|
286
|
-
var tmp_22 = this.
|
|
320
|
+
var tmp_22 = this.x2a(endpoint);
|
|
287
321
|
var tmp_23 = Spacer_instance.s26(2);
|
|
288
322
|
var tmp_24 = Spacer_instance.s26(3);
|
|
289
323
|
return trimMargin('\n |' + tmp + '\n |\n |public interface ' + tmp_0 + ' extends Wirespec.Endpoint {\n |' + tmp_2 + '\n |\n |' + tmp_3 + '\n |\n |' + tmp_4 + '\n |\n |' + tmp_5 + '\n |\n |' + tmp_6 + 'sealed interface Response<T> extends Wirespec.Response<T> {}\n |' + tmp_7 + '\n |' + tmp_8 + '\n |\n |' + tmp_10 + '\n |\n |' + tmp_11 + 'interface Handler extends Wirespec.Handler {\n |\n |' + tmp_12 + '\n |\n |' + tmp_13 + 'static Wirespec.RawResponse toResponse(Wirespec.Serializer serialization, Response<?> response) {\n |' + tmp_15 + '\n |' + tmp_16 + 'else { throw new IllegalStateException("Cannot match response with status: " + response.status());}\n |' + tmp_17 + '}\n |\n |' + tmp_18 + 'static Response<?> fromResponse(Wirespec.Deserializer serialization, Wirespec.RawResponse response) {\n |' + tmp_19 + '\n |' + tmp_20 + '}\n |\n |' + tmp_21 + tmp_22 + '\n |' + tmp_23 + 'class Handlers implements Wirespec.Server<Request, Response<?>>, Wirespec.Client<Request, Response<?>> {\n |' + tmp_24 + '@Override public String getPathTemplate() { return "/' + joinToString(endpoint.i24_1, '/', VOID, VOID, VOID, VOID, JavaEndpointDefinitionEmitter$emit$lambda_4) + '"; }\n |' + Spacer_instance.s26(3) + '@Override public String getMethod() { return "' + endpoint.h24_1.toString() + '"; }\n |' + Spacer_instance.s26(3) + '@Override public Wirespec.ServerEdge<Request, Response<?>> getServer(Wirespec.Serialization serialization) {\n |' + Spacer_instance.s26(4) + 'return new Wirespec.ServerEdge<>() {\n |' + Spacer_instance.s26(5) + '@Override public Request from(Wirespec.RawRequest request) { return fromRequest(serialization, request); }\n |' + Spacer_instance.s26(5) + '@Override public Wirespec.RawResponse to(Response<?> response) { return toResponse(serialization, response); }\n |' + Spacer_instance.s26(4) + '};\n |' + Spacer_instance.s26(3) + '}\n |' + Spacer_instance.s26(3) + '@Override public Wirespec.ClientEdge<Request, Response<?>> getClient(Wirespec.Serialization serialization) {\n |' + Spacer_instance.s26(4) + 'return new Wirespec.ClientEdge<>() {\n |' + Spacer_instance.s26(5) + '@Override public Wirespec.RawRequest to(Request request) { return toRequest(serialization, request); }\n |' + Spacer_instance.s26(5) + '@Override public Response<?> from(Wirespec.RawResponse response) { return fromResponse(serialization, response); }\n |' + Spacer_instance.s26(4) + '};\n |' + Spacer_instance.s26(3) + '}\n |' + Spacer_instance.s26(2) + '}\n |' + Spacer_instance.toString() + '}\n |}\n |\n ');
|
|
@@ -291,10 +325,10 @@ function emit_9(endpoint) {
|
|
|
291
325
|
function emitHandleFunction(endpoint) {
|
|
292
326
|
return 'java.util.concurrent.CompletableFuture<Response<?>> ' + Companion_instance_1.r25(this.y25(endpoint.g24_1)) + '(Request request);';
|
|
293
327
|
}
|
|
294
|
-
function
|
|
328
|
+
function emit_9(_this__u8e3s4, endpoint) {
|
|
295
329
|
return trimMargin('\n |' + Spacer_instance.toString() + 'record Request (\n |' + Spacer_instance.s26(2) + 'Path path,\n |' + Spacer_instance.s26(2) + 'Wirespec.Method method,\n |' + Spacer_instance.s26(2) + 'Queries queries,\n |' + Spacer_instance.s26(2) + 'RequestHeaders headers,\n |' + Spacer_instance.s26(2) + emit_13(_this__u8e3s4.p24_1, this) + ' body\n |' + Spacer_instance.toString() + ') implements Wirespec.Request<' + emit_13(_this__u8e3s4.p24_1, this) + '> {\n |' + Spacer_instance.s26(2) + emitConstructor(_this__u8e3s4, this, endpoint) + '\n |' + Spacer_instance.toString() + '}\n ');
|
|
296
330
|
}
|
|
297
|
-
function
|
|
331
|
+
function emit_10(_this__u8e3s4) {
|
|
298
332
|
var tmp = Spacer_instance.toString();
|
|
299
333
|
var tmp_0 = Companion_instance_1.q25(_this__u8e3s4.s24_1);
|
|
300
334
|
var tmp_1 = Spacer_instance.s26(2);
|
|
@@ -331,51 +365,17 @@ function emit_11(_this__u8e3s4) {
|
|
|
331
365
|
return trimMargin('\n |' + tmp + 'record Response' + tmp_0 + '(\n |' + tmp_1 + 'int status,\n |' + tmp_2 + 'Headers headers,\n |' + tmp_3 + tmp_4 + ' body\n |' + tmp_5 + ') implements Response' + tmp_6 + 'XX<' + tmp_7 + '>, Response' + tmp_8 + ' {\n |' + tmp_9 + 'public Response' + tmp_10 + '(' + tmp_13 + ') {\n |' + tmp_14 + 'this(' + tmp_15 + ', ' + tmp_16 + ', ' + tmp_17 + ');\n |' + tmp_18 + '}\n |' + tmp_19 + emitObject(_this__u8e3s4.t24_1, this, 'Headers', 'Wirespec.Response.Headers', JavaEndpointDefinitionEmitter$emit$lambda_7(this)) + '\n |' + Spacer_instance.toString() + '}\n ');
|
|
332
366
|
}
|
|
333
367
|
initMetadataForInterface(JavaEndpointDefinitionEmitter, 'JavaEndpointDefinitionEmitter', VOID, VOID, [JavaTypeDefinitionEmitter]);
|
|
334
|
-
function
|
|
335
|
-
|
|
368
|
+
function emit_11(enum_0, module_0) {
|
|
369
|
+
var tmp = this.y25(enum_0.i26_1);
|
|
370
|
+
return trimMargin('\n |public enum ' + tmp + ' implements Wirespec.Enum {\n |' + spacer(joinToString(enum_0.j26_1, ',\n', VOID, VOID, VOID, VOID, JavaEnumDefinitionEmitter$emit$lambda(this))) + ';\n |' + Spacer_instance.toString() + 'public final String label;\n |' + Spacer_instance.toString() + this.y25(enum_0.i26_1) + '(String label) {\n |' + Spacer_instance.s26(2) + 'this.label = label;\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + '@Override\n |' + Spacer_instance.toString() + 'public String toString() {\n |' + Spacer_instance.s26(2) + 'return label;\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + '@Override\n |' + Spacer_instance.toString() + 'public String getLabel() {\n |' + Spacer_instance.s26(2) + 'return label;\n |' + Spacer_instance.toString() + '}\n |}\n |\n ');
|
|
336
371
|
}
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
var
|
|
340
|
-
|
|
341
|
-
if (type instanceof Integer) {
|
|
342
|
-
var tmp0_safe_receiver = type.t28_1;
|
|
343
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : this.a25(tmp0_safe_receiver);
|
|
344
|
-
tmp = tmp1_elvis_lhs == null ? defaultReturn : tmp1_elvis_lhs;
|
|
345
|
-
} else {
|
|
346
|
-
if (type instanceof Number_0) {
|
|
347
|
-
var tmp2_safe_receiver = type.w28_1;
|
|
348
|
-
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : this.a25(tmp2_safe_receiver);
|
|
349
|
-
tmp = tmp3_elvis_lhs == null ? defaultReturn : tmp3_elvis_lhs;
|
|
350
|
-
} else {
|
|
351
|
-
if (type instanceof String_0) {
|
|
352
|
-
var tmp4_safe_receiver = type.q28_1;
|
|
353
|
-
var tmp_0;
|
|
354
|
-
var tmp_1 = tmp4_safe_receiver;
|
|
355
|
-
if ((tmp_1 == null ? null : new RegExp_0(tmp_1)) == null) {
|
|
356
|
-
tmp_0 = null;
|
|
357
|
-
} else {
|
|
358
|
-
tmp_0 = this.a25(new RegExp_0(tmp4_safe_receiver));
|
|
359
|
-
}
|
|
360
|
-
var tmp5_elvis_lhs = tmp_0;
|
|
361
|
-
tmp = tmp5_elvis_lhs == null ? defaultReturn : tmp5_elvis_lhs;
|
|
362
|
-
} else {
|
|
363
|
-
if (equals(type, Boolean_instance)) {
|
|
364
|
-
tmp = defaultReturn;
|
|
365
|
-
} else {
|
|
366
|
-
if (equals(type, Bytes_instance)) {
|
|
367
|
-
tmp = defaultReturn;
|
|
368
|
-
} else {
|
|
369
|
-
noWhenBranchMatchedException();
|
|
370
|
-
}
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
}
|
|
374
|
-
}
|
|
375
|
-
return tmp;
|
|
372
|
+
initMetadataForInterface(JavaEnumDefinitionEmitter, 'JavaEnumDefinitionEmitter', VOID, VOID, [JavaIdentifierEmitter]);
|
|
373
|
+
function emit_12(union) {
|
|
374
|
+
var tmp = this.y25(union.s23_1);
|
|
375
|
+
return trimMargin('\n |public sealed interface ' + tmp + ' permits ' + joinToString(union.t23_1, VOID, VOID, VOID, VOID, VOID, JavaUnionDefinitionEmitter$emit$lambda) + ' {}\n |\n ');
|
|
376
376
|
}
|
|
377
|
-
initMetadataForInterface(
|
|
378
|
-
initMetadataForClass(JavaEmitter, 'JavaEmitter', JavaEmitter, LanguageEmitter, [
|
|
377
|
+
initMetadataForInterface(JavaUnionDefinitionEmitter, 'JavaUnionDefinitionEmitter', VOID, VOID, [JavaIdentifierEmitter]);
|
|
378
|
+
initMetadataForClass(JavaEmitter, 'JavaEmitter', JavaEmitter, LanguageEmitter, [JavaChannelDefinitionEmitter, JavaRefinedTypeDefinitionEmitter, JavaIdentifierEmitter, JavaEndpointDefinitionEmitter, JavaTypeDefinitionEmitter, JavaEnumDefinitionEmitter, JavaUnionDefinitionEmitter, LanguageEmitter]);
|
|
379
379
|
initMetadataForCompanion(Companion);
|
|
380
380
|
initMetadataForObject(JavaShared, 'JavaShared');
|
|
381
381
|
//endregion
|
|
@@ -389,7 +389,7 @@ function emitImports(_this__u8e3s4, $this) {
|
|
|
389
389
|
while (tmp0_iterator.h()) {
|
|
390
390
|
var element = tmp0_iterator.i();
|
|
391
391
|
// Inline function 'community.flock.wirespec.emitters.java.JavaChannelDefinitionEmitter.emitImports.<anonymous>' call
|
|
392
|
-
if (!(_this__u8e3s4.x25().b1() === element.
|
|
392
|
+
if (!(_this__u8e3s4.x25().b1() === element.l29_1)) {
|
|
393
393
|
destination.e(element);
|
|
394
394
|
}
|
|
395
395
|
}
|
|
@@ -399,7 +399,7 @@ function emitImports(_this__u8e3s4, $this) {
|
|
|
399
399
|
while (tmp0_iterator_0.h()) {
|
|
400
400
|
var item = tmp0_iterator_0.i();
|
|
401
401
|
// Inline function 'community.flock.wirespec.emitters.java.JavaChannelDefinitionEmitter.emitImports.<anonymous>' call
|
|
402
|
-
var tmp$ret$3 = 'import ' + $this.
|
|
402
|
+
var tmp$ret$3 = 'import ' + $this.i2a().o26_1 + '.model.' + item.l29_1 + ';';
|
|
403
403
|
destination_0.e(tmp$ret$3);
|
|
404
404
|
}
|
|
405
405
|
var tmp = destination_0;
|
|
@@ -408,7 +408,7 @@ function emitImports(_this__u8e3s4, $this) {
|
|
|
408
408
|
function emitFullyQualified(_this__u8e3s4, $this, reference) {
|
|
409
409
|
var tmp;
|
|
410
410
|
if (_this__u8e3s4.x25().b1() === reference.b1()) {
|
|
411
|
-
tmp = $this.
|
|
411
|
+
tmp = $this.i2a().o26_1 + '.model.';
|
|
412
412
|
} else {
|
|
413
413
|
tmp = '';
|
|
414
414
|
}
|
|
@@ -424,46 +424,46 @@ function JavaEmitter(packageName, emitShared) {
|
|
|
424
424
|
packageName = packageName === VOID ? Companion_instance.n26('community.flock.wirespec.generated') : packageName;
|
|
425
425
|
emitShared = emitShared === VOID ? Companion_instance_0.i23() : emitShared;
|
|
426
426
|
LanguageEmitter.call(this);
|
|
427
|
-
this.
|
|
428
|
-
this.
|
|
429
|
-
this.
|
|
430
|
-
this.
|
|
431
|
-
this.
|
|
432
|
-
this.
|
|
433
|
-
}
|
|
434
|
-
protoOf(JavaEmitter).
|
|
435
|
-
return this.
|
|
427
|
+
this.f2b_1 = packageName;
|
|
428
|
+
this.g2b_1 = emitShared;
|
|
429
|
+
this.h2b_1 = '\nimport community.flock.wirespec.java.Wirespec;\n';
|
|
430
|
+
this.i2b_1 = FileExtension_Java_getInstance();
|
|
431
|
+
this.j2b_1 = JavaShared_getInstance();
|
|
432
|
+
this.k2b_1 = '//';
|
|
433
|
+
}
|
|
434
|
+
protoOf(JavaEmitter).i2a = function () {
|
|
435
|
+
return this.f2b_1;
|
|
436
436
|
};
|
|
437
437
|
protoOf(JavaEmitter).g25 = function () {
|
|
438
|
-
return this.
|
|
438
|
+
return this.i2b_1;
|
|
439
439
|
};
|
|
440
|
-
protoOf(JavaEmitter).
|
|
441
|
-
return this.
|
|
440
|
+
protoOf(JavaEmitter).s2a = function () {
|
|
441
|
+
return this.j2b_1;
|
|
442
442
|
};
|
|
443
443
|
protoOf(JavaEmitter).h25 = function () {
|
|
444
|
-
return this.
|
|
444
|
+
return this.k2b_1;
|
|
445
445
|
};
|
|
446
446
|
protoOf(JavaEmitter).v25 = function (module_0, logger) {
|
|
447
447
|
// Inline function 'kotlin.let' call
|
|
448
448
|
// Inline function 'kotlin.contracts.contract' call
|
|
449
449
|
// Inline function 'community.flock.wirespec.emitters.java.JavaEmitter.emit.<anonymous>' call
|
|
450
450
|
var it = protoOf(LanguageEmitter).v25.call(this, module_0, logger);
|
|
451
|
-
return this.
|
|
451
|
+
return this.g2b_1.j23_1 ? it.vk(new Emitted(Companion_instance.n26('community.flock.wirespec.java').q26() + 'Wirespec', this.s2a().m2b_1)) : it;
|
|
452
452
|
};
|
|
453
453
|
protoOf(JavaEmitter).w25 = function (definition, module_0, logger) {
|
|
454
454
|
// Inline function 'kotlin.let' call
|
|
455
455
|
// Inline function 'kotlin.contracts.contract' call
|
|
456
456
|
// Inline function 'community.flock.wirespec.emitters.java.JavaEmitter.emit.<anonymous>' call
|
|
457
457
|
var it = protoOf(LanguageEmitter).w25.call(this, definition, module_0, logger);
|
|
458
|
-
var subPackageName = plus(this.
|
|
459
|
-
var tmp = subPackageName.q26() + this.
|
|
458
|
+
var subPackageName = plus(this.i2a(), definition);
|
|
459
|
+
var tmp = subPackageName.q26() + this.n2b(it.k23_1);
|
|
460
460
|
// Inline function 'kotlin.text.trimStart' call
|
|
461
|
-
var this_0 = trimMargin('\n |package ' + subPackageName.toString() + ';\n |' + (Companion_instance_1.s25(module_0) ? this.
|
|
461
|
+
var this_0 = trimMargin('\n |package ' + subPackageName.toString() + ';\n |' + (Companion_instance_1.s25(module_0) ? this.h2b_1 : '') + '\n |' + it.l23_1 + '\n ');
|
|
462
462
|
var tmp$ret$0 = toString(trimStart(isCharSequence(this_0) ? this_0 : THROW_CCE()));
|
|
463
463
|
return new Emitted(tmp, tmp$ret$0);
|
|
464
464
|
};
|
|
465
465
|
function emitGetType(_this__u8e3s4, $this) {
|
|
466
|
-
return 'Wirespec.getType(' + $this.
|
|
466
|
+
return 'Wirespec.getType(' + $this.e2b(_this__u8e3s4, 'Void') + '.class, ' + emitGetTypeRaw(_this__u8e3s4, $this) + ')';
|
|
467
467
|
}
|
|
468
468
|
function emitGetTypeRaw(_this__u8e3s4, $this) {
|
|
469
469
|
var tmp;
|
|
@@ -542,7 +542,7 @@ function emitDeserializedParams(_this__u8e3s4, $this, endpoint) {
|
|
|
542
542
|
// Inline function 'kotlin.let' call
|
|
543
543
|
// Inline function 'kotlin.contracts.contract' call
|
|
544
544
|
// Inline function 'community.flock.wirespec.emitters.java.JavaEndpointDefinitionEmitter.emitDeserializedParams.<anonymous>' call
|
|
545
|
-
tmp_3 = Spacer_instance.s26(4) + '
|
|
545
|
+
tmp_3 = Spacer_instance.s26(4) + 'request.body().<' + emit_13(tmp0_safe_receiver, $this) + '>map(body -> serialization.deserializeBody(body, ' + emitGetType(tmp0_safe_receiver.r24_1, $this) + ')).orElse(null)';
|
|
546
546
|
}
|
|
547
547
|
// Inline function 'kotlin.contracts.contract' call
|
|
548
548
|
// Inline function 'community.flock.wirespec.emitters.java.JavaEndpointDefinitionEmitter.emitDeserializedParams.<anonymous>' call
|
|
@@ -560,7 +560,7 @@ function emitDeserializedParams_0(_this__u8e3s4, $this) {
|
|
|
560
560
|
// Inline function 'kotlin.let' call
|
|
561
561
|
// Inline function 'kotlin.contracts.contract' call
|
|
562
562
|
// Inline function 'community.flock.wirespec.emitters.java.JavaEndpointDefinitionEmitter.emitDeserializedParams.<anonymous>' call
|
|
563
|
-
tmp_0 = Spacer_instance.s26(5) + '
|
|
563
|
+
tmp_0 = Spacer_instance.s26(5) + 'response.body().<' + emit_13(tmp0_safe_receiver, $this) + '>map(body -> serialization.deserializeBody(body, ' + emitGetType(tmp0_safe_receiver.r24_1, $this) + ')).orElse(null)';
|
|
564
564
|
}
|
|
565
565
|
// Inline function 'kotlin.contracts.contract' call
|
|
566
566
|
// Inline function 'community.flock.wirespec.emitters.java.JavaEndpointDefinitionEmitter.emitDeserializedParams.<anonymous>' call
|
|
@@ -570,9 +570,9 @@ function emitDeserializedParams_0(_this__u8e3s4, $this) {
|
|
|
570
570
|
function emitSerialized(_this__u8e3s4, $this) {
|
|
571
571
|
var tmp;
|
|
572
572
|
if (!(_this__u8e3s4.u24_1 == null)) {
|
|
573
|
-
tmp = 'serialization.serializeBody(r.body, ' + emitGetType(ensureNotNull(_this__u8e3s4.u24_1).r24_1, $this) + ')';
|
|
573
|
+
tmp = 'java.util.Optional.ofNullable(serialization.serializeBody(r.body, ' + emitGetType(ensureNotNull(_this__u8e3s4.u24_1).r24_1, $this) + '))';
|
|
574
574
|
} else {
|
|
575
|
-
tmp = '
|
|
575
|
+
tmp = 'java.util.Optional.empty()';
|
|
576
576
|
}
|
|
577
577
|
var body = tmp;
|
|
578
578
|
var tmp_0;
|
|
@@ -628,7 +628,7 @@ function emitImports_0(_this__u8e3s4, $this) {
|
|
|
628
628
|
while (tmp0_iterator.h()) {
|
|
629
629
|
var element = tmp0_iterator.i();
|
|
630
630
|
// Inline function 'community.flock.wirespec.emitters.java.JavaEndpointDefinitionEmitter.emitImports.<anonymous>' call
|
|
631
|
-
if (!(_this__u8e3s4.x25().b1() === element.
|
|
631
|
+
if (!(_this__u8e3s4.x25().b1() === element.l29_1)) {
|
|
632
632
|
destination.e(element);
|
|
633
633
|
}
|
|
634
634
|
}
|
|
@@ -638,7 +638,7 @@ function emitImports_0(_this__u8e3s4, $this) {
|
|
|
638
638
|
while (tmp0_iterator_0.h()) {
|
|
639
639
|
var item = tmp0_iterator_0.i();
|
|
640
640
|
// Inline function 'community.flock.wirespec.emitters.java.JavaEndpointDefinitionEmitter.emitImports.<anonymous>' call
|
|
641
|
-
var tmp$ret$3 = 'import ' + $this.
|
|
641
|
+
var tmp$ret$3 = 'import ' + $this.i2a().o26_1 + '.model.' + item.l29_1 + ';';
|
|
642
642
|
destination_0.e(tmp$ret$3);
|
|
643
643
|
}
|
|
644
644
|
var tmp = destination_0;
|
|
@@ -673,9 +673,9 @@ function emitRequestFunctions(_this__u8e3s4, $this, endpoint) {
|
|
|
673
673
|
if (!(_this__u8e3s4.p24_1 == null)) {
|
|
674
674
|
var tmp0_safe_receiver = _this__u8e3s4.p24_1;
|
|
675
675
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.r24_1;
|
|
676
|
-
tmp_11 = 'serialization.serializeBody(request.body(), ' + (tmp1_safe_receiver == null ? null : emitGetType(tmp1_safe_receiver, $this)) + ')';
|
|
676
|
+
tmp_11 = 'java.util.Optional.ofNullable(serialization.serializeBody(request.body(), ' + (tmp1_safe_receiver == null ? null : emitGetType(tmp1_safe_receiver, $this)) + '))';
|
|
677
677
|
} else {
|
|
678
|
-
tmp_11 = '
|
|
678
|
+
tmp_11 = 'java.util.Optional.empty()';
|
|
679
679
|
}
|
|
680
680
|
return trimMargin('\n |' + tmp + 'static Wirespec.RawRequest toRequest(Wirespec.Serializer serialization, Request request) {\n |' + tmp_0 + 'return new Wirespec.RawRequest(\n |' + tmp_1 + 'request.method().name(),\n |' + tmp_2 + 'java.util.List.of(' + tmp_3 + '),\n |' + tmp_4 + tmp_6 + ',\n |' + tmp_7 + tmp_9 + ',\n |' + tmp_10 + tmp_11 + '\n |' + Spacer_instance.s26(3) + ');\n |' + Spacer_instance.s26(2) + '}\n |\n |' + Spacer_instance.s26(2) + 'static Request fromRequest(Wirespec.Deserializer serialization, Wirespec.RawRequest request) {\n |' + Spacer_instance.s26(3) + 'return new Request(' + emitDeserializedParams(_this__u8e3s4, $this, endpoint) + ');\n |' + Spacer_instance.s26(2) + '}\n ');
|
|
681
681
|
}
|
|
@@ -762,7 +762,7 @@ function JavaEndpointDefinitionEmitter$emit$lambda_1(this$0) {
|
|
|
762
762
|
}
|
|
763
763
|
function JavaEndpointDefinitionEmitter$emit$lambda_2(this$0) {
|
|
764
764
|
return function (it) {
|
|
765
|
-
return this$0.
|
|
765
|
+
return this$0.w2a(it);
|
|
766
766
|
};
|
|
767
767
|
}
|
|
768
768
|
function JavaEndpointDefinitionEmitter$emit$lambda_3(this$0) {
|
|
@@ -902,7 +902,7 @@ function sanitizeNegative(_this__u8e3s4, $this) {
|
|
|
902
902
|
return tmp;
|
|
903
903
|
}
|
|
904
904
|
function sanitizeEnum(_this__u8e3s4, $this) {
|
|
905
|
-
return $this.
|
|
905
|
+
return $this.l2a($this.k2a(joinToString(split(sanitizeNegative(_this__u8e3s4, $this), ['-', ', ', '.', ' ', '//']), '_')));
|
|
906
906
|
}
|
|
907
907
|
function JavaEnumDefinitionEmitter$emit$lambda(this$0) {
|
|
908
908
|
return function (it) {
|
|
@@ -913,7 +913,7 @@ function JavaEnumDefinitionEmitter() {
|
|
|
913
913
|
}
|
|
914
914
|
function Companion() {
|
|
915
915
|
Companion_instance_2 = this;
|
|
916
|
-
this.
|
|
916
|
+
this.o2b_1 = setOf(['abstract', 'continue', 'for', 'new', 'switch', 'assert', 'default', 'goto', 'package', 'synchronized', 'boolean', 'do', 'if', 'private', 'this', 'break', 'double', 'implements', 'protected', 'throw', 'byte', 'else', 'import', 'public', 'throws', 'case', 'enum', 'instanceof', 'return', 'transient', 'catch', 'extends', 'int', 'short', 'try', 'char', 'final', 'interface', 'static', 'void', 'class', 'finally', 'long', 'strictfp', 'volatile', 'const', 'float', 'native', 'super', 'while', 'true', 'false']);
|
|
917
917
|
}
|
|
918
918
|
var Companion_instance_2;
|
|
919
919
|
function Companion_getInstance() {
|
|
@@ -930,8 +930,8 @@ function JavaRefinedTypeDefinitionEmitter() {
|
|
|
930
930
|
}
|
|
931
931
|
function JavaShared() {
|
|
932
932
|
JavaShared_instance = this;
|
|
933
|
-
this.
|
|
934
|
-
this.
|
|
933
|
+
this.l2b_1 = 'community.flock.wirespec.java';
|
|
934
|
+
this.m2b_1 = trimMargin('\n |package ' + this.l2b_1 + ';\n |\n |import java.lang.reflect.Type;\n |import java.lang.reflect.ParameterizedType;\n |import java.util.List;\n |import java.util.Map;\n |import java.util.Optional;\n |\n |public interface Wirespec {\n |' + Spacer_instance.toString() + 'interface Enum { String getLabel(); }\n |' + Spacer_instance.toString() + 'interface Endpoint {}\n |' + Spacer_instance.toString() + 'interface Refined<T> { T getValue(); }\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 extends Request<?>, Res extends Response<?>> {\n |' + Spacer_instance.s26(2) + 'Req from(RawRequest request);\n |' + Spacer_instance.s26(2) + 'RawResponse to(Res response);\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'interface ClientEdge<Req extends Request<?>, Res extends Response<?>> {\n |' + Spacer_instance.s26(2) + 'RawRequest to(Req request);\n |' + Spacer_instance.s26(2) + 'Res from(RawResponse response);\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'interface Client<Req extends Request<?>, Res extends Response<?>> {\n |' + Spacer_instance.s26(2) + 'String getPathTemplate();\n |' + Spacer_instance.s26(2) + 'String getMethod();\n |' + Spacer_instance.s26(2) + 'ClientEdge<Req, Res> getClient(Serialization serialization);\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'interface Server<Req extends Request<?>, Res extends Response<?>> {\n |' + Spacer_instance.s26(2) + 'String getPathTemplate();\n |' + Spacer_instance.s26(2) + 'String getMethod();\n |' + Spacer_instance.s26(2) + 'ServerEdge<Req, Res> getServer(Serialization serialization);\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'enum Method { GET, PUT, POST, DELETE, OPTIONS, HEAD, PATCH, TRACE }\n |' + Spacer_instance.toString() + 'interface Request<T> { Path path(); Method method(); Queries queries(); Headers headers(); T body(); interface Headers extends Wirespec.Headers {} }\n |' + Spacer_instance.toString() + 'interface Response<T> { int status(); Headers headers(); T body(); interface Headers extends Wirespec.Headers {} }\n |' + Spacer_instance.toString() + 'interface Serialization extends Serializer, Deserializer {}\n |' + Spacer_instance.toString() + 'interface Serializer extends BodySerializer, PathSerializer, ParamSerializer {}\n |' + Spacer_instance.toString() + 'interface Deserializer extends BodyDeserializer, PathDeserializer, ParamDeserializer {}\n |' + Spacer_instance.toString() + 'interface BodySerialization extends BodySerializer, BodyDeserializer {}\n |' + Spacer_instance.toString() + 'interface BodySerializer { <T> byte[] serializeBody(T t, Type type); }\n |' + Spacer_instance.toString() + 'interface BodyDeserializer { <T> T deserializeBody(byte[] raw, Type type); }\n |' + Spacer_instance.toString() + 'interface PathSerialization extends PathSerializer, PathDeserializer {}\n |' + Spacer_instance.toString() + 'interface PathSerializer { <T> String serializePath(T t, Type type); }\n |' + Spacer_instance.toString() + 'interface PathDeserializer { <T> T deserializePath(String raw, Type type); }\n |' + Spacer_instance.toString() + 'interface ParamSerialization extends ParamSerializer, ParamDeserializer {}\n |' + Spacer_instance.toString() + 'interface ParamSerializer { <T> List<String> serializeParam(T value, Type type); }\n |' + Spacer_instance.toString() + 'interface ParamDeserializer { <T> T deserializeParam(List<String> values, Type type); }\n |' + Spacer_instance.toString() + 'record RawRequest(String method, List<String> path, Map<String, List<String>> queries, Map<String, List<String>> headers, Optional<byte[]> body) {}\n |' + Spacer_instance.toString() + 'record RawResponse(int statusCode, Map<String, List<String>> headers, Optional<byte[]> body) {}\n |' + Spacer_instance.toString() + 'static Type getType(final Class<?> actualTypeArguments, final Class<?> rawType) {\n |' + Spacer_instance.s26(2) + 'if(rawType != null) {\n |' + Spacer_instance.s26(3) + 'return new ParameterizedType() {\n |' + Spacer_instance.s26(4) + 'public Type getRawType() { return rawType; }\n |' + Spacer_instance.s26(4) + 'public Type[] getActualTypeArguments() { return new Class<?>[]{actualTypeArguments}; }\n |' + Spacer_instance.s26(4) + 'public Type getOwnerType() { return null; }\n |' + Spacer_instance.s26(3) + '};\n |' + Spacer_instance.s26(2) + '}\n |' + Spacer_instance.s26(2) + 'else { return actualTypeArguments; }\n |' + Spacer_instance.toString() + '}\n |}\n |\n ');
|
|
935
935
|
}
|
|
936
936
|
protoOf(JavaShared).toString = function () {
|
|
937
937
|
return 'JavaShared';
|
|
@@ -968,7 +968,7 @@ function emitType(_this__u8e3s4, $this) {
|
|
|
968
968
|
tmp = 'Object';
|
|
969
969
|
} else {
|
|
970
970
|
if (_this__u8e3s4 instanceof Custom) {
|
|
971
|
-
tmp = _this__u8e3s4.
|
|
971
|
+
tmp = _this__u8e3s4.l29_1;
|
|
972
972
|
} else {
|
|
973
973
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
974
974
|
tmp = emit_15(_this__u8e3s4, $this);
|
|
@@ -983,14 +983,14 @@ function emitType(_this__u8e3s4, $this) {
|
|
|
983
983
|
return tmp;
|
|
984
984
|
}
|
|
985
985
|
function emit_15(_this__u8e3s4, $this) {
|
|
986
|
-
var t = _this__u8e3s4.
|
|
986
|
+
var t = _this__u8e3s4.p29_1;
|
|
987
987
|
var tmp;
|
|
988
988
|
if (t instanceof String_0) {
|
|
989
989
|
tmp = 'String';
|
|
990
990
|
} else {
|
|
991
991
|
if (t instanceof Integer) {
|
|
992
992
|
var tmp_0;
|
|
993
|
-
switch (t.
|
|
993
|
+
switch (t.u28_1.r2_1) {
|
|
994
994
|
case 0:
|
|
995
995
|
tmp_0 = 'Integer';
|
|
996
996
|
break;
|
|
@@ -1005,7 +1005,7 @@ function emit_15(_this__u8e3s4, $this) {
|
|
|
1005
1005
|
} else {
|
|
1006
1006
|
if (t instanceof Number_0) {
|
|
1007
1007
|
var tmp_1;
|
|
1008
|
-
switch (t.
|
|
1008
|
+
switch (t.x28_1.r2_1) {
|
|
1009
1009
|
case 0:
|
|
1010
1010
|
tmp_1 = 'Float';
|
|
1011
1011
|
break;
|
|
@@ -1050,25 +1050,25 @@ function JavaUnionDefinitionEmitter$emit$lambda(it) {
|
|
|
1050
1050
|
function JavaUnionDefinitionEmitter() {
|
|
1051
1051
|
}
|
|
1052
1052
|
//region block: post-declaration
|
|
1053
|
-
protoOf(JavaEmitter).y25 =
|
|
1053
|
+
protoOf(JavaEmitter).y25 = emit_7;
|
|
1054
1054
|
protoOf(JavaEmitter).w24 = emit_0;
|
|
1055
1055
|
protoOf(JavaEmitter).x24 = emit_1;
|
|
1056
1056
|
protoOf(JavaEmitter).y24 = emit_2;
|
|
1057
1057
|
protoOf(JavaEmitter).z24 = emit_3;
|
|
1058
1058
|
protoOf(JavaEmitter).a25 = emit_4;
|
|
1059
|
-
protoOf(JavaEmitter).l26 =
|
|
1060
|
-
protoOf(JavaEmitter).
|
|
1061
|
-
protoOf(JavaEmitter).
|
|
1059
|
+
protoOf(JavaEmitter).l26 = emit_8;
|
|
1060
|
+
protoOf(JavaEmitter).v2a = emit_9;
|
|
1061
|
+
protoOf(JavaEmitter).w2a = emit_10;
|
|
1062
1062
|
protoOf(JavaEmitter).z25 = emit_5;
|
|
1063
|
-
protoOf(JavaEmitter).k26 =
|
|
1064
|
-
protoOf(JavaEmitter).a26 =
|
|
1065
|
-
protoOf(JavaEmitter).f26 =
|
|
1066
|
-
protoOf(JavaEmitter).
|
|
1067
|
-
protoOf(JavaEmitter).
|
|
1068
|
-
protoOf(JavaEmitter).
|
|
1069
|
-
protoOf(JavaEmitter).
|
|
1070
|
-
protoOf(JavaEmitter).
|
|
1071
|
-
protoOf(JavaEmitter).
|
|
1063
|
+
protoOf(JavaEmitter).k26 = emit_11;
|
|
1064
|
+
protoOf(JavaEmitter).a26 = emit_12;
|
|
1065
|
+
protoOf(JavaEmitter).f26 = emit_6;
|
|
1066
|
+
protoOf(JavaEmitter).n2b = sanitizeSymbol;
|
|
1067
|
+
protoOf(JavaEmitter).k2a = sanitizeFirstIsDigit;
|
|
1068
|
+
protoOf(JavaEmitter).l2a = sanitizeKeywords;
|
|
1069
|
+
protoOf(JavaEmitter).e2b = emitRoot;
|
|
1070
|
+
protoOf(JavaEmitter).d2b = emitRoot$default;
|
|
1071
|
+
protoOf(JavaEmitter).x2a = emitHandleFunction;
|
|
1072
1072
|
protoOf(JavaEmitter).m26 = emitValidator;
|
|
1073
1073
|
//endregion
|
|
1074
1074
|
//region block: exports
|