@flock/wirespec 0.22.1 → 0.22.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/arrow-arrow-core.mjs +11 -5
  2. package/arrow-arrow-core.mjs.map +1 -1
  3. package/clikt-clikt-mordant.mjs +79 -79
  4. package/clikt-clikt.mjs +1343 -1343
  5. package/colormath-root-colormath.mjs +437 -437
  6. package/kotlin-kotlin-stdlib.mjs +259 -253
  7. package/kotlin-kotlin-stdlib.mjs.map +1 -1
  8. package/kotlin-openapi-bindings.mjs +10004 -10004
  9. package/kotlin-rgxgen.mjs +1762 -1762
  10. package/kotlinx-io-kotlinx-io-core.mjs +404 -404
  11. package/kotlinx-serialization-kotlinx-serialization-core.mjs +1786 -1786
  12. package/kotlinx-serialization-kotlinx-serialization-json.mjs +1514 -1508
  13. package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
  14. package/mordant-mordant.mjs +1231 -1225
  15. package/mordant-mordant.mjs.map +1 -1
  16. package/package.json +1 -1
  17. package/wirespec-src-compiler-core.mjs +4940 -4889
  18. package/wirespec-src-compiler-core.mjs.map +1 -1
  19. package/wirespec-src-compiler-emitters-java.mjs +180 -180
  20. package/wirespec-src-compiler-emitters-kotlin.mjs +134 -134
  21. package/wirespec-src-compiler-emitters-python.mjs +157 -157
  22. package/wirespec-src-compiler-emitters-rust.mjs +392 -392
  23. package/wirespec-src-compiler-emitters-scala.mjs +168 -168
  24. package/wirespec-src-compiler-emitters-typescript.mjs +229 -229
  25. package/wirespec-src-compiler-emitters-wirespec.mjs +125 -125
  26. package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
  27. package/wirespec-src-compiler-lib.mjs +388 -326
  28. package/wirespec-src-compiler-lib.mjs.map +1 -1
  29. package/wirespec-src-converter-asyncapi.mjs +639 -639
  30. package/wirespec-src-converter-avro.mjs +548 -548
  31. package/wirespec-src-converter-common.mjs +16 -16
  32. package/wirespec-src-converter-graphql.mjs +2546 -1342
  33. package/wirespec-src-converter-graphql.mjs.map +1 -1
  34. package/wirespec-src-converter-openapi.mjs +593 -593
  35. package/wirespec-src-ide-lsp.mjs +1371 -1371
  36. package/wirespec-src-plugin-arguments.mjs +146 -146
  37. package/wirespec-src-plugin-cli.mjs +89 -89
  38. package/wirespec-src-plugin-npm.d.mts +21 -3
  39. package/wirespec-src-plugin-npm.mjs +26 -26
  40. package/wirespec-src-tools-generator.mjs +24 -24
