@flock/wirespec 0.18.4 → 0.18.6

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.
Files changed (33) hide show
  1. package/clikt-clikt-mordant.mjs +39 -39
  2. package/colormath-root-colormath.mjs +406 -406
  3. package/kotlin-kotlin-stdlib.mjs +5 -5
  4. package/kotlin-kotlin-stdlib.mjs.map +1 -1
  5. package/kotlin-openapi-bindings.mjs +4585 -4585
  6. package/kotlin-rgxgen.mjs +1757 -1757
  7. package/kotlinx-io-kotlinx-io-core.mjs +397 -397
  8. package/kotlinx-serialization-kotlinx-serialization-core.mjs +1616 -1616
  9. package/kotlinx-serialization-kotlinx-serialization-json.mjs +1271 -1271
  10. package/mordant-mordant.mjs +1097 -1097
  11. package/package.json +1 -1
  12. package/wirespec-src-compiler-emitters-java.mjs +189 -188
  13. package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
  14. package/wirespec-src-compiler-emitters-kotlin.mjs +166 -166
  15. package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
  16. package/wirespec-src-compiler-emitters-python.mjs +218 -217
  17. package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
  18. package/wirespec-src-compiler-emitters-rust.mjs +303 -292
  19. package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
  20. package/wirespec-src-compiler-emitters-scala.mjs +111 -110
  21. package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
  22. package/wirespec-src-compiler-emitters-typescript.mjs +149 -146
  23. package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
  24. package/wirespec-src-compiler-emitters-wirespec.mjs +25 -25
  25. package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
  26. package/wirespec-src-compiler-ir.mjs +2974 -2934
  27. package/wirespec-src-compiler-ir.mjs.map +1 -1
  28. package/wirespec-src-converter-avro.mjs +475 -475
  29. package/wirespec-src-converter-openapi.mjs +365 -365
  30. package/wirespec-src-plugin-arguments.mjs +115 -115
  31. package/wirespec-src-plugin-cli.mjs +84 -84
  32. package/wirespec-src-plugin-npm.mjs +20 -20
  33. package/wirespec-src-tools-generator.mjs +2 -2
