@flock/wirespec 0.22.5 → 0.22.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/arrow-arrow-core.mjs +8 -8
  2. package/clikt-clikt-mordant.mjs +79 -79
  3. package/clikt-clikt.mjs +1364 -1363
  4. package/clikt-clikt.mjs.map +1 -1
  5. package/colormath-root-colormath.mjs +436 -436
  6. package/kotlin-kotlin-stdlib.mjs +192 -191
  7. package/kotlin-kotlin-stdlib.mjs.map +1 -1
  8. package/kotlin-openapi-bindings.mjs +10204 -10204
  9. package/kotlin-rgxgen.mjs +1771 -1771
  10. package/kotlinx-io-kotlinx-io-core.mjs +425 -425
  11. package/kotlinx-serialization-kotlinx-serialization-core.mjs +1824 -1824
  12. package/kotlinx-serialization-kotlinx-serialization-json.mjs +1509 -1509
  13. package/mordant-mordant.mjs +1246 -1246
  14. package/package.json +1 -1
  15. package/wirespec-src-compiler-core.mjs +5661 -5333
  16. package/wirespec-src-compiler-core.mjs.map +1 -1
  17. package/wirespec-src-compiler-emitters-java.mjs +171 -187
  18. package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
  19. package/wirespec-src-compiler-emitters-kotlin.mjs +138 -149
  20. package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
  21. package/wirespec-src-compiler-emitters-python.mjs +147 -160
  22. package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
  23. package/wirespec-src-compiler-emitters-rust.mjs +356 -370
  24. package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
  25. package/wirespec-src-compiler-emitters-scala.mjs +165 -175
  26. package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
  27. package/wirespec-src-compiler-emitters-typescript.mjs +187 -313
  28. package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
  29. package/wirespec-src-compiler-emitters-wirespec.mjs +79 -79
  30. package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
  31. package/wirespec-src-compiler-lib.mjs +194 -194
  32. package/wirespec-src-converter-asyncapi.mjs +545 -545
  33. package/wirespec-src-converter-avro.mjs +544 -544
  34. package/wirespec-src-converter-common.mjs +11 -11
  35. package/wirespec-src-converter-graphql.mjs +942 -942
  36. package/wirespec-src-converter-openapi.mjs +453 -453
  37. package/wirespec-src-ide-lsp.mjs +1359 -1359
  38. package/wirespec-src-plugin-arguments.mjs +153 -157
  39. package/wirespec-src-plugin-arguments.mjs.map +1 -1
  40. package/wirespec-src-plugin-cli.mjs +139 -142
  41. package/wirespec-src-plugin-cli.mjs.map +1 -1
  42. package/wirespec-src-plugin-extensions.mjs +1631 -1114
  43. package/wirespec-src-plugin-extensions.mjs.map +1 -1
  44. package/wirespec-src-plugin-npm.mjs +27 -27
  45. package/wirespec-src-tools-generator.mjs +17 -17
@@ -53,12 +53,10 @@ import {
53
53
  LinkedHashSet_init_$Create$t7gzf3ihb6pk as LinkedHashSet_init_$Create$,
54
54
  distinct10qe1scfdvu5k as distinct_0,
55
55
  HashSet_init_$Create$2w31ptb4ree5i as HashSet_init_$Create$,
56
- toSet2orjxp16sotqu as toSet,
57
56
  trimMarginhyd3fsmh8iev as trimMargin,
58
57
  Collection1k04j3hzsbod0 as Collection,
59
58
  substringAfterLastuw9v7gfiiihe as substringAfterLast,
60
59
  toIntOrNull3w2d066r9pvwm as toIntOrNull,
61
- ensureNotNull1e947j3ixpazm as ensureNotNull,
62
60
  charArrayOf27f4r3dozbrk1 as charArrayOf,
63
61
  trimEndvvzjdhan75g as trimEnd,
64
62
  } from './kotlin-kotlin-stdlib.mjs';