@@ -84,11 +84,11 @@ function emit(identifier) {
84
84
  var tmp;
85
85
  if (identifier instanceof DefinitionIdentifier) {
86
86
  // Inline function 'kotlin.run' call
87
- tmp = Companion_getInstance().h22_1.i1(identifier.o1()) ? addBackticks(identifier.o1()) : identifier.o1();
87
+ tmp = Companion_getInstance().l22_1.i1(identifier.o1()) ? addBackticks(identifier.o1()) : identifier.o1();
88
88
  } else {
89
89
  if (identifier instanceof FieldIdentifier) {
90
90
  // Inline function 'kotlin.run' call
91
- tmp = Companion_getInstance().h22_1.i1(identifier.o1()) || !Companion_getInstance().i22_1.rc(identifier.o1()) ? addBackticks(identifier.o1()) : identifier.o1();
91
+ tmp = Companion_getInstance().l22_1.i1(identifier.o1()) || !Companion_getInstance().m22_1.rc(identifier.o1()) ? addBackticks(identifier.o1()) : identifier.o1();
92
92
  } else {
93
93
  noWhenBranchMatchedException();
94
94
  }
@@ -98,7 +98,7 @@ function emit(identifier) {
98
98
  initMetadataForInterface(WirespecIdentifierEmitter, 'WirespecIdentifierEmitter');
99
99
  function emit_0(_this__u8e3s4) {
100
100
  // Inline function 'kotlin.takeIf' call
101
- var this_0 = _this__u8e3s4.g19_1;
101
+ var this_0 = _this__u8e3s4.h19_1;
102
102
  var tmp;
103
103
  // Inline function 'kotlin.collections.isNotEmpty' call
104
104
  if (!this_0.r()) {
@@ -116,28 +116,28 @@ function emit_0(_this__u8e3s4) {
116
116
  // Inline function 'kotlin.text.orEmpty' call
117
117
  var tmp0_elvis_lhs = tmp_0;
118
118
  var tmp$ret$3 = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs;
119
- return '@' + _this__u8e3s4.f19_1 + tmp$ret$3;
119
+ return '@' + _this__u8e3s4.g19_1 + tmp$ret$3;
120
120
  }
121
121
  function emit_1(_this__u8e3s4) {
122
122
  return '/* ' + _Comment___get_value__impl__8r3pla(_this__u8e3s4) + ' */';
123
123
  }
124
124
  initMetadataForInterface(WirespecMetaDataEmitter, 'WirespecMetaDataEmitter');
125
125
  function emit_2(type, module_0) {
126
- return trimMargin('\n |type ' + this.ds(type.jp_1) + ' {\n |' + this.us(type.kp_1) + '\n |}\n |');
126
+ return trimMargin('\n |type ' + this.es(type.kp_1) + ' {\n |' + this.vs(type.lp_1) + '\n |}\n |');
127
127
  }
128
128
  function emit_3(_this__u8e3s4) {
129
- return joinToString(_this__u8e3s4.l1c_1, ',\n', VOID, VOID, VOID, VOID, WirespecTypeDefinitionEmitter$emit$lambda(this));
129
+ return joinToString(_this__u8e3s4.hp_1, ',\n', VOID, VOID, VOID, VOID, WirespecTypeDefinitionEmitter$emit$lambda(this));
130
130
  }
131
131
  function emit_4(_this__u8e3s4) {
132
- return joinToString(_this__u8e3s4.mp_1, '', VOID, VOID, VOID, VOID, WirespecTypeDefinitionEmitter$emit$lambda_0(this)) + emitDeclaration(this, _this__u8e3s4);
132
+ return joinToString(_this__u8e3s4.np_1, '', VOID, VOID, VOID, VOID, WirespecTypeDefinitionEmitter$emit$lambda_0(this)) + emitDeclaration(this, _this__u8e3s4);
133
133
  }
134
134
  function emit_5(_this__u8e3s4) {
135
135
  var tmp;
136
136
  if (_this__u8e3s4 instanceof Field) {
137
- tmp = this.vs(_this__u8e3s4);
137
+ tmp = this.ws(_this__u8e3s4);
138
138
  } else {
139
139
  if (_this__u8e3s4 instanceof Spread) {
140
- tmp = '...' + this.ws(_this__u8e3s4.r1c_1);
140
+ tmp = '...' + this.xs(_this__u8e3s4.r1c_1);
141
141
  } else {
142
142
  noWhenBranchMatchedException();
143
143
  }
@@ -147,10 +147,10 @@ function emit_5(_this__u8e3s4) {
147
147
  function emit_6(_this__u8e3s4) {
148
148
  var tmp;
149
149
  if (_this__u8e3s4 instanceof Dict_0) {
150
- tmp = '{ ' + this.ws(_this__u8e3s4.aq_1) + ' }';
150
+ tmp = '{ ' + this.xs(_this__u8e3s4.bq_1) + ' }';
151
151
  } else {
152
152
  if (_this__u8e3s4 instanceof Iterable) {
153
- tmp = this.ws(_this__u8e3s4.xp_1) + '[]';
153
+ tmp = this.xs(_this__u8e3s4.yp_1) + '[]';
154
154
  } else {
155
155
  if (_this__u8e3s4 instanceof Unit) {
156
156
  tmp = 'Unit';
@@ -159,10 +159,10 @@ function emit_6(_this__u8e3s4) {
159
159
  tmp = 'Any';
160
160
  } else {
161
161
  if (_this__u8e3s4 instanceof Custom) {
162
- tmp = _this__u8e3s4.q18_1;
162
+ tmp = _this__u8e3s4.r18_1;
163
163
  } else {
164
164
  if (_this__u8e3s4 instanceof Primitive) {
165
- var t = _this__u8e3s4.s18_1;
165
+ var t = _this__u8e3s4.t18_1;
166
166
  var tmp_0;
167
167
  if (t instanceof String_0) {
168
168
  tmp_0 = 'String';
@@ -175,7 +175,7 @@ function emit_6(_this__u8e3s4) {
175
175
  } else {
176
176
  if (t instanceof Integer) {
177
177
  var tmp_1;
178
- switch (t.a19_1.e3_1) {
178
+ switch (t.b19_1.e3_1) {
179
179
  case 0:
180
180
  tmp_1 = 'Integer32';
181
181
  break;
@@ -190,7 +190,7 @@ function emit_6(_this__u8e3s4) {
190
190
  } else {
191
191
  if (t instanceof Number_0) {
192
192
  var tmp_2;
193
- switch (t.v18_1.e3_1) {
193
+ switch (t.w18_1.e3_1) {
194
194
  case 0:
195
195
  tmp_2 = 'Number32';
196
196
  break;
@@ -220,51 +220,43 @@ function emit_6(_this__u8e3s4) {
220
220
  }
221
221
  // Inline function 'kotlin.let' call
222
222
  var it = tmp;
223
- return _this__u8e3s4.nt() ? it + '?' : it;
223
+ return _this__u8e3s4.ot() ? it + '?' : it;
224
224
  }
225
225
  initMetadataForInterface(WirespecTypeDefinitionEmitter, 'WirespecTypeDefinitionEmitter', VOID, VOID, [WirespecIdentifierEmitter, WirespecMetaDataEmitter]);
226
226
  function emit_7(channel) {
227
- return 'channel ' + this.ds(channel.wq_1) + ' -> ' + this.ws(channel.xq_1) + '\n';
227
+ return 'channel ' + this.es(channel.xq_1) + ' -> ' + this.xs(channel.yq_1) + '\n';
228
228
  }
229
229
  initMetadataForInterface(WirespecChannelDefinitionEmitter, 'WirespecChannelDefinitionEmitter', VOID, VOID, [WirespecTypeDefinitionEmitter]);
230
- function emit_8(rpc) {
231
- return rpc.rq_1.l1c_1.r() ? 'rpc ' + this.ds(rpc.qq_1) + ' {} -> ' + emitReturn(this, rpc) + '\n' : trimMargin('\n |rpc ' + this.ds(rpc.qq_1) + ' {\n |' + this.us(rpc.rq_1) + '\n |} -> ' + emitReturn(this, rpc) + '\n |');
232
- }
233
- initMetadataForInterface(WirespecRpcDefinitionEmitter, 'WirespecRpcDefinitionEmitter', VOID, VOID, [WirespecTypeDefinitionEmitter]);
234
- function emit_9(endpoint) {
235
- var tmp = this.ds(endpoint.er_1);
236
- var tmp_0 = endpoint.fr_1.toString();
237
- var tmp_1 = emitRequest(this, endpoint.jr_1);
238
- var tmp_2 = emitPath(this, endpoint.gr_1);
239
- var tmp_3 = emitQuery(this, endpoint.hr_1);
240
- var tmp_4 = emitHeader(this, endpoint.ir_1);
241
- return trimMargin('\n |endpoint ' + tmp + ' ' + tmp_0 + tmp_1 + ' ' + tmp_2 + tmp_3 + tmp_4 + ' -> {\n |' + joinToString(endpoint.kr_1, '\n', VOID, VOID, VOID, VOID, WirespecEndpointDefinitionEmitter$emit$lambda(this)) + '\n |}\n |\n ');
230
+ function emit_8(enum_0, module_0) {
231
+ var tmp = this.es(enum_0.qs_1);
232
+ var tmp_0 = Spacer_instance.toString();
233
+ return 'enum ' + tmp + ' {\n' + tmp_0 + joinToString(enum_0.rs_1, ', ', VOID, VOID, VOID, VOID, WirespecEnumDefinitionEmitter$emit$lambda) + '\n}\n';
242
234
  }
243
- initMetadataForInterface(WirespecEndpointDefinitionEmitter, 'WirespecEndpointDefinitionEmitter', VOID, VOID, [WirespecTypeDefinitionEmitter]);
244
- function emit_10(refined) {
245
- return 'type ' + this.ds(refined.ks_1) + ' = ' + this.ws(refined.ls_1.t1d(VOID, false)) + this.ys(refined) + '\n';
235
+ initMetadataForInterface(WirespecEnumDefinitionEmitter, 'WirespecEnumDefinitionEmitter', VOID, VOID, [WirespecIdentifierEmitter]);
236
+ function emit_9(refined) {
237
+ return 'type ' + this.es(refined.ls_1) + ' = ' + this.xs(refined.ms_1.w1d(VOID, false)) + this.zs(refined) + '\n';
246
238
  }
247
239
  function emitValidator(_this__u8e3s4) {
248
- var type = _this__u8e3s4.ls_1.s18_1;
240
+ var type = _this__u8e3s4.ms_1.t18_1;
249
241
  var tmp;
250
242
  if (type instanceof Integer) {
251
- var tmp0_safe_receiver = type.b19_1;
252
- var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : this.xs(tmp0_safe_receiver);
243
+ var tmp0_safe_receiver = type.c19_1;
244
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : this.ys(tmp0_safe_receiver);
253
245
  tmp = tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs;
254
246
  } else {
255
247
  if (type instanceof Number_0) {
256
- var tmp2_safe_receiver = type.w18_1;
248
+ var tmp2_safe_receiver = type.x18_1;
257
249
  var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : emitDecimal(this, tmp2_safe_receiver);
258
250
  tmp = tmp3_elvis_lhs == null ? '' : tmp3_elvis_lhs;
259
251
  } else {
260
252
  if (type instanceof String_0) {
261
- var tmp4_safe_receiver = type.d19_1;
253
+ var tmp4_safe_receiver = type.e19_1;
262
254
  var tmp_0;
263
255
  var tmp_1 = tmp4_safe_receiver;
264
256
  if ((tmp_1 == null ? null : new RegExp_0(tmp_1)) == null) {
265
257
  tmp_0 = null;
266
258
  } else {
267
- tmp_0 = this.xs(new RegExp_0(tmp4_safe_receiver));
259
+ tmp_0 = this.ys(new RegExp_0(tmp4_safe_receiver));
268
260
  }
269
261
  var tmp5_elvis_lhs = tmp_0;
270
262
  tmp = tmp5_elvis_lhs == null ? '' : tmp5_elvis_lhs;
@@ -284,22 +276,30 @@ function emitValidator(_this__u8e3s4) {
284
276
  return tmp;
285
277
  }
286
278
  initMetadataForInterface(WirespecRefinedTypeDefinitionEmitter, 'WirespecRefinedTypeDefinitionEmitter', VOID, VOID, [WirespecTypeDefinitionEmitter]);
279
+ function emit_10(rpc) {
280
+ return rpc.sq_1.hp_1.r() ? 'rpc ' + this.es(rpc.rq_1) + ' {} -> ' + emitReturn(this, rpc) + '\n' : trimMargin('\n |rpc ' + this.es(rpc.rq_1) + ' {\n |' + this.vs(rpc.sq_1) + '\n |} -> ' + emitReturn(this, rpc) + '\n |');
281
+ }
282
+ initMetadataForInterface(WirespecRpcDefinitionEmitter, 'WirespecRpcDefinitionEmitter', VOID, VOID, [WirespecTypeDefinitionEmitter]);
287
283
  function emit_11(union) {
288
- var tmp = this.ds(union.ar_1);
289
- return 'type ' + tmp + ' = ' + joinToString(union.br_1, ' | ', VOID, VOID, VOID, VOID, WirespecUnionDefinitionEmitter$emit$lambda(this)) + '\n';
284
+ var tmp = this.es(union.br_1);
285
+ return 'type ' + tmp + ' = ' + joinToString(union.cr_1, ' | ', VOID, VOID, VOID, VOID, WirespecUnionDefinitionEmitter$emit$lambda(this)) + '\n';
290
286
  }
291
287
  initMetadataForInterface(WirespecUnionDefinitionEmitter, 'WirespecUnionDefinitionEmitter', VOID, VOID, [WirespecTypeDefinitionEmitter]);
292
288
  function emit_12(part) {
293
- return trimMargin('\n |part ' + this.ds(part.mq_1) + ' {\n |' + this.us(part.nq_1) + '\n |}\n |');
289
+ return trimMargin('\n |part ' + this.es(part.nq_1) + ' {\n |' + this.vs(part.oq_1) + '\n |}\n |');
294
290
  }
295
291
  initMetadataForInterface(WirespecPartDefinitionEmitter, 'WirespecPartDefinitionEmitter', VOID, VOID, [WirespecTypeDefinitionEmitter]);
296
- function emit_13(enum_0, module_0) {
297
- var tmp = this.ds(enum_0.ps_1);
298
- var tmp_0 = Spacer_instance.toString();
299
- return 'enum ' + tmp + ' {\n' + tmp_0 + joinToString(enum_0.qs_1, ', ', VOID, VOID, VOID, VOID, WirespecEnumDefinitionEmitter$emit$lambda) + '\n}\n';
292
+ function emit_13(endpoint) {
293
+ var tmp = this.es(endpoint.fr_1);
294
+ var tmp_0 = endpoint.gr_1.toString();
295
+ var tmp_1 = emitRequest(this, endpoint.kr_1);
296
+ var tmp_2 = emitPath(this, endpoint.hr_1);
297
+ var tmp_3 = emitQuery(this, endpoint.ir_1);
298
+ var tmp_4 = emitHeader(this, endpoint.jr_1);
299
+ return trimMargin('\n |endpoint ' + tmp + ' ' + tmp_0 + tmp_1 + ' ' + tmp_2 + tmp_3 + tmp_4 + ' -> {\n |' + joinToString(endpoint.lr_1, '\n', VOID, VOID, VOID, VOID, WirespecEndpointDefinitionEmitter$emit$lambda(this)) + '\n |}\n |\n ');
300
300
  }
301
- initMetadataForInterface(WirespecEnumDefinitionEmitter, 'WirespecEnumDefinitionEmitter', VOID, VOID, [WirespecIdentifierEmitter]);
302
- initMetadataForClass(WirespecEmitter, 'WirespecEmitter', WirespecEmitter, LanguageEmitter, [WirespecTypeDefinitionEmitter, WirespecRpcDefinitionEmitter, WirespecEndpointDefinitionEmitter, WirespecChannelDefinitionEmitter, WirespecRefinedTypeDefinitionEmitter, WirespecIdentifierEmitter, WirespecUnionDefinitionEmitter, WirespecPartDefinitionEmitter, WirespecEnumDefinitionEmitter]);
301
+ initMetadataForInterface(WirespecEndpointDefinitionEmitter, 'WirespecEndpointDefinitionEmitter', VOID, VOID, [WirespecTypeDefinitionEmitter]);
302
+ initMetadataForClass(WirespecEmitter, 'WirespecEmitter', WirespecEmitter, LanguageEmitter, [WirespecEnumDefinitionEmitter, WirespecRefinedTypeDefinitionEmitter, WirespecRpcDefinitionEmitter, WirespecChannelDefinitionEmitter, WirespecUnionDefinitionEmitter, WirespecIdentifierEmitter, WirespecTypeDefinitionEmitter, WirespecPartDefinitionEmitter, WirespecEndpointDefinitionEmitter]);
303
303
  initMetadataForCompanion(Companion);
304
304
  //endregion
305
305
  function WirespecChannelDefinitionEmitter() {
@@ -307,7 +307,7 @@ function WirespecChannelDefinitionEmitter() {
307
307
  function emitMetaData($this, $receiver) {
308
308
  var tmp0_safe_receiver = isInterface($receiver, HasAnnotations) ? $receiver : null;
309
309
  // Inline function 'kotlin.collections.orEmpty' call
310
- var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.j1c();
310
+ var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.k1c();
311
311
  // Inline function 'kotlin.collections.map' call
312
312
  var this_0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
313
313
  // Inline function 'kotlin.collections.mapTo' call
@@ -315,17 +315,17 @@ function emitMetaData($this, $receiver) {
315
315
  var _iterator__ex2g4s = this_0.t();
316
316
  while (_iterator__ex2g4s.u()) {
317
317
  var item = _iterator__ex2g4s.v();
318
- var tmp$ret$3 = $this.b22(item);
318
+ var tmp$ret$3 = $this.f22(item);
319
319
  destination.x(tmp$ret$3);
320
320
  }
321
321
  var tmp = destination;
322
- var tmp1_safe_receiver = $receiver.i1c();
322
+ var tmp1_safe_receiver = $receiver.j1c();
323
323
  var tmp_0;
324
324
  var tmp_1 = tmp1_safe_receiver;
325
325
  if ((tmp_1 == null ? null : new Comment(tmp_1)) == null) {
326
326
  tmp_0 = null;
327
327
  } else {
328
- tmp_0 = $this.c22(tmp1_safe_receiver);
328
+ tmp_0 = $this.g22(tmp1_safe_receiver);
329
329
  }
330
330
  var tmp_2 = plus(tmp, listOfNotNull(tmp_0));
331
331
  return joinToString(tmp_2, '', VOID, VOID, VOID, VOID, WirespecEmitter$emitMetaData$lambda);
@@ -335,21 +335,21 @@ function WirespecEmitter$emitMetaData$lambda(it) {
335
335
  }
336
336
  function WirespecEmitter() {
337
337
  LanguageEmitter.call(this);
338
- this.d22_1 = FileExtension_Wirespec_getInstance();
339
- this.e22_1 = true;
340
- this.f22_1 = null;
341
- this.g22_1 = '\n';
338
+ this.h22_1 = FileExtension_Wirespec_getInstance();
339
+ this.i22_1 = true;
340
+ this.j22_1 = null;
341
+ this.k22_1 = '\n';
342
342
  }
343
- protoOf(WirespecEmitter).vp = function () {
344
- return this.d22_1;
343
+ protoOf(WirespecEmitter).wp = function () {
344
+ return this.h22_1;
345
345
  };
346
- protoOf(WirespecEmitter).up = function () {
347
- return this.e22_1;
346
+ protoOf(WirespecEmitter).vp = function () {
347
+ return this.i22_1;
348
348
  };
349
349
  protoOf(WirespecEmitter).to = function (ast, logger) {
350
350
  // Inline function 'kotlin.let' call
351
351
  var e = protoOf(LanguageEmitter).to.call(this, ast, logger);
352
- var tmp = 'wirespec.' + this.vp().wr_1;
352
+ var tmp = 'wirespec.' + this.wp().xr_1;
353
353
  // Inline function 'arrow.core.NonEmptyList.map' call
354
354
  // Inline function 'kotlin.collections.map' call
355
355
  var this_0 = _NonEmptyList___get_all__impl__pmf509(e);
@@ -358,7 +358,7 @@ protoOf(WirespecEmitter).to = function (ast, logger) {
358
358
  var _iterator__ex2g4s = this_0.t();
359
359
  while (_iterator__ex2g4s.u()) {
360
360
  var item = _iterator__ex2g4s.v();
361
- var tmp$ret$5 = item.hq_1;
361
+ var tmp$ret$5 = item.iq_1;
362
362
  destination.x(tmp$ret$5);
363
363
  }
364
364
  var tmp$ret$2 = _NonEmptyList___init__impl__fxd0xp(destination);
@@ -366,20 +366,20 @@ protoOf(WirespecEmitter).to = function (ast, logger) {
366
366
  var this_1 = new Emitted(tmp, joinToString(new NonEmptyList(tmp$ret$2), '\n'));
367
367
  return _NonEmptyList___init__impl__fxd0xp(listOf(this_1));
368
368
  };
369
- protoOf(WirespecEmitter).bs = function (definition, module_0, logger) {
369
+ protoOf(WirespecEmitter).cs = function (definition, module_0, logger) {
370
370
  // Inline function 'kotlin.let' call
371
- var emitted = protoOf(LanguageEmitter).bs.call(this, definition, module_0, logger);
372
- return emitted.kq(VOID, emitMetaData(this, definition) + emitted.hq_1);
371
+ var emitted = protoOf(LanguageEmitter).cs.call(this, definition, module_0, logger);
372
+ return emitted.lq(VOID, emitMetaData(this, definition) + emitted.iq_1);
373
373
  };
374
- protoOf(WirespecEmitter).xs = function (_this__u8e3s4) {
374
+ protoOf(WirespecEmitter).ys = function (_this__u8e3s4) {
375
375
  var tmp;
376
376
  if (_this__u8e3s4 instanceof RegExp_0) {
377
- tmp = '(' + _RegExp___get_value__impl__7o7618(_this__u8e3s4.t19_1) + ')';
377
+ tmp = '(' + _RegExp___get_value__impl__7o7618(_this__u8e3s4.u19_1) + ')';
378
378
  } else {
379
379
  if (_this__u8e3s4 instanceof Bound) {
380
- var tmp1_elvis_lhs = _this__u8e3s4.y18_1;
380
+ var tmp1_elvis_lhs = _this__u8e3s4.z18_1;
381
381
  var tmp_0 = tmp1_elvis_lhs == null ? '_' : tmp1_elvis_lhs;
382
- var tmp2_elvis_lhs = _this__u8e3s4.z18_1;
382
+ var tmp2_elvis_lhs = _this__u8e3s4.a19_1;
383
383
  tmp = '(' + tmp_0 + ', ' + (tmp2_elvis_lhs == null ? '_' : tmp2_elvis_lhs) + ')';
384
384
  } else {
385
385
  noWhenBranchMatchedException();
@@ -392,9 +392,9 @@ function emitPath($this, $receiver) {
392
392
  }
393
393
  function emitRequest($this, $receiver) {
394
394
  var tmp0_safe_receiver = firstOrNull($receiver);
395
- var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.nr_1;
396
- var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.pr_1;
397
- var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : $this.ws(tmp2_safe_receiver);
395
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.or_1;
396
+ var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.qr_1;
397
+ var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : $this.xs(tmp2_safe_receiver);
398
398
  var tmp;
399
399
  if (tmp3_safe_receiver == null) {
400
400
  tmp = null;
@@ -408,7 +408,7 @@ function emitRequest($this, $receiver) {
408
408
  }
409
409
  function emitQuery($this, $receiver) {
410
410
  // Inline function 'kotlin.takeIf' call
411
- var this_0 = $receiver.l1c_1;
411
+ var this_0 = $receiver.hp_1;
412
412
  var tmp;
413
413
  // Inline function 'kotlin.collections.isNotEmpty' call
414
414
  if (!this_0.r()) {
@@ -437,7 +437,7 @@ function emitQuery($this, $receiver) {
437
437
  }
438
438
  function emitHeader($this, $receiver) {
439
439
  // Inline function 'kotlin.takeIf' call
440
- var this_0 = $receiver.l1c_1;
440
+ var this_0 = $receiver.hp_1;
441
441
  var tmp;
442
442
  // Inline function 'kotlin.collections.isNotEmpty' call
443
443
  if (!this_0.r()) {
@@ -466,28 +466,28 @@ function emitHeader($this, $receiver) {
466
466
  }
467
467
  function WirespecEndpointDefinitionEmitter$emit$lambda$lambda(this$0) {
468
468
  return function (annotation) {
469
- return this$0.b22(annotation) + ' ';
469
+ return this$0.f22(annotation) + ' ';
470
470
  };
471
471
  }
472
472
  function WirespecEndpointDefinitionEmitter$emit$lambda(this$0) {
473
473
  return function (it) {
474
474
  var tmp = Spacer_instance.toString();
475
- var tmp_0 = joinToString(it.tr_1, '', VOID, VOID, VOID, VOID, WirespecEndpointDefinitionEmitter$emit$lambda$lambda(this$0));
476
- var tmp_1 = fixStatus(it.qr_1);
477
- var tmp0_safe_receiver = it.sr_1;
478
- var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.pr_1;
479
- var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : this$0.ws(tmp1_safe_receiver);
480
- return tmp + tmp_0 + tmp_1 + ' -> ' + (tmp2_elvis_lhs == null ? 'Unit' : tmp2_elvis_lhs) + emitHeader(this$0, it.rr_1);
475
+ var tmp_0 = joinToString(it.ur_1, '', VOID, VOID, VOID, VOID, WirespecEndpointDefinitionEmitter$emit$lambda$lambda(this$0));
476
+ var tmp_1 = fixStatus(it.rr_1);
477
+ var tmp0_safe_receiver = it.tr_1;
478
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.qr_1;
479
+ var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : this$0.xs(tmp1_safe_receiver);
480
+ return tmp + tmp_0 + tmp_1 + ' -> ' + (tmp2_elvis_lhs == null ? 'Unit' : tmp2_elvis_lhs) + emitHeader(this$0, it.sr_1);
481
481
  };
482
482
  }
483
483
  function WirespecEndpointDefinitionEmitter$emitPath$lambda(this$0) {
484
484
  return function (it) {
485
485
  var tmp;
486
486
  if (it instanceof Param) {
487
- tmp = '{' + it.lr_1.o1() + ': ' + this$0.ws(it.mr_1) + '}';
487
+ tmp = '{' + it.mr_1.o1() + ': ' + this$0.xs(it.nr_1) + '}';
488
488
  } else {
489
489
  if (it instanceof Literal) {
490
- tmp = it.z19_1;
490
+ tmp = it.a1a_1;
491
491
  } else {
492
492
  noWhenBranchMatchedException();
493
493
  }
@@ -497,12 +497,12 @@ function WirespecEndpointDefinitionEmitter$emitPath$lambda(this$0) {
497
497
  }
498
498
  function WirespecEndpointDefinitionEmitter$emitQuery$lambda(this$0) {
499
499
  return function (it) {
500
- return this$0.a22(it);
500
+ return this$0.e22(it);
501
501
  };
502
502
  }
503
503
  function WirespecEndpointDefinitionEmitter$emitHeader$lambda(this$0) {
504
504
  return function (it) {
505
- return this$0.a22(it);
505
+ return this$0.e22(it);
506
506
  };
507
507
  }
508
508
  function WirespecEndpointDefinitionEmitter() {
@@ -546,8 +546,8 @@ function _init_properties_WirespecEnumDefinitionEmitter_kt__y5oa4o() {
546
546
  }
547
547
  function Companion() {
548
548
  Companion_instance = this;
549
- this.h22_1 = setOf(['type', 'enum', 'endpoint', 'channel', 'rpc', 'part']);
550
- this.i22_1 = Regex_init_$Create$('[a-z][a-zA-Z0-9_\\-]*');
549
+ this.l22_1 = setOf(['type', 'enum', 'endpoint', 'channel', 'rpc', 'part']);
550
+ this.m22_1 = Regex_init_$Create$('[a-z][a-zA-Z0-9_\\-]*');
551
551
  }
552
552
  var Companion_instance;
553
553
  function Companion_getInstance() {
@@ -563,27 +563,27 @@ function get_KEY() {
563
563
  }
564
564
  var KEY;
565
565
  function emit_14($this, $receiver) {
566
- return $receiver.h19_1 === 'default' ? emit_15($this, $receiver.i19_1) : emitEntry($this, $receiver);
566
+ return $receiver.i19_1 === 'default' ? emit_15($this, $receiver.j19_1) : emitEntry($this, $receiver);
567
567
  }
568
568
  function emitEntry($this, $receiver) {
569
- return emitKey($this, $receiver.h19_1) + ': ' + emit_15($this, $receiver.i19_1);
569
+ return emitKey($this, $receiver.i19_1) + ': ' + emit_15($this, $receiver.j19_1);
570
570
  }
571
571
  function emit_15($this, $receiver) {
572
572
  var tmp;
573
573
  if ($receiver instanceof Single) {
574
- tmp = '"' + escapeQuotes($this, $receiver.l19_1) + '"';
574
+ tmp = '"' + escapeQuotes($this, $receiver.m19_1) + '"';
575
575
  } else {
576
576
  if ($receiver instanceof Array_0) {
577
577
  var tmp_0;
578
- if ($receiver.k19_1.r()) {
578
+ if ($receiver.l19_1.r()) {
579
579
  tmp_0 = '[ ]';
580
580
  } else {
581
- tmp_0 = joinToString($receiver.k19_1, ', ', '[', ']', VOID, VOID, WirespecMetaDataEmitter$emit$lambda_0($this));
581
+ tmp_0 = joinToString($receiver.l19_1, ', ', '[', ']', VOID, VOID, WirespecMetaDataEmitter$emit$lambda_0($this));
582
582
  }
583
583
  tmp = tmp_0;
584
584
  } else {
585
585
  if ($receiver instanceof Dict) {
586
- tmp = joinToString($receiver.j19_1, ', ', '{ ', ' }', VOID, VOID, WirespecMetaDataEmitter$emit$lambda_1($this));
586
+ tmp = joinToString($receiver.k19_1, ', ', '{ ', ' }', VOID, VOID, WirespecMetaDataEmitter$emit$lambda_1($this));
587
587
  } else {
588
588
  noWhenBranchMatchedException();
589
589
  }
@@ -652,7 +652,7 @@ function _init_properties_WirespecMetaDataEmitter_kt__6x4knh() {
652
652
  function WirespecPartDefinitionEmitter() {
653
653
  }
654
654
  function emitDecimal($this, $receiver) {
655
- return '(' + toBoundDecimal($this, $receiver.y18_1) + ', ' + toBoundDecimal($this, $receiver.z18_1) + ')';
655
+ return '(' + toBoundDecimal($this, $receiver.z18_1) + ', ' + toBoundDecimal($this, $receiver.a19_1) + ')';
656
656
  }
657
657
  function toBoundDecimal($this, $receiver) {
658
658
  return $receiver == null ? '_' : contains($receiver, '.') ? $receiver : $receiver + '.0';
@@ -660,14 +660,14 @@ function toBoundDecimal($this, $receiver) {
660
660
  function WirespecRefinedTypeDefinitionEmitter() {
661
661
  }
662
662
  function emitReturn($this, $receiver) {
663
- var tmp = $this.ws($receiver.sq_1);
664
- var tmp0_safe_receiver = $receiver.tq_1;
663
+ var tmp = $this.xs($receiver.tq_1);
664
+ var tmp0_safe_receiver = $receiver.uq_1;
665
665
  var tmp_0;
666
666
  if (tmp0_safe_receiver == null) {
667
667
  tmp_0 = null;
668
668
  } else {
669
669
  // Inline function 'kotlin.let' call
670
- tmp_0 = ' ! ' + $this.ws(tmp0_safe_receiver);
670
+ tmp_0 = ' ! ' + $this.xs(tmp0_safe_receiver);
671
671
  }
672
672
  // Inline function 'kotlin.text.orEmpty' call
673
673
  var tmp0_elvis_lhs = tmp_0;
@@ -676,9 +676,9 @@ function emitReturn($this, $receiver) {
676
676
  function WirespecRpcDefinitionEmitter() {
677
677
  }
678
678
  function emitDeclaration($this, $receiver) {
679
- var tmp = $this.ds($receiver.np_1);
680
- var tmp_0 = $this.ws($receiver.op_1);
681
- var tmp0_safe_receiver = $receiver.pp_1;
679
+ var tmp = $this.es($receiver.op_1);
680
+ var tmp_0 = $this.xs($receiver.pp_1);
681
+ var tmp0_safe_receiver = $receiver.qp_1;
682
682
  var tmp_1;
683
683
  if (tmp0_safe_receiver == null) {
684
684
  tmp_1 = null;
@@ -693,19 +693,19 @@ function emitDeclaration($this, $receiver) {
693
693
  function emit_16($this, $receiver) {
694
694
  var tmp;
695
695
  if ($receiver instanceof StringValue) {
696
- tmp = '"' + escape($this, $receiver.y19_1) + '"';
696
+ tmp = '"' + escape($this, $receiver.z19_1) + '"';
697
697
  } else {
698
698
  if ($receiver instanceof IntegerValue) {
699
- tmp = $receiver.w19_1;
699
+ tmp = $receiver.x19_1;
700
700
  } else {
701
701
  if ($receiver instanceof NumberValue) {
702
- tmp = $receiver.v19_1;
702
+ tmp = $receiver.w19_1;
703
703
  } else {
704
704
  if ($receiver instanceof BooleanValue) {
705
- tmp = $receiver.x19_1.toString();
705
+ tmp = $receiver.y19_1.toString();
706
706
  } else {
707
707
  if ($receiver instanceof EnumValue) {
708
- tmp = emitEnumEntry($receiver.u19_1);
708
+ tmp = emitEnumEntry($receiver.v19_1);
709
709
  } else {
710
710
  if ($receiver instanceof NullValue) {
711
711
  tmp = 'null';
@@ -724,17 +724,17 @@ function escape($this, $receiver) {
724
724
  }
725
725
  function WirespecTypeDefinitionEmitter$emit$lambda$lambda(this$0) {
726
726
  return function (it) {
727
- return Spacer_instance.toString() + this$0.b22(it) + '\n';
727
+ return Spacer_instance.toString() + this$0.f22(it) + '\n';
728
728
  };
729
729
  }
730
730
  function WirespecTypeDefinitionEmitter$emit$lambda(this$0) {
731
731
  return function (entry) {
732
732
  var tmp;
733
733
  if (entry instanceof Field) {
734
- tmp = joinToString(entry.mp_1, '', VOID, VOID, VOID, VOID, WirespecTypeDefinitionEmitter$emit$lambda$lambda(this$0)) + (Spacer_instance.toString() + emitDeclaration(this$0, entry));
734
+ tmp = joinToString(entry.np_1, '', VOID, VOID, VOID, VOID, WirespecTypeDefinitionEmitter$emit$lambda$lambda(this$0)) + (Spacer_instance.toString() + emitDeclaration(this$0, entry));
735
735
  } else {
736
736
  if (entry instanceof Spread) {
737
- tmp = Spacer_instance.toString() + this$0.a22(entry);
737
+ tmp = Spacer_instance.toString() + this$0.e22(entry);
738
738
  } else {
739
739
  noWhenBranchMatchedException();
740
740
  }
@@ -744,35 +744,35 @@ function WirespecTypeDefinitionEmitter$emit$lambda(this$0) {
744
744
  }
745
745
  function WirespecTypeDefinitionEmitter$emit$lambda_0(this$0) {
746
746
  return function (it) {
747
- return this$0.b22(it) + ' ';
747
+ return this$0.f22(it) + ' ';
748
748
  };
749
749
  }
750
750
  function WirespecTypeDefinitionEmitter() {
751
751
  }
752
752
  function WirespecUnionDefinitionEmitter$emit$lambda(this$0) {
753
753
  return function (it) {
754
- return this$0.ws(it);
754
+ return this$0.xs(it);
755
755
  };
756
756
  }
757
757
  function WirespecUnionDefinitionEmitter() {
758
758
  }
759
759
  //region block: post-declaration
760
- protoOf(WirespecEmitter).ts = emit_2;
761
- protoOf(WirespecEmitter).us = emit_3;
762
- protoOf(WirespecEmitter).vs = emit_4;
763
- protoOf(WirespecEmitter).ws = emit_6;
764
- protoOf(WirespecEmitter).rs = emit_13;
765
- protoOf(WirespecEmitter).ms = emit_10;
766
- protoOf(WirespecEmitter).ss = emit_9;
767
- protoOf(WirespecEmitter).hs = emit_11;
768
- protoOf(WirespecEmitter).ds = emit;
769
- protoOf(WirespecEmitter).gs = emit_7;
770
- protoOf(WirespecEmitter).fs = emit_8;
771
- protoOf(WirespecEmitter).es = emit_12;
772
- protoOf(WirespecEmitter).a22 = emit_5;
773
- protoOf(WirespecEmitter).b22 = emit_0;
774
- protoOf(WirespecEmitter).c22 = emit_1;
775
- protoOf(WirespecEmitter).ys = emitValidator;
760
+ protoOf(WirespecEmitter).us = emit_2;
761
+ protoOf(WirespecEmitter).vs = emit_3;
762
+ protoOf(WirespecEmitter).ws = emit_4;
763
+ protoOf(WirespecEmitter).xs = emit_6;
764
+ protoOf(WirespecEmitter).ss = emit_8;
765
+ protoOf(WirespecEmitter).ns = emit_9;
766
+ protoOf(WirespecEmitter).ts = emit_13;
767
+ protoOf(WirespecEmitter).is = emit_11;
768
+ protoOf(WirespecEmitter).es = emit;
769
+ protoOf(WirespecEmitter).hs = emit_7;
770
+ protoOf(WirespecEmitter).gs = emit_10;
771
+ protoOf(WirespecEmitter).fs = emit_12;
772
+ protoOf(WirespecEmitter).e22 = emit_5;
773
+ protoOf(WirespecEmitter).f22 = emit_0;
774
+ protoOf(WirespecEmitter).g22 = emit_1;
775
+ protoOf(WirespecEmitter).zs = emitValidator;
776
776
  //endregion
777
777
  //region block: exports
778
778
  export {