@flock/wirespec 0.18.0-RC.1 → 0.18.1-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 (43) hide show
  1. package/arrow-arrow-atomic.mjs +12 -12
  2. package/arrow-arrow-core.mjs +152 -158
  3. package/arrow-arrow-core.mjs.map +1 -1
  4. package/clikt-clikt-mordant.mjs +80 -80
  5. package/clikt-clikt.mjs +1442 -1442
  6. package/clikt-clikt.mjs.map +1 -1
  7. package/colormath-root-colormath.mjs +439 -439
  8. package/kotlin-kotlin-stdlib.mjs +1072 -1136
  9. package/kotlin-kotlin-stdlib.mjs.map +1 -1
  10. package/kotlin-openapi-bindings.mjs +4857 -4857
  11. package/kotlin-rgxgen.mjs +1793 -1793
  12. package/kotlinx-io-kotlinx-io-core.mjs +415 -415
  13. package/kotlinx-serialization-kotlinx-serialization-core.mjs +1752 -1752
  14. package/kotlinx-serialization-kotlinx-serialization-json.mjs +1348 -1356
  15. package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
  16. package/mordant-mordant.mjs +1303 -1311
  17. package/mordant-mordant.mjs.map +1 -1
  18. package/package.json +1 -1
  19. package/wirespec-fetch.mjs +13 -19
  20. package/wirespec-src-compiler-core.mjs +1526 -1526
  21. package/wirespec-src-compiler-emitters-java.mjs +477 -451
  22. package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
  23. package/wirespec-src-compiler-emitters-kotlin.mjs +458 -453
  24. package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
  25. package/wirespec-src-compiler-emitters-python.mjs +419 -418
  26. package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
  27. package/wirespec-src-compiler-emitters-rust.mjs +939 -725
  28. package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
  29. package/wirespec-src-compiler-emitters-scala.mjs +225 -233
  30. package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
  31. package/wirespec-src-compiler-emitters-typescript.mjs +524 -555
  32. package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
  33. package/wirespec-src-compiler-emitters-wirespec.mjs +81 -81
  34. package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
  35. package/wirespec-src-compiler-ir.mjs +3738 -3708
  36. package/wirespec-src-compiler-ir.mjs.map +1 -1
  37. package/wirespec-src-compiler-lib.mjs +418 -418
  38. package/wirespec-src-converter-avro.mjs +506 -506
  39. package/wirespec-src-converter-openapi.mjs +684 -684
  40. package/wirespec-src-plugin-arguments.mjs +181 -181
  41. package/wirespec-src-plugin-cli.mjs +106 -106
  42. package/wirespec-src-plugin-npm.mjs +36 -36
  43. package/wirespec-src-tools-generator.mjs +34 -34
