@flock/wirespec 0.14.25 → 0.14.26

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.
@@ -131,7 +131,7 @@ initMetadataForInterface(FieldIdentifier_0, 'FieldIdentifier', VOID, VOID, [Wire
131
131
  initMetadataForObject(WirespecField, 'WirespecField', VOID, VOID, [FieldIdentifier_0]);
132
132
  initMetadataForCompanion(Companion);
133
133
  function notYetImplemented() {
134
- return this.m26() + ' TODO("Not yet implemented")\n';
134
+ return this.l26() + ' TODO("Not yet implemented")\n';
135
135
  }
136
136
  initMetadataForInterface(NotYetImplemented, 'NotYetImplemented');
137
137
  initMetadataForClass(Emitter, 'Emitter', VOID, VOID, [NotYetImplemented]);
@@ -743,11 +743,25 @@ function emitRequestFunctions(_this__u8e3s4, $this, endpoint) {
743
743
  var tmp_9 = tmp_8;
744
744
  var tmp_10 = Spacer_instance.l25(4);
745
745
  var tmp0_safe_receiver = _this__u8e3s4.m25_1;
746
- var tmp_11 = $this.p25(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.o25_1, 'Void');
747
- var tmp1_safe_receiver = _this__u8e3s4.m25_1;
748
- var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.o25_1;
749
- var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : _get_isIterable__qavhhr(tmp2_safe_receiver, $this);
750
- return trimMargin('\n |' + tmp + 'static Wirespec.RawRequest toRequest(Wirespec.Serializer<String> 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 + 'serialization.serialize(request.getBody(), Wirespec.getType(' + tmp_11 + '.class, ' + (tmp3_elvis_lhs == null ? false : tmp3_elvis_lhs) + '))\n |' + Spacer_instance.l25(3) + ');\n |' + Spacer_instance.l25(2) + '}\n |\n |' + Spacer_instance.l25(2) + 'static Request fromRequest(Wirespec.Deserializer<String> serialization, Wirespec.RawRequest request) {\n |' + Spacer_instance.l25(3) + 'return new Request(' + emitDeserializedParams(_this__u8e3s4, $this, endpoint) + ');\n |' + Spacer_instance.l25(2) + '}\n ');
746
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.o25_1;
747
+ return trimMargin('\n |' + tmp + 'static Wirespec.RawRequest toRequest(Wirespec.Serializer<String> 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 + 'serialization.serialize(request.getBody(), ' + (tmp1_safe_receiver == null ? null : emitGetType(tmp1_safe_receiver, $this)) + ')\n |' + Spacer_instance.l25(3) + ');\n |' + Spacer_instance.l25(2) + '}\n |\n |' + Spacer_instance.l25(2) + 'static Request fromRequest(Wirespec.Deserializer<String> serialization, Wirespec.RawRequest request) {\n |' + Spacer_instance.l25(3) + 'return new Request(' + emitDeserializedParams(_this__u8e3s4, $this, endpoint) + ');\n |' + Spacer_instance.l25(2) + '}\n ');
748
+ }
749
+ function emitGetType(_this__u8e3s4, $this) {
750
+ return 'Wirespec.getType(' + $this.p25(_this__u8e3s4, 'Void') + '.class, ' + emitGetTypeRaw(_this__u8e3s4, $this) + ')';
751
+ }
752
+ function emitGetTypeRaw(_this__u8e3s4, $this) {
753
+ var tmp;
754
+ var tmp1_elvis_lhs = _this__u8e3s4 == null ? null : _this__u8e3s4.sm();
755
+ if (tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs) {
756
+ tmp = 'java.util.Optional.class';
757
+ } else {
758
+ if (_this__u8e3s4 instanceof Iterable) {
759
+ tmp = 'java.util.List.class';
760
+ } else {
761
+ tmp = null;
762
+ }
763
+ }
764
+ return tmp;
751
765
  }
