@flock/wirespec 0.12.9 → 0.13.1

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.
@@ -54,6 +54,18 @@ import {
54
54
  dropLastlqc2oyv04br0 as dropLast,
55
55
  replace3le3ie7l9k8aq as replace,
56
56
  first58ocm7j58k3q as first_0,
57
+ emptyList1g2z5xcrvp2zy as emptyList,
58
+ plus310ted5e4i90h as plus,
59
+ addAll1k27qatfgp3k5 as addAll,
60
+ flatten2dh4kibw1u0qq as flatten,
61
+ filterNotNull3qfgcwmxhwfxe as filterNotNull,
62
+ equals2au1ep9vhcato as equals,
63
+ FunctionAdapter3lcrrz3moet5b as FunctionAdapter,
64
+ Comparator2b3maoeh98xtg as Comparator,
65
+ hashCodeq5arwsb9dgti as hashCode,
66
+ compareValues1n2ayl87ihzfk as compareValues,
67
+ sortedWith2csnbbb21k0lg as sortedWith,
68
+ ensureNotNull1e947j3ixpazm as ensureNotNull,
57
69
  trimIndent1qytc1wvt8suh as trimIndent,
58
70
  prependIndentkl9wuvcodvmu as prependIndent,
59
71
  toSet2orjxp16sotqu as toSet,
@@ -61,18 +73,13 @@ import {
61
73
  isUpperCase16ivdixranflt as isUpperCase,
62
74
  repeat2w4c6j8zoq09o as repeat,
63
75
  getStringHashCode26igk1bx568vk as getStringHashCode,
64
- hashCodeq5arwsb9dgti as hashCode,
65
- equals2au1ep9vhcato as equals,
66
76
  toIntOrNull3w2d066r9pvwm as toIntOrNull,
67
77
  numberRangeToNumber25vse2rgp6rs8 as numberRangeToNumber,
68
- addAll1k27qatfgp3k5 as addAll,
69
78
  withIndex37cl61h9v5txo as withIndex,
70
79
  IndexedValue22atz80p92rrf as IndexedValue,
71
80
  listOfNotNull1v4ggfackvuny as listOfNotNull_0,
72
- flatten2dh4kibw1u0qq as flatten,
73
81
  enumEntries20mr21zbe3az4 as enumEntries,
74
82
  getKClass1s3j9wy1cofik as getKClass,
75
- emptyList1g2z5xcrvp2zy as emptyList,
76
83
  drop336950s126lmj as drop,
77
84
  toList3jhuyej2anx2q as toList,
78
85
  getBooleanHashCode1bbj3u6b3v0a7 as getBooleanHashCode,
@@ -82,7 +89,6 @@ import {
82
89
  dropLast1vpiyky649o34 as dropLast_0,
83
90
  zipWithNext2nnv9puh4xyfv as zipWithNext,
84
91
  getKClassFromExpression3vpejubogshaw as getKClassFromExpression,
85
- ensureNotNull1e947j3ixpazm as ensureNotNull,
86
92
  last1vo29oleiqj36 as last,
87
93
  Paire9pteg33gng7 as Pair,
88
94
  println2shhhgwwt4c61 as println,
@@ -91,12 +97,12 @@ import {
91
97
  NonEmptyList3ak25ihy2gcvs as NonEmptyList,
92
98
  Left2oemzq1tpcg4i as Left,
93
99
  Right351sh2v8odavg as Right,
100
+ toNonEmptyListOrNull2ovnnazjb3msz as toNonEmptyListOrNull,
94
101
  nonEmptyListOf17xawqyzwrlrt as nonEmptyListOf,
95
102
  DefaultRaisevd10gc79qxh8 as DefaultRaise,
96
103
  nonFatalOrThrow35agffkx4bbtz as nonFatalOrThrow,
97
104
  raisedOrRethrow397oyvsdde7oq as raisedOrRethrow,
98
105
  RaiseCancellationException3n5raogfhbd1l as RaiseCancellationException,
99
- toNonEmptyListOrNull2ovnnazjb3msz as toNonEmptyListOrNull,
100
106
  right2w60qw9uivnyr as right,
101
107
  Companion_instancel37dvvdi0gn2 as Companion_instance,
102
108
  left3pixsqou14wpr as left,
@@ -127,23 +133,27 @@ initMetadataForClass(JavaEmitter, 'JavaEmitter', JavaEmitter, Emitter);
127
133
  initMetadataForCompanion(Companion_0);
128
134
  initMetadataForClass(KotlinEmitter, 'KotlinEmitter', KotlinEmitter, Emitter);
129
135
  initMetadataForCompanion(Companion_1);
136
+ initMetadataForClass(sam$kotlin_Comparator$0, 'sam$kotlin_Comparator$0', VOID, VOID, [Comparator, FunctionAdapter]);
137
+ initMetadataForClass(PythonEmitter, 'PythonEmitter', PythonEmitter, Emitter);
138
+ initMetadataForCompanion(Companion_2);
130
139
  initMetadataForClass(ScalaEmitter, 'ScalaEmitter', ScalaEmitter, Emitter);
131
140
  initMetadataForClass(TypeScriptEmitter, 'TypeScriptEmitter', TypeScriptEmitter, Emitter);
132
- initMetadataForCompanion(Companion_2);
141
+ initMetadataForCompanion(Companion_3);
133
142
  initMetadataForClass(WirespecEmitter, 'WirespecEmitter', WirespecEmitter, Emitter);
134
143
  initMetadataForObject(Spacer, 'Spacer');
135
144
  initMetadataForClass(Emitted, 'Emitted');
136
145
  initMetadataForClass(ParamType, 'ParamType', VOID, Enum);
137
146
  initMetadataForClass(Param, 'Param');
138
- initMetadataForCompanion(Companion_3);
139
- initMetadataForClass(FileExtension, 'FileExtension', VOID, Enum);
140
147
  initMetadataForCompanion(Companion_4);
148
+ initMetadataForClass(FileExtension, 'FileExtension', VOID, Enum);
149
+ initMetadataForCompanion(Companion_5);
141
150
  initMetadataForClass(PackageName, 'PackageName');
142
151
  initMetadataForObject(JavaShared, 'JavaShared');
143
152
  initMetadataForObject(KotlinShared, 'KotlinShared');
153
+ initMetadataForObject(PythonShared, 'PythonShared');
144
154
  initMetadataForObject(ScalaShared, 'ScalaShared');
145
155
  initMetadataForObject(TypeScriptShared, 'TypeScriptShared');
146
- initMetadataForCompanion(Companion_5);
156
+ initMetadataForCompanion(Companion_6);
147
157
  initMetadataForClass(WirespecException, 'WirespecException');
148
158
  initMetadataForClass(ParserException, 'ParserException', VOID, WirespecException);
149
159
  initMetadataForClass(EatTokenException, 'EatTokenException', VOID, ParserException);
@@ -157,10 +167,9 @@ initMetadataForClass(UnionError, 'UnionError', UnionError, ValidationError);
157
167
  initMetadataForObject(ChannelParser, 'ChannelParser');
158
168
  initMetadataForObject(EndpointParser, 'EndpointParser');
159
169
  initMetadataForObject(EnumParser, 'EnumParser');
160
- initMetadataForInterface(Definition, 'Definition');
161
170
  initMetadataForClass(Module, 'Module');
162
171
  initMetadataForClass(AST, 'AST');
163
- initMetadataForCompanion(Companion_6);
172
+ initMetadataForCompanion(Companion_7);
164
173
  initMetadataForClass(Comment, 'Comment');
165
174
  initMetadataForClass(Identifier, 'Identifier');
166
175
  initMetadataForClass(Precision, 'Precision', VOID, Enum);
@@ -176,19 +185,19 @@ initMetadataForClass(Iterable, 'Iterable');
176
185
  initMetadataForClass(Custom, 'Custom');
177
186
  initMetadataForClass(Primitive, 'Primitive');
178
187
  initMetadataForClass(Shape, 'Shape');
179
- initMetadataForClass(Type, 'Type', VOID, VOID, [Definition]);
188
+ initMetadataForClass(Type, 'Type');
180
189
  initMetadataForClass(Literal, 'Literal');
181
190
  initMetadataForClass(Param_0, 'Param');
182
191
  initMetadataForClass(Method, 'Method', VOID, Enum);
183
192
  initMetadataForClass(Request, 'Request');
184
193
  initMetadataForClass(Response, 'Response');
185
194
  initMetadataForClass(Content, 'Content');
186
- initMetadataForClass(Endpoint, 'Endpoint', VOID, VOID, [Definition]);
187
- initMetadataForClass(Enum_0, 'Enum', VOID, VOID, [Definition]);
195
+ initMetadataForClass(Endpoint, 'Endpoint');
196
+ initMetadataForClass(Enum_0, 'Enum');
188
197
  initMetadataForClass(Validator, 'Validator');
189
- initMetadataForClass(Refined, 'Refined', VOID, VOID, [Definition]);
190
- initMetadataForClass(Union, 'Union', VOID, VOID, [Definition]);
191
- initMetadataForClass(Channel, 'Channel', VOID, VOID, [Definition]);
198
+ initMetadataForClass(Refined, 'Refined');
199
+ initMetadataForClass(Union, 'Union');
200
+ initMetadataForClass(Channel, 'Channel');
192
201
  initMetadataForClass(FieldIdentifier, 'FieldIdentifier', VOID, Identifier);
193
202
  initMetadataForClass(Field, 'Field');
194
203
  initMetadataForClass(DefinitionIdentifier, 'DefinitionIdentifier', VOID, Identifier);
@@ -240,7 +249,7 @@ initMetadataForObject(ScreamingKebabCaseIdentifier, 'ScreamingKebabCaseIdentifie
240
249
  initMetadataForObject(SnakeCaseIdentifier, 'SnakeCaseIdentifier', VOID, VOID, [WirespecIdentifier]);
241
250
  initMetadataForObject(ScreamingSnakeCaseIdentifier, 'ScreamingSnakeCaseIdentifier', VOID, VOID, [WirespecIdentifier]);
242
251
  initMetadataForClass(TokenizeOptions, 'TokenizeOptions', TokenizeOptions);
243
- initMetadataForCompanion(Companion_7);
252
+ initMetadataForCompanion(Companion_8);
244
253
  initMetadataForClass(Level, 'Level', VOID, Enum);
245
254
  initMetadataForClass(Logger, 'Logger');
246
255
  function get_logger() {
@@ -278,7 +287,7 @@ var Stage_PARSED_instance;
278
287
  var Stage_EMITTED_instance;
279
288
  function Stage$log$lambda(this$0, $it) {
280
289
  return function (_this__u8e3s4) {
281
- _this__u8e3s4.y22().d23('********** ' + this$0.o2_1 + ' **********\n' + toString($it) + '\n########## ' + this$0.o2_1 + ' ##########');
290
+ _this__u8e3s4.y22().d23('********** ' + this$0.q2_1 + ' **********\n' + toString($it) + '\n########## ' + this$0.q2_1 + ' ##########');
282
291
  return Unit_instance;
283
292
  };
284
293
  }
@@ -472,7 +481,7 @@ function removeCommasAndSpaces(_this__u8e3s4) {
472
481
  inductionVariable = inductionVariable + 1 | 0;
473
482
  // Inline function 'community.flock.wirespec.compiler.core.removeCommasAndSpaces.<anonymous>' call
474
483
  if (!(element === _Char___init__impl__6a9atx(44) || element === _Char___init__impl__6a9atx(32))) {
475
- destination.a8(element);
484
+ destination.c8(element);
476
485
  }
477
486
  }
478
487
  return destination.toString();
@@ -487,7 +496,7 @@ function removeAngularBrackets(_this__u8e3s4) {
487
496
  inductionVariable = inductionVariable + 1 | 0;
488
497
  // Inline function 'community.flock.wirespec.compiler.core.removeAngularBrackets.<anonymous>' call
489
498
  if (!(element === _Char___init__impl__6a9atx(60) || element === _Char___init__impl__6a9atx(62))) {
490
- destination.a8(element);
499
+ destination.c8(element);
491
500
  }
492
501
  }
493
502
  return destination.toString();
@@ -532,7 +541,7 @@ function emit_0(_this__u8e3s4, $this) {
532
541
  } else {
533
542
  if (tmp0_subject instanceof Integer) {
534
543
  var tmp_0;
535
- switch (_this__u8e3s4.k24_1.p24_1.p2_1) {
544
+ switch (_this__u8e3s4.k24_1.p24_1.r2_1) {
536
545
  case 0:
537
546
  tmp_0 = 'Integer';
538
547
  break;
@@ -547,7 +556,7 @@ function emit_0(_this__u8e3s4, $this) {
547
556
  } else {
548
557
  if (tmp0_subject instanceof Number_0) {
549
558
  var tmp_1;
550
- switch (_this__u8e3s4.k24_1.n24_1.p2_1) {
559
+ switch (_this__u8e3s4.k24_1.n24_1.r2_1) {
551
560
  case 0:
552
561
  tmp_1 = 'Float';
553
562
  break;
@@ -677,7 +686,7 @@ function emitConstructor(_this__u8e3s4, $this, endpoint) {
677
686
  // Inline function 'kotlin.let' call
678
687
  // Inline function 'community.flock.wirespec.compiler.core.emit.JavaEmitter.emitConstructor.<anonymous>' call
679
688
  var tmp_7 = 'this.path = new Path(' + joinToString(tmp_6, VOID, VOID, VOID, VOID, VOID, JavaEmitter$emitConstructor$lambda_2($this)) + ');';
680
- var tmp_8 = 'this.method = Wirespec.Method.' + endpoint.t24_1.o2_1 + ';';
689
+ var tmp_8 = 'this.method = Wirespec.Method.' + endpoint.t24_1.q2_1 + ';';
681
690
  // Inline function 'kotlin.let' call
682
691
  // Inline function 'community.flock.wirespec.compiler.core.emit.JavaEmitter.emitConstructor.<anonymous>' call
683
692
  var tmp_9 = 'this.queries = new Queries(' + joinToString(endpoint.v24_1, VOID, VOID, VOID, VOID, VOID, JavaEmitter$emitConstructor$lambda_3($this)) + ');';
@@ -732,7 +741,7 @@ function emitDeserializedParams_0(_this__u8e3s4, $this) {
732
741
  }
733
742
  function emitSerialized(_this__u8e3s4, $this) {
734
743
  var tmp = Spacer_instance.e25(3);
735
- var tmp_0 = Companion_getInstance_3().l25(_this__u8e3s4.a25_1);
744
+ var tmp_0 = Companion_getInstance_4().l25(_this__u8e3s4.a25_1);
736
745
  var tmp_1;
737
746
  // Inline function 'kotlin.collections.isNotEmpty' call
738
747
  if (!_this__u8e3s4.b25_1.l()) {
@@ -743,7 +752,7 @@ function emitSerialized(_this__u8e3s4, $this) {
743
752
  return tmp + 'if (response instanceof Response' + tmp_0 + ' r) { return new Wirespec.RawResponse(r.getStatus(), ' + tmp_1 + ', ' + (!(_this__u8e3s4.c25_1 == null) ? 'serialization.serialize(r.body, Wirespec.getType(' + $this.m25(_this__u8e3s4.c25_1.h25_1, 'Void') + '.class, ' + _get_isIterable__qavhhr(_this__u8e3s4.c25_1.h25_1, $this) + '))' : 'null') + '); }';
744
753
  }
745
754
  function emitDeserialized(_this__u8e3s4, $this) {
746
- return Spacer_instance.e25(4) + 'case ' + _this__u8e3s4.a25_1 + ' -> new Response' + Companion_getInstance_3().l25(_this__u8e3s4.a25_1) + '(' + emitDeserializedParams_0(_this__u8e3s4, $this) + ');';
755
+ return Spacer_instance.e25(4) + 'case ' + _this__u8e3s4.a25_1 + ' -> new Response' + Companion_getInstance_4().l25(_this__u8e3s4.a25_1) + '(' + emitDeserializedParams_0(_this__u8e3s4, $this) + ');';
747
756
  }
748
757
  function emitSerializedParams(_this__u8e3s4, $this, fields) {
749
758
  return 'java.util.Map.entry("' + _this__u8e3s4.n25_1.b1() + '", serialization.serializeParam(request.' + fields + '.' + $this.q25(_this__u8e3s4.n25_1) + ', Wirespec.getType(' + $this.r25(_this__u8e3s4.o25_1) + '.class, ' + _get_isIterable__qavhhr(_this__u8e3s4.o25_1, $this) + ')))';
@@ -758,7 +767,7 @@ function emitSerializedHeader(_this__u8e3s4, $this) {
758
767
  return 'java.util.Map.entry("' + _this__u8e3s4.n25_1.b1() + '", serialization.serializeParam(r.getHeaders().' + $this.q25(_this__u8e3s4.n25_1) + '(), Wirespec.getType(' + $this.r25(_this__u8e3s4.o25_1) + '.class, ' + _get_isIterable__qavhhr(_this__u8e3s4.o25_1, $this) + ')))';
759
768
  }
760
769
  function emitIdentifier(_this__u8e3s4, $this) {
761
- return 'serialization.serialize(request.path.' + Companion_getInstance_3().u25($this.q25(_this__u8e3s4.s25_1)) + ', Wirespec.getType(' + $this.r25(_this__u8e3s4.t25_1) + '.class, ' + _get_isIterable__qavhhr(_this__u8e3s4.t25_1, $this) + '))';
770
+ return 'serialization.serialize(request.path.' + Companion_getInstance_4().u25($this.q25(_this__u8e3s4.s25_1)) + ', Wirespec.getType(' + $this.r25(_this__u8e3s4.t25_1) + '.class, ' + _get_isIterable__qavhhr(_this__u8e3s4.t25_1, $this) + '))';
762
771
  }
763
772
  function emitRoot(_this__u8e3s4, $this) {
764
773
  var tmp1_safe_receiver = _this__u8e3s4 == null ? null : _this__u8e3s4.h25_1;
@@ -791,7 +800,7 @@ function sanitizeSymbol(_this__u8e3s4, $this) {
791
800
  var _unary__edvuaz = index;
792
801
  index = _unary__edvuaz + 1 | 0;
793
802
  // Inline function 'community.flock.wirespec.compiler.core.emit.JavaEmitter.sanitizeSymbol.<anonymous>' call
794
- var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_getInstance_3().l25(item) : item;
803
+ var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_getInstance_4().l25(item) : item;
795
804
  destination.e(tmp$ret$0);
796
805
  }
797
806
  var tmp = asSequence(joinToString(destination, ''));
@@ -988,7 +997,7 @@ function JavaEmitter$sanitizeSymbol$lambda(it) {
988
997
  }
989
998
  function JavaEmitter(packageName) {
990
999
  Companion_getInstance();
991
- packageName = packageName === VOID ? Companion_instance_5.c26('community.flock.wirespec.generated') : packageName;
1000
+ packageName = packageName === VOID ? Companion_instance_6.c26('community.flock.wirespec.generated') : packageName;
992
1001
  Emitter.call(this, true);
993
1002
  this.b24_1 = packageName;
994
1003
  this.c24_1 = '\nimport community.flock.wirespec.java.Wirespec;\n';
@@ -1043,7 +1052,7 @@ protoOf(JavaEmitter).x26 = function (module_0, logger) {
1043
1052
  var result = destruct.zd();
1044
1053
  var tmp = sanitizeSymbol(typeName, this);
1045
1054
  // Inline function 'kotlin.text.trimStart' call
1046
- var this_1 = trimMargin('\n |package ' + this.b24_1.toString() + ';\n |' + (Companion_getInstance_3().a27(module_0) ? this.c24_1 : '') + '\n |' + result + '\n ');
1055
+ var this_1 = trimMargin('\n |package ' + this.b24_1.toString() + ';\n |' + (Companion_getInstance_4().a27(module_0) ? this.c24_1 : '') + '\n |' + result + '\n ');
1047
1056
  var tmp$ret$0 = toString(trimStart(isCharSequence(this_1) ? this_1 : THROW_CCE()));
1048
1057
  var tmp_0 = new Emitted(tmp, tmp$ret$0);
1049
1058
  // Inline function 'kotlin.collections.map' call
@@ -1058,7 +1067,7 @@ protoOf(JavaEmitter).x26 = function (module_0, logger) {
1058
1067
  var result_0 = item.zd();
1059
1068
  var tmp_1 = sanitizeSymbol(typeName_0, this);
1060
1069
  // Inline function 'kotlin.text.trimStart' call
1061
- var this_3 = trimMargin('\n |package ' + this.b24_1.toString() + ';\n |' + (Companion_getInstance_3().a27(module_0) ? this.c24_1 : '') + '\n |' + result_0 + '\n ');
1070
+ var this_3 = trimMargin('\n |package ' + this.b24_1.toString() + ';\n |' + (Companion_getInstance_4().a27(module_0) ? this.c24_1 : '') + '\n |' + result_0 + '\n ');
1062
1071
  var tmp$ret$2 = toString(trimStart(isCharSequence(this_3) ? this_3 : THROW_CCE()));
1063
1072
  var tmp$ret$3 = new Emitted(tmp_1, tmp$ret$2);
1064
1073
  destination.e(tmp$ret$3);
@@ -1304,7 +1313,7 @@ protoOf(JavaEmitter).p27 = function (endpoint) {
1304
1313
  while (_iterator__ex2g4s_2.h()) {
1305
1314
  var element = _iterator__ex2g4s_2.i();
1306
1315
  // Inline function 'community.flock.wirespec.compiler.core.emit.JavaEmitter.emit.<anonymous>' call
1307
- if (Companion_getInstance_3().r27(element.a25_1)) {
1316
+ if (Companion_getInstance_4().r27(element.a25_1)) {
1308
1317
  destination.e(element);
1309
1318
  }
1310
1319
  }
@@ -1320,14 +1329,14 @@ protoOf(JavaEmitter).p27 = function (endpoint) {
1320
1329
  return trimMargin('\n |public interface ' + tmp + 'Endpoint extends Wirespec.Endpoint {\n |' + tmp_1 + '\n |\n |' + tmp_2 + '\n |\n |' + tmp_3 + '\n |\n |' + tmp_4 + '\n |\n |' + tmp_5 + 'sealed interface Response<T> extends Wirespec.Response<T> {}\n |' + tmp_6 + '\n |' + tmp_7 + '\n |\n |' + tmp_9 + '\n |\n |' + tmp_10 + 'interface Handler extends Wirespec.Handler {\n |\n |' + tmp_11 + '\n |\n |' + tmp_12 + 'static Wirespec.RawResponse toResponse(Wirespec.Serializer<String> serialization, Response<?> response) {\n |' + tmp_14 + '\n |' + tmp_15 + 'else { throw new IllegalStateException("Cannot match response with status: " + response.getStatus());}\n |' + tmp_16 + '}\n |\n |' + tmp_17 + 'static Response<?> fromResponse(Wirespec.Deserializer<String> serialization, Wirespec.RawResponse response) {\n |' + tmp_18 + 'return switch (response.statusCode()) {\n |' + tmp_20 + '\n |' + tmp_21 + 'default -> throw new IllegalStateException("Cannot match response with status: " + response.statusCode());\n |' + tmp_22 + '};\n |' + tmp_23 + '}\n |\n |' + tmp_24 + tmp_25 + '\n |' + tmp_26 + 'class Handlers implements Wirespec.Server<Request, Response<?>>, Wirespec.Client<Request, Response<?>> {\n |' + tmp_27 + '@Override public String getPathTemplate() { return "/' + joinToString(endpoint.u24_1, '/', VOID, VOID, VOID, VOID, JavaEmitter$emit$lambda_9(this)) + '"; }\n |' + Spacer_instance.e25(3) + '@Override public String getMethod() { return "' + endpoint.t24_1.toString() + '"; }\n |' + Spacer_instance.e25(3) + '@Override public Wirespec.ServerEdge<Request, Response<?>> getServer(Wirespec.Serialization<String> serialization) {\n |' + Spacer_instance.e25(4) + 'return new Wirespec.ServerEdge<>() {\n |' + Spacer_instance.e25(5) + '@Override public Request from(Wirespec.RawRequest request) { return fromRequest(serialization, request); }\n |' + Spacer_instance.e25(5) + '@Override public Wirespec.RawResponse to(Response<?> response) { return toResponse(serialization, response); }\n |' + Spacer_instance.e25(4) + '};\n |' + Spacer_instance.e25(3) + '}\n |' + Spacer_instance.e25(3) + '@Override public Wirespec.ClientEdge<Request, Response<?>> getClient(Wirespec.Serialization<String> serialization) {\n |' + Spacer_instance.e25(4) + 'return new Wirespec.ClientEdge<>() {\n |' + Spacer_instance.e25(5) + '@Override public Wirespec.RawRequest to(Request request) { return toRequest(serialization, request); }\n |' + Spacer_instance.e25(5) + '@Override public Response<?> from(Wirespec.RawResponse response) { return fromResponse(serialization, response); }\n |' + Spacer_instance.e25(4) + '};\n |' + Spacer_instance.e25(3) + '}\n |' + Spacer_instance.e25(2) + '}\n |' + Spacer_instance.toString() + '}\n |}\n |\n ');
1321
1330
  };
1322
1331
  protoOf(JavaEmitter).s27 = function (endpoint) {
1323
- return 'java.util.concurrent.CompletableFuture<Response<?>> ' + Companion_getInstance_3().u25(this.q25(endpoint.s24_1)) + '(Request request);';
1332
+ return 'java.util.concurrent.CompletableFuture<Response<?>> ' + Companion_getInstance_4().u25(this.q25(endpoint.s24_1)) + '(Request request);';
1324
1333
  };
1325
1334
  protoOf(JavaEmitter).q27 = function (_this__u8e3s4, endpoint) {
1326
1335
  return trimMargin('\n |' + Spacer_instance.toString() + 'class Request implements Wirespec.Request<' + emit_1(_this__u8e3s4.f25_1, this) + '> {\n |' + Spacer_instance.e25(2) + 'private final Path path;\n |' + Spacer_instance.e25(2) + 'private final Wirespec.Method method;\n |' + Spacer_instance.e25(2) + 'private final Queries queries;\n |' + Spacer_instance.e25(2) + 'private final RequestHeaders headers;\n |' + Spacer_instance.e25(2) + 'private final ' + emit_1(_this__u8e3s4.f25_1, this) + ' body;\n |' + Spacer_instance.e25(2) + emitConstructor(_this__u8e3s4, this, endpoint) + '\n |' + Spacer_instance.e25(2) + '@Override public Path getPath() { return path; }\n |' + Spacer_instance.e25(2) + '@Override public Wirespec.Method getMethod() { return method; }\n |' + Spacer_instance.e25(2) + '@Override public Queries getQueries() { return queries; }\n |' + Spacer_instance.e25(2) + '@Override public RequestHeaders getHeaders() { return headers; }\n |' + Spacer_instance.e25(2) + '@Override public ' + emit_1(_this__u8e3s4.f25_1, this) + ' getBody() { return body; }\n |' + Spacer_instance.toString() + '}\n ');
1327
1336
  };
1328
1337
  protoOf(JavaEmitter).z25 = function (_this__u8e3s4) {
1329
1338
  var tmp = Spacer_instance.toString();
1330
- var tmp_0 = Companion_getInstance_3().l25(_this__u8e3s4.a25_1);
1339
+ var tmp_0 = Companion_getInstance_4().l25(_this__u8e3s4.a25_1);
1331
1340
  var tmp_1 = orNull(joinToString(_this__u8e3s4.b25_1, VOID, VOID, VOID, VOID, VOID, JavaEmitter$emit$lambda_10(this)));
1332
1341
  var tmp0_safe_receiver = _this__u8e3s4.c25_1;
1333
1342
  var tmp_2;
@@ -1512,7 +1521,7 @@ function sanitizeSymbol_0(_this__u8e3s4, $this) {
1512
1521
  var _unary__edvuaz = index;
1513
1522
  index = _unary__edvuaz + 1 | 0;
1514
1523
  // Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.sanitizeSymbol.<anonymous>' call
1515
- var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_getInstance_3().l25(item) : item;
1524
+ var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_getInstance_4().l25(item) : item;
1516
1525
  destination.e(tmp$ret$0);
1517
1526
  }
1518
1527
  var tmp = asSequence(joinToString(destination, ''));
@@ -1537,7 +1546,7 @@ function sanitizeFirstIsDigit_0(_this__u8e3s4, $this) {
1537
1546
  }
1538
1547
  function Companion_0() {
1539
1548
  Companion_instance_1 = this;
1540
- this.b28_1 = setOf(['as', 'break', 'class', 'continue', 'do', 'else', 'false', 'for', 'fun', 'if', 'in', 'interface', 'internal', 'is', 'null', 'object', 'open', 'package', 'return', 'super', 'this', 'throw', 'true', 'try', 'typealias', 'typeof', 'val', 'var', 'when', 'while', 'private', 'public']);
1549
+ this.a28_1 = setOf(['as', 'break', 'class', 'continue', 'do', 'else', 'false', 'for', 'fun', 'if', 'in', 'interface', 'internal', 'is', 'null', 'object', 'open', 'package', 'return', 'super', 'this', 'throw', 'true', 'try', 'typealias', 'typeof', 'val', 'var', 'when', 'while', 'private', 'public']);
1541
1550
  }
1542
1551
  var Companion_instance_1;
1543
1552
  function Companion_getInstance_0() {
@@ -1706,19 +1715,19 @@ function KotlinEmitter$sanitizeSymbol$lambda(it) {
1706
1715
  }
1707
1716
  function KotlinEmitter(packageName) {
1708
1717
  Companion_getInstance_0();
1709
- packageName = packageName === VOID ? Companion_instance_5.c26('community.flock.wirespec.generated') : packageName;
1718
+ packageName = packageName === VOID ? Companion_instance_6.c26('community.flock.wirespec.generated') : packageName;
1710
1719
  Emitter.call(this, false);
1711
- this.w27_1 = packageName;
1712
- this.x27_1 = '\nimport community.flock.wirespec.kotlin.Wirespec\nimport kotlin.reflect.typeOf\n';
1713
- this.y27_1 = FileExtension_Kotlin_getInstance();
1714
- this.z27_1 = KotlinShared_getInstance();
1715
- this.a28_1 = '//';
1720
+ this.v27_1 = packageName;
1721
+ this.w27_1 = '\nimport community.flock.wirespec.kotlin.Wirespec\nimport kotlin.reflect.typeOf\n';
1722
+ this.x27_1 = FileExtension_Kotlin_getInstance();
1723
+ this.y27_1 = KotlinShared_getInstance();
1724
+ this.z27_1 = '//';
1716
1725
  }
1717
1726
  protoOf(KotlinEmitter).d26 = function () {
1718
- return this.y27_1;
1727
+ return this.x27_1;
1719
1728
  };
1720
1729
  protoOf(KotlinEmitter).e26 = function () {
1721
- return this.z27_1;
1730
+ return this.y27_1;
1722
1731
  };
1723
1732
  protoOf(KotlinEmitter).f26 = function (_this__u8e3s4) {
1724
1733
  var tmp;
@@ -1750,7 +1759,7 @@ protoOf(KotlinEmitter).f26 = function (_this__u8e3s4) {
1750
1759
  return tmp;
1751
1760
  };
1752
1761
  protoOf(KotlinEmitter).w26 = function () {
1753
- return this.a28_1;
1762
+ return this.z27_1;
1754
1763
  };
1755
1764
  protoOf(KotlinEmitter).x26 = function (module_0, logger) {
1756
1765
  // Inline function 'arrow.core.NonEmptyList.map' call
@@ -1761,7 +1770,7 @@ protoOf(KotlinEmitter).x26 = function (module_0, logger) {
1761
1770
  var result = destruct.zd();
1762
1771
  var tmp = sanitizeSymbol_0(typeName, this);
1763
1772
  // Inline function 'kotlin.text.trimStart' call
1764
- var this_1 = trimMargin('\n |package ' + this.w27_1.toString() + '\n |' + (Companion_getInstance_3().a27(module_0) ? this.x27_1 : '') + '\n |' + result + '\n ');
1773
+ var this_1 = trimMargin('\n |package ' + this.v27_1.toString() + '\n |' + (Companion_getInstance_4().a27(module_0) ? this.w27_1 : '') + '\n |' + result + '\n ');
1765
1774
  var tmp$ret$0 = toString(trimStart(isCharSequence(this_1) ? this_1 : THROW_CCE()));
1766
1775
  var tmp_0 = new Emitted(tmp, tmp$ret$0);
1767
1776
  // Inline function 'kotlin.collections.map' call
@@ -1776,7 +1785,7 @@ protoOf(KotlinEmitter).x26 = function (module_0, logger) {
1776
1785
  var result_0 = item.zd();
1777
1786
  var tmp_1 = sanitizeSymbol_0(typeName_0, this);
1778
1787
  // Inline function 'kotlin.text.trimStart' call
1779
- var this_3 = trimMargin('\n |package ' + this.w27_1.toString() + '\n |' + (Companion_getInstance_3().a27(module_0) ? this.x27_1 : '') + '\n |' + result_0 + '\n ');
1788
+ var this_3 = trimMargin('\n |package ' + this.v27_1.toString() + '\n |' + (Companion_getInstance_4().a27(module_0) ? this.w27_1 : '') + '\n |' + result_0 + '\n ');
1780
1789
  var tmp$ret$2 = toString(trimStart(isCharSequence(this_3) ? this_3 : THROW_CCE()));
1781
1790
  var tmp$ret$3 = new Emitted(tmp_1, tmp$ret$2);
1782
1791
  destination.e(tmp$ret$3);
@@ -1835,7 +1844,7 @@ protoOf(KotlinEmitter).g24 = function (_this__u8e3s4) {
1835
1844
  } else {
1836
1845
  if (tmp1_subject instanceof Integer) {
1837
1846
  var tmp_1;
1838
- switch (_this__u8e3s4.k24_1.p24_1.p2_1) {
1847
+ switch (_this__u8e3s4.k24_1.p24_1.r2_1) {
1839
1848
  case 0:
1840
1849
  tmp_1 = 'Int';
1841
1850
  break;
@@ -1850,7 +1859,7 @@ protoOf(KotlinEmitter).g24 = function (_this__u8e3s4) {
1850
1859
  } else {
1851
1860
  if (tmp1_subject instanceof Number_0) {
1852
1861
  var tmp_2;
1853
- switch (_this__u8e3s4.k24_1.n24_1.p2_1) {
1862
+ switch (_this__u8e3s4.k24_1.n24_1.r2_1) {
1854
1863
  case 0:
1855
1864
  tmp_2 = 'Float';
1856
1865
  break;
@@ -1971,104 +1980,1132 @@ protoOf(KotlinEmitter).p27 = function (endpoint) {
1971
1980
  while (_iterator__ex2g4s_1.h()) {
1972
1981
  var element = _iterator__ex2g4s_1.i();
1973
1982
  // Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emit.<anonymous>' call
1974
- if (Companion_getInstance_3().r27(element.a25_1)) {
1983
+ if (Companion_getInstance_4().r27(element.a25_1)) {
1984
+ destination.e(element);
1985
+ }
1986
+ }
1987
+ // Inline function 'kotlin.collections.distinctBy' call
1988
+ var set_1 = HashSet_init_$Create$();
1989
+ var list_1 = ArrayList_init_$Create$_0();
1990
+ var _iterator__ex2g4s_2 = destination.g();
1991
+ while (_iterator__ex2g4s_2.h()) {
1992
+ var e_1 = _iterator__ex2g4s_2.i();
1993
+ // Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emit.<anonymous>' call
1994
+ var key_1 = e_1.a25_1;
1995
+ if (set_1.e(key_1)) {
1996
+ list_1.e(e_1);
1997
+ }
1998
+ }
1999
+ var tmp_17 = list_1;
2000
+ var tmp_18 = joinToString(tmp_17, '\n', VOID, VOID, VOID, VOID, KotlinEmitter$emit$lambda_7(this));
2001
+ var tmp_19 = Spacer_instance.e25(3);
2002
+ var tmp_20 = Spacer_instance.e25(2);
2003
+ var tmp_21 = Spacer_instance.toString();
2004
+ var tmp_22 = Spacer_instance.e25(2);
2005
+ var tmp_23 = this.s27(endpoint);
2006
+ var tmp_24 = Spacer_instance.e25(2);
2007
+ var tmp_25 = Spacer_instance.e25(3);
2008
+ return trimMargin('\n |object ' + tmp + 'Endpoint : Wirespec.Endpoint {\n |' + tmp_1 + '\n |\n |' + tmp_2 + '\n |\n |' + tmp_3 + '\n |\n |' + tmp_4 + '\n |\n |' + tmp_5 + 'sealed interface Response<T: Any> : Wirespec.Response<T>\n |\n |' + tmp_6 + '\n |\n |' + tmp_7 + '\n |\n |' + tmp_9 + '\n |\n |' + tmp_10 + 'fun toResponse(serialization: Wirespec.Serializer<String>, response: Response<*>): Wirespec.RawResponse =\n |' + tmp_11 + 'when(response) {\n |' + tmp_13 + '\n |' + tmp_14 + '}\n |\n |' + tmp_15 + 'fun fromResponse(serialization: Wirespec.Deserializer<String>, response: Wirespec.RawResponse): Response<*> =\n |' + tmp_16 + 'when (response.statusCode) {\n |' + tmp_18 + '\n |' + tmp_19 + 'else -> error("Cannot match response with status: ${response.statusCode}")\n |' + tmp_20 + '}\n |\n |' + tmp_21 + 'interface Handler: Wirespec.Handler {\n |' + tmp_22 + tmp_23 + '\n |' + tmp_24 + 'companion object: Wirespec.Server<Request, Response<*>>, Wirespec.Client<Request, Response<*>> {\n |' + tmp_25 + 'override val pathTemplate = "/' + joinToString(endpoint.u24_1, '/', VOID, VOID, VOID, VOID, KotlinEmitter$emit$lambda_8(this)) + '"\n |' + Spacer_instance.e25(3) + 'override val method = "' + endpoint.t24_1.toString() + '"\n |' + Spacer_instance.e25(3) + 'override fun server(serialization: Wirespec.Serialization<String>) = object : Wirespec.ServerEdge<Request, Response<*>> {\n |' + Spacer_instance.e25(4) + 'override fun from(request: Wirespec.RawRequest) = fromRequest(serialization, request)\n |' + Spacer_instance.e25(4) + 'override fun to(response: Response<*>) = toResponse(serialization, response)\n |' + Spacer_instance.e25(3) + '}\n |' + Spacer_instance.e25(3) + 'override fun client(serialization: Wirespec.Serialization<String>) = object : Wirespec.ClientEdge<Request, Response<*>> {\n |' + Spacer_instance.e25(4) + 'override fun to(request: Request) = toRequest(serialization, request)\n |' + Spacer_instance.e25(4) + 'override fun from(response: Wirespec.RawResponse) = fromResponse(serialization, response)\n |' + Spacer_instance.e25(3) + '}\n |' + Spacer_instance.e25(2) + '}\n |' + Spacer_instance.toString() + '}\n |}\n |\n ');
2009
+ };
2010
+ protoOf(KotlinEmitter).s27 = function (endpoint) {
2011
+ return 'suspend fun ' + Companion_getInstance_4().u25(this.q25(endpoint.s24_1)) + '(request: Request): Response<*>';
2012
+ };
2013
+ protoOf(KotlinEmitter).q27 = function (_this__u8e3s4, endpoint) {
2014
+ var tmp = Spacer_instance.toString();
2015
+ var tmp_0 = emitConstructor_0(_this__u8e3s4, this, endpoint);
2016
+ var tmp_1 = Spacer_instance.e25(2);
2017
+ var tmp_2 = this.i25(endpoint);
2018
+ var tmp_3 = brace(joinToString(tmp_2, VOID, VOID, VOID, VOID, VOID, KotlinEmitter$emit$lambda_9(this)), this);
2019
+ var tmp_4 = Spacer_instance.e25(2);
2020
+ var tmp_5 = Spacer_instance.e25(2);
2021
+ var tmp_6 = brace(joinToString(endpoint.v24_1, VOID, VOID, VOID, VOID, VOID, KotlinEmitter$emit$lambda_10(this)), this);
2022
+ var tmp_7 = Spacer_instance.e25(2);
2023
+ var tmp_8 = brace(joinToString(endpoint.w24_1, VOID, VOID, VOID, VOID, VOID, KotlinEmitter$emit$lambda_11(this)), this);
2024
+ var tmp_9 = _this__u8e3s4.f25_1 == null ? '\n' + Spacer_instance.e25(2) + 'override val body = Unit' : '';
2025
+ var tmp_10 = Spacer_instance.toString();
2026
+ var tmp_11 = Spacer_instance.toString();
2027
+ var tmp_12 = Spacer_instance.e25(2);
2028
+ var tmp_13 = Spacer_instance.e25(3);
2029
+ var tmp_14 = joinToString(endpoint.u24_1, VOID, VOID, VOID, VOID, VOID, KotlinEmitter$emit$lambda_12(this));
2030
+ var tmp_15 = Spacer_instance.e25(3);
2031
+ var tmp_16 = Spacer_instance.e25(3);
2032
+ var tmp_17;
2033
+ // Inline function 'kotlin.collections.isNotEmpty' call
2034
+ if (!endpoint.v24_1.l()) {
2035
+ tmp_17 = joinToString(endpoint.v24_1, ' + ', VOID, VOID, VOID, VOID, KotlinEmitter$emit$lambda_13(this));
2036
+ } else {
2037
+ tmp_17 = 'emptyMap()';
2038
+ }
2039
+ var tmp_18 = tmp_17;
2040
+ var tmp_19 = Spacer_instance.e25(3);
2041
+ var tmp_20;
2042
+ // Inline function 'kotlin.collections.isNotEmpty' call
2043
+ if (!endpoint.w24_1.l()) {
2044
+ tmp_20 = joinToString(endpoint.w24_1, ' + ', VOID, VOID, VOID, VOID, KotlinEmitter$emit$lambda_14(this));
2045
+ } else {
2046
+ tmp_20 = 'emptyMap()';
2047
+ }
2048
+ return trimMargin('\n |' + tmp + tmp_0 + '\n |' + tmp_1 + 'override val path = Path' + tmp_3 + '\n |' + tmp_4 + 'override val method = Wirespec.Method.' + endpoint.t24_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.e25(3) + 'body = serialization.serialize(request.body, typeOf<' + emit_3(_this__u8e3s4.f25_1, this) + '>()),\n |' + Spacer_instance.e25(2) + ')\n |\n |' + Spacer_instance.toString() + 'fun fromRequest(serialization: Wirespec.Deserializer<String>, request: Wirespec.RawRequest): Request =\n |' + Spacer_instance.e25(2) + 'Request' + emitDeserializedParams_2(_this__u8e3s4, this, endpoint) + '\n ');
2049
+ };
2050
+ protoOf(KotlinEmitter).z25 = function (_this__u8e3s4) {
2051
+ var tmp = Spacer_instance.toString();
2052
+ var tmp_0 = emit_3(_this__u8e3s4.c25_1, this);
2053
+ // Inline function 'kotlin.let' call
2054
+ // Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emit.<anonymous>' call
2055
+ var it = joinToString(_this__u8e3s4.b25_1, ', ', VOID, VOID, VOID, VOID, KotlinEmitter$emit$lambda_15(this));
2056
+ var tmp_1 = isBlank(it) ? '' : ', ' + it;
2057
+ var tmp_2 = toString_0(charSequenceGet(_this__u8e3s4.a25_1, 0));
2058
+ var tmp_3 = emit_3(_this__u8e3s4.c25_1, this);
2059
+ var tmp_4 = concatGenerics(emit_3(_this__u8e3s4.c25_1, this));
2060
+ var tmp_5 = Spacer_instance.e25(2);
2061
+ var tmp_6 = fixStatus_0(_this__u8e3s4.a25_1, this);
2062
+ var tmp_7 = Spacer_instance.e25(2);
2063
+ var tmp_8 = brace(joinToString(_this__u8e3s4.b25_1, VOID, VOID, VOID, VOID, VOID, KotlinEmitter$emit$lambda_16(this)), this);
2064
+ return trimMargin('\n |' + tmp + 'data class Response' + _this__u8e3s4.a25_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.b25_1, this, 'ResponseHeaders', 'Wirespec.Response.Headers', 2, KotlinEmitter$emit$lambda_17(this)) + '\n |' + Spacer_instance.toString() + '}\n ');
2065
+ };
2066
+ protoOf(KotlinEmitter).x25 = function (_this__u8e3s4) {
2067
+ return sanitizeFirstIsDigit_0(joinToString(split(_this__u8e3s4, ['-', ', ', '.', ' ', '//']), '_'), this);
2068
+ };
2069
+ protoOf(KotlinEmitter).y25 = function (_this__u8e3s4) {
2070
+ return Companion_getInstance_0().a28_1.o1(_this__u8e3s4) ? addBackticks(_this__u8e3s4) : _this__u8e3s4;
2071
+ };
2072
+ function localImports(_this__u8e3s4, $this) {
2073
+ var tmp;
2074
+ if (_this__u8e3s4 instanceof Endpoint) {
2075
+ // Inline function 'kotlin.collections.filterIsInstance' call
2076
+ var tmp0 = _this__u8e3s4.u24_1;
2077
+ // Inline function 'kotlin.collections.filterIsInstanceTo' call
2078
+ var destination = ArrayList_init_$Create$_0();
2079
+ var _iterator__ex2g4s = tmp0.g();
2080
+ while (_iterator__ex2g4s.h()) {
2081
+ var element = _iterator__ex2g4s.i();
2082
+ if (element instanceof Param) {
2083
+ destination.e(element);
2084
+ }
2085
+ }
2086
+ // Inline function 'kotlin.collections.map' call
2087
+ // Inline function 'kotlin.collections.mapTo' call
2088
+ var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(destination, 10));
2089
+ var _iterator__ex2g4s_0 = destination.g();
2090
+ while (_iterator__ex2g4s_0.h()) {
2091
+ var item = _iterator__ex2g4s_0.i();
2092
+ // Inline function 'community.flock.wirespec.compiler.core.emit.PythonEmitter.localImports.<anonymous>' call
2093
+ var tmp$ret$2 = item.d28_1;
2094
+ destination_0.e(tmp$ret$2);
2095
+ }
2096
+ var tmp_0 = destination_0;
2097
+ // Inline function 'kotlin.collections.map' call
2098
+ var this_0 = _this__u8e3s4.w24_1;
2099
+ // Inline function 'kotlin.collections.mapTo' call
2100
+ var destination_1 = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
2101
+ var _iterator__ex2g4s_1 = this_0.g();
2102
+ while (_iterator__ex2g4s_1.h()) {
2103
+ var item_0 = _iterator__ex2g4s_1.i();
2104
+ // Inline function 'community.flock.wirespec.compiler.core.emit.PythonEmitter.localImports.<anonymous>' call
2105
+ var tmp$ret$5 = item_0.o25_1;
2106
+ destination_1.e(tmp$ret$5);
2107
+ }
2108
+ var tmp_1 = destination_1;
2109
+ // Inline function 'kotlin.collections.map' call
2110
+ var this_1 = _this__u8e3s4.v24_1;
2111
+ // Inline function 'kotlin.collections.mapTo' call
2112
+ var destination_2 = ArrayList_init_$Create$(collectionSizeOrDefault(this_1, 10));
2113
+ var _iterator__ex2g4s_2 = this_1.g();
2114
+ while (_iterator__ex2g4s_2.h()) {
2115
+ var item_1 = _iterator__ex2g4s_2.i();
2116
+ // Inline function 'community.flock.wirespec.compiler.core.emit.PythonEmitter.localImports.<anonymous>' call
2117
+ var tmp$ret$8 = item_1.o25_1;
2118
+ destination_2.e(tmp$ret$8);
2119
+ }
2120
+ var tmp_2 = destination_2;
2121
+ // Inline function 'kotlin.collections.map' call
2122
+ var this_2 = _this__u8e3s4.y24_1;
2123
+ // Inline function 'kotlin.collections.mapTo' call
2124
+ var destination_3 = ArrayList_init_$Create$(collectionSizeOrDefault(this_2, 10));
2125
+ var _iterator__ex2g4s_3 = this_2.g();
2126
+ while (_iterator__ex2g4s_3.h()) {
2127
+ var item_2 = _iterator__ex2g4s_3.i();
2128
+ // Inline function 'community.flock.wirespec.compiler.core.emit.PythonEmitter.localImports.<anonymous>' call
2129
+ var tmp0_safe_receiver = item_2.f25_1;
2130
+ var tmp$ret$11 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.h25_1;
2131
+ destination_3.e(tmp$ret$11);
2132
+ }
2133
+ var tmp_3 = destination_3;
2134
+ // Inline function 'kotlin.collections.flatMap' call
2135
+ var tmp0_0 = _this__u8e3s4.z24_1;
2136
+ // Inline function 'kotlin.collections.flatMapTo' call
2137
+ var destination_4 = ArrayList_init_$Create$_0();
2138
+ var _iterator__ex2g4s_4 = tmp0_0.g();
2139
+ while (_iterator__ex2g4s_4.h()) {
2140
+ var element_0 = _iterator__ex2g4s_4.i();
2141
+ // Inline function 'community.flock.wirespec.compiler.core.emit.PythonEmitter.localImports.<anonymous>' call
2142
+ var tmp0_safe_receiver_0 = element_0.c25_1;
2143
+ var tmp_4 = listOf_0(tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.h25_1);
2144
+ // Inline function 'kotlin.collections.map' call
2145
+ var this_3 = element_0.b25_1;
2146
+ // Inline function 'kotlin.collections.mapTo' call
2147
+ var destination_5 = ArrayList_init_$Create$(collectionSizeOrDefault(this_3, 10));
2148
+ var _iterator__ex2g4s_5 = this_3.g();
2149
+ while (_iterator__ex2g4s_5.h()) {
2150
+ var item_3 = _iterator__ex2g4s_5.i();
2151
+ // Inline function 'community.flock.wirespec.compiler.core.emit.PythonEmitter.localImports.<anonymous>.<anonymous>' call
2152
+ var tmp$ret$14 = item_3.o25_1;
2153
+ destination_5.e(tmp$ret$14);
2154
+ }
2155
+ var list = plus(tmp_4, destination_5);
2156
+ addAll(destination_4, list);
2157
+ }
2158
+ // Inline function 'kotlin.collections.map' call
2159
+ var this_4 = filterNotNull(flatten(listOf([tmp_0, tmp_1, tmp_2, tmp_3, destination_4])));
2160
+ // Inline function 'kotlin.collections.mapTo' call
2161
+ var destination_6 = ArrayList_init_$Create$(collectionSizeOrDefault(this_4, 10));
2162
+ var _iterator__ex2g4s_6 = this_4.g();
2163
+ while (_iterator__ex2g4s_6.h()) {
2164
+ var item_4 = _iterator__ex2g4s_6.i();
2165
+ // Inline function 'community.flock.wirespec.compiler.core.emit.PythonEmitter.localImports.<anonymous>' call
2166
+ var tmp$ret$20 = flattenListDict(item_4, $this);
2167
+ destination_6.e(tmp$ret$20);
2168
+ }
2169
+ // Inline function 'kotlin.collections.filterIsInstance' call
2170
+ // Inline function 'kotlin.collections.filterIsInstanceTo' call
2171
+ var destination_7 = ArrayList_init_$Create$_0();
2172
+ var _iterator__ex2g4s_7 = destination_6.g();
2173
+ while (_iterator__ex2g4s_7.h()) {
2174
+ var element_1 = _iterator__ex2g4s_7.i();
2175
+ if (element_1 instanceof Custom) {
2176
+ destination_7.e(element_1);
2177
+ }
2178
+ }
2179
+ tmp = distinct(destination_7);
2180
+ } else {
2181
+ if (_this__u8e3s4 instanceof Type) {
2182
+ // Inline function 'kotlin.collections.filter' call
2183
+ var tmp0_1 = _this__u8e3s4.l26_1.g27_1;
2184
+ // Inline function 'kotlin.collections.filterTo' call
2185
+ var destination_8 = ArrayList_init_$Create$_0();
2186
+ var _iterator__ex2g4s_8 = tmp0_1.g();
2187
+ while (_iterator__ex2g4s_8.h()) {
2188
+ var element_2 = _iterator__ex2g4s_8.i();
2189
+ // Inline function 'community.flock.wirespec.compiler.core.emit.PythonEmitter.localImports.<anonymous>' call
2190
+ if (!(_this__u8e3s4.k26_1.b1() === emitRoot_0(element_2.o25_1, $this))) {
2191
+ destination_8.e(element_2);
2192
+ }
2193
+ }
2194
+ // Inline function 'kotlin.collections.map' call
2195
+ // Inline function 'kotlin.collections.mapTo' call
2196
+ var destination_9 = ArrayList_init_$Create$(collectionSizeOrDefault(destination_8, 10));
2197
+ var _iterator__ex2g4s_9 = destination_8.g();
2198
+ while (_iterator__ex2g4s_9.h()) {
2199
+ var item_5 = _iterator__ex2g4s_9.i();
2200
+ // Inline function 'community.flock.wirespec.compiler.core.emit.PythonEmitter.localImports.<anonymous>' call
2201
+ var tmp$ret$28 = flattenListDict(item_5.o25_1, $this);
2202
+ destination_9.e(tmp$ret$28);
2203
+ }
2204
+ // Inline function 'kotlin.collections.filterIsInstance' call
2205
+ // Inline function 'kotlin.collections.filterIsInstanceTo' call
2206
+ var destination_10 = ArrayList_init_$Create$_0();
2207
+ var _iterator__ex2g4s_10 = destination_9.g();
2208
+ while (_iterator__ex2g4s_10.h()) {
2209
+ var element_3 = _iterator__ex2g4s_10.i();
2210
+ if (element_3 instanceof Custom) {
2211
+ destination_10.e(element_3);
2212
+ }
2213
+ }
2214
+ tmp = distinct(destination_10);
2215
+ } else {
2216
+ tmp = emptyList();
2217
+ }
2218
+ }
2219
+ return tmp;
2220
+ }
2221
+ function flattenListDict(_this__u8e3s4, $this) {
2222
+ var tmp;
2223
+ if (_this__u8e3s4 instanceof Dict) {
2224
+ tmp = flattenListDict(_this__u8e3s4.h24_1, $this);
2225
+ } else {
2226
+ if (_this__u8e3s4 instanceof Iterable) {
2227
+ tmp = flattenListDict(_this__u8e3s4.x23_1, $this);
2228
+ } else {
2229
+ tmp = _this__u8e3s4;
2230
+ }
2231
+ }
2232
+ return tmp;
2233
+ }
2234
+ function emitReferenceCustomImports(_this__u8e3s4, $this) {
2235
+ return 'from .' + _this__u8e3s4.v23_1 + ' import ' + _this__u8e3s4.v23_1;
2236
+ }
2237
+ function emit_5(_this__u8e3s4, $this) {
2238
+ return $this.q25(_this__u8e3s4.s25_1) + ': ' + $this.g24(_this__u8e3s4.t25_1) + ' ';
2239
+ }
2240
+ function emit_6(_this__u8e3s4, $this) {
2241
+ return $this.q25(_this__u8e3s4.c28_1) + ': ' + $this.g24(_this__u8e3s4.d28_1);
2242
+ }
2243
+ function emitAssignSelf(_this__u8e3s4, $this) {
2244
+ return $this.q25(_this__u8e3s4.c28_1) + ' = ' + $this.q25(_this__u8e3s4.c28_1);
2245
+ }
2246
+ function emitAssignSelf_0(_this__u8e3s4, $this, endpoint) {
2247
+ var tmp = $this.f26(endpoint);
2248
+ // Inline function 'kotlin.collections.filter' call
2249
+ var tmp0 = $this.k28(_this__u8e3s4, endpoint);
2250
+ // Inline function 'kotlin.collections.filterTo' call
2251
+ var destination = ArrayList_init_$Create$_0();
2252
+ var _iterator__ex2g4s = tmp0.g();
2253
+ while (_iterator__ex2g4s.h()) {
2254
+ var element = _iterator__ex2g4s.i();
2255
+ // Inline function 'community.flock.wirespec.compiler.core.emit.PythonEmitter.emitAssignSelf.<anonymous>' call
2256
+ if (element.b28_1.equals(ParamType_PATH_getInstance())) {
2257
+ destination.e(element);
2258
+ }
2259
+ }
2260
+ var tmp_0 = destination;
2261
+ var tmp_1 = joinToString(tmp_0, VOID, VOID, VOID, VOID, VOID, PythonEmitter$emitAssignSelf$lambda($this));
2262
+ var tmp_2 = $this.f26(endpoint);
2263
+ // Inline function 'kotlin.collections.filter' call
2264
+ var tmp0_0 = $this.k28(_this__u8e3s4, endpoint);
2265
+ // Inline function 'kotlin.collections.filterTo' call
2266
+ var destination_0 = ArrayList_init_$Create$_0();
2267
+ var _iterator__ex2g4s_0 = tmp0_0.g();
2268
+ while (_iterator__ex2g4s_0.h()) {
2269
+ var element_0 = _iterator__ex2g4s_0.i();
2270
+ // Inline function 'community.flock.wirespec.compiler.core.emit.PythonEmitter.emitAssignSelf.<anonymous>' call
2271
+ if (element_0.b28_1.equals(ParamType_QUERY_getInstance())) {
2272
+ destination_0.e(element_0);
2273
+ }
2274
+ }
2275
+ var tmp_3 = destination_0;
2276
+ var tmp_4 = $this.t27(joinToString(tmp_3, ',\n', VOID, VOID, VOID, VOID, PythonEmitter$emitAssignSelf$lambda_0($this)), 1);
2277
+ var tmp_5 = $this.f26(endpoint);
2278
+ // Inline function 'kotlin.collections.filter' call
2279
+ var tmp0_1 = $this.k28(_this__u8e3s4, endpoint);
2280
+ // Inline function 'kotlin.collections.filterTo' call
2281
+ var destination_1 = ArrayList_init_$Create$_0();
2282
+ var _iterator__ex2g4s_1 = tmp0_1.g();
2283
+ while (_iterator__ex2g4s_1.h()) {
2284
+ var element_1 = _iterator__ex2g4s_1.i();
2285
+ // Inline function 'community.flock.wirespec.compiler.core.emit.PythonEmitter.emitAssignSelf.<anonymous>' call
2286
+ if (element_1.b28_1.equals(ParamType_HEADER_getInstance())) {
2287
+ destination_1.e(element_1);
2288
+ }
2289
+ }
2290
+ var tmp_6 = destination_1;
2291
+ var tmp_7 = $this.t27(joinToString(tmp_6, ',\n', VOID, VOID, VOID, VOID, PythonEmitter$emitAssignSelf$lambda_1($this)), 1);
2292
+ var tmp_8;
2293
+ if (_this__u8e3s4.f25_1 == null) {
2294
+ tmp_8 = null;
2295
+ } else {
2296
+ // Inline function 'kotlin.let' call
2297
+ // Inline function 'community.flock.wirespec.compiler.core.emit.PythonEmitter.emitAssignSelf.<anonymous>' call
2298
+ tmp_8 = 'body';
2299
+ }
2300
+ var tmp1_elvis_lhs = tmp_8;
2301
+ return trimMargin('\n |self._path = ' + tmp + '.Request.Path(' + tmp_1 + ')\n |self._queries = ' + tmp_2 + '.Request.Queries(' + tmp_4 + ')\n |self._headers = ' + tmp_5 + '.Request.Headers(' + tmp_7 + ')\n |self._body = ' + (tmp1_elvis_lhs == null ? 'None' : tmp1_elvis_lhs) + '\n ');
2302
+ }
2303
+ function emitAssignSelf_1(_this__u8e3s4, $this, endpoint) {
2304
+ var tmp = $this.f26(endpoint);
2305
+ // Inline function 'kotlin.collections.filter' call
2306
+ var tmp0 = $this.l28(_this__u8e3s4);
2307
+ // Inline function 'kotlin.collections.filterTo' call
2308
+ var destination = ArrayList_init_$Create$_0();
2309
+ var _iterator__ex2g4s = tmp0.g();
2310
+ while (_iterator__ex2g4s.h()) {
2311
+ var element = _iterator__ex2g4s.i();
2312
+ // Inline function 'community.flock.wirespec.compiler.core.emit.PythonEmitter.emitAssignSelf.<anonymous>' call
2313
+ if (element.b28_1.equals(ParamType_HEADER_getInstance())) {
1975
2314
  destination.e(element);
1976
2315
  }
1977
2316
  }
1978
- // Inline function 'kotlin.collections.distinctBy' call
1979
- var set_1 = HashSet_init_$Create$();
1980
- var list_1 = ArrayList_init_$Create$_0();
1981
- var _iterator__ex2g4s_2 = destination.g();
1982
- while (_iterator__ex2g4s_2.h()) {
1983
- var e_1 = _iterator__ex2g4s_2.i();
1984
- // Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emit.<anonymous>' call
1985
- var key_1 = e_1.a25_1;
1986
- if (set_1.e(key_1)) {
1987
- list_1.e(e_1);
2317
+ var tmp_0 = destination;
2318
+ var tmp_1 = $this.t27(joinToString(tmp_0, ',\n', VOID, VOID, VOID, VOID, PythonEmitter$emitAssignSelf$lambda_2($this)), 1);
2319
+ var tmp_2;
2320
+ if (_this__u8e3s4.c25_1 == null) {
2321
+ tmp_2 = null;
2322
+ } else {
2323
+ // Inline function 'kotlin.let' call
2324
+ // Inline function 'community.flock.wirespec.compiler.core.emit.PythonEmitter.emitAssignSelf.<anonymous>' call
2325
+ tmp_2 = 'body';
2326
+ }
2327
+ var tmp1_elvis_lhs = tmp_2;
2328
+ return trimMargin('\n |self._headers = ' + tmp + '.Response' + _this__u8e3s4.a25_1 + '.Headers(' + tmp_1 + ')\n |self._body = ' + (tmp1_elvis_lhs == null ? 'None' : tmp1_elvis_lhs) + '\n ');
2329
+ }
2330
+ function emitType_0(_this__u8e3s4, $this) {
2331
+ var tmp;
2332
+ if (_this__u8e3s4 instanceof Dict) {
2333
+ tmp = 'Dict[str, ' + $this.g24(_this__u8e3s4.h24_1) + ']';
2334
+ } else {
2335
+ if (_this__u8e3s4 instanceof Iterable) {
2336
+ tmp = 'List[' + $this.g24(_this__u8e3s4.x23_1) + ']';
2337
+ } else {
2338
+ if (_this__u8e3s4 instanceof Unit) {
2339
+ tmp = 'None';
2340
+ } else {
2341
+ if (_this__u8e3s4 instanceof Any) {
2342
+ tmp = 'Any';
2343
+ } else {
2344
+ if (_this__u8e3s4 instanceof Custom) {
2345
+ tmp = _this__u8e3s4.v23_1;
2346
+ } else {
2347
+ if (_this__u8e3s4 instanceof Primitive) {
2348
+ tmp = $this.m28(_this__u8e3s4.k24_1);
2349
+ } else {
2350
+ noWhenBranchMatchedException();
2351
+ }
2352
+ }
2353
+ }
2354
+ }
2355
+ }
2356
+ }
2357
+ return tmp;
2358
+ }
2359
+ function emitRoot_0(_this__u8e3s4, $this) {
2360
+ var tmp;
2361
+ if (_this__u8e3s4 instanceof Dict) {
2362
+ tmp = emitRoot_0(_this__u8e3s4.h24_1, $this);
2363
+ } else {
2364
+ if (_this__u8e3s4 instanceof Iterable) {
2365
+ tmp = emitRoot_0(_this__u8e3s4.x23_1, $this);
2366
+ } else {
2367
+ if (_this__u8e3s4 instanceof Any) {
2368
+ tmp = emitType_0(_this__u8e3s4, $this);
2369
+ } else {
2370
+ if (_this__u8e3s4 instanceof Custom) {
2371
+ tmp = emitType_0(_this__u8e3s4, $this);
2372
+ } else {
2373
+ if (_this__u8e3s4 instanceof Primitive) {
2374
+ tmp = emitType_0(_this__u8e3s4, $this);
2375
+ } else {
2376
+ if (_this__u8e3s4 instanceof Unit) {
2377
+ tmp = emitType_0(_this__u8e3s4, $this);
2378
+ } else {
2379
+ noWhenBranchMatchedException();
2380
+ }
2381
+ }
2382
+ }
2383
+ }
2384
+ }
2385
+ }
2386
+ return tmp;
2387
+ }
2388
+ function emitResponseUnion(_this__u8e3s4, $this) {
2389
+ return trimMargin('\n |Response = ' + joinToString(_this__u8e3s4.z24_1, ' | ', VOID, VOID, VOID, VOID, PythonEmitter$emitResponseUnion$lambda) + '\n |\n ');
2390
+ }
2391
+ function emitHandleClass(_this__u8e3s4, $this) {
2392
+ return trimMargin('\n |class Handler(Wirespec.Endpoint.Handler):\n |' + Spacer_instance.toString() + '@abstractmethod\n |' + Spacer_instance.toString() + 'def ' + _this__u8e3s4.s24_1.b1() + "(self, req: '" + $this.f26(_this__u8e3s4) + ".Request') -> '" + $this.f26(_this__u8e3s4) + ".Response': pass\n |\n ");
2393
+ }
2394
+ function emitConvertClass(_this__u8e3s4, $this) {
2395
+ return trimMargin('\n |class Convert(Wirespec.Endpoint.Convert[Request, Response]):\n |' + $this.t27(emitToRawRequest(first_0(_this__u8e3s4.y24_1), $this, _this__u8e3s4), 1) + '\n |' + $this.t27(emitFromRawRequest(first_0(_this__u8e3s4.y24_1), $this, _this__u8e3s4), 1) + '\n |' + $this.t27(emitToRawResponse(_this__u8e3s4, $this), 1) + '\n |' + $this.t27(emitFromRawResponse(_this__u8e3s4, $this), 1) + '\n |\n ');
2396
+ }
2397
+ function emitToRawRequest(_this__u8e3s4, $this, endpoint) {
2398
+ var tmp = $this.f26(endpoint);
2399
+ var tmp_0 = Spacer_instance.toString();
2400
+ var tmp_1 = Spacer_instance.toString();
2401
+ var tmp_2 = Spacer_instance.toString();
2402
+ var tmp_3 = joinToString(endpoint.u24_1, VOID, VOID, VOID, VOID, VOID, PythonEmitter$emitToRawRequest$lambda($this));
2403
+ var tmp_4 = Spacer_instance.toString();
2404
+ var tmp_5 = Spacer_instance.toString();
2405
+ var tmp_6 = Spacer_instance.toString();
2406
+ var tmp_7 = Spacer_instance.toString();
2407
+ var tmp_8;
2408
+ // Inline function 'kotlin.collections.isNotEmpty' call
2409
+ if (!endpoint.v24_1.l()) {
2410
+ tmp_8 = joinToString(endpoint.v24_1, ',\n', '{', '}', VOID, VOID, PythonEmitter$emitToRawRequest$lambda_0($this));
2411
+ } else {
2412
+ tmp_8 = '{}';
2413
+ }
2414
+ var tmp_9 = tmp_8;
2415
+ var tmp_10 = Spacer_instance.toString();
2416
+ var tmp_11 = Spacer_instance.toString();
2417
+ var tmp_12;
2418
+ // Inline function 'kotlin.collections.isNotEmpty' call
2419
+ if (!endpoint.w24_1.l()) {
2420
+ tmp_12 = joinToString(endpoint.w24_1, ',\n', '{', '}', VOID, VOID, PythonEmitter$emitToRawRequest$lambda_1($this));
2421
+ } else {
2422
+ tmp_12 = '{}';
2423
+ }
2424
+ var tmp_13 = tmp_12;
2425
+ var tmp_14 = Spacer_instance.toString();
2426
+ var tmp_15 = Spacer_instance.toString();
2427
+ var tmp0_safe_receiver = _this__u8e3s4.f25_1;
2428
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.h25_1;
2429
+ var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : emitType_0(tmp1_safe_receiver, $this);
2430
+ return trimMargin("\n |@staticmethod\n |def to_raw_request(serialization: Wirespec.Serializer, request: '" + tmp + ".Request') -> Wirespec.RawRequest:\n |" + tmp_0 + 'return Wirespec.RawRequest(\n |' + tmp_1 + tmp_2 + 'path = [' + tmp_3 + '],\n |' + tmp_4 + tmp_5 + 'method = request.method.value,\n |' + tmp_6 + tmp_7 + 'queries = ' + tmp_9 + ',\n |' + tmp_10 + tmp_11 + 'headers = ' + tmp_13 + ',\n |' + tmp_14 + tmp_15 + 'body = serialization.serialize(request.body, ' + (tmp2_elvis_lhs == null ? 'type(None)' : tmp2_elvis_lhs) + '),\n |' + Spacer_instance.toString() + ')\n |\n ');
2431
+ }
2432
+ function emitFromRawRequest(_this__u8e3s4, $this, endpoint) {
2433
+ return trimMargin("\n |@staticmethod\n |def from_raw_request(serialization: Wirespec.Deserializer, request: Wirespec.RawRequest) -> '" + $this.f26(endpoint) + ".Request':\n |" + Spacer_instance.toString() + 'return ' + $this.f26(endpoint) + '.Request' + emitDeserializedParams_4(_this__u8e3s4, $this, endpoint) + '\n |\n ');
2434
+ }
2435
+ function emitDeserializedParams_4(_this__u8e3s4, $this, endpoint) {
2436
+ var tmp = $this.j25(endpoint);
2437
+ var tmp_0 = orNull(joinToString(tmp, VOID, VOID, VOID, VOID, VOID, PythonEmitter$emitDeserializedParams$lambda($this)));
2438
+ var tmp_1 = orNull(joinToString(endpoint.v24_1, ',\n', VOID, VOID, VOID, VOID, PythonEmitter$emitDeserializedParams$lambda_0($this)));
2439
+ var tmp_2 = orNull(joinToString(endpoint.w24_1, ',\n', VOID, VOID, VOID, VOID, PythonEmitter$emitDeserializedParams$lambda_1($this)));
2440
+ var tmp0_safe_receiver = _this__u8e3s4.f25_1;
2441
+ var tmp_3;
2442
+ if (tmp0_safe_receiver == null) {
2443
+ tmp_3 = null;
2444
+ } else {
2445
+ // Inline function 'kotlin.let' call
2446
+ // Inline function 'community.flock.wirespec.compiler.core.emit.PythonEmitter.emitDeserializedParams.<anonymous>' call
2447
+ tmp_3 = Spacer_instance.e25(3) + 'body = serialization.deserialize(request.body, ' + emitType_0(tmp0_safe_receiver.h25_1, $this) + '),';
2448
+ }
2449
+ // Inline function 'kotlin.let' call
2450
+ // Inline function 'community.flock.wirespec.compiler.core.emit.PythonEmitter.emitDeserializedParams.<anonymous>' call
2451
+ var it = joinToString(listOfNotNull([tmp_0, tmp_1, tmp_2, tmp_3]), ',\n');
2452
+ return isBlank(it) ? '' : '(\n' + it + '\n)';
2453
+ }
2454
+ function emitDeserialized_3(_this__u8e3s4, $this) {
2455
+ return Spacer_instance.e25(3) + $this.q25(_this__u8e3s4.xd_1.s25_1) + ' = serialization.deserialize(request.path[' + _this__u8e3s4.wd_1 + '], ' + emitType_0(_this__u8e3s4.xd_1.t25_1, $this) + ')';
2456
+ }
2457
+ function emitDeserializedParams_5(_this__u8e3s4, $this, type, fields) {
2458
+ return _this__u8e3s4.o25_1.sm() ? $this.q25(_this__u8e3s4.n25_1) + ' = serialization.deserialize_param(' + type + '.' + fields + '.get("' + _this__u8e3s4.n25_1.b1() + '".lower()), ' + emitType_0(_this__u8e3s4.o25_1, $this) + ')' : $this.q25(_this__u8e3s4.n25_1) + ' = serialization.deserialize_param(' + type + '.' + fields + '.get("' + _this__u8e3s4.n25_1.b1() + '".lower()), ' + emitType_0(_this__u8e3s4.o25_1, $this) + ')';
2459
+ }
2460
+ function emitToRawResponse(_this__u8e3s4, $this) {
2461
+ var tmp = $this.f26(_this__u8e3s4);
2462
+ var tmp_0 = Spacer_instance.toString();
2463
+ // Inline function 'kotlin.collections.distinctBy' call
2464
+ var this_0 = _this__u8e3s4.z24_1;
2465
+ var set = HashSet_init_$Create$();
2466
+ var list = ArrayList_init_$Create$_0();
2467
+ var _iterator__ex2g4s = this_0.g();
2468
+ while (_iterator__ex2g4s.h()) {
2469
+ var e = _iterator__ex2g4s.i();
2470
+ // Inline function 'community.flock.wirespec.compiler.core.emit.PythonEmitter.emitToRawResponse.<anonymous>' call
2471
+ var key = e.a25_1;
2472
+ if (set.e(key)) {
2473
+ list.e(e);
2474
+ }
2475
+ }
2476
+ var tmp_1 = list;
2477
+ return trimMargin("\n |@staticmethod\n |def to_raw_response(serialization: Wirespec.Serializer, response: '" + tmp + ".Response') -> Wirespec.RawResponse:\n |" + tmp_0 + 'match response:\n |' + $this.t27(joinToString(tmp_1, '\n', VOID, VOID, VOID, VOID, PythonEmitter$emitToRawResponse$lambda($this, _this__u8e3s4)), 2) + '\n |' + Spacer_instance.toString() + Spacer_instance.toString() + 'case _:\n |' + Spacer_instance.toString() + Spacer_instance.toString() + Spacer_instance.toString() + 'raise Exception("Cannot match response with status: " + str(response.status))\n ');
2478
+ }
2479
+ function emitFromRawResponse(_this__u8e3s4, $this) {
2480
+ var tmp = $this.f26(_this__u8e3s4);
2481
+ var tmp_0 = Spacer_instance.toString();
2482
+ // Inline function 'kotlin.collections.filter' call
2483
+ var tmp0 = _this__u8e3s4.z24_1;
2484
+ // Inline function 'kotlin.collections.filterTo' call
2485
+ var destination = ArrayList_init_$Create$_0();
2486
+ var _iterator__ex2g4s = tmp0.g();
2487
+ while (_iterator__ex2g4s.h()) {
2488
+ var element = _iterator__ex2g4s.i();
2489
+ // Inline function 'community.flock.wirespec.compiler.core.emit.PythonEmitter.emitFromRawResponse.<anonymous>' call
2490
+ if (Companion_getInstance_4().r27(element.a25_1)) {
2491
+ destination.e(element);
2492
+ }
2493
+ }
2494
+ // Inline function 'kotlin.collections.distinctBy' call
2495
+ var set = HashSet_init_$Create$();
2496
+ var list = ArrayList_init_$Create$_0();
2497
+ var _iterator__ex2g4s_0 = destination.g();
2498
+ while (_iterator__ex2g4s_0.h()) {
2499
+ var e = _iterator__ex2g4s_0.i();
2500
+ // Inline function 'community.flock.wirespec.compiler.core.emit.PythonEmitter.emitFromRawResponse.<anonymous>' call
2501
+ var key = e.a25_1;
2502
+ if (set.e(key)) {
2503
+ list.e(e);
2504
+ }
2505
+ }
2506
+ var tmp_1 = list;
2507
+ return trimMargin("\n |@staticmethod\n |def from_raw_response(serialization: Wirespec.Deserializer, response: Wirespec.RawResponse) -> '" + tmp + ".Response':\n |" + tmp_0 + 'match response.status_code:\n |' + $this.t27(joinToString(tmp_1, '\n', VOID, VOID, VOID, VOID, PythonEmitter$emitFromRawResponse$lambda($this, _this__u8e3s4)), 2) + '\n |' + Spacer_instance.e25(2) + 'case _: \n |' + Spacer_instance.e25(3) + 'raise Exception("Cannot match response with status: " + str(response.status_code))\n |\n ');
2508
+ }
2509
+ function emitDeserialized_4(_this__u8e3s4, $this, endpoint) {
2510
+ var tmp = 'case ' + _this__u8e3s4.a25_1 + ':';
2511
+ var tmp_0 = Spacer_instance.toString() + 'return ' + $this.f26(endpoint) + '.Response' + _this__u8e3s4.a25_1 + '(';
2512
+ var tmp_1 = Spacer_instance.e25(2);
2513
+ var tmp0_safe_receiver = _this__u8e3s4.c25_1;
2514
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.h25_1;
2515
+ var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : emitType_0(tmp1_safe_receiver, $this);
2516
+ var tmp_2 = tmp_1 + 'body = serialization.deserialize(response.body, ' + (tmp2_elvis_lhs == null ? 'type(None)' : tmp2_elvis_lhs) + '),';
2517
+ var tmp3_safe_receiver = orNull(joinToString(_this__u8e3s4.b25_1, ',\n', VOID, VOID, VOID, VOID, PythonEmitter$emitDeserialized$lambda($this)));
2518
+ return joinToString(listOfNotNull([tmp, tmp_0, tmp_2, tmp3_safe_receiver == null ? null : $this.t27(tmp3_safe_receiver, 2), Spacer_instance.toString() + ')']), '\n');
2519
+ }
2520
+ function emitSerialized_1(_this__u8e3s4, $this, endpoint) {
2521
+ var tmp = $this.f26(endpoint);
2522
+ var tmp_0 = Spacer_instance.e25(1);
2523
+ var tmp_1 = Spacer_instance.e25(2);
2524
+ var tmp_2 = Spacer_instance.e25(2);
2525
+ var tmp_3;
2526
+ // Inline function 'kotlin.collections.isNotEmpty' call
2527
+ if (!_this__u8e3s4.b25_1.l()) {
2528
+ tmp_3 = joinToString(_this__u8e3s4.b25_1, ', ', '{', '}', VOID, VOID, PythonEmitter$emitSerialized$lambda($this));
2529
+ } else {
2530
+ tmp_3 = '{}';
2531
+ }
2532
+ return trimMargin('\n |case ' + tmp + '.Response' + _this__u8e3s4.a25_1 + '():\n |' + tmp_0 + 'return Wirespec.RawResponse(\n |' + tmp_1 + 'status_code = response.status,\n |' + tmp_2 + 'headers = ' + tmp_3 + ',\n |' + Spacer_instance.e25(2) + 'body = ' + (!(_this__u8e3s4.c25_1 == null) ? 'serialization.serialize(response.body, ' + emitType_0(_this__u8e3s4.c25_1.h25_1, $this) : 'type(None)') + '),\n |' + Spacer_instance.e25(1) + ')\n ');
2533
+ }
2534
+ function emitSerializedParams_1(_this__u8e3s4, $this, type, fields) {
2535
+ return '"' + _this__u8e3s4.n25_1.b1() + '": serialization.serialize_param(' + type + '.' + fields + '.' + $this.q25(_this__u8e3s4.n25_1) + ', ' + emitType_0(_this__u8e3s4.o25_1, $this) + ')';
2536
+ }
2537
+ function emitObject_1(_this__u8e3s4, $this, name, extends_0, spaces, block) {
2538
+ var tmp;
2539
+ if (_this__u8e3s4.l()) {
2540
+ tmp = trimMargin('\n |' + Spacer_instance.e25(spaces) + '@dataclass\n |' + Spacer_instance.e25(spaces) + 'class ' + name + ' (' + extends_0 + '): pass\n ');
2541
+ } else {
2542
+ var tmp_0 = Spacer_instance.e25(spaces);
2543
+ var tmp_1 = Spacer_instance.e25(spaces);
2544
+ tmp = trimMargin('\n |' + tmp_0 + '@dataclass\n |' + tmp_1 + 'class ' + name + ' (' + extends_0 + '):\n |' + joinToString(_this__u8e3s4, '\n', VOID, VOID, VOID, VOID, PythonEmitter$emitObject$lambda(spaces, block)) + '\n ');
2545
+ }
2546
+ return tmp;
2547
+ }
2548
+ function emitObject$default_0(_this__u8e3s4, $this, name, extends_0, spaces, block, $super) {
2549
+ spaces = spaces === VOID ? 1 : spaces;
2550
+ return emitObject_1(_this__u8e3s4, $this, name, extends_0, spaces, block);
2551
+ }
2552
+ function emit_7(_this__u8e3s4, $this) {
2553
+ var tmp1_safe_receiver = _this__u8e3s4 == null ? null : _this__u8e3s4.h25_1;
2554
+ var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : $this.g24(tmp1_safe_receiver);
2555
+ return tmp2_elvis_lhs == null ? 'None' : tmp2_elvis_lhs;
2556
+ }
2557
+ function sanitizeSymbol_1(_this__u8e3s4, $this) {
2558
+ // Inline function 'kotlin.collections.mapIndexed' call
2559
+ var this_0 = split(_this__u8e3s4, ['.', ' ']);
2560
+ // Inline function 'kotlin.collections.mapIndexedTo' call
2561
+ var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
2562
+ var index = 0;
2563
+ var _iterator__ex2g4s = this_0.g();
2564
+ while (_iterator__ex2g4s.h()) {
2565
+ var item = _iterator__ex2g4s.i();
2566
+ var _unary__edvuaz = index;
2567
+ index = _unary__edvuaz + 1 | 0;
2568
+ // Inline function 'community.flock.wirespec.compiler.core.emit.PythonEmitter.sanitizeSymbol.<anonymous>' call
2569
+ var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_getInstance_4().l25(item) : item;
2570
+ destination.e(tmp$ret$0);
2571
+ }
2572
+ // Inline function 'kotlin.text.filter' call
2573
+ var tmp0 = joinToString(destination, '');
2574
+ // Inline function 'kotlin.text.filterTo' call
2575
+ var destination_0 = StringBuilder_init_$Create$();
2576
+ var inductionVariable = 0;
2577
+ var last = charSequenceLength(tmp0);
2578
+ if (inductionVariable < last)
2579
+ do {
2580
+ var index_0 = inductionVariable;
2581
+ inductionVariable = inductionVariable + 1 | 0;
2582
+ var element = charSequenceGet(tmp0, index_0);
2583
+ // Inline function 'community.flock.wirespec.compiler.core.emit.PythonEmitter.sanitizeSymbol.<anonymous>' call
2584
+ if (isLetterOrDigit(element) || element === _Char___init__impl__6a9atx(95)) {
2585
+ destination_0.c8(element);
2586
+ }
2587
+ }
2588
+ while (inductionVariable < last);
2589
+ // Inline function 'kotlin.let' call
2590
+ // Inline function 'community.flock.wirespec.compiler.core.emit.PythonEmitter.sanitizeSymbol.<anonymous>' call
2591
+ var it = destination_0.toString();
2592
+ var tmp;
2593
+ var tmp0_safe_receiver = firstOrNull(it);
2594
+ var tmp_0;
2595
+ var tmp_1 = tmp0_safe_receiver;
2596
+ if ((tmp_1 == null ? null : new Char(tmp_1)) == null) {
2597
+ tmp_0 = null;
2598
+ } else {
2599
+ tmp_0 = isDigit(tmp0_safe_receiver);
2600
+ }
2601
+ if (tmp_0 === true) {
2602
+ tmp = '_' + it;
2603
+ } else {
2604
+ tmp = it;
2605
+ }
2606
+ return tmp;
2607
+ }
2608
+ function Companion_1() {
2609
+ Companion_instance_2 = this;
2610
+ this.n28_1 = setOf(['False', 'None', 'True', 'and', 'as', 'assert', 'break', 'class', 'continue', 'def', 'del', 'elif', 'else', 'except', 'finally', 'for', 'from', 'global', 'if', 'import', 'in', 'is', 'lambda', 'nonlocal', 'not', 'or', 'pass', 'raise', 'return', 'try', 'while', 'with', 'yield']);
2611
+ }
2612
+ var Companion_instance_2;
2613
+ function Companion_getInstance_1() {
2614
+ if (Companion_instance_2 == null)
2615
+ new Companion_1();
2616
+ return Companion_instance_2;
2617
+ }
2618
+ function sam$kotlin_Comparator$0(function_0) {
2619
+ this.o28_1 = function_0;
2620
+ }
2621
+ protoOf(sam$kotlin_Comparator$0).dd = function (a, b) {
2622
+ return this.o28_1(a, b);
2623
+ };
2624
+ protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
2625
+ return this.dd(a, b);
2626
+ };
2627
+ protoOf(sam$kotlin_Comparator$0).p3 = function () {
2628
+ return this.o28_1;
2629
+ };
2630
+ protoOf(sam$kotlin_Comparator$0).equals = function (other) {
2631
+ var tmp;
2632
+ if (!(other == null) ? isInterface(other, Comparator) : false) {
2633
+ var tmp_0;
2634
+ if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
2635
+ tmp_0 = equals(this.p3(), other.p3());
2636
+ } else {
2637
+ tmp_0 = false;
2638
+ }
2639
+ tmp = tmp_0;
2640
+ } else {
2641
+ tmp = false;
2642
+ }
2643
+ return tmp;
2644
+ };
2645
+ protoOf(sam$kotlin_Comparator$0).hashCode = function () {
2646
+ return hashCode(this.p3());
2647
+ };
2648
+ function PythonEmitter$emit$lambda(this$0) {
2649
+ return function (a, b) {
2650
+ // Inline function 'kotlin.comparisons.compareValuesBy' call
2651
+ // Inline function 'community.flock.wirespec.compiler.core.emit.PythonEmitter.emit.stub_for_inlining' call
2652
+ var tmp = this$0.p28(a);
2653
+ // Inline function 'community.flock.wirespec.compiler.core.emit.PythonEmitter.emit.stub_for_inlining' call
2654
+ var tmp$ret$1 = this$0.p28(b);
2655
+ return compareValues(tmp, tmp$ret$1);
2656
+ };
2657
+ }
2658
+ function PythonEmitter$emit$lambda_0(this$0) {
2659
+ return function (it) {
2660
+ return emitReferenceCustomImports(it, this$0);
2661
+ };
2662
+ }
2663
+ function PythonEmitter$emit$lambda_1(this$0) {
2664
+ return function (it) {
2665
+ return emitReferenceCustomImports(it, this$0);
2666
+ };
2667
+ }
2668
+ function PythonEmitter$emit$lambda_2(this$0) {
2669
+ return function (it) {
2670
+ return Spacer_instance.toString() + this$0.w25(it);
2671
+ };
2672
+ }
2673
+ function PythonEmitter$emitAssignSelf$lambda(this$0) {
2674
+ return function (it) {
2675
+ return emitAssignSelf(it, this$0);
2676
+ };
2677
+ }
2678
+ function PythonEmitter$emitAssignSelf$lambda_0(this$0) {
2679
+ return function (it) {
2680
+ return emitAssignSelf(it, this$0);
2681
+ };
2682
+ }
2683
+ function PythonEmitter$emitAssignSelf$lambda_1(this$0) {
2684
+ return function (it) {
2685
+ return emitAssignSelf(it, this$0);
2686
+ };
2687
+ }
2688
+ function PythonEmitter$emitAssignSelf$lambda_2(this$0) {
2689
+ return function (it) {
2690
+ return emitAssignSelf(it, this$0);
2691
+ };
2692
+ }
2693
+ function PythonEmitter$emit$lambda_3(this$0) {
2694
+ return function (it) {
2695
+ return emitReferenceCustomImports(it, this$0);
2696
+ };
2697
+ }
2698
+ function PythonEmitter$emit$lambda_4(this$0, $endpoint) {
2699
+ return function (it) {
2700
+ return this$0.q28(it, $endpoint);
2701
+ };
2702
+ }
2703
+ function PythonEmitter$emitResponseUnion$lambda(it) {
2704
+ return 'Response' + it.a25_1;
2705
+ }
2706
+ function PythonEmitter$emit$lambda_5(this$0) {
2707
+ return function (it) {
2708
+ return emit_5(it, this$0);
2709
+ };
2710
+ }
2711
+ function PythonEmitter$emit$lambda_6(this$0) {
2712
+ return function (it) {
2713
+ return this$0.w25(it);
2714
+ };
2715
+ }
2716
+ function PythonEmitter$emit$lambda_7(this$0) {
2717
+ return function (it) {
2718
+ return this$0.w25(it);
2719
+ };
2720
+ }
2721
+ function PythonEmitter$emit$lambda_8(this$0) {
2722
+ return function (it) {
2723
+ return emit_6(it, this$0);
2724
+ };
2725
+ }
2726
+ function PythonEmitter$emitToRawRequest$lambda(this$0) {
2727
+ return function (it) {
2728
+ var tmp;
2729
+ if (it instanceof Literal) {
2730
+ tmp = '"' + it.b26_1 + '"';
2731
+ } else {
2732
+ if (it instanceof Param_0) {
2733
+ tmp = 'str(request.path.' + this$0.q25(it.s25_1) + ')';
2734
+ } else {
2735
+ noWhenBranchMatchedException();
2736
+ }
2737
+ }
2738
+ return tmp;
2739
+ };
2740
+ }
2741
+ function PythonEmitter$emitToRawRequest$lambda_0(this$0) {
2742
+ return function (it) {
2743
+ return emitSerializedParams_1(it, this$0, 'request', 'queries');
2744
+ };
2745
+ }
2746
+ function PythonEmitter$emitToRawRequest$lambda_1(this$0) {
2747
+ return function (it) {
2748
+ return emitSerializedParams_1(it, this$0, 'request', 'headers');
2749
+ };
2750
+ }
2751
+ function PythonEmitter$emitDeserializedParams$lambda(this$0) {
2752
+ return function (it) {
2753
+ return emitDeserialized_3(it, this$0);
2754
+ };
2755
+ }
2756
+ function PythonEmitter$emitDeserializedParams$lambda_0(this$0) {
2757
+ return function (it) {
2758
+ return emitDeserializedParams_5(it, this$0, 'request', 'queries');
2759
+ };
2760
+ }
2761
+ function PythonEmitter$emitDeserializedParams$lambda_1(this$0) {
2762
+ return function (it) {
2763
+ return emitDeserializedParams_5(it, this$0, 'request', 'headers');
2764
+ };
2765
+ }
2766
+ function PythonEmitter$emit$lambda_9(this$0) {
2767
+ return function (it) {
2768
+ return this$0.w25(it);
2769
+ };
2770
+ }
2771
+ function PythonEmitter$emit$lambda_10(this$0) {
2772
+ return function (it) {
2773
+ return emit_6(it, this$0);
2774
+ };
2775
+ }
2776
+ function PythonEmitter$emitToRawResponse$lambda(this$0, $this_emitToRawResponse) {
2777
+ return function (it) {
2778
+ return emitSerialized_1(it, this$0, $this_emitToRawResponse);
2779
+ };
2780
+ }
2781
+ function PythonEmitter$emitFromRawResponse$lambda(this$0, $this_emitFromRawResponse) {
2782
+ return function (it) {
2783
+ return emitDeserialized_4(it, this$0, $this_emitFromRawResponse);
2784
+ };
2785
+ }
2786
+ function PythonEmitter$emitDeserialized$lambda(this$0) {
2787
+ return function (it) {
2788
+ return emitDeserializedParams_5(it, this$0, 'response', 'headers');
2789
+ };
2790
+ }
2791
+ function PythonEmitter$emitSerialized$lambda(this$0) {
2792
+ return function (it) {
2793
+ return emitSerializedParams_1(it, this$0, 'response', 'headers');
2794
+ };
2795
+ }
2796
+ function PythonEmitter$emitObject$lambda($spaces, $block) {
2797
+ return function (it) {
2798
+ return Spacer_instance.e25($spaces + 2 | 0) + $block(it);
2799
+ };
2800
+ }
2801
+ function PythonEmitter$emit$lambda_11(this$0) {
2802
+ return function (it) {
2803
+ return Spacer_instance.toString() + this$0.y25(this$0.x25(it)) + ' = "' + it + '"';
2804
+ };
2805
+ }
2806
+ function PythonEmitter(packageName) {
2807
+ Companion_getInstance_1();
2808
+ packageName = packageName === VOID ? Companion_instance_6.c26('community.flock.wirespec.generated') : packageName;
2809
+ Emitter.call(this, true);
2810
+ this.f28_1 = packageName;
2811
+ this.g28_1 = 'from abc import abstractmethod\nfrom dataclasses import dataclass\nfrom typing import List, Optional\n\nfrom .shared.Wirespec import T, Wirespec\n';
2812
+ this.h28_1 = FileExtension_Python_getInstance();
2813
+ this.i28_1 = PythonShared_instance;
2814
+ this.j28_1 = '#';
2815
+ }
2816
+ protoOf(PythonEmitter).d26 = function () {
2817
+ return this.h28_1;
2818
+ };
2819
+ protoOf(PythonEmitter).e26 = function () {
2820
+ return this.i28_1;
2821
+ };
2822
+ protoOf(PythonEmitter).f26 = function (_this__u8e3s4) {
2823
+ var tmp;
2824
+ if (_this__u8e3s4 instanceof Endpoint) {
2825
+ tmp = this.q25(_this__u8e3s4.s24_1) + 'Endpoint';
2826
+ } else {
2827
+ if (_this__u8e3s4 instanceof Channel) {
2828
+ tmp = this.q25(_this__u8e3s4.u26_1) + 'Channel';
2829
+ } else {
2830
+ if (_this__u8e3s4 instanceof Enum_0) {
2831
+ tmp = this.q25(_this__u8e3s4.r26_1);
2832
+ } else {
2833
+ if (_this__u8e3s4 instanceof Refined) {
2834
+ tmp = this.q25(_this__u8e3s4.o26_1);
2835
+ } else {
2836
+ if (_this__u8e3s4 instanceof Type) {
2837
+ tmp = this.q25(_this__u8e3s4.k26_1);
2838
+ } else {
2839
+ if (_this__u8e3s4 instanceof Union) {
2840
+ tmp = this.q25(_this__u8e3s4.h26_1);
2841
+ } else {
2842
+ noWhenBranchMatchedException();
2843
+ }
2844
+ }
2845
+ }
2846
+ }
2847
+ }
2848
+ }
2849
+ return tmp;
2850
+ };
2851
+ protoOf(PythonEmitter).w26 = function () {
2852
+ return this.j28_1;
2853
+ };
2854
+ protoOf(PythonEmitter).p28 = function (definition) {
2855
+ var tmp;
2856
+ if (definition instanceof Enum_0) {
2857
+ tmp = 1;
2858
+ } else {
2859
+ if (definition instanceof Refined) {
2860
+ tmp = 2;
2861
+ } else {
2862
+ if (definition instanceof Type) {
2863
+ tmp = 3;
2864
+ } else {
2865
+ if (definition instanceof Union) {
2866
+ tmp = 4;
2867
+ } else {
2868
+ if (definition instanceof Endpoint) {
2869
+ tmp = 5;
2870
+ } else {
2871
+ if (definition instanceof Channel) {
2872
+ tmp = 6;
2873
+ } else {
2874
+ noWhenBranchMatchedException();
2875
+ }
2876
+ }
2877
+ }
2878
+ }
2879
+ }
2880
+ }
2881
+ return tmp;
2882
+ };
2883
+ protoOf(PythonEmitter).x26 = function (module_0, logger) {
2884
+ // Inline function 'kotlin.collections.sortedBy' call
2885
+ var this_0 = module_0.f27_1;
2886
+ // Inline function 'kotlin.comparisons.compareBy' call
2887
+ var tmp = PythonEmitter$emit$lambda(this);
2888
+ var tmp$ret$0 = new sam$kotlin_Comparator$0(tmp);
2889
+ var tmp$ret$1 = sortedWith(this_0, tmp$ret$0);
2890
+ var statements = ensureNotNull(toNonEmptyListOrNull(tmp$ret$1));
2891
+ // Inline function 'arrow.core.NonEmptyList.map' call
2892
+ var this_1 = protoOf(Emitter).x26.call(this, module_0.r28(VOID, statements), logger);
2893
+ // Inline function 'community.flock.wirespec.compiler.core.emit.PythonEmitter.emit.<anonymous>' call
2894
+ var destruct = this_1.uk_1;
2895
+ var typeName = destruct.yd();
2896
+ var result = destruct.zd();
2897
+ var tmp_0 = sanitizeSymbol_1(typeName, this);
2898
+ // Inline function 'kotlin.text.trimStart' call
2899
+ var this_2 = trimMargin('\n |' + (Companion_getInstance_4().a27(module_0) ? this.g28_1 : '') + '\n |' + result + '\n ');
2900
+ var tmp$ret$2 = toString(trimStart(isCharSequence(this_2) ? this_2 : THROW_CCE()));
2901
+ var tmp_1 = new Emitted(tmp_0, tmp$ret$2);
2902
+ // Inline function 'kotlin.collections.map' call
2903
+ var this_3 = this_1.vk_1;
2904
+ // Inline function 'kotlin.collections.mapTo' call
2905
+ var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_3, 10));
2906
+ var _iterator__ex2g4s = this_3.g();
2907
+ while (_iterator__ex2g4s.h()) {
2908
+ var item = _iterator__ex2g4s.i();
2909
+ // Inline function 'community.flock.wirespec.compiler.core.emit.PythonEmitter.emit.<anonymous>' call
2910
+ var typeName_0 = item.yd();
2911
+ var result_0 = item.zd();
2912
+ var tmp_2 = sanitizeSymbol_1(typeName_0, this);
2913
+ // Inline function 'kotlin.text.trimStart' call
2914
+ var this_4 = trimMargin('\n |' + (Companion_getInstance_4().a27(module_0) ? this.g28_1 : '') + '\n |' + result_0 + '\n ');
2915
+ var tmp$ret$4 = toString(trimStart(isCharSequence(this_4) ? this_4 : THROW_CCE()));
2916
+ var tmp$ret$5 = new Emitted(tmp_2, tmp$ret$4);
2917
+ destination.e(tmp$ret$5);
2918
+ }
2919
+ var tmp_3 = new NonEmptyList(tmp_1, destination);
2920
+ // Inline function 'arrow.core.NonEmptyList.map' call
2921
+ var this_5 = module_0.f27_1;
2922
+ // Inline function 'community.flock.wirespec.compiler.core.emit.PythonEmitter.emit.<anonymous>' call
2923
+ var it = this_5.uk_1;
2924
+ var tmp_4 = 'from .' + this.f26(it) + ' import ' + this.f26(it);
2925
+ // Inline function 'kotlin.collections.map' call
2926
+ var this_6 = this_5.vk_1;
2927
+ // Inline function 'kotlin.collections.mapTo' call
2928
+ var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(this_6, 10));
2929
+ var _iterator__ex2g4s_0 = this_6.g();
2930
+ while (_iterator__ex2g4s_0.h()) {
2931
+ var item_0 = _iterator__ex2g4s_0.i();
2932
+ // Inline function 'community.flock.wirespec.compiler.core.emit.PythonEmitter.emit.<anonymous>' call
2933
+ var tmp$ret$10 = 'from .' + this.f26(item_0) + ' import ' + this.f26(item_0);
2934
+ destination_0.e(tmp$ret$10);
2935
+ }
2936
+ var tmp$ret$13 = new NonEmptyList(tmp_4, destination_0);
2937
+ return tmp_3.al(new Emitted('__init__', joinToString(tmp$ret$13, '\n')));
2938
+ };
2939
+ protoOf(PythonEmitter).b27 = function (type, module_0) {
2940
+ var tmp;
2941
+ if (type.l26_1.g27_1.l()) {
2942
+ var tmp_0 = this.f26(type);
2943
+ var tmp_1 = Spacer_instance.toString();
2944
+ var tmp_2 = localImports(type, this);
2945
+ 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 ');
2946
+ } else {
2947
+ var tmp_3 = this.f26(type);
2948
+ var tmp_4 = this.c27(type.l26_1);
2949
+ var tmp_5 = localImports(type, this);
2950
+ 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 ');
2951
+ }
2952
+ return tmp;
2953
+ };
2954
+ protoOf(PythonEmitter).c27 = function (_this__u8e3s4) {
2955
+ return joinToString(_this__u8e3s4.g27_1, '\n', VOID, VOID, VOID, VOID, PythonEmitter$emit$lambda_2(this));
2956
+ };
2957
+ protoOf(PythonEmitter).w25 = function (_this__u8e3s4) {
2958
+ return this.q25(_this__u8e3s4.n25_1) + ": '" + this.g24(_this__u8e3s4.o25_1) + "'";
2959
+ };
2960
+ protoOf(PythonEmitter).g24 = function (_this__u8e3s4) {
2961
+ // Inline function 'kotlin.let' call
2962
+ // Inline function 'community.flock.wirespec.compiler.core.emit.PythonEmitter.emit.<anonymous>' call
2963
+ var it = emitType_0(_this__u8e3s4, this);
2964
+ return _this__u8e3s4.sm() ? 'Optional[' + it + ']' : it;
2965
+ };
2966
+ protoOf(PythonEmitter).m28 = function (_this__u8e3s4) {
2967
+ var tmp;
2968
+ if (_this__u8e3s4 instanceof String_0) {
2969
+ tmp = 'str';
2970
+ } else {
2971
+ if (_this__u8e3s4 instanceof Integer) {
2972
+ tmp = 'int';
2973
+ } else {
2974
+ if (_this__u8e3s4 instanceof Number_0) {
2975
+ tmp = 'float';
2976
+ } else {
2977
+ if (_this__u8e3s4 instanceof Boolean_0) {
2978
+ tmp = 'bool';
2979
+ } else {
2980
+ if (_this__u8e3s4 instanceof Bytes) {
2981
+ tmp = 'bytes';
2982
+ } else {
2983
+ noWhenBranchMatchedException();
2984
+ }
2985
+ }
2986
+ }
2987
+ }
2988
+ }
2989
+ return tmp;
2990
+ };
2991
+ protoOf(PythonEmitter).q25 = function (identifier) {
2992
+ var tmp;
2993
+ if (identifier instanceof DefinitionIdentifier) {
2994
+ tmp = sanitizeSymbol_1(identifier.b1(), this);
2995
+ } else {
2996
+ if (identifier instanceof FieldIdentifier) {
2997
+ tmp = this.y25(sanitizeSymbol_1(identifier.b1(), this));
2998
+ } else {
2999
+ noWhenBranchMatchedException();
1988
3000
  }
1989
3001
  }
1990
- var tmp_17 = list_1;
1991
- var tmp_18 = joinToString(tmp_17, '\n', VOID, VOID, VOID, VOID, KotlinEmitter$emit$lambda_7(this));
1992
- var tmp_19 = Spacer_instance.e25(3);
1993
- var tmp_20 = Spacer_instance.e25(2);
1994
- var tmp_21 = Spacer_instance.toString();
1995
- var tmp_22 = Spacer_instance.e25(2);
1996
- var tmp_23 = this.s27(endpoint);
1997
- var tmp_24 = Spacer_instance.e25(2);
1998
- var tmp_25 = Spacer_instance.e25(3);
1999
- return trimMargin('\n |object ' + tmp + 'Endpoint : Wirespec.Endpoint {\n |' + tmp_1 + '\n |\n |' + tmp_2 + '\n |\n |' + tmp_3 + '\n |\n |' + tmp_4 + '\n |\n |' + tmp_5 + 'sealed interface Response<T: Any> : Wirespec.Response<T>\n |\n |' + tmp_6 + '\n |\n |' + tmp_7 + '\n |\n |' + tmp_9 + '\n |\n |' + tmp_10 + 'fun toResponse(serialization: Wirespec.Serializer<String>, response: Response<*>): Wirespec.RawResponse =\n |' + tmp_11 + 'when(response) {\n |' + tmp_13 + '\n |' + tmp_14 + '}\n |\n |' + tmp_15 + 'fun fromResponse(serialization: Wirespec.Deserializer<String>, response: Wirespec.RawResponse): Response<*> =\n |' + tmp_16 + 'when (response.statusCode) {\n |' + tmp_18 + '\n |' + tmp_19 + 'else -> error("Cannot match response with status: ${response.statusCode}")\n |' + tmp_20 + '}\n |\n |' + tmp_21 + 'interface Handler: Wirespec.Handler {\n |' + tmp_22 + tmp_23 + '\n |' + tmp_24 + 'companion object: Wirespec.Server<Request, Response<*>>, Wirespec.Client<Request, Response<*>> {\n |' + tmp_25 + 'override val pathTemplate = "/' + joinToString(endpoint.u24_1, '/', VOID, VOID, VOID, VOID, KotlinEmitter$emit$lambda_8(this)) + '"\n |' + Spacer_instance.e25(3) + 'override val method = "' + endpoint.t24_1.toString() + '"\n |' + Spacer_instance.e25(3) + 'override fun server(serialization: Wirespec.Serialization<String>) = object : Wirespec.ServerEdge<Request, Response<*>> {\n |' + Spacer_instance.e25(4) + 'override fun from(request: Wirespec.RawRequest) = fromRequest(serialization, request)\n |' + Spacer_instance.e25(4) + 'override fun to(response: Response<*>) = toResponse(serialization, response)\n |' + Spacer_instance.e25(3) + '}\n |' + Spacer_instance.e25(3) + 'override fun client(serialization: Wirespec.Serialization<String>) = object : Wirespec.ClientEdge<Request, Response<*>> {\n |' + Spacer_instance.e25(4) + 'override fun to(request: Request) = toRequest(serialization, request)\n |' + Spacer_instance.e25(4) + 'override fun from(response: Wirespec.RawResponse) = fromResponse(serialization, response)\n |' + Spacer_instance.e25(3) + '}\n |' + Spacer_instance.e25(2) + '}\n |' + Spacer_instance.toString() + '}\n |}\n |\n ');
3002
+ return tmp;
2000
3003
  };
2001
- protoOf(KotlinEmitter).s27 = function (endpoint) {
2002
- return 'suspend fun ' + Companion_getInstance_3().u25(this.q25(endpoint.s24_1)) + '(request: Request): Response<*>';
3004
+ protoOf(PythonEmitter).h27 = function (refined) {
3005
+ return trimMargin('\n |@dataclass\n |class ' + sanitizeSymbol_1(refined.o26_1.b1(), this) + '(Wirespec.Refined):\n |' + Spacer_instance.toString() + 'value: str\n |\n |' + Spacer_instance.toString() + 'def validate(self) -> bool:\n |' + Spacer_instance.e25(2) + 'return bool(re.match(r"' + refined.p26_1.k27_1 + '", self.value))\n |\n |' + Spacer_instance.toString() + 'def __str__(self) -> str:\n |' + Spacer_instance.e25(2) + 'return self.value\n ');
2003
3006
  };
2004
- protoOf(KotlinEmitter).q27 = function (_this__u8e3s4, endpoint) {
2005
- var tmp = Spacer_instance.toString();
2006
- var tmp_0 = emitConstructor_0(_this__u8e3s4, this, endpoint);
2007
- var tmp_1 = Spacer_instance.e25(2);
2008
- var tmp_2 = this.i25(endpoint);
2009
- var tmp_3 = brace(joinToString(tmp_2, VOID, VOID, VOID, VOID, VOID, KotlinEmitter$emit$lambda_9(this)), this);
2010
- var tmp_4 = Spacer_instance.e25(2);
2011
- var tmp_5 = Spacer_instance.e25(2);
2012
- var tmp_6 = brace(joinToString(endpoint.v24_1, VOID, VOID, VOID, VOID, VOID, KotlinEmitter$emit$lambda_10(this)), this);
2013
- var tmp_7 = Spacer_instance.e25(2);
2014
- var tmp_8 = brace(joinToString(endpoint.w24_1, VOID, VOID, VOID, VOID, VOID, KotlinEmitter$emit$lambda_11(this)), this);
2015
- var tmp_9 = _this__u8e3s4.f25_1 == null ? '\n' + Spacer_instance.e25(2) + 'override val body = Unit' : '';
3007
+ protoOf(PythonEmitter).p27 = function (endpoint) {
3008
+ var tmp = localImports(endpoint, this);
3009
+ var tmp_0 = joinToString(tmp, '\n', VOID, VOID, VOID, VOID, PythonEmitter$emit$lambda_3(this));
3010
+ var tmp_1 = this.q25(endpoint.s24_1);
3011
+ var tmp_2 = this.t27(this.q27(first_0(endpoint.y24_1), endpoint), 1);
3012
+ return trimMargin('\n |' + tmp_0 + '\n |\n |class ' + tmp_1 + 'Endpoint (Wirespec.Endpoint):\n |' + tmp_2 + '\n |' + this.t27(joinToString(endpoint.z24_1, '\n', VOID, VOID, VOID, VOID, PythonEmitter$emit$lambda_4(this, endpoint)), 1) + '\n |' + this.t27(emitResponseUnion(endpoint, this), 1) + '\n |' + this.t27(emitHandleClass(endpoint, this), 1) + '\n |' + this.t27(emitConvertClass(endpoint, this), 1) + '\n |\n ');
3013
+ };
3014
+ protoOf(PythonEmitter).q27 = function (_this__u8e3s4, endpoint) {
3015
+ var tmp = emit_7(_this__u8e3s4.f25_1, this);
3016
+ var tmp_0 = this.i25(endpoint);
3017
+ var tmp_1 = emitObject$default_0(tmp_0, this, 'Path', 'Wirespec.Request.Path', VOID, PythonEmitter$emit$lambda_5(this));
3018
+ var tmp_2 = emitObject$default_0(endpoint.v24_1, this, 'Queries', 'Wirespec.Request.Queries', VOID, PythonEmitter$emit$lambda_6(this));
3019
+ var tmp_3 = emitObject$default_0(endpoint.w24_1, this, 'Headers', 'Wirespec.Request.Headers', VOID, PythonEmitter$emit$lambda_7(this));
3020
+ var tmp_4 = Spacer_instance.toString();
3021
+ var tmp_5 = Spacer_instance.toString();
3022
+ var tmp_6 = emit_7(_this__u8e3s4.f25_1, this);
3023
+ var tmp_7 = Spacer_instance.toString();
3024
+ var tmp_8 = Spacer_instance.toString();
3025
+ var tmp_9 = Spacer_instance.toString();
2016
3026
  var tmp_10 = Spacer_instance.toString();
2017
3027
  var tmp_11 = Spacer_instance.toString();
2018
- var tmp_12 = Spacer_instance.e25(2);
2019
- var tmp_13 = Spacer_instance.e25(3);
2020
- var tmp_14 = joinToString(endpoint.u24_1, VOID, VOID, VOID, VOID, VOID, KotlinEmitter$emit$lambda_12(this));
2021
- var tmp_15 = Spacer_instance.e25(3);
2022
- var tmp_16 = Spacer_instance.e25(3);
2023
- var tmp_17;
2024
- // Inline function 'kotlin.collections.isNotEmpty' call
2025
- if (!endpoint.v24_1.l()) {
2026
- tmp_17 = joinToString(endpoint.v24_1, ' + ', VOID, VOID, VOID, VOID, KotlinEmitter$emit$lambda_13(this));
3028
+ var tmp_12 = Spacer_instance.toString();
3029
+ var tmp_13 = Spacer_instance.toString();
3030
+ var tmp_14 = Spacer_instance.toString();
3031
+ var tmp_15 = Spacer_instance.toString();
3032
+ var tmp_16 = Spacer_instance.toString();
3033
+ var tmp_17 = Spacer_instance.toString();
3034
+ var tmp_18 = Spacer_instance.toString();
3035
+ var tmp_19 = Spacer_instance.toString();
3036
+ var tmp_20 = Spacer_instance.toString();
3037
+ var tmp_21 = Spacer_instance.toString();
3038
+ var tmp_22 = emit_7(_this__u8e3s4.f25_1, this);
3039
+ var tmp_23 = Spacer_instance.toString();
3040
+ var tmp_24 = Spacer_instance.toString();
3041
+ var tmp_25 = Spacer_instance.toString();
3042
+ var tmp_26 = Spacer_instance.toString();
3043
+ var tmp_27 = Spacer_instance.toString();
3044
+ var tmp_28 = this.k28(_this__u8e3s4, endpoint);
3045
+ return trimMargin('\n |@dataclass\n |class Request(Wirespec.Request[' + tmp + ']):\n |' + tmp_1 + '\n |' + tmp_2 + '\n |' + tmp_3 + '\n | \n |' + tmp_4 + '@property\n |' + tmp_5 + 'def body(self) -> ' + tmp_6 + ':\n |' + tmp_7 + tmp_8 + 'return self._body\n |\n |' + tmp_9 + '@property\n |' + tmp_10 + 'def path(self) -> Path:\n |' + tmp_11 + tmp_12 + 'return self._path\n |\n |' + tmp_13 + '@property\n |' + tmp_14 + 'def queries(self) -> Queries:\n |' + tmp_15 + tmp_16 + 'return self._queries\n |\n |' + tmp_17 + '@property\n |' + tmp_18 + 'def headers(self) -> Headers:\n |' + tmp_19 + tmp_20 + 'return self._headers\n |\n |' + tmp_21 + '_body: ' + tmp_22 + '\n |' + tmp_23 + '_headers: Headers\n |' + tmp_24 + '_queries: Queries\n |' + tmp_25 + '_path: Path\n |' + tmp_26 + 'method: Wirespec.Method = Wirespec.Method.' + endpoint.t24_1.q2_1 + '\n |\n |' + tmp_27 + 'def __init__(self, ' + joinToString(tmp_28, ', ', VOID, VOID, VOID, VOID, PythonEmitter$emit$lambda_8(this)) + '):\n |' + this.t27(emitAssignSelf_0(_this__u8e3s4, this, endpoint), 2) + '\n |\n ');
3046
+ };
3047
+ protoOf(PythonEmitter).q28 = function (_this__u8e3s4, endpoint) {
3048
+ var tmp = emit_7(_this__u8e3s4.c25_1, this);
3049
+ var tmp_0 = emitObject$default_0(_this__u8e3s4.b25_1, this, 'Headers', 'Wirespec.Response.Headers', VOID, PythonEmitter$emit$lambda_9(this));
3050
+ var tmp_1 = Spacer_instance.toString();
3051
+ var tmp_2 = Spacer_instance.toString();
3052
+ var tmp_3 = Spacer_instance.toString();
3053
+ var tmp_4 = Spacer_instance.toString();
3054
+ var tmp_5 = Spacer_instance.toString();
3055
+ var tmp_6 = Spacer_instance.toString();
3056
+ var tmp_7 = emit_7(_this__u8e3s4.c25_1, this);
3057
+ var tmp_8 = Spacer_instance.toString();
3058
+ var tmp_9 = Spacer_instance.toString();
3059
+ var tmp_10 = Spacer_instance.toString();
3060
+ var tmp_11 = emit_7(_this__u8e3s4.c25_1, this);
3061
+ var tmp_12 = Spacer_instance.toString();
3062
+ var tmp_13 = Spacer_instance.toString();
3063
+ var tmp_14 = Spacer_instance.toString();
3064
+ var tmp_15 = this.l28(_this__u8e3s4);
3065
+ return trimMargin('\n |@dataclass\n |class Response' + _this__u8e3s4.a25_1 + '(Wirespec.Response[' + tmp + ']):\n |' + tmp_0 + '\n |\n |' + tmp_1 + '@property\n |' + tmp_2 + 'def headers(self) -> Headers:\n |' + tmp_3 + tmp_4 + 'return self._headers\n |\n |' + tmp_5 + '@property\n |' + tmp_6 + 'def body(self) -> ' + tmp_7 + ':\n |' + tmp_8 + tmp_9 + 'return self._body\n |\n |' + tmp_10 + '_body: ' + tmp_11 + '\n |' + tmp_12 + '_headers: Headers\n |' + tmp_13 + 'status: int = ' + _this__u8e3s4.a25_1 + '\n |\n |' + tmp_14 + 'def __init__(self, ' + joinToString(tmp_15, ', ', VOID, VOID, VOID, VOID, PythonEmitter$emit$lambda_10(this)) + '):\n |' + this.t27(emitAssignSelf_1(_this__u8e3s4, this, endpoint), 2) + '\n |\n ');
3066
+ };
3067
+ protoOf(PythonEmitter).o27 = function (channel) {
3068
+ return '';
3069
+ };
3070
+ protoOf(PythonEmitter).l27 = function (enum_0, module_0) {
3071
+ var tmp = sanitizeSymbol_1(enum_0.r26_1.b1(), this);
3072
+ return trimMargin('\n |class ' + tmp + '(str, Enum):\n |' + joinToString(enum_0.s26_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.e25(2) + 'return self.value\n |\n |' + Spacer_instance.toString() + 'def __str__(self) -> str:\n |' + Spacer_instance.e25(2) + 'return self.value\n ');
3073
+ };
3074
+ protoOf(PythonEmitter).n27 = function (union) {
3075
+ return trimMargin('\n |class ' + this.f26(union) + '(ABC):\n |' + Spacer_instance.toString() + 'pass\n ');
3076
+ };
3077
+ protoOf(PythonEmitter).x25 = function (_this__u8e3s4) {
3078
+ // Inline function 'kotlin.let' call
3079
+ // Inline function 'community.flock.wirespec.compiler.core.emit.PythonEmitter.sanitizeEnum.<anonymous>' call
3080
+ var it = joinToString(split(_this__u8e3s4, ['-', ', ', '.', ' ', '//']), '_');
3081
+ var tmp;
3082
+ var tmp0_safe_receiver = firstOrNull(it);
3083
+ var tmp_0;
3084
+ var tmp_1 = tmp0_safe_receiver;
3085
+ if ((tmp_1 == null ? null : new Char(tmp_1)) == null) {
3086
+ tmp_0 = null;
2027
3087
  } else {
2028
- tmp_17 = 'emptyMap()';
3088
+ tmp_0 = isDigit(tmp0_safe_receiver);
2029
3089
  }
2030
- var tmp_18 = tmp_17;
2031
- var tmp_19 = Spacer_instance.e25(3);
2032
- var tmp_20;
2033
- // Inline function 'kotlin.collections.isNotEmpty' call
2034
- if (!endpoint.w24_1.l()) {
2035
- tmp_20 = joinToString(endpoint.w24_1, ' + ', VOID, VOID, VOID, VOID, KotlinEmitter$emit$lambda_14(this));
3090
+ if (tmp_0 === true) {
3091
+ tmp = '_' + it;
2036
3092
  } else {
2037
- tmp_20 = 'emptyMap()';
3093
+ tmp = it;
2038
3094
  }
2039
- return trimMargin('\n |' + tmp + tmp_0 + '\n |' + tmp_1 + 'override val path = Path' + tmp_3 + '\n |' + tmp_4 + 'override val method = Wirespec.Method.' + endpoint.t24_1.o2_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.e25(3) + 'body = serialization.serialize(request.body, typeOf<' + emit_3(_this__u8e3s4.f25_1, this) + '>()),\n |' + Spacer_instance.e25(2) + ')\n |\n |' + Spacer_instance.toString() + 'fun fromRequest(serialization: Wirespec.Deserializer<String>, request: Wirespec.RawRequest): Request =\n |' + Spacer_instance.e25(2) + 'Request' + emitDeserializedParams_2(_this__u8e3s4, this, endpoint) + '\n ');
2040
- };
2041
- protoOf(KotlinEmitter).z25 = function (_this__u8e3s4) {
2042
- var tmp = Spacer_instance.toString();
2043
- var tmp_0 = emit_3(_this__u8e3s4.c25_1, this);
2044
- // Inline function 'kotlin.let' call
2045
- // Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emit.<anonymous>' call
2046
- var it = joinToString(_this__u8e3s4.b25_1, ', ', VOID, VOID, VOID, VOID, KotlinEmitter$emit$lambda_15(this));
2047
- var tmp_1 = isBlank(it) ? '' : ', ' + it;
2048
- var tmp_2 = toString_0(charSequenceGet(_this__u8e3s4.a25_1, 0));
2049
- var tmp_3 = emit_3(_this__u8e3s4.c25_1, this);
2050
- var tmp_4 = concatGenerics(emit_3(_this__u8e3s4.c25_1, this));
2051
- var tmp_5 = Spacer_instance.e25(2);
2052
- var tmp_6 = fixStatus_0(_this__u8e3s4.a25_1, this);
2053
- var tmp_7 = Spacer_instance.e25(2);
2054
- var tmp_8 = brace(joinToString(_this__u8e3s4.b25_1, VOID, VOID, VOID, VOID, VOID, KotlinEmitter$emit$lambda_16(this)), this);
2055
- return trimMargin('\n |' + tmp + 'data class Response' + _this__u8e3s4.a25_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.b25_1, this, 'ResponseHeaders', 'Wirespec.Response.Headers', 2, KotlinEmitter$emit$lambda_17(this)) + '\n |' + Spacer_instance.toString() + '}\n ');
2056
- };
2057
- protoOf(KotlinEmitter).x25 = function (_this__u8e3s4) {
2058
- return sanitizeFirstIsDigit_0(joinToString(split(_this__u8e3s4, ['-', ', ', '.', ' ', '//']), '_'), this);
3095
+ return tmp;
2059
3096
  };
2060
- protoOf(KotlinEmitter).y25 = function (_this__u8e3s4) {
2061
- return Companion_getInstance_0().b28_1.o1(_this__u8e3s4) ? addBackticks(_this__u8e3s4) : _this__u8e3s4;
3097
+ protoOf(PythonEmitter).y25 = function (_this__u8e3s4) {
3098
+ return Companion_getInstance_1().n28_1.o1(_this__u8e3s4) ? '_' + _this__u8e3s4 : _this__u8e3s4;
2062
3099
  };
2063
- function Companion_1() {
2064
- Companion_instance_2 = this;
2065
- this.c28_1 = setOf(['abstract', 'case', 'catch', 'class', 'def', 'do', 'else', 'extends', 'false', 'final', 'finally', 'for', 'forSome', 'if', 'implicit', 'import', 'lazy', 'match', 'new', 'null', 'object', 'override', 'package', 'private', 'protected', 'return', 'sealed', 'super', 'this', 'throw', 'trait', 'true', 'try', 'type', 'val', 'var', 'while', 'with', 'yield']);
3100
+ function Companion_2() {
3101
+ Companion_instance_3 = this;
3102
+ this.s28_1 = setOf(['abstract', 'case', 'catch', 'class', 'def', 'do', 'else', 'extends', 'false', 'final', 'finally', 'for', 'forSome', 'if', 'implicit', 'import', 'lazy', 'match', 'new', 'null', 'object', 'override', 'package', 'private', 'protected', 'return', 'sealed', 'super', 'this', 'throw', 'trait', 'true', 'try', 'type', 'val', 'var', 'while', 'with', 'yield']);
2066
3103
  }
2067
- var Companion_instance_2;
2068
- function Companion_getInstance_1() {
2069
- if (Companion_instance_2 == null)
2070
- new Companion_1();
2071
- return Companion_instance_2;
3104
+ var Companion_instance_3;
3105
+ function Companion_getInstance_2() {
3106
+ if (Companion_instance_3 == null)
3107
+ new Companion_2();
3108
+ return Companion_instance_3;
2072
3109
  }
2073
3110
  function emit$_anonymous_$sanitize_964c6p(_this__u8e3s4) {
2074
3111
  // Inline function 'kotlin.let' call
@@ -2090,20 +3127,20 @@ function ScalaEmitter$emit$lambda_0(this$0, $$this$run) {
2090
3127
  };
2091
3128
  }
2092
3129
  function ScalaEmitter(packageName) {
2093
- Companion_getInstance_1();
2094
- packageName = packageName === VOID ? Companion_instance_5.c26('community.flock.wirespec.generated') : packageName;
3130
+ Companion_getInstance_2();
3131
+ packageName = packageName === VOID ? Companion_instance_6.c26('community.flock.wirespec.generated') : packageName;
2095
3132
  Emitter.call(this);
2096
- this.e28_1 = packageName;
2097
- this.f28_1 = '\nimport community.flock.wirespec.scala.Wirespec\n';
2098
- this.g28_1 = FileExtension_Scala_getInstance();
2099
- this.h28_1 = ScalaShared_getInstance();
2100
- this.i28_1 = '//';
3133
+ this.u28_1 = packageName;
3134
+ this.v28_1 = '\nimport community.flock.wirespec.scala.Wirespec\n';
3135
+ this.w28_1 = FileExtension_Scala_getInstance();
3136
+ this.x28_1 = ScalaShared_getInstance();
3137
+ this.y28_1 = '//';
2101
3138
  }
2102
3139
  protoOf(ScalaEmitter).d26 = function () {
2103
- return this.g28_1;
3140
+ return this.w28_1;
2104
3141
  };
2105
3142
  protoOf(ScalaEmitter).e26 = function () {
2106
- return this.h28_1;
3143
+ return this.x28_1;
2107
3144
  };
2108
3145
  protoOf(ScalaEmitter).f26 = function (_this__u8e3s4) {
2109
3146
  var tmp;
@@ -2135,7 +3172,7 @@ protoOf(ScalaEmitter).f26 = function (_this__u8e3s4) {
2135
3172
  return tmp;
2136
3173
  };
2137
3174
  protoOf(ScalaEmitter).w26 = function () {
2138
- return this.i28_1;
3175
+ return this.y28_1;
2139
3176
  };
2140
3177
  protoOf(ScalaEmitter).x26 = function (module_0, logger) {
2141
3178
  // Inline function 'arrow.core.NonEmptyList.map' call
@@ -2145,7 +3182,7 @@ protoOf(ScalaEmitter).x26 = function (module_0, logger) {
2145
3182
  var typeName = destruct.yd();
2146
3183
  var result = destruct.zd();
2147
3184
  // Inline function 'kotlin.text.trimStart' call
2148
- var this_1 = trimMargin('\n |package ' + this.e28_1.toString() + '\n |' + (Companion_getInstance_3().a27(module_0) ? this.f28_1 : '') + '\n |' + result + '\n ');
3185
+ var this_1 = trimMargin('\n |package ' + this.u28_1.toString() + '\n |' + (Companion_getInstance_4().a27(module_0) ? this.v28_1 : '') + '\n |' + result + '\n ');
2149
3186
  var tmp$ret$0 = toString(trimStart(isCharSequence(this_1) ? this_1 : THROW_CCE()));
2150
3187
  var tmp = new Emitted(typeName, tmp$ret$0);
2151
3188
  // Inline function 'kotlin.collections.map' call
@@ -2159,7 +3196,7 @@ protoOf(ScalaEmitter).x26 = function (module_0, logger) {
2159
3196
  var typeName_0 = item.yd();
2160
3197
  var result_0 = item.zd();
2161
3198
  // Inline function 'kotlin.text.trimStart' call
2162
- var this_3 = trimMargin('\n |package ' + this.e28_1.toString() + '\n |' + (Companion_getInstance_3().a27(module_0) ? this.f28_1 : '') + '\n |' + result_0 + '\n ');
3199
+ var this_3 = trimMargin('\n |package ' + this.u28_1.toString() + '\n |' + (Companion_getInstance_4().a27(module_0) ? this.v28_1 : '') + '\n |' + result_0 + '\n ');
2163
3200
  var tmp$ret$2 = toString(trimStart(isCharSequence(this_3) ? this_3 : THROW_CCE()));
2164
3201
  var tmp$ret$3 = new Emitted(typeName_0, tmp$ret$2);
2165
3202
  destination.e(tmp$ret$3);
@@ -2178,10 +3215,10 @@ protoOf(ScalaEmitter).w25 = function (_this__u8e3s4) {
2178
3215
  protoOf(ScalaEmitter).q25 = function (identifier) {
2179
3216
  // Inline function 'kotlin.run' call
2180
3217
  // Inline function 'community.flock.wirespec.compiler.core.emit.ScalaEmitter.emit.<anonymous>' call
2181
- return Companion_getInstance_1().c28_1.o1(identifier.b1()) ? addBackticks(identifier.b1()) : identifier.b1();
3218
+ return Companion_getInstance_2().s28_1.o1(identifier.b1()) ? addBackticks(identifier.b1()) : identifier.b1();
2182
3219
  };
2183
3220
  protoOf(ScalaEmitter).o27 = function (channel) {
2184
- return this.u27();
3221
+ return this.z28();
2185
3222
  };
2186
3223
  protoOf(ScalaEmitter).g24 = function (_this__u8e3s4) {
2187
3224
  var tmp;
@@ -2208,7 +3245,7 @@ protoOf(ScalaEmitter).g24 = function (_this__u8e3s4) {
2208
3245
  } else {
2209
3246
  if (tmp1_subject instanceof Integer) {
2210
3247
  var tmp_1;
2211
- switch (_this__u8e3s4.k24_1.p24_1.p2_1) {
3248
+ switch (_this__u8e3s4.k24_1.p24_1.r2_1) {
2212
3249
  case 0:
2213
3250
  tmp_1 = 'Int';
2214
3251
  break;
@@ -2223,7 +3260,7 @@ protoOf(ScalaEmitter).g24 = function (_this__u8e3s4) {
2223
3260
  } else {
2224
3261
  if (tmp1_subject instanceof Number_0) {
2225
3262
  var tmp_2;
2226
- switch (_this__u8e3s4.k24_1.n24_1.p2_1) {
3263
+ switch (_this__u8e3s4.k24_1.n24_1.r2_1) {
2227
3264
  case 0:
2228
3265
  tmp_2 = 'Float';
2229
3266
  break;
@@ -2276,15 +3313,15 @@ protoOf(ScalaEmitter).i27 = function (_this__u8e3s4) {
2276
3313
  return trimMargin(Spacer_instance.e25(2) + 'val regex = new scala.util.matching.Regex("""' + _this__u8e3s4.k27_1 + '""")\n |' + Spacer_instance.e25(2) + 'regex.findFirstIn(that.value)');
2277
3314
  };
2278
3315
  protoOf(ScalaEmitter).p27 = function (endpoint) {
2279
- return this.u27();
3316
+ return this.z28();
2280
3317
  };
2281
3318
  protoOf(ScalaEmitter).n27 = function (union) {
2282
- return this.u27();
3319
+ return this.z28();
2283
3320
  };
2284
3321
  function emitHandleFunction($this, endpoint) {
2285
- return Companion_getInstance_3().u25(sanitizeSymbol_1(endpoint.s24_1, $this)) + ': (request:Request) => Promise<Response>';
3322
+ return Companion_getInstance_4().u25(sanitizeSymbol_2(endpoint.s24_1, $this)) + ': (request:Request) => Promise<Response>';
2286
3323
  }
2287
- function emitType_0(_this__u8e3s4, $this, name, block) {
3324
+ function emitType_1(_this__u8e3s4, $this, name, block) {
2288
3325
  var tmp;
2289
3326
  if (_this__u8e3s4.l()) {
2290
3327
  tmp = Spacer_instance.toString() + 'type ' + name + ' = {}';
@@ -2300,13 +3337,13 @@ function emitReference(_this__u8e3s4, $this) {
2300
3337
  var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : $this.g24(tmp1_safe_receiver);
2301
3338
  return tmp2_elvis_lhs == null ? 'undefined' : tmp2_elvis_lhs;
2302
3339
  }
2303
- function emitType_1(_this__u8e3s4, $this, endpoint) {
3340
+ function emitType_2(_this__u8e3s4, $this, endpoint) {
2304
3341
  return trimIndent('\n |' + Spacer_instance.toString() + 'export type Request = { \n |' + Spacer_instance.e25(2) + 'path: Path\n |' + Spacer_instance.e25(2) + 'method: "' + endpoint.t24_1.toString() + '"\n |' + Spacer_instance.e25(2) + 'queries: Queries\n |' + Spacer_instance.e25(2) + 'headers: Headers\n |' + Spacer_instance.e25(2) + 'body: ' + emitReference(_this__u8e3s4, $this) + '\n |' + Spacer_instance.toString() + '}\n ');
2305
3342
  }
2306
3343
  function emitFunction(_this__u8e3s4, $this, endpoint) {
2307
3344
  var tmp = Spacer_instance.toString();
2308
3345
  // Inline function 'kotlin.takeIf' call
2309
- var this_0 = $this.n28(_this__u8e3s4, endpoint);
3346
+ var this_0 = $this.k28(_this__u8e3s4, endpoint);
2310
3347
  var tmp_0;
2311
3348
  // Inline function 'community.flock.wirespec.compiler.core.emit.TypeScriptEmitter.emitFunction.<anonymous>' call
2312
3349
  // Inline function 'kotlin.collections.isNotEmpty' call
@@ -2350,9 +3387,9 @@ function emitFunction(_this__u8e3s4, $this, endpoint) {
2350
3387
  }
2351
3388
  function emitFunction_0(_this__u8e3s4, $this, endpoint) {
2352
3389
  var tmp = Spacer_instance.toString();
2353
- var tmp_0 = Companion_getInstance_3().l25(_this__u8e3s4.a25_1);
3390
+ var tmp_0 = Companion_getInstance_4().l25(_this__u8e3s4.a25_1);
2354
3391
  // Inline function 'kotlin.takeIf' call
2355
- var this_0 = $this.o28(_this__u8e3s4);
3392
+ var this_0 = $this.l28(_this__u8e3s4);
2356
3393
  var tmp_1;
2357
3394
  // Inline function 'community.flock.wirespec.compiler.core.emit.TypeScriptEmitter.emitFunction.<anonymous>' call
2358
3395
  // Inline function 'kotlin.collections.isNotEmpty' call
@@ -2373,7 +3410,7 @@ function emitFunction_0(_this__u8e3s4, $this, endpoint) {
2373
3410
  // Inline function 'kotlin.text.orEmpty' call
2374
3411
  var tmp0_elvis_lhs = tmp_2;
2375
3412
  var tmp_3 = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs;
2376
- var tmp_4 = Companion_getInstance_3().l25(_this__u8e3s4.a25_1);
3413
+ var tmp_4 = Companion_getInstance_4().l25(_this__u8e3s4.a25_1);
2377
3414
  var tmp_5 = Spacer_instance.e25(2);
2378
3415
  var tmp_6 = Spacer_instance.e25(2);
2379
3416
  var tmp_7 = joinToObject(_this__u8e3s4.b25_1, $this, TypeScriptEmitter$emitFunction$lambda_4($this));
@@ -2392,11 +3429,11 @@ function emitFunction_0(_this__u8e3s4, $this, endpoint) {
2392
3429
  function joinToObject(_this__u8e3s4, $this, transform) {
2393
3430
  return joinToString(_this__u8e3s4, ', ', '{', '}', VOID, VOID, transform);
2394
3431
  }
2395
- function emit_5(_this__u8e3s4, $this) {
2396
- return $this.q25(_this__u8e3s4.q28_1) + ': ' + $this.g24(_this__u8e3s4.r28_1);
3432
+ function emit_8(_this__u8e3s4, $this) {
3433
+ return $this.q25(_this__u8e3s4.c28_1) + ': ' + $this.g24(_this__u8e3s4.d28_1);
2397
3434
  }
2398
3435
  function emitName(_this__u8e3s4, $this) {
2399
- return 'Response' + Companion_getInstance_3().l25(_this__u8e3s4.a25_1);
3436
+ return 'Response' + Companion_getInstance_4().l25(_this__u8e3s4.a25_1);
2400
3437
  }
2401
3438
  function emitReference_0(_this__u8e3s4, $this) {
2402
3439
  var tmp0_safe_receiver = _this__u8e3s4.c25_1;
@@ -2404,17 +3441,17 @@ function emitReference_0(_this__u8e3s4, $this) {
2404
3441
  var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : $this.g24(tmp1_safe_receiver);
2405
3442
  return tmp2_elvis_lhs == null ? 'undefined' : tmp2_elvis_lhs;
2406
3443
  }
2407
- function emitType_2(_this__u8e3s4, $this) {
3444
+ function emitType_3(_this__u8e3s4, $this) {
2408
3445
  var tmp = Spacer_instance.toString();
2409
3446
  var tmp_0 = emitName(_this__u8e3s4, $this);
2410
3447
  var tmp_1 = Spacer_instance.e25(2);
2411
3448
  var tmp_2 = Spacer_instance.e25(2);
2412
3449
  return trimIndent('\n |' + tmp + 'export type ' + tmp_0 + ' = {\n |' + tmp_1 + 'status: ' + _this__u8e3s4.a25_1 + '\n |' + tmp_2 + 'headers: {' + joinToString(_this__u8e3s4.b25_1, VOID, VOID, VOID, VOID, VOID, TypeScriptEmitter$emitType$lambda_0($this)) + '}\n |' + Spacer_instance.e25(2) + 'body: ' + emitReference_0(_this__u8e3s4, $this) + '\n |' + Spacer_instance.toString() + '}\n ');
2413
3450
  }
2414
- function sanitizeSymbol_1(_this__u8e3s4, $this) {
2415
- return sanitizeSymbol_2(_this__u8e3s4.b1(), $this);
2416
- }
2417
3451
  function sanitizeSymbol_2(_this__u8e3s4, $this) {
3452
+ return sanitizeSymbol_3(_this__u8e3s4.b1(), $this);
3453
+ }
3454
+ function sanitizeSymbol_3(_this__u8e3s4, $this) {
2418
3455
  var tmp = asSequence(_this__u8e3s4);
2419
3456
  return joinToString_0(filter(tmp, TypeScriptEmitter$sanitizeSymbol$lambda), '');
2420
3457
  }
@@ -2428,7 +3465,7 @@ function emitClientTo(_this__u8e3s4, $this) {
2428
3465
  var tmp = Spacer_instance.e25(1);
2429
3466
  // Inline function 'kotlin.text.uppercase' call
2430
3467
  // Inline function 'kotlin.js.asDynamic' call
2431
- var tmp_0 = _this__u8e3s4.t24_1.o2_1.toUpperCase();
3468
+ var tmp_0 = _this__u8e3s4.t24_1.q2_1.toUpperCase();
2432
3469
  var tmp_1 = Spacer_instance.e25(1);
2433
3470
  var tmp_2 = emitPathArray(_this__u8e3s4, $this);
2434
3471
  var tmp_3 = Spacer_instance.e25(1);
@@ -2454,7 +3491,7 @@ function emitServerFrom(_this__u8e3s4, $this) {
2454
3491
  var tmp_0 = Spacer_instance.e25(2);
2455
3492
  // Inline function 'kotlin.text.uppercase' call
2456
3493
  // Inline function 'kotlin.js.asDynamic' call
2457
- var tmp_1 = _this__u8e3s4.t24_1.o2_1.toUpperCase();
3494
+ var tmp_1 = _this__u8e3s4.t24_1.q2_1.toUpperCase();
2458
3495
  var tmp_2 = Spacer_instance.e25(2);
2459
3496
  var tmp_3 = $this.j25(_this__u8e3s4);
2460
3497
  var tmp_4 = prependIndent(joinToString(tmp_3, ',', VOID, VOID, VOID, VOID, TypeScriptEmitter$emitServerFrom$lambda($this)), Spacer_instance.e25(3));
@@ -2487,7 +3524,7 @@ function TypeScriptEmitter$emit$lambda_0(this$0) {
2487
3524
  }
2488
3525
  function TypeScriptEmitter$emit$lambda_1(this$0) {
2489
3526
  return function (it) {
2490
- return this$0.s28(it);
3527
+ return this$0.e29(it);
2491
3528
  };
2492
3529
  }
2493
3530
  function TypeScriptEmitter$emit$lambda_2(this$0) {
@@ -2502,7 +3539,7 @@ function TypeScriptEmitter$emit$lambda_3(this$0) {
2502
3539
  }
2503
3540
  function TypeScriptEmitter$emit$lambda_4(this$0) {
2504
3541
  return function (it) {
2505
- return emitType_2(it, this$0);
3542
+ return emitType_3(it, this$0);
2506
3543
  };
2507
3544
  }
2508
3545
  function TypeScriptEmitter$emit$lambda_5(this$0) {
@@ -2532,7 +3569,7 @@ function TypeScriptEmitter$emitType$lambda($block) {
2532
3569
  }
2533
3570
  function TypeScriptEmitter$emitFunction$lambda(this$0) {
2534
3571
  return function (it) {
2535
- return emit_5(it, this$0);
3572
+ return emit_8(it, this$0);
2536
3573
  };
2537
3574
  }
2538
3575
  function TypeScriptEmitter$emitFunction$lambda_0(this$0) {
@@ -2552,7 +3589,7 @@ function TypeScriptEmitter$emitFunction$lambda_2(this$0) {
2552
3589
  }
2553
3590
  function TypeScriptEmitter$emitFunction$lambda_3(this$0) {
2554
3591
  return function (it) {
2555
- return emit_5(it, this$0);
3592
+ return emit_8(it, this$0);
2556
3593
  };
2557
3594
  }
2558
3595
  function TypeScriptEmitter$emitFunction$lambda_4(this$0) {
@@ -2620,9 +3657,9 @@ function TypeScriptEmitter$emitServerFrom$lambda_1(this$0) {
2620
3657
  }
2621
3658
  function TypeScriptEmitter() {
2622
3659
  Emitter.call(this);
2623
- this.k28_1 = FileExtension_TypeScript_getInstance();
2624
- this.l28_1 = TypeScriptShared_getInstance();
2625
- this.m28_1 = '//';
3660
+ this.b29_1 = FileExtension_TypeScript_getInstance();
3661
+ this.c29_1 = TypeScriptShared_getInstance();
3662
+ this.d29_1 = '//';
2626
3663
  }
2627
3664
  protoOf(TypeScriptEmitter).f26 = function (_this__u8e3s4) {
2628
3665
  var tmp;
@@ -2654,22 +3691,22 @@ protoOf(TypeScriptEmitter).f26 = function (_this__u8e3s4) {
2654
3691
  return tmp;
2655
3692
  };
2656
3693
  protoOf(TypeScriptEmitter).d26 = function () {
2657
- return this.k28_1;
3694
+ return this.b29_1;
2658
3695
  };
2659
3696
  protoOf(TypeScriptEmitter).e26 = function () {
2660
- return this.l28_1;
3697
+ return this.c29_1;
2661
3698
  };
2662
3699
  protoOf(TypeScriptEmitter).w26 = function () {
2663
- return this.m28_1;
3700
+ return this.d29_1;
2664
3701
  };
2665
3702
  protoOf(TypeScriptEmitter).x26 = function (module_0, logger) {
2666
3703
  // Inline function 'arrow.core.NonEmptyList.map' call
2667
3704
  var this_0 = protoOf(Emitter).x26.call(this, module_0, logger);
2668
3705
  // Inline function 'community.flock.wirespec.compiler.core.emit.TypeScriptEmitter.emit.<anonymous>' call
2669
3706
  var it = this_0.uk_1;
2670
- var tmp = sanitizeSymbol_2(it.y26_1, this);
3707
+ var tmp = sanitizeSymbol_3(it.y26_1, this);
2671
3708
  // Inline function 'kotlin.text.trimStart' call
2672
- var this_1 = trimMargin('\n |' + (Companion_getInstance_3().v28(module_0) ? TypeScriptShared_getInstance().u28_1 : '') + '\n |' + it.z26_1 + '\n ');
3709
+ var this_1 = trimMargin('\n |' + (Companion_getInstance_4().h29(module_0) ? TypeScriptShared_getInstance().g29_1 : '') + '\n |' + it.z26_1 + '\n ');
2673
3710
  var tmp$ret$0 = toString(trimStart(isCharSequence(this_1) ? this_1 : THROW_CCE()));
2674
3711
  var tmp_0 = new Emitted(tmp, tmp$ret$0);
2675
3712
  // Inline function 'kotlin.collections.map' call
@@ -2680,9 +3717,9 @@ protoOf(TypeScriptEmitter).x26 = function (module_0, logger) {
2680
3717
  while (_iterator__ex2g4s.h()) {
2681
3718
  var item = _iterator__ex2g4s.i();
2682
3719
  // Inline function 'community.flock.wirespec.compiler.core.emit.TypeScriptEmitter.emit.<anonymous>' call
2683
- var tmp_1 = sanitizeSymbol_2(item.y26_1, this);
3720
+ var tmp_1 = sanitizeSymbol_3(item.y26_1, this);
2684
3721
  // Inline function 'kotlin.text.trimStart' call
2685
- var this_3 = trimMargin('\n |' + (Companion_getInstance_3().v28(module_0) ? TypeScriptShared_getInstance().u28_1 : '') + '\n |' + item.z26_1 + '\n ');
3722
+ var this_3 = trimMargin('\n |' + (Companion_getInstance_4().h29(module_0) ? TypeScriptShared_getInstance().g29_1 : '') + '\n |' + item.z26_1 + '\n ');
2686
3723
  var tmp$ret$2 = toString(trimStart(isCharSequence(this_3) ? this_3 : THROW_CCE()));
2687
3724
  var tmp$ret$3 = new Emitted(tmp_1, tmp$ret$2);
2688
3725
  destination.e(tmp$ret$3);
@@ -2690,16 +3727,16 @@ protoOf(TypeScriptEmitter).x26 = function (module_0, logger) {
2690
3727
  return new NonEmptyList(tmp_0, destination);
2691
3728
  };
2692
3729
  protoOf(TypeScriptEmitter).b27 = function (type, module_0) {
2693
- return trimMargin('export type ' + sanitizeSymbol_1(type.k26_1, this) + ' = {\n |' + this.c27(type.l26_1) + '\n |}\n |\n |');
3730
+ return trimMargin('export type ' + sanitizeSymbol_2(type.k26_1, this) + ' = {\n |' + this.c27(type.l26_1) + '\n |}\n |\n |');
2694
3731
  };
2695
3732
  protoOf(TypeScriptEmitter).l27 = function (enum_0, module_0) {
2696
- var tmp = sanitizeSymbol_1(enum_0.r26_1, this);
3733
+ var tmp = sanitizeSymbol_2(enum_0.r26_1, this);
2697
3734
  return 'export type ' + tmp + ' = ' + joinToString(enum_0.s26_1, ' | ', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda) + '\n';
2698
3735
  };
2699
3736
  protoOf(TypeScriptEmitter).c27 = function (_this__u8e3s4) {
2700
3737
  return joinToString(_this__u8e3s4.g27_1, ',\n', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda_0(this));
2701
3738
  };
2702
- protoOf(TypeScriptEmitter).s28 = function (_this__u8e3s4) {
3739
+ protoOf(TypeScriptEmitter).e29 = function (_this__u8e3s4) {
2703
3740
  return Spacer_instance.toString() + this.q25(_this__u8e3s4.s25_1) + ': ' + this.g24(_this__u8e3s4.t25_1);
2704
3741
  };
2705
3742
  protoOf(TypeScriptEmitter).w25 = function (_this__u8e3s4) {
@@ -2720,7 +3757,7 @@ protoOf(TypeScriptEmitter).g24 = function (_this__u8e3s4) {
2720
3757
  tmp = 'any';
2721
3758
  } else {
2722
3759
  if (_this__u8e3s4 instanceof Custom) {
2723
- tmp = sanitizeSymbol_2(_this__u8e3s4.v23_1, this);
3760
+ tmp = sanitizeSymbol_3(_this__u8e3s4.v23_1, this);
2724
3761
  } else {
2725
3762
  if (_this__u8e3s4 instanceof Primitive) {
2726
3763
  var tmp1_subject = _this__u8e3s4.k24_1;
@@ -2760,18 +3797,18 @@ protoOf(TypeScriptEmitter).g24 = function (_this__u8e3s4) {
2760
3797
  return tmp + (_this__u8e3s4.sm() ? ' | undefined' : '');
2761
3798
  };
2762
3799
  protoOf(TypeScriptEmitter).h27 = function (refined) {
2763
- return trimMargin('export type ' + sanitizeSymbol_1(refined.o26_1, this) + ' = string;\n |const regExp' + refined.o26_1.b1() + ' = ' + this.i27(refined.p26_1) + ';\n |export const validate' + refined.o26_1.b1() + ' = (value: string): value is ' + sanitizeSymbol_1(refined.o26_1, this) + ' => \n |' + Spacer_instance.toString() + 'regExp' + refined.o26_1.b1() + '.test(value);\n |');
3800
+ return trimMargin('export type ' + sanitizeSymbol_2(refined.o26_1, this) + ' = string;\n |const regExp' + refined.o26_1.b1() + ' = ' + this.i27(refined.p26_1) + ';\n |export const validate' + refined.o26_1.b1() + ' = (value: string): value is ' + sanitizeSymbol_2(refined.o26_1, this) + ' => \n |' + Spacer_instance.toString() + 'regExp' + refined.o26_1.b1() + '.test(value);\n |');
2764
3801
  };
2765
3802
  protoOf(TypeScriptEmitter).i27 = function (_this__u8e3s4) {
2766
3803
  return _this__u8e3s4.j27_1;
2767
3804
  };
2768
3805
  protoOf(TypeScriptEmitter).p27 = function (endpoint) {
2769
- var tmp = sanitizeSymbol_1(endpoint.s24_1, this);
3806
+ var tmp = sanitizeSymbol_2(endpoint.s24_1, this);
2770
3807
  var tmp_0 = this.i25(endpoint);
2771
- var tmp_1 = emitType_0(tmp_0, this, 'Path', TypeScriptEmitter$emit$lambda_1(this));
2772
- var tmp_2 = emitType_0(endpoint.v24_1, this, 'Queries', TypeScriptEmitter$emit$lambda_2(this));
2773
- var tmp_3 = emitType_0(endpoint.w24_1, this, 'Headers', TypeScriptEmitter$emit$lambda_3(this));
2774
- var tmp_4 = emitType_1(first_0(endpoint.y24_1), this, endpoint);
3808
+ var tmp_1 = emitType_1(tmp_0, this, 'Path', TypeScriptEmitter$emit$lambda_1(this));
3809
+ var tmp_2 = emitType_1(endpoint.v24_1, this, 'Queries', TypeScriptEmitter$emit$lambda_2(this));
3810
+ var tmp_3 = emitType_1(endpoint.w24_1, this, 'Headers', TypeScriptEmitter$emit$lambda_3(this));
3811
+ var tmp_4 = emitType_2(first_0(endpoint.y24_1), this, endpoint);
2775
3812
  var tmp_5 = toSet(endpoint.z24_1);
2776
3813
  var tmp_6 = joinToString(tmp_5, '\n', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda_4(this));
2777
3814
  var tmp_7 = Spacer_instance.toString();
@@ -2787,10 +3824,10 @@ protoOf(TypeScriptEmitter).p27 = function (endpoint) {
2787
3824
  var tmp_17 = prependIndent(emitServer(endpoint, this), Spacer_instance.e25(1));
2788
3825
  var tmp_18 = Spacer_instance.toString();
2789
3826
  var tmp_19 = Spacer_instance.e25(2);
2790
- var tmp_20 = Companion_getInstance_3().u25(sanitizeSymbol_1(endpoint.s24_1, this));
3827
+ var tmp_20 = Companion_getInstance_4().u25(sanitizeSymbol_2(endpoint.s24_1, this));
2791
3828
  var tmp_21 = Spacer_instance.e25(2);
2792
3829
  var tmp_22 = Spacer_instance.e25(2);
2793
- 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_11 + '\n |' + tmp_12 + 'export type Handler = {\n |' + tmp_13 + tmp_14 + '\n |' + tmp_15 + '}\n |' + tmp_16 + '\n |' + tmp_17 + '\n |' + tmp_18 + 'export const api = {\n |' + tmp_19 + 'name: "' + tmp_20 + '",\n |' + tmp_21 + 'method: "' + endpoint.t24_1.o2_1 + '",\n |' + tmp_22 + 'path: "' + joinToString(endpoint.u24_1, '/', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda_7(this)) + '",\n |' + Spacer_instance.e25(2) + 'server,\n |' + Spacer_instance.e25(2) + 'client\n |' + Spacer_instance.toString() + '} as const\n |}\n |\n ');
3830
+ 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_11 + '\n |' + tmp_12 + 'export type Handler = {\n |' + tmp_13 + tmp_14 + '\n |' + tmp_15 + '}\n |' + tmp_16 + '\n |' + tmp_17 + '\n |' + tmp_18 + 'export const api = {\n |' + tmp_19 + 'name: "' + tmp_20 + '",\n |' + tmp_21 + 'method: "' + endpoint.t24_1.q2_1 + '",\n |' + tmp_22 + 'path: "' + joinToString(endpoint.u24_1, '/', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda_7(this)) + '",\n |' + Spacer_instance.e25(2) + 'server,\n |' + Spacer_instance.e25(2) + 'client\n |' + Spacer_instance.toString() + '} as const\n |}\n |\n ');
2794
3831
  };
2795
3832
  protoOf(TypeScriptEmitter).a26 = function (_this__u8e3s4) {
2796
3833
  var tmp;
@@ -2806,14 +3843,14 @@ protoOf(TypeScriptEmitter).a26 = function (_this__u8e3s4) {
2806
3843
  return tmp;
2807
3844
  };
2808
3845
  protoOf(TypeScriptEmitter).n27 = function (union) {
2809
- var tmp = sanitizeSymbol_1(union.h26_1, this);
3846
+ var tmp = sanitizeSymbol_2(union.h26_1, this);
2810
3847
  return 'export type ' + tmp + ' = ' + joinToString(union.i26_1, ' | ', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda_8(this)) + '\n';
2811
3848
  };
2812
3849
  protoOf(TypeScriptEmitter).q25 = function (identifier) {
2813
3850
  return '"' + identifier.b1() + '"';
2814
3851
  };
2815
3852
  protoOf(TypeScriptEmitter).o27 = function (channel) {
2816
- return this.u27();
3853
+ return this.z28();
2817
3854
  };
2818
3855
  function fixStatus_1(_this__u8e3s4, $this) {
2819
3856
  return _this__u8e3s4 === 'default' ? '200' : _this__u8e3s4;
@@ -2888,15 +3925,15 @@ function capitalize(_this__u8e3s4, $this) {
2888
3925
  }
2889
3926
  return tmp;
2890
3927
  }
2891
- function Companion_2() {
2892
- Companion_instance_3 = this;
2893
- this.a29_1 = setOf(['type', 'enum', 'endpoint']);
3928
+ function Companion_3() {
3929
+ Companion_instance_4 = this;
3930
+ this.m29_1 = setOf(['type', 'enum', 'endpoint']);
2894
3931
  }
2895
- var Companion_instance_3;
2896
- function Companion_getInstance_2() {
2897
- if (Companion_instance_3 == null)
2898
- new Companion_2();
2899
- return Companion_instance_3;
3932
+ var Companion_instance_4;
3933
+ function Companion_getInstance_3() {
3934
+ if (Companion_instance_4 == null)
3935
+ new Companion_3();
3936
+ return Companion_instance_4;
2900
3937
  }
2901
3938
  function WirespecEmitter$emit$lambda(this$0) {
2902
3939
  return function (it) {
@@ -2953,11 +3990,11 @@ function WirespecEmitter$emitQuery$lambda(this$0) {
2953
3990
  };
2954
3991
  }
2955
3992
  function WirespecEmitter() {
2956
- Companion_getInstance_2();
3993
+ Companion_getInstance_3();
2957
3994
  Emitter.call(this);
2958
- this.x28_1 = FileExtension_Wirespec_getInstance();
2959
- this.y28_1 = null;
2960
- this.z28_1 = '\n';
3995
+ this.j29_1 = FileExtension_Wirespec_getInstance();
3996
+ this.k29_1 = null;
3997
+ this.l29_1 = '\n';
2961
3998
  }
2962
3999
  protoOf(WirespecEmitter).f26 = function (_this__u8e3s4) {
2963
4000
  var tmp;
@@ -2989,16 +4026,13 @@ protoOf(WirespecEmitter).f26 = function (_this__u8e3s4) {
2989
4026
  return tmp;
2990
4027
  };
2991
4028
  protoOf(WirespecEmitter).d26 = function () {
2992
- return this.x28_1;
4029
+ return this.j29_1;
2993
4030
  };
2994
4031
  protoOf(WirespecEmitter).e26 = function () {
2995
- return this.y28_1;
4032
+ return this.k29_1;
2996
4033
  };
2997
4034
  protoOf(WirespecEmitter).w26 = function () {
2998
- return this.z28_1;
2999
- };
3000
- protoOf(WirespecEmitter).u27 = function () {
3001
- return this.w26();
4035
+ return this.l29_1;
3002
4036
  };
3003
4037
  protoOf(WirespecEmitter).b27 = function (type, module_0) {
3004
4038
  return trimMargin('\n |type ' + this.q25(type.k26_1) + ' {\n |' + this.c27(type.l26_1) + '\n |}\n |');
@@ -3014,12 +4048,12 @@ protoOf(WirespecEmitter).q25 = function (identifier) {
3014
4048
  if (identifier instanceof DefinitionIdentifier) {
3015
4049
  // Inline function 'kotlin.run' call
3016
4050
  // Inline function 'community.flock.wirespec.compiler.core.emit.WirespecEmitter.emit.<anonymous>' call
3017
- tmp = Companion_getInstance_2().a29_1.o1(identifier.b1()) ? addBackticks(identifier.b1()) : identifier.b1();
4051
+ tmp = Companion_getInstance_3().m29_1.o1(identifier.b1()) ? addBackticks(identifier.b1()) : identifier.b1();
3018
4052
  } else {
3019
4053
  if (identifier instanceof FieldIdentifier) {
3020
4054
  // Inline function 'kotlin.run' call
3021
4055
  // Inline function 'community.flock.wirespec.compiler.core.emit.WirespecEmitter.emit.<anonymous>' call
3022
- tmp = Companion_getInstance_2().a29_1.o1(identifier.b1()) || isUpperCase(first(identifier.b1())) ? addBackticks(identifier.b1()) : identifier.b1();
4056
+ tmp = Companion_getInstance_3().m29_1.o1(identifier.b1()) || isUpperCase(first(identifier.b1())) ? addBackticks(identifier.b1()) : identifier.b1();
3023
4057
  } else {
3024
4058
  noWhenBranchMatchedException();
3025
4059
  }
@@ -3060,7 +4094,7 @@ protoOf(WirespecEmitter).g24 = function (_this__u8e3s4) {
3060
4094
  } else {
3061
4095
  if (tmp1_subject instanceof Integer) {
3062
4096
  var tmp_1;
3063
- switch (_this__u8e3s4.k24_1.p24_1.p2_1) {
4097
+ switch (_this__u8e3s4.k24_1.p24_1.r2_1) {
3064
4098
  case 0:
3065
4099
  tmp_1 = 'Integer32';
3066
4100
  break;
@@ -3075,7 +4109,7 @@ protoOf(WirespecEmitter).g24 = function (_this__u8e3s4) {
3075
4109
  } else {
3076
4110
  if (tmp1_subject instanceof Number_0) {
3077
4111
  var tmp_2;
3078
- switch (_this__u8e3s4.k24_1.n24_1.p2_1) {
4112
+ switch (_this__u8e3s4.k24_1.n24_1.r2_1) {
3079
4113
  case 0:
3080
4114
  tmp_2 = 'Number32';
3081
4115
  break;
@@ -3219,17 +4253,17 @@ function ParamType_BODY_getInstance() {
3219
4253
  return ParamType_BODY_instance;
3220
4254
  }
3221
4255
  function Param(type, identifier, reference) {
3222
- this.p28_1 = type;
3223
- this.q28_1 = identifier;
3224
- this.r28_1 = reference;
4256
+ this.b28_1 = type;
4257
+ this.c28_1 = identifier;
4258
+ this.d28_1 = reference;
3225
4259
  }
3226
4260
  protoOf(Param).toString = function () {
3227
- return 'Param(type=' + this.p28_1.toString() + ', identifier=' + this.q28_1.toString() + ', reference=' + toString(this.r28_1) + ')';
4261
+ return 'Param(type=' + this.b28_1.toString() + ', identifier=' + this.c28_1.toString() + ', reference=' + toString(this.d28_1) + ')';
3228
4262
  };
3229
4263
  protoOf(Param).hashCode = function () {
3230
- var result = this.p28_1.hashCode();
3231
- result = imul(result, 31) + hashCode(this.q28_1) | 0;
3232
- result = imul(result, 31) + hashCode(this.r28_1) | 0;
4264
+ var result = this.b28_1.hashCode();
4265
+ result = imul(result, 31) + hashCode(this.c28_1) | 0;
4266
+ result = imul(result, 31) + hashCode(this.d28_1) | 0;
3233
4267
  return result;
3234
4268
  };
3235
4269
  protoOf(Param).equals = function (other) {
@@ -3238,11 +4272,11 @@ protoOf(Param).equals = function (other) {
3238
4272
  if (!(other instanceof Param))
3239
4273
  return false;
3240
4274
  var tmp0_other_with_cast = other instanceof Param ? other : THROW_CCE();
3241
- if (!this.p28_1.equals(tmp0_other_with_cast.p28_1))
4275
+ if (!this.b28_1.equals(tmp0_other_with_cast.b28_1))
3242
4276
  return false;
3243
- if (!equals(this.q28_1, tmp0_other_with_cast.q28_1))
4277
+ if (!equals(this.c28_1, tmp0_other_with_cast.c28_1))
3244
4278
  return false;
3245
- if (!equals(this.r28_1, tmp0_other_with_cast.r28_1))
4279
+ if (!equals(this.d28_1, tmp0_other_with_cast.d28_1))
3246
4280
  return false;
3247
4281
  return true;
3248
4282
  };
@@ -3255,11 +4289,11 @@ function toParam_0(_this__u8e3s4, $this) {
3255
4289
  function toParam_1(_this__u8e3s4, $this, type) {
3256
4290
  return new Param(type, _this__u8e3s4.n25_1, _this__u8e3s4.o25_1);
3257
4291
  }
3258
- function Companion_3() {
3259
- Companion_instance_4 = this;
4292
+ function Companion_4() {
4293
+ Companion_instance_5 = this;
3260
4294
  this.k25_1 = setOf(['Request', 'Response']);
3261
4295
  }
3262
- protoOf(Companion_3).l25 = function (_this__u8e3s4) {
4296
+ protoOf(Companion_4).l25 = function (_this__u8e3s4) {
3263
4297
  // Inline function 'kotlin.text.replaceFirstChar' call
3264
4298
  var tmp;
3265
4299
  // Inline function 'kotlin.text.isNotEmpty' call
@@ -3279,7 +4313,7 @@ protoOf(Companion_3).l25 = function (_this__u8e3s4) {
3279
4313
  }
3280
4314
  return tmp;
3281
4315
  };
3282
- protoOf(Companion_3).u25 = function (_this__u8e3s4) {
4316
+ protoOf(Companion_4).u25 = function (_this__u8e3s4) {
3283
4317
  // Inline function 'kotlin.text.replaceFirstChar' call
3284
4318
  var tmp;
3285
4319
  // Inline function 'kotlin.text.isNotEmpty' call
@@ -3299,7 +4333,7 @@ protoOf(Companion_3).u25 = function (_this__u8e3s4) {
3299
4333
  }
3300
4334
  return tmp;
3301
4335
  };
3302
- protoOf(Companion_3).a27 = function (_this__u8e3s4) {
4336
+ protoOf(Companion_4).a27 = function (_this__u8e3s4) {
3303
4337
  var tmp0 = _this__u8e3s4.f27_1;
3304
4338
  var tmp$ret$0;
3305
4339
  $l$block_0: {
@@ -3339,7 +4373,7 @@ protoOf(Companion_3).a27 = function (_this__u8e3s4) {
3339
4373
  }
3340
4374
  return tmp$ret$0;
3341
4375
  };
3342
- protoOf(Companion_3).v28 = function (_this__u8e3s4) {
4376
+ protoOf(Companion_4).h29 = function (_this__u8e3s4) {
3343
4377
  var tmp0 = _this__u8e3s4.f27_1;
3344
4378
  var tmp$ret$0;
3345
4379
  $l$block_0: {
@@ -3367,7 +4401,7 @@ protoOf(Companion_3).v28 = function (_this__u8e3s4) {
3367
4401
  }
3368
4402
  return tmp$ret$0;
3369
4403
  };
3370
- protoOf(Companion_3).r27 = function (_this__u8e3s4) {
4404
+ protoOf(Companion_4).r27 = function (_this__u8e3s4) {
3371
4405
  var tmp0_safe_receiver = toIntOrNull(_this__u8e3s4);
3372
4406
  var tmp;
3373
4407
  if (tmp0_safe_receiver == null) {
@@ -3380,11 +4414,11 @@ protoOf(Companion_3).r27 = function (_this__u8e3s4) {
3380
4414
  var tmp1_elvis_lhs = tmp;
3381
4415
  return tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs;
3382
4416
  };
3383
- var Companion_instance_4;
3384
- function Companion_getInstance_3() {
3385
- if (Companion_instance_4 == null)
3386
- new Companion_3();
3387
- return Companion_instance_4;
4417
+ var Companion_instance_5;
4418
+ function Companion_getInstance_4() {
4419
+ if (Companion_instance_5 == null)
4420
+ new Companion_4();
4421
+ return Companion_instance_5;
3388
4422
  }
3389
4423
  function Emitter$emit$lambda(it) {
3390
4424
  return it.z26_1;
@@ -3406,16 +4440,13 @@ function Emitter$spacer$lambda($space) {
3406
4440
  };
3407
4441
  }
3408
4442
  function Emitter(split) {
3409
- Companion_getInstance_3();
4443
+ Companion_getInstance_4();
3410
4444
  split = split === VOID ? false : split;
3411
4445
  this.j23_1 = split;
3412
4446
  }
3413
- protoOf(Emitter).f26 = function (_this__u8e3s4) {
3414
- return this.u27();
3415
- };
3416
4447
  protoOf(Emitter).k23 = function (ast, logger) {
3417
4448
  // Inline function 'arrow.core.NonEmptyList.flatMap' call
3418
- var this_0 = ast.b29_1;
4449
+ var this_0 = ast.n29_1;
3419
4450
  // Inline function 'community.flock.wirespec.compiler.core.emit.common.Emitter.emit.<anonymous>' call
3420
4451
  var it = this_0.uk_1;
3421
4452
  var tmp = this.x26(it, logger).sk();
@@ -3437,34 +4468,25 @@ protoOf(Emitter).x26 = function (module_0, logger) {
3437
4468
  var this_0 = module_0.f27_1;
3438
4469
  // Inline function 'community.flock.wirespec.compiler.core.emit.common.Emitter.emit.<anonymous>' call
3439
4470
  var it = this_0.uk_1;
4471
+ logger.o29('Emitting Node ' + this.f26(it));
3440
4472
  var tmp;
3441
- if (isInterface(it, Definition)) {
3442
- tmp = this.f26(it);
3443
- } else {
3444
- noWhenBranchMatchedException();
3445
- }
3446
- // Inline function 'kotlin.also' call
3447
- var this_1 = tmp;
3448
- // Inline function 'community.flock.wirespec.compiler.core.emit.common.Emitter.emit.<anonymous>.<anonymous>' call
3449
- logger.c29('Emitting Node ' + this_1);
3450
- var tmp_0;
3451
4473
  if (it instanceof Type) {
3452
- tmp_0 = new Emitted(this.f26(it), this.b27(it, module_0));
4474
+ tmp = new Emitted(this.f26(it), this.b27(it, module_0));
3453
4475
  } else {
3454
4476
  if (it instanceof Endpoint) {
3455
- tmp_0 = new Emitted(this.f26(it), this.p27(it));
4477
+ tmp = new Emitted(this.f26(it), this.p27(it));
3456
4478
  } else {
3457
4479
  if (it instanceof Enum_0) {
3458
- tmp_0 = new Emitted(this.f26(it), this.l27(it, module_0));
4480
+ tmp = new Emitted(this.f26(it), this.l27(it, module_0));
3459
4481
  } else {
3460
4482
  if (it instanceof Refined) {
3461
- tmp_0 = new Emitted(this.f26(it), this.h27(it));
4483
+ tmp = new Emitted(this.f26(it), this.h27(it));
3462
4484
  } else {
3463
4485
  if (it instanceof Union) {
3464
- tmp_0 = new Emitted(this.f26(it), this.n27(it));
4486
+ tmp = new Emitted(this.f26(it), this.n27(it));
3465
4487
  } else {
3466
4488
  if (it instanceof Channel) {
3467
- tmp_0 = new Emitted(this.f26(it), this.o27(it));
4489
+ tmp = new Emitted(this.f26(it), this.o27(it));
3468
4490
  } else {
3469
4491
  noWhenBranchMatchedException();
3470
4492
  }
@@ -3473,43 +4495,34 @@ protoOf(Emitter).x26 = function (module_0, logger) {
3473
4495
  }
3474
4496
  }
3475
4497
  }
3476
- var tmp_1 = tmp_0;
4498
+ var tmp_0 = tmp;
3477
4499
  // Inline function 'kotlin.collections.map' call
3478
- var this_2 = this_0.vk_1;
4500
+ var this_1 = this_0.vk_1;
3479
4501
  // Inline function 'kotlin.collections.mapTo' call
3480
- var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_2, 10));
3481
- var _iterator__ex2g4s = this_2.g();
4502
+ var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_1, 10));
4503
+ var _iterator__ex2g4s = this_1.g();
3482
4504
  while (_iterator__ex2g4s.h()) {
3483
4505
  var item = _iterator__ex2g4s.i();
3484
4506
  // Inline function 'community.flock.wirespec.compiler.core.emit.common.Emitter.emit.<anonymous>' call
3485
- var tmp_2;
3486
- if (isInterface(item, Definition)) {
3487
- tmp_2 = this.f26(item);
3488
- } else {
3489
- noWhenBranchMatchedException();
3490
- }
3491
- // Inline function 'kotlin.also' call
3492
- var this_3 = tmp_2;
3493
- // Inline function 'community.flock.wirespec.compiler.core.emit.common.Emitter.emit.<anonymous>.<anonymous>' call
3494
- logger.c29('Emitting Node ' + this_3);
3495
- var tmp_3;
4507
+ logger.o29('Emitting Node ' + this.f26(item));
4508
+ var tmp_1;
3496
4509
  if (item instanceof Type) {
3497
- tmp_3 = new Emitted(this.f26(item), this.b27(item, module_0));
4510
+ tmp_1 = new Emitted(this.f26(item), this.b27(item, module_0));
3498
4511
  } else {
3499
4512
  if (item instanceof Endpoint) {
3500
- tmp_3 = new Emitted(this.f26(item), this.p27(item));
4513
+ tmp_1 = new Emitted(this.f26(item), this.p27(item));
3501
4514
  } else {
3502
4515
  if (item instanceof Enum_0) {
3503
- tmp_3 = new Emitted(this.f26(item), this.l27(item, module_0));
4516
+ tmp_1 = new Emitted(this.f26(item), this.l27(item, module_0));
3504
4517
  } else {
3505
4518
  if (item instanceof Refined) {
3506
- tmp_3 = new Emitted(this.f26(item), this.h27(item));
4519
+ tmp_1 = new Emitted(this.f26(item), this.h27(item));
3507
4520
  } else {
3508
4521
  if (item instanceof Union) {
3509
- tmp_3 = new Emitted(this.f26(item), this.n27(item));
4522
+ tmp_1 = new Emitted(this.f26(item), this.n27(item));
3510
4523
  } else {
3511
4524
  if (item instanceof Channel) {
3512
- tmp_3 = new Emitted(this.f26(item), this.o27(item));
4525
+ tmp_1 = new Emitted(this.f26(item), this.o27(item));
3513
4526
  } else {
3514
4527
  noWhenBranchMatchedException();
3515
4528
  }
@@ -3518,19 +4531,19 @@ protoOf(Emitter).x26 = function (module_0, logger) {
3518
4531
  }
3519
4532
  }
3520
4533
  }
3521
- var tmp$ret$3 = tmp_3;
3522
- destination.e(tmp$ret$3);
4534
+ var tmp$ret$1 = tmp_1;
4535
+ destination.e(tmp$ret$1);
3523
4536
  }
3524
4537
  // Inline function 'kotlin.run' call
3525
4538
  // Inline function 'community.flock.wirespec.compiler.core.emit.common.Emitter.emit.<anonymous>' call
3526
- var $this$run = new NonEmptyList(tmp_1, destination);
3527
- var tmp_4;
4539
+ var $this$run = new NonEmptyList(tmp_0, destination);
4540
+ var tmp_2;
3528
4541
  if (this.j23_1) {
3529
- tmp_4 = $this$run;
4542
+ tmp_2 = $this$run;
3530
4543
  } else {
3531
- tmp_4 = nonEmptyListOf(new Emitted('NoName', joinToString($this$run, '\n', VOID, VOID, VOID, VOID, Emitter$emit$lambda)), []);
4544
+ tmp_2 = nonEmptyListOf(new Emitted('NoName', joinToString($this$run, '\n', VOID, VOID, VOID, VOID, Emitter$emit$lambda)), []);
3532
4545
  }
3533
- return tmp_4;
4546
+ return tmp_2;
3534
4547
  };
3535
4548
  protoOf(Emitter).t27 = function (_this__u8e3s4, space) {
3536
4549
  var tmp = split(_this__u8e3s4, ['\n']);
@@ -3601,7 +4614,7 @@ protoOf(Emitter).j25 = function (_this__u8e3s4) {
3601
4614
  }
3602
4615
  return destination;
3603
4616
  };
3604
- protoOf(Emitter).n28 = function (_this__u8e3s4, endpoint) {
4617
+ protoOf(Emitter).k28 = function (_this__u8e3s4, endpoint) {
3605
4618
  // Inline function 'kotlin.collections.map' call
3606
4619
  var this_0 = this.i25(endpoint);
3607
4620
  // Inline function 'kotlin.collections.mapTo' call
@@ -3641,7 +4654,7 @@ protoOf(Emitter).n28 = function (_this__u8e3s4, endpoint) {
3641
4654
  var tmp0_safe_receiver = _this__u8e3s4.f25_1;
3642
4655
  return flatten(listOf([tmp, tmp_0, tmp_1, listOfNotNull_0(tmp0_safe_receiver == null ? null : toParam_0(tmp0_safe_receiver, this))]));
3643
4656
  };
3644
- protoOf(Emitter).o28 = function (_this__u8e3s4) {
4657
+ protoOf(Emitter).l28 = function (_this__u8e3s4) {
3645
4658
  // Inline function 'kotlin.collections.map' call
3646
4659
  var this_0 = _this__u8e3s4.b25_1;
3647
4660
  // Inline function 'kotlin.collections.mapTo' call
@@ -3663,11 +4676,12 @@ var FileExtension_Java_instance;
3663
4676
  var FileExtension_Kotlin_instance;
3664
4677
  var FileExtension_Scala_instance;
3665
4678
  var FileExtension_TypeScript_instance;
4679
+ var FileExtension_Python_instance;
3666
4680
  var FileExtension_Wirespec_instance;
3667
4681
  var FileExtension_JSON_instance;
3668
4682
  var FileExtension_Avro_instance;
3669
4683
  function values() {
3670
- return [FileExtension_Java_getInstance(), FileExtension_Kotlin_getInstance(), FileExtension_Scala_getInstance(), FileExtension_TypeScript_getInstance(), FileExtension_Wirespec_getInstance(), FileExtension_JSON_getInstance(), FileExtension_Avro_getInstance()];
4684
+ return [FileExtension_Java_getInstance(), FileExtension_Kotlin_getInstance(), FileExtension_Scala_getInstance(), FileExtension_TypeScript_getInstance(), FileExtension_Python_getInstance(), FileExtension_Wirespec_getInstance(), FileExtension_JSON_getInstance(), FileExtension_Avro_getInstance()];
3671
4685
  }
3672
4686
  function get_entries() {
3673
4687
  if ($ENTRIES == null)
@@ -3683,14 +4697,15 @@ function FileExtension_initEntries() {
3683
4697
  FileExtension_Kotlin_instance = new FileExtension('Kotlin', 1, 'kt');
3684
4698
  FileExtension_Scala_instance = new FileExtension('Scala', 2, 'scala');
3685
4699
  FileExtension_TypeScript_instance = new FileExtension('TypeScript', 3, 'ts');
3686
- FileExtension_Wirespec_instance = new FileExtension('Wirespec', 4, 'ws');
3687
- FileExtension_JSON_instance = new FileExtension('JSON', 5, 'json');
3688
- FileExtension_Avro_instance = new FileExtension('Avro', 6, 'avsc');
4700
+ FileExtension_Python_instance = new FileExtension('Python', 4, 'py');
4701
+ FileExtension_Wirespec_instance = new FileExtension('Wirespec', 5, 'ws');
4702
+ FileExtension_JSON_instance = new FileExtension('JSON', 6, 'json');
4703
+ FileExtension_Avro_instance = new FileExtension('Avro', 7, 'avsc');
3689
4704
  }
3690
4705
  var $ENTRIES;
3691
4706
  function FileExtension(name, ordinal, value) {
3692
4707
  Enum.call(this, name, ordinal);
3693
- this.f29_1 = value;
4708
+ this.r29_1 = value;
3694
4709
  }
3695
4710
  function FileExtension_Java_getInstance() {
3696
4711
  FileExtension_initEntries();
@@ -3708,6 +4723,10 @@ function FileExtension_TypeScript_getInstance() {
3708
4723
  FileExtension_initEntries();
3709
4724
  return FileExtension_TypeScript_instance;
3710
4725
  }
4726
+ function FileExtension_Python_getInstance() {
4727
+ FileExtension_initEntries();
4728
+ return FileExtension_Python_instance;
4729
+ }
3711
4730
  function FileExtension_Wirespec_getInstance() {
3712
4731
  FileExtension_initEntries();
3713
4732
  return FileExtension_Wirespec_instance;
@@ -3720,9 +4739,9 @@ function FileExtension_Avro_getInstance() {
3720
4739
  FileExtension_initEntries();
3721
4740
  return FileExtension_Avro_instance;
3722
4741
  }
3723
- function Companion_4() {
4742
+ function Companion_5() {
3724
4743
  }
3725
- protoOf(Companion_4).c26 = function (value) {
4744
+ protoOf(Companion_5).c26 = function (value) {
3726
4745
  var tmp;
3727
4746
  if (value == null) {
3728
4747
  tmp = null;
@@ -3743,27 +4762,27 @@ protoOf(Companion_4).c26 = function (value) {
3743
4762
  var it = tmp;
3744
4763
  return new PackageName(it == null ? 'community.flock.wirespec' : it, !(it == null));
3745
4764
  };
3746
- var Companion_instance_5;
3747
- function Companion_getInstance_4() {
3748
- return Companion_instance_5;
4765
+ var Companion_instance_6;
4766
+ function Companion_getInstance_5() {
4767
+ return Companion_instance_6;
3749
4768
  }
3750
4769
  function PackageName(value, createDirectory) {
3751
- this.g29_1 = value;
3752
- this.h29_1 = createDirectory;
4770
+ this.s29_1 = value;
4771
+ this.t29_1 = createDirectory;
3753
4772
  }
3754
4773
  protoOf(PackageName).toString = function () {
3755
- return this.g29_1;
4774
+ return this.s29_1;
3756
4775
  };
3757
4776
  function JavaShared() {
3758
4777
  JavaShared_instance = this;
3759
- this.i29_1 = 'community.flock.wirespec.java';
3760
- this.j29_1 = trimMargin('\n |package ' + this.i29_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.e25(2) + 'Req from(RawRequest request);\n |' + Spacer_instance.e25(2) + 'RawResponse to(Res response);\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'interface ClientEdge<Req extends Request<?>, Res extends Response<?>> {\n |' + Spacer_instance.e25(2) + 'RawRequest to(Req request);\n |' + Spacer_instance.e25(2) + 'Res from(RawResponse response);\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'interface Client<Req extends Request<?>, Res extends Response<?>> {\n |' + Spacer_instance.e25(2) + 'String getPathTemplate();\n |' + Spacer_instance.e25(2) + 'String getMethod();\n |' + Spacer_instance.e25(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.e25(2) + 'String getPathTemplate();\n |' + Spacer_instance.e25(2) + 'String getMethod();\n |' + Spacer_instance.e25(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.e25(2) + 'if(isIterable) {\n |' + Spacer_instance.e25(3) + 'return new ParameterizedType() {\n |' + Spacer_instance.e25(4) + 'public Type getRawType() { return java.util.List.class; }\n |' + Spacer_instance.e25(4) + 'public Type[] getActualTypeArguments() { return new Class<?>[]{type}; }\n |' + Spacer_instance.e25(4) + 'public Type getOwnerType() { return null; }\n |' + Spacer_instance.e25(3) + '};\n |' + Spacer_instance.e25(2) + '}\n |' + Spacer_instance.e25(2) + 'else { return type; }\n |' + Spacer_instance.toString() + '}\n |}\n |\n ');
4778
+ this.u29_1 = 'community.flock.wirespec.java';
4779
+ this.v29_1 = trimMargin('\n |package ' + this.u29_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.e25(2) + 'Req from(RawRequest request);\n |' + Spacer_instance.e25(2) + 'RawResponse to(Res response);\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'interface ClientEdge<Req extends Request<?>, Res extends Response<?>> {\n |' + Spacer_instance.e25(2) + 'RawRequest to(Req request);\n |' + Spacer_instance.e25(2) + 'Res from(RawResponse response);\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'interface Client<Req extends Request<?>, Res extends Response<?>> {\n |' + Spacer_instance.e25(2) + 'String getPathTemplate();\n |' + Spacer_instance.e25(2) + 'String getMethod();\n |' + Spacer_instance.e25(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.e25(2) + 'String getPathTemplate();\n |' + Spacer_instance.e25(2) + 'String getMethod();\n |' + Spacer_instance.e25(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.e25(2) + 'if(isIterable) {\n |' + Spacer_instance.e25(3) + 'return new ParameterizedType() {\n |' + Spacer_instance.e25(4) + 'public Type getRawType() { return java.util.List.class; }\n |' + Spacer_instance.e25(4) + 'public Type[] getActualTypeArguments() { return new Class<?>[]{type}; }\n |' + Spacer_instance.e25(4) + 'public Type getOwnerType() { return null; }\n |' + Spacer_instance.e25(3) + '};\n |' + Spacer_instance.e25(2) + '}\n |' + Spacer_instance.e25(2) + 'else { return type; }\n |' + Spacer_instance.toString() + '}\n |}\n |\n ');
3761
4780
  }
3762
- protoOf(JavaShared).k29 = function () {
3763
- return this.i29_1;
4781
+ protoOf(JavaShared).w29 = function () {
4782
+ return this.u29_1;
3764
4783
  };
3765
4784
  protoOf(JavaShared).f1g = function () {
3766
- return this.j29_1;
4785
+ return this.v29_1;
3767
4786
  };
3768
4787
  protoOf(JavaShared).toString = function () {
3769
4788
  return 'JavaShared';
@@ -3787,14 +4806,14 @@ function JavaShared_getInstance() {
3787
4806
  }
3788
4807
  function KotlinShared() {
3789
4808
  KotlinShared_instance = this;
3790
- this.l29_1 = 'community.flock.wirespec.kotlin';
3791
- this.m29_1 = trimMargin('\n |package ' + this.l29_1 + '\n |\n |import kotlin.reflect.KType\n |\n |object Wirespec {\n |' + Spacer_instance.toString() + 'interface Enum { val label: String }\n |' + Spacer_instance.toString() + 'interface Endpoint\n |' + Spacer_instance.toString() + 'interface Refined { val value: String }\n |' + Spacer_instance.toString() + 'interface Path\n |' + Spacer_instance.toString() + 'interface Queries\n |' + Spacer_instance.toString() + 'interface Headers\n |' + Spacer_instance.toString() + 'interface Handler\n |' + Spacer_instance.toString() + 'interface ServerEdge<Req: Request<*>, Res: Response<*>> { \n |' + Spacer_instance.toString() + 'fun from(request: RawRequest): Req \n |' + Spacer_instance.toString() + 'fun to(response: Res): RawResponse\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'interface ClientEdge<Req: Request<*>, Res: Response<*>> { \n |' + Spacer_instance.e25(2) + 'fun to(request: Req): RawRequest\n |' + Spacer_instance.e25(2) + 'fun from(response: RawResponse): Res\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'interface Client<Req : Request<*>, Res : Response<*>> {\n |' + Spacer_instance.e25(2) + 'val pathTemplate: String\n |' + Spacer_instance.e25(2) + 'val method: String\n |' + Spacer_instance.e25(2) + 'fun client(serialization: Serialization<String>): ClientEdge<Req, Res>\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'interface Server<Req : Request<*>, Res : Response<*>> {\n |' + Spacer_instance.e25(2) + 'val pathTemplate: String\n |' + Spacer_instance.e25(2) + 'val method: String\n |' + Spacer_instance.e25(2) + 'fun server(serialization: Serialization<String>): ServerEdge<Req, Res>\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'enum class Method { GET, PUT, POST, DELETE, OPTIONS, HEAD, PATCH, TRACE }\n |' + Spacer_instance.toString() + 'interface Request<T : Any> { val path: Path; val method: Method; val queries: Queries; val headers: Headers; val body: T; interface Headers : Wirespec.Headers }\n |' + Spacer_instance.toString() + 'interface Response<T : Any> { val status: Int; val headers: Headers; val body: T; interface Headers : Wirespec.Headers }\n |' + Spacer_instance.toString() + 'interface Serialization<RAW : Any> : Serializer<RAW>, Deserializer<RAW>, ParamSerialization\n |' + Spacer_instance.toString() + 'interface ParamSerialization: ParamSerializer, ParamDeserializer\n |' + Spacer_instance.toString() + 'interface ParamSerializer { fun <T> serializeParam(value: T, kType: KType): List<String> }\n |' + Spacer_instance.toString() + 'interface Serializer<RAW : Any> : ParamSerializer { fun <T> serialize(t: T, kType: KType): RAW }\n |' + Spacer_instance.toString() + 'interface Deserializer<RAW: Any>: ParamDeserializer { fun <T> deserialize(raw: RAW, kType: KType): T }\n |' + Spacer_instance.toString() + 'interface ParamDeserializer { fun <T> deserializeParam(values: List<String>, kType: KType): T }\n |' + Spacer_instance.toString() + 'data class RawRequest(val method: String, val path: List<String>, val queries: Map<String, List<String>>, val headers: Map<String, List<String>>, val body: String?) \n |' + Spacer_instance.toString() + 'data class RawResponse(val statusCode: Int, val headers: Map<String, List<String>>, val body: String?)\n |}\n ');
4809
+ this.x29_1 = 'community.flock.wirespec.kotlin';
4810
+ this.y29_1 = trimMargin('\n |package ' + this.x29_1 + '\n |\n |import kotlin.reflect.KType\n |\n |object Wirespec {\n |' + Spacer_instance.toString() + 'interface Enum { val label: String }\n |' + Spacer_instance.toString() + 'interface Endpoint\n |' + Spacer_instance.toString() + 'interface Refined { val value: String }\n |' + Spacer_instance.toString() + 'interface Path\n |' + Spacer_instance.toString() + 'interface Queries\n |' + Spacer_instance.toString() + 'interface Headers\n |' + Spacer_instance.toString() + 'interface Handler\n |' + Spacer_instance.toString() + 'interface ServerEdge<Req: Request<*>, Res: Response<*>> { \n |' + Spacer_instance.toString() + 'fun from(request: RawRequest): Req \n |' + Spacer_instance.toString() + 'fun to(response: Res): RawResponse\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'interface ClientEdge<Req: Request<*>, Res: Response<*>> { \n |' + Spacer_instance.e25(2) + 'fun to(request: Req): RawRequest\n |' + Spacer_instance.e25(2) + 'fun from(response: RawResponse): Res\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'interface Client<Req : Request<*>, Res : Response<*>> {\n |' + Spacer_instance.e25(2) + 'val pathTemplate: String\n |' + Spacer_instance.e25(2) + 'val method: String\n |' + Spacer_instance.e25(2) + 'fun client(serialization: Serialization<String>): ClientEdge<Req, Res>\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'interface Server<Req : Request<*>, Res : Response<*>> {\n |' + Spacer_instance.e25(2) + 'val pathTemplate: String\n |' + Spacer_instance.e25(2) + 'val method: String\n |' + Spacer_instance.e25(2) + 'fun server(serialization: Serialization<String>): ServerEdge<Req, Res>\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'enum class Method { GET, PUT, POST, DELETE, OPTIONS, HEAD, PATCH, TRACE }\n |' + Spacer_instance.toString() + 'interface Request<T : Any> { val path: Path; val method: Method; val queries: Queries; val headers: Headers; val body: T; interface Headers : Wirespec.Headers }\n |' + Spacer_instance.toString() + 'interface Response<T : Any> { val status: Int; val headers: Headers; val body: T; interface Headers : Wirespec.Headers }\n |' + Spacer_instance.toString() + 'interface Serialization<RAW : Any> : Serializer<RAW>, Deserializer<RAW>, ParamSerialization\n |' + Spacer_instance.toString() + 'interface ParamSerialization: ParamSerializer, ParamDeserializer\n |' + Spacer_instance.toString() + 'interface ParamSerializer { fun <T> serializeParam(value: T, kType: KType): List<String> }\n |' + Spacer_instance.toString() + 'interface Serializer<RAW : Any> : ParamSerializer { fun <T> serialize(t: T, kType: KType): RAW }\n |' + Spacer_instance.toString() + 'interface Deserializer<RAW: Any>: ParamDeserializer { fun <T> deserialize(raw: RAW, kType: KType): T }\n |' + Spacer_instance.toString() + 'interface ParamDeserializer { fun <T> deserializeParam(values: List<String>, kType: KType): T }\n |' + Spacer_instance.toString() + 'data class RawRequest(val method: String, val path: List<String>, val queries: Map<String, List<String>>, val headers: Map<String, List<String>>, val body: String?) \n |' + Spacer_instance.toString() + 'data class RawResponse(val statusCode: Int, val headers: Map<String, List<String>>, val body: String?)\n |}\n ');
3792
4811
  }
3793
- protoOf(KotlinShared).k29 = function () {
3794
- return this.l29_1;
4812
+ protoOf(KotlinShared).w29 = function () {
4813
+ return this.x29_1;
3795
4814
  };
3796
4815
  protoOf(KotlinShared).f1g = function () {
3797
- return this.m29_1;
4816
+ return this.y29_1;
3798
4817
  };
3799
4818
  protoOf(KotlinShared).toString = function () {
3800
4819
  return 'KotlinShared';
@@ -3816,16 +4835,44 @@ function KotlinShared_getInstance() {
3816
4835
  new KotlinShared();
3817
4836
  return KotlinShared_instance;
3818
4837
  }
4838
+ function PythonShared() {
4839
+ this.z29_1 = 'shared';
4840
+ this.a2a_1 = "from abc import ABC, abstractmethod\nfrom dataclasses import dataclass\nfrom enum import Enum\nfrom typing import Generic, List, Dict, Optional, TypeVar\n\nT = TypeVar('T')\nREQ = TypeVar('REQ')\nRES = TypeVar('RES')\n\nclass Wirespec:\n\n class Refined(ABC):\n @property\n @abstractmethod\n def value(self) -> str: pass\n\n class Endpoint(ABC):\n\n class Handler(ABC):\n pass\n\n class Convert(ABC, Generic[REQ, RES]):\n @staticmethod\n @abstractmethod\n def to_raw_request(serializer: 'Wirespec.Serializer', req: REQ) -> 'Wirespec.RawRequest': pass\n\n @staticmethod\n @abstractmethod\n def from_raw_response(serializer: 'Wirespec.Deserializer', res: 'Wirespec.RawResponse') -> RES: pass\n\n @staticmethod\n @abstractmethod\n def to_raw_response(serializer: 'Wirespec.Serializer', res: RES) -> 'Wirespec.RawResponse': pass\n\n @staticmethod\n @abstractmethod\n def from_raw_request(serializer: 'Wirespec.Deserializer[T]', req: 'Wirespec.RawRequest') -> REQ: pass\n\n class Method(Enum):\n GET = \"GET\"\n PUT = \"PUT\"\n POST = \"POST\"\n DELETE = \"DELETE\"\n OPTIONS = \"OPTIONS\"\n HEAD = \"HEAD\"\n PATCH = \"PATCH\"\n TRACE = \"TRACE\"\n\n class Request(Generic[T], ABC):\n\n class Path(ABC): pass\n\n class Queries(ABC): pass\n\n class Headers(ABC): pass\n\n @property\n @abstractmethod\n def path(self) -> Path: pass\n\n @property\n @abstractmethod\n def method(self) -> 'Wirespec.Method': pass\n\n @property\n @abstractmethod\n def queries(self) -> Queries: pass\n\n @property\n @abstractmethod\n def headers(self) -> Headers: pass\n\n @property\n @abstractmethod\n def body(self) -> T: pass\n\n class Response(Generic[T], ABC):\n\n class Headers(ABC): pass\n\n @property\n @abstractmethod\n def status(self) -> int: pass\n\n @property\n @abstractmethod\n def headers(self) -> Headers: pass\n\n @property\n @abstractmethod\n def body(self) -> T: pass\n\n class Serializer(Generic[T], ABC):\n @abstractmethod\n def serialize(self, value: T, t: type[T]) -> str: pass\n @abstractmethod\n def serialize_param(self, value: T, t: type[T]) -> List[str]: pass\n\n class Deserializer(Generic[T], ABC):\n @abstractmethod\n def deserialize[T](self, value: str | None, t: type[T]) -> T: pass\n @abstractmethod\n def deserialize_param[T](self, value: List[str] | None, t: type[T]) -> T: pass\n\n class Serialization(Serializer, Deserializer):\n @abstractmethod\n def serialize(self, value: T, t: type[T]) -> str: pass\n @abstractmethod\n def serialize_param(self, value: T, t: type[T]) -> List[str]: pass\n @abstractmethod\n def deserialize[T](self, value: str | None, t: type[T]) -> T: pass\n @abstractmethod\n def deserialize_param[T](self, value: List[str] | None, t: type[T]) -> T: pass\n\n @dataclass\n class RawRequest:\n method: str\n path: List[str]\n queries: Dict[str, List[str]]\n headers: Dict[str, List[str]]\n body: Optional[str]\n\n\n @dataclass\n class RawResponse:\n status_code: int\n headers: Dict[str, List[str]]\n body: Optional[str]\n";
4841
+ }
4842
+ protoOf(PythonShared).w29 = function () {
4843
+ return this.z29_1;
4844
+ };
4845
+ protoOf(PythonShared).f1g = function () {
4846
+ return this.a2a_1;
4847
+ };
4848
+ protoOf(PythonShared).toString = function () {
4849
+ return 'PythonShared';
4850
+ };
4851
+ protoOf(PythonShared).hashCode = function () {
4852
+ return 154049915;
4853
+ };
4854
+ protoOf(PythonShared).equals = function (other) {
4855
+ if (this === other)
4856
+ return true;
4857
+ if (!(other instanceof PythonShared))
4858
+ return false;
4859
+ other instanceof PythonShared || THROW_CCE();
4860
+ return true;
4861
+ };
4862
+ var PythonShared_instance;
4863
+ function PythonShared_getInstance() {
4864
+ return PythonShared_instance;
4865
+ }
3819
4866
  function ScalaShared() {
3820
4867
  ScalaShared_instance = this;
3821
- this.n29_1 = 'community.flock.wirespec.scala';
3822
- this.o29_1 = trimMargin('\n |package ' + this.n29_1 + '\n |\n |object Wirespec\n |\n ');
4868
+ this.b2a_1 = 'community.flock.wirespec.scala';
4869
+ this.c2a_1 = trimMargin('\n |package ' + this.b2a_1 + '\n |\n |object Wirespec\n |\n ');
3823
4870
  }
3824
- protoOf(ScalaShared).k29 = function () {
3825
- return this.n29_1;
4871
+ protoOf(ScalaShared).w29 = function () {
4872
+ return this.b2a_1;
3826
4873
  };
3827
4874
  protoOf(ScalaShared).f1g = function () {
3828
- return this.o29_1;
4875
+ return this.c2a_1;
3829
4876
  };
3830
4877
  protoOf(ScalaShared).toString = function () {
3831
4878
  return 'ScalaShared';
@@ -3849,14 +4896,14 @@ function ScalaShared_getInstance() {
3849
4896
  }
3850
4897
  function TypeScriptShared() {
3851
4898
  TypeScriptShared_instance = this;
3852
- this.t28_1 = 'community.flock.wirespec';
3853
- this.u28_1 = trimMargin('\n |export namespace Wirespec {\n |' + Spacer_instance.toString() + 'export type Method = "GET" | "PUT" | "POST" | "DELETE" | "OPTIONS" | "HEAD" | "PATCH" | "TRACE"\n |' + Spacer_instance.toString() + 'export type RawRequest = { method: Method, path: string[], queries: Record<string, string>, headers: Record<string, string>, body?: string }\n |' + Spacer_instance.toString() + 'export type RawResponse = { status: number, headers: Record<string, string>, body?: string }\n |' + Spacer_instance.toString() + 'export type Content<T> = { type:string, body:T }\n |' + Spacer_instance.toString() + 'export type Request<T> = { path: Record<string, unknown>, method: Method, query?: Record<string, unknown>, headers?: Record<string, unknown>, content?:Content<T> }\n |' + Spacer_instance.toString() + 'export type Response<T> = { status:number, headers?: Record<string, unknown>, content?:Content<T> }\n |' + Spacer_instance.toString() + 'export type Serialization = { serialize: <T>(type: T) => string; deserialize: <T>(raw: string | undefined) => T }\n |' + Spacer_instance.toString() + 'export type Client<REQ extends Request<unknown>, RES extends Response<unknown>> = (serialization: Serialization) => { to: (request: REQ) => RawRequest; from: (response: RawResponse) => RES }\n |' + Spacer_instance.toString() + 'export type Server<REQ extends Request<unknown>, RES extends Response<unknown>> = (serialization: Serialization) => { from: (request: RawRequest) => REQ; to: (response: RES) => RawResponse }\n |' + Spacer_instance.toString() + 'export type Api<REQ extends Request<unknown>, RES extends Response<unknown>> = { name: string; method: Method, path: string, client: Client<REQ, RES>; server: Server<REQ, RES> }\n |}\n ');
4899
+ this.f29_1 = 'community.flock.wirespec';
4900
+ this.g29_1 = trimMargin('\n |export namespace Wirespec {\n |' + Spacer_instance.toString() + 'export type Method = "GET" | "PUT" | "POST" | "DELETE" | "OPTIONS" | "HEAD" | "PATCH" | "TRACE"\n |' + Spacer_instance.toString() + 'export type RawRequest = { method: Method, path: string[], queries: Record<string, string>, headers: Record<string, string>, body?: string }\n |' + Spacer_instance.toString() + 'export type RawResponse = { status: number, headers: Record<string, string>, body?: string }\n |' + Spacer_instance.toString() + 'export type Content<T> = { type:string, body:T }\n |' + Spacer_instance.toString() + 'export type Request<T> = { path: Record<string, unknown>, method: Method, query?: Record<string, unknown>, headers?: Record<string, unknown>, content?:Content<T> }\n |' + Spacer_instance.toString() + 'export type Response<T> = { status:number, headers?: Record<string, unknown>, content?:Content<T> }\n |' + Spacer_instance.toString() + 'export type Serialization = { serialize: <T>(type: T) => string; deserialize: <T>(raw: string | undefined) => T }\n |' + Spacer_instance.toString() + 'export type Client<REQ extends Request<unknown>, RES extends Response<unknown>> = (serialization: Serialization) => { to: (request: REQ) => RawRequest; from: (response: RawResponse) => RES }\n |' + Spacer_instance.toString() + 'export type Server<REQ extends Request<unknown>, RES extends Response<unknown>> = (serialization: Serialization) => { from: (request: RawRequest) => REQ; to: (response: RES) => RawResponse }\n |' + Spacer_instance.toString() + 'export type Api<REQ extends Request<unknown>, RES extends Response<unknown>> = { name: string; method: Method, path: string, client: Client<REQ, RES>; server: Server<REQ, RES> }\n |}\n ');
3854
4901
  }
3855
- protoOf(TypeScriptShared).k29 = function () {
3856
- return this.t28_1;
4902
+ protoOf(TypeScriptShared).w29 = function () {
4903
+ return this.f29_1;
3857
4904
  };
3858
4905
  protoOf(TypeScriptShared).f1g = function () {
3859
- return this.u28_1;
4906
+ return this.g29_1;
3860
4907
  };
3861
4908
  protoOf(TypeScriptShared).toString = function () {
3862
4909
  return 'TypeScriptShared';
@@ -3878,14 +4925,14 @@ function TypeScriptShared_getInstance() {
3878
4925
  new TypeScriptShared();
3879
4926
  return TypeScriptShared_instance;
3880
4927
  }
3881
- function Companion_5() {
4928
+ function Companion_6() {
3882
4929
  }
3883
- var Companion_instance_6;
3884
- function Companion_getInstance_5() {
3885
- return Companion_instance_6;
4930
+ var Companion_instance_7;
4931
+ function Companion_getInstance_6() {
4932
+ return Companion_instance_7;
3886
4933
  }
3887
4934
  function WrongTokenException(expected, actual) {
3888
- EatTokenException.call(this, actual.r29_1, '' + expected.t9() + ' expected, not: ' + name(actual.q29_1) + ' at line ' + actual.r29_1.s29_1 + ' and position ' + (actual.r29_1.t29_1 - actual.p29_1.length | 0));
4935
+ EatTokenException.call(this, actual.f2a_1, '' + expected.t9() + ' expected, not: ' + name(actual.e2a_1) + ' at line ' + actual.f2a_1.g2a_1 + ' and position ' + (actual.f2a_1.h2a_1 - actual.d2a_1.length | 0));
3889
4936
  }
3890
4937
  function DefinitionNotExistsException(referenceName, coordinates) {
3891
4938
  EatTokenException.call(this, coordinates, 'Cannot find reference: ' + referenceName);
@@ -3912,11 +4959,11 @@ function ValidationError(coordinates, message) {
3912
4959
  WirespecException.call(this, message, coordinates);
3913
4960
  }
3914
4961
  function WirespecException(message, coordinates) {
3915
- this.v29_1 = message;
3916
- this.w29_1 = coordinates;
4962
+ this.j2a_1 = message;
4963
+ this.k2a_1 = coordinates;
3917
4964
  }
3918
- protoOf(WirespecException).g9 = function () {
3919
- return this.v29_1;
4965
+ protoOf(WirespecException).r1 = function () {
4966
+ return this.j2a_1;
3920
4967
  };
3921
4968
  function parseChannelDefinition(_this__u8e3s4, $this, comment, identifier) {
3922
4969
  // Inline function 'arrow.core.raise.either' call
@@ -3929,34 +4976,34 @@ function parseChannelDefinition(_this__u8e3s4, $this, comment, identifier) {
3929
4976
  try {
3930
4977
  // Inline function 'arrow.core.raise.either.<anonymous>' call
3931
4978
  // Inline function 'community.flock.wirespec.compiler.core.parse.ChannelParser.parseChannelDefinition.<anonymous>' call
3932
- raise.ll(_this__u8e3s4.c2a());
3933
- if (_this__u8e3s4.y29_1.q29_1 instanceof Arrow)
3934
- raise.ll(_this__u8e3s4.c2a());
4979
+ raise.ll(_this__u8e3s4.q2a());
4980
+ if (_this__u8e3s4.m2a_1.e2a_1 instanceof Arrow)
4981
+ raise.ll(_this__u8e3s4.q2a());
3935
4982
  else {
3936
4983
  // Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
3937
- var actual = _this__u8e3s4.y29_1;
4984
+ var actual = _this__u8e3s4.m2a_1;
3938
4985
  // Inline function 'kotlin.also' call
3939
4986
  var this_0 = new WrongTokenException(getKClass(Colon), actual);
3940
4987
  // Inline function 'community.flock.wirespec.compiler.core.parse.ChannelParser.parseChannelDefinition.<anonymous>.<anonymous>' call
3941
- raise.ll(_this__u8e3s4.c2a());
4988
+ raise.ll(_this__u8e3s4.q2a());
3942
4989
  raise.kl(this_0);
3943
4990
  }
3944
4991
  // Inline function 'kotlin.with' call
3945
4992
  // Inline function 'community.flock.wirespec.compiler.core.parse.ChannelParser.parseChannelDefinition.<anonymous>.<anonymous>' call
3946
- var type = _this__u8e3s4.y29_1.q29_1;
4993
+ var type = _this__u8e3s4.m2a_1.e2a_1;
3947
4994
  var tmp_0;
3948
4995
  if (type instanceof LeftCurly) {
3949
- tmp_0 = raise.ll(TypeParser_instance.e2a(_this__u8e3s4));
4996
+ tmp_0 = raise.ll(TypeParser_instance.s2a(_this__u8e3s4));
3950
4997
  } else {
3951
4998
  if (isInterface(type, WirespecType_0)) {
3952
- tmp_0 = raise.ll(TypeParser_instance.d2a(_this__u8e3s4, type));
4999
+ tmp_0 = raise.ll(TypeParser_instance.r2a(_this__u8e3s4, type));
3953
5000
  } else {
3954
5001
  // Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
3955
- var actual_0 = _this__u8e3s4.y29_1;
5002
+ var actual_0 = _this__u8e3s4.m2a_1;
3956
5003
  // Inline function 'kotlin.also' call
3957
5004
  var this_1 = new WrongTokenException(getKClass(WirespecType_0), actual_0);
3958
5005
  // Inline function 'community.flock.wirespec.compiler.core.parse.ChannelParser.parseChannelDefinition.<anonymous>.<anonymous>.<anonymous>' call
3959
- raise.ll(_this__u8e3s4.c2a());
5006
+ raise.ll(_this__u8e3s4.q2a());
3960
5007
  raise.kl(this_1);
3961
5008
  }
3962
5009
  }
@@ -3988,7 +5035,7 @@ function parseChannelDefinition(_this__u8e3s4, $this, comment, identifier) {
3988
5035
  }
3989
5036
  function ChannelParser() {
3990
5037
  }
3991
- protoOf(ChannelParser).f2a = function (_this__u8e3s4, comment) {
5038
+ protoOf(ChannelParser).t2a = function (_this__u8e3s4, comment) {
3992
5039
  // Inline function 'arrow.core.raise.either' call
3993
5040
  // Inline function 'arrow.core.raise.fold' call
3994
5041
  // Inline function 'kotlin.contracts.contract' call
@@ -3999,19 +5046,19 @@ protoOf(ChannelParser).f2a = function (_this__u8e3s4, comment) {
3999
5046
  try {
4000
5047
  // Inline function 'arrow.core.raise.either.<anonymous>' call
4001
5048
  // Inline function 'community.flock.wirespec.compiler.core.parse.ChannelParser.parseChannel.<anonymous>' call
4002
- raise.ll(_this__u8e3s4.c2a());
4003
- _this__u8e3s4.g2a(_this__u8e3s4.y29_1);
4004
- var tmp0_subject = _this__u8e3s4.y29_1.q29_1;
5049
+ raise.ll(_this__u8e3s4.q2a());
5050
+ _this__u8e3s4.u2a(_this__u8e3s4.m2a_1);
5051
+ var tmp0_subject = _this__u8e3s4.m2a_1.e2a_1;
4005
5052
  var tmp_0;
4006
5053
  if (isInterface(tmp0_subject, WirespecType_0)) {
4007
- tmp_0 = raise.ll(parseChannelDefinition(_this__u8e3s4, ChannelParser_instance, comment, new DefinitionIdentifier(_this__u8e3s4.y29_1.p29_1)));
5054
+ tmp_0 = raise.ll(parseChannelDefinition(_this__u8e3s4, ChannelParser_instance, comment, new DefinitionIdentifier(_this__u8e3s4.m2a_1.d2a_1)));
4008
5055
  } else {
4009
5056
  // Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
4010
- var actual = _this__u8e3s4.y29_1;
5057
+ var actual = _this__u8e3s4.m2a_1;
4011
5058
  // Inline function 'kotlin.also' call
4012
5059
  var this_0 = new WrongTokenException(getKClass(WirespecType_0), actual);
4013
5060
  // Inline function 'community.flock.wirespec.compiler.core.parse.ChannelParser.parseChannel.<anonymous>.<anonymous>' call
4014
- raise.ll(_this__u8e3s4.c2a());
5061
+ raise.ll(_this__u8e3s4.q2a());
4015
5062
  raise.kl(this_0);
4016
5063
  }
4017
5064
  var res = tmp_0;
@@ -4054,31 +5101,31 @@ function parseEndpointDefinition(_this__u8e3s4, $this, comment, name) {
4054
5101
  try {
4055
5102
  // Inline function 'arrow.core.raise.either.<anonymous>' call
4056
5103
  // Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointDefinition.<anonymous>' call
4057
- raise.ll(_this__u8e3s4.c2a());
4058
- _this__u8e3s4.g2a(_this__u8e3s4.y29_1);
5104
+ raise.ll(_this__u8e3s4.q2a());
5105
+ _this__u8e3s4.u2a(_this__u8e3s4.m2a_1);
4059
5106
  var tmp_0;
4060
- if (_this__u8e3s4.y29_1.q29_1 instanceof Method_0) {
4061
- tmp_0 = valueOf(_this__u8e3s4.y29_1.p29_1);
5107
+ if (_this__u8e3s4.m2a_1.e2a_1 instanceof Method_0) {
5108
+ tmp_0 = valueOf(_this__u8e3s4.m2a_1.d2a_1);
4062
5109
  } else {
4063
5110
  // Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
4064
- var actual = _this__u8e3s4.y29_1;
5111
+ var actual = _this__u8e3s4.m2a_1;
4065
5112
  var tmp$ret$0 = new WrongTokenException(getKClass(Method_0), actual);
4066
5113
  raise.kl(tmp$ret$0);
4067
5114
  }
4068
5115
  // Inline function 'kotlin.also' call
4069
5116
  var this_0 = tmp_0;
4070
5117
  // Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointDefinition.<anonymous>.<anonymous>' call
4071
- raise.ll(_this__u8e3s4.c2a());
5118
+ raise.ll(_this__u8e3s4.q2a());
4072
5119
  var method = this_0;
4073
5120
  // Inline function 'kotlin.with' call
4074
5121
  // Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointDefinition.<anonymous>.<anonymous>' call
4075
- var type = _this__u8e3s4.y29_1.q29_1;
5122
+ var type = _this__u8e3s4.m2a_1.e2a_1;
4076
5123
  var tmp_1;
4077
5124
  if (type instanceof LeftCurly) {
4078
- tmp_1 = raise.ll(TypeParser_instance.e2a(_this__u8e3s4));
5125
+ tmp_1 = raise.ll(TypeParser_instance.s2a(_this__u8e3s4));
4079
5126
  } else {
4080
5127
  if (isInterface(type, WirespecType_0)) {
4081
- tmp_1 = raise.ll(TypeParser_instance.d2a(_this__u8e3s4, type));
5128
+ tmp_1 = raise.ll(TypeParser_instance.r2a(_this__u8e3s4, type));
4082
5129
  } else {
4083
5130
  tmp_1 = null;
4084
5131
  }
@@ -4111,15 +5158,15 @@ function parseEndpointDefinition(_this__u8e3s4, $this, comment, name) {
4111
5158
  $l$loop: while (true) {
4112
5159
  var tmp_3;
4113
5160
  var tmp_4;
4114
- var tmp_5 = _this__u8e3s4.y29_1.q29_1;
5161
+ var tmp_5 = _this__u8e3s4.m2a_1.e2a_1;
4115
5162
  if (!(tmp_5 instanceof QuestionMark)) {
4116
- var tmp_6 = _this__u8e3s4.y29_1.q29_1;
5163
+ var tmp_6 = _this__u8e3s4.m2a_1.e2a_1;
4117
5164
  tmp_4 = !(tmp_6 instanceof Hash);
4118
5165
  } else {
4119
5166
  tmp_4 = false;
4120
5167
  }
4121
5168
  if (tmp_4) {
4122
- var tmp_7 = _this__u8e3s4.y29_1.q29_1;
5169
+ var tmp_7 = _this__u8e3s4.m2a_1.e2a_1;
4123
5170
  tmp_3 = !(tmp_7 instanceof Arrow);
4124
5171
  } else {
4125
5172
  tmp_3 = false;
@@ -4131,16 +5178,16 @@ function parseEndpointDefinition(_this__u8e3s4, $this, comment, name) {
4131
5178
  }
4132
5179
  var segments = this_2;
4133
5180
  var tmp_8;
4134
- if (_this__u8e3s4.y29_1.q29_1 instanceof QuestionMark) {
4135
- raise.ll(_this__u8e3s4.c2a());
5181
+ if (_this__u8e3s4.m2a_1.e2a_1 instanceof QuestionMark) {
5182
+ raise.ll(_this__u8e3s4.q2a());
4136
5183
  var tmp_9;
4137
- if (_this__u8e3s4.y29_1.q29_1 instanceof LeftCurly) {
5184
+ if (_this__u8e3s4.m2a_1.e2a_1 instanceof LeftCurly) {
4138
5185
  // Inline function 'kotlin.with' call
4139
5186
  // Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointDefinition.<anonymous>.<anonymous>' call
4140
- tmp_9 = raise.ll(TypeParser_instance.h2a(_this__u8e3s4)).g27_1;
5187
+ tmp_9 = raise.ll(TypeParser_instance.v2a(_this__u8e3s4)).g27_1;
4141
5188
  } else {
4142
5189
  // Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
4143
- var actual_0 = _this__u8e3s4.y29_1;
5190
+ var actual_0 = _this__u8e3s4.m2a_1;
4144
5191
  var tmp$ret$13 = new WrongTokenException(getKClass(LeftCurly), actual_0);
4145
5192
  raise.kl(tmp$ret$13);
4146
5193
  }
@@ -4150,23 +5197,23 @@ function parseEndpointDefinition(_this__u8e3s4, $this, comment, name) {
4150
5197
  }
4151
5198
  var queryParams = tmp_8;
4152
5199
  var headers = raise.ll(parseHeaders(_this__u8e3s4, EndpointParser_instance));
4153
- if (_this__u8e3s4.y29_1.q29_1 instanceof Arrow)
4154
- raise.ll(_this__u8e3s4.c2a());
5200
+ if (_this__u8e3s4.m2a_1.e2a_1 instanceof Arrow)
5201
+ raise.ll(_this__u8e3s4.q2a());
4155
5202
  else {
4156
5203
  // Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
4157
- var actual_1 = _this__u8e3s4.y29_1;
5204
+ var actual_1 = _this__u8e3s4.m2a_1;
4158
5205
  var tmp$ret$14 = new WrongTokenException(getKClass(Arrow), actual_1);
4159
5206
  raise.kl(tmp$ret$14);
4160
5207
  }
4161
- if (!(_this__u8e3s4.y29_1.q29_1 instanceof LeftCurly)) {
5208
+ if (!(_this__u8e3s4.m2a_1.e2a_1 instanceof LeftCurly)) {
4162
5209
  // Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
4163
- var actual_2 = _this__u8e3s4.y29_1;
5210
+ var actual_2 = _this__u8e3s4.m2a_1;
4164
5211
  var tmp$ret$15 = new WrongTokenException(getKClass(LeftCurly), actual_2);
4165
5212
  raise.kl(tmp$ret$15);
4166
5213
  }
4167
5214
  // Inline function 'kotlin.also' call
4168
5215
  // Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointDefinition.<anonymous>.<anonymous>' call
4169
- raise.ll(_this__u8e3s4.c2a());
5216
+ raise.ll(_this__u8e3s4.q2a());
4170
5217
  var responses = raise.ll(parseEndpointResponses(_this__u8e3s4, EndpointParser_instance));
4171
5218
  var res = new Endpoint(comment, name, method, segments, queryParams, headers, emptyList(), requests, responses);
4172
5219
  raise.il();
@@ -4204,21 +5251,21 @@ function parseEndpointSegments(_this__u8e3s4, $this) {
4204
5251
  try {
4205
5252
  // Inline function 'arrow.core.raise.either.<anonymous>' call
4206
5253
  // Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointSegments.<anonymous>' call
4207
- _this__u8e3s4.g2a(_this__u8e3s4.y29_1);
4208
- var tmp0_subject = _this__u8e3s4.y29_1.q29_1;
5254
+ _this__u8e3s4.u2a(_this__u8e3s4.m2a_1);
5255
+ var tmp0_subject = _this__u8e3s4.m2a_1.e2a_1;
4209
5256
  var tmp_0;
4210
5257
  if (tmp0_subject instanceof Path) {
4211
5258
  // Inline function 'kotlin.also' call
4212
- var this_0 = new Literal(drop(_this__u8e3s4.y29_1.p29_1, 1));
5259
+ var this_0 = new Literal(drop(_this__u8e3s4.m2a_1.d2a_1, 1));
4213
5260
  // Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointSegments.<anonymous>.<anonymous>' call
4214
- raise.ll(_this__u8e3s4.c2a());
5261
+ raise.ll(_this__u8e3s4.q2a());
4215
5262
  tmp_0 = this_0;
4216
5263
  } else {
4217
5264
  if (tmp0_subject instanceof ForwardSlash) {
4218
5265
  tmp_0 = raise.ll(parseEndpointSegmentParam(_this__u8e3s4, EndpointParser_instance));
4219
5266
  } else {
4220
5267
  // Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
4221
- var actual = _this__u8e3s4.y29_1;
5268
+ var actual = _this__u8e3s4.m2a_1;
4222
5269
  var tmp$ret$1 = new WrongTokenException(getKClass(Path), actual);
4223
5270
  raise.kl(tmp$ret$1);
4224
5271
  }
@@ -4259,64 +5306,64 @@ function parseEndpointSegmentParam(_this__u8e3s4, $this) {
4259
5306
  try {
4260
5307
  // Inline function 'arrow.core.raise.either.<anonymous>' call
4261
5308
  // Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointSegmentParam.<anonymous>' call
4262
- raise.ll(_this__u8e3s4.c2a());
4263
- _this__u8e3s4.g2a(_this__u8e3s4.y29_1);
4264
- if (_this__u8e3s4.y29_1.q29_1 instanceof LeftCurly)
4265
- raise.ll(_this__u8e3s4.c2a());
5309
+ raise.ll(_this__u8e3s4.q2a());
5310
+ _this__u8e3s4.u2a(_this__u8e3s4.m2a_1);
5311
+ if (_this__u8e3s4.m2a_1.e2a_1 instanceof LeftCurly)
5312
+ raise.ll(_this__u8e3s4.q2a());
4266
5313
  else {
4267
5314
  // Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
4268
- var actual = _this__u8e3s4.y29_1;
5315
+ var actual = _this__u8e3s4.m2a_1;
4269
5316
  var tmp$ret$0 = new WrongTokenException(getKClass(LeftCurly), actual);
4270
5317
  raise.kl(tmp$ret$0);
4271
5318
  }
4272
- var tmp1_subject = _this__u8e3s4.y29_1.q29_1;
5319
+ var tmp1_subject = _this__u8e3s4.m2a_1.e2a_1;
4273
5320
  var tmp_0;
4274
5321
  if (isInterface(tmp1_subject, WirespecIdentifier)) {
4275
5322
  // Inline function 'kotlin.also' call
4276
- var this_0 = new FieldIdentifier(_this__u8e3s4.y29_1.p29_1);
5323
+ var this_0 = new FieldIdentifier(_this__u8e3s4.m2a_1.d2a_1);
4277
5324
  // Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointSegmentParam.<anonymous>.<anonymous>' call
4278
- raise.ll(_this__u8e3s4.c2a());
5325
+ raise.ll(_this__u8e3s4.q2a());
4279
5326
  tmp_0 = this_0;
4280
5327
  } else {
4281
5328
  // Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
4282
- var actual_0 = _this__u8e3s4.y29_1;
5329
+ var actual_0 = _this__u8e3s4.m2a_1;
4283
5330
  var tmp$ret$2 = new WrongTokenException(getKClass(WirespecIdentifier), actual_0);
4284
5331
  raise.kl(tmp$ret$2);
4285
5332
  }
4286
5333
  var identifier = tmp_0;
4287
- if (_this__u8e3s4.y29_1.q29_1 instanceof Colon)
4288
- raise.ll(_this__u8e3s4.c2a());
5334
+ if (_this__u8e3s4.m2a_1.e2a_1 instanceof Colon)
5335
+ raise.ll(_this__u8e3s4.q2a());
4289
5336
  else {
4290
5337
  // Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
4291
- var actual_1 = _this__u8e3s4.y29_1;
5338
+ var actual_1 = _this__u8e3s4.m2a_1;
4292
5339
  var tmp$ret$3 = new WrongTokenException(getKClass(Colon), actual_1);
4293
5340
  raise.kl(tmp$ret$3);
4294
5341
  }
4295
5342
  // Inline function 'kotlin.with' call
4296
5343
  // Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointSegmentParam.<anonymous>.<anonymous>' call
4297
- var type = _this__u8e3s4.y29_1.q29_1;
5344
+ var type = _this__u8e3s4.m2a_1.e2a_1;
4298
5345
  var tmp_1;
4299
5346
  if (type instanceof LeftCurly) {
4300
- tmp_1 = raise.ll(TypeParser_instance.e2a(_this__u8e3s4));
5347
+ tmp_1 = raise.ll(TypeParser_instance.s2a(_this__u8e3s4));
4301
5348
  } else {
4302
5349
  if (isInterface(type, WirespecType_0)) {
4303
- tmp_1 = raise.ll(TypeParser_instance.d2a(_this__u8e3s4, type));
5350
+ tmp_1 = raise.ll(TypeParser_instance.r2a(_this__u8e3s4, type));
4304
5351
  } else {
4305
5352
  // Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
4306
- var actual_2 = _this__u8e3s4.y29_1;
5353
+ var actual_2 = _this__u8e3s4.m2a_1;
4307
5354
  // Inline function 'kotlin.also' call
4308
5355
  var this_1 = new WrongTokenException(getKClass(WirespecType_0), actual_2);
4309
5356
  // Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointSegmentParam.<anonymous>.<anonymous>.<anonymous>' call
4310
- raise.ll(_this__u8e3s4.c2a());
5357
+ raise.ll(_this__u8e3s4.q2a());
4311
5358
  raise.kl(this_1);
4312
5359
  }
4313
5360
  }
4314
5361
  var reference = tmp_1;
4315
- if (_this__u8e3s4.y29_1.q29_1 instanceof RightCurly)
4316
- raise.ll(_this__u8e3s4.c2a());
5362
+ if (_this__u8e3s4.m2a_1.e2a_1 instanceof RightCurly)
5363
+ raise.ll(_this__u8e3s4.q2a());
4317
5364
  else {
4318
5365
  // Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
4319
- var actual_3 = _this__u8e3s4.y29_1;
5366
+ var actual_3 = _this__u8e3s4.m2a_1;
4320
5367
  var tmp$ret$8 = new WrongTokenException(getKClass(RightCurly), actual_3);
4321
5368
  raise.kl(tmp$ret$8);
4322
5369
  }
@@ -4356,32 +5403,32 @@ function parseEndpointResponses(_this__u8e3s4, $this) {
4356
5403
  try {
4357
5404
  // Inline function 'arrow.core.raise.either.<anonymous>' call
4358
5405
  // Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointResponses.<anonymous>' call
4359
- _this__u8e3s4.g2a(_this__u8e3s4.y29_1);
5406
+ _this__u8e3s4.u2a(_this__u8e3s4.m2a_1);
4360
5407
  // Inline function 'kotlin.collections.mutableListOf' call
4361
5408
  var responses = ArrayList_init_$Create$_0();
4362
5409
  $l$loop: while (true) {
4363
- var tmp_0 = _this__u8e3s4.y29_1.q29_1;
5410
+ var tmp_0 = _this__u8e3s4.m2a_1.e2a_1;
4364
5411
  if (!!(tmp_0 instanceof RightCurly)) {
4365
5412
  break $l$loop;
4366
5413
  }
4367
- if (_this__u8e3s4.y29_1.q29_1 instanceof StatusCode)
4368
- responses.e(raise.ll(parseEndpointResponse(_this__u8e3s4, EndpointParser_instance, _this__u8e3s4.y29_1.p29_1)));
5414
+ if (_this__u8e3s4.m2a_1.e2a_1 instanceof StatusCode)
5415
+ responses.e(raise.ll(parseEndpointResponse(_this__u8e3s4, EndpointParser_instance, _this__u8e3s4.m2a_1.d2a_1)));
4369
5416
  else {
4370
5417
  // Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
4371
- var actual = _this__u8e3s4.y29_1;
5418
+ var actual = _this__u8e3s4.m2a_1;
4372
5419
  var tmp$ret$1 = new WrongTokenException(getKClass(StatusCode), actual);
4373
5420
  raise.kl(tmp$ret$1);
4374
5421
  }
4375
5422
  }
4376
- if (!(_this__u8e3s4.y29_1.q29_1 instanceof RightCurly)) {
5423
+ if (!(_this__u8e3s4.m2a_1.e2a_1 instanceof RightCurly)) {
4377
5424
  // Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
4378
- var actual_0 = _this__u8e3s4.y29_1;
5425
+ var actual_0 = _this__u8e3s4.m2a_1;
4379
5426
  var tmp$ret$2 = new WrongTokenException(getKClass(RightCurly), actual_0);
4380
5427
  raise.kl(tmp$ret$2);
4381
5428
  }
4382
5429
  // Inline function 'kotlin.also' call
4383
5430
  // Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointResponses.<anonymous>.<anonymous>' call
4384
- raise.ll(_this__u8e3s4.c2a());
5431
+ raise.ll(_this__u8e3s4.q2a());
4385
5432
  var res = toList(responses);
4386
5433
  raise.il();
4387
5434
  // Inline function 'arrow.core.raise.either.<anonymous>' call
@@ -4418,32 +5465,32 @@ function parseEndpointResponse(_this__u8e3s4, $this, statusCode) {
4418
5465
  try {
4419
5466
  // Inline function 'arrow.core.raise.either.<anonymous>' call
4420
5467
  // Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointResponse.<anonymous>' call
4421
- raise.ll(_this__u8e3s4.c2a());
4422
- _this__u8e3s4.g2a(_this__u8e3s4.y29_1);
4423
- if (!(_this__u8e3s4.y29_1.q29_1 instanceof Arrow)) {
5468
+ raise.ll(_this__u8e3s4.q2a());
5469
+ _this__u8e3s4.u2a(_this__u8e3s4.m2a_1);
5470
+ if (!(_this__u8e3s4.m2a_1.e2a_1 instanceof Arrow)) {
4424
5471
  // Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
4425
- var actual = _this__u8e3s4.y29_1;
5472
+ var actual = _this__u8e3s4.m2a_1;
4426
5473
  var tmp$ret$0 = new WrongTokenException(getKClass(Arrow), actual);
4427
5474
  raise.kl(tmp$ret$0);
4428
5475
  }
4429
- raise.ll(_this__u8e3s4.c2a());
4430
- _this__u8e3s4.g2a(_this__u8e3s4.y29_1);
5476
+ raise.ll(_this__u8e3s4.q2a());
5477
+ _this__u8e3s4.u2a(_this__u8e3s4.m2a_1);
4431
5478
  // Inline function 'kotlin.with' call
4432
5479
  // Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointResponse.<anonymous>.<anonymous>' call
4433
- var type = _this__u8e3s4.y29_1.q29_1;
5480
+ var type = _this__u8e3s4.m2a_1.e2a_1;
4434
5481
  var tmp_0;
4435
5482
  if (type instanceof LeftCurly) {
4436
- tmp_0 = raise.ll(TypeParser_instance.e2a(_this__u8e3s4));
5483
+ tmp_0 = raise.ll(TypeParser_instance.s2a(_this__u8e3s4));
4437
5484
  } else {
4438
5485
  if (isInterface(type, WirespecType_0)) {
4439
- tmp_0 = raise.ll(TypeParser_instance.d2a(_this__u8e3s4, type));
5486
+ tmp_0 = raise.ll(TypeParser_instance.r2a(_this__u8e3s4, type));
4440
5487
  } else {
4441
5488
  // Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
4442
- var actual_0 = _this__u8e3s4.y29_1;
5489
+ var actual_0 = _this__u8e3s4.m2a_1;
4443
5490
  // Inline function 'kotlin.also' call
4444
5491
  var this_0 = new WrongTokenException(getKClass(WirespecType_0), actual_0);
4445
5492
  // Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointResponse.<anonymous>.<anonymous>.<anonymous>' call
4446
- raise.ll(_this__u8e3s4.c2a());
5493
+ raise.ll(_this__u8e3s4.q2a());
4447
5494
  raise.kl(this_0);
4448
5495
  }
4449
5496
  }
@@ -4492,18 +5539,18 @@ function parseHeaders(_this__u8e3s4, $this) {
4492
5539
  try {
4493
5540
  // Inline function 'arrow.core.raise.either.<anonymous>' call
4494
5541
  // Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseHeaders.<anonymous>' call
4495
- _this__u8e3s4.g2a(_this__u8e3s4.y29_1);
5542
+ _this__u8e3s4.u2a(_this__u8e3s4.m2a_1);
4496
5543
  var tmp_0;
4497
- if (_this__u8e3s4.y29_1.q29_1 instanceof Hash) {
4498
- raise.ll(_this__u8e3s4.c2a());
5544
+ if (_this__u8e3s4.m2a_1.e2a_1 instanceof Hash) {
5545
+ raise.ll(_this__u8e3s4.q2a());
4499
5546
  var tmp_1;
4500
- if (_this__u8e3s4.y29_1.q29_1 instanceof LeftCurly) {
5547
+ if (_this__u8e3s4.m2a_1.e2a_1 instanceof LeftCurly) {
4501
5548
  // Inline function 'kotlin.with' call
4502
5549
  // Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseHeaders.<anonymous>.<anonymous>' call
4503
- tmp_1 = raise.ll(TypeParser_instance.h2a(_this__u8e3s4)).g27_1;
5550
+ tmp_1 = raise.ll(TypeParser_instance.v2a(_this__u8e3s4)).g27_1;
4504
5551
  } else {
4505
5552
  // Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
4506
- var actual = _this__u8e3s4.y29_1;
5553
+ var actual = _this__u8e3s4.m2a_1;
4507
5554
  var tmp$ret$2 = new WrongTokenException(getKClass(LeftCurly), actual);
4508
5555
  raise.kl(tmp$ret$2);
4509
5556
  }
@@ -4538,7 +5585,7 @@ function parseHeaders(_this__u8e3s4, $this) {
4538
5585
  }
4539
5586
  function EndpointParser() {
4540
5587
  }
4541
- protoOf(EndpointParser).i2a = function (_this__u8e3s4, comment) {
5588
+ protoOf(EndpointParser).w2a = function (_this__u8e3s4, comment) {
4542
5589
  // Inline function 'arrow.core.raise.either' call
4543
5590
  // Inline function 'arrow.core.raise.fold' call
4544
5591
  // Inline function 'kotlin.contracts.contract' call
@@ -4549,19 +5596,19 @@ protoOf(EndpointParser).i2a = function (_this__u8e3s4, comment) {
4549
5596
  try {
4550
5597
  // Inline function 'arrow.core.raise.either.<anonymous>' call
4551
5598
  // Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpoint.<anonymous>' call
4552
- raise.ll(_this__u8e3s4.c2a());
4553
- _this__u8e3s4.g2a(_this__u8e3s4.y29_1);
4554
- var tmp0_subject = _this__u8e3s4.y29_1.q29_1;
5599
+ raise.ll(_this__u8e3s4.q2a());
5600
+ _this__u8e3s4.u2a(_this__u8e3s4.m2a_1);
5601
+ var tmp0_subject = _this__u8e3s4.m2a_1.e2a_1;
4555
5602
  var tmp_0;
4556
5603
  if (isInterface(tmp0_subject, WirespecType_0)) {
4557
- tmp_0 = raise.ll(parseEndpointDefinition(_this__u8e3s4, EndpointParser_instance, comment, new DefinitionIdentifier(_this__u8e3s4.y29_1.p29_1)));
5604
+ tmp_0 = raise.ll(parseEndpointDefinition(_this__u8e3s4, EndpointParser_instance, comment, new DefinitionIdentifier(_this__u8e3s4.m2a_1.d2a_1)));
4558
5605
  } else {
4559
5606
  // Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
4560
- var actual = _this__u8e3s4.y29_1;
5607
+ var actual = _this__u8e3s4.m2a_1;
4561
5608
  // Inline function 'kotlin.also' call
4562
5609
  var this_0 = new WrongTokenException(getKClass(WirespecType_0), actual);
4563
5610
  // Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpoint.<anonymous>.<anonymous>' call
4564
- raise.ll(_this__u8e3s4.c2a());
5611
+ raise.ll(_this__u8e3s4.q2a());
4565
5612
  raise.kl(this_0);
4566
5613
  }
4567
5614
  var res = tmp_0;
@@ -4604,32 +5651,32 @@ function parseEnumTypeDefinition(_this__u8e3s4, $this, comment, typeName) {
4604
5651
  try {
4605
5652
  // Inline function 'arrow.core.raise.either.<anonymous>' call
4606
5653
  // Inline function 'community.flock.wirespec.compiler.core.parse.EnumParser.parseEnumTypeDefinition.<anonymous>' call
4607
- raise.ll(_this__u8e3s4.c2a());
4608
- _this__u8e3s4.g2a(_this__u8e3s4.y29_1);
5654
+ raise.ll(_this__u8e3s4.q2a());
5655
+ _this__u8e3s4.u2a(_this__u8e3s4.m2a_1);
4609
5656
  var tmp_0;
4610
- if (_this__u8e3s4.y29_1.q29_1 instanceof LeftCurly) {
5657
+ if (_this__u8e3s4.m2a_1.e2a_1 instanceof LeftCurly) {
4611
5658
  tmp_0 = new Enum_0(comment, typeName, raise.ll(parseEnumTypeEntries(_this__u8e3s4, EnumParser_instance)));
4612
5659
  } else {
4613
5660
  // Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
4614
- var actual = _this__u8e3s4.y29_1;
5661
+ var actual = _this__u8e3s4.m2a_1;
4615
5662
  // Inline function 'kotlin.also' call
4616
5663
  var this_0 = new WrongTokenException(getKClass(LeftCurly), actual);
4617
5664
  // Inline function 'community.flock.wirespec.compiler.core.parse.EnumParser.parseEnumTypeDefinition.<anonymous>.<anonymous>' call
4618
- raise.ll(_this__u8e3s4.c2a());
5665
+ raise.ll(_this__u8e3s4.q2a());
4619
5666
  raise.kl(this_0);
4620
5667
  }
4621
5668
  // Inline function 'kotlin.also' call
4622
5669
  var this_1 = tmp_0;
4623
5670
  // Inline function 'community.flock.wirespec.compiler.core.parse.EnumParser.parseEnumTypeDefinition.<anonymous>.<anonymous>' call
4624
- if (_this__u8e3s4.y29_1.q29_1 instanceof RightCurly)
4625
- raise.ll(_this__u8e3s4.c2a());
5671
+ if (_this__u8e3s4.m2a_1.e2a_1 instanceof RightCurly)
5672
+ raise.ll(_this__u8e3s4.q2a());
4626
5673
  else {
4627
5674
  // Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
4628
- var actual_0 = _this__u8e3s4.y29_1;
5675
+ var actual_0 = _this__u8e3s4.m2a_1;
4629
5676
  // Inline function 'kotlin.also' call
4630
5677
  var this_2 = new WrongTokenException(getKClass(RightCurly), actual_0);
4631
5678
  // Inline function 'community.flock.wirespec.compiler.core.parse.EnumParser.parseEnumTypeDefinition.<anonymous>.<anonymous>.<anonymous>' call
4632
- raise.ll(_this__u8e3s4.c2a());
5679
+ raise.ll(_this__u8e3s4.q2a());
4633
5680
  raise.kl(this_2);
4634
5681
  }
4635
5682
  var res = this_1;
@@ -4668,43 +5715,43 @@ function parseEnumTypeEntries(_this__u8e3s4, $this) {
4668
5715
  try {
4669
5716
  // Inline function 'arrow.core.raise.either.<anonymous>' call
4670
5717
  // Inline function 'community.flock.wirespec.compiler.core.parse.EnumParser.parseEnumTypeEntries.<anonymous>' call
4671
- raise.ll(_this__u8e3s4.c2a());
4672
- _this__u8e3s4.g2a(_this__u8e3s4.y29_1);
4673
- var tmp0_subject = _this__u8e3s4.y29_1.q29_1;
5718
+ raise.ll(_this__u8e3s4.q2a());
5719
+ _this__u8e3s4.u2a(_this__u8e3s4.m2a_1);
5720
+ var tmp0_subject = _this__u8e3s4.m2a_1.e2a_1;
4674
5721
  var tmp_0;
4675
5722
  if (isInterface(tmp0_subject, WirespecType_0)) {
4676
5723
  // Inline function 'kotlin.collections.mutableListOf' call
4677
5724
  // Inline function 'kotlin.apply' call
4678
5725
  var this_0 = ArrayList_init_$Create$_0();
4679
5726
  // Inline function 'community.flock.wirespec.compiler.core.parse.EnumParser.parseEnumTypeEntries.<anonymous>.<anonymous>' call
4680
- this_0.e(_this__u8e3s4.y29_1.p29_1);
4681
- raise.ll(_this__u8e3s4.c2a());
4682
- while (equals(_this__u8e3s4.y29_1.q29_1, Comma_instance)) {
4683
- raise.ll(_this__u8e3s4.c2a());
4684
- var tmp0_subject_0 = _this__u8e3s4.y29_1.q29_1;
5727
+ this_0.e(_this__u8e3s4.m2a_1.d2a_1);
5728
+ raise.ll(_this__u8e3s4.q2a());
5729
+ while (equals(_this__u8e3s4.m2a_1.e2a_1, Comma_instance)) {
5730
+ raise.ll(_this__u8e3s4.q2a());
5731
+ var tmp0_subject_0 = _this__u8e3s4.m2a_1.e2a_1;
4685
5732
  if (isInterface(tmp0_subject_0, WirespecType_0)) {
4686
5733
  // Inline function 'kotlin.also' call
4687
- this_0.e(_this__u8e3s4.y29_1.p29_1);
5734
+ this_0.e(_this__u8e3s4.m2a_1.d2a_1);
4688
5735
  // Inline function 'community.flock.wirespec.compiler.core.parse.EnumParser.parseEnumTypeEntries.<anonymous>.<anonymous>.<anonymous>' call
4689
- raise.ll(_this__u8e3s4.c2a());
5736
+ raise.ll(_this__u8e3s4.q2a());
4690
5737
  } else {
4691
5738
  // Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
4692
- var actual = _this__u8e3s4.y29_1;
5739
+ var actual = _this__u8e3s4.m2a_1;
4693
5740
  // Inline function 'kotlin.also' call
4694
5741
  var this_1 = new WrongTokenException(getKClass(WirespecType_0), actual);
4695
5742
  // Inline function 'community.flock.wirespec.compiler.core.parse.EnumParser.parseEnumTypeEntries.<anonymous>.<anonymous>.<anonymous>' call
4696
- raise.ll(_this__u8e3s4.c2a());
5743
+ raise.ll(_this__u8e3s4.q2a());
4697
5744
  raise.kl(this_1);
4698
5745
  }
4699
5746
  }
4700
5747
  tmp_0 = this_0;
4701
5748
  } else {
4702
5749
  // Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
4703
- var actual_0 = _this__u8e3s4.y29_1;
5750
+ var actual_0 = _this__u8e3s4.m2a_1;
4704
5751
  // Inline function 'kotlin.also' call
4705
5752
  var this_2 = new WrongTokenException(getKClass(WirespecType_0), actual_0);
4706
5753
  // Inline function 'community.flock.wirespec.compiler.core.parse.EnumParser.parseEnumTypeEntries.<anonymous>.<anonymous>' call
4707
- raise.ll(_this__u8e3s4.c2a());
5754
+ raise.ll(_this__u8e3s4.q2a());
4708
5755
  raise.kl(this_2);
4709
5756
  }
4710
5757
  var res = toSet(tmp_0);
@@ -4734,7 +5781,7 @@ function parseEnumTypeEntries(_this__u8e3s4, $this) {
4734
5781
  }
4735
5782
  function EnumParser() {
4736
5783
  }
4737
- protoOf(EnumParser).j2a = function (_this__u8e3s4, comment) {
5784
+ protoOf(EnumParser).x2a = function (_this__u8e3s4, comment) {
4738
5785
  // Inline function 'arrow.core.raise.either' call
4739
5786
  // Inline function 'arrow.core.raise.fold' call
4740
5787
  // Inline function 'kotlin.contracts.contract' call
@@ -4745,19 +5792,19 @@ protoOf(EnumParser).j2a = function (_this__u8e3s4, comment) {
4745
5792
  try {
4746
5793
  // Inline function 'arrow.core.raise.either.<anonymous>' call
4747
5794
  // Inline function 'community.flock.wirespec.compiler.core.parse.EnumParser.parseEnum.<anonymous>' call
4748
- raise.ll(_this__u8e3s4.c2a());
4749
- _this__u8e3s4.g2a(_this__u8e3s4.y29_1);
4750
- var tmp0_subject = _this__u8e3s4.y29_1.q29_1;
5795
+ raise.ll(_this__u8e3s4.q2a());
5796
+ _this__u8e3s4.u2a(_this__u8e3s4.m2a_1);
5797
+ var tmp0_subject = _this__u8e3s4.m2a_1.e2a_1;
4751
5798
  var tmp_0;
4752
5799
  if (isInterface(tmp0_subject, WirespecType_0)) {
4753
- tmp_0 = raise.ll(parseEnumTypeDefinition(_this__u8e3s4, EnumParser_instance, comment, new DefinitionIdentifier(_this__u8e3s4.y29_1.p29_1)));
5800
+ tmp_0 = raise.ll(parseEnumTypeDefinition(_this__u8e3s4, EnumParser_instance, comment, new DefinitionIdentifier(_this__u8e3s4.m2a_1.d2a_1)));
4754
5801
  } else {
4755
5802
  // Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
4756
- var actual = _this__u8e3s4.y29_1;
5803
+ var actual = _this__u8e3s4.m2a_1;
4757
5804
  // Inline function 'kotlin.also' call
4758
5805
  var this_0 = new WrongTokenException(getKClass(WirespecType_0), actual);
4759
5806
  // Inline function 'community.flock.wirespec.compiler.core.parse.EnumParser.parseEnum.<anonymous>.<anonymous>' call
4760
- raise.ll(_this__u8e3s4.c2a());
5807
+ raise.ll(_this__u8e3s4.q2a());
4761
5808
  raise.kl(this_0);
4762
5809
  }
4763
5810
  var res = tmp_0;
@@ -4789,12 +5836,18 @@ var EnumParser_instance;
4789
5836
  function EnumParser_getInstance() {
4790
5837
  return EnumParser_instance;
4791
5838
  }
4792
- function Definition() {
4793
- }
4794
5839
  function Module(uri, statements) {
4795
5840
  this.e27_1 = uri;
4796
5841
  this.f27_1 = statements;
4797
5842
  }
5843
+ protoOf(Module).y2a = function (uri, statements) {
5844
+ return new Module(uri, statements);
5845
+ };
5846
+ protoOf(Module).r28 = function (uri, statements, $super) {
5847
+ uri = uri === VOID ? this.e27_1 : uri;
5848
+ statements = statements === VOID ? this.f27_1 : statements;
5849
+ return $super === VOID ? this.y2a(uri, statements) : $super.y2a.call(this, uri, statements);
5850
+ };
4798
5851
  protoOf(Module).toString = function () {
4799
5852
  return 'Module(uri=' + this.e27_1 + ', statements=' + this.f27_1.toString() + ')';
4800
5853
  };
@@ -4816,13 +5869,13 @@ protoOf(Module).equals = function (other) {
4816
5869
  return true;
4817
5870
  };
4818
5871
  function AST(modules) {
4819
- this.b29_1 = modules;
5872
+ this.n29_1 = modules;
4820
5873
  }
4821
5874
  protoOf(AST).toString = function () {
4822
- return 'AST(modules=' + this.b29_1.toString() + ')';
5875
+ return 'AST(modules=' + this.n29_1.toString() + ')';
4823
5876
  };
4824
5877
  protoOf(AST).hashCode = function () {
4825
- return this.b29_1.hashCode();
5878
+ return this.n29_1.hashCode();
4826
5879
  };
4827
5880
  protoOf(AST).equals = function (other) {
4828
5881
  if (this === other)
@@ -4830,7 +5883,7 @@ protoOf(AST).equals = function (other) {
4830
5883
  if (!(other instanceof AST))
4831
5884
  return false;
4832
5885
  var tmp0_other_with_cast = other instanceof AST ? other : THROW_CCE();
4833
- if (!this.b29_1.equals(tmp0_other_with_cast.b29_1))
5886
+ if (!this.n29_1.equals(tmp0_other_with_cast.n29_1))
4834
5887
  return false;
4835
5888
  return true;
4836
5889
  };
@@ -4840,14 +5893,14 @@ function _Comment___init__impl__cg8s2u(value) {
4840
5893
  function _Comment___get_value__impl__8r3pla($this) {
4841
5894
  return $this;
4842
5895
  }
4843
- function Companion_6() {
5896
+ function Companion_7() {
4844
5897
  }
4845
- protoOf(Companion_6).l2a = function (comment) {
5898
+ protoOf(Companion_7).z2a = function (comment) {
4846
5899
  return _Comment___init__impl__cg8s2u(removeCommentMarkers(comment));
4847
5900
  };
4848
- var Companion_instance_7;
4849
- function Companion_getInstance_6() {
4850
- return Companion_instance_7;
5901
+ var Companion_instance_8;
5902
+ function Companion_getInstance_7() {
5903
+ return Companion_instance_8;
4851
5904
  }
4852
5905
  function Comment__toString_impl_803gny($this) {
4853
5906
  return 'Comment(value=' + $this + ')';
@@ -4858,21 +5911,21 @@ function Comment__hashCode_impl_tr9dgt($this) {
4858
5911
  function Comment__equals_impl_3xkmkx($this, other) {
4859
5912
  if (!(other instanceof Comment))
4860
5913
  return false;
4861
- if (!($this === (other instanceof Comment ? other.m2a_1 : THROW_CCE())))
5914
+ if (!($this === (other instanceof Comment ? other.a2b_1 : THROW_CCE())))
4862
5915
  return false;
4863
5916
  return true;
4864
5917
  }
4865
5918
  function Comment(value) {
4866
- this.m2a_1 = value;
5919
+ this.a2b_1 = value;
4867
5920
  }
4868
5921
  protoOf(Comment).toString = function () {
4869
- return Comment__toString_impl_803gny(this.m2a_1);
5922
+ return Comment__toString_impl_803gny(this.a2b_1);
4870
5923
  };
4871
5924
  protoOf(Comment).hashCode = function () {
4872
- return Comment__hashCode_impl_tr9dgt(this.m2a_1);
5925
+ return Comment__hashCode_impl_tr9dgt(this.a2b_1);
4873
5926
  };
4874
5927
  protoOf(Comment).equals = function (other) {
4875
- return Comment__equals_impl_3xkmkx(this.m2a_1, other);
5928
+ return Comment__equals_impl_3xkmkx(this.a2b_1, other);
4876
5929
  };
4877
5930
  function Identifier(name) {
4878
5931
  this.p25_1 = removeBackticks(name);
@@ -4897,10 +5950,10 @@ function Precision(name, ordinal) {
4897
5950
  Enum.call(this, name, ordinal);
4898
5951
  }
4899
5952
  function String_0() {
4900
- this.n2a_1 = 'String';
5953
+ this.b2b_1 = 'String';
4901
5954
  }
4902
- protoOf(String_0).q2 = function () {
4903
- return this.n2a_1;
5955
+ protoOf(String_0).s2 = function () {
5956
+ return this.b2b_1;
4904
5957
  };
4905
5958
  protoOf(String_0).toString = function () {
4906
5959
  return 'String';
@@ -4925,7 +5978,7 @@ function Integer(precision) {
4925
5978
  this.p24_1 = precision;
4926
5979
  this.q24_1 = 'Integer';
4927
5980
  }
4928
- protoOf(Integer).q2 = function () {
5981
+ protoOf(Integer).s2 = function () {
4929
5982
  return this.q24_1;
4930
5983
  };
4931
5984
  protoOf(Integer).toString = function () {
@@ -4949,7 +6002,7 @@ function Number_0(precision) {
4949
6002
  this.n24_1 = precision;
4950
6003
  this.o24_1 = 'Number';
4951
6004
  }
4952
- protoOf(Number_0).q2 = function () {
6005
+ protoOf(Number_0).s2 = function () {
4953
6006
  return this.o24_1;
4954
6007
  };
4955
6008
  protoOf(Number_0).toString = function () {
@@ -4969,10 +6022,10 @@ protoOf(Number_0).equals = function (other) {
4969
6022
  return true;
4970
6023
  };
4971
6024
  function Boolean_0() {
4972
- this.o2a_1 = 'Boolean';
6025
+ this.c2b_1 = 'Boolean';
4973
6026
  }
4974
- protoOf(Boolean_0).q2 = function () {
4975
- return this.o2a_1;
6027
+ protoOf(Boolean_0).s2 = function () {
6028
+ return this.c2b_1;
4976
6029
  };
4977
6030
  protoOf(Boolean_0).toString = function () {
4978
6031
  return 'Boolean';
@@ -4993,10 +6046,10 @@ function Boolean_getInstance() {
4993
6046
  return Boolean_instance;
4994
6047
  }
4995
6048
  function Bytes() {
4996
- this.p2a_1 = 'Bytes';
6049
+ this.d2b_1 = 'Bytes';
4997
6050
  }
4998
- protoOf(Bytes).q2 = function () {
4999
- return this.p2a_1;
6051
+ protoOf(Bytes).s2 = function () {
6052
+ return this.d2b_1;
5000
6053
  };
5001
6054
  protoOf(Bytes).toString = function () {
5002
6055
  return 'Bytes';
@@ -5025,20 +6078,20 @@ function Precision_P64_getInstance() {
5025
6078
  return Precision_P64_instance;
5026
6079
  }
5027
6080
  function Any(isNullable) {
5028
- this.q2a_1 = isNullable;
5029
- this.r2a_1 = 'Any';
6081
+ this.e2b_1 = isNullable;
6082
+ this.f2b_1 = 'Any';
5030
6083
  }
5031
6084
  protoOf(Any).sm = function () {
5032
- return this.q2a_1;
6085
+ return this.e2b_1;
5033
6086
  };
5034
6087
  protoOf(Any).b1 = function () {
5035
- return this.r2a_1;
6088
+ return this.f2b_1;
5036
6089
  };
5037
6090
  protoOf(Any).toString = function () {
5038
- return 'Any(isNullable=' + this.q2a_1 + ')';
6091
+ return 'Any(isNullable=' + this.e2b_1 + ')';
5039
6092
  };
5040
6093
  protoOf(Any).hashCode = function () {
5041
- return getBooleanHashCode(this.q2a_1);
6094
+ return getBooleanHashCode(this.e2b_1);
5042
6095
  };
5043
6096
  protoOf(Any).equals = function (other) {
5044
6097
  if (this === other)
@@ -5046,25 +6099,25 @@ protoOf(Any).equals = function (other) {
5046
6099
  if (!(other instanceof Any))
5047
6100
  return false;
5048
6101
  var tmp0_other_with_cast = other instanceof Any ? other : THROW_CCE();
5049
- if (!(this.q2a_1 === tmp0_other_with_cast.q2a_1))
6102
+ if (!(this.e2b_1 === tmp0_other_with_cast.e2b_1))
5050
6103
  return false;
5051
6104
  return true;
5052
6105
  };
5053
6106
  function Unit(isNullable) {
5054
- this.s2a_1 = isNullable;
5055
- this.t2a_1 = 'Unit';
6107
+ this.g2b_1 = isNullable;
6108
+ this.h2b_1 = 'Unit';
5056
6109
  }
5057
6110
  protoOf(Unit).sm = function () {
5058
- return this.s2a_1;
6111
+ return this.g2b_1;
5059
6112
  };
5060
6113
  protoOf(Unit).b1 = function () {
5061
- return this.t2a_1;
6114
+ return this.h2b_1;
5062
6115
  };
5063
6116
  protoOf(Unit).toString = function () {
5064
- return 'Unit(isNullable=' + this.s2a_1 + ')';
6117
+ return 'Unit(isNullable=' + this.g2b_1 + ')';
5065
6118
  };
5066
6119
  protoOf(Unit).hashCode = function () {
5067
- return getBooleanHashCode(this.s2a_1);
6120
+ return getBooleanHashCode(this.g2b_1);
5068
6121
  };
5069
6122
  protoOf(Unit).equals = function (other) {
5070
6123
  if (this === other)
@@ -5072,7 +6125,7 @@ protoOf(Unit).equals = function (other) {
5072
6125
  if (!(other instanceof Unit))
5073
6126
  return false;
5074
6127
  var tmp0_other_with_cast = other instanceof Unit ? other : THROW_CCE();
5075
- if (!(this.s2a_1 === tmp0_other_with_cast.s2a_1))
6128
+ if (!(this.g2b_1 === tmp0_other_with_cast.g2b_1))
5076
6129
  return false;
5077
6130
  return true;
5078
6131
  };
@@ -5171,7 +6224,7 @@ protoOf(Custom).equals = function (other) {
5171
6224
  function Primitive(type, isNullable) {
5172
6225
  this.k24_1 = type;
5173
6226
  this.l24_1 = isNullable;
5174
- this.m24_1 = this.k24_1.q2();
6227
+ this.m24_1 = this.k24_1.s2();
5175
6228
  }
5176
6229
  protoOf(Primitive).sm = function () {
5177
6230
  return this.l24_1;
@@ -5224,22 +6277,22 @@ function Type(comment, identifier, shape, extends_0) {
5224
6277
  this.l26_1 = shape;
5225
6278
  this.m26_1 = extends_0;
5226
6279
  }
5227
- protoOf(Type).k2a = function () {
6280
+ protoOf(Type).i2b = function () {
5228
6281
  return this.k26_1;
5229
6282
  };
5230
- protoOf(Type).u2a = function (comment, identifier, shape, extends_0) {
6283
+ protoOf(Type).j2b = function (comment, identifier, shape, extends_0) {
5231
6284
  return new Type(comment, identifier, shape, extends_0);
5232
6285
  };
5233
- protoOf(Type).v2a = function (comment, identifier, shape, extends_0, $super) {
6286
+ protoOf(Type).k2b = function (comment, identifier, shape, extends_0, $super) {
5234
6287
  comment = comment === VOID ? this.j26_1 : comment;
5235
6288
  identifier = identifier === VOID ? this.k26_1 : identifier;
5236
6289
  shape = shape === VOID ? this.l26_1 : shape;
5237
6290
  extends_0 = extends_0 === VOID ? this.m26_1 : extends_0;
5238
6291
  var tmp;
5239
6292
  if ($super === VOID) {
5240
- tmp = this.u2a(comment, identifier, shape, extends_0);
6293
+ tmp = this.j2b(comment, identifier, shape, extends_0);
5241
6294
  } else {
5242
- var tmp_0 = $super.u2a;
6295
+ var tmp_0 = $super.j2b;
5243
6296
  var tmp_1 = comment;
5244
6297
  tmp = tmp_0.call(this, tmp_1 == null ? null : new Comment(tmp_1), identifier, shape, extends_0);
5245
6298
  }
@@ -5497,7 +6550,7 @@ function Endpoint(comment, identifier, method, path, queries, headers, cookies,
5497
6550
  this.y24_1 = requests;
5498
6551
  this.z24_1 = responses;
5499
6552
  }
5500
- protoOf(Endpoint).k2a = function () {
6553
+ protoOf(Endpoint).i2b = function () {
5501
6554
  return this.s24_1;
5502
6555
  };
5503
6556
  protoOf(Endpoint).toString = function () {
@@ -5557,7 +6610,7 @@ function Enum_0(comment, identifier, entries) {
5557
6610
  this.r26_1 = identifier;
5558
6611
  this.s26_1 = entries;
5559
6612
  }
5560
- protoOf(Enum_0).k2a = function () {
6613
+ protoOf(Enum_0).i2b = function () {
5561
6614
  return this.r26_1;
5562
6615
  };
5563
6616
  protoOf(Enum_0).toString = function () {
@@ -5619,7 +6672,7 @@ function Refined(comment, identifier, validator) {
5619
6672
  this.o26_1 = identifier;
5620
6673
  this.p26_1 = validator;
5621
6674
  }
5622
- protoOf(Refined).k2a = function () {
6675
+ protoOf(Refined).i2b = function () {
5623
6676
  return this.o26_1;
5624
6677
  };
5625
6678
  protoOf(Refined).toString = function () {
@@ -5661,7 +6714,7 @@ function Union(comment, identifier, entries) {
5661
6714
  this.h26_1 = identifier;
5662
6715
  this.i26_1 = entries;
5663
6716
  }
5664
- protoOf(Union).k2a = function () {
6717
+ protoOf(Union).i2b = function () {
5665
6718
  return this.h26_1;
5666
6719
  };
5667
6720
  protoOf(Union).toString = function () {
@@ -5703,7 +6756,7 @@ function Channel(comment, identifier, reference) {
5703
6756
  this.u26_1 = identifier;
5704
6757
  this.v26_1 = reference;
5705
6758
  }
5706
- protoOf(Channel).k2a = function () {
6759
+ protoOf(Channel).i2b = function () {
5707
6760
  return this.u26_1;
5708
6761
  };
5709
6762
  protoOf(Channel).toString = function () {
@@ -5742,13 +6795,13 @@ protoOf(Channel).equals = function (other) {
5742
6795
  };
5743
6796
  function FieldIdentifier(name) {
5744
6797
  Identifier.call(this, name);
5745
- this.x2a_1 = name;
6798
+ this.m2b_1 = name;
5746
6799
  }
5747
6800
  protoOf(FieldIdentifier).toString = function () {
5748
- return 'FieldIdentifier(name=' + this.x2a_1 + ')';
6801
+ return 'FieldIdentifier(name=' + this.m2b_1 + ')';
5749
6802
  };
5750
6803
  protoOf(FieldIdentifier).hashCode = function () {
5751
- return getStringHashCode(this.x2a_1);
6804
+ return getStringHashCode(this.m2b_1);
5752
6805
  };
5753
6806
  protoOf(FieldIdentifier).equals = function (other) {
5754
6807
  if (this === other)
@@ -5756,7 +6809,7 @@ protoOf(FieldIdentifier).equals = function (other) {
5756
6809
  if (!(other instanceof FieldIdentifier))
5757
6810
  return false;
5758
6811
  var tmp0_other_with_cast = other instanceof FieldIdentifier ? other : THROW_CCE();
5759
- if (!(this.x2a_1 === tmp0_other_with_cast.x2a_1))
6812
+ if (!(this.m2b_1 === tmp0_other_with_cast.m2b_1))
5760
6813
  return false;
5761
6814
  return true;
5762
6815
  };
@@ -5786,13 +6839,13 @@ protoOf(Field).equals = function (other) {
5786
6839
  };
5787
6840
  function DefinitionIdentifier(name) {
5788
6841
  Identifier.call(this, name);
5789
- this.z2a_1 = name;
6842
+ this.o2b_1 = name;
5790
6843
  }
5791
6844
  protoOf(DefinitionIdentifier).toString = function () {
5792
- return 'DefinitionIdentifier(name=' + this.z2a_1 + ')';
6845
+ return 'DefinitionIdentifier(name=' + this.o2b_1 + ')';
5793
6846
  };
5794
6847
  protoOf(DefinitionIdentifier).hashCode = function () {
5795
- return getStringHashCode(this.z2a_1);
6848
+ return getStringHashCode(this.o2b_1);
5796
6849
  };
5797
6850
  protoOf(DefinitionIdentifier).equals = function (other) {
5798
6851
  if (this === other)
@@ -5800,7 +6853,7 @@ protoOf(DefinitionIdentifier).equals = function (other) {
5800
6853
  if (!(other instanceof DefinitionIdentifier))
5801
6854
  return false;
5802
6855
  var tmp0_other_with_cast = other instanceof DefinitionIdentifier ? other : THROW_CCE();
5803
- if (!(this.z2a_1 === tmp0_other_with_cast.z2a_1))
6856
+ if (!(this.o2b_1 === tmp0_other_with_cast.o2b_1))
5804
6857
  return false;
5805
6858
  return true;
5806
6859
  };
@@ -5939,47 +6992,47 @@ function parseDefinition(_this__u8e3s4, $this) {
5939
6992
  try {
5940
6993
  // Inline function 'arrow.core.raise.either.<anonymous>' call
5941
6994
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseDefinition.<anonymous>' call
5942
- _this__u8e3s4.g2a(_this__u8e3s4.y29_1);
6995
+ _this__u8e3s4.u2a(_this__u8e3s4.m2a_1);
5943
6996
  var tmp_0;
5944
- if (_this__u8e3s4.y29_1.q29_1 instanceof Comment_0) {
6997
+ if (_this__u8e3s4.m2a_1.e2a_1 instanceof Comment_0) {
5945
6998
  // Inline function 'kotlin.also' call
5946
- var this_0 = new Comment(Companion_instance_7.l2a(_this__u8e3s4.y29_1.p29_1));
6999
+ var this_0 = new Comment(Companion_instance_8.z2a(_this__u8e3s4.m2a_1.d2a_1));
5947
7000
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseDefinition.<anonymous>.<anonymous>' call
5948
- this_0.m2a_1;
5949
- raise.ll(_this__u8e3s4.c2a());
5950
- tmp_0 = this_0.m2a_1;
7001
+ this_0.a2b_1;
7002
+ raise.ll(_this__u8e3s4.q2a());
7003
+ tmp_0 = this_0.a2b_1;
5951
7004
  } else {
5952
7005
  tmp_0 = null;
5953
7006
  }
5954
7007
  var comment = tmp_0;
5955
- var tmp1_subject = _this__u8e3s4.y29_1.q29_1;
7008
+ var tmp1_subject = _this__u8e3s4.m2a_1.e2a_1;
5956
7009
  var tmp_1;
5957
7010
  if (isInterface(tmp1_subject, WirespecDefinition)) {
5958
- var tmp_2 = _this__u8e3s4.y29_1.q29_1;
7011
+ var tmp_2 = _this__u8e3s4.m2a_1.e2a_1;
5959
7012
  var tmp2_subject = isInterface(tmp_2, WirespecDefinition) ? tmp_2 : THROW_CCE();
5960
7013
  var tmp_3;
5961
7014
  if (tmp2_subject instanceof TypeDefinition) {
5962
7015
  // Inline function 'kotlin.with' call
5963
7016
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseDefinition.<anonymous>.<anonymous>' call
5964
- var tmp$ret$2 = Parser_getInstance().t22_1.a2b(_this__u8e3s4, comment);
7017
+ var tmp$ret$2 = Parser_getInstance().t22_1.p2b(_this__u8e3s4, comment);
5965
7018
  tmp_3 = raise.ll(tmp$ret$2);
5966
7019
  } else {
5967
7020
  if (tmp2_subject instanceof EnumTypeDefinition) {
5968
7021
  // Inline function 'kotlin.with' call
5969
7022
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseDefinition.<anonymous>.<anonymous>' call
5970
- var tmp$ret$4 = Parser_getInstance().u22_1.j2a(_this__u8e3s4, comment);
7023
+ var tmp$ret$4 = Parser_getInstance().u22_1.x2a(_this__u8e3s4, comment);
5971
7024
  tmp_3 = raise.ll(tmp$ret$4);
5972
7025
  } else {
5973
7026
  if (tmp2_subject instanceof EndpointDefinition) {
5974
7027
  // Inline function 'kotlin.with' call
5975
7028
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseDefinition.<anonymous>.<anonymous>' call
5976
- var tmp$ret$6 = Parser_getInstance().v22_1.i2a(_this__u8e3s4, comment);
7029
+ var tmp$ret$6 = Parser_getInstance().v22_1.w2a(_this__u8e3s4, comment);
5977
7030
  tmp_3 = raise.ll(tmp$ret$6);
5978
7031
  } else {
5979
7032
  if (tmp2_subject instanceof ChannelDefinition) {
5980
7033
  // Inline function 'kotlin.with' call
5981
7034
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseDefinition.<anonymous>.<anonymous>' call
5982
- var tmp$ret$8 = Parser_getInstance().w22_1.f2a(_this__u8e3s4, comment);
7035
+ var tmp$ret$8 = Parser_getInstance().w22_1.t2a(_this__u8e3s4, comment);
5983
7036
  tmp_3 = raise.ll(tmp$ret$8);
5984
7037
  } else {
5985
7038
  noWhenBranchMatchedException();
@@ -5990,11 +7043,11 @@ function parseDefinition(_this__u8e3s4, $this) {
5990
7043
  tmp_1 = tmp_3;
5991
7044
  } else {
5992
7045
  // Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
5993
- var actual = _this__u8e3s4.y29_1;
7046
+ var actual = _this__u8e3s4.m2a_1;
5994
7047
  // Inline function 'kotlin.also' call
5995
7048
  var this_1 = new WrongTokenException(getKClass(WirespecDefinition), actual);
5996
7049
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseDefinition.<anonymous>.<anonymous>' call
5997
- raise.ll(_this__u8e3s4.c2a());
7050
+ raise.ll(_this__u8e3s4.q2a());
5998
7051
  raise.kl(this_1);
5999
7052
  }
6000
7053
  var res = tmp_1;
@@ -6107,7 +7160,7 @@ function fillExtendsClause(_this__u8e3s4, $this) {
6107
7160
  var tmp$ret$9 = new Custom(item_0.h26_1.b1(), false);
6108
7161
  destination_2.e(tmp$ret$9);
6109
7162
  }
6110
- tmp_0 = definition.v2a(VOID, VOID, VOID, destination_2);
7163
+ tmp_0 = definition.k2b(VOID, VOID, VOID, destination_2);
6111
7164
  } else {
6112
7165
  if (definition instanceof Union) {
6113
7166
  tmp_0 = definition;
@@ -6193,7 +7246,7 @@ function fillExtendsClause(_this__u8e3s4, $this) {
6193
7246
  var tmp$ret$22 = new Custom(item_3.h26_1.b1(), false);
6194
7247
  destination_7.e(tmp$ret$22);
6195
7248
  }
6196
- tmp_3 = item_1.v2a(VOID, VOID, VOID, destination_7);
7249
+ tmp_3 = item_1.k2b(VOID, VOID, VOID, destination_7);
6197
7250
  } else {
6198
7251
  if (item_1 instanceof Union) {
6199
7252
  tmp_3 = item_1;
@@ -6239,7 +7292,7 @@ function Parser$validate$lambda$lambda($this$runOption) {
6239
7292
  function Parser$validate$lambda($options) {
6240
7293
  return function (defs) {
6241
7294
  var tmp = Parser_getInstance();
6242
- return runOption(defs, tmp, $options.c2b_1, Parser$validate$lambda$lambda);
7295
+ return runOption(defs, tmp, $options.r2b_1, Parser$validate$lambda$lambda);
6243
7296
  };
6244
7297
  }
6245
7298
  function Parser() {
@@ -6249,7 +7302,7 @@ function Parser() {
6249
7302
  this.v22_1 = EndpointParser_instance;
6250
7303
  this.w22_1 = ChannelParser_instance;
6251
7304
  }
6252
- protoOf(Parser).d2b = function (_this__u8e3s4, modules, options) {
7305
+ protoOf(Parser).s2b = function (_this__u8e3s4, modules, options) {
6253
7306
  // Inline function 'arrow.core.NonEmptyList.map' call
6254
7307
  // Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parse.<anonymous>' call
6255
7308
  var it = modules.uk_1;
@@ -6324,7 +7377,7 @@ protoOf(Parser).d2b = function (_this__u8e3s4, modules, options) {
6324
7377
  };
6325
7378
  protoOf(Parser).x22 = function (_this__u8e3s4, modules, options, $super) {
6326
7379
  options = options === VOID ? new ParseOptions() : options;
6327
- return $super === VOID ? this.d2b(_this__u8e3s4, modules, options) : $super.d2b.call(this, _this__u8e3s4, modules, options);
7380
+ return $super === VOID ? this.s2b(_this__u8e3s4, modules, options) : $super.s2b.call(this, _this__u8e3s4, modules, options);
6328
7381
  };
6329
7382
  var Parser_instance;
6330
7383
  function Parser_getInstance() {
@@ -6335,15 +7388,15 @@ function Parser_getInstance() {
6335
7388
  function ParseOptions(strict, allowUnions) {
6336
7389
  strict = strict === VOID ? false : strict;
6337
7390
  allowUnions = allowUnions === VOID ? true : allowUnions;
6338
- this.b2b_1 = strict;
6339
- this.c2b_1 = allowUnions;
7391
+ this.q2b_1 = strict;
7392
+ this.r2b_1 = allowUnions;
6340
7393
  }
6341
7394
  protoOf(ParseOptions).toString = function () {
6342
- return 'ParseOptions(strict=' + this.b2b_1 + ', allowUnions=' + this.c2b_1 + ')';
7395
+ return 'ParseOptions(strict=' + this.q2b_1 + ', allowUnions=' + this.r2b_1 + ')';
6343
7396
  };
6344
7397
  protoOf(ParseOptions).hashCode = function () {
6345
- var result = getBooleanHashCode(this.b2b_1);
6346
- result = imul(result, 31) + getBooleanHashCode(this.c2b_1) | 0;
7398
+ var result = getBooleanHashCode(this.q2b_1);
7399
+ result = imul(result, 31) + getBooleanHashCode(this.r2b_1) | 0;
6347
7400
  return result;
6348
7401
  };
6349
7402
  protoOf(ParseOptions).equals = function (other) {
@@ -6352,9 +7405,9 @@ protoOf(ParseOptions).equals = function (other) {
6352
7405
  if (!(other instanceof ParseOptions))
6353
7406
  return false;
6354
7407
  var tmp0_other_with_cast = other instanceof ParseOptions ? other : THROW_CCE();
6355
- if (!(this.b2b_1 === tmp0_other_with_cast.b2b_1))
7408
+ if (!(this.q2b_1 === tmp0_other_with_cast.q2b_1))
6356
7409
  return false;
6357
- if (!(this.c2b_1 === tmp0_other_with_cast.c2b_1))
7410
+ if (!(this.r2b_1 === tmp0_other_with_cast.r2b_1))
6358
7411
  return false;
6359
7412
  return true;
6360
7413
  };
@@ -6365,25 +7418,25 @@ function printTokens($this, previousToken) {
6365
7418
  } else {
6366
7419
  // Inline function 'kotlin.run' call
6367
7420
  // Inline function 'community.flock.wirespec.compiler.core.parse.TokenProvider.printTokens.<anonymous>' call
6368
- tmp = "Eating: '" + previousToken.p29_1 + "', ";
7421
+ tmp = "Eating: '" + previousToken.d2a_1 + "', ";
6369
7422
  }
6370
7423
  var tmp1_elvis_lhs = tmp;
6371
7424
  var prev = tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs;
6372
7425
  // Inline function 'kotlin.run' call
6373
7426
  // Inline function 'community.flock.wirespec.compiler.core.parse.TokenProvider.printTokens.<anonymous>' call
6374
- var curr = "Current: '" + $this.y29_1.p29_1 + "'";
6375
- var tmp2_safe_receiver = $this.a2a_1;
7427
+ var curr = "Current: '" + $this.m2a_1.d2a_1 + "'";
7428
+ var tmp2_safe_receiver = $this.o2a_1;
6376
7429
  var tmp_0;
6377
7430
  if (tmp2_safe_receiver == null) {
6378
7431
  tmp_0 = null;
6379
7432
  } else {
6380
7433
  // Inline function 'kotlin.run' call
6381
7434
  // Inline function 'community.flock.wirespec.compiler.core.parse.TokenProvider.printTokens.<anonymous>' call
6382
- tmp_0 = ", Next: '" + tmp2_safe_receiver.p29_1 + "'";
7435
+ tmp_0 = ", Next: '" + tmp2_safe_receiver.d2a_1 + "'";
6383
7436
  }
6384
7437
  var tmp3_elvis_lhs = tmp_0;
6385
7438
  var next = tmp3_elvis_lhs == null ? '' : tmp3_elvis_lhs;
6386
- $this.x29_1.d23(prev + curr + next);
7439
+ $this.l2a_1.d23(prev + curr + next);
6387
7440
  }
6388
7441
  function printTokens$default($this, previousToken, $super) {
6389
7442
  previousToken = previousToken === VOID ? null : previousToken;
@@ -6396,7 +7449,7 @@ function nextToken($this) {
6396
7449
  try {
6397
7450
  // Inline function 'arrow.core.Companion.catch.<anonymous>' call
6398
7451
  // Inline function 'community.flock.wirespec.compiler.core.parse.TokenProvider.nextToken.<anonymous>' call
6399
- var tmp$ret$0 = $this.z29_1.i();
7452
+ var tmp$ret$0 = $this.n2a_1.i();
6400
7453
  tmp = right(tmp$ret$0);
6401
7454
  } catch ($p) {
6402
7455
  var tmp_0;
@@ -6413,10 +7466,10 @@ function nextToken($this) {
6413
7466
  return tmp.ok();
6414
7467
  }
6415
7468
  function TokenProvider(logger, tokens) {
6416
- this.x29_1 = logger;
6417
- this.y29_1 = tokens.uk_1;
6418
- this.z29_1 = tokens.vk_1.g();
6419
- this.a2a_1 = nextToken(this);
7469
+ this.l2a_1 = logger;
7470
+ this.m2a_1 = tokens.uk_1;
7471
+ this.n2a_1 = tokens.vk_1.g();
7472
+ this.o2a_1 = nextToken(this);
6420
7473
  var tmp = this;
6421
7474
  // Inline function 'kotlin.collections.mapNotNull' call
6422
7475
  var tmp0 = zipWithNext(tokens);
@@ -6430,10 +7483,10 @@ function TokenProvider(logger, tokens) {
6430
7483
  // Inline function 'community.flock.wirespec.compiler.core.parse.TokenProvider.definitionNames.<anonymous>' call
6431
7484
  var first = element.yd();
6432
7485
  var second = element.zd();
6433
- var tmp0_subject = first.q29_1;
7486
+ var tmp0_subject = first.e2a_1;
6434
7487
  var tmp_0;
6435
7488
  if (isInterface(tmp0_subject, WirespecDefinition)) {
6436
- tmp_0 = second.p29_1;
7489
+ tmp_0 = second.d2a_1;
6437
7490
  } else {
6438
7491
  tmp_0 = null;
6439
7492
  }
@@ -6446,10 +7499,10 @@ function TokenProvider(logger, tokens) {
6446
7499
  destination.e(tmp0_safe_receiver);
6447
7500
  }
6448
7501
  }
6449
- tmp.b2a_1 = destination;
7502
+ tmp.p2a_1 = destination;
6450
7503
  printTokens$default(this);
6451
7504
  }
6452
- protoOf(TokenProvider).e2b = function (_this__u8e3s4) {
7505
+ protoOf(TokenProvider).t2b = function (_this__u8e3s4) {
6453
7506
  // Inline function 'arrow.core.raise.either' call
6454
7507
  // Inline function 'arrow.core.raise.fold' call
6455
7508
  // Inline function 'kotlin.contracts.contract' call
@@ -6459,8 +7512,8 @@ protoOf(TokenProvider).e2b = function (_this__u8e3s4) {
6459
7512
  var tmp;
6460
7513
  try {
6461
7514
  // Inline function 'arrow.core.raise.either.<anonymous>' call
6462
- if (!this.b2a_1.o1(_this__u8e3s4.p29_1)) {
6463
- raise.kl(new DefinitionNotExistsException(_this__u8e3s4.p29_1, _this__u8e3s4.r29_1));
7515
+ if (!this.p2a_1.o1(_this__u8e3s4.d2a_1)) {
7516
+ raise.kl(new DefinitionNotExistsException(_this__u8e3s4.d2a_1, _this__u8e3s4.f2a_1));
6464
7517
  }
6465
7518
  var res = Unit_instance;
6466
7519
  raise.il();
@@ -6488,9 +7541,9 @@ protoOf(TokenProvider).e2b = function (_this__u8e3s4) {
6488
7541
  return tmp;
6489
7542
  };
6490
7543
  protoOf(TokenProvider).h = function () {
6491
- return !(this.a2a_1 == null);
7544
+ return !(this.o2a_1 == null);
6492
7545
  };
6493
- protoOf(TokenProvider).c2a = function () {
7546
+ protoOf(TokenProvider).q2a = function () {
6494
7547
  // Inline function 'arrow.core.raise.either' call
6495
7548
  // Inline function 'arrow.core.raise.fold' call
6496
7549
  // Inline function 'kotlin.contracts.contract' call
@@ -6501,17 +7554,17 @@ protoOf(TokenProvider).c2a = function () {
6501
7554
  try {
6502
7555
  // Inline function 'arrow.core.raise.either.<anonymous>' call
6503
7556
  // Inline function 'community.flock.wirespec.compiler.core.parse.TokenProvider.eatToken.<anonymous>' call
6504
- var previousToken = this.y29_1;
7557
+ var previousToken = this.m2a_1;
6505
7558
  var tmp_0 = this;
6506
- var tmp0_elvis_lhs = this.a2a_1;
7559
+ var tmp0_elvis_lhs = this.o2a_1;
6507
7560
  var tmp_1;
6508
7561
  if (tmp0_elvis_lhs == null) {
6509
- raise.kl(new NextException(previousToken.r29_1));
7562
+ raise.kl(new NextException(previousToken.f2a_1));
6510
7563
  } else {
6511
7564
  tmp_1 = tmp0_elvis_lhs;
6512
7565
  }
6513
- tmp_0.y29_1 = tmp_1;
6514
- this.a2a_1 = nextToken(this);
7566
+ tmp_0.m2a_1 = tmp_1;
7567
+ this.o2a_1 = nextToken(this);
6515
7568
  printTokens(this, previousToken);
6516
7569
  var res = previousToken;
6517
7570
  raise.il();
@@ -6538,8 +7591,8 @@ protoOf(TokenProvider).c2a = function () {
6538
7591
  }
6539
7592
  return tmp;
6540
7593
  };
6541
- protoOf(TokenProvider).g2a = function (_this__u8e3s4) {
6542
- return this.x29_1.d23('Parsing ' + toString(_this__u8e3s4.q29_1) + ' at line ' + _this__u8e3s4.r29_1.s29_1 + ' position ' + _this__u8e3s4.r29_1.t29_1);
7594
+ protoOf(TokenProvider).u2a = function (_this__u8e3s4) {
7595
+ return this.l2a_1.d23('Parsing ' + toString(_this__u8e3s4.e2a_1) + ' at line ' + _this__u8e3s4.f2a_1.g2a_1 + ' position ' + _this__u8e3s4.f2a_1.h2a_1);
6543
7596
  };
6544
7597
  function toProvider(_this__u8e3s4, logger) {
6545
7598
  return new TokenProvider(logger, _this__u8e3s4);
@@ -6555,9 +7608,9 @@ function parseRefinedValidator(_this__u8e3s4, $this, accumulatedString) {
6555
7608
  try {
6556
7609
  // Inline function 'arrow.core.raise.either.<anonymous>' call
6557
7610
  // Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseRefinedValidator.<anonymous>' call
6558
- raise.ll(_this__u8e3s4.c2a());
6559
- _this__u8e3s4.g2a(_this__u8e3s4.y29_1);
6560
- var tmp0_subject = _this__u8e3s4.y29_1.q29_1;
7611
+ raise.ll(_this__u8e3s4.q2a());
7612
+ _this__u8e3s4.u2a(_this__u8e3s4.m2a_1);
7613
+ var tmp0_subject = _this__u8e3s4.m2a_1.e2a_1;
6561
7614
  var tmp_0;
6562
7615
  var tmp_1;
6563
7616
  if (isInterface(tmp0_subject, WirespecDefinition)) {
@@ -6568,7 +7621,7 @@ function parseRefinedValidator(_this__u8e3s4, $this, accumulatedString) {
6568
7621
  if (tmp_1) {
6569
7622
  tmp_0 = accumulatedString;
6570
7623
  } else {
6571
- tmp_0 = raise.ll(parseRefinedValidator(_this__u8e3s4, TypeParser_instance, accumulatedString + _this__u8e3s4.y29_1.p29_1));
7624
+ tmp_0 = raise.ll(parseRefinedValidator(_this__u8e3s4, TypeParser_instance, accumulatedString + _this__u8e3s4.m2a_1.d2a_1));
6572
7625
  }
6573
7626
  var res = tmp_0;
6574
7627
  raise.il();
@@ -6606,12 +7659,12 @@ function parseTypeDefinition(_this__u8e3s4, $this, comment, typeName) {
6606
7659
  try {
6607
7660
  // Inline function 'arrow.core.raise.either.<anonymous>' call
6608
7661
  // Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseTypeDefinition.<anonymous>' call
6609
- raise.ll(_this__u8e3s4.c2a());
6610
- _this__u8e3s4.g2a(_this__u8e3s4.y29_1);
6611
- var tmp0_subject = _this__u8e3s4.y29_1.q29_1;
7662
+ raise.ll(_this__u8e3s4.q2a());
7663
+ _this__u8e3s4.u2a(_this__u8e3s4.m2a_1);
7664
+ var tmp0_subject = _this__u8e3s4.m2a_1.e2a_1;
6612
7665
  var tmp_0;
6613
7666
  if (tmp0_subject instanceof LeftCurly) {
6614
- tmp_0 = new Type(comment, typeName, raise.ll(TypeParser_instance.h2a(_this__u8e3s4)), emptyList());
7667
+ tmp_0 = new Type(comment, typeName, raise.ll(TypeParser_instance.v2a(_this__u8e3s4)), emptyList());
6615
7668
  } else {
6616
7669
  if (tmp0_subject instanceof ForwardSlash) {
6617
7670
  tmp_0 = new Refined(comment, typeName, new Validator(raise.ll(parseRefinedValidator(_this__u8e3s4, TypeParser_instance, '/'))));
@@ -6620,11 +7673,11 @@ function parseTypeDefinition(_this__u8e3s4, $this, comment, typeName) {
6620
7673
  tmp_0 = new Union(comment, typeName, raise.ll(parseUnionTypeEntries(_this__u8e3s4, TypeParser_instance)));
6621
7674
  } else {
6622
7675
  // Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
6623
- var actual = _this__u8e3s4.y29_1;
7676
+ var actual = _this__u8e3s4.m2a_1;
6624
7677
  // Inline function 'kotlin.also' call
6625
7678
  var this_0 = new WrongTokenException(getKClass(TypeDefinitionStart), actual);
6626
7679
  // Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseTypeDefinition.<anonymous>.<anonymous>' call
6627
- raise.ll(_this__u8e3s4.c2a());
7680
+ raise.ll(_this__u8e3s4.q2a());
6628
7681
  raise.kl(this_0);
6629
7682
  }
6630
7683
  }
@@ -6665,33 +7718,33 @@ function parseField(_this__u8e3s4, $this, identifier) {
6665
7718
  try {
6666
7719
  // Inline function 'arrow.core.raise.either.<anonymous>' call
6667
7720
  // Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseField.<anonymous>' call
6668
- raise.ll(_this__u8e3s4.c2a());
6669
- _this__u8e3s4.g2a(_this__u8e3s4.y29_1);
6670
- if (_this__u8e3s4.y29_1.q29_1 instanceof Colon)
6671
- raise.ll(_this__u8e3s4.c2a());
7721
+ raise.ll(_this__u8e3s4.q2a());
7722
+ _this__u8e3s4.u2a(_this__u8e3s4.m2a_1);
7723
+ if (_this__u8e3s4.m2a_1.e2a_1 instanceof Colon)
7724
+ raise.ll(_this__u8e3s4.q2a());
6672
7725
  else {
6673
7726
  // Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
6674
- var actual = _this__u8e3s4.y29_1;
7727
+ var actual = _this__u8e3s4.m2a_1;
6675
7728
  // Inline function 'kotlin.also' call
6676
7729
  var this_0 = new WrongTokenException(getKClass(Colon), actual);
6677
7730
  // Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseField.<anonymous>.<anonymous>' call
6678
- raise.ll(_this__u8e3s4.c2a());
7731
+ raise.ll(_this__u8e3s4.q2a());
6679
7732
  raise.kl(this_0);
6680
7733
  }
6681
- var type = _this__u8e3s4.y29_1.q29_1;
7734
+ var type = _this__u8e3s4.m2a_1.e2a_1;
6682
7735
  var tmp_0;
6683
7736
  if (type instanceof LeftCurly) {
6684
- tmp_0 = new Field(identifier, raise.ll(TypeParser_instance.e2a(_this__u8e3s4)));
7737
+ tmp_0 = new Field(identifier, raise.ll(TypeParser_instance.s2a(_this__u8e3s4)));
6685
7738
  } else {
6686
7739
  if (isInterface(type, WirespecType_0)) {
6687
- tmp_0 = new Field(identifier, raise.ll(TypeParser_instance.d2a(_this__u8e3s4, type)));
7740
+ tmp_0 = new Field(identifier, raise.ll(TypeParser_instance.r2a(_this__u8e3s4, type)));
6688
7741
  } else {
6689
7742
  // Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
6690
- var actual_0 = _this__u8e3s4.y29_1;
7743
+ var actual_0 = _this__u8e3s4.m2a_1;
6691
7744
  // Inline function 'kotlin.also' call
6692
7745
  var this_1 = new WrongTokenException(getKClass(WirespecType_0), actual_0);
6693
7746
  // Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseField.<anonymous>.<anonymous>' call
6694
- raise.ll(_this__u8e3s4.c2a());
7747
+ raise.ll(_this__u8e3s4.q2a());
6695
7748
  raise.kl(this_1);
6696
7749
  }
6697
7750
  }
@@ -6731,45 +7784,45 @@ function parseUnionTypeEntries(_this__u8e3s4, $this) {
6731
7784
  try {
6732
7785
  // Inline function 'arrow.core.raise.either.<anonymous>' call
6733
7786
  // Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseUnionTypeEntries.<anonymous>' call
6734
- raise.ll(_this__u8e3s4.c2a());
6735
- _this__u8e3s4.g2a(_this__u8e3s4.y29_1);
6736
- var tmp0_subject = _this__u8e3s4.y29_1.q29_1;
7787
+ raise.ll(_this__u8e3s4.q2a());
7788
+ _this__u8e3s4.u2a(_this__u8e3s4.m2a_1);
7789
+ var tmp0_subject = _this__u8e3s4.m2a_1.e2a_1;
6737
7790
  var tmp_0;
6738
7791
  if (isInterface(tmp0_subject, TypeIdentifier)) {
6739
7792
  // Inline function 'kotlin.collections.mutableListOf' call
6740
7793
  // Inline function 'kotlin.apply' call
6741
7794
  var this_0 = ArrayList_init_$Create$_0();
6742
7795
  // Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseUnionTypeEntries.<anonymous>.<anonymous>' call
6743
- raise.ll(_this__u8e3s4.e2b(_this__u8e3s4.y29_1));
6744
- this_0.e(new Custom(_this__u8e3s4.y29_1.p29_1, false));
6745
- raise.ll(_this__u8e3s4.c2a());
6746
- while (equals(_this__u8e3s4.y29_1.q29_1, Pipe_instance)) {
6747
- raise.ll(_this__u8e3s4.c2a());
6748
- var tmp0_subject_0 = _this__u8e3s4.y29_1.q29_1;
7796
+ raise.ll(_this__u8e3s4.t2b(_this__u8e3s4.m2a_1));
7797
+ this_0.e(new Custom(_this__u8e3s4.m2a_1.d2a_1, false));
7798
+ raise.ll(_this__u8e3s4.q2a());
7799
+ while (equals(_this__u8e3s4.m2a_1.e2a_1, Pipe_instance)) {
7800
+ raise.ll(_this__u8e3s4.q2a());
7801
+ var tmp0_subject_0 = _this__u8e3s4.m2a_1.e2a_1;
6749
7802
  if (isInterface(tmp0_subject_0, TypeIdentifier)) {
6750
- raise.ll(_this__u8e3s4.e2b(_this__u8e3s4.y29_1));
7803
+ raise.ll(_this__u8e3s4.t2b(_this__u8e3s4.m2a_1));
6751
7804
  // Inline function 'kotlin.also' call
6752
- this_0.e(new Custom(_this__u8e3s4.y29_1.p29_1, false));
7805
+ this_0.e(new Custom(_this__u8e3s4.m2a_1.d2a_1, false));
6753
7806
  // Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseUnionTypeEntries.<anonymous>.<anonymous>.<anonymous>' call
6754
- raise.ll(_this__u8e3s4.c2a());
7807
+ raise.ll(_this__u8e3s4.q2a());
6755
7808
  } else {
6756
7809
  // Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
6757
- var actual = _this__u8e3s4.y29_1;
7810
+ var actual = _this__u8e3s4.m2a_1;
6758
7811
  // Inline function 'kotlin.also' call
6759
7812
  var this_1 = new WrongTokenException(getKClass(TypeIdentifier), actual);
6760
7813
  // Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseUnionTypeEntries.<anonymous>.<anonymous>.<anonymous>' call
6761
- raise.ll(_this__u8e3s4.c2a());
7814
+ raise.ll(_this__u8e3s4.q2a());
6762
7815
  raise.kl(this_1);
6763
7816
  }
6764
7817
  }
6765
7818
  tmp_0 = this_0;
6766
7819
  } else {
6767
7820
  // Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
6768
- var actual_0 = _this__u8e3s4.y29_1;
7821
+ var actual_0 = _this__u8e3s4.m2a_1;
6769
7822
  // Inline function 'kotlin.also' call
6770
7823
  var this_2 = new WrongTokenException(getKClass(TypeIdentifier), actual_0);
6771
7824
  // Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseUnionTypeEntries.<anonymous>.<anonymous>' call
6772
- raise.ll(_this__u8e3s4.c2a());
7825
+ raise.ll(_this__u8e3s4.q2a());
6773
7826
  raise.kl(this_2);
6774
7827
  }
6775
7828
  var res = toSet(tmp_0);
@@ -6809,10 +7862,10 @@ function isNullable(_this__u8e3s4, $this) {
6809
7862
  // Inline function 'arrow.core.raise.either.<anonymous>' call
6810
7863
  // Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.isNullable.<anonymous>' call
6811
7864
  var tmp_0;
6812
- if (_this__u8e3s4.y29_1.q29_1 instanceof QuestionMark) {
7865
+ if (_this__u8e3s4.m2a_1.e2a_1 instanceof QuestionMark) {
6813
7866
  // Inline function 'kotlin.also' call
6814
7867
  // Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.isNullable.<anonymous>.<anonymous>' call
6815
- raise.ll(_this__u8e3s4.c2a());
7868
+ raise.ll(_this__u8e3s4.q2a());
6816
7869
  tmp_0 = true;
6817
7870
  } else {
6818
7871
  tmp_0 = false;
@@ -6850,12 +7903,12 @@ function TypeParser$parseWirespecType$lambda_0(it) {
6850
7903
  }
6851
7904
  function TypeParser$parseWirespecType$lambda_1($type) {
6852
7905
  return function (it) {
6853
- return new Primitive(new Integer(toPrimitivePrecision($type.f2b_1)), it);
7906
+ return new Primitive(new Integer(toPrimitivePrecision($type.u2b_1)), it);
6854
7907
  };
6855
7908
  }
6856
7909
  function TypeParser$parseWirespecType$lambda_2($type) {
6857
7910
  return function (it) {
6858
- return new Primitive(new Number_0(toPrimitivePrecision($type.g2b_1)), it);
7911
+ return new Primitive(new Number_0(toPrimitivePrecision($type.v2b_1)), it);
6859
7912
  };
6860
7913
  }
6861
7914
  function TypeParser$parseWirespecType$lambda_3(it) {
@@ -6870,13 +7923,13 @@ function Reference$Unit$_init_$ref_od8ye0() {
6870
7923
  }
6871
7924
  function TypeParser$parseWirespecType$lambda_4($$this$either, $this_parseWirespecType, $current) {
6872
7925
  return function (it) {
6873
- $$this$either.ll($this_parseWirespecType.e2b($current));
6874
- return new Custom($current.p29_1, it);
7926
+ $$this$either.ll($this_parseWirespecType.t2b($current));
7927
+ return new Custom($current.d2a_1, it);
6875
7928
  };
6876
7929
  }
6877
7930
  function TypeParser() {
6878
7931
  }
6879
- protoOf(TypeParser).a2b = function (_this__u8e3s4, comment) {
7932
+ protoOf(TypeParser).p2b = function (_this__u8e3s4, comment) {
6880
7933
  // Inline function 'arrow.core.raise.either' call
6881
7934
  // Inline function 'arrow.core.raise.fold' call
6882
7935
  // Inline function 'kotlin.contracts.contract' call
@@ -6887,19 +7940,19 @@ protoOf(TypeParser).a2b = function (_this__u8e3s4, comment) {
6887
7940
  try {
6888
7941
  // Inline function 'arrow.core.raise.either.<anonymous>' call
6889
7942
  // Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseType.<anonymous>' call
6890
- raise.ll(_this__u8e3s4.c2a());
6891
- _this__u8e3s4.g2a(_this__u8e3s4.y29_1);
6892
- var tmp0_subject = _this__u8e3s4.y29_1.q29_1;
7943
+ raise.ll(_this__u8e3s4.q2a());
7944
+ _this__u8e3s4.u2a(_this__u8e3s4.m2a_1);
7945
+ var tmp0_subject = _this__u8e3s4.m2a_1.e2a_1;
6893
7946
  var tmp_0;
6894
7947
  if (isInterface(tmp0_subject, TypeIdentifier)) {
6895
- tmp_0 = raise.ll(parseTypeDefinition(_this__u8e3s4, TypeParser_instance, comment, new DefinitionIdentifier(_this__u8e3s4.y29_1.p29_1)));
7948
+ tmp_0 = raise.ll(parseTypeDefinition(_this__u8e3s4, TypeParser_instance, comment, new DefinitionIdentifier(_this__u8e3s4.m2a_1.d2a_1)));
6896
7949
  } else {
6897
7950
  // Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
6898
- var actual = _this__u8e3s4.y29_1;
7951
+ var actual = _this__u8e3s4.m2a_1;
6899
7952
  // Inline function 'kotlin.also' call
6900
7953
  var this_0 = new WrongTokenException(getKClass(TypeIdentifier), actual);
6901
7954
  // Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseType.<anonymous>.<anonymous>' call
6902
- raise.ll(_this__u8e3s4.c2a());
7955
+ raise.ll(_this__u8e3s4.q2a());
6903
7956
  raise.kl(this_0);
6904
7957
  }
6905
7958
  var res = tmp_0;
@@ -6927,7 +7980,7 @@ protoOf(TypeParser).a2b = function (_this__u8e3s4, comment) {
6927
7980
  }
6928
7981
  return tmp;
6929
7982
  };
6930
- protoOf(TypeParser).h2a = function (_this__u8e3s4) {
7983
+ protoOf(TypeParser).v2a = function (_this__u8e3s4) {
6931
7984
  // Inline function 'arrow.core.raise.either' call
6932
7985
  // Inline function 'arrow.core.raise.fold' call
6933
7986
  // Inline function 'kotlin.contracts.contract' call
@@ -6938,53 +7991,53 @@ protoOf(TypeParser).h2a = function (_this__u8e3s4) {
6938
7991
  try {
6939
7992
  // Inline function 'arrow.core.raise.either.<anonymous>' call
6940
7993
  // Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseTypeShape.<anonymous>' call
6941
- raise.ll(_this__u8e3s4.c2a());
6942
- _this__u8e3s4.g2a(_this__u8e3s4.y29_1);
6943
- var tmp0_subject = _this__u8e3s4.y29_1.q29_1;
7994
+ raise.ll(_this__u8e3s4.q2a());
7995
+ _this__u8e3s4.u2a(_this__u8e3s4.m2a_1);
7996
+ var tmp0_subject = _this__u8e3s4.m2a_1.e2a_1;
6944
7997
  var tmp_0;
6945
7998
  if (isInterface(tmp0_subject, WirespecIdentifier)) {
6946
7999
  // Inline function 'kotlin.collections.mutableListOf' call
6947
8000
  // Inline function 'kotlin.apply' call
6948
8001
  var this_0 = ArrayList_init_$Create$_0();
6949
8002
  // Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseTypeShape.<anonymous>.<anonymous>' call
6950
- this_0.e(raise.ll(parseField(_this__u8e3s4, TypeParser_instance, new FieldIdentifier(_this__u8e3s4.y29_1.p29_1))));
6951
- while (equals(_this__u8e3s4.y29_1.q29_1, Comma_instance)) {
6952
- raise.ll(_this__u8e3s4.c2a());
6953
- var tmp0_subject_0 = _this__u8e3s4.y29_1.q29_1;
8003
+ this_0.e(raise.ll(parseField(_this__u8e3s4, TypeParser_instance, new FieldIdentifier(_this__u8e3s4.m2a_1.d2a_1))));
8004
+ while (equals(_this__u8e3s4.m2a_1.e2a_1, Comma_instance)) {
8005
+ raise.ll(_this__u8e3s4.q2a());
8006
+ var tmp0_subject_0 = _this__u8e3s4.m2a_1.e2a_1;
6954
8007
  if (isInterface(tmp0_subject_0, WirespecIdentifier))
6955
- this_0.e(raise.ll(parseField(_this__u8e3s4, TypeParser_instance, new FieldIdentifier(_this__u8e3s4.y29_1.p29_1))));
8008
+ this_0.e(raise.ll(parseField(_this__u8e3s4, TypeParser_instance, new FieldIdentifier(_this__u8e3s4.m2a_1.d2a_1))));
6956
8009
  else {
6957
8010
  // Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
6958
- var actual = _this__u8e3s4.y29_1;
8011
+ var actual = _this__u8e3s4.m2a_1;
6959
8012
  // Inline function 'kotlin.also' call
6960
8013
  var this_1 = new WrongTokenException(getKClass(WirespecIdentifier), actual);
6961
8014
  // Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseTypeShape.<anonymous>.<anonymous>.<anonymous>' call
6962
- raise.ll(_this__u8e3s4.c2a());
8015
+ raise.ll(_this__u8e3s4.q2a());
6963
8016
  raise.kl(this_1);
6964
8017
  }
6965
8018
  }
6966
8019
  tmp_0 = this_0;
6967
8020
  } else {
6968
8021
  // Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
6969
- var actual_0 = _this__u8e3s4.y29_1;
8022
+ var actual_0 = _this__u8e3s4.m2a_1;
6970
8023
  // Inline function 'kotlin.also' call
6971
8024
  var this_2 = new WrongTokenException(getKClass(WirespecIdentifier), actual_0);
6972
8025
  // Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseTypeShape.<anonymous>.<anonymous>' call
6973
- raise.ll(_this__u8e3s4.c2a());
8026
+ raise.ll(_this__u8e3s4.q2a());
6974
8027
  raise.kl(this_2);
6975
8028
  }
6976
8029
  // Inline function 'kotlin.also' call
6977
8030
  var this_3 = tmp_0;
6978
8031
  // Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseTypeShape.<anonymous>.<anonymous>' call
6979
- if (_this__u8e3s4.y29_1.q29_1 instanceof RightCurly)
6980
- raise.ll(_this__u8e3s4.c2a());
8032
+ if (_this__u8e3s4.m2a_1.e2a_1 instanceof RightCurly)
8033
+ raise.ll(_this__u8e3s4.q2a());
6981
8034
  else {
6982
8035
  // Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
6983
- var actual_1 = _this__u8e3s4.y29_1;
8036
+ var actual_1 = _this__u8e3s4.m2a_1;
6984
8037
  // Inline function 'kotlin.also' call
6985
8038
  var this_4 = new WrongTokenException(getKClass(RightCurly), actual_1);
6986
8039
  // Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseTypeShape.<anonymous>.<anonymous>.<anonymous>' call
6987
- raise.ll(_this__u8e3s4.c2a());
8040
+ raise.ll(_this__u8e3s4.q2a());
6988
8041
  raise.kl(this_4);
6989
8042
  }
6990
8043
  // Inline function 'kotlin.let' call
@@ -7014,7 +8067,7 @@ protoOf(TypeParser).h2a = function (_this__u8e3s4) {
7014
8067
  }
7015
8068
  return tmp;
7016
8069
  };
7017
- protoOf(TypeParser).e2a = function (_this__u8e3s4) {
8070
+ protoOf(TypeParser).s2a = function (_this__u8e3s4) {
7018
8071
  // Inline function 'arrow.core.raise.either' call
7019
8072
  // Inline function 'arrow.core.raise.fold' call
7020
8073
  // Inline function 'kotlin.contracts.contract' call
@@ -7025,32 +8078,32 @@ protoOf(TypeParser).e2a = function (_this__u8e3s4) {
7025
8078
  try {
7026
8079
  // Inline function 'arrow.core.raise.either.<anonymous>' call
7027
8080
  // Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseDict.<anonymous>' call
7028
- raise.ll(_this__u8e3s4.c2a());
7029
- var type = _this__u8e3s4.y29_1.q29_1;
8081
+ raise.ll(_this__u8e3s4.q2a());
8082
+ var type = _this__u8e3s4.m2a_1.e2a_1;
7030
8083
  var tmp_0;
7031
8084
  if (isInterface(type, WirespecType_0)) {
7032
- var tmp_1 = raise.ll(TypeParser_instance.d2a(_this__u8e3s4, type));
8085
+ var tmp_1 = raise.ll(TypeParser_instance.r2a(_this__u8e3s4, type));
7033
8086
  var tmp_2;
7034
- if (_this__u8e3s4.y29_1.q29_1 instanceof RightCurly) {
7035
- raise.ll(_this__u8e3s4.c2a());
8087
+ if (_this__u8e3s4.m2a_1.e2a_1 instanceof RightCurly) {
8088
+ raise.ll(_this__u8e3s4.q2a());
7036
8089
  tmp_2 = raise.ll(isNullable(_this__u8e3s4, TypeParser_instance));
7037
8090
  } else {
7038
8091
  // Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
7039
- var actual = _this__u8e3s4.y29_1;
8092
+ var actual = _this__u8e3s4.m2a_1;
7040
8093
  // Inline function 'kotlin.also' call
7041
8094
  var this_0 = new WrongTokenException(getKClass(RightCurly), actual);
7042
8095
  // Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseDict.<anonymous>.<anonymous>' call
7043
- raise.ll(_this__u8e3s4.c2a());
8096
+ raise.ll(_this__u8e3s4.q2a());
7044
8097
  raise.kl(this_0);
7045
8098
  }
7046
8099
  tmp_0 = new Dict(tmp_1, tmp_2);
7047
8100
  } else {
7048
8101
  // Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
7049
- var actual_0 = _this__u8e3s4.y29_1;
8102
+ var actual_0 = _this__u8e3s4.m2a_1;
7050
8103
  // Inline function 'kotlin.also' call
7051
8104
  var this_1 = new WrongTokenException(getKClass(WirespecType_0), actual_0);
7052
8105
  // Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseDict.<anonymous>.<anonymous>' call
7053
- raise.ll(_this__u8e3s4.c2a());
8106
+ raise.ll(_this__u8e3s4.q2a());
7054
8107
  raise.kl(this_1);
7055
8108
  }
7056
8109
  var res = tmp_0;
@@ -7078,7 +8131,7 @@ protoOf(TypeParser).e2a = function (_this__u8e3s4) {
7078
8131
  }
7079
8132
  return tmp;
7080
8133
  };
7081
- protoOf(TypeParser).d2a = function (_this__u8e3s4, type) {
8134
+ protoOf(TypeParser).r2a = function (_this__u8e3s4, type) {
7082
8135
  // Inline function 'arrow.core.raise.either' call
7083
8136
  // Inline function 'arrow.core.raise.fold' call
7084
8137
  // Inline function 'kotlin.contracts.contract' call
@@ -7089,7 +8142,7 @@ protoOf(TypeParser).d2a = function (_this__u8e3s4, type) {
7089
8142
  try {
7090
8143
  // Inline function 'arrow.core.raise.either.<anonymous>' call
7091
8144
  // Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseWirespecType.<anonymous>' call
7092
- var current = raise.ll(_this__u8e3s4.c2a());
8145
+ var current = raise.ll(_this__u8e3s4.q2a());
7093
8146
  var tmp_0;
7094
8147
  if (type instanceof WsString) {
7095
8148
  tmp_0 = TypeParser$parseWirespecType$lambda;
@@ -7122,8 +8175,8 @@ protoOf(TypeParser).d2a = function (_this__u8e3s4, type) {
7122
8175
  }
7123
8176
  var wirespecType = tmp_0(raise.ll(isNullable(_this__u8e3s4, TypeParser_instance)));
7124
8177
  var tmp_1;
7125
- if (_this__u8e3s4.y29_1.q29_1 instanceof Brackets) {
7126
- raise.ll(_this__u8e3s4.c2a());
8178
+ if (_this__u8e3s4.m2a_1.e2a_1 instanceof Brackets) {
8179
+ raise.ll(_this__u8e3s4.q2a());
7127
8180
  tmp_1 = new Iterable(wirespecType, raise.ll(isNullable(_this__u8e3s4, TypeParser_instance)));
7128
8181
  } else {
7129
8182
  tmp_1 = wirespecType;
@@ -7159,7 +8212,7 @@ function TypeParser_getInstance() {
7159
8212
  }
7160
8213
  function toPrimitivePrecision(_this__u8e3s4) {
7161
8214
  var tmp;
7162
- switch (_this__u8e3s4.p2_1) {
8215
+ switch (_this__u8e3s4.r2_1) {
7163
8216
  case 0:
7164
8217
  tmp = Precision_P32_getInstance();
7165
8218
  break;
@@ -7175,15 +8228,15 @@ function toPrimitivePrecision(_this__u8e3s4) {
7175
8228
  function IdxAndLength(idx, length) {
7176
8229
  idx = idx === VOID ? 0 : idx;
7177
8230
  length = length === VOID ? 0 : length;
7178
- this.h2b_1 = idx;
7179
- this.i2b_1 = length;
8231
+ this.w2b_1 = idx;
8232
+ this.x2b_1 = length;
7180
8233
  }
7181
8234
  protoOf(IdxAndLength).toString = function () {
7182
- return 'IdxAndLength(idx=' + this.h2b_1 + ', length=' + this.i2b_1 + ')';
8235
+ return 'IdxAndLength(idx=' + this.w2b_1 + ', length=' + this.x2b_1 + ')';
7183
8236
  };
7184
8237
  protoOf(IdxAndLength).hashCode = function () {
7185
- var result = this.h2b_1;
7186
- result = imul(result, 31) + this.i2b_1 | 0;
8238
+ var result = this.w2b_1;
8239
+ result = imul(result, 31) + this.x2b_1 | 0;
7187
8240
  return result;
7188
8241
  };
7189
8242
  protoOf(IdxAndLength).equals = function (other) {
@@ -7192,9 +8245,9 @@ protoOf(IdxAndLength).equals = function (other) {
7192
8245
  if (!(other instanceof IdxAndLength))
7193
8246
  return false;
7194
8247
  var tmp0_other_with_cast = other instanceof IdxAndLength ? other : THROW_CCE();
7195
- if (!(this.h2b_1 === tmp0_other_with_cast.h2b_1))
8248
+ if (!(this.w2b_1 === tmp0_other_with_cast.w2b_1))
7196
8249
  return false;
7197
- if (!(this.i2b_1 === tmp0_other_with_cast.i2b_1))
8250
+ if (!(this.x2b_1 === tmp0_other_with_cast.x2b_1))
7198
8251
  return false;
7199
8252
  return true;
7200
8253
  };
@@ -7202,26 +8255,26 @@ function Coordinates(line, position, idxAndLength) {
7202
8255
  line = line === VOID ? 1 : line;
7203
8256
  position = position === VOID ? 1 : position;
7204
8257
  idxAndLength = idxAndLength === VOID ? new IdxAndLength() : idxAndLength;
7205
- this.s29_1 = line;
7206
- this.t29_1 = position;
7207
- this.u29_1 = idxAndLength;
8258
+ this.g2a_1 = line;
8259
+ this.h2a_1 = position;
8260
+ this.i2a_1 = idxAndLength;
7208
8261
  }
7209
- protoOf(Coordinates).j2b = function (line, position, idxAndLength) {
8262
+ protoOf(Coordinates).y2b = function (line, position, idxAndLength) {
7210
8263
  return new Coordinates(line, position, idxAndLength);
7211
8264
  };
7212
- protoOf(Coordinates).k2b = function (line, position, idxAndLength, $super) {
7213
- line = line === VOID ? this.s29_1 : line;
7214
- position = position === VOID ? this.t29_1 : position;
7215
- idxAndLength = idxAndLength === VOID ? this.u29_1 : idxAndLength;
7216
- return $super === VOID ? this.j2b(line, position, idxAndLength) : $super.j2b.call(this, line, position, idxAndLength);
8265
+ protoOf(Coordinates).z2b = function (line, position, idxAndLength, $super) {
8266
+ line = line === VOID ? this.g2a_1 : line;
8267
+ position = position === VOID ? this.h2a_1 : position;
8268
+ idxAndLength = idxAndLength === VOID ? this.i2a_1 : idxAndLength;
8269
+ return $super === VOID ? this.y2b(line, position, idxAndLength) : $super.y2b.call(this, line, position, idxAndLength);
7217
8270
  };
7218
8271
  protoOf(Coordinates).toString = function () {
7219
- return 'Coordinates(line=' + this.s29_1 + ', position=' + this.t29_1 + ', idxAndLength=' + this.u29_1.toString() + ')';
8272
+ return 'Coordinates(line=' + this.g2a_1 + ', position=' + this.h2a_1 + ', idxAndLength=' + this.i2a_1.toString() + ')';
7220
8273
  };
7221
8274
  protoOf(Coordinates).hashCode = function () {
7222
- var result = this.s29_1;
7223
- result = imul(result, 31) + this.t29_1 | 0;
7224
- result = imul(result, 31) + this.u29_1.hashCode() | 0;
8275
+ var result = this.g2a_1;
8276
+ result = imul(result, 31) + this.h2a_1 | 0;
8277
+ result = imul(result, 31) + this.i2a_1.hashCode() | 0;
7225
8278
  return result;
7226
8279
  };
7227
8280
  protoOf(Coordinates).equals = function (other) {
@@ -7230,35 +8283,35 @@ protoOf(Coordinates).equals = function (other) {
7230
8283
  if (!(other instanceof Coordinates))
7231
8284
  return false;
7232
8285
  var tmp0_other_with_cast = other instanceof Coordinates ? other : THROW_CCE();
7233
- if (!(this.s29_1 === tmp0_other_with_cast.s29_1))
8286
+ if (!(this.g2a_1 === tmp0_other_with_cast.g2a_1))
7234
8287
  return false;
7235
- if (!(this.t29_1 === tmp0_other_with_cast.t29_1))
8288
+ if (!(this.h2a_1 === tmp0_other_with_cast.h2a_1))
7236
8289
  return false;
7237
- if (!this.u29_1.equals(tmp0_other_with_cast.u29_1))
8290
+ if (!this.i2a_1.equals(tmp0_other_with_cast.i2a_1))
7238
8291
  return false;
7239
8292
  return true;
7240
8293
  };
7241
8294
  function Token(value, type, coordinates) {
7242
- this.p29_1 = value;
7243
- this.q29_1 = type;
7244
- this.r29_1 = coordinates;
8295
+ this.d2a_1 = value;
8296
+ this.e2a_1 = type;
8297
+ this.f2a_1 = coordinates;
7245
8298
  }
7246
- protoOf(Token).l2b = function (value, type, coordinates) {
8299
+ protoOf(Token).a2c = function (value, type, coordinates) {
7247
8300
  return new Token(value, type, coordinates);
7248
8301
  };
7249
- protoOf(Token).m2b = function (value, type, coordinates, $super) {
7250
- value = value === VOID ? this.p29_1 : value;
7251
- type = type === VOID ? this.q29_1 : type;
7252
- coordinates = coordinates === VOID ? this.r29_1 : coordinates;
7253
- return $super === VOID ? this.l2b(value, type, coordinates) : $super.l2b.call(this, value, type, coordinates);
8302
+ protoOf(Token).b2c = function (value, type, coordinates, $super) {
8303
+ value = value === VOID ? this.d2a_1 : value;
8304
+ type = type === VOID ? this.e2a_1 : type;
8305
+ coordinates = coordinates === VOID ? this.f2a_1 : coordinates;
8306
+ return $super === VOID ? this.a2c(value, type, coordinates) : $super.a2c.call(this, value, type, coordinates);
7254
8307
  };
7255
8308
  protoOf(Token).toString = function () {
7256
- return 'Token(value=' + this.p29_1 + ', type=' + toString(this.q29_1) + ', coordinates=' + this.r29_1.toString() + ')';
8309
+ return 'Token(value=' + this.d2a_1 + ', type=' + toString(this.e2a_1) + ', coordinates=' + this.f2a_1.toString() + ')';
7257
8310
  };
7258
8311
  protoOf(Token).hashCode = function () {
7259
- var result = getStringHashCode(this.p29_1);
7260
- result = imul(result, 31) + hashCode(this.q29_1) | 0;
7261
- result = imul(result, 31) + this.r29_1.hashCode() | 0;
8312
+ var result = getStringHashCode(this.d2a_1);
8313
+ result = imul(result, 31) + hashCode(this.e2a_1) | 0;
8314
+ result = imul(result, 31) + this.f2a_1.hashCode() | 0;
7262
8315
  return result;
7263
8316
  };
7264
8317
  protoOf(Token).equals = function (other) {
@@ -7267,19 +8320,19 @@ protoOf(Token).equals = function (other) {
7267
8320
  if (!(other instanceof Token))
7268
8321
  return false;
7269
8322
  var tmp0_other_with_cast = other instanceof Token ? other : THROW_CCE();
7270
- if (!(this.p29_1 === tmp0_other_with_cast.p29_1))
8323
+ if (!(this.d2a_1 === tmp0_other_with_cast.d2a_1))
7271
8324
  return false;
7272
- if (!equals(this.q29_1, tmp0_other_with_cast.q29_1))
8325
+ if (!equals(this.e2a_1, tmp0_other_with_cast.e2a_1))
7273
8326
  return false;
7274
- if (!this.r29_1.equals(tmp0_other_with_cast.r29_1))
8327
+ if (!this.f2a_1.equals(tmp0_other_with_cast.f2a_1))
7275
8328
  return false;
7276
8329
  return true;
7277
8330
  };
7278
- function plus(_this__u8e3s4, length) {
7279
- return new IdxAndLength(_this__u8e3s4.h2b_1 + length | 0, length);
7280
- }
7281
8331
  function plus_0(_this__u8e3s4, length) {
7282
- return _this__u8e3s4.k2b(VOID, _this__u8e3s4.t29_1 + length | 0, plus(_this__u8e3s4.u29_1, length));
8332
+ return new IdxAndLength(_this__u8e3s4.w2b_1 + length | 0, length);
8333
+ }
8334
+ function plus_1(_this__u8e3s4, length) {
8335
+ return _this__u8e3s4.z2b(VOID, _this__u8e3s4.h2a_1 + length | 0, plus_0(_this__u8e3s4.i2a_1, length));
7283
8336
  }
7284
8337
  function StartOfProgram() {
7285
8338
  }
@@ -7306,7 +8359,7 @@ function FieldIdentifier_0() {
7306
8359
  function TypeIdentifier() {
7307
8360
  }
7308
8361
  function EndOfProgram() {
7309
- this.n2b_1 = 'EOP';
8362
+ this.c2c_1 = 'EOP';
7310
8363
  }
7311
8364
  protoOf(EndOfProgram).toString = function () {
7312
8365
  return 'EndOfProgram';
@@ -7809,13 +8862,13 @@ function WsBytes_getInstance() {
7809
8862
  return WsBytes_instance;
7810
8863
  }
7811
8864
  function WsInteger(precision) {
7812
- this.f2b_1 = precision;
8865
+ this.u2b_1 = precision;
7813
8866
  }
7814
8867
  protoOf(WsInteger).toString = function () {
7815
- return 'WsInteger(precision=' + this.f2b_1.toString() + ')';
8868
+ return 'WsInteger(precision=' + this.u2b_1.toString() + ')';
7816
8869
  };
7817
8870
  protoOf(WsInteger).hashCode = function () {
7818
- return this.f2b_1.hashCode();
8871
+ return this.u2b_1.hashCode();
7819
8872
  };
7820
8873
  protoOf(WsInteger).equals = function (other) {
7821
8874
  if (this === other)
@@ -7823,7 +8876,7 @@ protoOf(WsInteger).equals = function (other) {
7823
8876
  if (!(other instanceof WsInteger))
7824
8877
  return false;
7825
8878
  var tmp0_other_with_cast = other instanceof WsInteger ? other : THROW_CCE();
7826
- if (!this.f2b_1.equals(tmp0_other_with_cast.f2b_1))
8879
+ if (!this.u2b_1.equals(tmp0_other_with_cast.u2b_1))
7827
8880
  return false;
7828
8881
  return true;
7829
8882
  };
@@ -7841,13 +8894,13 @@ function Precision_0(name, ordinal) {
7841
8894
  Enum.call(this, name, ordinal);
7842
8895
  }
7843
8896
  function WsNumber(precision) {
7844
- this.g2b_1 = precision;
8897
+ this.v2b_1 = precision;
7845
8898
  }
7846
8899
  protoOf(WsNumber).toString = function () {
7847
- return 'WsNumber(precision=' + this.g2b_1.toString() + ')';
8900
+ return 'WsNumber(precision=' + this.v2b_1.toString() + ')';
7848
8901
  };
7849
8902
  protoOf(WsNumber).hashCode = function () {
7850
- return this.g2b_1.hashCode();
8903
+ return this.v2b_1.hashCode();
7851
8904
  };
7852
8905
  protoOf(WsNumber).equals = function (other) {
7853
8906
  if (this === other)
@@ -7855,7 +8908,7 @@ protoOf(WsNumber).equals = function (other) {
7855
8908
  if (!(other instanceof WsNumber))
7856
8909
  return false;
7857
8910
  var tmp0_other_with_cast = other instanceof WsNumber ? other : THROW_CCE();
7858
- if (!this.g2b_1.equals(tmp0_other_with_cast.g2b_1))
8911
+ if (!this.v2b_1.equals(tmp0_other_with_cast.v2b_1))
7859
8912
  return false;
7860
8913
  return true;
7861
8914
  };
@@ -8049,17 +9102,17 @@ function TokenizeOptions(removeWhitespace, specifyTypes, specifyFieldIdentifiers
8049
9102
  removeWhitespace = removeWhitespace === VOID ? true : removeWhitespace;
8050
9103
  specifyTypes = specifyTypes === VOID ? true : specifyTypes;
8051
9104
  specifyFieldIdentifiers = specifyFieldIdentifiers === VOID ? true : specifyFieldIdentifiers;
8052
- this.o2b_1 = removeWhitespace;
8053
- this.p2b_1 = specifyTypes;
8054
- this.q2b_1 = specifyFieldIdentifiers;
9105
+ this.d2c_1 = removeWhitespace;
9106
+ this.e2c_1 = specifyTypes;
9107
+ this.f2c_1 = specifyFieldIdentifiers;
8055
9108
  }
8056
9109
  protoOf(TokenizeOptions).toString = function () {
8057
- return 'TokenizeOptions(removeWhitespace=' + this.o2b_1 + ', specifyTypes=' + this.p2b_1 + ', specifyFieldIdentifiers=' + this.q2b_1 + ')';
9110
+ return 'TokenizeOptions(removeWhitespace=' + this.d2c_1 + ', specifyTypes=' + this.e2c_1 + ', specifyFieldIdentifiers=' + this.f2c_1 + ')';
8058
9111
  };
8059
9112
  protoOf(TokenizeOptions).hashCode = function () {
8060
- var result = getBooleanHashCode(this.o2b_1);
8061
- result = imul(result, 31) + getBooleanHashCode(this.p2b_1) | 0;
8062
- result = imul(result, 31) + getBooleanHashCode(this.q2b_1) | 0;
9113
+ var result = getBooleanHashCode(this.d2c_1);
9114
+ result = imul(result, 31) + getBooleanHashCode(this.e2c_1) | 0;
9115
+ result = imul(result, 31) + getBooleanHashCode(this.f2c_1) | 0;
8063
9116
  return result;
8064
9117
  };
8065
9118
  protoOf(TokenizeOptions).equals = function (other) {
@@ -8068,11 +9121,11 @@ protoOf(TokenizeOptions).equals = function (other) {
8068
9121
  if (!(other instanceof TokenizeOptions))
8069
9122
  return false;
8070
9123
  var tmp0_other_with_cast = other instanceof TokenizeOptions ? other : THROW_CCE();
8071
- if (!(this.o2b_1 === tmp0_other_with_cast.o2b_1))
9124
+ if (!(this.d2c_1 === tmp0_other_with_cast.d2c_1))
8072
9125
  return false;
8073
- if (!(this.p2b_1 === tmp0_other_with_cast.p2b_1))
9126
+ if (!(this.e2c_1 === tmp0_other_with_cast.e2c_1))
8074
9127
  return false;
8075
- if (!(this.q2b_1 === tmp0_other_with_cast.q2b_1))
9128
+ if (!(this.f2c_1 === tmp0_other_with_cast.f2c_1))
8076
9129
  return false;
8077
9130
  return true;
8078
9131
  };
@@ -8085,12 +9138,12 @@ function tokenize_1(_this__u8e3s4, source, incompleteTokens) {
8085
9138
  var incompleteTokens_0 = incompleteTokens;
8086
9139
  $l$1: do {
8087
9140
  $l$0: do {
8088
- var _destruct__k2r9zo = extractToken($this, source_0, last(incompleteTokens_0).r29_1);
9141
+ var _destruct__k2r9zo = extractToken($this, source_0, last(incompleteTokens_0).f2a_1);
8089
9142
  var token = _destruct__k2r9zo.yd();
8090
9143
  var remaining = _destruct__k2r9zo.zd();
8091
9144
  var tokens = incompleteTokens_0.al(token);
8092
9145
  var tmp;
8093
- if (token.q29_1 instanceof EndOfProgram) {
9146
+ if (token.e2a_1 instanceof EndOfProgram) {
8094
9147
  tmp = tokens;
8095
9148
  } else {
8096
9149
  $this = $this;
@@ -8108,7 +9161,7 @@ function runOption_0(_this__u8e3s4, bool, block) {
8108
9161
  return bool ? block(_this__u8e3s4) : _this__u8e3s4;
8109
9162
  }
8110
9163
  function specifyFieldIdentifier(_this__u8e3s4, caseVariants) {
8111
- var tmp0_subject = _this__u8e3s4.q29_1;
9164
+ var tmp0_subject = _this__u8e3s4.e2a_1;
8112
9165
  var tmp;
8113
9166
  if (isInterface(tmp0_subject, FieldIdentifier_0)) {
8114
9167
  var tmp$ret$1;
@@ -8120,7 +9173,7 @@ function specifyFieldIdentifier(_this__u8e3s4, caseVariants) {
8120
9173
  // Inline function 'community.flock.wirespec.compiler.core.tokenize.specifyFieldIdentifier.<anonymous>' call
8121
9174
  var regex = element.yd();
8122
9175
  var variant = element.zd();
8123
- var result = regex.cc(removeBackticks(_this__u8e3s4.p29_1)) ? _this__u8e3s4.m2b(VOID, variant) : null;
9176
+ var result = regex.cc(removeBackticks(_this__u8e3s4.d2a_1)) ? _this__u8e3s4.b2c(VOID, variant) : null;
8124
9177
  if (!(result == null)) {
8125
9178
  tmp$ret$1 = result;
8126
9179
  break $l$block;
@@ -8136,17 +9189,17 @@ function specifyFieldIdentifier(_this__u8e3s4, caseVariants) {
8136
9189
  return tmp1_elvis_lhs == null ? _this__u8e3s4 : tmp1_elvis_lhs;
8137
9190
  }
8138
9191
  function specifyType(_this__u8e3s4, entries) {
8139
- var tmp0_subject = _this__u8e3s4.q29_1;
9192
+ var tmp0_subject = _this__u8e3s4.e2a_1;
8140
9193
  var tmp;
8141
9194
  if (isInterface(tmp0_subject, TypeIdentifier)) {
8142
- var tmp1_safe_receiver = entries.e2(_this__u8e3s4.p29_1);
9195
+ var tmp1_safe_receiver = entries.g2(_this__u8e3s4.d2a_1);
8143
9196
  var tmp_0;
8144
9197
  if (tmp1_safe_receiver == null) {
8145
9198
  tmp_0 = null;
8146
9199
  } else {
8147
9200
  // Inline function 'kotlin.let' call
8148
9201
  // Inline function 'community.flock.wirespec.compiler.core.tokenize.specifyType.<anonymous>' call
8149
- tmp_0 = _this__u8e3s4.m2b(VOID, tmp1_safe_receiver);
9202
+ tmp_0 = _this__u8e3s4.b2c(VOID, tmp1_safe_receiver);
8150
9203
  }
8151
9204
  var tmp2_elvis_lhs = tmp_0;
8152
9205
  tmp = tmp2_elvis_lhs == null ? _this__u8e3s4 : tmp2_elvis_lhs;
@@ -8163,7 +9216,7 @@ function removeWhiteSpace(_this__u8e3s4) {
8163
9216
  while (_iterator__ex2g4s.h()) {
8164
9217
  var element = _iterator__ex2g4s.i();
8165
9218
  // Inline function 'community.flock.wirespec.compiler.core.tokenize.removeWhiteSpace.<anonymous>' call
8166
- var tmp = element.q29_1;
9219
+ var tmp = element.e2a_1;
8167
9220
  if (!isInterface(tmp, WhiteSpace)) {
8168
9221
  destination.e(element);
8169
9222
  }
@@ -8206,7 +9259,7 @@ function extractToken(_this__u8e3s4, source, previousTokenCoordinates) {
8206
9259
  } else {
8207
9260
  // Inline function 'kotlin.let' call
8208
9261
  // Inline function 'community.flock.wirespec.compiler.core.tokenize.extractToken.<anonymous>' call
8209
- tmp = to(tmp0_safe_receiver_0, removePrefix(source, tmp0_safe_receiver_0.p29_1));
9262
+ tmp = to(tmp0_safe_receiver_0, removePrefix(source, tmp0_safe_receiver_0.d2a_1));
8210
9263
  }
8211
9264
  var tmp1_elvis_lhs = tmp;
8212
9265
  return tmp1_elvis_lhs == null ? new Pair(endToken(previousTokenCoordinates), '') : tmp1_elvis_lhs;
@@ -8222,9 +9275,9 @@ function toToken(_this__u8e3s4, type, previousTokenCoordinates) {
8222
9275
  function nextCoordinates(_this__u8e3s4, type, value) {
8223
9276
  var tmp;
8224
9277
  if (type instanceof NewLine) {
8225
- tmp = new Coordinates(_this__u8e3s4.s29_1 + 1 | 0, VOID, plus(_this__u8e3s4.u29_1, value.length));
9278
+ tmp = new Coordinates(_this__u8e3s4.g2a_1 + 1 | 0, VOID, plus_0(_this__u8e3s4.i2a_1, value.length));
8226
9279
  } else {
8227
- tmp = plus_0(_this__u8e3s4, value.length);
9280
+ tmp = plus_1(_this__u8e3s4, value.length);
8228
9281
  }
8229
9282
  return tmp;
8230
9283
  }
@@ -8273,9 +9326,9 @@ function optimize$lambda$lambda_1($this_optimize) {
8273
9326
  }
8274
9327
  function optimize$lambda($options, $this_optimize) {
8275
9328
  return function (tokens) {
8276
- var tmp = runOption_0(tokens, $options.o2b_1, optimize$lambda$lambda);
8277
- var tmp_0 = runOption_0(tmp, $options.p2b_1, optimize$lambda$lambda_0($this_optimize));
8278
- return runOption_0(tmp_0, $options.q2b_1, optimize$lambda$lambda_1($this_optimize));
9329
+ var tmp = runOption_0(tokens, $options.d2c_1, optimize$lambda$lambda);
9330
+ var tmp_0 = runOption_0(tmp, $options.e2c_1, optimize$lambda$lambda_0($this_optimize));
9331
+ return runOption_0(tmp_0, $options.f2c_1, optimize$lambda$lambda_1($this_optimize));
8279
9332
  };
8280
9333
  }
8281
9334
  function get_noLogger() {
@@ -8287,14 +9340,14 @@ var Level_DEBUG_instance;
8287
9340
  var Level_INFO_instance;
8288
9341
  var Level_WARN_instance;
8289
9342
  var Level_ERROR_instance;
8290
- function Companion_7() {
9343
+ function Companion_8() {
8291
9344
  }
8292
- protoOf(Companion_7).toString = function () {
9345
+ protoOf(Companion_8).toString = function () {
8293
9346
  return joinToString(get_entries_1(), ', ');
8294
9347
  };
8295
- var Companion_instance_8;
8296
- function Companion_getInstance_7() {
8297
- return Companion_instance_8;
9348
+ var Companion_instance_9;
9349
+ function Companion_getInstance_8() {
9350
+ return Companion_instance_9;
8298
9351
  }
8299
9352
  function values_1() {
8300
9353
  return [Level_DEBUG_getInstance(), Level_INFO_getInstance(), Level_WARN_getInstance(), Level_ERROR_getInstance()];
@@ -8347,7 +9400,7 @@ function Level_ERROR_getInstance() {
8347
9400
  function Logger(logLevel) {
8348
9401
  var tmp = this;
8349
9402
  var tmp_0;
8350
- switch (logLevel == null ? -1 : logLevel.p2_1) {
9403
+ switch (logLevel == null ? -1 : logLevel.r2_1) {
8351
9404
  case 0:
8352
9405
  tmp_0 = true;
8353
9406
  break;
@@ -8364,7 +9417,7 @@ function Logger(logLevel) {
8364
9417
  tmp.z22_1 = tmp_0;
8365
9418
  var tmp_1 = this;
8366
9419
  var tmp_2;
8367
- switch (logLevel == null ? -1 : logLevel.p2_1) {
9420
+ switch (logLevel == null ? -1 : logLevel.r2_1) {
8368
9421
  case 0:
8369
9422
  case 1:
8370
9423
  tmp_2 = true;
@@ -8381,7 +9434,7 @@ function Logger(logLevel) {
8381
9434
  tmp_1.a23_1 = tmp_2;
8382
9435
  var tmp_3 = this;
8383
9436
  var tmp_4;
8384
- switch (logLevel == null ? -1 : logLevel.p2_1) {
9437
+ switch (logLevel == null ? -1 : logLevel.r2_1) {
8385
9438
  case 0:
8386
9439
  case 1:
8387
9440
  case 2:
@@ -8398,7 +9451,7 @@ function Logger(logLevel) {
8398
9451
  tmp_3.b23_1 = tmp_4;
8399
9452
  var tmp_5 = this;
8400
9453
  var tmp_6;
8401
- switch (logLevel == null ? -1 : logLevel.p2_1) {
9454
+ switch (logLevel == null ? -1 : logLevel.r2_1) {
8402
9455
  case 0:
8403
9456
  case 1:
8404
9457
  case 2:
@@ -8414,17 +9467,17 @@ function Logger(logLevel) {
8414
9467
  }
8415
9468
  tmp_5.c23_1 = tmp_6;
8416
9469
  }
8417
- protoOf(Logger).r2b = function () {
9470
+ protoOf(Logger).g2c = function () {
8418
9471
  return this.z22_1;
8419
9472
  };
8420
- protoOf(Logger).s2b = function () {
9473
+ protoOf(Logger).h2c = function () {
8421
9474
  return this.a23_1;
8422
9475
  };
8423
9476
  protoOf(Logger).d23 = function (string) {
8424
- return logIf(string, this, this.r2b());
9477
+ return logIf(string, this, this.g2c());
8425
9478
  };
8426
- protoOf(Logger).c29 = function (string) {
8427
- return logIf(string, this, this.s2b());
9479
+ protoOf(Logger).o29 = function (string) {
9480
+ return logIf(string, this, this.h2c());
8428
9481
  };
8429
9482
  function NoLogger() {
8430
9483
  }
@@ -8439,16 +9492,17 @@ function _init_properties_Logger_kt__mpqsw() {
8439
9492
  }
8440
9493
  }
8441
9494
  //region block: post-declaration
8442
- protoOf(Emitter).u27 = notYetImplemented;
9495
+ protoOf(Emitter).z28 = notYetImplemented;
8443
9496
  //endregion
8444
9497
  //region block: init
8445
9498
  Spacer_instance = new Spacer();
8446
- Companion_instance_5 = new Companion_4();
8447
9499
  Companion_instance_6 = new Companion_5();
9500
+ PythonShared_instance = new PythonShared();
9501
+ Companion_instance_7 = new Companion_6();
8448
9502
  ChannelParser_instance = new ChannelParser();
8449
9503
  EndpointParser_instance = new EndpointParser();
8450
9504
  EnumParser_instance = new EnumParser();
8451
- Companion_instance_7 = new Companion_6();
9505
+ Companion_instance_8 = new Companion_7();
8452
9506
  String_instance = new String_0();
8453
9507
  Boolean_instance = new Boolean_0();
8454
9508
  Bytes_instance = new Bytes();
@@ -8487,7 +9541,7 @@ KebabCaseIdentifier_instance = new KebabCaseIdentifier();
8487
9541
  ScreamingKebabCaseIdentifier_instance = new ScreamingKebabCaseIdentifier();
8488
9542
  SnakeCaseIdentifier_instance = new SnakeCaseIdentifier();
8489
9543
  ScreamingSnakeCaseIdentifier_instance = new ScreamingSnakeCaseIdentifier();
8490
- Companion_instance_8 = new Companion_7();
9544
+ Companion_instance_9 = new Companion_8();
8491
9545
  //endregion
8492
9546
  //region block: exports
8493
9547
  export {
@@ -8496,6 +9550,7 @@ export {
8496
9550
  get_entries as get_entries4pic4pnz9ji1,
8497
9551
  JavaEmitter as JavaEmitter1iajkiqm8e1w2,
8498
9552
  KotlinEmitter as KotlinEmitter3u2bd89c6zjpn,
9553
+ PythonEmitter as PythonEmitter2ympv43525ly9,
8499
9554
  ScalaEmitter as ScalaEmittergcrbho15xuc5,
8500
9555
  TypeScriptEmitter as TypeScriptEmitter15xnhgx1fp785,
8501
9556
  WirespecEmitter as WirespecEmitterzy8hsjgf4ddx,
@@ -8557,18 +9612,18 @@ export {
8557
9612
  Level_INFO_getInstance as Level_INFO_getInstance2xs4l97ty5roh,
8558
9613
  Level_WARN_getInstance as Level_WARN_getInstanceocut4pt1mmfe,
8559
9614
  _Comment___get_value__impl__8r3pla as _Comment___get_value__impl__8r3pla12d959au1m11p,
8560
- Companion_getInstance_3 as Companion_getInstance3exl5179osn9k,
8561
- Companion_instance_5 as Companion_instance102bxzj2ej5fu,
9615
+ Companion_getInstance_4 as Companion_getInstance3exl5179osn9k,
9616
+ Companion_instance_6 as Companion_instance102bxzj2ej5fu,
8562
9617
  JavaShared_getInstance as JavaShared_getInstance39az9bxbzjcau,
8563
9618
  KotlinShared_getInstance as KotlinShared_getInstance114scpqa1akim,
8564
9619
  ScalaShared_getInstance as ScalaShared_getInstance2o4p7v3l7c5um,
8565
9620
  TypeScriptShared_getInstance as TypeScriptShared_getInstance1bw05v0xeggat,
8566
- Companion_instance_7 as Companion_instance3684q36okzpce,
9621
+ Companion_instance_8 as Companion_instance3684q36okzpce,
8567
9622
  Boolean_instance as Boolean_instance1kgsipl40p8ra,
8568
9623
  Bytes_instance as Bytes_instance34grey8zy2a2u,
8569
9624
  String_instance as String_instance3szcmve6lxm9,
8570
9625
  WirespecSpec_getInstance as WirespecSpec_getInstance1f3kvr92zi4ov,
8571
- Companion_instance_8 as Companion_instance38d4g4yp9m5as,
9626
+ Companion_instance_9 as Companion_instance38d4g4yp9m5as,
8572
9627
  };
8573
9628
  //endregion
8574
9629