@@ -156,6 +156,7 @@ import {
156
156
  RawExpression2bo7ldfrptjia as RawExpression,
157
157
  TypeDescriptor1hvcpxrtxcqsx as TypeDescriptor,
158
158
  convert2loxpwk8n2r8c as convert_5,
159
+ Custom_init_$Create$2enn7oyj71j1t as Custom_init_$Create$,
159
160
  Function21cuq8qizkin7 as Function,
160
161
  plusd54zq6f7l8fy as plus_3,
161
162
  Struct39wf79cwtn4ty as Struct,
@@ -196,10 +197,10 @@ function emit_6(_this__u8e3s4) {
196
197
  function emitRoot(_this__u8e3s4, void_0) {
197
198
  var tmp;
198
199
  if (_this__u8e3s4 instanceof Dict) {
199
- tmp = this.d1v(_this__u8e3s4.co_1);
200
+ tmp = this.e1v(_this__u8e3s4.co_1);
200
201
  } else {
201
202
  if (_this__u8e3s4 instanceof Iterable) {
202
- tmp = this.d1v(_this__u8e3s4.zn_1);
203
+ tmp = this.e1v(_this__u8e3s4.zn_1);
203
204
  } else {
204
205
  if (_this__u8e3s4 instanceof Unit) {
205
206
  tmp = void_0;
@@ -228,7 +229,7 @@ function emitRoot(_this__u8e3s4, void_0) {
228
229
  }
229
230
  function emitRoot$default(_this__u8e3s4, void_0, $super) {
230
231
  void_0 = void_0 === VOID ? 'void' : void_0;
231
- return $super === VOID ? this.e1v(_this__u8e3s4, void_0) : emitRoot(_this__u8e3s4, void_0);
232
+ return $super === VOID ? this.f1v(_this__u8e3s4, void_0) : emitRoot(_this__u8e3s4, void_0);
232
233
  }
233
234
  function emit_7(_this__u8e3s4) {
234
235
  var tmp;
@@ -271,16 +272,16 @@ function emit_7(_this__u8e3s4) {
271
272
  }
272
273
  initMetadataForInterface(JavaTypeDefinitionEmitter, 'JavaTypeDefinitionEmitter', VOID, VOID, [TypeDefinitionEmitter]);
273
274
  function emit_8(channel) {
274
- return trimMargin('\n |' + emitImports(this, channel) + '\n |\n |@FunctionalInterface\n |public interface ' + this.wq(channel.mo_1) + ' {\n | void invoke(' + emitFullyQualified(this, channel, channel.no_1) + this.d1v(channel.no_1) + ' message);\n |}\n |\n ');
275
+ return trimMargin('\n |' + emitImports(this, channel) + '\n |\n |@FunctionalInterface\n |public interface ' + this.wq(channel.mo_1) + ' {\n | void invoke(' + emitFullyQualified(this, channel, channel.no_1) + this.e1v(channel.no_1) + ' message);\n |}\n |\n ');
275
276
  }
276
277
  initMetadataForInterface(JavaChannelDefinitionEmitter, 'JavaChannelDefinitionEmitter', VOID, VOID, [JavaTypeDefinitionEmitter]);
277
278
  function emit_9(identifier) {
278
279
  var tmp;
279
280
  if (identifier instanceof DefinitionIdentifier) {
280
- tmp = this.o1v(identifier.l1());
281
+ tmp = this.p1v(identifier.l1());
281
282
  } else {
282
283
  if (identifier instanceof FieldIdentifier) {
283
- tmp = this.s1v(this.o1v(identifier.l1()));
284
+ tmp = this.t1v(this.p1v(identifier.l1()));
284
285
  } else {
285
286
  noWhenBranchMatchedException();
286
287
  }
@@ -302,7 +303,7 @@ function sanitizeSymbol(_this__u8e3s4) {
302
303
  destination.x(tmp$ret$0);
303
304
  }
304
305
  var tmp = asSequence(joinToString(destination, ''));
305
- return this.r1v(joinToString_0(filter(tmp, JavaIdentifierEmitter$sanitizeSymbol$lambda), ''));
306
+ return this.s1v(joinToString_0(filter(tmp, JavaIdentifierEmitter$sanitizeSymbol$lambda), ''));
306
307
  }
307
308
  function sanitizeFirstIsDigit(_this__u8e3s4) {
308
309
  var tmp;
@@ -322,15 +323,10 @@ function sanitizeFirstIsDigit(_this__u8e3s4) {
322
323
  return tmp;
323
324
  }
324
325
  function sanitizeKeywords(_this__u8e3s4) {
325
- return Companion_getInstance_0().u1v_1.u1(_this__u8e3s4) ? '_' + _this__u8e3s4 : _this__u8e3s4;
326
+ return Companion_getInstance_0().v1v_1.u1(_this__u8e3s4) ? '_' + _this__u8e3s4 : _this__u8e3s4;
326
327
  }
327
328
  initMetadataForInterface(JavaIdentifierEmitter, 'JavaIdentifierEmitter');
328
- function emit_10(enum_0, module_0) {
329
- var tmp = this.wq(enum_0.gr_1);
330
- return trimMargin('\n |public enum ' + tmp + ' implements Wirespec.Enum {\n |' + spacer(joinToString(enum_0.hr_1, ',\n', VOID, VOID, VOID, VOID, JavaEnumDefinitionEmitter$emit$lambda(this))) + ';\n |' + Spacer_instance.toString() + 'public final String label;\n |' + Spacer_instance.toString() + this.wq(enum_0.gr_1) + '(String label) {\n |' + Spacer_instance.qr(2) + 'this.label = label;\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + '@Override\n |' + Spacer_instance.toString() + 'public String toString() {\n |' + Spacer_instance.qr(2) + 'return label;\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + '@Override\n |' + Spacer_instance.toString() + 'public String label() {\n |' + Spacer_instance.qr(2) + 'return label;\n |' + Spacer_instance.toString() + '}\n |}\n |\n ');
331
- }
332
- initMetadataForInterface(JavaEnumDefinitionEmitter, 'JavaEnumDefinitionEmitter', VOID, VOID, [JavaIdentifierEmitter]);
333
- function emit_11(refined) {
329
+ function emit_10(refined) {
334
330
  return trimMargin('\n |public record ' + this.wq(refined.br_1) + ' (' + this.xp(refined.cr_1) + ' value) implements Wirespec.Refined<' + this.xp(refined.cr_1) + '> {\n |' + Spacer_instance.toString() + '@Override\n |' + Spacer_instance.toString() + 'public String toString() { return value.toString(); }\n |' + Spacer_instance.toString() + 'public boolean validate() {\n |' + Spacer_instance.toString() + Spacer_instance.toString() + this.kr(refined) + '\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + '@Override\n |' + Spacer_instance.toString() + 'public ' + this.xp(refined.cr_1) + ' value() { return value; }\n |}\n |\n ');
335
331
  }
336
332
  function emitValidator(_this__u8e3s4) {
@@ -374,19 +370,14 @@ function emitValidator(_this__u8e3s4) {
374
370
  return tmp;
375
371
  }
376
372
  initMetadataForInterface(JavaRefinedTypeDefinitionEmitter, 'JavaRefinedTypeDefinitionEmitter', VOID, VOID, [JavaTypeDefinitionEmitter]);
377
- function emit_12(union) {
378
- var tmp = this.wq(union.qo_1);
379
- return trimMargin('\n |public sealed interface ' + tmp + ' permits ' + joinToString(union.ro_1, VOID, VOID, VOID, VOID, VOID, JavaUnionDefinitionEmitter$emit$lambda) + ' {}\n |\n ');
380
- }
381
- initMetadataForInterface(JavaUnionDefinitionEmitter, 'JavaUnionDefinitionEmitter', VOID, VOID, [JavaIdentifierEmitter]);
382
- function emit_13(endpoint) {
373
+ function emit_11(endpoint) {
383
374
  var tmp = emitImports_0(this, endpoint);
384
375
  var tmp_0 = this.wq(endpoint.ep_1);
385
376
  var tmp_1 = get_pathParams(endpoint);
386
377
  var tmp_2 = emitObject(this, tmp_1, 'Path', 'Wirespec.Path', JavaEndpointDefinitionEmitter$emit$lambda(this));
387
378
  var tmp_3 = emitObject(this, endpoint.hp_1, 'Queries', 'Wirespec.Queries', JavaEndpointDefinitionEmitter$emit$lambda_0(this));
388
379
  var tmp_4 = emitObject(this, endpoint.ip_1, 'RequestHeaders', 'Wirespec.Request.Headers', JavaEndpointDefinitionEmitter$emit$lambda_1(this));
389
- var tmp_5 = this.p1v(first_0(endpoint.jp_1), endpoint);
380
+ var tmp_5 = this.q1v(first_0(endpoint.jp_1), endpoint);
390
381
  var tmp_6 = Spacer_instance.toString();
391
382
  var tmp_7 = emitStatusInterfaces(this, endpoint);
392
383
  var tmp_8 = emitResponseInterfaces(this, endpoint);
@@ -403,7 +394,7 @@ function emit_13(endpoint) {
403
394
  var tmp_19 = emitFromResponse(this, endpoint);
404
395
  var tmp_20 = Spacer_instance.qr(2);
405
396
  var tmp_21 = Spacer_instance.qr(2);
406
- var tmp_22 = this.t1v(endpoint);
397
+ var tmp_22 = this.u1v(endpoint);
407
398
  var tmp_23 = Spacer_instance.qr(2);
408
399
  var tmp_24 = Spacer_instance.qr(3);
409
400
  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.gp_1, '/', VOID, VOID, VOID, VOID, JavaEndpointDefinitionEmitter$emit$lambda_4) + '"; }\n |' + Spacer_instance.qr(3) + '@Override public String getMethod() { return "' + endpoint.fp_1.toString() + '"; }\n |' + Spacer_instance.qr(3) + '@Override public Wirespec.ServerEdge<Request, Response<?>> getServer(Wirespec.Serialization serialization) {\n |' + Spacer_instance.qr(4) + 'return new Wirespec.ServerEdge<>() {\n |' + Spacer_instance.qr(5) + '@Override public Request from(Wirespec.RawRequest request) { return fromRequest(serialization, request); }\n |' + Spacer_instance.qr(5) + '@Override public Wirespec.RawResponse to(Response<?> response) { return toResponse(serialization, response); }\n |' + Spacer_instance.qr(4) + '};\n |' + Spacer_instance.qr(3) + '}\n |' + Spacer_instance.qr(3) + '@Override public Wirespec.ClientEdge<Request, Response<?>> getClient(Wirespec.Serialization serialization) {\n |' + Spacer_instance.qr(4) + 'return new Wirespec.ClientEdge<>() {\n |' + Spacer_instance.qr(5) + '@Override public Wirespec.RawRequest to(Request request) { return toRequest(serialization, request); }\n |' + Spacer_instance.qr(5) + '@Override public Response<?> from(Wirespec.RawResponse response) { return fromResponse(serialization, response); }\n |' + Spacer_instance.qr(4) + '};\n |' + Spacer_instance.qr(3) + '}\n |' + Spacer_instance.qr(2) + '}\n |' + Spacer_instance.toString() + '}\n |}\n |\n ');
@@ -411,10 +402,10 @@ function emit_13(endpoint) {
411
402
  function emitHandleFunction(endpoint) {
412
403
  return 'java.util.concurrent.CompletableFuture<Response<?>> ' + Companion_instance_1.pq(this.wq(endpoint.ep_1)) + '(Request request);';
413
404
  }
414
- function emit_14(_this__u8e3s4, endpoint) {
405
+ function emit_12(_this__u8e3s4, endpoint) {
415
406
  return trimMargin('\n |' + Spacer_instance.toString() + 'record Request (\n |' + Spacer_instance.qr(2) + 'Path path,\n |' + Spacer_instance.qr(2) + 'Wirespec.Method method,\n |' + Spacer_instance.qr(2) + 'Queries queries,\n |' + Spacer_instance.qr(2) + 'RequestHeaders headers,\n |' + Spacer_instance.qr(2) + emit_16(this, _this__u8e3s4.np_1) + ' body\n |' + Spacer_instance.toString() + ') implements Wirespec.Request<' + emit_16(this, _this__u8e3s4.np_1) + '> {\n |' + Spacer_instance.qr(2) + emitConstructor(this, _this__u8e3s4, endpoint) + '\n |' + Spacer_instance.toString() + '}\n ');
416
407
  }
417
- function emit_15(_this__u8e3s4) {
408
+ function emit_13(_this__u8e3s4) {
418
409
  var tmp = Spacer_instance.toString();
419
410
  var tmp_0 = Companion_instance_1.oq(_this__u8e3s4.qp_1);
420
411
  var tmp_1 = Spacer_instance.qr(2);
@@ -447,7 +438,17 @@ function emit_15(_this__u8e3s4) {
447
438
  return trimMargin('\n |' + tmp + 'record Response' + tmp_0 + '(\n |' + tmp_1 + 'Integer 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, _this__u8e3s4.rp_1, 'Headers', 'Wirespec.Response.Headers', JavaEndpointDefinitionEmitter$emit$lambda_7(this)) + '\n |' + Spacer_instance.toString() + '}\n ');
448
439
  }
449
440
  initMetadataForInterface(JavaEndpointDefinitionEmitter, 'JavaEndpointDefinitionEmitter', VOID, VOID, [JavaTypeDefinitionEmitter]);
450
- initMetadataForClass(JavaEmitter, 'JavaEmitter', JavaEmitter, LanguageEmitter, [JavaEnumDefinitionEmitter, JavaRefinedTypeDefinitionEmitter, JavaIdentifierEmitter, JavaChannelDefinitionEmitter, JavaUnionDefinitionEmitter, JavaEndpointDefinitionEmitter, JavaTypeDefinitionEmitter, LanguageEmitter]);
441
+ function emit_14(union) {
442
+ var tmp = this.wq(union.qo_1);
443
+ return trimMargin('\n |public sealed interface ' + tmp + ' permits ' + joinToString(union.ro_1, VOID, VOID, VOID, VOID, VOID, JavaUnionDefinitionEmitter$emit$lambda) + ' {}\n |\n ');
444
+ }
445
+ initMetadataForInterface(JavaUnionDefinitionEmitter, 'JavaUnionDefinitionEmitter', VOID, VOID, [JavaIdentifierEmitter]);
446
+ function emit_15(enum_0, module_0) {
447
+ var tmp = this.wq(enum_0.gr_1);
448
+ return trimMargin('\n |public enum ' + tmp + ' implements Wirespec.Enum {\n |' + spacer(joinToString(enum_0.hr_1, ',\n', VOID, VOID, VOID, VOID, JavaEnumDefinitionEmitter$emit$lambda(this))) + ';\n |' + Spacer_instance.toString() + 'public final String label;\n |' + Spacer_instance.toString() + this.wq(enum_0.gr_1) + '(String label) {\n |' + Spacer_instance.qr(2) + 'this.label = label;\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + '@Override\n |' + Spacer_instance.toString() + 'public String toString() {\n |' + Spacer_instance.qr(2) + 'return label;\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + '@Override\n |' + Spacer_instance.toString() + 'public String label() {\n |' + Spacer_instance.qr(2) + 'return label;\n |' + Spacer_instance.toString() + '}\n |}\n |\n ');
449
+ }
450
+ initMetadataForInterface(JavaEnumDefinitionEmitter, 'JavaEnumDefinitionEmitter', VOID, VOID, [JavaIdentifierEmitter]);
451
+ initMetadataForClass(JavaEmitter, 'JavaEmitter', JavaEmitter, LanguageEmitter, [JavaChannelDefinitionEmitter, JavaIdentifierEmitter, JavaRefinedTypeDefinitionEmitter, JavaEndpointDefinitionEmitter, JavaUnionDefinitionEmitter, JavaTypeDefinitionEmitter, JavaEnumDefinitionEmitter, LanguageEmitter]);
451
452
  initMetadataForCompanion(Companion);
452
453
  initMetadataForCompanion(Companion_0);
453
454
  initMetadataForClass(JavaIrEmitter, 'JavaIrEmitter', JavaIrEmitter, VOID, [IrEmitter]);
@@ -471,7 +472,7 @@ function emitImports($this, _this__u8e3s4) {
471
472
  var _iterator__ex2g4s_0 = destination.t();
472
473
  while (_iterator__ex2g4s_0.u()) {
473
474
  var item = _iterator__ex2g4s_0.v();
474
- var tmp$ret$3 = 'import ' + $this.c1v().mr_1 + '.model.' + item.ku_1 + ';';
475
+ var tmp$ret$3 = 'import ' + $this.d1v().mr_1 + '.model.' + item.ku_1 + ';';
475
476
  destination_0.x(tmp$ret$3);
476
477
  }
477
478
  var tmp = destination_0;
@@ -480,7 +481,7 @@ function emitImports($this, _this__u8e3s4) {
480
481
  function emitFullyQualified($this, _this__u8e3s4, reference) {
481
482
  var tmp;
482
483
  if (_this__u8e3s4.vq().l1() === reference.l1()) {
483
- tmp = $this.c1v().mr_1 + '.model.';
484
+ tmp = $this.d1v().mr_1 + '.model.';
484
485
  } else {
485
486
  tmp = '';
486
487
  }
@@ -496,42 +497,42 @@ function JavaEmitter(packageName, emitShared) {
496
497
  packageName = packageName === VOID ? Companion_instance.lr('community.flock.wirespec.generated') : packageName;
497
498
  emitShared = emitShared === VOID ? Companion_instance_0.go() : emitShared;
498
499
  LanguageEmitter.call(this);
499
- this.f1v_1 = packageName;
500
- this.g1v_1 = emitShared;
501
- this.h1v_1 = '\nimport community.flock.wirespec.java.Wirespec;\n';
502
- this.i1v_1 = FileExtension_Java_getInstance();
503
- this.j1v_1 = JavaShared_getInstance();
504
- this.k1v_1 = '//';
505
- }
506
- protoOf(JavaEmitter).c1v = function () {
507
- return this.f1v_1;
500
+ this.g1v_1 = packageName;
501
+ this.h1v_1 = emitShared;
502
+ this.i1v_1 = '\nimport community.flock.wirespec.java.Wirespec;\n';
503
+ this.j1v_1 = FileExtension_Java_getInstance();
504
+ this.k1v_1 = JavaShared_getInstance();
505
+ this.l1v_1 = '//';
506
+ }
507
+ protoOf(JavaEmitter).d1v = function () {
508
+ return this.g1v_1;
508
509
  };
509
510
  protoOf(JavaEmitter).eq = function () {
510
- return this.i1v_1;
511
- };
512
- protoOf(JavaEmitter).l1v = function () {
513
511
  return this.j1v_1;
514
512
  };
515
- protoOf(JavaEmitter).fq = function () {
513
+ protoOf(JavaEmitter).m1v = function () {
516
514
  return this.k1v_1;
517
515
  };
516
+ protoOf(JavaEmitter).fq = function () {
517
+ return this.l1v_1;
518
+ };
518
519
  protoOf(JavaEmitter).tq = function (module_0, logger) {
519
520
  // Inline function 'kotlin.let' call
520
521
  var it = protoOf(LanguageEmitter).tq.call(this, module_0, logger);
521
- return this.g1v_1.ho_1 ? NonEmptyList__plus_impl_xqmb9(it, new Emitted(Companion_instance.lr('community.flock.wirespec.java').or() + 'Wirespec', this.l1v().n1v_1)) : it;
522
+ return this.h1v_1.ho_1 ? NonEmptyList__plus_impl_xqmb9(it, new Emitted(Companion_instance.lr('community.flock.wirespec.java').or() + 'Wirespec', this.m1v().o1v_1)) : it;
522
523
  };
523
524
  protoOf(JavaEmitter).uq = function (definition, module_0, logger) {
524
525
  // Inline function 'kotlin.let' call
525
526
  var it = protoOf(LanguageEmitter).uq.call(this, definition, module_0, logger);
526
- var subPackageName = plus(this.c1v(), definition);
527
- var tmp = subPackageName.or() + this.o1v(it.io_1);
527
+ var subPackageName = plus(this.d1v(), definition);
528
+ var tmp = subPackageName.or() + this.p1v(it.io_1);
528
529
  // Inline function 'kotlin.text.trimStart' call
529
- var this_0 = trimMargin('\n |package ' + subPackageName.toString() + ';\n |' + (Companion_instance_1.qq(module_0) ? this.h1v_1 : '') + '\n |' + it.jo_1 + '\n ');
530
+ var this_0 = trimMargin('\n |package ' + subPackageName.toString() + ';\n |' + (Companion_instance_1.qq(module_0) ? this.i1v_1 : '') + '\n |' + it.jo_1 + '\n ');
530
531
  var tmp$ret$0 = toString(trimStart(isCharSequence(this_0) ? this_0 : THROW_CCE()));
531
532
  return new Emitted(tmp, tmp$ret$0);
532
533
  };
533
534
  function emitGetType($this, _this__u8e3s4) {
534
- return 'Wirespec.getType(' + $this.e1v(_this__u8e3s4, 'Void') + '.class, ' + emitGetTypeRaw($this, _this__u8e3s4) + ')';
535
+ return 'Wirespec.getType(' + $this.f1v(_this__u8e3s4, 'Void') + '.class, ' + emitGetTypeRaw($this, _this__u8e3s4) + ')';
535
536
  }
536
537
  function emitGetTypeRaw($this, _this__u8e3s4) {
537
538
  var tmp;
@@ -686,7 +687,7 @@ function emitImports_0($this, _this__u8e3s4) {
686
687
  var _iterator__ex2g4s_0 = destination.t();
687
688
  while (_iterator__ex2g4s_0.u()) {
688
689
  var item = _iterator__ex2g4s_0.v();
689
- var tmp$ret$3 = 'import ' + $this.c1v().mr_1 + '.model.' + item.ku_1 + ';';
690
+ var tmp$ret$3 = 'import ' + $this.d1v().mr_1 + '.model.' + item.ku_1 + ';';
690
691
  destination_0.x(tmp$ret$3);
691
692
  }
692
693
  var tmp = destination_0;
@@ -807,7 +808,7 @@ function JavaEndpointDefinitionEmitter$emit$lambda_1(this$0) {
807
808
  }
808
809
  function JavaEndpointDefinitionEmitter$emit$lambda_2(this$0) {
809
810
  return function (it) {
810
- return this$0.q1v(it);
811
+ return this$0.r1v(it);
811
812
  };
812
813
  }
813
814
  function JavaEndpointDefinitionEmitter$emit$lambda_3(this$0) {
@@ -939,7 +940,7 @@ function sanitizeNegative($this, _this__u8e3s4) {
939
940
  return startsWith(_this__u8e3s4, '-') ? '__' + substring(_this__u8e3s4, 1) : _this__u8e3s4;
940
941
  }
941
942
  function sanitizeEnum($this, _this__u8e3s4) {
942
- return $this.s1v($this.r1v(joinToString(split(sanitizeNegative($this, _this__u8e3s4), ['-', ', ', '.', ' ', '//']), '_')));
943
+ return $this.t1v($this.s1v(joinToString(split(sanitizeNegative($this, _this__u8e3s4), ['-', ', ', '.', ' ', '//']), '_')));
943
944
  }
944
945
  function JavaEnumDefinitionEmitter$emit$lambda(this$0) {
945
946
  return function (it) {
@@ -950,7 +951,7 @@ function JavaEnumDefinitionEmitter() {
950
951
  }
951
952
  function Companion() {
952
953
  Companion_instance_2 = this;
953
- this.u1v_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']);
954
+ this.v1v_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']);
954
955
  }
955
956
  var Companion_instance_2;
956
957
  function Companion_getInstance_0() {
@@ -1014,14 +1015,14 @@ function sanitizeFirstIsDigit_0($this, _this__u8e3s4) {
1014
1015
  return tmp;
1015
1016
  }
1016
1017
  function sanitizeKeywords_0($this, _this__u8e3s4) {
1017
- return Companion_getInstance_1().v1v_1.u1(_this__u8e3s4) ? '_' + _this__u8e3s4 : _this__u8e3s4;
1018
+ return Companion_getInstance_1().w1v_1.u1(_this__u8e3s4) ? '_' + _this__u8e3s4 : _this__u8e3s4;
1018
1019
  }
1019
1020
  function sanitizeEnum_0($this, _this__u8e3s4) {
1020
1021
  return sanitizeKeywords_0($this, sanitizeFirstIsDigit_0($this, joinToString(split(_this__u8e3s4, ['-', ', ', '.', ' ', '//']), '_')));
1021
1022
  }
1022
1023
  function Companion_0() {
1023
1024
  Companion_instance_3 = this;
1024
- this.v1v_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']);
1025
+ this.w1v_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']);
1025
1026
  }
1026
1027
  var Companion_instance_3;
1027
1028
  function Companion_getInstance_1() {
@@ -1033,10 +1034,10 @@ function JavaIrEmitter$sanitizationConfig$lambda(it) {
1033
1034
  return '_' + it;
1034
1035
  }
1035
1036
  function JavaIrEmitter$sanitizationConfig$lambda_0(name) {
1036
- return name.m1h_1.a1() > 1 ? new Name(listOf(name.q1l())) : name;
1037
+ return name.g1h_1.a1() > 1 ? new Name(listOf(name.s1l())) : name;
1037
1038
  }
1038
1039
  function JavaIrEmitter$sanitizationConfig$lambda_1(name) {
1039
- return new Name(listOf(name.q1l()));
1040
+ return new Name(listOf(name.s1l()));
1040
1041
  }
1041
1042
  function JavaIrEmitter$sanitizationConfig$lambda_2(this$0) {
1042
1043
  return function (it) {
@@ -1047,23 +1048,23 @@ function JavaIrEmitter$sanitizationConfig$lambda_3(stmt, tr) {
1047
1048
  var tmp;
1048
1049
  var tmp_0;
1049
1050
  if (stmt instanceof FunctionCall) {
1050
- tmp_0 = stmt.a1m_1.r1h() === 'validate';
1051
+ tmp_0 = stmt.b1m_1.s1h() === 'validate';
1051
1052
  } else {
1052
1053
  tmp_0 = false;
1053
1054
  }
1054
1055
  if (tmp_0) {
1055
- tmp = transformChildren(stmt.e1m(VOID, emptyList()), tr);
1056
+ tmp = transformChildren(stmt.f1m(VOID, emptyList()), tr);
1056
1057
  } else {
1057
1058
  tmp = transformChildren(stmt, tr);
1058
1059
  }
1059
1060
  return tmp;
1060
1061
  }
1061
1062
  function JavaIrEmitter$emitShared$lambda(name) {
1062
- switch (name.r1h()) {
1063
+ switch (name.s1h()) {
1063
1064
  case 'client':
1064
- return Companion_getInstance().l1h('getClient');
1065
+ return Companion_getInstance().f1h('getClient');
1065
1066
  case 'server':
1066
- return Companion_getInstance().l1h('getServer');
1067
+ return Companion_getInstance().f1h('getServer');
1067
1068
  default:
1068
1069
  return null;
1069
1070
  }
@@ -1073,7 +1074,7 @@ function JavaIrEmitter$emitShared$lambda_0($imports) {
1073
1074
  var tmp;
1074
1075
  if (element instanceof File) {
1075
1076
  // Inline function 'kotlin.collections.partition' call
1076
- var this_0 = element.s1m_1;
1077
+ var this_0 = element.t1m_1;
1077
1078
  var first = ArrayList_init_$Create$();
1078
1079
  var second = ArrayList_init_$Create$();
1079
1080
  var _iterator__ex2g4s = this_0.t();
@@ -1088,7 +1089,7 @@ function JavaIrEmitter$emitShared$lambda_0($imports) {
1088
1089
  var _destruct__k2r9zo = new Pair(first, second);
1089
1090
  var packageElements = _destruct__k2r9zo.ne();
1090
1091
  var rest = _destruct__k2r9zo.oe();
1091
- tmp = element.v1m(VOID, plus_1(plus_1(packageElements, $imports), rest));
1092
+ tmp = element.w1m(VOID, plus_1(plus_1(packageElements, $imports), rest));
1092
1093
  } else {
1093
1094
  tmp = element;
1094
1095
  }
@@ -1100,11 +1101,11 @@ function JavaIrEmitter$emitShared$lambda_1($clientServer) {
1100
1101
  return function (element, transformer) {
1101
1102
  var tmp;
1102
1103
  if (element instanceof Namespace) {
1103
- var injected = element.x1m_1.equals(Companion_getInstance().l1h('Wirespec')) ? $clientServer : emptyList();
1104
+ var injected = element.y1m_1.equals(Companion_getInstance().f1h('Wirespec')) ? $clientServer : emptyList();
1104
1105
  var tmp_0;
1105
1106
  // Inline function 'kotlin.collections.isNotEmpty' call
1106
1107
  if (!injected.r()) {
1107
- tmp_0 = withElements(element, plus_1(element.t1m(), injected));
1108
+ tmp_0 = withElements(element, plus_1(element.u1m(), injected));
1108
1109
  } else {
1109
1110
  tmp_0 = element;
1110
1111
  }
@@ -1125,37 +1126,37 @@ function JavaIrEmitter$emit$lambda_0(it) {
1125
1126
  return listOf(function_0('label', VOID, VOID, JavaIrEmitter$emit$lambda$lambda));
1126
1127
  }
1127
1128
  function JavaIrEmitter$emit$lambda$lambda($this$function) {
1128
- $this$function.j1i(String_instance);
1129
- $this$function.i1k(new VariableReference(Companion_getInstance().l1h('label')));
1129
+ $this$function.k1i(String_instance);
1130
+ $this$function.j1k(new VariableReference(Companion_getInstance().f1h('label')));
1130
1131
  return Unit_instance;
1131
1132
  }
1132
1133
  function JavaIrEmitter(packageName, emitShared) {
1133
1134
  Companion_getInstance_1();
1134
1135
  packageName = packageName === VOID ? Companion_instance.lr('community.flock.wirespec.generated') : packageName;
1135
1136
  emitShared = emitShared === VOID ? Companion_instance_0.go() : emitShared;
1136
- this.w1v_1 = packageName;
1137
- this.x1v_1 = emitShared;
1138
- this.y1v_1 = JavaGenerator_instance;
1139
- this.z1v_1 = FileExtension_Java_getInstance();
1140
- this.a1w_1 = listOf(import_0('community.flock.wirespec.java', 'Wirespec'));
1137
+ this.x1v_1 = packageName;
1138
+ this.y1v_1 = emitShared;
1139
+ this.z1v_1 = JavaGenerator_instance;
1140
+ this.a1w_1 = FileExtension_Java_getInstance();
1141
+ this.b1w_1 = listOf(import_0('community.flock.wirespec.java', 'Wirespec'));
1141
1142
  var tmp = this;
1142
- var tmp_0 = Companion_getInstance_1().v1v_1;
1143
+ var tmp_0 = Companion_getInstance_1().w1v_1;
1143
1144
  var tmp_1 = JavaIrEmitter$sanitizationConfig$lambda;
1144
1145
  var tmp_2 = JavaIrEmitter$sanitizationConfig$lambda_0;
1145
1146
  var tmp_3 = JavaIrEmitter$sanitizationConfig$lambda_1;
1146
1147
  var tmp_4 = JavaIrEmitter$sanitizationConfig$lambda_2(this);
1147
- tmp.b1w_1 = new SanitizationConfig(tmp_0, tmp_1, tmp_2, tmp_3, tmp_4, JavaIrEmitter$sanitizationConfig$lambda_3);
1148
+ tmp.c1w_1 = new SanitizationConfig(tmp_0, tmp_1, tmp_2, tmp_3, tmp_4, JavaIrEmitter$sanitizationConfig$lambda_3);
1148
1149
  }
1149
- protoOf(JavaIrEmitter).c1v = function () {
1150
- return this.w1v_1;
1150
+ protoOf(JavaIrEmitter).d1v = function () {
1151
+ return this.x1v_1;
1151
1152
  };
1152
- protoOf(JavaIrEmitter).j1u = function () {
1153
- return this.y1v_1;
1153
+ protoOf(JavaIrEmitter).k1u = function () {
1154
+ return this.z1v_1;
1154
1155
  };
1155
1156
  protoOf(JavaIrEmitter).eq = function () {
1156
- return this.z1v_1;
1157
+ return this.a1w_1;
1157
1158
  };
1158
- protoOf(JavaIrEmitter).m1u = function () {
1159
+ protoOf(JavaIrEmitter).n1u = function () {
1159
1160
  var packageName = Companion_instance.lr('community.flock.wirespec.java');
1160
1161
  var imports = listOf_0([import_0('java.lang.reflect', 'Type'), import_0('java.lang.reflect', 'ParameterizedType'), import_0('java.util', 'List'), import_0('java.util', 'Map')]);
1161
1162
  // Inline function 'kotlin.collections.map' call
@@ -1175,28 +1176,28 @@ protoOf(JavaIrEmitter).m1u = function () {
1175
1176
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
1176
1177
  var tmp = scope;
1177
1178
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1178
- var this_2 = scope.w1t_1;
1179
+ var this_2 = scope.x1t_1;
1179
1180
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1180
1181
  // Inline function 'kotlin.apply' call
1181
1182
  var this_3 = new TransformerBuilder();
1182
1183
  this_3.c1h(JavaIrEmitter$emitShared$lambda_0(imports));
1183
1184
  var tmp$ret$5 = this_3.d1h();
1184
- tmp.w1t_1 = transform(this_2, tmp$ret$5);
1185
+ tmp.x1t_1 = transform(this_2, tmp$ret$5);
1185
1186
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.injectAfter' call
1186
1187
  var tmp_0 = scope;
1187
1188
  // Inline function 'community.flock.wirespec.ir.core.injectAfter' call
1188
1189
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1189
- var this_4 = scope.w1t_1;
1190
+ var this_4 = scope.x1t_1;
1190
1191
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1191
1192
  // Inline function 'kotlin.apply' call
1192
1193
  var this_5 = new TransformerBuilder();
1193
1194
  this_5.c1h(JavaIrEmitter$emitShared$lambda_1(clientServer));
1194
1195
  var tmp$ret$10 = this_5.d1h();
1195
- tmp_0.w1t_1 = transform(this_4, tmp$ret$10);
1196
- var tmp_1 = scope.w1t_1;
1196
+ tmp_0.x1t_1 = transform(this_4, tmp$ret$10);
1197
+ var tmp_1 = scope.x1t_1;
1197
1198
  var wirespecShared = isInterface(tmp_1, Element) ? tmp_1 : THROW_CCE();
1198
1199
  var tmp_2;
1199
- if (this.x1v_1.ho_1) {
1200
+ if (this.y1v_1.ho_1) {
1200
1201
  tmp_2 = wirespecShared;
1201
1202
  } else {
1202
1203
  tmp_2 = null;
@@ -1205,9 +1206,9 @@ protoOf(JavaIrEmitter).m1u = function () {
1205
1206
  };
1206
1207
  protoOf(JavaIrEmitter).uq = function (definition, module_0, logger) {
1207
1208
  var file = emit_0.call(this, definition, module_0, logger);
1208
- var tmp = file.v1m(Companion_getInstance().l1h(sanitizeSymbol_0(this, file.r1m_1.w1l())));
1209
+ var tmp = file.w1m(Companion_getInstance().f1h(sanitizeSymbol_0(this, file.s1m_1.h1h())));
1209
1210
  // Inline function 'kotlin.takeIf' call
1210
- var this_0 = this.a1w_1;
1211
+ var this_0 = this.b1w_1;
1211
1212
  var tmp_0;
1212
1213
  if (Companion_instance_1.qq(module_0)) {
1213
1214
  tmp_0 = this_0;
@@ -1215,26 +1216,26 @@ protoOf(JavaIrEmitter).uq = function (definition, module_0, logger) {
1215
1216
  tmp_0 = null;
1216
1217
  }
1217
1218
  var tmp$ret$1 = tmp_0;
1218
- return placeInPackage(prependImports(tmp, tmp$ret$1), this.c1v(), definition);
1219
+ return placeInPackage(prependImports(tmp, tmp$ret$1), this.d1v(), definition);
1219
1220
  };
1220
1221
  protoOf(JavaIrEmitter).up = function (type, module_0) {
1221
- return sanitizeNames(convertWithValidation(type, module_0), this.b1w_1);
1222
+ return sanitizeNames(convertWithValidation(type, module_0), this.c1w_1);
1222
1223
  };
1223
1224
  protoOf(JavaIrEmitter).ir = function (enum_0, module_0) {
1224
1225
  var tmp = convert_0(enum_0);
1225
1226
  var tmp_0 = JavaIrEmitter$emit$lambda(this);
1226
- return sanitizeNames(injectEnumLabelField(tmp, tmp_0, JavaIrEmitter$emit$lambda_0), this.b1w_1);
1227
+ return sanitizeNames(injectEnumLabelField(tmp, tmp_0, JavaIrEmitter$emit$lambda_0), this.c1w_1);
1227
1228
  };
1228
1229
  protoOf(JavaIrEmitter).yq = function (union) {
1229
- return sanitizeNames(convert_1(union), this.b1w_1);
1230
+ return sanitizeNames(convert_1(union), this.c1w_1);
1230
1231
  };
1231
1232
  protoOf(JavaIrEmitter).dr = function (refined) {
1232
- return sanitizeNames(applyRefinedStructShape(convert_2(refined), refined), this.b1w_1);
1233
+ return sanitizeNames(applyRefinedStructShape(convert_2(refined), refined), this.c1w_1);
1233
1234
  };
1234
1235
  protoOf(JavaIrEmitter).jr = function (endpoint) {
1235
- var tmp = sanitizeNames(transformTypeDescriptors(injectHandleFunction(convert_3(endpoint), endpoint)), this.b1w_1);
1236
+ var tmp = sanitizeNames(transformTypeDescriptors(injectHandleFunction(convert_3(endpoint), endpoint)), this.c1w_1);
1236
1237
  // Inline function 'kotlin.takeIf' call
1237
- var this_0 = buildModelImports(endpoint, this.c1v());
1238
+ var this_0 = buildModelImports(endpoint, this.d1v());
1238
1239
  var tmp_0;
1239
1240
  // Inline function 'kotlin.collections.isNotEmpty' call
1240
1241
  if (!this_0.r()) {
@@ -1248,22 +1249,22 @@ protoOf(JavaIrEmitter).jr = function (endpoint) {
1248
1249
  protoOf(JavaIrEmitter).xq = function (channel) {
1249
1250
  var tmp;
1250
1251
  if (channel.mo_1.l1() === channel.no_1.l1()) {
1251
- tmp = this.c1v().mr_1 + '.model.';
1252
+ tmp = this.d1v().mr_1 + '.model.';
1252
1253
  } else {
1253
1254
  tmp = '';
1254
1255
  }
1255
1256
  var fullyQualifiedPrefix = tmp;
1256
- return applyFunctionalInterface(sanitizeNames(convert_4(channel), this.b1w_1), fullyQualifiedPrefix);
1257
+ return applyFunctionalInterface(sanitizeNames(convert_4(channel), this.c1w_1), fullyQualifiedPrefix);
1257
1258
  };
1258
- protoOf(JavaIrEmitter).o1u = function (endpoint) {
1259
- var imports = buildModelImports(endpoint, this.c1v());
1260
- var endpointImport = import_0(this.c1v().mr_1 + '.endpoint', endpoint.ep_1.l1());
1259
+ protoOf(JavaIrEmitter).p1u = function (endpoint) {
1260
+ var imports = buildModelImports(endpoint, this.d1v());
1261
+ var endpointImport = import_0(this.d1v().mr_1 + '.endpoint', endpoint.ep_1.l1());
1261
1262
  var endpointName = endpoint.ep_1.l1();
1262
- var file = wrapAsyncReturnInThenApply(transformTypeDescriptors(sanitizeNames(emitEndpointClient.call(this, endpoint), this.b1w_1)), endpointName);
1263
- var subPackageName = plus_0(this.c1v(), 'client');
1264
- return new File(Companion_getInstance().l1h(subPackageName.or() + sanitizeSymbol_0(this, file.r1m_1.w1l())), plus_1(plus_1(plus_1(plus_1(listOf(new Package(subPackageName.mr_1)), this.a1w_1), imports), listOf(endpointImport)), file.s1m_1));
1263
+ var file = wrapAsyncReturnInThenApply(transformTypeDescriptors(sanitizeNames(emitEndpointClient.call(this, endpoint), this.c1w_1)), endpointName);
1264
+ var subPackageName = plus_0(this.d1v(), 'client');
1265
+ return new File(Companion_getInstance().f1h(subPackageName.or() + sanitizeSymbol_0(this, file.s1m_1.h1h())), plus_1(plus_1(plus_1(plus_1(listOf(new Package(subPackageName.mr_1)), this.b1w_1), imports), listOf(endpointImport)), file.t1m_1));
1265
1266
  };
1266
- protoOf(JavaIrEmitter).n1u = function (endpoints, logger) {
1267
+ protoOf(JavaIrEmitter).o1u = function (endpoints, logger) {
1267
1268
  // Inline function 'kotlin.collections.flatMap' call
1268
1269
  // Inline function 'kotlin.collections.flatMapTo' call
1269
1270
  var destination = ArrayList_init_$Create$();
@@ -1323,7 +1324,7 @@ protoOf(JavaIrEmitter).n1u = function (endpoints, logger) {
1323
1324
  var _iterator__ex2g4s_3 = destination_0.t();
1324
1325
  while (_iterator__ex2g4s_3.u()) {
1325
1326
  var item = _iterator__ex2g4s_3.v();
1326
- var tmp$ret$10 = import_0(this.c1v().mr_1 + '.model', item.ku_1);
1327
+ var tmp$ret$10 = import_0(this.d1v().mr_1 + '.model', item.ku_1);
1327
1328
  destination_1.x(tmp$ret$10);
1328
1329
  }
1329
1330
  var imports = destination_1;
@@ -1333,7 +1334,7 @@ protoOf(JavaIrEmitter).n1u = function (endpoints, logger) {
1333
1334
  var _iterator__ex2g4s_4 = endpoints.t();
1334
1335
  while (_iterator__ex2g4s_4.u()) {
1335
1336
  var item_0 = _iterator__ex2g4s_4.v();
1336
- var tmp$ret$13 = import_0(this.c1v().mr_1 + '.endpoint', item_0.ep_1.l1());
1337
+ var tmp$ret$13 = import_0(this.d1v().mr_1 + '.endpoint', item_0.ep_1.l1());
1337
1338
  destination_2.x(tmp$ret$13);
1338
1339
  }
1339
1340
  var endpointImports = destination_2;
@@ -1343,19 +1344,19 @@ protoOf(JavaIrEmitter).n1u = function (endpoints, logger) {
1343
1344
  var _iterator__ex2g4s_5 = endpoints.t();
1344
1345
  while (_iterator__ex2g4s_5.u()) {
1345
1346
  var item_1 = _iterator__ex2g4s_5.v();
1346
- var tmp$ret$16 = import_0(this.c1v().mr_1 + '.client', item_1.ep_1.l1() + 'Client');
1347
+ var tmp$ret$16 = import_0(this.d1v().mr_1 + '.client', item_1.ep_1.l1() + 'Client');
1347
1348
  destination_3.x(tmp$ret$16);
1348
1349
  }
1349
1350
  var clientImports = destination_3;
1350
1351
  var allImports = plus_1(plus_1(imports, endpointImports), clientImports);
1351
- var file = sanitizeNames(emitClient.call(this, endpoints, logger), this.b1w_1);
1352
- return new File(Companion_getInstance().l1h(this.c1v().or() + sanitizeSymbol_0(this, file.r1m_1.w1l())), plus_1(plus_1(plus_1(listOf(new Package(this.c1v().mr_1)), this.a1w_1), allImports), file.s1m_1));
1352
+ var file = sanitizeNames(emitClient.call(this, endpoints, logger), this.c1w_1);
1353
+ return new File(Companion_getInstance().f1h(this.d1v().or() + sanitizeSymbol_0(this, file.s1m_1.h1h())), plus_1(plus_1(plus_1(listOf(new Package(this.d1v().mr_1)), this.b1w_1), allImports), file.t1m_1));
1353
1354
  };
1354
1355
  function transformTypeDescriptors(_this__u8e3s4) {
1355
1356
  // Inline function 'community.flock.wirespec.ir.core.transform' call
1356
1357
  var scope = new TransformScope(_this__u8e3s4);
1357
- scope.f1u(transformTypeDescriptors$lambda);
1358
- var tmp = scope.w1t_1;
1358
+ scope.g1u(transformTypeDescriptors$lambda);
1359
+ var tmp = scope.x1t_1;
1359
1360
  return isInterface(tmp, Element) ? tmp : THROW_CCE();
1360
1361
  }
1361
1362
  function applyRefinedStructShape(_this__u8e3s4, refined) {
@@ -1364,14 +1365,14 @@ function applyRefinedStructShape(_this__u8e3s4, refined) {
1364
1365
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
1365
1366
  var tmp = scope;
1366
1367
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1367
- var this_0 = scope.w1t_1;
1368
+ var this_0 = scope.x1t_1;
1368
1369
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1369
1370
  // Inline function 'kotlin.apply' call
1370
1371
  var this_1 = new TransformerBuilder();
1371
1372
  this_1.c1h(applyRefinedStructShape$lambda(refined));
1372
1373
  var tmp$ret$2 = this_1.d1h();
1373
- tmp.w1t_1 = transform(this_0, tmp$ret$2);
1374
- var tmp_0 = scope.w1t_1;
1374
+ tmp.x1t_1 = transform(this_0, tmp$ret$2);
1375
+ var tmp_0 = scope.x1t_1;
1375
1376
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1376
1377
  }
1377
1378
  function injectHandleFunction(_this__u8e3s4, endpoint) {
@@ -1381,14 +1382,14 @@ function injectHandleFunction(_this__u8e3s4, endpoint) {
1381
1382
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
1382
1383
  var tmp = scope;
1383
1384
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1384
- var this_0 = scope.w1t_1;
1385
+ var this_0 = scope.x1t_1;
1385
1386
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1386
1387
  // Inline function 'kotlin.apply' call
1387
1388
  var this_1 = new TransformerBuilder();
1388
1389
  this_1.c1h(injectHandleFunction$lambda(handlersStruct));
1389
1390
  var tmp$ret$2 = this_1.d1h();
1390
- tmp.w1t_1 = transform(this_0, tmp$ret$2);
1391
- var tmp_0 = scope.w1t_1;
1391
+ tmp.x1t_1 = transform(this_0, tmp$ret$2);
1392
+ var tmp_0 = scope.x1t_1;
1392
1393
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1393
1394
  }
1394
1395
  function buildModelImports(_this__u8e3s4, packageName) {
@@ -1409,7 +1410,7 @@ function buildModelImports(_this__u8e3s4, packageName) {
1409
1410
  var _iterator__ex2g4s_0 = destination.t();
1410
1411
  while (_iterator__ex2g4s_0.u()) {
1411
1412
  var item = _iterator__ex2g4s_0.v();
1412
- var tmp$ret$3 = import_0(packageName.mr_1 + '.model', item.ku_1);
1413
+ var tmp$ret$3 = import_0(packageName.mr_1 + '.model', Companion_getInstance().f1h(item.ku_1).h1h());
1413
1414
  destination_0.x(tmp$ret$3);
1414
1415
  }
1415
1416
  return destination_0;
@@ -1420,24 +1421,24 @@ function applyFunctionalInterface(_this__u8e3s4, fullyQualifiedPrefix) {
1420
1421
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
1421
1422
  var tmp = scope;
1422
1423
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1423
- var this_0 = scope.w1t_1;
1424
+ var this_0 = scope.x1t_1;
1424
1425
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1425
1426
  // Inline function 'kotlin.apply' call
1426
1427
  var this_1 = new TransformerBuilder();
1427
1428
  this_1.c1h(applyFunctionalInterface$lambda(fullyQualifiedPrefix));
1428
1429
  var tmp$ret$2 = this_1.d1h();
1429
- tmp.w1t_1 = transform(this_0, tmp$ret$2);
1430
+ tmp.x1t_1 = transform(this_0, tmp$ret$2);
1430
1431
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
1431
1432
  var tmp_0 = scope;
1432
1433
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1433
- var this_2 = scope.w1t_1;
1434
+ var this_2 = scope.x1t_1;
1434
1435
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1435
1436
  // Inline function 'kotlin.apply' call
1436
1437
  var this_3 = new TransformerBuilder();
1437
1438
  this_3.c1h(applyFunctionalInterface$lambda_0);
1438
1439
  var tmp$ret$7 = this_3.d1h();
1439
- tmp_0.w1t_1 = transform(this_2, tmp$ret$7);
1440
- var tmp_1 = scope.w1t_1;
1440
+ tmp_0.x1t_1 = transform(this_2, tmp$ret$7);
1441
+ var tmp_1 = scope.x1t_1;
1441
1442
  return isInterface(tmp_1, Element) ? tmp_1 : THROW_CCE();
1442
1443
  }
1443
1444
  function wrapAsyncReturnInThenApply(_this__u8e3s4, endpointName) {
@@ -1446,26 +1447,26 @@ function wrapAsyncReturnInThenApply(_this__u8e3s4, endpointName) {
1446
1447
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
1447
1448
  var tmp = scope;
1448
1449
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1449
- var this_0 = scope.w1t_1;
1450
+ var this_0 = scope.x1t_1;
1450
1451
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1451
1452
  // Inline function 'kotlin.apply' call
1452
1453
  var this_1 = new TransformerBuilder();
1453
1454
  this_1.c1h(wrapAsyncReturnInThenApply$lambda(endpointName));
1454
1455
  var tmp$ret$2 = this_1.d1h();
1455
- tmp.w1t_1 = transform(this_0, tmp$ret$2);
1456
- var tmp_0 = scope.w1t_1;
1456
+ tmp.x1t_1 = transform(this_0, tmp$ret$2);
1457
+ var tmp_0 = scope.x1t_1;
1457
1458
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1458
1459
  }
1459
1460
  function findRoot(_this__u8e3s4) {
1460
1461
  var tmp;
1461
1462
  if (_this__u8e3s4 instanceof Nullable) {
1462
- tmp = findRoot(_this__u8e3s4.n1h_1);
1463
+ tmp = findRoot(_this__u8e3s4.o1h_1);
1463
1464
  } else {
1464
1465
  if (_this__u8e3s4 instanceof Array_0) {
1465
- tmp = findRoot(_this__u8e3s4.o1h_1);
1466
+ tmp = findRoot(_this__u8e3s4.p1h_1);
1466
1467
  } else {
1467
1468
  if (_this__u8e3s4 instanceof Dict_0) {
1468
- tmp = findRoot(_this__u8e3s4.j1m_1);
1469
+ tmp = findRoot(_this__u8e3s4.k1m_1);
1469
1470
  } else {
1470
1471
  tmp = _this__u8e3s4;
1471
1472
  }
@@ -1494,7 +1495,7 @@ function toJavaName(_this__u8e3s4) {
1494
1495
  var tmp;
1495
1496
  if (_this__u8e3s4 instanceof Integer_0) {
1496
1497
  var tmp_0;
1497
- switch (_this__u8e3s4.f1m_1.b3_1) {
1498
+ switch (_this__u8e3s4.g1m_1.b3_1) {
1498
1499
  case 0:
1499
1500
  tmp_0 = 'Integer';
1500
1501
  break;
@@ -1509,7 +1510,7 @@ function toJavaName(_this__u8e3s4) {
1509
1510
  } else {
1510
1511
  if (_this__u8e3s4 instanceof Number_1) {
1511
1512
  var tmp_1;
1512
- switch (_this__u8e3s4.g1m_1.b3_1) {
1513
+ switch (_this__u8e3s4.h1m_1.b3_1) {
1513
1514
  case 0:
1514
1515
  tmp_1 = 'Float';
1515
1516
  break;
@@ -1538,7 +1539,7 @@ function toJavaName(_this__u8e3s4) {
1538
1539
  tmp = 'Void';
1539
1540
  } else {
1540
1541
  if (_this__u8e3s4 instanceof Custom_0) {
1541
- tmp = _this__u8e3s4.p1h_1;
1542
+ tmp = _this__u8e3s4.q1h_1.h1h();
1542
1543
  } else {
1543
1544
  tmp = 'Object';
1544
1545
  }
@@ -1562,8 +1563,8 @@ function withFullyQualifiedPrefix(_this__u8e3s4, prefix) {
1562
1563
  // Inline function 'community.flock.wirespec.ir.core.transform' call
1563
1564
  var scope = new TransformScope(_this__u8e3s4);
1564
1565
  var tmp_0 = withFullyQualifiedPrefix$lambda;
1565
- scope.z1t(tmp_0, withFullyQualifiedPrefix$lambda_0(prefix));
1566
- var tmp_1 = scope.w1t_1;
1566
+ scope.a1u(tmp_0, withFullyQualifiedPrefix$lambda_0(prefix));
1567
+ var tmp_1 = scope.x1t_1;
1567
1568
  tmp = isInterface(tmp_1, Element) ? tmp_1 : THROW_CCE();
1568
1569
  } else {
1569
1570
  tmp = _this__u8e3s4;
@@ -1573,8 +1574,8 @@ function withFullyQualifiedPrefix(_this__u8e3s4, prefix) {
1573
1574
  function transformTypeDescriptors$lambda(stmt, tr) {
1574
1575
  var tmp;
1575
1576
  if (stmt instanceof TypeDescriptor) {
1576
- var rootType = findRoot(stmt.g1o_1);
1577
- var containerStr = rawContainerClass(stmt.g1o_1);
1577
+ var rootType = findRoot(stmt.h1o_1);
1578
+ var containerStr = rawContainerClass(stmt.h1o_1);
1578
1579
  var rootStr = toJavaName(rootType) + '.class';
1579
1580
  var tmp_0;
1580
1581
  if (containerStr == null) {
@@ -1593,8 +1594,8 @@ function transformTypeDescriptors$lambda(stmt, tr) {
1593
1594
  }
1594
1595
  function applyRefinedStructShape$lambda$lambda($refined) {
1595
1596
  return function ($this$function) {
1596
- $this$function.j1i(convert_5($refined.cr_1));
1597
- $this$function.i1k(new VariableReference(Companion_getInstance().l1h('value')));
1597
+ $this$function.k1i(convert_5($refined.cr_1));
1598
+ $this$function.j1k(new VariableReference(Companion_getInstance().f1h('value')));
1598
1599
  return Unit_instance;
1599
1600
  };
1600
1601
  }
@@ -1602,20 +1603,20 @@ function applyRefinedStructShape$lambda($refined) {
1602
1603
  return function (element, transformer) {
1603
1604
  var tmp;
1604
1605
  if (element instanceof Struct) {
1605
- var tmp_0 = listOf(new Custom_0('Wirespec.Refined'));
1606
+ var tmp_0 = listOf(Custom_init_$Create$('Wirespec.Refined'));
1606
1607
  // Inline function 'kotlin.collections.map' call
1607
- var this_0 = element.g1n_1;
1608
+ var this_0 = element.h1n_1;
1608
1609
  // Inline function 'kotlin.collections.mapTo' call
1609
1610
  var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
1610
1611
  var _iterator__ex2g4s = this_0.t();
1611
1612
  while (_iterator__ex2g4s.u()) {
1612
1613
  var item = _iterator__ex2g4s.v();
1613
1614
  var tmp0_safe_receiver = item instanceof Function ? item : null;
1614
- var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.a1k(VOID, VOID, VOID, VOID, VOID, VOID, VOID, true);
1615
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.b1k(VOID, VOID, VOID, VOID, VOID, VOID, VOID, true);
1615
1616
  var tmp$ret$0 = tmp1_elvis_lhs == null ? item : tmp1_elvis_lhs;
1616
1617
  destination.x(tmp$ret$0);
1617
1618
  }
1618
- var tmp_1 = element.i1n(VOID, VOID, VOID, tmp_0, destination);
1619
+ var tmp_1 = element.j1n(VOID, VOID, VOID, tmp_0, destination);
1619
1620
  tmp = plus_3(tmp_1, function_0('value', VOID, true, applyRefinedStructShape$lambda$lambda($refined)));
1620
1621
  } else {
1621
1622
  tmp = element;
@@ -1632,7 +1633,7 @@ function injectHandleFunction$lambda$lambda($handlersStruct) {
1632
1633
  var tmp_0;
1633
1634
  // Inline function 'kotlin.collections.isNotEmpty' call
1634
1635
  if (!injected.r()) {
1635
- tmp_0 = withElements(element, plus_1(element.t1m(), injected));
1636
+ tmp_0 = withElements(element, plus_1(element.u1m(), injected));
1636
1637
  } else {
1637
1638
  tmp_0 = element;
1638
1639
  }
@@ -1649,21 +1650,21 @@ function injectHandleFunction$lambda($handlersStruct) {
1649
1650
  var tmp;
1650
1651
  if (element instanceof Interface) {
1651
1652
  var tmp_0;
1652
- if (element.j1n_1.equals(Companion_getInstance().l1h('Handler'))) {
1653
+ if (element.k1n_1.equals(Companion_getInstance().f1h('Handler'))) {
1653
1654
  // Inline function 'community.flock.wirespec.ir.core.transform' call
1654
1655
  var scope = new TransformScope(element);
1655
1656
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.injectAfter' call
1656
1657
  var tmp_1 = scope;
1657
1658
  // Inline function 'community.flock.wirespec.ir.core.injectAfter' call
1658
1659
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1659
- var this_0 = scope.w1t_1;
1660
+ var this_0 = scope.x1t_1;
1660
1661
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1661
1662
  // Inline function 'kotlin.apply' call
1662
1663
  var this_1 = new TransformerBuilder();
1663
1664
  this_1.c1h(injectHandleFunction$lambda$lambda($handlersStruct));
1664
1665
  var tmp$ret$2 = this_1.d1h();
1665
- tmp_1.w1t_1 = transform(this_0, tmp$ret$2);
1666
- var tmp_2 = scope.w1t_1;
1666
+ tmp_1.x1t_1 = transform(this_0, tmp$ret$2);
1667
+ var tmp_2 = scope.x1t_1;
1667
1668
  tmp_0 = isInterface(tmp_2, Element) ? tmp_2 : THROW_CCE();
1668
1669
  } else {
1669
1670
  tmp_0 = element;
@@ -1693,7 +1694,7 @@ function applyFunctionalInterface$lambda_0(element, transformer) {
1693
1694
  if (element instanceof File) {
1694
1695
  // Inline function 'community.flock.wirespec.ir.core.findElement' call
1695
1696
  // Inline function 'kotlin.collections.filterIsInstance' call
1696
- var tmp0 = element.t1m();
1697
+ var tmp0 = element.u1m();
1697
1698
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
1698
1699
  var destination = ArrayList_init_$Create$();
1699
1700
  var _iterator__ex2g4s = tmp0.t();
@@ -1705,7 +1706,7 @@ function applyFunctionalInterface$lambda_0(element, transformer) {
1705
1706
  }
1706
1707
  var tmp$ret$2 = firstOrNull_0(destination);
1707
1708
  var interfaceElement = ensureNotNull(tmp$ret$2);
1708
- tmp = element.v1m(VOID, listOf_0([new RawElement('@FunctionalInterface\n'), interfaceElement]));
1709
+ tmp = element.w1m(VOID, listOf_0([new RawElement('@FunctionalInterface\n'), interfaceElement]));
1709
1710
  } else {
1710
1711
  tmp = element;
1711
1712
  }
@@ -1718,11 +1719,11 @@ function wrapAsyncReturnInThenApply$lambda($endpointName) {
1718
1719
  if (element instanceof Function) {
1719
1720
  var tmp$ret$0;
1720
1721
  $l$block_1: {
1721
- if (!element.x1j_1 || element.w1j_1.a1() < 2) {
1722
+ if (!element.y1j_1 || element.x1j_1.a1() < 2) {
1722
1723
  tmp$ret$0 = element;
1723
1724
  break $l$block_1;
1724
1725
  }
1725
- var tmp_0 = element.w1j_1.f1(element.w1j_1.a1() - 2 | 0);
1726
+ var tmp_0 = element.x1j_1.f1(element.x1j_1.a1() - 2 | 0);
1726
1727
  var tmp0_elvis_lhs = tmp_0 instanceof Assignment ? tmp_0 : null;
1727
1728
  var tmp_1;
1728
1729
  if (tmp0_elvis_lhs == null) {
@@ -1732,16 +1733,16 @@ function wrapAsyncReturnInThenApply$lambda($endpointName) {
1732
1733
  tmp_1 = tmp0_elvis_lhs;
1733
1734
  }
1734
1735
  var transportAssign = tmp_1;
1735
- var tmp_2 = last(element.w1j_1);
1736
+ var tmp_2 = last(element.x1j_1);
1736
1737
  if (!(tmp_2 instanceof ReturnStatement)) {
1737
1738
  tmp$ret$0 = element;
1738
1739
  break $l$block_1;
1739
1740
  }
1740
- var tmp_3 = dropLast(element.w1j_1, 2);
1741
- var tmp1_name = Companion_getInstance().l1h('thenApply');
1742
- var tmp2_receiver = transportAssign.j1o_1;
1743
- var tmp3_arguments = mapOf(to(Companion_getInstance().l1h('mapper'), new RawExpression('rawResponse -> ' + $endpointName + '.fromRawResponse(serialization(), rawResponse)')));
1744
- tmp$ret$0 = element.a1k(VOID, VOID, VOID, VOID, plus_2(tmp_3, new ReturnStatement(new FunctionCall(tmp2_receiver, VOID, tmp1_name, tmp3_arguments))));
1741
+ var tmp_3 = dropLast(element.x1j_1, 2);
1742
+ var tmp1_name = Companion_getInstance().f1h('thenApply');
1743
+ var tmp2_receiver = transportAssign.k1o_1;
1744
+ var tmp3_arguments = mapOf(to(Companion_getInstance().f1h('mapper'), new RawExpression('rawResponse -> ' + $endpointName + '.fromRawResponse(serialization(), rawResponse)')));
1745
+ tmp$ret$0 = element.b1k(VOID, VOID, VOID, VOID, plus_2(tmp_3, new ReturnStatement(new FunctionCall(tmp2_receiver, VOID, tmp1_name, tmp3_arguments))));
1745
1746
  }
1746
1747
  tmp = tmp$ret$0;
1747
1748
  } else {
@@ -1766,50 +1767,50 @@ function buildHandlersStruct$lambda(it) {
1766
1767
  }
1767
1768
  function buildHandlersStruct$lambda$lambda($pathTemplate) {
1768
1769
  return function ($this$function) {
1769
- $this$function.j1i(String_instance);
1770
- $this$function.i1k($this$function.z1s($pathTemplate));
1770
+ $this$function.k1i(String_instance);
1771
+ $this$function.j1k($this$function.a1t($pathTemplate));
1771
1772
  return Unit_instance;
1772
1773
  };
1773
1774
  }
1774
1775
  function buildHandlersStruct$lambda$lambda_0($this_buildHandlersStruct) {
1775
1776
  return function ($this$function) {
1776
- $this$function.j1i(String_instance);
1777
- $this$function.i1k($this$function.z1s($this_buildHandlersStruct.fp_1.a3_1));
1777
+ $this$function.k1i(String_instance);
1778
+ $this$function.j1k($this$function.a1t($this_buildHandlersStruct.fp_1.a3_1));
1778
1779
  return Unit_instance;
1779
1780
  };
1780
1781
  }
1781
1782
  function buildHandlersStruct$lambda$lambda_1($this$function) {
1782
- $this$function.j1i($this$function.s1h('Wirespec.ServerEdge', [$this$function.s1h('Request', []), $this$function.s1h('Response', [Wildcard_instance])]));
1783
- $this$function.k1i('serialization', $this$function.s1h('Wirespec.Serialization', []));
1784
- $this$function.i1k(new RawExpression('new Wirespec.ServerEdge<>() {\n@Override public Request from(Wirespec.RawRequest request) {\n return fromRawRequest(serialization, request);\n}\n@Override public Wirespec.RawResponse to(Response<?> response) {\n return toRawResponse(serialization, response);\n}\n}'));
1783
+ $this$function.k1i($this$function.t1h('Wirespec.ServerEdge', [$this$function.t1h('Request', []), $this$function.t1h('Response', [Wildcard_instance])]));
1784
+ $this$function.l1i('serialization', $this$function.t1h('Wirespec.Serialization', []));
1785
+ $this$function.j1k(new RawExpression('new Wirespec.ServerEdge<>() {\n@Override public Request from(Wirespec.RawRequest request) {\n return fromRawRequest(serialization, request);\n}\n@Override public Wirespec.RawResponse to(Response<?> response) {\n return toRawResponse(serialization, response);\n}\n}'));
1785
1786
  return Unit_instance;
1786
1787
  }
1787
1788
  function buildHandlersStruct$lambda$lambda_2($this$function) {
1788
- $this$function.j1i($this$function.s1h('Wirespec.ClientEdge', [$this$function.s1h('Request', []), $this$function.s1h('Response', [Wildcard_instance])]));
1789
- $this$function.k1i('serialization', $this$function.s1h('Wirespec.Serialization', []));
1790
- $this$function.i1k(new RawExpression('new Wirespec.ClientEdge<>() {\n@Override public Wirespec.RawRequest to(Request request) {\n return toRawRequest(serialization, request);\n}\n@Override public Response<?> from(Wirespec.RawResponse response) {\n return fromRawResponse(serialization, response);\n}\n}'));
1789
+ $this$function.k1i($this$function.t1h('Wirespec.ClientEdge', [$this$function.t1h('Request', []), $this$function.t1h('Response', [Wildcard_instance])]));
1790
+ $this$function.l1i('serialization', $this$function.t1h('Wirespec.Serialization', []));
1791
+ $this$function.j1k(new RawExpression('new Wirespec.ClientEdge<>() {\n@Override public Wirespec.RawRequest to(Request request) {\n return toRawRequest(serialization, request);\n}\n@Override public Response<?> from(Wirespec.RawResponse response) {\n return fromRawResponse(serialization, response);\n}\n}'));
1791
1792
  return Unit_instance;
1792
1793
  }
1793
1794
  function buildHandlersStruct$lambda_0($pathTemplate, $this_buildHandlersStruct) {
1794
1795
  return function ($this$struct) {
1795
- $this$struct.j1k($this$struct.s1h('Wirespec.Server', [$this$struct.s1h('Request', []), $this$struct.s1h('Response', [Wildcard_instance])]));
1796
- $this$struct.j1k($this$struct.s1h('Wirespec.Client', [$this$struct.s1h('Request', []), $this$struct.s1h('Response', [Wildcard_instance])]));
1797
- $this$struct.a1i('getPathTemplate', VOID, true, buildHandlersStruct$lambda$lambda($pathTemplate));
1798
- $this$struct.a1i('getMethod', VOID, true, buildHandlersStruct$lambda$lambda_0($this_buildHandlersStruct));
1799
- $this$struct.a1i('getServer', VOID, true, buildHandlersStruct$lambda$lambda_1);
1800
- $this$struct.a1i('getClient', VOID, true, buildHandlersStruct$lambda$lambda_2);
1796
+ $this$struct.k1k($this$struct.t1h('Wirespec.Server', [$this$struct.t1h('Request', []), $this$struct.t1h('Response', [Wildcard_instance])]));
1797
+ $this$struct.k1k($this$struct.t1h('Wirespec.Client', [$this$struct.t1h('Request', []), $this$struct.t1h('Response', [Wildcard_instance])]));
1798
+ $this$struct.b1i('getPathTemplate', VOID, true, buildHandlersStruct$lambda$lambda($pathTemplate));
1799
+ $this$struct.b1i('getMethod', VOID, true, buildHandlersStruct$lambda$lambda_0($this_buildHandlersStruct));
1800
+ $this$struct.b1i('getServer', VOID, true, buildHandlersStruct$lambda$lambda_1);
1801
+ $this$struct.b1i('getClient', VOID, true, buildHandlersStruct$lambda$lambda_2);
1801
1802
  return Unit_instance;
1802
1803
  };
1803
1804
  }
1804
1805
  function withFullyQualifiedPrefix$lambda(it) {
1805
- return it.t1o_1.equals(Companion_getInstance().l1h('message'));
1806
+ return it.u1o_1.equals(Companion_getInstance().f1h('message'));
1806
1807
  }
1807
1808
  function withFullyQualifiedPrefix$lambda_0($prefix) {
1808
1809
  return function (param) {
1809
- var t = param.u1o_1;
1810
+ var t = param.v1o_1;
1810
1811
  var tmp;
1811
1812
  if (t instanceof Custom_0) {
1812
- tmp = param.w1o(VOID, t.m1m($prefix + t.p1h_1));
1813
+ tmp = param.x1o(VOID, t.n1m(Companion_getInstance().f1h($prefix + t.q1h_1.h1h())));
1813
1814
  } else {
1814
1815
  tmp = param;
1815
1816
  }
@@ -1820,8 +1821,8 @@ function JavaRefinedTypeDefinitionEmitter() {
1820
1821
  }
1821
1822
  function JavaShared() {
1822
1823
  JavaShared_instance = this;
1823
- this.m1v_1 = 'community.flock.wirespec.java';
1824
- this.n1v_1 = trimMargin('\n |package ' + this.m1v_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 label(); }\n |' + Spacer_instance.toString() + 'interface Endpoint {}\n |' + Spacer_instance.toString() + 'interface Refined<T> { T value(); }\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.qr(2) + 'Req from(RawRequest request);\n |' + Spacer_instance.qr(2) + 'RawResponse to(Res response);\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'interface ClientEdge<Req extends Request<?>, Res extends Response<?>> {\n |' + Spacer_instance.qr(2) + 'RawRequest to(Req request);\n |' + Spacer_instance.qr(2) + 'Res from(RawResponse response);\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'interface Client<Req extends Request<?>, Res extends Response<?>> {\n |' + Spacer_instance.qr(2) + 'String getPathTemplate();\n |' + Spacer_instance.qr(2) + 'String getMethod();\n |' + Spacer_instance.qr(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.qr(2) + 'String getPathTemplate();\n |' + Spacer_instance.qr(2) + 'String getMethod();\n |' + Spacer_instance.qr(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> { Integer 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.qr(2) + 'if(rawType != null) {\n |' + Spacer_instance.qr(3) + 'return new ParameterizedType() {\n |' + Spacer_instance.qr(4) + 'public Type getRawType() { return rawType; }\n |' + Spacer_instance.qr(4) + 'public Type[] getActualTypeArguments() { return new Class<?>[]{actualTypeArguments}; }\n |' + Spacer_instance.qr(4) + 'public Type getOwnerType() { return null; }\n |' + Spacer_instance.qr(3) + '};\n |' + Spacer_instance.qr(2) + '}\n |' + Spacer_instance.qr(2) + 'else { return actualTypeArguments; }\n |' + Spacer_instance.toString() + '}\n |}\n |\n ');
1824
+ this.n1v_1 = 'community.flock.wirespec.java';
1825
+ this.o1v_1 = trimMargin('\n |package ' + this.n1v_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 label(); }\n |' + Spacer_instance.toString() + 'interface Endpoint {}\n |' + Spacer_instance.toString() + 'interface Refined<T> { T value(); }\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.qr(2) + 'Req from(RawRequest request);\n |' + Spacer_instance.qr(2) + 'RawResponse to(Res response);\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'interface ClientEdge<Req extends Request<?>, Res extends Response<?>> {\n |' + Spacer_instance.qr(2) + 'RawRequest to(Req request);\n |' + Spacer_instance.qr(2) + 'Res from(RawResponse response);\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'interface Client<Req extends Request<?>, Res extends Response<?>> {\n |' + Spacer_instance.qr(2) + 'String getPathTemplate();\n |' + Spacer_instance.qr(2) + 'String getMethod();\n |' + Spacer_instance.qr(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.qr(2) + 'String getPathTemplate();\n |' + Spacer_instance.qr(2) + 'String getMethod();\n |' + Spacer_instance.qr(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> { Integer 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.qr(2) + 'if(rawType != null) {\n |' + Spacer_instance.qr(3) + 'return new ParameterizedType() {\n |' + Spacer_instance.qr(4) + 'public Type getRawType() { return rawType; }\n |' + Spacer_instance.qr(4) + 'public Type[] getActualTypeArguments() { return new Class<?>[]{actualTypeArguments}; }\n |' + Spacer_instance.qr(4) + 'public Type getOwnerType() { return null; }\n |' + Spacer_instance.qr(3) + '};\n |' + Spacer_instance.qr(2) + '}\n |' + Spacer_instance.qr(2) + 'else { return actualTypeArguments; }\n |' + Spacer_instance.toString() + '}\n |}\n |\n ');
1825
1826
  }
1826
1827
  protoOf(JavaShared).toString = function () {
1827
1828
  return 'JavaShared';
@@ -1945,22 +1946,22 @@ protoOf(JavaEmitter).vp = emit_4;
1945
1946
  protoOf(JavaEmitter).wp = emit_5;
1946
1947
  protoOf(JavaEmitter).xp = emit_6;
1947
1948
  protoOf(JavaEmitter).yp = emit_7;
1948
- protoOf(JavaEmitter).jr = emit_13;
1949
- protoOf(JavaEmitter).p1v = emit_14;
1950
- protoOf(JavaEmitter).q1v = emit_15;
1949
+ protoOf(JavaEmitter).jr = emit_11;
1950
+ protoOf(JavaEmitter).q1v = emit_12;
1951
+ protoOf(JavaEmitter).r1v = emit_13;
1951
1952
  protoOf(JavaEmitter).xq = emit_8;
1952
- protoOf(JavaEmitter).ir = emit_10;
1953
- protoOf(JavaEmitter).yq = emit_12;
1954
- protoOf(JavaEmitter).dr = emit_11;
1955
- protoOf(JavaEmitter).o1v = sanitizeSymbol;
1956
- protoOf(JavaEmitter).r1v = sanitizeFirstIsDigit;
1957
- protoOf(JavaEmitter).s1v = sanitizeKeywords;
1958
- protoOf(JavaEmitter).e1v = emitRoot;
1959
- protoOf(JavaEmitter).d1v = emitRoot$default;
1960
- protoOf(JavaEmitter).t1v = emitHandleFunction;
1953
+ protoOf(JavaEmitter).ir = emit_15;
1954
+ protoOf(JavaEmitter).yq = emit_14;
1955
+ protoOf(JavaEmitter).dr = emit_10;
1956
+ protoOf(JavaEmitter).p1v = sanitizeSymbol;
1957
+ protoOf(JavaEmitter).s1v = sanitizeFirstIsDigit;
1958
+ protoOf(JavaEmitter).t1v = sanitizeKeywords;
1959
+ protoOf(JavaEmitter).f1v = emitRoot;
1960
+ protoOf(JavaEmitter).e1v = emitRoot$default;
1961
+ protoOf(JavaEmitter).u1v = emitHandleFunction;
1961
1962
  protoOf(JavaEmitter).kr = emitValidator;
1962
1963
  protoOf(JavaIrEmitter).on = emit_1;
1963
- protoOf(JavaIrEmitter).l1u = emit_2;
1964
+ protoOf(JavaIrEmitter).m1u = emit_2;
1964
1965
  //endregion
1965
1966
  //region block: exports
1966
1967
  export {