752
766
  function emitConstructor(_this__u8e3s4, $this, endpoint) {
753
767
  var tmp = $this.q25(endpoint);
@@ -790,8 +804,8 @@ function emitConstructor(_this__u8e3s4, $this, endpoint) {
790
804
  function emitDeserializedParams(_this__u8e3s4, $this, endpoint) {
791
805
  var tmp = $this.r25(endpoint);
792
806
  var tmp_0 = orNull(joinToString(tmp, VOID, VOID, VOID, VOID, VOID, JavaEmitter$emitDeserializedParams$lambda($this)));
793
- var tmp_1 = orNull(joinToString(endpoint.c25_1, VOID, VOID, VOID, VOID, VOID, JavaEmitter$emitDeserializedParams$lambda_0($this)));
794
- var tmp_2 = orNull(joinToString(endpoint.d25_1, VOID, VOID, VOID, VOID, VOID, JavaEmitter$emitDeserializedParams$lambda_1($this)));
807
+ var tmp_1 = orNull(joinToString(endpoint.c25_1, ',\n', VOID, VOID, VOID, VOID, JavaEmitter$emitDeserializedParams$lambda_0($this)));
808
+ var tmp_2 = orNull(joinToString(endpoint.d25_1, ',\n', VOID, VOID, VOID, VOID, JavaEmitter$emitDeserializedParams$lambda_1($this)));
795
809
  var tmp0_safe_receiver = _this__u8e3s4.m25_1;
796
810
  var tmp_3;
797
811
  if (tmp0_safe_receiver == null) {
@@ -799,7 +813,7 @@ function emitDeserializedParams(_this__u8e3s4, $this, endpoint) {
799
813
  } else {
800
814
  // Inline function 'kotlin.let' call
801
815
  // Inline function 'community.flock.wirespec.compiler.core.emit.JavaEmitter.emitDeserializedParams.<anonymous>' call
802
- tmp_3 = Spacer_instance.l25(4) + 'serialization.deserialize(request.body(), Wirespec.getType(' + $this.p25(tmp0_safe_receiver.o25_1, 'Void') + '.class, ' + _get_isIterable__qavhhr(tmp0_safe_receiver.o25_1, $this) + '))';
816
+ tmp_3 = Spacer_instance.l25(4) + 'serialization.deserialize(request.body(), ' + emitGetType(tmp0_safe_receiver.o25_1, $this) + ')';
803
817
  }
804
818
  // Inline function 'kotlin.let' call
805
819
  // Inline function 'community.flock.wirespec.compiler.core.emit.JavaEmitter.emitDeserializedParams.<anonymous>' call
@@ -807,7 +821,7 @@ function emitDeserializedParams(_this__u8e3s4, $this, endpoint) {
807
821
  return isBlank(it) ? '' : '\n' + it + '\n' + Spacer_instance.l25(3);
808
822
  }
809
823
  function emitDeserializedParams_0(_this__u8e3s4, $this) {
810
- var tmp = orNull(joinToString(_this__u8e3s4.h25_1, VOID, VOID, VOID, VOID, VOID, JavaEmitter$emitDeserializedParams$lambda_2($this)));
824
+ var tmp = orNull(joinToString(_this__u8e3s4.h25_1, ',\n', VOID, VOID, VOID, VOID, JavaEmitter$emitDeserializedParams$lambda_2($this)));
811
825
  var tmp0_safe_receiver = _this__u8e3s4.i25_1;
812
826
  var tmp_0;
813
827
  if (tmp0_safe_receiver == null) {
@@ -815,7 +829,7 @@ function emitDeserializedParams_0(_this__u8e3s4, $this) {
815
829
  } else {
816
830
  // Inline function 'kotlin.let' call
817
831
  // Inline function 'community.flock.wirespec.compiler.core.emit.JavaEmitter.emitDeserializedParams.<anonymous>' call
818
- tmp_0 = Spacer_instance.l25(4) + 'serialization.deserialize(response.body(), Wirespec.getType(' + $this.p25(tmp0_safe_receiver.o25_1, 'Void') + '.class, ' + _get_isIterable__qavhhr(tmp0_safe_receiver.o25_1, $this) + '))';
832
+ tmp_0 = Spacer_instance.l25(4) + 'serialization.deserialize(response.body(), ' + emitGetType(tmp0_safe_receiver.o25_1, $this) + ')';
819
833
  }
820
834
  // Inline function 'kotlin.let' call
821
835
  // Inline function 'community.flock.wirespec.compiler.core.emit.JavaEmitter.emitDeserializedParams.<anonymous>' call
@@ -832,25 +846,25 @@ function emitSerialized(_this__u8e3s4, $this) {
832
846
  } else {
833
847
  tmp_1 = 'java.util.Collections.emptyMap()';
834
848
  }
835
- return tmp + 'if (response instanceof Response' + tmp_0 + ' r) { return new Wirespec.RawResponse(r.getStatus(), ' + tmp_1 + ', ' + (!(_this__u8e3s4.i25_1 == null) ? 'serialization.serialize(r.body, Wirespec.getType(' + $this.p25(_this__u8e3s4.i25_1.o25_1, 'Void') + '.class, ' + _get_isIterable__qavhhr(_this__u8e3s4.i25_1.o25_1, $this) + '))' : 'null') + '); }';
849
+ return tmp + 'if (response instanceof Response' + tmp_0 + ' r) { return new Wirespec.RawResponse(r.getStatus(), ' + tmp_1 + ', ' + (!(_this__u8e3s4.i25_1 == null) ? 'serialization.serialize(r.body, ' + emitGetType(_this__u8e3s4.i25_1.o25_1, $this) + ')' : 'null') + '); }';
836
850
  }
837
851
  function emitDeserialized(_this__u8e3s4, $this) {
838
852
  return Spacer_instance.l25(4) + 'case ' + _this__u8e3s4.g25_1 + ': return new Response' + Companion_instance_5.s25(_this__u8e3s4.g25_1) + '(' + emitDeserializedParams_0(_this__u8e3s4, $this) + ');';
839
853
  }
840
854
  function emitSerializedParams(_this__u8e3s4, $this, fields) {
841
- return 'java.util.Map.entry("' + _this__u8e3s4.t25_1.b1() + '", serialization.serializeParam(request.' + fields + '.' + $this.v25(_this__u8e3s4.t25_1) + ', Wirespec.getType(' + $this.w25(_this__u8e3s4.u25_1) + '.class, ' + _get_isIterable__qavhhr(_this__u8e3s4.u25_1, $this) + ')))';
855
+ return 'java.util.Map.entry("' + _this__u8e3s4.t25_1.b1() + '", serialization.serializeParam(request.' + fields + '.' + $this.v25(_this__u8e3s4.t25_1) + ', ' + emitGetType(_this__u8e3s4.u25_1, $this) + '))';
842
856
  }
843
857
  function emitDeserialized_0(_this__u8e3s4, $this) {
844
- return Spacer_instance.l25(4) + 'serialization.<' + $this.j24(_this__u8e3s4.xd_1.y25_1) + '>deserialize(request.path().get(' + _this__u8e3s4.wd_1 + '), Wirespec.getType(' + $this.w25(_this__u8e3s4.xd_1.y25_1) + '.class, ' + _get_isIterable__qavhhr(_this__u8e3s4.xd_1.y25_1, $this) + '))';
858
+ return Spacer_instance.l25(4) + 'serialization.deserialize(request.path().get(' + _this__u8e3s4.wd_1 + '), ' + emitGetType(_this__u8e3s4.xd_1.x25_1, $this) + ')';
845
859
  }
846
860
  function emitDeserializedParams_1(_this__u8e3s4, $this, fields) {
847
- return Spacer_instance.l25(4) + 'java.util.Optional.ofNullable(request.' + fields + '().get("' + _this__u8e3s4.t25_1.b1() + '")).map(it -> serialization.<' + emitType(_this__u8e3s4.u25_1, $this) + '>deserializeParam(it, Wirespec.getType(' + $this.w25(_this__u8e3s4.u25_1) + '.class, ' + _get_isIterable__qavhhr(_this__u8e3s4.u25_1, $this) + ')))' + (!_this__u8e3s4.u25_1.sm() ? '.get()' : '');
861
+ return Spacer_instance.l25(4) + 'serialization.deserializeParam(request.' + fields + '().getOrDefault("' + _this__u8e3s4.t25_1.b1() + '", java.util.Collections.emptyList()), ' + emitGetType(_this__u8e3s4.u25_1, $this) + ')';
848
862
  }
849
863
  function emitSerializedHeader(_this__u8e3s4, $this) {
850
- return 'java.util.Map.entry("' + _this__u8e3s4.t25_1.b1() + '", serialization.serializeParam(r.getHeaders().' + $this.v25(_this__u8e3s4.t25_1) + '(), Wirespec.getType(' + $this.w25(_this__u8e3s4.u25_1) + '.class, ' + _get_isIterable__qavhhr(_this__u8e3s4.u25_1, $this) + ')))';
864
+ return 'java.util.Map.entry("' + _this__u8e3s4.t25_1.b1() + '", serialization.serializeParam(r.getHeaders().' + $this.v25(_this__u8e3s4.t25_1) + '(), ' + emitGetType(_this__u8e3s4.u25_1, $this) + '))';
851
865
  }
852
866
  function emitIdentifier(_this__u8e3s4, $this) {
853
- return 'serialization.serialize(request.path.' + Companion_instance_5.z25($this.v25(_this__u8e3s4.x25_1)) + ', Wirespec.getType(' + $this.w25(_this__u8e3s4.y25_1) + '.class, ' + _get_isIterable__qavhhr(_this__u8e3s4.y25_1, $this) + '))';
867
+ return 'serialization.serialize(request.path.' + Companion_instance_5.y25($this.v25(_this__u8e3s4.w25_1)) + ', ' + emitGetType(_this__u8e3s4.x25_1, $this) + ')';
854
868
  }
855
869
  function emit_1(_this__u8e3s4, $this) {
856
870
  var tmp1_safe_receiver = _this__u8e3s4 == null ? null : _this__u8e3s4.o25_1;
@@ -858,10 +872,7 @@ function emit_1(_this__u8e3s4, $this) {
858
872
  return tmp2_elvis_lhs == null ? 'Void' : tmp2_elvis_lhs;
859
873
  }
860
874
  function emit_2(_this__u8e3s4, $this) {
861
- return $this.j24(_this__u8e3s4.y25_1) + ' ' + $this.v25(_this__u8e3s4.x25_1);
862
- }
863
- function _get_isIterable__qavhhr(_this__u8e3s4, $this) {
864
- return _this__u8e3s4 instanceof Iterable;
875
+ return $this.j24(_this__u8e3s4.x25_1) + ' ' + $this.v25(_this__u8e3s4.w25_1);
865
876
  }
866
877
  function sanitizeSymbol(_this__u8e3s4, $this) {
867
878
  // Inline function 'kotlin.collections.mapIndexed' call
@@ -900,8 +911,8 @@ function sanitizeFirstIsDigit(_this__u8e3s4, $this) {
900
911
  }
901
912
  function Companion() {
902
913
  Companion_instance_0 = this;
903
- this.a26_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']);
904
- this.b26_1 = 'java.util.Collections.emptyMap()';
914
+ this.z25_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']);
915
+ this.a26_1 = 'java.util.Collections.emptyMap()';
905
916
  }
906
917
  var Companion_instance_0;
907
918
  function Companion_getInstance_0() {
@@ -916,12 +927,12 @@ function JavaEmitter$emit$lambda(this$0) {
916
927
  }
917
928
  function JavaEmitter$emit$lambda_0(this$0) {
918
929
  return function (it) {
919
- return Spacer_instance.toString() + this$0.c26(it) + ',';
930
+ return Spacer_instance.toString() + this$0.b26(it) + ',';
920
931
  };
921
932
  }
922
933
  function JavaEmitter$emit$lambda_1(this$0) {
923
934
  return function (it) {
924
- return this$0.e26(this$0.d26(it)) + '("' + it + '")';
935
+ return this$0.d26(this$0.c26(it)) + '("' + it + '")';
925
936
  };
926
937
  }
927
938
  function JavaEmitter$emit$lambda_2(it) {
@@ -938,17 +949,17 @@ function JavaEmitter$emit$lambda_3(this$0) {
938
949
  }
939
950
  function JavaEmitter$emit$lambda_4(this$0) {
940
951
  return function (it) {
941
- return this$0.c26(it);
952
+ return this$0.b26(it);
942
953
  };
943
954
  }
944
955
  function JavaEmitter$emit$lambda_5(this$0) {
945
956
  return function (it) {
946
- return this$0.c26(it);
957
+ return this$0.b26(it);
947
958
  };
948
959
  }
949
960
  function JavaEmitter$emit$lambda_6(this$0) {
950
961
  return function (it) {
951
- return this$0.f26(it);
962
+ return this$0.e26(it);
952
963
  };
953
964
  }
954
965
  function JavaEmitter$emit$lambda_7(this$0) {
@@ -963,7 +974,7 @@ function JavaEmitter$emit$lambda_8(this$0) {
963
974
  }
964
975
  function JavaEmitter$emit$lambda_9(this$0) {
965
976
  return function (it) {
966
- return this$0.g26(it);
977
+ return this$0.f26(it);
967
978
  };
968
979
  }
969
980
  function JavaEmitter$emitStatusInterfaces$lambda(it) {
@@ -981,7 +992,7 @@ function JavaEmitter$emitRequestFunctions$lambda(this$0) {
981
992
  return function (it) {
982
993
  var tmp;
983
994
  if (it instanceof Literal) {
984
- tmp = '"' + it.h26_1 + '"';
995
+ tmp = '"' + it.g26_1 + '"';
985
996
  } else {
986
997
  if (it instanceof Param_0) {
987
998
  tmp = emitIdentifier(it, this$0);
@@ -1004,7 +1015,7 @@ function JavaEmitter$emitRequestFunctions$lambda_1(this$0) {
1004
1015
  }
1005
1016
  function JavaEmitter$emit$lambda_10(this$0) {
1006
1017
  return function (it) {
1007
- return this$0.c26(it);
1018
+ return this$0.b26(it);
1008
1019
  };
1009
1020
  }
1010
1021
  function JavaEmitter$emit$lambda_11(this$0) {
@@ -1014,7 +1025,7 @@ function JavaEmitter$emit$lambda_11(this$0) {
1014
1025
  }
1015
1026
  function JavaEmitter$emit$lambda_12(this$0) {
1016
1027
  return function (it) {
1017
- return this$0.c26(it);
1028
+ return this$0.b26(it);
1018
1029
  };
1019
1030
  }
1020
1031
  function JavaEmitter$emitConstructor$lambda(this$0) {
@@ -1024,17 +1035,17 @@ function JavaEmitter$emitConstructor$lambda(this$0) {
1024
1035
  }
1025
1036
  function JavaEmitter$emitConstructor$lambda_0(this$0) {
1026
1037
  return function (it) {
1027
- return this$0.c26(it);
1038
+ return this$0.b26(it);
1028
1039
  };
1029
1040
  }
1030
1041
  function JavaEmitter$emitConstructor$lambda_1(this$0) {
1031
1042
  return function (it) {
1032
- return this$0.c26(it);
1043
+ return this$0.b26(it);
1033
1044
  };
1034
1045
  }
1035
1046
  function JavaEmitter$emitConstructor$lambda_2(this$0) {
1036
1047
  return function (it) {
1037
- return this$0.v25(it.x25_1);
1048
+ return this$0.v25(it.w25_1);
1038
1049
  };
1039
1050
  }
1040
1051
  function JavaEmitter$emitConstructor$lambda_3(this$0) {
@@ -1064,7 +1075,7 @@ function JavaEmitter$emitDeserializedParams$lambda_1(this$0) {
1064
1075
  }
1065
1076
  function JavaEmitter$emitDeserializedParams$lambda_2(this$0) {
1066
1077
  return function (it) {
1067
- return Spacer_instance.l25(4) + 'java.util.Optional.ofNullable(response.headers().get("' + it.t25_1.b1() + '")).map(it -> serialization.<' + emitType(it.u25_1, this$0) + '>deserializeParam(it, Wirespec.getType(' + this$0.w25(it.u25_1) + '.class, ' + _get_isIterable__qavhhr(it.u25_1, this$0) + ')))' + (!it.u25_1.sm() ? '.get()' : '');
1078
+ return Spacer_instance.l25(4) + 'serialization.deserializeParam(response.headers().getOrDefault("' + it.t25_1.b1() + '", java.util.Collections.emptyList()), ' + emitGetType(it.u25_1, this$0) + ')';
1068
1079
  };
1069
1080
  }
1070
1081
  function JavaEmitter$emitSerialized$lambda(this$0) {
@@ -1077,8 +1088,8 @@ function JavaEmitter$sanitizeSymbol$lambda(it) {
1077
1088
  }
1078
1089
  function JavaEmitter(packageName, emitShared) {
1079
1090
  Companion_getInstance_0();
1080
- packageName = packageName === VOID ? Companion_instance_6.i26('community.flock.wirespec.generated') : packageName;
1081
- emitShared = emitShared === VOID ? Companion_instance_4.j26() : emitShared;
1091
+ packageName = packageName === VOID ? Companion_instance_6.h26('community.flock.wirespec.generated') : packageName;
1092
+ emitShared = emitShared === VOID ? Companion_instance_4.i26() : emitShared;
1082
1093
  Emitter.call(this);
1083
1094
  this.d24_1 = packageName;
1084
1095
  this.e24_1 = emitShared;
@@ -1087,38 +1098,38 @@ function JavaEmitter(packageName, emitShared) {
1087
1098
  this.h24_1 = JavaShared_getInstance();
1088
1099
  this.i24_1 = '//';
1089
1100
  }
1090
- protoOf(JavaEmitter).k26 = function () {
1101
+ protoOf(JavaEmitter).j26 = function () {
1091
1102
  return this.g24_1;
1092
1103
  };
1093
- protoOf(JavaEmitter).l26 = function () {
1104
+ protoOf(JavaEmitter).k26 = function () {
1094
1105
  return this.h24_1;
1095
1106
  };
1096
- protoOf(JavaEmitter).m26 = function () {
1107
+ protoOf(JavaEmitter).l26 = function () {
1097
1108
  return this.i24_1;
1098
1109
  };
1099
- protoOf(JavaEmitter).n26 = function (module_0, logger) {
1110
+ protoOf(JavaEmitter).m26 = function (module_0, logger) {
1100
1111
  // Inline function 'kotlin.let' call
1101
1112
  // Inline function 'community.flock.wirespec.compiler.core.emit.JavaEmitter.emit.<anonymous>' call
1102
- var it = protoOf(Emitter).n26.call(this, module_0, logger);
1103
- return this.e24_1.r26_1 ? it.al(new Emitted(Companion_instance_6.i26('community.flock.wirespec').o26() + 'Wirespec', this.l26().q26_1)) : it;
1113
+ var it = protoOf(Emitter).m26.call(this, module_0, logger);
1114
+ return this.e24_1.q26_1 ? it.al(new Emitted(Companion_instance_6.h26('community.flock.wirespec').n26() + 'Wirespec', this.k26().p26_1)) : it;
1104
1115
  };
1105
- protoOf(JavaEmitter).s26 = function (definition, module_0, logger) {
1116
+ protoOf(JavaEmitter).r26 = function (definition, module_0, logger) {
1106
1117
  // Inline function 'kotlin.let' call
1107
1118
  // Inline function 'community.flock.wirespec.compiler.core.emit.JavaEmitter.emit.<anonymous>' call
1108
- var it = protoOf(Emitter).s26.call(this, definition, module_0, logger);
1119
+ var it = protoOf(Emitter).r26.call(this, definition, module_0, logger);
1109
1120
  var subPackageName = plus_0(this.d24_1, definition);
1110
- var tmp = subPackageName.o26() + sanitizeSymbol(it.t26_1, this);
1121
+ var tmp = subPackageName.n26() + sanitizeSymbol(it.s26_1, this);
1111
1122
  // Inline function 'kotlin.text.trimStart' call
1112
- var this_0 = trimMargin('\n |package ' + subPackageName.toString() + ';\n |' + (Companion_instance_5.v26(module_0) ? this.f24_1 : '') + '\n |' + it.u26_1 + '\n ');
1123
+ var this_0 = trimMargin('\n |package ' + subPackageName.toString() + ';\n |' + (Companion_instance_5.u26(module_0) ? this.f24_1 : '') + '\n |' + it.t26_1 + '\n ');
1113
1124
  var tmp$ret$0 = toString(trimStart(isCharSequence(this_0) ? this_0 : THROW_CCE()));
1114
1125
  return new Emitted(tmp, tmp$ret$0);
1115
1126
  };
1116
- protoOf(JavaEmitter).w26 = function (type, module_0) {
1117
- var tmp = this.v25(type.y26_1);
1118
- var tmp_0 = this.b27(type.z26_1);
1127
+ protoOf(JavaEmitter).v26 = function (type, module_0) {
1128
+ var tmp = this.v25(type.x26_1);
1129
+ var tmp_0 = this.a27(type.y26_1);
1119
1130
  // Inline function 'kotlin.run' call
1120
1131
  // Inline function 'community.flock.wirespec.compiler.core.emit.JavaEmitter.emit.<anonymous>' call
1121
- var $this$run = type.a27_1;
1132
+ var $this$run = type.z26_1;
1122
1133
  var tmp_1;
1123
1134
  if ($this$run.l()) {
1124
1135
  tmp_1 = '';
@@ -1126,11 +1137,11 @@ protoOf(JavaEmitter).w26 = function (type, module_0) {
1126
1137
  tmp_1 = ' extends ' + joinToString($this$run, ', ', VOID, VOID, VOID, VOID, JavaEmitter$emit$lambda(this));
1127
1138
  }
1128
1139
  var tmp$ret$1 = tmp_1;
1129
- return trimMargin('\n |public record ' + tmp + ' (\n |' + tmp_0 + '\n |)' + tmp$ret$1 + this.c27(type, module_0) + ' {\n |};\n |\n ');
1140
+ return trimMargin('\n |public record ' + tmp + ' (\n |' + tmp_0 + '\n |)' + tmp$ret$1 + this.b27(type, module_0) + ' {\n |};\n |\n ');
1130
1141
  };
1131
- protoOf(JavaEmitter).c27 = function (_this__u8e3s4, module_0) {
1142
+ protoOf(JavaEmitter).b27 = function (_this__u8e3s4, module_0) {
1132
1143
  // Inline function 'kotlin.collections.filterIsInstance' call
1133
- var tmp0 = module_0.e27_1;
1144
+ var tmp0 = module_0.d27_1;
1134
1145
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
1135
1146
  var destination = ArrayList_init_$Create$_0();
1136
1147
  var _iterator__ex2g4s = tmp0.g();
@@ -1148,7 +1159,7 @@ protoOf(JavaEmitter).c27 = function (_this__u8e3s4, module_0) {
1148
1159
  var element_0 = _iterator__ex2g4s_0.i();
1149
1160
  // Inline function 'community.flock.wirespec.compiler.core.emit.JavaEmitter.emitUnion.<anonymous>' call
1150
1161
  // Inline function 'kotlin.collections.filterIsInstance' call
1151
- var tmp0_0 = element_0.h27_1;
1162
+ var tmp0_0 = element_0.g27_1;
1152
1163
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
1153
1164
  var destination_1 = ArrayList_init_$Create$_0();
1154
1165
  var _iterator__ex2g4s_1 = tmp0_0.g();
@@ -1175,7 +1186,7 @@ protoOf(JavaEmitter).c27 = function (_this__u8e3s4, module_0) {
1175
1186
  while (_iterator__ex2g4s_2.h()) {
1176
1187
  var element_2 = _iterator__ex2g4s_2.i();
1177
1188
  // Inline function 'community.flock.wirespec.compiler.core.emit.JavaEmitter.emitUnion.<anonymous>.<anonymous>' call
1178
- if (element_2.y23_1 === _this__u8e3s4.y26_1.b1()) {
1189
+ if (element_2.y23_1 === _this__u8e3s4.x26_1.b1()) {
1179
1190
  tmp$ret$4 = true;
1180
1191
  break $l$block_0;
1181
1192
  }
@@ -1193,7 +1204,7 @@ protoOf(JavaEmitter).c27 = function (_this__u8e3s4, module_0) {
1193
1204
  while (_iterator__ex2g4s_3.h()) {
1194
1205
  var item = _iterator__ex2g4s_3.i();
1195
1206
  // Inline function 'community.flock.wirespec.compiler.core.emit.JavaEmitter.emitUnion.<anonymous>' call
1196
- var tmp$ret$9 = item.g27_1.b1();
1207
+ var tmp$ret$9 = item.f27_1.b1();
1197
1208
  destination_2.e(tmp$ret$9);
1198
1209
  }
1199
1210
  // Inline function 'kotlin.takeIf' call
@@ -1210,10 +1221,10 @@ protoOf(JavaEmitter).c27 = function (_this__u8e3s4, module_0) {
1210
1221
  var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : joinToString(tmp0_safe_receiver, ', ', 'implements ');
1211
1222
  return tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs;
1212
1223
  };
1213
- protoOf(JavaEmitter).b27 = function (_this__u8e3s4) {
1214
- return dropLast(joinToString(_this__u8e3s4.i27_1, '\n', VOID, VOID, VOID, VOID, JavaEmitter$emit$lambda_0(this)), 1);
1224
+ protoOf(JavaEmitter).a27 = function (_this__u8e3s4) {
1225
+ return dropLast(joinToString(_this__u8e3s4.h27_1, '\n', VOID, VOID, VOID, VOID, JavaEmitter$emit$lambda_0(this)), 1);
1215
1226
  };
1216
- protoOf(JavaEmitter).c26 = function (_this__u8e3s4) {
1227
+ protoOf(JavaEmitter).b26 = function (_this__u8e3s4) {
1217
1228
  return this.j24(_this__u8e3s4.u25_1) + ' ' + this.v25(_this__u8e3s4.t25_1);
1218
1229
  };
1219
1230
  protoOf(JavaEmitter).j24 = function (_this__u8e3s4) {
@@ -1225,10 +1236,10 @@ protoOf(JavaEmitter).j24 = function (_this__u8e3s4) {
1225
1236
  protoOf(JavaEmitter).p25 = function (_this__u8e3s4, void_0) {
1226
1237
  var tmp;
1227
1238
  if (_this__u8e3s4 instanceof Dict) {
1228
- tmp = this.w25(_this__u8e3s4.k24_1);
1239
+ tmp = this.i27(_this__u8e3s4.k24_1);
1229
1240
  } else {
1230
1241
  if (_this__u8e3s4 instanceof Iterable) {
1231
- tmp = this.w25(_this__u8e3s4.a24_1);
1242
+ tmp = this.i27(_this__u8e3s4.a24_1);
1232
1243
  } else {
1233
1244
  if (_this__u8e3s4 instanceof Unit) {
1234
1245
  tmp = void_0;
@@ -1255,7 +1266,7 @@ protoOf(JavaEmitter).p25 = function (_this__u8e3s4, void_0) {
1255
1266
  }
1256
1267
  return tmp;
1257
1268
  };
1258
- protoOf(JavaEmitter).w25 = function (_this__u8e3s4, void_0, $super) {
1269
+ protoOf(JavaEmitter).i27 = function (_this__u8e3s4, void_0, $super) {
1259
1270
  void_0 = void_0 === VOID ? 'void' : void_0;
1260
1271
  return $super === VOID ? this.p25(_this__u8e3s4, void_0) : $super.p25.call(this, _this__u8e3s4, void_0);
1261
1272
  };
@@ -1265,7 +1276,7 @@ protoOf(JavaEmitter).v25 = function (identifier) {
1265
1276
  tmp = sanitizeSymbol(identifier.b1(), this);
1266
1277
  } else {
1267
1278
  if (identifier instanceof FieldIdentifier) {
1268
- tmp = this.e26(sanitizeSymbol(identifier.b1(), this));
1279
+ tmp = this.d26(sanitizeSymbol(identifier.b1(), this));
1269
1280
  } else {
1270
1281
  noWhenBranchMatchedException();
1271
1282
  }
@@ -1283,11 +1294,11 @@ protoOf(JavaEmitter).q27 = function (enum_0, module_0) {
1283
1294
  return trimMargin('\n |public enum ' + tmp + ' implements Wirespec.Enum {\n |' + this.u27(joinToString(enum_0.t27_1, ',\n', VOID, VOID, VOID, VOID, JavaEmitter$emit$lambda_1(this))) + ';\n |' + Spacer_instance.toString() + 'public final String label;\n |' + Spacer_instance.toString() + this.v25(enum_0.s27_1) + '(String label) {\n |' + Spacer_instance.l25(2) + 'this.label = label;\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + '@Override\n |' + Spacer_instance.toString() + 'public String toString() {\n |' + Spacer_instance.l25(2) + 'return label;\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + '@Override\n |' + Spacer_instance.toString() + 'public String getLabel() {\n |' + Spacer_instance.l25(2) + 'return label;\n |' + Spacer_instance.toString() + '}\n |}\n |\n ');
1284
1295
  };
1285
1296
  protoOf(JavaEmitter).v27 = function (union) {
1286
- var tmp = this.v25(union.g27_1);
1287
- return trimMargin('\n |public sealed interface ' + tmp + ' permits ' + joinToString(union.h27_1, VOID, VOID, VOID, VOID, VOID, JavaEmitter$emit$lambda_2) + ' {}\n |\n ');
1297
+ var tmp = this.v25(union.f27_1);
1298
+ return trimMargin('\n |public sealed interface ' + tmp + ' permits ' + joinToString(union.g27_1, VOID, VOID, VOID, VOID, VOID, JavaEmitter$emit$lambda_2) + ' {}\n |\n ');
1288
1299
  };
1289
1300
  protoOf(JavaEmitter).w27 = function (channel) {
1290
- return trimMargin('\n |' + this.x27(channel) + '\n |\n |public interface ' + this.v25(channel.z27_1) + ' {\n | void invoke(' + emitFullyQualified(channel, this, channel.a28_1) + this.w25(channel.a28_1) + ' message);\n |}\n |\n ');
1301
+ return trimMargin('\n |' + this.x27(channel) + '\n |\n |public interface ' + this.v25(channel.z27_1) + ' {\n | void invoke(' + emitFullyQualified(channel, this, channel.a28_1) + this.i27(channel.a28_1) + ' message);\n |}\n |\n ');
1291
1302
  };
1292
1303
  protoOf(JavaEmitter).x27 = function (_this__u8e3s4) {
1293
1304
  // Inline function 'kotlin.collections.filter' call
@@ -1361,12 +1372,12 @@ protoOf(JavaEmitter).c28 = function (endpoint) {
1361
1372
  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<String> serialization, Response<?> response) {\n |' + tmp_15 + '\n |' + tmp_16 + 'else { throw new IllegalStateException("Cannot match response with status: " + response.getStatus());}\n |' + tmp_17 + '}\n |\n |' + tmp_18 + 'static Response<?> fromResponse(Wirespec.Deserializer<String> serialization, Wirespec.RawResponse response) {\n |' + tmp_19 + 'switch (response.statusCode()) {\n |' + tmp_21 + '\n |' + tmp_22 + 'default: throw new IllegalStateException("Cannot match response with status: " + response.statusCode());\n |' + tmp_23 + '}\n |' + tmp_24 + '}\n |\n |' + tmp_25 + tmp_26 + '\n |' + tmp_27 + 'class Handlers implements Wirespec.Server<Request, Response<?>>, Wirespec.Client<Request, Response<?>> {\n |' + tmp_28 + '@Override public String getPathTemplate() { return "/' + joinToString(endpoint.b25_1, '/', VOID, VOID, VOID, VOID, JavaEmitter$emit$lambda_9(this)) + '"; }\n |' + Spacer_instance.l25(3) + '@Override public String getMethod() { return "' + endpoint.a25_1.toString() + '"; }\n |' + Spacer_instance.l25(3) + '@Override public Wirespec.ServerEdge<Request, Response<?>> getServer(Wirespec.Serialization<String> serialization) {\n |' + Spacer_instance.l25(4) + 'return new Wirespec.ServerEdge<>() {\n |' + Spacer_instance.l25(5) + '@Override public Request from(Wirespec.RawRequest request) { return fromRequest(serialization, request); }\n |' + Spacer_instance.l25(5) + '@Override public Wirespec.RawResponse to(Response<?> response) { return toResponse(serialization, response); }\n |' + Spacer_instance.l25(4) + '};\n |' + Spacer_instance.l25(3) + '}\n |' + Spacer_instance.l25(3) + '@Override public Wirespec.ClientEdge<Request, Response<?>> getClient(Wirespec.Serialization<String> serialization) {\n |' + Spacer_instance.l25(4) + 'return new Wirespec.ClientEdge<>() {\n |' + Spacer_instance.l25(5) + '@Override public Wirespec.RawRequest to(Request request) { return toRequest(serialization, request); }\n |' + Spacer_instance.l25(5) + '@Override public Response<?> from(Wirespec.RawResponse response) { return fromResponse(serialization, response); }\n |' + Spacer_instance.l25(4) + '};\n |' + Spacer_instance.l25(3) + '}\n |' + Spacer_instance.l25(2) + '}\n |' + Spacer_instance.toString() + '}\n |}\n |\n ');
1362
1373
  };
1363
1374
  protoOf(JavaEmitter).f28 = function (endpoint) {
1364
- return 'java.util.concurrent.CompletableFuture<Response<?>> ' + Companion_instance_5.z25(this.v25(endpoint.z24_1)) + '(Request request);';
1375
+ return 'java.util.concurrent.CompletableFuture<Response<?>> ' + Companion_instance_5.y25(this.v25(endpoint.z24_1)) + '(Request request);';
1365
1376
  };
1366
1377
  protoOf(JavaEmitter).d28 = function (_this__u8e3s4, endpoint) {
1367
1378
  return trimMargin('\n |' + Spacer_instance.toString() + 'class Request implements Wirespec.Request<' + emit_1(_this__u8e3s4.m25_1, this) + '> {\n |' + Spacer_instance.l25(2) + 'private final Path path;\n |' + Spacer_instance.l25(2) + 'private final Wirespec.Method method;\n |' + Spacer_instance.l25(2) + 'private final Queries queries;\n |' + Spacer_instance.l25(2) + 'private final RequestHeaders headers;\n |' + Spacer_instance.l25(2) + 'private final ' + emit_1(_this__u8e3s4.m25_1, this) + ' body;\n |' + Spacer_instance.l25(2) + emitConstructor(_this__u8e3s4, this, endpoint) + '\n |' + Spacer_instance.l25(2) + '@Override public Path getPath() { return path; }\n |' + Spacer_instance.l25(2) + '@Override public Wirespec.Method getMethod() { return method; }\n |' + Spacer_instance.l25(2) + '@Override public Queries getQueries() { return queries; }\n |' + Spacer_instance.l25(2) + '@Override public RequestHeaders getHeaders() { return headers; }\n |' + Spacer_instance.l25(2) + '@Override public ' + emit_1(_this__u8e3s4.m25_1, this) + ' getBody() { return body; }\n |' + Spacer_instance.toString() + '}\n ');
1368
1379
  };
1369
- protoOf(JavaEmitter).f26 = function (_this__u8e3s4) {
1380
+ protoOf(JavaEmitter).e26 = function (_this__u8e3s4) {
1370
1381
  var tmp = Spacer_instance.toString();
1371
1382
  var tmp_0 = Companion_instance_5.s25(_this__u8e3s4.g25_1);
1372
1383
  var tmp_1 = orNull(joinToString(_this__u8e3s4.h25_1, VOID, VOID, VOID, VOID, VOID, JavaEmitter$emit$lambda_10(this)));
@@ -1395,11 +1406,11 @@ protoOf(JavaEmitter).f26 = function (_this__u8e3s4) {
1395
1406
  var tmp_14 = Spacer_instance.l25(1);
1396
1407
  return trimMargin('\n |' + tmp + 'record Response' + tmp_0 + '(' + tmp_3 + ') implements Response' + tmp_4 + 'XX<' + tmp_5 + '>, Response' + tmp_6 + ' {\n |' + tmp_7 + '@Override public int getStatus() { return ' + tmp_8 + '; }\n |' + tmp_9 + tmp_10 + '\n |' + tmp_11 + '@Override public ' + tmp_12 + ' getBody() { return ' + tmp_13 + '; }\n |' + tmp_14 + emitObject(_this__u8e3s4.h25_1, this, 'Headers', 'Wirespec.Response.Headers', JavaEmitter$emit$lambda_12(this)) + '\n |' + Spacer_instance.toString() + '}\n ');
1397
1408
  };
1398
- protoOf(JavaEmitter).d26 = function (_this__u8e3s4) {
1409
+ protoOf(JavaEmitter).c26 = function (_this__u8e3s4) {
1399
1410
  return sanitizeFirstIsDigit(joinToString(split(_this__u8e3s4, ['-', ', ', '.', ' ', '//']), '_'), this);
1400
1411
  };
1401
- protoOf(JavaEmitter).e26 = function (_this__u8e3s4) {
1402
- return Companion_getInstance_0().a26_1.o1(_this__u8e3s4) ? '_' + _this__u8e3s4 : _this__u8e3s4;
1412
+ protoOf(JavaEmitter).d26 = function (_this__u8e3s4) {
1413
+ return Companion_getInstance_0().z25_1.o1(_this__u8e3s4) ? '_' + _this__u8e3s4 : _this__u8e3s4;
1403
1414
  };
1404
1415
  function emitStatusInterfaces_0(_this__u8e3s4, $this) {
1405
1416
  // Inline function 'kotlin.collections.map' call
@@ -1505,7 +1516,7 @@ function emitSerializedParams_0(_this__u8e3s4, $this, type, fields) {
1505
1516
  return 'mapOf("' + _this__u8e3s4.t25_1.b1() + '" to (' + type + '.' + fields + '.' + $this.v25(_this__u8e3s4.t25_1) + '?.let{ serialization.serializeParam(it, typeOf<' + $this.j24(_this__u8e3s4.u25_1) + '>()) } ?: emptyList()))';
1506
1517
  }
1507
1518
  function emitDeserialized_2(_this__u8e3s4, $this) {
1508
- return Spacer_instance.l25(3) + $this.v25(_this__u8e3s4.xd_1.x25_1) + ' = serialization.deserialize(request.path[' + _this__u8e3s4.wd_1 + '], typeOf<' + $this.j24(_this__u8e3s4.xd_1.y25_1) + '>())';
1519
+ return Spacer_instance.l25(3) + $this.v25(_this__u8e3s4.xd_1.w25_1) + ' = serialization.deserialize(request.path[' + _this__u8e3s4.wd_1 + '], typeOf<' + $this.j24(_this__u8e3s4.xd_1.x25_1) + '>())';
1509
1520
  }
1510
1521
  function emitDeserializedParams_3(_this__u8e3s4, $this, type, fields, spaces) {
1511
1522
  return _this__u8e3s4.u25_1.sm() ? Spacer_instance.l25(spaces) + $this.v25(_this__u8e3s4.t25_1) + ' = ' + type + '.' + fields + '["' + _this__u8e3s4.t25_1.b1() + '"]?.let{ serialization.deserializeParam(it, typeOf<' + $this.j24(_this__u8e3s4.u25_1) + '>()) }' : Spacer_instance.l25(spaces) + $this.v25(_this__u8e3s4.t25_1) + ' = serialization.deserializeParam(requireNotNull(' + type + '.' + fields + '["' + _this__u8e3s4.t25_1.b1() + '"]) { "' + $this.v25(_this__u8e3s4.t25_1) + ' is null" }, typeOf<' + $this.j24(_this__u8e3s4.u25_1) + '>())';
@@ -1515,7 +1526,7 @@ function emitDeserializedParams$default(_this__u8e3s4, $this, type, fields, spac
1515
1526
  return emitDeserializedParams_3(_this__u8e3s4, $this, type, fields, spaces);
1516
1527
  }
1517
1528
  function emitIdentifier_0(_this__u8e3s4, $this) {
1518
- return 'request.path.' + $this.v25(_this__u8e3s4.x25_1) + '.let{serialization.serialize(it, typeOf<' + $this.j24(_this__u8e3s4.y25_1) + '>())}';
1529
+ return 'request.path.' + $this.v25(_this__u8e3s4.w25_1) + '.let{serialization.serialize(it, typeOf<' + $this.j24(_this__u8e3s4.x25_1) + '>())}';
1519
1530
  }
1520
1531
  function emit_3(_this__u8e3s4, $this) {
1521
1532
  var tmp1_safe_receiver = _this__u8e3s4 == null ? null : _this__u8e3s4.o25_1;
@@ -1524,7 +1535,7 @@ function emit_3(_this__u8e3s4, $this) {
1524
1535
  return tmp3_elvis_lhs == null ? 'Unit' : tmp3_elvis_lhs;
1525
1536
  }
1526
1537
  function emit_4(_this__u8e3s4, $this) {
1527
- return $this.v25(_this__u8e3s4.x25_1) + ': ' + $this.j24(_this__u8e3s4.y25_1);
1538
+ return $this.v25(_this__u8e3s4.w25_1) + ': ' + $this.j24(_this__u8e3s4.x25_1);
1528
1539
  }
1529
1540
  function brace(_this__u8e3s4, $this) {
1530
1541
  return wrap(_this__u8e3s4, $this, '(', ')');
@@ -1592,12 +1603,12 @@ function KotlinEmitter$emit$lambda(this$0) {
1592
1603
  }
1593
1604
  function KotlinEmitter$emit$lambda_0(this$0) {
1594
1605
  return function (it) {
1595
- return Spacer_instance.toString() + 'val ' + this$0.c26(it) + ',';
1606
+ return Spacer_instance.toString() + 'val ' + this$0.b26(it) + ',';
1596
1607
  };
1597
1608
  }
1598
1609
  function KotlinEmitter$emit$lambda_1(this$0) {
1599
1610
  return function (it) {
1600
- return this$0.e26(this$0.d26(it)) + '("' + it + '")';
1611
+ return this$0.d26(this$0.c26(it)) + '("' + it + '")';
1601
1612
  };
1602
1613
  }
1603
1614
  function KotlinEmitter$emit$lambda_2(it) {
@@ -1611,17 +1622,17 @@ function KotlinEmitter$emit$lambda_3(this$0) {
1611
1622
  }
1612
1623
  function KotlinEmitter$emit$lambda_4(this$0) {
1613
1624
  return function (it) {
1614
- return this$0.c26(it);
1625
+ return this$0.b26(it);
1615
1626
  };
1616
1627
  }
1617
1628
  function KotlinEmitter$emit$lambda_5(this$0) {
1618
1629
  return function (it) {
1619
- return this$0.c26(it);
1630
+ return this$0.b26(it);
1620
1631
  };
1621
1632
  }
1622
1633
  function KotlinEmitter$emit$lambda_6(this$0) {
1623
1634
  return function (it) {
1624
- return this$0.f26(it);
1635
+ return this$0.e26(it);
1625
1636
  };
1626
1637
  }
1627
1638
  function KotlinEmitter$emit$lambda_7(this$0) {
@@ -1636,7 +1647,7 @@ function KotlinEmitter$emit$lambda_8(this$0) {
1636
1647
  }
1637
1648
  function KotlinEmitter$emit$lambda_9(this$0) {
1638
1649
  return function (it) {
1639
- return this$0.g26(it);
1650
+ return this$0.f26(it);
1640
1651
  };
1641
1652
  }
1642
1653
  function KotlinEmitter$emitStatusInterfaces$lambda(it) {
@@ -1652,7 +1663,7 @@ function KotlinEmitter$emitObject$lambda($spaces, $block) {
1652
1663
  }
1653
1664
  function KotlinEmitter$emit$lambda_10(this$0) {
1654
1665
  return function (it) {
1655
- return this$0.v25(it.x25_1);
1666
+ return this$0.v25(it.w25_1);
1656
1667
  };
1657
1668
  }
1658
1669
  function KotlinEmitter$emit$lambda_11(this$0) {
@@ -1669,7 +1680,7 @@ function KotlinEmitter$emit$lambda_13(this$0) {
1669
1680
  return function (it) {
1670
1681
  var tmp;
1671
1682
  if (it instanceof Literal) {
1672
- tmp = '"' + it.h26_1 + '"';
1683
+ tmp = '"' + it.g26_1 + '"';
1673
1684
  } else {
1674
1685
  if (it instanceof Param_0) {
1675
1686
  tmp = emitIdentifier_0(it, this$0);
@@ -1692,7 +1703,7 @@ function KotlinEmitter$emit$lambda_15(this$0) {
1692
1703
  }
1693
1704
  function KotlinEmitter$emit$lambda_16(this$0) {
1694
1705
  return function (it) {
1695
- return 'val ' + this$0.c26(it);
1706
+ return 'val ' + this$0.b26(it);
1696
1707
  };
1697
1708
  }
1698
1709
  function KotlinEmitter$emit$lambda_17(this$0) {
@@ -1702,7 +1713,7 @@ function KotlinEmitter$emit$lambda_17(this$0) {
1702
1713
  }
1703
1714
  function KotlinEmitter$emit$lambda_18(this$0) {
1704
1715
  return function (it) {
1705
- return this$0.c26(it);
1716
+ return this$0.b26(it);
1706
1717
  };
1707
1718
  }
1708
1719
  function KotlinEmitter$emitConstructor$lambda(this$0) {
@@ -1712,12 +1723,12 @@ function KotlinEmitter$emitConstructor$lambda(this$0) {
1712
1723
  }
1713
1724
  function KotlinEmitter$emitConstructor$lambda_0(this$0) {
1714
1725
  return function (it) {
1715
- return Spacer_instance.l25(2) + this$0.c26(it);
1726
+ return Spacer_instance.l25(2) + this$0.b26(it);
1716
1727
  };
1717
1728
  }
1718
1729
  function KotlinEmitter$emitConstructor$lambda_1(this$0) {
1719
1730
  return function (it) {
1720
- return Spacer_instance.l25(2) + this$0.c26(it);
1731
+ return Spacer_instance.l25(2) + this$0.b26(it);
1721
1732
  };
1722
1733
  }
1723
1734
  function KotlinEmitter$emitDeserializedParams$lambda(this$0) {
@@ -1750,8 +1761,8 @@ function KotlinEmitter$sanitizeSymbol$lambda(it) {
1750
1761
  }
1751
1762
  function KotlinEmitter(packageName, emitShared) {
1752
1763
  Companion_getInstance_1();
1753
- packageName = packageName === VOID ? Companion_instance_6.i26('community.flock.wirespec.generated') : packageName;
1754
- emitShared = emitShared === VOID ? Companion_instance_4.j26() : emitShared;
1764
+ packageName = packageName === VOID ? Companion_instance_6.h26('community.flock.wirespec.generated') : packageName;
1765
+ emitShared = emitShared === VOID ? Companion_instance_4.i26() : emitShared;
1755
1766
  Emitter.call(this);
1756
1767
  this.i28_1 = packageName;
1757
1768
  this.j28_1 = emitShared;
@@ -1760,42 +1771,42 @@ function KotlinEmitter(packageName, emitShared) {
1760
1771
  this.m28_1 = KotlinShared_getInstance();
1761
1772
  this.n28_1 = '//';
1762
1773
  }
1763
- protoOf(KotlinEmitter).k26 = function () {
1774
+ protoOf(KotlinEmitter).j26 = function () {
1764
1775
  return this.l28_1;
1765
1776
  };
1766
- protoOf(KotlinEmitter).l26 = function () {
1777
+ protoOf(KotlinEmitter).k26 = function () {
1767
1778
  return this.m28_1;
1768
1779
  };
1769
- protoOf(KotlinEmitter).m26 = function () {
1780
+ protoOf(KotlinEmitter).l26 = function () {
1770
1781
  return this.n28_1;
1771
1782
  };
1772
- protoOf(KotlinEmitter).n26 = function (module_0, logger) {
1783
+ protoOf(KotlinEmitter).m26 = function (module_0, logger) {
1773
1784
  // Inline function 'kotlin.let' call
1774
1785
  // Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emit.<anonymous>' call
1775
- var it = protoOf(Emitter).n26.call(this, module_0, logger);
1776
- return this.j28_1.r26_1 ? it.al(new Emitted(Companion_instance_6.i26('community.flock.wirespec').o26() + 'Wirespec', this.l26().r28_1)) : it;
1786
+ var it = protoOf(Emitter).m26.call(this, module_0, logger);
1787
+ return this.j28_1.q26_1 ? it.al(new Emitted(Companion_instance_6.h26('community.flock.wirespec').n26() + 'Wirespec', this.k26().r28_1)) : it;
1777
1788
  };
1778
- protoOf(KotlinEmitter).s26 = function (definition, module_0, logger) {
1789
+ protoOf(KotlinEmitter).r26 = function (definition, module_0, logger) {
1779
1790
  // Inline function 'kotlin.let' call
1780
1791
  // Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emit.<anonymous>' call
1781
- var it = protoOf(Emitter).s26.call(this, definition, module_0, logger);
1792
+ var it = protoOf(Emitter).r26.call(this, definition, module_0, logger);
1782
1793
  var subPackageName = plus_0(this.i28_1, definition);
1783
- var tmp = subPackageName.o26() + sanitizeSymbol_0(it.t26_1, this);
1794
+ var tmp = subPackageName.n26() + sanitizeSymbol_0(it.s26_1, this);
1784
1795
  // Inline function 'kotlin.text.trimStart' call
1785
- var this_0 = trimMargin('\n |package ' + subPackageName.toString() + '\n |' + (Companion_instance_5.v26(module_0) ? this.k28_1 : '') + '\n |' + it.u26_1 + '\n ');
1796
+ var this_0 = trimMargin('\n |package ' + subPackageName.toString() + '\n |' + (Companion_instance_5.u26(module_0) ? this.k28_1 : '') + '\n |' + it.t26_1 + '\n ');
1786
1797
  var tmp$ret$0 = toString(trimStart(isCharSequence(this_0) ? this_0 : THROW_CCE()));
1787
1798
  return new Emitted(tmp, tmp$ret$0);
1788
1799
  };
1789
- protoOf(KotlinEmitter).w26 = function (type, module_0) {
1800
+ protoOf(KotlinEmitter).v26 = function (type, module_0) {
1790
1801
  var tmp;
1791
- if (type.z26_1.i27_1.l()) {
1792
- tmp = 'data object ' + this.v25(type.y26_1);
1802
+ if (type.y26_1.h27_1.l()) {
1803
+ tmp = 'data object ' + this.v25(type.x26_1);
1793
1804
  } else {
1794
- var tmp_0 = this.v25(type.y26_1);
1795
- var tmp_1 = this.b27(type.z26_1);
1805
+ var tmp_0 = this.v25(type.x26_1);
1806
+ var tmp_1 = this.a27(type.y26_1);
1796
1807
  // Inline function 'kotlin.run' call
1797
1808
  // Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emit.<anonymous>' call
1798
- var $this$run = type.a27_1;
1809
+ var $this$run = type.z26_1;
1799
1810
  var tmp_2;
1800
1811
  if ($this$run.l()) {
1801
1812
  tmp_2 = '';
@@ -1807,10 +1818,10 @@ protoOf(KotlinEmitter).w26 = function (type, module_0) {
1807
1818
  }
1808
1819
  return tmp;
1809
1820
  };
1810
- protoOf(KotlinEmitter).b27 = function (_this__u8e3s4) {
1811
- return dropLast(joinToString(_this__u8e3s4.i27_1, '\n', VOID, VOID, VOID, VOID, KotlinEmitter$emit$lambda_0(this)), 1);
1821
+ protoOf(KotlinEmitter).a27 = function (_this__u8e3s4) {
1822
+ return dropLast(joinToString(_this__u8e3s4.h27_1, '\n', VOID, VOID, VOID, VOID, KotlinEmitter$emit$lambda_0(this)), 1);
1812
1823
  };
1813
- protoOf(KotlinEmitter).c26 = function (_this__u8e3s4) {
1824
+ protoOf(KotlinEmitter).b26 = function (_this__u8e3s4) {
1814
1825
  return this.v25(_this__u8e3s4.t25_1) + ': ' + this.j24(_this__u8e3s4.u25_1);
1815
1826
  };
1816
1827
  protoOf(KotlinEmitter).j24 = function (_this__u8e3s4) {
@@ -1898,7 +1909,7 @@ protoOf(KotlinEmitter).v25 = function (identifier) {
1898
1909
  tmp = sanitizeSymbol_0(identifier.b1(), this);
1899
1910
  } else {
1900
1911
  if (identifier instanceof FieldIdentifier) {
1901
- tmp = this.e26(sanitizeSymbol_0(identifier.b1(), this));
1912
+ tmp = this.d26(sanitizeSymbol_0(identifier.b1(), this));
1902
1913
  } else {
1903
1914
  noWhenBranchMatchedException();
1904
1915
  }
@@ -1916,7 +1927,7 @@ protoOf(KotlinEmitter).q27 = function (enum_0, module_0) {
1916
1927
  return trimMargin('\n |enum class ' + tmp + ' (override val label: String): Wirespec.Enum {\n |' + this.u27(joinToString(enum_0.t27_1, ',\n', VOID, VOID, VOID, VOID, KotlinEmitter$emit$lambda_1(this))) + ';\n |' + Spacer_instance.toString() + 'override fun toString(): String {\n |' + Spacer_instance.l25(2) + 'return label\n |' + Spacer_instance.toString() + '}\n |}\n |\n ');
1917
1928
  };
1918
1929
  protoOf(KotlinEmitter).v27 = function (union) {
1919
- return trimMargin('\n |sealed interface ' + this.v25(union.g27_1) + '\n |\n ');
1930
+ return trimMargin('\n |sealed interface ' + this.v25(union.f27_1) + '\n |\n ');
1920
1931
  };
1921
1932
  protoOf(KotlinEmitter).w27 = function (channel) {
1922
1933
  return trimMargin('\n |interface ' + this.v25(channel.z27_1) + 'Channel {\n | operator fun invoke(message: ' + this.j24(channel.a28_1) + ')\n |}\n |\n ');
@@ -1977,7 +1988,7 @@ protoOf(KotlinEmitter).c28 = function (endpoint) {
1977
1988
  return trimMargin('\n |' + tmp_0 + '\n |\n |object ' + tmp_1 + ' : Wirespec.Endpoint {\n |' + tmp_3 + '\n |\n |' + tmp_4 + '\n |\n |' + tmp_5 + '\n |\n |' + tmp_6 + '\n |\n |' + tmp_7 + 'sealed interface Response<T: Any> : Wirespec.Response<T>\n |\n |' + tmp_8 + '\n |\n |' + tmp_9 + '\n |\n |' + tmp_11 + '\n |\n |' + tmp_12 + 'fun toResponse(serialization: Wirespec.Serializer<String>, response: Response<*>): Wirespec.RawResponse =\n |' + tmp_13 + 'when(response) {\n |' + tmp_15 + '\n |' + tmp_16 + '}\n |\n |' + tmp_17 + 'fun fromResponse(serialization: Wirespec.Deserializer<String>, response: Wirespec.RawResponse): Response<*> =\n |' + tmp_18 + 'when (response.statusCode) {\n |' + tmp_20 + '\n |' + tmp_21 + 'else -> error("Cannot match response with status: ${response.statusCode}")\n |' + tmp_22 + '}\n |\n |' + tmp_23 + 'interface Handler: Wirespec.Handler {\n |' + tmp_24 + tmp_25 + '\n |' + tmp_26 + 'companion object: Wirespec.Server<Request, Response<*>>, Wirespec.Client<Request, Response<*>> {\n |' + tmp_27 + 'override val pathTemplate = "/' + joinToString(endpoint.b25_1, '/', VOID, VOID, VOID, VOID, KotlinEmitter$emit$lambda_9(this)) + '"\n |' + Spacer_instance.l25(3) + 'override val method = "' + endpoint.a25_1.toString() + '"\n |' + Spacer_instance.l25(3) + 'override fun server(serialization: Wirespec.Serialization<String>) = object : Wirespec.ServerEdge<Request, Response<*>> {\n |' + Spacer_instance.l25(4) + 'override fun from(request: Wirespec.RawRequest) = fromRequest(serialization, request)\n |' + Spacer_instance.l25(4) + 'override fun to(response: Response<*>) = toResponse(serialization, response)\n |' + Spacer_instance.l25(3) + '}\n |' + Spacer_instance.l25(3) + 'override fun client(serialization: Wirespec.Serialization<String>) = object : Wirespec.ClientEdge<Request, Response<*>> {\n |' + Spacer_instance.l25(4) + 'override fun to(request: Request) = toRequest(serialization, request)\n |' + Spacer_instance.l25(4) + 'override fun from(response: Wirespec.RawResponse) = fromResponse(serialization, response)\n |' + Spacer_instance.l25(3) + '}\n |' + Spacer_instance.l25(2) + '}\n |' + Spacer_instance.toString() + '}\n |}\n |\n ');
1978
1989
  };
1979
1990
  protoOf(KotlinEmitter).f28 = function (endpoint) {
1980
- return 'suspend fun ' + Companion_instance_5.z25(this.v25(endpoint.z24_1)) + '(request: Request): Response<*>';
1991
+ return 'suspend fun ' + Companion_instance_5.y25(this.v25(endpoint.z24_1)) + '(request: Request): Response<*>';
1981
1992
  };
1982
1993
  protoOf(KotlinEmitter).d28 = function (_this__u8e3s4, endpoint) {
1983
1994
  var tmp = Spacer_instance.toString();
@@ -2016,7 +2027,7 @@ protoOf(KotlinEmitter).d28 = function (_this__u8e3s4, endpoint) {
2016
2027
  }
2017
2028
  return trimMargin('\n |' + tmp + tmp_0 + '\n |' + tmp_1 + 'override val path = Path' + tmp_3 + '\n |' + tmp_4 + 'override val method = Wirespec.Method.' + endpoint.a25_1.q2_1 + '\n |' + tmp_5 + 'override val queries = Queries' + tmp_6 + '\n |' + tmp_7 + 'override val headers = Headers' + tmp_8 + tmp_9 + '\n |' + tmp_10 + '}\n |\n |' + tmp_11 + 'fun toRequest(serialization: Wirespec.Serializer<String>, request: Request): Wirespec.RawRequest =\n |' + tmp_12 + 'Wirespec.RawRequest(\n |' + tmp_13 + 'path = listOf(' + tmp_14 + '),\n |' + tmp_15 + 'method = request.method.name,\n |' + tmp_16 + 'queries = ' + tmp_18 + ',\n |' + tmp_19 + 'headers = ' + tmp_20 + ',\n |' + Spacer_instance.l25(3) + 'body = serialization.serialize(request.body, typeOf<' + emit_3(_this__u8e3s4.m25_1, this) + '>()),\n |' + Spacer_instance.l25(2) + ')\n |\n |' + Spacer_instance.toString() + 'fun fromRequest(serialization: Wirespec.Deserializer<String>, request: Wirespec.RawRequest): Request =\n |' + Spacer_instance.l25(2) + 'Request' + emitDeserializedParams_2(_this__u8e3s4, this, endpoint) + '\n ');
2018
2029
  };
2019
- protoOf(KotlinEmitter).f26 = function (_this__u8e3s4) {
2030
+ protoOf(KotlinEmitter).e26 = function (_this__u8e3s4) {
2020
2031
  var tmp = Spacer_instance.toString();
2021
2032
  var tmp_0 = emit_3(_this__u8e3s4.i25_1, this);
2022
2033
  // Inline function 'kotlin.let' call
@@ -2032,17 +2043,17 @@ protoOf(KotlinEmitter).f26 = function (_this__u8e3s4) {
2032
2043
  var tmp_8 = brace(joinToString(_this__u8e3s4.h25_1, VOID, VOID, VOID, VOID, VOID, KotlinEmitter$emit$lambda_17(this)), this);
2033
2044
  return trimMargin('\n |' + tmp + 'data class Response' + _this__u8e3s4.g25_1 + '(override val body: ' + tmp_0 + tmp_1 + ') : Response' + tmp_2 + 'XX<' + tmp_3 + '>, Response' + tmp_4 + ' {\n |' + tmp_5 + 'override val status = ' + tmp_6 + '\n |' + tmp_7 + 'override val headers = ResponseHeaders' + tmp_8 + '\n |' + emitObject_0(_this__u8e3s4.h25_1, this, 'ResponseHeaders', 'Wirespec.Response.Headers', 2, KotlinEmitter$emit$lambda_18(this)) + '\n |' + Spacer_instance.toString() + '}\n ');
2034
2045
  };
2035
- protoOf(KotlinEmitter).d26 = function (_this__u8e3s4) {
2046
+ protoOf(KotlinEmitter).c26 = function (_this__u8e3s4) {
2036
2047
  return sanitizeFirstIsDigit_0(joinToString(split(_this__u8e3s4, ['-', ', ', '.', ' ', '//']), '_'), this);
2037
2048
  };
2038
- protoOf(KotlinEmitter).e26 = function (_this__u8e3s4) {
2049
+ protoOf(KotlinEmitter).d26 = function (_this__u8e3s4) {
2039
2050
  return Companion_getInstance_1().o28_1.o1(_this__u8e3s4) ? addBackticks(_this__u8e3s4) : _this__u8e3s4;
2040
2051
  };
2041
2052
  function emitReferenceCustomImports(_this__u8e3s4, $this) {
2042
2053
  return 'from ..model.' + _this__u8e3s4.y23_1 + ' import ' + _this__u8e3s4.y23_1;
2043
2054
  }
2044
2055
  function emit_5(_this__u8e3s4, $this) {
2045
- return $this.v25(_this__u8e3s4.x25_1) + ': ' + $this.j24(_this__u8e3s4.y25_1) + ' ';
2056
+ return $this.v25(_this__u8e3s4.w25_1) + ': ' + $this.j24(_this__u8e3s4.x25_1) + ' ';
2046
2057
  }
2047
2058
  function emit_6(_this__u8e3s4, $this) {
2048
2059
  return $this.v25(_this__u8e3s4.z28_1) + ': ' + $this.j24(_this__u8e3s4.a29_1);
@@ -2230,7 +2241,7 @@ function emitDeserializedParams_4(_this__u8e3s4, $this, endpoint) {
2230
2241
  return isBlank(it) ? '' : '(\n' + it + '\n)';
2231
2242
  }
2232
2243
  function emitDeserialized_3(_this__u8e3s4, $this) {
2233
- return Spacer_instance.l25(3) + $this.v25(_this__u8e3s4.xd_1.x25_1) + ' = serialization.deserialize(request.path[' + _this__u8e3s4.wd_1 + '], ' + emitType_0(_this__u8e3s4.xd_1.y25_1, $this) + ')';
2244
+ return Spacer_instance.l25(3) + $this.v25(_this__u8e3s4.xd_1.w25_1) + ' = serialization.deserialize(request.path[' + _this__u8e3s4.wd_1 + '], ' + emitType_0(_this__u8e3s4.xd_1.x25_1, $this) + ')';
2234
2245
  }
2235
2246
  function emitDeserializedParams_5(_this__u8e3s4, $this, type, fields) {
2236
2247
  return $this.v25(_this__u8e3s4.t25_1) + ' = serialization.deserialize_param(' + type + '.' + fields + '.get("' + _this__u8e3s4.t25_1.b1() + '".lower()), ' + emitType_0(_this__u8e3s4.u25_1, $this) + ')';
@@ -2435,7 +2446,7 @@ function PythonEmitter$emit$lambda_1(this$0) {
2435
2446
  }
2436
2447
  function PythonEmitter$emit$lambda_2(this$0) {
2437
2448
  return function (it) {
2438
- return Spacer_instance.toString() + this$0.c26(it);
2449
+ return Spacer_instance.toString() + this$0.b26(it);
2439
2450
  };
2440
2451
  }
2441
2452
  function PythonEmitter$emitAssignSelf$lambda(this$0) {
@@ -2478,12 +2489,12 @@ function PythonEmitter$emit$lambda_5(this$0) {
2478
2489
  }
2479
2490
  function PythonEmitter$emit$lambda_6(this$0) {
2480
2491
  return function (it) {
2481
- return this$0.c26(it);
2492
+ return this$0.b26(it);
2482
2493
  };
2483
2494
  }
2484
2495
  function PythonEmitter$emit$lambda_7(this$0) {
2485
2496
  return function (it) {
2486
- return this$0.c26(it);
2497
+ return this$0.b26(it);
2487
2498
  };
2488
2499
  }
2489
2500
  function PythonEmitter$emit$lambda_8(this$0) {
@@ -2495,10 +2506,10 @@ function PythonEmitter$emitToRawRequest$lambda(this$0) {
2495
2506
  return function (it) {
2496
2507
  var tmp;
2497
2508
  if (it instanceof Literal) {
2498
- tmp = '"' + it.h26_1 + '"';
2509
+ tmp = '"' + it.g26_1 + '"';
2499
2510
  } else {
2500
2511
  if (it instanceof Param_0) {
2501
- tmp = 'str(request.path.' + this$0.v25(it.x25_1) + ')';
2512
+ tmp = 'str(request.path.' + this$0.v25(it.w25_1) + ')';
2502
2513
  } else {
2503
2514
  noWhenBranchMatchedException();
2504
2515
  }
@@ -2533,7 +2544,7 @@ function PythonEmitter$emitDeserializedParams$lambda_1(this$0) {
2533
2544
  }
2534
2545
  function PythonEmitter$emit$lambda_9(this$0) {
2535
2546
  return function (it) {
2536
- return this$0.c26(it);
2547
+ return this$0.b26(it);
2537
2548
  };
2538
2549
  }
2539
2550
  function PythonEmitter$emit$lambda_10(this$0) {
@@ -2568,13 +2579,13 @@ function PythonEmitter$emitObject$lambda($spaces, $block) {
2568
2579
  }
2569
2580
  function PythonEmitter$emit$lambda_11(this$0) {
2570
2581
  return function (it) {
2571
- return Spacer_instance.toString() + this$0.e26(this$0.d26(it)) + ' = "' + it + '"';
2582
+ return Spacer_instance.toString() + this$0.d26(this$0.c26(it)) + ' = "' + it + '"';
2572
2583
  };
2573
2584
  }
2574
2585
  function PythonEmitter(packageName, emitShared) {
2575
2586
  Companion_getInstance_2();
2576
- packageName = packageName === VOID ? Companion_instance_6.i26('community.flock.wirespec.generated') : packageName;
2577
- emitShared = emitShared === VOID ? Companion_instance_4.j26() : emitShared;
2587
+ packageName = packageName === VOID ? Companion_instance_6.h26('community.flock.wirespec.generated') : packageName;
2588
+ emitShared = emitShared === VOID ? Companion_instance_4.i26() : emitShared;
2578
2589
  Emitter.call(this);
2579
2590
  this.s28_1 = packageName;
2580
2591
  this.t28_1 = emitShared;
@@ -2583,13 +2594,13 @@ function PythonEmitter(packageName, emitShared) {
2583
2594
  this.w28_1 = PythonShared_instance;
2584
2595
  this.x28_1 = '#';
2585
2596
  }
2586
- protoOf(PythonEmitter).k26 = function () {
2597
+ protoOf(PythonEmitter).j26 = function () {
2587
2598
  return this.v28_1;
2588
2599
  };
2589
- protoOf(PythonEmitter).l26 = function () {
2600
+ protoOf(PythonEmitter).k26 = function () {
2590
2601
  return this.w28_1;
2591
2602
  };
2592
- protoOf(PythonEmitter).m26 = function () {
2603
+ protoOf(PythonEmitter).l26 = function () {
2593
2604
  return this.x28_1;
2594
2605
  };
2595
2606
  protoOf(PythonEmitter).h29 = function (definition) {
@@ -2621,9 +2632,9 @@ protoOf(PythonEmitter).h29 = function (definition) {
2621
2632
  }
2622
2633
  return tmp;
2623
2634
  };
2624
- protoOf(PythonEmitter).n26 = function (module_0, logger) {
2635
+ protoOf(PythonEmitter).m26 = function (module_0, logger) {
2625
2636
  // Inline function 'kotlin.collections.sortedBy' call
2626
- var this_0 = module_0.e27_1;
2637
+ var this_0 = module_0.d27_1;
2627
2638
  // Inline function 'kotlin.comparisons.compareBy' call
2628
2639
  var tmp = PythonEmitter$emit$lambda(this);
2629
2640
  var tmp$ret$0 = new sam$kotlin_Comparator$0(tmp);
@@ -2631,11 +2642,11 @@ protoOf(PythonEmitter).n26 = function (module_0, logger) {
2631
2642
  var statements = ensureNotNull(toNonEmptyListOrNull(tmp$ret$1));
2632
2643
  // Inline function 'kotlin.let' call
2633
2644
  // Inline function 'community.flock.wirespec.compiler.core.emit.PythonEmitter.emit.<anonymous>' call
2634
- var it = protoOf(Emitter).n26.call(this, module_0.j29(VOID, statements), logger);
2635
- var init = new Emitted(this.s28_1.o26() + '__init__', 'from . import model\nfrom . import endpoint\nfrom . import wirespec\n');
2636
- var tmp_0 = this.s28_1.o26() + 'endpoint/' + '__init__';
2645
+ var it = protoOf(Emitter).m26.call(this, module_0.j29(VOID, statements), logger);
2646
+ var init = new Emitted(this.s28_1.n26() + '__init__', 'from . import model\nfrom . import endpoint\nfrom . import wirespec\n');
2647
+ var tmp_0 = this.s28_1.n26() + 'endpoint/' + '__init__';
2637
2648
  // Inline function 'kotlin.collections.filter' call
2638
- var tmp0 = module_0.e27_1;
2649
+ var tmp0 = module_0.d27_1;
2639
2650
  // Inline function 'kotlin.collections.filterTo' call
2640
2651
  var destination = ArrayList_init_$Create$_0();
2641
2652
  var _iterator__ex2g4s = tmp0.g();
@@ -2657,9 +2668,9 @@ protoOf(PythonEmitter).n26 = function (module_0, logger) {
2657
2668
  destination_0.e(tmp$ret$5);
2658
2669
  }
2659
2670
  var initEndpoint = new Emitted(tmp_0, joinToString(destination_0, '\n'));
2660
- var tmp_1 = this.s28_1.o26() + 'model/' + '__init__';
2671
+ var tmp_1 = this.s28_1.n26() + 'model/' + '__init__';
2661
2672
  // Inline function 'kotlin.collections.filter' call
2662
- var tmp0_0 = module_0.e27_1;
2673
+ var tmp0_0 = module_0.d27_1;
2663
2674
  // Inline function 'kotlin.collections.filterTo' call
2664
2675
  var destination_1 = ArrayList_init_$Create$_0();
2665
2676
  var _iterator__ex2g4s_1 = tmp0_0.g();
@@ -2681,39 +2692,39 @@ protoOf(PythonEmitter).n26 = function (module_0, logger) {
2681
2692
  destination_2.e(tmp$ret$11);
2682
2693
  }
2683
2694
  var initModel = new Emitted(tmp_1, joinToString(destination_2, '\n'));
2684
- var shared = new Emitted(this.s28_1.o26() + 'wirespec', this.l26().l29_1);
2685
- return this.t28_1.r26_1 ? it.al(init).al(initEndpoint).al(initModel).al(shared) : it.al(init);
2695
+ var shared = new Emitted(this.s28_1.n26() + 'wirespec', this.k26().l29_1);
2696
+ return this.t28_1.q26_1 ? it.al(init).al(initEndpoint).al(initModel).al(shared) : it.al(init);
2686
2697
  };
2687
- protoOf(PythonEmitter).s26 = function (definition, module_0, logger) {
2698
+ protoOf(PythonEmitter).r26 = function (definition, module_0, logger) {
2688
2699
  var subPackageName = plus_0(this.s28_1, definition);
2689
2700
  // Inline function 'kotlin.let' call
2690
2701
  // Inline function 'community.flock.wirespec.compiler.core.emit.PythonEmitter.emit.<anonymous>' call
2691
- var it = protoOf(Emitter).s26.call(this, definition, module_0, logger);
2692
- var tmp = subPackageName.o26() + sanitizeSymbol_1(it.t26_1, this);
2702
+ var it = protoOf(Emitter).r26.call(this, definition, module_0, logger);
2703
+ var tmp = subPackageName.n26() + sanitizeSymbol_1(it.s26_1, this);
2693
2704
  // Inline function 'kotlin.text.trimStart' call
2694
- var this_0 = trimMargin('\n |' + this.u28_1 + '\n |' + it.u26_1 + '\n ');
2705
+ var this_0 = trimMargin('\n |' + this.u28_1 + '\n |' + it.t26_1 + '\n ');
2695
2706
  var tmp$ret$0 = toString(trimStart(isCharSequence(this_0) ? this_0 : THROW_CCE()));
2696
2707
  return new Emitted(tmp, tmp$ret$0);
2697
2708
  };
2698
- protoOf(PythonEmitter).w26 = function (type, module_0) {
2709
+ protoOf(PythonEmitter).v26 = function (type, module_0) {
2699
2710
  var tmp;
2700
- if (type.z26_1.i27_1.l()) {
2701
- var tmp_0 = this.v25(type.y26_1);
2711
+ if (type.y26_1.h27_1.l()) {
2712
+ var tmp_0 = this.v25(type.x26_1);
2702
2713
  var tmp_1 = Spacer_instance.toString();
2703
2714
  var tmp_2 = this.b28(type);
2704
2715
  tmp = trimMargin('\n |@dataclass\n |class ' + tmp_0 + ':\n |' + tmp_1 + 'pass\n |\n |' + joinToString(tmp_2, '\n', VOID, VOID, VOID, VOID, PythonEmitter$emit$lambda_0(this)) + '\n |\n ');
2705
2716
  } else {
2706
- var tmp_3 = this.v25(type.y26_1);
2707
- var tmp_4 = this.b27(type.z26_1);
2717
+ var tmp_3 = this.v25(type.x26_1);
2718
+ var tmp_4 = this.a27(type.y26_1);
2708
2719
  var tmp_5 = this.b28(type);
2709
2720
  tmp = trimMargin('\n |@dataclass\n |class ' + tmp_3 + ':\n |' + tmp_4 + '\n |\n |' + joinToString(tmp_5, '\n', VOID, VOID, VOID, VOID, PythonEmitter$emit$lambda_1(this)) + '\n ');
2710
2721
  }
2711
2722
  return tmp;
2712
2723
  };
2713
- protoOf(PythonEmitter).b27 = function (_this__u8e3s4) {
2714
- return joinToString(_this__u8e3s4.i27_1, '\n', VOID, VOID, VOID, VOID, PythonEmitter$emit$lambda_2(this));
2724
+ protoOf(PythonEmitter).a27 = function (_this__u8e3s4) {
2725
+ return joinToString(_this__u8e3s4.h27_1, '\n', VOID, VOID, VOID, VOID, PythonEmitter$emit$lambda_2(this));
2715
2726
  };
2716
- protoOf(PythonEmitter).c26 = function (_this__u8e3s4) {
2727
+ protoOf(PythonEmitter).b26 = function (_this__u8e3s4) {
2717
2728
  return this.v25(_this__u8e3s4.t25_1) + ": '" + this.j24(_this__u8e3s4.u25_1) + "'";
2718
2729
  };
2719
2730
  protoOf(PythonEmitter).j24 = function (_this__u8e3s4) {
@@ -2753,7 +2764,7 @@ protoOf(PythonEmitter).v25 = function (identifier) {
2753
2764
  tmp = sanitizeSymbol_1(identifier.b1(), this);
2754
2765
  } else {
2755
2766
  if (identifier instanceof FieldIdentifier) {
2756
- tmp = this.e26(sanitizeSymbol_1(identifier.b1(), this));
2767
+ tmp = this.d26(sanitizeSymbol_1(identifier.b1(), this));
2757
2768
  } else {
2758
2769
  noWhenBranchMatchedException();
2759
2770
  }
@@ -2832,9 +2843,9 @@ protoOf(PythonEmitter).q27 = function (enum_0, module_0) {
2832
2843
  return trimMargin('\n |class ' + tmp + '(str, Enum):\n |' + joinToString(enum_0.t27_1, '\n', VOID, VOID, VOID, VOID, PythonEmitter$emit$lambda_11(this)) + '\n |\n |' + Spacer_instance.toString() + '@property\n |' + Spacer_instance.toString() + 'def label(self) -> str:\n |' + Spacer_instance.l25(2) + 'return self.value\n |\n |' + Spacer_instance.toString() + 'def __str__(self) -> str:\n |' + Spacer_instance.l25(2) + 'return self.value\n ');
2833
2844
  };
2834
2845
  protoOf(PythonEmitter).v27 = function (union) {
2835
- return trimMargin('\n |class ' + this.v25(union.g27_1) + '(ABC):\n |' + Spacer_instance.toString() + 'pass\n ');
2846
+ return trimMargin('\n |class ' + this.v25(union.f27_1) + '(ABC):\n |' + Spacer_instance.toString() + 'pass\n ');
2836
2847
  };
2837
- protoOf(PythonEmitter).d26 = function (_this__u8e3s4) {
2848
+ protoOf(PythonEmitter).c26 = function (_this__u8e3s4) {
2838
2849
  // Inline function 'kotlin.let' call
2839
2850
  // Inline function 'community.flock.wirespec.compiler.core.emit.PythonEmitter.sanitizeEnum.<anonymous>' call
2840
2851
  var it = joinToString(split(_this__u8e3s4, ['-', ', ', '.', ' ', '//']), '_');
@@ -2854,11 +2865,11 @@ protoOf(PythonEmitter).d26 = function (_this__u8e3s4) {
2854
2865
  }
2855
2866
  return tmp;
2856
2867
  };
2857
- protoOf(PythonEmitter).e26 = function (_this__u8e3s4) {
2868
+ protoOf(PythonEmitter).d26 = function (_this__u8e3s4) {
2858
2869
  return Companion_getInstance_2().e29_1.o1(_this__u8e3s4) ? '_' + _this__u8e3s4 : _this__u8e3s4;
2859
2870
  };
2860
2871
  function emitHandleFunction($this, endpoint) {
2861
- return Companion_instance_5.z25(sanitizeSymbol_2(endpoint.z24_1, $this)) + ': (request:Request) => Promise<Response>';
2872
+ return Companion_instance_5.y25(sanitizeSymbol_2(endpoint.z24_1, $this)) + ': (request:Request) => Promise<Response>';
2862
2873
  }
2863
2874
  function emitType_1(_this__u8e3s4, $this, name, block) {
2864
2875
  var tmp;
@@ -3050,7 +3061,7 @@ function emitServerTo($this) {
3050
3061
  return trimMargin('\n |to: (it) => ({\n |' + Spacer_instance.l25(1) + 'status: it.status,\n |' + Spacer_instance.l25(1) + 'headers: {},\n |' + Spacer_instance.l25(1) + 'body: serialization.serialize(it.body),\n |})\n ');
3051
3062
  }
3052
3063
  function emitDeserialize(_this__u8e3s4, $this) {
3053
- return $this.v25(_this__u8e3s4.xd_1.x25_1) + ': serialization.deserialize(it.path[' + _this__u8e3s4.wd_1 + '])';
3064
+ return $this.v25(_this__u8e3s4.xd_1.w25_1) + ': serialization.deserialize(it.path[' + _this__u8e3s4.wd_1 + '])';
3054
3065
  }
3055
3066
  function emitDeserialize_0(_this__u8e3s4, $this, fields) {
3056
3067
  return $this.v25(_this__u8e3s4.t25_1) + ': serialization.deserialize(it.' + fields + '[' + $this.v25(_this__u8e3s4.t25_1) + '])';
@@ -3063,7 +3074,7 @@ function TypeScriptEmitter$emit$lambda(it) {
3063
3074
  }
3064
3075
  function TypeScriptEmitter$emit$lambda_0(this$0) {
3065
3076
  return function (it) {
3066
- return this$0.c26(it);
3077
+ return this$0.b26(it);
3067
3078
  };
3068
3079
  }
3069
3080
  function TypeScriptEmitter$emit$lambda_1(this$0) {
@@ -3073,12 +3084,12 @@ function TypeScriptEmitter$emit$lambda_1(this$0) {
3073
3084
  }
3074
3085
  function TypeScriptEmitter$emit$lambda_2(this$0) {
3075
3086
  return function (it) {
3076
- return this$0.c26(it);
3087
+ return this$0.b26(it);
3077
3088
  };
3078
3089
  }
3079
3090
  function TypeScriptEmitter$emit$lambda_3(this$0) {
3080
3091
  return function (it) {
3081
- return this$0.c26(it);
3092
+ return this$0.b26(it);
3082
3093
  };
3083
3094
  }
3084
3095
  function TypeScriptEmitter$emit$lambda_4(this$0) {
@@ -3098,7 +3109,7 @@ function TypeScriptEmitter$emit$lambda_6(this$0) {
3098
3109
  }
3099
3110
  function TypeScriptEmitter$emit$lambda_7(this$0) {
3100
3111
  return function (it) {
3101
- return this$0.g26(it);
3112
+ return this$0.f26(it);
3102
3113
  };
3103
3114
  }
3104
3115
  function TypeScriptEmitter$emit$lambda_8(this$0) {
@@ -3118,7 +3129,7 @@ function TypeScriptEmitter$emitFunction$lambda(this$0) {
3118
3129
  }
3119
3130
  function TypeScriptEmitter$emitFunction$lambda_0(this$0) {
3120
3131
  return function (it) {
3121
- return this$0.v25(it.x25_1) + ': props[' + this$0.v25(it.x25_1) + ']';
3132
+ return this$0.v25(it.w25_1) + ': props[' + this$0.v25(it.w25_1) + ']';
3122
3133
  };
3123
3134
  }
3124
3135
  function TypeScriptEmitter$emitFunction$lambda_1(this$0) {
@@ -3153,10 +3164,10 @@ function TypeScriptEmitter$emitPathArray$lambda(this$0) {
3153
3164
  return function (it) {
3154
3165
  var tmp;
3155
3166
  if (it instanceof Literal) {
3156
- tmp = '"' + it.h26_1 + '"';
3167
+ tmp = '"' + it.g26_1 + '"';
3157
3168
  } else {
3158
3169
  if (it instanceof Param_0) {
3159
- tmp = 'serialization.serialize(it.path[' + this$0.v25(it.x25_1) + '])';
3170
+ tmp = 'serialization.serialize(it.path[' + this$0.v25(it.w25_1) + '])';
3160
3171
  } else {
3161
3172
  noWhenBranchMatchedException();
3162
3173
  }
@@ -3200,29 +3211,29 @@ function TypeScriptEmitter$emitServerFrom$lambda_1(this$0) {
3200
3211
  };
3201
3212
  }
3202
3213
  function TypeScriptEmitter(emitShared) {
3203
- emitShared = emitShared === VOID ? Companion_instance_4.j26() : emitShared;
3214
+ emitShared = emitShared === VOID ? Companion_instance_4.i26() : emitShared;
3204
3215
  Emitter.call(this);
3205
3216
  this.m29_1 = emitShared;
3206
3217
  this.n29_1 = FileExtension_TypeScript_getInstance();
3207
3218
  this.o29_1 = TypeScriptShared_getInstance();
3208
3219
  this.p29_1 = '//';
3209
3220
  }
3210
- protoOf(TypeScriptEmitter).k26 = function () {
3221
+ protoOf(TypeScriptEmitter).j26 = function () {
3211
3222
  return this.n29_1;
3212
3223
  };
3213
- protoOf(TypeScriptEmitter).l26 = function () {
3224
+ protoOf(TypeScriptEmitter).k26 = function () {
3214
3225
  return this.o29_1;
3215
3226
  };
3216
- protoOf(TypeScriptEmitter).m26 = function () {
3227
+ protoOf(TypeScriptEmitter).l26 = function () {
3217
3228
  return this.p29_1;
3218
3229
  };
3219
- protoOf(TypeScriptEmitter).n26 = function (module_0, logger) {
3220
- var tmp = Companion_instance_5.s25(last(split(module_0.d27_1, ['/'])));
3230
+ protoOf(TypeScriptEmitter).m26 = function (module_0, logger) {
3231
+ var tmp = Companion_instance_5.s25(last(split(module_0.c27_1, ['/'])));
3221
3232
  var tmp_0 = Companion_instance_5.t29(module_0) ? TypeScriptShared_getInstance().s29_1 : '';
3222
3233
  // Inline function 'arrow.core.NonEmptyList.map' call
3223
- var this_0 = protoOf(Emitter).n26.call(this, module_0, logger);
3234
+ var this_0 = protoOf(Emitter).m26.call(this, module_0, logger);
3224
3235
  // Inline function 'community.flock.wirespec.compiler.core.emit.TypeScriptEmitter.emit.stub_for_inlining' call
3225
- var tmp_1 = this_0.uk_1.u26_1;
3236
+ var tmp_1 = this_0.uk_1.t26_1;
3226
3237
  // Inline function 'kotlin.collections.map' call
3227
3238
  var this_1 = this_0.vk_1;
3228
3239
  // Inline function 'kotlin.collections.mapTo' call
@@ -3231,7 +3242,7 @@ protoOf(TypeScriptEmitter).n26 = function (module_0, logger) {
3231
3242
  while (_iterator__ex2g4s.h()) {
3232
3243
  var item = _iterator__ex2g4s.i();
3233
3244
  // Inline function 'community.flock.wirespec.compiler.core.emit.TypeScriptEmitter.emit.stub_for_inlining' call
3234
- var tmp$ret$1 = item.u26_1;
3245
+ var tmp$ret$1 = item.t26_1;
3235
3246
  destination.e(tmp$ret$1);
3236
3247
  }
3237
3248
  var tmp$ret$4 = new NonEmptyList(tmp_1, destination);
@@ -3239,22 +3250,22 @@ protoOf(TypeScriptEmitter).n26 = function (module_0, logger) {
3239
3250
  var this_2 = trimMargin('\n |' + tmp_0 + '\n |' + joinToString(tmp$ret$4, '\n') + '\n ');
3240
3251
  var tmp$ret$5 = toString(trimStart(isCharSequence(this_2) ? this_2 : THROW_CCE()));
3241
3252
  var emitted = nonEmptyListOf(new Emitted(tmp, tmp$ret$5), []);
3242
- return this.m29_1.r26_1 ? emitted.al(new Emitted(Companion_instance_6.i26('community.flock.wirespec.generated').o26() + 'Wirespec', this.l26().s29_1)) : emitted;
3253
+ return this.m29_1.q26_1 ? emitted.al(new Emitted(Companion_instance_6.h26('community.flock.wirespec.generated').n26() + 'Wirespec', this.k26().s29_1)) : emitted;
3243
3254
  };
3244
- protoOf(TypeScriptEmitter).w26 = function (type, module_0) {
3245
- return trimMargin('export type ' + sanitizeSymbol_2(type.y26_1, this) + ' = {\n |' + this.b27(type.z26_1) + '\n |}\n |\n |');
3255
+ protoOf(TypeScriptEmitter).v26 = function (type, module_0) {
3256
+ return trimMargin('export type ' + sanitizeSymbol_2(type.x26_1, this) + ' = {\n |' + this.a27(type.y26_1) + '\n |}\n |\n |');
3246
3257
  };
3247
3258
  protoOf(TypeScriptEmitter).q27 = function (enum_0, module_0) {
3248
3259
  var tmp = sanitizeSymbol_2(enum_0.s27_1, this);
3249
3260
  return 'export type ' + tmp + ' = ' + joinToString(enum_0.t27_1, ' | ', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda) + '\n';
3250
3261
  };
3251
- protoOf(TypeScriptEmitter).b27 = function (_this__u8e3s4) {
3252
- return joinToString(_this__u8e3s4.i27_1, ',\n', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda_0(this));
3262
+ protoOf(TypeScriptEmitter).a27 = function (_this__u8e3s4) {
3263
+ return joinToString(_this__u8e3s4.h27_1, ',\n', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda_0(this));
3253
3264
  };
3254
3265
  protoOf(TypeScriptEmitter).q29 = function (_this__u8e3s4) {
3255
- return Spacer_instance.toString() + this.v25(_this__u8e3s4.x25_1) + ': ' + this.j24(_this__u8e3s4.y25_1);
3266
+ return Spacer_instance.toString() + this.v25(_this__u8e3s4.w25_1) + ': ' + this.j24(_this__u8e3s4.x25_1);
3256
3267
  };
3257
- protoOf(TypeScriptEmitter).c26 = function (_this__u8e3s4) {
3268
+ protoOf(TypeScriptEmitter).b26 = function (_this__u8e3s4) {
3258
3269
  return Spacer_instance.toString() + this.v25(_this__u8e3s4.t25_1) + ': ' + this.j24(_this__u8e3s4.u25_1);
3259
3270
  };
3260
3271
  protoOf(TypeScriptEmitter).j24 = function (_this__u8e3s4) {
@@ -3340,18 +3351,18 @@ protoOf(TypeScriptEmitter).c28 = function (endpoint) {
3340
3351
  var tmp_18 = prependIndent(emitServer(endpoint, this), Spacer_instance.l25(1));
3341
3352
  var tmp_19 = Spacer_instance.toString();
3342
3353
  var tmp_20 = Spacer_instance.l25(2);
3343
- var tmp_21 = Companion_instance_5.z25(sanitizeSymbol_2(endpoint.z24_1, this));
3354
+ var tmp_21 = Companion_instance_5.y25(sanitizeSymbol_2(endpoint.z24_1, this));
3344
3355
  var tmp_22 = Spacer_instance.l25(2);
3345
3356
  var tmp_23 = Spacer_instance.l25(2);
3346
3357
  return trimMargin('\n |export namespace ' + tmp + ' {\n |' + tmp_1 + '\n |' + tmp_2 + '\n |' + tmp_3 + '\n |' + tmp_4 + '\n |' + tmp_6 + '\n |' + tmp_7 + 'export type Response = ' + tmp_9 + '\n |' + tmp_10 + '\n |' + tmp_12 + '\n |' + tmp_13 + 'export type Handler = {\n |' + tmp_14 + tmp_15 + '\n |' + tmp_16 + '}\n |' + tmp_17 + '\n |' + tmp_18 + '\n |' + tmp_19 + 'export const api = {\n |' + tmp_20 + 'name: "' + tmp_21 + '",\n |' + tmp_22 + 'method: "' + endpoint.a25_1.q2_1 + '",\n |' + tmp_23 + 'path: "' + joinToString(endpoint.b25_1, '/', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda_7(this)) + '",\n |' + Spacer_instance.l25(2) + 'server,\n |' + Spacer_instance.l25(2) + 'client\n |' + Spacer_instance.toString() + '} as const\n |}\n |\n ');
3347
3358
  };
3348
- protoOf(TypeScriptEmitter).g26 = function (_this__u8e3s4) {
3359
+ protoOf(TypeScriptEmitter).f26 = function (_this__u8e3s4) {
3349
3360
  var tmp;
3350
3361
  if (_this__u8e3s4 instanceof Literal) {
3351
- tmp = _this__u8e3s4.h26_1;
3362
+ tmp = _this__u8e3s4.g26_1;
3352
3363
  } else {
3353
3364
  if (_this__u8e3s4 instanceof Param_0) {
3354
- tmp = ':' + _this__u8e3s4.x25_1.b1();
3365
+ tmp = ':' + _this__u8e3s4.w25_1.b1();
3355
3366
  } else {
3356
3367
  noWhenBranchMatchedException();
3357
3368
  }
@@ -3359,8 +3370,8 @@ protoOf(TypeScriptEmitter).g26 = function (_this__u8e3s4) {
3359
3370
  return tmp;
3360
3371
  };
3361
3372
  protoOf(TypeScriptEmitter).v27 = function (union) {
3362
- var tmp = sanitizeSymbol_2(union.g27_1, this);
3363
- return 'export type ' + tmp + ' = ' + joinToString(union.h27_1, ' | ', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda_8(this)) + '\n';
3373
+ var tmp = sanitizeSymbol_2(union.f27_1, this);
3374
+ return 'export type ' + tmp + ' = ' + joinToString(union.g27_1, ' | ', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda_8(this)) + '\n';
3364
3375
  };
3365
3376
  protoOf(TypeScriptEmitter).v25 = function (identifier) {
3366
3377
  return '"' + identifier.b1() + '"';
@@ -3450,7 +3461,7 @@ function Companion_getInstance_3() {
3450
3461
  }
3451
3462
  function WirespecEmitter$emit$lambda(this$0) {
3452
3463
  return function (it) {
3453
- return Spacer_instance.toString() + this$0.c26(it);
3464
+ return Spacer_instance.toString() + this$0.b26(it);
3454
3465
  };
3455
3466
  }
3456
3467
  function WirespecEmitter$emit$lambda_0(this$0) {
@@ -3486,10 +3497,10 @@ function WirespecEmitter$emitPath$lambda(this$0) {
3486
3497
  return function (it) {
3487
3498
  var tmp;
3488
3499
  if (it instanceof Param_0) {
3489
- tmp = '{' + it.x25_1.b1() + ': ' + this$0.j24(it.y25_1) + '}';
3500
+ tmp = '{' + it.w25_1.b1() + ': ' + this$0.j24(it.x25_1) + '}';
3490
3501
  } else {
3491
3502
  if (it instanceof Literal) {
3492
- tmp = it.h26_1;
3503
+ tmp = it.g26_1;
3493
3504
  } else {
3494
3505
  noWhenBranchMatchedException();
3495
3506
  }
@@ -3499,7 +3510,7 @@ function WirespecEmitter$emitPath$lambda(this$0) {
3499
3510
  }
3500
3511
  function WirespecEmitter$emitQuery$lambda(this$0) {
3501
3512
  return function (it) {
3502
- return this$0.c26(it);
3513
+ return this$0.b26(it);
3503
3514
  };
3504
3515
  }
3505
3516
  function WirespecEmitter() {
@@ -3509,19 +3520,19 @@ function WirespecEmitter() {
3509
3520
  this.w29_1 = null;
3510
3521
  this.x29_1 = '\n';
3511
3522
  }
3512
- protoOf(WirespecEmitter).k26 = function () {
3523
+ protoOf(WirespecEmitter).j26 = function () {
3513
3524
  return this.v29_1;
3514
3525
  };
3515
- protoOf(WirespecEmitter).m26 = function () {
3526
+ protoOf(WirespecEmitter).l26 = function () {
3516
3527
  return this.x29_1;
3517
3528
  };
3518
- protoOf(WirespecEmitter).w26 = function (type, module_0) {
3519
- return trimMargin('\n |type ' + this.v25(type.y26_1) + ' {\n |' + this.b27(type.z26_1) + '\n |}\n |');
3529
+ protoOf(WirespecEmitter).v26 = function (type, module_0) {
3530
+ return trimMargin('\n |type ' + this.v25(type.x26_1) + ' {\n |' + this.a27(type.y26_1) + '\n |}\n |');
3520
3531
  };
3521
- protoOf(WirespecEmitter).b27 = function (_this__u8e3s4) {
3522
- return joinToString(_this__u8e3s4.i27_1, ',\n', VOID, VOID, VOID, VOID, WirespecEmitter$emit$lambda(this));
3532
+ protoOf(WirespecEmitter).a27 = function (_this__u8e3s4) {
3533
+ return joinToString(_this__u8e3s4.h27_1, ',\n', VOID, VOID, VOID, VOID, WirespecEmitter$emit$lambda(this));
3523
3534
  };
3524
- protoOf(WirespecEmitter).c26 = function (_this__u8e3s4) {
3535
+ protoOf(WirespecEmitter).b26 = function (_this__u8e3s4) {
3525
3536
  return this.v25(_this__u8e3s4.t25_1) + ': ' + this.j24(_this__u8e3s4.u25_1);
3526
3537
  };
3527
3538
  protoOf(WirespecEmitter).v25 = function (identifier) {
@@ -3643,8 +3654,8 @@ protoOf(WirespecEmitter).c28 = function (endpoint) {
3643
3654
  return trimMargin('\n |endpoint ' + tmp + ' ' + tmp_0 + tmp_1 + ' ' + tmp_2 + tmp_3 + ' -> {\n |' + joinToString(endpoint.f25_1, '\n', VOID, VOID, VOID, VOID, WirespecEmitter$emit$lambda_1(this)) + '\n |}\n |\n ');
3644
3655
  };
3645
3656
  protoOf(WirespecEmitter).v27 = function (union) {
3646
- var tmp = this.v25(union.g27_1);
3647
- return 'type ' + tmp + ' = ' + joinToString(union.h27_1, ' | ', VOID, VOID, VOID, VOID, WirespecEmitter$emit$lambda_2(this)) + '\n';
3657
+ var tmp = this.v25(union.f27_1);
3658
+ return 'type ' + tmp + ' = ' + joinToString(union.g27_1, ' | ', VOID, VOID, VOID, VOID, WirespecEmitter$emit$lambda_2(this)) + '\n';
3648
3659
  };
3649
3660
  function Spacer() {
3650
3661
  this.k25_1 = ' ';
@@ -3692,7 +3703,7 @@ function Companion_3() {
3692
3703
  protoOf(Companion_3).z29 = function (value) {
3693
3704
  return new EmitShared(value == null ? false : value);
3694
3705
  };
3695
- protoOf(Companion_3).j26 = function (value, $super) {
3706
+ protoOf(Companion_3).i26 = function (value, $super) {
3696
3707
  value = value === VOID ? null : value;
3697
3708
  return $super === VOID ? this.z29(value) : $super.z29.call(this, value);
3698
3709
  };
@@ -3701,27 +3712,27 @@ function Companion_getInstance_4() {
3701
3712
  return Companion_instance_4;
3702
3713
  }
3703
3714
  function EmitShared(value) {
3704
- this.r26_1 = value;
3715
+ this.q26_1 = value;
3705
3716
  }
3706
3717
  protoOf(EmitShared).toString = function () {
3707
- return this.r26_1.toString();
3718
+ return this.q26_1.toString();
3708
3719
  };
3709
3720
  function Emitted(file, result) {
3710
- this.t26_1 = file;
3711
- this.u26_1 = result;
3721
+ this.s26_1 = file;
3722
+ this.t26_1 = result;
3712
3723
  }
3713
3724
  protoOf(Emitted).yd = function () {
3714
- return this.t26_1;
3725
+ return this.s26_1;
3715
3726
  };
3716
3727
  protoOf(Emitted).zd = function () {
3717
- return this.u26_1;
3728
+ return this.t26_1;
3718
3729
  };
3719
3730
  protoOf(Emitted).toString = function () {
3720
- return 'Emitted(file=' + this.t26_1 + ', result=' + this.u26_1 + ')';
3731
+ return 'Emitted(file=' + this.s26_1 + ', result=' + this.t26_1 + ')';
3721
3732
  };
3722
3733
  protoOf(Emitted).hashCode = function () {
3723
- var result = getStringHashCode(this.t26_1);
3724
- result = imul(result, 31) + getStringHashCode(this.u26_1) | 0;
3734
+ var result = getStringHashCode(this.s26_1);
3735
+ result = imul(result, 31) + getStringHashCode(this.t26_1) | 0;
3725
3736
  return result;
3726
3737
  };
3727
3738
  protoOf(Emitted).equals = function (other) {
@@ -3730,9 +3741,9 @@ protoOf(Emitted).equals = function (other) {
3730
3741
  if (!(other instanceof Emitted))
3731
3742
  return false;
3732
3743
  var tmp0_other_with_cast = other instanceof Emitted ? other : THROW_CCE();
3733
- if (!(this.t26_1 === tmp0_other_with_cast.t26_1))
3744
+ if (!(this.s26_1 === tmp0_other_with_cast.s26_1))
3734
3745
  return false;
3735
- if (!(this.u26_1 === tmp0_other_with_cast.u26_1))
3746
+ if (!(this.t26_1 === tmp0_other_with_cast.t26_1))
3736
3747
  return false;
3737
3748
  return true;
3738
3749
  };
@@ -3811,7 +3822,7 @@ function flattenListDict(_this__u8e3s4, $this) {
3811
3822
  return tmp;
3812
3823
  }
3813
3824
  function toParam(_this__u8e3s4, $this) {
3814
- return new Param(ParamType_PATH_getInstance(), _this__u8e3s4.x25_1, _this__u8e3s4.y25_1);
3825
+ return new Param(ParamType_PATH_getInstance(), _this__u8e3s4.w25_1, _this__u8e3s4.x25_1);
3815
3826
  }
3816
3827
  function root(_this__u8e3s4, $this) {
3817
3828
  var tmp;
@@ -3854,7 +3865,7 @@ protoOf(Companion_4).s25 = function (_this__u8e3s4) {
3854
3865
  }
3855
3866
  return tmp;
3856
3867
  };
3857
- protoOf(Companion_4).z25 = function (_this__u8e3s4) {
3868
+ protoOf(Companion_4).y25 = function (_this__u8e3s4) {
3858
3869
  // Inline function 'kotlin.text.replaceFirstChar' call
3859
3870
  var tmp;
3860
3871
  // Inline function 'kotlin.text.isNotEmpty' call
@@ -3874,8 +3885,8 @@ protoOf(Companion_4).z25 = function (_this__u8e3s4) {
3874
3885
  }
3875
3886
  return tmp;
3876
3887
  };
3877
- protoOf(Companion_4).v26 = function (_this__u8e3s4) {
3878
- var tmp0 = _this__u8e3s4.e27_1;
3888
+ protoOf(Companion_4).u26 = function (_this__u8e3s4) {
3889
+ var tmp0 = _this__u8e3s4.d27_1;
3879
3890
  var tmp$ret$0;
3880
3891
  $l$block_0: {
3881
3892
  // Inline function 'kotlin.collections.any' call
@@ -3915,7 +3926,7 @@ protoOf(Companion_4).v26 = function (_this__u8e3s4) {
3915
3926
  return tmp$ret$0;
3916
3927
  };
3917
3928
  protoOf(Companion_4).t29 = function (_this__u8e3s4) {
3918
- var tmp0 = _this__u8e3s4.e27_1;
3929
+ var tmp0 = _this__u8e3s4.d27_1;
3919
3930
  var tmp$ret$0;
3920
3931
  $l$block_0: {
3921
3932
  // Inline function 'kotlin.collections.any' call
@@ -3982,7 +3993,7 @@ protoOf(Emitter).n23 = function (ast, logger) {
3982
3993
  var this_0 = ast.a2a_1;
3983
3994
  // Inline function 'community.flock.wirespec.compiler.core.emit.common.Emitter.emit.<anonymous>' call
3984
3995
  var it = this_0.uk_1;
3985
- var tmp = this.n26(it, logger).sk();
3996
+ var tmp = this.m26(it, logger).sk();
3986
3997
  // Inline function 'kotlin.collections.flatMap' call
3987
3998
  var tmp0 = this_0.vk_1;
3988
3999
  // Inline function 'kotlin.collections.flatMapTo' call
@@ -3991,14 +4002,14 @@ protoOf(Emitter).n23 = function (ast, logger) {
3991
4002
  while (_iterator__ex2g4s.h()) {
3992
4003
  var element = _iterator__ex2g4s.i();
3993
4004
  // Inline function 'community.flock.wirespec.compiler.core.emit.common.Emitter.emit.<anonymous>' call
3994
- var list = this.n26(element, logger);
4005
+ var list = this.m26(element, logger);
3995
4006
  addAll(destination, list);
3996
4007
  }
3997
4008
  // Inline function 'arrow.core.NonEmptyList.map' call
3998
4009
  var this_1 = tmp.zk(destination);
3999
4010
  // Inline function 'community.flock.wirespec.compiler.core.emit.common.Emitter.emit.<anonymous>' call
4000
4011
  var e = this_1.uk_1;
4001
- var tmp_0 = new Emitted(e.t26_1 + '.' + this.k26().d2a_1, e.u26_1);
4012
+ var tmp_0 = new Emitted(e.s26_1 + '.' + this.j26().d2a_1, e.t26_1);
4002
4013
  // Inline function 'kotlin.collections.map' call
4003
4014
  var this_2 = this_1.vk_1;
4004
4015
  // Inline function 'kotlin.collections.mapTo' call
@@ -4007,17 +4018,17 @@ protoOf(Emitter).n23 = function (ast, logger) {
4007
4018
  while (_iterator__ex2g4s_0.h()) {
4008
4019
  var item = _iterator__ex2g4s_0.i();
4009
4020
  // Inline function 'community.flock.wirespec.compiler.core.emit.common.Emitter.emit.<anonymous>' call
4010
- var tmp$ret$6 = new Emitted(item.t26_1 + '.' + this.k26().d2a_1, item.u26_1);
4021
+ var tmp$ret$6 = new Emitted(item.s26_1 + '.' + this.j26().d2a_1, item.t26_1);
4011
4022
  destination_0.e(tmp$ret$6);
4012
4023
  }
4013
4024
  return new NonEmptyList(tmp_0, destination_0);
4014
4025
  };
4015
- protoOf(Emitter).n26 = function (module_0, logger) {
4026
+ protoOf(Emitter).m26 = function (module_0, logger) {
4016
4027
  // Inline function 'arrow.core.NonEmptyList.map' call
4017
- var this_0 = module_0.e27_1;
4028
+ var this_0 = module_0.d27_1;
4018
4029
  // Inline function 'community.flock.wirespec.compiler.core.emit.common.Emitter.emit.<anonymous>' call
4019
4030
  var it = this_0.uk_1;
4020
- var tmp = this.s26(it, module_0, logger);
4031
+ var tmp = this.r26(it, module_0, logger);
4021
4032
  // Inline function 'kotlin.collections.map' call
4022
4033
  var this_1 = this_0.vk_1;
4023
4034
  // Inline function 'kotlin.collections.mapTo' call
@@ -4026,18 +4037,18 @@ protoOf(Emitter).n26 = function (module_0, logger) {
4026
4037
  while (_iterator__ex2g4s.h()) {
4027
4038
  var item = _iterator__ex2g4s.i();
4028
4039
  // Inline function 'community.flock.wirespec.compiler.core.emit.common.Emitter.emit.<anonymous>' call
4029
- var tmp$ret$1 = this.s26(item, module_0, logger);
4040
+ var tmp$ret$1 = this.r26(item, module_0, logger);
4030
4041
  destination.e(tmp$ret$1);
4031
4042
  }
4032
4043
  return new NonEmptyList(tmp, destination);
4033
4044
  };
4034
- protoOf(Emitter).s26 = function (definition, module_0, logger) {
4045
+ protoOf(Emitter).r26 = function (definition, module_0, logger) {
4035
4046
  // Inline function 'kotlin.run' call
4036
4047
  // Inline function 'community.flock.wirespec.compiler.core.emit.common.Emitter.emit.<anonymous>' call
4037
4048
  logger.e2a('Emitting Node ' + definition.w24().b1());
4038
4049
  var tmp;
4039
4050
  if (definition instanceof Type) {
4040
- tmp = new Emitted(this.v25(definition.y26_1), this.w26(definition, module_0));
4051
+ tmp = new Emitted(this.v25(definition.x26_1), this.v26(definition, module_0));
4041
4052
  } else {
4042
4053
  if (definition instanceof Endpoint) {
4043
4054
  tmp = new Emitted(this.v25(definition.z24_1), this.c28(definition));
@@ -4049,7 +4060,7 @@ protoOf(Emitter).s26 = function (definition, module_0, logger) {
4049
4060
  tmp = new Emitted(this.v25(definition.l27_1), this.j27(definition));
4050
4061
  } else {
4051
4062
  if (definition instanceof Union) {
4052
- tmp = new Emitted(this.v25(definition.g27_1), this.v27(definition));
4063
+ tmp = new Emitted(this.v25(definition.f27_1), this.v27(definition));
4053
4064
  } else {
4054
4065
  if (definition instanceof Channel) {
4055
4066
  tmp = new Emitted(this.v25(definition.z27_1), this.w27(definition));
@@ -4071,13 +4082,13 @@ protoOf(Emitter).u27 = function (_this__u8e3s4, space, $super) {
4071
4082
  space = space === VOID ? 1 : space;
4072
4083
  return $super === VOID ? this.h28(_this__u8e3s4, space) : $super.h28.call(this, _this__u8e3s4, space);
4073
4084
  };
4074
- protoOf(Emitter).g26 = function (_this__u8e3s4) {
4085
+ protoOf(Emitter).f26 = function (_this__u8e3s4) {
4075
4086
  var tmp;
4076
4087
  if (_this__u8e3s4 instanceof Literal) {
4077
- tmp = _this__u8e3s4.h26_1;
4088
+ tmp = _this__u8e3s4.g26_1;
4078
4089
  } else {
4079
4090
  if (_this__u8e3s4 instanceof Param_0) {
4080
- tmp = '{' + _this__u8e3s4.x25_1.b1() + '}';
4091
+ tmp = '{' + _this__u8e3s4.w25_1.b1() + '}';
4081
4092
  } else {
4082
4093
  noWhenBranchMatchedException();
4083
4094
  }
@@ -4227,7 +4238,7 @@ protoOf(Emitter).b28 = function (_this__u8e3s4) {
4227
4238
  while (_iterator__ex2g4s_0.h()) {
4228
4239
  var item = _iterator__ex2g4s_0.i();
4229
4240
  // Inline function 'community.flock.wirespec.compiler.core.emit.common.Emitter.importReferences.<anonymous>' call
4230
- var tmp$ret$2 = item.y25_1;
4241
+ var tmp$ret$2 = item.x25_1;
4231
4242
  destination_0.e(tmp$ret$2);
4232
4243
  }
4233
4244
  var tmp_0 = destination_0;
@@ -4317,14 +4328,14 @@ protoOf(Emitter).b28 = function (_this__u8e3s4) {
4317
4328
  } else {
4318
4329
  if (_this__u8e3s4 instanceof Type) {
4319
4330
  // Inline function 'kotlin.collections.filter' call
4320
- var tmp0_1 = _this__u8e3s4.z26_1.i27_1;
4331
+ var tmp0_1 = _this__u8e3s4.y26_1.h27_1;
4321
4332
  // Inline function 'kotlin.collections.filterTo' call
4322
4333
  var destination_8 = ArrayList_init_$Create$_0();
4323
4334
  var _iterator__ex2g4s_8 = tmp0_1.g();
4324
4335
  while (_iterator__ex2g4s_8.h()) {
4325
4336
  var element_2 = _iterator__ex2g4s_8.i();
4326
4337
  // Inline function 'community.flock.wirespec.compiler.core.emit.common.Emitter.importReferences.<anonymous>' call
4327
- if (!(_this__u8e3s4.y26_1.b1() === root(element_2.u25_1, this).b1())) {
4338
+ if (!(_this__u8e3s4.x26_1.b1() === root(element_2.u25_1, this).b1())) {
4328
4339
  destination_8.e(element_2);
4329
4340
  }
4330
4341
  }
@@ -4431,7 +4442,7 @@ function FileExtension_Avro_getInstance() {
4431
4442
  }
4432
4443
  function Companion_5() {
4433
4444
  }
4434
- protoOf(Companion_5).i26 = function (value) {
4445
+ protoOf(Companion_5).h26 = function (value) {
4435
4446
  // Inline function 'kotlin.let' call
4436
4447
  // Inline function 'community.flock.wirespec.compiler.core.emit.common.Companion.invoke.<anonymous>' call
4437
4448
  return new PackageName(value == null ? 'community.flock.wirespec' : value, !(value == null));
@@ -4447,19 +4458,19 @@ function PackageName(value, createDirectory) {
4447
4458
  protoOf(PackageName).toString = function () {
4448
4459
  return this.u24_1;
4449
4460
  };
4450
- protoOf(PackageName).o26 = function () {
4461
+ protoOf(PackageName).n26 = function () {
4451
4462
  return replace(this.u24_1, '.', '/') + '/';
4452
4463
  };
4453
4464
  function plus_0(_this__u8e3s4, definition) {
4454
4465
  return plus_1(_this__u8e3s4, namespace(definition));
4455
4466
  }
4456
4467
  function plus_1(_this__u8e3s4, subPackage) {
4457
- return Companion_instance_6.i26(_this__u8e3s4.u24_1 + '.' + subPackage);
4468
+ return Companion_instance_6.h26(_this__u8e3s4.u24_1 + '.' + subPackage);
4458
4469
  }
4459
4470
  function JavaShared() {
4460
4471
  JavaShared_instance = this;
4461
- this.p26_1 = 'community.flock.wirespec.java';
4462
- this.q26_1 = trimMargin('\n |package ' + this.p26_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 { String 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.l25(2) + 'Req from(RawRequest request);\n |' + Spacer_instance.l25(2) + 'RawResponse to(Res response);\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'interface ClientEdge<Req extends Request<?>, Res extends Response<?>> {\n |' + Spacer_instance.l25(2) + 'RawRequest to(Req request);\n |' + Spacer_instance.l25(2) + 'Res from(RawResponse response);\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'interface Client<Req extends Request<?>, Res extends Response<?>> {\n |' + Spacer_instance.l25(2) + 'String getPathTemplate();\n |' + Spacer_instance.l25(2) + 'String getMethod();\n |' + Spacer_instance.l25(2) + 'ClientEdge<Req, Res> getClient(Serialization<String> serialization);\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'interface Server<Req extends Request<?>, Res extends Response<?>> {\n |' + Spacer_instance.l25(2) + 'String getPathTemplate();\n |' + Spacer_instance.l25(2) + 'String getMethod();\n |' + Spacer_instance.l25(2) + 'ServerEdge<Req, Res> getServer(Serialization<String> 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 getPath(); Method getMethod(); Queries getQueries(); Headers getHeaders(); T getBody(); interface Headers extends Wirespec.Headers {} }\n |' + Spacer_instance.toString() + 'interface Response<T> { int getStatus(); Headers getHeaders(); T getBody(); interface Headers extends Wirespec.Headers {} }\n |' + Spacer_instance.toString() + 'interface ParamSerialization extends ParamSerializer, ParamDeserializer {}\n |' + Spacer_instance.toString() + 'interface Serialization<RAW> extends Serializer<RAW>, Deserializer<RAW>, ParamSerialization {}\n |' + Spacer_instance.toString() + 'interface ParamSerializer { <T> List<String> serializeParam(T value, Type type); }\n |' + Spacer_instance.toString() + 'interface Serializer<RAW> extends ParamSerializer { <T> RAW serialize(T t, Type type); }\n |' + Spacer_instance.toString() + 'interface ParamDeserializer { <T> T deserializeParam(List<String> values, Type type); }\n |' + Spacer_instance.toString() + 'interface Deserializer<RAW> extends ParamDeserializer { <T> T deserialize(RAW raw, Type type); }\n |' + Spacer_instance.toString() + 'record RawRequest(String method, List<String> path, Map<String, List<String>> queries, Map<String, List<String>> headers, String body) {} \n |' + Spacer_instance.toString() + 'record RawResponse(int statusCode, Map<String, List<String>> headers, String body) {}\n |' + Spacer_instance.toString() + 'static Type getType(final Class<?> type, final boolean isIterable) {\n |' + Spacer_instance.l25(2) + 'if(isIterable) {\n |' + Spacer_instance.l25(3) + 'return new ParameterizedType() {\n |' + Spacer_instance.l25(4) + 'public Type getRawType() { return java.util.List.class; }\n |' + Spacer_instance.l25(4) + 'public Type[] getActualTypeArguments() { return new Class<?>[]{type}; }\n |' + Spacer_instance.l25(4) + 'public Type getOwnerType() { return null; }\n |' + Spacer_instance.l25(3) + '};\n |' + Spacer_instance.l25(2) + '}\n |' + Spacer_instance.l25(2) + 'else { return type; }\n |' + Spacer_instance.toString() + '}\n |}\n |\n ');
4472
+ this.o26_1 = 'community.flock.wirespec.java';
4473
+ this.p26_1 = trimMargin('\n |package ' + this.o26_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 { String 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.l25(2) + 'Req from(RawRequest request);\n |' + Spacer_instance.l25(2) + 'RawResponse to(Res response);\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'interface ClientEdge<Req extends Request<?>, Res extends Response<?>> {\n |' + Spacer_instance.l25(2) + 'RawRequest to(Req request);\n |' + Spacer_instance.l25(2) + 'Res from(RawResponse response);\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'interface Client<Req extends Request<?>, Res extends Response<?>> {\n |' + Spacer_instance.l25(2) + 'String getPathTemplate();\n |' + Spacer_instance.l25(2) + 'String getMethod();\n |' + Spacer_instance.l25(2) + 'ClientEdge<Req, Res> getClient(Serialization<String> serialization);\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'interface Server<Req extends Request<?>, Res extends Response<?>> {\n |' + Spacer_instance.l25(2) + 'String getPathTemplate();\n |' + Spacer_instance.l25(2) + 'String getMethod();\n |' + Spacer_instance.l25(2) + 'ServerEdge<Req, Res> getServer(Serialization<String> 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 getPath(); Method getMethod(); Queries getQueries(); Headers getHeaders(); T getBody(); interface Headers extends Wirespec.Headers {} }\n |' + Spacer_instance.toString() + 'interface Response<T> { int getStatus(); Headers getHeaders(); T getBody(); interface Headers extends Wirespec.Headers {} }\n |' + Spacer_instance.toString() + 'interface ParamSerialization extends ParamSerializer, ParamDeserializer {}\n |' + Spacer_instance.toString() + 'interface Serialization<RAW> extends Serializer<RAW>, Deserializer<RAW>, ParamSerialization {}\n |' + Spacer_instance.toString() + 'interface ParamSerializer { <T> List<String> serializeParam(T value, Type type); }\n |' + Spacer_instance.toString() + 'interface Serializer<RAW> extends ParamSerializer { <T> RAW serialize(T t, Type type); }\n |' + Spacer_instance.toString() + 'interface ParamDeserializer { <T> T deserializeParam(List<String> values, Type type); }\n |' + Spacer_instance.toString() + 'interface Deserializer<RAW> extends ParamDeserializer { <T> T deserialize(RAW raw, Type type); }\n |' + Spacer_instance.toString() + 'record RawRequest(String method, List<String> path, Map<String, List<String>> queries, Map<String, List<String>> headers, String body) {} \n |' + Spacer_instance.toString() + 'record RawResponse(int statusCode, Map<String, List<String>> headers, String body) {}\n |' + Spacer_instance.toString() + 'static Type getType(final Class<?> actualTypeArguments, final Class<?> rawType) {\n |' + Spacer_instance.l25(2) + 'if(rawType != null) {\n |' + Spacer_instance.l25(3) + 'return new ParameterizedType() {\n |' + Spacer_instance.l25(4) + 'public Type getRawType() { return rawType; }\n |' + Spacer_instance.l25(4) + 'public Type[] getActualTypeArguments() { return new Class<?>[]{actualTypeArguments}; }\n |' + Spacer_instance.l25(4) + 'public Type getOwnerType() { return null; }\n |' + Spacer_instance.l25(3) + '};\n |' + Spacer_instance.l25(2) + '}\n |' + Spacer_instance.l25(2) + 'else { return actualTypeArguments; }\n |' + Spacer_instance.toString() + '}\n |}\n |\n ');
4463
4474
  }
4464
4475
  protoOf(JavaShared).toString = function () {
4465
4476
  return 'JavaShared';
@@ -4821,7 +4832,7 @@ function parseEndpointDefinition(_this__u8e3s4, $this, comment, name) {
4821
4832
  if (_this__u8e3s4.o2a_1.g2a_1 instanceof LeftCurly) {
4822
4833
  // Inline function 'kotlin.with' call
4823
4834
  // Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointDefinition.<anonymous>.<anonymous>' call
4824
- tmp_9 = raise.ll(TypeParser_instance.x2a(_this__u8e3s4)).i27_1;
4835
+ tmp_9 = raise.ll(TypeParser_instance.x2a(_this__u8e3s4)).h27_1;
4825
4836
  } else {
4826
4837
  // Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
4827
4838
  var actual_0 = _this__u8e3s4.o2a_1;
@@ -5184,7 +5195,7 @@ function parseHeaders(_this__u8e3s4, $this) {
5184
5195
  if (_this__u8e3s4.o2a_1.g2a_1 instanceof LeftCurly) {
5185
5196
  // Inline function 'kotlin.with' call
5186
5197
  // Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseHeaders.<anonymous>.<anonymous>' call
5187
- tmp_1 = raise.ll(TypeParser_instance.x2a(_this__u8e3s4)).i27_1;
5198
+ tmp_1 = raise.ll(TypeParser_instance.x2a(_this__u8e3s4)).h27_1;
5188
5199
  } else {
5189
5200
  // Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
5190
5201
  var actual = _this__u8e3s4.o2a_1;
@@ -5474,23 +5485,23 @@ function EnumParser_getInstance() {
5474
5485
  return EnumParser_instance;
5475
5486
  }
5476
5487
  function Module(uri, statements) {
5477
- this.d27_1 = uri;
5478
- this.e27_1 = statements;
5488
+ this.c27_1 = uri;
5489
+ this.d27_1 = statements;
5479
5490
  }
5480
5491
  protoOf(Module).a2b = function (uri, statements) {
5481
5492
  return new Module(uri, statements);
5482
5493
  };
5483
5494
  protoOf(Module).j29 = function (uri, statements, $super) {
5484
- uri = uri === VOID ? this.d27_1 : uri;
5485
- statements = statements === VOID ? this.e27_1 : statements;
5495
+ uri = uri === VOID ? this.c27_1 : uri;
5496
+ statements = statements === VOID ? this.d27_1 : statements;
5486
5497
  return $super === VOID ? this.a2b(uri, statements) : $super.a2b.call(this, uri, statements);
5487
5498
  };
5488
5499
  protoOf(Module).toString = function () {
5489
- return 'Module(uri=' + this.d27_1 + ', statements=' + this.e27_1.toString() + ')';
5500
+ return 'Module(uri=' + this.c27_1 + ', statements=' + this.d27_1.toString() + ')';
5490
5501
  };
5491
5502
  protoOf(Module).hashCode = function () {
5492
- var result = getStringHashCode(this.d27_1);
5493
- result = imul(result, 31) + this.e27_1.hashCode() | 0;
5503
+ var result = getStringHashCode(this.c27_1);
5504
+ result = imul(result, 31) + this.d27_1.hashCode() | 0;
5494
5505
  return result;
5495
5506
  };
5496
5507
  protoOf(Module).equals = function (other) {
@@ -5499,9 +5510,9 @@ protoOf(Module).equals = function (other) {
5499
5510
  if (!(other instanceof Module))
5500
5511
  return false;
5501
5512
  var tmp0_other_with_cast = other instanceof Module ? other : THROW_CCE();
5502
- if (!(this.d27_1 === tmp0_other_with_cast.d27_1))
5513
+ if (!(this.c27_1 === tmp0_other_with_cast.c27_1))
5503
5514
  return false;
5504
- if (!this.e27_1.equals(tmp0_other_with_cast.e27_1))
5515
+ if (!this.d27_1.equals(tmp0_other_with_cast.d27_1))
5505
5516
  return false;
5506
5517
  return true;
5507
5518
  };
@@ -5890,13 +5901,13 @@ protoOf(Primitive).equals = function (other) {
5890
5901
  return true;
5891
5902
  };
5892
5903
  function Shape(value) {
5893
- this.i27_1 = value;
5904
+ this.h27_1 = value;
5894
5905
  }
5895
5906
  protoOf(Shape).toString = function () {
5896
- return 'Shape(value=' + toString(this.i27_1) + ')';
5907
+ return 'Shape(value=' + toString(this.h27_1) + ')';
5897
5908
  };
5898
5909
  protoOf(Shape).hashCode = function () {
5899
- return hashCode(this.i27_1);
5910
+ return hashCode(this.h27_1);
5900
5911
  };
5901
5912
  protoOf(Shape).equals = function (other) {
5902
5913
  if (this === other)
@@ -5904,27 +5915,27 @@ protoOf(Shape).equals = function (other) {
5904
5915
  if (!(other instanceof Shape))
5905
5916
  return false;
5906
5917
  var tmp0_other_with_cast = other instanceof Shape ? other : THROW_CCE();
5907
- if (!equals(this.i27_1, tmp0_other_with_cast.i27_1))
5918
+ if (!equals(this.h27_1, tmp0_other_with_cast.h27_1))
5908
5919
  return false;
5909
5920
  return true;
5910
5921
  };
5911
5922
  function Type(comment, identifier, shape, extends_0) {
5912
- this.x26_1 = comment;
5913
- this.y26_1 = identifier;
5914
- this.z26_1 = shape;
5915
- this.a27_1 = extends_0;
5923
+ this.w26_1 = comment;
5924
+ this.x26_1 = identifier;
5925
+ this.y26_1 = shape;
5926
+ this.z26_1 = extends_0;
5916
5927
  }
5917
5928
  protoOf(Type).w24 = function () {
5918
- return this.y26_1;
5929
+ return this.x26_1;
5919
5930
  };
5920
5931
  protoOf(Type).k2b = function (comment, identifier, shape, extends_0) {
5921
5932
  return new Type(comment, identifier, shape, extends_0);
5922
5933
  };
5923
5934
  protoOf(Type).l2b = function (comment, identifier, shape, extends_0, $super) {
5924
- comment = comment === VOID ? this.x26_1 : comment;
5925
- identifier = identifier === VOID ? this.y26_1 : identifier;
5926
- shape = shape === VOID ? this.z26_1 : shape;
5927
- extends_0 = extends_0 === VOID ? this.a27_1 : extends_0;
5935
+ comment = comment === VOID ? this.w26_1 : comment;
5936
+ identifier = identifier === VOID ? this.x26_1 : identifier;
5937
+ shape = shape === VOID ? this.y26_1 : shape;
5938
+ extends_0 = extends_0 === VOID ? this.z26_1 : extends_0;
5928
5939
  var tmp;
5929
5940
  if ($super === VOID) {
5930
5941
  tmp = this.k2b(comment, identifier, shape, extends_0);
@@ -5936,21 +5947,21 @@ protoOf(Type).l2b = function (comment, identifier, shape, extends_0, $super) {
5936
5947
  return tmp;
5937
5948
  };
5938
5949
  protoOf(Type).toString = function () {
5939
- var tmp = this.x26_1;
5940
- return 'Type(comment=' + toString_1(tmp == null ? null : new Comment(tmp)) + ', identifier=' + this.y26_1.toString() + ', shape=' + this.z26_1.toString() + ', extends=' + toString(this.a27_1) + ')';
5950
+ var tmp = this.w26_1;
5951
+ return 'Type(comment=' + toString_1(tmp == null ? null : new Comment(tmp)) + ', identifier=' + this.x26_1.toString() + ', shape=' + this.y26_1.toString() + ', extends=' + toString(this.z26_1) + ')';
5941
5952
  };
5942
5953
  protoOf(Type).hashCode = function () {
5943
5954
  var tmp;
5944
- var tmp_0 = this.x26_1;
5955
+ var tmp_0 = this.w26_1;
5945
5956
  if ((tmp_0 == null ? null : new Comment(tmp_0)) == null) {
5946
5957
  tmp = 0;
5947
5958
  } else {
5948
- tmp = Comment__hashCode_impl_tr9dgt(this.x26_1);
5959
+ tmp = Comment__hashCode_impl_tr9dgt(this.w26_1);
5949
5960
  }
5950
5961
  var result = tmp;
5962
+ result = imul(result, 31) + this.x26_1.hashCode() | 0;
5951
5963
  result = imul(result, 31) + this.y26_1.hashCode() | 0;
5952
- result = imul(result, 31) + this.z26_1.hashCode() | 0;
5953
- result = imul(result, 31) + hashCode(this.a27_1) | 0;
5964
+ result = imul(result, 31) + hashCode(this.z26_1) | 0;
5954
5965
  return result;
5955
5966
  };
5956
5967
  protoOf(Type).equals = function (other) {
@@ -5959,16 +5970,16 @@ protoOf(Type).equals = function (other) {
5959
5970
  if (!(other instanceof Type))
5960
5971
  return false;
5961
5972
  var tmp0_other_with_cast = other instanceof Type ? other : THROW_CCE();
5962
- var tmp = this.x26_1;
5973
+ var tmp = this.w26_1;
5963
5974
  var tmp_0 = tmp == null ? null : new Comment(tmp);
5964
- var tmp_1 = tmp0_other_with_cast.x26_1;
5975
+ var tmp_1 = tmp0_other_with_cast.w26_1;
5965
5976
  if (!equals(tmp_0, tmp_1 == null ? null : new Comment(tmp_1)))
5966
5977
  return false;
5967
- if (!this.y26_1.equals(tmp0_other_with_cast.y26_1))
5978
+ if (!this.x26_1.equals(tmp0_other_with_cast.x26_1))
5968
5979
  return false;
5969
- if (!this.z26_1.equals(tmp0_other_with_cast.z26_1))
5980
+ if (!this.y26_1.equals(tmp0_other_with_cast.y26_1))
5970
5981
  return false;
5971
- if (!equals(this.a27_1, tmp0_other_with_cast.a27_1))
5982
+ if (!equals(this.z26_1, tmp0_other_with_cast.z26_1))
5972
5983
  return false;
5973
5984
  return true;
5974
5985
  };
@@ -6048,13 +6059,13 @@ function Method_initEntries() {
6048
6059
  }
6049
6060
  var $ENTRIES_0;
6050
6061
  function Literal(value) {
6051
- this.h26_1 = value;
6062
+ this.g26_1 = value;
6052
6063
  }
6053
6064
  protoOf(Literal).toString = function () {
6054
- return 'Literal(value=' + this.h26_1 + ')';
6065
+ return 'Literal(value=' + this.g26_1 + ')';
6055
6066
  };
6056
6067
  protoOf(Literal).hashCode = function () {
6057
- return getStringHashCode(this.h26_1);
6068
+ return getStringHashCode(this.g26_1);
6058
6069
  };
6059
6070
  protoOf(Literal).equals = function (other) {
6060
6071
  if (this === other)
@@ -6062,20 +6073,20 @@ protoOf(Literal).equals = function (other) {
6062
6073
  if (!(other instanceof Literal))
6063
6074
  return false;
6064
6075
  var tmp0_other_with_cast = other instanceof Literal ? other : THROW_CCE();
6065
- if (!(this.h26_1 === tmp0_other_with_cast.h26_1))
6076
+ if (!(this.g26_1 === tmp0_other_with_cast.g26_1))
6066
6077
  return false;
6067
6078
  return true;
6068
6079
  };
6069
6080
  function Param_0(identifier, reference) {
6070
- this.x25_1 = identifier;
6071
- this.y25_1 = reference;
6081
+ this.w25_1 = identifier;
6082
+ this.x25_1 = reference;
6072
6083
  }
6073
6084
  protoOf(Param_0).toString = function () {
6074
- return 'Param(identifier=' + this.x25_1.toString() + ', reference=' + toString(this.y25_1) + ')';
6085
+ return 'Param(identifier=' + this.w25_1.toString() + ', reference=' + toString(this.x25_1) + ')';
6075
6086
  };
6076
6087
  protoOf(Param_0).hashCode = function () {
6077
- var result = this.x25_1.hashCode();
6078
- result = imul(result, 31) + hashCode(this.y25_1) | 0;
6088
+ var result = this.w25_1.hashCode();
6089
+ result = imul(result, 31) + hashCode(this.x25_1) | 0;
6079
6090
  return result;
6080
6091
  };
6081
6092
  protoOf(Param_0).equals = function (other) {
@@ -6084,9 +6095,9 @@ protoOf(Param_0).equals = function (other) {
6084
6095
  if (!(other instanceof Param_0))
6085
6096
  return false;
6086
6097
  var tmp0_other_with_cast = other instanceof Param_0 ? other : THROW_CCE();
6087
- if (!this.x25_1.equals(tmp0_other_with_cast.x25_1))
6098
+ if (!this.w25_1.equals(tmp0_other_with_cast.w25_1))
6088
6099
  return false;
6089
- if (!equals(this.y25_1, tmp0_other_with_cast.y25_1))
6100
+ if (!equals(this.x25_1, tmp0_other_with_cast.x25_1))
6090
6101
  return false;
6091
6102
  return true;
6092
6103
  };
@@ -6363,28 +6374,28 @@ protoOf(Refined).equals = function (other) {
6363
6374
  return true;
6364
6375
  };
6365
6376
  function Union(comment, identifier, entries) {
6366
- this.f27_1 = comment;
6367
- this.g27_1 = identifier;
6368
- this.h27_1 = entries;
6377
+ this.e27_1 = comment;
6378
+ this.f27_1 = identifier;
6379
+ this.g27_1 = entries;
6369
6380
  }
6370
6381
  protoOf(Union).w24 = function () {
6371
- return this.g27_1;
6382
+ return this.f27_1;
6372
6383
  };
6373
6384
  protoOf(Union).toString = function () {
6374
- var tmp = this.f27_1;
6375
- return 'Union(comment=' + toString_1(tmp == null ? null : new Comment(tmp)) + ', identifier=' + this.g27_1.toString() + ', entries=' + toString(this.h27_1) + ')';
6385
+ var tmp = this.e27_1;
6386
+ return 'Union(comment=' + toString_1(tmp == null ? null : new Comment(tmp)) + ', identifier=' + this.f27_1.toString() + ', entries=' + toString(this.g27_1) + ')';
6376
6387
  };
6377
6388
  protoOf(Union).hashCode = function () {
6378
6389
  var tmp;
6379
- var tmp_0 = this.f27_1;
6390
+ var tmp_0 = this.e27_1;
6380
6391
  if ((tmp_0 == null ? null : new Comment(tmp_0)) == null) {
6381
6392
  tmp = 0;
6382
6393
  } else {
6383
- tmp = Comment__hashCode_impl_tr9dgt(this.f27_1);
6394
+ tmp = Comment__hashCode_impl_tr9dgt(this.e27_1);
6384
6395
  }
6385
6396
  var result = tmp;
6386
- result = imul(result, 31) + this.g27_1.hashCode() | 0;
6387
- result = imul(result, 31) + hashCode(this.h27_1) | 0;
6397
+ result = imul(result, 31) + this.f27_1.hashCode() | 0;
6398
+ result = imul(result, 31) + hashCode(this.g27_1) | 0;
6388
6399
  return result;
6389
6400
  };
6390
6401
  protoOf(Union).equals = function (other) {
@@ -6393,14 +6404,14 @@ protoOf(Union).equals = function (other) {
6393
6404
  if (!(other instanceof Union))
6394
6405
  return false;
6395
6406
  var tmp0_other_with_cast = other instanceof Union ? other : THROW_CCE();
6396
- var tmp = this.f27_1;
6407
+ var tmp = this.e27_1;
6397
6408
  var tmp_0 = tmp == null ? null : new Comment(tmp);
6398
- var tmp_1 = tmp0_other_with_cast.f27_1;
6409
+ var tmp_1 = tmp0_other_with_cast.e27_1;
6399
6410
  if (!equals(tmp_0, tmp_1 == null ? null : new Comment(tmp_1)))
6400
6411
  return false;
6401
- if (!this.g27_1.equals(tmp0_other_with_cast.g27_1))
6412
+ if (!this.f27_1.equals(tmp0_other_with_cast.f27_1))
6402
6413
  return false;
6403
- if (!equals(this.h27_1, tmp0_other_with_cast.h27_1))
6414
+ if (!equals(this.g27_1, tmp0_other_with_cast.g27_1))
6404
6415
  return false;
6405
6416
  return true;
6406
6417
  };
@@ -6762,7 +6773,7 @@ function fillExtendsClause(_this__u8e3s4, $this) {
6762
6773
  var element_0 = _iterator__ex2g4s_0.i();
6763
6774
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.fillExtendsClause.<anonymous>.<anonymous>.<anonymous>' call
6764
6775
  // Inline function 'kotlin.collections.map' call
6765
- var this_0 = element_0.h27_1;
6776
+ var this_0 = element_0.g27_1;
6766
6777
  // Inline function 'kotlin.collections.mapTo' call
6767
6778
  var destination_1 = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
6768
6779
  var _iterator__ex2g4s_1 = this_0.g();
@@ -6781,7 +6792,7 @@ function fillExtendsClause(_this__u8e3s4, $this) {
6781
6792
  var tmp$ret$3 = tmp_1;
6782
6793
  destination_1.e(tmp$ret$3);
6783
6794
  }
6784
- if (destination_1.o1(definition.y26_1.b1())) {
6795
+ if (destination_1.o1(definition.x26_1.b1())) {
6785
6796
  destination_0.e(element_0);
6786
6797
  }
6787
6798
  }
@@ -6792,7 +6803,7 @@ function fillExtendsClause(_this__u8e3s4, $this) {
6792
6803
  while (_iterator__ex2g4s_2.h()) {
6793
6804
  var item_0 = _iterator__ex2g4s_2.i();
6794
6805
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.fillExtendsClause.<anonymous>.<anonymous>.<anonymous>' call
6795
- var tmp$ret$9 = new Custom(item_0.g27_1.b1(), false);
6806
+ var tmp$ret$9 = new Custom(item_0.f27_1.b1(), false);
6796
6807
  destination_2.e(tmp$ret$9);
6797
6808
  }
6798
6809
  tmp_0 = definition.l2b(VOID, VOID, VOID, destination_2);
@@ -6848,7 +6859,7 @@ function fillExtendsClause(_this__u8e3s4, $this) {
6848
6859
  var element_2 = _iterator__ex2g4s_5.i();
6849
6860
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.fillExtendsClause.<anonymous>.<anonymous>.<anonymous>' call
6850
6861
  // Inline function 'kotlin.collections.map' call
6851
- var this_3 = element_2.h27_1;
6862
+ var this_3 = element_2.g27_1;
6852
6863
  // Inline function 'kotlin.collections.mapTo' call
6853
6864
  var destination_6 = ArrayList_init_$Create$(collectionSizeOrDefault(this_3, 10));
6854
6865
  var _iterator__ex2g4s_6 = this_3.g();
@@ -6867,7 +6878,7 @@ function fillExtendsClause(_this__u8e3s4, $this) {
6867
6878
  var tmp$ret$16 = tmp_4;
6868
6879
  destination_6.e(tmp$ret$16);
6869
6880
  }
6870
- if (destination_6.o1(item_1.y26_1.b1())) {
6881
+ if (destination_6.o1(item_1.x26_1.b1())) {
6871
6882
  destination_5.e(element_2);
6872
6883
  }
6873
6884
  }
@@ -6878,7 +6889,7 @@ function fillExtendsClause(_this__u8e3s4, $this) {
6878
6889
  while (_iterator__ex2g4s_7.h()) {
6879
6890
  var item_3 = _iterator__ex2g4s_7.i();
6880
6891
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.fillExtendsClause.<anonymous>.<anonymous>.<anonymous>' call
6881
- var tmp$ret$22 = new Custom(item_3.g27_1.b1(), false);
6892
+ var tmp$ret$22 = new Custom(item_3.f27_1.b1(), false);
6882
6893
  destination_7.e(tmp$ret$22);
6883
6894
  }
6884
6895
  tmp_3 = item_1.l2b(VOID, VOID, VOID, destination_7);
@@ -8979,7 +8990,7 @@ function validateEndpoints($this, ast) {
8979
8990
  var element = _iterator__ex2g4s.i();
8980
8991
  // Inline function 'community.flock.wirespec.compiler.core.validate.Validator.validateEndpoints.<anonymous>' call
8981
8992
  // Inline function 'kotlin.collections.filterIsInstance' call
8982
- var tmp0_0 = element.e27_1;
8993
+ var tmp0_0 = element.d27_1;
8983
8994
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
8984
8995
  var destination_0 = ArrayList_init_$Create$_0();
8985
8996
  var _iterator__ex2g4s_0 = tmp0_0.g();
@@ -9080,7 +9091,7 @@ function validateTypes($this, ast) {
9080
9091
  var element = _iterator__ex2g4s.i();
9081
9092
  // Inline function 'community.flock.wirespec.compiler.core.validate.Validator.validateTypes.<anonymous>' call
9082
9093
  // Inline function 'kotlin.collections.filterIsInstance' call
9083
- var tmp0_0 = element.e27_1;
9094
+ var tmp0_0 = element.d27_1;
9084
9095
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
9085
9096
  var destination_0 = ArrayList_init_$Create$_0();
9086
9097
  var _iterator__ex2g4s_0 = tmp0_0.g();
@@ -9097,7 +9108,7 @@ function validateTypes($this, ast) {
9097
9108
  while (_iterator__ex2g4s_1.h()) {
9098
9109
  var element_1 = _iterator__ex2g4s_1.i();
9099
9110
  // Inline function 'community.flock.wirespec.compiler.core.validate.Validator.validateTypes.<anonymous>.<anonymous>' call
9100
- var key = element_1.y26_1.b1();
9111
+ var key = element_1.x26_1.b1();
9101
9112
  // Inline function 'kotlin.collections.getOrPut' call
9102
9113
  var value = destination_1.g2(key);
9103
9114
  var tmp;
@@ -9180,7 +9191,7 @@ function validateChannels($this, ast) {
9180
9191
  var element = _iterator__ex2g4s.i();
9181
9192
  // Inline function 'community.flock.wirespec.compiler.core.validate.Validator.validateChannels.<anonymous>' call
9182
9193
  // Inline function 'kotlin.collections.filterIsInstance' call
9183
- var tmp0_0 = element.e27_1;
9194
+ var tmp0_0 = element.d27_1;
9184
9195
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
9185
9196
  var destination_0 = ArrayList_init_$Create$_0();
9186
9197
  var _iterator__ex2g4s_0 = tmp0_0.g();