@flock/wirespec 0.21.0 → 0.22.0

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 (62) hide show
  1. package/arrow-arrow-atomic.mjs +13 -13
  2. package/arrow-arrow-atomic.mjs.map +1 -1
  3. package/arrow-arrow-core.mjs +166 -167
  4. package/arrow-arrow-core.mjs.map +1 -1
  5. package/clikt-clikt-mordant.mjs +88 -88
  6. package/clikt-clikt-mordant.mjs.map +1 -1
  7. package/clikt-clikt.mjs +1545 -1547
  8. package/clikt-clikt.mjs.map +1 -1
  9. package/colormath-root-colormath.mjs +463 -463
  10. package/colormath-root-colormath.mjs.map +1 -1
  11. package/kotlin-kotlin-stdlib.mjs +1192 -1311
  12. package/kotlin-kotlin-stdlib.mjs.map +1 -1
  13. package/kotlin-openapi-bindings.mjs +10323 -10296
  14. package/kotlin-openapi-bindings.mjs.map +1 -1
  15. package/kotlin-rgxgen.mjs +1811 -1815
  16. package/kotlin-rgxgen.mjs.map +1 -1
  17. package/kotlinx-io-kotlinx-io-core.mjs +454 -454
  18. package/kotlinx-io-kotlinx-io-core.mjs.map +1 -1
  19. package/kotlinx-serialization-kotlinx-serialization-core.mjs +1985 -1993
  20. package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
  21. package/kotlinx-serialization-kotlinx-serialization-json.mjs +1768 -1737
  22. package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
  23. package/mordant-mordant.mjs +1357 -1360
  24. package/mordant-mordant.mjs.map +1 -1
  25. package/package.json +1 -1
  26. package/wirespec-src-compiler-core.mjs +26678 -4523
  27. package/wirespec-src-compiler-core.mjs.map +1 -1
  28. package/wirespec-src-compiler-emitters-java.mjs +373 -469
  29. package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
  30. package/wirespec-src-compiler-emitters-kotlin.mjs +322 -377
  31. package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
  32. package/wirespec-src-compiler-emitters-python.mjs +345 -344
  33. package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
  34. package/wirespec-src-compiler-emitters-rust.mjs +738 -736
  35. package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
  36. package/wirespec-src-compiler-emitters-scala.mjs +357 -357
  37. package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
  38. package/wirespec-src-compiler-emitters-typescript.mjs +472 -459
  39. package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
  40. package/wirespec-src-compiler-emitters-wirespec.mjs +211 -128
  41. package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
  42. package/wirespec-src-compiler-lib.mjs +403 -336
  43. package/wirespec-src-compiler-lib.mjs.map +1 -1
  44. package/wirespec-src-converter-avro.mjs +713 -708
  45. package/wirespec-src-converter-avro.mjs.map +1 -1
  46. package/wirespec-src-converter-common.mjs +267 -0
  47. package/wirespec-src-converter-common.mjs.map +1 -1
  48. package/wirespec-src-converter-openapi.mjs +1156 -1086
  49. package/wirespec-src-converter-openapi.mjs.map +1 -1
  50. package/wirespec-src-ide-lsp.mjs +1720 -1634
  51. package/wirespec-src-ide-lsp.mjs.map +1 -1
  52. package/wirespec-src-plugin-arguments.mjs +274 -233
  53. package/wirespec-src-plugin-arguments.mjs.map +1 -1
  54. package/wirespec-src-plugin-cli.mjs +153 -128
  55. package/wirespec-src-plugin-cli.mjs.map +1 -1
  56. package/wirespec-src-plugin-npm.d.mts +23 -10
  57. package/wirespec-src-plugin-npm.mjs +79 -81
  58. package/wirespec-src-plugin-npm.mjs.map +1 -1
  59. package/wirespec-src-tools-generator.mjs +59 -51
  60. package/wirespec-src-tools-generator.mjs.map +1 -1
  61. package/wirespec-src-compiler-ir.mjs +0 -18912
  62. package/wirespec-src-compiler-ir.mjs.map +0 -1