@@ -127,17 +125,16 @@ import {
127
125
  sanitizeNames1v55mz1p84psg as sanitizeNames,
128
126
  collectCustomTypeNames2atsrip288ol4 as collectCustomTypeNames,
129
127
  plus14o24vdaiongg as plus_2,
130
- classifyValidatableFieldsdr20i0f9b8o as classifyValidatableFields,
131
128
  importReferencesy4xv7r53sjjs as importReferences,
132
- convertWithValidation24mbxf4x2u6w4 as convertWithValidation,
133
- convert1ke01d6gmcvu7 as convert_0,
134
- convert29zpebhuxz599 as convert_1,
135
- convert39lmqftdnlhsy as convert_2,
129
+ convert23o50n5glj7h5 as convert_0,
130
+ convert1ke01d6gmcvu7 as convert_1,
131
+ convert29zpebhuxz599 as convert_2,
132
+ convert39lmqftdnlhsy as convert_3,
136
133
  convertConstraint1tall9wrxeg5k as convertConstraint,
137
134
  requestParameters17h8t6jwwzr7s as requestParameters,
138
- convert333pgxr2q05n as convert_3,
139
- convert86y6uioox2cl as convert_4,
140
- convert1o5h4ulxoqycg as convert_5,
135
+ convert333pgxr2q05n as convert_4,
136
+ convert86y6uioox2cl as convert_5,
137
+ convert1o5h4ulxoqycg as convert_6,
141
138
  get_extensions1p1y8uybwv35q as get_extensions,
142
139
  emit3e40nagyc4qho as emit_1,
143
140
  beforeGenerate2eu511tof5fa4 as beforeGenerate,
@@ -148,9 +145,9 @@ import {
148
145
  Integer3hago8kqppnkb as Integer_0,
149
146
  Case35feeoz93frh9 as Case,
150
147
  FieldCall2nusnrnm7uuow as FieldCall,
151
- Parameter37d5p43ul6u79 as Parameter,
152
- Function1wme41sk2huri as Function,
153
148
  Literal331hu9r04vptz as Literal_0,
149
+ Function1wme41sk2huri as Function,
150
+ Parameter37d5p43ul6u79 as Parameter,
154
151
  ErrorStatement32jbg3x8mt63z as ErrorStatement,
155
152
  BinaryOp3pda4rtz7k0s7 as BinaryOp,
156
153
  } from './wirespec-src-compiler-core.mjs';
@@ -169,14 +166,14 @@ initMetadataForCompanion(Companion);
169
166
  initMetadataForClass(TypeScriptEmitter, 'TypeScriptEmitter', TypeScriptEmitter, VOID, [IrEmitter]);
170
167
  //endregion
171
168
  function _get_sanitizationConfig__sns434($this) {
172
- var tmp0 = $this.b37_1;
169
+ var tmp0 = $this.k39_1;
173
170
  var tmp = KProperty1;
174
171
  // Inline function 'kotlin.getValue' call
175
172
  getPropertyCallableRef('sanitizationConfig', 1, tmp, TypeScriptEmitter$_get_sanitizationConfig_$ref_eg4rmu(), null);
176
173
  return tmp0.o1();
177
174
  }
178
175
  function _get_modelSanitizationConfig__vgg831($this) {
179
- var tmp0 = $this.c37_1;
176
+ var tmp0 = $this.l39_1;
180
177
  var tmp = KProperty1;
181
178
  // Inline function 'kotlin.getValue' call
182
179
  getPropertyCallableRef('modelSanitizationConfig', 1, tmp, TypeScriptEmitter$_get_modelSanitizationConfig_$ref_jl2735(), null);
@@ -204,7 +201,7 @@ function sanitizeSymbol($this, $receiver) {
204
201
  return destination.toString();
205
202
  }
206
203
  function sanitizeKeywords($this, $receiver) {
207
- return Companion_getInstance_0().z34().i1($receiver) ? '_' + $receiver : $receiver;
204
+ return Companion_getInstance_0().i37().i1($receiver) ? '_' + $receiver : $receiver;
208
205
  }
209
206
  function firstToLower($this, $receiver) {
210
207
  // Inline function 'kotlin.text.replaceFirstChar' call
@@ -238,7 +235,7 @@ function sanitizeParamName($this, identifier) {
238
235
  }
239
236
  }
240
237
  var parts = destination;
241
- var name = parts.b1() > 1 ? (new Name(parts)).yt() : identifier.o1();
238
+ var name = parts.c1() > 1 ? (new Name(parts)).yt() : identifier.o1();
242
239
  return sanitizeKeywords($this, sanitizeSymbol($this, name));
243
240
  }
244
241
  function buildEndpointParams($this, endpoint) {
@@ -261,26 +258,26 @@ function buildEndpointParams($this, endpoint) {
261
258
  var _iterator__ex2g4s_0 = destination.t();
262
259
  while (_iterator__ex2g4s_0.u()) {
263
260
  var element_0 = _iterator__ex2g4s_0.v();
264
- this_0.x(new EndpointParam(sanitizeParamName($this, element_0.mr_1), emitTypeScriptReference($this, element_0.nr_1.p1a(false)), element_0.nr_1.ot()));
261
+ this_0.x(new EndpointParam(sanitizeParamName($this, element_0.mr_1), emitTypeScriptReference($this, element_0.nr_1.t1a(false)), element_0.nr_1.ot()));
265
262
  }
266
263
  // Inline function 'kotlin.collections.forEach' call
267
264
  var _iterator__ex2g4s_1 = get_fields(endpoint.ir_1).t();
268
265
  while (_iterator__ex2g4s_1.u()) {
269
266
  var element_1 = _iterator__ex2g4s_1.v();
270
- this_0.x(new EndpointParam(sanitizeParamName($this, element_1.op_1), emitTypeScriptReference($this, element_1.pp_1.p1a(false)), element_1.pp_1.ot()));
267
+ this_0.x(new EndpointParam(sanitizeParamName($this, element_1.op_1), emitTypeScriptReference($this, element_1.pp_1.t1a(false)), element_1.pp_1.ot()));
271
268
  }
272
269
  // Inline function 'kotlin.collections.forEach' call
273
270
  var _iterator__ex2g4s_2 = get_fields(endpoint.jr_1).t();
274
271
  while (_iterator__ex2g4s_2.u()) {
275
272
  var element_2 = _iterator__ex2g4s_2.v();
276
- this_0.x(new EndpointParam(sanitizeParamName($this, element_2.op_1), emitTypeScriptReference($this, element_2.pp_1.p1a(false)), element_2.pp_1.ot()));
273
+ this_0.x(new EndpointParam(sanitizeParamName($this, element_2.op_1), emitTypeScriptReference($this, element_2.pp_1.t1a(false)), element_2.pp_1.ot()));
277
274
  }
278
275
  var tmp0_safe_receiver = first(endpoint.kr_1).or_1;
279
276
  if (tmp0_safe_receiver == null)
280
277
  null;
281
278
  else {
282
279
  // Inline function 'kotlin.let' call
283
- this_0.x(new EndpointParam('body', emitTypeScriptReference($this, tmp0_safe_receiver.qr_1.p1a(false)), tmp0_safe_receiver.qr_1.ot()));
280
+ this_0.x(new EndpointParam('body', emitTypeScriptReference($this, tmp0_safe_receiver.qr_1.t1a(false)), tmp0_safe_receiver.qr_1.ot()));
284
281
  }
285
282
  return this_0.q5();
286
283
  }
@@ -299,10 +296,10 @@ function emitTypeScriptReference($this, ref) {
299
296
  tmp = 'any';
300
297
  } else {
301
298
  if (ref instanceof Custom) {
302
- tmp = sanitizeSymbol($this, ref.n19_1);
299
+ tmp = sanitizeSymbol($this, ref.x19_1);
303
300
  } else {
304
301
  if (ref instanceof Primitive) {
305
- var tmp1_subject = ref.p19_1;
302
+ var tmp1_subject = ref.z19_1;
306
303
  var tmp_0;
307
304
  if (tmp1_subject instanceof String_0) {
308
305
  tmp_0 = 'string';
@@ -338,17 +335,17 @@ function emitTypeScriptReference($this, ref) {
338
335
  return tmp + (ref.ot() ? ' | undefined' : '');
339
336
  }
340
337
  function EndpointParam(name, type, nullable) {
341
- this.f37_1 = name;
342
- this.g37_1 = type;
343
- this.h37_1 = nullable;
338
+ this.o39_1 = name;
339
+ this.p39_1 = type;
340
+ this.q39_1 = nullable;
344
341
  }
345
342
  protoOf(EndpointParam).toString = function () {
346
- return 'EndpointParam(name=' + this.f37_1 + ', type=' + this.g37_1 + ', nullable=' + this.h37_1 + ')';
343
+ return 'EndpointParam(name=' + this.o39_1 + ', type=' + this.p39_1 + ', nullable=' + this.q39_1 + ')';
347
344
  };
348
345
  protoOf(EndpointParam).hashCode = function () {
349
- var result = getStringHashCode(this.f37_1);
350
- result = imul(result, 31) + getStringHashCode(this.g37_1) | 0;
351
- result = imul(result, 31) + getBooleanHashCode(this.h37_1) | 0;
346
+ var result = getStringHashCode(this.o39_1);
347
+ result = imul(result, 31) + getStringHashCode(this.p39_1) | 0;
348
+ result = imul(result, 31) + getBooleanHashCode(this.q39_1) | 0;
352
349
  return result;
353
350
  };
354
351
  protoOf(EndpointParam).equals = function (other) {
@@ -356,17 +353,17 @@ protoOf(EndpointParam).equals = function (other) {
356
353
  return true;
357
354
  if (!(other instanceof EndpointParam))
358
355
  return false;
359
- if (!(this.f37_1 === other.f37_1))
356
+ if (!(this.o39_1 === other.o39_1))
360
357
  return false;
361
- if (!(this.g37_1 === other.g37_1))
358
+ if (!(this.p39_1 === other.p39_1))
362
359
  return false;
363
- if (!(this.h37_1 === other.h37_1))
360
+ if (!(this.q39_1 === other.q39_1))
364
361
  return false;
365
362
  return true;
366
363
  };
367
364
  function Companion() {
368
365
  Companion_instance_0 = this;
369
- this.d37_1 = TypeScriptGenerator_getInstance();
366
+ this.m39_1 = TypeScriptGenerator_getInstance();
370
367
  var tmp = this;
371
368
  // Inline function 'kotlin.collections.associateWith' call
372
369
  var this_0 = listOf(['GeneratorFieldString', 'GeneratorFieldInteger64', 'GeneratorFieldInteger32', 'GeneratorFieldNumber64', 'GeneratorFieldNumber32', 'GeneratorFieldBoolean', 'GeneratorFieldBytes', 'GeneratorFieldEnum', 'GeneratorFieldUnion', 'GeneratorFieldArray', 'GeneratorFieldNullable', 'GeneratorFieldShape', 'GeneratorFieldDict']);
@@ -380,10 +377,10 @@ function Companion() {
380
377
  var tmp$ret$2 = removePrefix(element, 'GeneratorField').toLowerCase();
381
378
  result.v2(element, tmp$ret$2);
382
379
  }
383
- tmp.e37_1 = result;
380
+ tmp.n39_1 = result;
384
381
  }
385
- protoOf(Companion).z34 = function () {
386
- return this.d37_1.u1b_1;
382
+ protoOf(Companion).i37 = function () {
383
+ return this.m39_1.t1c_1;
387
384
  };
388
385
  var Companion_instance_0;
389
386
  function Companion_getInstance_0() {
@@ -396,13 +393,13 @@ function TypeScriptEmitter$sanitizationConfig$delegate$lambda$lambda(it) {
396
393
  }
397
394
  function TypeScriptEmitter$sanitizationConfig$delegate$lambda$lambda_0(this$0) {
398
395
  return function (name) {
399
- var sanitized = name.ut_1.b1() > 1 ? name.yt() : sanitizeSymbol(this$0, name.xt());
396
+ var sanitized = name.ut_1.c1() > 1 ? name.yt() : sanitizeSymbol(this$0, name.xt());
400
397
  return new Name(listOf_0(sanitized));
401
398
  };
402
399
  }
403
400
  function TypeScriptEmitter$sanitizationConfig$delegate$lambda$lambda_1(this$0) {
404
401
  return function (name) {
405
- var sanitized = name.ut_1.b1() > 1 ? name.yt() : sanitizeSymbol(this$0, name.xt());
402
+ var sanitized = name.ut_1.c1() > 1 ? name.yt() : sanitizeSymbol(this$0, name.xt());
406
403
  return new Name(listOf_0(sanitized));
407
404
  };
408
405
  }
@@ -428,14 +425,14 @@ function TypeScriptEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
428
425
  return function (stmt, tr) {
429
426
  var tmp;
430
427
  if (stmt instanceof VariableReference) {
431
- tmp = new VariableReference(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), stmt.gv_1));
428
+ tmp = new VariableReference(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), stmt.av_1));
432
429
  } else {
433
430
  if (stmt instanceof ConstructorStatement) {
434
- var tmp_0 = tr.i18(stmt.dv_1);
431
+ var tmp_0 = tr.s18(stmt.cu_1);
435
432
  // Inline function 'kotlin.collections.map' call
436
- var this_0 = stmt.ev_1;
433
+ var this_0 = stmt.du_1;
437
434
  // Inline function 'kotlin.collections.mapTo' call
438
- var destination = ArrayList_init_$Create$_0(this_0.b1());
435
+ var destination = ArrayList_init_$Create$_0(this_0.c1());
439
436
  // Inline function 'kotlin.collections.iterator' call
440
437
  var _iterator__ex2g4s = this_0.m1().t();
441
438
  while (_iterator__ex2g4s.u()) {
@@ -444,13 +441,13 @@ function TypeScriptEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
444
441
  var key = item.n1();
445
442
  // Inline function 'kotlin.collections.component2' call
446
443
  var value = item.o1();
447
- var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), key), tr.l18(value));
444
+ var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), key), tr.v18(value));
448
445
  destination.x(tmp$ret$3);
449
446
  }
450
447
  tmp = new ConstructorStatement(tmp_0, toMap(destination));
451
448
  } else {
452
449
  if (stmt instanceof Assignment) {
453
- tmp = new Assignment(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), stmt.jy_1), tr.l18(stmt.ky_1), stmt.ly_1);
450
+ tmp = new Assignment(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), stmt.dy_1), tr.v18(stmt.ey_1), stmt.fy_1);
454
451
  } else {
455
452
  tmp = transformChildren(stmt, tr);
456
453
  }
@@ -461,7 +458,7 @@ function TypeScriptEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
461
458
  }
