@flock/wirespec 0.18.6 → 0.19.0-RC.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/Kotlin-DateTime-library-kotlinx-datetime.mjs +4 -0
  2. package/Kotlin-DateTime-library-kotlinx-datetime.mjs.map +1 -0
  3. package/arrow-arrow-atomic.mjs +12 -12
  4. package/arrow-arrow-core.mjs +154 -154
  5. package/clikt-clikt-mordant.mjs +80 -80
  6. package/clikt-clikt-mordant.mjs.map +1 -1
  7. package/clikt-clikt.mjs +1549 -1549
  8. package/clikt-clikt.mjs.map +1 -1
  9. package/colormath-root-colormath.mjs +441 -441
  10. package/kotest-kotest-assertions-kotest-assertions-core.mjs +4 -0
  11. package/kotest-kotest-assertions-kotest-assertions-core.mjs.map +1 -0
  12. package/kotest-kotest-assertions-kotest-assertions-shared.mjs +4 -0
  13. package/kotest-kotest-assertions-kotest-assertions-shared.mjs.map +1 -0
  14. package/kotest-kotest-common.mjs +56 -0
  15. package/kotest-kotest-common.mjs.map +1 -0
  16. package/kotest-kotest-framework-kotest-framework-engine.mjs +4 -0
  17. package/kotest-kotest-framework-kotest-framework-engine.mjs.map +1 -0
  18. package/kotest-kotest-property-kotest-property-datetime.mjs +4 -0
  19. package/kotest-kotest-property-kotest-property-datetime.mjs.map +1 -0
  20. package/kotest-kotest-property.mjs +2400 -0
  21. package/kotest-kotest-property.mjs.map +1 -0
  22. package/kotest-property-arbs.mjs +4 -0
  23. package/kotest-property-arbs.mjs.map +1 -0
  24. package/kotlin-kotlin-stdlib.mjs +5198 -2276
  25. package/kotlin-kotlin-stdlib.mjs.map +1 -1
  26. package/kotlin-openapi-bindings.mjs +4933 -4933
  27. package/kotlin-openapi-bindings.mjs.map +1 -1
  28. package/kotlin-rgxgen.mjs +1802 -1802
  29. package/kotlinx-coroutines-test.mjs +4 -0
  30. package/kotlinx-coroutines-test.mjs.map +1 -0
  31. package/kotlinx-io-kotlinx-io-core.mjs +432 -432
  32. package/kotlinx-io-kotlinx-io-core.mjs.map +1 -1
  33. package/kotlinx-serialization-kotlinx-serialization-core.mjs +1993 -1959
  34. package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
  35. package/kotlinx-serialization-kotlinx-serialization-json.mjs +1388 -1388
  36. package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
  37. package/mordant-mordant.mjs +1321 -1321
  38. package/package.json +9 -2
  39. package/wirespec-generator.d.ts +52 -0
  40. package/wirespec-generator.mjs +9 -0
  41. package/wirespec-src-compiler-core.mjs +1538 -1537
  42. package/wirespec-src-compiler-emitters-java.mjs +451 -389
  43. package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
  44. package/wirespec-src-compiler-emitters-kotlin.mjs +364 -301
  45. package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
  46. package/wirespec-src-compiler-emitters-python.mjs +556 -359
  47. package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
  48. package/wirespec-src-compiler-emitters-rust.mjs +758 -458
  49. package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
  50. package/wirespec-src-compiler-emitters-scala.mjs +243 -165
  51. package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
  52. package/wirespec-src-compiler-emitters-typescript.mjs +706 -420
  53. package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
  54. package/wirespec-src-compiler-emitters-wirespec.mjs +80 -80
  55. package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
  56. package/wirespec-src-compiler-ir.mjs +6639 -4861
  57. package/wirespec-src-compiler-ir.mjs.map +1 -1
  58. package/wirespec-src-compiler-lib.mjs +418 -418
  59. package/wirespec-src-compiler-lib.mjs.map +1 -1
  60. package/wirespec-src-converter-avro.mjs +509 -509
  61. package/wirespec-src-converter-avro.mjs.map +1 -1
  62. package/wirespec-src-converter-openapi.mjs +753 -753
  63. package/wirespec-src-converter-openapi.mjs.map +1 -1
  64. package/wirespec-src-integration-kotest.mjs +1455 -0
  65. package/wirespec-src-integration-kotest.mjs.map +1 -0
  66. package/wirespec-src-plugin-arguments.mjs +182 -182
  67. package/wirespec-src-plugin-arguments.mjs.map +1 -1
  68. package/wirespec-src-plugin-cli.mjs +106 -106
  69. package/wirespec-src-plugin-npm.d.mts +11 -0
  70. package/wirespec-src-plugin-npm.mjs +41 -41
  71. package/wirespec-src-plugin-npm.mjs.map +1 -1
  72. package/wirespec-src-tools-generator.mjs +53 -53
  73. package/wirespec-src-tools-generator.mjs.map +1 -1
  74. package/xmlutil-core.mjs +4 -0
  75. package/xmlutil-core.mjs.map +1 -0
  76. package/xmlutil-serialization.mjs +4 -0
  77. package/xmlutil-serialization.mjs.map +1 -0