@@ -3,15 +3,15 @@ import {
3
3
  getPropertyCallableRef3hckxc0xueiaj as getPropertyCallableRef,
4
4
  split2bvyvnrlcifjv as split,
5
5
  collectionSizeOrDefault36dulx8yinfqm as collectionSizeOrDefault,
6
- ArrayList_init_$Create$3ivpeip4ouddx as ArrayList_init_$Create$,
6
+ ArrayList_init_$Create$2byt5m5yn22yy as ArrayList_init_$Create$,
7
7
  checkIndexOverflow3frtmheghr0th as checkIndexOverflow,
8
- Unit_instance28fytmsmm6r23 as Unit_instance,
8
+ Unit_instancev9v8hjid95df as Unit_instance,
9
9
  joinToString1cxrrlmo0chqs as joinToString,
10
- StringBuilder_init_$Create$322n630qt3r8c as StringBuilder_init_$Create$,
10
+ StringBuilder_init_$Create$3ds9zx2kx9u4d as StringBuilder_init_$Create$,
11
11
  charSequenceLength3278n89t01tmv as charSequenceLength,
12
12
  charSequenceGet1vxk1y5n17t1z as charSequenceGet,
13
13
  isLetterOrDigit2kuxd9e198haf as isLetterOrDigit,
14
- _Char___init__impl__6a9atx1csff5kwtduxl as _Char___init__impl__6a9atx,
14
+ _Char___init__impl__6a9atx2gndcvjvc5pke as _Char___init__impl__6a9atx,
15
15
  firstOrNulltrxqttxfxqju as firstOrNull,
16
16
  isDigit3mimrri4wkzop as isDigit,
17
17
  Char19o2r8palgjof as Char,
@@ -22,7 +22,7 @@ import {
22
22
  toMap1vec9topfei08 as toMap,
23
23
  emptyList1g2z5xcrvp2zy as emptyList,
24
24
  VOID3gxj6tk5isa35 as VOID,
25
- ArrayList_init_$Create$1jemgvhi5v0js as ArrayList_init_$Create$_0,
25
+ ArrayList_init_$Create$37gc04va6yfo2 as ArrayList_init_$Create$_0,
26
26
  Paire9pteg33gng7 as Pair,
27
27
  plus310ted5e4i90h as plus,
28
28
  setOf45ia9pnfhe90 as setOf,
@@ -42,7 +42,7 @@ import {
42
42
  endsWith3cq61xxngobwh as endsWith,
43
43
  firstOrNull1982767dljvdy as firstOrNull_0,
44
44
  ensureNotNull1e947j3ixpazm as ensureNotNull,
45
- HashSet_init_$Create$33p49hmosnvr4 as HashSet_init_$Create$,
45
+ HashSet_init_$Create$2w31ptb4ree5i as HashSet_init_$Create$,
46
46
  initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
47
47
  trimMarginhyd3fsmh8iev as trimMargin,
48
48
  singleo93pzdgfc557 as single,
@@ -50,112 +50,111 @@ import {
50
50
  equals2au1ep9vhcato as equals,
51
51
  } from './kotlin-kotlin-stdlib.mjs';
52
52
  import {
53
- Companion_instancebcq57hoyp8c2 as Companion_instance,
53
+ Companion_instance27ueeez2qu1l as Companion_instance,
54
54
  FieldIdentifier34k7iphndcnl0 as FieldIdentifier,
55
55
  addBackticks1di5q03fw4yhx as addBackticks,
56
- Companion_instance1a2xqc448tlhh as Companion_instance_0,
57
- Companion_instance2ryk3262e300f as Companion_instance_1,
58
- FileExtension_Scala_getInstancedd4dbv51x4if as FileExtension_Scala_getInstance,
56
+ ScalaGenerator_getInstance1imy4g5e4y6qp as ScalaGenerator_getInstance,
57
+ Name1ijtblv1phm3y as Name,
58
+ FunctionCall1a3g4e6bcljl6 as FunctionCall,
59
+ transformChildren34heehtlmzzif as transformChildren,
60
+ sanitizeFieldName333wgwu6tt90n as sanitizeFieldName,
61
+ ConstructorStatement1edouznvc71xv as ConstructorStatement,
62
+ SanitizationConfigunh0ok3qg1q3 as SanitizationConfig,
63
+ Custom_init_$Create$kfegfgqdjj1p as Custom_init_$Create$,
64
+ String_instance2j5u8j0qc6lge as String_instance,
65
+ Reflect_instance2hvndzkpwulla as Reflect_instance,
66
+ Package1a6hdgk3p4frd as Package,
67
+ File12q75sqvz964e as File,
68
+ transformChildren14suh59vxsgt as transformChildren_0,
69
+ Companion_getInstance34fvro4h6bumb as Companion_getInstance,
70
+ Interface2g99rmjjt5ne as Interface,
71
+ Namespacex2gpe17ntoag as Namespace,
72
+ Main3fexakddcxfff as Main,
73
+ Enumoqsp4e7al89r as Enum,
74
+ Structakfq94wrq695 as Struct,
75
+ Companion_instance21vwhhqsaytqt as Companion_instance_0,
76
+ Companion_instance2oq66qbk0c5g8 as Companion_instance_1,
77
+ FileExtension_Scala_getInstance2u2efusiez9e8 as FileExtension_Scala_getInstance,
78
+ import3bym2b49e642p as import_0,
79
+ interface44jdw6t56okg as interface_0,
80
+ struct1gzvysjt73bn4 as struct,
81
+ convertClientServerdyft3utnhf92 as convertClientServer,
82
+ Array2vay9bq78aua1 as Array_0,
83
+ Field26remk4nlwax4 as Field,
84
+ convert37y165c07dvpq as convert,
85
+ TransformScope3fhztkr2eyk36 as TransformScope,
86
+ TransformerBuilder26pbjl5nmg6wa as TransformerBuilder,
87
+ transformhd96z3w1u5uc as transform,
88
+ Element3p1xrn21d2w4b as Element,
89
+ emit1w04jgbmswnni as emit,
90
+ prependImportslco5lco5if44 as prependImports,
91
+ placeInPackage3aq544c1svvop as placeInPackage,
92
+ convertToGenerator115obo0n49kco as convertToGenerator,
59
93
  Unionccsavx6nrdr2 as Union,
94
+ convertToGenerator1x32vg5qdleq8 as convertToGenerator_0,
60
95
  Refined1lkzc0dg6wey7 as Refined,
61
- Enum3l2iuc342kle6 as Enum,
96
+ convertToGenerator33dm40iimoy3x as convertToGenerator_1,
97
+ Enum3l2iuc342kle6 as Enum_0,
98
+ convertToGenerator1arvbkvdv4bro as convertToGenerator_2,
62
99
  Type12n1gx16iqtcu as Type,
100
+ sanitizeNames1v55mz1p84psg as sanitizeNames,
101
+ collectCustomTypeNames2atsrip288ol4 as collectCustomTypeNames,
102
+ placeInPackagea1jcxre6uf77 as placeInPackage_0,
103
+ convertWithValidation24mbxf4x2u6w4 as convertWithValidation,
104
+ ensureEmptyStructHasConstructorftf9v01tnb2y as ensureEmptyStructHasConstructor,
105
+ convert1ke01d6gmcvu7 as convert_0,
106
+ injectEnumLabelField21kogrwccvlea as injectEnumLabelField,
107
+ convert29zpebhuxz599 as convert_1,
108
+ convert39lmqftdnlhsy as convert_2,
109
+ markMembersAsOverridessfchvibgdcx as markMembersAsOverride,
110
+ convert333pgxr2q05n as convert_3,
111
+ convert86y6uioox2cl as convert_4,
112
+ convert1o5h4ulxoqycg as convert_5,
113
+ emitEndpointClient2og25opoka4ql as emitEndpointClient,
63
114
  plus14o24vdaiongg as plus_1,
64
115
  importReferencesy4xv7r53sjjs as importReferences,
116
+ emitClient1ucatfg1ovgb6 as emitClient,
117
+ get_extensions1p1y8uybwv35q as get_extensions,
118
+ emit2s9bv7yrx5jcs as emit_0,
119
+ emit3e40nagyc4qho as emit_1,
120
+ get_supportsDefaults2j8lo8mbv0egf as get_supportsDefaults,
121
+ IrEmitter2jy94gp21kviv as IrEmitter,
122
+ raw1mm1rmqheq474 as raw,
65
123
  Unit2z95clvxm08vr as Unit,
66
124
  Anyv7qdq63z63rc as Any,
67
125
  Dict3g7w5wia7rncj as Dict,
68
126
  Iterable29qbzfup67wqp as Iterable,
69
127
  Custom1lu6o8txpimqz as Custom,
70
- Bytes_instance1o9u095wd3kx6 as Bytes_instance,
71
- Boolean_instance237vwt01w3hs8 as Boolean_instance,
72
- Precision_P32_getInstance14q7j3bd2fxd5 as Precision_P32_getInstance,
128
+ Bytes_instance1cqd1xiwjq94x as Bytes_instance,
129
+ Boolean_instance15wa4iqeayn6f as Boolean_instance,
130
+ Precision_P32_getInstance1wn9hty3a2xeu as Precision_P32_getInstance,
73
131
  Number1mui0heypwdhp as Number_0,
74
132
  Integer39lqx4uc63u28 as Integer,
75
133
  String1czvr8pxnm6on as String_0,
76
134
  Primitive1i8my14jkp3nk as Primitive,
135
+ transformChildren21ucrga4lv4sn as transformChildren_1,
136
+ FieldCall2nusnrnm7uuow as FieldCall,
77
137
  Paramvfwnys2w6aj1 as Param,
78
138
  Literal331hu9r04vptz as Literal,
139
+ TypeParameter31flcv4tnuq1v as TypeParameter,
140
+ Function1wme41sk2huri as Function,
79
141
  } from './wirespec-src-compiler-core.mjs';
80
- import {
81
- ScalaGenerator_getInstance3tda4hcloy1pr as ScalaGenerator_getInstance,
82
- Nameoqr8dt2fim9d as Name,
83
- FunctionCall30872kpnbr7op as FunctionCall,
84
- transformChildren2mszeagj5nq4c as transformChildren,
85
- sanitizeFieldName1ptgy1kxy8u2m as sanitizeFieldName,
86
- ConstructorStatement1x4n4sr59iy4n as ConstructorStatement,
87
- SanitizationConfig11mmn3p2c03c1 as SanitizationConfig,
88
- Custom_init_$Create$2enn7oyj71j1t as Custom_init_$Create$,
89
- String_instance3uxvo48ki208u as String_instance,
90
- Reflect_instance3i17lxiopj78t as Reflect_instance,
91
- Package2tniq694j1763 as Package,
92
- File3dimy4iqmuock as File,
93
- transformChildrend9p91tpcqdkx as transformChildren_0,
94
- Companion_getInstance3gvtuyxc9uhxj as Companion_getInstance,
95
- Interface3pn84xq686t2r as Interface,
96
- Namespace345pal554qu3j as Namespace,
97
- Mainb4yvz4x0nrxd as Main,
98
- Enumlszg09mwd24f as Enum_0,
99
- Struct39wf79cwtn4ty as Struct,
100
- import5uhkz67bd8tt as import_0,
101
- interface24qlavvm81r6z as interface_0,
102
- structo1silz79n3nu as struct,
103
- convertClientServer1346neky3bhls as convertClientServer,
104
- Array2goj74t0aak7b as Array_0,
105
- Field354s1ceh5pvhf as Field,
106
- convertnty9x0e63d0u as convert,
107
- TransformScopeyrd3lf4zrk76 as TransformScope,
108
- TransformerBuildera6a1gvlhjj9b as TransformerBuilder,
109
- transform3eti8i2bqvifx as transform,
110
- Elementitq62jg6fid3 as Element,
111
- emitn3eihixilqyh as emit,
112
- prependImports32gcj3yb8voha as prependImports,
113
- placeInPackage1ffljbk9me4ug as placeInPackage,
114
- convertToGenerator2wzjrmaavxhph as convertToGenerator,
115
- convertToGeneratorkggw47cqose7 as convertToGenerator_0,
116
- convertToGenerator3rjr3azp4vdsx as convertToGenerator_1,
117
- convertToGenerator2msmr3acdd5nx as convertToGenerator_2,
118
- sanitizeNames2wqmyf8vafp9x as sanitizeNames,
119
- collectCustomTypeNames373f3lwl9sqd5 as collectCustomTypeNames,
120
- placeInPackagena6oqbi45fz6 as placeInPackage_0,
121
- convertWithValidation3ar3nbcqsbkpn as convertWithValidation,
122
- ensureEmptyStructHasConstructorfl467argh9dd as ensureEmptyStructHasConstructor,
123
- convert11ert2po54h1y as convert_0,
124
- injectEnumLabelFieldyfohidz6c88i as injectEnumLabelField,
125
- convert37aabdzvtv9vg as convert_1,
126
- convert17zcptkz4mhr4 as convert_2,
127
- markMembersAsOverride3r1zpft8nbmxg as markMembersAsOverride,
128
- convert32tuiui3czihh as convert_3,
129
- convert1cn4bolzoed8c as convert_4,
130
- convert3ewo9inue7gua as convert_5,
131
- emitEndpointClient1meajc90wf3el as emitEndpointClient,
132
- emitClient32kfwzg2hm5vj as emitClient,
133
- get_extensions31c4or738wbxz as get_extensions,
134
- emit1oxjujel6f3jb as emit_0,
135
- emit3bzdcd0f6nwtj as emit_1,
136
- IrEmitterh2m93ojzvkep as IrEmitter,
137
- rawttvqxl50flj9 as raw,
138
- transformChildren3n5cjwmxlhwx9 as transformChildren_1,
139
- FieldCall1iz7z2fx2xo4p as FieldCall,
140
- TypeParameter1x56bawg1pg87 as TypeParameter,
141
- Function21cuq8qizkin7 as Function,
142
- } from './wirespec-src-compiler-ir.mjs';
143
142
  //region block: imports
144
143
  //endregion
145
144
  //region block: pre-declaration
146
145
  initMetadataForCompanion(Companion);
147
- initMetadataForClass(ScalaIrEmitter, 'ScalaIrEmitter', ScalaIrEmitter, VOID, [IrEmitter]);
146
+ initMetadataForClass(ScalaEmitter, 'ScalaEmitter', ScalaEmitter, VOID, [IrEmitter]);
148
147
  //endregion
149
148
  function _get_sanitizationConfig__sns434($this) {
150
- var tmp0 = $this.s1z_1;
149
+ var tmp0 = $this.w20_1;
151
150
  var tmp = KProperty1;
152
151
  // Inline function 'kotlin.getValue' call
153
- getPropertyCallableRef('sanitizationConfig', 1, tmp, ScalaIrEmitter$_get_sanitizationConfig_$ref_ydarb0(), null);
152
+ getPropertyCallableRef('sanitizationConfig', 1, tmp, ScalaEmitter$_get_sanitizationConfig_$ref_u7mbyd(), null);
154
153
  return tmp0.m1();
155
154
  }
156
- function sanitize($this, _this__u8e3s4) {
155
+ function sanitize($this, $receiver) {
157
156
  // Inline function 'kotlin.collections.mapIndexed' call
158
- var this_0 = split(_this__u8e3s4.m1(), ['.', ' ']);
157
+ var this_0 = split($receiver.m1(), ['.', ' ']);
159
158
  // Inline function 'kotlin.collections.mapIndexedTo' call
160
159
  var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
161
160
  var index = 0;
@@ -164,8 +163,8 @@ function sanitize($this, _this__u8e3s4) {
164
163
  var item = _iterator__ex2g4s.v();
165
164
  var _unary__edvuaz = index;
166
165
  index = _unary__edvuaz + 1 | 0;
167
- var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance.dr(item) : item;
168
- destination.x(tmp$ret$0);
166
+ var tmp$ret$2 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance.or(item) : item;
167
+ destination.x(tmp$ret$2);
169
168
  }
170
169
  // Inline function 'kotlin.text.filter' call
171
170
  var tmp0 = joinToString(destination, '');
@@ -183,20 +182,20 @@ function sanitize($this, _this__u8e3s4) {
183
182
  }
184
183
  }
185
184
  while (inductionVariable < last);
186
- var tmp$ret$5 = destination_0.toString();
185
+ var tmp$ret$3 = destination_0.toString();
187
186
  // Inline function 'kotlin.let' call
188
- var it = sanitizeFirstIsDigit($this, tmp$ret$5);
187
+ var it = sanitizeFirstIsDigit($this, tmp$ret$3);
189
188
  var tmp;
190
- if (_this__u8e3s4 instanceof FieldIdentifier) {
189
+ if ($receiver instanceof FieldIdentifier) {
191
190
  tmp = sanitizeKeywords($this, it);
192
191
  } else {
193
192
  tmp = it;
194
193
  }
195
194
  return tmp;
196
195
  }
197
- function sanitizeFirstIsDigit($this, _this__u8e3s4) {
196
+ function sanitizeFirstIsDigit($this, $receiver) {
198
197
  var tmp;
199
- var tmp0_safe_receiver = firstOrNull(_this__u8e3s4);
198
+ var tmp0_safe_receiver = firstOrNull($receiver);
200
199
  var tmp_0;
201
200
  var tmp_1 = tmp0_safe_receiver;
202
201
  if ((tmp_1 == null ? null : new Char(tmp_1)) == null) {
@@ -205,18 +204,18 @@ function sanitizeFirstIsDigit($this, _this__u8e3s4) {
205
204
  tmp_0 = isDigit(tmp0_safe_receiver);
206
205
  }
207
206
  if (tmp_0 === true) {
208
- tmp = '_' + _this__u8e3s4;
207
+ tmp = '_' + $receiver;
209
208
  } else {
210
- tmp = _this__u8e3s4;
209
+ tmp = $receiver;
211
210
  }
212
211
  return tmp;
213
212
  }
214
- function sanitizeKeywords($this, _this__u8e3s4) {
215
- return Companion_getInstance_0().v1x().v1(_this__u8e3s4) ? addBackticks(_this__u8e3s4) : _this__u8e3s4;
213
+ function sanitizeKeywords($this, $receiver) {
214
+ return Companion_getInstance_0().y1y().v1($receiver) ? addBackticks($receiver) : $receiver;
216
215
  }
217
- function sanitizeSymbol($this, _this__u8e3s4) {
216
+ function sanitizeSymbol($this, $receiver) {
218
217
  // Inline function 'kotlin.collections.mapIndexed' call
219
- var this_0 = split(_this__u8e3s4, ['.', ' ', '-']);
218
+ var this_0 = split($receiver, ['.', ' ', '-']);
220
219
  // Inline function 'kotlin.collections.mapIndexedTo' call
221
220
  var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
222
221
  var index = 0;
@@ -225,8 +224,8 @@ function sanitizeSymbol($this, _this__u8e3s4) {
225
224
  var item = _iterator__ex2g4s.v();
226
225
  var _unary__edvuaz = index;
227
226
  index = _unary__edvuaz + 1 | 0;
228
- var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance.dr(item) : item;
229
- destination.x(tmp$ret$0);
227
+ var tmp$ret$2 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance.or(item) : item;
228
+ destination.x(tmp$ret$2);
230
229
  }
231
230
  // Inline function 'kotlin.text.filter' call
232
231
  var tmp0 = joinToString(destination, '');
@@ -244,18 +243,18 @@ function sanitizeSymbol($this, _this__u8e3s4) {
244
243
  }
245
244
  }
246
245
  while (inductionVariable < last);
247
- var tmp$ret$5 = destination_0.toString();
248
- return sanitizeFirstIsDigit($this, tmp$ret$5);
246
+ var tmp$ret$3 = destination_0.toString();
247
+ return sanitizeFirstIsDigit($this, tmp$ret$3);
249
248
  }
250
- function sanitizeEnum($this, _this__u8e3s4) {
251
- return sanitizeKeywords($this, sanitizeFirstIsDigit($this, joinToString(split(_this__u8e3s4, ['-', ', ', '.', ' ', '//']), '_')));
249
+ function sanitizeEnum($this, $receiver) {
250
+ return sanitizeKeywords($this, sanitizeFirstIsDigit($this, joinToString(split($receiver, ['-', ', ', '.', ' ', '//']), '_')));
252
251
  }
253
252
  function Companion() {
254
253
  Companion_instance_2 = this;
255
- this.t1z_1 = ScalaGenerator_getInstance();
254
+ this.x20_1 = ScalaGenerator_getInstance();
256
255
  }
257
- protoOf(Companion).v1x = function () {
258
- return this.t1z_1.c1x_1;
256
+ protoOf(Companion).y1y = function () {
257
+ return this.x20_1.g1a_1;
259
258
  };
260
259
  var Companion_instance_2;
261
260
  function Companion_getInstance_0() {
@@ -263,41 +262,41 @@ function Companion_getInstance_0() {
263
262
  new Companion();
264
263
  return Companion_instance_2;
265
264
  }
266
- function ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda(it) {
265
+ function ScalaEmitter$sanitizationConfig$delegate$lambda$lambda(it) {
267
266
  return addBackticks(it);
268
267
  }
269
- function ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda_0(this$0) {
268
+ function ScalaEmitter$sanitizationConfig$delegate$lambda$lambda_0(this$0) {
270
269
  return function (name) {
271
- var sanitized = name.f1h_1.b1() > 1 ? name.t1m() : sanitizeSymbol(this$0, name.g1j());
270
+ var sanitized = name.kt_1.b1() > 1 ? name.ot() : sanitizeSymbol(this$0, name.nt());
272
271
  return new Name(listOf(sanitized));
273
272
  };
274
273
  }
275
- function ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda_1(this$0) {
274
+ function ScalaEmitter$sanitizationConfig$delegate$lambda$lambda_1(this$0) {
276
275
  return function (name) {
277
- return new Name(listOf(sanitizeSymbol(this$0, name.t1m())));
276
+ return new Name(listOf(sanitizeSymbol(this$0, name.ot())));
278
277
  };
279
278
  }
280
- function ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda_2(this$0) {
279
+ function ScalaEmitter$sanitizationConfig$delegate$lambda$lambda_2(this$0) {
281
280
  return function (it) {
282
281
  return sanitizeSymbol(this$0, it);
283
282
  };
284
283
  }
285
- function ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
284
+ function ScalaEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
286
285
  return function (stmt, tr) {
287
286
  var tmp;
288
287
  var tmp_0;
289
288
  if (stmt instanceof FunctionCall) {
290
- tmp_0 = stmt.d1n_1.g1j() === 'validate';
289
+ tmp_0 = stmt.ut_1.nt() === 'validate';
291
290
  } else {
292
291
  tmp_0 = false;
293
292
  }
294
293
  if (tmp_0) {
295
- tmp = transformChildren(stmt.h1n(VOID, emptyList()), tr);
294
+ tmp = transformChildren(stmt.yt(VOID, emptyList()), tr);
296
295
  } else {
297
296
  if (stmt instanceof ConstructorStatement) {
298
- var tmp_1 = tr.s1v(stmt.y1n_1);
297
+ var tmp_1 = tr.c17(stmt.tu_1);
299
298
  // Inline function 'kotlin.collections.map' call
300
- var this_0 = stmt.z1n_1;
299
+ var this_0 = stmt.uu_1;
301
300
  // Inline function 'kotlin.collections.mapTo' call
302
301
  var destination = ArrayList_init_$Create$(this_0.b1());
303
302
  // Inline function 'kotlin.collections.iterator' call
@@ -308,7 +307,7 @@ function ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
308
307
  var name = item.l1();
309
308
  // Inline function 'kotlin.collections.component2' call
310
309
  var expr = item.m1();
311
- var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), name), tr.v1v(expr));
310
+ var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), name), tr.f17(expr));
312
311
  destination.x(tmp$ret$3);
313
312
  }
314
313
  tmp = new ConstructorStatement(tmp_1, toMap(destination));
@@ -319,37 +318,37 @@ function ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
319
318
  return tmp;
320
319
  };
321
320
  }
322
- function ScalaIrEmitter$sanitizationConfig$delegate$lambda(this$0) {
321
+ function ScalaEmitter$sanitizationConfig$delegate$lambda(this$0) {
323
322
  return function () {
324
- var tmp = Companion_getInstance_0().v1x();
325
- var tmp_0 = ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda;
326
- var tmp_1 = ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda_0(this$0);
327
- var tmp_2 = ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda_1(this$0);
328
- var tmp_3 = ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda_2(this$0);
329
- return new SanitizationConfig(tmp, tmp_0, tmp_1, tmp_2, tmp_3, ScalaIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0));
323
+ var tmp = Companion_getInstance_0().y1y();
324
+ var tmp_0 = ScalaEmitter$sanitizationConfig$delegate$lambda$lambda;
325
+ var tmp_1 = ScalaEmitter$sanitizationConfig$delegate$lambda$lambda_0(this$0);
326
+ var tmp_2 = ScalaEmitter$sanitizationConfig$delegate$lambda$lambda_1(this$0);
327
+ var tmp_3 = ScalaEmitter$sanitizationConfig$delegate$lambda$lambda_2(this$0);
328
+ return new SanitizationConfig(tmp, tmp_0, tmp_1, tmp_2, tmp_3, ScalaEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0));
330
329
  };
331
330
  }
332
- function ScalaIrEmitter$_get_sanitizationConfig_$ref_ydarb0() {
331
+ function ScalaEmitter$_get_sanitizationConfig_$ref_u7mbyd() {
333
332
  return function (p0) {
334
333
  return _get_sanitizationConfig__sns434(p0);
335
334
  };
336
335
  }
337
- function ScalaIrEmitter$emitShared$lambda($this$struct) {
338
- $this$struct.v1k(Custom_init_$Create$('PathSegment'));
339
- $this$struct.q1k('value', String_instance);
336
+ function ScalaEmitter$emitShared$lambda($this$struct) {
337
+ $this$struct.h14(Custom_init_$Create$('PathSegment'));
338
+ $this$struct.j14('value', String_instance);
340
339
  return Unit_instance;
341
340
  }
342
- function ScalaIrEmitter$emitShared$lambda_0($this$struct) {
343
- $this$struct.v1k(Custom_init_$Create$('PathSegment'));
344
- $this$struct.q1k('name', String_instance);
345
- $this$struct.q1k('type', Reflect_instance);
341
+ function ScalaEmitter$emitShared$lambda_0($this$struct) {
342
+ $this$struct.h14(Custom_init_$Create$('PathSegment'));
343
+ $this$struct.j14('name', String_instance);
344
+ $this$struct.j14('type', Reflect_instance);
346
345
  return Unit_instance;
347
346
  }
348
- function ScalaIrEmitter$emitShared$lambda_1(element, transformer) {
347
+ function ScalaEmitter$emitShared$lambda_1(element, transformer) {
349
348
  var tmp;
350
349
  if (element instanceof File) {
351
350
  // Inline function 'kotlin.collections.partition' call
352
- var this_0 = element.d1o_1;
351
+ var this_0 = element.yu_1;
353
352
  var first = ArrayList_init_$Create$_0();
354
353
  var second = ArrayList_init_$Create$_0();
355
354
  var _iterator__ex2g4s = this_0.t();
@@ -362,45 +361,45 @@ function ScalaIrEmitter$emitShared$lambda_1(element, transformer) {
362
361
  }
363
362
  }
364
363
  var _destruct__k2r9zo = new Pair(first, second);
365
- var packageElements = _destruct__k2r9zo.we();
366
- var rest = _destruct__k2r9zo.xe();
367
- tmp = element.g1o(VOID, plus(packageElements, rest));
364
+ var packageElements = _destruct__k2r9zo.ve();
365
+ var rest = _destruct__k2r9zo.we();
366
+ tmp = element.bv(VOID, plus(packageElements, rest));
368
367
  } else {
369
368
  tmp = element;
370
369
  }
371
370
  var transformed = tmp;
372
371
  return transformChildren_0(transformed, transformer);
373
372
  }
374
- function ScalaIrEmitter$emitShared$lambda_2(element, transformer) {
373
+ function ScalaEmitter$emitShared$lambda_2(element, transformer) {
375
374
  var tmp;
376
375
  if (element instanceof Namespace) {
377
376
  var tmp$ret$0;
378
377
  $l$block: {
379
- if (!element.i1o_1.equals(Companion_getInstance().h1h('Wirespec'))) {
378
+ if (!element.dv_1.equals(Companion_getInstance().mt('Wirespec'))) {
380
379
  tmp$ret$0 = element;
381
380
  break $l$block;
382
381
  }
383
382
  // Inline function 'kotlin.collections.flatMap' call
384
- var tmp0 = element.j1o_1;
383
+ var tmp0 = element.ev_1;
385
384
  // Inline function 'kotlin.collections.flatMapTo' call
386
385
  var destination = ArrayList_init_$Create$_0();
387
386
  var _iterator__ex2g4s = tmp0.t();
388
387
  while (_iterator__ex2g4s.u()) {
389
388
  var element_0 = _iterator__ex2g4s.v();
390
- var tmp$ret$1;
389
+ var tmp$ret$3;
391
390
  $l$block_2: {
392
391
  var tmp_0;
393
392
  if (!(element_0 instanceof Interface)) {
394
393
  tmp_0 = true;
395
394
  } else {
396
- tmp_0 = !setOf(['Request', 'Response']).v1(element_0.o1o_1.i1h());
395
+ tmp_0 = !setOf(['Request', 'Response']).v1(element_0.jv_1.pt());
397
396
  }
398
397
  if (tmp_0) {
399
- tmp$ret$1 = listOf(element_0);
398
+ tmp$ret$3 = listOf(element_0);
400
399
  break $l$block_2;
401
400
  }
402
401
  // Inline function 'kotlin.collections.filterIsInstance' call
403
- var tmp0_0 = element_0.p1o_1;
402
+ var tmp0_0 = element_0.kv_1;
404
403
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
405
404
  var destination_0 = ArrayList_init_$Create$_0();
406
405
  var _iterator__ex2g4s_0 = tmp0_0.t();
@@ -410,31 +409,31 @@ function ScalaIrEmitter$emitShared$lambda_2(element, transformer) {
410
409
  destination_0.x(element_1);
411
410
  }
412
411
  }
413
- var tmp$ret$5;
412
+ var tmp$ret$6;
414
413
  $l$block_1: {
415
414
  // Inline function 'kotlin.collections.firstOrNull' call
416
415
  var _iterator__ex2g4s_1 = destination_0.t();
417
416
  while (_iterator__ex2g4s_1.u()) {
418
417
  var element_2 = _iterator__ex2g4s_1.v();
419
- if (element_2.o1o_1.i1h() === 'Headers') {
420
- tmp$ret$5 = element_2;
418
+ if (element_2.jv_1.pt() === 'Headers') {
419
+ tmp$ret$6 = element_2;
421
420
  break $l$block_1;
422
421
  }
423
422
  }
424
- tmp$ret$5 = null;
423
+ tmp$ret$6 = null;
425
424
  }
426
- var tmp0_elvis_lhs = tmp$ret$5;
425
+ var tmp0_elvis_lhs = tmp$ret$6;
427
426
  var tmp_1;
428
427
  if (tmp0_elvis_lhs == null) {
429
- tmp$ret$1 = listOf(element_0);
428
+ tmp$ret$3 = listOf(element_0);
430
429
  break $l$block_2;
431
430
  } else {
432
431
  tmp_1 = tmp0_elvis_lhs;
433
432
  }
434
433
  var nestedHeaders = tmp_1;
435
- var tmp_2 = new Namespace(element_0.o1o_1, listOf(nestedHeaders));
434
+ var tmp_2 = new Namespace(element_0.jv_1, listOf(nestedHeaders));
436
435
  // Inline function 'kotlin.collections.filter' call
437
- var tmp0_1 = element_0.p1o_1;
436
+ var tmp0_1 = element_0.kv_1;
438
437
  // Inline function 'kotlin.collections.filterTo' call
439
438
  var destination_1 = ArrayList_init_$Create$_0();
440
439
  var _iterator__ex2g4s_2 = tmp0_1.t();
@@ -442,7 +441,7 @@ function ScalaIrEmitter$emitShared$lambda_2(element, transformer) {
442
441
  var element_3 = _iterator__ex2g4s_2.v();
443
442
  var tmp_3;
444
443
  if (element_3 instanceof Interface) {
445
- tmp_3 = element_3.o1o_1.i1h() === 'Headers';
444
+ tmp_3 = element_3.jv_1.pt() === 'Headers';
446
445
  } else {
447
446
  tmp_3 = false;
448
447
  }
@@ -452,28 +451,28 @@ function ScalaIrEmitter$emitShared$lambda_2(element, transformer) {
452
451
  }
453
452
  var tmp_4 = destination_1;
454
453
  // Inline function 'kotlin.collections.map' call
455
- var this_0 = element_0.t1o_1;
454
+ var this_0 = element_0.ov_1;
456
455
  // Inline function 'kotlin.collections.mapTo' call
457
456
  var destination_2 = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
458
457
  var _iterator__ex2g4s_3 = this_0.t();
459
458
  while (_iterator__ex2g4s_3.u()) {
460
459
  var item = _iterator__ex2g4s_3.v();
461
460
  var tmp_5;
462
- if (item.x1o_1.g1j() === 'headers') {
463
- tmp_5 = item.h1p(VOID, Custom_init_$Create$(element_0.o1o_1.i1h() + '.Headers'));
461
+ if (item.sv_1.nt() === 'headers') {
462
+ tmp_5 = item.cw(VOID, Custom_init_$Create$(element_0.jv_1.pt() + '.Headers'));
464
463
  } else {
465
464
  tmp_5 = item;
466
465
  }
467
- var tmp$ret$9 = tmp_5;
468
- destination_2.x(tmp$ret$9);
466
+ var tmp$ret$13 = tmp_5;
467
+ destination_2.x(tmp$ret$13);
469
468
  }
470
- tmp$ret$1 = listOf_0([tmp_2, element_0.w1o(VOID, tmp_4, VOID, VOID, VOID, destination_2)]);
469
+ tmp$ret$3 = listOf_0([tmp_2, element_0.rv(VOID, tmp_4, VOID, VOID, VOID, destination_2)]);
471
470
  }
472
- var list = tmp$ret$1;
471
+ var list = tmp$ret$3;
473
472
  addAll(destination, list);
474
473
  }
475
474
  var newElements = destination;
476
- tmp$ret$0 = element.n1o(VOID, newElements);
475
+ tmp$ret$0 = element.iv(VOID, newElements);
477
476
  }
478
477
  tmp = tmp$ret$0;
479
478
  } else {
@@ -482,31 +481,31 @@ function ScalaIrEmitter$emitShared$lambda_2(element, transformer) {
482
481
  var transformed = tmp;
483
482
  return transformChildren_0(transformed, transformer);
484
483
  }
485
- function ScalaIrEmitter$emitShared$lambda_3($clientServer) {
484
+ function ScalaEmitter$emitShared$lambda_3($clientServer) {
486
485
  return function (element, transformer) {
487
486
  var tmp;
488
487
  if (element instanceof Namespace) {
489
- var injected = element.i1o_1.equals(Companion_getInstance().h1h('Wirespec')) ? $clientServer : emptyList();
488
+ var injected = element.dv_1.equals(Companion_getInstance().mt('Wirespec')) ? $clientServer : emptyList();
490
489
  var tmp_0;
491
490
  // Inline function 'kotlin.collections.isNotEmpty' call
492
491
  if (!injected.r()) {
493
- // Inline function 'community.flock.wirespec.ir.core.withElements' call
494
- var elements = plus(element.e1o(), injected);
492
+ // Inline function 'community.flock.wirespec.compiler.core.ir.withElements' call
493
+ var elements = plus(element.zu(), injected);
495
494
  var tmp_1;
496
495
  if (element instanceof File) {
497
- tmp_1 = element.g1o(VOID, elements);
496
+ tmp_1 = element.bv(VOID, elements);
498
497
  } else {
499
498
  if (element instanceof Struct) {
500
- tmp_1 = element.n1q(VOID, VOID, VOID, VOID, elements);
499
+ tmp_1 = element.ix(VOID, VOID, VOID, VOID, elements);
501
500
  } else {
502
501
  if (element instanceof Namespace) {
503
- tmp_1 = element.n1o(VOID, elements);
502
+ tmp_1 = element.iv(VOID, elements);
504
503
  } else {
505
504
  if (element instanceof Interface) {
506
- tmp_1 = element.w1o(VOID, elements);
505
+ tmp_1 = element.rv(VOID, elements);
507
506
  } else {
508
- if (element instanceof Enum_0) {
509
- tmp_1 = element.b1q(VOID, VOID, VOID, VOID, VOID, elements);
507
+ if (element instanceof Enum) {
508
+ tmp_1 = element.ww(VOID, VOID, VOID, VOID, VOID, elements);
510
509
  } else {
511
510
  if (element instanceof Main) {
512
511
  tmp_1 = element;
@@ -531,51 +530,51 @@ function ScalaIrEmitter$emitShared$lambda_3($clientServer) {
531
530
  return transformChildren_0(transformed, transformer);
532
531
  };
533
532
  }
534
- function ScalaIrEmitter$emitGenerator$lambda(it) {
533
+ function ScalaEmitter$emitGenerator$lambda(it) {
535
534
  return startsWith(it, 'Wirespec.') || it === 'Wirespec';
536
535
  }
537
- function ScalaIrEmitter$emitGenerator$lambda_0($generatorOwnName) {
536
+ function ScalaEmitter$emitGenerator$lambda_0($generatorOwnName) {
538
537
  return function (it) {
539
538
  return it === $generatorOwnName;
540
539
  };
541
540
  }
542
- function ScalaIrEmitter$emitGenerator$lambda_1(it) {
541
+ function ScalaEmitter$emitGenerator$lambda_1(it) {
543
542
  return substringBefore(it, _Char___init__impl__6a9atx(60));
544
543
  }
545
- function ScalaIrEmitter$emit$lambda(this$0) {
544
+ function ScalaEmitter$emit$lambda(this$0) {
546
545
  return function (it) {
547
546
  return sanitizeEnum(this$0, it);
548
547
  };
549
548
  }
550
- function ScalaIrEmitter(packageName, emitShared) {
549
+ function ScalaEmitter(packageName, emitShared) {
551
550
  Companion_getInstance_0();
552
- packageName = packageName === VOID ? Companion_instance_0.is('community.flock.wirespec.generated') : packageName;
553
- emitShared = emitShared === VOID ? Companion_instance_1.fp() : emitShared;
554
- this.n1z_1 = packageName;
555
- this.o1z_1 = emitShared;
556
- this.p1z_1 = ScalaGenerator_getInstance();
557
- this.q1z_1 = FileExtension_Scala_getInstance();
558
- this.r1z_1 = listOf_0([import_0('community.flock.wirespec.scala', 'Wirespec'), import_0('scala.reflect', 'ClassTag')]);
551
+ packageName = packageName === VOID ? Companion_instance_0.qs('community.flock.wirespec.generated') : packageName;
552
+ emitShared = emitShared === VOID ? Companion_instance_1.xp() : emitShared;
553
+ this.r20_1 = packageName;
554
+ this.s20_1 = emitShared;
555
+ this.t20_1 = ScalaGenerator_getInstance();
556
+ this.u20_1 = FileExtension_Scala_getInstance();
557
+ this.v20_1 = listOf_0([import_0('community.flock.wirespec.scala', 'Wirespec'), import_0('scala.reflect', 'ClassTag')]);
559
558
  var tmp = this;
560
- tmp.s1z_1 = lazy(ScalaIrEmitter$sanitizationConfig$delegate$lambda(this));
559
+ tmp.w20_1 = lazy(ScalaEmitter$sanitizationConfig$delegate$lambda(this));
561
560
  }
562
- protoOf(ScalaIrEmitter).c1y = function () {
563
- return this.n1z_1;
561
+ protoOf(ScalaEmitter).f1z = function () {
562
+ return this.r20_1;
564
563
  };
565
- protoOf(ScalaIrEmitter).n1w = function () {
566
- return this.p1z_1;
564
+ protoOf(ScalaEmitter).x19 = function () {
565
+ return this.t20_1;
567
566
  };
568
- protoOf(ScalaIrEmitter).kr = function () {
569
- return this.q1z_1;
567
+ protoOf(ScalaEmitter).op = function () {
568
+ return this.u20_1;
570
569
  };
571
- protoOf(ScalaIrEmitter).u1w = function (allFiles) {
572
- ScalaGenerator_getInstance().g1x(allFiles);
570
+ protoOf(ScalaEmitter).w19 = function (allFiles) {
571
+ ScalaGenerator_getInstance().k1a(allFiles);
573
572
  };
574
- protoOf(ScalaIrEmitter).r1w = function () {
575
- var packageName = Companion_instance_0.is('community.flock.wirespec.scala');
573
+ protoOf(ScalaEmitter).s19 = function () {
574
+ var packageName = Companion_instance_0.qs('community.flock.wirespec.scala');
576
575
  var tmp = interface_0('PathSegment', true);
577
- var tmp_0 = struct('Literal', ScalaIrEmitter$emitShared$lambda);
578
- var pathSegmentTypes = listOf_0([tmp, tmp_0, struct('Param', ScalaIrEmitter$emitShared$lambda_0)]);
576
+ var tmp_0 = struct('Literal', ScalaEmitter$emitShared$lambda);
577
+ var pathSegmentTypes = listOf_0([tmp, tmp_0, struct('Param', ScalaEmitter$emitShared$lambda_0)]);
579
578
  // Inline function 'kotlin.collections.map' call
580
579
  var this_0 = convertClientServer();
581
580
  // Inline function 'kotlin.collections.mapTo' call
@@ -586,82 +585,82 @@ protoOf(ScalaIrEmitter).r1w = function () {
586
585
  var tmp_1;
587
586
  var tmp_2;
588
587
  if (item instanceof Interface) {
589
- tmp_2 = setOf(['Client', 'Server']).v1(item.o1o_1.i1h());
588
+ tmp_2 = setOf(['Client', 'Server']).v1(item.jv_1.pt());
590
589
  } else {
591
590
  tmp_2 = false;
592
591
  }
593
592
  if (tmp_2) {
594
- tmp_1 = item.w1o(VOID, VOID, VOID, VOID, VOID, plus_0(item.t1o_1, new Field(Companion_getInstance().h1h('pathSegments'), new Array_0(Custom_init_$Create$('PathSegment')))));
593
+ tmp_1 = item.rv(VOID, VOID, VOID, VOID, VOID, plus_0(item.ov_1, new Field(Companion_getInstance().mt('pathSegments'), new Array_0(Custom_init_$Create$('PathSegment')))));
595
594
  } else {
596
595
  tmp_1 = item;
597
596
  }
598
- var tmp$ret$0 = tmp_1;
599
- destination.x(tmp$ret$0);
597
+ var tmp$ret$2 = tmp_1;
598
+ destination.x(tmp$ret$2);
600
599
  }
601
600
  var clientServer = plus(pathSegmentTypes, destination);
602
- // Inline function 'community.flock.wirespec.ir.core.transform' call
601
+ // Inline function 'community.flock.wirespec.compiler.core.ir.transform' call
603
602
  var this_1 = convert(packageName);
604
603
  var scope = new TransformScope(this_1);
605
- // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
604
+ // Inline function 'community.flock.wirespec.compiler.core.ir.TransformScope.matchingElements' call
606
605
  var tmp_3 = scope;
607
- // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
608
- var this_2 = scope.a1w_1;
609
- // Inline function 'community.flock.wirespec.ir.core.transformer' call
606
+ // Inline function 'community.flock.wirespec.compiler.core.ir.transformMatchingElements' call
607
+ var this_2 = scope.k17_1;
608
+ // Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
610
609
  // Inline function 'kotlin.apply' call
611
610
  var this_3 = new TransformerBuilder();
612
- this_3.u1i(ScalaIrEmitter$emitShared$lambda_1);
613
- var tmp$ret$5 = this_3.v1i();
614
- tmp_3.a1w_1 = transform(this_2, tmp$ret$5);
615
- // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
611
+ this_3.e18(ScalaEmitter$emitShared$lambda_1);
612
+ var tmp$ret$7 = this_3.z17();
613
+ tmp_3.k17_1 = transform(this_2, tmp$ret$7);
614
+ // Inline function 'community.flock.wirespec.compiler.core.ir.TransformScope.matchingElements' call
616
615
  var tmp_4 = scope;
617
- // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
618
- var this_4 = scope.a1w_1;
619
- // Inline function 'community.flock.wirespec.ir.core.transformer' call
616
+ // Inline function 'community.flock.wirespec.compiler.core.ir.transformMatchingElements' call
617
+ var this_4 = scope.k17_1;
618
+ // Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
620
619
  // Inline function 'kotlin.apply' call
621
620
  var this_5 = new TransformerBuilder();
622
- this_5.u1i(ScalaIrEmitter$emitShared$lambda_2);
623
- var tmp$ret$10 = this_5.v1i();
624
- tmp_4.a1w_1 = transform(this_4, tmp$ret$10);
625
- // Inline function 'community.flock.wirespec.ir.core.TransformScope.injectAfter' call
621
+ this_5.e18(ScalaEmitter$emitShared$lambda_2);
622
+ var tmp$ret$12 = this_5.z17();
623
+ tmp_4.k17_1 = transform(this_4, tmp$ret$12);
624
+ // Inline function 'community.flock.wirespec.compiler.core.ir.TransformScope.injectAfter' call
626
625
  var tmp_5 = scope;
627
- // Inline function 'community.flock.wirespec.ir.core.injectAfter' call
628
- // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
629
- var this_6 = scope.a1w_1;
630
- // Inline function 'community.flock.wirespec.ir.core.transformer' call
626
+ // Inline function 'community.flock.wirespec.compiler.core.ir.injectAfter' call
627
+ // Inline function 'community.flock.wirespec.compiler.core.ir.transformMatchingElements' call
628
+ var this_6 = scope.k17_1;
629
+ // Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
631
630
  // Inline function 'kotlin.apply' call
632
631
  var this_7 = new TransformerBuilder();
633
- this_7.u1i(ScalaIrEmitter$emitShared$lambda_3(clientServer));
634
- var tmp$ret$15 = this_7.v1i();
635
- tmp_5.a1w_1 = transform(this_6, tmp$ret$15);
636
- var tmp_6 = scope.a1w_1;
632
+ this_7.e18(ScalaEmitter$emitShared$lambda_3(clientServer));
633
+ var tmp$ret$18 = this_7.z17();
634
+ tmp_5.k17_1 = transform(this_6, tmp$ret$18);
635
+ var tmp_6 = scope.k17_1;
637
636
  var wirespecShared = isInterface(tmp_6, Element) ? tmp_6 : THROW_CCE();
638
637
  var tmp_7;
639
- if (this.o1z_1.gp_1) {
640
- tmp_7 = wirespecShared.g1o(Companion_getInstance().h1h(packageName.ls() + 'Wirespec'));
638
+ if (this.s20_1.yp_1) {
639
+ tmp_7 = wirespecShared.bv(Companion_getInstance().mt(packageName.ts() + 'Wirespec'));
641
640
  } else {
642
641
  tmp_7 = null;
643
642
  }
644
643
  return tmp_7;
645
644
  };
646
- protoOf(ScalaIrEmitter).lr = function (definition, module_0, logger) {
645
+ protoOf(ScalaEmitter).sr = function (definition, module_0, logger) {
647
646
  var file = emit.call(this, definition, module_0, logger);
648
647
  // Inline function 'kotlin.takeIf' call
649
- var this_0 = this.r1z_1;
648
+ var this_0 = this.v20_1;
650
649
  var tmp;
651
- if (Companion_instance.er(module_0)) {
650
+ if (Companion_instance.pr(module_0)) {
652
651
  tmp = this_0;
653
652
  } else {
654
653
  tmp = null;
655
654
  }
656
- var tmp$ret$1 = tmp;
657
- return placeInPackage(prependImports(file, tmp$ret$1), this.c1y(), definition);
655
+ var tmp$ret$0 = tmp;
656
+ return placeInPackage(prependImports(file, tmp$ret$0), this.f1z(), definition);
658
657
  };
659
- protoOf(ScalaIrEmitter).w1w = function (definition, module_0) {
658
+ protoOf(ScalaEmitter).a1a = function (definition, module_0) {
660
659
  var tmp;
661
660
  if (definition instanceof Type) {
662
661
  tmp = convertToGenerator_2(definition, module_0);
663
662
  } else {
664
- if (definition instanceof Enum) {
663
+ if (definition instanceof Enum_0) {
665
664
  tmp = convertToGenerator_1(definition);
666
665
  } else {
667
666
  if (definition instanceof Refined) {
@@ -677,11 +676,11 @@ protoOf(ScalaIrEmitter).w1w = function (definition, module_0) {
677
676
  }
678
677
  var generatorFile = tmp;
679
678
  var sanitized = sanitizeNames(generatorFile, _get_sanitizationConfig__sns434(this));
680
- var generatorOwnName = definition.mr().m1() + 'Generator';
679
+ var generatorOwnName = definition.tr().m1() + 'Generator';
681
680
  var tmp_0 = asSequence(collectCustomTypeNames(sanitized));
682
- var tmp_1 = filterNot(tmp_0, ScalaIrEmitter$emitGenerator$lambda);
683
- var tmp_2 = filterNot(tmp_1, ScalaIrEmitter$emitGenerator$lambda_0(generatorOwnName));
684
- var customNames = toList(distinct(map(tmp_2, ScalaIrEmitter$emitGenerator$lambda_1)));
681
+ var tmp_1 = filterNot(tmp_0, ScalaEmitter$emitGenerator$lambda);
682
+ var tmp_2 = filterNot(tmp_1, ScalaEmitter$emitGenerator$lambda_0(generatorOwnName));
683
+ var customNames = toList(distinct(map(tmp_2, ScalaEmitter$emitGenerator$lambda_1)));
685
684
  // Inline function 'kotlin.collections.filterNot' call
686
685
  // Inline function 'kotlin.collections.filterNotTo' call
687
686
  var destination = ArrayList_init_$Create$_0();
@@ -698,27 +697,27 @@ protoOf(ScalaIrEmitter).w1w = function (definition, module_0) {
698
697
  var _iterator__ex2g4s_0 = destination.t();
699
698
  while (_iterator__ex2g4s_0.u()) {
700
699
  var item = _iterator__ex2g4s_0.v();
701
- var tmp$ret$3 = import_0(this.c1y().js_1 + '.model', item);
702
- destination_0.x(tmp$ret$3);
700
+ var tmp$ret$5 = import_0(this.f1z().rs_1 + '.model', item);
701
+ destination_0.x(tmp$ret$5);
703
702
  }
704
703
  var modelImports = destination_0;
705
- return placeInPackage_0(prependImports(sanitized, plus(this.r1z_1, modelImports)), this.c1y(), 'generator');
704
+ return placeInPackage_0(prependImports(sanitized, plus(this.v20_1, modelImports)), this.f1z(), 'generator');
706
705
  };
707
- protoOf(ScalaIrEmitter).cs = function (type, module_0) {
706
+ protoOf(ScalaEmitter).ks = function (type, module_0) {
708
707
  return ensureEmptyStructHasConstructor(sanitizeNames(convertWithValidation(type, module_0), _get_sanitizationConfig__sns434(this)));
709
708
  };
710
- protoOf(ScalaIrEmitter).as = function (enum_0, module_0) {
709
+ protoOf(ScalaEmitter).is = function (enum_0, module_0) {
711
710
  var tmp = sanitizeNames(convert_0(enum_0), _get_sanitizationConfig__sns434(this));
712
- return injectEnumLabelField(tmp, ScalaIrEmitter$emit$lambda(this));
711
+ return injectEnumLabelField(tmp, ScalaEmitter$emit$lambda(this));
713
712
  };
714
- protoOf(ScalaIrEmitter).qr = function (union) {
713
+ protoOf(ScalaEmitter).yr = function (union) {
715
714
  return sanitizeNames(convert_1(union), _get_sanitizationConfig__sns434(this));
716
715
  };
717
- protoOf(ScalaIrEmitter).vr = function (refined) {
716
+ protoOf(ScalaEmitter).ds = function (refined) {
718
717
  var file = sanitizeNames(convert_2(refined), _get_sanitizationConfig__sns434(this));
719
- // Inline function 'community.flock.wirespec.ir.core.findElement' call
718
+ // Inline function 'community.flock.wirespec.compiler.core.ir.findElement' call
720
719
  // Inline function 'kotlin.collections.filterIsInstance' call
721
- var tmp0 = file.e1o();
720
+ var tmp0 = file.zu();
722
721
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
723
722
  var destination = ArrayList_init_$Create$_0();
724
723
  var _iterator__ex2g4s = tmp0.t();
@@ -728,14 +727,14 @@ protoOf(ScalaIrEmitter).vr = function (refined) {
728
727
  destination.x(element);
729
728
  }
730
729
  }
731
- var tmp$ret$2 = firstOrNull_0(destination);
732
- var updatedStruct = convertToStringCallsToFieldAccess(markMembersAsOverride(ensureNotNull(tmp$ret$2)));
733
- return new File(Companion_getInstance().h1h(sanitize(this, refined.tr_1)), listOf(updatedStruct));
730
+ var tmp$ret$0 = firstOrNull_0(destination);
731
+ var updatedStruct = convertToStringCallsToFieldAccess(markMembersAsOverride(ensureNotNull(tmp$ret$0)));
732
+ return new File(Companion_getInstance().mt(sanitize(this, refined.bs_1)), listOf(updatedStruct));
734
733
  };
735
- protoOf(ScalaIrEmitter).bs = function (endpoint) {
736
- // Inline function 'community.flock.wirespec.ir.core.findElement' call
734
+ protoOf(ScalaEmitter).js = function (endpoint) {
735
+ // Inline function 'community.flock.wirespec.compiler.core.ir.findElement' call
737
736
  // Inline function 'kotlin.collections.filterIsInstance' call
738
- var tmp0 = convert_3(endpoint).e1o();
737
+ var tmp0 = convert_3(endpoint).zu();
739
738
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
740
739
  var destination = ArrayList_init_$Create$_0();
741
740
  var _iterator__ex2g4s = tmp0.t();
@@ -745,12 +744,12 @@ protoOf(ScalaIrEmitter).bs = function (endpoint) {
745
744
  destination.x(element);
746
745
  }
747
746
  }
748
- var tmp$ret$2 = firstOrNull_0(destination);
749
- var endpointNamespace = ensureNotNull(tmp$ret$2);
747
+ var tmp$ret$0 = firstOrNull_0(destination);
748
+ var endpointNamespace = ensureNotNull(tmp$ret$0);
750
749
  var body = appendClientServerObjects(injectHandleFunction(endpointNamespace), endpoint, isRequestObject(endpointNamespace));
751
- var tmp = sanitizeNames(new File(Companion_getInstance().h1h(sanitize(this, endpoint.kq_1)), listOf(body)), _get_sanitizationConfig__sns434(this));
750
+ var tmp = sanitizeNames(new File(Companion_getInstance().mt(sanitize(this, endpoint.vq_1)), listOf(body)), _get_sanitizationConfig__sns434(this));
752
751
  // Inline function 'kotlin.takeIf' call
753
- var this_0 = buildModelImports(endpoint, this.c1y());
752
+ var this_0 = buildModelImports(endpoint, this.f1z());
754
753
  var tmp_0;
755
754
  // Inline function 'kotlin.collections.isNotEmpty' call
756
755
  if (!this_0.r()) {
@@ -758,13 +757,13 @@ protoOf(ScalaIrEmitter).bs = function (endpoint) {
758
757
  } else {
759
758
  tmp_0 = null;
760
759
  }
761
- var tmp$ret$5 = tmp_0;
762
- return prependImports(tmp, tmp$ret$5);
760
+ var tmp$ret$3 = tmp_0;
761
+ return prependImports(tmp, tmp$ret$3);
763
762
  };
764
- protoOf(ScalaIrEmitter).pr = function (channel) {
763
+ protoOf(ScalaEmitter).xr = function (channel) {
765
764
  var tmp = sanitizeNames(convert_4(channel), _get_sanitizationConfig__sns434(this));
766
765
  // Inline function 'kotlin.takeIf' call
767
- var this_0 = buildModelImports(channel, this.c1y());
766
+ var this_0 = buildModelImports(channel, this.f1z());
768
767
  var tmp_0;
769
768
  // Inline function 'kotlin.collections.isNotEmpty' call
770
769
  if (!this_0.r()) {
@@ -772,13 +771,13 @@ protoOf(ScalaIrEmitter).pr = function (channel) {
772
771
  } else {
773
772
  tmp_0 = null;
774
773
  }
775
- var tmp$ret$2 = tmp_0;
776
- return prependImports(tmp, tmp$ret$2);
774
+ var tmp$ret$0 = tmp_0;
775
+ return prependImports(tmp, tmp$ret$0);
777
776
  };
778
- protoOf(ScalaIrEmitter).or = function (rpc) {
777
+ protoOf(ScalaEmitter).wr = function (rpc) {
779
778
  var tmp = sanitizeNames(convert_5(rpc), _get_sanitizationConfig__sns434(this));
780
779
  // Inline function 'kotlin.takeIf' call
781
- var this_0 = buildModelImports(rpc, this.c1y());
780
+ var this_0 = buildModelImports(rpc, this.f1z());
782
781
  var tmp_0;
783
782
  // Inline function 'kotlin.collections.isNotEmpty' call
784
783
  if (!this_0.r()) {
@@ -786,28 +785,28 @@ protoOf(ScalaIrEmitter).or = function (rpc) {
786
785
  } else {
787
786
  tmp_0 = null;
788
787
  }
789
- var tmp$ret$2 = tmp_0;
790
- return prependImports(tmp, tmp$ret$2);
788
+ var tmp$ret$0 = tmp_0;
789
+ return prependImports(tmp, tmp$ret$0);
791
790
  };
792
- protoOf(ScalaIrEmitter).v1w = function (endpoint) {
793
- var imports = buildModelImports(endpoint, this.c1y());
794
- var endpointImport = import_0(this.c1y().js_1 + '.endpoint', endpoint.kq_1.m1());
791
+ protoOf(ScalaEmitter).z19 = function (endpoint) {
792
+ var imports = buildModelImports(endpoint, this.f1z());
793
+ var endpointImport = import_0(this.f1z().rs_1 + '.endpoint', endpoint.vq_1.m1());
795
794
  var file = addIdentityTypeToCall(sanitizeNames(emitEndpointClient.call(this, endpoint), _get_sanitizationConfig__sns434(this)));
796
- var subPackageName = plus_1(this.c1y(), 'client');
797
- var tmp = Companion_getInstance().h1h(subPackageName.ls() + file.c1o_1.i1h());
795
+ var subPackageName = plus_1(this.f1z(), 'client');
796
+ var tmp = Companion_getInstance().mt(subPackageName.ts() + file.xu_1.pt());
798
797
  // Inline function 'kotlin.collections.buildList' call
799
798
  // Inline function 'kotlin.collections.buildListInternal' call
800
799
  // Inline function 'kotlin.apply' call
801
800
  var this_0 = ArrayList_init_$Create$_0();
802
- this_0.x(new Package(subPackageName.js_1));
803
- this_0.g1(this.r1z_1);
801
+ this_0.x(new Package(subPackageName.rs_1));
802
+ this_0.g1(this.v20_1);
804
803
  this_0.g1(imports);
805
804
  this_0.x(endpointImport);
806
- this_0.g1(file.d1o_1);
807
- var tmp$ret$3 = this_0.p5();
808
- return new File(tmp, tmp$ret$3);
805
+ this_0.g1(file.yu_1);
806
+ var tmp$ret$0 = this_0.p5();
807
+ return new File(tmp, tmp$ret$0);
809
808
  };
810
- protoOf(ScalaIrEmitter).s1w = function (endpoints, logger) {
809
+ protoOf(ScalaEmitter).t19 = function (endpoints, logger) {
811
810
  // Inline function 'kotlin.collections.flatMap' call
812
811
  // Inline function 'kotlin.collections.flatMapTo' call
813
812
  var destination = ArrayList_init_$Create$_0();
@@ -823,7 +822,7 @@ protoOf(ScalaIrEmitter).s1w = function (endpoints, logger) {
823
822
  var _iterator__ex2g4s_0 = destination.t();
824
823
  while (_iterator__ex2g4s_0.u()) {
825
824
  var e = _iterator__ex2g4s_0.v();
826
- var key = e.lv_1;
825
+ var key = e.h18_1;
827
826
  if (set.x(key)) {
828
827
  list_0.x(e);
829
828
  }
@@ -834,8 +833,8 @@ protoOf(ScalaIrEmitter).s1w = function (endpoints, logger) {
834
833
  var _iterator__ex2g4s_1 = list_0.t();
835
834
  while (_iterator__ex2g4s_1.u()) {
836
835
  var item = _iterator__ex2g4s_1.v();
837
- var tmp$ret$5 = import_0(this.c1y().js_1 + '.model', item.lv_1);
838
- destination_0.x(tmp$ret$5);
836
+ var tmp$ret$7 = import_0(this.f1z().rs_1 + '.model', item.h18_1);
837
+ destination_0.x(tmp$ret$7);
839
838
  }
840
839
  var imports = destination_0;
841
840
  // Inline function 'kotlin.collections.map' call
@@ -844,8 +843,8 @@ protoOf(ScalaIrEmitter).s1w = function (endpoints, logger) {
844
843
  var _iterator__ex2g4s_2 = endpoints.t();
845
844
  while (_iterator__ex2g4s_2.u()) {
846
845
  var item_0 = _iterator__ex2g4s_2.v();
847
- var tmp$ret$8 = import_0(this.c1y().js_1 + '.endpoint', item_0.kq_1.m1());
848
- destination_1.x(tmp$ret$8);
846
+ var tmp$ret$10 = import_0(this.f1z().rs_1 + '.endpoint', item_0.vq_1.m1());
847
+ destination_1.x(tmp$ret$10);
849
848
  }
850
849
  var endpointImports = destination_1;
851
850
  // Inline function 'kotlin.collections.map' call
@@ -854,58 +853,58 @@ protoOf(ScalaIrEmitter).s1w = function (endpoints, logger) {
854
853
  var _iterator__ex2g4s_3 = endpoints.t();
855
854
  while (_iterator__ex2g4s_3.u()) {
856
855
  var item_1 = _iterator__ex2g4s_3.v();
857
- var tmp$ret$11 = import_0(this.c1y().js_1 + '.client', item_1.kq_1.m1() + 'Client');
858
- destination_2.x(tmp$ret$11);
856
+ var tmp$ret$13 = import_0(this.f1z().rs_1 + '.client', item_1.vq_1.m1() + 'Client');
857
+ destination_2.x(tmp$ret$13);
859
858
  }
860
859
  var clientImports = destination_2;
861
860
  var allImports = plus(plus(imports, endpointImports), clientImports);
862
861
  var file = addIdentityTypeToCall(sanitizeNames(emitClient.call(this, endpoints, logger), _get_sanitizationConfig__sns434(this)));
863
- var tmp = Companion_getInstance().h1h(this.c1y().ls() + file.c1o_1.i1h());
862
+ var tmp = Companion_getInstance().mt(this.f1z().ts() + file.xu_1.pt());
864
863
  // Inline function 'kotlin.collections.buildList' call
865
864
  // Inline function 'kotlin.collections.buildListInternal' call
866
865
  // Inline function 'kotlin.apply' call
867
866
  var this_0 = ArrayList_init_$Create$_0();
868
- this_0.x(new Package(this.c1y().js_1));
869
- this_0.g1(this.r1z_1);
867
+ this_0.x(new Package(this.f1z().rs_1));
868
+ this_0.g1(this.v20_1);
870
869
  this_0.g1(allImports);
871
- this_0.g1(file.d1o_1);
872
- var tmp$ret$17 = this_0.p5();
873
- return new File(tmp, tmp$ret$17);
870
+ this_0.g1(file.yu_1);
871
+ var tmp$ret$14 = this_0.p5();
872
+ return new File(tmp, tmp$ret$14);
874
873
  };
875
874
  function convertToStringCallsToFieldAccess(_this__u8e3s4) {
876
- // Inline function 'community.flock.wirespec.ir.core.transform' call
875
+ // Inline function 'community.flock.wirespec.compiler.core.ir.transform' call
877
876
  var scope = new TransformScope(_this__u8e3s4);
878
- scope.i1w(convertToStringCallsToFieldAccess$lambda);
879
- var tmp = scope.a1w_1;
877
+ scope.b18(convertToStringCallsToFieldAccess$lambda);
878
+ var tmp = scope.k17_1;
880
879
  return isInterface(tmp, Element) ? tmp : THROW_CCE();
881
880
  }
882
881
  function appendClientServerObjects(_this__u8e3s4, endpoint, requestIsObject) {
883
882
  var reqType = requestIsObject ? 'Request.type' : 'Request';
884
- var pathTemplate = '/' + joinToString(endpoint.mq_1, '/', VOID, VOID, VOID, VOID, appendClientServerObjects$lambda);
885
- var pathSegmentsCode = joinToString(endpoint.mq_1, ', ', VOID, VOID, VOID, VOID, appendClientServerObjects$lambda_0);
886
- var clientObject = raw(trimMargin('\n |object Client extends Wirespec.Client[' + reqType + ', Response[?]] {\n | override val pathTemplate: String = "' + pathTemplate + '"\n | override val method: String = "' + endpoint.lq_1.toString() + '"\n | override val pathSegments: List[Wirespec.PathSegment] = List(' + pathSegmentsCode + ')\n | override def client(serialization: Wirespec.Serialization): Wirespec.ClientEdge[' + reqType + ', Response[?]] = new Wirespec.ClientEdge[' + reqType + ', Response[?]] {\n | override def to(request: ' + reqType + '): Wirespec.RawRequest = toRawRequest(serialization, request)\n | override def from(response: Wirespec.RawResponse): Response[?] = fromRawResponse(serialization, response)\n | }\n |}\n '));
887
- var serverObject = raw(trimMargin('\n |object Server extends Wirespec.Server[' + reqType + ', Response[?]] {\n | override val pathTemplate: String = "' + pathTemplate + '"\n | override val method: String = "' + endpoint.lq_1.toString() + '"\n | override val pathSegments: List[Wirespec.PathSegment] = List(' + pathSegmentsCode + ')\n | override def server(serialization: Wirespec.Serialization): Wirespec.ServerEdge[' + reqType + ', Response[?]] = new Wirespec.ServerEdge[' + reqType + ', Response[?]] {\n | override def from(request: Wirespec.RawRequest): ' + reqType + ' = fromRawRequest(serialization, request)\n | override def to(response: Response[?]): Wirespec.RawResponse = toRawResponse(serialization, response)\n | }\n |}\n '));
888
- return _this__u8e3s4.n1o(VOID, plus_0(plus_0(_this__u8e3s4.j1o_1, clientObject), serverObject));
883
+ var pathTemplate = '/' + joinToString(endpoint.xq_1, '/', VOID, VOID, VOID, VOID, appendClientServerObjects$lambda);
884
+ var pathSegmentsCode = joinToString(endpoint.xq_1, ', ', VOID, VOID, VOID, VOID, appendClientServerObjects$lambda_0);
885
+ var clientObject = raw(trimMargin('\n |object Client extends Wirespec.Client[' + reqType + ', Response[?]] {\n | override val pathTemplate: String = "' + pathTemplate + '"\n | override val method: String = "' + endpoint.wq_1.toString() + '"\n | override val pathSegments: List[Wirespec.PathSegment] = List(' + pathSegmentsCode + ')\n | override def client(serialization: Wirespec.Serialization): Wirespec.ClientEdge[' + reqType + ', Response[?]] = new Wirespec.ClientEdge[' + reqType + ', Response[?]] {\n | override def to(request: ' + reqType + '): Wirespec.RawRequest = toRawRequest(serialization, request)\n | override def from(response: Wirespec.RawResponse): Response[?] = fromRawResponse(serialization, response)\n | }\n |}\n '));
886
+ var serverObject = raw(trimMargin('\n |object Server extends Wirespec.Server[' + reqType + ', Response[?]] {\n | override val pathTemplate: String = "' + pathTemplate + '"\n | override val method: String = "' + endpoint.wq_1.toString() + '"\n | override val pathSegments: List[Wirespec.PathSegment] = List(' + pathSegmentsCode + ')\n | override def server(serialization: Wirespec.Serialization): Wirespec.ServerEdge[' + reqType + ', Response[?]] = new Wirespec.ServerEdge[' + reqType + ', Response[?]] {\n | override def from(request: Wirespec.RawRequest): ' + reqType + ' = fromRawRequest(serialization, request)\n | override def to(response: Response[?]): Wirespec.RawResponse = toRawResponse(serialization, response)\n | }\n |}\n '));
887
+ return _this__u8e3s4.iv(VOID, plus_0(plus_0(_this__u8e3s4.ev_1, clientObject), serverObject));
889
888
  }
890
889
  function injectHandleFunction(_this__u8e3s4) {
891
- // Inline function 'community.flock.wirespec.ir.core.transform' call
890
+ // Inline function 'community.flock.wirespec.compiler.core.ir.transform' call
892
891
  var scope = new TransformScope(_this__u8e3s4);
893
- // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
892
+ // Inline function 'community.flock.wirespec.compiler.core.ir.TransformScope.matchingElements' call
894
893
  var tmp = scope;
895
- // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
896
- var this_0 = scope.a1w_1;
897
- // Inline function 'community.flock.wirespec.ir.core.transformer' call
894
+ // Inline function 'community.flock.wirespec.compiler.core.ir.transformMatchingElements' call
895
+ var this_0 = scope.k17_1;
896
+ // Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
898
897
  // Inline function 'kotlin.apply' call
899
898
  var this_1 = new TransformerBuilder();
900
- this_1.u1i(injectHandleFunction$lambda);
901
- var tmp$ret$2 = this_1.v1i();
902
- tmp.a1w_1 = transform(this_0, tmp$ret$2);
903
- var tmp_0 = scope.a1w_1;
899
+ this_1.e18(injectHandleFunction$lambda);
900
+ var tmp$ret$4 = this_1.z17();
901
+ tmp.k17_1 = transform(this_0, tmp$ret$4);
902
+ var tmp_0 = scope.k17_1;
904
903
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
905
904
  }
906
905
  function isRequestObject(namespace) {
907
906
  // Inline function 'kotlin.collections.filterIsInstance' call
908
- var tmp0 = namespace.j1o_1;
907
+ var tmp0 = namespace.ev_1;
909
908
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
910
909
  var destination = ArrayList_init_$Create$_0();
911
910
  var _iterator__ex2g4s = tmp0.t();
@@ -915,20 +914,20 @@ function isRequestObject(namespace) {
915
914
  destination.x(element);
916
915
  }
917
916
  }
918
- var tmp$ret$3;
917
+ var tmp$ret$2;
919
918
  $l$block: {
920
919
  // Inline function 'kotlin.collections.firstOrNull' call
921
920
  var _iterator__ex2g4s_0 = destination.t();
922
921
  while (_iterator__ex2g4s_0.u()) {
923
922
  var element_0 = _iterator__ex2g4s_0.v();
924
- if (element_0.c1q_1.i1h() === 'Request') {
925
- tmp$ret$3 = element_0;
923
+ if (element_0.xw_1.pt() === 'Request') {
924
+ tmp$ret$2 = element_0;
926
925
  break $l$block;
927
926
  }
928
927
  }
929
- tmp$ret$3 = null;
928
+ tmp$ret$2 = null;
930
929
  }
931
- var tmp0_elvis_lhs = tmp$ret$3;
930
+ var tmp0_elvis_lhs = tmp$ret$2;
932
931
  var tmp;
933
932
  if (tmp0_elvis_lhs == null) {
934
933
  return false;
@@ -936,7 +935,7 @@ function isRequestObject(namespace) {
936
935
  tmp = tmp0_elvis_lhs;
937
936
  }
938
937
  var requestStruct = tmp;
939
- return requestStruct.e1q_1.b1() === 1 && single(requestStruct.e1q_1).k1s_1.r() || (requestStruct.d1q_1.r() && requestStruct.e1q_1.r());
938
+ return requestStruct.zw_1.b1() === 1 && single(requestStruct.zw_1).rz_1.r() || (requestStruct.yw_1.r() && requestStruct.zw_1.r());
940
939
  }
941
940
  function buildModelImports(_this__u8e3s4, packageName) {
942
941
  // Inline function 'kotlin.collections.distinctBy' call
@@ -946,7 +945,7 @@ function buildModelImports(_this__u8e3s4, packageName) {
946
945
  var _iterator__ex2g4s = this_0.t();
947
946
  while (_iterator__ex2g4s.u()) {
948
947
  var e = _iterator__ex2g4s.v();
949
- var key = e.lv_1;
948
+ var key = e.h18_1;
950
949
  if (set.x(key)) {
951
950
  list.x(e);
952
951
  }
@@ -957,40 +956,40 @@ function buildModelImports(_this__u8e3s4, packageName) {
957
956
  var _iterator__ex2g4s_0 = list.t();
958
957
  while (_iterator__ex2g4s_0.u()) {
959
958
  var item = _iterator__ex2g4s_0.v();
960
- var tmp$ret$2 = import_0(packageName.js_1 + '.model', Companion_getInstance().h1h(item.lv_1).i1h());
961
- destination.x(tmp$ret$2);
959
+ var tmp$ret$4 = import_0(packageName.rs_1 + '.model', Companion_getInstance().mt(item.h18_1).pt());
960
+ destination.x(tmp$ret$4);
962
961
  }
963
962
  return destination;
964
963
  }
965
964
  function addIdentityTypeToCall(_this__u8e3s4) {
966
- // Inline function 'community.flock.wirespec.ir.core.transform' call
965
+ // Inline function 'community.flock.wirespec.compiler.core.ir.transform' call
967
966
  var scope = new TransformScope(_this__u8e3s4);
968
- // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
967
+ // Inline function 'community.flock.wirespec.compiler.core.ir.TransformScope.matchingElements' call
969
968
  var tmp = scope;
970
- // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
971
- var this_0 = scope.a1w_1;
972
- // Inline function 'community.flock.wirespec.ir.core.transformer' call
969
+ // Inline function 'community.flock.wirespec.compiler.core.ir.transformMatchingElements' call
970
+ var this_0 = scope.k17_1;
971
+ // Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
973
972
  // Inline function 'kotlin.apply' call
974
973
  var this_1 = new TransformerBuilder();
975
- this_1.u1i(addIdentityTypeToCall$lambda);
976
- var tmp$ret$2 = this_1.v1i();
977
- tmp.a1w_1 = transform(this_0, tmp$ret$2);
978
- var tmp_0 = scope.a1w_1;
974
+ this_1.e18(addIdentityTypeToCall$lambda);
975
+ var tmp$ret$4 = this_1.z17();
976
+ tmp.k17_1 = transform(this_0, tmp$ret$4);
977
+ var tmp_0 = scope.k17_1;
979
978
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
980
979
  }
981
980
  function toScalaTypeName(_this__u8e3s4) {
982
981
  var tmp;
983
982
  if (_this__u8e3s4 instanceof Primitive) {
984
- var t = _this__u8e3s4.wt_1;
983
+ var t = _this__u8e3s4.j18_1;
985
984
  var tmp_0;
986
985
  if (t instanceof String_0) {
987
986
  tmp_0 = 'String';
988
987
  } else {
989
988
  if (t instanceof Integer) {
990
- tmp_0 = t.tu_1.equals(Precision_P32_getInstance()) ? 'Int' : 'Long';
989
+ tmp_0 = t.r18_1.equals(Precision_P32_getInstance()) ? 'Int' : 'Long';
991
990
  } else {
992
991
  if (t instanceof Number_0) {
993
- tmp_0 = t.wu_1.equals(Precision_P32_getInstance()) ? 'Float' : 'Double';
992
+ tmp_0 = t.m18_1.equals(Precision_P32_getInstance()) ? 'Float' : 'Double';
994
993
  } else {
995
994
  if (equals(t, Boolean_instance)) {
996
995
  tmp_0 = 'Boolean';
@@ -1007,13 +1006,13 @@ function toScalaTypeName(_this__u8e3s4) {
1007
1006
  tmp = tmp_0;
1008
1007
  } else {
1009
1008
  if (_this__u8e3s4 instanceof Custom) {
1010
- tmp = _this__u8e3s4.lv_1;
1009
+ tmp = _this__u8e3s4.h18_1;
1011
1010
  } else {
1012
1011
  if (_this__u8e3s4 instanceof Iterable) {
1013
- tmp = 'List[' + toScalaTypeName(_this__u8e3s4.yo_1) + ']';
1012
+ tmp = 'List[' + toScalaTypeName(_this__u8e3s4.qp_1) + ']';
1014
1013
  } else {
1015
1014
  if (_this__u8e3s4 instanceof Dict) {
1016
- tmp = 'Map[String, ' + toScalaTypeName(_this__u8e3s4.bp_1) + ']';
1015
+ tmp = 'Map[String, ' + toScalaTypeName(_this__u8e3s4.tp_1) + ']';
1017
1016
  } else {
1018
1017
  if (_this__u8e3s4 instanceof Any) {
1019
1018
  tmp = 'Any';
@@ -1029,32 +1028,32 @@ function toScalaTypeName(_this__u8e3s4) {
1029
1028
  }
1030
1029
  }
1031
1030
  var base = tmp;
1032
- return _this__u8e3s4.dv() ? 'Option[' + base + ']' : base;
1031
+ return _this__u8e3s4.et() ? 'Option[' + base + ']' : base;
1033
1032
  }
1034
1033
  function convertToStringCallsToFieldAccess$lambda(expr, tr) {
1035
1034
  var tmp;
1036
1035
  var tmp_0;
1037
1036
  var tmp_1;
1038
1037
  if (expr instanceof FunctionCall) {
1039
- tmp_1 = expr.d1n_1.t1m() === 'toString';
1038
+ tmp_1 = expr.ut_1.ot() === 'toString';
1040
1039
  } else {
1041
1040
  tmp_1 = false;
1042
1041
  }
1043
1042
  if (tmp_1) {
1044
- tmp_0 = !(expr.b1n_1 == null);
1043
+ tmp_0 = !(expr.st_1 == null);
1045
1044
  } else {
1046
1045
  tmp_0 = false;
1047
1046
  }
1048
1047
  if (tmp_0) {
1049
- var tmp0_safe_receiver = expr.b1n_1;
1048
+ var tmp0_safe_receiver = expr.st_1;
1050
1049
  var tmp_2;
1051
1050
  if (tmp0_safe_receiver == null) {
1052
1051
  tmp_2 = null;
1053
1052
  } else {
1054
1053
  // Inline function 'kotlin.let' call
1055
- tmp_2 = tr.v1v(tmp0_safe_receiver);
1054
+ tmp_2 = tr.f17(tmp0_safe_receiver);
1056
1055
  }
1057
- tmp = new FieldCall(tmp_2, Companion_getInstance().h1h('toString'));
1056
+ tmp = new FieldCall(tmp_2, Companion_getInstance().mt('toString'));
1058
1057
  } else {
1059
1058
  tmp = transformChildren_1(expr, tr);
1060
1059
  }
@@ -1063,10 +1062,10 @@ function convertToStringCallsToFieldAccess$lambda(expr, tr) {
1063
1062
  function appendClientServerObjects$lambda(it) {
1064
1063
  var tmp;
1065
1064
  if (it instanceof Literal) {
1066
- tmp = it.bu_1;
1065
+ tmp = it.q19_1;
1067
1066
  } else {
1068
1067
  if (it instanceof Param) {
1069
- tmp = '{' + it.rq_1.m1() + '}';
1068
+ tmp = '{' + it.cr_1.m1() + '}';
1070
1069
  } else {
1071
1070
  noWhenBranchMatchedException();
1072
1071
  }
@@ -1076,10 +1075,10 @@ function appendClientServerObjects$lambda(it) {
1076
1075
  function appendClientServerObjects$lambda_0(segment) {
1077
1076
  var tmp;
1078
1077
  if (segment instanceof Literal) {
1079
- tmp = 'Wirespec.Literal("' + segment.bu_1 + '")';
1078
+ tmp = 'Wirespec.Literal("' + segment.q19_1 + '")';
1080
1079
  } else {
1081
1080
  if (segment instanceof Param) {
1082
- tmp = 'Wirespec.Param("' + segment.rq_1.m1() + '", scala.reflect.classTag[' + toScalaTypeName(segment.sq_1) + '])';
1081
+ tmp = 'Wirespec.Param("' + segment.cr_1.m1() + '", scala.reflect.classTag[' + toScalaTypeName(segment.dr_1) + '])';
1083
1082
  } else {
1084
1083
  noWhenBranchMatchedException();
1085
1084
  }
@@ -1091,13 +1090,13 @@ function injectHandleFunction$lambda(element, transformer) {
1091
1090
  if (element instanceof Interface) {
1092
1091
  var tmp$ret$0;
1093
1092
  $l$block: {
1094
- if (!element.o1o_1.equals(Companion_getInstance().h1h('Handler')) && !element.o1o_1.equals(Companion_getInstance().h1h('Call'))) {
1093
+ if (!element.jv_1.equals(Companion_getInstance().mt('Handler')) && !element.jv_1.equals(Companion_getInstance().mt('Call'))) {
1095
1094
  tmp$ret$0 = element;
1096
1095
  break $l$block;
1097
1096
  }
1098
1097
  var tmp0_typeParameters = listOf(new TypeParameter(Custom_init_$Create$('F[_]')));
1099
1098
  // Inline function 'kotlin.collections.map' call
1100
- var this_0 = element.p1o_1;
1099
+ var this_0 = element.kv_1;
1101
1100
  // Inline function 'kotlin.collections.mapTo' call
1102
1101
  var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
1103
1102
  var _iterator__ex2g4s = this_0.t();
@@ -1108,7 +1107,7 @@ function injectHandleFunction$lambda(element, transformer) {
1108
1107
  if (tmp0_safe_receiver == null) {
1109
1108
  tmp_0 = null;
1110
1109
  } else {
1111
- var tmp1_safe_receiver = item.h1l_1;
1110
+ var tmp1_safe_receiver = item.mx_1;
1112
1111
  var tmp_1;
1113
1112
  if (tmp1_safe_receiver == null) {
1114
1113
  tmp_1 = null;
@@ -1117,13 +1116,13 @@ function injectHandleFunction$lambda(element, transformer) {
1117
1116
  tmp_1 = Custom_init_$Create$('F', listOf(tmp1_safe_receiver));
1118
1117
  }
1119
1118
  var tmp3_returnType = tmp_1;
1120
- tmp_0 = tmp0_safe_receiver.p1l(VOID, VOID, VOID, tmp3_returnType, VOID, false);
1119
+ tmp_0 = tmp0_safe_receiver.vx(VOID, VOID, VOID, tmp3_returnType, VOID, false);
1121
1120
  }
1122
1121
  var tmp4_elvis_lhs = tmp_0;
1123
1122
  var tmp$ret$3 = tmp4_elvis_lhs == null ? item : tmp4_elvis_lhs;
1124
1123
  destination.x(tmp$ret$3);
1125
1124
  }
1126
- tmp$ret$0 = element.w1o(VOID, destination, VOID, VOID, tmp0_typeParameters);
1125
+ tmp$ret$0 = element.rv(VOID, destination, VOID, VOID, tmp0_typeParameters);
1127
1126
  }
1128
1127
  tmp = tmp$ret$0;
1129
1128
  } else {
@@ -1136,7 +1135,7 @@ function addIdentityTypeToCall$lambda(element, transformer) {
1136
1135
  var tmp;
1137
1136
  if (element instanceof Struct) {
1138
1137
  // Inline function 'kotlin.collections.map' call
1139
- var this_0 = element.f1q_1;
1138
+ var this_0 = element.ax_1;
1140
1139
  // Inline function 'kotlin.collections.mapTo' call
1141
1140
  var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
1142
1141
  var _iterator__ex2g4s = this_0.t();
@@ -1144,17 +1143,17 @@ function addIdentityTypeToCall$lambda(element, transformer) {
1144
1143
  var item = _iterator__ex2g4s.v();
1145
1144
  // Inline function 'kotlin.takeIf' call
1146
1145
  var tmp_0;
1147
- if (endsWith(item.e1j_1.i1h(), '.Call')) {
1146
+ if (endsWith(item.gu_1.pt(), '.Call')) {
1148
1147
  tmp_0 = item;
1149
1148
  } else {
1150
1149
  tmp_0 = null;
1151
1150
  }
1152
1151
  var tmp0_safe_receiver = tmp_0;
1153
- var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.p1n(VOID, listOf(Custom_init_$Create$('[A] =>> A')));
1154
- var tmp$ret$2 = tmp1_elvis_lhs == null ? item : tmp1_elvis_lhs;
1155
- destination.x(tmp$ret$2);
1152
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ju(VOID, listOf(Custom_init_$Create$('[A] =>> A')));
1153
+ var tmp$ret$3 = tmp1_elvis_lhs == null ? item : tmp1_elvis_lhs;
1154
+ destination.x(tmp$ret$3);
1156
1155
  }
1157
- tmp = element.n1q(VOID, VOID, VOID, destination);
1156
+ tmp = element.ix(VOID, VOID, VOID, destination);
1158
1157
  } else {
1159
1158
  tmp = element;
1160
1159
  }
@@ -1162,13 +1161,14 @@ function addIdentityTypeToCall$lambda(element, transformer) {
1162
1161
  return transformChildren_0(transformed, transformer);
1163
1162
  }
1164
1163
  //region block: post-declaration
1165
- protoOf(ScalaIrEmitter).p1w = get_extensions;
1166
- protoOf(ScalaIrEmitter).no = emit_0;
1167
- protoOf(ScalaIrEmitter).q1w = emit_1;
1164
+ protoOf(ScalaEmitter).u19 = get_extensions;
1165
+ protoOf(ScalaEmitter).mo = emit_0;
1166
+ protoOf(ScalaEmitter).r19 = emit_1;
1167
+ protoOf(ScalaEmitter).np = get_supportsDefaults;
1168
1168
  //endregion
1169
1169
  //region block: exports
1170
1170
  export {
1171
- ScalaIrEmitter as ScalaIrEmitterytuwlk19c8ah,
1171
+ ScalaEmitter as ScalaEmitter3fpajh5neerxm,
1172
1172
  };
1173
1173
  //endregion
1174
1174