@@ -13,49 +13,35 @@ import {
13
13
  Elementitq62jg6fid3 as Element,
14
14
  Function21cuq8qizkin7 as Function,
15
15
  generateRust223y8gad7tpbz as generateRust,
16
+ import5uhkz67bd8tt as import_0,
16
17
  VariableReference2vlynnhaw1i64 as VariableReference,
17
18
  FieldCall1iz7z2fx2xo4p as FieldCall,
18
19
  convertConstraintkgpvomct0x0s as convertConstraint,
19
20
  function12vu2kapzno4w as function_0,
20
- StringLiteral3ffeojfhsbsmg as StringLiteral,
21
- IntegerLiteral32u4pkji3telv as IntegerLiteral,
22
- Reflect1fdga3b4f6x25 as Reflect,
23
- Wildcardkxz0m1ic638z as Wildcard,
24
- Nullable3wjn6l6q3h6o as Nullable,
25
- Dict22iqrhoo0g8et as Dict,
26
- Array2goj74t0aak7b as Array_0,
27
- Anye8h1f7obstf1 as Any,
28
- Unit1zbfveeocmg10 as Unit,
29
- Bytesb0si2rhp1qlv as Bytes,
30
- Number3azxs9q1cyulb as Number_0,
31
- Integer1uwg1wvo5lp6z as Integer,
32
- Boolean3l1woojgw3q17 as Boolean_0,
33
- String4gxjl3f3e5ya as String_0,
34
21
  requestParameters1z8fdizgtviyb as requestParameters,
35
22
  flattenNestedStructs3rzqu1ggdb6h2 as flattenNestedStructs,
36
23
  Union38f3pecvfcpxh as Union,
37
24
  Struct39wf79cwtn4ty as Struct,
38
- RawExpression2bo7ldfrptjia as RawExpression,
39
- Literal50s1y3607cdv as Literal,
40
- ConstructorStatement1x4n4sr59iy4n as ConstructorStatement,
41
- ArrayIndexCall31gemxjfuldqy as ArrayIndexCall,
42
25
  Nameoqr8dt2fim9d as Name,
43
26
  transformChildren2mszeagj5nq4c as transformChildren_0,
44
- sanitizeFieldName2ukb9v6ywyhle as sanitizeFieldName,
45
- SanitizationConfig1cdlo8dm6nafn as SanitizationConfig,
27
+ sanitizeFieldName1ptgy1kxy8u2m as sanitizeFieldName,
28
+ ConstructorStatement1x4n4sr59iy4n as ConstructorStatement,
29
+ SanitizationConfig11mmn3p2c03c1 as SanitizationConfig,
46
30
  interface24qlavvm81r6z as interface_0,
47
31
  convert13xvfhgrf57n5 as convert,
32
+ Importdjdfxu3pjkxa as Import,
33
+ RawExpression2bo7ldfrptjia as RawExpression,
48
34
  transformChildren2m3cpkz6zusq1 as transformChildren_1,
49
35
  Boolean_instance27opaqtiiiysz as Boolean_instance,
50
36
  String_instance3uxvo48ki208u as String_instance,
51
- FunctionCall30872kpnbr7op as FunctionCall,
52
37
  Switch3a1zi3na98deu as Switch,
53
38
  Case2i7oahw4alz6h as Case,
39
+ FunctionCall30872kpnbr7op as FunctionCall,
54
40
  RustGenerator_instance1aobjdt0upvy as RustGenerator_instance,
55
41
  emit3bzdcd0f6nwtj as emit,
56
42
  emitn3eihixilqyh as emit_0,
57
43
  convertWithValidation3ar3nbcqsbkpn as convertWithValidation,
58
- sanitizeNames3w41y78hqenku as sanitizeNames,
44
+ sanitizeNames2wqmyf8vafp9x as sanitizeNames,
59
45
  convert11ert2po54h1y as convert_0,
60
46
  convert37aabdzvtv9vg as convert_1,
61
47
  convert17zcptkz4mhr4 as convert_2,
@@ -64,9 +50,25 @@ import {
64
50
  emit1oxjujel6f3jb as emit_1,
65
51
  IrEmitterh2m93ojzvkep as IrEmitter,
66
52
  Parameteruqoxd4rzw7ga as Parameter,
53
+ Nullable3wjn6l6q3h6o as Nullable,
54
+ Number3azxs9q1cyulb as Number_0,
55
+ Integer1uwg1wvo5lp6z as Integer,
56
+ Boolean3l1woojgw3q17 as Boolean_0,
57
+ String4gxjl3f3e5ya as String_0,
58
+ Literal50s1y3607cdv as Literal,
59
+ ArrayIndexCall31gemxjfuldqy as ArrayIndexCall,
60
+ StringLiteral3ffeojfhsbsmg as StringLiteral,
61
+ IntegerLiteral32u4pkji3telv as IntegerLiteral,
62
+ Wildcard_instance2ga1ytfwj78ra as Wildcard_instance,
63
+ Reflect_instance3i17lxiopj78t as Reflect_instance,
64
+ Bytes_instance3edm2lhbrwd51 as Bytes_instance,
65
+ Any_instance2998xag3cdzh3 as Any_instance,
66
+ Unit_instanceyaei45a6t5rv as Unit_instance,
67
+ Dict22iqrhoo0g8et as Dict,
68
+ Array2goj74t0aak7b as Array_0,
67
69
  } from './wirespec-src-compiler-ir.mjs';
68
70
  import {
69
- Unit_instance28fytmsmm6r23 as Unit_instance,
71
+ Unit_instance28fytmsmm6r23 as Unit_instance_0,
70
72
  VOID3gxj6tk5isa35 as VOID,
71
73
  ArrayList_init_$Create$1jemgvhi5v0js as ArrayList_init_$Create$,
72
74
  first58ocm7j58k3q as first,
@@ -79,6 +81,7 @@ import {
79
81
  addAll1k27qatfgp3k5 as addAll,
80
82
  plus20p0vtfmu0596 as plus_0,
81
83
  Collection1k04j3hzsbod0 as Collection,
84
+ joinToString1cxrrlmo0chqs as joinToString,
82
85
  _Char___init__impl__6a9atx1csff5kwtduxl as _Char___init__impl__6a9atx,
83
86
  charArrayOf27f4r3dozbrk1 as charArrayOf,
84
87
  trimEndvvzjdhan75g as trimEnd,
@@ -88,7 +91,6 @@ import {
88
91
  collectionSizeOrDefault36dulx8yinfqm as collectionSizeOrDefault,
89
92
  ArrayList_init_$Create$3ivpeip4ouddx as ArrayList_init_$Create$_0,
90
93
  checkIndexOverflow3frtmheghr0th as checkIndexOverflow,
91
- joinToString1cxrrlmo0chqs as joinToString,
92
94
  StringBuilder_init_$Create$322n630qt3r8c as StringBuilder_init_$Create$,
93
95
  charSequenceLength3278n89t01tmv as charSequenceLength,
94
96
  charSequenceGet1vxk1y5n17t1z as charSequenceGet,
@@ -101,9 +103,6 @@ import {
101
103
  to2cs3ny02qtbcb as to,
102
104
  firstOrNull1982767dljvdy as firstOrNull_0,
103
105
  emptyList1g2z5xcrvp2zy as emptyList,
104
- getKClassFromExpression348iqjl4fnx2f as getKClassFromExpression,
105
- toString1pkumu07cwy4m as toString,
106
- IllegalStateException_init_$Create$2429fvs1h56dm as IllegalStateException_init_$Create$,
107
106
  trimIndent1qytc1wvt8suh as trimIndent,
108
107
  setOf45ia9pnfhe90 as setOf,
109
108
  protoOf180f3jzyo7rfj as protoOf,
@@ -115,15 +114,14 @@ import {
115
114
  initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
116
115
  toMap1vec9topfei08 as toMap,
117
116
  minus165a8u1e0x1lu as minus,
118
- mapOf1xd03cq9cnmy8 as mapOf,
119
117
  listOf1jh22dvmctj1r as listOf_0,
118
+ mapOf1xd03cq9cnmy8 as mapOf,
120
119
  compareValues1n2ayl87ihzfk as compareValues,
121
120
  contains3ue2qo8xhmpf1 as contains,
122
- contains2gm06f5aa19ov as contains_0,
123
121
  charCodeAt1yspne1d8erbm as charCodeAt,
124
122
  uppercaseChar6lahngw3wvwg as uppercaseChar,
125
123
  substring3saq8ornu0luv as substring,
126
- toString3dhdjl9yf50de as toString_0,
124
+ toString3dhdjl9yf50de as toString,
127
125
  removePrefix279df90bhrqqg as removePrefix,
128
126
  startsWith26w8qjqapeeq6 as startsWith,
129
127
  mapCapacity1h45rc3eh9p2l as mapCapacity,
@@ -133,6 +131,10 @@ import {
133
131
  sortedWith2csnbbb21k0lg as sortedWith,
134
132
  toSet2orjxp16sotqu as toSet,
135
133
  Regex_init_$Create$9xrx4twz2i6q as Regex_init_$Create$,
134
+ getKClassFromExpression348iqjl4fnx2f as getKClassFromExpression,
135
+ toString1pkumu07cwy4m as toString_0,
136
+ IllegalStateException_init_$Create$2429fvs1h56dm as IllegalStateException_init_$Create$,
137
+ initMetadataForObject1cxne3s9w65el as initMetadataForObject,
136
138
  } from './kotlin-kotlin-stdlib.mjs';
137
139
  import {
138
140
  Companion_instancebcq57hoyp8c2 as Companion_instance,
@@ -167,6 +169,7 @@ initMetadataForCompanion(Companion);
167
169
  initMetadataForClass(sam$kotlin_Comparator$0, 'sam$kotlin_Comparator$0', VOID, VOID, [Comparator, FunctionAdapter]);
168
170
  initMetadataForClass(RustIrEmitter$shared$1);
169
171
  initMetadataForClass(RustIrEmitter, 'RustIrEmitter', RustIrEmitter, VOID, [IrEmitter]);
172
+ initMetadataForObject(RustTransform, 'RustTransform');
170
173
  //endregion
171
174
  function get_selfParam() {
172
175
  _init_properties_RustIrEmitter_kt__j995rl();
@@ -179,77 +182,77 @@ function get_RESPONSE_PATTERN() {
179
182
  }
180
183
  var RESPONSE_PATTERN;
181
184
  function RustIrEmitter$shared$o$requestHeaders$lambda($this$interface) {
182
- $this$interface.g1j(new Custom('Headers'));
183
- return Unit_instance;
185
+ $this$interface.e1j(new Custom('Headers'));
186
+ return Unit_instance_0;
184
187
  }
185
188
  function RustIrEmitter$shared$o$responseHeaders$lambda($this$interface) {
186
- $this$interface.g1j(new Custom('Headers'));
187
- return Unit_instance;
189
+ $this$interface.e1j(new Custom('Headers'));
190
+ return Unit_instance_0;
188
191
  }
189
192
  function RustIrEmitter$shared$o$enumTrait$lambda($this$interface) {
190
- $this$interface.g1j(new Custom('Sized'));
191
- $this$interface.y1h('label', VOID, VOID, RustIrEmitter$shared$o$enumTrait$lambda$lambda);
192
- $this$interface.y1h('from_label', true, VOID, RustIrEmitter$shared$o$enumTrait$lambda$lambda_0);
193
- return Unit_instance;
193
+ $this$interface.e1j(new Custom('Sized'));
194
+ $this$interface.b1i('label', VOID, VOID, RustIrEmitter$shared$o$enumTrait$lambda$lambda);
195
+ $this$interface.b1i('from_label', true, VOID, RustIrEmitter$shared$o$enumTrait$lambda$lambda_0);
196
+ return Unit_instance_0;
194
197
  }
195
198
  function RustIrEmitter$shared$o$enumTrait$lambda$lambda($this$function) {
196
- $this$function.e1j('&self', new Custom(''));
197
- $this$function.j1i(new Custom('&str'));
198
- return Unit_instance;
199
+ $this$function.l1i('&self', new Custom(''));
200
+ $this$function.k1i(new Custom('&str'));
201
+ return Unit_instance_0;
199
202
  }
200
203
  function RustIrEmitter$shared$o$enumTrait$lambda$lambda_0($this$function) {
201
- $this$function.e1j('s', new Custom('&str'));
202
- $this$function.j1i(new Custom('Option<Self>'));
203
- return Unit_instance;
204
+ $this$function.l1i('s', new Custom('&str'));
205
+ $this$function.k1i(new Custom('Option<Self>'));
206
+ return Unit_instance_0;
204
207
  }
205
208
  function RustIrEmitter$shared$o$refinedTrait$lambda($this$interface) {
206
- $this$interface.s1i($this$interface.r1i('T', []), []);
207
- $this$interface.y1h('value', VOID, VOID, RustIrEmitter$shared$o$refinedTrait$lambda$lambda);
208
- $this$interface.y1h('validate', VOID, VOID, RustIrEmitter$shared$o$refinedTrait$lambda$lambda_0);
209
- return Unit_instance;
209
+ $this$interface.a1i($this$interface.t1h('T', []), []);
210
+ $this$interface.b1i('value', VOID, VOID, RustIrEmitter$shared$o$refinedTrait$lambda$lambda);
211
+ $this$interface.b1i('validate', VOID, VOID, RustIrEmitter$shared$o$refinedTrait$lambda$lambda_0);
212
+ return Unit_instance_0;
210
213
  }
211
214
  function RustIrEmitter$shared$o$refinedTrait$lambda$lambda($this$function) {
212
- $this$function.e1j('&self', new Custom(''));
213
- $this$function.j1i(Companion_getInstance_0().t1y($this$function.r1i('T', [])));
214
- return Unit_instance;
215
+ $this$function.l1i('&self', new Custom(''));
216
+ $this$function.k1i(borrow($this$function.t1h('T', [])));
217
+ return Unit_instance_0;
215
218
  }
216
219
  function RustIrEmitter$shared$o$refinedTrait$lambda$lambda_0($this$function) {
217
- $this$function.e1j('&self', new Custom(''));
218
- $this$function.j1i($this$function.t1i());
219
- return Unit_instance;
220
+ $this$function.l1i('&self', new Custom(''));
221
+ $this$function.k1i($this$function.s1i());
222
+ return Unit_instance_0;
220
223
  }
221
224
  function RustIrEmitter$shared$o$requestTrait$lambda($this$interface) {
222
- $this$interface.s1i($this$interface.r1i('T', []), []);
223
- $this$interface.q1i('path', Companion_getInstance_0().u1y($this$interface.r1i('Path', [])));
224
- $this$interface.q1i('method', Companion_getInstance_0().t1y($this$interface.r1i('Method', [])));
225
- $this$interface.q1i('queries', Companion_getInstance_0().u1y($this$interface.r1i('Queries', [])));
226
- $this$interface.q1i('headers', Companion_getInstance_0().u1y($this$interface.r1i('RequestHeaders', [])));
227
- $this$interface.q1i('body', Companion_getInstance_0().t1y($this$interface.r1i('T', [])));
228
- return Unit_instance;
225
+ $this$interface.a1i($this$interface.t1h('T', []), []);
226
+ $this$interface.m1i('path', borrowDyn($this$interface.t1h('Path', [])));
227
+ $this$interface.m1i('method', borrow($this$interface.t1h('Method', [])));
228
+ $this$interface.m1i('queries', borrowDyn($this$interface.t1h('Queries', [])));
229
+ $this$interface.m1i('headers', borrowDyn($this$interface.t1h('RequestHeaders', [])));
230
+ $this$interface.m1i('body', borrow($this$interface.t1h('T', [])));
231
+ return Unit_instance_0;
229
232
  }
230
233
  function RustIrEmitter$shared$o$responseTrait$lambda($this$interface) {
231
- $this$interface.s1i($this$interface.r1i('T', []), []);
232
- $this$interface.q1i('status', $this$interface.o1t());
233
- $this$interface.q1i('headers', Companion_getInstance_0().u1y($this$interface.r1i('ResponseHeaders', [])));
234
- $this$interface.q1i('body', Companion_getInstance_0().t1y($this$interface.r1i('T', [])));
235
- return Unit_instance;
234
+ $this$interface.a1i($this$interface.t1h('T', []), []);
235
+ $this$interface.m1i('status', $this$interface.n1t());
236
+ $this$interface.m1i('headers', borrowDyn($this$interface.t1h('ResponseHeaders', [])));
237
+ $this$interface.m1i('body', borrow($this$interface.t1h('T', [])));
238
+ return Unit_instance_0;
236
239
  }
237
240
  function RustIrEmitter$shared$o$transportationTrait$lambda($this$interface) {
238
- $this$interface.q1j('transport', VOID, VOID, RustIrEmitter$shared$o$transportationTrait$lambda$lambda);
239
- return Unit_instance;
241
+ $this$interface.o1j('transport', VOID, VOID, RustIrEmitter$shared$o$transportationTrait$lambda$lambda);
242
+ return Unit_instance_0;
240
243
  }
241
244
  function RustIrEmitter$shared$o$transportationTrait$lambda$lambda($this$asyncFunction) {
242
- $this$asyncFunction.e1j('&self', new Custom(''));
243
- $this$asyncFunction.e1j('request', Companion_getInstance_0().t1y($this$asyncFunction.r1i('RawRequest', [])));
244
- $this$asyncFunction.j1i($this$asyncFunction.r1i('RawResponse', []));
245
- return Unit_instance;
245
+ $this$asyncFunction.l1i('&self', new Custom(''));
246
+ $this$asyncFunction.l1i('request', borrow($this$asyncFunction.t1h('RawRequest', [])));
247
+ $this$asyncFunction.k1i($this$asyncFunction.t1h('RawResponse', []));
248
+ return Unit_instance_0;
246
249
  }
247
250
  function RustIrEmitter$shared$o$wirespecFile$lambda(this$0) {
248
251
  return function (element, transformer) {
249
252
  var tmp;
250
253
  if (element instanceof File) {
251
254
  // Inline function 'kotlin.collections.filterIsInstance' call
252
- var tmp0 = element.r1m_1;
255
+ var tmp0 = element.u1m_1;
253
256
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
254
257
  var destination = ArrayList_init_$Create$();
255
258
  var _iterator__ex2g4s = tmp0.t();
@@ -260,7 +263,7 @@ function RustIrEmitter$shared$o$wirespecFile$lambda(this$0) {
260
263
  }
261
264
  }
262
265
  var namespace = first(destination);
263
- tmp = element.u1m(VOID, plus(this$0.w1y_1, namespace.b1n_1));
266
+ tmp = element.x1m(VOID, plus(this$0.s1y_1, namespace.a1n_1));
264
267
  } else {
265
268
  tmp = element;
266
269
  }
@@ -272,7 +275,7 @@ function RustIrEmitter$shared$o$wirespecFile$lambda_0(element, transformer) {
272
275
  var tmp;
273
276
  if (element instanceof Enum) {
274
277
  var tmp_0;
275
- if (element.e1o_1.equals(Companion_getInstance().o1h('Method'))) {
278
+ if (element.d1o_1.equals(Companion_getInstance().m1h('Method'))) {
276
279
  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}');
277
280
  } else {
278
281
  tmp_0 = element;
@@ -289,7 +292,7 @@ function RustIrEmitter$shared$o$wirespecFile$lambda_1(this$0) {
289
292
  var tmp;
290
293
  if (element instanceof File) {
291
294
  // Inline function 'kotlin.collections.flatMap' call
292
- var tmp0 = element.r1m_1;
295
+ var tmp0 = element.u1m_1;
293
296
  // Inline function 'kotlin.collections.flatMapTo' call
294
297
  var destination = ArrayList_init_$Create$();
295
298
  var _iterator__ex2g4s = tmp0.t();
@@ -297,30 +300,30 @@ function RustIrEmitter$shared$o$wirespecFile$lambda_1(this$0) {
297
300
  var element_0 = _iterator__ex2g4s.v();
298
301
  var tmp_0;
299
302
  if (element_0 instanceof Interface) {
300
- var name = element_0.o1o_1.u1l();
303
+ var name = element_0.m1o_1.x1l();
301
304
  var tmp_1;
302
305
  // Inline function 'kotlin.collections.contains' call
303
306
  // Inline function 'kotlin.collections.containsKey' call
304
- var this_0 = this$0.h1z_1;
305
- if ((isInterface(this_0, KtMap) ? this_0 : THROW_CCE()).o2(name)) {
307
+ var this_0 = this$0.d1z_1;
308
+ if ((isInterface(this_0, KtMap) ? this_0 : THROW_CCE()).n2(name)) {
306
309
  // Inline function 'kotlin.collections.buildList' call
307
310
  // Inline function 'kotlin.collections.buildListInternal' call
308
311
  // Inline function 'kotlin.apply' call
309
312
  var this_1 = ArrayList_init_$Create$();
310
- this_1.x(ensureNotNull(this$0.h1z_1.q2(name)));
313
+ this_1.x(ensureNotNull(this$0.d1z_1.p2(name)));
311
314
  if (name === 'Request') {
312
- this_1.x(this$0.x1y_1);
315
+ this_1.x(this$0.t1y_1);
313
316
  }
314
317
  if (name === 'Response') {
315
- this_1.x(this$0.y1y_1);
318
+ this_1.x(this$0.u1y_1);
316
319
  }
317
320
  tmp_1 = this_1.o5();
318
321
  } else {
319
322
  // Inline function 'kotlin.collections.contains' call
320
323
  // Inline function 'kotlin.collections.containsKey' call
321
- var this_2 = this$0.f1z_1;
322
- if ((isInterface(this_2, KtMap) ? this_2 : THROW_CCE()).o2(name)) {
323
- tmp_1 = listOf(ensureNotNull(this$0.f1z_1.q2(name)));
324
+ var this_2 = this$0.b1z_1;
325
+ if ((isInterface(this_2, KtMap) ? this_2 : THROW_CCE()).n2(name)) {
326
+ tmp_1 = listOf(ensureNotNull(this$0.b1z_1.p2(name)));
324
327
  } else {
325
328
  tmp_1 = listOf(element_0);
326
329
  }
@@ -332,8 +335,8 @@ function RustIrEmitter$shared$o$wirespecFile$lambda_1(this$0) {
332
335
  var list = tmp_0;
333
336
  addAll(destination, list);
334
337
  }
335
- var newElements = plus_0(plus_0(destination, this$0.z1y_1), this$0.a1z_1);
336
- tmp = element.u1m(VOID, newElements);
338
+ var newElements = plus_0(plus_0(destination, this$0.v1y_1), this$0.w1y_1);
339
+ tmp = element.x1m(VOID, newElements);
337
340
  } else {
338
341
  tmp = element;
339
342
  }
@@ -349,14 +352,14 @@ function RustIrEmitter$shared$o$source$lambda(element, transformer) {
349
352
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
350
353
  var tmp_0 = scope;
351
354
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
352
- var this_0 = scope.a1u_1;
355
+ var this_0 = scope.z1t_1;
353
356
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
354
357
  // Inline function 'kotlin.apply' call
355
358
  var this_1 = new TransformerBuilder();
356
- this_1.f1h(RustIrEmitter$shared$o$source$lambda$lambda);
357
- var tmp$ret$2 = this_1.g1h();
358
- tmp_0.a1u_1 = transform(this_0, tmp$ret$2);
359
- var tmp_1 = scope.a1u_1;
359
+ this_1.d1h(RustIrEmitter$shared$o$source$lambda$lambda);
360
+ var tmp$ret$2 = this_1.e1h();
361
+ tmp_0.z1t_1 = transform(this_0, tmp$ret$2);
362
+ var tmp_1 = scope.z1t_1;
360
363
  tmp = isInterface(tmp_1, Element) ? tmp_1 : THROW_CCE();
361
364
  } else {
362
365
  tmp = element;
@@ -367,7 +370,7 @@ function RustIrEmitter$shared$o$source$lambda(element, transformer) {
367
370
  function RustIrEmitter$shared$o$source$lambda$lambda(element, transformer) {
368
371
  var tmp;
369
372
  if (element instanceof Function) {
370
- var tmp0 = element.x1j_1;
373
+ var tmp0 = element.v1j_1;
371
374
  var tmp$ret$0;
372
375
  $l$block_0: {
373
376
  // Inline function 'kotlin.collections.any' call
@@ -384,7 +387,7 @@ function RustIrEmitter$shared$o$source$lambda$lambda(element, transformer) {
384
387
  var _iterator__ex2g4s = tmp0.t();
385
388
  while (_iterator__ex2g4s.u()) {
386
389
  var element_0 = _iterator__ex2g4s.v();
387
- if (element_0.w1n_1.u1h() === '&self' || element_0.w1n_1.u1h() === 'self') {
390
+ if (element_0.v1n_1.s1h() === '&self' || element_0.v1n_1.s1h() === 'self') {
388
391
  tmp$ret$0 = true;
389
392
  break $l$block_0;
390
393
  }
@@ -393,8 +396,8 @@ function RustIrEmitter$shared$o$source$lambda$lambda(element, transformer) {
393
396
  }
394
397
  var hasSelf = tmp$ret$0;
395
398
  var tmp_1;
396
- if (!hasSelf && !element.b1k_1) {
397
- tmp_1 = element.d1k(VOID, VOID, plus(listOf(get_selfParam()), element.x1j_1));
399
+ if (!hasSelf && !element.z1j_1) {
400
+ tmp_1 = element.b1k(VOID, VOID, plus(listOf(get_selfParam()), element.v1j_1));
398
401
  } else {
399
402
  tmp_1 = element;
400
403
  }
@@ -405,19 +408,22 @@ function RustIrEmitter$shared$o$source$lambda$lambda(element, transformer) {
405
408
  var transformed = tmp;
406
409
  return transformChildren(transformed, transformer);
407
410
  }
408
- function RustIrEmitter$shared$o$source$lambda_0(element) {
409
- return trimEnd(generateRust(element), charArrayOf([_Char___init__impl__6a9atx(10)]));
411
+ function RustIrEmitter$shared$o$source$lambda_0(group) {
412
+ return trimEnd(joinToString(group, '', VOID, VOID, VOID, VOID, RustIrEmitter$shared$o$source$lambda$lambda_0), charArrayOf([_Char___init__impl__6a9atx(10)]));
413
+ }
414
+ function RustIrEmitter$shared$o$source$lambda$lambda_0(it) {
415
+ return generateRust(it);
410
416
  }
411
417
  function _get_sanitizationConfig__sns434($this) {
412
- var tmp0 = $this.o1z_1;
418
+ var tmp0 = $this.k1z_1;
413
419
  var tmp = KProperty1;
414
420
  // Inline function 'kotlin.getValue' call
415
421
  getPropertyCallableRef('sanitizationConfig', 1, tmp, RustIrEmitter$_get_sanitizationConfig_$ref_17ypni(), null);
416
- return tmp0.n1();
422
+ return tmp0.l1();
417
423
  }
418
424
  function sanitize($this, _this__u8e3s4) {
419
425
  // Inline function 'kotlin.collections.mapIndexed' call
420
- var this_0 = split(_this__u8e3s4.n1(), ['.', ' ']);
426
+ var this_0 = split(_this__u8e3s4.l1(), ['.', ' ']);
421
427
  // Inline function 'kotlin.collections.mapIndexedTo' call
422
428
  var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
423
429
  var index = 0;
@@ -426,7 +432,7 @@ function sanitize($this, _this__u8e3s4) {
426
432
  var item = _iterator__ex2g4s.v();
427
433
  var _unary__edvuaz = index;
428
434
  index = _unary__edvuaz + 1 | 0;
429
- var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance.qq(item) : item;
435
+ var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance.oq(item) : item;
430
436
  destination.x(tmp$ret$0);
431
437
  }
432
438
  // Inline function 'kotlin.text.filter' call
@@ -473,14 +479,14 @@ function sanitize($this, _this__u8e3s4) {
473
479
  return toSnakeCase($this, tmp$ret$9);
474
480
  }
475
481
  function toSnakeCase($this, _this__u8e3s4) {
476
- return Companion_getInstance().o1h(_this__u8e3s4).v1l();
482
+ return Companion_getInstance().m1h(_this__u8e3s4).y1l();
477
483
  }
478
484
  function toPascalCase($this, _this__u8e3s4) {
479
485
  var tmp = split(_this__u8e3s4, ['_']);
480
486
  return joinToString(tmp, '', VOID, VOID, VOID, VOID, RustIrEmitter$toPascalCase$lambda);
481
487
  }
482
488
  function sanitizeKeywords($this, _this__u8e3s4) {
483
- return Companion_getInstance_0().s1y_1.h1(_this__u8e3s4) ? 'r#' + _this__u8e3s4 : _this__u8e3s4;
489
+ return Companion_getInstance_0().o1z_1.u1(_this__u8e3s4) ? 'r#' + _this__u8e3s4 : _this__u8e3s4;
484
490
  }
485
491
  function sanitizeEnum($this, _this__u8e3s4) {
486
492
  // Inline function 'kotlin.let' call
@@ -532,9 +538,9 @@ function sort($this, definition) {
532
538
  }
533
539
  function prependImports($this, _this__u8e3s4, imports) {
534
540
  var tmp;
535
- // Inline function 'kotlin.text.isNotEmpty' call
536
- if (charSequenceLength(imports) > 0) {
537
- tmp = _this__u8e3s4.u1m(VOID, plus(listOf(new RawElement(imports)), _this__u8e3s4.r1m_1));
541
+ // Inline function 'kotlin.collections.isNotEmpty' call
542
+ if (!imports.r()) {
543
+ tmp = _this__u8e3s4.x1m(VOID, plus(imports, _this__u8e3s4.u1m_1));
538
544
  } else {
539
545
  tmp = _this__u8e3s4;
540
546
  }
@@ -548,13 +554,21 @@ function buildModelImports($this, _this__u8e3s4) {
548
554
  var _iterator__ex2g4s = this_0.t();
549
555
  while (_iterator__ex2g4s.u()) {
550
556
  var e = _iterator__ex2g4s.v();
551
- var key = e.nu_1;
557
+ var key = e.lu_1;
552
558
  if (set.x(key)) {
553
559
  list.x(e);
554
560
  }
555
561
  }
556
- var tmp = list;
557
- return joinToString(tmp, '\n', VOID, VOID, VOID, VOID, RustIrEmitter$buildModelImports$lambda($this));
562
+ // Inline function 'kotlin.collections.map' call
563
+ // Inline function 'kotlin.collections.mapTo' call
564
+ var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(list, 10));
565
+ var _iterator__ex2g4s_0 = list.t();
566
+ while (_iterator__ex2g4s_0.u()) {
567
+ var item = _iterator__ex2g4s_0.v();
568
+ var tmp$ret$2 = import_0('super::' + toSnakeCase($this, item.lu_1), item.lu_1);
569
+ destination.x(tmp$ret$2);
570
+ }
571
+ return destination;
558
572
  }
559
573
  function buildEndpointImports($this, _this__u8e3s4) {
560
574
  // Inline function 'kotlin.collections.distinctBy' call
@@ -564,13 +578,21 @@ function buildEndpointImports($this, _this__u8e3s4) {
564
578
  var _iterator__ex2g4s = this_0.t();
565
579
  while (_iterator__ex2g4s.u()) {
566
580
  var e = _iterator__ex2g4s.v();
567
- var key = e.nu_1;
581
+ var key = e.lu_1;
568
582
  if (set.x(key)) {
569
583
  list.x(e);
570
584
  }
571
585
  }
572
- var tmp = list;
573
- return joinToString(tmp, '\n', VOID, VOID, VOID, VOID, RustIrEmitter$buildEndpointImports$lambda($this));
586
+ // Inline function 'kotlin.collections.map' call
587
+ // Inline function 'kotlin.collections.mapTo' call
588
+ var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(list, 10));
589
+ var _iterator__ex2g4s_0 = list.t();
590
+ while (_iterator__ex2g4s_0.u()) {
591
+ var item = _iterator__ex2g4s_0.v();
592
+ var tmp$ret$2 = import_0('super::super::model::' + toSnakeCase($this, item.lu_1), item.lu_1);
593
+ destination.x(tmp$ret$2);
594
+ }
595
+ return destination;
574
596
  }
575
597
  function injectSelfReceiver($this, _this__u8e3s4, fieldNames) {
576
598
  // Inline function 'community.flock.wirespec.ir.core.transform' call
@@ -578,14 +600,14 @@ function injectSelfReceiver($this, _this__u8e3s4, fieldNames) {
578
600
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
579
601
  var tmp = scope;
580
602
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
581
- var this_0 = scope.a1u_1;
603
+ var this_0 = scope.z1t_1;
582
604
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
583
605
  // Inline function 'kotlin.apply' call
584
606
  var this_1 = new TransformerBuilder();
585
- this_1.f1h(RustIrEmitter$injectSelfReceiver$lambda(fieldNames));
586
- var tmp$ret$2 = this_1.g1h();
587
- tmp.a1u_1 = transform(this_0, tmp$ret$2);
588
- var tmp_0 = scope.a1u_1;
607
+ this_1.d1h(RustIrEmitter$injectSelfReceiver$lambda(fieldNames));
608
+ var tmp$ret$2 = this_1.e1h();
609
+ tmp.z1t_1 = transform(this_0, tmp$ret$2);
610
+ var tmp_0 = scope.z1t_1;
589
611
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
590
612
  }
591
613
  function stripWirespecPrefix($this, _this__u8e3s4) {
@@ -594,23 +616,23 @@ function stripWirespecPrefix($this, _this__u8e3s4) {
594
616
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matching' call
595
617
  var tmp = scope;
596
618
  // Inline function 'community.flock.wirespec.ir.core.transformMatching' call
597
- var this_0 = scope.a1u_1;
619
+ var this_0 = scope.z1t_1;
598
620
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
599
621
  // Inline function 'kotlin.apply' call
600
622
  var this_1 = new TransformerBuilder();
601
- this_1.g1u(RustIrEmitter$stripWirespecPrefix$lambda);
602
- var tmp$ret$2 = this_1.g1h();
603
- tmp.a1u_1 = transform(this_0, tmp$ret$2);
604
- var tmp_0 = scope.a1u_1;
623
+ this_1.f1u(RustIrEmitter$stripWirespecPrefix$lambda);
624
+ var tmp$ret$2 = this_1.e1h();
625
+ tmp.z1t_1 = transform(this_0, tmp$ret$2);
626
+ var tmp_0 = scope.z1t_1;
605
627
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
606
628
  }
607
629
  function buildValidateFunction($this, refined) {
608
- var constraintExpr = convertConstraint(refined.er_1, new FieldCall(new VariableReference(Companion_getInstance().o1h('self')), Companion_getInstance().o1h('value')));
630
+ var constraintExpr = convertConstraint(refined.cr_1, new FieldCall(new VariableReference(Companion_getInstance().m1h('self')), Companion_getInstance().m1h('value')));
609
631
  return function_0('validate', VOID, VOID, RustIrEmitter$buildValidateFunction$lambda(constraintExpr));
610
632
  }
611
633
  function buildToStringFunction($this, refined) {
612
634
  var tmp;
613
- if (refined.er_1.ru_1 instanceof String_1) {
635
+ if (refined.cr_1.pu_1 instanceof String_1) {
614
636
  tmp = 'self.value.clone()';
615
637
  } else {
616
638
  tmp = 'format!("{}", self.value)';
@@ -618,95 +640,6 @@ function buildToStringFunction($this, refined) {
618
640
  var expr = tmp;
619
641
  return function_0('to_string', VOID, VOID, RustIrEmitter$buildToStringFunction$lambda(expr));
620
642
  }
621
- function toRustTypeString($this, _this__u8e3s4) {
622
- var tmp;
623
- if (_this__u8e3s4 instanceof String_0) {
624
- tmp = 'String';
625
- } else {
626
- if (_this__u8e3s4 instanceof Boolean_0) {
627
- tmp = 'bool';
628
- } else {
629
- if (_this__u8e3s4 instanceof Integer) {
630
- var tmp_0;
631
- switch (_this__u8e3s4.d1m_1.c3_1) {
632
- case 0:
633
- tmp_0 = 'i32';
634
- break;
635
- case 1:
636
- tmp_0 = 'i64';
637
- break;
638
- default:
639
- noWhenBranchMatchedException();
640
- break;
641
- }
642
- tmp = tmp_0;
643
- } else {
644
- if (_this__u8e3s4 instanceof Number_0) {
645
- var tmp_1;
646
- switch (_this__u8e3s4.e1m_1.c3_1) {
647
- case 0:
648
- tmp_1 = 'f32';
649
- break;
650
- case 1:
651
- tmp_1 = 'f64';
652
- break;
653
- default:
654
- noWhenBranchMatchedException();
655
- break;
656
- }
657
- tmp = tmp_1;
658
- } else {
659
- if (_this__u8e3s4 instanceof Bytes) {
660
- tmp = 'Vec<u8>';
661
- } else {
662
- if (_this__u8e3s4 instanceof Unit) {
663
- tmp = '()';
664
- } else {
665
- if (_this__u8e3s4 instanceof Any) {
666
- tmp = 'Box<dyn std::any::Any>';
667
- } else {
668
- if (_this__u8e3s4 instanceof Array_0) {
669
- tmp = 'Vec<' + toRustTypeString($this, _this__u8e3s4.r1h_1) + '>';
670
- } else {
671
- if (_this__u8e3s4 instanceof Dict) {
672
- tmp = 'std::collections::HashMap<' + toRustTypeString($this, _this__u8e3s4.g1m_1) + ', ' + toRustTypeString($this, _this__u8e3s4.h1m_1) + '>';
673
- } else {
674
- if (_this__u8e3s4 instanceof Nullable) {
675
- tmp = 'Option<' + toRustTypeString($this, _this__u8e3s4.q1h_1) + '>';
676
- } else {
677
- if (_this__u8e3s4 instanceof Custom) {
678
- tmp = _this__u8e3s4.s1h_1;
679
- } else {
680
- if (_this__u8e3s4 instanceof Wildcard) {
681
- tmp = '_';
682
- } else {
683
- if (_this__u8e3s4 instanceof Reflect) {
684
- tmp = 'std::any::TypeId';
685
- } else {
686
- if (_this__u8e3s4 instanceof IntegerLiteral) {
687
- tmp = 'i32';
688
- } else {
689
- if (_this__u8e3s4 instanceof StringLiteral) {
690
- tmp = 'String';
691
- } else {
692
- noWhenBranchMatchedException();
693
- }
694
- }
695
- }
696
- }
697
- }
698
- }
699
- }
700
- }
701
- }
702
- }
703
- }
704
- }
705
- }
706
- }
707
- }
708
- return tmp;
709
- }
710
643
  function buildClientParams($this, _this__u8e3s4) {
711
644
  var params = requestParameters(_this__u8e3s4);
712
645
  var tmp;
@@ -730,7 +663,7 @@ function buildClientParams($this, _this__u8e3s4) {
730
663
  function flattenForRust($this, _this__u8e3s4) {
731
664
  // Inline function 'community.flock.wirespec.ir.core.findElement' call
732
665
  // Inline function 'kotlin.collections.filterIsInstance' call
733
- var tmp0 = _this__u8e3s4.s1m();
666
+ var tmp0 = _this__u8e3s4.v1m();
734
667
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
735
668
  var destination = ArrayList_init_$Create$();
736
669
  var _iterator__ex2g4s = tmp0.t();
@@ -744,7 +677,7 @@ function flattenForRust($this, _this__u8e3s4) {
744
677
  var namespace = ensureNotNull(tmp$ret$2);
745
678
  var flattened = flattenNestedStructs(namespace);
746
679
  // Inline function 'kotlin.collections.filter' call
747
- var tmp0_0 = flattened.b1n_1;
680
+ var tmp0_0 = flattened.a1n_1;
748
681
  // Inline function 'kotlin.collections.filterTo' call
749
682
  var destination_0 = ArrayList_init_$Create$();
750
683
  var _iterator__ex2g4s_0 = tmp0_0.t();
@@ -769,13 +702,13 @@ function flattenForRust($this, _this__u8e3s4) {
769
702
  var tmp_0;
770
703
  var tmp_1;
771
704
  if (item instanceof Union) {
772
- tmp_1 = item.e1q_1.u1l() === 'Response';
705
+ tmp_1 = item.d1q_1.x1l() === 'Response';
773
706
  } else {
774
707
  tmp_1 = false;
775
708
  }
776
709
  if (tmp_1) {
777
710
  // Inline function 'kotlin.collections.filterIsInstance' call
778
- var tmp0_1 = flattened.b1n_1;
711
+ var tmp0_1 = flattened.a1n_1;
779
712
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
780
713
  var destination_2 = ArrayList_init_$Create$();
781
714
  var _iterator__ex2g4s_2 = tmp0_1.t();
@@ -791,7 +724,7 @@ function flattenForRust($this, _this__u8e3s4) {
791
724
  var _iterator__ex2g4s_3 = destination_2.t();
792
725
  while (_iterator__ex2g4s_3.u()) {
793
726
  var item_0 = _iterator__ex2g4s_3.v();
794
- var tmp$ret$8 = item_0.g1n_1.u1l();
727
+ var tmp$ret$8 = item_0.f1n_1.x1l();
795
728
  destination_3.x(tmp$ret$8);
796
729
  }
797
730
  // Inline function 'kotlin.collections.filter' call
@@ -814,10 +747,10 @@ function flattenForRust($this, _this__u8e3s4) {
814
747
  destination_5.x(tmp$ret$14);
815
748
  }
816
749
  var members = destination_5;
817
- tmp_0 = item.j1q(VOID, VOID, members, emptyList());
750
+ tmp_0 = item.i1q(VOID, VOID, members, emptyList());
818
751
  } else {
819
752
  if (item instanceof Union) {
820
- tmp_0 = item.j1q(VOID, VOID, VOID, emptyList());
753
+ tmp_0 = item.i1q(VOID, VOID, VOID, emptyList());
821
754
  } else {
822
755
  tmp_0 = item;
823
756
  }
@@ -827,7 +760,7 @@ function flattenForRust($this, _this__u8e3s4) {
827
760
  }
828
761
  var moduleElements = destination_1;
829
762
  // Inline function 'kotlin.collections.filterNot' call
830
- var tmp0_2 = flattened.b1n_1;
763
+ var tmp0_2 = flattened.a1n_1;
831
764
  // Inline function 'kotlin.collections.filterNotTo' call
832
765
  var destination_6 = ArrayList_init_$Create$();
833
766
  var _iterator__ex2g4s_6 = tmp0_2.t();
@@ -844,140 +777,21 @@ function flattenForRust($this, _this__u8e3s4) {
844
777
  }
845
778
  }
846
779
  var classElements = destination_6;
847
- return new File(namespace.a1n_1, plus_0(moduleElements, new Namespace(namespace.a1n_1, classElements, namespace.c1n_1)));
848
- }
849
- function toRawCode($this, _this__u8e3s4) {
850
- var tmp;
851
- if (_this__u8e3s4 instanceof VariableReference) {
852
- tmp = sanitizeKeywords($this, _this__u8e3s4.w1o_1.v1l());
853
- } else {
854
- if (_this__u8e3s4 instanceof FieldCall) {
855
- var tmp1_safe_receiver = _this__u8e3s4.j1p_1;
856
- var tmp_0;
857
- if (tmp1_safe_receiver == null) {
858
- tmp_0 = null;
859
- } else {
860
- // Inline function 'kotlin.let' call
861
- tmp_0 = toRawCode($this, tmp1_safe_receiver) + '.';
862
- }
863
- var tmp2_elvis_lhs = tmp_0;
864
- var recv = tmp2_elvis_lhs == null ? '' : tmp2_elvis_lhs;
865
- tmp = recv + sanitizeKeywords($this, _this__u8e3s4.k1p_1.v1l());
866
- } else {
867
- if (_this__u8e3s4 instanceof ArrayIndexCall) {
868
- var tmp_1 = _this__u8e3s4.n1q_1;
869
- var lit = tmp_1 instanceof Literal ? tmp_1 : null;
870
- var tmp_2;
871
- var tmp_3;
872
- if (!(lit == null)) {
873
- var tmp_4;
874
- var tmp_5 = lit.f1p_1;
875
- if (tmp_5 instanceof Integer) {
876
- tmp_4 = true;
877
- } else {
878
- var tmp_6 = lit.f1p_1;
879
- tmp_4 = tmp_6 instanceof Number_0;
880
- }
881
- tmp_3 = tmp_4;
882
- } else {
883
- tmp_3 = false;
884
- }
885
- if (tmp_3) {
886
- tmp_2 = toString(lit.e1p_1);
887
- } else {
888
- var tmp_7;
889
- if (!(lit == null)) {
890
- var tmp_8 = lit.f1p_1;
891
- tmp_7 = tmp_8 instanceof String_0;
892
- } else {
893
- tmp_7 = false;
894
- }
895
- if (tmp_7) {
896
- tmp_2 = '"' + toString(lit.e1p_1) + '"';
897
- } else {
898
- tmp_2 = toRawCode($this, _this__u8e3s4.n1q_1);
899
- }
900
- }
901
- var idx = tmp_2;
902
- tmp = toRawCode($this, _this__u8e3s4.m1q_1) + '[' + idx + ']';
903
- } else {
904
- if (_this__u8e3s4 instanceof ConstructorStatement) {
905
- var tmp_9 = _this__u8e3s4.m1m_1;
906
- var tmp3_safe_receiver = tmp_9 instanceof Custom ? tmp_9 : null;
907
- var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.s1h_1;
908
- var typeName = tmp4_elvis_lhs == null ? toString(_this__u8e3s4.m1m_1) : tmp4_elvis_lhs;
909
- var tmp_10 = _this__u8e3s4.n1m_1.l1();
910
- var args = joinToString(tmp_10, ', ', VOID, VOID, VOID, VOID, RustIrEmitter$toRawCode$lambda($this));
911
- var tmp_11;
912
- // Inline function 'kotlin.text.isEmpty' call
913
- if (charSequenceLength(args) === 0) {
914
- tmp_11 = typeName + ' {}';
915
- } else {
916
- tmp_11 = typeName + ' { ' + args + ' }';
917
- }
918
- tmp = tmp_11;
919
- } else {
920
- if (_this__u8e3s4 instanceof Literal) {
921
- var tmp_12;
922
- var tmp_13 = _this__u8e3s4.f1p_1;
923
- if (tmp_13 instanceof String_0) {
924
- tmp_12 = 'String::from("' + toString(_this__u8e3s4.e1p_1) + '")';
925
- } else {
926
- var tmp_14 = _this__u8e3s4.f1p_1;
927
- if (tmp_14 instanceof Boolean_0) {
928
- tmp_12 = toString(_this__u8e3s4.e1p_1);
929
- } else {
930
- var tmp_15 = _this__u8e3s4.f1p_1;
931
- if (tmp_15 instanceof Integer) {
932
- tmp_12 = toString(_this__u8e3s4.e1p_1);
933
- } else {
934
- var tmp_16 = _this__u8e3s4.f1p_1;
935
- if (tmp_16 instanceof Number_0) {
936
- tmp_12 = toString(_this__u8e3s4.e1p_1);
937
- } else {
938
- tmp_12 = toString(_this__u8e3s4.e1p_1);
939
- }
940
- }
941
- }
942
- }
943
- tmp = tmp_12;
944
- } else {
945
- if (_this__u8e3s4 instanceof RawExpression) {
946
- tmp = _this__u8e3s4.m1o_1;
947
- } else {
948
- var message = 'Unsupported expression type in toRawCode: ' + getKClassFromExpression(_this__u8e3s4).o();
949
- throw IllegalStateException_init_$Create$(toString(message));
950
- }
951
- }
952
- }
953
- }
954
- }
955
- }
956
- return tmp;
957
- }
958
- function toBorrowedRaw($this, _this__u8e3s4) {
959
- return new RawExpression('&' + toRawCode($this, _this__u8e3s4));
960
- }
961
- function borrowSerializationArgs($this) {
962
- // Inline function 'community.flock.wirespec.ir.core.transformer' call
963
- // Inline function 'kotlin.apply' call
964
- var this_0 = new TransformerBuilder();
965
- this_0.j1u(RustIrEmitter$borrowSerializationArgs$lambda($this));
966
- return this_0.g1h();
780
+ return new File(namespace.z1m_1, plus_0(moduleElements, new Namespace(namespace.z1m_1, classElements, namespace.b1n_1)));
967
781
  }
968
782
  function fixResponseSwitchPatterns($this) {
969
783
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
970
784
  // Inline function 'kotlin.apply' call
971
785
  var this_0 = new TransformerBuilder();
972
- this_0.h1u(RustIrEmitter$fixResponseSwitchPatterns$lambda);
973
- return this_0.g1h();
786
+ this_0.g1u(RustIrEmitter$fixResponseSwitchPatterns$lambda);
787
+ return this_0.e1h();
974
788
  }
975
789
  function fixConstructorCalls($this) {
976
790
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
977
791
  // Inline function 'kotlin.apply' call
978
792
  var this_0 = new TransformerBuilder();
979
- this_0.j1u(RustIrEmitter$fixConstructorCalls$lambda);
980
- return this_0.g1h();
793
+ this_0.i1u(RustIrEmitter$fixConstructorCalls$lambda);
794
+ return this_0.e1h();
981
795
  }
982
796
  function stripHandlerExtends($this, _this__u8e3s4) {
983
797
  // Inline function 'community.flock.wirespec.ir.core.transform' call
@@ -985,14 +799,14 @@ function stripHandlerExtends($this, _this__u8e3s4) {
985
799
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
986
800
  var tmp = scope;
987
801
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
988
- var this_0 = scope.a1u_1;
802
+ var this_0 = scope.z1t_1;
989
803
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
990
804
  // Inline function 'kotlin.apply' call
991
805
  var this_1 = new TransformerBuilder();
992
- this_1.f1h(RustIrEmitter$stripHandlerExtends$lambda);
993
- var tmp$ret$2 = this_1.g1h();
994
- tmp.a1u_1 = transform(this_0, tmp$ret$2);
995
- var tmp_0 = scope.a1u_1;
806
+ this_1.d1h(RustIrEmitter$stripHandlerExtends$lambda);
807
+ var tmp$ret$2 = this_1.e1h();
808
+ tmp.z1t_1 = transform(this_0, tmp$ret$2);
809
+ var tmp_0 = scope.z1t_1;
996
810
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
997
811
  }
998
812
  function stripResponseGenerics($this, _this__u8e3s4) {
@@ -1001,14 +815,14 @@ function stripResponseGenerics($this, _this__u8e3s4) {
1001
815
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matching' call
1002
816
  var tmp = scope;
1003
817
  // Inline function 'community.flock.wirespec.ir.core.transformMatching' call
1004
- var this_0 = scope.a1u_1;
818
+ var this_0 = scope.z1t_1;
1005
819
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1006
820
  // Inline function 'kotlin.apply' call
1007
821
  var this_1 = new TransformerBuilder();
1008
- this_1.g1u(RustIrEmitter$stripResponseGenerics$lambda);
1009
- var tmp$ret$2 = this_1.g1h();
1010
- tmp.a1u_1 = transform(this_0, tmp$ret$2);
1011
- var tmp_0 = scope.a1u_1;
822
+ this_1.f1u(RustIrEmitter$stripResponseGenerics$lambda);
823
+ var tmp$ret$2 = this_1.e1h();
824
+ tmp.z1t_1 = transform(this_0, tmp$ret$2);
825
+ var tmp_0 = scope.z1t_1;
1012
826
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1013
827
  }
1014
828
  function injectSelfToHandlerMethods($this, _this__u8e3s4) {
@@ -1017,14 +831,14 @@ function injectSelfToHandlerMethods($this, _this__u8e3s4) {
1017
831
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
1018
832
  var tmp = scope;
1019
833
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1020
- var this_0 = scope.a1u_1;
834
+ var this_0 = scope.z1t_1;
1021
835
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1022
836
  // Inline function 'kotlin.apply' call
1023
837
  var this_1 = new TransformerBuilder();
1024
- this_1.f1h(RustIrEmitter$injectSelfToHandlerMethods$lambda);
1025
- var tmp$ret$2 = this_1.g1h();
1026
- tmp.a1u_1 = transform(this_0, tmp$ret$2);
1027
- var tmp_0 = scope.a1u_1;
838
+ this_1.d1h(RustIrEmitter$injectSelfToHandlerMethods$lambda);
839
+ var tmp$ret$2 = this_1.e1h();
840
+ tmp.z1t_1 = transform(this_0, tmp$ret$2);
841
+ var tmp_0 = scope.z1t_1;
1028
842
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1029
843
  }
1030
844
  function injectHandlerImplForClient($this, _this__u8e3s4, endpoint) {
@@ -1033,14 +847,14 @@ function injectHandlerImplForClient($this, _this__u8e3s4, endpoint) {
1033
847
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
1034
848
  var tmp = scope;
1035
849
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1036
- var this_0 = scope.a1u_1;
850
+ var this_0 = scope.z1t_1;
1037
851
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1038
852
  // Inline function 'kotlin.apply' call
1039
853
  var this_1 = new TransformerBuilder();
1040
- this_1.f1h(RustIrEmitter$injectHandlerImplForClient$lambda);
1041
- var tmp$ret$2 = this_1.g1h();
1042
- tmp.a1u_1 = transform(this_0, tmp$ret$2);
1043
- var tmp_0 = scope.a1u_1;
854
+ this_1.d1h(RustIrEmitter$injectHandlerImplForClient$lambda);
855
+ var tmp$ret$2 = this_1.e1h();
856
+ tmp.z1t_1 = transform(this_0, tmp$ret$2);
857
+ var tmp_0 = scope.z1t_1;
1044
858
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1045
859
  }
1046
860
  function injectResponseFromImpls($this, _this__u8e3s4) {
@@ -1049,14 +863,14 @@ function injectResponseFromImpls($this, _this__u8e3s4) {
1049
863
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
1050
864
  var tmp = scope;
1051
865
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1052
- var this_0 = scope.a1u_1;
866
+ var this_0 = scope.z1t_1;
1053
867
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1054
868
  // Inline function 'kotlin.apply' call
1055
869
  var this_1 = new TransformerBuilder();
1056
- this_1.f1h(RustIrEmitter$injectResponseFromImpls$lambda);
1057
- var tmp$ret$2 = this_1.g1h();
1058
- tmp.a1u_1 = transform(this_0, tmp$ret$2);
1059
- var tmp_0 = scope.a1u_1;
870
+ this_1.d1h(RustIrEmitter$injectResponseFromImpls$lambda);
871
+ var tmp$ret$2 = this_1.e1h();
872
+ tmp.z1t_1 = transform(this_0, tmp$ret$2);
873
+ var tmp_0 = scope.z1t_1;
1060
874
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1061
875
  }
1062
876
  function buildApiStruct($this, endpoint) {
@@ -1064,23 +878,14 @@ function buildApiStruct($this, endpoint) {
1064
878
  }
1065
879
  function generateApiStruct($this, _this__u8e3s4) {
1066
880
  // Inline function 'kotlin.let' call
1067
- var pathTemplate = '/' + joinToString(_this__u8e3s4.ip_1, '/', VOID, VOID, VOID, VOID, RustIrEmitter$generateApiStruct$lambda);
1068
- var methodName = _this__u8e3s4.hp_1.b3_1;
881
+ var pathTemplate = '/' + joinToString(_this__u8e3s4.gp_1, '/', VOID, VOID, VOID, VOID, RustIrEmitter$generateApiStruct$lambda);
882
+ var methodName = _this__u8e3s4.fp_1.a3_1;
1069
883
  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 ');
1070
884
  }
1071
885
  function Companion() {
1072
886
  Companion_instance_2 = this;
1073
- this.s1y_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']);
887
+ this.o1z_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']);
1074
888
  }
1075
- protoOf(Companion).t1y = function (_this__u8e3s4) {
1076
- return _this__u8e3s4.k1m('&' + _this__u8e3s4.s1h_1);
1077
- };
1078
- protoOf(Companion).u1y = function (_this__u8e3s4) {
1079
- return _this__u8e3s4.k1m('&dyn ' + _this__u8e3s4.s1h_1);
1080
- };
1081
- protoOf(Companion).t1z = function (_this__u8e3s4) {
1082
- return _this__u8e3s4.k1m('&impl ' + _this__u8e3s4.s1h_1);
1083
- };
1084
889
  var Companion_instance_2;
1085
890
  function Companion_getInstance_0() {
1086
891
  if (Companion_instance_2 == null)
@@ -1088,23 +893,23 @@ function Companion_getInstance_0() {
1088
893
  return Companion_instance_2;
1089
894
  }
1090
895
  function sam$kotlin_Comparator$0(function_0) {
1091
- this.u1z_1 = function_0;
896
+ this.p1z_1 = function_0;
1092
897
  }
1093
898
  protoOf(sam$kotlin_Comparator$0).qd = function (a, b) {
1094
- return this.u1z_1(a, b);
899
+ return this.p1z_1(a, b);
1095
900
  };
1096
901
  protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
1097
902
  return this.qd(a, b);
1098
903
  };
1099
- protoOf(sam$kotlin_Comparator$0).m3 = function () {
1100
- return this.u1z_1;
904
+ protoOf(sam$kotlin_Comparator$0).l3 = function () {
905
+ return this.p1z_1;
1101
906
  };
1102
907
  protoOf(sam$kotlin_Comparator$0).equals = function (other) {
1103
908
  var tmp;
1104
909
  if (!(other == null) ? isInterface(other, Comparator) : false) {
1105
910
  var tmp_0;
1106
911
  if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
1107
- tmp_0 = equals(this.m3(), other.m3());
912
+ tmp_0 = equals(this.l3(), other.l3());
1108
913
  } else {
1109
914
  tmp_0 = false;
1110
915
  }
@@ -1115,22 +920,22 @@ protoOf(sam$kotlin_Comparator$0).equals = function (other) {
1115
920
  return tmp;
1116
921
  };
1117
922
  protoOf(sam$kotlin_Comparator$0).hashCode = function () {
1118
- return hashCode(this.m3());
923
+ return hashCode(this.l3());
1119
924
  };
1120
925
  function RustIrEmitter$sanitizationConfig$delegate$lambda$lambda(it) {
1121
926
  return 'r#' + it;
1122
927
  }
1123
928
  function RustIrEmitter$sanitizationConfig$delegate$lambda$lambda_0(name) {
1124
- return Companion_getInstance().o1h((new Name(name.p1h_1)).v1l());
929
+ return Companion_getInstance().m1h((new Name(name.n1h_1)).y1l());
1125
930
  }
1126
931
  function RustIrEmitter$sanitizationConfig$delegate$lambda$lambda_1(name) {
1127
- var value = name.u1h();
932
+ var value = name.s1h();
1128
933
  switch (value) {
1129
934
  case 'self':
1130
935
  case '&self':
1131
936
  return name;
1132
937
  default:
1133
- return Companion_getInstance().o1h((new Name(name.p1h_1)).v1l());
938
+ return Companion_getInstance().m1h((new Name(name.n1h_1)).y1l());
1134
939
  }
1135
940
  }
1136
941
  function RustIrEmitter$sanitizationConfig$delegate$lambda$lambda_2(it) {
@@ -1140,20 +945,20 @@ function RustIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
1140
945
  return function (stmt, tr) {
1141
946
  var tmp;
1142
947
  if (stmt instanceof ConstructorStatement) {
1143
- var tmp_0 = tr.s1t(stmt.m1m_1);
948
+ var tmp_0 = tr.r1t(stmt.p1m_1);
1144
949
  // Inline function 'kotlin.collections.map' call
1145
- var this_0 = stmt.n1m_1;
950
+ var this_0 = stmt.q1m_1;
1146
951
  // Inline function 'kotlin.collections.mapTo' call
1147
952
  var destination = ArrayList_init_$Create$_0(this_0.a1());
1148
953
  // Inline function 'kotlin.collections.iterator' call
1149
- var _iterator__ex2g4s = this_0.l1().t();
954
+ var _iterator__ex2g4s = this_0.j1().t();
1150
955
  while (_iterator__ex2g4s.u()) {
1151
956
  var item = _iterator__ex2g4s.v();
1152
957
  // Inline function 'kotlin.collections.component1' call
1153
- var k = item.m1();
958
+ var k = item.k1();
1154
959
  // Inline function 'kotlin.collections.component2' call
1155
- var v = item.n1();
1156
- var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), k), tr.v1t(v));
960
+ var v = item.l1();
961
+ var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), k), tr.u1t(v));
1157
962
  destination.x(tmp$ret$3);
1158
963
  }
1159
964
  tmp = new ConstructorStatement(tmp_0, toMap(destination));
@@ -1165,7 +970,7 @@ function RustIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
1165
970
  }
1166
971
  function RustIrEmitter$sanitizationConfig$delegate$lambda(this$0) {
1167
972
  return function () {
1168
- var tmp0_reservedKeywords = minus(Companion_getInstance_0().s1y_1, setOf(['self', 'Self']));
973
+ var tmp0_reservedKeywords = minus(Companion_getInstance_0().o1z_1, setOf(['self', 'Self']));
1169
974
  var tmp = RustIrEmitter$sanitizationConfig$delegate$lambda$lambda;
1170
975
  var tmp_0 = RustIrEmitter$sanitizationConfig$delegate$lambda$lambda_0;
1171
976
  var tmp_1 = RustIrEmitter$sanitizationConfig$delegate$lambda$lambda_1;
@@ -1179,65 +984,65 @@ function RustIrEmitter$_get_sanitizationConfig_$ref_17ypni() {
1179
984
  };
1180
985
  }
1181
986
  function RustIrEmitter$shared$1() {
1182
- this.v1y_1 = 'shared';
1183
- this.w1y_1 = listOf(new RawElement('use std::any::TypeId;\nuse std::collections::HashMap;'));
987
+ this.r1y_1 = 'shared';
988
+ this.s1y_1 = listOf_0([import_0('std::any', 'TypeId'), import_0('std::collections', 'HashMap')]);
1184
989
  var tmp = this;
1185
- tmp.x1y_1 = interface_0('RequestHeaders', VOID, RustIrEmitter$shared$o$requestHeaders$lambda);
990
+ tmp.t1y_1 = interface_0('RequestHeaders', VOID, RustIrEmitter$shared$o$requestHeaders$lambda);
1186
991
  var tmp_0 = this;
1187
- tmp_0.y1y_1 = interface_0('ResponseHeaders', VOID, RustIrEmitter$shared$o$responseHeaders$lambda);
1188
- this.z1y_1 = new RawElement('pub trait Client {\n type Transport: Transportation;\n type Ser: Serialization;\n fn transport(&self) -> &Self::Transport;\n fn serialization(&self) -> &Self::Ser;\n}');
1189
- this.a1z_1 = new RawElement("pub trait Server {\n type Req;\n type Res;\n fn path_template(&self) -> &'static str;\n fn method(&self) -> Method;\n}");
992
+ tmp_0.u1y_1 = interface_0('ResponseHeaders', VOID, RustIrEmitter$shared$o$responseHeaders$lambda);
993
+ this.v1y_1 = new RawElement('pub trait Client {\n type Transport: Transportation;\n type Ser: Serialization;\n fn transport(&self) -> &Self::Transport;\n fn serialization(&self) -> &Self::Ser;\n}');
994
+ this.w1y_1 = new RawElement("pub trait Server {\n type Req;\n type Res;\n fn path_template(&self) -> &'static str;\n fn method(&self) -> Method;\n}");
1190
995
  var tmp_1 = this;
1191
- tmp_1.b1z_1 = interface_0('Enum', VOID, RustIrEmitter$shared$o$enumTrait$lambda);
996
+ tmp_1.x1y_1 = interface_0('Enum', VOID, RustIrEmitter$shared$o$enumTrait$lambda);
1192
997
  var tmp_2 = this;
1193
- tmp_2.c1z_1 = interface_0('Refined', VOID, RustIrEmitter$shared$o$refinedTrait$lambda);
998
+ tmp_2.y1y_1 = interface_0('Refined', VOID, RustIrEmitter$shared$o$refinedTrait$lambda);
1194
999
  var tmp_3 = this;
1195
- tmp_3.d1z_1 = interface_0('Request', VOID, RustIrEmitter$shared$o$requestTrait$lambda);
1000
+ tmp_3.z1y_1 = interface_0('Request', VOID, RustIrEmitter$shared$o$requestTrait$lambda);
1196
1001
  var tmp_4 = this;
1197
- tmp_4.e1z_1 = interface_0('Response', VOID, RustIrEmitter$shared$o$responseTrait$lambda);
1198
- this.f1z_1 = mapOf([to('BodySerializer', new RawElement("pub trait BodySerializer {\n fn serialize_body<T: 'static>(&self, t: &T, r#type: TypeId) -> Vec<u8>;\n}")), to('BodyDeserializer', new RawElement("pub trait BodyDeserializer {\n fn deserialize_body<T: 'static>(&self, raw: &[u8], r#type: TypeId) -> T;\n}")), to('PathSerializer', new RawElement('pub trait PathSerializer {\n fn serialize_path<T: std::fmt::Display>(&self, t: &T, r#type: TypeId) -> String;\n}')), to('PathDeserializer', new RawElement('pub trait PathDeserializer {\n fn deserialize_path<T: std::str::FromStr>(&self, raw: &str, r#type: TypeId) -> T where T::Err: std::fmt::Debug;\n}')), to('ParamSerializer', new RawElement("pub trait ParamSerializer {\n fn serialize_param<T: 'static>(&self, value: &T, r#type: TypeId) -> Vec<String>;\n}")), to('ParamDeserializer', new RawElement("pub trait ParamDeserializer {\n fn deserialize_param<T: 'static>(&self, values: &[String], r#type: TypeId) -> T;\n}"))]);
1002
+ tmp_4.a1z_1 = interface_0('Response', VOID, RustIrEmitter$shared$o$responseTrait$lambda);
1003
+ this.b1z_1 = mapOf([to('BodySerializer', new RawElement("pub trait BodySerializer {\n fn serialize_body<T: 'static>(&self, t: &T, r#type: TypeId) -> Vec<u8>;\n}")), to('BodyDeserializer', new RawElement("pub trait BodyDeserializer {\n fn deserialize_body<T: 'static>(&self, raw: &[u8], r#type: TypeId) -> T;\n}")), to('PathSerializer', new RawElement('pub trait PathSerializer {\n fn serialize_path<T: std::fmt::Display>(&self, t: &T, r#type: TypeId) -> String;\n}')), to('PathDeserializer', new RawElement('pub trait PathDeserializer {\n fn deserialize_path<T: std::str::FromStr>(&self, raw: &str, r#type: TypeId) -> T where T::Err: std::fmt::Debug;\n}')), to('ParamSerializer', new RawElement("pub trait ParamSerializer {\n fn serialize_param<T: 'static>(&self, value: &T, r#type: TypeId) -> Vec<String>;\n}")), to('ParamDeserializer', new RawElement("pub trait ParamDeserializer {\n fn deserialize_param<T: 'static>(&self, values: &[String], r#type: TypeId) -> T;\n}"))]);
1199
1004
  var tmp_5 = this;
1200
- tmp_5.g1z_1 = interface_0('Transportation', VOID, RustIrEmitter$shared$o$transportationTrait$lambda);
1201
- this.h1z_1 = mapOf([to('Enum', this.b1z_1), to('Refined', this.c1z_1), to('Request', this.d1z_1), to('Response', this.e1z_1), to('Transportation', this.g1z_1)]);
1005
+ tmp_5.c1z_1 = interface_0('Transportation', VOID, RustIrEmitter$shared$o$transportationTrait$lambda);
1006
+ this.d1z_1 = mapOf([to('Enum', this.x1y_1), to('Refined', this.y1y_1), to('Request', this.z1y_1), to('Response', this.a1z_1), to('Transportation', this.c1z_1)]);
1202
1007
  var tmp_6 = this;
1203
1008
  // Inline function 'community.flock.wirespec.ir.core.transform' call
1204
- var this_0 = convert(new Shared(this.v1y_1));
1009
+ var this_0 = convert(new Shared(this.r1y_1));
1205
1010
  var scope = new TransformScope(this_0);
1206
1011
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
1207
1012
  var tmp_7 = scope;
1208
1013
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1209
- var this_1 = scope.a1u_1;
1014
+ var this_1 = scope.z1t_1;
1210
1015
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1211
1016
  // Inline function 'kotlin.apply' call
1212
1017
  var this_2 = new TransformerBuilder();
1213
- this_2.f1h(RustIrEmitter$shared$o$wirespecFile$lambda(this));
1214
- var tmp$ret$2 = this_2.g1h();
1215
- tmp_7.a1u_1 = transform(this_1, tmp$ret$2);
1018
+ this_2.d1h(RustIrEmitter$shared$o$wirespecFile$lambda(this));
1019
+ var tmp$ret$2 = this_2.e1h();
1020
+ tmp_7.z1t_1 = transform(this_1, tmp$ret$2);
1216
1021
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
1217
1022
  var tmp_8 = scope;
1218
1023
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1219
- var this_3 = scope.a1u_1;
1024
+ var this_3 = scope.z1t_1;
1220
1025
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1221
1026
  // Inline function 'kotlin.apply' call
1222
1027
  var this_4 = new TransformerBuilder();
1223
- this_4.f1h(RustIrEmitter$shared$o$wirespecFile$lambda_0);
1224
- var tmp$ret$7 = this_4.g1h();
1225
- tmp_8.a1u_1 = transform(this_3, tmp$ret$7);
1028
+ this_4.d1h(RustIrEmitter$shared$o$wirespecFile$lambda_0);
1029
+ var tmp$ret$7 = this_4.e1h();
1030
+ tmp_8.z1t_1 = transform(this_3, tmp$ret$7);
1226
1031
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
1227
1032
  var tmp_9 = scope;
1228
1033
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1229
- var this_5 = scope.a1u_1;
1034
+ var this_5 = scope.z1t_1;
1230
1035
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1231
1036
  // Inline function 'kotlin.apply' call
1232
1037
  var this_6 = new TransformerBuilder();
1233
- this_6.f1h(RustIrEmitter$shared$o$wirespecFile$lambda_1(this));
1234
- var tmp$ret$12 = this_6.g1h();
1235
- tmp_9.a1u_1 = transform(this_5, tmp$ret$12);
1236
- var tmp_10 = scope.a1u_1;
1038
+ this_6.d1h(RustIrEmitter$shared$o$wirespecFile$lambda_1(this));
1039
+ var tmp$ret$12 = this_6.e1h();
1040
+ tmp_9.z1t_1 = transform(this_5, tmp$ret$12);
1041
+ var tmp_10 = scope.z1t_1;
1237
1042
  // Inline function 'kotlin.let' call
1238
1043
  var file = isInterface(tmp_10, Element) ? tmp_10 : THROW_CCE();
1239
1044
  // Inline function 'kotlin.collections.flatMap' call
1240
- var tmp0 = file.r1m_1;
1045
+ var tmp0 = file.u1m_1;
1241
1046
  // Inline function 'kotlin.collections.flatMapTo' call
1242
1047
  var destination = ArrayList_init_$Create$();
1243
1048
  var _iterator__ex2g4s = tmp0.t();
@@ -1246,7 +1051,7 @@ function RustIrEmitter$shared$1() {
1246
1051
  var tmp_11;
1247
1052
  if (element instanceof Struct) {
1248
1053
  var derive;
1249
- switch (element.g1n_1.u1l()) {
1054
+ switch (element.f1n_1.x1l()) {
1250
1055
  case 'RawRequest':
1251
1056
  case 'RawResponse':
1252
1057
  derive = '#[derive(Debug, Clone, PartialEq)]';
@@ -1255,35 +1060,60 @@ function RustIrEmitter$shared$1() {
1255
1060
  derive = '#[derive(Debug, Clone, Default, PartialEq)]';
1256
1061
  break;
1257
1062
  }
1258
- tmp_11 = listOf(new File(element.g1n_1, listOf_0([new RawElement(derive), element])));
1063
+ tmp_11 = listOf(new File(element.f1n_1, listOf_0([new RawElement(derive), element])));
1259
1064
  } else {
1260
1065
  tmp_11 = listOf(element);
1261
1066
  }
1262
1067
  var list = tmp_11;
1263
1068
  addAll(destination, list);
1264
1069
  }
1265
- tmp_6.i1z_1 = new File(file.q1m_1, destination);
1070
+ var tmp0_0 = new File(file.t1m_1, destination);
1071
+ // Inline function 'kotlin.let' call
1072
+ tmp_6.e1z_1 = RustTransform_getInstance().w1z(tmp0_0);
1266
1073
  var tmp_12 = this;
1267
1074
  // Inline function 'community.flock.wirespec.ir.core.transform' call
1268
- var this_7 = this.i1z_1;
1075
+ var this_7 = this.e1z_1;
1269
1076
  var scope_0 = new TransformScope(this_7);
1270
1077
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
1271
1078
  var tmp_13 = scope_0;
1272
1079
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1273
- var this_8 = scope_0.a1u_1;
1080
+ var this_8 = scope_0.z1t_1;
1274
1081
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1275
1082
  // Inline function 'kotlin.apply' call
1276
1083
  var this_9 = new TransformerBuilder();
1277
- this_9.f1h(RustIrEmitter$shared$o$source$lambda);
1278
- var tmp$ret$24 = this_9.g1h();
1279
- tmp_13.a1u_1 = transform(this_8, tmp$ret$24);
1280
- var tmp_14 = scope_0.a1u_1;
1084
+ this_9.d1h(RustIrEmitter$shared$o$source$lambda);
1085
+ var tmp$ret$26 = this_9.e1h();
1086
+ tmp_13.z1t_1 = transform(this_8, tmp$ret$26);
1087
+ var tmp_14 = scope_0.z1t_1;
1281
1088
  // Inline function 'kotlin.let' call
1282
1089
  var file_0 = isInterface(tmp_14, Element) ? tmp_14 : THROW_CCE();
1283
- tmp_12.j1z_1 = joinToString(file_0.r1m_1, '\n\n', VOID, VOID, VOID, VOID, RustIrEmitter$shared$o$source$lambda_0) + '\n';
1090
+ // Inline function 'kotlin.collections.mutableListOf' call
1091
+ var groups = ArrayList_init_$Create$();
1092
+ // Inline function 'kotlin.collections.mutableListOf' call
1093
+ var current = ArrayList_init_$Create$();
1094
+ var _iterator__ex2g4s_0 = file_0.u1m_1.t();
1095
+ while (_iterator__ex2g4s_0.u()) {
1096
+ var element_0 = _iterator__ex2g4s_0.v();
1097
+ if (element_0 instanceof Import) {
1098
+ current.x(element_0);
1099
+ } else {
1100
+ // Inline function 'kotlin.collections.isNotEmpty' call
1101
+ if (!current.r()) {
1102
+ groups.x(current);
1103
+ // Inline function 'kotlin.collections.mutableListOf' call
1104
+ current = ArrayList_init_$Create$();
1105
+ }
1106
+ groups.x(listOf(element_0));
1107
+ }
1108
+ }
1109
+ // Inline function 'kotlin.collections.isNotEmpty' call
1110
+ if (!current.r()) {
1111
+ groups.x(current);
1112
+ }
1113
+ tmp_12.f1z_1 = joinToString(groups, '\n\n', VOID, VOID, VOID, VOID, RustIrEmitter$shared$o$source$lambda_0) + '\n';
1284
1114
  }
1285
- protoOf(RustIrEmitter$shared$1).s1w = function () {
1286
- return this.j1z_1;
1115
+ protoOf(RustIrEmitter$shared$1).r1w = function () {
1116
+ return this.f1z_1;
1287
1117
  };
1288
1118
  function RustIrEmitter$emit$lambda(this$0) {
1289
1119
  return function (a, b) {
@@ -1296,7 +1126,7 @@ function RustIrEmitter$emit$lambda(this$0) {
1296
1126
  };
1297
1127
  }
1298
1128
  function emit$emitMod(this$0, def) {
1299
- return 'pub mod ' + sanitize(this$0, def.xq()) + ';';
1129
+ return 'pub mod ' + sanitize(this$0, def.vq()) + ';';
1300
1130
  }
1301
1131
  function RustIrEmitter$emit$lambda_0(this$0) {
1302
1132
  return function (it) {
@@ -1313,16 +1143,16 @@ function RustIrEmitter$emit$lambda_2(this$0) {
1313
1143
  var tmp;
1314
1144
  if (element instanceof Enum) {
1315
1145
  // Inline function 'kotlin.collections.map' call
1316
- var this_0 = element.g1o_1;
1146
+ var this_0 = element.f1o_1;
1317
1147
  // Inline function 'kotlin.collections.mapTo' call
1318
1148
  var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
1319
1149
  var _iterator__ex2g4s = this_0.t();
1320
1150
  while (_iterator__ex2g4s.u()) {
1321
1151
  var item = _iterator__ex2g4s.v();
1322
- var tmp$ret$0 = item.d1o(Companion_getInstance().o1h(sanitizeKeywords(this$0, sanitizeEnum(this$0, item.a1o_1.u1h()))));
1152
+ var tmp$ret$0 = item.c1o(Companion_getInstance().m1h(sanitizeKeywords(this$0, sanitizeEnum(this$0, item.z1n_1.s1h()))));
1323
1153
  destination.x(tmp$ret$0);
1324
1154
  }
1325
- tmp = element.l1o(VOID, VOID, destination);
1155
+ tmp = element.k1o(VOID, VOID, destination);
1326
1156
  } else {
1327
1157
  tmp = element;
1328
1158
  }
@@ -1334,7 +1164,7 @@ function RustIrEmitter$emit$lambda_3(this$0, $refined) {
1334
1164
  return function (element, transformer) {
1335
1165
  var tmp;
1336
1166
  if (element instanceof Struct) {
1337
- tmp = element.m1n(VOID, VOID, VOID, VOID, listOf_0([buildValidateFunction(this$0, $refined), buildToStringFunction(this$0, $refined)]));
1167
+ tmp = element.l1n(VOID, VOID, VOID, VOID, listOf_0([buildValidateFunction(this$0, $refined), buildToStringFunction(this$0, $refined)]));
1338
1168
  } else {
1339
1169
  tmp = element;
1340
1170
  }
@@ -1348,39 +1178,28 @@ function RustIrEmitter$emit$lambda_4($identifierPattern) {
1348
1178
  var tmp_0;
1349
1179
  var tmp_1;
1350
1180
  if (s instanceof RawExpression) {
1351
- tmp_1 = $identifierPattern.nc(s.m1o_1);
1181
+ tmp_1 = $identifierPattern.nc(s.c1p_1);
1352
1182
  } else {
1353
1183
  tmp_1 = false;
1354
1184
  }
1355
1185
  if (tmp_1) {
1356
- tmp_0 = !contains(s.m1o_1, '.');
1186
+ tmp_0 = !contains(s.c1p_1, '.');
1357
1187
  } else {
1358
1188
  tmp_0 = false;
1359
1189
  }
1360
1190
  if (tmp_0) {
1361
- tmp = new VariableReference(Companion_getInstance().o1h(s.m1o_1));
1191
+ tmp = new VariableReference(Companion_getInstance().m1h(s.c1p_1));
1362
1192
  } else {
1363
1193
  tmp = transformChildren_0(s, t);
1364
1194
  }
1365
1195
  return tmp;
1366
1196
  };
1367
1197
  }
1368
- function RustIrEmitter$emit$lambda_5(it) {
1369
- var tmp = setOf(['Serializer', 'Deserializer']);
1370
- var tmp_0 = it.x1n_1;
1371
- var tmp0_safe_receiver = tmp_0 instanceof Custom ? tmp_0 : null;
1372
- return contains_0(tmp, tmp0_safe_receiver == null ? null : tmp0_safe_receiver.s1h_1);
1373
- }
1374
- function RustIrEmitter$emit$lambda_6(it) {
1375
- var tmp = Companion_getInstance_0();
1376
- var tmp_0 = it.x1n_1;
1377
- return it.z1n(VOID, tmp.t1z(tmp_0 instanceof Custom ? tmp_0 : THROW_CCE()));
1378
- }
1379
- function RustIrEmitter$emit$lambda_7(this$0, $endpoint) {
1198
+ function RustIrEmitter$emit$lambda_5(this$0, $endpoint) {
1380
1199
  return function (element, transformer) {
1381
1200
  var tmp;
1382
1201
  if (element instanceof Namespace) {
1383
- tmp = element.e1n(VOID, plus(element.b1n_1, listOf(buildApiStruct(this$0, $endpoint))));
1202
+ tmp = element.d1n(VOID, plus(element.a1n_1, listOf(buildApiStruct(this$0, $endpoint))));
1384
1203
  } else {
1385
1204
  tmp = element;
1386
1205
  }
@@ -1388,14 +1207,9 @@ function RustIrEmitter$emit$lambda_7(this$0, $endpoint) {
1388
1207
  return transformChildren(transformed, transformer);
1389
1208
  };
1390
1209
  }
1391
- function RustIrEmitter$emitEndpointClient$lambda(this$0) {
1392
- return function (it) {
1393
- return 'use super::super::model::' + toSnakeCase(this$0, it.nu_1) + '::' + it.nu_1 + ';';
1394
- };
1395
- }
1396
1210
  function RustIrEmitter$emitClient$lambda(this$0) {
1397
1211
  return function (endpoint) {
1398
- return 'pub mod ' + toSnakeCase(this$0, endpoint.gp_1.n1() + 'Client') + ';';
1212
+ return 'pub mod ' + toSnakeCase(this$0, endpoint.ep_1.l1() + 'Client') + ';';
1399
1213
  };
1400
1214
  }
1401
1215
  function RustIrEmitter$toPascalCase$lambda(s) {
@@ -1407,39 +1221,29 @@ function RustIrEmitter$toPascalCase$lambda(s) {
1407
1221
  var tmp0 = uppercaseChar(it);
1408
1222
  // Inline function 'kotlin.text.plus' call
1409
1223
  var other = substring(s, 1);
1410
- tmp = toString_0(tmp0) + other;
1224
+ tmp = toString(tmp0) + other;
1411
1225
  } else {
1412
1226
  tmp = s;
1413
1227
  }
1414
1228
  return tmp;
1415
1229
  }
1416
- function RustIrEmitter$buildModelImports$lambda(this$0) {
1417
- return function (it) {
1418
- return 'use super::' + toSnakeCase(this$0, it.nu_1) + '::' + it.nu_1 + ';';
1419
- };
1420
- }
1421
- function RustIrEmitter$buildEndpointImports$lambda(this$0) {
1422
- return function (it) {
1423
- return 'use super::super::model::' + toSnakeCase(this$0, it.nu_1) + '::' + it.nu_1 + ';';
1424
- };
1425
- }
1426
1230
  function RustIrEmitter$injectSelfReceiver$lambda$lambda($fieldNames) {
1427
1231
  return function (s, t) {
1428
1232
  var tmp;
1429
1233
  var tmp_0;
1430
1234
  var tmp_1;
1431
1235
  if (s instanceof FieldCall) {
1432
- tmp_1 = s.j1p_1 == null;
1236
+ tmp_1 = s.i1p_1 == null;
1433
1237
  } else {
1434
1238
  tmp_1 = false;
1435
1239
  }
1436
1240
  if (tmp_1) {
1437
- tmp_0 = $fieldNames.h1(s.k1p_1.t1l());
1241
+ tmp_0 = $fieldNames.u1(s.j1p_1.r1l());
1438
1242
  } else {
1439
1243
  tmp_0 = false;
1440
1244
  }
1441
1245
  if (tmp_0) {
1442
- tmp = new FieldCall(new VariableReference(Companion_getInstance().o1h('self')), s.k1p_1);
1246
+ tmp = new FieldCall(new VariableReference(Companion_getInstance().m1h('self')), s.j1p_1);
1443
1247
  } else {
1444
1248
  tmp = transformChildren_0(s, t);
1445
1249
  }
@@ -1451,12 +1255,12 @@ function RustIrEmitter$injectSelfReceiver$lambda($fieldNames) {
1451
1255
  var tmp;
1452
1256
  if (element instanceof Function) {
1453
1257
  var tmp_0;
1454
- if (element.v1j_1.equals(Companion_getInstance().o1h('validate'))) {
1258
+ if (element.t1j_1.equals(Companion_getInstance().m1h('validate'))) {
1455
1259
  // Inline function 'community.flock.wirespec.ir.core.transform' call
1456
- var this_0 = element.d1k(VOID, VOID, listOf(get_selfParam()));
1260
+ var this_0 = element.b1k(VOID, VOID, listOf(get_selfParam()));
1457
1261
  var scope = new TransformScope(this_0);
1458
- scope.j1u(RustIrEmitter$injectSelfReceiver$lambda$lambda($fieldNames));
1459
- var tmp_1 = scope.a1u_1;
1262
+ scope.i1u(RustIrEmitter$injectSelfReceiver$lambda$lambda($fieldNames));
1263
+ var tmp_1 = scope.z1t_1;
1460
1264
  tmp_0 = isInterface(tmp_1, Element) ? tmp_1 : THROW_CCE();
1461
1265
  } else {
1462
1266
  tmp_0 = element;
@@ -1472,7 +1276,7 @@ function RustIrEmitter$injectSelfReceiver$lambda($fieldNames) {
1472
1276
  function RustIrEmitter$stripWirespecPrefix$lambda(type, transformer) {
1473
1277
  var tmp;
1474
1278
  if (type instanceof Custom) {
1475
- tmp = startsWith(type.s1h_1, 'Wirespec.') ? type.k1m(removePrefix(type.s1h_1, 'Wirespec.')) : type;
1279
+ tmp = startsWith(type.q1h_1, 'Wirespec.') ? type.n1m(removePrefix(type.q1h_1, 'Wirespec.')) : type;
1476
1280
  } else {
1477
1281
  tmp = type;
1478
1282
  }
@@ -1481,147 +1285,89 @@ function RustIrEmitter$stripWirespecPrefix$lambda(type, transformer) {
1481
1285
  }
1482
1286
  function RustIrEmitter$buildValidateFunction$lambda($constraintExpr) {
1483
1287
  return function ($this$function) {
1484
- $this$function.e1j('&self', new Custom(''));
1485
- $this$function.j1i(Boolean_instance);
1486
- $this$function.l1k($constraintExpr);
1487
- return Unit_instance;
1288
+ $this$function.l1i('&self', new Custom(''));
1289
+ $this$function.k1i(Boolean_instance);
1290
+ $this$function.j1k($constraintExpr);
1291
+ return Unit_instance_0;
1488
1292
  };
1489
1293
  }
1490
1294
  function RustIrEmitter$buildToStringFunction$lambda($expr) {
1491
1295
  return function ($this$function) {
1492
- $this$function.e1j('&self', new Custom(''));
1493
- $this$function.j1i(String_instance);
1494
- $this$function.l1k(new RawExpression($expr));
1495
- return Unit_instance;
1296
+ $this$function.l1i('&self', new Custom(''));
1297
+ $this$function.k1i(String_instance);
1298
+ $this$function.j1k(new RawExpression($expr));
1299
+ return Unit_instance_0;
1496
1300
  };
1497
1301
  }
1498
1302
  function RustIrEmitter$buildClientParams$lambda(this$0) {
1499
1303
  return function (_destruct__k2r9zo) {
1500
- var name = _destruct__k2r9zo.oe();
1501
- var type = _destruct__k2r9zo.pe();
1502
- return sanitizeKeywords(this$0, name.v1l()) + ': ' + toRustTypeString(this$0, type);
1304
+ var name = _destruct__k2r9zo.ne();
1305
+ var type = _destruct__k2r9zo.oe();
1306
+ var tmp = sanitizeKeywords(this$0, name.y1l());
1307
+ // Inline function 'kotlin.with' call
1308
+ return tmp + ': ' + RustTransform_getInstance().x1z(type);
1503
1309
  };
1504
1310
  }
1505
1311
  function RustIrEmitter$buildClientParams$lambda_0(this$0) {
1506
1312
  return function (_destruct__k2r9zo) {
1507
- var name = _destruct__k2r9zo.oe();
1508
- return sanitizeKeywords(this$0, name.v1l());
1509
- };
1510
- }
1511
- function RustIrEmitter$toRawCode$lambda(this$0) {
1512
- return function (it) {
1513
- return it.m1().v1l() + ': ' + toRawCode(this$0, it.n1());
1514
- };
1515
- }
1516
- function RustIrEmitter$borrowSerializationArgs$lambda(this$0) {
1517
- return function (s, t) {
1518
- var tmp;
1519
- var tmp_0;
1520
- if (s instanceof FunctionCall) {
1521
- tmp_0 = this$0.s1z_1.h1(s.y1l_1.v1l());
1522
- } else {
1523
- tmp_0 = false;
1524
- }
1525
- if (tmp_0) {
1526
- // Inline function 'kotlin.collections.mapIndexed' call
1527
- var this_0 = s.z1l_1.l1();
1528
- // Inline function 'kotlin.collections.mapIndexedTo' call
1529
- var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
1530
- var index = 0;
1531
- var _iterator__ex2g4s = this_0.t();
1532
- while (_iterator__ex2g4s.u()) {
1533
- var item = _iterator__ex2g4s.v();
1534
- var _unary__edvuaz = index;
1535
- index = _unary__edvuaz + 1 | 0;
1536
- var idx = checkIndexOverflow(_unary__edvuaz);
1537
- // Inline function 'kotlin.collections.component1' call
1538
- var key = item.m1();
1539
- // Inline function 'kotlin.collections.component2' call
1540
- var value = item.n1();
1541
- var transformed = t.v1t(value);
1542
- var tmp_1;
1543
- var tmp_2;
1544
- if (idx === 0) {
1545
- var tmp_3;
1546
- if (transformed instanceof VariableReference) {
1547
- tmp_3 = transformed.w1o_1.u1h() === 'it';
1548
- } else {
1549
- tmp_3 = false;
1550
- }
1551
- tmp_2 = !tmp_3;
1552
- } else {
1553
- tmp_2 = false;
1554
- }
1555
- if (tmp_2) {
1556
- tmp_1 = to(key, toBorrowedRaw(this$0, transformed));
1557
- } else {
1558
- tmp_1 = to(key, transformed);
1559
- }
1560
- var tmp$ret$2 = tmp_1;
1561
- destination.x(tmp$ret$2);
1562
- }
1563
- var newArgs = toMap(destination);
1564
- tmp = s.c1m(VOID, VOID, VOID, newArgs);
1565
- } else {
1566
- tmp = transformChildren_0(s, t);
1567
- }
1568
- return tmp;
1313
+ var name = _destruct__k2r9zo.ne();
1314
+ return sanitizeKeywords(this$0, name.y1l());
1569
1315
  };
1570
1316
  }
1571
1317
  function RustIrEmitter$fixResponseSwitchPatterns$lambda(s, t) {
1572
1318
  var tmp;
1573
1319
  var tmp_0;
1574
1320
  if (s instanceof Switch) {
1575
- var tmp0_safe_receiver = s.q1p_1;
1576
- tmp_0 = (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.t1l()) === 'r';
1321
+ var tmp0_safe_receiver = s.p1p_1;
1322
+ tmp_0 = (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.r1l()) === 'r';
1577
1323
  } else {
1578
1324
  tmp_0 = false;
1579
1325
  }
1580
1326
  if (tmp_0) {
1581
1327
  // Inline function 'kotlin.collections.map' call
1582
- var this_0 = s.o1p_1;
1328
+ var this_0 = s.n1p_1;
1583
1329
  // Inline function 'kotlin.collections.mapTo' call
1584
1330
  var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
1585
1331
  var _iterator__ex2g4s = this_0.t();
1586
1332
  while (_iterator__ex2g4s.u()) {
1587
1333
  var item = _iterator__ex2g4s.v();
1588
- var tmp_1 = item.b1q_1;
1334
+ var tmp_1 = item.a1q_1;
1589
1335
  var tmp0_safe_receiver_0 = tmp_1 instanceof Custom ? tmp_1 : null;
1590
- var typeName = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.s1h_1;
1336
+ var typeName = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.q1h_1;
1591
1337
  var tmp_2;
1592
1338
  if (!(typeName == null) && get_RESPONSE_PATTERN().nc(typeName)) {
1593
- var tmp_3 = new RawExpression('Response::' + typeName + '(' + ensureNotNull(s.q1p_1).v1l() + ')');
1339
+ var tmp_3 = new RawExpression('Response::' + typeName + '(' + ensureNotNull(s.p1p_1).y1l() + ')');
1594
1340
  // Inline function 'kotlin.collections.map' call
1595
- var this_1 = item.a1q_1;
1341
+ var this_1 = item.z1p_1;
1596
1342
  // Inline function 'kotlin.collections.mapTo' call
1597
1343
  var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
1598
1344
  var _iterator__ex2g4s_0 = this_1.t();
1599
1345
  while (_iterator__ex2g4s_0.u()) {
1600
1346
  var item_0 = _iterator__ex2g4s_0.v();
1601
- var tmp$ret$0 = t.u1t(item_0);
1347
+ var tmp$ret$0 = t.t1t(item_0);
1602
1348
  destination_0.x(tmp$ret$0);
1603
1349
  }
1604
1350
  tmp_2 = new Case(tmp_3, destination_0, null);
1605
1351
  } else {
1606
- var tmp_4 = t.v1t(item.z1p_1);
1352
+ var tmp_4 = t.u1t(item.y1p_1);
1607
1353
  // Inline function 'kotlin.collections.map' call
1608
- var this_2 = item.a1q_1;
1354
+ var this_2 = item.z1p_1;
1609
1355
  // Inline function 'kotlin.collections.mapTo' call
1610
1356
  var destination_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_2, 10));
1611
1357
  var _iterator__ex2g4s_1 = this_2.t();
1612
1358
  while (_iterator__ex2g4s_1.u()) {
1613
1359
  var item_1 = _iterator__ex2g4s_1.v();
1614
- var tmp$ret$3 = t.u1t(item_1);
1360
+ var tmp$ret$3 = t.t1t(item_1);
1615
1361
  destination_1.x(tmp$ret$3);
1616
1362
  }
1617
1363
  var tmp_5 = destination_1;
1618
- var tmp1_safe_receiver = item.b1q_1;
1364
+ var tmp1_safe_receiver = item.a1q_1;
1619
1365
  var tmp_6;
1620
1366
  if (tmp1_safe_receiver == null) {
1621
1367
  tmp_6 = null;
1622
1368
  } else {
1623
1369
  // Inline function 'kotlin.let' call
1624
- tmp_6 = t.s1t(tmp1_safe_receiver);
1370
+ tmp_6 = t.r1t(tmp1_safe_receiver);
1625
1371
  }
1626
1372
  tmp_2 = new Case(tmp_4, tmp_5, tmp_6);
1627
1373
  }
@@ -1629,7 +1375,7 @@ function RustIrEmitter$fixResponseSwitchPatterns$lambda(s, t) {
1629
1375
  destination.x(tmp$ret$8);
1630
1376
  }
1631
1377
  var transformedCases = destination;
1632
- tmp = s.s1p(t.v1t(s.n1p_1), transformedCases, null);
1378
+ tmp = s.r1p(t.u1t(s.m1p_1), transformedCases, null);
1633
1379
  } else {
1634
1380
  tmp = transformChildren_0(s, t);
1635
1381
  }
@@ -1638,25 +1384,25 @@ function RustIrEmitter$fixResponseSwitchPatterns$lambda(s, t) {
1638
1384
  function RustIrEmitter$fixConstructorCalls$lambda(s, t) {
1639
1385
  var tmp;
1640
1386
  if (s instanceof ConstructorStatement) {
1641
- var tmp_0 = s.m1m_1;
1387
+ var tmp_0 = s.p1m_1;
1642
1388
  var tmp0_safe_receiver = tmp_0 instanceof Custom ? tmp_0 : null;
1643
- var typeName = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.s1h_1;
1389
+ var typeName = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.q1h_1;
1644
1390
  // Inline function 'kotlin.collections.mapValues' call
1645
- var this_0 = s.n1m_1;
1391
+ var this_0 = s.q1m_1;
1646
1392
  // Inline function 'kotlin.collections.mapValuesTo' call
1647
1393
  var destination = LinkedHashMap_init_$Create$(mapCapacity(this_0.a1()));
1648
1394
  // Inline function 'kotlin.collections.associateByTo' call
1649
- var _iterator__ex2g4s = this_0.l1().t();
1395
+ var _iterator__ex2g4s = this_0.j1().t();
1650
1396
  while (_iterator__ex2g4s.u()) {
1651
1397
  var element = _iterator__ex2g4s.v();
1652
- var tmp_1 = element.m1();
1653
- var tmp$ret$1 = t.v1t(element.n1());
1654
- destination.x2(tmp_1, tmp$ret$1);
1398
+ var tmp_1 = element.k1();
1399
+ var tmp$ret$1 = t.u1t(element.l1());
1400
+ destination.w2(tmp_1, tmp$ret$1);
1655
1401
  }
1656
1402
  var transformedArgs = destination;
1657
1403
  var tmp_2;
1658
1404
  if (!(typeName == null) && get_RESPONSE_PATTERN().nc(typeName)) {
1659
- tmp_2 = new FunctionCall(VOID, VOID, new Name(listOf('Response::' + typeName)), mapOf_0(to(Companion_getInstance().o1h('inner'), new FunctionCall(VOID, VOID, new Name(listOf(typeName + '::new')), transformedArgs))));
1405
+ tmp_2 = new FunctionCall(VOID, VOID, new Name(listOf('Response::' + typeName)), mapOf_0(to(Companion_getInstance().m1h('inner'), new FunctionCall(VOID, VOID, new Name(listOf(typeName + '::new')), transformedArgs))));
1660
1406
  } else if (typeName === 'Request') {
1661
1407
  tmp_2 = new FunctionCall(VOID, VOID, new Name(listOf('Request::new')), transformedArgs);
1662
1408
  } else {
@@ -1671,7 +1417,7 @@ function RustIrEmitter$fixConstructorCalls$lambda(s, t) {
1671
1417
  function RustIrEmitter$stripHandlerExtends$lambda(element, transformer) {
1672
1418
  var tmp;
1673
1419
  if (element instanceof Interface) {
1674
- tmp = element.o1o_1.equals(Companion_getInstance().o1h('Handler')) || element.o1o_1.equals(Companion_getInstance().o1h('Call')) ? element.v1o(VOID, VOID, emptyList()) : element;
1420
+ tmp = element.m1o_1.equals(Companion_getInstance().m1h('Handler')) || element.m1o_1.equals(Companion_getInstance().m1h('Call')) ? element.t1o(VOID, VOID, emptyList()) : element;
1675
1421
  } else {
1676
1422
  tmp = element;
1677
1423
  }
@@ -1683,14 +1429,14 @@ function RustIrEmitter$stripResponseGenerics$lambda(type, transformer) {
1683
1429
  if (type instanceof Custom) {
1684
1430
  var tmp_0;
1685
1431
  var tmp_1;
1686
- if (startsWith(type.s1h_1, 'Response')) {
1432
+ if (startsWith(type.q1h_1, 'Response')) {
1687
1433
  // Inline function 'kotlin.collections.isNotEmpty' call
1688
- tmp_1 = !type.t1h_1.r();
1434
+ tmp_1 = !type.r1h_1.r();
1689
1435
  } else {
1690
1436
  tmp_1 = false;
1691
1437
  }
1692
1438
  if (tmp_1) {
1693
- tmp_0 = type.k1m(VOID, emptyList());
1439
+ tmp_0 = type.n1m(VOID, emptyList());
1694
1440
  } else {
1695
1441
  tmp_0 = type;
1696
1442
  }
@@ -1705,20 +1451,20 @@ function RustIrEmitter$injectSelfToHandlerMethods$lambda(element, transformer) {
1705
1451
  var tmp;
1706
1452
  if (element instanceof Interface) {
1707
1453
  var tmp_0;
1708
- if (element.o1o_1.equals(Companion_getInstance().o1h('Handler')) || element.o1o_1.equals(Companion_getInstance().o1h('Call'))) {
1454
+ if (element.m1o_1.equals(Companion_getInstance().m1h('Handler')) || element.m1o_1.equals(Companion_getInstance().m1h('Call'))) {
1709
1455
  // Inline function 'community.flock.wirespec.ir.core.transform' call
1710
1456
  var scope = new TransformScope(element);
1711
1457
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
1712
1458
  var tmp_1 = scope;
1713
1459
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1714
- var this_0 = scope.a1u_1;
1460
+ var this_0 = scope.z1t_1;
1715
1461
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1716
1462
  // Inline function 'kotlin.apply' call
1717
1463
  var this_1 = new TransformerBuilder();
1718
- this_1.f1h(RustIrEmitter$injectSelfToHandlerMethods$lambda$lambda);
1719
- var tmp$ret$2 = this_1.g1h();
1720
- tmp_1.a1u_1 = transform(this_0, tmp$ret$2);
1721
- var tmp_2 = scope.a1u_1;
1464
+ this_1.d1h(RustIrEmitter$injectSelfToHandlerMethods$lambda$lambda);
1465
+ var tmp$ret$2 = this_1.e1h();
1466
+ tmp_1.z1t_1 = transform(this_0, tmp$ret$2);
1467
+ var tmp_2 = scope.z1t_1;
1722
1468
  tmp_0 = isInterface(tmp_2, Element) ? tmp_2 : THROW_CCE();
1723
1469
  } else {
1724
1470
  tmp_0 = element;
@@ -1733,7 +1479,7 @@ function RustIrEmitter$injectSelfToHandlerMethods$lambda(element, transformer) {
1733
1479
  function RustIrEmitter$injectSelfToHandlerMethods$lambda$lambda(element, transformer) {
1734
1480
  var tmp;
1735
1481
  if (element instanceof Function) {
1736
- tmp = element.d1k(Companion_getInstance().o1h(element.v1j_1.v1l()), VOID, plus(listOf(get_selfParam()), element.x1j_1));
1482
+ tmp = element.b1k(Companion_getInstance().m1h(element.t1j_1.y1l()), VOID, plus(listOf(get_selfParam()), element.v1j_1));
1737
1483
  } else {
1738
1484
  tmp = element;
1739
1485
  }
@@ -1744,7 +1490,7 @@ function RustIrEmitter$injectHandlerImplForClient$lambda(element, transformer) {
1744
1490
  var tmp;
1745
1491
  if (element instanceof Namespace) {
1746
1492
  // Inline function 'kotlin.collections.filterIsInstance' call
1747
- var tmp0 = element.b1n_1;
1493
+ var tmp0 = element.a1n_1;
1748
1494
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
1749
1495
  var destination = ArrayList_init_$Create$();
1750
1496
  var _iterator__ex2g4s = tmp0.t();
@@ -1760,7 +1506,7 @@ function RustIrEmitter$injectHandlerImplForClient$lambda(element, transformer) {
1760
1506
  var _iterator__ex2g4s_0 = destination.t();
1761
1507
  while (_iterator__ex2g4s_0.u()) {
1762
1508
  var element_1 = _iterator__ex2g4s_0.v();
1763
- if (element_1.o1o_1.equals(Companion_getInstance().o1h('Handler'))) {
1509
+ if (element_1.m1o_1.equals(Companion_getInstance().m1h('Handler'))) {
1764
1510
  tmp$ret$3 = element_1;
1765
1511
  break $l$block;
1766
1512
  }
@@ -1771,7 +1517,7 @@ function RustIrEmitter$injectHandlerImplForClient$lambda(element, transformer) {
1771
1517
  var tmp_0;
1772
1518
  if (!(handler == null)) {
1773
1519
  // Inline function 'kotlin.collections.filterIsInstance' call
1774
- var tmp0_0 = handler.p1o_1;
1520
+ var tmp0_0 = handler.n1o_1;
1775
1521
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
1776
1522
  var destination_0 = ArrayList_init_$Create$();
1777
1523
  var _iterator__ex2g4s_1 = tmp0_0.t();
@@ -1784,8 +1530,8 @@ function RustIrEmitter$injectHandlerImplForClient$lambda(element, transformer) {
1784
1530
  var method = firstOrNull_0(destination_0);
1785
1531
  var tmp_1;
1786
1532
  if (!(method == null)) {
1787
- var methodName = method.v1j_1.v1l();
1788
- tmp_1 = element.e1n(VOID, plus(element.b1n_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 ')))));
1533
+ var methodName = method.t1j_1.y1l();
1534
+ tmp_1 = element.d1n(VOID, plus(element.a1n_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 ')))));
1789
1535
  } else {
1790
1536
  tmp_1 = element;
1791
1537
  }
@@ -1804,7 +1550,7 @@ function RustIrEmitter$injectResponseFromImpls$lambda(element, transformer) {
1804
1550
  var tmp;
1805
1551
  if (element instanceof File) {
1806
1552
  // Inline function 'kotlin.collections.flatMap' call
1807
- var tmp0 = element.r1m_1;
1553
+ var tmp0 = element.u1m_1;
1808
1554
  // Inline function 'kotlin.collections.flatMapTo' call
1809
1555
  var destination = ArrayList_init_$Create$();
1810
1556
  var _iterator__ex2g4s = tmp0.t();
@@ -1814,26 +1560,26 @@ function RustIrEmitter$injectResponseFromImpls$lambda(element, transformer) {
1814
1560
  var tmp_1;
1815
1561
  var tmp_2;
1816
1562
  if (element_0 instanceof Union) {
1817
- tmp_2 = element_0.e1q_1.u1l() === 'Response';
1563
+ tmp_2 = element_0.d1q_1.x1l() === 'Response';
1818
1564
  } else {
1819
1565
  tmp_2 = false;
1820
1566
  }
1821
1567
  if (tmp_2) {
1822
1568
  // Inline function 'kotlin.collections.isNotEmpty' call
1823
- tmp_1 = !element_0.g1q_1.r();
1569
+ tmp_1 = !element_0.f1q_1.r();
1824
1570
  } else {
1825
1571
  tmp_1 = false;
1826
1572
  }
1827
1573
  if (tmp_1) {
1828
1574
  var tmp_3 = listOf(element_0);
1829
1575
  // Inline function 'kotlin.collections.map' call
1830
- var this_0 = element_0.g1q_1;
1576
+ var this_0 = element_0.f1q_1;
1831
1577
  // Inline function 'kotlin.collections.mapTo' call
1832
1578
  var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
1833
1579
  var _iterator__ex2g4s_0 = this_0.t();
1834
1580
  while (_iterator__ex2g4s_0.u()) {
1835
1581
  var item = _iterator__ex2g4s_0.v();
1836
- var tmp$ret$1 = new RawElement('impl From<' + item.s1h_1 + '> for Response { fn from(value: ' + item.s1h_1 + ') -> Self { Response::' + item.s1h_1 + '(value) } }\n');
1582
+ var tmp$ret$1 = new RawElement('impl From<' + item.q1h_1 + '> for Response { fn from(value: ' + item.q1h_1 + ') -> Self { Response::' + item.q1h_1 + '(value) } }\n');
1837
1583
  destination_0.x(tmp$ret$1);
1838
1584
  }
1839
1585
  tmp_0 = plus(tmp_3, destination_0);
@@ -1843,7 +1589,7 @@ function RustIrEmitter$injectResponseFromImpls$lambda(element, transformer) {
1843
1589
  var list = tmp_0;
1844
1590
  addAll(destination, list);
1845
1591
  }
1846
- tmp = element.u1m(VOID, destination);
1592
+ tmp = element.x1m(VOID, destination);
1847
1593
  } else {
1848
1594
  tmp = element;
1849
1595
  }
@@ -1853,10 +1599,10 @@ function RustIrEmitter$injectResponseFromImpls$lambda(element, transformer) {
1853
1599
  function RustIrEmitter$generateApiStruct$lambda(segment) {
1854
1600
  var tmp;
1855
1601
  if (segment instanceof Literal_0) {
1856
- tmp = segment.jq_1;
1602
+ tmp = segment.hq_1;
1857
1603
  } else {
1858
1604
  if (segment instanceof Param) {
1859
- tmp = '{' + segment.np_1.n1() + '}';
1605
+ tmp = '{' + segment.lp_1.l1() + '}';
1860
1606
  } else {
1861
1607
  noWhenBranchMatchedException();
1862
1608
  }
@@ -1865,42 +1611,41 @@ function RustIrEmitter$generateApiStruct$lambda(segment) {
1865
1611
  }
1866
1612
  function RustIrEmitter(packageName, emitShared) {
1867
1613
  Companion_getInstance_0();
1868
- packageName = packageName === VOID ? Companion_instance_0.nr('community.flock.wirespec.generated') : packageName;
1869
- emitShared = emitShared === VOID ? Companion_instance_1.io() : emitShared;
1870
- this.k1z_1 = packageName;
1871
- this.l1z_1 = emitShared;
1872
- this.m1z_1 = RustGenerator_instance;
1873
- this.n1z_1 = FileExtension_Rust_getInstance();
1614
+ packageName = packageName === VOID ? Companion_instance_0.lr('community.flock.wirespec.generated') : packageName;
1615
+ emitShared = emitShared === VOID ? Companion_instance_1.go() : emitShared;
1616
+ this.g1z_1 = packageName;
1617
+ this.h1z_1 = emitShared;
1618
+ this.i1z_1 = RustGenerator_instance;
1619
+ this.j1z_1 = FileExtension_Rust_getInstance();
1874
1620
  var tmp = this;
1875
- tmp.o1z_1 = lazy(RustIrEmitter$sanitizationConfig$delegate$lambda(this));
1876
- this.p1z_1 = 'use super::super::wirespec::*;\nuse regex;\n';
1877
- this.q1z_1 = 'use super::super::wirespec::*;\nuse regex;\n';
1621
+ tmp.k1z_1 = lazy(RustIrEmitter$sanitizationConfig$delegate$lambda(this));
1622
+ this.l1z_1 = listOf_0([import_0('super::super::wirespec', '*'), import_0('', 'regex')]);
1623
+ this.m1z_1 = listOf_0([import_0('super::super::wirespec', '*'), import_0('', 'regex')]);
1878
1624
  var tmp_0 = this;
1879
- tmp_0.r1z_1 = new RustIrEmitter$shared$1();
1880
- this.s1z_1 = setOf(['serialize_path', 'serialize_param', 'serialize_body', 'deserialize_path', 'deserialize_param', 'deserialize_body']);
1625
+ tmp_0.n1z_1 = new RustIrEmitter$shared$1();
1881
1626
  }
1882
- protoOf(RustIrEmitter).n1u = function () {
1883
- return this.m1z_1;
1627
+ protoOf(RustIrEmitter).m1u = function () {
1628
+ return this.i1z_1;
1884
1629
  };
1885
- protoOf(RustIrEmitter).gq = function () {
1886
- return this.n1z_1;
1630
+ protoOf(RustIrEmitter).eq = function () {
1631
+ return this.j1z_1;
1887
1632
  };
1888
- protoOf(RustIrEmitter).u1v = function () {
1889
- return this.r1z_1;
1633
+ protoOf(RustIrEmitter).t1v = function () {
1634
+ return this.n1z_1;
1890
1635
  };
1891
- protoOf(RustIrEmitter).o1u = function (module_0, logger) {
1636
+ protoOf(RustIrEmitter).n1u = function (module_0, logger) {
1892
1637
  // Inline function 'kotlin.collections.sortedBy' call
1893
- var this_0 = new NonEmptyList(module_0.fq_1);
1638
+ var this_0 = new NonEmptyList(module_0.dq_1);
1894
1639
  // Inline function 'kotlin.comparisons.compareBy' call
1895
1640
  var tmp = RustIrEmitter$emit$lambda(this);
1896
1641
  var tmp$ret$0 = new sam$kotlin_Comparator$0(tmp);
1897
1642
  var tmp$ret$1 = sortedWith(this_0, tmp$ret$0);
1898
1643
  var tmp_0 = toNonEmptyListOrNull(tmp$ret$1);
1899
- var statements = ensureNotNull(tmp_0 == null ? null : new NonEmptyList(tmp_0)).am_1;
1644
+ var statements = ensureNotNull(tmp_0 == null ? null : new NonEmptyList(tmp_0)).yl_1;
1900
1645
  // Inline function 'kotlin.let' call
1901
- var files = emit.call(this, module_0.yu(VOID, statements), logger);
1646
+ var files = emit.call(this, module_0.wu(VOID, statements), logger);
1902
1647
  // Inline function 'kotlin.collections.filterIsInstance' call
1903
- var tmp0 = new NonEmptyList(module_0.fq_1);
1648
+ var tmp0 = new NonEmptyList(module_0.dq_1);
1904
1649
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
1905
1650
  var destination = ArrayList_init_$Create$();
1906
1651
  var _iterator__ex2g4s = tmp0.t();
@@ -1920,11 +1665,11 @@ protoOf(RustIrEmitter).o1u = function (module_0, logger) {
1920
1665
  tmp_1 = '';
1921
1666
  }
1922
1667
  var clientMod = tmp_1;
1923
- var modRs = new File(Companion_getInstance().o1h(this.k1z_1.qr() + 'mod'), listOf(new RawElement('#![allow(warnings)]\npub mod model;\npub mod endpoint;' + clientMod + '\npub mod wirespec;')));
1924
- var modEndpoint = new File(Companion_getInstance().o1h(this.k1z_1.qr() + 'endpoint/' + 'mod'), listOf(new RawElement(endpointMods)));
1925
- var tmp_2 = Companion_getInstance().o1h(this.k1z_1.qr() + 'model/' + 'mod');
1668
+ var modRs = new File(Companion_getInstance().m1h(this.g1z_1.or() + 'mod'), listOf(new RawElement('#![allow(warnings)]\npub mod model;\npub mod endpoint;' + clientMod + '\npub mod wirespec;')));
1669
+ var modEndpoint = new File(Companion_getInstance().m1h(this.g1z_1.or() + 'endpoint/' + 'mod'), listOf(new RawElement(endpointMods)));
1670
+ var tmp_2 = Companion_getInstance().m1h(this.g1z_1.or() + 'model/' + 'mod');
1926
1671
  // Inline function 'kotlin.collections.filterIsInstance' call
1927
- var tmp0_0 = new NonEmptyList(module_0.fq_1);
1672
+ var tmp0_0 = new NonEmptyList(module_0.dq_1);
1928
1673
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
1929
1674
  var destination_0 = ArrayList_init_$Create$();
1930
1675
  var _iterator__ex2g4s_0 = tmp0_0.t();
@@ -1936,148 +1681,138 @@ protoOf(RustIrEmitter).o1u = function (module_0, logger) {
1936
1681
  }
1937
1682
  var tmp_3 = destination_0;
1938
1683
  var modModel = new File(tmp_2, listOf(new RawElement(joinToString(tmp_3, '\n', VOID, VOID, VOID, VOID, RustIrEmitter$emit$lambda_1(this)))));
1939
- var shared = new File(Companion_getInstance().o1h(this.k1z_1.qr() + 'wirespec'), listOf(new RawElement(this.u1v().s1w())));
1940
- return this.l1z_1.jo_1 ? NonEmptyList__plus_impl_xqmb9(NonEmptyList__plus_impl_xqmb9(NonEmptyList__plus_impl_xqmb9(NonEmptyList__plus_impl_xqmb9(files, modRs), modEndpoint), modModel), shared) : NonEmptyList__plus_impl_xqmb9(files, modRs);
1684
+ var shared = new File(Companion_getInstance().m1h(this.g1z_1.or() + 'wirespec'), listOf(new RawElement(this.t1v().r1w())));
1685
+ return this.h1z_1.ho_1 ? NonEmptyList__plus_impl_xqmb9(NonEmptyList__plus_impl_xqmb9(NonEmptyList__plus_impl_xqmb9(NonEmptyList__plus_impl_xqmb9(files, modRs), modEndpoint), modModel), shared) : NonEmptyList__plus_impl_xqmb9(files, modRs);
1941
1686
  };
1942
- protoOf(RustIrEmitter).wq = function (definition, module_0, logger) {
1943
- var subPackageName = plus_1(this.k1z_1, definition);
1687
+ protoOf(RustIrEmitter).uq = function (definition, module_0, logger) {
1688
+ var subPackageName = plus_1(this.g1z_1, definition);
1944
1689
  var tmp;
1945
1690
  if (definition instanceof Endpoint) {
1946
- tmp = this.q1z_1;
1691
+ tmp = this.m1z_1;
1947
1692
  } else {
1948
- tmp = this.p1z_1;
1693
+ tmp = this.l1z_1;
1949
1694
  }
1950
1695
  var importHeader = tmp;
1951
- var file = emit_0.call(this, definition, module_0, logger);
1952
- var tmp_0 = Companion_getInstance().o1h(subPackageName.qr() + toSnakeCase(this, file.q1m_1.u1l()));
1953
- var tmp_1 = listOf(new RawElement(importHeader));
1696
+ var tmp0 = emit_0.call(this, definition, module_0, logger);
1697
+ // Inline function 'kotlin.let' call
1698
+ var file = RustTransform_getInstance().w1z(tmp0);
1699
+ var tmp_0 = Companion_getInstance().m1h(subPackageName.or() + toSnakeCase(this, file.t1m_1.x1l()));
1954
1700
  // Inline function 'kotlin.collections.flatMap' call
1955
- var tmp0 = file.r1m_1;
1701
+ var tmp0_0 = file.u1m_1;
1956
1702
  // Inline function 'kotlin.collections.flatMapTo' call
1957
1703
  var destination = ArrayList_init_$Create$();
1958
- var _iterator__ex2g4s = tmp0.t();
1704
+ var _iterator__ex2g4s = tmp0_0.t();
1959
1705
  while (_iterator__ex2g4s.u()) {
1960
1706
  var element = _iterator__ex2g4s.v();
1961
- var tmp_2;
1707
+ var tmp_1;
1962
1708
  if (element instanceof Struct) {
1963
- tmp_2 = listOf_0([new RawElement('#[derive(Debug, Clone, Default, PartialEq)]'), element]);
1709
+ tmp_1 = listOf_0([new RawElement('#[derive(Debug, Clone, Default, PartialEq)]'), element]);
1964
1710
  } else {
1965
- tmp_2 = listOf(element);
1711
+ tmp_1 = listOf(element);
1966
1712
  }
1967
- var list = tmp_2;
1713
+ var list = tmp_1;
1968
1714
  addAll(destination, list);
1969
1715
  }
1970
- return new File(tmp_0, plus(tmp_1, destination));
1716
+ return new File(tmp_0, plus(importHeader, destination));
1971
1717
  };
1972
- protoOf(RustIrEmitter).wp = function (type, module_0) {
1718
+ protoOf(RustIrEmitter).up = function (type, module_0) {
1973
1719
  var tmp = convertWithValidation(type, module_0);
1974
1720
  // Inline function 'kotlin.collections.map' call
1975
- var this_0 = type.yo_1.uo_1;
1721
+ var this_0 = type.wo_1.so_1;
1976
1722
  // Inline function 'kotlin.collections.mapTo' call
1977
1723
  var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
1978
1724
  var _iterator__ex2g4s = this_0.t();
1979
1725
  while (_iterator__ex2g4s.u()) {
1980
1726
  var item = _iterator__ex2g4s.v();
1981
- var tmp$ret$0 = item.cp_1.n1();
1727
+ var tmp$ret$0 = item.ap_1.l1();
1982
1728
  destination.x(tmp$ret$0);
1983
1729
  }
1984
1730
  return prependImports(this, sanitizeNames(injectSelfReceiver(this, tmp, toSet(destination)), _get_sanitizationConfig__sns434(this)), buildModelImports(this, type));
1985
1731
  };
1986
- protoOf(RustIrEmitter).kr = function (enum_0, module_0) {
1732
+ protoOf(RustIrEmitter).ir = function (enum_0, module_0) {
1987
1733
  // Inline function 'community.flock.wirespec.ir.core.transform' call
1988
1734
  var this_0 = convert_0(enum_0);
1989
1735
  var scope = new TransformScope(this_0);
1990
1736
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
1991
1737
  var tmp = scope;
1992
1738
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1993
- var this_1 = scope.a1u_1;
1739
+ var this_1 = scope.z1t_1;
1994
1740
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1995
1741
  // Inline function 'kotlin.apply' call
1996
1742
  var this_2 = new TransformerBuilder();
1997
- this_2.f1h(RustIrEmitter$emit$lambda_2(this));
1998
- var tmp$ret$2 = this_2.g1h();
1999
- tmp.a1u_1 = transform(this_1, tmp$ret$2);
2000
- var tmp_0 = scope.a1u_1;
1743
+ this_2.d1h(RustIrEmitter$emit$lambda_2(this));
1744
+ var tmp$ret$2 = this_2.e1h();
1745
+ tmp.z1t_1 = transform(this_1, tmp$ret$2);
1746
+ var tmp_0 = scope.z1t_1;
2001
1747
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
2002
1748
  };
2003
- protoOf(RustIrEmitter).ar = function (union) {
1749
+ protoOf(RustIrEmitter).yq = function (union) {
2004
1750
  return convert_1(union);
2005
1751
  };
2006
- protoOf(RustIrEmitter).fr = function (refined) {
1752
+ protoOf(RustIrEmitter).dr = function (refined) {
2007
1753
  // Inline function 'community.flock.wirespec.ir.core.transform' call
2008
1754
  var this_0 = convert_2(refined);
2009
1755
  var scope = new TransformScope(this_0);
2010
1756
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
2011
1757
  var tmp = scope;
2012
1758
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
2013
- var this_1 = scope.a1u_1;
1759
+ var this_1 = scope.z1t_1;
2014
1760
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
2015
1761
  // Inline function 'kotlin.apply' call
2016
1762
  var this_2 = new TransformerBuilder();
2017
- this_2.f1h(RustIrEmitter$emit$lambda_3(this, refined));
2018
- var tmp$ret$2 = this_2.g1h();
2019
- tmp.a1u_1 = transform(this_1, tmp$ret$2);
2020
- var tmp_0 = scope.a1u_1;
1763
+ this_2.d1h(RustIrEmitter$emit$lambda_3(this, refined));
1764
+ var tmp$ret$2 = this_2.e1h();
1765
+ tmp.z1t_1 = transform(this_1, tmp$ret$2);
1766
+ var tmp_0 = scope.z1t_1;
2021
1767
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
2022
1768
  };
2023
- protoOf(RustIrEmitter).lr = function (endpoint) {
1769
+ protoOf(RustIrEmitter).jr = function (endpoint) {
2024
1770
  // Inline function 'community.flock.wirespec.ir.core.transform' call
2025
1771
  var this_0 = stripWirespecPrefix(this, flattenForRust(this, convert_3(endpoint)));
2026
1772
  var scope = new TransformScope(this_0);
2027
1773
  var identifierPattern = Regex_init_$Create$('[a-zA-Z_][a-zA-Z0-9_]*');
2028
- scope.j1u(RustIrEmitter$emit$lambda_4(identifierPattern));
2029
- var tmp = scope.a1u_1;
1774
+ scope.i1u(RustIrEmitter$emit$lambda_4(identifierPattern));
1775
+ var tmp = scope.z1t_1;
2030
1776
  var tmp$ret$1 = isInterface(tmp, Element) ? tmp : THROW_CCE();
2031
1777
  // Inline function 'community.flock.wirespec.ir.core.transform' call
2032
1778
  var this_1 = stripResponseGenerics(this, stripHandlerExtends(this, tmp$ret$1));
2033
1779
  var scope_0 = new TransformScope(this_1);
2034
- scope_0.f1u(fixResponseSwitchPatterns(this));
2035
- var tmp_0 = scope_0.a1u_1;
1780
+ scope_0.e1u(fixResponseSwitchPatterns(this));
1781
+ var tmp_0 = scope_0.z1t_1;
2036
1782
  // Inline function 'community.flock.wirespec.ir.core.transform' call
2037
1783
  var this_2 = isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
2038
1784
  var scope_1 = new TransformScope(this_2);
2039
- scope_1.f1u(fixConstructorCalls(this));
2040
- var tmp_1 = scope_1.a1u_1;
1785
+ scope_1.e1u(fixConstructorCalls(this));
1786
+ var tmp_1 = scope_1.z1t_1;
1787
+ var tmp$ret$5 = isInterface(tmp_1, Element) ? tmp_1 : THROW_CCE();
2041
1788
  // Inline function 'community.flock.wirespec.ir.core.transform' call
2042
- var this_3 = isInterface(tmp_1, Element) ? tmp_1 : THROW_CCE();
1789
+ var this_3 = injectResponseFromImpls(this, injectHandlerImplForClient(this, injectSelfToHandlerMethods(this, tmp$ret$5), endpoint));
2043
1790
  var scope_2 = new TransformScope(this_3);
2044
- scope_2.f1u(borrowSerializationArgs(this));
2045
- var tmp_2 = scope_2.a1u_1;
2046
- // Inline function 'community.flock.wirespec.ir.core.transform' call
2047
- var this_4 = isInterface(tmp_2, Element) ? tmp_2 : THROW_CCE();
2048
- var scope_3 = new TransformScope(this_4);
2049
- var tmp_3 = RustIrEmitter$emit$lambda_5;
2050
- scope_3.d1u(tmp_3, RustIrEmitter$emit$lambda_6);
2051
- var tmp_4 = scope_3.a1u_1;
2052
- var tmp$ret$9 = isInterface(tmp_4, Element) ? tmp_4 : THROW_CCE();
2053
- // Inline function 'community.flock.wirespec.ir.core.transform' call
2054
- var this_5 = injectResponseFromImpls(this, injectHandlerImplForClient(this, injectSelfToHandlerMethods(this, tmp$ret$9), endpoint));
2055
- var scope_4 = new TransformScope(this_5);
2056
1791
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
2057
- var tmp_5 = scope_4;
1792
+ var tmp_2 = scope_2;
2058
1793
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
2059
- var this_6 = scope_4.a1u_1;
1794
+ var this_4 = scope_2.z1t_1;
2060
1795
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
2061
1796
  // Inline function 'kotlin.apply' call
2062
- var this_7 = new TransformerBuilder();
2063
- this_7.f1h(RustIrEmitter$emit$lambda_7(this, endpoint));
2064
- var tmp$ret$12 = this_7.g1h();
2065
- tmp_5.a1u_1 = transform(this_6, tmp$ret$12);
2066
- var tmp_6 = scope_4.a1u_1;
2067
- var tmp$ret$16 = isInterface(tmp_6, Element) ? tmp_6 : THROW_CCE();
2068
- return prependImports(this, sanitizeNames(tmp$ret$16, _get_sanitizationConfig__sns434(this)), buildEndpointImports(this, endpoint));
1797
+ var this_5 = new TransformerBuilder();
1798
+ this_5.d1h(RustIrEmitter$emit$lambda_5(this, endpoint));
1799
+ var tmp$ret$8 = this_5.e1h();
1800
+ tmp_2.z1t_1 = transform(this_4, tmp$ret$8);
1801
+ var tmp_3 = scope_2.z1t_1;
1802
+ var tmp$ret$12 = isInterface(tmp_3, Element) ? tmp_3 : THROW_CCE();
1803
+ return prependImports(this, sanitizeNames(tmp$ret$12, _get_sanitizationConfig__sns434(this)), buildEndpointImports(this, endpoint));
2069
1804
  };
2070
- protoOf(RustIrEmitter).zq = function (channel) {
1805
+ protoOf(RustIrEmitter).xq = function (channel) {
2071
1806
  return convert_4(channel);
2072
1807
  };
2073
- protoOf(RustIrEmitter).r1u = function (endpoint) {
2074
- var endpointName = endpoint.gp_1.n1();
1808
+ protoOf(RustIrEmitter).q1u = function (endpoint) {
1809
+ var endpointName = endpoint.ep_1.l1();
2075
1810
  var endpointModuleName = toSnakeCase(this, endpointName);
2076
1811
  var clientName = endpointName + 'Client';
2077
1812
  var methodName = toSnakeCase(this, endpointName);
2078
1813
  var _destruct__k2r9zo = buildClientParams(this, endpoint);
2079
- var paramsStr = _destruct__k2r9zo.oe();
2080
- var requestArgs = _destruct__k2r9zo.pe();
1814
+ var paramsStr = _destruct__k2r9zo.ne();
1815
+ var requestArgs = _destruct__k2r9zo.oe();
2081
1816
  var requestConstruction = endpointModuleName + '::Request::new(' + requestArgs + ')';
2082
1817
  // Inline function 'kotlin.collections.distinctBy' call
2083
1818
  var this_0 = importReferences(endpoint);
@@ -2086,24 +1821,26 @@ protoOf(RustIrEmitter).r1u = function (endpoint) {
2086
1821
  var _iterator__ex2g4s = this_0.t();
2087
1822
  while (_iterator__ex2g4s.u()) {
2088
1823
  var e = _iterator__ex2g4s.v();
2089
- var key = e.nu_1;
1824
+ var key = e.lu_1;
2090
1825
  if (set.x(key)) {
2091
1826
  list.x(e);
2092
1827
  }
2093
1828
  }
2094
- var tmp = list;
2095
- var imports = joinToString(tmp, '\n', VOID, VOID, VOID, VOID, RustIrEmitter$emitEndpointClient$lambda(this));
1829
+ // Inline function 'kotlin.collections.map' call
1830
+ // Inline function 'kotlin.collections.mapTo' call
1831
+ var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(list, 10));
1832
+ var _iterator__ex2g4s_0 = list.t();
1833
+ while (_iterator__ex2g4s_0.u()) {
1834
+ var item = _iterator__ex2g4s_0.v();
1835
+ var tmp$ret$2 = import_0('super::super::model::' + toSnakeCase(this, item.lu_1), item.lu_1);
1836
+ destination.x(tmp$ret$2);
1837
+ }
1838
+ var modelImports = destination;
2096
1839
  var namespacePath = endpointModuleName + '::' + endpointName;
2097
1840
  // Inline function 'kotlin.collections.buildList' call
2098
1841
  // Inline function 'kotlin.collections.buildListInternal' call
2099
1842
  // Inline function 'kotlin.apply' call
2100
1843
  var this_1 = ArrayList_init_$Create$();
2101
- this_1.x('use super::super::wirespec::*;');
2102
- this_1.x('use super::super::endpoint::' + endpointModuleName + ';');
2103
- // Inline function 'kotlin.text.isNotEmpty' call
2104
- if (charSequenceLength(imports) > 0) {
2105
- this_1.x(imports);
2106
- }
2107
1844
  this_1.x('pub struct ' + clientName + "<'a, S: Serialization, T: Transportation> {");
2108
1845
  this_1.x(" pub serialization: &'a S,");
2109
1846
  this_1.x(" pub transportation: &'a T,");
@@ -2116,13 +1853,23 @@ protoOf(RustIrEmitter).r1u = function (endpoint) {
2116
1853
  this_1.x(' ' + namespacePath + '::from_raw_response(self.serialization, raw_response)');
2117
1854
  this_1.x(' }');
2118
1855
  this_1.x('}');
2119
- var tmp$ret$6 = this_1.o5();
2120
- var code = joinToString(tmp$ret$6, '\n');
2121
- var subPackageName = plus_2(this.k1z_1, 'client');
2122
- return new File(Companion_getInstance().o1h(subPackageName.qr() + toSnakeCase(this, clientName)), listOf(new RawElement(code)));
1856
+ var tmp$ret$8 = this_1.o5();
1857
+ var code = joinToString(tmp$ret$8, '\n');
1858
+ var subPackageName = plus_2(this.g1z_1, 'client');
1859
+ var tmp = Companion_getInstance().m1h(subPackageName.or() + toSnakeCase(this, clientName));
1860
+ // Inline function 'kotlin.collections.buildList' call
1861
+ // Inline function 'kotlin.collections.buildListInternal' call
1862
+ // Inline function 'kotlin.apply' call
1863
+ var this_2 = ArrayList_init_$Create$();
1864
+ this_2.x(import_0('super::super::wirespec', '*'));
1865
+ this_2.x(import_0('super::super::endpoint', endpointModuleName));
1866
+ this_2.e1(modelImports);
1867
+ this_2.x(new RawElement(code));
1868
+ var tmp$ret$12 = this_2.o5();
1869
+ return new File(tmp, tmp$ret$12);
2123
1870
  };
2124
- protoOf(RustIrEmitter).q1u = function (endpoints, logger) {
2125
- logger.uq('Emitting main Client for ' + endpoints.a1() + ' endpoints');
1871
+ protoOf(RustIrEmitter).p1u = function (endpoints, logger) {
1872
+ logger.sq('Emitting main Client for ' + endpoints.a1() + ' endpoints');
2126
1873
  var modDeclarations = joinToString(endpoints, '\n', VOID, VOID, VOID, VOID, RustIrEmitter$emitClient$lambda(this));
2127
1874
  // Inline function 'kotlin.collections.flatMap' call
2128
1875
  // Inline function 'kotlin.collections.flatMapTo' call
@@ -2139,7 +1886,7 @@ protoOf(RustIrEmitter).q1u = function (endpoints, logger) {
2139
1886
  var _iterator__ex2g4s_0 = destination.t();
2140
1887
  while (_iterator__ex2g4s_0.u()) {
2141
1888
  var e = _iterator__ex2g4s_0.v();
2142
- var key = e.nu_1;
1889
+ var key = e.lu_1;
2143
1890
  if (set.x(key)) {
2144
1891
  list_0.x(e);
2145
1892
  }
@@ -2166,7 +1913,7 @@ protoOf(RustIrEmitter).q1u = function (endpoints, logger) {
2166
1913
  var _iterator__ex2g4s_2 = endpoints.t();
2167
1914
  while (_iterator__ex2g4s_2.u()) {
2168
1915
  var element_1 = _iterator__ex2g4s_2.v();
2169
- if (element_1.gp_1.n1() === element_0.nu_1) {
1916
+ if (element_1.ep_1.l1() === element_0.lu_1) {
2170
1917
  tmp$ret$5 = false;
2171
1918
  break $l$block_0;
2172
1919
  }
@@ -2183,7 +1930,7 @@ protoOf(RustIrEmitter).q1u = function (endpoints, logger) {
2183
1930
  var _iterator__ex2g4s_3 = destination_0.t();
2184
1931
  while (_iterator__ex2g4s_3.u()) {
2185
1932
  var item = _iterator__ex2g4s_3.v();
2186
- var tmp$ret$10 = 'use super::model::' + toSnakeCase(this, item.nu_1) + '::' + item.nu_1 + ';';
1933
+ var tmp$ret$10 = import_0('super::model::' + toSnakeCase(this, item.lu_1), item.lu_1);
2187
1934
  destination_1.x(tmp$ret$10);
2188
1935
  }
2189
1936
  var modelImports = destination_1;
@@ -2193,25 +1940,25 @@ protoOf(RustIrEmitter).q1u = function (endpoints, logger) {
2193
1940
  var _iterator__ex2g4s_4 = endpoints.t();
2194
1941
  while (_iterator__ex2g4s_4.u()) {
2195
1942
  var element_2 = _iterator__ex2g4s_4.v();
2196
- var endpointModuleName = toSnakeCase(this, element_2.gp_1.n1());
2197
- var clientModuleName = toSnakeCase(this, element_2.gp_1.n1() + 'Client');
2198
- var list_1 = listOf_0(['use super::endpoint::' + endpointModuleName + ';', 'use ' + clientModuleName + '::' + element_2.gp_1.n1() + 'Client;']);
1943
+ var endpointModuleName = toSnakeCase(this, element_2.ep_1.l1());
1944
+ var clientModuleName = toSnakeCase(this, element_2.ep_1.l1() + 'Client');
1945
+ var list_1 = listOf_0([import_0('super::endpoint', endpointModuleName), import_0(clientModuleName, element_2.ep_1.l1() + 'Client')]);
2199
1946
  addAll(destination_2, list_1);
2200
1947
  }
2201
- var useStatements = destination_2;
1948
+ var endpointAndClientImports = destination_2;
2202
1949
  // Inline function 'kotlin.collections.flatMap' call
2203
1950
  // Inline function 'kotlin.collections.flatMapTo' call
2204
1951
  var destination_3 = ArrayList_init_$Create$();
2205
1952
  var _iterator__ex2g4s_5 = endpoints.t();
2206
1953
  while (_iterator__ex2g4s_5.u()) {
2207
1954
  var element_3 = _iterator__ex2g4s_5.v();
2208
- var endpointName = element_3.gp_1.n1();
1955
+ var endpointName = element_3.ep_1.l1();
2209
1956
  var endpointModuleName_0 = toSnakeCase(this, endpointName);
2210
1957
  var namespacePath = endpointModuleName_0 + '::' + endpointName;
2211
1958
  var methodName = toSnakeCase(this, endpointName);
2212
1959
  var _destruct__k2r9zo = buildClientParams(this, element_3);
2213
- var paramsStr = _destruct__k2r9zo.oe();
2214
- var callArgs = _destruct__k2r9zo.pe();
1960
+ var paramsStr = _destruct__k2r9zo.ne();
1961
+ var callArgs = _destruct__k2r9zo.oe();
2215
1962
  var tmp_0;
2216
1963
  // Inline function 'kotlin.text.isNotEmpty' call
2217
1964
  if (charSequenceLength(callArgs) > 0) {
@@ -2224,19 +1971,486 @@ protoOf(RustIrEmitter).q1u = function (endpoints, logger) {
2224
1971
  addAll(destination_3, list_2);
2225
1972
  }
2226
1973
  var implBlocks = destination_3;
2227
- var code = joinToString(plus(plus(plus(plus(plus(listOf(modDeclarations), listOf('use super::wirespec::*;')), modelImports), useStatements), listOf_0(['pub struct Client<S: Serialization, T: Transportation> {', ' pub serialization: S,', ' pub transportation: T,', '}'])), implBlocks), '\n');
2228
- return new File(Companion_getInstance().o1h(this.k1z_1.qr() + 'client'), listOf(new RawElement(code)));
1974
+ var code = joinToString(plus(listOf_0(['pub struct Client<S: Serialization, T: Transportation> {', ' pub serialization: S,', ' pub transportation: T,', '}']), implBlocks), '\n');
1975
+ var tmp_1 = Companion_getInstance().m1h(this.g1z_1.or() + 'client');
1976
+ // Inline function 'kotlin.collections.buildList' call
1977
+ // Inline function 'kotlin.collections.buildListInternal' call
1978
+ // Inline function 'kotlin.apply' call
1979
+ var this_0 = ArrayList_init_$Create$();
1980
+ this_0.x(new RawElement(modDeclarations));
1981
+ this_0.x(import_0('super::wirespec', '*'));
1982
+ this_0.e1(modelImports);
1983
+ this_0.e1(endpointAndClientImports);
1984
+ this_0.x(new RawElement(code));
1985
+ var tmp$ret$23 = this_0.o5();
1986
+ return new File(tmp_1, tmp$ret$23);
2229
1987
  };
2230
1988
  var properties_initialized_RustIrEmitter_kt_scscwh;
2231
1989
  function _init_properties_RustIrEmitter_kt__j995rl() {
2232
1990
  if (!properties_initialized_RustIrEmitter_kt_scscwh) {
2233
1991
  properties_initialized_RustIrEmitter_kt_scscwh = true;
2234
- selfParam = new Parameter(Companion_getInstance().o1h('&self'), new Custom(''));
1992
+ selfParam = new Parameter(Companion_getInstance().m1h('&self'), new Custom(''));
2235
1993
  RESPONSE_PATTERN = Regex_init_$Create$('Response(\\d+|Default)');
2236
1994
  }
2237
1995
  }
1996
+ function borrowParamsOf($this, fn) {
1997
+ // Inline function 'kotlin.collections.map' call
1998
+ var this_0 = fn.v1j_1;
1999
+ // Inline function 'kotlin.collections.mapTo' call
2000
+ var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
2001
+ var _iterator__ex2g4s = this_0.t();
2002
+ while (_iterator__ex2g4s.u()) {
2003
+ var item = _iterator__ex2g4s.v();
2004
+ var tmp;
2005
+ if (RustTransform_getInstance().y1z(item.v1n_1)) {
2006
+ tmp = item;
2007
+ } else {
2008
+ tmp = item.y1n(VOID, applyBorrowRule(RustTransform_getInstance(), item.w1n_1));
2009
+ }
2010
+ var tmp$ret$0 = tmp;
2011
+ destination.x(tmp$ret$0);
2012
+ }
2013
+ return fn.b1k(VOID, VOID, destination);
2014
+ }
2015
+ function applyBorrowRule($this, type) {
2016
+ var tmp;
2017
+ if (type instanceof Nullable) {
2018
+ tmp = new Nullable(applyBorrowRule($this, type.o1h_1));
2019
+ } else {
2020
+ if (equals(type, String_instance)) {
2021
+ tmp = new Custom('&str');
2022
+ } else {
2023
+ if (type instanceof Custom) {
2024
+ tmp = $this.a20(type) ? type : $this.z1z(type) ? borrowImpl(type) : type;
2025
+ } else {
2026
+ tmp = type;
2027
+ }
2028
+ }
2029
+ }
2030
+ return tmp;
2031
+ }
2032
+ function toBorrowedRaw($this, _this__u8e3s4) {
2033
+ return new RawExpression('&' + toRawCode($this, _this__u8e3s4));
2034
+ }
2035
+ function sanitizeKeywords_0($this, _this__u8e3s4) {
2036
+ return Companion_getInstance_0().o1z_1.u1(_this__u8e3s4) ? 'r#' + _this__u8e3s4 : _this__u8e3s4;
2037
+ }
2038
+ function toRawCode($this, _this__u8e3s4) {
2039
+ var tmp;
2040
+ if (_this__u8e3s4 instanceof VariableReference) {
2041
+ tmp = sanitizeKeywords_0($this, _this__u8e3s4.u1o_1.y1l());
2042
+ } else {
2043
+ if (_this__u8e3s4 instanceof FieldCall) {
2044
+ var tmp1_safe_receiver = _this__u8e3s4.i1p_1;
2045
+ var tmp_0;
2046
+ if (tmp1_safe_receiver == null) {
2047
+ tmp_0 = null;
2048
+ } else {
2049
+ // Inline function 'kotlin.let' call
2050
+ tmp_0 = toRawCode(RustTransform_getInstance(), tmp1_safe_receiver) + '.';
2051
+ }
2052
+ var tmp2_elvis_lhs = tmp_0;
2053
+ var recv = tmp2_elvis_lhs == null ? '' : tmp2_elvis_lhs;
2054
+ tmp = recv + sanitizeKeywords_0($this, _this__u8e3s4.j1p_1.y1l());
2055
+ } else {
2056
+ if (_this__u8e3s4 instanceof ArrayIndexCall) {
2057
+ var tmp_1 = _this__u8e3s4.m1q_1;
2058
+ var lit = tmp_1 instanceof Literal ? tmp_1 : null;
2059
+ var tmp_2;
2060
+ var tmp_3;
2061
+ if (!(lit == null)) {
2062
+ var tmp_4;
2063
+ var tmp_5 = lit.e1p_1;
2064
+ if (tmp_5 instanceof Integer) {
2065
+ tmp_4 = true;
2066
+ } else {
2067
+ var tmp_6 = lit.e1p_1;
2068
+ tmp_4 = tmp_6 instanceof Number_0;
2069
+ }
2070
+ tmp_3 = tmp_4;
2071
+ } else {
2072
+ tmp_3 = false;
2073
+ }
2074
+ if (tmp_3) {
2075
+ tmp_2 = toString_0(lit.d1p_1);
2076
+ } else {
2077
+ var tmp_7;
2078
+ if (!(lit == null)) {
2079
+ var tmp_8 = lit.e1p_1;
2080
+ tmp_7 = tmp_8 instanceof String_0;
2081
+ } else {
2082
+ tmp_7 = false;
2083
+ }
2084
+ if (tmp_7) {
2085
+ tmp_2 = '"' + toString_0(lit.d1p_1) + '"';
2086
+ } else {
2087
+ tmp_2 = toRawCode($this, _this__u8e3s4.m1q_1);
2088
+ }
2089
+ }
2090
+ var idx = tmp_2;
2091
+ tmp = toRawCode($this, _this__u8e3s4.l1q_1) + '[' + idx + ']';
2092
+ } else {
2093
+ if (_this__u8e3s4 instanceof ConstructorStatement) {
2094
+ var tmp_9 = _this__u8e3s4.p1m_1;
2095
+ var tmp3_safe_receiver = tmp_9 instanceof Custom ? tmp_9 : null;
2096
+ var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.q1h_1;
2097
+ var typeName = tmp4_elvis_lhs == null ? toString_0(_this__u8e3s4.p1m_1) : tmp4_elvis_lhs;
2098
+ var tmp_10 = _this__u8e3s4.q1m_1.j1();
2099
+ var args = joinToString(tmp_10, ', ', VOID, VOID, VOID, VOID, RustTransform$toRawCode$lambda);
2100
+ var tmp_11;
2101
+ // Inline function 'kotlin.text.isEmpty' call
2102
+ if (charSequenceLength(args) === 0) {
2103
+ tmp_11 = typeName + ' {}';
2104
+ } else {
2105
+ tmp_11 = typeName + ' { ' + args + ' }';
2106
+ }
2107
+ tmp = tmp_11;
2108
+ } else {
2109
+ if (_this__u8e3s4 instanceof Literal) {
2110
+ var tmp_12;
2111
+ var tmp_13 = _this__u8e3s4.e1p_1;
2112
+ if (tmp_13 instanceof String_0) {
2113
+ tmp_12 = 'String::from("' + toString_0(_this__u8e3s4.d1p_1) + '")';
2114
+ } else {
2115
+ var tmp_14 = _this__u8e3s4.e1p_1;
2116
+ if (tmp_14 instanceof Boolean_0) {
2117
+ tmp_12 = toString_0(_this__u8e3s4.d1p_1);
2118
+ } else {
2119
+ var tmp_15 = _this__u8e3s4.e1p_1;
2120
+ if (tmp_15 instanceof Integer) {
2121
+ tmp_12 = toString_0(_this__u8e3s4.d1p_1);
2122
+ } else {
2123
+ var tmp_16 = _this__u8e3s4.e1p_1;
2124
+ if (tmp_16 instanceof Number_0) {
2125
+ tmp_12 = toString_0(_this__u8e3s4.d1p_1);
2126
+ } else {
2127
+ tmp_12 = toString_0(_this__u8e3s4.d1p_1);
2128
+ }
2129
+ }
2130
+ }
2131
+ }
2132
+ tmp = tmp_12;
2133
+ } else {
2134
+ if (_this__u8e3s4 instanceof RawExpression) {
2135
+ tmp = _this__u8e3s4.c1p_1;
2136
+ } else {
2137
+ var message = 'Unsupported expression type in toRawCode: ' + getKClassFromExpression(_this__u8e3s4).o();
2138
+ throw IllegalStateException_init_$Create$(toString_0(message));
2139
+ }
2140
+ }
2141
+ }
2142
+ }
2143
+ }
2144
+ }
2145
+ return tmp;
2146
+ }
2147
+ function RustTransform$primitivesToCustom$lambda(t, tr) {
2148
+ var tmp;
2149
+ if (equals(t, Any_instance)) {
2150
+ tmp = new Custom('Box<dyn std::any::Any>');
2151
+ } else {
2152
+ if (equals(t, Bytes_instance)) {
2153
+ tmp = new Custom('Vec<u8>');
2154
+ } else {
2155
+ if (equals(t, Reflect_instance)) {
2156
+ tmp = new Custom('std::any::TypeId');
2157
+ } else {
2158
+ if (equals(t, Wildcard_instance)) {
2159
+ tmp = new Custom('_');
2160
+ } else {
2161
+ if (t instanceof IntegerLiteral) {
2162
+ tmp = new Custom('i32');
2163
+ } else {
2164
+ if (t instanceof StringLiteral) {
2165
+ tmp = new Custom('String');
2166
+ } else {
2167
+ tmp = transformChildren_1(t, tr);
2168
+ }
2169
+ }
2170
+ }
2171
+ }
2172
+ }
2173
+ }
2174
+ return tmp;
2175
+ }
2176
+ function RustTransform$borrow$lambda(element, tr) {
2177
+ var tmp;
2178
+ if (element instanceof Interface) {
2179
+ var tmp_0;
2180
+ if (element.m1o_1.equals(Companion_getInstance().m1h('Call'))) {
2181
+ tmp_0 = element;
2182
+ } else {
2183
+ // Inline function 'kotlin.collections.map' call
2184
+ var this_0 = element.n1o_1;
2185
+ // Inline function 'kotlin.collections.mapTo' call
2186
+ var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
2187
+ var _iterator__ex2g4s = this_0.t();
2188
+ while (_iterator__ex2g4s.u()) {
2189
+ var item = _iterator__ex2g4s.v();
2190
+ var tmp_1;
2191
+ if (item instanceof Function) {
2192
+ tmp_1 = borrowParamsOf(RustTransform_getInstance(), item);
2193
+ } else {
2194
+ tmp_1 = item;
2195
+ }
2196
+ var tmp$ret$0 = tmp_1;
2197
+ destination.x(tmp$ret$0);
2198
+ }
2199
+ var borrowed = destination;
2200
+ tmp_0 = transformChildren(element.t1o(VOID, borrowed), tr);
2201
+ }
2202
+ tmp = tmp_0;
2203
+ } else {
2204
+ if (element instanceof Function) {
2205
+ tmp = transformChildren(borrowParamsOf(RustTransform_getInstance(), element), tr);
2206
+ } else {
2207
+ tmp = transformChildren(element, tr);
2208
+ }
2209
+ }
2210
+ return tmp;
2211
+ }
2212
+ function RustTransform$serializationArgs$lambda(s, t) {
2213
+ var tmp;
2214
+ var tmp_0;
2215
+ if (s instanceof FunctionCall) {
2216
+ tmp_0 = RustTransform_getInstance().t1z_1.u1(s.b1m_1.y1l());
2217
+ } else {
2218
+ tmp_0 = false;
2219
+ }
2220
+ if (tmp_0) {
2221
+ // Inline function 'kotlin.collections.mapIndexed' call
2222
+ var this_0 = s.c1m_1.j1();
2223
+ // Inline function 'kotlin.collections.mapIndexedTo' call
2224
+ var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
2225
+ var index = 0;
2226
+ var _iterator__ex2g4s = this_0.t();
2227
+ while (_iterator__ex2g4s.u()) {
2228
+ var item = _iterator__ex2g4s.v();
2229
+ var _unary__edvuaz = index;
2230
+ index = _unary__edvuaz + 1 | 0;
2231
+ var idx = checkIndexOverflow(_unary__edvuaz);
2232
+ // Inline function 'kotlin.collections.component1' call
2233
+ var key = item.k1();
2234
+ // Inline function 'kotlin.collections.component2' call
2235
+ var value = item.l1();
2236
+ var transformed = t.u1t(value);
2237
+ var tmp_1;
2238
+ var tmp_2;
2239
+ if (idx === 0) {
2240
+ var tmp_3;
2241
+ if (transformed instanceof VariableReference) {
2242
+ tmp_3 = transformed.u1o_1.s1h() === 'it';
2243
+ } else {
2244
+ tmp_3 = false;
2245
+ }
2246
+ tmp_2 = !tmp_3;
2247
+ } else {
2248
+ tmp_2 = false;
2249
+ }
2250
+ if (tmp_2) {
2251
+ tmp_1 = to(key, toBorrowedRaw(RustTransform_getInstance(), transformed));
2252
+ } else {
2253
+ tmp_1 = to(key, transformed);
2254
+ }
2255
+ var tmp$ret$2 = tmp_1;
2256
+ destination.x(tmp$ret$2);
2257
+ }
2258
+ var newArgs = toMap(destination);
2259
+ tmp = s.f1m(VOID, VOID, VOID, newArgs);
2260
+ } else {
2261
+ tmp = transformChildren_0(s, t);
2262
+ }
2263
+ return tmp;
2264
+ }
2265
+ function RustTransform$rustName$lambda(it) {
2266
+ return RustTransform_getInstance().x1z(it);
2267
+ }
2268
+ function RustTransform$toRawCode$lambda(it) {
2269
+ return it.k1().y1l() + ': ' + toRawCode(RustTransform_getInstance(), it.l1());
2270
+ }
2271
+ function RustTransform() {
2272
+ RustTransform_instance = this;
2273
+ var tmp = this;
2274
+ // Inline function 'community.flock.wirespec.ir.core.transformer' call
2275
+ // Inline function 'kotlin.apply' call
2276
+ var this_0 = new TransformerBuilder();
2277
+ this_0.f1u(RustTransform$primitivesToCustom$lambda);
2278
+ tmp.q1z_1 = this_0.e1h();
2279
+ var tmp_0 = this;
2280
+ // Inline function 'community.flock.wirespec.ir.core.transformer' call
2281
+ // Inline function 'kotlin.apply' call
2282
+ var this_1 = new TransformerBuilder();
2283
+ this_1.d1h(RustTransform$borrow$lambda);
2284
+ tmp_0.r1z_1 = this_1.e1h();
2285
+ var tmp_1 = this;
2286
+ // Inline function 'community.flock.wirespec.ir.core.transformer' call
2287
+ // Inline function 'kotlin.apply' call
2288
+ tmp_1.s1z_1 = (new TransformerBuilder()).e1h();
2289
+ this.t1z_1 = setOf(['serialize_path', 'serialize_param', 'serialize_body', 'deserialize_path', 'deserialize_param', 'deserialize_body']);
2290
+ var tmp_2 = this;
2291
+ // Inline function 'community.flock.wirespec.ir.core.transformer' call
2292
+ // Inline function 'kotlin.apply' call
2293
+ var this_2 = new TransformerBuilder();
2294
+ this_2.i1u(RustTransform$serializationArgs$lambda);
2295
+ tmp_2.u1z_1 = this_2.e1h();
2296
+ this.v1z_1 = setOf(['i32', 'i64', 'f32', 'f64', 'bool', 'u8', 'u16', 'u32', 'u64', 'usize', 'isize', '()']);
2297
+ }
2298
+ protoOf(RustTransform).w1z = function (element) {
2299
+ // Inline function 'community.flock.wirespec.ir.core.transform' call
2300
+ var scope = new TransformScope(element);
2301
+ scope.e1u(RustTransform_getInstance().q1z_1);
2302
+ var tmp = scope.z1t_1;
2303
+ // Inline function 'community.flock.wirespec.ir.core.transform' call
2304
+ var this_0 = isInterface(tmp, Element) ? tmp : THROW_CCE();
2305
+ var scope_0 = new TransformScope(this_0);
2306
+ scope_0.e1u(RustTransform_getInstance().r1z_1);
2307
+ var tmp_0 = scope_0.z1t_1;
2308
+ // Inline function 'community.flock.wirespec.ir.core.transform' call
2309
+ var this_1 = isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
2310
+ var scope_1 = new TransformScope(this_1);
2311
+ scope_1.e1u(RustTransform_getInstance().s1z_1);
2312
+ var tmp_1 = scope_1.z1t_1;
2313
+ // Inline function 'community.flock.wirespec.ir.core.transform' call
2314
+ var this_2 = isInterface(tmp_1, Element) ? tmp_1 : THROW_CCE();
2315
+ var scope_2 = new TransformScope(this_2);
2316
+ scope_2.e1u(RustTransform_getInstance().u1z_1);
2317
+ var tmp_2 = scope_2.z1t_1;
2318
+ return isInterface(tmp_2, Element) ? tmp_2 : THROW_CCE();
2319
+ };
2320
+ protoOf(RustTransform).x1z = function (_this__u8e3s4) {
2321
+ var tmp;
2322
+ if (_this__u8e3s4 instanceof Custom) {
2323
+ var tmp_0;
2324
+ if (_this__u8e3s4.r1h_1.r()) {
2325
+ tmp_0 = _this__u8e3s4.q1h_1;
2326
+ } else {
2327
+ tmp_0 = _this__u8e3s4.q1h_1 + '<' + joinToString(_this__u8e3s4.r1h_1, ', ', VOID, VOID, VOID, VOID, RustTransform$rustName$lambda) + '>';
2328
+ }
2329
+ tmp = tmp_0;
2330
+ } else {
2331
+ if (equals(_this__u8e3s4, String_instance)) {
2332
+ tmp = 'String';
2333
+ } else {
2334
+ if (_this__u8e3s4 instanceof Nullable) {
2335
+ tmp = 'Option<' + this.x1z(_this__u8e3s4.o1h_1) + '>';
2336
+ } else {
2337
+ if (_this__u8e3s4 instanceof Array_0) {
2338
+ tmp = 'Vec<' + this.x1z(_this__u8e3s4.p1h_1) + '>';
2339
+ } else {
2340
+ if (_this__u8e3s4 instanceof Dict) {
2341
+ tmp = 'std::collections::HashMap<' + this.x1z(_this__u8e3s4.j1m_1) + ', ' + this.x1z(_this__u8e3s4.k1m_1) + '>';
2342
+ } else {
2343
+ if (equals(_this__u8e3s4, Any_instance)) {
2344
+ tmp = 'Box<dyn std::any::Any>';
2345
+ } else {
2346
+ if (equals(_this__u8e3s4, Bytes_instance)) {
2347
+ tmp = 'Vec<u8>';
2348
+ } else {
2349
+ if (equals(_this__u8e3s4, Unit_instance)) {
2350
+ tmp = '()';
2351
+ } else {
2352
+ if (equals(_this__u8e3s4, Boolean_instance)) {
2353
+ tmp = 'bool';
2354
+ } else {
2355
+ if (equals(_this__u8e3s4, Wildcard_instance)) {
2356
+ tmp = '_';
2357
+ } else {
2358
+ if (equals(_this__u8e3s4, Reflect_instance)) {
2359
+ tmp = 'std::any::TypeId';
2360
+ } else {
2361
+ if (_this__u8e3s4 instanceof Integer) {
2362
+ var tmp_1;
2363
+ switch (_this__u8e3s4.g1m_1.b3_1) {
2364
+ case 0:
2365
+ tmp_1 = 'i32';
2366
+ break;
2367
+ case 1:
2368
+ tmp_1 = 'i64';
2369
+ break;
2370
+ default:
2371
+ noWhenBranchMatchedException();
2372
+ break;
2373
+ }
2374
+ tmp = tmp_1;
2375
+ } else {
2376
+ if (_this__u8e3s4 instanceof Number_0) {
2377
+ var tmp_2;
2378
+ switch (_this__u8e3s4.h1m_1.b3_1) {
2379
+ case 0:
2380
+ tmp_2 = 'f32';
2381
+ break;
2382
+ case 1:
2383
+ tmp_2 = 'f64';
2384
+ break;
2385
+ default:
2386
+ noWhenBranchMatchedException();
2387
+ break;
2388
+ }
2389
+ tmp = tmp_2;
2390
+ } else {
2391
+ if (_this__u8e3s4 instanceof IntegerLiteral) {
2392
+ tmp = 'i32';
2393
+ } else {
2394
+ if (_this__u8e3s4 instanceof StringLiteral) {
2395
+ tmp = 'String';
2396
+ } else {
2397
+ noWhenBranchMatchedException();
2398
+ }
2399
+ }
2400
+ }
2401
+ }
2402
+ }
2403
+ }
2404
+ }
2405
+ }
2406
+ }
2407
+ }
2408
+ }
2409
+ }
2410
+ }
2411
+ }
2412
+ }
2413
+ return tmp;
2414
+ };
2415
+ protoOf(RustTransform).a20 = function (_this__u8e3s4) {
2416
+ var tmp;
2417
+ if (_this__u8e3s4 instanceof Custom) {
2418
+ tmp = startsWith(_this__u8e3s4.q1h_1, '&') || startsWith(_this__u8e3s4.q1h_1, '&dyn ') || startsWith(_this__u8e3s4.q1h_1, '&impl ') || startsWith(_this__u8e3s4.q1h_1, '&mut ');
2419
+ } else {
2420
+ tmp = false;
2421
+ }
2422
+ return tmp;
2423
+ };
2424
+ protoOf(RustTransform).z1z = function (_this__u8e3s4) {
2425
+ return _this__u8e3s4.q1h_1 === 'Serializer' || _this__u8e3s4.q1h_1 === 'Deserializer';
2426
+ };
2427
+ protoOf(RustTransform).y1z = function (_this__u8e3s4) {
2428
+ var v = _this__u8e3s4.s1h();
2429
+ switch (v) {
2430
+ case 'self':
2431
+ case '&self':
2432
+ return true;
2433
+ default:
2434
+ return v === '&mut self';
2435
+ }
2436
+ };
2437
+ var RustTransform_instance;
2438
+ function RustTransform_getInstance() {
2439
+ if (RustTransform_instance == null)
2440
+ new RustTransform();
2441
+ return RustTransform_instance;
2442
+ }
2443
+ function borrow(_this__u8e3s4) {
2444
+ return _this__u8e3s4.n1m('&' + _this__u8e3s4.q1h_1);
2445
+ }
2446
+ function borrowDyn(_this__u8e3s4) {
2447
+ return _this__u8e3s4.n1m('&dyn ' + _this__u8e3s4.q1h_1);
2448
+ }
2449
+ function borrowImpl(_this__u8e3s4) {
2450
+ return _this__u8e3s4.n1m('&impl ' + _this__u8e3s4.q1h_1);
2451
+ }
2238
2452
  //region block: post-declaration
2239
- protoOf(RustIrEmitter).qn = emit_1;
2453
+ protoOf(RustIrEmitter).on = emit_1;
2240
2454
  //endregion
2241
2455
  //region block: exports
2242
2456
  export {