@flock/wirespec 0.17.18 → 0.17.20

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.
@@ -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.b2b(_this__u8e3s4.e23_1);
118
+ tmp = this.d2b(_this__u8e3s4.e23_1);
119
119
  } else {
120
120
  if (_this__u8e3s4 instanceof Iterable) {
121
- tmp = this.b2b(_this__u8e3s4.b23_1);
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.c2b(_this__u8e3s4, void_0) : emitRoot(_this__u8e3s4, void_0);
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.o28_1;
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.p28_1;
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,79 +194,17 @@ 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.b2b(channel.p23_1) + ' message);\n |}\n |\n ');
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(identifier) {
201
- var tmp;
202
- if (identifier instanceof DefinitionIdentifier) {
203
- tmp = this.l2b(identifier.b1());
204
- } else {
205
- if (identifier instanceof FieldIdentifier) {
206
- tmp = this.j2a(this.l2b(identifier.b1()));
207
- } else {
208
- noWhenBranchMatchedException();
209
- }
210
- }
211
- return tmp;
212
- }
213
- function sanitizeSymbol(_this__u8e3s4) {
214
- // Inline function 'kotlin.collections.mapIndexed' call
215
- var this_0 = split(_this__u8e3s4, ['.', ' ', '-']);
216
- // Inline function 'kotlin.collections.mapIndexedTo' call
217
- var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
218
- var index = 0;
219
- var tmp0_iterator = this_0.g();
220
- while (tmp0_iterator.h()) {
221
- var item = tmp0_iterator.i();
222
- // Inline function 'community.flock.wirespec.emitters.java.JavaIdentifierEmitter.sanitizeSymbol.<anonymous>' call
223
- var tmp1 = index;
224
- index = tmp1 + 1 | 0;
225
- var tmp$ret$0 = checkIndexOverflow(tmp1) > 0 ? Companion_instance_1.q25(item) : item;
226
- destination.e(tmp$ret$0);
227
- }
228
- var tmp = asSequence(joinToString(destination, ''));
229
- return this.i2a(joinToString_0(filter(tmp, JavaIdentifierEmitter$sanitizeSymbol$lambda), ''));
230
- }
231
- function sanitizeFirstIsDigit(_this__u8e3s4) {
232
- var tmp;
233
- var tmp0_safe_receiver = firstOrNull(_this__u8e3s4);
234
- var tmp_0;
235
- var tmp_1 = tmp0_safe_receiver;
236
- if ((tmp_1 == null ? null : new Char(tmp_1)) == null) {
237
- tmp_0 = null;
238
- } else {
239
- tmp_0 = isDigit(tmp0_safe_receiver);
240
- }
241
- if (tmp_0 === true) {
242
- tmp = '_' + _this__u8e3s4;
243
- } else {
244
- tmp = _this__u8e3s4;
245
- }
246
- return tmp;
247
- }
248
- function sanitizeKeywords(_this__u8e3s4) {
249
- return Companion_getInstance().m2b_1.o1(_this__u8e3s4) ? '_' + _this__u8e3s4 : _this__u8e3s4;
250
- }
251
- initMetadataForInterface(JavaIdentifierEmitter, 'JavaIdentifierEmitter');
252
- function emit_7(enum_0, module_0) {
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) {
200
+ function emit_6(endpoint) {
263
201
  var tmp = emitImports_0(endpoint, this);
264
202
  var tmp_0 = this.y25(endpoint.g24_1);
265
203
  var tmp_1 = get_pathParams(endpoint);
266
204
  var tmp_2 = emitObject(tmp_1, this, 'Path', 'Wirespec.Path', JavaEndpointDefinitionEmitter$emit$lambda(this));
267
205
  var tmp_3 = emitObject(endpoint.j24_1, this, 'Queries', 'Wirespec.Queries', JavaEndpointDefinitionEmitter$emit$lambda_0(this));
268
206
  var tmp_4 = emitObject(endpoint.k24_1, this, 'RequestHeaders', 'Wirespec.Request.Headers', JavaEndpointDefinitionEmitter$emit$lambda_1(this));
269
- var tmp_5 = this.t2a(first_0(endpoint.l24_1), endpoint);
207
+ var tmp_5 = this.v2a(first_0(endpoint.l24_1), endpoint);
270
208
  var tmp_6 = Spacer_instance.toString();
271
209
  var tmp_7 = emitStatusInterfaces(endpoint, this);
272
210
  var tmp_8 = emitResponseInterfaces(endpoint, this);
@@ -283,7 +221,7 @@ function emit_9(endpoint) {
283
221
  var tmp_19 = emitFromResponse(endpoint, this);
284
222
  var tmp_20 = Spacer_instance.s26(2);
285
223
  var tmp_21 = Spacer_instance.s26(2);
286
- var tmp_22 = this.v2a(endpoint);
224
+ var tmp_22 = this.x2a(endpoint);
287
225
  var tmp_23 = Spacer_instance.s26(2);
288
226
  var tmp_24 = Spacer_instance.s26(3);
289
227
  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 +229,10 @@ function emit_9(endpoint) {
291
229
  function emitHandleFunction(endpoint) {
292
230
  return 'java.util.concurrent.CompletableFuture<Response<?>> ' + Companion_instance_1.r25(this.y25(endpoint.g24_1)) + '(Request request);';
293
231
  }
294
- function emit_10(_this__u8e3s4, endpoint) {
232
+ function emit_7(_this__u8e3s4, endpoint) {
295
233
  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
234
  }
297
- function emit_11(_this__u8e3s4) {
235
+ function emit_8(_this__u8e3s4) {
298
236
  var tmp = Spacer_instance.toString();
299
237
  var tmp_0 = Companion_instance_1.q25(_this__u8e3s4.s24_1);
300
238
  var tmp_1 = Spacer_instance.s26(2);
@@ -331,25 +269,77 @@ function emit_11(_this__u8e3s4) {
331
269
  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
270
  }
333
271
  initMetadataForInterface(JavaEndpointDefinitionEmitter, 'JavaEndpointDefinitionEmitter', VOID, VOID, [JavaTypeDefinitionEmitter]);
334
- function emit_12(refined) {
272
+ function emit_9(identifier) {
273
+ var tmp;
274
+ if (identifier instanceof DefinitionIdentifier) {
275
+ tmp = this.n2b(identifier.b1());
276
+ } else {
277
+ if (identifier instanceof FieldIdentifier) {
278
+ tmp = this.l2a(this.n2b(identifier.b1()));
279
+ } else {
280
+ noWhenBranchMatchedException();
281
+ }
282
+ }
283
+ return tmp;
284
+ }
285
+ function sanitizeSymbol(_this__u8e3s4) {
286
+ // Inline function 'kotlin.collections.mapIndexed' call
287
+ var this_0 = split(_this__u8e3s4, ['.', ' ', '-']);
288
+ // Inline function 'kotlin.collections.mapIndexedTo' call
289
+ var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
290
+ var index = 0;
291
+ var tmp0_iterator = this_0.g();
292
+ while (tmp0_iterator.h()) {
293
+ var item = tmp0_iterator.i();
294
+ // Inline function 'community.flock.wirespec.emitters.java.JavaIdentifierEmitter.sanitizeSymbol.<anonymous>' call
295
+ var tmp1 = index;
296
+ index = tmp1 + 1 | 0;
297
+ var tmp$ret$0 = checkIndexOverflow(tmp1) > 0 ? Companion_instance_1.q25(item) : item;
298
+ destination.e(tmp$ret$0);
299
+ }
300
+ var tmp = asSequence(joinToString(destination, ''));
301
+ return this.k2a(joinToString_0(filter(tmp, JavaIdentifierEmitter$sanitizeSymbol$lambda), ''));
302
+ }
303
+ function sanitizeFirstIsDigit(_this__u8e3s4) {
304
+ var tmp;
305
+ var tmp0_safe_receiver = firstOrNull(_this__u8e3s4);
306
+ var tmp_0;
307
+ var tmp_1 = tmp0_safe_receiver;
308
+ if ((tmp_1 == null ? null : new Char(tmp_1)) == null) {
309
+ tmp_0 = null;
310
+ } else {
311
+ tmp_0 = isDigit(tmp0_safe_receiver);
312
+ }
313
+ if (tmp_0 === true) {
314
+ tmp = '_' + _this__u8e3s4;
315
+ } else {
316
+ tmp = _this__u8e3s4;
317
+ }
318
+ return tmp;
319
+ }
320
+ function sanitizeKeywords(_this__u8e3s4) {
321
+ return Companion_getInstance().o2b_1.o1(_this__u8e3s4) ? '_' + _this__u8e3s4 : _this__u8e3s4;
322
+ }
323
+ initMetadataForInterface(JavaIdentifierEmitter, 'JavaIdentifierEmitter');
324
+ function emit_10(refined) {
335
325
  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 ');
336
326
  }
337
327
  function emitValidator(_this__u8e3s4) {
338
328
  var defaultReturn = 'return true;';
339
- var type = _this__u8e3s4.e26_1.n29_1;
329
+ var type = _this__u8e3s4.e26_1.p29_1;
340
330
  var tmp;
341
331
  if (type instanceof Integer) {
342
- var tmp0_safe_receiver = type.t28_1;
332
+ var tmp0_safe_receiver = type.v28_1;
343
333
  var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : this.a25(tmp0_safe_receiver);
344
334
  tmp = tmp1_elvis_lhs == null ? defaultReturn : tmp1_elvis_lhs;
345
335
  } else {
346
336
  if (type instanceof Number_0) {
347
- var tmp2_safe_receiver = type.w28_1;
337
+ var tmp2_safe_receiver = type.y28_1;
348
338
  var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : this.a25(tmp2_safe_receiver);
349
339
  tmp = tmp3_elvis_lhs == null ? defaultReturn : tmp3_elvis_lhs;
350
340
  } else {
351
341
  if (type instanceof String_0) {
352
- var tmp4_safe_receiver = type.q28_1;
342
+ var tmp4_safe_receiver = type.s28_1;
353
343
  var tmp_0;
354
344
  var tmp_1 = tmp4_safe_receiver;
355
345
  if ((tmp_1 == null ? null : new RegExp_0(tmp_1)) == null) {
@@ -375,7 +365,17 @@ function emitValidator(_this__u8e3s4) {
375
365
  return tmp;
376
366
  }
377
367
  initMetadataForInterface(JavaRefinedTypeDefinitionEmitter, 'JavaRefinedTypeDefinitionEmitter', VOID, VOID, [JavaTypeDefinitionEmitter]);
378
- initMetadataForClass(JavaEmitter, 'JavaEmitter', JavaEmitter, LanguageEmitter, [JavaEnumDefinitionEmitter, JavaUnionDefinitionEmitter, JavaEndpointDefinitionEmitter, JavaIdentifierEmitter, JavaTypeDefinitionEmitter, JavaChannelDefinitionEmitter, JavaRefinedTypeDefinitionEmitter, LanguageEmitter]);
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 ');
371
+ }
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
+ }
377
+ initMetadataForInterface(JavaUnionDefinitionEmitter, 'JavaUnionDefinitionEmitter', VOID, VOID, [JavaIdentifierEmitter]);
378
+ initMetadataForClass(JavaEmitter, 'JavaEmitter', JavaEmitter, LanguageEmitter, [JavaEndpointDefinitionEmitter, JavaIdentifierEmitter, JavaChannelDefinitionEmitter, JavaTypeDefinitionEmitter, JavaRefinedTypeDefinitionEmitter, 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.j29_1)) {
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.g2a().o26_1 + '.model.' + item.j29_1 + ';';
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.g2a().o26_1 + '.model.';
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.d2b_1 = packageName;
428
- this.e2b_1 = emitShared;
429
- this.f2b_1 = '\nimport community.flock.wirespec.java.Wirespec;\n';
430
- this.g2b_1 = FileExtension_Java_getInstance();
431
- this.h2b_1 = JavaShared_getInstance();
432
- this.i2b_1 = '//';
433
- }
434
- protoOf(JavaEmitter).g2a = function () {
435
- return this.d2b_1;
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.g2b_1;
438
+ return this.i2b_1;
439
439
  };
440
- protoOf(JavaEmitter).q2a = function () {
441
- return this.h2b_1;
440
+ protoOf(JavaEmitter).s2a = function () {
441
+ return this.j2b_1;
442
442
  };
443
443
  protoOf(JavaEmitter).h25 = function () {
444
- return this.i2b_1;
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.e2b_1.j23_1 ? it.vk(new Emitted(Companion_instance.n26('community.flock.wirespec.java').q26() + 'Wirespec', this.q2a().k2b_1)) : it;
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.g2a(), definition);
459
- var tmp = subPackageName.q26() + this.l2b(it.k23_1);
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.f2b_1 : '') + '\n |' + it.l23_1 + '\n ');
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.c2b(_this__u8e3s4, 'Void') + '.class, ' + emitGetTypeRaw(_this__u8e3s4, $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) + 'serialization.deserializeBody(request.body(), ' + emitGetType(tmp0_safe_receiver.r24_1, $this) + ')';
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) + 'serialization.deserializeBody(response.body(), ' + emitGetType(tmp0_safe_receiver.r24_1, $this) + ')';
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 = 'null';
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.j29_1)) {
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.g2a().o26_1 + '.model.' + item.j29_1 + ';';
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 = 'null';
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.u2a(it);
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.j2a($this.i2a(joinToString(split(sanitizeNegative(_this__u8e3s4, $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.m2b_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']);
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.j2b_1 = 'community.flock.wirespec.java';
934
- this.k2b_1 = trimMargin('\n |package ' + this.j2b_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 |\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, byte[] body) {} \n |' + Spacer_instance.toString() + 'record RawResponse(int statusCode, Map<String, List<String>> headers, 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 ');
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.j29_1;
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.n29_1;
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.s28_1.r2_1) {
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.v28_1.r2_1) {
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 = emit_6;
1053
+ protoOf(JavaEmitter).y25 = emit_9;
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 = emit_9;
1060
- protoOf(JavaEmitter).t2a = emit_10;
1061
- protoOf(JavaEmitter).u2a = emit_11;
1059
+ protoOf(JavaEmitter).l26 = emit_6;
1060
+ protoOf(JavaEmitter).v2a = emit_7;
1061
+ protoOf(JavaEmitter).w2a = emit_8;
1062
1062
  protoOf(JavaEmitter).z25 = emit_5;
1063
- protoOf(JavaEmitter).k26 = emit_7;
1064
- protoOf(JavaEmitter).a26 = emit_8;
1065
- protoOf(JavaEmitter).f26 = emit_12;
1066
- protoOf(JavaEmitter).l2b = sanitizeSymbol;
1067
- protoOf(JavaEmitter).i2a = sanitizeFirstIsDigit;
1068
- protoOf(JavaEmitter).j2a = sanitizeKeywords;
1069
- protoOf(JavaEmitter).c2b = emitRoot;
1070
- protoOf(JavaEmitter).b2b = emitRoot$default;
1071
- protoOf(JavaEmitter).v2a = emitHandleFunction;
1063
+ protoOf(JavaEmitter).k26 = emit_11;
1064
+ protoOf(JavaEmitter).a26 = emit_12;
1065
+ protoOf(JavaEmitter).f26 = emit_10;
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