@@ -17,13 +17,14 @@ import {
17
17
  Char19o2r8palgjof as Char,
18
18
  VOID3gxj6tk5isa35 as VOID,
19
19
  plus310ted5e4i90h as plus,
20
+ Collection1k04j3hzsbod0 as Collection,
21
+ isInterface3d6p8outrmvmk as isInterface,
22
+ equals2au1ep9vhcato as equals,
20
23
  to2cs3ny02qtbcb as to,
21
24
  setOf45ia9pnfhe90 as setOf,
22
25
  protoOf180f3jzyo7rfj as protoOf,
23
26
  initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
24
- equals2au1ep9vhcato as equals,
25
27
  FunctionAdapter3lcrrz3moet5b as FunctionAdapter,
26
- isInterface3d6p8outrmvmk as isInterface,
27
28
  Comparator2b3maoeh98xtg as Comparator,
28
29
  hashCodeq5arwsb9dgti as hashCode,
29
30
  initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
@@ -37,10 +38,12 @@ import {
37
38
  ensureNotNull1e947j3ixpazm as ensureNotNull,
38
39
  addAll1k27qatfgp3k5 as addAll,
39
40
  plus20p0vtfmu0596 as plus_0,
40
- Collection1k04j3hzsbod0 as Collection,
41
41
  charArrayOf27f4r3dozbrk1 as charArrayOf,
42
42
  trimEndvvzjdhan75g as trimEnd,
43
43
  compareValues1n2ayl87ihzfk as compareValues,
44
+ startsWith26w8qjqapeeq6 as startsWith,
45
+ substringBefore3n7kj60w69hju as substringBefore,
46
+ endsWith3cq61xxngobwh as endsWith,
44
47
  charCodeAt1yspne1d8erbm as charCodeAt,
45
48
  uppercaseChar6lahngw3wvwg as uppercaseChar,
46
49
  substring3saq8ornu0luv as substring,
@@ -48,17 +51,23 @@ import {
48
51
  lazy2hsh8ze7j6ikd as lazy,
49
52
  listOf1jh22dvmctj1r as listOf_0,
50
53
  mapOf1xd03cq9cnmy8 as mapOf,
54
+ emptyList1g2z5xcrvp2zy as emptyList,
51
55
  lastOrNull1aq5oz189qoe1 as lastOrNull,
52
56
  firstOrNull1982767dljvdy as firstOrNull_0,
53
57
  mutableListOf6oorvk2mtdmp as mutableListOf,
54
58
  last1vo29oleiqj36 as last,
55
59
  sortedWith2csnbbb21k0lg as sortedWith,
60
+ asSequence2phdjljfh9jhx as asSequence,
61
+ filterNot56uwv8hfomaa as filterNot,
62
+ mapsbvh18eqox7a as map,
63
+ distinct17vua5ffe1cfv as distinct,
64
+ toListx6x8nvfmvvht as toList,
65
+ LinkedHashSet_init_$Create$2lru2gvxodydo as LinkedHashSet_init_$Create$,
66
+ distinct10qe1scfdvu5k as distinct_0,
56
67
  toSet2orjxp16sotqu as toSet,
57
68
  HashSet_init_$Create$33p49hmosnvr4 as HashSet_init_$Create$,
58
69
  Regex_init_$Create$9xrx4twz2i6q as Regex_init_$Create$,
59
- emptyList1g2z5xcrvp2zy as emptyList,
60
70
  trimIndent1qytc1wvt8suh as trimIndent,
61
- startsWith26w8qjqapeeq6 as startsWith,
62
71
  contains3ue2qo8xhmpf1 as contains,
63
72
  removePrefix279df90bhrqqg as removePrefix,
64
73
  mapCapacity1h45rc3eh9p2l as mapCapacity,
@@ -79,34 +88,47 @@ import {
79
88
  Endpoint1jsq06yr3xdhp as Endpoint,
80
89
  Model1nx3had6rojzt as Model,
81
90
  plus3lrm73de10b42 as plus_1,
82
- importReferencesy4xv7r53sjjs as importReferences,
91
+ Unionccsavx6nrdr2 as Union,
92
+ Refined1lkzc0dg6wey7 as Refined,
93
+ Enum3l2iuc342kle6 as Enum,
94
+ Type12n1gx16iqtcu as Type,
83
95
  plus14o24vdaiongg as plus_2,
96
+ importReferencesy4xv7r53sjjs as importReferences,
84
97
  String1czvr8pxnm6on as String_0,
85
98
  Paramvfwnys2w6aj1 as Param,
86
99
  Literal331hu9r04vptz as Literal,
87
100
  } from './wirespec-src-compiler-core.mjs';
88
101
  import {
89
102
  Companion_getInstance3gvtuyxc9uhxj as Companion_getInstance,
103
+ Dict22iqrhoo0g8et as Dict,
104
+ Array2goj74t0aak7b as Array_0,
105
+ Nullable3wjn6l6q3h6o as Nullable,
106
+ Custom2si7lto3wompr as Custom,
107
+ Wildcard_instance2ga1ytfwj78ra as Wildcard_instance,
108
+ Function3skv20gkzqsy2 as Function,
109
+ Reflect_instance3i17lxiopj78t as Reflect_instance,
110
+ Any_instance2998xag3cdzh3 as Any_instance,
90
111
  requestParameters1z8fdizgtviyb as requestParameters,
91
112
  Nameoqr8dt2fim9d as Name,
92
113
  transformChildren2mszeagj5nq4c as transformChildren,
93
114
  sanitizeFieldName1ptgy1kxy8u2m as sanitizeFieldName,
94
115
  ConstructorStatement1x4n4sr59iy4n as ConstructorStatement,
95
116
  SanitizationConfig11mmn3p2c03c1 as SanitizationConfig,
96
- Custom_init_$Create$2enn7oyj71j1t as Custom_init_$Create$,
97
117
  Namespace345pal554qu3j as Namespace,
98
118
  File3dimy4iqmuock as File,
99
119
  transformChildrend9p91tpcqdkx as transformChildren_0,
100
120
  RawElement2yts1x2rbem1g as RawElement,
101
- Enumlszg09mwd24f as Enum,
121
+ Enumlszg09mwd24f as Enum_0,
102
122
  Interface3pn84xq686t2r as Interface,
103
123
  TransformScopeyrd3lf4zrk76 as TransformScope,
104
124
  TransformerBuildera6a1gvlhjj9b as TransformerBuilder,
105
125
  transform3eti8i2bqvifx as transform,
106
126
  Elementitq62jg6fid3 as Element,
107
- Function21cuq8qizkin7 as Function,
127
+ Function21cuq8qizkin7 as Function_0,
108
128
  RustGenerator_instance1aobjdt0upvy as RustGenerator_instance,
109
129
  sortKey2uc13shubz5xy as sortKey,
130
+ RawExpression2bo7ldfrptjia as RawExpression,
131
+ transformChildren3n5cjwmxlhwx9 as transformChildren_1,
110
132
  import5uhkz67bd8tt as import_0,
111
133
  interface24qlavvm81r6z as interface_0,
112
134
  convertnty9x0e63d0u as convert,
@@ -114,9 +136,14 @@ import {
114
136
  Importdjdfxu3pjkxa as Import,
115
137
  emit3bzdcd0f6nwtj as emit,
116
138
  emitn3eihixilqyh as emit_0,
139
+ convertToGenerator2wzjrmaavxhph as convertToGenerator,
140
+ convertToGeneratorkggw47cqose7 as convertToGenerator_0,
141
+ convertToGenerator3rjr3azp4vdsx as convertToGenerator_1,
142
+ convertToGenerator2msmr3acdd5nx as convertToGenerator_2,
143
+ sanitizeNames2wqmyf8vafp9x as sanitizeNames,
144
+ collectCustomTypeNames373f3lwl9sqd5 as collectCustomTypeNames,
117
145
  convertWithValidation3ar3nbcqsbkpn as convertWithValidation,
118
146
  injectSelfReceiverToValidate4xgr9r5gl5n3 as injectSelfReceiverToValidate,
119
- sanitizeNames2wqmyf8vafp9x as sanitizeNames,
120
147
  convert11ert2po54h1y as convert_0,
121
148
  sanitizeEnumEntries3pphrvzq8r9fn as sanitizeEnumEntries,
122
149
  convert37aabdzvtv9vg as convert_1,
@@ -124,23 +151,21 @@ import {
124
151
  convert32tuiui3czihh as convert_3,
125
152
  convert1cn4bolzoed8c as convert_4,
126
153
  emit1oxjujel6f3jb as emit_1,
154
+ beforeGenerate3o8idb3hey1b0 as beforeGenerate,
127
155
  IrEmitterh2m93ojzvkep as IrEmitter,
128
156
  flattenNestedStructs2956rxx8q2zxl as flattenNestedStructs,
129
- Union38f3pecvfcpxh as Union,
157
+ Union38f3pecvfcpxh as Union_0,
130
158
  VariableReference2vlynnhaw1i64 as VariableReference,
131
159
  FieldCall1iz7z2fx2xo4p as FieldCall,
132
160
  convertConstraintkgpvomct0x0s as convertConstraint,
133
161
  function12vu2kapzno4w as function_0,
134
162
  Switch3a1zi3na98deu as Switch,
135
- Custom2si7lto3wompr as Custom,
136
163
  Case2i7oahw4alz6h as Case,
137
- RawExpression2bo7ldfrptjia as RawExpression,
138
- transformChildren2m3cpkz6zusq1 as transformChildren_1,
164
+ transformChildren2m3cpkz6zusq1 as transformChildren_2,
139
165
  FunctionCall30872kpnbr7op as FunctionCall,
140
166
  Boolean_instance27opaqtiiiysz as Boolean_instance,
141
167
  String_instance3uxvo48ki208u as String_instance,
142
168
  Parameteruqoxd4rzw7ga as Parameter,
143
- Nullable3wjn6l6q3h6o as Nullable,
144
169
  Number3azxs9q1cyulb as Number_0,
145
170
  Integer1uwg1wvo5lp6z as Integer,
146
171
  Boolean3l1woojgw3q17 as Boolean_0,
@@ -149,13 +174,8 @@ import {
149
174
  ArrayIndexCall31gemxjfuldqy as ArrayIndexCall,
150
175
  StringLiteral3ffeojfhsbsmg as StringLiteral,
151
176
  IntegerLiteral32u4pkji3telv as IntegerLiteral,
152
- Wildcard_instance2ga1ytfwj78ra as Wildcard_instance,
153
- Reflect_instance3i17lxiopj78t as Reflect_instance,
154
177
  Bytes_instance3edm2lhbrwd51 as Bytes_instance,
155
- Any_instance2998xag3cdzh3 as Any_instance,
156
178
  Unit_instanceyaei45a6t5rv as Unit_instance_0,
157
- Dict22iqrhoo0g8et as Dict,
158
- Array2goj74t0aak7b as Array_0,
159
179
  } from './wirespec-src-compiler-ir.mjs';
160
180
  import {
161
181
  NonEmptyList3ak25ihy2gcvs as NonEmptyList,
@@ -171,15 +191,15 @@ initMetadataForClass(RustIrEmitter, 'RustIrEmitter', RustIrEmitter, VOID, [IrEmi
171
191
  initMetadataForObject(RustTransform, 'RustTransform');
172
192
  //endregion
173
193
  function _get_sanitizationConfig__sns434($this) {
174
- var tmp0 = $this.z1x_1;
194
+ var tmp0 = $this.r22_1;
175
195
  var tmp = KProperty1;
176
196
  // Inline function 'kotlin.getValue' call
177
197
  getPropertyCallableRef('sanitizationConfig', 1, tmp, RustIrEmitter$_get_sanitizationConfig_$ref_17ypni(), null);
178
- return tmp0.l1();
198
+ return tmp0.m1();
179
199
  }
180
200
  function sanitize($this, _this__u8e3s4) {
181
201
  // Inline function 'kotlin.collections.mapIndexed' call
182
- var this_0 = split(_this__u8e3s4.l1(), ['.', ' ']);
202
+ var this_0 = split(_this__u8e3s4.m1(), ['.', ' ']);
183
203
  // Inline function 'kotlin.collections.mapIndexedTo' call
184
204
  var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
185
205
  var index = 0;
@@ -188,7 +208,7 @@ function sanitize($this, _this__u8e3s4) {
188
208
  var item = _iterator__ex2g4s.v();
189
209
  var _unary__edvuaz = index;
190
210
  index = _unary__edvuaz + 1 | 0;
191
- var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance.oq(item) : item;
211
+ var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance.mu(item) : item;
192
212
  destination.x(tmp$ret$0);
193
213
  }
194
214
  // Inline function 'kotlin.text.filter' call
@@ -235,14 +255,14 @@ function sanitize($this, _this__u8e3s4) {
235
255
  return toSnakeCase($this, tmp$ret$9);
236
256
  }
237
257
  function toSnakeCase($this, _this__u8e3s4) {
238
- return Companion_getInstance().f1h(_this__u8e3s4).y1l();
258
+ return Companion_getInstance().u1k(_this__u8e3s4).c1q();
239
259
  }
240
260
  function toPascalCase($this, _this__u8e3s4) {
241
261
  var tmp = split(_this__u8e3s4, ['_']);
242
262
  return joinToString(tmp, '', VOID, VOID, VOID, VOID, RustIrEmitter$toPascalCase$lambda);
243
263
  }
244
264
  function sanitizeKeywords($this, _this__u8e3s4) {
245
- return Companion_getInstance_0().c1y_1.u1(_this__u8e3s4) ? 'r#' + _this__u8e3s4 : _this__u8e3s4;
265
+ return Companion_getInstance_0().u22_1.v1(_this__u8e3s4) ? 'r#' + _this__u8e3s4 : _this__u8e3s4;
246
266
  }
247
267
  function sanitizeEnum($this, _this__u8e3s4) {
248
268
  // Inline function 'kotlin.let' call
@@ -267,12 +287,118 @@ function prependImports($this, _this__u8e3s4, imports) {
267
287
  var tmp;
268
288
  // Inline function 'kotlin.collections.isNotEmpty' call
269
289
  if (!imports.r()) {
270
- tmp = _this__u8e3s4.w1m(VOID, plus(imports, _this__u8e3s4.t1m_1));
290
+ tmp = _this__u8e3s4.e1r(VOID, plus(imports, _this__u8e3s4.b1r_1));
271
291
  } else {
272
292
  tmp = _this__u8e3s4;
273
293
  }
274
294
  return tmp;
275
295
  }
296
+ function containsWildcard($this, type) {
297
+ var tmp;
298
+ if (equals(type, Wildcard_instance)) {
299
+ tmp = true;
300
+ } else {
301
+ if (type instanceof Custom) {
302
+ var tmp0 = type.o1m_1;
303
+ var tmp$ret$0;
304
+ $l$block_0: {
305
+ // Inline function 'kotlin.collections.any' call
306
+ var tmp_0;
307
+ if (isInterface(tmp0, Collection)) {
308
+ tmp_0 = tmp0.r();
309
+ } else {
310
+ tmp_0 = false;
311
+ }
312
+ if (tmp_0) {
313
+ tmp$ret$0 = false;
314
+ break $l$block_0;
315
+ }
316
+ var _iterator__ex2g4s = tmp0.t();
317
+ while (_iterator__ex2g4s.u()) {
318
+ var element = _iterator__ex2g4s.v();
319
+ if (containsWildcard($this, element)) {
320
+ tmp$ret$0 = true;
321
+ break $l$block_0;
322
+ }
323
+ }
324
+ tmp$ret$0 = false;
325
+ }
326
+ tmp = tmp$ret$0;
327
+ } else {
328
+ if (type instanceof Nullable) {
329
+ tmp = containsWildcard($this, type.l1m_1);
330
+ } else {
331
+ if (type instanceof Array_0) {
332
+ tmp = containsWildcard($this, type.m1m_1);
333
+ } else {
334
+ if (type instanceof Dict) {
335
+ tmp = containsWildcard($this, type.n1q_1) || containsWildcard($this, type.o1q_1);
336
+ } else {
337
+ tmp = false;
338
+ }
339
+ }
340
+ }
341
+ }
342
+ }
343
+ return tmp;
344
+ }
345
+ function containsUnderiveable($this, type) {
346
+ var tmp;
347
+ if (equals(type, Any_instance)) {
348
+ tmp = true;
349
+ } else {
350
+ if (equals(type, Reflect_instance)) {
351
+ tmp = true;
352
+ } else {
353
+ if (type instanceof Function) {
354
+ tmp = true;
355
+ } else {
356
+ if (type instanceof Custom) {
357
+ var tmp0 = type.o1m_1;
358
+ var tmp$ret$0;
359
+ $l$block_0: {
360
+ // Inline function 'kotlin.collections.any' call
361
+ var tmp_0;
362
+ if (isInterface(tmp0, Collection)) {
363
+ tmp_0 = tmp0.r();
364
+ } else {
365
+ tmp_0 = false;
366
+ }
367
+ if (tmp_0) {
368
+ tmp$ret$0 = false;
369
+ break $l$block_0;
370
+ }
371
+ var _iterator__ex2g4s = tmp0.t();
372
+ while (_iterator__ex2g4s.u()) {
373
+ var element = _iterator__ex2g4s.v();
374
+ if (containsUnderiveable($this, element)) {
375
+ tmp$ret$0 = true;
376
+ break $l$block_0;
377
+ }
378
+ }
379
+ tmp$ret$0 = false;
380
+ }
381
+ tmp = tmp$ret$0;
382
+ } else {
383
+ if (type instanceof Nullable) {
384
+ tmp = containsUnderiveable($this, type.l1m_1);
385
+ } else {
386
+ if (type instanceof Array_0) {
387
+ tmp = containsUnderiveable($this, type.m1m_1);
388
+ } else {
389
+ if (type instanceof Dict) {
390
+ tmp = containsUnderiveable($this, type.n1q_1) || containsUnderiveable($this, type.o1q_1);
391
+ } else {
392
+ tmp = false;
393
+ }
394
+ }
395
+ }
396
+ }
397
+ }
398
+ }
399
+ }
400
+ return tmp;
401
+ }
276
402
  function buildClientParams($this, _this__u8e3s4) {
277
403
  var params = requestParameters(_this__u8e3s4);
278
404
  var argsStr = joinToString(params, ', ', VOID, VOID, VOID, VOID, RustIrEmitter$buildClientParams$lambda($this));
@@ -287,7 +413,7 @@ function buildClientParams($this, _this__u8e3s4) {
287
413
  }
288
414
  function Companion() {
289
415
  Companion_instance_2 = this;
290
- this.c1y_1 = setOf(['as', 'break', 'const', 'continue', 'crate', 'else', 'enum', 'extern', 'false', 'fn', 'for', 'if', 'impl', 'in', 'let', 'loop', 'match', 'mod', 'move', 'mut', 'pub', 'ref', 'return', 'self', 'Self', 'static', 'struct', 'super', 'trait', 'true', 'type', 'unsafe', 'use', 'where', 'while', 'async', 'await', 'dyn', 'abstract', 'become', 'box', 'do', 'final', 'macro', 'override', 'priv', 'typeof', 'unsized', 'virtual', 'yield', 'try']);
416
+ this.u22_1 = setOf(['as', 'break', 'const', 'continue', 'crate', 'else', 'enum', 'extern', 'false', 'fn', 'for', 'if', 'impl', 'in', 'let', 'loop', 'match', 'mod', 'move', 'mut', 'pub', 'ref', 'return', 'self', 'Self', 'static', 'struct', 'super', 'trait', 'true', 'type', 'unsafe', 'use', 'where', 'while', 'async', 'await', 'dyn', 'abstract', 'become', 'box', 'do', 'final', 'macro', 'override', 'priv', 'typeof', 'unsized', 'virtual', 'yield', 'try']);
291
417
  }
292
418
  var Companion_instance_2;
293
419
  function Companion_getInstance_0() {
@@ -296,23 +422,23 @@ function Companion_getInstance_0() {
296
422
  return Companion_instance_2;
297
423
  }
298
424
  function sam$kotlin_Comparator$0(function_0) {
299
- this.d1y_1 = function_0;
425
+ this.v22_1 = function_0;
300
426
  }
301
- protoOf(sam$kotlin_Comparator$0).qd = function (a, b) {
302
- return this.d1y_1(a, b);
427
+ protoOf(sam$kotlin_Comparator$0).sd = function (a, b) {
428
+ return this.v22_1(a, b);
303
429
  };
304
430
  protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
305
- return this.qd(a, b);
431
+ return this.sd(a, b);
306
432
  };
307
- protoOf(sam$kotlin_Comparator$0).l3 = function () {
308
- return this.d1y_1;
433
+ protoOf(sam$kotlin_Comparator$0).m3 = function () {
434
+ return this.v22_1;
309
435
  };
310
436
  protoOf(sam$kotlin_Comparator$0).equals = function (other) {
311
437
  var tmp;
312
438
  if (!(other == null) ? isInterface(other, Comparator) : false) {
313
439
  var tmp_0;
314
440
  if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
315
- tmp_0 = equals(this.l3(), other.l3());
441
+ tmp_0 = equals(this.m3(), other.m3());
316
442
  } else {
317
443
  tmp_0 = false;
318
444
  }
@@ -323,22 +449,22 @@ protoOf(sam$kotlin_Comparator$0).equals = function (other) {
323
449
  return tmp;
324
450
  };
325
451
  protoOf(sam$kotlin_Comparator$0).hashCode = function () {
326
- return hashCode(this.l3());
452
+ return hashCode(this.m3());
327
453
  };
328
454
  function RustIrEmitter$sanitizationConfig$delegate$lambda$lambda(it) {
329
455
  return 'r#' + it;
330
456
  }
331
457
  function RustIrEmitter$sanitizationConfig$delegate$lambda$lambda_0(name) {
332
- return Companion_getInstance().f1h((new Name(name.g1h_1)).y1l());
458
+ return Companion_getInstance().u1k((new Name(name.s1k_1)).c1q());
333
459
  }
334
460
  function RustIrEmitter$sanitizationConfig$delegate$lambda$lambda_1(name) {
335
- var value = name.s1h();
461
+ var value = name.p1m();
336
462
  switch (value) {
337
463
  case 'self':
338
464
  case '&self':
339
465
  return name;
340
466
  default:
341
- return Companion_getInstance().f1h((new Name(name.g1h_1)).y1l());
467
+ return Companion_getInstance().u1k((new Name(name.s1k_1)).c1q());
342
468
  }
343
469
  }
344
470
  function RustIrEmitter$sanitizationConfig$delegate$lambda$lambda_2(it) {
@@ -348,20 +474,20 @@ function RustIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
348
474
  return function (stmt, tr) {
349
475
  var tmp;
350
476
  if (stmt instanceof ConstructorStatement) {
351
- var tmp_0 = tr.p1t(stmt.p1m_1);
477
+ var tmp_0 = tr.d1y(stmt.x1q_1);
352
478
  // Inline function 'kotlin.collections.map' call
353
- var this_0 = stmt.q1m_1;
479
+ var this_0 = stmt.y1q_1;
354
480
  // Inline function 'kotlin.collections.mapTo' call
355
481
  var destination = ArrayList_init_$Create$(this_0.a1());
356
482
  // Inline function 'kotlin.collections.iterator' call
357
- var _iterator__ex2g4s = this_0.j1().t();
483
+ var _iterator__ex2g4s = this_0.k1().t();
358
484
  while (_iterator__ex2g4s.u()) {
359
485
  var item = _iterator__ex2g4s.v();
360
486
  // Inline function 'kotlin.collections.component1' call
361
- var k = item.k1();
487
+ var k = item.l1();
362
488
  // Inline function 'kotlin.collections.component2' call
363
- var v = item.l1();
364
- var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), k), tr.s1t(v));
489
+ var v = item.m1();
490
+ var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), k), tr.g1y(v));
365
491
  destination.x(tmp$ret$3);
366
492
  }
367
493
  tmp = new ConstructorStatement(tmp_0, toMap(destination));
@@ -373,7 +499,7 @@ function RustIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
373
499
  }
374
500
  function RustIrEmitter$sanitizationConfig$delegate$lambda(this$0) {
375
501
  return function () {
376
- var tmp0_reservedKeywords = minus(Companion_getInstance_0().c1y_1, setOf(['self', 'Self']));
502
+ var tmp0_reservedKeywords = minus(Companion_getInstance_0().u22_1, setOf(['self', 'Self']));
377
503
  var tmp = RustIrEmitter$sanitizationConfig$delegate$lambda$lambda;
378
504
  var tmp_0 = RustIrEmitter$sanitizationConfig$delegate$lambda$lambda_0;
379
505
  var tmp_1 = RustIrEmitter$sanitizationConfig$delegate$lambda$lambda_1;
@@ -387,69 +513,69 @@ function RustIrEmitter$_get_sanitizationConfig_$ref_17ypni() {
387
513
  };
388
514
  }
389
515
  function RustIrEmitter$emitShared$lambda($this$interface) {
390
- $this$interface.e1j(Custom_init_$Create$('Headers'));
516
+ $this$interface.c1n(new Custom('Headers'));
391
517
  return Unit_instance;
392
518
  }
393
519
  function RustIrEmitter$emitShared$lambda_0($this$interface) {
394
- $this$interface.e1j(Custom_init_$Create$('Headers'));
520
+ $this$interface.c1n(new Custom('Headers'));
395
521
  return Unit_instance;
396
522
  }
397
523
  function RustIrEmitter$emitShared$lambda_1($this$interface) {
398
- $this$interface.e1j(Custom_init_$Create$('Sized'));
399
- $this$interface.b1i('label', VOID, VOID, RustIrEmitter$emitShared$lambda$lambda);
400
- $this$interface.b1i('from_label', true, VOID, RustIrEmitter$emitShared$lambda$lambda_0);
524
+ $this$interface.c1n(new Custom('Sized'));
525
+ $this$interface.j1l('label', VOID, VOID, RustIrEmitter$emitShared$lambda$lambda);
526
+ $this$interface.j1l('from_label', true, VOID, RustIrEmitter$emitShared$lambda$lambda_0);
401
527
  return Unit_instance;
402
528
  }
403
529
  function RustIrEmitter$emitShared$lambda$lambda($this$function) {
404
- $this$function.l1i('&self', Custom_init_$Create$(''));
405
- $this$function.k1i(Custom_init_$Create$('&str'));
530
+ $this$function.e1l('&self', new Custom(''));
531
+ $this$function.h1l(new Custom('&str'));
406
532
  return Unit_instance;
407
533
  }
408
534
  function RustIrEmitter$emitShared$lambda$lambda_0($this$function) {
409
- $this$function.l1i('s', Custom_init_$Create$('&str'));
410
- $this$function.k1i(Custom_init_$Create$('Option<Self>'));
535
+ $this$function.e1l('s', new Custom('&str'));
536
+ $this$function.h1l(new Custom('Option<Self>'));
411
537
  return Unit_instance;
412
538
  }
413
539
  function RustIrEmitter$emitShared$lambda_2($this$interface) {
414
- $this$interface.a1i($this$interface.t1h('T', []), []);
415
- $this$interface.b1i('value', VOID, VOID, RustIrEmitter$emitShared$lambda$lambda_1);
416
- $this$interface.b1i('validate', VOID, VOID, RustIrEmitter$emitShared$lambda$lambda_2);
540
+ $this$interface.w1m($this$interface.v1k('T', []), []);
541
+ $this$interface.j1l('value', VOID, VOID, RustIrEmitter$emitShared$lambda$lambda_1);
542
+ $this$interface.j1l('validate', VOID, VOID, RustIrEmitter$emitShared$lambda$lambda_2);
417
543
  return Unit_instance;
418
544
  }
419
545
  function RustIrEmitter$emitShared$lambda$lambda_1($this$function) {
420
- $this$function.l1i('&self', Custom_init_$Create$(''));
421
- $this$function.k1i(borrow($this$function.t1h('T', [])));
546
+ $this$function.e1l('&self', new Custom(''));
547
+ $this$function.h1l(borrow($this$function.v1k('T', [])));
422
548
  return Unit_instance;
423
549
  }
424
550
  function RustIrEmitter$emitShared$lambda$lambda_2($this$function) {
425
- $this$function.l1i('&self', Custom_init_$Create$(''));
426
- $this$function.k1i($this$function.s1i());
551
+ $this$function.e1l('&self', new Custom(''));
552
+ $this$function.h1l($this$function.d1n());
427
553
  return Unit_instance;
428
554
  }
429
555
  function RustIrEmitter$emitShared$lambda_3($this$interface) {
430
- $this$interface.a1i($this$interface.t1h('T', []), []);
431
- $this$interface.m1i('path', borrowDyn($this$interface.t1h('Path', [])));
432
- $this$interface.m1i('method', borrow($this$interface.t1h('Method', [])));
433
- $this$interface.m1i('queries', borrowDyn($this$interface.t1h('Queries', [])));
434
- $this$interface.m1i('headers', borrowDyn($this$interface.t1h('RequestHeaders', [])));
435
- $this$interface.m1i('body', borrow($this$interface.t1h('T', [])));
556
+ $this$interface.w1m($this$interface.v1k('T', []), []);
557
+ $this$interface.x1m('path', borrowDyn($this$interface.v1k('Path', [])));
558
+ $this$interface.x1m('method', borrow($this$interface.v1k('Method', [])));
559
+ $this$interface.x1m('queries', borrowDyn($this$interface.v1k('Queries', [])));
560
+ $this$interface.x1m('headers', borrowDyn($this$interface.v1k('RequestHeaders', [])));
561
+ $this$interface.x1m('body', borrow($this$interface.v1k('T', [])));
436
562
  return Unit_instance;
437
563
  }
438
564
  function RustIrEmitter$emitShared$lambda_4($this$interface) {
439
- $this$interface.a1i($this$interface.t1h('T', []), []);
440
- $this$interface.m1i('status', $this$interface.l1t());
441
- $this$interface.m1i('headers', borrowDyn($this$interface.t1h('ResponseHeaders', [])));
442
- $this$interface.m1i('body', borrow($this$interface.t1h('T', [])));
565
+ $this$interface.w1m($this$interface.v1k('T', []), []);
566
+ $this$interface.x1m('status', $this$interface.c1o());
567
+ $this$interface.x1m('headers', borrowDyn($this$interface.v1k('ResponseHeaders', [])));
568
+ $this$interface.x1m('body', borrow($this$interface.v1k('T', [])));
443
569
  return Unit_instance;
444
570
  }
445
571
  function RustIrEmitter$emitShared$lambda_5($this$interface) {
446
- $this$interface.o1j('transport', VOID, VOID, RustIrEmitter$emitShared$lambda$lambda_3);
572
+ $this$interface.z1n('transport', VOID, VOID, RustIrEmitter$emitShared$lambda$lambda_3);
447
573
  return Unit_instance;
448
574
  }
449
575
  function RustIrEmitter$emitShared$lambda$lambda_3($this$asyncFunction) {
450
- $this$asyncFunction.l1i('&self', Custom_init_$Create$(''));
451
- $this$asyncFunction.l1i('request', borrow($this$asyncFunction.t1h('RawRequest', [])));
452
- $this$asyncFunction.k1i($this$asyncFunction.t1h('RawResponse', []));
576
+ $this$asyncFunction.e1l('&self', new Custom(''));
577
+ $this$asyncFunction.e1l('request', borrow($this$asyncFunction.v1k('RawRequest', [])));
578
+ $this$asyncFunction.h1l($this$asyncFunction.v1k('RawResponse', []));
453
579
  return Unit_instance;
454
580
  }
455
581
  function RustIrEmitter$emitShared$lambda_6($rustImports) {
@@ -457,7 +583,7 @@ function RustIrEmitter$emitShared$lambda_6($rustImports) {
457
583
  var tmp;
458
584
  if (element instanceof File) {
459
585
  // Inline function 'kotlin.collections.filterIsInstance' call
460
- var tmp0 = element.t1m_1;
586
+ var tmp0 = element.b1r_1;
461
587
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
462
588
  var destination = ArrayList_init_$Create$_0();
463
589
  var _iterator__ex2g4s = tmp0.t();
@@ -468,7 +594,7 @@ function RustIrEmitter$emitShared$lambda_6($rustImports) {
468
594
  }
469
595
  }
470
596
  var namespace = first(destination);
471
- tmp = element.w1m(VOID, plus($rustImports, namespace.z1m_1));
597
+ tmp = element.e1r(VOID, plus($rustImports, namespace.h1r_1));
472
598
  } else {
473
599
  tmp = element;
474
600
  }
@@ -478,9 +604,9 @@ function RustIrEmitter$emitShared$lambda_6($rustImports) {
478
604
  }
479
605
  function RustIrEmitter$emitShared$lambda_7(element, transformer) {
480
606
  var tmp;
481
- if (element instanceof Enum) {
607
+ if (element instanceof Enum_0) {
482
608
  var tmp_0;
483
- if (element.x1n_1.equals(Companion_getInstance().f1h('Method'))) {
609
+ if (element.g1s_1.equals(Companion_getInstance().u1k('Method'))) {
484
610
  tmp_0 = new RawElement('#[derive(Debug, Clone, Default, PartialEq)]\npub enum Method {\n #[default]\n GET,\n PUT,\n POST,\n DELETE,\n OPTIONS,\n HEAD,\n PATCH,\n TRACE,\n}');
485
611
  } else {
486
612
  tmp_0 = element;
@@ -497,7 +623,7 @@ function RustIrEmitter$emitShared$lambda_8($dslTraits, $requestHeaders, $respons
497
623
  var tmp;
498
624
  if (element instanceof File) {
499
625
  // Inline function 'kotlin.collections.flatMap' call
500
- var tmp0 = element.t1m_1;
626
+ var tmp0 = element.b1r_1;
501
627
  // Inline function 'kotlin.collections.flatMapTo' call
502
628
  var destination = ArrayList_init_$Create$_0();
503
629
  var _iterator__ex2g4s = tmp0.t();
@@ -509,30 +635,30 @@ function RustIrEmitter$emitShared$lambda_8($dslTraits, $requestHeaders, $respons
509
635
  tmp$ret$0 = listOf(element_0);
510
636
  break $l$block;
511
637
  }
512
- var name = element_0.k1n_1.h1h();
638
+ var name = element_0.t1r_1.b1q();
513
639
  var tmp_0;
514
640
  // Inline function 'kotlin.collections.contains' call
515
641
  // Inline function 'kotlin.collections.containsKey' call
516
642
  var this_0 = $dslTraits;
517
- if ((isInterface(this_0, KtMap) ? this_0 : THROW_CCE()).n2(name)) {
643
+ if ((isInterface(this_0, KtMap) ? this_0 : THROW_CCE()).o2(name)) {
518
644
  // Inline function 'kotlin.collections.buildList' call
519
645
  // Inline function 'kotlin.collections.buildListInternal' call
520
646
  // Inline function 'kotlin.apply' call
521
647
  var this_1 = ArrayList_init_$Create$_0();
522
- this_1.x(ensureNotNull($dslTraits.p2(name)));
648
+ this_1.x(ensureNotNull($dslTraits.q2(name)));
523
649
  if (name === 'Request') {
524
650
  this_1.x($requestHeaders);
525
651
  }
526
652
  if (name === 'Response') {
527
653
  this_1.x($responseHeaders);
528
654
  }
529
- tmp_0 = this_1.o5();
655
+ tmp_0 = this_1.p5();
530
656
  } else {
531
657
  // Inline function 'kotlin.collections.contains' call
532
658
  // Inline function 'kotlin.collections.containsKey' call
533
659
  var this_2 = $rawElementInterfaces;
534
- if ((isInterface(this_2, KtMap) ? this_2 : THROW_CCE()).n2(name)) {
535
- tmp_0 = listOf(ensureNotNull($rawElementInterfaces.p2(name)));
660
+ if ((isInterface(this_2, KtMap) ? this_2 : THROW_CCE()).o2(name)) {
661
+ tmp_0 = listOf(ensureNotNull($rawElementInterfaces.q2(name)));
536
662
  } else {
537
663
  tmp_0 = listOf(element_0);
538
664
  }
@@ -543,7 +669,7 @@ function RustIrEmitter$emitShared$lambda_8($dslTraits, $requestHeaders, $respons
543
669
  addAll(destination, list);
544
670
  }
545
671
  var newElements = plus_0(plus_0(destination, $client), $server);
546
- tmp = element.w1m(VOID, newElements);
672
+ tmp = element.e1r(VOID, newElements);
547
673
  } else {
548
674
  tmp = element;
549
675
  }
@@ -559,14 +685,14 @@ function RustIrEmitter$emitShared$lambda_9(element, transformer) {
559
685
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
560
686
  var tmp_0 = scope;
561
687
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
562
- var this_0 = scope.x1t_1;
688
+ var this_0 = scope.l1y_1;
563
689
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
564
690
  // Inline function 'kotlin.apply' call
565
691
  var this_1 = new TransformerBuilder();
566
- this_1.c1h(RustIrEmitter$emitShared$lambda$lambda_4);
567
- var tmp$ret$2 = this_1.d1h();
568
- tmp_0.x1t_1 = transform(this_0, tmp$ret$2);
569
- var tmp_1 = scope.x1t_1;
692
+ this_1.d1m(RustIrEmitter$emitShared$lambda$lambda_4);
693
+ var tmp$ret$2 = this_1.e1m();
694
+ tmp_0.l1y_1 = transform(this_0, tmp$ret$2);
695
+ var tmp_1 = scope.l1y_1;
570
696
  tmp = isInterface(tmp_1, Element) ? tmp_1 : THROW_CCE();
571
697
  } else {
572
698
  tmp = element;
@@ -576,8 +702,8 @@ function RustIrEmitter$emitShared$lambda_9(element, transformer) {
576
702
  }
577
703
  function RustIrEmitter$emitShared$lambda$lambda_4(element, transformer) {
578
704
  var tmp;
579
- if (element instanceof Function) {
580
- var tmp0 = element.v1j_1;
705
+ if (element instanceof Function_0) {
706
+ var tmp0 = element.l1o_1;
581
707
  var tmp$ret$0;
582
708
  $l$block_0: {
583
709
  // Inline function 'kotlin.collections.any' call
@@ -594,7 +720,7 @@ function RustIrEmitter$emitShared$lambda$lambda_4(element, transformer) {
594
720
  var _iterator__ex2g4s = tmp0.t();
595
721
  while (_iterator__ex2g4s.u()) {
596
722
  var element_0 = _iterator__ex2g4s.v();
597
- if (element_0.u1o_1.s1h() === '&self' || element_0.u1o_1.s1h() === 'self') {
723
+ if (element_0.d1t_1.p1m() === '&self' || element_0.d1t_1.p1m() === 'self') {
598
724
  tmp$ret$0 = true;
599
725
  break $l$block_0;
600
726
  }
@@ -602,7 +728,7 @@ function RustIrEmitter$emitShared$lambda$lambda_4(element, transformer) {
602
728
  tmp$ret$0 = false;
603
729
  }
604
730
  var hasSelf = tmp$ret$0;
605
- tmp = hasSelf || element.z1j_1 ? element : element.b1k(VOID, VOID, plus(listOf(get_rustSelfParam()), element.v1j_1));
731
+ tmp = hasSelf || element.p1o_1 ? element : element.r1o(VOID, VOID, plus(listOf(get_rustSelfParam()), element.l1o_1));
606
732
  } else {
607
733
  tmp = element;
608
734
  }
@@ -613,7 +739,7 @@ function RustIrEmitter$emitShared$lambda_10(group) {
613
739
  return trimEnd(joinToString(group, '', VOID, VOID, VOID, VOID, RustIrEmitter$emitShared$lambda$lambda_5), charArrayOf([_Char___init__impl__6a9atx(10)]));
614
740
  }
615
741
  function RustIrEmitter$emitShared$lambda$lambda_5(it) {
616
- return RustGenerator_instance.l1u(it);
742
+ return RustGenerator_instance.z1y(it);
617
743
  }
618
744
  function RustIrEmitter$emit$lambda(a, b) {
619
745
  // Inline function 'kotlin.comparisons.compareValuesBy' call
@@ -622,7 +748,7 @@ function RustIrEmitter$emit$lambda(a, b) {
622
748
  return compareValues(tmp, tmp$ret$1);
623
749
  }
624
750
  function emit$emitMod(this$0, def) {
625
- return 'pub mod ' + sanitize(this$0, def.vq()) + ';';
751
+ return 'pub mod ' + sanitize(this$0, def.tu()) + ';';
626
752
  }
627
753
  function RustIrEmitter$emit$lambda_0(this$0) {
628
754
  return function (it) {
@@ -634,6 +760,39 @@ function RustIrEmitter$emit$lambda_1(this$0) {
634
760
  return emit$emitMod(this$0, it);
635
761
  };
636
762
  }
763
+ function RustIrEmitter$emitGenerator$lambda(it) {
764
+ return startsWith(it, 'Wirespec.') || it === 'Wirespec';
765
+ }
766
+ function RustIrEmitter$emitGenerator$lambda_0($generatorOwnName) {
767
+ return function (it) {
768
+ return it === $generatorOwnName;
769
+ };
770
+ }
771
+ function RustIrEmitter$emitGenerator$lambda_1(it) {
772
+ return substringBefore(it, _Char___init__impl__6a9atx(60));
773
+ }
774
+ function RustIrEmitter$emitGenerator$lambda_2($generatorOwnName, $generatorRefs) {
775
+ return function (expr, t) {
776
+ var tmp;
777
+ var tmp_0;
778
+ var tmp_1;
779
+ if (expr instanceof RawExpression) {
780
+ tmp_1 = endsWith(expr.r1s_1, 'Generator');
781
+ } else {
782
+ tmp_1 = false;
783
+ }
784
+ if (tmp_1) {
785
+ tmp_0 = !(expr.r1s_1 === $generatorOwnName);
786
+ } else {
787
+ tmp_0 = false;
788
+ }
789
+ if (tmp_0) {
790
+ $generatorRefs.x(expr.r1s_1);
791
+ tmp = Unit_instance;
792
+ }
793
+ return transformChildren_1(expr, t);
794
+ };
795
+ }
637
796
  function RustIrEmitter$emit$lambda_2(this$0) {
638
797
  return function (it) {
639
798
  return sanitizeKeywords(this$0, sanitizeEnum(this$0, it));
@@ -641,7 +800,7 @@ function RustIrEmitter$emit$lambda_2(this$0) {
641
800
  }
642
801
  function RustIrEmitter$emitClient$lambda(this$0) {
643
802
  return function (endpoint) {
644
- return 'pub mod ' + toSnakeCase(this$0, endpoint.ep_1.l1() + 'Client') + ';';
803
+ return 'pub mod ' + toSnakeCase(this$0, endpoint.ct_1.m1() + 'Client') + ';';
645
804
  };
646
805
  }
647
806
  function RustIrEmitter$toPascalCase$lambda(s) {
@@ -661,39 +820,39 @@ function RustIrEmitter$toPascalCase$lambda(s) {
661
820
  }
662
821
  function RustIrEmitter$buildClientParams$lambda(this$0) {
663
822
  return function (_destruct__k2r9zo) {
664
- var name = _destruct__k2r9zo.ne();
665
- return sanitizeKeywords(this$0, name.y1l());
823
+ var name = _destruct__k2r9zo.kf();
824
+ return sanitizeKeywords(this$0, name.c1q());
666
825
  };
667
826
  }
668
827
  function RustIrEmitter$buildClientParams$lambda_0(this$0) {
669
828
  return function (_destruct__k2r9zo) {
670
- var name = _destruct__k2r9zo.ne();
671
- var type = _destruct__k2r9zo.oe();
672
- var tmp = sanitizeKeywords(this$0, name.y1l());
829
+ var name = _destruct__k2r9zo.kf();
830
+ var type = _destruct__k2r9zo.lf();
831
+ var tmp = sanitizeKeywords(this$0, name.c1q());
673
832
  // Inline function 'kotlin.with' call
674
- return tmp + ': ' + RustTransform_getInstance().k1y(type);
833
+ return tmp + ': ' + RustTransform_getInstance().c23(type);
675
834
  };
676
835
  }
677
836
  function RustIrEmitter(packageName, emitShared) {
678
837
  Companion_getInstance_0();
679
- packageName = packageName === VOID ? Companion_instance_0.lr('community.flock.wirespec.generated') : packageName;
680
- emitShared = emitShared === VOID ? Companion_instance_1.go() : emitShared;
681
- this.v1x_1 = packageName;
682
- this.w1x_1 = emitShared;
683
- this.x1x_1 = RustGenerator_instance;
684
- this.y1x_1 = FileExtension_Rust_getInstance();
838
+ packageName = packageName === VOID ? Companion_instance_0.jv('community.flock.wirespec.generated') : packageName;
839
+ emitShared = emitShared === VOID ? Companion_instance_1.es() : emitShared;
840
+ this.n22_1 = packageName;
841
+ this.o22_1 = emitShared;
842
+ this.p22_1 = RustGenerator_instance;
843
+ this.q22_1 = FileExtension_Rust_getInstance();
685
844
  var tmp = this;
686
- tmp.z1x_1 = lazy(RustIrEmitter$sanitizationConfig$delegate$lambda(this));
687
- this.a1y_1 = listOf_0([import_0('super::super::wirespec', '*'), import_0('', 'regex')]);
688
- this.b1y_1 = listOf_0([import_0('super::super::wirespec', '*'), import_0('', 'regex')]);
845
+ tmp.r22_1 = lazy(RustIrEmitter$sanitizationConfig$delegate$lambda(this));
846
+ this.s22_1 = listOf_0([import_0('super::super::wirespec', '*'), import_0('', 'regex')]);
847
+ this.t22_1 = listOf_0([import_0('super::super::wirespec', '*'), import_0('', 'regex')]);
689
848
  }
690
- protoOf(RustIrEmitter).k1u = function () {
691
- return this.x1x_1;
849
+ protoOf(RustIrEmitter).y1y = function () {
850
+ return this.p22_1;
692
851
  };
693
- protoOf(RustIrEmitter).eq = function () {
694
- return this.y1x_1;
852
+ protoOf(RustIrEmitter).cu = function () {
853
+ return this.q22_1;
695
854
  };
696
- protoOf(RustIrEmitter).n1u = function () {
855
+ protoOf(RustIrEmitter).b1z = function () {
697
856
  var rustImports = listOf_0([import_0('std::any', 'TypeId'), import_0('std::collections', 'HashMap')]);
698
857
  var requestHeaders = interface_0('RequestHeaders', VOID, RustIrEmitter$emitShared$lambda);
699
858
  var responseHeaders = interface_0('ResponseHeaders', VOID, RustIrEmitter$emitShared$lambda_0);
@@ -707,43 +866,43 @@ protoOf(RustIrEmitter).n1u = function () {
707
866
  var transportationTrait = interface_0('Transportation', VOID, RustIrEmitter$emitShared$lambda_5);
708
867
  var dslTraits = mapOf([to('Enum', enumTrait), to('Refined', refinedTrait), to('Request', requestTrait), to('Response', responseTrait), to('Transportation', transportationTrait)]);
709
868
  // Inline function 'community.flock.wirespec.ir.core.transform' call
710
- var this_0 = convert(Companion_instance_0.lr('shared'));
869
+ var this_0 = convert(Companion_instance_0.jv('shared'));
711
870
  var scope = new TransformScope(this_0);
712
871
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
713
872
  var tmp = scope;
714
873
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
715
- var this_1 = scope.x1t_1;
874
+ var this_1 = scope.l1y_1;
716
875
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
717
876
  // Inline function 'kotlin.apply' call
718
877
  var this_2 = new TransformerBuilder();
719
- this_2.c1h(RustIrEmitter$emitShared$lambda_6(rustImports));
720
- var tmp$ret$2 = this_2.d1h();
721
- tmp.x1t_1 = transform(this_1, tmp$ret$2);
878
+ this_2.d1m(RustIrEmitter$emitShared$lambda_6(rustImports));
879
+ var tmp$ret$2 = this_2.e1m();
880
+ tmp.l1y_1 = transform(this_1, tmp$ret$2);
722
881
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
723
882
  var tmp_0 = scope;
724
883
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
725
- var this_3 = scope.x1t_1;
884
+ var this_3 = scope.l1y_1;
726
885
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
727
886
  // Inline function 'kotlin.apply' call
728
887
  var this_4 = new TransformerBuilder();
729
- this_4.c1h(RustIrEmitter$emitShared$lambda_7);
730
- var tmp$ret$7 = this_4.d1h();
731
- tmp_0.x1t_1 = transform(this_3, tmp$ret$7);
888
+ this_4.d1m(RustIrEmitter$emitShared$lambda_7);
889
+ var tmp$ret$7 = this_4.e1m();
890
+ tmp_0.l1y_1 = transform(this_3, tmp$ret$7);
732
891
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
733
892
  var tmp_1 = scope;
734
893
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
735
- var this_5 = scope.x1t_1;
894
+ var this_5 = scope.l1y_1;
736
895
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
737
896
  // Inline function 'kotlin.apply' call
738
897
  var this_6 = new TransformerBuilder();
739
- this_6.c1h(RustIrEmitter$emitShared$lambda_8(dslTraits, requestHeaders, responseHeaders, rawElementInterfaces, client, server));
740
- var tmp$ret$12 = this_6.d1h();
741
- tmp_1.x1t_1 = transform(this_5, tmp$ret$12);
742
- var tmp_2 = scope.x1t_1;
898
+ this_6.d1m(RustIrEmitter$emitShared$lambda_8(dslTraits, requestHeaders, responseHeaders, rawElementInterfaces, client, server));
899
+ var tmp$ret$12 = this_6.e1m();
900
+ tmp_1.l1y_1 = transform(this_5, tmp$ret$12);
901
+ var tmp_2 = scope.l1y_1;
743
902
  // Inline function 'kotlin.let' call
744
903
  var file = isInterface(tmp_2, Element) ? tmp_2 : THROW_CCE();
745
904
  // Inline function 'kotlin.collections.flatMap' call
746
- var tmp0 = file.t1m_1;
905
+ var tmp0 = file.b1r_1;
747
906
  // Inline function 'kotlin.collections.flatMapTo' call
748
907
  var destination = ArrayList_init_$Create$_0();
749
908
  var _iterator__ex2g4s = tmp0.t();
@@ -755,79 +914,140 @@ protoOf(RustIrEmitter).n1u = function () {
755
914
  tmp$ret$17 = listOf(element);
756
915
  break $l$block;
757
916
  }
758
- var derive;
759
- switch (element.d1n_1.h1h()) {
760
- case 'RawRequest':
761
- case 'RawResponse':
762
- derive = '#[derive(Debug, Clone, PartialEq)]';
763
- break;
764
- default:
765
- derive = '#[derive(Debug, Clone, Default, PartialEq)]';
766
- break;
917
+ var tmp_3;
918
+ var tmp0_0 = element.m1r_1;
919
+ var tmp$ret$18;
920
+ $l$block_1: {
921
+ // Inline function 'kotlin.collections.any' call
922
+ var tmp_4;
923
+ if (isInterface(tmp0_0, Collection)) {
924
+ tmp_4 = tmp0_0.r();
925
+ } else {
926
+ tmp_4 = false;
927
+ }
928
+ if (tmp_4) {
929
+ tmp$ret$18 = false;
930
+ break $l$block_1;
931
+ }
932
+ var _iterator__ex2g4s_0 = tmp0_0.t();
933
+ while (_iterator__ex2g4s_0.u()) {
934
+ var element_0 = _iterator__ex2g4s_0.v();
935
+ if (containsUnderiveable(this, element_0.i1t_1)) {
936
+ tmp$ret$18 = true;
937
+ break $l$block_1;
938
+ }
939
+ }
940
+ tmp$ret$18 = false;
767
941
  }
768
- tmp$ret$17 = listOf(new File(element.d1n_1, listOf_0([new RawElement(derive), element])));
942
+ if (tmp$ret$18) {
943
+ tmp_3 = '';
944
+ } else {
945
+ var tmp0_1 = element.m1r_1;
946
+ var tmp$ret$20;
947
+ $l$block_3: {
948
+ // Inline function 'kotlin.collections.any' call
949
+ var tmp_5;
950
+ if (isInterface(tmp0_1, Collection)) {
951
+ tmp_5 = tmp0_1.r();
952
+ } else {
953
+ tmp_5 = false;
954
+ }
955
+ if (tmp_5) {
956
+ tmp$ret$20 = false;
957
+ break $l$block_3;
958
+ }
959
+ var _iterator__ex2g4s_1 = tmp0_1.t();
960
+ while (_iterator__ex2g4s_1.u()) {
961
+ var element_1 = _iterator__ex2g4s_1.v();
962
+ if (containsWildcard(this, element_1.i1t_1)) {
963
+ tmp$ret$20 = true;
964
+ break $l$block_3;
965
+ }
966
+ }
967
+ tmp$ret$20 = false;
968
+ }
969
+ if (tmp$ret$20) {
970
+ tmp_3 = '#[derive(Debug, Default)]';
971
+ } else {
972
+ if (setOf(['RawRequest', 'RawResponse']).v1(element.l1r_1.b1q())) {
973
+ tmp_3 = '#[derive(Debug, Clone, PartialEq)]';
974
+ } else {
975
+ tmp_3 = '#[derive(Debug, Clone, Default, PartialEq)]';
976
+ }
977
+ }
978
+ }
979
+ var derive = tmp_3;
980
+ var tmp_6;
981
+ // Inline function 'kotlin.text.isEmpty' call
982
+ if (charSequenceLength(derive) === 0) {
983
+ tmp_6 = emptyList();
984
+ } else {
985
+ tmp_6 = listOf(new RawElement(derive));
986
+ }
987
+ var prefix = tmp_6;
988
+ tmp$ret$17 = listOf(new File(element.l1r_1, plus_0(prefix, element)));
769
989
  }
770
990
  var list = tmp$ret$17;
771
991
  addAll(destination, list);
772
992
  }
773
- var tmp0_0 = new File(file.s1m_1, destination);
993
+ var tmp0_2 = new File(file.a1r_1, destination);
774
994
  // Inline function 'kotlin.let' call
775
- var wirespecFile = RustTransform_getInstance().l1y(tmp0_0);
995
+ var wirespecFile = RustTransform_getInstance().d23(tmp0_2);
776
996
  // Inline function 'community.flock.wirespec.ir.core.transform' call
777
997
  var scope_0 = new TransformScope(wirespecFile);
778
998
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
779
- var tmp_3 = scope_0;
999
+ var tmp_7 = scope_0;
780
1000
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
781
- var this_7 = scope_0.x1t_1;
1001
+ var this_7 = scope_0.l1y_1;
782
1002
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
783
1003
  // Inline function 'kotlin.apply' call
784
1004
  var this_8 = new TransformerBuilder();
785
- this_8.c1h(RustIrEmitter$emitShared$lambda_9);
786
- var tmp$ret$26 = this_8.d1h();
787
- tmp_3.x1t_1 = transform(this_7, tmp$ret$26);
788
- var tmp_4 = scope_0.x1t_1;
1005
+ this_8.d1m(RustIrEmitter$emitShared$lambda_9);
1006
+ var tmp$ret$31 = this_8.e1m();
1007
+ tmp_7.l1y_1 = transform(this_7, tmp$ret$31);
1008
+ var tmp_8 = scope_0.l1y_1;
789
1009
  // Inline function 'kotlin.let' call
790
- var tmp0_1 = (isInterface(tmp_4, Element) ? tmp_4 : THROW_CCE()).t1m_1;
1010
+ var tmp0_3 = (isInterface(tmp_8, Element) ? tmp_8 : THROW_CCE()).b1r_1;
791
1011
  // Inline function 'kotlin.collections.mutableListOf' call
792
1012
  // Inline function 'kotlin.collections.fold' call
793
1013
  var accumulator = ArrayList_init_$Create$_0();
794
- var _iterator__ex2g4s_0 = tmp0_1.t();
795
- while (_iterator__ex2g4s_0.u()) {
796
- var element_0 = _iterator__ex2g4s_0.v();
1014
+ var _iterator__ex2g4s_2 = tmp0_3.t();
1015
+ while (_iterator__ex2g4s_2.u()) {
1016
+ var element_2 = _iterator__ex2g4s_2.v();
797
1017
  var acc = accumulator;
798
- var isImport = element_0 instanceof Import;
1018
+ var isImport = element_2 instanceof Import;
799
1019
  var tmp0_safe_receiver = lastOrNull(acc);
800
- var tmp_5 = tmp0_safe_receiver == null ? null : firstOrNull_0(tmp0_safe_receiver);
801
- var lastGroupIsImports = tmp_5 instanceof Import;
1020
+ var tmp_9 = tmp0_safe_receiver == null ? null : firstOrNull_0(tmp0_safe_receiver);
1021
+ var lastGroupIsImports = tmp_9 instanceof Import;
802
1022
  if (isImport && lastGroupIsImports)
803
- last(acc).x(element_0);
1023
+ last(acc).x(element_2);
804
1024
  else
805
- acc.x(mutableListOf([element_0]));
1025
+ acc.x(mutableListOf([element_2]));
806
1026
  accumulator = acc;
807
1027
  }
808
1028
  var groups = accumulator;
809
1029
  var source = joinToString(groups, '\n\n', VOID, VOID, VOID, VOID, RustIrEmitter$emitShared$lambda_10) + '\n';
810
- var tmp_6;
811
- if (this.w1x_1.ho_1) {
812
- tmp_6 = new File(Companion_getInstance().f1h(this.v1x_1.or() + 'wirespec'), listOf(new RawElement(source)));
1030
+ var tmp_10;
1031
+ if (this.o22_1.fs_1) {
1032
+ tmp_10 = new File(Companion_getInstance().u1k(this.n22_1.mv() + 'wirespec'), listOf(new RawElement(source)));
813
1033
  } else {
814
- tmp_6 = null;
1034
+ tmp_10 = null;
815
1035
  }
816
- return tmp_6;
1036
+ return tmp_10;
817
1037
  };
818
- protoOf(RustIrEmitter).m1u = function (module_0, logger) {
1038
+ protoOf(RustIrEmitter).a1z = function (module_0, logger) {
819
1039
  // Inline function 'kotlin.collections.sortedBy' call
820
- var this_0 = new NonEmptyList(module_0.dq_1);
1040
+ var this_0 = new NonEmptyList(module_0.bu_1);
821
1041
  // Inline function 'kotlin.comparisons.compareBy' call
822
1042
  var tmp = RustIrEmitter$emit$lambda;
823
1043
  var tmp$ret$0 = new sam$kotlin_Comparator$0(tmp);
824
1044
  var tmp$ret$1 = sortedWith(this_0, tmp$ret$0);
825
1045
  var tmp_0 = toNonEmptyListOrNull(tmp$ret$1);
826
- var statements = ensureNotNull(tmp_0 == null ? null : new NonEmptyList(tmp_0)).yl_1;
1046
+ var statements = ensureNotNull(tmp_0 == null ? null : new NonEmptyList(tmp_0)).wp_1;
827
1047
  // Inline function 'kotlin.let' call
828
- var files = emit.call(this, module_0.vu(VOID, statements), logger);
1048
+ var files = emit.call(this, module_0.ty(VOID, statements), logger);
829
1049
  // Inline function 'kotlin.collections.filterIsInstance' call
830
- var tmp0 = new NonEmptyList(module_0.dq_1);
1050
+ var tmp0 = new NonEmptyList(module_0.bu_1);
831
1051
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
832
1052
  var destination = ArrayList_init_$Create$_0();
833
1053
  var _iterator__ex2g4s = tmp0.t();
@@ -847,11 +1067,11 @@ protoOf(RustIrEmitter).m1u = function (module_0, logger) {
847
1067
  tmp_1 = '';
848
1068
  }
849
1069
  var clientMod = tmp_1;
850
- var modRs = new File(Companion_getInstance().f1h(this.v1x_1.or() + 'mod'), listOf(new RawElement('#![allow(warnings)]\npub mod model;\npub mod endpoint;' + clientMod + '\npub mod wirespec;')));
851
- var modEndpoint = new File(Companion_getInstance().f1h(this.v1x_1.or() + 'endpoint/' + 'mod'), listOf(new RawElement(endpointMods)));
852
- var tmp_2 = Companion_getInstance().f1h(this.v1x_1.or() + 'model/' + 'mod');
1070
+ var modRs = new File(Companion_getInstance().u1k(this.n22_1.mv() + 'mod'), listOf(new RawElement('#![allow(warnings)]\npub mod model;\npub mod endpoint;' + clientMod + '\npub mod wirespec;')));
1071
+ var modEndpoint = new File(Companion_getInstance().u1k(this.n22_1.mv() + 'endpoint/' + 'mod'), listOf(new RawElement(endpointMods)));
1072
+ var tmp_2 = Companion_getInstance().u1k(this.n22_1.mv() + 'model/' + 'mod');
853
1073
  // Inline function 'kotlin.collections.filterIsInstance' call
854
- var tmp0_0 = new NonEmptyList(module_0.dq_1);
1074
+ var tmp0_0 = new NonEmptyList(module_0.bu_1);
855
1075
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
856
1076
  var destination_0 = ArrayList_init_$Create$_0();
857
1077
  var _iterator__ex2g4s_0 = tmp0_0.t();
@@ -863,23 +1083,23 @@ protoOf(RustIrEmitter).m1u = function (module_0, logger) {
863
1083
  }
864
1084
  var tmp_3 = destination_0;
865
1085
  var modModel = new File(tmp_2, listOf(new RawElement(joinToString(tmp_3, '\n', VOID, VOID, VOID, VOID, RustIrEmitter$emit$lambda_1(this)))));
866
- return this.w1x_1.ho_1 ? NonEmptyList__plus_impl_xqmb9(NonEmptyList__plus_impl_xqmb9(NonEmptyList__plus_impl_xqmb9(files, modRs), modEndpoint), modModel) : NonEmptyList__plus_impl_xqmb9(files, modRs);
1086
+ return this.o22_1.fs_1 ? NonEmptyList__plus_impl_xqmb9(NonEmptyList__plus_impl_xqmb9(NonEmptyList__plus_impl_xqmb9(files, modRs), modEndpoint), modModel) : NonEmptyList__plus_impl_xqmb9(files, modRs);
867
1087
  };
868
- protoOf(RustIrEmitter).uq = function (definition, module_0, logger) {
869
- var subPackageName = plus_1(this.v1x_1, definition);
1088
+ protoOf(RustIrEmitter).su = function (definition, module_0, logger) {
1089
+ var subPackageName = plus_1(this.n22_1, definition);
870
1090
  var tmp;
871
1091
  if (definition instanceof Endpoint) {
872
- tmp = this.b1y_1;
1092
+ tmp = this.t22_1;
873
1093
  } else {
874
- tmp = this.a1y_1;
1094
+ tmp = this.s22_1;
875
1095
  }
876
1096
  var importHeader = tmp;
877
1097
  var tmp0 = emit_0.call(this, definition, module_0, logger);
878
1098
  // Inline function 'kotlin.let' call
879
- var file = RustTransform_getInstance().l1y(tmp0);
880
- var tmp_0 = Companion_getInstance().f1h(subPackageName.or() + toSnakeCase(this, file.s1m_1.h1h()));
1099
+ var file = RustTransform_getInstance().d23(tmp0);
1100
+ var tmp_0 = Companion_getInstance().u1k(subPackageName.mv() + toSnakeCase(this, file.a1r_1.b1q()));
881
1101
  // Inline function 'kotlin.collections.flatMap' call
882
- var tmp0_0 = file.t1m_1;
1102
+ var tmp0_0 = file.b1r_1;
883
1103
  // Inline function 'kotlin.collections.flatMapTo' call
884
1104
  var destination = ArrayList_init_$Create$_0();
885
1105
  var _iterator__ex2g4s = tmp0_0.t();
@@ -896,55 +1116,131 @@ protoOf(RustIrEmitter).uq = function (definition, module_0, logger) {
896
1116
  }
897
1117
  return new File(tmp_0, plus(importHeader, destination));
898
1118
  };
899
- protoOf(RustIrEmitter).up = function (type, module_0) {
1119
+ protoOf(RustIrEmitter).f1z = function (definition, module_0) {
1120
+ var tmp;
1121
+ if (definition instanceof Type) {
1122
+ tmp = convertToGenerator_2(definition, module_0);
1123
+ } else {
1124
+ if (definition instanceof Enum) {
1125
+ tmp = convertToGenerator_1(definition);
1126
+ } else {
1127
+ if (definition instanceof Refined) {
1128
+ tmp = convertToGenerator_0(definition);
1129
+ } else {
1130
+ if (definition instanceof Union) {
1131
+ tmp = convertToGenerator(definition);
1132
+ } else {
1133
+ return null;
1134
+ }
1135
+ }
1136
+ }
1137
+ }
1138
+ var generatorFile = sanitizeNames(tmp, _get_sanitizationConfig__sns434(this));
1139
+ var generatorOwnName = definition.tu().m1() + 'Generator';
1140
+ var tmp_0 = asSequence(collectCustomTypeNames(generatorFile));
1141
+ var tmp_1 = filterNot(tmp_0, RustIrEmitter$emitGenerator$lambda);
1142
+ var tmp_2 = filterNot(tmp_1, RustIrEmitter$emitGenerator$lambda_0(generatorOwnName));
1143
+ var customNames = toList(distinct(map(tmp_2, RustIrEmitter$emitGenerator$lambda_1)));
1144
+ // Inline function 'kotlin.collections.mutableSetOf' call
1145
+ var generatorRefs = LinkedHashSet_init_$Create$();
1146
+ // Inline function 'community.flock.wirespec.ir.core.transform' call
1147
+ var scope = new TransformScope(generatorFile);
1148
+ scope.t1y(RustIrEmitter$emitGenerator$lambda_2(generatorOwnName, generatorRefs));
1149
+ var tmp_3 = scope.l1y_1;
1150
+ isInterface(tmp_3, Element) || THROW_CCE();
1151
+ // Inline function 'kotlin.collections.filter' call
1152
+ // Inline function 'kotlin.collections.filterTo' call
1153
+ var destination = ArrayList_init_$Create$_0();
1154
+ var _iterator__ex2g4s = customNames.t();
1155
+ while (_iterator__ex2g4s.u()) {
1156
+ var element = _iterator__ex2g4s.v();
1157
+ if (endsWith(element, 'Generator')) {
1158
+ destination.x(element);
1159
+ }
1160
+ }
1161
+ // Inline function 'kotlin.collections.map' call
1162
+ var this_0 = distinct_0(plus(destination, generatorRefs));
1163
+ // Inline function 'kotlin.collections.mapTo' call
1164
+ var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
1165
+ var _iterator__ex2g4s_0 = this_0.t();
1166
+ while (_iterator__ex2g4s_0.u()) {
1167
+ var item = _iterator__ex2g4s_0.v();
1168
+ var tmp$ret$6 = import_0('super::' + toSnakeCase(this, item), item);
1169
+ destination_0.x(tmp$ret$6);
1170
+ }
1171
+ var generatorImports = destination_0;
1172
+ // Inline function 'kotlin.collections.filterNot' call
1173
+ // Inline function 'kotlin.collections.filterNotTo' call
1174
+ var destination_1 = ArrayList_init_$Create$_0();
1175
+ var _iterator__ex2g4s_1 = customNames.t();
1176
+ while (_iterator__ex2g4s_1.u()) {
1177
+ var element_0 = _iterator__ex2g4s_1.v();
1178
+ if (!endsWith(element_0, 'Generator')) {
1179
+ destination_1.x(element_0);
1180
+ }
1181
+ }
1182
+ // Inline function 'kotlin.collections.map' call
1183
+ // Inline function 'kotlin.collections.mapTo' call
1184
+ var destination_2 = ArrayList_init_$Create$(collectionSizeOrDefault(destination_1, 10));
1185
+ var _iterator__ex2g4s_2 = destination_1.t();
1186
+ while (_iterator__ex2g4s_2.u()) {
1187
+ var item_0 = _iterator__ex2g4s_2.v();
1188
+ var tmp$ret$12 = import_0('super::super::model::' + toSnakeCase(this, item_0), item_0);
1189
+ destination_2.x(tmp$ret$12);
1190
+ }
1191
+ var typeImports = destination_2;
1192
+ var subPackageName = plus_2(this.n22_1, 'generator');
1193
+ return new File(Companion_getInstance().u1k(subPackageName.mv() + toSnakeCase(this, generatorFile.a1r_1.b1q())), plus(plus(plus(this.s22_1, typeImports), generatorImports), generatorFile.b1r_1));
1194
+ };
1195
+ protoOf(RustIrEmitter).st = function (type, module_0) {
900
1196
  var tmp = convertWithValidation(type, module_0);
901
1197
  // Inline function 'kotlin.collections.map' call
902
- var this_0 = type.wo_1.so_1;
1198
+ var this_0 = type.us_1.qs_1;
903
1199
  // Inline function 'kotlin.collections.mapTo' call
904
1200
  var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
905
1201
  var _iterator__ex2g4s = this_0.t();
906
1202
  while (_iterator__ex2g4s.u()) {
907
1203
  var item = _iterator__ex2g4s.v();
908
- var tmp$ret$0 = item.ap_1.l1();
1204
+ var tmp$ret$0 = item.ys_1.m1();
909
1205
  destination.x(tmp$ret$0);
910
1206
  }
911
1207
  return prependImports(this, sanitizeNames(injectSelfReceiverToValidate(tmp, toSet(destination), '&self'), _get_sanitizationConfig__sns434(this)), buildModelImports(type));
912
1208
  };
913
- protoOf(RustIrEmitter).ir = function (enum_0, module_0) {
1209
+ protoOf(RustIrEmitter).gv = function (enum_0, module_0) {
914
1210
  var tmp = convert_0(enum_0);
915
1211
  return sanitizeEnumEntries(tmp, RustIrEmitter$emit$lambda_2(this));
916
1212
  };
917
- protoOf(RustIrEmitter).yq = function (union) {
1213
+ protoOf(RustIrEmitter).wu = function (union) {
918
1214
  return convert_1(union);
919
1215
  };
920
- protoOf(RustIrEmitter).dr = function (refined) {
1216
+ protoOf(RustIrEmitter).bv = function (refined) {
921
1217
  return replaceStructWithRefinedFunctions(convert_2(refined), refined);
922
1218
  };
923
- protoOf(RustIrEmitter).jr = function (endpoint) {
1219
+ protoOf(RustIrEmitter).hv = function (endpoint) {
924
1220
  // Inline function 'community.flock.wirespec.ir.core.transform' call
925
1221
  var this_0 = stripResponseGenerics(stripHandlerExtends(convertSimpleRawExpressionsToVariableRefs(stripWirespecPrefix(flattenForRust(convert_3(endpoint))))));
926
1222
  var scope = new TransformScope(this_0);
927
- scope.c1u(fixResponseSwitchPatterns());
928
- var tmp = scope.x1t_1;
1223
+ scope.q1y(fixResponseSwitchPatterns());
1224
+ var tmp = scope.l1y_1;
929
1225
  // Inline function 'community.flock.wirespec.ir.core.transform' call
930
1226
  var this_1 = isInterface(tmp, Element) ? tmp : THROW_CCE();
931
1227
  var scope_0 = new TransformScope(this_1);
932
- scope_0.c1u(fixConstructorCalls());
933
- var tmp_0 = scope_0.x1t_1;
1228
+ scope_0.q1y(fixConstructorCalls());
1229
+ var tmp_0 = scope_0.l1y_1;
934
1230
  var tmp$ret$3 = isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
935
1231
  return prependImports(this, sanitizeNames(injectApiStruct(injectResponseFromImpls(injectHandlerImplForClient(injectSelfToHandlerMethods(tmp$ret$3), endpoint)), endpoint), _get_sanitizationConfig__sns434(this)), buildEndpointImports(endpoint));
936
1232
  };
937
- protoOf(RustIrEmitter).xq = function (channel) {
1233
+ protoOf(RustIrEmitter).vu = function (channel) {
938
1234
  return convert_4(channel);
939
1235
  };
940
- protoOf(RustIrEmitter).p1u = function (endpoint) {
941
- var endpointName = endpoint.ep_1.l1();
1236
+ protoOf(RustIrEmitter).e1z = function (endpoint) {
1237
+ var endpointName = endpoint.ct_1.m1();
942
1238
  var endpointModuleName = toSnakeCase(this, endpointName);
943
1239
  var clientName = endpointName + 'Client';
944
1240
  var methodName = toSnakeCase(this, endpointName);
945
1241
  var _destruct__k2r9zo = buildClientParams(this, endpoint);
946
- var paramsStr = _destruct__k2r9zo.ne();
947
- var requestArgs = _destruct__k2r9zo.oe();
1242
+ var paramsStr = _destruct__k2r9zo.kf();
1243
+ var requestArgs = _destruct__k2r9zo.lf();
948
1244
  var requestConstruction = endpointModuleName + '::Request::new(' + requestArgs + ')';
949
1245
  // Inline function 'kotlin.collections.distinctBy' call
950
1246
  var this_0 = importReferences(endpoint);
@@ -953,7 +1249,7 @@ protoOf(RustIrEmitter).p1u = function (endpoint) {
953
1249
  var _iterator__ex2g4s = this_0.t();
954
1250
  while (_iterator__ex2g4s.u()) {
955
1251
  var e = _iterator__ex2g4s.v();
956
- var key = e.ku_1;
1252
+ var key = e.iy_1;
957
1253
  if (set.x(key)) {
958
1254
  list.x(e);
959
1255
  }
@@ -964,7 +1260,7 @@ protoOf(RustIrEmitter).p1u = function (endpoint) {
964
1260
  var _iterator__ex2g4s_0 = list.t();
965
1261
  while (_iterator__ex2g4s_0.u()) {
966
1262
  var item = _iterator__ex2g4s_0.v();
967
- var tmp$ret$2 = import_0('super::super::model::' + toSnakeCase(this, item.ku_1), item.ku_1);
1263
+ var tmp$ret$2 = import_0('super::super::model::' + toSnakeCase(this, item.iy_1), item.iy_1);
968
1264
  destination.x(tmp$ret$2);
969
1265
  }
970
1266
  var modelImports = destination;
@@ -985,10 +1281,10 @@ protoOf(RustIrEmitter).p1u = function (endpoint) {
985
1281
  this_1.x(' ' + namespacePath + '::from_raw_response(self.serialization, raw_response)');
986
1282
  this_1.x(' }');
987
1283
  this_1.x('}');
988
- var tmp$ret$8 = this_1.o5();
1284
+ var tmp$ret$8 = this_1.p5();
989
1285
  var code = joinToString(tmp$ret$8, '\n');
990
- var subPackageName = plus_2(this.v1x_1, 'client');
991
- var tmp = Companion_getInstance().f1h(subPackageName.or() + toSnakeCase(this, clientName));
1286
+ var subPackageName = plus_2(this.n22_1, 'client');
1287
+ var tmp = Companion_getInstance().u1k(subPackageName.mv() + toSnakeCase(this, clientName));
992
1288
  // Inline function 'kotlin.collections.buildList' call
993
1289
  // Inline function 'kotlin.collections.buildListInternal' call
994
1290
  // Inline function 'kotlin.apply' call
@@ -997,11 +1293,11 @@ protoOf(RustIrEmitter).p1u = function (endpoint) {
997
1293
  this_2.x(import_0('super::super::endpoint', endpointModuleName));
998
1294
  this_2.e1(modelImports);
999
1295
  this_2.x(new RawElement(code));
1000
- var tmp$ret$12 = this_2.o5();
1296
+ var tmp$ret$12 = this_2.p5();
1001
1297
  return new File(tmp, tmp$ret$12);
1002
1298
  };
1003
- protoOf(RustIrEmitter).o1u = function (endpoints, logger) {
1004
- logger.sq('Emitting main Client for ' + endpoints.a1() + ' endpoints');
1299
+ protoOf(RustIrEmitter).c1z = function (endpoints, logger) {
1300
+ logger.qu('Emitting main Client for ' + endpoints.a1() + ' endpoints');
1005
1301
  var modDeclarations = joinToString(endpoints, '\n', VOID, VOID, VOID, VOID, RustIrEmitter$emitClient$lambda(this));
1006
1302
  // Inline function 'kotlin.collections.flatMap' call
1007
1303
  // Inline function 'kotlin.collections.flatMapTo' call
@@ -1018,7 +1314,7 @@ protoOf(RustIrEmitter).o1u = function (endpoints, logger) {
1018
1314
  var _iterator__ex2g4s_0 = destination.t();
1019
1315
  while (_iterator__ex2g4s_0.u()) {
1020
1316
  var e = _iterator__ex2g4s_0.v();
1021
- var key = e.ku_1;
1317
+ var key = e.iy_1;
1022
1318
  if (set.x(key)) {
1023
1319
  list_0.x(e);
1024
1320
  }
@@ -1045,7 +1341,7 @@ protoOf(RustIrEmitter).o1u = function (endpoints, logger) {
1045
1341
  var _iterator__ex2g4s_2 = endpoints.t();
1046
1342
  while (_iterator__ex2g4s_2.u()) {
1047
1343
  var element_1 = _iterator__ex2g4s_2.v();
1048
- if (element_1.ep_1.l1() === element_0.ku_1) {
1344
+ if (element_1.ct_1.m1() === element_0.iy_1) {
1049
1345
  tmp$ret$5 = false;
1050
1346
  break $l$block_0;
1051
1347
  }
@@ -1062,7 +1358,7 @@ protoOf(RustIrEmitter).o1u = function (endpoints, logger) {
1062
1358
  var _iterator__ex2g4s_3 = destination_0.t();
1063
1359
  while (_iterator__ex2g4s_3.u()) {
1064
1360
  var item = _iterator__ex2g4s_3.v();
1065
- var tmp$ret$10 = import_0('super::model::' + toSnakeCase(this, item.ku_1), item.ku_1);
1361
+ var tmp$ret$10 = import_0('super::model::' + toSnakeCase(this, item.iy_1), item.iy_1);
1066
1362
  destination_1.x(tmp$ret$10);
1067
1363
  }
1068
1364
  var modelImports = destination_1;
@@ -1072,9 +1368,9 @@ protoOf(RustIrEmitter).o1u = function (endpoints, logger) {
1072
1368
  var _iterator__ex2g4s_4 = endpoints.t();
1073
1369
  while (_iterator__ex2g4s_4.u()) {
1074
1370
  var element_2 = _iterator__ex2g4s_4.v();
1075
- var endpointModuleName = toSnakeCase(this, element_2.ep_1.l1());
1076
- var clientModuleName = toSnakeCase(this, element_2.ep_1.l1() + 'Client');
1077
- var list_1 = listOf_0([import_0('super::endpoint', endpointModuleName), import_0(clientModuleName, element_2.ep_1.l1() + 'Client')]);
1371
+ var endpointModuleName = toSnakeCase(this, element_2.ct_1.m1());
1372
+ var clientModuleName = toSnakeCase(this, element_2.ct_1.m1() + 'Client');
1373
+ var list_1 = listOf_0([import_0('super::endpoint', endpointModuleName), import_0(clientModuleName, element_2.ct_1.m1() + 'Client')]);
1078
1374
  addAll(destination_2, list_1);
1079
1375
  }
1080
1376
  var endpointAndClientImports = destination_2;
@@ -1084,20 +1380,20 @@ protoOf(RustIrEmitter).o1u = function (endpoints, logger) {
1084
1380
  var _iterator__ex2g4s_5 = endpoints.t();
1085
1381
  while (_iterator__ex2g4s_5.u()) {
1086
1382
  var element_3 = _iterator__ex2g4s_5.v();
1087
- var endpointName = element_3.ep_1.l1();
1383
+ var endpointName = element_3.ct_1.m1();
1088
1384
  var endpointModuleName_0 = toSnakeCase(this, endpointName);
1089
1385
  var namespacePath = endpointModuleName_0 + '::' + endpointName;
1090
1386
  var methodName = toSnakeCase(this, endpointName);
1091
1387
  var _destruct__k2r9zo = buildClientParams(this, element_3);
1092
- var paramsStr = _destruct__k2r9zo.ne();
1093
- var callArgs = _destruct__k2r9zo.oe();
1388
+ var paramsStr = _destruct__k2r9zo.kf();
1389
+ var callArgs = _destruct__k2r9zo.lf();
1094
1390
  var delegateCall = endpointName + 'Client { serialization: &self.serialization, transportation: &self.transportation }\n' + (' .' + methodName + '(' + callArgs + ').await');
1095
1391
  var list_2 = listOf_0(['impl<S: Serialization, T: Transportation> ' + namespacePath + '::Call for Client<S, T> {', ' async fn ' + methodName + '(&self' + paramsStr + ') -> ' + endpointModuleName_0 + '::Response {', ' ' + delegateCall, ' }', '}']);
1096
1392
  addAll(destination_3, list_2);
1097
1393
  }
1098
1394
  var implBlocks = destination_3;
1099
1395
  var code = joinToString(plus(listOf_0(['pub struct Client<S: Serialization, T: Transportation> {', ' pub serialization: S,', ' pub transportation: T,', '}']), implBlocks), '\n');
1100
- var tmp_0 = Companion_getInstance().f1h(this.v1x_1.or() + 'client');
1396
+ var tmp_0 = Companion_getInstance().u1k(this.n22_1.mv() + 'client');
1101
1397
  // Inline function 'kotlin.collections.buildList' call
1102
1398
  // Inline function 'kotlin.collections.buildListInternal' call
1103
1399
  // Inline function 'kotlin.apply' call
@@ -1107,7 +1403,7 @@ protoOf(RustIrEmitter).o1u = function (endpoints, logger) {
1107
1403
  this_0.e1(modelImports);
1108
1404
  this_0.e1(endpointAndClientImports);
1109
1405
  this_0.x(new RawElement(code));
1110
- var tmp$ret$22 = this_0.o5();
1406
+ var tmp$ret$22 = this_0.p5();
1111
1407
  return new File(tmp_0, tmp$ret$22);
1112
1408
  };
1113
1409
  function get_rustSelfParam() {
@@ -1125,8 +1421,8 @@ function fixResponseSwitchPatterns() {
1125
1421
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1126
1422
  // Inline function 'kotlin.apply' call
1127
1423
  var this_0 = new TransformerBuilder();
1128
- this_0.e1u(fixResponseSwitchPatterns$lambda);
1129
- return this_0.d1h();
1424
+ this_0.s1y(fixResponseSwitchPatterns$lambda);
1425
+ return this_0.e1m();
1130
1426
  }
1131
1427
  function buildModelImports(_this__u8e3s4) {
1132
1428
  _init_properties_RustIrTransformer_kt__rrvmwq();
@@ -1137,7 +1433,7 @@ function buildModelImports(_this__u8e3s4) {
1137
1433
  var _iterator__ex2g4s = this_0.t();
1138
1434
  while (_iterator__ex2g4s.u()) {
1139
1435
  var e = _iterator__ex2g4s.v();
1140
- var key = e.ku_1;
1436
+ var key = e.iy_1;
1141
1437
  if (set.x(key)) {
1142
1438
  list.x(e);
1143
1439
  }
@@ -1148,7 +1444,7 @@ function buildModelImports(_this__u8e3s4) {
1148
1444
  var _iterator__ex2g4s_0 = list.t();
1149
1445
  while (_iterator__ex2g4s_0.u()) {
1150
1446
  var item = _iterator__ex2g4s_0.v();
1151
- var tmp$ret$2 = import_0('super::' + toRustSnakeCase(item.ku_1), Companion_getInstance().f1h(item.ku_1).h1h());
1447
+ var tmp$ret$2 = import_0('super::' + toRustSnakeCase(item.iy_1), item.iy_1);
1152
1448
  destination.x(tmp$ret$2);
1153
1449
  }
1154
1450
  return destination;
@@ -1160,14 +1456,14 @@ function replaceStructWithRefinedFunctions(_this__u8e3s4, refined) {
1160
1456
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
1161
1457
  var tmp = scope;
1162
1458
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1163
- var this_0 = scope.x1t_1;
1459
+ var this_0 = scope.l1y_1;
1164
1460
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1165
1461
  // Inline function 'kotlin.apply' call
1166
1462
  var this_1 = new TransformerBuilder();
1167
- this_1.c1h(replaceStructWithRefinedFunctions$lambda(refined));
1168
- var tmp$ret$2 = this_1.d1h();
1169
- tmp.x1t_1 = transform(this_0, tmp$ret$2);
1170
- var tmp_0 = scope.x1t_1;
1463
+ this_1.d1m(replaceStructWithRefinedFunctions$lambda(refined));
1464
+ var tmp$ret$2 = this_1.e1m();
1465
+ tmp.l1y_1 = transform(this_0, tmp$ret$2);
1466
+ var tmp_0 = scope.l1y_1;
1171
1467
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1172
1468
  }
1173
1469
  function injectApiStruct(_this__u8e3s4, endpoint) {
@@ -1177,14 +1473,14 @@ function injectApiStruct(_this__u8e3s4, endpoint) {
1177
1473
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
1178
1474
  var tmp = scope;
1179
1475
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1180
- var this_0 = scope.x1t_1;
1476
+ var this_0 = scope.l1y_1;
1181
1477
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1182
1478
  // Inline function 'kotlin.apply' call
1183
1479
  var this_1 = new TransformerBuilder();
1184
- this_1.c1h(injectApiStruct$lambda(endpoint));
1185
- var tmp$ret$2 = this_1.d1h();
1186
- tmp.x1t_1 = transform(this_0, tmp$ret$2);
1187
- var tmp_0 = scope.x1t_1;
1480
+ this_1.d1m(injectApiStruct$lambda(endpoint));
1481
+ var tmp$ret$2 = this_1.e1m();
1482
+ tmp.l1y_1 = transform(this_0, tmp$ret$2);
1483
+ var tmp_0 = scope.l1y_1;
1188
1484
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1189
1485
  }
1190
1486
  function injectResponseFromImpls(_this__u8e3s4) {
@@ -1194,14 +1490,14 @@ function injectResponseFromImpls(_this__u8e3s4) {
1194
1490
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
1195
1491
  var tmp = scope;
1196
1492
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1197
- var this_0 = scope.x1t_1;
1493
+ var this_0 = scope.l1y_1;
1198
1494
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1199
1495
  // Inline function 'kotlin.apply' call
1200
1496
  var this_1 = new TransformerBuilder();
1201
- this_1.c1h(injectResponseFromImpls$lambda);
1202
- var tmp$ret$2 = this_1.d1h();
1203
- tmp.x1t_1 = transform(this_0, tmp$ret$2);
1204
- var tmp_0 = scope.x1t_1;
1497
+ this_1.d1m(injectResponseFromImpls$lambda);
1498
+ var tmp$ret$2 = this_1.e1m();
1499
+ tmp.l1y_1 = transform(this_0, tmp$ret$2);
1500
+ var tmp_0 = scope.l1y_1;
1205
1501
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1206
1502
  }
1207
1503
  function injectHandlerImplForClient(_this__u8e3s4, endpoint) {
@@ -1211,14 +1507,14 @@ function injectHandlerImplForClient(_this__u8e3s4, endpoint) {
1211
1507
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
1212
1508
  var tmp = scope;
1213
1509
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1214
- var this_0 = scope.x1t_1;
1510
+ var this_0 = scope.l1y_1;
1215
1511
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1216
1512
  // Inline function 'kotlin.apply' call
1217
1513
  var this_1 = new TransformerBuilder();
1218
- this_1.c1h(injectHandlerImplForClient$lambda);
1219
- var tmp$ret$2 = this_1.d1h();
1220
- tmp.x1t_1 = transform(this_0, tmp$ret$2);
1221
- var tmp_0 = scope.x1t_1;
1514
+ this_1.d1m(injectHandlerImplForClient$lambda);
1515
+ var tmp$ret$2 = this_1.e1m();
1516
+ tmp.l1y_1 = transform(this_0, tmp$ret$2);
1517
+ var tmp_0 = scope.l1y_1;
1222
1518
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1223
1519
  }
1224
1520
  function injectSelfToHandlerMethods(_this__u8e3s4) {
@@ -1228,14 +1524,14 @@ function injectSelfToHandlerMethods(_this__u8e3s4) {
1228
1524
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
1229
1525
  var tmp = scope;
1230
1526
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1231
- var this_0 = scope.x1t_1;
1527
+ var this_0 = scope.l1y_1;
1232
1528
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1233
1529
  // Inline function 'kotlin.apply' call
1234
1530
  var this_1 = new TransformerBuilder();
1235
- this_1.c1h(injectSelfToHandlerMethods$lambda);
1236
- var tmp$ret$2 = this_1.d1h();
1237
- tmp.x1t_1 = transform(this_0, tmp$ret$2);
1238
- var tmp_0 = scope.x1t_1;
1531
+ this_1.d1m(injectSelfToHandlerMethods$lambda);
1532
+ var tmp$ret$2 = this_1.e1m();
1533
+ tmp.l1y_1 = transform(this_0, tmp$ret$2);
1534
+ var tmp_0 = scope.l1y_1;
1239
1535
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1240
1536
  }
1241
1537
  function stripResponseGenerics(_this__u8e3s4) {
@@ -1245,14 +1541,14 @@ function stripResponseGenerics(_this__u8e3s4) {
1245
1541
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matching' call
1246
1542
  var tmp = scope;
1247
1543
  // Inline function 'community.flock.wirespec.ir.core.transformMatching' call
1248
- var this_0 = scope.x1t_1;
1544
+ var this_0 = scope.l1y_1;
1249
1545
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1250
1546
  // Inline function 'kotlin.apply' call
1251
1547
  var this_1 = new TransformerBuilder();
1252
- this_1.d1u(stripResponseGenerics$lambda);
1253
- var tmp$ret$2 = this_1.d1h();
1254
- tmp.x1t_1 = transform(this_0, tmp$ret$2);
1255
- var tmp_0 = scope.x1t_1;
1548
+ this_1.r1y(stripResponseGenerics$lambda);
1549
+ var tmp$ret$2 = this_1.e1m();
1550
+ tmp.l1y_1 = transform(this_0, tmp$ret$2);
1551
+ var tmp_0 = scope.l1y_1;
1256
1552
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1257
1553
  }
1258
1554
  function stripHandlerExtends(_this__u8e3s4) {
@@ -1262,14 +1558,14 @@ function stripHandlerExtends(_this__u8e3s4) {
1262
1558
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
1263
1559
  var tmp = scope;
1264
1560
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1265
- var this_0 = scope.x1t_1;
1561
+ var this_0 = scope.l1y_1;
1266
1562
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1267
1563
  // Inline function 'kotlin.apply' call
1268
1564
  var this_1 = new TransformerBuilder();
1269
- this_1.c1h(stripHandlerExtends$lambda);
1270
- var tmp$ret$2 = this_1.d1h();
1271
- tmp.x1t_1 = transform(this_0, tmp$ret$2);
1272
- var tmp_0 = scope.x1t_1;
1565
+ this_1.d1m(stripHandlerExtends$lambda);
1566
+ var tmp$ret$2 = this_1.e1m();
1567
+ tmp.l1y_1 = transform(this_0, tmp$ret$2);
1568
+ var tmp_0 = scope.l1y_1;
1273
1569
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1274
1570
  }
1275
1571
  function convertSimpleRawExpressionsToVariableRefs(_this__u8e3s4) {
@@ -1277,8 +1573,8 @@ function convertSimpleRawExpressionsToVariableRefs(_this__u8e3s4) {
1277
1573
  // Inline function 'community.flock.wirespec.ir.core.transform' call
1278
1574
  var scope = new TransformScope(_this__u8e3s4);
1279
1575
  var identifierPattern = Regex_init_$Create$('[a-zA-Z_][a-zA-Z0-9_]*');
1280
- scope.g1u(convertSimpleRawExpressionsToVariableRefs$lambda(identifierPattern));
1281
- var tmp = scope.x1t_1;
1576
+ scope.u1y(convertSimpleRawExpressionsToVariableRefs$lambda(identifierPattern));
1577
+ var tmp = scope.l1y_1;
1282
1578
  return isInterface(tmp, Element) ? tmp : THROW_CCE();
1283
1579
  }
1284
1580
  function stripWirespecPrefix(_this__u8e3s4) {
@@ -1288,21 +1584,21 @@ function stripWirespecPrefix(_this__u8e3s4) {
1288
1584
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matching' call
1289
1585
  var tmp = scope;
1290
1586
  // Inline function 'community.flock.wirespec.ir.core.transformMatching' call
1291
- var this_0 = scope.x1t_1;
1587
+ var this_0 = scope.l1y_1;
1292
1588
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1293
1589
  // Inline function 'kotlin.apply' call
1294
1590
  var this_1 = new TransformerBuilder();
1295
- this_1.d1u(stripWirespecPrefix$lambda);
1296
- var tmp$ret$2 = this_1.d1h();
1297
- tmp.x1t_1 = transform(this_0, tmp$ret$2);
1298
- var tmp_0 = scope.x1t_1;
1591
+ this_1.r1y(stripWirespecPrefix$lambda);
1592
+ var tmp$ret$2 = this_1.e1m();
1593
+ tmp.l1y_1 = transform(this_0, tmp$ret$2);
1594
+ var tmp_0 = scope.l1y_1;
1299
1595
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1300
1596
  }
1301
1597
  function flattenForRust(_this__u8e3s4) {
1302
1598
  _init_properties_RustIrTransformer_kt__rrvmwq();
1303
1599
  // Inline function 'community.flock.wirespec.ir.core.findElement' call
1304
1600
  // Inline function 'kotlin.collections.filterIsInstance' call
1305
- var tmp0 = _this__u8e3s4.u1m();
1601
+ var tmp0 = _this__u8e3s4.c1r();
1306
1602
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
1307
1603
  var destination = ArrayList_init_$Create$_0();
1308
1604
  var _iterator__ex2g4s = tmp0.t();
@@ -1316,7 +1612,7 @@ function flattenForRust(_this__u8e3s4) {
1316
1612
  var namespace = ensureNotNull(tmp$ret$2);
1317
1613
  var flattened = flattenNestedStructs(namespace);
1318
1614
  // Inline function 'kotlin.collections.filter' call
1319
- var tmp0_0 = flattened.z1m_1;
1615
+ var tmp0_0 = flattened.h1r_1;
1320
1616
  // Inline function 'kotlin.collections.filterTo' call
1321
1617
  var destination_0 = ArrayList_init_$Create$_0();
1322
1618
  var _iterator__ex2g4s_0 = tmp0_0.t();
@@ -1326,7 +1622,7 @@ function flattenForRust(_this__u8e3s4) {
1326
1622
  if (element_0 instanceof Struct) {
1327
1623
  tmp = true;
1328
1624
  } else {
1329
- tmp = element_0 instanceof Union;
1625
+ tmp = element_0 instanceof Union_0;
1330
1626
  }
1331
1627
  if (tmp) {
1332
1628
  destination_0.x(element_0);
@@ -1340,14 +1636,14 @@ function flattenForRust(_this__u8e3s4) {
1340
1636
  var item = _iterator__ex2g4s_1.v();
1341
1637
  var tmp_0;
1342
1638
  var tmp_1;
1343
- if (item instanceof Union) {
1344
- tmp_1 = item.t1p_1.h1h() === 'Response';
1639
+ if (item instanceof Union_0) {
1640
+ tmp_1 = item.j1u_1.b1q() === 'Response';
1345
1641
  } else {
1346
1642
  tmp_1 = false;
1347
1643
  }
1348
1644
  if (tmp_1) {
1349
1645
  // Inline function 'kotlin.collections.filterIsInstance' call
1350
- var tmp0_1 = flattened.z1m_1;
1646
+ var tmp0_1 = flattened.h1r_1;
1351
1647
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
1352
1648
  var destination_2 = ArrayList_init_$Create$_0();
1353
1649
  var _iterator__ex2g4s_2 = tmp0_1.t();
@@ -1363,7 +1659,7 @@ function flattenForRust(_this__u8e3s4) {
1363
1659
  var _iterator__ex2g4s_3 = destination_2.t();
1364
1660
  while (_iterator__ex2g4s_3.u()) {
1365
1661
  var item_0 = _iterator__ex2g4s_3.v();
1366
- var tmp$ret$8 = item_0.d1n_1.h1h();
1662
+ var tmp$ret$8 = item_0.l1r_1.b1q();
1367
1663
  destination_3.x(tmp$ret$8);
1368
1664
  }
1369
1665
  // Inline function 'kotlin.collections.filter' call
@@ -1372,7 +1668,7 @@ function flattenForRust(_this__u8e3s4) {
1372
1668
  var _iterator__ex2g4s_4 = destination_3.t();
1373
1669
  while (_iterator__ex2g4s_4.u()) {
1374
1670
  var element_2 = _iterator__ex2g4s_4.v();
1375
- if (get_rustResponsePattern().nc(element_2)) {
1671
+ if (get_rustResponsePattern().oc(element_2)) {
1376
1672
  destination_4.x(element_2);
1377
1673
  }
1378
1674
  }
@@ -1382,14 +1678,14 @@ function flattenForRust(_this__u8e3s4) {
1382
1678
  var _iterator__ex2g4s_5 = destination_4.t();
1383
1679
  while (_iterator__ex2g4s_5.u()) {
1384
1680
  var item_1 = _iterator__ex2g4s_5.v();
1385
- var tmp$ret$14 = Custom_init_$Create$(item_1);
1681
+ var tmp$ret$14 = new Custom(item_1);
1386
1682
  destination_5.x(tmp$ret$14);
1387
1683
  }
1388
1684
  var members = destination_5;
1389
- tmp_0 = item.y1p(VOID, VOID, members, emptyList());
1685
+ tmp_0 = item.o1u(VOID, VOID, members, emptyList());
1390
1686
  } else {
1391
- if (item instanceof Union) {
1392
- tmp_0 = item.y1p(VOID, VOID, VOID, emptyList());
1687
+ if (item instanceof Union_0) {
1688
+ tmp_0 = item.o1u(VOID, VOID, VOID, emptyList());
1393
1689
  } else {
1394
1690
  tmp_0 = item;
1395
1691
  }
@@ -1399,7 +1695,7 @@ function flattenForRust(_this__u8e3s4) {
1399
1695
  }
1400
1696
  var moduleElements = destination_1;
1401
1697
  // Inline function 'kotlin.collections.filterNot' call
1402
- var tmp0_2 = flattened.z1m_1;
1698
+ var tmp0_2 = flattened.h1r_1;
1403
1699
  // Inline function 'kotlin.collections.filterNotTo' call
1404
1700
  var destination_6 = ArrayList_init_$Create$_0();
1405
1701
  var _iterator__ex2g4s_6 = tmp0_2.t();
@@ -1409,22 +1705,22 @@ function flattenForRust(_this__u8e3s4) {
1409
1705
  if (element_3 instanceof Struct) {
1410
1706
  tmp_2 = true;
1411
1707
  } else {
1412
- tmp_2 = element_3 instanceof Union;
1708
+ tmp_2 = element_3 instanceof Union_0;
1413
1709
  }
1414
1710
  if (!tmp_2) {
1415
1711
  destination_6.x(element_3);
1416
1712
  }
1417
1713
  }
1418
1714
  var classElements = destination_6;
1419
- return new File(namespace.y1m_1, plus_0(moduleElements, new Namespace(namespace.y1m_1, classElements, namespace.a1n_1)));
1715
+ return new File(namespace.g1r_1, plus_0(moduleElements, new Namespace(namespace.g1r_1, classElements, namespace.i1r_1)));
1420
1716
  }
1421
1717
  function fixConstructorCalls() {
1422
1718
  _init_properties_RustIrTransformer_kt__rrvmwq();
1423
1719
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1424
1720
  // Inline function 'kotlin.apply' call
1425
1721
  var this_0 = new TransformerBuilder();
1426
- this_0.g1u(fixConstructorCalls$lambda);
1427
- return this_0.d1h();
1722
+ this_0.u1y(fixConstructorCalls$lambda);
1723
+ return this_0.e1m();
1428
1724
  }
1429
1725
  function buildEndpointImports(_this__u8e3s4) {
1430
1726
  _init_properties_RustIrTransformer_kt__rrvmwq();
@@ -1435,7 +1731,7 @@ function buildEndpointImports(_this__u8e3s4) {
1435
1731
  var _iterator__ex2g4s = this_0.t();
1436
1732
  while (_iterator__ex2g4s.u()) {
1437
1733
  var e = _iterator__ex2g4s.v();
1438
- var key = e.ku_1;
1734
+ var key = e.iy_1;
1439
1735
  if (set.x(key)) {
1440
1736
  list.x(e);
1441
1737
  }
@@ -1446,24 +1742,24 @@ function buildEndpointImports(_this__u8e3s4) {
1446
1742
  var _iterator__ex2g4s_0 = list.t();
1447
1743
  while (_iterator__ex2g4s_0.u()) {
1448
1744
  var item = _iterator__ex2g4s_0.v();
1449
- var tmp$ret$2 = import_0('super::super::model::' + toRustSnakeCase(item.ku_1), Companion_getInstance().f1h(item.ku_1).h1h());
1745
+ var tmp$ret$2 = import_0('super::super::model::' + toRustSnakeCase(item.iy_1), item.iy_1);
1450
1746
  destination.x(tmp$ret$2);
1451
1747
  }
1452
1748
  return destination;
1453
1749
  }
1454
1750
  function toRustSnakeCase(_this__u8e3s4) {
1455
1751
  _init_properties_RustIrTransformer_kt__rrvmwq();
1456
- return Companion_getInstance().f1h(_this__u8e3s4).y1l();
1752
+ return Companion_getInstance().u1k(_this__u8e3s4).c1q();
1457
1753
  }
1458
1754
  function buildValidateFunction(refined) {
1459
1755
  _init_properties_RustIrTransformer_kt__rrvmwq();
1460
- var constraintExpr = convertConstraint(refined.cr_1, new FieldCall(new VariableReference(Companion_getInstance().f1h('self')), Companion_getInstance().f1h('value')));
1756
+ var constraintExpr = convertConstraint(refined.av_1, new FieldCall(new VariableReference(Companion_getInstance().u1k('self')), Companion_getInstance().u1k('value')));
1461
1757
  return function_0('validate', VOID, VOID, buildValidateFunction$lambda(constraintExpr));
1462
1758
  }
1463
1759
  function buildToStringFunction(refined) {
1464
1760
  _init_properties_RustIrTransformer_kt__rrvmwq();
1465
1761
  var tmp;
1466
- if (refined.cr_1.ou_1 instanceof String_0) {
1762
+ if (refined.av_1.my_1 instanceof String_0) {
1467
1763
  tmp = 'self.value.clone()';
1468
1764
  } else {
1469
1765
  tmp = 'format!("{}", self.value)';
@@ -1478,8 +1774,8 @@ function buildApiStruct(endpoint) {
1478
1774
  function generateApiStructCode(_this__u8e3s4) {
1479
1775
  _init_properties_RustIrTransformer_kt__rrvmwq();
1480
1776
  // Inline function 'kotlin.let' call
1481
- var pathTemplate = '/' + joinToString(_this__u8e3s4.gp_1, '/', VOID, VOID, VOID, VOID, generateApiStructCode$lambda);
1482
- var methodName = _this__u8e3s4.fp_1.a3_1;
1777
+ var pathTemplate = '/' + joinToString(_this__u8e3s4.et_1, '/', VOID, VOID, VOID, VOID, generateApiStructCode$lambda);
1778
+ var methodName = _this__u8e3s4.dt_1.b3_1;
1483
1779
  return trimIndent('\n pub struct Api;\n impl Server for Api {\n type Req = Request;\n type Res = Response;\n fn path_template(&self) -> &\'static str { "' + pathTemplate + '" }\n fn method(&self) -> Method { Method::' + methodName + ' }\n }\n ');
1484
1780
  }
1485
1781
  function fixResponseSwitchPatterns$lambda(s, t) {
@@ -1488,56 +1784,55 @@ function fixResponseSwitchPatterns$lambda(s, t) {
1488
1784
  if (!(s instanceof Switch)) {
1489
1785
  tmp = true;
1490
1786
  } else {
1491
- var tmp0_safe_receiver = s.b1p_1;
1492
- tmp = !((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.s1l()) === 'r');
1787
+ var tmp0_safe_receiver = s.p1t_1;
1788
+ tmp = !((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.v1p()) === 'r');
1493
1789
  }
1494
1790
  if (tmp)
1495
1791
  return transformChildren(s, t);
1496
1792
  // Inline function 'kotlin.collections.map' call
1497
- var this_0 = s.z1o_1;
1793
+ var this_0 = s.n1t_1;
1498
1794
  // Inline function 'kotlin.collections.mapTo' call
1499
1795
  var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
1500
1796
  var _iterator__ex2g4s = this_0.t();
1501
1797
  while (_iterator__ex2g4s.u()) {
1502
1798
  var item = _iterator__ex2g4s.v();
1503
- var tmp_0 = item.g1p_1;
1799
+ var tmp_0 = item.u1t_1;
1504
1800
  var tmp0_safe_receiver_0 = tmp_0 instanceof Custom ? tmp_0 : null;
1505
- var tmp1_safe_receiver = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.q1h_1;
1506
- var typeName = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.h1h();
1801
+ var typeName = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.n1m_1;
1507
1802
  var tmp_1;
1508
- if (!(typeName == null) && get_rustResponsePattern().nc(typeName)) {
1509
- var tmp_2 = new RawExpression('Response::' + typeName + '(' + ensureNotNull(s.b1p_1).y1l() + ')');
1803
+ if (!(typeName == null) && get_rustResponsePattern().oc(typeName)) {
1804
+ var tmp_2 = new RawExpression('Response::' + typeName + '(' + ensureNotNull(s.p1t_1).c1q() + ')');
1510
1805
  // Inline function 'kotlin.collections.map' call
1511
- var this_1 = item.f1p_1;
1806
+ var this_1 = item.t1t_1;
1512
1807
  // Inline function 'kotlin.collections.mapTo' call
1513
1808
  var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(this_1, 10));
1514
1809
  var _iterator__ex2g4s_0 = this_1.t();
1515
1810
  while (_iterator__ex2g4s_0.u()) {
1516
1811
  var item_0 = _iterator__ex2g4s_0.v();
1517
- var tmp$ret$0 = t.r1t(item_0);
1812
+ var tmp$ret$0 = t.f1y(item_0);
1518
1813
  destination_0.x(tmp$ret$0);
1519
1814
  }
1520
1815
  tmp_1 = new Case(tmp_2, destination_0, null);
1521
1816
  } else {
1522
- var tmp_3 = t.s1t(item.e1p_1);
1817
+ var tmp_3 = t.g1y(item.s1t_1);
1523
1818
  // Inline function 'kotlin.collections.map' call
1524
- var this_2 = item.f1p_1;
1819
+ var this_2 = item.t1t_1;
1525
1820
  // Inline function 'kotlin.collections.mapTo' call
1526
1821
  var destination_1 = ArrayList_init_$Create$(collectionSizeOrDefault(this_2, 10));
1527
1822
  var _iterator__ex2g4s_1 = this_2.t();
1528
1823
  while (_iterator__ex2g4s_1.u()) {
1529
1824
  var item_1 = _iterator__ex2g4s_1.v();
1530
- var tmp$ret$3 = t.r1t(item_1);
1825
+ var tmp$ret$3 = t.f1y(item_1);
1531
1826
  destination_1.x(tmp$ret$3);
1532
1827
  }
1533
1828
  var tmp_4 = destination_1;
1534
- var tmp2_safe_receiver = item.g1p_1;
1829
+ var tmp1_safe_receiver = item.u1t_1;
1535
1830
  var tmp_5;
1536
- if (tmp2_safe_receiver == null) {
1831
+ if (tmp1_safe_receiver == null) {
1537
1832
  tmp_5 = null;
1538
1833
  } else {
1539
1834
  // Inline function 'kotlin.let' call
1540
- tmp_5 = t.p1t(tmp2_safe_receiver);
1835
+ tmp_5 = t.d1y(tmp1_safe_receiver);
1541
1836
  }
1542
1837
  tmp_1 = new Case(tmp_3, tmp_4, tmp_5);
1543
1838
  }
@@ -1545,13 +1840,13 @@ function fixResponseSwitchPatterns$lambda(s, t) {
1545
1840
  destination.x(tmp$ret$8);
1546
1841
  }
1547
1842
  var transformedCases = destination;
1548
- return s.d1p(t.s1t(s.y1o_1), transformedCases, null);
1843
+ return s.r1t(t.g1y(s.m1t_1), transformedCases, null);
1549
1844
  }
1550
1845
  function replaceStructWithRefinedFunctions$lambda($refined) {
1551
1846
  return function (element, transformer) {
1552
1847
  var tmp;
1553
1848
  if (element instanceof Struct) {
1554
- tmp = element.j1n(VOID, VOID, VOID, VOID, listOf_0([buildValidateFunction($refined), buildToStringFunction($refined)]));
1849
+ tmp = element.s1r(VOID, VOID, VOID, VOID, listOf_0([buildValidateFunction($refined), buildToStringFunction($refined)]));
1555
1850
  } else {
1556
1851
  tmp = element;
1557
1852
  }
@@ -1563,7 +1858,7 @@ function injectApiStruct$lambda($endpoint) {
1563
1858
  return function (element, transformer) {
1564
1859
  var tmp;
1565
1860
  if (element instanceof Namespace) {
1566
- tmp = element.c1n(VOID, plus(element.z1m_1, listOf(buildApiStruct($endpoint))));
1861
+ tmp = element.k1r(VOID, plus(element.h1r_1, listOf(buildApiStruct($endpoint))));
1567
1862
  } else {
1568
1863
  tmp = element;
1569
1864
  }
@@ -1576,7 +1871,7 @@ function injectResponseFromImpls$lambda(element, transformer) {
1576
1871
  var tmp;
1577
1872
  if (element instanceof File) {
1578
1873
  // Inline function 'kotlin.collections.flatMap' call
1579
- var tmp0 = element.t1m_1;
1874
+ var tmp0 = element.b1r_1;
1580
1875
  // Inline function 'kotlin.collections.flatMapTo' call
1581
1876
  var destination = ArrayList_init_$Create$_0();
1582
1877
  var _iterator__ex2g4s = tmp0.t();
@@ -1585,28 +1880,27 @@ function injectResponseFromImpls$lambda(element, transformer) {
1585
1880
  var tmp_0;
1586
1881
  var tmp_1;
1587
1882
  var tmp_2;
1588
- if (element_0 instanceof Union) {
1589
- tmp_2 = element_0.t1p_1.h1h() === 'Response';
1883
+ if (element_0 instanceof Union_0) {
1884
+ tmp_2 = element_0.j1u_1.b1q() === 'Response';
1590
1885
  } else {
1591
1886
  tmp_2 = false;
1592
1887
  }
1593
1888
  if (tmp_2) {
1594
1889
  // Inline function 'kotlin.collections.isNotEmpty' call
1595
- tmp_1 = !element_0.v1p_1.r();
1890
+ tmp_1 = !element_0.l1u_1.r();
1596
1891
  } else {
1597
1892
  tmp_1 = false;
1598
1893
  }
1599
1894
  if (tmp_1) {
1600
1895
  var tmp_3 = listOf(element_0);
1601
1896
  // Inline function 'kotlin.collections.map' call
1602
- var this_0 = element_0.v1p_1;
1897
+ var this_0 = element_0.l1u_1;
1603
1898
  // Inline function 'kotlin.collections.mapTo' call
1604
1899
  var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
1605
1900
  var _iterator__ex2g4s_0 = this_0.t();
1606
1901
  while (_iterator__ex2g4s_0.u()) {
1607
1902
  var item = _iterator__ex2g4s_0.v();
1608
- var memberName = item.q1h_1.h1h();
1609
- var tmp$ret$1 = new RawElement('impl From<' + memberName + '> for Response { fn from(value: ' + memberName + ') -> Self { Response::' + memberName + '(value) } }\n');
1903
+ var tmp$ret$1 = new RawElement('impl From<' + item.n1m_1 + '> for Response { fn from(value: ' + item.n1m_1 + ') -> Self { Response::' + item.n1m_1 + '(value) } }\n');
1610
1904
  destination_0.x(tmp$ret$1);
1611
1905
  }
1612
1906
  tmp_0 = plus(tmp_3, destination_0);
@@ -1616,7 +1910,7 @@ function injectResponseFromImpls$lambda(element, transformer) {
1616
1910
  var list = tmp_0;
1617
1911
  addAll(destination, list);
1618
1912
  }
1619
- tmp = element.w1m(VOID, destination);
1913
+ tmp = element.e1r(VOID, destination);
1620
1914
  } else {
1621
1915
  tmp = element;
1622
1916
  }
@@ -1630,7 +1924,7 @@ function injectHandlerImplForClient$lambda(element, transformer) {
1630
1924
  var tmp$ret$4;
1631
1925
  $l$block_1: {
1632
1926
  // Inline function 'kotlin.collections.filterIsInstance' call
1633
- var tmp0 = element.z1m_1;
1927
+ var tmp0 = element.h1r_1;
1634
1928
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
1635
1929
  var destination = ArrayList_init_$Create$_0();
1636
1930
  var _iterator__ex2g4s = tmp0.t();
@@ -1646,7 +1940,7 @@ function injectHandlerImplForClient$lambda(element, transformer) {
1646
1940
  var _iterator__ex2g4s_0 = destination.t();
1647
1941
  while (_iterator__ex2g4s_0.u()) {
1648
1942
  var element_1 = _iterator__ex2g4s_0.v();
1649
- if (element_1.k1n_1.equals(Companion_getInstance().f1h('Handler'))) {
1943
+ if (element_1.t1r_1.equals(Companion_getInstance().u1k('Handler'))) {
1650
1944
  tmp$ret$3 = element_1;
1651
1945
  break $l$block;
1652
1946
  }
@@ -1663,13 +1957,13 @@ function injectHandlerImplForClient$lambda(element, transformer) {
1663
1957
  }
1664
1958
  var handler = tmp_0;
1665
1959
  // Inline function 'kotlin.collections.filterIsInstance' call
1666
- var tmp0_0 = handler.l1n_1;
1960
+ var tmp0_0 = handler.u1r_1;
1667
1961
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
1668
1962
  var destination_0 = ArrayList_init_$Create$_0();
1669
1963
  var _iterator__ex2g4s_1 = tmp0_0.t();
1670
1964
  while (_iterator__ex2g4s_1.u()) {
1671
1965
  var element_2 = _iterator__ex2g4s_1.v();
1672
- if (element_2 instanceof Function) {
1966
+ if (element_2 instanceof Function_0) {
1673
1967
  destination_0.x(element_2);
1674
1968
  }
1675
1969
  }
@@ -1682,8 +1976,8 @@ function injectHandlerImplForClient$lambda(element, transformer) {
1682
1976
  tmp_1 = tmp1_elvis_lhs;
1683
1977
  }
1684
1978
  var method = tmp_1;
1685
- var methodName = method.t1j_1.y1l();
1686
- tmp$ret$4 = element.c1n(VOID, plus(element.z1m_1, listOf(new RawElement(trimIndent('\n impl<C: Client> Handler for C {\n async fn ' + methodName + '(&self, request: Request) -> Response {\n let raw = to_raw_request(self.serialization(), request);\n let resp = self.transport().transport(&raw).await;\n from_raw_response(self.serialization(), resp)\n }\n }\n ')))));
1979
+ var methodName = method.j1o_1.c1q();
1980
+ tmp$ret$4 = element.k1r(VOID, plus(element.h1r_1, listOf(new RawElement(trimIndent('\n impl<C: Client> Handler for C {\n async fn ' + methodName + '(&self, request: Request) -> Response {\n let raw = to_raw_request(self.serialization(), request);\n let resp = self.transport().transport(&raw).await;\n from_raw_response(self.serialization(), resp)\n }\n }\n ')))));
1687
1981
  }
1688
1982
  tmp = tmp$ret$4;
1689
1983
  } else {
@@ -1698,7 +1992,7 @@ function injectSelfToHandlerMethods$lambda(element, transformer) {
1698
1992
  if (element instanceof Interface) {
1699
1993
  var tmp$ret$0;
1700
1994
  $l$block: {
1701
- if (!element.k1n_1.equals(Companion_getInstance().f1h('Handler')) && !element.k1n_1.equals(Companion_getInstance().f1h('Call'))) {
1995
+ if (!element.t1r_1.equals(Companion_getInstance().u1k('Handler')) && !element.t1r_1.equals(Companion_getInstance().u1k('Call'))) {
1702
1996
  tmp$ret$0 = element;
1703
1997
  break $l$block;
1704
1998
  }
@@ -1707,14 +2001,14 @@ function injectSelfToHandlerMethods$lambda(element, transformer) {
1707
2001
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
1708
2002
  var tmp_0 = scope;
1709
2003
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1710
- var this_0 = scope.x1t_1;
2004
+ var this_0 = scope.l1y_1;
1711
2005
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1712
2006
  // Inline function 'kotlin.apply' call
1713
2007
  var this_1 = new TransformerBuilder();
1714
- this_1.c1h(injectSelfToHandlerMethods$lambda$lambda);
1715
- var tmp$ret$3 = this_1.d1h();
1716
- tmp_0.x1t_1 = transform(this_0, tmp$ret$3);
1717
- var tmp_1 = scope.x1t_1;
2008
+ this_1.d1m(injectSelfToHandlerMethods$lambda$lambda);
2009
+ var tmp$ret$3 = this_1.e1m();
2010
+ tmp_0.l1y_1 = transform(this_0, tmp$ret$3);
2011
+ var tmp_1 = scope.l1y_1;
1718
2012
  tmp$ret$0 = isInterface(tmp_1, Element) ? tmp_1 : THROW_CCE();
1719
2013
  }
1720
2014
  tmp = tmp$ret$0;
@@ -1727,8 +2021,8 @@ function injectSelfToHandlerMethods$lambda(element, transformer) {
1727
2021
  function injectSelfToHandlerMethods$lambda$lambda(element, transformer) {
1728
2022
  _init_properties_RustIrTransformer_kt__rrvmwq();
1729
2023
  var tmp;
1730
- if (element instanceof Function) {
1731
- tmp = element.b1k(Companion_getInstance().f1h(element.t1j_1.y1l()), VOID, plus(listOf(get_rustSelfParam()), element.v1j_1));
2024
+ if (element instanceof Function_0) {
2025
+ tmp = element.r1o(Companion_getInstance().u1k(element.j1o_1.c1q()), VOID, plus(listOf(get_rustSelfParam()), element.l1o_1));
1732
2026
  } else {
1733
2027
  tmp = element;
1734
2028
  }
@@ -1741,14 +2035,14 @@ function stripResponseGenerics$lambda(type, transformer) {
1741
2035
  if (type instanceof Custom) {
1742
2036
  var tmp_0;
1743
2037
  var tmp_1;
1744
- if (startsWith(type.q1h_1.h1h(), 'Response')) {
2038
+ if (startsWith(type.n1m_1, 'Response')) {
1745
2039
  // Inline function 'kotlin.collections.isNotEmpty' call
1746
- tmp_1 = !type.r1h_1.r();
2040
+ tmp_1 = !type.o1m_1.r();
1747
2041
  } else {
1748
2042
  tmp_1 = false;
1749
2043
  }
1750
2044
  if (tmp_1) {
1751
- tmp_0 = type.n1m(VOID, emptyList());
2045
+ tmp_0 = type.r1q(VOID, emptyList());
1752
2046
  } else {
1753
2047
  tmp_0 = type;
1754
2048
  }
@@ -1757,13 +2051,13 @@ function stripResponseGenerics$lambda(type, transformer) {
1757
2051
  tmp = type;
1758
2052
  }
1759
2053
  var transformed = tmp;
1760
- return transformChildren_1(transformed, transformer);
2054
+ return transformChildren_2(transformed, transformer);
1761
2055
  }
1762
2056
  function stripHandlerExtends$lambda(element, transformer) {
1763
2057
  _init_properties_RustIrTransformer_kt__rrvmwq();
1764
2058
  var tmp;
1765
2059
  if (element instanceof Interface) {
1766
- tmp = element.k1n_1.equals(Companion_getInstance().f1h('Handler')) || element.k1n_1.equals(Companion_getInstance().f1h('Call')) ? element.r1n(VOID, VOID, emptyList()) : element;
2060
+ tmp = element.t1r_1.equals(Companion_getInstance().u1k('Handler')) || element.t1r_1.equals(Companion_getInstance().u1k('Call')) ? element.a1s(VOID, VOID, emptyList()) : element;
1767
2061
  } else {
1768
2062
  tmp = element;
1769
2063
  }
@@ -1776,17 +2070,17 @@ function convertSimpleRawExpressionsToVariableRefs$lambda($identifierPattern) {
1776
2070
  var tmp_0;
1777
2071
  var tmp_1;
1778
2072
  if (s instanceof RawExpression) {
1779
- tmp_1 = $identifierPattern.nc(s.i1o_1);
2073
+ tmp_1 = $identifierPattern.oc(s.r1s_1);
1780
2074
  } else {
1781
2075
  tmp_1 = false;
1782
2076
  }
1783
2077
  if (tmp_1) {
1784
- tmp_0 = !contains(s.i1o_1, '.');
2078
+ tmp_0 = !contains(s.r1s_1, '.');
1785
2079
  } else {
1786
2080
  tmp_0 = false;
1787
2081
  }
1788
2082
  if (tmp_0) {
1789
- tmp = new VariableReference(Companion_getInstance().f1h(s.i1o_1));
2083
+ tmp = new VariableReference(Companion_getInstance().u1k(s.r1s_1));
1790
2084
  } else {
1791
2085
  tmp = transformChildren(s, t);
1792
2086
  }
@@ -1797,10 +2091,9 @@ function stripWirespecPrefix$lambda(type, transformer) {
1797
2091
  _init_properties_RustIrTransformer_kt__rrvmwq();
1798
2092
  var tmp;
1799
2093
  if (type instanceof Custom) {
1800
- var pascalName = type.q1h_1.h1h();
1801
2094
  var tmp_0;
1802
- if (startsWith(pascalName, 'Wirespec.')) {
1803
- tmp_0 = type.n1m(Companion_getInstance().f1h(removePrefix(pascalName, 'Wirespec.')));
2095
+ if (startsWith(type.n1m_1, 'Wirespec.')) {
2096
+ tmp_0 = type.r1q(removePrefix(type.n1m_1, 'Wirespec.'));
1804
2097
  } else {
1805
2098
  tmp_0 = type;
1806
2099
  }
@@ -1809,44 +2102,43 @@ function stripWirespecPrefix$lambda(type, transformer) {
1809
2102
  tmp = type;
1810
2103
  }
1811
2104
  var transformed = tmp;
1812
- return transformChildren_1(transformed, transformer);
2105
+ return transformChildren_2(transformed, transformer);
1813
2106
  }
1814
2107
  function fixConstructorCalls$lambda(s, t) {
1815
2108
  _init_properties_RustIrTransformer_kt__rrvmwq();
1816
2109
  if (!(s instanceof ConstructorStatement))
1817
2110
  return transformChildren(s, t);
1818
- var tmp = s.p1m_1;
2111
+ var tmp = s.x1q_1;
1819
2112
  var tmp0_safe_receiver = tmp instanceof Custom ? tmp : null;
1820
- var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.q1h_1;
1821
- var typeName = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.h1h();
2113
+ var typeName = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.n1m_1;
1822
2114
  // Inline function 'kotlin.collections.mapValues' call
1823
- var this_0 = s.q1m_1;
2115
+ var this_0 = s.y1q_1;
1824
2116
  // Inline function 'kotlin.collections.mapValuesTo' call
1825
2117
  var destination = LinkedHashMap_init_$Create$(mapCapacity(this_0.a1()));
1826
2118
  // Inline function 'kotlin.collections.associateByTo' call
1827
- var _iterator__ex2g4s = this_0.j1().t();
2119
+ var _iterator__ex2g4s = this_0.k1().t();
1828
2120
  while (_iterator__ex2g4s.u()) {
1829
2121
  var element = _iterator__ex2g4s.v();
1830
- var tmp_0 = element.k1();
1831
- var tmp$ret$1 = t.s1t(element.l1());
1832
- destination.w2(tmp_0, tmp$ret$1);
2122
+ var tmp_0 = element.l1();
2123
+ var tmp$ret$1 = t.g1y(element.m1());
2124
+ destination.y2(tmp_0, tmp$ret$1);
1833
2125
  }
1834
2126
  var transformedArgs = destination;
1835
- return !(typeName == null) && get_rustResponsePattern().nc(typeName) ? new FunctionCall(VOID, VOID, new Name(listOf('Response::' + typeName)), mapOf_0(to(Companion_getInstance().f1h('inner'), new FunctionCall(VOID, VOID, new Name(listOf(typeName + '::new')), transformedArgs)))) : typeName === 'Request' ? new FunctionCall(VOID, VOID, new Name(listOf('Request::new')), transformedArgs) : transformChildren(s, t);
2127
+ return !(typeName == null) && get_rustResponsePattern().oc(typeName) ? new FunctionCall(VOID, VOID, new Name(listOf('Response::' + typeName)), mapOf_0(to(Companion_getInstance().u1k('inner'), new FunctionCall(VOID, VOID, new Name(listOf(typeName + '::new')), transformedArgs)))) : typeName === 'Request' ? new FunctionCall(VOID, VOID, new Name(listOf('Request::new')), transformedArgs) : transformChildren(s, t);
1836
2128
  }
1837
2129
  function buildValidateFunction$lambda($constraintExpr) {
1838
2130
  return function ($this$function) {
1839
- $this$function.l1i('&self', Custom_init_$Create$(''));
1840
- $this$function.k1i(Boolean_instance);
1841
- $this$function.j1k($constraintExpr);
2131
+ $this$function.e1l('&self', new Custom(''));
2132
+ $this$function.h1l(Boolean_instance);
2133
+ $this$function.i1l($constraintExpr);
1842
2134
  return Unit_instance;
1843
2135
  };
1844
2136
  }
1845
2137
  function buildToStringFunction$lambda($expr) {
1846
2138
  return function ($this$function) {
1847
- $this$function.l1i('&self', Custom_init_$Create$(''));
1848
- $this$function.k1i(String_instance);
1849
- $this$function.j1k(new RawExpression($expr));
2139
+ $this$function.e1l('&self', new Custom(''));
2140
+ $this$function.h1l(String_instance);
2141
+ $this$function.i1l(new RawExpression($expr));
1850
2142
  return Unit_instance;
1851
2143
  };
1852
2144
  }
@@ -1854,10 +2146,10 @@ function generateApiStructCode$lambda(segment) {
1854
2146
  _init_properties_RustIrTransformer_kt__rrvmwq();
1855
2147
  var tmp;
1856
2148
  if (segment instanceof Literal) {
1857
- tmp = segment.hq_1;
2149
+ tmp = segment.fu_1;
1858
2150
  } else {
1859
2151
  if (segment instanceof Param) {
1860
- tmp = '{' + segment.lp_1.l1() + '}';
2152
+ tmp = '{' + segment.jt_1.m1() + '}';
1861
2153
  } else {
1862
2154
  noWhenBranchMatchedException();
1863
2155
  }
@@ -1868,39 +2160,39 @@ var properties_initialized_RustIrTransformer_kt_hr6k9w;
1868
2160
  function _init_properties_RustIrTransformer_kt__rrvmwq() {
1869
2161
  if (!properties_initialized_RustIrTransformer_kt_hr6k9w) {
1870
2162
  properties_initialized_RustIrTransformer_kt_hr6k9w = true;
1871
- rustSelfParam = new Parameter(Companion_getInstance().f1h('&self'), Custom_init_$Create$(''));
2163
+ rustSelfParam = new Parameter(Companion_getInstance().u1k('&self'), new Custom(''));
1872
2164
  rustResponsePattern = Regex_init_$Create$('Response(\\d+|Default)');
1873
2165
  }
1874
2166
  }
1875
2167
  function borrowParamsOf($this, fn) {
1876
2168
  // Inline function 'kotlin.collections.map' call
1877
- var this_0 = fn.v1j_1;
2169
+ var this_0 = fn.l1o_1;
1878
2170
  // Inline function 'kotlin.collections.mapTo' call
1879
2171
  var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
1880
2172
  var _iterator__ex2g4s = this_0.t();
1881
2173
  while (_iterator__ex2g4s.u()) {
1882
2174
  var item = _iterator__ex2g4s.v();
1883
2175
  var tmp;
1884
- if (RustTransform_getInstance().m1y(item.u1o_1)) {
2176
+ if (RustTransform_getInstance().e23(item.d1t_1)) {
1885
2177
  tmp = item;
1886
2178
  } else {
1887
- tmp = item.x1o(VOID, applyBorrowRule(RustTransform_getInstance(), item.v1o_1));
2179
+ tmp = item.g1t(VOID, applyBorrowRule(RustTransform_getInstance(), item.e1t_1));
1888
2180
  }
1889
2181
  var tmp$ret$0 = tmp;
1890
2182
  destination.x(tmp$ret$0);
1891
2183
  }
1892
- return fn.b1k(VOID, VOID, destination);
2184
+ return fn.r1o(VOID, VOID, destination);
1893
2185
  }
1894
2186
  function applyBorrowRule($this, type) {
1895
2187
  var tmp;
1896
2188
  if (type instanceof Nullable) {
1897
- tmp = new Nullable(applyBorrowRule($this, type.o1h_1));
2189
+ tmp = new Nullable(applyBorrowRule($this, type.l1m_1));
1898
2190
  } else {
1899
2191
  if (equals(type, String_instance)) {
1900
- tmp = Custom_init_$Create$('&str');
2192
+ tmp = new Custom('&str');
1901
2193
  } else {
1902
2194
  if (type instanceof Custom) {
1903
- tmp = $this.o1y(type) ? type : $this.n1y(type) ? borrowImpl(type) : type;
2195
+ tmp = $this.h23(type) ? type : $this.g23(type) ? borrowImpl(type) : $this.f23(type) ? ownedImpl(type) : type;
1904
2196
  } else {
1905
2197
  tmp = type;
1906
2198
  }
@@ -1912,15 +2204,15 @@ function toBorrowedRaw($this, _this__u8e3s4) {
1912
2204
  return new RawExpression('&' + toRawCode($this, _this__u8e3s4));
1913
2205
  }
1914
2206
  function sanitizeKeywords_0($this, _this__u8e3s4) {
1915
- return Companion_getInstance_0().c1y_1.u1(_this__u8e3s4) ? 'r#' + _this__u8e3s4 : _this__u8e3s4;
2207
+ return Companion_getInstance_0().u22_1.v1(_this__u8e3s4) ? 'r#' + _this__u8e3s4 : _this__u8e3s4;
1916
2208
  }
1917
2209
  function toRawCode($this, _this__u8e3s4) {
1918
2210
  var tmp;
1919
2211
  if (_this__u8e3s4 instanceof VariableReference) {
1920
- tmp = sanitizeKeywords_0($this, _this__u8e3s4.g1o_1.y1l());
2212
+ tmp = sanitizeKeywords_0($this, _this__u8e3s4.p1s_1.c1q());
1921
2213
  } else {
1922
2214
  if (_this__u8e3s4 instanceof FieldCall) {
1923
- var tmp1_safe_receiver = _this__u8e3s4.j1p_1;
2215
+ var tmp1_safe_receiver = _this__u8e3s4.x1t_1;
1924
2216
  var tmp_0;
1925
2217
  if (tmp1_safe_receiver == null) {
1926
2218
  tmp_0 = null;
@@ -1930,20 +2222,20 @@ function toRawCode($this, _this__u8e3s4) {
1930
2222
  }
1931
2223
  var tmp2_elvis_lhs = tmp_0;
1932
2224
  var recv = tmp2_elvis_lhs == null ? '' : tmp2_elvis_lhs;
1933
- tmp = recv + sanitizeKeywords_0($this, _this__u8e3s4.k1p_1.y1l());
2225
+ tmp = recv + sanitizeKeywords_0($this, _this__u8e3s4.y1t_1.c1q());
1934
2226
  } else {
1935
2227
  if (_this__u8e3s4 instanceof ArrayIndexCall) {
1936
- var tmp_1 = _this__u8e3s4.h1q_1;
2228
+ var tmp_1 = _this__u8e3s4.q1u_1;
1937
2229
  var lit = tmp_1 instanceof Literal_0 ? tmp_1 : null;
1938
2230
  var tmp_2;
1939
2231
  var tmp_3;
1940
2232
  if (!(lit == null)) {
1941
2233
  var tmp_4;
1942
- var tmp_5 = lit.r1o_1;
2234
+ var tmp_5 = lit.a1t_1;
1943
2235
  if (tmp_5 instanceof Integer) {
1944
2236
  tmp_4 = true;
1945
2237
  } else {
1946
- var tmp_6 = lit.r1o_1;
2238
+ var tmp_6 = lit.a1t_1;
1947
2239
  tmp_4 = tmp_6 instanceof Number_0;
1948
2240
  }
1949
2241
  tmp_3 = tmp_4;
@@ -1951,31 +2243,30 @@ function toRawCode($this, _this__u8e3s4) {
1951
2243
  tmp_3 = false;
1952
2244
  }
1953
2245
  if (tmp_3) {
1954
- tmp_2 = toString_0(lit.q1o_1);
2246
+ tmp_2 = toString_0(lit.z1s_1);
1955
2247
  } else {
1956
2248
  var tmp_7;
1957
2249
  if (!(lit == null)) {
1958
- var tmp_8 = lit.r1o_1;
2250
+ var tmp_8 = lit.a1t_1;
1959
2251
  tmp_7 = tmp_8 instanceof String_1;
1960
2252
  } else {
1961
2253
  tmp_7 = false;
1962
2254
  }
1963
2255
  if (tmp_7) {
1964
- tmp_2 = '"' + toString_0(lit.q1o_1) + '"';
2256
+ tmp_2 = '"' + toString_0(lit.z1s_1) + '"';
1965
2257
  } else {
1966
- tmp_2 = toRawCode($this, _this__u8e3s4.h1q_1);
2258
+ tmp_2 = toRawCode($this, _this__u8e3s4.q1u_1);
1967
2259
  }
1968
2260
  }
1969
2261
  var idx = tmp_2;
1970
- tmp = toRawCode($this, _this__u8e3s4.g1q_1) + '[' + idx + ']';
2262
+ tmp = toRawCode($this, _this__u8e3s4.p1u_1) + '[' + idx + ']';
1971
2263
  } else {
1972
2264
  if (_this__u8e3s4 instanceof ConstructorStatement) {
1973
- var tmp_9 = _this__u8e3s4.p1m_1;
2265
+ var tmp_9 = _this__u8e3s4.x1q_1;
1974
2266
  var tmp3_safe_receiver = tmp_9 instanceof Custom ? tmp_9 : null;
1975
- var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.q1h_1;
1976
- var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.h1h();
1977
- var typeName = tmp5_elvis_lhs == null ? toString_0(_this__u8e3s4.p1m_1) : tmp5_elvis_lhs;
1978
- var tmp_10 = _this__u8e3s4.q1m_1.j1();
2267
+ var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.n1m_1;
2268
+ var typeName = tmp4_elvis_lhs == null ? toString_0(_this__u8e3s4.x1q_1) : tmp4_elvis_lhs;
2269
+ var tmp_10 = _this__u8e3s4.y1q_1.k1();
1979
2270
  var args = joinToString(tmp_10, ', ', VOID, VOID, VOID, VOID, RustTransform$toRawCode$lambda);
1980
2271
  var tmp_11;
1981
2272
  // Inline function 'kotlin.text.isEmpty' call
@@ -1988,23 +2279,23 @@ function toRawCode($this, _this__u8e3s4) {
1988
2279
  } else {
1989
2280
  if (_this__u8e3s4 instanceof Literal_0) {
1990
2281
  var tmp_12;
1991
- var tmp_13 = _this__u8e3s4.r1o_1;
2282
+ var tmp_13 = _this__u8e3s4.a1t_1;
1992
2283
  if (tmp_13 instanceof String_1) {
1993
- tmp_12 = 'String::from("' + toString_0(_this__u8e3s4.q1o_1) + '")';
2284
+ tmp_12 = 'String::from("' + toString_0(_this__u8e3s4.z1s_1) + '")';
1994
2285
  } else {
1995
- var tmp_14 = _this__u8e3s4.r1o_1;
2286
+ var tmp_14 = _this__u8e3s4.a1t_1;
1996
2287
  if (tmp_14 instanceof Boolean_0) {
1997
- tmp_12 = toString_0(_this__u8e3s4.q1o_1);
2288
+ tmp_12 = toString_0(_this__u8e3s4.z1s_1);
1998
2289
  } else {
1999
- var tmp_15 = _this__u8e3s4.r1o_1;
2290
+ var tmp_15 = _this__u8e3s4.a1t_1;
2000
2291
  if (tmp_15 instanceof Integer) {
2001
- tmp_12 = toString_0(_this__u8e3s4.q1o_1);
2292
+ tmp_12 = toString_0(_this__u8e3s4.z1s_1);
2002
2293
  } else {
2003
- var tmp_16 = _this__u8e3s4.r1o_1;
2294
+ var tmp_16 = _this__u8e3s4.a1t_1;
2004
2295
  if (tmp_16 instanceof Number_0) {
2005
- tmp_12 = toString_0(_this__u8e3s4.q1o_1);
2296
+ tmp_12 = toString_0(_this__u8e3s4.z1s_1);
2006
2297
  } else {
2007
- tmp_12 = toString_0(_this__u8e3s4.q1o_1);
2298
+ tmp_12 = toString_0(_this__u8e3s4.z1s_1);
2008
2299
  }
2009
2300
  }
2010
2301
  }
@@ -2012,7 +2303,7 @@ function toRawCode($this, _this__u8e3s4) {
2012
2303
  tmp = tmp_12;
2013
2304
  } else {
2014
2305
  if (_this__u8e3s4 instanceof RawExpression) {
2015
- tmp = _this__u8e3s4.i1o_1;
2306
+ tmp = _this__u8e3s4.r1s_1;
2016
2307
  } else {
2017
2308
  var message = 'Unsupported expression type in toRawCode: ' + getKClassFromExpression(_this__u8e3s4).o();
2018
2309
  throw IllegalStateException_init_$Create$(toString_0(message));
@@ -2027,24 +2318,24 @@ function toRawCode($this, _this__u8e3s4) {
2027
2318
  function RustTransform$primitivesToCustom$lambda(t, tr) {
2028
2319
  var tmp;
2029
2320
  if (equals(t, Any_instance)) {
2030
- tmp = Custom_init_$Create$('Box<dyn std::any::Any>');
2321
+ tmp = new Custom('Box<dyn std::any::Any>');
2031
2322
  } else {
2032
2323
  if (equals(t, Bytes_instance)) {
2033
- tmp = Custom_init_$Create$('Vec<u8>');
2324
+ tmp = new Custom('Vec<u8>');
2034
2325
  } else {
2035
2326
  if (equals(t, Reflect_instance)) {
2036
- tmp = Custom_init_$Create$('std::any::TypeId');
2327
+ tmp = new Custom('std::any::TypeId');
2037
2328
  } else {
2038
2329
  if (equals(t, Wildcard_instance)) {
2039
- tmp = Custom_init_$Create$('_');
2330
+ tmp = new Custom('_');
2040
2331
  } else {
2041
2332
  if (t instanceof IntegerLiteral) {
2042
- tmp = Custom_init_$Create$('i32');
2333
+ tmp = new Custom('i32');
2043
2334
  } else {
2044
2335
  if (t instanceof StringLiteral) {
2045
- tmp = Custom_init_$Create$('String');
2336
+ tmp = new Custom('String');
2046
2337
  } else {
2047
- tmp = transformChildren_1(t, tr);
2338
+ tmp = transformChildren_2(t, tr);
2048
2339
  }
2049
2340
  }
2050
2341
  }
@@ -2057,18 +2348,18 @@ function RustTransform$borrow$lambda(element, tr) {
2057
2348
  var tmp;
2058
2349
  if (element instanceof Interface) {
2059
2350
  var tmp_0;
2060
- if (element.k1n_1.equals(Companion_getInstance().f1h('Call'))) {
2351
+ if (element.t1r_1.equals(Companion_getInstance().u1k('Call'))) {
2061
2352
  tmp_0 = element;
2062
2353
  } else {
2063
2354
  // Inline function 'kotlin.collections.map' call
2064
- var this_0 = element.l1n_1;
2355
+ var this_0 = element.u1r_1;
2065
2356
  // Inline function 'kotlin.collections.mapTo' call
2066
2357
  var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
2067
2358
  var _iterator__ex2g4s = this_0.t();
2068
2359
  while (_iterator__ex2g4s.u()) {
2069
2360
  var item = _iterator__ex2g4s.v();
2070
2361
  var tmp_1;
2071
- if (item instanceof Function) {
2362
+ if (item instanceof Function_0) {
2072
2363
  tmp_1 = borrowParamsOf(RustTransform_getInstance(), item);
2073
2364
  } else {
2074
2365
  tmp_1 = item;
@@ -2077,11 +2368,11 @@ function RustTransform$borrow$lambda(element, tr) {
2077
2368
  destination.x(tmp$ret$0);
2078
2369
  }
2079
2370
  var borrowed = destination;
2080
- tmp_0 = transformChildren_0(element.r1n(VOID, borrowed), tr);
2371
+ tmp_0 = transformChildren_0(element.a1s(VOID, borrowed), tr);
2081
2372
  }
2082
2373
  tmp = tmp_0;
2083
2374
  } else {
2084
- if (element instanceof Function) {
2375
+ if (element instanceof Function_0) {
2085
2376
  tmp = transformChildren_0(borrowParamsOf(RustTransform_getInstance(), element), tr);
2086
2377
  } else {
2087
2378
  tmp = transformChildren_0(element, tr);
@@ -2093,13 +2384,13 @@ function RustTransform$serializationArgs$lambda(s, t) {
2093
2384
  var tmp;
2094
2385
  var tmp_0;
2095
2386
  if (s instanceof FunctionCall) {
2096
- tmp_0 = RustTransform_getInstance().h1y_1.u1(s.b1m_1.y1l());
2387
+ tmp_0 = RustTransform_getInstance().z22_1.v1(s.f1q_1.c1q());
2097
2388
  } else {
2098
2389
  tmp_0 = false;
2099
2390
  }
2100
2391
  if (tmp_0) {
2101
2392
  // Inline function 'kotlin.collections.mapIndexed' call
2102
- var this_0 = s.c1m_1.j1();
2393
+ var this_0 = s.g1q_1.k1();
2103
2394
  // Inline function 'kotlin.collections.mapIndexedTo' call
2104
2395
  var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
2105
2396
  var index = 0;
@@ -2110,16 +2401,16 @@ function RustTransform$serializationArgs$lambda(s, t) {
2110
2401
  index = _unary__edvuaz + 1 | 0;
2111
2402
  var idx = checkIndexOverflow(_unary__edvuaz);
2112
2403
  // Inline function 'kotlin.collections.component1' call
2113
- var key = item.k1();
2404
+ var key = item.l1();
2114
2405
  // Inline function 'kotlin.collections.component2' call
2115
- var value = item.l1();
2116
- var transformed = t.s1t(value);
2406
+ var value = item.m1();
2407
+ var transformed = t.g1y(value);
2117
2408
  var tmp_1;
2118
2409
  var tmp_2;
2119
2410
  if (idx === 0) {
2120
2411
  var tmp_3;
2121
2412
  if (transformed instanceof VariableReference) {
2122
- tmp_3 = transformed.g1o_1.s1h() === 'it';
2413
+ tmp_3 = transformed.p1s_1.p1m() === 'it';
2123
2414
  } else {
2124
2415
  tmp_3 = false;
2125
2416
  }
@@ -2136,17 +2427,20 @@ function RustTransform$serializationArgs$lambda(s, t) {
2136
2427
  destination.x(tmp$ret$2);
2137
2428
  }
2138
2429
  var newArgs = toMap(destination);
2139
- tmp = s.f1m(VOID, VOID, VOID, newArgs);
2430
+ tmp = s.j1q(VOID, VOID, VOID, newArgs);
2140
2431
  } else {
2141
2432
  tmp = transformChildren(s, t);
2142
2433
  }
2143
2434
  return tmp;
2144
2435
  }
2145
2436
  function RustTransform$rustName$lambda(it) {
2146
- return RustTransform_getInstance().k1y(it);
2437
+ return RustTransform_getInstance().c23(it);
2438
+ }
2439
+ function RustTransform$rustName$lambda_0(it) {
2440
+ return RustTransform_getInstance().c23(it);
2147
2441
  }
2148
2442
  function RustTransform$toRawCode$lambda(it) {
2149
- return it.k1().y1l() + ': ' + toRawCode(RustTransform_getInstance(), it.l1());
2443
+ return it.l1().c1q() + ': ' + toRawCode(RustTransform_getInstance(), it.m1());
2150
2444
  }
2151
2445
  function RustTransform() {
2152
2446
  RustTransform_instance = this;
@@ -2154,58 +2448,57 @@ function RustTransform() {
2154
2448
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
2155
2449
  // Inline function 'kotlin.apply' call
2156
2450
  var this_0 = new TransformerBuilder();
2157
- this_0.d1u(RustTransform$primitivesToCustom$lambda);
2158
- tmp.e1y_1 = this_0.d1h();
2451
+ this_0.r1y(RustTransform$primitivesToCustom$lambda);
2452
+ tmp.w22_1 = this_0.e1m();
2159
2453
  var tmp_0 = this;
2160
2454
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
2161
2455
  // Inline function 'kotlin.apply' call
2162
2456
  var this_1 = new TransformerBuilder();
2163
- this_1.c1h(RustTransform$borrow$lambda);
2164
- tmp_0.f1y_1 = this_1.d1h();
2457
+ this_1.d1m(RustTransform$borrow$lambda);
2458
+ tmp_0.x22_1 = this_1.e1m();
2165
2459
  var tmp_1 = this;
2166
2460
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
2167
2461
  // Inline function 'kotlin.apply' call
2168
- tmp_1.g1y_1 = (new TransformerBuilder()).d1h();
2169
- this.h1y_1 = setOf(['serialize_path', 'serialize_param', 'serialize_body', 'deserialize_path', 'deserialize_param', 'deserialize_body']);
2462
+ tmp_1.y22_1 = (new TransformerBuilder()).e1m();
2463
+ this.z22_1 = setOf(['serialize_path', 'serialize_param', 'serialize_body', 'deserialize_path', 'deserialize_param', 'deserialize_body']);
2170
2464
  var tmp_2 = this;
2171
2465
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
2172
2466
  // Inline function 'kotlin.apply' call
2173
2467
  var this_2 = new TransformerBuilder();
2174
- this_2.g1u(RustTransform$serializationArgs$lambda);
2175
- tmp_2.i1y_1 = this_2.d1h();
2176
- this.j1y_1 = setOf(['i32', 'i64', 'f32', 'f64', 'bool', 'u8', 'u16', 'u32', 'u64', 'usize', 'isize', '()']);
2468
+ this_2.u1y(RustTransform$serializationArgs$lambda);
2469
+ tmp_2.a23_1 = this_2.e1m();
2470
+ this.b23_1 = setOf(['i32', 'i64', 'f32', 'f64', 'bool', 'u8', 'u16', 'u32', 'u64', 'usize', 'isize', '()']);
2177
2471
  }
2178
- protoOf(RustTransform).l1y = function (element) {
2472
+ protoOf(RustTransform).d23 = function (element) {
2179
2473
  // Inline function 'community.flock.wirespec.ir.core.transform' call
2180
2474
  var scope = new TransformScope(element);
2181
- scope.c1u(RustTransform_getInstance().e1y_1);
2182
- var tmp = scope.x1t_1;
2475
+ scope.q1y(RustTransform_getInstance().w22_1);
2476
+ var tmp = scope.l1y_1;
2183
2477
  // Inline function 'community.flock.wirespec.ir.core.transform' call
2184
2478
  var this_0 = isInterface(tmp, Element) ? tmp : THROW_CCE();
2185
2479
  var scope_0 = new TransformScope(this_0);
2186
- scope_0.c1u(RustTransform_getInstance().f1y_1);
2187
- var tmp_0 = scope_0.x1t_1;
2480
+ scope_0.q1y(RustTransform_getInstance().x22_1);
2481
+ var tmp_0 = scope_0.l1y_1;
2188
2482
  // Inline function 'community.flock.wirespec.ir.core.transform' call
2189
2483
  var this_1 = isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
2190
2484
  var scope_1 = new TransformScope(this_1);
2191
- scope_1.c1u(RustTransform_getInstance().g1y_1);
2192
- var tmp_1 = scope_1.x1t_1;
2485
+ scope_1.q1y(RustTransform_getInstance().y22_1);
2486
+ var tmp_1 = scope_1.l1y_1;
2193
2487
  // Inline function 'community.flock.wirespec.ir.core.transform' call
2194
2488
  var this_2 = isInterface(tmp_1, Element) ? tmp_1 : THROW_CCE();
2195
2489
  var scope_2 = new TransformScope(this_2);
2196
- scope_2.c1u(RustTransform_getInstance().i1y_1);
2197
- var tmp_2 = scope_2.x1t_1;
2490
+ scope_2.q1y(RustTransform_getInstance().a23_1);
2491
+ var tmp_2 = scope_2.l1y_1;
2198
2492
  return isInterface(tmp_2, Element) ? tmp_2 : THROW_CCE();
2199
2493
  };
2200
- protoOf(RustTransform).k1y = function (_this__u8e3s4) {
2494
+ protoOf(RustTransform).c23 = function (_this__u8e3s4) {
2201
2495
  var tmp;
2202
2496
  if (_this__u8e3s4 instanceof Custom) {
2203
- var pascalName = _this__u8e3s4.q1h_1.h1h();
2204
2497
  var tmp_0;
2205
- if (_this__u8e3s4.r1h_1.r()) {
2206
- tmp_0 = pascalName;
2498
+ if (_this__u8e3s4.o1m_1.r()) {
2499
+ tmp_0 = _this__u8e3s4.n1m_1;
2207
2500
  } else {
2208
- tmp_0 = pascalName + '<' + joinToString(_this__u8e3s4.r1h_1, ', ', VOID, VOID, VOID, VOID, RustTransform$rustName$lambda) + '>';
2501
+ tmp_0 = _this__u8e3s4.n1m_1 + '<' + joinToString(_this__u8e3s4.o1m_1, ', ', VOID, VOID, VOID, VOID, RustTransform$rustName$lambda) + '>';
2209
2502
  }
2210
2503
  tmp = tmp_0;
2211
2504
  } else {
@@ -2213,13 +2506,13 @@ protoOf(RustTransform).k1y = function (_this__u8e3s4) {
2213
2506
  tmp = 'String';
2214
2507
  } else {
2215
2508
  if (_this__u8e3s4 instanceof Nullable) {
2216
- tmp = 'Option<' + this.k1y(_this__u8e3s4.o1h_1) + '>';
2509
+ tmp = 'Option<' + this.c23(_this__u8e3s4.l1m_1) + '>';
2217
2510
  } else {
2218
2511
  if (_this__u8e3s4 instanceof Array_0) {
2219
- tmp = 'Vec<' + this.k1y(_this__u8e3s4.p1h_1) + '>';
2512
+ tmp = 'Vec<' + this.c23(_this__u8e3s4.m1m_1) + '>';
2220
2513
  } else {
2221
2514
  if (_this__u8e3s4 instanceof Dict) {
2222
- tmp = 'std::collections::HashMap<' + this.k1y(_this__u8e3s4.j1m_1) + ', ' + this.k1y(_this__u8e3s4.k1m_1) + '>';
2515
+ tmp = 'std::collections::HashMap<' + this.c23(_this__u8e3s4.n1q_1) + ', ' + this.c23(_this__u8e3s4.o1q_1) + '>';
2223
2516
  } else {
2224
2517
  if (equals(_this__u8e3s4, Any_instance)) {
2225
2518
  tmp = 'Box<dyn std::any::Any>';
@@ -2241,7 +2534,7 @@ protoOf(RustTransform).k1y = function (_this__u8e3s4) {
2241
2534
  } else {
2242
2535
  if (_this__u8e3s4 instanceof Integer) {
2243
2536
  var tmp_1;
2244
- switch (_this__u8e3s4.g1m_1.b3_1) {
2537
+ switch (_this__u8e3s4.k1q_1.c3_1) {
2245
2538
  case 0:
2246
2539
  tmp_1 = 'i32';
2247
2540
  break;
@@ -2256,7 +2549,7 @@ protoOf(RustTransform).k1y = function (_this__u8e3s4) {
2256
2549
  } else {
2257
2550
  if (_this__u8e3s4 instanceof Number_0) {
2258
2551
  var tmp_2;
2259
- switch (_this__u8e3s4.h1m_1.b3_1) {
2552
+ switch (_this__u8e3s4.l1q_1.c3_1) {
2260
2553
  case 0:
2261
2554
  tmp_2 = 'f32';
2262
2555
  break;
@@ -2275,7 +2568,11 @@ protoOf(RustTransform).k1y = function (_this__u8e3s4) {
2275
2568
  if (_this__u8e3s4 instanceof StringLiteral) {
2276
2569
  tmp = 'String';
2277
2570
  } else {
2278
- noWhenBranchMatchedException();
2571
+ if (_this__u8e3s4 instanceof Function) {
2572
+ tmp = 'Box<dyn Fn(' + joinToString(_this__u8e3s4.u1q_1, ', ', VOID, VOID, VOID, VOID, RustTransform$rustName$lambda_0) + ') -> ' + this.c23(_this__u8e3s4.v1q_1) + '>';
2573
+ } else {
2574
+ noWhenBranchMatchedException();
2575
+ }
2279
2576
  }
2280
2577
  }
2281
2578
  }
@@ -2293,24 +2590,23 @@ protoOf(RustTransform).k1y = function (_this__u8e3s4) {
2293
2590
  }
2294
2591
  return tmp;
2295
2592
  };
2296
- protoOf(RustTransform).o1y = function (_this__u8e3s4) {
2593
+ protoOf(RustTransform).h23 = function (_this__u8e3s4) {
2297
2594
  var tmp;
2298
2595
  if (_this__u8e3s4 instanceof Custom) {
2299
- // Inline function 'kotlin.let' call
2300
- var it = _this__u8e3s4.q1h_1.h1h();
2301
- tmp = startsWith(it, '&') || startsWith(it, '&dyn ') || startsWith(it, '&impl ') || startsWith(it, '&mut ');
2596
+ tmp = startsWith(_this__u8e3s4.n1m_1, '&') || startsWith(_this__u8e3s4.n1m_1, '&dyn ') || startsWith(_this__u8e3s4.n1m_1, '&impl ') || startsWith(_this__u8e3s4.n1m_1, '&mut ');
2302
2597
  } else {
2303
2598
  tmp = false;
2304
2599
  }
2305
2600
  return tmp;
2306
2601
  };
2307
- protoOf(RustTransform).n1y = function (_this__u8e3s4) {
2308
- // Inline function 'kotlin.let' call
2309
- var it = _this__u8e3s4.q1h_1.h1h();
2310
- return it === 'Serializer' || it === 'Deserializer';
2602
+ protoOf(RustTransform).g23 = function (_this__u8e3s4) {
2603
+ return _this__u8e3s4.n1m_1 === 'Serializer' || _this__u8e3s4.n1m_1 === 'Deserializer';
2311
2604
  };
2312
- protoOf(RustTransform).m1y = function (_this__u8e3s4) {
2313
- var v = _this__u8e3s4.s1h();
2605
+ protoOf(RustTransform).f23 = function (_this__u8e3s4) {
2606
+ return _this__u8e3s4.n1m_1 === 'GeneratorField';
2607
+ };
2608
+ protoOf(RustTransform).e23 = function (_this__u8e3s4) {
2609
+ var v = _this__u8e3s4.p1m();
2314
2610
  switch (v) {
2315
2611
  case 'self':
2316
2612
  case '&self':
@@ -2326,16 +2622,20 @@ function RustTransform_getInstance() {
2326
2622
  return RustTransform_instance;
2327
2623
  }
2328
2624
  function borrow(_this__u8e3s4) {
2329
- return _this__u8e3s4.n1m(new Name(listOf('&' + _this__u8e3s4.q1h_1.h1h())));
2625
+ return _this__u8e3s4.r1q('&' + _this__u8e3s4.n1m_1);
2330
2626
  }
2331
2627
  function borrowDyn(_this__u8e3s4) {
2332
- return _this__u8e3s4.n1m(new Name(listOf('&dyn ' + _this__u8e3s4.q1h_1.h1h())));
2628
+ return _this__u8e3s4.r1q('&dyn ' + _this__u8e3s4.n1m_1);
2333
2629
  }
2334
2630
  function borrowImpl(_this__u8e3s4) {
2335
- return _this__u8e3s4.n1m(new Name(listOf('&impl ' + _this__u8e3s4.q1h_1.h1h())));
2631
+ return _this__u8e3s4.r1q('&impl ' + _this__u8e3s4.n1m_1);
2632
+ }
2633
+ function ownedImpl(_this__u8e3s4) {
2634
+ return _this__u8e3s4.r1q('impl ' + _this__u8e3s4.n1m_1);
2336
2635
  }
2337
2636
  //region block: post-declaration
2338
- protoOf(RustIrEmitter).on = emit_1;
2637
+ protoOf(RustIrEmitter).mr = emit_1;
2638
+ protoOf(RustIrEmitter).d1z = beforeGenerate;
2339
2639
  //endregion
2340
2640
  //region block: exports
2341
2641
  export {