462
459
  function TypeScriptEmitter$sanitizationConfig$delegate$lambda(this$0) {
463
460
  return function () {
464
- var tmp0_reservedKeywords = Companion_getInstance_0().z34();
461
+ var tmp0_reservedKeywords = Companion_getInstance_0().i37();
465
462
  var tmp = TypeScriptEmitter$sanitizationConfig$delegate$lambda$lambda;
466
463
  var tmp_0 = TypeScriptEmitter$sanitizationConfig$delegate$lambda$lambda_0(this$0);
467
464
  var tmp_1 = TypeScriptEmitter$sanitizationConfig$delegate$lambda$lambda_1(this$0);
@@ -484,7 +481,7 @@ function TypeScriptEmitter$modelSanitizationConfig$delegate$lambda(this$0) {
484
481
  return function () {
485
482
  var tmp = _get_sanitizationConfig__sns434(this$0);
486
483
  var tmp_0 = TypeScriptEmitter$modelSanitizationConfig$delegate$lambda$lambda;
487
- return tmp.g1c(VOID, VOID, tmp_0, VOID, TypeScriptEmitter$modelSanitizationConfig$delegate$lambda$lambda_0);
484
+ return tmp.f1d(VOID, VOID, tmp_0, VOID, TypeScriptEmitter$modelSanitizationConfig$delegate$lambda$lambda_0);
488
485
  };
489
486
  }
490
487
  function TypeScriptEmitter$_get_modelSanitizationConfig_$ref_jl2735() {
@@ -495,27 +492,27 @@ function TypeScriptEmitter$_get_modelSanitizationConfig_$ref_jl2735() {
495
492
  function TypeScriptEmitter$emitShared$lambda(element, transformer) {
496
493
  var tmp;
497
494
  if (element instanceof Namespace) {
498
- var injected = element.nv_1.equals(Companion_getInstance().wt('Wirespec')) ? listOf_0(new RawElement('export type Type = string')) : emptyList();
495
+ var injected = element.hv_1.equals(Companion_getInstance().wt('Wirespec')) ? listOf_0(new RawElement('export type Type = string')) : emptyList();
499
496
  var tmp_0;
500
497
  // Inline function 'kotlin.collections.isNotEmpty' call
501
498
  if (!injected.r()) {
502
499
  // Inline function 'community.flock.wirespec.compiler.core.ir.withElements' call
503
- var elements = plus(injected, element.jv());
500
+ var elements = plus(injected, element.dv());
504
501
  var tmp_1;
505
502
  if (element instanceof File) {
506
- tmp_1 = element.lv(VOID, elements);
503
+ tmp_1 = element.fv(VOID, elements);
507
504
  } else {
508
505
  if (element instanceof Struct) {
509
- tmp_1 = element.sx(VOID, VOID, VOID, VOID, elements);
506
+ tmp_1 = element.mx(VOID, VOID, VOID, VOID, elements);
510
507
  } else {
511
508
  if (element instanceof Namespace) {
512
- tmp_1 = element.sv(VOID, elements);
509
+ tmp_1 = element.mv(VOID, elements);
513
510
  } else {
514
511
  if (element instanceof Interface) {
515
- tmp_1 = element.bw(VOID, elements);
512
+ tmp_1 = element.vv(VOID, elements);
516
513
  } else {
517
514
  if (element instanceof Enum) {
518
- tmp_1 = element.gx(VOID, VOID, VOID, VOID, VOID, elements);
515
+ tmp_1 = element.ax(VOID, VOID, VOID, VOID, VOID, elements);
519
516
  } else {
520
517
  if (element instanceof Main) {
521
518
  tmp_1 = element;
@@ -543,27 +540,27 @@ function TypeScriptEmitter$emitShared$lambda_0($api) {
543
540
  return function (element, transformer) {
544
541
  var tmp;
545
542
  if (element instanceof Namespace) {
546
- var injected = element.nv_1.equals(Companion_getInstance().wt('Wirespec')) ? listOf_0(new RawElement($api)) : emptyList();
543
+ var injected = element.hv_1.equals(Companion_getInstance().wt('Wirespec')) ? listOf_0(new RawElement($api)) : emptyList();
547
544
  var tmp_0;
548
545
  // Inline function 'kotlin.collections.isNotEmpty' call
549
546
  if (!injected.r()) {
550
547
  // Inline function 'community.flock.wirespec.compiler.core.ir.withElements' call
551
- var elements = plus(element.jv(), injected);
548
+ var elements = plus(element.dv(), injected);
552
549
  var tmp_1;
553
550
  if (element instanceof File) {
554
- tmp_1 = element.lv(VOID, elements);
551
+ tmp_1 = element.fv(VOID, elements);
555
552
  } else {
556
553
  if (element instanceof Struct) {
557
- tmp_1 = element.sx(VOID, VOID, VOID, VOID, elements);
554
+ tmp_1 = element.mx(VOID, VOID, VOID, VOID, elements);
558
555
  } else {
559
556
  if (element instanceof Namespace) {
560
- tmp_1 = element.sv(VOID, elements);
557
+ tmp_1 = element.mv(VOID, elements);
561
558
  } else {
562
559
  if (element instanceof Interface) {
563
- tmp_1 = element.bw(VOID, elements);
560
+ tmp_1 = element.vv(VOID, elements);
564
561
  } else {
565
562
  if (element instanceof Enum) {
566
- tmp_1 = element.gx(VOID, VOID, VOID, VOID, VOID, elements);
563
+ tmp_1 = element.ax(VOID, VOID, VOID, VOID, VOID, elements);
567
564
  } else {
568
565
  if (element instanceof Main) {
569
566
  tmp_1 = element;
@@ -591,13 +588,13 @@ function TypeScriptEmitter$emitShared$lambda_0($api) {
591
588
  function TypeScriptEmitter$emitShared$lambda_1(element, transformer) {
592
589
  var tmp;
593
590
  if (element instanceof Struct) {
594
- var tmp0_safe_receiver = Companion_getInstance_0().e37_1.s2(element.hx_1.xt());
591
+ var tmp0_safe_receiver = Companion_getInstance_0().n39_1.s2(element.bx_1.xt());
595
592
  var tmp_0;
596
593
  if (tmp0_safe_receiver == null) {
597
594
  tmp_0 = null;
598
595
  } else {
599
596
  // Inline function 'kotlin.let' call
600
- tmp_0 = element.sx(VOID, plus(listOf_0(new Field(Companion_getInstance().wt('kind'), new StringLiteral(tmp0_safe_receiver))), element.ix_1));
597
+ tmp_0 = element.mx(VOID, plus(listOf_0(new Field(Companion_getInstance().wt('kind'), new StringLiteral(tmp0_safe_receiver))), element.cx_1));
601
598
  }
602
599
  var tmp1_elvis_lhs = tmp_0;
603
600
  tmp = tmp1_elvis_lhs == null ? element : tmp1_elvis_lhs;
@@ -617,24 +614,24 @@ function TypeScriptEmitter$emitGenerator$lambda($definition) {
617
614
  var tmp_1;
618
615
  var tmp_2;
619
616
  if (expr instanceof FunctionCall) {
620
- var tmp_3 = expr.cu_1;
617
+ var tmp_3 = expr.ky_1;
621
618
  tmp_2 = tmp_3 instanceof RawExpression;
622
619
  } else {
623
620
  tmp_2 = false;
624
621
  }
625
622
  if (tmp_2) {
626
- var tmp_4 = expr.cu_1;
627
- tmp_1 = (tmp_4 instanceof RawExpression ? tmp_4 : THROW_CCE()).iy_1 === $definition.qs_1.o1();
623
+ var tmp_4 = expr.ky_1;
624
+ tmp_1 = (tmp_4 instanceof RawExpression ? tmp_4 : THROW_CCE()).cy_1 === $definition.qs_1.o1();
628
625
  } else {
629
626
  tmp_1 = false;
630
627
  }
631
628
  if (tmp_1) {
632
- tmp_0 = expr.eu_1.equals(Companion_getInstance().wt('valueOf'));
629
+ tmp_0 = expr.my_1.equals(Companion_getInstance().wt('valueOf'));
633
630
  } else {
634
631
  tmp_0 = false;
635
632
  }
636
633
  if (tmp_0) {
637
- var tmp0_elvis_lhs = expr.fu_1.s2(Companion_getInstance().wt('label'));
634
+ var tmp0_elvis_lhs = expr.ny_1.s2(Companion_getInstance().wt('label'));
638
635
  tmp = tmp0_elvis_lhs == null ? expr : tmp0_elvis_lhs;
639
636
  } else {
640
637
  tmp = transformChildren_1(expr, t);
@@ -647,12 +644,12 @@ function TypeScriptEmitter$emitGenerator$lambda_0($definition) {
647
644
  var tmp;
648
645
  var tmp_0;
649
646
  if (expr instanceof ConstructorStatement) {
650
- tmp_0 = equals(expr.dv_1, Custom_init_$Create$($definition.ls_1.o1()));
647
+ tmp_0 = equals(expr.cu_1, Custom_init_$Create$($definition.ls_1.o1()));
651
648
  } else {
652
649
  tmp_0 = false;
653
650
  }
654
651
  if (tmp_0) {
655
- var tmp0_elvis_lhs = expr.ev_1.s2(Companion_getInstance().wt('value'));
652
+ var tmp0_elvis_lhs = expr.du_1.s2(Companion_getInstance().wt('value'));
656
653
  tmp = tmp0_elvis_lhs == null ? expr : tmp0_elvis_lhs;
657
654
  } else {
658
655
  tmp = transformChildren_1(expr, t);
@@ -663,9 +660,9 @@ function TypeScriptEmitter$emitGenerator$lambda_0($definition) {
663
660
  function TypeScriptEmitter$emitGenerator$lambda_1(expr, t) {
664
661
  var tmp;
665
662
  if (expr instanceof ConstructorStatement) {
666
- var tmp_0 = expr.dv_1;
663
+ var tmp_0 = expr.cu_1;
667
664
  var tmp0_safe_receiver = tmp_0 instanceof Custom_0 ? tmp_0 : null;
668
- var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.qu_1;
665
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.nu_1;
669
666
  var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.xt();
670
667
  var typeName = tmp2_safe_receiver == null ? null : removePrefix(tmp2_safe_receiver, 'Wirespec.');
671
668
  var tmp_1;
@@ -673,16 +670,16 @@ function TypeScriptEmitter$emitGenerator$lambda_1(expr, t) {
673
670
  tmp_1 = null;
674
671
  } else {
675
672
  // Inline function 'kotlin.let' call
676
- tmp_1 = Companion_getInstance_0().e37_1.s2(typeName);
673
+ tmp_1 = Companion_getInstance_0().n39_1.s2(typeName);
677
674
  }
678
675
  var kind = tmp_1;
679
676
  var tmp_2;
680
677
  if (!(kind == null)) {
681
678
  var tmp_3 = mapOf(to(Companion_getInstance().wt('kind'), new Literal(kind, String_instance)));
682
679
  // Inline function 'kotlin.collections.mapValues' call
683
- var this_0 = expr.ev_1;
680
+ var this_0 = expr.du_1;
684
681
  // Inline function 'kotlin.collections.mapValuesTo' call
685
- var destination = LinkedHashMap_init_$Create$(mapCapacity(this_0.b1()));
682
+ var destination = LinkedHashMap_init_$Create$(mapCapacity(this_0.c1()));
686
683
  // Inline function 'kotlin.collections.associateByTo' call
687
684
  var _iterator__ex2g4s = this_0.m1().t();
688
685
  while (_iterator__ex2g4s.u()) {
@@ -690,10 +687,10 @@ function TypeScriptEmitter$emitGenerator$lambda_1(expr, t) {
690
687
  var tmp_4 = element.n1();
691
688
  // Inline function 'kotlin.collections.component2' call
692
689
  var v = element.o1();
693
- var tmp$ret$6 = t.l18(v);
690
+ var tmp$ret$6 = t.v18(v);
694
691
  destination.v2(tmp_4, tmp$ret$6);
695
692
  }
696
- tmp_2 = new ConstructorStatement(expr.dv_1, plus_0(tmp_3, destination));
693
+ tmp_2 = new ConstructorStatement(expr.cu_1, plus_0(tmp_3, destination));
697
694
  } else {
698
695
  tmp_2 = transformChildren(expr, t);
699
696
  }
@@ -720,17 +717,17 @@ function TypeScriptEmitter$emitGenerator$lambda_5($generatorOwnName, $generatorR
720
717
  var tmp_0;
721
718
  var tmp_1;
722
719
  if (expr instanceof RawExpression) {
723
- tmp_1 = endsWith(expr.iy_1, 'Generator');
720
+ tmp_1 = endsWith(expr.cy_1, 'Generator');
724
721
  } else {
725
722
  tmp_1 = false;
726
723
  }
727
724
  if (tmp_1) {
728
- tmp_0 = !(expr.iy_1 === $generatorOwnName);
725
+ tmp_0 = !(expr.cy_1 === $generatorOwnName);
729
726
  } else {
730
727
  tmp_0 = false;
731
728
  }
732
729
  if (tmp_0) {
733
- $generatorRefs.x(expr.iy_1);
730
+ $generatorRefs.x(expr.cy_1);
734
731
  tmp = Unit_instance;
735
732
  }
736
733
  return transformChildren_1(expr, t);
@@ -745,22 +742,22 @@ function TypeScriptEmitter$emit$injectApiConst$lambda($endpoint) {
745
742
  // Inline function 'kotlin.collections.isNotEmpty' call
746
743
  if (!injected.r()) {
747
744
  // Inline function 'community.flock.wirespec.compiler.core.ir.withElements' call
748
- var elements = plus(element.jv(), injected);
745
+ var elements = plus(element.dv(), injected);
749
746
  var tmp_1;
750
747
  if (element instanceof File) {
751
- tmp_1 = element.lv(VOID, elements);
748
+ tmp_1 = element.fv(VOID, elements);
752
749
  } else {
753
750
  if (element instanceof Struct) {
754
- tmp_1 = element.sx(VOID, VOID, VOID, VOID, elements);
751
+ tmp_1 = element.mx(VOID, VOID, VOID, VOID, elements);
755
752
  } else {
756
753
  if (element instanceof Namespace) {
757
- tmp_1 = element.sv(VOID, elements);
754
+ tmp_1 = element.mv(VOID, elements);
758
755
  } else {
759
756
  if (element instanceof Interface) {
760
- tmp_1 = element.bw(VOID, elements);
757
+ tmp_1 = element.vv(VOID, elements);
761
758
  } else {
762
759
  if (element instanceof Enum) {
763
- tmp_1 = element.gx(VOID, VOID, VOID, VOID, VOID, elements);
760
+ tmp_1 = element.ax(VOID, VOID, VOID, VOID, VOID, elements);
764
761
  } else {
765
762
  if (element instanceof Main) {
766
763
  tmp_1 = element;
@@ -792,14 +789,14 @@ function emit$injectApiConst(_this__u8e3s4, $endpoint) {
792
789
  var tmp = scope;
793
790
  // Inline function 'community.flock.wirespec.compiler.core.ir.injectAfter' call
794
791
  // Inline function 'community.flock.wirespec.compiler.core.ir.transformMatchingElements' call
795
- var this_0 = scope.q18_1;
792
+ var this_0 = scope.a19_1;
796
793
  // Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
797
794
  // Inline function 'kotlin.apply' call
798
795
  var this_1 = new TransformerBuilder();
799
- this_1.k19(TypeScriptEmitter$emit$injectApiConst$lambda($endpoint));
800
- var tmp$ret$5 = this_1.f19();
801
- tmp.q18_1 = transform(this_0, tmp$ret$5);
802
- var tmp_0 = scope.q18_1;
796
+ this_1.u19(TypeScriptEmitter$emit$injectApiConst$lambda($endpoint));
797
+ var tmp$ret$5 = this_1.p19();
798
+ tmp.a19_1 = transform(this_0, tmp$ret$5);
799
+ var tmp_0 = scope.a19_1;
803
800
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
804
801
  }
805
802
  function emit$applyCallParamsIfNeeded(_this__u8e3s4, hasRequestParams) {
@@ -813,20 +810,20 @@ function TypeScriptEmitter$emitClient$lambda(this$0) {
813
810
  }
814
811
  function TypeScriptEmitter() {
815
812
  Companion_getInstance_0();
816
- this.z36_1 = TypeScriptGenerator_getInstance();
817
- this.a37_1 = FileExtension_TypeScript_getInstance();
813
+ this.i39_1 = TypeScriptGenerator_getInstance();
814
+ this.j39_1 = FileExtension_TypeScript_getInstance();
818
815
  var tmp = this;
819
- tmp.b37_1 = lazy(TypeScriptEmitter$sanitizationConfig$delegate$lambda(this));
816
+ tmp.k39_1 = lazy(TypeScriptEmitter$sanitizationConfig$delegate$lambda(this));
820
817
  var tmp_0 = this;
821
- tmp_0.c37_1 = lazy(TypeScriptEmitter$modelSanitizationConfig$delegate$lambda(this));
818
+ tmp_0.l39_1 = lazy(TypeScriptEmitter$modelSanitizationConfig$delegate$lambda(this));
822
819
  }
823
- protoOf(TypeScriptEmitter).d1b = function () {
824
- return this.z36_1;
820
+ protoOf(TypeScriptEmitter).h1b = function () {
821
+ return this.i39_1;
825
822
  };
826
823
  protoOf(TypeScriptEmitter).wp = function () {
827
- return this.a37_1;
824
+ return this.j39_1;
828
825
  };
829
- protoOf(TypeScriptEmitter).y1a = function () {
826
+ protoOf(TypeScriptEmitter).c1b = function () {
830
827
  var packageName = Companion_instance.at('community.flock.wirespec');
831
828
  var api = 'export type Client<REQ extends Request<unknown>, RES extends Response<unknown>> = (serialization: Serialization) => {\n to: (request: REQ) => RawRequest;\n from: (response: RawResponse) => RES\n}\nexport type Server<REQ extends Request<unknown>, RES extends Response<unknown>> = (serialization: Serialization) => {\n from: (request: RawRequest) => REQ;\n to: (response: RES) => RawResponse\n}\nexport type Api<REQ extends Request<unknown>, RES extends Response<unknown>> = {\n name: string;\n method: Method,\n path: string,\n client: Client<REQ, RES>;\n server: Server<REQ, RES>\n}';
832
829
  // Inline function 'community.flock.wirespec.compiler.core.ir.transform' call
@@ -836,35 +833,35 @@ protoOf(TypeScriptEmitter).y1a = function () {
836
833
  var tmp = scope;
837
834
  // Inline function 'community.flock.wirespec.compiler.core.ir.injectBefore' call
838
835
  // Inline function 'community.flock.wirespec.compiler.core.ir.transformMatchingElements' call
839
- var this_1 = scope.q18_1;
836
+ var this_1 = scope.a19_1;
840
837
  // Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
841
838
  // Inline function 'kotlin.apply' call
842
839
  var this_2 = new TransformerBuilder();
843
- this_2.k19(TypeScriptEmitter$emitShared$lambda);
844
- var tmp$ret$5 = this_2.f19();
845
- tmp.q18_1 = transform(this_1, tmp$ret$5);
840
+ this_2.u19(TypeScriptEmitter$emitShared$lambda);
841
+ var tmp$ret$5 = this_2.p19();
842
+ tmp.a19_1 = transform(this_1, tmp$ret$5);
846
843
  // Inline function 'community.flock.wirespec.compiler.core.ir.TransformScope.injectAfter' call
847
844
  var tmp_0 = scope;
848
845
  // Inline function 'community.flock.wirespec.compiler.core.ir.injectAfter' call
849
846
  // Inline function 'community.flock.wirespec.compiler.core.ir.transformMatchingElements' call
850
- var this_3 = scope.q18_1;
847
+ var this_3 = scope.a19_1;
851
848
  // Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
852
849
  // Inline function 'kotlin.apply' call
853
850
  var this_4 = new TransformerBuilder();
854
- this_4.k19(TypeScriptEmitter$emitShared$lambda_0(api));
855
- var tmp$ret$11 = this_4.f19();
856
- tmp_0.q18_1 = transform(this_3, tmp$ret$11);
851
+ this_4.u19(TypeScriptEmitter$emitShared$lambda_0(api));
852
+ var tmp$ret$11 = this_4.p19();
853
+ tmp_0.a19_1 = transform(this_3, tmp$ret$11);
857
854
  // Inline function 'community.flock.wirespec.compiler.core.ir.TransformScope.matchingElements' call
858
855
  var tmp_1 = scope;
859
856
  // Inline function 'community.flock.wirespec.compiler.core.ir.transformMatchingElements' call
860
- var this_5 = scope.q18_1;
857
+ var this_5 = scope.a19_1;
861
858
  // Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
862
859
  // Inline function 'kotlin.apply' call
863
860
  var this_6 = new TransformerBuilder();
864
- this_6.k19(TypeScriptEmitter$emitShared$lambda_1);
865
- var tmp$ret$16 = this_6.f19();
866
- tmp_1.q18_1 = transform(this_5, tmp$ret$16);
867
- var tmp_2 = scope.q18_1;
861
+ this_6.u19(TypeScriptEmitter$emitShared$lambda_1);
862
+ var tmp$ret$16 = this_6.p19();
863
+ tmp_1.a19_1 = transform(this_5, tmp$ret$16);
864
+ var tmp_2 = scope.a19_1;
868
865
  return isInterface(tmp_2, Element) ? tmp_2 : THROW_CCE();
869
866
  };
870
867
  protoOf(TypeScriptEmitter).to = function (ast, logger) {
@@ -915,7 +912,7 @@ protoOf(TypeScriptEmitter).to = function (ast, logger) {
915
912
  }
916
913
  // Inline function 'kotlin.collections.map' call
917
914
  // Inline function 'kotlin.collections.mapTo' call
918
- var destination_2 = ArrayList_init_$Create$_0(destination_1.b1());
915
+ var destination_2 = ArrayList_init_$Create$_0(destination_1.c1());
919
916
  // Inline function 'kotlin.collections.iterator' call
920
917
  var _iterator__ex2g4s_2 = destination_1.m1().t();
921
918
  while (_iterator__ex2g4s_2.u()) {
@@ -933,9 +930,9 @@ protoOf(TypeScriptEmitter).to = function (ast, logger) {
933
930
  protoOf(TypeScriptEmitter).cs = function (definition, module_0, logger) {
934
931
  var file = emit_0.call(this, definition, module_0, logger);
935
932
  var subPackageName = plus_1(Companion_instance.at(''), definition);
936
- return new File(Companion_getInstance().wt(subPackageName.dt() + sanitizeSymbol(this, file.hv_1.zt())), plus(listOf_0(import_0('../Wirespec', 'Wirespec')), file.iv_1));
933
+ return new File(Companion_getInstance().wt(subPackageName.dt() + sanitizeSymbol(this, file.bv_1.zt())), plus(listOf_0(import_0('../Wirespec', 'Wirespec')), file.cv_1));
937
934
  };
938
- protoOf(TypeScriptEmitter).g1b = function (definition, module_0) {
935
+ protoOf(TypeScriptEmitter).k1b = function (definition, module_0) {
939
936
  var tmp;
940
937
  if (definition instanceof Type) {
941
938
  tmp = convertToGenerator_2(definition, module_0);
@@ -944,16 +941,16 @@ protoOf(TypeScriptEmitter).g1b = function (definition, module_0) {
944
941
  // Inline function 'community.flock.wirespec.compiler.core.ir.transform' call
945
942
  var this_0 = convertToGenerator_1(definition);
946
943
  var scope = new TransformScope(this_0);
947
- scope.h19(TypeScriptEmitter$emitGenerator$lambda(definition));
948
- var tmp_0 = scope.q18_1;
944
+ scope.r19(TypeScriptEmitter$emitGenerator$lambda(definition));
945
+ var tmp_0 = scope.a19_1;
949
946
  tmp = isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
950
947
  } else {
951
948
  if (definition instanceof Refined) {
952
949
  // Inline function 'community.flock.wirespec.compiler.core.ir.transform' call
953
950
  var this_1 = convertToGenerator_0(definition);
954
951
  var scope_0 = new TransformScope(this_1);
955
- scope_0.h19(TypeScriptEmitter$emitGenerator$lambda_0(definition));
956
- var tmp_1 = scope_0.q18_1;
952
+ scope_0.r19(TypeScriptEmitter$emitGenerator$lambda_0(definition));
953
+ var tmp_1 = scope_0.a19_1;
957
954
  tmp = isInterface(tmp_1, Element) ? tmp_1 : THROW_CCE();
958
955
  } else {
959
956
  if (definition instanceof Union) {
@@ -967,8 +964,8 @@ protoOf(TypeScriptEmitter).g1b = function (definition, module_0) {
967
964
  // Inline function 'community.flock.wirespec.compiler.core.ir.transform' call
968
965
  var this_2 = sanitizeNames(tmp, _get_sanitizationConfig__sns434(this));
969
966
  var scope_1 = new TransformScope(this_2);
970
- scope_1.h19(TypeScriptEmitter$emitGenerator$lambda_1);
971
- var tmp_2 = scope_1.q18_1;
967
+ scope_1.r19(TypeScriptEmitter$emitGenerator$lambda_1);
968
+ var tmp_2 = scope_1.a19_1;
972
969
  var generatorFile = isInterface(tmp_2, Element) ? tmp_2 : THROW_CCE();
973
970
  var generatorOwnName = definition.ds().o1() + 'Generator';
974
971
  var tmp_3 = asSequence(collectCustomTypeNames(generatorFile));
@@ -979,8 +976,8 @@ protoOf(TypeScriptEmitter).g1b = function (definition, module_0) {
979
976
  var generatorRefs = LinkedHashSet_init_$Create$();
980
977
  // Inline function 'community.flock.wirespec.compiler.core.ir.transform' call
981
978
  var scope_2 = new TransformScope(generatorFile);
982
- scope_2.h19(TypeScriptEmitter$emitGenerator$lambda_5(generatorOwnName, generatorRefs));
983
- var tmp_6 = scope_2.q18_1;
979
+ scope_2.r19(TypeScriptEmitter$emitGenerator$lambda_5(generatorOwnName, generatorRefs));
980
+ var tmp_6 = scope_2.a19_1;
984
981
  isInterface(tmp_6, Element) || THROW_CCE();
985
982
  // Inline function 'kotlin.collections.filter' call
986
983
  // Inline function 'kotlin.collections.filterTo' call
@@ -1024,10 +1021,9 @@ protoOf(TypeScriptEmitter).g1b = function (definition, module_0) {
1024
1021
  }
1025
1022
  var modelImports = destination_2;
1026
1023
  var subPackageName = plus_2(Companion_instance.at(''), 'generator');
1027
- return new File(Companion_getInstance().wt(subPackageName.dt() + sanitizeSymbol(this, generatorFile.hv_1.zt())), plus(plus(plus(listOf_0(import_0('../Wirespec', 'Wirespec')), modelImports), generatorImports), generatorFile.iv_1));
1024
+ return new File(Companion_getInstance().wt(subPackageName.dt() + sanitizeSymbol(this, generatorFile.bv_1.zt())), plus(plus(plus(listOf_0(import_0('../Wirespec', 'Wirespec')), modelImports), generatorImports), generatorFile.cv_1));
1028
1025
  };
1029
1026
  protoOf(TypeScriptEmitter).us = function (type, module_0) {
1030
- var fieldValidations = classifyValidatableFields(type, module_0);
1031
1027
  // Inline function 'kotlin.collections.distinctBy' call
1032
1028
  var this_0 = importReferences(type);
1033
1029
  var set = HashSet_init_$Create$();
@@ -1035,7 +1031,7 @@ protoOf(TypeScriptEmitter).us = function (type, module_0) {
1035
1031
  var _iterator__ex2g4s = this_0.t();
1036
1032
  while (_iterator__ex2g4s.u()) {
1037
1033
  var e = _iterator__ex2g4s.v();
1038
- var key = e.n19_1;
1034
+ var key = e.x19_1;
1039
1035
  if (set.x(key)) {
1040
1036
  list.x(e);
1041
1037
  }
@@ -1046,64 +1042,22 @@ protoOf(TypeScriptEmitter).us = function (type, module_0) {
1046
1042
  var _iterator__ex2g4s_0 = list.t();
1047
1043
  while (_iterator__ex2g4s_0.u()) {
1048
1044
  var item = _iterator__ex2g4s_0.v();
1049
- var tmp$ret$4 = import_0('./' + item.n19_1, item.n19_1);
1045
+ var tmp$ret$4 = import_0('./' + item.x19_1, item.x19_1);
1050
1046
  destination.x(tmp$ret$4);
1051
1047
  }
1052
1048
  var typeImports = destination;
1053
- // Inline function 'kotlin.collections.map' call
1054
- // Inline function 'kotlin.collections.mapTo' call
1055
- var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(fieldValidations, 10));
1056
- var _iterator__ex2g4s_1 = fieldValidations.t();
1057
- while (_iterator__ex2g4s_1.u()) {
1058
- var item_0 = _iterator__ex2g4s_1.v();
1059
- var tmp$ret$7 = item_0.n1a_1;
1060
- destination_0.x(tmp$ret$7);
1061
- }
1062
- // Inline function 'kotlin.collections.filter' call
1063
- var tmp0 = distinct_0(destination_0);
1064
- // Inline function 'kotlin.collections.filterTo' call
1065
- var destination_1 = ArrayList_init_$Create$();
1066
- var _iterator__ex2g4s_2 = tmp0.t();
1067
- while (_iterator__ex2g4s_2.u()) {
1068
- var element = _iterator__ex2g4s_2.v();
1069
- if (!(element === type.kp_1.o1())) {
1070
- destination_1.x(element);
1071
- }
1072
- }
1073
- // Inline function 'kotlin.collections.map' call
1074
- // Inline function 'kotlin.collections.mapTo' call
1075
- var destination_2 = ArrayList_init_$Create$_0(collectionSizeOrDefault(destination_1, 10));
1076
- var _iterator__ex2g4s_3 = destination_1.t();
1077
- while (_iterator__ex2g4s_3.u()) {
1078
- var item_1 = _iterator__ex2g4s_3.v();
1079
- var tmp$ret$13 = import_0('./' + item_1, 'validate' + item_1);
1080
- destination_2.x(tmp$ret$13);
1081
- }
1082
- var validateImports = destination_2;
1083
- var allImports = plus(typeImports, validateImports);
1084
- // Inline function 'kotlin.collections.map' call
1085
- var this_1 = get_fields(type.lp_1);
1086
- // Inline function 'kotlin.collections.mapTo' call
1087
- var destination_3 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
1088
- var _iterator__ex2g4s_4 = this_1.t();
1089
- while (_iterator__ex2g4s_4.u()) {
1090
- var item_2 = _iterator__ex2g4s_4.v();
1091
- var tmp$ret$16 = item_2.op_1.o1();
1092
- destination_3.x(tmp$ret$16);
1093
- }
1094
- var fieldNames = toSet(destination_3);
1095
- var file = renameValidateAndBindObjReceiver(sanitizeNames(convertWithValidation(type, module_0), _get_modelSanitizationConfig__vgg831(this)), type.kp_1.o1(), fieldNames);
1049
+ var file = sanitizeNames(convert_0(type), _get_modelSanitizationConfig__vgg831(this));
1096
1050
  var tmp;
1097
1051
  // Inline function 'kotlin.collections.isNotEmpty' call
1098
- if (!allImports.r()) {
1099
- tmp = file.lv(VOID, plus(allImports, file.iv_1));
1052
+ if (!typeImports.r()) {
1053
+ tmp = file.fv(VOID, plus(typeImports, file.cv_1));
1100
1054
  } else {
1101
1055
  tmp = file;
1102
1056
  }
1103
1057
  return tmp;
1104
1058
  };
1105
1059
  protoOf(TypeScriptEmitter).ss = function (enum_0, module_0) {
1106
- return sanitizeNames(convert_0(enum_0), _get_sanitizationConfig__sns434(this));
1060
+ return sanitizeNames(convert_1(enum_0), _get_sanitizationConfig__sns434(this));
1107
1061
  };
1108
1062
  protoOf(TypeScriptEmitter).is = function (union) {
1109
1063
  // Inline function 'kotlin.collections.distinctBy' call
@@ -1113,7 +1067,7 @@ protoOf(TypeScriptEmitter).is = function (union) {
1113
1067
  var _iterator__ex2g4s = this_0.t();
1114
1068
  while (_iterator__ex2g4s.u()) {
1115
1069
  var e = _iterator__ex2g4s.v();
1116
- var key = e.n19_1;
1070
+ var key = e.x19_1;
1117
1071
  if (set.x(key)) {
1118
1072
  list.x(e);
1119
1073
  }
@@ -1124,25 +1078,25 @@ protoOf(TypeScriptEmitter).is = function (union) {
1124
1078
  var _iterator__ex2g4s_0 = list.t();
1125
1079
  while (_iterator__ex2g4s_0.u()) {
1126
1080
  var item = _iterator__ex2g4s_0.v();
1127
- var tmp$ret$4 = import_0('../model', item.n19_1, true);
1081
+ var tmp$ret$4 = import_0('../model', item.x19_1, true);
1128
1082
  destination.x(tmp$ret$4);
1129
1083
  }
1130
1084
  var imports = destination;
1131
- var file = sanitizeNames(convert_1(union), _get_sanitizationConfig__sns434(this));
1085
+ var file = sanitizeNames(convert_2(union), _get_sanitizationConfig__sns434(this));
1132
1086
  var tmp;
1133
1087
  // Inline function 'kotlin.collections.isNotEmpty' call
1134
1088
  if (!imports.r()) {
1135
- tmp = file.lv(VOID, plus(imports, file.iv_1));
1089
+ tmp = file.fv(VOID, plus(imports, file.cv_1));
1136
1090
  } else {
1137
1091
  tmp = file;
1138
1092
  }
1139
1093
  return tmp;
1140
1094
  };
1141
1095
  protoOf(TypeScriptEmitter).ns = function (refined) {
1142
- var converted = convert_2(refined);
1096
+ var converted = convert_3(refined);
1143
1097
  var constraintExpr = convertConstraint(refined.ms_1, new VariableReference(Companion_getInstance().wt('value')));
1144
- var validatorStr = TypeScriptGenerator_getInstance().x1b(constraintExpr);
1145
- return new File(converted.hv_1, listOf([new RawElement('export type ' + converted.hv_1.zt() + ' = ' + emitTypeScriptReference(this, refined.ms_1) + ';'), new RawElement('export const validate' + refined.ls_1.o1() + ' = (value: ' + emitTypeScriptReference(this, refined.ms_1) + ') =>\n ' + validatorStr + ';')]));
1098
+ var validatorStr = TypeScriptGenerator_getInstance().w1c(constraintExpr);
1099
+ return new File(converted.bv_1, listOf([new RawElement('export type ' + converted.bv_1.zt() + ' = ' + emitTypeScriptReference(this, refined.ms_1) + ';'), new RawElement('export const validate' + refined.ls_1.o1() + ' = (value: ' + emitTypeScriptReference(this, refined.ms_1) + ') =>\n ' + validatorStr + ';')]));
1146
1100
  };
1147
1101
  protoOf(TypeScriptEmitter).ts = function (endpoint) {
1148
1102
  // Inline function 'kotlin.collections.distinctBy' call
@@ -1152,7 +1106,7 @@ protoOf(TypeScriptEmitter).ts = function (endpoint) {
1152
1106
  var _iterator__ex2g4s = this_0.t();
1153
1107
  while (_iterator__ex2g4s.u()) {
1154
1108
  var e = _iterator__ex2g4s.v();
1155
- var key = e.n19_1;
1109
+ var key = e.x19_1;
1156
1110
  if (set.x(key)) {
1157
1111
  list.x(e);
1158
1112
  }
@@ -1163,35 +1117,35 @@ protoOf(TypeScriptEmitter).ts = function (endpoint) {
1163
1117
  var _iterator__ex2g4s_0 = list.t();
1164
1118
  while (_iterator__ex2g4s_0.u()) {
1165
1119
  var item = _iterator__ex2g4s_0.v();
1166
- var tmp$ret$4 = import_0('../model', item.n19_1, true);
1120
+ var tmp$ret$4 = import_0('../model', item.x19_1, true);
1167
1121
  destination.x(tmp$ret$4);
1168
1122
  }
1169
1123
  var imports = destination;
1170
1124
  // Inline function 'kotlin.collections.isNotEmpty' call
1171
1125
  var hasRequestParams = !requestParameters(endpoint).r();
1172
1126
  // Inline function 'community.flock.wirespec.compiler.core.ir.transform' call
1173
- var this_1 = stripTrailingSpaceFromErrorMessage(convert_3(endpoint));
1127
+ var this_1 = stripTrailingSpaceFromErrorMessage(convert_4(endpoint));
1174
1128
  var scope = new TransformScope(this_1);
1175
- scope.v18(transformPatternSwitchToValueSwitch());
1176
- var tmp = scope.q18_1;
1129
+ scope.f19(transformPatternSwitchToValueSwitch());
1130
+ var tmp = scope.a19_1;
1177
1131
  var tmp$ret$6 = isInterface(tmp, Element) ? tmp : THROW_CCE();
1178
1132
  // Inline function 'kotlin.let' call
1179
- var it = sanitizeNames(emit$injectApiConst(emit$applyCallParamsIfNeeded(tmp$ret$6, hasRequestParams), endpoint).lv(Companion_getInstance().wt(sanitize(this, endpoint.fr_1))), _get_sanitizationConfig__sns434(this));
1133
+ var it = sanitizeNames(emit$injectApiConst(emit$applyCallParamsIfNeeded(tmp$ret$6, hasRequestParams), endpoint).fv(Companion_getInstance().wt(sanitize(this, endpoint.fr_1))), _get_sanitizationConfig__sns434(this));
1180
1134
  var tmp_0;
1181
1135
  // Inline function 'kotlin.collections.isNotEmpty' call
1182
1136
  if (!imports.r()) {
1183
- tmp_0 = it.lv(VOID, plus(imports, it.iv_1));
1137
+ tmp_0 = it.fv(VOID, plus(imports, it.cv_1));
1184
1138
  } else {
1185
1139
  tmp_0 = it;
1186
1140
  }
1187
1141
  return tmp_0;
1188
1142
  };
1189
1143
  protoOf(TypeScriptEmitter).hs = function (channel) {
1190
- return sanitizeNames(convert_4(channel), _get_sanitizationConfig__sns434(this));
1144
+ return sanitizeNames(convert_5(channel), _get_sanitizationConfig__sns434(this));
1191
1145
  };
1192
1146
  protoOf(TypeScriptEmitter).gs = function (rpc) {
1193
1147
  // Inline function 'kotlin.let' call
1194
- var file = sanitizeNames(convert_5(rpc), _get_sanitizationConfig__sns434(this));
1148
+ var file = sanitizeNames(convert_6(rpc), _get_sanitizationConfig__sns434(this));
1195
1149
  // Inline function 'kotlin.collections.distinctBy' call
1196
1150
  var this_0 = importReferences(rpc);
1197
1151
  var set = HashSet_init_$Create$();
@@ -1199,7 +1153,7 @@ protoOf(TypeScriptEmitter).gs = function (rpc) {
1199
1153
  var _iterator__ex2g4s = this_0.t();
1200
1154
  while (_iterator__ex2g4s.u()) {
1201
1155
  var e = _iterator__ex2g4s.v();
1202
- var key = e.n19_1;
1156
+ var key = e.x19_1;
1203
1157
  if (set.x(key)) {
1204
1158
  list.x(e);
1205
1159
  }
@@ -1210,7 +1164,7 @@ protoOf(TypeScriptEmitter).gs = function (rpc) {
1210
1164
  var _iterator__ex2g4s_0 = list.t();
1211
1165
  while (_iterator__ex2g4s_0.u()) {
1212
1166
  var item = _iterator__ex2g4s_0.v();
1213
- var tmp$ret$6 = import_0('../model', item.n19_1, true);
1167
+ var tmp$ret$6 = import_0('../model', item.x19_1, true);
1214
1168
  destination.x(tmp$ret$6);
1215
1169
  }
1216
1170
  // Inline function 'kotlin.takeIf' call
@@ -1227,12 +1181,12 @@ protoOf(TypeScriptEmitter).gs = function (rpc) {
1227
1181
  tmp_0 = null;
1228
1182
  } else {
1229
1183
  // Inline function 'kotlin.let' call
1230
- tmp_0 = file.lv(VOID, plus(tmp0_safe_receiver, file.iv_1));
1184
+ tmp_0 = file.fv(VOID, plus(tmp0_safe_receiver, file.cv_1));
1231
1185
  }
1232
1186
  var tmp1_elvis_lhs = tmp_0;
1233
1187
  return tmp1_elvis_lhs == null ? file : tmp1_elvis_lhs;
1234
1188
  };
1235
- protoOf(TypeScriptEmitter).f1b = function (endpoint) {
1189
+ protoOf(TypeScriptEmitter).j1b = function (endpoint) {
1236
1190
  var endpointName = endpoint.fr_1.o1();
1237
1191
  var methodName = firstToLower(this, endpointName);
1238
1192
  // Inline function 'kotlin.collections.distinctBy' call
@@ -1242,7 +1196,7 @@ protoOf(TypeScriptEmitter).f1b = function (endpoint) {
1242
1196
  var _iterator__ex2g4s = this_0.t();
1243
1197
  while (_iterator__ex2g4s.u()) {
1244
1198
  var e = _iterator__ex2g4s.v();
1245
- var key = e.n19_1;
1199
+ var key = e.x19_1;
1246
1200
  if (set.x(key)) {
1247
1201
  list.x(e);
1248
1202
  }
@@ -1253,7 +1207,7 @@ protoOf(TypeScriptEmitter).f1b = function (endpoint) {
1253
1207
  var _iterator__ex2g4s_0 = list.t();
1254
1208
  while (_iterator__ex2g4s_0.u()) {
1255
1209
  var item = _iterator__ex2g4s_0.v();
1256
- var tmp$ret$4 = import_0('../model', item.n19_1, true);
1210
+ var tmp$ret$4 = import_0('../model', item.x19_1, true);
1257
1211
  destination.x(tmp$ret$4);
1258
1212
  }
1259
1213
  var imports = destination;
@@ -1287,8 +1241,8 @@ protoOf(TypeScriptEmitter).f1b = function (endpoint) {
1287
1241
  var tmp$ret$7 = this_1.q5();
1288
1242
  return new File(tmp_1, tmp$ret$7);
1289
1243
  };
1290
- protoOf(TypeScriptEmitter).z1a = function (endpoints, logger) {
1291
- logger.as('Emitting main Client for ' + endpoints.b1() + ' endpoints');
1244
+ protoOf(TypeScriptEmitter).d1b = function (endpoints, logger) {
1245
+ logger.as('Emitting main Client for ' + endpoints.c1() + ' endpoints');
1292
1246
  // Inline function 'kotlin.collections.map' call
1293
1247
  // Inline function 'kotlin.collections.mapTo' call
1294
1248
  var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(endpoints, 10));
@@ -1317,24 +1271,8 @@ function transformPatternSwitchToValueSwitch() {
1317
1271
  // Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
1318
1272
  // Inline function 'kotlin.apply' call
1319
1273
  var this_0 = new TransformerBuilder();
1320
- this_0.g19(transformPatternSwitchToValueSwitch$lambda);
1321
- return this_0.f19();
1322
- }
1323
- function renameValidateAndBindObjReceiver(_this__u8e3s4, typeName, fieldNames) {
1324
- // Inline function 'community.flock.wirespec.compiler.core.ir.transform' call
1325
- var scope = new TransformScope(_this__u8e3s4);
1326
- // Inline function 'community.flock.wirespec.compiler.core.ir.TransformScope.matchingElements' call
1327
- var tmp = scope;
1328
- // Inline function 'community.flock.wirespec.compiler.core.ir.transformMatchingElements' call
1329
- var this_0 = scope.q18_1;
1330
- // Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
1331
- // Inline function 'kotlin.apply' call
1332
- var this_1 = new TransformerBuilder();
1333
- this_1.k19(renameValidateAndBindObjReceiver$lambda(typeName, fieldNames));
1334
- var tmp$ret$4 = this_1.f19();
1335
- tmp.q18_1 = transform(this_0, tmp$ret$4);
1336
- var tmp_0 = scope.q18_1;
1337
- return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1274
+ this_0.q19(transformPatternSwitchToValueSwitch$lambda);
1275
+ return this_0.p19();
1338
1276
  }
1339
1277
  function buildApiConst(endpoint) {
1340
1278
  // Inline function 'kotlin.text.replaceFirstChar' call
@@ -1362,21 +1300,21 @@ function bindCallToRequestParams(_this__u8e3s4) {
1362
1300
  // Inline function 'community.flock.wirespec.compiler.core.ir.TransformScope.matchingElements' call
1363
1301
  var tmp = scope;
1364
1302
  // Inline function 'community.flock.wirespec.compiler.core.ir.transformMatchingElements' call
1365
- var this_0 = scope.q18_1;
1303
+ var this_0 = scope.a19_1;
1366
1304
  // Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
1367
1305
  // Inline function 'kotlin.apply' call
1368
1306
  var this_1 = new TransformerBuilder();
1369
- this_1.k19(bindCallToRequestParams$lambda);
1370
- var tmp$ret$4 = this_1.f19();
1371
- tmp.q18_1 = transform(this_0, tmp$ret$4);
1372
- var tmp_0 = scope.q18_1;
1307
+ this_1.u19(bindCallToRequestParams$lambda);
1308
+ var tmp$ret$4 = this_1.p19();
1309
+ tmp.a19_1 = transform(this_0, tmp$ret$4);
1310
+ var tmp_0 = scope.a19_1;
1373
1311
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1374
1312
  }
1375
1313
  function stripTrailingSpaceFromErrorMessage(_this__u8e3s4) {
1376
1314
  // Inline function 'community.flock.wirespec.compiler.core.ir.transform' call
1377
1315
  var scope = new TransformScope(_this__u8e3s4);
1378
- scope.g19(stripTrailingSpaceFromErrorMessage$lambda);
1379
- var tmp = scope.q18_1;
1316
+ scope.q19(stripTrailingSpaceFromErrorMessage$lambda);
1317
+ var tmp = scope.a19_1;
1380
1318
  return isInterface(tmp, Element) ? tmp : THROW_CCE();
1381
1319
  }
1382
1320
  function transformPatternSwitchToValueSwitch$lambda(stmt, tr) {
@@ -1384,7 +1322,7 @@ function transformPatternSwitchToValueSwitch$lambda(stmt, tr) {
1384
1322
  if (!(stmt instanceof Switch)) {
1385
1323
  tmp = true;
1386
1324
  } else {
1387
- var tmp0 = stmt.vy_1;
1325
+ var tmp0 = stmt.wy_1;
1388
1326
  var tmp$ret$0;
1389
1327
  $l$block_0: {
1390
1328
  // Inline function 'kotlin.collections.none' call
@@ -1401,7 +1339,7 @@ function transformPatternSwitchToValueSwitch$lambda(stmt, tr) {
1401
1339
  var _iterator__ex2g4s = tmp0.t();
1402
1340
  while (_iterator__ex2g4s.u()) {
1403
1341
  var element = _iterator__ex2g4s.v();
1404
- if (!(element.cz_1 == null)) {
1342
+ if (!(element.dz_1 == null)) {
1405
1343
  tmp$ret$0 = false;
1406
1344
  break $l$block_0;
1407
1345
  }
@@ -1412,11 +1350,11 @@ function transformPatternSwitchToValueSwitch$lambda(stmt, tr) {
1412
1350
  }
1413
1351
  if (tmp)
1414
1352
  return transformChildren(stmt, tr);
1415
- var tmp0_safe_receiver = stmt.xy_1;
1353
+ var tmp0_safe_receiver = stmt.yy_1;
1416
1354
  var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.yt();
1417
1355
  var varName = tmp1_elvis_lhs == null ? 'r' : tmp1_elvis_lhs;
1418
1356
  // Inline function 'kotlin.collections.map' call
1419
- var this_0 = stmt.vy_1;
1357
+ var this_0 = stmt.wy_1;
1420
1358
  // Inline function 'kotlin.collections.mapTo' call
1421
1359
  var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
1422
1360
  var _iterator__ex2g4s_0 = this_0.t();
@@ -1424,39 +1362,39 @@ function transformPatternSwitchToValueSwitch$lambda(stmt, tr) {
1424
1362
  var item = _iterator__ex2g4s_0.v();
1425
1363
  var tmp$ret$4;
1426
1364
  $l$block_1: {
1427
- var tmp_1 = item.cz_1;
1365
+ var tmp_1 = item.dz_1;
1428
1366
  var tmp0_safe_receiver_0 = tmp_1 instanceof Custom_0 ? tmp_1 : null;
1429
- var tmp1_safe_receiver = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.qu_1;
1367
+ var tmp1_safe_receiver = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.nu_1;
1430
1368
  var typeName = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.zt();
1431
1369
  var tmp3_safe_receiver = typeName == null ? null : substringAfterLast(typeName, '.');
1432
1370
  var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : removePrefix(tmp3_safe_receiver, 'Response');
1433
1371
  var statusNum = tmp4_safe_receiver == null ? null : toIntOrNull(tmp4_safe_receiver);
1434
1372
  if (statusNum == null) {
1435
1373
  // Inline function 'kotlin.collections.map' call
1436
- var this_1 = item.bz_1;
1374
+ var this_1 = item.cz_1;
1437
1375
  // Inline function 'kotlin.collections.mapTo' call
1438
1376
  var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
1439
1377
  var _iterator__ex2g4s_1 = this_1.t();
1440
1378
  while (_iterator__ex2g4s_1.u()) {
1441
1379
  var item_0 = _iterator__ex2g4s_1.v();
1442
- var tmp$ret$7 = tr.k18(item_0);
1380
+ var tmp$ret$7 = tr.u18(item_0);
1443
1381
  destination_0.x(tmp$ret$7);
1444
1382
  }
1445
- tmp$ret$4 = item.ez(VOID, destination_0);
1383
+ tmp$ret$4 = item.fz(VOID, destination_0);
1446
1384
  break $l$block_1;
1447
1385
  }
1448
- var exprCode = TypeScriptGenerator_getInstance().x1b(tr.l18(stmt.uy_1));
1386
+ var exprCode = TypeScriptGenerator_getInstance().w1c(tr.v18(stmt.vy_1));
1449
1387
  var castAssignment = new Assignment(Companion_getInstance().wt(varName), new RawExpression(exprCode + ' as ' + typeName), false);
1450
1388
  var tmp_2 = new Literal(statusNum, new Integer_0());
1451
1389
  var tmp_3 = listOf_0(castAssignment);
1452
1390
  // Inline function 'kotlin.collections.map' call
1453
- var this_2 = item.bz_1;
1391
+ var this_2 = item.cz_1;
1454
1392
  // Inline function 'kotlin.collections.mapTo' call
1455
1393
  var destination_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_2, 10));
1456
1394
  var _iterator__ex2g4s_2 = this_2.t();
1457
1395
  while (_iterator__ex2g4s_2.u()) {
1458
1396
  var item_1 = _iterator__ex2g4s_2.v();
1459
- var tmp$ret$10 = tr.k18(item_1);
1397
+ var tmp$ret$10 = tr.u18(item_1);
1460
1398
  destination_1.x(tmp$ret$10);
1461
1399
  }
1462
1400
  tmp$ret$4 = new Case(tmp_2, plus(tmp_3, destination_1), null);
@@ -1464,8 +1402,8 @@ function transformPatternSwitchToValueSwitch$lambda(stmt, tr) {
1464
1402
  destination.x(tmp$ret$4);
1465
1403
  }
1466
1404
  var transformedCases = destination;
1467
- var tmp_4 = new FieldCall(tr.l18(stmt.uy_1), Companion_getInstance().wt('status'));
1468
- var tmp2_safe_receiver = stmt.wy_1;
1405
+ var tmp_4 = new FieldCall(tr.v18(stmt.vy_1), Companion_getInstance().wt('status'));
1406
+ var tmp2_safe_receiver = stmt.xy_1;
1469
1407
  var tmp_5;
1470
1408
  if (tmp2_safe_receiver == null) {
1471
1409
  tmp_5 = null;
@@ -1476,81 +1414,17 @@ function transformPatternSwitchToValueSwitch$lambda(stmt, tr) {
1476
1414
  var _iterator__ex2g4s_3 = tmp2_safe_receiver.t();
1477
1415
  while (_iterator__ex2g4s_3.u()) {
1478
1416
  var item_2 = _iterator__ex2g4s_3.v();
1479
- var tmp$ret$13 = tr.k18(item_2);
1417
+ var tmp$ret$13 = tr.u18(item_2);
1480
1418
  destination_2.x(tmp$ret$13);
1481
1419
  }
1482
1420
  tmp_5 = destination_2;
1483
1421
  }
1484
1422
  return new Switch(tmp_4, transformedCases, tmp_5, null);
1485
1423
  }
1486
- function renameValidateAndBindObjReceiver$lambda$lambda($fieldNames) {
1487
- return function (s, t) {
1488
- var tmp;
1489
- var tmp_0;
1490
- if (s instanceof FunctionCall) {
1491
- var tmp_1;
1492
- if (s.eu_1.equals(Companion_getInstance().wt('validate')) && !(s.cu_1 == null)) {
1493
- // Inline function 'kotlin.collections.isNotEmpty' call
1494
- tmp_1 = !s.du_1.r();
1495
- } else {
1496
- tmp_1 = false;
1497
- }
1498
- tmp_0 = tmp_1;
1499
- } else {
1500
- tmp_0 = false;
1501
- }
1502
- if (tmp_0) {
1503
- var tmp_2 = first(s.du_1);
1504
- var tmp1_safe_receiver = tmp_2 instanceof Custom_0 ? tmp_2 : null;
1505
- var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.qu_1;
1506
- var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.zt();
1507
- var tn = tmp3_elvis_lhs == null ? '' : tmp3_elvis_lhs;
1508
- tmp = new FunctionCall(VOID, VOID, Companion_getInstance().wt('validate' + tn), mapOf(to(Companion_getInstance().wt('obj'), t.l18(ensureNotNull(s.cu_1)))));
1509
- } else {
1510
- var tmp_3;
1511
- if (s instanceof FieldCall) {
1512
- tmp_3 = (s.fz_1 == null && $fieldNames.i1(s.gz_1.yt()));
1513
- } else {
1514
- tmp_3 = false;
1515
- }
1516
- if (tmp_3) {
1517
- tmp = new FieldCall(new VariableReference(Companion_getInstance().wt('obj')), s.gz_1);
1518
- } else {
1519
- tmp = transformChildren(s, t);
1520
- }
1521
- }
1522
- return tmp;
1523
- };
1524
- }
1525
- function renameValidateAndBindObjReceiver$lambda($typeName, $fieldNames) {
1526
- return function (element, transformer) {
1527
- var tmp;
1528
- if (element instanceof Function) {
1529
- var tmp$ret$0;
1530
- $l$block: {
1531
- if (!element.tx_1.equals(Companion_getInstance().wt('validate'))) {
1532
- tmp$ret$0 = element;
1533
- break $l$block;
1534
- }
1535
- // Inline function 'community.flock.wirespec.compiler.core.ir.transform' call
1536
- var this_0 = element.fy(Companion_getInstance().wt('validate' + $typeName), VOID, listOf_0(new Parameter(Companion_getInstance().wt('obj'), Custom_init_$Create$($typeName))));
1537
- var scope = new TransformScope(this_0);
1538
- scope.i19(renameValidateAndBindObjReceiver$lambda$lambda($fieldNames));
1539
- var tmp_0 = scope.q18_1;
1540
- tmp$ret$0 = isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1541
- }
1542
- tmp = tmp$ret$0;
1543
- } else {
1544
- tmp = element;
1545
- }
1546
- var transformed = tmp;
1547
- return transformChildren_0(transformed, transformer);
1548
- };
1549
- }
1550
1424
  function buildApiConst$lambda(it) {
1551
1425
  var tmp;
1552
1426
  if (it instanceof Literal_0) {
1553
- tmp = it.w1a_1;
1427
+ tmp = it.a1b_1;
1554
1428
  } else {
1555
1429
  if (it instanceof Param) {
1556
1430
  tmp = '{' + it.mr_1.o1() + '}';
@@ -1565,23 +1439,23 @@ function bindCallToRequestParams$lambda(element, transformer) {
1565
1439
  if (element instanceof Interface) {
1566
1440
  var tmp$ret$0;
1567
1441
  $l$block: {
1568
- if (!element.tv_1.equals(Companion_getInstance().wt('Call'))) {
1442
+ if (!element.nv_1.equals(Companion_getInstance().wt('Call'))) {
1569
1443
  tmp$ret$0 = element;
1570
1444
  break $l$block;
1571
1445
  }
1572
1446
  // Inline function 'kotlin.collections.map' call
1573
- var this_0 = element.uv_1;
1447
+ var this_0 = element.ov_1;
1574
1448
  // Inline function 'kotlin.collections.mapTo' call
1575
1449
  var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
1576
1450
  var _iterator__ex2g4s = this_0.t();
1577
1451
  while (_iterator__ex2g4s.u()) {
1578
1452
  var item = _iterator__ex2g4s.v();
1579
1453
  var tmp0_safe_receiver = item instanceof Function ? item : null;
1580
- var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.fy(VOID, VOID, listOf_0(new Parameter(Companion_getInstance().wt('params'), Custom_init_$Create$('RequestParams'))));
1454
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.zx(VOID, VOID, listOf_0(new Parameter(Companion_getInstance().wt('params'), Custom_init_$Create$('RequestParams'))));
1581
1455
  var tmp$ret$3 = tmp1_elvis_lhs == null ? item : tmp1_elvis_lhs;
1582
1456
  destination.x(tmp$ret$3);
1583
1457
  }
1584
- tmp$ret$0 = element.bw(VOID, destination);
1458
+ tmp$ret$0 = element.vv(VOID, destination);
1585
1459
  }
1586
1460
  tmp = tmp$ret$0;
1587
1461
  } else {
@@ -1593,7 +1467,7 @@ function bindCallToRequestParams$lambda(element, transformer) {
1593
1467
  function stripTrailingSpaceFromErrorMessage$lambda(stmt, transformer) {
1594
1468
  var tmp;
1595
1469
  if (stmt instanceof Switch) {
1596
- var tmp1_safe_receiver = stmt.wy_1;
1470
+ var tmp1_safe_receiver = stmt.xy_1;
1597
1471
  var tmp_0;
1598
1472
  if (tmp1_safe_receiver == null) {
1599
1473
  tmp_0 = null;
@@ -1615,7 +1489,7 @@ function stripTrailingSpaceFromErrorMessage$lambda(stmt, transformer) {
1615
1489
  tmp_1 = tmp0_elvis_lhs;
1616
1490
  }
1617
1491
  var errorStmt = tmp_1;
1618
- var tmp_2 = errorStmt.oz_1;
1492
+ var tmp_2 = errorStmt.pz_1;
1619
1493
  var tmp1_elvis_lhs = tmp_2 instanceof BinaryOp ? tmp_2 : null;
1620
1494
  var tmp_3;
1621
1495
  if (tmp1_elvis_lhs == null) {
@@ -1625,7 +1499,7 @@ function stripTrailingSpaceFromErrorMessage$lambda(stmt, transformer) {
1625
1499
  tmp_3 = tmp1_elvis_lhs;
1626
1500
  }
1627
1501
  var binary = tmp_3;
1628
- var tmp_4 = binary.pz_1;
1502
+ var tmp_4 = binary.qz_1;
1629
1503
  var tmp2_elvis_lhs = tmp_4 instanceof Literal ? tmp_4 : null;
1630
1504
  var tmp_5;
1631
1505
  if (tmp2_elvis_lhs == null) {
@@ -1635,22 +1509,22 @@ function stripTrailingSpaceFromErrorMessage$lambda(stmt, transformer) {
1635
1509
  tmp_5 = tmp2_elvis_lhs;
1636
1510
  }
1637
1511
  var literal = tmp_5;
1638
- tmp$ret$2 = new ErrorStatement(new Literal(trimEnd(toString_0(literal.qy_1), charArrayOf([_Char___init__impl__6a9atx(32)])), literal.ry_1));
1512
+ tmp$ret$2 = new ErrorStatement(new Literal(trimEnd(toString_0(literal.ry_1), charArrayOf([_Char___init__impl__6a9atx(32)])), literal.sy_1));
1639
1513
  }
1640
1514
  destination.x(tmp$ret$2);
1641
1515
  }
1642
1516
  tmp_0 = destination;
1643
1517
  }
1644
- tmp = transformChildren(stmt.zy(VOID, VOID, tmp_0), transformer);
1518
+ tmp = transformChildren(stmt.az(VOID, VOID, tmp_0), transformer);
1645
1519
  } else {
1646
1520
  tmp = transformChildren(stmt, transformer);
1647
1521
  }
1648
1522
  return tmp;
1649
1523
  }
1650
1524
  //region block: post-declaration
1651
- protoOf(TypeScriptEmitter).a1b = get_extensions;
1652
- protoOf(TypeScriptEmitter).x1a = emit_1;
1653
- protoOf(TypeScriptEmitter).c1b = beforeGenerate;
1525
+ protoOf(TypeScriptEmitter).e1b = get_extensions;
1526
+ protoOf(TypeScriptEmitter).b1b = emit_1;
1527
+ protoOf(TypeScriptEmitter).g1b = beforeGenerate;
1654
1528
  protoOf(TypeScriptEmitter).vp = get_supportsDefaults;
1655
1529
  //endregion
1656
1530
  //region block: exports