@flock/wirespec 0.22.7 → 0.22.8

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.
@@ -137,8 +137,9 @@ import {
137
137
  setOf45ia9pnfhe90 as setOf,
138
138
  mutableListOf6oorvk2mtdmp as mutableListOf,
139
139
  toMutableList20rdgwi7d3cwi as toMutableList,
140
- trimMarginhyd3fsmh8iev as trimMargin,
141
140
  removeSurroundingtenczfhnh0cp as removeSurrounding,
141
+ trimMarginhyd3fsmh8iev as trimMargin,
142
+ Paire9pteg33gng7 as Pair,
142
143
  minus165a8u1e0x1lu as minus,
143
144
  emptySetcxexqki71qfa as emptySet,
144
145
  plus1ogy4liedzq5j as plus_1,
@@ -163,7 +164,6 @@ import {
163
164
  substringiqarkczpya5m as substring_1,
164
165
  lastoeigeylztyfl as last_0,
165
166
  getValue48kllevslyh6 as getValue,
166
- Paire9pteg33gng7 as Pair,
167
167
  asSequence2phdjljfh9jhx as asSequence,
168
168
  flatten2dh4kibw1u0qq as flatten_0,
169
169
  println2shhhgwwt4c61 as println,
@@ -300,8 +300,9 @@ initMetadataForClass(EnumReference, 'EnumReference', VOID, VOID, [Statement, Exp
300
300
  initMetadataForClass(EnumValueCall, 'EnumValueCall', VOID, VOID, [Statement, Expression]);
301
301
  initMetadataForClass(NullableMap, 'NullableMap', VOID, VOID, [Statement, Expression]);
302
302
  initMetadataForClass(NullableGet, 'NullableGet', VOID, VOID, [Statement, Expression]);
303
- initMetadataForClass(RegexMatch, 'RegexMatch', VOID, VOID, [Statement, Expression]);
304
- initMetadataForClass(BoundCheck, 'BoundCheck', VOID, VOID, [Statement, Expression]);
303
+ initMetadataForInterface(Constraint, 'Constraint', VOID, VOID, [Statement, Expression]);
304
+ initMetadataForClass(RegexMatch, 'RegexMatch', VOID, VOID, [Constraint]);
305
+ initMetadataForClass(BoundCheck, 'BoundCheck', VOID, VOID, [Constraint]);
305
306
  initMetadataForClass(NotExpression, 'NotExpression', VOID, VOID, [Statement, Expression]);
306
307
  initMetadataForClass(IfExpression, 'IfExpression', VOID, VOID, [Statement, Expression]);
307
308
  initMetadataForClass(MapExpression, 'MapExpression', VOID, VOID, [Statement, Expression]);
@@ -672,21 +673,21 @@ function enum_1(name, extends_0, block) {
672
673
  }
673
674
  initMetadataForInterface(ContainerBuilder, 'ContainerBuilder', VOID, VOID, [BaseBuilder]);
674
675
  initMetadataForClass(StructBuilder, 'StructBuilder', VOID, VOID, [ContainerBuilder]);
675
- initMetadataForClass(InterfaceBuilder, 'InterfaceBuilder', VOID, VOID, [ContainerBuilder]);
676
676
  initMetadataForClass(FileBuilder, 'FileBuilder', VOID, VOID, [ContainerBuilder]);
677
677
  initMetadataForClass(NamespaceBuilder, 'NamespaceBuilder', VOID, VOID, [ContainerBuilder]);
678
678
  initMetadataForClass(StructConstructorBuilder, 'StructConstructorBuilder', StructConstructorBuilder, VOID, [BaseBuilder]);
679
679
  initMetadataForClass(ConstructorBuilder, 'ConstructorBuilder', VOID, VOID, [BaseBuilder]);
680
680
  initMetadataForClass(FunctionCallBuilder, 'FunctionCallBuilder', VOID, VOID, [BaseBuilder]);
681
681
  initMetadataForClass(SwitchBuilder, 'SwitchBuilder', VOID, VOID, [BaseBuilder]);
682
+ initMetadataForClass(InterfaceBuilder, 'InterfaceBuilder', VOID, VOID, [ContainerBuilder]);
682
683
  initMetadataForClass(CaseBuilder, 'CaseBuilder', VOID, VOID, [BaseBuilder]);
683
684
  initMetadataForClass(UnionBuilder, 'UnionBuilder', VOID, VOID, [BaseBuilder]);
684
685
  initMetadataForClass(EnumBuilder, 'EnumBuilder', VOID, VOID, [ContainerBuilder]);
685
686
  function transformType(type) {
686
- return transformChildren_1(type, this);
687
+ return transformChildren_3(type, this);
687
688
  }
688
689
  function transformElement(element) {
689
- return transformChildren_2(element, this);
690
+ return transformChildren_1(element, this);
690
691
  }
691
692
  function transformStatement(statement) {
692
693
  return transformChildren(statement, this);
@@ -695,16 +696,16 @@ function transformExpression(expression) {
695
696
  return transformChildren_0(expression, this);
696
697
  }
697
698
  function transformField(field) {
698
- return transformChildren_3(field, this);
699
+ return transformChildren_4(field, this);
699
700
  }
700
701
  function transformParameter(parameter) {
701
- return transformChildren_4(parameter, this);
702
+ return transformChildren_5(parameter, this);
702
703
  }
703
704
  function transformConstructor(constructor) {
704
- return transformChildren_5(constructor, this);
705
+ return transformChildren_6(constructor, this);
705
706
  }
706
707
  function transformCase(case_0) {
707
- return transformChildren_6(case_0, this);
708
+ return transformChildren_2(case_0, this);
708
709
  }
709
710
  initMetadataForInterface(Transformer, 'Transformer');
710
711
  initMetadataForClass(TransformScope, 'TransformScope');
@@ -4531,6 +4532,8 @@ protoOf(BoundCheck).equals = function (other) {
4531
4532
  return false;
4532
4533
  return true;
4533
4534
  };
4535
+ function Constraint() {
4536
+ }
4534
4537
  function NotExpression(expression) {
4535
4538
  this.g12_1 = expression;
4536
4539
  }
@@ -5121,57 +5124,6 @@ function interface_1(name, isSealed, block) {
5121
5124
  }
5122
5125
  return builder.v13();
5123
5126
  }
5124
- function InterfaceBuilder_init_$Init$(nameStr, isSealed, $this) {
5125
- isSealed = isSealed === VOID ? false : isSealed;
5126
- InterfaceBuilder.call($this, Companion_getInstance_4().au(nameStr), isSealed);
5127
- return $this;
5128
- }
5129
- function InterfaceBuilder_init_$Create$(nameStr, isSealed) {
5130
- return InterfaceBuilder_init_$Init$(nameStr, isSealed, objectCreate(protoOf(InterfaceBuilder)));
5131
- }
5132
- function InterfaceBuilder(name, isSealed) {
5133
- isSealed = isSealed === VOID ? false : isSealed;
5134
- this.i17_1 = name;
5135
- this.j17_1 = isSealed;
5136
- var tmp = this;
5137
- // Inline function 'kotlin.collections.mutableListOf' call
5138
- tmp.k17_1 = ArrayList_init_$Create$_0();
5139
- var tmp_0 = this;
5140
- // Inline function 'kotlin.collections.mutableListOf' call
5141
- tmp_0.l17_1 = ArrayList_init_$Create$_0();
5142
- var tmp_1 = this;
5143
- // Inline function 'kotlin.collections.mutableListOf' call
5144
- tmp_1.m17_1 = ArrayList_init_$Create$_0();
5145
- var tmp_2 = this;
5146
- // Inline function 'kotlin.collections.mutableListOf' call
5147
- tmp_2.n17_1 = ArrayList_init_$Create$_0();
5148
- }
5149
- protoOf(InterfaceBuilder).hv = function () {
5150
- return this.k17_1;
5151
- };
5152
- protoOf(InterfaceBuilder).w13 = function (type, extends_0) {
5153
- this.l17_1.x(new TypeParameter(type, toList_0(extends_0)));
5154
- };
5155
- protoOf(InterfaceBuilder).o17 = function (type) {
5156
- this.m17_1.x(type);
5157
- };
5158
- protoOf(InterfaceBuilder).y15 = function (name, type, isOverride) {
5159
- this.n17_1.x(new Field(Companion_getInstance_4().au(name), type, isOverride));
5160
- };
5161
- protoOf(InterfaceBuilder).p17 = function (name, type, isOverride, $super) {
5162
- isOverride = isOverride === VOID ? false : isOverride;
5163
- var tmp;
5164
- if ($super === VOID) {
5165
- this.y15(name, type, isOverride);
5166
- tmp = Unit_instance;
5167
- } else {
5168
- tmp = $super.y15.call(this, name, type, isOverride);
5169
- }
5170
- return tmp;
5171
- };
5172
- protoOf(InterfaceBuilder).v13 = function () {
5173
- return new Interface(this.i17_1, this.k17_1, this.m17_1, this.j17_1, this.l17_1, this.n17_1);
5174
- };
5175
5127
  function file(name, block) {
5176
5128
  var builder = new FileBuilder(name);
5177
5129
  block(builder);
@@ -5185,16 +5137,16 @@ function FileBuilder_init_$Create$(nameStr) {
5185
5137
  return FileBuilder_init_$Init$(nameStr, objectCreate(protoOf(FileBuilder)));
5186
5138
  }
5187
5139
  function FileBuilder(name) {
5188
- this.q17_1 = name;
5140
+ this.o17_1 = name;
5189
5141
  var tmp = this;
5190
5142
  // Inline function 'kotlin.collections.mutableListOf' call
5191
- tmp.r17_1 = ArrayList_init_$Create$_0();
5143
+ tmp.p17_1 = ArrayList_init_$Create$_0();
5192
5144
  }
5193
5145
  protoOf(FileBuilder).hv = function () {
5194
- return this.r17_1;
5146
+ return this.p17_1;
5195
5147
  };
5196
- protoOf(FileBuilder).s17 = function (path) {
5197
- this.r17_1.x(new Package(path));
5148
+ protoOf(FileBuilder).q17 = function (path) {
5149
+ this.p17_1.x(new Package(path));
5198
5150
  };
5199
5151
  protoOf(FileBuilder).j16 = function (name, isStatic, isOverride, block) {
5200
5152
  var builder = FunctionBuilder_init_$Create$(name);
@@ -5204,7 +5156,7 @@ protoOf(FileBuilder).j16 = function (name, isStatic, isOverride, block) {
5204
5156
  // Inline function 'kotlin.let' call
5205
5157
  block(builder);
5206
5158
  }
5207
- this.r17_1.x(builder.v13());
5159
+ this.p17_1.x(builder.v13());
5208
5160
  };
5209
5161
  protoOf(FileBuilder).l16 = function (name, isStatic, isOverride, block) {
5210
5162
  var builder = new FunctionBuilder(name);
@@ -5214,7 +5166,7 @@ protoOf(FileBuilder).l16 = function (name, isStatic, isOverride, block) {
5214
5166
  // Inline function 'kotlin.let' call
5215
5167
  block(builder);
5216
5168
  }
5217
- this.r17_1.x(builder.v13());
5169
+ this.p17_1.x(builder.v13());
5218
5170
  };
5219
5171
  protoOf(FileBuilder).n16 = function (name, isStatic, isOverride, block) {
5220
5172
  var builder = FunctionBuilder_init_$Create$(name, true);
@@ -5224,7 +5176,7 @@ protoOf(FileBuilder).n16 = function (name, isStatic, isOverride, block) {
5224
5176
  // Inline function 'kotlin.let' call
5225
5177
  block(builder);
5226
5178
  }
5227
- this.r17_1.x(builder.v13());
5179
+ this.p17_1.x(builder.v13());
5228
5180
  };
5229
5181
  protoOf(FileBuilder).p16 = function (name, isStatic, isOverride, block) {
5230
5182
  var builder = new FunctionBuilder(name, true);
@@ -5234,9 +5186,9 @@ protoOf(FileBuilder).p16 = function (name, isStatic, isOverride, block) {
5234
5186
  // Inline function 'kotlin.let' call
5235
5187
  block(builder);
5236
5188
  }
5237
- this.r17_1.x(builder.v13());
5189
+ this.p17_1.x(builder.v13());
5238
5190
  };
5239
- protoOf(FileBuilder).t17 = function (name, block) {
5191
+ protoOf(FileBuilder).r17 = function (name, block) {
5240
5192
  var builder = StructBuilder_init_$Create$(name);
5241
5193
  if (block == null)
5242
5194
  null;
@@ -5244,10 +5196,10 @@ protoOf(FileBuilder).t17 = function (name, block) {
5244
5196
  // Inline function 'kotlin.let' call
5245
5197
  block(builder);
5246
5198
  }
5247
- this.r17_1.x(builder.v13());
5199
+ this.p17_1.x(builder.v13());
5248
5200
  };
5249
5201
  protoOf(FileBuilder).v13 = function () {
5250
- return new File(this.q17_1, this.r17_1);
5202
+ return new File(this.o17_1, this.p17_1);
5251
5203
  };
5252
5204
  function NamespaceBuilder_init_$Init$(nameStr, extends_0, $this) {
5253
5205
  extends_0 = extends_0 === VOID ? null : extends_0;
@@ -5259,17 +5211,17 @@ function NamespaceBuilder_init_$Create$(nameStr, extends_0) {
5259
5211
  }
5260
5212
  function NamespaceBuilder(name, extends_0) {
5261
5213
  extends_0 = extends_0 === VOID ? null : extends_0;
5262
- this.w17_1 = name;
5263
- this.x17_1 = extends_0;
5214
+ this.u17_1 = name;
5215
+ this.v17_1 = extends_0;
5264
5216
  var tmp = this;
5265
5217
  // Inline function 'kotlin.collections.mutableListOf' call
5266
- tmp.y17_1 = ArrayList_init_$Create$_0();
5218
+ tmp.w17_1 = ArrayList_init_$Create$_0();
5267
5219
  }
5268
5220
  protoOf(NamespaceBuilder).hv = function () {
5269
- return this.y17_1;
5221
+ return this.w17_1;
5270
5222
  };
5271
5223
  protoOf(NamespaceBuilder).v13 = function () {
5272
- return new Namespace(this.w17_1, this.y17_1, this.x17_1);
5224
+ return new Namespace(this.u17_1, this.w17_1, this.v17_1);
5273
5225
  };
5274
5226
  function StructConstructorBuilder$construct$lambda(_this__u8e3s4) {
5275
5227
  return Unit_instance;
@@ -5304,7 +5256,7 @@ protoOf(StructConstructorBuilder).f14 = function (type, block) {
5304
5256
  this.e16_1.x(node);
5305
5257
  return node;
5306
5258
  };
5307
- protoOf(StructConstructorBuilder).a18 = function (type, block, $super) {
5259
+ protoOf(StructConstructorBuilder).y17 = function (type, block, $super) {
5308
5260
  var tmp;
5309
5261
  if (block === VOID) {
5310
5262
  tmp = StructConstructorBuilder$construct$lambda;
@@ -5325,13 +5277,13 @@ function ConstructorBuilder(type) {
5325
5277
  // Inline function 'kotlin.collections.mutableMapOf' call
5326
5278
  tmp.h14_1 = LinkedHashMap_init_$Create$();
5327
5279
  }
5328
- protoOf(ConstructorBuilder).c18 = function (name, value) {
5280
+ protoOf(ConstructorBuilder).a18 = function (name, value) {
5329
5281
  var tmp0 = this.h14_1;
5330
5282
  // Inline function 'kotlin.collections.set' call
5331
5283
  var key = Companion_getInstance_4().au(name);
5332
5284
  tmp0.w2(key, value);
5333
5285
  };
5334
- protoOf(ConstructorBuilder).d18 = function (name, value) {
5286
+ protoOf(ConstructorBuilder).b18 = function (name, value) {
5335
5287
  // Inline function 'kotlin.collections.set' call
5336
5288
  this.h14_1.w2(name, value);
5337
5289
  };
@@ -5362,17 +5314,17 @@ function SwitchBuilder(expression, variable) {
5362
5314
  tmp.s14_1 = ArrayList_init_$Create$_0();
5363
5315
  this.t14_1 = null;
5364
5316
  }
5365
- protoOf(SwitchBuilder).e18 = function (value, block) {
5317
+ protoOf(SwitchBuilder).c18 = function (value, block) {
5366
5318
  var builder = new CaseBuilder(value);
5367
5319
  block(builder);
5368
5320
  this.s14_1.x(builder.v13());
5369
5321
  };
5370
- protoOf(SwitchBuilder).h18 = function (type, block) {
5322
+ protoOf(SwitchBuilder).f18 = function (type, block) {
5371
5323
  var builder = new CaseBuilder(new RawExpression('type'));
5372
5324
  block(builder);
5373
5325
  this.s14_1.x(builder.v13().jz(VOID, VOID, type));
5374
5326
  };
5375
- protoOf(SwitchBuilder).i18 = function (block) {
5327
+ protoOf(SwitchBuilder).g18 = function (block) {
5376
5328
  var builder = new CaseBuilder(new RawExpression('default'));
5377
5329
  block(builder);
5378
5330
  this.t14_1 = builder.v13().gz_1;
@@ -5382,36 +5334,87 @@ protoOf(SwitchBuilder).v13 = function () {
5382
5334
  };
5383
5335
  function ContainerBuilder() {
5384
5336
  }
5337
+ function InterfaceBuilder_init_$Init$(nameStr, isSealed, $this) {
5338
+ isSealed = isSealed === VOID ? false : isSealed;
5339
+ InterfaceBuilder.call($this, Companion_getInstance_4().au(nameStr), isSealed);
5340
+ return $this;
5341
+ }
5342
+ function InterfaceBuilder_init_$Create$(nameStr, isSealed) {
5343
+ return InterfaceBuilder_init_$Init$(nameStr, isSealed, objectCreate(protoOf(InterfaceBuilder)));
5344
+ }
5345
+ function InterfaceBuilder(name, isSealed) {
5346
+ isSealed = isSealed === VOID ? false : isSealed;
5347
+ this.i17_1 = name;
5348
+ this.j17_1 = isSealed;
5349
+ var tmp = this;
5350
+ // Inline function 'kotlin.collections.mutableListOf' call
5351
+ tmp.k17_1 = ArrayList_init_$Create$_0();
5352
+ var tmp_0 = this;
5353
+ // Inline function 'kotlin.collections.mutableListOf' call
5354
+ tmp_0.l17_1 = ArrayList_init_$Create$_0();
5355
+ var tmp_1 = this;
5356
+ // Inline function 'kotlin.collections.mutableListOf' call
5357
+ tmp_1.m17_1 = ArrayList_init_$Create$_0();
5358
+ var tmp_2 = this;
5359
+ // Inline function 'kotlin.collections.mutableListOf' call
5360
+ tmp_2.n17_1 = ArrayList_init_$Create$_0();
5361
+ }
5362
+ protoOf(InterfaceBuilder).hv = function () {
5363
+ return this.k17_1;
5364
+ };
5365
+ protoOf(InterfaceBuilder).w13 = function (type, extends_0) {
5366
+ this.l17_1.x(new TypeParameter(type, toList_0(extends_0)));
5367
+ };
5368
+ protoOf(InterfaceBuilder).r18 = function (type) {
5369
+ this.m17_1.x(type);
5370
+ };
5371
+ protoOf(InterfaceBuilder).y15 = function (name, type, isOverride) {
5372
+ this.n17_1.x(new Field(Companion_getInstance_4().au(name), type, isOverride));
5373
+ };
5374
+ protoOf(InterfaceBuilder).s18 = function (name, type, isOverride, $super) {
5375
+ isOverride = isOverride === VOID ? false : isOverride;
5376
+ var tmp;
5377
+ if ($super === VOID) {
5378
+ this.y15(name, type, isOverride);
5379
+ tmp = Unit_instance;
5380
+ } else {
5381
+ tmp = $super.y15.call(this, name, type, isOverride);
5382
+ }
5383
+ return tmp;
5384
+ };
5385
+ protoOf(InterfaceBuilder).v13 = function () {
5386
+ return new Interface(this.i17_1, this.k17_1, this.m17_1, this.j17_1, this.l17_1, this.n17_1);
5387
+ };
5385
5388
  function CaseBuilder(value) {
5386
- this.f18_1 = value;
5389
+ this.d18_1 = value;
5387
5390
  var tmp = this;
5388
5391
  // Inline function 'kotlin.collections.mutableListOf' call
5389
- tmp.g18_1 = ArrayList_init_$Create$_0();
5392
+ tmp.e18_1 = ArrayList_init_$Create$_0();
5390
5393
  }
5391
5394
  protoOf(CaseBuilder).d14 = function (expression) {
5392
5395
  var tmp;
5393
5396
  if (isInterface(expression, Statement)) {
5394
- tmp = lastOrNull(this.g18_1) === expression;
5397
+ tmp = lastOrNull(this.e18_1) === expression;
5395
5398
  } else {
5396
5399
  tmp = false;
5397
5400
  }
5398
5401
  if (tmp) {
5399
- this.g18_1.d3(this.g18_1.c1() - 1 | 0);
5402
+ this.e18_1.d3(this.e18_1.c1() - 1 | 0);
5400
5403
  }
5401
- this.g18_1.x(new ReturnStatement(expression));
5404
+ this.e18_1.x(new ReturnStatement(expression));
5402
5405
  };
5403
5406
  protoOf(CaseBuilder).f14 = function (type, block) {
5404
5407
  var builder = new ConstructorBuilder(type);
5405
5408
  block(builder);
5406
5409
  var node = builder.v13();
5407
- this.g18_1.x(node);
5410
+ this.e18_1.x(node);
5408
5411
  return node;
5409
5412
  };
5410
5413
  protoOf(CaseBuilder).v14 = function (message) {
5411
- this.g18_1.x(new ErrorStatement(message));
5414
+ this.e18_1.x(new ErrorStatement(message));
5412
5415
  };
5413
5416
  protoOf(CaseBuilder).v13 = function () {
5414
- return new Case(this.f18_1, this.g18_1);
5417
+ return new Case(this.d18_1, this.e18_1);
5415
5418
  };
5416
5419
  function UnionBuilder_init_$Init$(nameStr, extends_0, $this) {
5417
5420
  extends_0 = extends_0 === VOID ? null : extends_0;
@@ -5423,26 +5426,26 @@ function UnionBuilder_init_$Create$(nameStr, extends_0) {
5423
5426
  }
5424
5427
  function UnionBuilder(name, extends_0) {
5425
5428
  extends_0 = extends_0 === VOID ? null : extends_0;
5426
- this.j18_1 = name;
5427
- this.k18_1 = extends_0;
5429
+ this.h18_1 = name;
5430
+ this.i18_1 = extends_0;
5428
5431
  var tmp = this;
5429
5432
  // Inline function 'kotlin.collections.mutableListOf' call
5430
- tmp.l18_1 = ArrayList_init_$Create$_0();
5433
+ tmp.j18_1 = ArrayList_init_$Create$_0();
5431
5434
  var tmp_0 = this;
5432
5435
  // Inline function 'kotlin.collections.mutableListOf' call
5433
- tmp_0.m18_1 = ArrayList_init_$Create$_0();
5436
+ tmp_0.k18_1 = ArrayList_init_$Create$_0();
5434
5437
  }
5435
5438
  protoOf(UnionBuilder).t18 = function (name) {
5436
- this.l18_1.x(Custom_init_$Create$(name));
5439
+ this.j18_1.x(Custom_init_$Create$(name));
5437
5440
  };
5438
5441
  protoOf(UnionBuilder).u18 = function (name) {
5439
- this.l18_1.x(new Custom(name));
5442
+ this.j18_1.x(new Custom(name));
5440
5443
  };
5441
5444
  protoOf(UnionBuilder).w13 = function (type, extends_0) {
5442
- this.m18_1.x(new TypeParameter(type, toList_0(extends_0)));
5445
+ this.k18_1.x(new TypeParameter(type, toList_0(extends_0)));
5443
5446
  };
5444
5447
  protoOf(UnionBuilder).v13 = function () {
5445
- return new Union(this.j18_1, this.k18_1, this.l18_1, this.m18_1);
5448
+ return new Union(this.h18_1, this.i18_1, this.j18_1, this.k18_1);
5446
5449
  };
5447
5450
  function EnumBuilder_init_$Init$(nameStr, extends_0, $this) {
5448
5451
  extends_0 = extends_0 === VOID ? null : extends_0;
@@ -5454,29 +5457,29 @@ function EnumBuilder_init_$Create$(nameStr, extends_0) {
5454
5457
  }
5455
5458
  function EnumBuilder(name, extends_0) {
5456
5459
  extends_0 = extends_0 === VOID ? null : extends_0;
5457
- this.n18_1 = name;
5458
- this.o18_1 = extends_0;
5460
+ this.l18_1 = name;
5461
+ this.m18_1 = extends_0;
5459
5462
  var tmp = this;
5460
5463
  // Inline function 'kotlin.collections.mutableListOf' call
5461
- tmp.p18_1 = ArrayList_init_$Create$_0();
5464
+ tmp.n18_1 = ArrayList_init_$Create$_0();
5462
5465
  var tmp_0 = this;
5463
5466
  // Inline function 'kotlin.collections.mutableListOf' call
5464
- tmp_0.q18_1 = ArrayList_init_$Create$_0();
5467
+ tmp_0.o18_1 = ArrayList_init_$Create$_0();
5465
5468
  var tmp_1 = this;
5466
5469
  // Inline function 'kotlin.collections.mutableListOf' call
5467
- tmp_1.r18_1 = ArrayList_init_$Create$_0();
5470
+ tmp_1.p18_1 = ArrayList_init_$Create$_0();
5468
5471
  var tmp_2 = this;
5469
5472
  // Inline function 'kotlin.collections.mutableListOf' call
5470
- tmp_2.s18_1 = ArrayList_init_$Create$_0();
5473
+ tmp_2.q18_1 = ArrayList_init_$Create$_0();
5471
5474
  }
5472
5475
  protoOf(EnumBuilder).hv = function () {
5473
- return this.s18_1;
5476
+ return this.q18_1;
5474
5477
  };
5475
5478
  protoOf(EnumBuilder).v18 = function (name, values) {
5476
- this.p18_1.x(new Entry(Companion_getInstance_4().au(name), toList_0(values)));
5479
+ this.n18_1.x(new Entry(Companion_getInstance_4().au(name), toList_0(values)));
5477
5480
  };
5478
5481
  protoOf(EnumBuilder).v13 = function () {
5479
- return new Enum_0(this.n18_1, this.o18_1, this.p18_1, this.q18_1, this.r18_1, this.s18_1);
5482
+ return new Enum_0(this.l18_1, this.m18_1, this.n18_1, this.o18_1, this.p18_1, this.q18_1);
5480
5483
  };
5481
5484
  function file_0(name, block) {
5482
5485
  var builder = FileBuilder_init_$Create$(name);
@@ -5916,12 +5919,12 @@ function TransformerBuilder$build$1(this$0) {
5916
5919
  protoOf(TransformerBuilder$build$1).w18 = function (type) {
5917
5920
  var tmp0_safe_receiver = this.x19_1.l19_1;
5918
5921
  var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver(type, this);
5919
- return tmp1_elvis_lhs == null ? transformChildren_1(type, this) : tmp1_elvis_lhs;
5922
+ return tmp1_elvis_lhs == null ? transformChildren_3(type, this) : tmp1_elvis_lhs;
5920
5923
  };
5921
5924
  protoOf(TransformerBuilder$build$1).x18 = function (element) {
5922
5925
  var tmp0_safe_receiver = this.x19_1.m19_1;
5923
5926
  var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver(element, this);
5924
- return tmp1_elvis_lhs == null ? transformChildren_2(element, this) : tmp1_elvis_lhs;
5927
+ return tmp1_elvis_lhs == null ? transformChildren_1(element, this) : tmp1_elvis_lhs;
5925
5928
  };
5926
5929
  protoOf(TransformerBuilder$build$1).y18 = function (statement) {
5927
5930
  var tmp0_safe_receiver = this.x19_1.n19_1;
@@ -5936,22 +5939,22 @@ protoOf(TransformerBuilder$build$1).z18 = function (expression) {
5936
5939
  protoOf(TransformerBuilder$build$1).a19 = function (field) {
5937
5940
  var tmp0_safe_receiver = this.x19_1.p19_1;
5938
5941
  var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver(field, this);
5939
- return tmp1_elvis_lhs == null ? transformChildren_3(field, this) : tmp1_elvis_lhs;
5942
+ return tmp1_elvis_lhs == null ? transformChildren_4(field, this) : tmp1_elvis_lhs;
5940
5943
  };
5941
5944
  protoOf(TransformerBuilder$build$1).b19 = function (parameter) {
5942
5945
  var tmp0_safe_receiver = this.x19_1.q19_1;
5943
5946
  var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver(parameter, this);
5944
- return tmp1_elvis_lhs == null ? transformChildren_4(parameter, this) : tmp1_elvis_lhs;
5947
+ return tmp1_elvis_lhs == null ? transformChildren_5(parameter, this) : tmp1_elvis_lhs;
5945
5948
  };
5946
5949
  protoOf(TransformerBuilder$build$1).c19 = function (constructor) {
5947
5950
  var tmp0_safe_receiver = this.x19_1.r19_1;
5948
5951
  var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver(constructor, this);
5949
- return tmp1_elvis_lhs == null ? transformChildren_5(constructor, this) : tmp1_elvis_lhs;
5952
+ return tmp1_elvis_lhs == null ? transformChildren_6(constructor, this) : tmp1_elvis_lhs;
5950
5953
  };
5951
5954
  protoOf(TransformerBuilder$build$1).d19 = function (case_0) {
5952
5955
  var tmp0_safe_receiver = this.x19_1.s19_1;
5953
5956
  var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver(case_0, this);
5954
- return tmp1_elvis_lhs == null ? transformChildren_6(case_0, this) : tmp1_elvis_lhs;
5957
+ return tmp1_elvis_lhs == null ? transformChildren_2(case_0, this) : tmp1_elvis_lhs;
5955
5958
  };
5956
5959
  function TransformerBuilder() {
5957
5960
  this.l19_1 = null;
@@ -5992,91 +5995,6 @@ protoOf(TransformerBuilder).t19 = function () {
5992
5995
  return new TransformerBuilder$build$1(this);
5993
5996
  };
5994
5997
  function transformChildren_1(_this__u8e3s4, transformer) {
5995
- var tmp;
5996
- if (_this__u8e3s4 instanceof Array_0) {
5997
- tmp = _this__u8e3s4.nu(transformer.w18(_this__u8e3s4.mu_1));
5998
- } else {
5999
- if (_this__u8e3s4 instanceof Dict) {
6000
- tmp = _this__u8e3s4.qu(transformer.w18(_this__u8e3s4.ou_1), transformer.w18(_this__u8e3s4.pu_1));
6001
- } else {
6002
- if (_this__u8e3s4 instanceof Custom) {
6003
- // Inline function 'kotlin.collections.map' call
6004
- var this_0 = _this__u8e3s4.su_1;
6005
- // Inline function 'kotlin.collections.mapTo' call
6006
- var destination = ArrayList_init_$Create$(collectionSizeOrDefault_0(this_0, 10));
6007
- var _iterator__ex2g4s = this_0.t();
6008
- while (_iterator__ex2g4s.u()) {
6009
- var item = _iterator__ex2g4s.v();
6010
- var tmp$ret$2 = transformer.w18(item);
6011
- destination.x(tmp$ret$2);
6012
- }
6013
- tmp = _this__u8e3s4.uu(VOID, destination);
6014
- } else {
6015
- if (_this__u8e3s4 instanceof Nullable) {
6016
- tmp = _this__u8e3s4.nu(transformer.w18(_this__u8e3s4.vu_1));
6017
- } else {
6018
- if (_this__u8e3s4 instanceof Function) {
6019
- // Inline function 'kotlin.collections.map' call
6020
- var this_1 = _this__u8e3s4.yu_1;
6021
- // Inline function 'kotlin.collections.mapTo' call
6022
- var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault_0(this_1, 10));
6023
- var _iterator__ex2g4s_0 = this_1.t();
6024
- while (_iterator__ex2g4s_0.u()) {
6025
- var item_0 = _iterator__ex2g4s_0.v();
6026
- var tmp$ret$5 = transformer.w18(item_0);
6027
- destination_0.x(tmp$ret$5);
6028
- }
6029
- tmp = _this__u8e3s4.dv(destination_0, transformer.w18(_this__u8e3s4.zu_1));
6030
- } else {
6031
- var tmp_0;
6032
- var tmp_1;
6033
- var tmp_2;
6034
- if (_this__u8e3s4 instanceof Integer) {
6035
- tmp_2 = true;
6036
- } else {
6037
- tmp_2 = _this__u8e3s4 instanceof Number_0;
6038
- }
6039
- if (tmp_2) {
6040
- tmp_1 = true;
6041
- } else {
6042
- tmp_1 = equals(_this__u8e3s4, Any_instance) || (equals(_this__u8e3s4, String_instance) || equals(_this__u8e3s4, Boolean_instance));
6043
- }
6044
- if (tmp_1) {
6045
- tmp_0 = true;
6046
- } else {
6047
- var tmp_3;
6048
- if (equals(_this__u8e3s4, Bytes_instance) || (equals(_this__u8e3s4, Unit_instance_0) || equals(_this__u8e3s4, Wildcard_instance))) {
6049
- tmp_3 = true;
6050
- } else {
6051
- var tmp_4;
6052
- if (equals(_this__u8e3s4, Reflect_instance)) {
6053
- tmp_4 = true;
6054
- } else {
6055
- var tmp_5;
6056
- if (_this__u8e3s4 instanceof IntegerLiteral) {
6057
- tmp_5 = true;
6058
- } else {
6059
- tmp_5 = _this__u8e3s4 instanceof StringLiteral;
6060
- }
6061
- tmp_4 = tmp_5;
6062
- }
6063
- tmp_3 = tmp_4;
6064
- }
6065
- tmp_0 = tmp_3;
6066
- }
6067
- if (tmp_0) {
6068
- tmp = _this__u8e3s4;
6069
- } else {
6070
- noWhenBranchMatchedException();
6071
- }
6072
- }
6073
- }
6074
- }
6075
- }
6076
- }
6077
- return tmp;
6078
- }
6079
- function transformChildren_2(_this__u8e3s4, transformer) {
6080
5998
  var tmp;
6081
5999
  if (_this__u8e3s4 instanceof File) {
6082
6000
  // Inline function 'kotlin.collections.map' call
@@ -6359,7 +6277,7 @@ function transformChildren_2(_this__u8e3s4, transformer) {
6359
6277
  tmp = _this__u8e3s4.i11(tmp_26, destination_17);
6360
6278
  } else {
6361
6279
  if (_this__u8e3s4 instanceof Field) {
6362
- tmp = transformChildren_3(_this__u8e3s4, transformer);
6280
+ tmp = transformChildren_4(_this__u8e3s4, transformer);
6363
6281
  } else {
6364
6282
  if (_this__u8e3s4 instanceof RawElement) {
6365
6283
  tmp = _this__u8e3s4;
@@ -6379,37 +6297,7 @@ function transformChildren_2(_this__u8e3s4, transformer) {
6379
6297
  }
6380
6298
  return tmp;
6381
6299
  }
6382
- function transformChildren_3(_this__u8e3s4, transformer) {
6383
- return _this__u8e3s4.kw(VOID, transformer.w18(_this__u8e3s4.bw_1));
6384
- }
6385
- function transformChildren_4(_this__u8e3s4, transformer) {
6386
- return _this__u8e3s4.sz(VOID, transformer.w18(_this__u8e3s4.pz_1));
6387
- }
6388
- function transformChildren_5(_this__u8e3s4, transformer) {
6389
- // Inline function 'kotlin.collections.map' call
6390
- var this_0 = _this__u8e3s4.g10_1;
6391
- // Inline function 'kotlin.collections.mapTo' call
6392
- var destination = ArrayList_init_$Create$(collectionSizeOrDefault_0(this_0, 10));
6393
- var _iterator__ex2g4s = this_0.t();
6394
- while (_iterator__ex2g4s.u()) {
6395
- var item = _iterator__ex2g4s.v();
6396
- var tmp$ret$2 = transformer.b19(item);
6397
- destination.x(tmp$ret$2);
6398
- }
6399
- var tmp = destination;
6400
- // Inline function 'kotlin.collections.map' call
6401
- var this_1 = _this__u8e3s4.h10_1;
6402
- // Inline function 'kotlin.collections.mapTo' call
6403
- var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault_0(this_1, 10));
6404
- var _iterator__ex2g4s_0 = this_1.t();
6405
- while (_iterator__ex2g4s_0.u()) {
6406
- var item_0 = _iterator__ex2g4s_0.v();
6407
- var tmp$ret$5 = transformer.y18(item_0);
6408
- destination_0.x(tmp$ret$5);
6409
- }
6410
- return _this__u8e3s4.i10(tmp, destination_0);
6411
- }
6412
- function transformChildren_6(_this__u8e3s4, transformer) {
6300
+ function transformChildren_2(_this__u8e3s4, transformer) {
6413
6301
  var tmp = transformer.z18(_this__u8e3s4.fz_1);
6414
6302
  // Inline function 'kotlin.collections.map' call
6415
6303
  var this_0 = _this__u8e3s4.gz_1;
@@ -6432,40 +6320,155 @@ function transformChildren_6(_this__u8e3s4, transformer) {
6432
6320
  }
6433
6321
  return _this__u8e3s4.iz(tmp, tmp_0, tmp_1);
6434
6322
  }
6435
- function transformFieldsWhere(_this__u8e3s4, predicate, transform_0) {
6436
- // Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
6437
- // Inline function 'kotlin.apply' call
6438
- var this_0 = new TransformerBuilder();
6439
- this_0.z19(transformFieldsWhere$lambda(predicate, transform_0));
6440
- var tmp$ret$0 = this_0.t19();
6441
- return transform(_this__u8e3s4, tmp$ret$0);
6442
- }
6443
- function transformParametersWhere(_this__u8e3s4, predicate, transform_0) {
6444
- // Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
6445
- // Inline function 'kotlin.apply' call
6446
- var this_0 = new TransformerBuilder();
6447
- this_0.a1a(transformParametersWhere$lambda(predicate, transform_0));
6448
- var tmp$ret$0 = this_0.t19();
6449
- return transform(_this__u8e3s4, tmp$ret$0);
6450
- }
6451
- function transform(_this__u8e3s4, transformer) {
6452
- var tmp = transformer.x18(_this__u8e3s4);
6453
- return isInterface(tmp, Element) ? tmp : THROW_CCE();
6454
- }
6455
- function forEachType(_this__u8e3s4, action) {
6456
- // Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
6457
- // Inline function 'kotlin.apply' call
6458
- var this_0 = new TransformerBuilder();
6459
- this_0.k19(forEachType$lambda(action));
6460
- var tmp$ret$0 = this_0.t19();
6461
- transform(_this__u8e3s4, tmp$ret$0);
6462
- }
6463
- function forEachElement(_this__u8e3s4, action) {
6464
- // Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
6465
- // Inline function 'kotlin.apply' call
6466
- var this_0 = new TransformerBuilder();
6467
- this_0.y19(forEachElement$lambda(action));
6468
- var tmp$ret$0 = this_0.t19();
6323
+ function transformChildren_3(_this__u8e3s4, transformer) {
6324
+ var tmp;
6325
+ if (_this__u8e3s4 instanceof Array_0) {
6326
+ tmp = _this__u8e3s4.nu(transformer.w18(_this__u8e3s4.mu_1));
6327
+ } else {
6328
+ if (_this__u8e3s4 instanceof Dict) {
6329
+ tmp = _this__u8e3s4.qu(transformer.w18(_this__u8e3s4.ou_1), transformer.w18(_this__u8e3s4.pu_1));
6330
+ } else {
6331
+ if (_this__u8e3s4 instanceof Custom) {
6332
+ // Inline function 'kotlin.collections.map' call
6333
+ var this_0 = _this__u8e3s4.su_1;
6334
+ // Inline function 'kotlin.collections.mapTo' call
6335
+ var destination = ArrayList_init_$Create$(collectionSizeOrDefault_0(this_0, 10));
6336
+ var _iterator__ex2g4s = this_0.t();
6337
+ while (_iterator__ex2g4s.u()) {
6338
+ var item = _iterator__ex2g4s.v();
6339
+ var tmp$ret$2 = transformer.w18(item);
6340
+ destination.x(tmp$ret$2);
6341
+ }
6342
+ tmp = _this__u8e3s4.uu(VOID, destination);
6343
+ } else {
6344
+ if (_this__u8e3s4 instanceof Nullable) {
6345
+ tmp = _this__u8e3s4.nu(transformer.w18(_this__u8e3s4.vu_1));
6346
+ } else {
6347
+ if (_this__u8e3s4 instanceof Function) {
6348
+ // Inline function 'kotlin.collections.map' call
6349
+ var this_1 = _this__u8e3s4.yu_1;
6350
+ // Inline function 'kotlin.collections.mapTo' call
6351
+ var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault_0(this_1, 10));
6352
+ var _iterator__ex2g4s_0 = this_1.t();
6353
+ while (_iterator__ex2g4s_0.u()) {
6354
+ var item_0 = _iterator__ex2g4s_0.v();
6355
+ var tmp$ret$5 = transformer.w18(item_0);
6356
+ destination_0.x(tmp$ret$5);
6357
+ }
6358
+ tmp = _this__u8e3s4.dv(destination_0, transformer.w18(_this__u8e3s4.zu_1));
6359
+ } else {
6360
+ var tmp_0;
6361
+ var tmp_1;
6362
+ var tmp_2;
6363
+ if (_this__u8e3s4 instanceof Integer) {
6364
+ tmp_2 = true;
6365
+ } else {
6366
+ tmp_2 = _this__u8e3s4 instanceof Number_0;
6367
+ }
6368
+ if (tmp_2) {
6369
+ tmp_1 = true;
6370
+ } else {
6371
+ tmp_1 = equals(_this__u8e3s4, Any_instance) || (equals(_this__u8e3s4, String_instance) || equals(_this__u8e3s4, Boolean_instance));
6372
+ }
6373
+ if (tmp_1) {
6374
+ tmp_0 = true;
6375
+ } else {
6376
+ var tmp_3;
6377
+ if (equals(_this__u8e3s4, Bytes_instance) || (equals(_this__u8e3s4, Unit_instance_0) || equals(_this__u8e3s4, Wildcard_instance))) {
6378
+ tmp_3 = true;
6379
+ } else {
6380
+ var tmp_4;
6381
+ if (equals(_this__u8e3s4, Reflect_instance)) {
6382
+ tmp_4 = true;
6383
+ } else {
6384
+ var tmp_5;
6385
+ if (_this__u8e3s4 instanceof IntegerLiteral) {
6386
+ tmp_5 = true;
6387
+ } else {
6388
+ tmp_5 = _this__u8e3s4 instanceof StringLiteral;
6389
+ }
6390
+ tmp_4 = tmp_5;
6391
+ }
6392
+ tmp_3 = tmp_4;
6393
+ }
6394
+ tmp_0 = tmp_3;
6395
+ }
6396
+ if (tmp_0) {
6397
+ tmp = _this__u8e3s4;
6398
+ } else {
6399
+ noWhenBranchMatchedException();
6400
+ }
6401
+ }
6402
+ }
6403
+ }
6404
+ }
6405
+ }
6406
+ return tmp;
6407
+ }
6408
+ function transformChildren_4(_this__u8e3s4, transformer) {
6409
+ return _this__u8e3s4.kw(VOID, transformer.w18(_this__u8e3s4.bw_1));
6410
+ }
6411
+ function transformChildren_5(_this__u8e3s4, transformer) {
6412
+ return _this__u8e3s4.sz(VOID, transformer.w18(_this__u8e3s4.pz_1));
6413
+ }
6414
+ function transformChildren_6(_this__u8e3s4, transformer) {
6415
+ // Inline function 'kotlin.collections.map' call
6416
+ var this_0 = _this__u8e3s4.g10_1;
6417
+ // Inline function 'kotlin.collections.mapTo' call
6418
+ var destination = ArrayList_init_$Create$(collectionSizeOrDefault_0(this_0, 10));
6419
+ var _iterator__ex2g4s = this_0.t();
6420
+ while (_iterator__ex2g4s.u()) {
6421
+ var item = _iterator__ex2g4s.v();
6422
+ var tmp$ret$2 = transformer.b19(item);
6423
+ destination.x(tmp$ret$2);
6424
+ }
6425
+ var tmp = destination;
6426
+ // Inline function 'kotlin.collections.map' call
6427
+ var this_1 = _this__u8e3s4.h10_1;
6428
+ // Inline function 'kotlin.collections.mapTo' call
6429
+ var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault_0(this_1, 10));
6430
+ var _iterator__ex2g4s_0 = this_1.t();
6431
+ while (_iterator__ex2g4s_0.u()) {
6432
+ var item_0 = _iterator__ex2g4s_0.v();
6433
+ var tmp$ret$5 = transformer.y18(item_0);
6434
+ destination_0.x(tmp$ret$5);
6435
+ }
6436
+ return _this__u8e3s4.i10(tmp, destination_0);
6437
+ }
6438
+ function transformFieldsWhere(_this__u8e3s4, predicate, transform_0) {
6439
+ // Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
6440
+ // Inline function 'kotlin.apply' call
6441
+ var this_0 = new TransformerBuilder();
6442
+ this_0.z19(transformFieldsWhere$lambda(predicate, transform_0));
6443
+ var tmp$ret$0 = this_0.t19();
6444
+ return transform(_this__u8e3s4, tmp$ret$0);
6445
+ }
6446
+ function transformParametersWhere(_this__u8e3s4, predicate, transform_0) {
6447
+ // Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
6448
+ // Inline function 'kotlin.apply' call
6449
+ var this_0 = new TransformerBuilder();
6450
+ this_0.a1a(transformParametersWhere$lambda(predicate, transform_0));
6451
+ var tmp$ret$0 = this_0.t19();
6452
+ return transform(_this__u8e3s4, tmp$ret$0);
6453
+ }
6454
+ function transform(_this__u8e3s4, transformer) {
6455
+ var tmp = transformer.x18(_this__u8e3s4);
6456
+ return isInterface(tmp, Element) ? tmp : THROW_CCE();
6457
+ }
6458
+ function forEachType(_this__u8e3s4, action) {
6459
+ // Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
6460
+ // Inline function 'kotlin.apply' call
6461
+ var this_0 = new TransformerBuilder();
6462
+ this_0.k19(forEachType$lambda(action));
6463
+ var tmp$ret$0 = this_0.t19();
6464
+ transform(_this__u8e3s4, tmp$ret$0);
6465
+ }
6466
+ function forEachElement(_this__u8e3s4, action) {
6467
+ // Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
6468
+ // Inline function 'kotlin.apply' call
6469
+ var this_0 = new TransformerBuilder();
6470
+ this_0.y19(forEachElement$lambda(action));
6471
+ var tmp$ret$0 = this_0.t19();
6469
6472
  transform(_this__u8e3s4, tmp$ret$0);
6470
6473
  }
6471
6474
  function substitute(_this__u8e3s4, variable, replacement) {
@@ -6603,25 +6606,25 @@ function collectCustomTypeNames$lambda($$this$buildSet) {
6603
6606
  function transformFieldsWhere$lambda($predicate, $transform) {
6604
6607
  return function (field, transformer) {
6605
6608
  var transformed = $predicate(field) ? $transform(field) : field;
6606
- return transformChildren_3(transformed, transformer);
6609
+ return transformChildren_4(transformed, transformer);
6607
6610
  };
6608
6611
  }
6609
6612
  function transformParametersWhere$lambda($predicate, $transform) {
6610
6613
  return function (parameter, transformer) {
6611
6614
  var transformed = $predicate(parameter) ? $transform(parameter) : parameter;
6612
- return transformChildren_4(transformed, transformer);
6615
+ return transformChildren_5(transformed, transformer);
6613
6616
  };
6614
6617
  }
6615
6618
  function forEachType$lambda($action) {
6616
6619
  return function (type, tr) {
6617
6620
  $action(type);
6618
- return transformChildren_1(type, tr);
6621
+ return transformChildren_3(type, tr);
6619
6622
  };
6620
6623
  }
6621
6624
  function forEachElement$lambda($action) {
6622
6625
  return function (element, tr) {
6623
6626
  $action(element);
6624
- return transformChildren_2(element, tr);
6627
+ return transformChildren_1(element, tr);
6625
6628
  };
6626
6629
  }
6627
6630
  function substitute$lambda($variable, $replacement) {
@@ -7276,7 +7279,7 @@ function convertToGenerator$lambda$lambda$lambda$lambda($variantNames) {
7276
7279
  while (_iterator__ex2g4s.u()) {
7277
7280
  var variantName = _iterator__ex2g4s.v();
7278
7281
  var tmp = new Literal(variantName, String_instance);
7279
- $this$switch.e18(tmp, convertToGenerator$lambda$lambda$lambda$lambda$lambda(variantName));
7282
+ $this$switch.c18(tmp, convertToGenerator$lambda$lambda$lambda$lambda$lambda(variantName));
7280
7283
  }
7281
7284
  return Unit_instance;
7282
7285
  };
@@ -7809,8 +7812,8 @@ function convertClientServer$lambda$lambda_2($this$function) {
7809
7812
  function convertClientServer$lambda_1($this$interface) {
7810
7813
  $this$interface.w13($this$interface.e15('Req', []), [$this$interface.e15('Request', [Wildcard_instance])]);
7811
7814
  $this$interface.w13($this$interface.e15('Res', []), [$this$interface.e15('Response', [Wildcard_instance])]);
7812
- $this$interface.p17('pathTemplate', String_instance);
7813
- $this$interface.p17('method', String_instance);
7815
+ $this$interface.s18('pathTemplate', String_instance);
7816
+ $this$interface.s18('method', String_instance);
7814
7817
  $this$interface.k16('client', VOID, VOID, convertClientServer$lambda$lambda_3);
7815
7818
  return Unit_instance;
7816
7819
  }
@@ -7822,8 +7825,8 @@ function convertClientServer$lambda$lambda_3($this$function) {
7822
7825
  function convertClientServer$lambda_2($this$interface) {
7823
7826
  $this$interface.w13($this$interface.e15('Req', []), [$this$interface.e15('Request', [Wildcard_instance])]);
7824
7827
  $this$interface.w13($this$interface.e15('Res', []), [$this$interface.e15('Response', [Wildcard_instance])]);
7825
- $this$interface.p17('pathTemplate', String_instance);
7826
- $this$interface.p17('method', String_instance);
7828
+ $this$interface.s18('pathTemplate', String_instance);
7829
+ $this$interface.s18('method', String_instance);
7827
7830
  $this$interface.k16('server', VOID, VOID, convertClientServer$lambda$lambda_4);
7828
7831
  return Unit_instance;
7829
7832
  }
@@ -7860,28 +7863,28 @@ function convert$lambda$lambda($this$namespace) {
7860
7863
  $this$namespace.w16('Serializer', VOID, convert$lambda$lambda$lambda_14);
7861
7864
  $this$namespace.w16('Deserializer', VOID, convert$lambda$lambda$lambda_15);
7862
7865
  $this$namespace.w16('Serialization', VOID, convert$lambda$lambda$lambda_16);
7863
- $this$namespace.t17('RawRequest', convert$lambda$lambda$lambda_17);
7864
- $this$namespace.t17('RawResponse', convert$lambda$lambda$lambda_18);
7866
+ $this$namespace.r17('RawRequest', convert$lambda$lambda$lambda_17);
7867
+ $this$namespace.r17('RawResponse', convert$lambda$lambda$lambda_18);
7865
7868
  $this$namespace.w16('Transportation', VOID, convert$lambda$lambda$lambda_19);
7866
7869
  $this$namespace.v16('GeneratorField', true, convert$lambda$lambda$lambda_20);
7867
- $this$namespace.t17('GeneratorFieldString', convert$lambda$lambda$lambda_21);
7868
- $this$namespace.t17('GeneratorFieldInteger64', convert$lambda$lambda$lambda_22);
7869
- $this$namespace.t17('GeneratorFieldInteger32', convert$lambda$lambda$lambda_23);
7870
- $this$namespace.t17('GeneratorFieldNumber64', convert$lambda$lambda$lambda_24);
7871
- $this$namespace.t17('GeneratorFieldNumber32', convert$lambda$lambda$lambda_25);
7872
- $this$namespace.t17('GeneratorFieldBoolean', convert$lambda$lambda$lambda_26);
7873
- $this$namespace.t17('GeneratorFieldBytes', convert$lambda$lambda$lambda_27);
7874
- $this$namespace.t17('GeneratorFieldEnum', convert$lambda$lambda$lambda_28);
7875
- $this$namespace.t17('GeneratorFieldUnion', convert$lambda$lambda$lambda_29);
7876
- $this$namespace.t17('GeneratorFieldArray', convert$lambda$lambda$lambda_30);
7877
- $this$namespace.t17('GeneratorFieldNullable', convert$lambda$lambda$lambda_31);
7878
- $this$namespace.t17('GeneratorFieldShape', convert$lambda$lambda$lambda_32);
7879
- $this$namespace.t17('GeneratorFieldDict', convert$lambda$lambda$lambda_33);
7870
+ $this$namespace.r17('GeneratorFieldString', convert$lambda$lambda$lambda_21);
7871
+ $this$namespace.r17('GeneratorFieldInteger64', convert$lambda$lambda$lambda_22);
7872
+ $this$namespace.r17('GeneratorFieldInteger32', convert$lambda$lambda$lambda_23);
7873
+ $this$namespace.r17('GeneratorFieldNumber64', convert$lambda$lambda$lambda_24);
7874
+ $this$namespace.r17('GeneratorFieldNumber32', convert$lambda$lambda$lambda_25);
7875
+ $this$namespace.r17('GeneratorFieldBoolean', convert$lambda$lambda$lambda_26);
7876
+ $this$namespace.r17('GeneratorFieldBytes', convert$lambda$lambda$lambda_27);
7877
+ $this$namespace.r17('GeneratorFieldEnum', convert$lambda$lambda$lambda_28);
7878
+ $this$namespace.r17('GeneratorFieldUnion', convert$lambda$lambda$lambda_29);
7879
+ $this$namespace.r17('GeneratorFieldArray', convert$lambda$lambda$lambda_30);
7880
+ $this$namespace.r17('GeneratorFieldNullable', convert$lambda$lambda$lambda_31);
7881
+ $this$namespace.r17('GeneratorFieldShape', convert$lambda$lambda$lambda_32);
7882
+ $this$namespace.r17('GeneratorFieldDict', convert$lambda$lambda$lambda_33);
7880
7883
  $this$namespace.w16('Generator', VOID, convert$lambda$lambda$lambda_34);
7881
7884
  return Unit_instance;
7882
7885
  }
7883
7886
  function convert$lambda$lambda$lambda($this$interface) {
7884
- $this$interface.o17(Custom_init_$Create$('Model'));
7887
+ $this$interface.r18(Custom_init_$Create$('Model'));
7885
7888
  $this$interface.k16('validate', VOID, VOID, convert$lambda$lambda$lambda$lambda);
7886
7889
  return Unit_instance;
7887
7890
  }
@@ -7890,14 +7893,14 @@ function convert$lambda$lambda$lambda$lambda($this$function) {
7890
7893
  return Unit_instance;
7891
7894
  }
7892
7895
  function convert$lambda$lambda$lambda_0($this$interface) {
7893
- $this$interface.o17(Custom_init_$Create$('Model'));
7894
- $this$interface.p17('label', $this$interface.x14());
7896
+ $this$interface.r18(Custom_init_$Create$('Model'));
7897
+ $this$interface.s18('label', $this$interface.x14());
7895
7898
  return Unit_instance;
7896
7899
  }
7897
7900
  function convert$lambda$lambda$lambda_1($this$interface) {
7898
- $this$interface.o17(Custom_init_$Create$('Model'));
7901
+ $this$interface.r18(Custom_init_$Create$('Model'));
7899
7902
  $this$interface.w13($this$interface.e15('T', []), []);
7900
- $this$interface.p17('value', $this$interface.e15('T', []));
7903
+ $this$interface.s18('value', $this$interface.e15('T', []));
7901
7904
  $this$interface.k16('validate', VOID, VOID, convert$lambda$lambda$lambda$lambda_0);
7902
7905
  return Unit_instance;
7903
7906
  }
@@ -7918,19 +7921,19 @@ function convert$lambda$lambda$lambda_2($this$enum) {
7918
7921
  }
7919
7922
  function convert$lambda$lambda$lambda_3($this$interface) {
7920
7923
  $this$interface.w13($this$interface.e15('T', []), []);
7921
- $this$interface.p17('path', $this$interface.e15('Path', []));
7922
- $this$interface.p17('method', $this$interface.e15('Method', []));
7923
- $this$interface.p17('queries', $this$interface.e15('Queries', []));
7924
- $this$interface.p17('headers', $this$interface.e15('Headers', []));
7925
- $this$interface.p17('body', $this$interface.e15('T', []));
7924
+ $this$interface.s18('path', $this$interface.e15('Path', []));
7925
+ $this$interface.s18('method', $this$interface.e15('Method', []));
7926
+ $this$interface.s18('queries', $this$interface.e15('Queries', []));
7927
+ $this$interface.s18('headers', $this$interface.e15('Headers', []));
7928
+ $this$interface.s18('body', $this$interface.e15('T', []));
7926
7929
  $this$interface.w16('Headers');
7927
7930
  return Unit_instance;
7928
7931
  }
7929
7932
  function convert$lambda$lambda$lambda_4($this$interface) {
7930
7933
  $this$interface.w13($this$interface.e15('T', []), []);
7931
- $this$interface.p17('status', $this$interface.b17());
7932
- $this$interface.p17('headers', $this$interface.e15('Headers', []));
7933
- $this$interface.p17('body', $this$interface.e15('T', []));
7934
+ $this$interface.s18('status', $this$interface.b17());
7935
+ $this$interface.s18('headers', $this$interface.e15('Headers', []));
7936
+ $this$interface.s18('body', $this$interface.e15('T', []));
7934
7937
  $this$interface.w16('Headers');
7935
7938
  return Unit_instance;
7936
7939
  }
@@ -7959,8 +7962,8 @@ function convert$lambda$lambda$lambda$lambda_2($this$function) {
7959
7962
  return Unit_instance;
7960
7963
  }
7961
7964
  function convert$lambda$lambda$lambda_7($this$interface) {
7962
- $this$interface.o17($this$interface.e15('BodySerializer', []));
7963
- $this$interface.o17($this$interface.e15('BodyDeserializer', []));
7965
+ $this$interface.r18($this$interface.e15('BodySerializer', []));
7966
+ $this$interface.r18($this$interface.e15('BodyDeserializer', []));
7964
7967
  return Unit_instance;
7965
7968
  }
7966
7969
  function convert$lambda$lambda$lambda_8($this$interface) {
@@ -7988,8 +7991,8 @@ function convert$lambda$lambda$lambda$lambda_4($this$function) {
7988
7991
  return Unit_instance;
7989
7992
  }
7990
7993
  function convert$lambda$lambda$lambda_10($this$interface) {
7991
- $this$interface.o17($this$interface.e15('PathSerializer', []));
7992
- $this$interface.o17($this$interface.e15('PathDeserializer', []));
7994
+ $this$interface.r18($this$interface.e15('PathSerializer', []));
7995
+ $this$interface.r18($this$interface.e15('PathDeserializer', []));
7993
7996
  return Unit_instance;
7994
7997
  }
7995
7998
  function convert$lambda$lambda$lambda_11($this$interface) {
@@ -8017,25 +8020,25 @@ function convert$lambda$lambda$lambda$lambda_6($this$function) {
8017
8020
  return Unit_instance;
8018
8021
  }
8019
8022
  function convert$lambda$lambda$lambda_13($this$interface) {
8020
- $this$interface.o17($this$interface.e15('ParamSerializer', []));
8021
- $this$interface.o17($this$interface.e15('ParamDeserializer', []));
8023
+ $this$interface.r18($this$interface.e15('ParamSerializer', []));
8024
+ $this$interface.r18($this$interface.e15('ParamDeserializer', []));
8022
8025
  return Unit_instance;
8023
8026
  }
8024
8027
  function convert$lambda$lambda$lambda_14($this$interface) {
8025
- $this$interface.o17($this$interface.e15('BodySerializer', []));
8026
- $this$interface.o17($this$interface.e15('PathSerializer', []));
8027
- $this$interface.o17($this$interface.e15('ParamSerializer', []));
8028
+ $this$interface.r18($this$interface.e15('BodySerializer', []));
8029
+ $this$interface.r18($this$interface.e15('PathSerializer', []));
8030
+ $this$interface.r18($this$interface.e15('ParamSerializer', []));
8028
8031
  return Unit_instance;
8029
8032
  }
8030
8033
  function convert$lambda$lambda$lambda_15($this$interface) {
8031
- $this$interface.o17($this$interface.e15('BodyDeserializer', []));
8032
- $this$interface.o17($this$interface.e15('PathDeserializer', []));
8033
- $this$interface.o17($this$interface.e15('ParamDeserializer', []));
8034
+ $this$interface.r18($this$interface.e15('BodyDeserializer', []));
8035
+ $this$interface.r18($this$interface.e15('PathDeserializer', []));
8036
+ $this$interface.r18($this$interface.e15('ParamDeserializer', []));
8034
8037
  return Unit_instance;
8035
8038
  }
8036
8039
  function convert$lambda$lambda$lambda_16($this$interface) {
8037
- $this$interface.o17($this$interface.e15('Serializer', []));
8038
- $this$interface.o17($this$interface.e15('Deserializer', []));
8040
+ $this$interface.r18($this$interface.e15('Serializer', []));
8041
+ $this$interface.r18($this$interface.e15('Deserializer', []));
8039
8042
  return Unit_instance;
8040
8043
  }
8041
8044
  function convert$lambda$lambda$lambda_17($this$struct) {
@@ -8162,7 +8165,7 @@ function convert$lambda$lambda$lambda$lambda_8($this$function) {
8162
8165
  }
8163
8166
  function convert$lambda($this_convert) {
8164
8167
  return function ($this$file) {
8165
- $this$file.s17($this_convert.bt_1);
8168
+ $this$file.q17($this_convert.bt_1);
8166
8169
  $this$file.s16('Wirespec', VOID, convert$lambda$lambda);
8167
8170
  return Unit_instance;
8168
8171
  };
@@ -8211,7 +8214,7 @@ function convert$lambda$lambda_0($this_convert) {
8211
8214
  function convert$lambda_0($this_convert) {
8212
8215
  return function ($this$file) {
8213
8216
  var tmp = toName($this_convert.lp_1);
8214
- $this$file.u17(tmp, convert$lambda$lambda_0($this_convert));
8217
+ $this$file.s17(tmp, convert$lambda$lambda_0($this_convert));
8215
8218
  return Unit_instance;
8216
8219
  };
8217
8220
  }
@@ -8230,7 +8233,7 @@ function convert$lambda_1($this_convert) {
8230
8233
  return function ($this$file) {
8231
8234
  var tmp = toName($this_convert.rs_1);
8232
8235
  var tmp_0 = Custom_init_$Create$('Wirespec.Enum');
8233
- $this$file.v17(tmp, tmp_0, convert$lambda$lambda_1($this_convert));
8236
+ $this$file.t17(tmp, tmp_0, convert$lambda$lambda_1($this_convert));
8234
8237
  return Unit_instance;
8235
8238
  };
8236
8239
  }
@@ -8305,7 +8308,7 @@ function convert$lambda$lambda_3($this_convert) {
8305
8308
  function convert$lambda_3($this_convert) {
8306
8309
  return function ($this$file) {
8307
8310
  var tmp = toName($this_convert.ms_1);
8308
- $this$file.u17(tmp, convert$lambda$lambda_3($this_convert));
8311
+ $this$file.s17(tmp, convert$lambda$lambda_3($this_convert));
8309
8312
  return Unit_instance;
8310
8313
  };
8311
8314
  }
@@ -8351,7 +8354,7 @@ function convert$lambda$lambda$lambda$lambda$lambda($pathParams) {
8351
8354
  var _iterator__ex2g4s = $pathParams.t();
8352
8355
  while (_iterator__ex2g4s.u()) {
8353
8356
  var element = _iterator__ex2g4s.v();
8354
- $this$construct.d18(toName(element.nr_1), new VariableReference(toName(element.nr_1)));
8357
+ $this$construct.b18(toName(element.nr_1), new VariableReference(toName(element.nr_1)));
8355
8358
  }
8356
8359
  return Unit_instance;
8357
8360
  };
@@ -8362,7 +8365,7 @@ function convert$lambda$lambda$lambda$lambda$lambda_0($endpoint) {
8362
8365
  var _iterator__ex2g4s = get_fields($endpoint.jr_1).t();
8363
8366
  while (_iterator__ex2g4s.u()) {
8364
8367
  var element = _iterator__ex2g4s.v();
8365
- $this$construct.d18(toName(element.pp_1), new VariableReference(toName(element.pp_1)));
8368
+ $this$construct.b18(toName(element.pp_1), new VariableReference(toName(element.pp_1)));
8366
8369
  }
8367
8370
  return Unit_instance;
8368
8371
  };
@@ -8373,7 +8376,7 @@ function convert$lambda$lambda$lambda$lambda$lambda_1($endpoint) {
8373
8376
  var _iterator__ex2g4s = get_fields($endpoint.kr_1).t();
8374
8377
  while (_iterator__ex2g4s.u()) {
8375
8378
  var element = _iterator__ex2g4s.v();
8376
- $this$construct.d18(toName(element.pp_1), new VariableReference(toName(element.pp_1)));
8379
+ $this$construct.b18(toName(element.pp_1), new VariableReference(toName(element.pp_1)));
8377
8380
  }
8378
8381
  return Unit_instance;
8379
8382
  };
@@ -8395,7 +8398,7 @@ function convert$lambda$lambda$lambda$lambda_9($endpoint, $requestContent, $path
8395
8398
  $this$constructo.e14('queries', $this$constructo.f14(tmp_0, convert$lambda$lambda$lambda$lambda$lambda_0($endpoint)));
8396
8399
  var tmp_1 = $this$constructo.e15('RequestHeaders', []);
8397
8400
  $this$constructo.e14('headers', $this$constructo.f14(tmp_1, convert$lambda$lambda$lambda$lambda$lambda_1($endpoint)));
8398
- $this$constructo.e14('body', !($requestContent == null) ? new VariableReference(Companion_getInstance_4().au('body')) : $this$constructo.a18(Unit_instance_0));
8401
+ $this$constructo.e14('body', !($requestContent == null) ? new VariableReference(Companion_getInstance_4().au('body')) : $this$constructo.y17(Unit_instance_0));
8399
8402
  return Unit_instance;
8400
8403
  };
8401
8404
  }
@@ -8492,7 +8495,7 @@ function convert$lambda$lambda$lambda$lambda$lambda_2($response) {
8492
8495
  var _iterator__ex2g4s = get_fields($response.tr_1).t();
8493
8496
  while (_iterator__ex2g4s.u()) {
8494
8497
  var element = _iterator__ex2g4s.v();
8495
- $this$construct.d18(toName(element.pp_1), new VariableReference(toName(element.pp_1)));
8498
+ $this$construct.b18(toName(element.pp_1), new VariableReference(toName(element.pp_1)));
8496
8499
  }
8497
8500
  return Unit_instance;
8498
8501
  };
@@ -8510,7 +8513,7 @@ function convert$lambda$lambda$lambda$lambda_10($response, $statusCode, $headers
8510
8513
  $this$constructo.e14('status', new Literal($statusCode, new Integer(Precision_P32_getInstance())));
8511
8514
  var tmp = $this$constructo.e15($headersName, []);
8512
8515
  $this$constructo.e14('headers', $this$constructo.f14(tmp, convert$lambda$lambda$lambda$lambda$lambda_2($response)));
8513
- $this$constructo.e14('body', !($response.ur_1 == null) ? new VariableReference(Companion_getInstance_4().au('body')) : $this$constructo.a18(Unit_instance_0));
8516
+ $this$constructo.e14('body', !($response.ur_1 == null) ? new VariableReference(Companion_getInstance_4().au('body')) : $this$constructo.y17(Unit_instance_0));
8514
8517
  return Unit_instance;
8515
8518
  };
8516
8519
  }
@@ -8532,7 +8535,7 @@ function convert$lambda$lambda$lambda$lambda_11($this$asyncFunction) {
8532
8535
  }
8533
8536
  function convert$lambda$lambda$lambda_46($endpoint) {
8534
8537
  return function ($this$interface) {
8535
- $this$interface.o17($this$interface.e15('Wirespec.Handler', []));
8538
+ $this$interface.r18($this$interface.e15('Wirespec.Handler', []));
8536
8539
  var tmp = toName($endpoint.gr_1);
8537
8540
  $this$interface.q16(tmp, VOID, VOID, convert$lambda$lambda$lambda$lambda_11);
8538
8541
  return Unit_instance;
@@ -8554,7 +8557,7 @@ function convert$lambda$lambda$lambda$lambda_12($endpoint) {
8554
8557
  }
8555
8558
  function convert$lambda$lambda$lambda_47($endpoint) {
8556
8559
  return function ($this$interface) {
8557
- $this$interface.o17($this$interface.e15('Wirespec.Call', []));
8560
+ $this$interface.r18($this$interface.e15('Wirespec.Call', []));
8558
8561
  var tmp = toName($endpoint.gr_1);
8559
8562
  $this$interface.q16(tmp, VOID, VOID, convert$lambda$lambda$lambda$lambda_12($endpoint));
8560
8563
  return Unit_instance;
@@ -8562,7 +8565,7 @@ function convert$lambda$lambda$lambda_47($endpoint) {
8562
8565
  }
8563
8566
  function convert$lambda$lambda$lambda$lambda_13($endpoint) {
8564
8567
  return function ($this$construct) {
8565
- $this$construct.c18('method', new EnumValueCall(new FieldCall(new VariableReference(Companion_getInstance_4().au('request')), Companion_getInstance_4().au('method'))));
8568
+ $this$construct.a18('method', new EnumValueCall(new FieldCall(new VariableReference(Companion_getInstance_4().au('request')), Companion_getInstance_4().au('method'))));
8566
8569
  // Inline function 'kotlin.collections.map' call
8567
8570
  var this_0 = $endpoint.ir_1;
8568
8571
  // Inline function 'kotlin.collections.mapTo' call
@@ -8587,7 +8590,7 @@ function convert$lambda$lambda$lambda$lambda_13($endpoint) {
8587
8590
  var tmp$ret$2 = tmp;
8588
8591
  destination.x(tmp$ret$2);
8589
8592
  }
8590
- $this$construct.c18('path', new LiteralList(destination, String_instance));
8593
+ $this$construct.a18('path', new LiteralList(destination, String_instance));
8591
8594
  // Inline function 'kotlin.collections.associate' call
8592
8595
  var this_1 = get_fields($endpoint.jr_1);
8593
8596
  var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault_0(this_1, 10)), 16);
@@ -8600,7 +8603,7 @@ function convert$lambda$lambda$lambda$lambda_13($endpoint) {
8600
8603
  var pair = to(element.pp_1.o1(), serializeParamExpression(new FieldCall(new FieldCall(new VariableReference(Companion_getInstance_4().au('request')), Companion_getInstance_4().au('queries')), toName(element.pp_1)), element));
8601
8604
  destination_0.w2(pair.gf_1, pair.hf_1);
8602
8605
  }
8603
- $this$construct.c18('queries', new LiteralMap(destination_0, String_instance, Custom_init_$Create$('List<String>')));
8606
+ $this$construct.a18('queries', new LiteralMap(destination_0, String_instance, new Array_0(String_instance)));
8604
8607
  // Inline function 'kotlin.collections.associate' call
8605
8608
  var this_2 = get_fields($endpoint.kr_1);
8606
8609
  var capacity_0 = coerceAtLeast(mapCapacity(collectionSizeOrDefault_0(this_2, 10)), 16);
@@ -8613,7 +8616,7 @@ function convert$lambda$lambda$lambda$lambda_13($endpoint) {
8613
8616
  var pair_0 = to(element_0.pp_1.o1(), serializeParamExpression(new FieldCall(new FieldCall(new VariableReference(Companion_getInstance_4().au('request')), Companion_getInstance_4().au('headers')), toName(element_0.pp_1)), element_0));
8614
8617
  destination_1.w2(pair_0.gf_1, pair_0.hf_1);
8615
8618
  }
8616
- $this$construct.c18('headers', new LiteralMap(destination_1, String_instance, Custom_init_$Create$('List<String>')));
8619
+ $this$construct.a18('headers', new LiteralMap(destination_1, String_instance, new Array_0(String_instance)));
8617
8620
  var tmp0_safe_receiver = first($endpoint.lr_1).pr_1;
8618
8621
  var tmp_0;
8619
8622
  if (tmp0_safe_receiver == null) {
@@ -8627,7 +8630,7 @@ function convert$lambda$lambda$lambda$lambda_13($endpoint) {
8627
8630
  tmp_0 = new NullableOf(new FunctionCall(tmp0_receiver, tmp2_typeArguments, tmp1_name, tmp3_arguments));
8628
8631
  }
8629
8632
  var tmp1_elvis_lhs = tmp_0;
8630
- $this$construct.c18('body', tmp1_elvis_lhs == null ? NullableEmpty_instance : tmp1_elvis_lhs);
8633
+ $this$construct.a18('body', tmp1_elvis_lhs == null ? NullableEmpty_instance : tmp1_elvis_lhs);
8631
8634
  return Unit_instance;
8632
8635
  };
8633
8636
  }
@@ -8657,20 +8660,20 @@ function convert$lambda$lambda$lambda$lambda_14($endpoint) {
8657
8660
  var tmp1_name = Name_init_$Create$(['deserialize', 'Path']);
8658
8661
  var tmp2_typeArguments = listOf_0(convert_7(item.or_1));
8659
8662
  var tmp3_arguments = mapOf([to(Companion_getInstance_4().au('value'), new ArrayIndexCall(new FieldCall(new VariableReference(Companion_getInstance_4().au('request')), Companion_getInstance_4().au('path')), new Literal(index_0, new Integer(Precision_P32_getInstance())))), to(Companion_getInstance_4().au('type'), toTypeDescriptor(item.or_1))]);
8660
- $this$construct.d18(tmp, new FunctionCall(tmp0_receiver, tmp2_typeArguments, tmp1_name, tmp3_arguments));
8663
+ $this$construct.b18(tmp, new FunctionCall(tmp0_receiver, tmp2_typeArguments, tmp1_name, tmp3_arguments));
8661
8664
  }
8662
8665
  }
8663
8666
  // Inline function 'kotlin.collections.forEach' call
8664
8667
  var _iterator__ex2g4s_0 = get_fields($endpoint.jr_1).t();
8665
8668
  while (_iterator__ex2g4s_0.u()) {
8666
8669
  var element = _iterator__ex2g4s_0.v();
8667
- $this$construct.d18(toName(element.pp_1), deserializeParamExpression(new FieldCall(new VariableReference(Companion_getInstance_4().au('request')), Companion_getInstance_4().au('queries')), element.pp_1.o1(), element));
8670
+ $this$construct.b18(toName(element.pp_1), deserializeParamExpression(new FieldCall(new VariableReference(Companion_getInstance_4().au('request')), Companion_getInstance_4().au('queries')), element.pp_1.o1(), element));
8668
8671
  }
8669
8672
  // Inline function 'kotlin.collections.forEach' call
8670
8673
  var _iterator__ex2g4s_1 = get_fields($endpoint.kr_1).t();
8671
8674
  while (_iterator__ex2g4s_1.u()) {
8672
8675
  var element_0 = _iterator__ex2g4s_1.v();
8673
- $this$construct.d18(toName(element_0.pp_1), deserializeParamExpression(new FieldCall(new VariableReference(Companion_getInstance_4().au('request')), Companion_getInstance_4().au('headers')), element_0.pp_1.o1(), element_0, false));
8676
+ $this$construct.b18(toName(element_0.pp_1), deserializeParamExpression(new FieldCall(new VariableReference(Companion_getInstance_4().au('request')), Companion_getInstance_4().au('headers')), element_0.pp_1.o1(), element_0, false));
8674
8677
  }
8675
8678
  var tmp0_safe_receiver = first($endpoint.lr_1).pr_1;
8676
8679
  if (tmp0_safe_receiver == null)
@@ -8682,7 +8685,7 @@ function convert$lambda$lambda$lambda$lambda_14($endpoint) {
8682
8685
  var tmp1_name_0 = Name_init_$Create$(['deserialize', 'Body']);
8683
8686
  var tmp2_typeArguments_0 = listOf_0(convert_7(tmp0_safe_receiver.rr_1));
8684
8687
  var tmp3_arguments_0 = mapOf([to(Companion_getInstance_4().au('value'), new VariableReference(Companion_getInstance_4().au('it'))), to(Companion_getInstance_4().au('type'), toTypeDescriptor(tmp0_safe_receiver.rr_1))]);
8685
- $this$construct.c18('body', new NullableMap(tmp_0, new FunctionCall(tmp0_receiver_0, tmp2_typeArguments_0, tmp1_name_0, tmp3_arguments_0), new ErrorStatement(new Literal('body is null', String_instance))));
8688
+ $this$construct.a18('body', new NullableMap(tmp_0, new FunctionCall(tmp0_receiver_0, tmp2_typeArguments_0, tmp1_name_0, tmp3_arguments_0), new ErrorStatement(new Literal('body is null', String_instance))));
8686
8689
  }
8687
8690
  return Unit_instance;
8688
8691
  };
@@ -8699,7 +8702,7 @@ function convert$lambda$lambda$lambda_49($endpoint) {
8699
8702
  }
8700
8703
  function convert$lambda$lambda$lambda$lambda$lambda$lambda($response) {
8701
8704
  return function ($this$construct) {
8702
- $this$construct.d18(Name_init_$Create$(['status', 'Code']), new FieldCall(new VariableReference(Companion_getInstance_4().au('r')), Companion_getInstance_4().au('status')));
8705
+ $this$construct.b18(Name_init_$Create$(['status', 'Code']), new FieldCall(new VariableReference(Companion_getInstance_4().au('r')), Companion_getInstance_4().au('status')));
8703
8706
  // Inline function 'kotlin.collections.associate' call
8704
8707
  var this_0 = get_fields($response.tr_1);
8705
8708
  var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault_0(this_0, 10)), 16);
@@ -8712,7 +8715,7 @@ function convert$lambda$lambda$lambda$lambda$lambda$lambda($response) {
8712
8715
  var pair = to(element.pp_1.o1(), serializeParamExpression(new FieldCall(new FieldCall(new VariableReference(Companion_getInstance_4().au('r')), Companion_getInstance_4().au('headers')), toName(element.pp_1)), element));
8713
8716
  destination.w2(pair.gf_1, pair.hf_1);
8714
8717
  }
8715
- $this$construct.c18('headers', new LiteralMap(destination, String_instance, Custom_init_$Create$('List<String>')));
8718
+ $this$construct.a18('headers', new LiteralMap(destination, String_instance, new Array_0(String_instance)));
8716
8719
  var tmp0_safe_receiver = $response.ur_1;
8717
8720
  var tmp;
8718
8721
  if (tmp0_safe_receiver == null) {
@@ -8722,7 +8725,7 @@ function convert$lambda$lambda$lambda$lambda$lambda$lambda($response) {
8722
8725
  tmp = new NullableOf(new FunctionCall(new VariableReference(Companion_getInstance_4().au('serialization')), VOID, Name_init_$Create$(['serialize', 'Body']), mapOf([to(Companion_getInstance_4().au('value'), new FieldCall(new VariableReference(Companion_getInstance_4().au('r')), Companion_getInstance_4().au('body'))), to(Companion_getInstance_4().au('type'), toTypeDescriptor(tmp0_safe_receiver.rr_1))])));
8723
8726
  }
8724
8727
  var tmp1_elvis_lhs = tmp;
8725
- $this$construct.c18('body', tmp1_elvis_lhs == null ? NullableEmpty_instance : tmp1_elvis_lhs);
8728
+ $this$construct.a18('body', tmp1_elvis_lhs == null ? NullableEmpty_instance : tmp1_elvis_lhs);
8726
8729
  return Unit_instance;
8727
8730
  };
8728
8731
  }
@@ -8770,9 +8773,9 @@ function convert$lambda$lambda$lambda$lambda_15($endpoint) {
8770
8773
  }
8771
8774
  var statusClassName = tmp;
8772
8775
  var tmp_0 = $this$switch.e15('Response' + statusClassName, []);
8773
- $this$switch.h18(tmp_0, convert$lambda$lambda$lambda$lambda$lambda_3(element));
8776
+ $this$switch.f18(tmp_0, convert$lambda$lambda$lambda$lambda$lambda_3(element));
8774
8777
  }
8775
- $this$switch.i18(convert$lambda$lambda$lambda$lambda$lambda_4);
8778
+ $this$switch.g18(convert$lambda$lambda$lambda$lambda$lambda_4);
8776
8779
  return Unit_instance;
8777
8780
  };
8778
8781
  }
@@ -8792,7 +8795,7 @@ function convert$lambda$lambda$lambda$lambda$lambda$lambda_0($response) {
8792
8795
  var _iterator__ex2g4s = get_fields($response.tr_1).t();
8793
8796
  while (_iterator__ex2g4s.u()) {
8794
8797
  var element = _iterator__ex2g4s.v();
8795
- $this$construct.d18(toName(element.pp_1), deserializeParamExpression(new FieldCall(new VariableReference(Companion_getInstance_4().au('response')), Companion_getInstance_4().au('headers')), element.pp_1.o1(), element, false));
8798
+ $this$construct.b18(toName(element.pp_1), deserializeParamExpression(new FieldCall(new VariableReference(Companion_getInstance_4().au('response')), Companion_getInstance_4().au('headers')), element.pp_1.o1(), element, false));
8796
8799
  }
8797
8800
  var tmp0_safe_receiver = $response.ur_1;
8798
8801
  if (tmp0_safe_receiver == null)
@@ -8804,7 +8807,7 @@ function convert$lambda$lambda$lambda$lambda$lambda$lambda_0($response) {
8804
8807
  var tmp1_name = Name_init_$Create$(['deserialize', 'Body']);
8805
8808
  var tmp2_typeArguments = listOf_0(convert_7(tmp0_safe_receiver.rr_1));
8806
8809
  var tmp3_arguments = mapOf([to(Companion_getInstance_4().au('value'), new VariableReference(Companion_getInstance_4().au('it'))), to(Companion_getInstance_4().au('type'), toTypeDescriptor(tmp0_safe_receiver.rr_1))]);
8807
- $this$construct.c18('body', new NullableMap(tmp, new FunctionCall(tmp0_receiver, tmp2_typeArguments, tmp1_name, tmp3_arguments), new ErrorStatement(new Literal('body is null', String_instance))));
8810
+ $this$construct.a18('body', new NullableMap(tmp, new FunctionCall(tmp0_receiver, tmp2_typeArguments, tmp1_name, tmp3_arguments), new ErrorStatement(new Literal('body is null', String_instance))));
8808
8811
  }
8809
8812
  return Unit_instance;
8810
8813
  };
@@ -8862,10 +8865,10 @@ function convert$lambda$lambda$lambda$lambda_16($endpoint) {
8862
8865
  tmp = this_1;
8863
8866
  }
8864
8867
  var statusClassName = tmp;
8865
- var tmp_0 = $this$switch.b18(toInt(element_0.sr_1));
8866
- $this$switch.e18(tmp_0, convert$lambda$lambda$lambda$lambda$lambda_5(statusClassName, element_0));
8868
+ var tmp_0 = $this$switch.z17(toInt(element_0.sr_1));
8869
+ $this$switch.c18(tmp_0, convert$lambda$lambda$lambda$lambda$lambda_5(statusClassName, element_0));
8867
8870
  }
8868
- $this$switch.i18(convert$lambda$lambda$lambda$lambda$lambda_6);
8871
+ $this$switch.g18(convert$lambda$lambda$lambda$lambda$lambda_6);
8869
8872
  return Unit_instance;
8870
8873
  };
8871
8874
  }
@@ -8881,10 +8884,10 @@ function convert$lambda$lambda$lambda_51($endpoint) {
8881
8884
  }
8882
8885
  function convert$lambda$lambda_4($endpoint, $pathParams, $requestBodyType, $requestContent) {
8883
8886
  return function ($this$namespace) {
8884
- $this$namespace.t17('Path', convert$lambda$lambda$lambda_37($pathParams));
8885
- $this$namespace.t17('Queries', convert$lambda$lambda$lambda_38($endpoint));
8886
- $this$namespace.t17('RequestHeaders', convert$lambda$lambda$lambda_39($endpoint));
8887
- $this$namespace.t17('Request', convert$lambda$lambda$lambda_40($requestBodyType, $endpoint, $requestContent, $pathParams));
8887
+ $this$namespace.r17('Path', convert$lambda$lambda$lambda_37($pathParams));
8888
+ $this$namespace.r17('Queries', convert$lambda$lambda$lambda_38($endpoint));
8889
+ $this$namespace.r17('RequestHeaders', convert$lambda$lambda$lambda_39($endpoint));
8890
+ $this$namespace.r17('Request', convert$lambda$lambda$lambda_40($requestBodyType, $endpoint, $requestContent, $pathParams));
8888
8891
  // Inline function 'kotlin.collections.distinctBy' call
8889
8892
  var this_0 = $endpoint.mr_1;
8890
8893
  var set = HashSet_init_$Create$();
@@ -8969,7 +8972,7 @@ function convert$lambda$lambda_4($endpoint, $pathParams, $requestBodyType, $requ
8969
8972
  }
8970
8973
  var contentTypeUnionNames = destination_2;
8971
8974
  var tmp_1 = $this$namespace.e15('Wirespec.Response', [$this$namespace.e15('T', [])]);
8972
- $this$namespace.z17('Response', tmp_1, convert$lambda$lambda$lambda_41(statusPrefixUnionNames, contentTypeUnionNames));
8975
+ $this$namespace.x17('Response', tmp_1, convert$lambda$lambda$lambda_41(statusPrefixUnionNames, contentTypeUnionNames));
8973
8976
  // Inline function 'kotlin.collections.forEach' call
8974
8977
  // Inline function 'kotlin.collections.iterator' call
8975
8978
  var _iterator__ex2g4s_4 = statusPrefixGroups.m1().t();
@@ -8981,7 +8984,7 @@ function convert$lambda$lambda_4($endpoint, $pathParams, $requestBodyType, $requ
8981
8984
  var responses = element_1.o1();
8982
8985
  var tmp_2 = 'Response' + toString_0(prefix) + 'XX';
8983
8986
  var tmp_3 = $this$namespace.e15('Response', [$this$namespace.e15('T', [])]);
8984
- $this$namespace.z17(tmp_2, tmp_3, convert$lambda$lambda$lambda_42(responses));
8987
+ $this$namespace.x17(tmp_2, tmp_3, convert$lambda$lambda$lambda_42(responses));
8985
8988
  }
8986
8989
  // Inline function 'kotlin.collections.forEach' call
8987
8990
  // Inline function 'kotlin.collections.iterator' call
@@ -8997,7 +9000,7 @@ function convert$lambda$lambda_4($endpoint, $pathParams, $requestBodyType, $requ
8997
9000
  var typeName = toTypeName(contentType_0);
8998
9001
  var tmp_4 = 'Response' + typeName;
8999
9002
  var tmp_5 = $this$namespace.e15('Response', [contentType_0]);
9000
- $this$namespace.z17(tmp_4, tmp_5, convert$lambda$lambda$lambda_43(responses_0));
9003
+ $this$namespace.x17(tmp_4, tmp_5, convert$lambda$lambda$lambda_43(responses_0));
9001
9004
  }
9002
9005
  // Inline function 'kotlin.collections.distinctBy' call
9003
9006
  var this_2 = $endpoint.mr_1;
@@ -9038,9 +9041,9 @@ function convert$lambda$lambda_4($endpoint, $pathParams, $requestBodyType, $requ
9038
9041
  var statusPrefix = first_0(element_3.sr_1);
9039
9042
  var contentTypeName = toTypeName(bodyType);
9040
9043
  var headersName = 'Response' + statusClassName + 'Headers';
9041
- $this$namespace.t17(headersName, convert$lambda$lambda$lambda_44(element_3));
9044
+ $this$namespace.r17(headersName, convert$lambda$lambda$lambda_44(element_3));
9042
9045
  var tmp_7 = 'Response' + statusClassName;
9043
- $this$namespace.t17(tmp_7, convert$lambda$lambda$lambda_45(statusPrefix, bodyType, contentTypeName, statusCode, headersName, element_3));
9046
+ $this$namespace.r17(tmp_7, convert$lambda$lambda$lambda_45(statusPrefix, bodyType, contentTypeName, statusCode, headersName, element_3));
9044
9047
  }
9045
9048
  $this$namespace.w16('Handler', VOID, convert$lambda$lambda$lambda_46($endpoint));
9046
9049
  $this$namespace.w16('Call', VOID, convert$lambda$lambda$lambda_47($endpoint));
@@ -9161,8 +9164,8 @@ function convert$lambda$lambda_6($this_convert) {
9161
9164
  else {
9162
9165
  // Inline function 'kotlin.let' call
9163
9166
  $this$namespace.y16(response.ru_1, VOID, convert$lambda$lambda$lambda_54);
9164
- $this$namespace.t17('Result', convert$lambda$lambda$lambda_55(response, $this_convert));
9165
- $this$namespace.t17('Error', convert$lambda$lambda$lambda_56(response, tmp0_safe_receiver));
9167
+ $this$namespace.r17('Result', convert$lambda$lambda$lambda_55(response, $this_convert));
9168
+ $this$namespace.r17('Error', convert$lambda$lambda$lambda_56(response, tmp0_safe_receiver));
9166
9169
  }
9167
9170
  $this$namespace.w16('Service', VOID, convert$lambda$lambda$lambda_57($this_convert, response));
9168
9171
  return Unit_instance;
@@ -9226,7 +9229,7 @@ function convertEndpointClient$lambda$lambda($endpointNameStr, $endpointName, $t
9226
9229
  function convertEndpointClient$lambda($endpointNameStr, $endpointName, $this_convertEndpointClient) {
9227
9230
  return function ($this$file) {
9228
9231
  var tmp = Companion_getInstance_4().au($endpointNameStr + 'Client');
9229
- $this$file.u17(tmp, convertEndpointClient$lambda$lambda($endpointNameStr, $endpointName, $this_convertEndpointClient));
9232
+ $this$file.s17(tmp, convertEndpointClient$lambda$lambda($endpointNameStr, $endpointName, $this_convertEndpointClient));
9230
9233
  return Unit_instance;
9231
9234
  };
9232
9235
  }
@@ -9284,7 +9287,7 @@ function convertClient$lambda$lambda($endpoints) {
9284
9287
  function convertClient$lambda($endpoints) {
9285
9288
  return function ($this$file) {
9286
9289
  var tmp = Companion_getInstance_4().au('Client');
9287
- $this$file.u17(tmp, convertClient$lambda$lambda($endpoints));
9290
+ $this$file.s17(tmp, convertClient$lambda$lambda($endpoints));
9288
9291
  return Unit_instance;
9289
9292
  };
9290
9293
  }
@@ -11901,14 +11904,14 @@ function emit_18($this, $receiver) {
11901
11904
  if ($receiver.o10_1.r())
11902
11905
  return 'java.util.List.<' + emitGenerics($this, $receiver.p10_1) + '>of()';
11903
11906
  var list = joinToString($receiver.o10_1, ', ', VOID, VOID, VOID, VOID, JavaGenerator$emit$lambda_34);
11904
- return 'java.util.List.of(' + list + ')';
11907
+ return 'java.util.List.<' + emitGenerics($this, $receiver.p10_1) + '>of(' + list + ')';
11905
11908
  }
11906
11909
  function emit_19($this, $receiver) {
11907
11910
  if ($receiver.r10_1.r())
11908
11911
  return 'java.util.Collections.emptyMap()';
11909
11912
  var tmp = $receiver.r10_1.m1();
11910
11913
  var map = joinToString(tmp, ', ', VOID, VOID, VOID, VOID, JavaGenerator$emit$lambda_35($receiver));
11911
- return 'java.util.Map.ofEntries(' + map + ')';
11914
+ return 'java.util.Map.<' + emitGenerics($this, $receiver.s10_1) + ', ' + emitGenerics($this, $receiver.t10_1) + '>ofEntries(' + map + ')';
11912
11915
  }
11913
11916
  function emit_20($this, $receiver) {
11914
11917
  var tmp;
@@ -13661,14 +13664,14 @@ function emit_35($this, $receiver) {
13661
13664
  if ($receiver.o10_1.r())
13662
13665
  return 'emptyList<' + emitGenerics_0($this, $receiver.p10_1) + '>()';
13663
13666
  var list = joinToString($receiver.o10_1, ', ', VOID, VOID, VOID, VOID, KotlinGenerator$emit$lambda_26);
13664
- return 'listOf(' + list + ')';
13667
+ return 'listOf<' + emitGenerics_0($this, $receiver.p10_1) + '>(' + list + ')';
13665
13668
  }
13666
13669
  function emit_36($this, $receiver) {
13667
13670
  if ($receiver.r10_1.r())
13668
13671
  return 'emptyMap<' + emitGenerics_0($this, $receiver.s10_1) + ', ' + emitGenerics_0($this, $receiver.t10_1) + '>()';
13669
13672
  var tmp = $receiver.r10_1.m1();
13670
13673
  var map = joinToString(tmp, ', ', VOID, VOID, VOID, VOID, KotlinGenerator$emit$lambda_27($receiver));
13671
- return 'mapOf(' + map + ')';
13674
+ return 'mapOf<' + emitGenerics_0($this, $receiver.s10_1) + ', ' + emitGenerics_0($this, $receiver.t10_1) + '>(' + map + ')';
13672
13675
  }
13673
13676
  function emit_37($this, $receiver) {
13674
13677
  var t = $receiver.wy_1;
@@ -15502,6 +15505,11 @@ function PythonGenerator_getInstance() {
15502
15505
  new PythonGenerator();
15503
15506
  return PythonGenerator_instance;
15504
15507
  }
15508
+ function get_selfReceivers() {
15509
+ _init_properties_RustGenerator_kt__i7ofh9();
15510
+ return selfReceivers;
15511
+ }
15512
+ var selfReceivers;
15505
15513
  function get_escapableKeywords() {
15506
15514
  _init_properties_RustGenerator_kt__i7ofh9();
15507
15515
  return escapableKeywords;
@@ -15510,59 +15518,38 @@ var escapableKeywords;
15510
15518
  function indentCode_2($this, $receiver, level) {
15511
15519
  return indentLines($receiver, level, 4);
15512
15520
  }
15513
- function emit_56($this, $receiver, indent) {
15521
+ function emit_56($this, $receiver) {
15514
15522
  // Inline function 'kotlin.let' call
15515
15523
  var destruct = splitAfterLastImport($receiver.gv_1);
15516
15524
  var header = destruct.af();
15517
15525
  var body = destruct.bf();
15518
- var tmp = joinToString(header, '', VOID, VOID, VOID, VOID, RustGenerator$emit$lambda(indent));
15519
- return compactSections([tmp, joinToString(body, '', VOID, VOID, VOID, VOID, RustGenerator$emit$lambda_0(indent))]);
15526
+ return compactSections([emit_57(RustGenerator_getInstance(), header, 0), emit_57(RustGenerator_getInstance(), body, 0)]);
15520
15527
  }
15521
- function emit_57($this, $receiver, indent, parents, isStaticScope) {
15522
- parents = parents === VOID ? emptyList() : parents;
15523
- isStaticScope = isStaticScope === VOID ? false : isStaticScope;
15528
+ function emit_57($this, $receiver, indent) {
15529
+ return joinToString($receiver, '', VOID, VOID, VOID, VOID, RustGenerator$emit$lambda(indent));
15530
+ }
15531
+ function emitBody($this, $receiver) {
15532
+ return joinToString($receiver, '', VOID, VOID, VOID, VOID, RustGenerator$emitBody$lambda);
15533
+ }
15534
+ function emit_58($this, $receiver, indent) {
15524
15535
  var tmp;
15525
15536
  if ($receiver instanceof Package) {
15526
- tmp = emit_58($this, $receiver, indent);
15537
+ tmp = indentCode_2($this, '// package ' + $receiver.kv_1 + '\n', indent);
15527
15538
  } else {
15528
15539
  if ($receiver instanceof Import) {
15529
- tmp = emit_59($this, $receiver, indent);
15540
+ tmp = indentCode_2($this, 'use ' + wrapIfNotEmpty($receiver.tt_1, '', '::') + $receiver.ut_1.ru_1.bu() + ';\n', indent);
15530
15541
  } else {
15531
15542
  if ($receiver instanceof Struct) {
15532
- tmp = emit_64($this, $receiver, indent, parents);
15543
+ tmp = emit_64($this, $receiver, indent);
15533
15544
  } else {
15534
15545
  if ($receiver instanceof Function_0) {
15535
- var tmp$ret$0;
15536
- $l$block_0: {
15537
- // Inline function 'kotlin.collections.any' call
15538
- var tmp_0;
15539
- if (isInterface(parents, Collection)) {
15540
- tmp_0 = parents.r();
15541
- } else {
15542
- tmp_0 = false;
15543
- }
15544
- if (tmp_0) {
15545
- tmp$ret$0 = false;
15546
- break $l$block_0;
15547
- }
15548
- var _iterator__ex2g4s = parents.t();
15549
- while (_iterator__ex2g4s.u()) {
15550
- var element = _iterator__ex2g4s.v();
15551
- if (element instanceof Interface) {
15552
- tmp$ret$0 = true;
15553
- break $l$block_0;
15554
- }
15555
- }
15556
- tmp$ret$0 = false;
15557
- }
15558
- var isInInterface = tmp$ret$0;
15559
- tmp = emit_66($this, $receiver, indent, isInInterface);
15546
+ tmp = emit_66($this, $receiver, indent);
15560
15547
  } else {
15561
15548
  if ($receiver instanceof Namespace) {
15562
- tmp = emit_60($this, $receiver, indent, parents);
15549
+ tmp = emit_60($this, $receiver, indent);
15563
15550
  } else {
15564
15551
  if ($receiver instanceof Interface) {
15565
- tmp = emit_61($this, $receiver, indent, parents);
15552
+ tmp = emit_61($this, $receiver, indent);
15566
15553
  } else {
15567
15554
  if ($receiver instanceof Union) {
15568
15555
  tmp = emit_62($this, $receiver, indent);
@@ -15571,18 +15558,10 @@ function emit_57($this, $receiver, indent, parents, isStaticScope) {
15571
15558
  tmp = emit_63($this, $receiver, indent);
15572
15559
  } else {
15573
15560
  if ($receiver instanceof Main) {
15574
- var staticContent = joinToString($receiver.e11_1, '', VOID, VOID, VOID, VOID, RustGenerator$emit$lambda_1(indent, parents, isStaticScope));
15575
- var content = joinToString($receiver.f11_1, '', VOID, VOID, VOID, VOID, RustGenerator$emit$lambda_2);
15576
- var tmp_1;
15577
- if ($receiver.g11_1) {
15578
- tmp_1 = indentCode_2($this, staticContent + 'fn main() {\n' + indentCode_2($this, 'pollster::block_on(async {\n', 1) + content + indentCode_2($this, '});\n', 1) + '}\n', indent);
15579
- } else {
15580
- tmp_1 = indentCode_2($this, staticContent + 'fn main() {\n' + content + '}\n', indent);
15581
- }
15582
- tmp = tmp_1;
15561
+ tmp = emit_59($this, $receiver, indent);
15583
15562
  } else {
15584
15563
  if ($receiver instanceof File) {
15585
- tmp = joinToString($receiver.gv_1, '', VOID, VOID, VOID, VOID, RustGenerator$emit$lambda_3(indent, parents, isStaticScope));
15564
+ tmp = emit_57($this, $receiver.gv_1, indent);
15586
15565
  } else {
15587
15566
  if ($receiver instanceof Field) {
15588
15567
  tmp = '';
@@ -15605,189 +15584,148 @@ function emit_57($this, $receiver, indent, parents, isStaticScope) {
15605
15584
  }
15606
15585
  return tmp;
15607
15586
  }
15608
- function emit_58($this, $receiver, indent) {
15609
- return indentCode_2($this, '// package ' + $receiver.kv_1 + '\n\n', indent);
15610
- }
15611
15587
  function emit_59($this, $receiver, indent) {
15588
+ // Inline function 'kotlin.let' call
15589
+ var it = emitBody($this, $receiver.f11_1);
15590
+ var content = $receiver.g11_1 ? indentCode_2(RustGenerator_getInstance(), 'pollster::block_on(async {\n', 1) + it + indentCode_2(RustGenerator_getInstance(), '});\n', 1) : it;
15591
+ return emit_57($this, $receiver.e11_1, indent) + indentCode_2($this, 'fn main() {\n' + content + '}\n', indent);
15592
+ }
15593
+ function emit_60($this, $receiver, indent) {
15594
+ var rustName = $receiver.lv_1.du();
15595
+ var content = emit_57($this, $receiver.mv_1, 1);
15612
15596
  var tmp;
15613
- // Inline function 'kotlin.text.isEmpty' call
15614
- var this_0 = $receiver.tt_1;
15615
- if (charSequenceLength(this_0) === 0) {
15616
- tmp = indentCode_2($this, 'use ' + $receiver.ut_1.ru_1.bu() + ';\n', indent);
15597
+ if (isBlank(content)) {
15598
+ tmp = 'pub struct ' + rustName + ';\n';
15617
15599
  } else {
15618
- tmp = indentCode_2($this, 'use ' + $receiver.tt_1 + '::' + $receiver.ut_1.ru_1.bu() + ';\n', indent);
15619
- }
15620
- return tmp;
15621
- }
15622
- function emit_60($this, $receiver, indent, parents) {
15623
- parents = parents === VOID ? emptyList() : parents;
15624
- var tmp0 = $receiver.mv_1;
15625
- var tmp$ret$0;
15626
- $l$block_0: {
15627
- // Inline function 'kotlin.collections.any' call
15628
- var tmp;
15629
- if (isInterface(tmp0, Collection)) {
15630
- tmp = tmp0.r();
15631
- } else {
15632
- tmp = false;
15633
- }
15634
- if (tmp) {
15635
- tmp$ret$0 = false;
15636
- break $l$block_0;
15637
- }
15638
- var _iterator__ex2g4s = tmp0.t();
15639
- while (_iterator__ex2g4s.u()) {
15640
- var element = _iterator__ex2g4s.v();
15600
+ var tmp0 = $receiver.mv_1;
15601
+ var tmp$ret$0;
15602
+ $l$block_0: {
15603
+ // Inline function 'kotlin.collections.any' call
15641
15604
  var tmp_0;
15642
- var tmp_1;
15643
- var tmp_2;
15644
- if (element instanceof Interface) {
15645
- tmp_2 = true;
15646
- } else {
15647
- tmp_2 = element instanceof Union;
15648
- }
15649
- if (tmp_2) {
15650
- tmp_1 = true;
15651
- } else {
15652
- tmp_1 = element instanceof Enum_0;
15653
- }
15654
- if (tmp_1) {
15655
- tmp_0 = true;
15605
+ if (isInterface(tmp0, Collection)) {
15606
+ tmp_0 = tmp0.r();
15656
15607
  } else {
15657
- tmp_0 = element instanceof Struct;
15608
+ tmp_0 = false;
15658
15609
  }
15659
15610
  if (tmp_0) {
15660
- tmp$ret$0 = true;
15611
+ tmp$ret$0 = false;
15661
15612
  break $l$block_0;
15662
15613
  }
15614
+ var _iterator__ex2g4s = tmp0.t();
15615
+ while (_iterator__ex2g4s.u()) {
15616
+ var element = _iterator__ex2g4s.v();
15617
+ var tmp_1;
15618
+ var tmp_2;
15619
+ var tmp_3;
15620
+ if (element instanceof Interface) {
15621
+ tmp_3 = true;
15622
+ } else {
15623
+ tmp_3 = element instanceof Union;
15624
+ }
15625
+ if (tmp_3) {
15626
+ tmp_2 = true;
15627
+ } else {
15628
+ tmp_2 = element instanceof Enum_0;
15629
+ }
15630
+ if (tmp_2) {
15631
+ tmp_1 = true;
15632
+ } else {
15633
+ tmp_1 = element instanceof Struct;
15634
+ }
15635
+ if (tmp_1) {
15636
+ tmp$ret$0 = true;
15637
+ break $l$block_0;
15638
+ }
15639
+ }
15640
+ tmp$ret$0 = false;
15641
+ }
15642
+ if (tmp$ret$0) {
15643
+ tmp = 'pub mod ' + rustName + ' {\n' + indentCode_2($this, 'use super::*;\n', 1) + content + '}\n';
15644
+ } else {
15645
+ tmp = 'pub struct ' + rustName + ';\nimpl ' + rustName + ' {\n' + content + '}\n';
15663
15646
  }
15664
- tmp$ret$0 = false;
15665
- }
15666
- var hasComplexElements = tmp$ret$0;
15667
- var content = joinToString($receiver.mv_1, '', VOID, VOID, VOID, VOID, RustGenerator$emit$lambda_4(parents, $receiver, hasComplexElements));
15668
- var rustName = $receiver.lv_1.du();
15669
- var tmp_3;
15670
- if (isBlank(content)) {
15671
- tmp_3 = indentCode_2($this, 'pub struct ' + rustName + ';\n\n', indent);
15672
- } else if (hasComplexElements) {
15673
- var useSuper = indentCode_2($this, 'use super::*;\n', 1);
15674
- tmp_3 = indentCode_2($this, 'pub mod ' + rustName + ' {\n' + useSuper + content + '}\n\n', indent);
15675
- } else {
15676
- tmp_3 = indentCode_2($this, 'pub struct ' + rustName + ';\n\nimpl ' + rustName + ' {\n' + content + '}\n\n', indent);
15677
15647
  }
15678
- return tmp_3;
15648
+ return indentCode_2($this, tmp, indent);
15679
15649
  }
15680
- function emit_61($this, $receiver, indent, parents) {
15681
- parents = parents === VOID ? emptyList() : parents;
15682
- var rustName = $receiver.rv_1.du();
15683
- var typeParamsStr = joinNonEmpty($receiver.vv_1, ', ', '<', '>', RustGenerator$emit$lambda_5);
15684
- var extStr = joinNonEmpty($receiver.tv_1, ' + ', ': ', VOID, RustGenerator$emit$lambda_6);
15685
- var fieldsContent = joinToString($receiver.wv_1, '', VOID, VOID, VOID, VOID, RustGenerator$emit$lambda_7);
15686
- var elementsContent = joinToString($receiver.sv_1, '', VOID, VOID, VOID, VOID, RustGenerator$emit$lambda_8(parents, $receiver));
15687
- var content = fieldsContent + elementsContent;
15688
- var signature = 'pub trait ' + rustName + typeParamsStr + extStr;
15689
- var tmp;
15650
+ function emit_61($this, $receiver, indent) {
15651
+ var tmp = $receiver.rv_1.du();
15652
+ var tmp_0 = emit_67($this, $receiver.vv_1);
15653
+ var signature = 'pub trait ' + tmp + tmp_0 + joinNonEmpty($receiver.tv_1, ' + ', ': ', VOID, RustGenerator$emit$lambda_0);
15654
+ var content = joinToString($receiver.wv_1, '', VOID, VOID, VOID, VOID, RustGenerator$emit$lambda_1) + emit_57($this, $receiver.sv_1, 1);
15655
+ var tmp_1;
15690
15656
  // Inline function 'kotlin.text.isEmpty' call
15691
15657
  if (charSequenceLength(content) === 0) {
15692
- tmp = indentCode_2($this, signature + ' {}\n\n', indent);
15658
+ tmp_1 = signature + ' {}\n';
15693
15659
  } else {
15694
- tmp = indentCode_2($this, signature + ' {\n' + content + '}\n\n', indent);
15660
+ tmp_1 = signature + ' {\n' + content + '}\n';
15695
15661
  }
15696
- return tmp;
15662
+ return indentCode_2($this, tmp_1, indent);
15697
15663
  }
15698
15664
  function emit_62($this, $receiver, indent) {
15699
- var rustName = $receiver.lw_1.du();
15665
+ var variants = joinToString($receiver.nw_1, '', VOID, VOID, VOID, VOID, RustGenerator$emit$lambda_2);
15666
+ var definition = 'pub enum ' + $receiver.lw_1.du() + emit_67($this, $receiver.ow_1);
15700
15667
  var tmp;
15701
- // Inline function 'kotlin.collections.isNotEmpty' call
15702
- if (!$receiver.ow_1.r()) {
15703
- tmp = '<' + joinToString($receiver.ow_1, ', ', VOID, VOID, VOID, VOID, RustGenerator$emit$lambda_9) + '>';
15704
- } else {
15705
- tmp = '';
15706
- }
15707
- var typeParamsStr = tmp;
15708
- var tmp_0;
15709
- // Inline function 'kotlin.collections.isNotEmpty' call
15710
- if (!$receiver.nw_1.r()) {
15711
- var variants = joinToString($receiver.nw_1, '\n', VOID, VOID, VOID, VOID, RustGenerator$emit$lambda_10);
15712
- tmp_0 = indentCode_2($this, '#[derive(Debug, Clone, PartialEq)]\npub enum ' + rustName + typeParamsStr + ' {\n' + variants + '\n}\n\n', indent);
15668
+ // Inline function 'kotlin.text.isEmpty' call
15669
+ if (charSequenceLength(variants) === 0) {
15670
+ tmp = definition + ' {}';
15713
15671
  } else {
15714
- tmp_0 = indentCode_2($this, '#[derive(Debug, Clone, PartialEq)]\npub enum ' + rustName + typeParamsStr + ' {}\n\n', indent);
15672
+ tmp = definition + ' {\n' + variants + '}';
15715
15673
  }
15716
- var enumDef = tmp_0;
15717
- return enumDef;
15674
+ return indentCode_2($this, '#[derive(Debug, Clone, PartialEq)]\n' + tmp + '\n', indent);
15675
+ }
15676
+ function wireValue($this, $receiver) {
15677
+ var tmp0_safe_receiver = firstOrNull($receiver.tw_1);
15678
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : removeSurrounding(tmp0_safe_receiver, '"');
15679
+ return tmp1_elvis_lhs == null ? $receiver.sw_1.bu() : tmp1_elvis_lhs;
15718
15680
  }
15719
15681
  function emit_63($this, $receiver, indent) {
15720
15682
  var rustName = $receiver.ww_1.du();
15721
- var entriesStr = joinToString($receiver.yw_1, '\n', VOID, VOID, VOID, VOID, RustGenerator$emit$lambda_11);
15722
- var enumDef = indentCode_2($this, '#[derive(Debug, Clone, PartialEq)]\npub enum ' + rustName + ' {\n' + entriesStr + '\n}\n\n', indent);
15683
+ var definition = '#[derive(Debug, Clone, PartialEq)]\npub enum ' + rustName + ' {\n' + joinToString($receiver.yw_1, '', VOID, VOID, VOID, VOID, RustGenerator$emit$lambda_3) + '}\n';
15684
+ var labelArms = joinToString($receiver.yw_1, '\n', VOID, VOID, VOID, VOID, RustGenerator$emit$lambda_4(rustName));
15685
+ var fromLabelArms = joinToString($receiver.yw_1, '\n', VOID, VOID, VOID, VOID, RustGenerator$emit$lambda_5(rustName));
15723
15686
  var tmp;
15724
- // Inline function 'kotlin.collections.isNotEmpty' call
15725
- if (!$receiver.yw_1.r()) {
15726
- var labelArms = joinToString($receiver.yw_1, '\n', VOID, VOID, VOID, VOID, RustGenerator$emit$lambda_12(rustName));
15727
- var fromLabelArms = joinToString($receiver.yw_1, '\n', VOID, VOID, VOID, VOID, RustGenerator$emit$lambda_13(rustName));
15728
- tmp = indentCode_2($this, trimMargin('\n |impl Enum for ' + rustName + ' {\n | fn label(&self) -> &str {\n | match self {\n |' + labelArms + '\n | }\n | }\n | fn from_label(s: &str) -> Option<Self> {\n | match s {\n |' + fromLabelArms + '\n | _ => None,\n | }\n | }\n |}\n |impl std::fmt::Display for ' + rustName + ' {\n | fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {\n | write!(f, "{}", self.label())\n | }\n |}\n |\n '), indent);
15729
- } else {
15687
+ if ($receiver.yw_1.r()) {
15730
15688
  tmp = '';
15689
+ } else {
15690
+ tmp = trimMargin('\n |impl Enum for ' + rustName + ' {\n | fn label(&self) -> &str {\n | match self {\n |' + labelArms + '\n | }\n | }\n | fn from_label(s: &str) -> Option<Self> {\n | match s {\n |' + fromLabelArms + '\n | _ => None,\n | }\n | }\n |}\n |impl std::fmt::Display for ' + rustName + ' {\n | fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {\n | write!(f, "{}", self.label())\n | }\n |}\n |\n ');
15731
15691
  }
15732
- var enumImpl = tmp;
15733
- return enumDef + enumImpl;
15692
+ var implementation = tmp;
15693
+ return indentCode_2($this, definition + implementation, indent);
15734
15694
  }
15735
- function emit_64($this, $receiver, indent, parents) {
15736
- parents = parents === VOID ? emptyList() : parents;
15737
- var fields = fieldList($receiver);
15695
+ function emit_64($this, $receiver, indent) {
15738
15696
  var rustName = $receiver.fx_1.du();
15739
- var tmp;
15740
- if ($receiver.kx_1.r()) {
15741
- tmp = '';
15742
- } else {
15743
- tmp = '<' + joinToString($receiver.kx_1, ', ', VOID, VOID, VOID, VOID, RustGenerator$emit$lambda_14) + '>';
15744
- }
15745
- var typeParamsStr = tmp;
15746
- // Inline function 'kotlin.collections.filterIsInstance' call
15747
- var tmp0 = $receiver.jx_1;
15748
- // Inline function 'kotlin.collections.filterIsInstanceTo' call
15749
- var destination = ArrayList_init_$Create$_0();
15750
- var _iterator__ex2g4s = tmp0.t();
15697
+ var fields = fieldList($receiver);
15698
+ // Inline function 'kotlin.collections.partition' call
15699
+ var this_0 = $receiver.jx_1;
15700
+ var first = ArrayList_init_$Create$_0();
15701
+ var second = ArrayList_init_$Create$_0();
15702
+ var _iterator__ex2g4s = this_0.t();
15751
15703
  while (_iterator__ex2g4s.u()) {
15752
15704
  var element = _iterator__ex2g4s.v();
15753
15705
  if (element instanceof Function_0) {
15754
- destination.x(element);
15755
- }
15756
- }
15757
- var functions = destination;
15758
- // Inline function 'kotlin.collections.filterNot' call
15759
- var tmp0_0 = $receiver.jx_1;
15760
- // Inline function 'kotlin.collections.filterNotTo' call
15761
- var destination_0 = ArrayList_init_$Create$_0();
15762
- var _iterator__ex2g4s_0 = tmp0_0.t();
15763
- while (_iterator__ex2g4s_0.u()) {
15764
- var element_0 = _iterator__ex2g4s_0.v();
15765
- if (!(element_0 instanceof Function_0)) {
15766
- destination_0.x(element_0);
15706
+ first.x(element);
15707
+ } else {
15708
+ second.x(element);
15767
15709
  }
15768
15710
  }
15769
- var nonFunctions = destination_0;
15770
- var nestedContent = joinToString(nonFunctions, '', VOID, VOID, VOID, VOID, RustGenerator$emit$lambda_15(indent, parents, $receiver));
15771
- var tmp_0;
15772
- // Inline function 'kotlin.collections.isNotEmpty' call
15773
- if (!functions.r()) {
15774
- var fnsContent = joinToString(functions, '', VOID, VOID, VOID, VOID, RustGenerator$emit$lambda_16);
15775
- tmp_0 = indentCode_2($this, 'impl ' + rustName + ' {\n' + fnsContent + '}\n\n', indent);
15776
- } else {
15777
- tmp_0 = '';
15778
- }
15779
- var implBlock = tmp_0;
15711
+ var _destruct__k2r9zo = new Pair(first, second);
15712
+ var functions = _destruct__k2r9zo.af();
15713
+ var nested = _destruct__k2r9zo.bf();
15714
+ var tmp;
15780
15715
  if (fields.r() && $receiver.hx_1.r()) {
15781
- var structDef = indentCode_2($this, 'pub struct ' + rustName + typeParamsStr + ';\n\n', indent);
15782
- return structDef + implBlock + nestedContent;
15716
+ tmp = ';\n';
15717
+ } else {
15718
+ tmp = ' {\n' + joinToString(fields, '', VOID, VOID, VOID, VOID, RustGenerator$emit$lambda_6) + '}\n';
15783
15719
  }
15784
- var fieldsStr = joinToString(fields, '\n', VOID, VOID, VOID, VOID, RustGenerator$emit$lambda_17);
15785
- var structDef_0 = indentCode_2($this, 'pub struct ' + rustName + typeParamsStr + ' {\n' + fieldsStr + '\n}\n\n', indent);
15786
- var customConstructors = joinToString($receiver.hx_1, '', VOID, VOID, VOID, VOID, RustGenerator$emit$lambda_18(rustName, fields, indent));
15787
- return structDef_0 + customConstructors + implBlock + nestedContent;
15720
+ var body = tmp;
15721
+ var definition = 'pub struct ' + rustName + joinNonEmpty($receiver.kx_1, ', ', '<', '>', RustGenerator$emit$lambda_7) + body;
15722
+ var tmp_0 = joinToString($receiver.hx_1, '', VOID, VOID, VOID, VOID, RustGenerator$emit$lambda_8(rustName, fields));
15723
+ var tmp_1 = 'impl ' + rustName + ' {\n';
15724
+ var implementations = tmp_0 + joinNonEmpty(functions, '', tmp_1, '}\n', RustGenerator$emit$lambda_9);
15725
+ return indentCode_2($this, definition + implementations, indent) + emit_57($this, nested, indent);
15788
15726
  }
15789
- function emit_65($this, $receiver, structName, structFields, indent) {
15790
- var params = joinToString($receiver.g10_1, ', ', VOID, VOID, VOID, VOID, RustGenerator$emit$lambda_19);
15727
+ function emit_65($this, $receiver, structName, fields) {
15728
+ var params = joinToString($receiver.g10_1, ', ', VOID, VOID, VOID, VOID, RustGenerator$emit$lambda_10);
15791
15729
  // Inline function 'kotlin.collections.filterIsInstance' call
15792
15730
  var tmp0 = $receiver.h10_1;
15793
15731
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
@@ -15807,55 +15745,51 @@ function emit_65($this, $receiver, structName, structFields, indent) {
15807
15745
  while (_iterator__ex2g4s_0.u()) {
15808
15746
  var element_0 = _iterator__ex2g4s_0.v();
15809
15747
  // Inline function 'kotlin.collections.plusAssign' call
15810
- var pair = to(element_0.hy_1.bu(), emit_70(RustGenerator_getInstance(), element_0.iy_1));
15748
+ var pair = to(element_0.hy_1.bu(), emit_72(RustGenerator_getInstance(), element_0.iy_1));
15811
15749
  destination_0.w2(pair.gf_1, pair.hf_1);
15812
15750
  }
15813
- var assignments = destination_0;
15814
- var fieldInits = joinToString(structFields, ',\n', VOID, VOID, VOID, VOID, RustGenerator$emit$lambda_20(assignments));
15815
- var constructorBody = indentCode_2($this, structName + ' {\n' + fieldInits + '\n}', 1);
15816
- var fnBody = indentCode_2($this, 'pub fn new(' + params + ') -> Self {\n' + constructorBody + '\n}', 1);
15817
- return indentCode_2($this, 'impl ' + structName + ' {\n' + fnBody + '\n}\n\n', indent);
15751
+ var values = destination_0;
15752
+ var initializers = joinToString(fields, ',\n', VOID, VOID, VOID, VOID, RustGenerator$emit$lambda_11(values));
15753
+ var construction = structName + ' {\n' + indentCode_2($this, initializers, 1) + '\n}';
15754
+ var function_0 = 'pub fn new(' + params + ') -> Self {\n' + indentCode_2($this, construction, 1) + '\n}';
15755
+ return 'impl ' + structName + ' {\n' + indentCode_2($this, function_0, 1) + '\n}\n';
15818
15756
  }
15819
- function emit_66($this, $receiver, indent, isInInterface) {
15820
- isInInterface = isInInterface === VOID ? false : isInInterface;
15821
- var params = joinToString($receiver.tx_1, ', ', VOID, VOID, VOID, VOID, RustGenerator$emit$lambda_21);
15822
- var tmp;
15823
- if ($receiver.sx_1.r()) {
15824
- tmp = '';
15825
- } else {
15826
- tmp = '<' + joinToString($receiver.sx_1, ', ', VOID, VOID, VOID, VOID, RustGenerator$emit$lambda_22) + '>';
15827
- }
15828
- var typeParamsStr = tmp;
15757
+ function emit_66($this, $receiver, indent) {
15758
+ var params = joinToString($receiver.tx_1, ', ', VOID, VOID, VOID, VOID, RustGenerator$emit$lambda_12);
15829
15759
  var tmp0_safe_receiver = $receiver.ux_1;
15830
- var tmp_0;
15760
+ var tmp;
15831
15761
  if (tmp0_safe_receiver == null) {
15832
- tmp_0 = null;
15762
+ tmp = null;
15833
15763
  } else {
15834
15764
  // Inline function 'kotlin.takeIf' call
15835
- var tmp_1;
15765
+ var tmp_0;
15836
15766
  if (!equals(tmp0_safe_receiver, Unit_instance_0)) {
15837
- tmp_1 = tmp0_safe_receiver;
15767
+ tmp_0 = tmp0_safe_receiver;
15838
15768
  } else {
15839
- tmp_1 = null;
15769
+ tmp_0 = null;
15840
15770
  }
15841
- tmp_0 = tmp_1;
15771
+ tmp = tmp_0;
15842
15772
  }
15843
- var tmp1_safe_receiver = tmp_0;
15844
- var rType = tmp1_safe_receiver == null ? null : emit_68($this, tmp1_safe_receiver);
15845
- var returnTypeStr = !(rType == null) ? ' -> ' + rType : '';
15846
- var prefix = isInInterface && $receiver.vx_1.r() ? '' : 'pub ';
15847
- var asyncPrefix = $receiver.wx_1 ? 'async ' : '';
15848
- var tmp_2;
15849
- if ($receiver.vx_1.r()) {
15850
- return indentCode_2($this, prefix + asyncPrefix + 'fn ' + sanitize_1($receiver.rx_1.eu()) + typeParamsStr + '(' + params + ')' + returnTypeStr + ';\n', indent);
15773
+ var tmp1_safe_receiver = tmp;
15774
+ var tmp_1;
15775
+ if (tmp1_safe_receiver == null) {
15776
+ tmp_1 = null;
15851
15777
  } else {
15852
- tmp_2 = joinToString($receiver.vx_1, '', VOID, VOID, VOID, VOID, RustGenerator$emit$lambda_23);
15778
+ // Inline function 'kotlin.let' call
15779
+ tmp_1 = ' -> ' + emit_69(RustGenerator_getInstance(), tmp1_safe_receiver);
15853
15780
  }
15854
- var content = tmp_2;
15855
- return indentCode_2($this, prefix + asyncPrefix + 'fn ' + sanitize_1($receiver.rx_1.eu()) + typeParamsStr + '(' + params + ')' + returnTypeStr + ' {\n' + content + '}\n\n', indent);
15781
+ // Inline function 'kotlin.text.orEmpty' call
15782
+ var tmp0_elvis_lhs = tmp_1;
15783
+ var returns = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs;
15784
+ var modifiers = ($receiver.vx_1.r() ? '' : 'pub ') + ($receiver.wx_1 ? 'async ' : '');
15785
+ var signature = modifiers + 'fn ' + sanitize_1($receiver.rx_1.eu()) + emit_67($this, $receiver.sx_1) + '(' + params + ')' + returns;
15786
+ return indentCode_2($this, $receiver.vx_1.r() ? signature + ';\n' : signature + ' {\n' + emitBody($this, $receiver.vx_1) + '}\n', indent);
15856
15787
  }
15857
15788
  function emit_67($this, $receiver) {
15858
- var typeStr = emit_68($this, $receiver.zz_1);
15789
+ return joinNonEmpty($receiver, ', ', '<', '>', RustGenerator$emit$lambda_13);
15790
+ }
15791
+ function emit_68($this, $receiver) {
15792
+ var tmp = emit_69($this, $receiver.zz_1);
15859
15793
  // Inline function 'kotlin.collections.filterNot' call
15860
15794
  var tmp0 = $receiver.a10_1;
15861
15795
  // Inline function 'kotlin.collections.filterNotTo' call
@@ -15863,26 +15797,14 @@ function emit_67($this, $receiver) {
15863
15797
  var _iterator__ex2g4s = tmp0.t();
15864
15798
  while (_iterator__ex2g4s.u()) {
15865
15799
  var element = _iterator__ex2g4s.v();
15866
- var tmp;
15867
- if (element instanceof Nullable) {
15868
- tmp = equals(element.vu_1, Any_instance);
15869
- } else {
15870
- tmp = false;
15871
- }
15872
- if (!tmp) {
15800
+ if (!equals(element, new Nullable(Any_instance))) {
15873
15801
  destination.x(element);
15874
15802
  }
15875
15803
  }
15876
- var effectiveExtends = destination;
15877
- var tmp_0;
15878
- if (effectiveExtends.r()) {
15879
- tmp_0 = typeStr;
15880
- } else {
15881
- tmp_0 = typeStr + ': ' + joinToString(effectiveExtends, ' + ', VOID, VOID, VOID, VOID, RustGenerator$emit$lambda_24);
15882
- }
15883
- return tmp_0;
15804
+ var tmp_0 = destination;
15805
+ return tmp + joinNonEmpty(tmp_0, ' + ', ': ', VOID, RustGenerator$emit$lambda_14);
15884
15806
  }
15885
- function emit_68($this, $receiver) {
15807
+ function emit_69($this, $receiver) {
15886
15808
  var tmp;
15887
15809
  if ($receiver instanceof Integer) {
15888
15810
  var tmp_0;
@@ -15936,63 +15858,25 @@ function emit_68($this, $receiver) {
15936
15858
  tmp = 'std::any::TypeId';
15937
15859
  } else {
15938
15860
  if ($receiver instanceof Array_0) {
15939
- tmp = 'Vec<' + emit_68($this, $receiver.mu_1) + '>';
15861
+ tmp = 'Vec<' + emit_69($this, $receiver.mu_1) + '>';
15940
15862
  } else {
15941
15863
  if ($receiver instanceof Dict) {
15942
- tmp = 'std::collections::HashMap<' + emit_68($this, $receiver.ou_1) + ', ' + emit_68($this, $receiver.pu_1) + '>';
15864
+ tmp = 'std::collections::HashMap<' + emit_69($this, $receiver.ou_1) + ', ' + emit_69($this, $receiver.pu_1) + '>';
15943
15865
  } else {
15944
15866
  if ($receiver instanceof Custom) {
15945
- var rawName = $receiver.ru_1.fu();
15946
15867
  var tmp_2;
15947
15868
  if ($receiver.su_1.r()) {
15948
- tmp_2 = rawName;
15869
+ tmp_2 = $receiver.ru_1.fu();
15870
+ } else if ($receiver.su_1.i1(Wildcard_instance)) {
15871
+ tmp_2 = 'Box<dyn std::any::Any>';
15949
15872
  } else {
15950
- var tmp0 = $receiver.su_1;
15951
- var tmp$ret$0;
15952
- $l$block_0: {
15953
- // Inline function 'kotlin.collections.any' call
15954
- var tmp_3;
15955
- if (isInterface(tmp0, Collection)) {
15956
- tmp_3 = tmp0.r();
15957
- } else {
15958
- tmp_3 = false;
15959
- }
15960
- if (tmp_3) {
15961
- tmp$ret$0 = false;
15962
- break $l$block_0;
15963
- }
15964
- var _iterator__ex2g4s = tmp0.t();
15965
- while (_iterator__ex2g4s.u()) {
15966
- var element = _iterator__ex2g4s.v();
15967
- var tmp_4;
15968
- if (equals(element, Wildcard_instance)) {
15969
- tmp_4 = true;
15970
- } else {
15971
- var tmp_5;
15972
- if (element instanceof Custom) {
15973
- tmp_5 = element.ru_1.bu() === '_';
15974
- } else {
15975
- tmp_5 = false;
15976
- }
15977
- tmp_4 = tmp_5;
15978
- }
15979
- if (tmp_4) {
15980
- tmp$ret$0 = true;
15981
- break $l$block_0;
15982
- }
15983
- }
15984
- tmp$ret$0 = false;
15985
- }
15986
- if (tmp$ret$0) {
15987
- tmp_2 = 'Box<dyn std::any::Any>';
15988
- } else {
15989
- tmp_2 = rawName + '<' + joinToString($receiver.su_1, ', ', VOID, VOID, VOID, VOID, RustGenerator$emit$lambda_25) + '>';
15990
- }
15873
+ var tmp_3 = $receiver.ru_1.fu();
15874
+ tmp_2 = tmp_3 + '<' + joinToString($receiver.su_1, ', ', VOID, VOID, VOID, VOID, RustGenerator$emit$lambda_15) + '>';
15991
15875
  }
15992
15876
  tmp = tmp_2;
15993
15877
  } else {
15994
15878
  if ($receiver instanceof Nullable) {
15995
- tmp = 'Option<' + emit_68($this, $receiver.vu_1) + '>';
15879
+ tmp = 'Option<' + emit_69($this, $receiver.vu_1) + '>';
15996
15880
  } else {
15997
15881
  if ($receiver instanceof IntegerLiteral) {
15998
15882
  tmp = 'i32';
@@ -16001,7 +15885,7 @@ function emit_68($this, $receiver) {
16001
15885
  tmp = 'String';
16002
15886
  } else {
16003
15887
  if ($receiver instanceof Function) {
16004
- tmp = 'Box<dyn Fn(' + joinToString($receiver.yu_1, ', ', VOID, VOID, VOID, VOID, RustGenerator$emit$lambda_26) + ') -> ' + emit_68($this, $receiver.zu_1) + '>';
15888
+ tmp = 'Box<dyn Fn(' + joinToString($receiver.yu_1, ', ', VOID, VOID, VOID, VOID, RustGenerator$emit$lambda_16) + ') -> ' + emit_69($this, $receiver.zu_1) + '>';
16005
15889
  } else {
16006
15890
  noWhenBranchMatchedException();
16007
15891
  }
@@ -16022,394 +15906,198 @@ function emit_68($this, $receiver) {
16022
15906
  }
16023
15907
  return tmp;
16024
15908
  }
16025
- function emitArrayIndex($this, receiver, index, caseSensitive) {
16026
- caseSensitive = caseSensitive === VOID ? true : caseSensitive;
16027
- var tmp;
16028
- var tmp_0;
16029
- var tmp_1;
16030
- if (!caseSensitive) {
16031
- tmp_1 = index instanceof Literal;
16032
- } else {
16033
- tmp_1 = false;
16034
- }
16035
- if (tmp_1) {
16036
- var tmp_2 = index.wy_1;
16037
- tmp_0 = tmp_2 instanceof String_0;
16038
- } else {
16039
- tmp_0 = false;
16040
- }
16041
- if (tmp_0) {
16042
- tmp = emit_70($this, receiver) + '.iter().find(|(k, _)| k.eq_ignore_ascii_case("' + toString(index.vy_1) + '")).map(|(_, v)| v.clone())';
16043
- } else {
16044
- var tmp_3;
16045
- if (index instanceof Literal) {
16046
- var tmp_4 = index.wy_1;
16047
- tmp_3 = tmp_4 instanceof String_0;
16048
- } else {
16049
- tmp_3 = false;
16050
- }
16051
- if (tmp_3) {
16052
- tmp = emit_70($this, receiver) + '.get("' + toString(index.vy_1) + '")';
16053
- } else {
16054
- var tmp_5;
16055
- if (index instanceof Literal) {
16056
- var tmp_6;
16057
- var tmp_7 = index.wy_1;
16058
- if (tmp_7 instanceof Integer) {
16059
- tmp_6 = true;
16060
- } else {
16061
- var tmp_8 = index.wy_1;
16062
- tmp_6 = tmp_8 instanceof Number_0;
16063
- }
16064
- tmp_5 = tmp_6;
16065
- } else {
16066
- tmp_5 = false;
16067
- }
16068
- if (tmp_5) {
16069
- tmp = emit_70($this, receiver) + '[' + toString(index.vy_1) + ']';
16070
- } else {
16071
- tmp = emit_70($this, receiver) + '[' + emit_70($this, index) + ']';
16072
- }
16073
- }
16074
- }
16075
- return tmp;
16076
- }
16077
- function emitErrorMessage($this, message) {
16078
- var tmp;
16079
- if (message instanceof BinaryOp) {
16080
- var parts = emitErrorMessage$flattenPlus(message);
16081
- var formatStr = joinToString(parts, '', VOID, VOID, VOID, VOID, RustGenerator$emitErrorMessage$lambda);
16082
- // Inline function 'kotlin.collections.filterNot' call
16083
- // Inline function 'kotlin.collections.filterNotTo' call
16084
- var destination = ArrayList_init_$Create$_0();
16085
- var _iterator__ex2g4s = parts.t();
16086
- while (_iterator__ex2g4s.u()) {
16087
- var element = _iterator__ex2g4s.v();
16088
- var tmp_0;
16089
- if (element instanceof Literal) {
16090
- var tmp_1 = element.wy_1;
16091
- tmp_0 = tmp_1 instanceof String_0;
16092
- } else {
16093
- tmp_0 = false;
16094
- }
16095
- if (!tmp_0) {
16096
- destination.x(element);
16097
- }
16098
- }
16099
- // Inline function 'kotlin.collections.map' call
16100
- // Inline function 'kotlin.collections.mapTo' call
16101
- var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault_0(destination, 10));
16102
- var _iterator__ex2g4s_0 = destination.t();
16103
- while (_iterator__ex2g4s_0.u()) {
16104
- var item = _iterator__ex2g4s_0.v();
16105
- var tmp$ret$5 = emit_70(RustGenerator_getInstance(), item);
16106
- destination_0.x(tmp$ret$5);
16107
- }
16108
- var args = destination_0;
16109
- tmp = args.r() ? '"' + formatStr + '"' : '"' + formatStr + '", ' + joinToString(args, ', ');
16110
- } else {
16111
- if (message instanceof Literal) {
16112
- var tmp_2;
16113
- var tmp_3 = message.wy_1;
16114
- if (tmp_3 instanceof String_0) {
16115
- tmp_2 = '"' + toString(message.vy_1) + '"';
16116
- } else {
16117
- tmp_2 = '"{}", ' + emit_73($this, message);
16118
- }
16119
- tmp = tmp_2;
16120
- } else {
16121
- tmp = '"{}", ' + emit_70($this, message);
16122
- }
16123
- }
16124
- return tmp;
16125
- }
16126
- function emitUnwrap($this, alternative) {
16127
- var tmp;
16128
- if (alternative instanceof ErrorStatement) {
16129
- var msg = alternative.tz_1;
16130
- var tmp_0;
16131
- var tmp_1;
16132
- if (msg instanceof Literal) {
16133
- var tmp_2 = msg.wy_1;
16134
- tmp_1 = tmp_2 instanceof String_0;
16135
- } else {
16136
- tmp_1 = false;
16137
- }
16138
- if (tmp_1) {
16139
- tmp_0 = '.expect("' + toString(msg.vy_1) + '")';
16140
- } else {
16141
- tmp_0 = '.unwrap_or_else(|| ' + emit_70($this, alternative) + ')';
16142
- }
16143
- tmp = tmp_0;
16144
- } else {
16145
- if (alternative == null) {
16146
- tmp = '';
16147
- } else {
16148
- tmp = '.unwrap_or(' + emit_70($this, alternative) + ')';
16149
- }
16150
- }
16151
- return tmp;
16152
- }
16153
- function emit_69($this, $receiver, indent) {
15909
+ function emit_70($this, $receiver, indent) {
16154
15910
  var tmp;
16155
15911
  if ($receiver instanceof PrintStatement) {
16156
- tmp = indentCode_2($this, 'println!("{}", ' + emit_70($this, $receiver.n10_1) + ');\n', indent);
15912
+ tmp = 'println!("{}", ' + emit_72($this, $receiver.n10_1) + ');\n';
16157
15913
  } else {
16158
15914
  if ($receiver instanceof ReturnStatement) {
16159
- tmp = indentCode_2($this, 'return ' + emit_70($this, $receiver.my_1) + ';\n', indent);
15915
+ tmp = 'return ' + emit_72($this, $receiver.my_1) + ';\n';
16160
15916
  } else {
16161
15917
  if ($receiver instanceof ConstructorStatement) {
16162
- var tmp_0;
16163
- if (equals($receiver.gu_1, Unit_instance_0)) {
16164
- tmp_0 = indentCode_2($this, '()\n', indent);
16165
- } else {
16166
- // Inline function 'kotlin.collections.map' call
16167
- var this_0 = $receiver.hu_1;
16168
- // Inline function 'kotlin.collections.mapTo' call
16169
- var destination = ArrayList_init_$Create$(this_0.c1());
16170
- // Inline function 'kotlin.collections.iterator' call
16171
- var _iterator__ex2g4s = this_0.m1().t();
16172
- while (_iterator__ex2g4s.u()) {
16173
- var item = _iterator__ex2g4s.v();
16174
- var tmp$ret$3 = sanitize_1(item.n1().eu()) + ': ' + emit_70(RustGenerator_getInstance(), item.o1());
16175
- destination.x(tmp$ret$3);
16176
- }
16177
- var allArgs = destination;
16178
- var tmp_1;
16179
- if (allArgs.r()) {
16180
- tmp_1 = ' {}';
16181
- } else {
16182
- tmp_1 = ' {\n' + joinToString(allArgs, ',\n', VOID, VOID, VOID, VOID, RustGenerator$emit$lambda_27) + ',\n}';
16183
- }
16184
- var argsStr = tmp_1;
16185
- tmp_0 = indentCode_2($this, emit_68($this, $receiver.gu_1) + argsStr + '\n', indent);
16186
- }
16187
- tmp = tmp_0;
15918
+ tmp = equals($receiver.gu_1, Unit_instance_0) ? '()\n' : $receiver.hu_1.r() ? emit_69($this, $receiver.gu_1) + ' {}\n' : emit_69($this, $receiver.gu_1) + ' {\n' + indentCode_2($this, emit_71($this, $receiver.hu_1, ',\n'), 1) + ',\n}\n';
16188
15919
  } else {
16189
- var tmp_2;
16190
- if ($receiver instanceof Literal) {
16191
- tmp_2 = true;
15920
+ if ($receiver instanceof Assignment) {
15921
+ tmp = 'let ' + sanitize_1($receiver.hy_1.eu()) + ' = ' + emit_72($this, $receiver.iy_1) + ';\n';
16192
15922
  } else {
16193
- var tmp_3;
16194
- if ($receiver instanceof LiteralList) {
16195
- tmp_3 = true;
15923
+ if ($receiver instanceof AssertStatement) {
15924
+ tmp = 'assert!(' + emit_72($this, $receiver.v10_1) + ', "' + $receiver.w10_1 + '");\n';
16196
15925
  } else {
16197
- tmp_3 = $receiver instanceof LiteralMap;
16198
- }
16199
- tmp_2 = tmp_3;
16200
- }
16201
- if (tmp_2) {
16202
- tmp = indentCode_2($this, emit_70($this, $receiver) + ';\n', indent);
16203
- } else {
16204
- if ($receiver instanceof Assignment) {
16205
- var expr = emit_70($this, $receiver.iy_1);
16206
- tmp = indentCode_2($this, 'let ' + sanitize_1($receiver.hy_1.eu()) + ' = ' + expr + ';\n', indent);
16207
- } else {
16208
- if ($receiver instanceof ErrorStatement) {
16209
- tmp = indentCode_2($this, 'panic!(' + emitErrorMessage($this, $receiver.tz_1) + ');\n', indent);
15926
+ if ($receiver instanceof Switch) {
15927
+ tmp = emitMatch($this, $receiver);
16210
15928
  } else {
16211
- if ($receiver instanceof AssertStatement) {
16212
- tmp = indentCode_2($this, 'assert!(' + emit_70($this, $receiver.v10_1) + ', "' + $receiver.w10_1 + '");\n', indent);
15929
+ var tmp_0;
15930
+ var tmp_1;
15931
+ var tmp_2;
15932
+ var tmp_3;
15933
+ if ($receiver instanceof RawExpression) {
15934
+ tmp_3 = true;
16213
15935
  } else {
16214
- if ($receiver instanceof Switch) {
16215
- var tmp_4;
16216
- var tmp0 = $receiver.az_1;
16217
- var tmp$ret$4;
16218
- $l$block_0: {
16219
- // Inline function 'kotlin.collections.any' call
16220
- var tmp_5;
16221
- if (isInterface(tmp0, Collection)) {
16222
- tmp_5 = tmp0.r();
15936
+ var tmp_4;
15937
+ if ($receiver instanceof NullLiteral) {
15938
+ tmp_4 = true;
15939
+ } else {
15940
+ tmp_4 = $receiver instanceof NullableEmpty;
15941
+ }
15942
+ tmp_3 = tmp_4;
15943
+ }
15944
+ if (tmp_3) {
15945
+ tmp_2 = true;
15946
+ } else {
15947
+ var tmp_5;
15948
+ var tmp_6;
15949
+ if ($receiver instanceof VariableReference) {
15950
+ tmp_6 = true;
15951
+ } else {
15952
+ tmp_6 = $receiver instanceof FieldCall;
15953
+ }
15954
+ if (tmp_6) {
15955
+ tmp_5 = true;
15956
+ } else {
15957
+ var tmp_7;
15958
+ if ($receiver instanceof FunctionCall) {
15959
+ tmp_7 = true;
15960
+ } else {
15961
+ tmp_7 = $receiver instanceof ArrayIndexCall;
15962
+ }
15963
+ tmp_5 = tmp_7;
15964
+ }
15965
+ tmp_2 = tmp_5;
15966
+ }
15967
+ if (tmp_2) {
15968
+ tmp_1 = true;
15969
+ } else {
15970
+ var tmp_8;
15971
+ var tmp_9;
15972
+ if ($receiver instanceof EnumReference) {
15973
+ tmp_9 = true;
15974
+ } else {
15975
+ var tmp_10;
15976
+ if ($receiver instanceof EnumValueCall) {
15977
+ tmp_10 = true;
15978
+ } else {
15979
+ tmp_10 = $receiver instanceof BinaryOp;
15980
+ }
15981
+ tmp_9 = tmp_10;
15982
+ }
15983
+ if (tmp_9) {
15984
+ tmp_8 = true;
15985
+ } else {
15986
+ var tmp_11;
15987
+ var tmp_12;
15988
+ if ($receiver instanceof TypeDescriptor) {
15989
+ tmp_12 = true;
15990
+ } else {
15991
+ tmp_12 = $receiver instanceof Cast;
15992
+ }
15993
+ if (tmp_12) {
15994
+ tmp_11 = true;
15995
+ } else {
15996
+ var tmp_13;
15997
+ if ($receiver instanceof Literal) {
15998
+ tmp_13 = true;
16223
15999
  } else {
16224
- tmp_5 = false;
16225
- }
16226
- if (tmp_5) {
16227
- tmp$ret$4 = false;
16228
- break $l$block_0;
16229
- }
16230
- var _iterator__ex2g4s_0 = tmp0.t();
16231
- while (_iterator__ex2g4s_0.u()) {
16232
- var element = _iterator__ex2g4s_0.v();
16233
- if (!(element.hz_1 == null)) {
16234
- tmp$ret$4 = true;
16235
- break $l$block_0;
16236
- }
16000
+ tmp_13 = $receiver instanceof LiteralList;
16237
16001
  }
16238
- tmp$ret$4 = false;
16002
+ tmp_11 = tmp_13;
16239
16003
  }
16240
- if (tmp$ret$4) {
16241
- tmp_4 = joinToString($receiver.az_1, '', VOID, VOID, VOID, VOID, RustGenerator$emit$lambda_28($receiver));
16004
+ tmp_8 = tmp_11;
16005
+ }
16006
+ tmp_1 = tmp_8;
16007
+ }
16008
+ if (tmp_1) {
16009
+ tmp_0 = true;
16010
+ } else {
16011
+ var tmp_14;
16012
+ var tmp_15;
16013
+ var tmp_16;
16014
+ if ($receiver instanceof LiteralMap) {
16015
+ tmp_16 = true;
16016
+ } else {
16017
+ var tmp_17;
16018
+ if ($receiver instanceof ErrorStatement) {
16019
+ tmp_17 = true;
16242
16020
  } else {
16243
- tmp_4 = joinToString($receiver.az_1, '', VOID, VOID, VOID, VOID, RustGenerator$emit$lambda_29);
16021
+ tmp_17 = $receiver instanceof NullCheck;
16244
16022
  }
16245
- var casesStr = tmp_4;
16246
- var tmp1_safe_receiver = $receiver.bz_1;
16247
- var tmp_6;
16248
- if (tmp1_safe_receiver == null) {
16249
- tmp_6 = null;
16023
+ tmp_16 = tmp_17;
16024
+ }
16025
+ if (tmp_16) {
16026
+ tmp_15 = true;
16027
+ } else {
16028
+ var tmp_18;
16029
+ var tmp_19;
16030
+ if ($receiver instanceof NullableMap) {
16031
+ tmp_19 = true;
16250
16032
  } else {
16251
- // Inline function 'kotlin.let' call
16252
- var bodyStr = joinToString(tmp1_safe_receiver, '', VOID, VOID, VOID, VOID, RustGenerator$emit$lambda_30);
16253
- tmp_6 = indentCode_2(RustGenerator_getInstance(), '_ => {\n' + bodyStr + '}\n', 1);
16033
+ tmp_19 = $receiver instanceof NullableOf;
16254
16034
  }
16255
- var tmp2_elvis_lhs = tmp_6;
16256
- var defaultStr = tmp2_elvis_lhs == null ? '' : tmp2_elvis_lhs;
16257
- tmp = indentCode_2($this, 'match ' + emit_70($this, $receiver.zy_1) + ' {\n' + casesStr + defaultStr + '}\n', indent);
16035
+ if (tmp_19) {
16036
+ tmp_18 = true;
16037
+ } else {
16038
+ var tmp_20;
16039
+ if ($receiver instanceof NullableGet) {
16040
+ tmp_20 = true;
16041
+ } else {
16042
+ tmp_20 = isInterface($receiver, Constraint);
16043
+ }
16044
+ tmp_18 = tmp_20;
16045
+ }
16046
+ tmp_15 = tmp_18;
16047
+ }
16048
+ if (tmp_15) {
16049
+ tmp_14 = true;
16258
16050
  } else {
16259
- if ($receiver instanceof RawExpression) {
16260
- tmp = indentCode_2($this, $receiver.gy_1 + ';\n', indent);
16051
+ var tmp_21;
16052
+ var tmp_22;
16053
+ var tmp_23;
16054
+ if ($receiver instanceof NotExpression) {
16055
+ tmp_23 = true;
16056
+ } else {
16057
+ tmp_23 = $receiver instanceof IfExpression;
16058
+ }
16059
+ if (tmp_23) {
16060
+ tmp_22 = true;
16061
+ } else {
16062
+ var tmp_24;
16063
+ if ($receiver instanceof MapExpression) {
16064
+ tmp_24 = true;
16065
+ } else {
16066
+ tmp_24 = $receiver instanceof FlatMapIndexed;
16067
+ }
16068
+ tmp_22 = tmp_24;
16069
+ }
16070
+ if (tmp_22) {
16071
+ tmp_21 = true;
16261
16072
  } else {
16262
- var tmp_7;
16263
- if ($receiver instanceof NullLiteral) {
16264
- tmp_7 = true;
16073
+ var tmp_25;
16074
+ var tmp_26;
16075
+ if ($receiver instanceof FlatMapEntries) {
16076
+ tmp_26 = true;
16265
16077
  } else {
16266
- tmp_7 = $receiver instanceof NullableEmpty;
16078
+ tmp_26 = $receiver instanceof ListConcat;
16267
16079
  }
16268
- if (tmp_7) {
16269
- tmp = indentCode_2($this, 'None;\n', indent);
16080
+ if (tmp_26) {
16081
+ tmp_25 = true;
16270
16082
  } else {
16271
- if ($receiver instanceof VariableReference) {
16272
- tmp = indentCode_2($this, sanitize_1($receiver.ev_1.eu()) + ';\n', indent);
16083
+ var tmp_27;
16084
+ if ($receiver instanceof StringTemplate) {
16085
+ tmp_27 = true;
16273
16086
  } else {
16274
- if ($receiver instanceof FieldCall) {
16275
- var tmp3_safe_receiver = $receiver.kz_1;
16276
- var tmp_8;
16277
- if (tmp3_safe_receiver == null) {
16278
- tmp_8 = null;
16279
- } else {
16280
- // Inline function 'kotlin.let' call
16281
- tmp_8 = emit_70(RustGenerator_getInstance(), tmp3_safe_receiver) + '.';
16282
- }
16283
- var tmp4_elvis_lhs = tmp_8;
16284
- var receiverStr = tmp4_elvis_lhs == null ? '' : tmp4_elvis_lhs;
16285
- tmp = indentCode_2($this, receiverStr + sanitize_1($receiver.lz_1.eu()) + ';\n', indent);
16286
- } else {
16287
- if ($receiver instanceof FunctionCall) {
16288
- var recv = $receiver.oy_1;
16289
- var funcName = contains_1($receiver.qy_1.bu(), '::') ? $receiver.qy_1.bu() : sanitize_1($receiver.qy_1.eu());
16290
- var awaitSuffix = $receiver.sy_1 ? '.await' : '';
16291
- var tmp_9;
16292
- if (!(recv == null)) {
16293
- var tmp_10 = emit_70($this, recv);
16294
- var tmp_11 = $receiver.ry_1.v2();
16295
- tmp_9 = indentCode_2($this, tmp_10 + '.' + funcName + '(' + joinToString(tmp_11, ', ', VOID, VOID, VOID, VOID, RustGenerator$emit$lambda_31) + ')' + awaitSuffix + ';\n', indent);
16296
- } else {
16297
- var tmp_12 = $receiver.ry_1.v2();
16298
- tmp_9 = indentCode_2($this, funcName + '(' + joinToString(tmp_12, ', ', VOID, VOID, VOID, VOID, RustGenerator$emit$lambda_32) + ')' + awaitSuffix + ';\n', indent);
16299
- }
16300
- tmp = tmp_9;
16301
- } else {
16302
- if ($receiver instanceof ArrayIndexCall) {
16303
- tmp = indentCode_2($this, emitArrayIndex($this, $receiver.b10_1, $receiver.c10_1, $receiver.d10_1) + ';\n', indent);
16304
- } else {
16305
- if ($receiver instanceof EnumReference) {
16306
- tmp = indentCode_2($this, emit_68($this, $receiver.k11_1) + '::' + $receiver.l11_1.bu() + ';\n', indent);
16307
- } else {
16308
- if ($receiver instanceof EnumValueCall) {
16309
- tmp = indentCode_2($this, 'format!("{:?}", ' + emit_70($this, $receiver.o11_1) + ');\n', indent);
16310
- } else {
16311
- if ($receiver instanceof BinaryOp) {
16312
- tmp = indentCode_2($this, '(' + emit_70($this, $receiver.uz_1) + ' ' + toRust($this, $receiver.vz_1) + ' ' + emit_70($this, $receiver.wz_1) + ');\n', indent);
16313
- } else {
16314
- if ($receiver instanceof TypeDescriptor) {
16315
- tmp = indentCode_2($this, 'std::any::TypeId::of::<' + emit_68($this, $receiver.fy_1) + '>();\n', indent);
16316
- } else {
16317
- if ($receiver instanceof Cast) {
16318
- tmp = indentCode_2($this, '(' + emit_70($this, $receiver.k10_1) + ' as ' + emit_68($this, $receiver.l10_1) + ');\n', indent);
16319
- } else {
16320
- var tmp_13;
16321
- var tmp_14;
16322
- var tmp_15;
16323
- if ($receiver instanceof NullCheck) {
16324
- tmp_15 = true;
16325
- } else {
16326
- var tmp_16;
16327
- if ($receiver instanceof NullableMap) {
16328
- tmp_16 = true;
16329
- } else {
16330
- tmp_16 = $receiver instanceof NullableOf;
16331
- }
16332
- tmp_15 = tmp_16;
16333
- }
16334
- if (tmp_15) {
16335
- tmp_14 = true;
16336
- } else {
16337
- var tmp_17;
16338
- if ($receiver instanceof NullableGet) {
16339
- tmp_17 = true;
16340
- } else {
16341
- var tmp_18;
16342
- if ($receiver instanceof RegexMatch) {
16343
- tmp_18 = true;
16344
- } else {
16345
- tmp_18 = $receiver instanceof BoundCheck;
16346
- }
16347
- tmp_17 = tmp_18;
16348
- }
16349
- tmp_14 = tmp_17;
16350
- }
16351
- if (tmp_14) {
16352
- tmp_13 = true;
16353
- } else {
16354
- var tmp_19;
16355
- var tmp_20;
16356
- if ($receiver instanceof IfExpression) {
16357
- tmp_20 = true;
16358
- } else {
16359
- var tmp_21;
16360
- if ($receiver instanceof MapExpression) {
16361
- tmp_21 = true;
16362
- } else {
16363
- tmp_21 = $receiver instanceof FlatMapIndexed;
16364
- }
16365
- tmp_20 = tmp_21;
16366
- }
16367
- if (tmp_20) {
16368
- tmp_19 = true;
16369
- } else {
16370
- var tmp_22;
16371
- var tmp_23;
16372
- if ($receiver instanceof FlatMapEntries) {
16373
- tmp_23 = true;
16374
- } else {
16375
- tmp_23 = $receiver instanceof ListConcat;
16376
- }
16377
- if (tmp_23) {
16378
- tmp_22 = true;
16379
- } else {
16380
- var tmp_24;
16381
- if ($receiver instanceof StringTemplate) {
16382
- tmp_24 = true;
16383
- } else {
16384
- tmp_24 = $receiver instanceof Lambda;
16385
- }
16386
- tmp_22 = tmp_24;
16387
- }
16388
- tmp_19 = tmp_22;
16389
- }
16390
- tmp_13 = tmp_19;
16391
- }
16392
- if (tmp_13) {
16393
- tmp = indentCode_2($this, emit_70($this, $receiver) + ';\n', indent);
16394
- } else {
16395
- if ($receiver instanceof NotExpression) {
16396
- tmp = indentCode_2($this, '!' + emit_70($this, $receiver.g12_1) + ';\n', indent);
16397
- } else {
16398
- noWhenBranchMatchedException();
16399
- }
16400
- }
16401
- }
16402
- }
16403
- }
16404
- }
16405
- }
16406
- }
16407
- }
16408
- }
16087
+ tmp_27 = $receiver instanceof Lambda;
16409
16088
  }
16089
+ tmp_25 = tmp_27;
16410
16090
  }
16091
+ tmp_21 = tmp_25;
16411
16092
  }
16093
+ tmp_14 = tmp_21;
16412
16094
  }
16095
+ tmp_0 = tmp_14;
16096
+ }
16097
+ if (tmp_0) {
16098
+ tmp = emit_72($this, $receiver) + ';\n';
16099
+ } else {
16100
+ noWhenBranchMatchedException();
16413
16101
  }
16414
16102
  }
16415
16103
  }
@@ -16417,7 +16105,71 @@ function emit_69($this, $receiver, indent) {
16417
16105
  }
16418
16106
  }
16419
16107
  }
16420
- return tmp;
16108
+ return indentCode_2($this, tmp, indent);
16109
+ }
16110
+ function emitMatch($this, $receiver) {
16111
+ var tmp0 = $receiver.az_1;
16112
+ var tmp$ret$0;
16113
+ $l$block_0: {
16114
+ // Inline function 'kotlin.collections.any' call
16115
+ var tmp;
16116
+ if (isInterface(tmp0, Collection)) {
16117
+ tmp = tmp0.r();
16118
+ } else {
16119
+ tmp = false;
16120
+ }
16121
+ if (tmp) {
16122
+ tmp$ret$0 = false;
16123
+ break $l$block_0;
16124
+ }
16125
+ var _iterator__ex2g4s = tmp0.t();
16126
+ while (_iterator__ex2g4s.u()) {
16127
+ var element = _iterator__ex2g4s.v();
16128
+ if (!(element.hz_1 == null)) {
16129
+ tmp$ret$0 = true;
16130
+ break $l$block_0;
16131
+ }
16132
+ }
16133
+ tmp$ret$0 = false;
16134
+ }
16135
+ var matchesType = tmp$ret$0;
16136
+ // Inline function 'kotlin.collections.map' call
16137
+ var this_0 = $receiver.az_1;
16138
+ // Inline function 'kotlin.collections.mapTo' call
16139
+ var destination = ArrayList_init_$Create$(collectionSizeOrDefault_0(this_0, 10));
16140
+ var _iterator__ex2g4s_0 = this_0.t();
16141
+ while (_iterator__ex2g4s_0.u()) {
16142
+ var item = _iterator__ex2g4s_0.v();
16143
+ var tmp_0;
16144
+ if (matchesType) {
16145
+ var tmp0_safe_receiver = item.hz_1;
16146
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : emit_69(RustGenerator_getInstance(), tmp0_safe_receiver);
16147
+ var tmp_1 = tmp1_elvis_lhs == null ? '_' : tmp1_elvis_lhs;
16148
+ var tmp2_safe_receiver = $receiver.cz_1;
16149
+ var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.eu();
16150
+ tmp_0 = tmp_1 + '(' + (tmp3_elvis_lhs == null ? '_' : tmp3_elvis_lhs) + ')';
16151
+ } else {
16152
+ tmp_0 = emit_72(RustGenerator_getInstance(), item.fz_1);
16153
+ }
16154
+ var tmp$ret$4 = to(tmp_0, item.gz_1);
16155
+ destination.x(tmp$ret$4);
16156
+ }
16157
+ var tmp_2 = destination;
16158
+ var tmp0_safe_receiver_0 = $receiver.bz_1;
16159
+ var tmp_3;
16160
+ if (tmp0_safe_receiver_0 == null) {
16161
+ tmp_3 = null;
16162
+ } else {
16163
+ // Inline function 'kotlin.let' call
16164
+ tmp_3 = to('_', tmp0_safe_receiver_0);
16165
+ }
16166
+ var arms = plus_0(tmp_2, listOfNotNull(tmp_3));
16167
+ var tmp_4 = emit_72($this, $receiver.zy_1);
16168
+ return 'match ' + tmp_4 + ' {\n' + indentCode_2($this, joinToString(arms, '', VOID, VOID, VOID, VOID, RustGenerator$emitMatch$lambda), 1) + '}\n';
16169
+ }
16170
+ function emit_71($this, $receiver, separator) {
16171
+ var tmp = $receiver.m1();
16172
+ return joinToString(tmp, separator, VOID, VOID, VOID, VOID, RustGenerator$emit$lambda_17);
16421
16173
  }
16422
16174
  function toRust($this, $receiver) {
16423
16175
  var tmp;
@@ -16439,52 +16191,46 @@ function toRust($this, $receiver) {
16439
16191
  }
16440
16192
  return tmp;
16441
16193
  }
16442
- function emit_70($this, $receiver) {
16194
+ function emit_72($this, $receiver) {
16443
16195
  var tmp;
16444
16196
  if ($receiver instanceof ConstructorStatement) {
16445
- var tmp_0;
16446
- if (equals($receiver.gu_1, Unit_instance_0)) {
16447
- tmp_0 = '()';
16448
- } else {
16449
- // Inline function 'kotlin.collections.map' call
16450
- var this_0 = $receiver.hu_1;
16451
- // Inline function 'kotlin.collections.mapTo' call
16452
- var destination = ArrayList_init_$Create$(this_0.c1());
16453
- // Inline function 'kotlin.collections.iterator' call
16454
- var _iterator__ex2g4s = this_0.m1().t();
16455
- while (_iterator__ex2g4s.u()) {
16456
- var item = _iterator__ex2g4s.v();
16457
- var tmp$ret$3 = sanitize_1(item.n1().eu()) + ': ' + emit_70(RustGenerator_getInstance(), item.o1());
16458
- destination.x(tmp$ret$3);
16459
- }
16460
- var allArgs = destination;
16461
- var argsStr = allArgs.r() ? ' {}' : ' { ' + joinToString(allArgs, ', ') + ' }';
16462
- tmp_0 = emit_68($this, $receiver.gu_1) + argsStr;
16463
- }
16464
- tmp = tmp_0;
16197
+ tmp = equals($receiver.gu_1, Unit_instance_0) ? '()' : $receiver.hu_1.r() ? emit_69($this, $receiver.gu_1) + ' {}' : emit_69($this, $receiver.gu_1) + ' { ' + emit_71($this, $receiver.hu_1, ', ') + ' }';
16465
16198
  } else {
16466
16199
  if ($receiver instanceof Literal) {
16467
16200
  tmp = emit_73($this, $receiver);
16468
16201
  } else {
16469
16202
  if ($receiver instanceof LiteralList) {
16470
- tmp = emit_71($this, $receiver);
16203
+ var tmp_0;
16204
+ if ($receiver.o10_1.r()) {
16205
+ tmp_0 = 'Vec::<' + emit_69($this, $receiver.p10_1) + '>::new()';
16206
+ } else {
16207
+ tmp_0 = 'vec![' + joinToString($receiver.o10_1, ', ', VOID, VOID, VOID, VOID, RustGenerator$emit$lambda_18) + ']';
16208
+ }
16209
+ tmp = tmp_0;
16471
16210
  } else {
16472
16211
  if ($receiver instanceof LiteralMap) {
16473
- tmp = emit_72($this, $receiver);
16212
+ var tmp_1;
16213
+ if ($receiver.r10_1.r()) {
16214
+ tmp_1 = 'std::collections::HashMap::new()';
16215
+ } else {
16216
+ var tmp_2 = $receiver.r10_1.m1();
16217
+ tmp_1 = 'std::collections::HashMap::from([' + joinToString(tmp_2, ', ', VOID, VOID, VOID, VOID, RustGenerator$emit$lambda_19($receiver)) + '])';
16218
+ }
16219
+ tmp = tmp_1;
16474
16220
  } else {
16475
16221
  if ($receiver instanceof ClassReference) {
16476
- tmp = 'std::any::TypeId::of::<' + emit_68($this, $receiver.j11_1) + '>()';
16222
+ tmp = 'std::any::TypeId::of::<' + emit_69($this, $receiver.j11_1) + '>()';
16477
16223
  } else {
16478
16224
  if ($receiver instanceof RawExpression) {
16479
16225
  tmp = $receiver.gy_1;
16480
16226
  } else {
16481
- var tmp_1;
16227
+ var tmp_3;
16482
16228
  if ($receiver instanceof NullLiteral) {
16483
- tmp_1 = true;
16229
+ tmp_3 = true;
16484
16230
  } else {
16485
- tmp_1 = $receiver instanceof NullableEmpty;
16231
+ tmp_3 = $receiver instanceof NullableEmpty;
16486
16232
  }
16487
- if (tmp_1) {
16233
+ if (tmp_3) {
16488
16234
  tmp = 'None';
16489
16235
  } else {
16490
16236
  if ($receiver instanceof VariableReference) {
@@ -16492,100 +16238,136 @@ function emit_70($this, $receiver) {
16492
16238
  } else {
16493
16239
  if ($receiver instanceof FieldCall) {
16494
16240
  var tmp1_safe_receiver = $receiver.kz_1;
16495
- var tmp_2;
16241
+ var tmp_4;
16496
16242
  if (tmp1_safe_receiver == null) {
16497
- tmp_2 = null;
16243
+ tmp_4 = null;
16498
16244
  } else {
16499
16245
  // Inline function 'kotlin.let' call
16500
- tmp_2 = emit_70(RustGenerator_getInstance(), tmp1_safe_receiver) + '.';
16246
+ tmp_4 = emit_72(RustGenerator_getInstance(), tmp1_safe_receiver) + '.';
16501
16247
  }
16502
- var tmp2_elvis_lhs = tmp_2;
16503
- var receiverStr = tmp2_elvis_lhs == null ? '' : tmp2_elvis_lhs;
16504
- tmp = receiverStr + sanitize_1($receiver.lz_1.eu());
16248
+ // Inline function 'kotlin.text.orEmpty' call
16249
+ var tmp0_elvis_lhs = tmp_4;
16250
+ tmp = (tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs) + sanitize_1($receiver.lz_1.eu());
16505
16251
  } else {
16506
16252
  if ($receiver instanceof FunctionCall) {
16507
- var recv = $receiver.oy_1;
16508
- var funcName = contains_1($receiver.qy_1.bu(), '::') ? $receiver.qy_1.bu() : sanitize_1($receiver.qy_1.eu());
16509
- var awaitSuffix = $receiver.sy_1 ? '.await' : '';
16510
- var tmp_3;
16511
- if (!(recv == null)) {
16512
- var tmp_4 = emit_70($this, recv);
16513
- var tmp_5 = $receiver.ry_1.v2();
16514
- tmp_3 = tmp_4 + '.' + funcName + '(' + joinToString(tmp_5, ', ', VOID, VOID, VOID, VOID, RustGenerator$emit$lambda_33) + ')' + awaitSuffix;
16253
+ var function_0 = contains_1($receiver.qy_1.bu(), '::') ? $receiver.qy_1.bu() : sanitize_1($receiver.qy_1.eu());
16254
+ var tmp2_safe_receiver = $receiver.oy_1;
16255
+ var tmp_5;
16256
+ if (tmp2_safe_receiver == null) {
16257
+ tmp_5 = null;
16515
16258
  } else {
16516
- var tmp_6 = $receiver.ry_1.v2();
16517
- tmp_3 = funcName + '(' + joinToString(tmp_6, ', ', VOID, VOID, VOID, VOID, RustGenerator$emit$lambda_34) + ')' + awaitSuffix;
16259
+ // Inline function 'kotlin.let' call
16260
+ tmp_5 = emit_72(RustGenerator_getInstance(), tmp2_safe_receiver) + '.';
16518
16261
  }
16519
- tmp = tmp_3;
16262
+ // Inline function 'kotlin.text.orEmpty' call
16263
+ var tmp0_elvis_lhs_0 = tmp_5;
16264
+ var tmp_6 = tmp0_elvis_lhs_0 == null ? '' : tmp0_elvis_lhs_0;
16265
+ var tmp_7 = $receiver.ry_1.v2();
16266
+ tmp = tmp_6 + function_0 + '(' + joinToString(tmp_7, ', ', VOID, VOID, VOID, VOID, RustGenerator$emit$lambda_20) + ')' + ($receiver.sy_1 ? '.await' : '');
16520
16267
  } else {
16521
16268
  if ($receiver instanceof ArrayIndexCall) {
16522
- tmp = emitArrayIndex($this, $receiver.b10_1, $receiver.c10_1, $receiver.d10_1);
16269
+ var tmp_8;
16270
+ var tmp_9;
16271
+ var tmp_10 = $receiver.c10_1;
16272
+ if (tmp_10 instanceof Literal) {
16273
+ var tmp_11 = $receiver.c10_1.wy_1;
16274
+ tmp_9 = tmp_11 instanceof String_0;
16275
+ } else {
16276
+ tmp_9 = false;
16277
+ }
16278
+ if (tmp_9) {
16279
+ var tmp_12;
16280
+ if ($receiver.d10_1) {
16281
+ tmp_12 = emit_72($this, $receiver.b10_1) + '.get("' + toString($receiver.c10_1.vy_1) + '")';
16282
+ } else {
16283
+ tmp_12 = emit_72($this, $receiver.b10_1) + '.iter().find(|(k, _)| k.eq_ignore_ascii_case("' + toString($receiver.c10_1.vy_1) + '")).map(|(_, v)| v.clone())';
16284
+ }
16285
+ tmp_8 = tmp_12;
16286
+ } else {
16287
+ var tmp_13;
16288
+ var tmp_14 = $receiver.c10_1;
16289
+ if (tmp_14 instanceof Literal) {
16290
+ var tmp_15;
16291
+ var tmp_16 = $receiver.c10_1.wy_1;
16292
+ if (tmp_16 instanceof Integer) {
16293
+ tmp_15 = true;
16294
+ } else {
16295
+ var tmp_17 = $receiver.c10_1.wy_1;
16296
+ tmp_15 = tmp_17 instanceof Number_0;
16297
+ }
16298
+ tmp_13 = tmp_15;
16299
+ } else {
16300
+ tmp_13 = false;
16301
+ }
16302
+ if (tmp_13) {
16303
+ tmp_8 = emit_72($this, $receiver.b10_1) + '[' + toString($receiver.c10_1.vy_1) + ']';
16304
+ } else {
16305
+ tmp_8 = emit_72($this, $receiver.b10_1) + '[' + emit_72($this, $receiver.c10_1) + ']';
16306
+ }
16307
+ }
16308
+ tmp = tmp_8;
16523
16309
  } else {
16524
16310
  if ($receiver instanceof EnumReference) {
16525
- tmp = emit_68($this, $receiver.k11_1) + '::' + $receiver.l11_1.bu();
16311
+ tmp = emit_69($this, $receiver.k11_1) + '::' + $receiver.l11_1.bu();
16526
16312
  } else {
16527
16313
  if ($receiver instanceof EnumValueCall) {
16528
- tmp = 'format!("{:?}", ' + emit_70($this, $receiver.o11_1) + ')';
16314
+ tmp = 'format!("{:?}", ' + emit_72($this, $receiver.o11_1) + ')';
16529
16315
  } else {
16530
16316
  if ($receiver instanceof BinaryOp) {
16531
- tmp = '(' + emit_70($this, $receiver.uz_1) + ' ' + toRust($this, $receiver.vz_1) + ' ' + emit_70($this, $receiver.wz_1) + ')';
16317
+ tmp = '(' + emit_72($this, $receiver.uz_1) + ' ' + toRust($this, $receiver.vz_1) + ' ' + emit_72($this, $receiver.wz_1) + ')';
16532
16318
  } else {
16533
16319
  if ($receiver instanceof TypeDescriptor) {
16534
- tmp = 'std::any::TypeId::of::<' + emit_68($this, $receiver.fy_1) + '>()';
16320
+ tmp = 'std::any::TypeId::of::<' + emit_69($this, $receiver.fy_1) + '>()';
16535
16321
  } else {
16536
16322
  if ($receiver instanceof Cast) {
16537
- tmp = '(' + emit_70($this, $receiver.k10_1) + ' as ' + emit_68($this, $receiver.l10_1) + ')';
16323
+ tmp = '(' + emit_72($this, $receiver.k10_1) + ' as ' + emit_69($this, $receiver.l10_1) + ')';
16538
16324
  } else {
16539
16325
  if ($receiver instanceof NullCheck) {
16540
- var exprStr = emit_70($this, $receiver.z10_1);
16541
- var bodyStr = emit_70($this, $receiver.a11_1);
16542
- tmp = exprStr + '.as_ref().map(|it| ' + bodyStr + ')' + emitUnwrap($this, $receiver.b11_1);
16326
+ tmp = emit_72($this, $receiver.z10_1) + '.as_ref().map(|it| ' + emit_72($this, $receiver.a11_1) + ')' + emitUnwrap($this, $receiver.b11_1);
16543
16327
  } else {
16544
16328
  if ($receiver instanceof NullableMap) {
16545
- var exprStr_0 = emit_70($this, $receiver.p11_1);
16546
- var bodyStr_0 = emit_70($this, $receiver.q11_1);
16547
- tmp = exprStr_0 + '.as_ref().map(|' + $receiver.s11_1.eu() + '| ' + bodyStr_0 + ')' + emitUnwrap($this, $receiver.r11_1);
16329
+ tmp = emit_72($this, $receiver.p11_1) + '.as_ref().map(|' + $receiver.s11_1.eu() + '| ' + emit_72($this, $receiver.q11_1) + ')' + emitUnwrap($this, $receiver.r11_1);
16548
16330
  } else {
16549
16331
  if ($receiver instanceof NullableOf) {
16550
- tmp = 'Some(' + emit_70($this, $receiver.j10_1) + ')';
16332
+ tmp = 'Some(' + emit_72($this, $receiver.j10_1) + ')';
16551
16333
  } else {
16552
16334
  if ($receiver instanceof NullableGet) {
16553
- tmp = emit_70($this, $receiver.v11_1) + '.unwrap()';
16335
+ tmp = emit_72($this, $receiver.v11_1) + '.unwrap()';
16554
16336
  } else {
16555
16337
  if ($receiver instanceof RegexMatch) {
16556
- tmp = 'regex::Regex::new(r"' + $receiver.w11_1 + '").unwrap().is_match(&' + emit_70($this, $receiver.y11_1) + ')';
16338
+ tmp = 'regex::Regex::new(r"' + $receiver.w11_1 + '").unwrap().is_match(&' + emit_72($this, $receiver.y11_1) + ')';
16557
16339
  } else {
16558
16340
  if ($receiver instanceof BoundCheck) {
16559
16341
  var tmp3_safe_receiver = $receiver.b12_1;
16560
- var tmp_7;
16342
+ var tmp_18;
16561
16343
  if (tmp3_safe_receiver == null) {
16562
- tmp_7 = null;
16344
+ tmp_18 = null;
16563
16345
  } else {
16564
16346
  // Inline function 'kotlin.let' call
16565
- tmp_7 = tmp3_safe_receiver + ' <= ' + emit_70(RustGenerator_getInstance(), $receiver.d12_1);
16347
+ tmp_18 = tmp3_safe_receiver + ' <= ' + emit_72(RustGenerator_getInstance(), $receiver.d12_1);
16566
16348
  }
16567
- var tmp_8 = tmp_7;
16349
+ var tmp_19 = tmp_18;
16568
16350
  var tmp4_safe_receiver = $receiver.c12_1;
16569
- var tmp_9;
16351
+ var tmp_20;
16570
16352
  if (tmp4_safe_receiver == null) {
16571
- tmp_9 = null;
16353
+ tmp_20 = null;
16572
16354
  } else {
16573
16355
  // Inline function 'kotlin.let' call
16574
- tmp_9 = emit_70(RustGenerator_getInstance(), $receiver.d12_1) + ' <= ' + tmp4_safe_receiver;
16356
+ tmp_20 = emit_72(RustGenerator_getInstance(), $receiver.d12_1) + ' <= ' + tmp4_safe_receiver;
16575
16357
  }
16576
16358
  // Inline function 'kotlin.text.ifEmpty' call
16577
- var this_1 = joinToString(listOfNotNull_0([tmp_8, tmp_9]), ' && ');
16578
- var tmp_10;
16359
+ var this_0 = joinToString(listOfNotNull_0([tmp_19, tmp_20]), ' && ');
16360
+ var tmp_21;
16579
16361
  // Inline function 'kotlin.text.isEmpty' call
16580
- if (charSequenceLength(this_1) === 0) {
16581
- tmp_10 = 'true';
16362
+ if (charSequenceLength(this_0) === 0) {
16363
+ tmp_21 = 'true';
16582
16364
  } else {
16583
- tmp_10 = this_1;
16365
+ tmp_21 = this_0;
16584
16366
  }
16585
- tmp = tmp_10;
16367
+ tmp = tmp_21;
16586
16368
  } else {
16587
16369
  if ($receiver instanceof ErrorStatement) {
16588
- tmp = 'panic!(' + emitErrorMessage($this, $receiver.tz_1) + ')';
16370
+ tmp = 'panic!(' + emitFormatArguments($this, $receiver.tz_1) + ')';
16589
16371
  } else {
16590
16372
  if ($receiver instanceof AssertStatement) {
16591
16373
  throw IllegalArgumentException_init_$Create$('AssertStatement cannot be an expression in Rust');
@@ -16603,94 +16385,71 @@ function emit_70($this, $receiver) {
16603
16385
  throw IllegalArgumentException_init_$Create$('ReturnStatement cannot be an expression in Rust');
16604
16386
  } else {
16605
16387
  if ($receiver instanceof NotExpression) {
16606
- tmp = '!' + emit_70($this, $receiver.g12_1);
16388
+ tmp = '!' + emit_72($this, $receiver.g12_1);
16607
16389
  } else {
16608
16390
  if ($receiver instanceof IfExpression) {
16609
- tmp = 'if ' + emit_70($this, $receiver.h12_1) + ' { ' + emit_70($this, $receiver.i12_1) + ' } else { ' + emit_70($this, $receiver.j12_1) + ' }';
16391
+ tmp = 'if ' + emit_72($this, $receiver.h12_1) + ' { ' + emit_72($this, $receiver.i12_1) + ' } else { ' + emit_72($this, $receiver.j12_1) + ' }';
16610
16392
  } else {
16611
16393
  if ($receiver instanceof MapExpression) {
16612
- var recv_0 = $receiver.l12_1;
16613
- var tmp_11;
16614
- var tmp_12;
16615
- if (recv_0 instanceof BinaryOp) {
16616
- tmp_12 = recv_0.vz_1.equals(Operator_UNTIL_getInstance());
16394
+ var tmp_22;
16395
+ var tmp_23;
16396
+ var tmp_24 = $receiver.l12_1;
16397
+ if (tmp_24 instanceof BinaryOp) {
16398
+ tmp_23 = $receiver.l12_1.vz_1.equals(Operator_UNTIL_getInstance());
16617
16399
  } else {
16618
- tmp_12 = false;
16400
+ tmp_23 = false;
16619
16401
  }
16620
- if (tmp_12) {
16621
- tmp_11 = emit_70($this, recv_0.wz_1);
16402
+ if (tmp_23) {
16403
+ tmp_22 = emit_72($this, $receiver.l12_1.wz_1);
16622
16404
  } else {
16623
- tmp_11 = emit_70($this, $receiver.l12_1) + '.iter().map(|' + $receiver.m12_1.eu() + '| ' + emit_70($this, $receiver.n12_1) + ').collect::<Vec<_>>()';
16405
+ tmp_22 = emit_72($this, $receiver.l12_1) + '.iter().map(|' + $receiver.m12_1.eu() + '| ' + emit_72($this, $receiver.n12_1) + ').collect::<Vec<_>>()';
16624
16406
  }
16625
- tmp = tmp_11;
16407
+ tmp = tmp_22;
16626
16408
  } else {
16627
16409
  if ($receiver instanceof FlatMapIndexed) {
16628
- tmp = emit_70($this, $receiver.q12_1) + '.iter().enumerate().flat_map(|(' + $receiver.r12_1.eu() + ', ' + $receiver.s12_1.eu() + ')| ' + emit_70($this, $receiver.t12_1) + ').collect::<Vec<_>>()';
16410
+ tmp = emit_72($this, $receiver.q12_1) + '.iter().enumerate().flat_map(|(' + $receiver.r12_1.eu() + ', ' + $receiver.s12_1.eu() + ')| ' + emit_72($this, $receiver.t12_1) + ').collect::<Vec<_>>()';
16629
16411
  } else {
16630
16412
  if ($receiver instanceof FlatMapEntries) {
16631
- tmp = emit_70($this, $receiver.w12_1) + '.iter().flat_map(|(' + $receiver.x12_1.eu() + ', ' + $receiver.y12_1.eu() + ')| ' + emit_70($this, $receiver.z12_1) + ').collect::<Vec<_>>()';
16413
+ tmp = emit_72($this, $receiver.w12_1) + '.iter().flat_map(|(' + $receiver.x12_1.eu() + ', ' + $receiver.y12_1.eu() + ')| ' + emit_72($this, $receiver.z12_1) + ').collect::<Vec<_>>()';
16632
16414
  } else {
16633
16415
  if ($receiver instanceof ListConcat) {
16634
- var tmp_13;
16416
+ var tmp_25;
16635
16417
  if ($receiver.b13_1.r()) {
16636
- tmp_13 = 'vec![]';
16418
+ tmp_25 = 'vec![]';
16637
16419
  } else if ($receiver.b13_1.c1() === 1) {
16638
- tmp_13 = emit_70($this, single($receiver.b13_1));
16420
+ tmp_25 = emit_72($this, single($receiver.b13_1));
16639
16421
  } else {
16640
- tmp_13 = 'vec![' + joinToString($receiver.b13_1, ', ', VOID, VOID, VOID, VOID, RustGenerator$emit$lambda_35) + '].concat()';
16422
+ tmp_25 = 'vec![' + joinToString($receiver.b13_1, ', ', VOID, VOID, VOID, VOID, RustGenerator$emit$lambda_21) + '].concat()';
16641
16423
  }
16642
- tmp = tmp_13;
16424
+ tmp = tmp_25;
16643
16425
  } else {
16644
16426
  if ($receiver instanceof StringTemplate) {
16427
+ var template = joinToString($receiver.i13_1, '', VOID, VOID, VOID, VOID, RustGenerator$emit$lambda_22);
16428
+ // Inline function 'kotlin.collections.filterIsInstance' call
16429
+ var tmp0 = $receiver.i13_1;
16430
+ // Inline function 'kotlin.collections.filterIsInstanceTo' call
16431
+ var destination = ArrayList_init_$Create$_0();
16432
+ var _iterator__ex2g4s = tmp0.t();
16433
+ while (_iterator__ex2g4s.u()) {
16434
+ var element = _iterator__ex2g4s.v();
16435
+ if (element instanceof Expr) {
16436
+ destination.x(element);
16437
+ }
16438
+ }
16645
16439
  // Inline function 'kotlin.collections.map' call
16646
- var this_2 = $receiver.i13_1;
16647
16440
  // Inline function 'kotlin.collections.mapTo' call
16648
- var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault_0(this_2, 10));
16649
- var _iterator__ex2g4s_0 = this_2.t();
16441
+ var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault_0(destination, 10));
16442
+ var _iterator__ex2g4s_0 = destination.t();
16650
16443
  while (_iterator__ex2g4s_0.u()) {
16651
- var item_0 = _iterator__ex2g4s_0.v();
16652
- var tmp_14;
16653
- if (item_0 instanceof Text) {
16654
- tmp_14 = to(item_0.g13_1, null);
16655
- } else {
16656
- if (item_0 instanceof Expr) {
16657
- tmp_14 = to('{}', emit_70(RustGenerator_getInstance(), item_0.h13_1));
16658
- } else {
16659
- noWhenBranchMatchedException();
16660
- }
16661
- }
16662
- var tmp$ret$15 = tmp_14;
16663
- destination_0.x(tmp$ret$15);
16444
+ var item = _iterator__ex2g4s_0.v();
16445
+ var tmp$ret$17 = emit_72(RustGenerator_getInstance(), item.h13_1);
16446
+ destination_0.x(tmp$ret$17);
16664
16447
  }
16665
- var mapped = destination_0;
16666
- var formatStr = joinToString(mapped, '', VOID, VOID, VOID, VOID, RustGenerator$emit$lambda_36);
16667
- // Inline function 'kotlin.collections.mapNotNull' call
16668
- // Inline function 'kotlin.collections.mapNotNullTo' call
16669
- var destination_1 = ArrayList_init_$Create$_0();
16670
- // Inline function 'kotlin.collections.forEach' call
16671
- var _iterator__ex2g4s_1 = mapped.t();
16672
- while (_iterator__ex2g4s_1.u()) {
16673
- var element = _iterator__ex2g4s_1.v();
16674
- var tmp0_safe_receiver = element.hf_1;
16675
- if (tmp0_safe_receiver == null)
16676
- null;
16677
- else {
16678
- // Inline function 'kotlin.let' call
16679
- destination_1.x(tmp0_safe_receiver);
16680
- }
16681
- }
16682
- var args = destination_1;
16683
- var tmp_15;
16684
- if (args.r()) {
16685
- tmp_15 = 'String::from("' + formatStr + '")';
16686
- } else {
16687
- tmp_15 = 'format!("' + formatStr + '", ' + joinToString(args, ', ') + ')';
16688
- }
16689
- tmp = tmp_15;
16448
+ var arguments_0 = destination_0;
16449
+ tmp = arguments_0.r() ? 'String::from("' + template + '")' : 'format!("' + template + '", ' + joinToString(arguments_0, ', ') + ')';
16690
16450
  } else {
16691
16451
  if ($receiver instanceof Lambda) {
16692
- var params = joinToString($receiver.d13_1, ', ', VOID, VOID, VOID, VOID, RustGenerator$emit$lambda_37);
16693
- tmp = 'Box::new(|' + params + '| ' + emit_70($this, $receiver.e13_1) + ')';
16452
+ tmp = 'Box::new(|' + joinToString($receiver.d13_1, ', ', VOID, VOID, VOID, VOID, RustGenerator$emit$lambda_23) + '| ' + emit_72($this, $receiver.e13_1) + ')';
16694
16453
  } else {
16695
16454
  noWhenBranchMatchedException();
16696
16455
  }
@@ -16731,18 +16490,88 @@ function emit_70($this, $receiver) {
16731
16490
  }
16732
16491
  return tmp;
16733
16492
  }
16734
- function emit_71($this, $receiver) {
16735
- if ($receiver.o10_1.r())
16736
- return 'Vec::<' + emit_68($this, $receiver.p10_1) + '>::new()';
16737
- var list = joinToString($receiver.o10_1, ', ', VOID, VOID, VOID, VOID, RustGenerator$emit$lambda_38);
16738
- return 'vec![' + list + ']';
16493
+ function emitUnwrap($this, $receiver) {
16494
+ var tmp;
16495
+ if ($receiver == null) {
16496
+ tmp = '';
16497
+ } else {
16498
+ if ($receiver instanceof ErrorStatement) {
16499
+ var tmp1_safe_receiver = stringLiteral($this, $receiver.tz_1);
16500
+ var tmp_0;
16501
+ if (tmp1_safe_receiver == null) {
16502
+ tmp_0 = null;
16503
+ } else {
16504
+ // Inline function 'kotlin.let' call
16505
+ tmp_0 = '.expect("' + tmp1_safe_receiver + '")';
16506
+ }
16507
+ var tmp2_elvis_lhs = tmp_0;
16508
+ tmp = tmp2_elvis_lhs == null ? '.unwrap_or_else(|| ' + emit_72($this, $receiver) + ')' : tmp2_elvis_lhs;
16509
+ } else {
16510
+ tmp = '.unwrap_or(' + emit_72($this, $receiver) + ')';
16511
+ }
16512
+ }
16513
+ return tmp;
16739
16514
  }
16740
- function emit_72($this, $receiver) {
16741
- if ($receiver.r10_1.r())
16742
- return 'std::collections::HashMap::new()';
16743
- var tmp = $receiver.r10_1.m1();
16744
- var map = joinToString(tmp, ', ', VOID, VOID, VOID, VOID, RustGenerator$emit$lambda_39($receiver));
16745
- return 'std::collections::HashMap::from([' + map + '])';
16515
+ function emitFormatArguments($this, $receiver) {
16516
+ // Inline function 'kotlin.let' call
16517
+ var parts = concatenation($this, $receiver);
16518
+ var template = joinToString(parts, '', VOID, VOID, VOID, VOID, RustGenerator$emitFormatArguments$lambda);
16519
+ var tmp = listOf_0('"' + template + '"');
16520
+ // Inline function 'kotlin.collections.filter' call
16521
+ // Inline function 'kotlin.collections.filterTo' call
16522
+ var destination = ArrayList_init_$Create$_0();
16523
+ var _iterator__ex2g4s = parts.t();
16524
+ while (_iterator__ex2g4s.u()) {
16525
+ var element = _iterator__ex2g4s.v();
16526
+ if (stringLiteral(RustGenerator_getInstance(), element) == null) {
16527
+ destination.x(element);
16528
+ }
16529
+ }
16530
+ // Inline function 'kotlin.collections.map' call
16531
+ // Inline function 'kotlin.collections.mapTo' call
16532
+ var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault_0(destination, 10));
16533
+ var _iterator__ex2g4s_0 = destination.t();
16534
+ while (_iterator__ex2g4s_0.u()) {
16535
+ var item = _iterator__ex2g4s_0.v();
16536
+ var tmp$ret$7 = emit_72(RustGenerator_getInstance(), item);
16537
+ destination_0.x(tmp$ret$7);
16538
+ }
16539
+ return joinToString(plus_0(tmp, destination_0), ', ');
16540
+ }
16541
+ function concatenation($this, $receiver) {
16542
+ var tmp;
16543
+ var tmp_0;
16544
+ if ($receiver instanceof BinaryOp) {
16545
+ tmp_0 = $receiver.vz_1.equals(Operator_PLUS_getInstance());
16546
+ } else {
16547
+ tmp_0 = false;
16548
+ }
16549
+ if (tmp_0) {
16550
+ tmp = plus_0(concatenation($this, $receiver.uz_1), concatenation($this, $receiver.wz_1));
16551
+ } else {
16552
+ tmp = listOf_0($receiver);
16553
+ }
16554
+ return tmp;
16555
+ }
16556
+ function stringLiteral($this, $receiver) {
16557
+ var tmp0_safe_receiver = $receiver instanceof Literal ? $receiver : null;
16558
+ var tmp;
16559
+ if (tmp0_safe_receiver == null) {
16560
+ tmp = null;
16561
+ } else {
16562
+ // Inline function 'kotlin.takeIf' call
16563
+ var tmp_0;
16564
+ var tmp_1 = tmp0_safe_receiver.wy_1;
16565
+ if (tmp_1 instanceof String_0) {
16566
+ tmp_0 = tmp0_safe_receiver;
16567
+ } else {
16568
+ tmp_0 = null;
16569
+ }
16570
+ tmp = tmp_0;
16571
+ }
16572
+ var tmp1_safe_receiver = tmp;
16573
+ var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.vy_1;
16574
+ return tmp2_safe_receiver == null ? null : toString(tmp2_safe_receiver);
16746
16575
  }
16747
16576
  function emit_73($this, $receiver) {
16748
16577
  var tmp0_subject = $receiver.wy_1;
@@ -16750,261 +16579,138 @@ function emit_73($this, $receiver) {
16750
16579
  if (tmp0_subject instanceof String_0) {
16751
16580
  tmp = 'String::from("' + escapeStringLiteral(toString($receiver.vy_1), _Char___init__impl__6a9atx(34), charArrayOf([])) + '")';
16752
16581
  } else {
16753
- if (tmp0_subject instanceof Number_0) {
16754
- var tmp_0 = toString($receiver.vy_1);
16755
- var tmp_1;
16756
- switch ($receiver.wy_1.lu_1.f3_1) {
16757
- case 0:
16758
- tmp_1 = 'f32';
16759
- break;
16760
- case 1:
16761
- tmp_1 = 'f64';
16762
- break;
16763
- default:
16764
- noWhenBranchMatchedException();
16765
- break;
16766
- }
16767
- tmp = tmp_0 + '_' + tmp_1;
16582
+ var tmp_0;
16583
+ if (tmp0_subject instanceof Integer) {
16584
+ tmp_0 = true;
16768
16585
  } else {
16769
- if (tmp0_subject instanceof Integer) {
16770
- var tmp_2 = toString($receiver.vy_1);
16771
- var tmp_3;
16772
- switch ($receiver.wy_1.ku_1.f3_1) {
16773
- case 0:
16774
- tmp_3 = 'i32';
16775
- break;
16776
- case 1:
16777
- tmp_3 = 'i64';
16778
- break;
16779
- default:
16780
- noWhenBranchMatchedException();
16781
- break;
16782
- }
16783
- tmp = tmp_2 + '_' + tmp_3;
16784
- } else {
16785
- if (equals(tmp0_subject, Boolean_instance)) {
16786
- tmp = toString($receiver.vy_1);
16787
- } else {
16788
- tmp = toString($receiver.vy_1);
16789
- }
16790
- }
16586
+ tmp_0 = tmp0_subject instanceof Number_0;
16587
+ }
16588
+ if (tmp_0) {
16589
+ tmp = toString($receiver.vy_1) + '_' + emit_69($this, $receiver.wy_1);
16590
+ } else {
16591
+ tmp = toString($receiver.vy_1);
16791
16592
  }
16792
16593
  }
16793
16594
  return tmp;
16794
16595
  }
16795
16596
  function RustGenerator$emit$lambda($indent) {
16796
16597
  return function (it) {
16797
- return emit_57(RustGenerator_getInstance(), it, $indent);
16598
+ return emit_58(RustGenerator_getInstance(), it, $indent);
16798
16599
  };
16799
16600
  }
16800
- function RustGenerator$emit$lambda_0($indent) {
16801
- return function (it) {
16802
- return emit_57(RustGenerator_getInstance(), it, $indent);
16803
- };
16601
+ function RustGenerator$emitBody$lambda(it) {
16602
+ return emit_70(RustGenerator_getInstance(), it, 1);
16804
16603
  }
16805
- function RustGenerator$emit$lambda_1($indent, $parents, $isStaticScope) {
16806
- return function (it) {
16807
- return emit_57(RustGenerator_getInstance(), it, $indent, $parents, $isStaticScope);
16808
- };
16604
+ function RustGenerator$emit$lambda_0(it) {
16605
+ return emit_69(RustGenerator_getInstance(), it);
16606
+ }
16607
+ function RustGenerator$emit$lambda_1(it) {
16608
+ return indentCode_2(RustGenerator_getInstance(), 'fn ' + sanitize_1(it.aw_1.eu()) + '(&self) -> ' + emit_69(RustGenerator_getInstance(), it.bw_1) + ';\n', 1);
16809
16609
  }
16810
16610
  function RustGenerator$emit$lambda_2(it) {
16811
- return emit_69(RustGenerator_getInstance(), it, 1);
16611
+ return indentCode_2(RustGenerator_getInstance(), it.ru_1.du() + '(' + it.ru_1.du() + '),\n', 1);
16612
+ }
16613
+ function RustGenerator$emit$lambda_3(it) {
16614
+ return indentCode_2(RustGenerator_getInstance(), it.sw_1.bu() + ',\n', 1);
16812
16615
  }
16813
- function RustGenerator$emit$lambda_3($indent, $parents, $isStaticScope) {
16616
+ function RustGenerator$emit$lambda_4($rustName) {
16814
16617
  return function (it) {
16815
- return emit_57(RustGenerator_getInstance(), it, $indent, $parents, $isStaticScope);
16618
+ return indentCode_2(RustGenerator_getInstance(), $rustName + '::' + it.sw_1.bu() + ' => "' + wireValue(RustGenerator_getInstance(), it) + '",', 3);
16816
16619
  };
16817
16620
  }
16818
- function RustGenerator$emit$lambda_4($parents, $this_emit, $hasComplexElements) {
16621
+ function RustGenerator$emit$lambda_5($rustName) {
16819
16622
  return function (it) {
16820
- return emit_57(RustGenerator_getInstance(), it, 1, plus($parents, $this_emit), !$hasComplexElements);
16623
+ return indentCode_2(RustGenerator_getInstance(), '"' + wireValue(RustGenerator_getInstance(), it) + '" => Some(' + $rustName + '::' + it.sw_1.bu() + '),', 3);
16821
16624
  };
16822
16625
  }
16823
- function RustGenerator$emit$lambda_5(it) {
16824
- return emit_67(RustGenerator_getInstance(), it);
16825
- }
16826
16626
  function RustGenerator$emit$lambda_6(it) {
16827
- return emit_68(RustGenerator_getInstance(), it);
16627
+ return indentCode_2(RustGenerator_getInstance(), 'pub ' + sanitize_1(it.aw_1.eu()) + ': ' + emit_69(RustGenerator_getInstance(), it.bw_1) + ',\n', 1);
16828
16628
  }
16829
- function RustGenerator$emit$lambda_7(field) {
16830
- return indentCode_2(RustGenerator_getInstance(), 'fn ' + sanitize_1(field.aw_1.eu()) + '(&self) -> ' + emit_68(RustGenerator_getInstance(), field.bw_1) + ';\n', 1);
16629
+ function RustGenerator$emit$lambda_7(it) {
16630
+ return emit_69(RustGenerator_getInstance(), it.zz_1);
16831
16631
  }
16832
- function RustGenerator$emit$lambda_8($parents, $this_emit) {
16632
+ function RustGenerator$emit$lambda_8($rustName, $fields) {
16833
16633
  return function (it) {
16834
- return emit_57(RustGenerator_getInstance(), it, 1, plus($parents, $this_emit), false);
16634
+ return emit_65(RustGenerator_getInstance(), it, $rustName, $fields);
16835
16635
  };
16836
16636
  }
16837
16637
  function RustGenerator$emit$lambda_9(it) {
16838
- return emit_67(RustGenerator_getInstance(), it);
16638
+ return emit_58(RustGenerator_getInstance(), it, 1);
16839
16639
  }
16840
16640
  function RustGenerator$emit$lambda_10(it) {
16841
- return indentCode_2(RustGenerator_getInstance(), it.ru_1.du() + '(' + it.ru_1.du() + '),', 1);
16842
- }
16843
- function RustGenerator$emit$lambda_11(entry) {
16844
- return indentCode_2(RustGenerator_getInstance(), entry.sw_1.bu() + ',', 1);
16845
- }
16846
- function emit$wireValue(_this__u8e3s4) {
16847
- var tmp;
16848
- // Inline function 'kotlin.collections.isNotEmpty' call
16849
- if (!_this__u8e3s4.tw_1.r()) {
16850
- tmp = removeSurrounding(first(_this__u8e3s4.tw_1), '"');
16851
- } else {
16852
- tmp = _this__u8e3s4.sw_1.bu();
16853
- }
16854
- return tmp;
16641
+ return sanitize_1(it.oz_1.eu()) + ': ' + emit_69(RustGenerator_getInstance(), it.pz_1);
16855
16642
  }
16856
- function RustGenerator$emit$lambda_12($rustName) {
16857
- return function (entry) {
16858
- return indentCode_2(RustGenerator_getInstance(), $rustName + '::' + entry.sw_1.bu() + ' => "' + emit$wireValue(entry) + '",', 3);
16643
+ function RustGenerator$emit$lambda_11($values) {
16644
+ return function (it) {
16645
+ var tmp = sanitize_1(it.aw_1.eu());
16646
+ var tmp0_elvis_lhs = $values.t2(it.aw_1.bu());
16647
+ return tmp + ': ' + (tmp0_elvis_lhs == null ? 'Default::default()' : tmp0_elvis_lhs);
16859
16648
  };
16860
16649
  }
16861
- function RustGenerator$emit$lambda_13($rustName) {
16862
- return function (entry) {
16863
- return indentCode_2(RustGenerator_getInstance(), '"' + emit$wireValue(entry) + '" => Some(' + $rustName + '::' + entry.sw_1.bu() + '),', 3);
16864
- };
16650
+ function RustGenerator$emit$lambda_12(it) {
16651
+ return get_selfReceivers().i1(it.oz_1.bu()) ? it.oz_1.bu() : sanitize_1(it.oz_1.eu()) + ': ' + emit_69(RustGenerator_getInstance(), it.pz_1);
16652
+ }
16653
+ function RustGenerator$emit$lambda_13(it) {
16654
+ return emit_68(RustGenerator_getInstance(), it);
16865
16655
  }
16866
16656
  function RustGenerator$emit$lambda_14(it) {
16867
- return emit_68(RustGenerator_getInstance(), it.zz_1);
16657
+ return emit_69(RustGenerator_getInstance(), it);
16868
16658
  }
16869
- function RustGenerator$emit$lambda_15($indent, $parents, $this_emit) {
16870
- return function (it) {
16871
- return emit_57(RustGenerator_getInstance(), it, $indent, plus($parents, $this_emit), false);
16872
- };
16659
+ function RustGenerator$emit$lambda_15(it) {
16660
+ return emit_69(RustGenerator_getInstance(), it);
16873
16661
  }
16874
16662
  function RustGenerator$emit$lambda_16(it) {
16875
- return emit_66(RustGenerator_getInstance(), it, 1, false);
16663
+ return emit_69(RustGenerator_getInstance(), it);
16876
16664
  }
16877
- function RustGenerator$emit$lambda_17(it) {
16878
- var fieldName = sanitize_1(it.aw_1.eu());
16879
- return indentCode_2(RustGenerator_getInstance(), 'pub ' + fieldName + ': ' + emit_68(RustGenerator_getInstance(), it.bw_1) + ',', 1);
16665
+ function RustGenerator$emitMatch$lambda(_destruct__k2r9zo) {
16666
+ var pattern = _destruct__k2r9zo.af();
16667
+ var body = _destruct__k2r9zo.bf();
16668
+ return pattern + ' => {\n' + emitBody(RustGenerator_getInstance(), body) + '}\n';
16880
16669
  }
16881
- function RustGenerator$emit$lambda_18($rustName, $fields, $indent) {
16882
- return function (it) {
16883
- return emit_65(RustGenerator_getInstance(), it, $rustName, $fields, $indent);
16884
- };
16670
+ function RustGenerator$emit$lambda_17(_destruct__k2r9zo) {
16671
+ // Inline function 'kotlin.collections.component1' call
16672
+ var name = _destruct__k2r9zo.n1();
16673
+ // Inline function 'kotlin.collections.component2' call
16674
+ var value = _destruct__k2r9zo.o1();
16675
+ return sanitize_1(name.eu()) + ': ' + emit_72(RustGenerator_getInstance(), value);
16885
16676
  }
16886
- function RustGenerator$emit$lambda_19(it) {
16887
- return sanitize_1(it.oz_1.eu()) + ': ' + emit_68(RustGenerator_getInstance(), it.pz_1);
16677
+ function RustGenerator$emit$lambda_18(it) {
16678
+ return emit_72(RustGenerator_getInstance(), it);
16888
16679
  }
16889
- function RustGenerator$emit$lambda_20($assignments) {
16890
- return function (field) {
16891
- var tmp0_elvis_lhs = $assignments.t2(field.aw_1.bu());
16892
- var value = tmp0_elvis_lhs == null ? 'Default::default()' : tmp0_elvis_lhs;
16893
- return indentCode_2(RustGenerator_getInstance(), sanitize_1(field.aw_1.eu()) + ': ' + value, 1);
16680
+ function RustGenerator$emit$lambda_19($this_emit) {
16681
+ return function (_destruct__k2r9zo) {
16682
+ // Inline function 'kotlin.collections.component1' call
16683
+ var key = _destruct__k2r9zo.n1();
16684
+ // Inline function 'kotlin.collections.component2' call
16685
+ var value = _destruct__k2r9zo.o1();
16686
+ return '(' + emit_73(RustGenerator_getInstance(), new Literal(key, $this_emit.s10_1)) + ', ' + emit_72(RustGenerator_getInstance(), value) + ')';
16894
16687
  };
16895
16688
  }
16896
- function RustGenerator$emit$lambda_21(it) {
16897
- var paramName = it.oz_1.bu();
16898
- switch (paramName) {
16899
- case 'self':
16900
- case '&self':
16901
- return paramName;
16902
- default:
16903
- return sanitize_1(it.oz_1.eu()) + ': ' + emit_68(RustGenerator_getInstance(), it.pz_1);
16904
- }
16905
- }
16906
- function RustGenerator$emit$lambda_22(it) {
16907
- return emit_67(RustGenerator_getInstance(), it);
16908
- }
16909
- function RustGenerator$emit$lambda_23(it) {
16910
- return emit_69(RustGenerator_getInstance(), it, 1);
16911
- }
16912
- function RustGenerator$emit$lambda_24(it) {
16913
- return emit_68(RustGenerator_getInstance(), it);
16914
- }
16915
- function RustGenerator$emit$lambda_25(it) {
16916
- return emit_68(RustGenerator_getInstance(), it);
16917
- }
16918
- function RustGenerator$emit$lambda_26(it) {
16919
- return emit_68(RustGenerator_getInstance(), it);
16689
+ function RustGenerator$emit$lambda_20(it) {
16690
+ return emit_72(RustGenerator_getInstance(), it);
16920
16691
  }
16921
- function emitErrorMessage$flattenPlus(expr) {
16922
- var tmp;
16923
- var tmp_0;
16924
- if (expr instanceof BinaryOp) {
16925
- tmp_0 = expr.vz_1.equals(Operator_PLUS_getInstance());
16926
- } else {
16927
- tmp_0 = false;
16928
- }
16929
- if (tmp_0) {
16930
- tmp = plus_0(emitErrorMessage$flattenPlus(expr.uz_1), emitErrorMessage$flattenPlus(expr.wz_1));
16931
- } else {
16932
- tmp = listOf_0(expr);
16933
- }
16934
- return tmp;
16692
+ function RustGenerator$emit$lambda_21(it) {
16693
+ return emit_72(RustGenerator_getInstance(), it) + '.as_slice()';
16935
16694
  }
16936
- function RustGenerator$emitErrorMessage$lambda(it) {
16695
+ function RustGenerator$emit$lambda_22(part) {
16937
16696
  var tmp;
16938
- var tmp_0;
16939
- if (it instanceof Literal) {
16940
- var tmp_1 = it.wy_1;
16941
- tmp_0 = tmp_1 instanceof String_0;
16942
- } else {
16943
- tmp_0 = false;
16944
- }
16945
- if (tmp_0) {
16946
- tmp = toString(it.vy_1);
16697
+ if (part instanceof Text) {
16698
+ tmp = part.g13_1;
16947
16699
  } else {
16948
- tmp = '{}';
16700
+ if (part instanceof Expr) {
16701
+ tmp = '{}';
16702
+ } else {
16703
+ noWhenBranchMatchedException();
16704
+ }
16949
16705
  }
16950
16706
  return tmp;
16951
16707
  }
16952
- function RustGenerator$emit$lambda_27(it) {
16953
- return indentCode_2(RustGenerator_getInstance(), it, 1);
16954
- }
16955
- function RustGenerator$emit$lambda$lambda(it) {
16956
- return emit_69(RustGenerator_getInstance(), it, 1);
16957
- }
16958
- function RustGenerator$emit$lambda_28($this_emit) {
16959
- return function (case_0) {
16960
- var bodyStr = joinToString(case_0.gz_1, '', VOID, VOID, VOID, VOID, RustGenerator$emit$lambda$lambda);
16961
- var tmp0_safe_receiver = case_0.hz_1;
16962
- var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : emit_68(RustGenerator_getInstance(), tmp0_safe_receiver);
16963
- var typeStr = tmp1_elvis_lhs == null ? '_' : tmp1_elvis_lhs;
16964
- var tmp2_safe_receiver = $this_emit.cz_1;
16965
- var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.eu();
16966
- var varBinding = tmp3_elvis_lhs == null ? '_' : tmp3_elvis_lhs;
16967
- return indentCode_2(RustGenerator_getInstance(), typeStr + '(' + varBinding + ') => {\n' + bodyStr + '}\n', 1);
16968
- };
16969
- }
16970
- function RustGenerator$emit$lambda_29(case_0) {
16971
- var bodyStr = joinToString(case_0.gz_1, '', VOID, VOID, VOID, VOID, RustGenerator$emit$lambda$lambda_0);
16972
- return indentCode_2(RustGenerator_getInstance(), emit_70(RustGenerator_getInstance(), case_0.fz_1) + ' => {\n' + bodyStr + '}\n', 1);
16973
- }
16974
- function RustGenerator$emit$lambda$lambda_0(it) {
16975
- return emit_69(RustGenerator_getInstance(), it, 1);
16976
- }
16977
- function RustGenerator$emit$lambda_30(stmt) {
16978
- return emit_69(RustGenerator_getInstance(), stmt, 1);
16979
- }
16980
- function RustGenerator$emit$lambda_31(it) {
16981
- return emit_70(RustGenerator_getInstance(), it);
16982
- }
16983
- function RustGenerator$emit$lambda_32(it) {
16984
- return emit_70(RustGenerator_getInstance(), it);
16985
- }
16986
- function RustGenerator$emit$lambda_33(it) {
16987
- return emit_70(RustGenerator_getInstance(), it);
16988
- }
16989
- function RustGenerator$emit$lambda_34(it) {
16990
- return emit_70(RustGenerator_getInstance(), it);
16991
- }
16992
- function RustGenerator$emit$lambda_35(it) {
16993
- return emit_70(RustGenerator_getInstance(), it) + '.as_slice()';
16994
- }
16995
- function RustGenerator$emit$lambda_36(it) {
16996
- return it.gf_1;
16997
- }
16998
- function RustGenerator$emit$lambda_37(it) {
16708
+ function RustGenerator$emit$lambda_23(it) {
16999
16709
  return sanitize_1(it.oz_1.eu());
17000
16710
  }
17001
- function RustGenerator$emit$lambda_38(it) {
17002
- return emit_70(RustGenerator_getInstance(), it);
17003
- }
17004
- function RustGenerator$emit$lambda_39($this_emit) {
17005
- return function (it) {
17006
- return '(' + emit_73(RustGenerator_getInstance(), new Literal(it.n1(), $this_emit.s10_1)) + ', ' + emit_70(RustGenerator_getInstance(), it.o1()) + ')';
17007
- };
16711
+ function RustGenerator$emitFormatArguments$lambda(it) {
16712
+ var tmp0_elvis_lhs = stringLiteral(RustGenerator_getInstance(), it);
16713
+ return tmp0_elvis_lhs == null ? '{}' : tmp0_elvis_lhs;
17008
16714
  }
17009
16715
  function RustGenerator() {
17010
16716
  RustGenerator_instance = this;
@@ -17013,11 +16719,11 @@ function RustGenerator() {
17013
16719
  protoOf(RustGenerator).m1b = function (element) {
17014
16720
  var tmp;
17015
16721
  if (element instanceof File) {
17016
- tmp = emit_56(this, element, 0);
16722
+ tmp = element;
17017
16723
  } else {
17018
- tmp = emit_56(this, new File(Companion_getInstance_4().au(''), listOf_0(element)), 0);
16724
+ tmp = new File(Companion_getInstance_4().au(''), listOf_0(element));
17019
16725
  }
17020
- return tmp;
16726
+ return emit_56(this, tmp);
17021
16727
  };
17022
16728
  var RustGenerator_instance;
17023
16729
  function RustGenerator_getInstance() {
@@ -17033,6 +16739,7 @@ var properties_initialized_RustGenerator_kt_e3i1pd;
17033
16739
  function _init_properties_RustGenerator_kt__i7ofh9() {
17034
16740
  if (!properties_initialized_RustGenerator_kt_e3i1pd) {
17035
16741
  properties_initialized_RustGenerator_kt_e3i1pd = true;
16742
+ selfReceivers = setOf(['self', '&self']);
17036
16743
  escapableKeywords = minus(RustGenerator_getInstance().r1c_1, setOf(['self', 'Self']));
17037
16744
  }
17038
16745
  }
@@ -17928,7 +17635,7 @@ function emitConstructorExpression($this, $receiver) {
17928
17635
  var args = tmp_0;
17929
17636
  return prefix + emitGenerics_1($this, $receiver.gu_1) + args;
17930
17637
  }
17931
- function emitMatch($this, $receiver, caseIndent) {
17638
+ function emitMatch_0($this, $receiver, caseIndent) {
17932
17639
  var tmp0 = $receiver.az_1;
17933
17640
  var tmp$ret$0;
17934
17641
  $l$block_0: {
@@ -18004,7 +17711,7 @@ function emit_86($this, $receiver, indent) {
18004
17711
  tmp = indentCode_3($this, 'assert(' + emit_87($this, $receiver.v10_1) + ', "' + $receiver.w10_1 + '")\n', indent);
18005
17712
  } else {
18006
17713
  if ($receiver instanceof Switch) {
18007
- tmp = indentCode_3($this, emitMatch($this, $receiver, indent + 1 | 0) + '\n', indent);
17714
+ tmp = indentCode_3($this, emitMatch_0($this, $receiver, indent + 1 | 0) + '\n', indent);
18008
17715
  } else {
18009
17716
  if ($receiver instanceof RawExpression) {
18010
17717
  tmp = indentCode_3($this, $receiver.gy_1 + '\n', indent);
@@ -18025,7 +17732,7 @@ function emit_86($this, $receiver, indent) {
18025
17732
  tmp = indentCode_3($this, emit_87($this, $receiver) + '\n', indent);
18026
17733
  } else {
18027
17734
  if ($receiver instanceof ArrayIndexCall) {
18028
- tmp = indentCode_3($this, emitArrayIndex_0($this, $receiver) + '\n', indent);
17735
+ tmp = indentCode_3($this, emitArrayIndex($this, $receiver) + '\n', indent);
18029
17736
  } else {
18030
17737
  if ($receiver instanceof EnumReference) {
18031
17738
  tmp = indentCode_3($this, emit_87($this, $receiver) + '\n', indent);
@@ -18193,7 +17900,7 @@ function emit_87($this, $receiver) {
18193
17900
  tmp = receiverStr_0 + sanitize_2($receiver.qy_1.bu()) + typeArgsStr + '(' + args + ')';
18194
17901
  } else {
18195
17902
  if ($receiver instanceof ArrayIndexCall) {
18196
- tmp = emitArrayIndex_0($this, $receiver);
17903
+ tmp = emitArrayIndex($this, $receiver);
18197
17904
  } else {
18198
17905
  if ($receiver instanceof EnumReference) {
18199
17906
  tmp = emitGenerics_1($this, $receiver.k11_1) + '.' + $receiver.l11_1.bu();
@@ -18274,7 +17981,7 @@ function emit_87($this, $receiver) {
18274
17981
  throw IllegalArgumentException_init_$Create$('AssertStatement cannot be an expression in Scala');
18275
17982
  } else {
18276
17983
  if ($receiver instanceof Switch) {
18277
- tmp = emitMatch($this, $receiver, 1);
17984
+ tmp = emitMatch_0($this, $receiver, 1);
18278
17985
  } else {
18279
17986
  if ($receiver instanceof Assignment) {
18280
17987
  throw IllegalArgumentException_init_$Create$('Assignment cannot be an expression in Scala');
@@ -18385,7 +18092,7 @@ function emit_90($this, $receiver) {
18385
18092
  }
18386
18093
  return tmp;
18387
18094
  }
18388
- function emitArrayIndex_0($this, $receiver) {
18095
+ function emitArrayIndex($this, $receiver) {
18389
18096
  var tmp;
18390
18097
  var tmp_0 = $receiver.c10_1;
18391
18098
  if (tmp_0 instanceof Literal) {
@@ -18620,7 +18327,7 @@ function ScalaGenerator$emitMatch$lambda($isPatternSwitch, $this_emitMatch, $cas
18620
18327
  var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.cu();
18621
18328
  var varName = tmp1_elvis_lhs == null ? '_' : tmp1_elvis_lhs;
18622
18329
  var tmp2_safe_receiver = case_0.hz_1;
18623
- var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : emitGenerics_1(ScalaGenerator_getInstance(), tmp2_safe_receiver);
18330
+ var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : emitTypeAnnotation(ScalaGenerator_getInstance(), tmp2_safe_receiver);
18624
18331
  tmp = 'case ' + varName + ': ' + (tmp3_elvis_lhs == null ? 'Any' : tmp3_elvis_lhs);
18625
18332
  } else {
18626
18333
  tmp = 'case ' + emit_87(ScalaGenerator_getInstance(), case_0.fz_1);
@@ -20595,7 +20302,7 @@ function toGetterAccessors$lambda_0($renameFunction) {
20595
20302
  tmp = element;
20596
20303
  }
20597
20304
  var transformed = tmp;
20598
- return transformChildren_2(transformed, transformer);
20305
+ return transformChildren_1(transformed, transformer);
20599
20306
  };
20600
20307
  }
20601
20308
  function SanitizationConfig(reservedKeywords, escapeKeyword, fieldNameCase, parameterNameCase, sanitizeSymbol, extraStatementTransforms, escapeFieldKeywords) {
@@ -20857,7 +20564,7 @@ function ensureEmptyStructHasConstructor$lambda(element, transformer) {
20857
20564
  tmp = element;
20858
20565
  }
20859
20566
  var transformed = tmp;
20860
- return transformChildren_2(transformed, transformer);
20567
+ return transformChildren_1(transformed, transformer);
20861
20568
  }
20862
20569
  function sanitizeEnumDefaults$lambda($sanitizeEntry) {
20863
20570
  return function (field) {
@@ -20891,7 +20598,7 @@ function injectEnumLabelField$lambda_0($sanitizeEntry, $extraElements) {
20891
20598
  tmp = element;
20892
20599
  }
20893
20600
  var transformed = tmp;
20894
- return transformChildren_2(transformed, transformer);
20601
+ return transformChildren_1(transformed, transformer);
20895
20602
  };
20896
20603
  }
20897
20604
  function sanitizeEnumEntries$lambda($sanitizeEntry) {
@@ -20913,7 +20620,7 @@ function sanitizeEnumEntries$lambda($sanitizeEntry) {
20913
20620
  tmp = element;
20914
20621
  }
20915
20622
  var transformed = tmp;
20916
- return transformChildren_2(transformed, transformer);
20623
+ return transformChildren_1(transformed, transformer);
20917
20624
  };
20918
20625
  }
20919
20626
  function AnnotationParser() {
@@ -31805,34 +31512,6 @@ protoOf(StructBuilder).h17 = nullable;
31805
31512
  protoOf(StructBuilder).f15 = functionType;
31806
31513
  protoOf(StructBuilder).g15 = functionType$default;
31807
31514
  protoOf(StructBuilder).h15 = rawExpr;
31808
- protoOf(InterfaceBuilder).f16 = import_0;
31809
- protoOf(InterfaceBuilder).g16 = import$default;
31810
- protoOf(InterfaceBuilder).h16 = property;
31811
- protoOf(InterfaceBuilder).i16 = property$default;
31812
- protoOf(InterfaceBuilder).j16 = function_0;
31813
- protoOf(InterfaceBuilder).k16 = function$default;
31814
- protoOf(InterfaceBuilder).l16 = function_1;
31815
- protoOf(InterfaceBuilder).m16 = function$default_0;
31816
- protoOf(InterfaceBuilder).n16 = asyncFunction;
31817
- protoOf(InterfaceBuilder).o16 = asyncFunction$default;
31818
- protoOf(InterfaceBuilder).p16 = asyncFunction_0;
31819
- protoOf(InterfaceBuilder).q16 = asyncFunction$default_0;
31820
- protoOf(InterfaceBuilder).r16 = namespace;
31821
- protoOf(InterfaceBuilder).s16 = namespace$default;
31822
- protoOf(InterfaceBuilder).t16 = namespace_0;
31823
- protoOf(InterfaceBuilder).u16 = namespace$default_0;
31824
- protoOf(InterfaceBuilder).v16 = interface_0;
31825
- protoOf(InterfaceBuilder).w16 = interface$default;
31826
- protoOf(InterfaceBuilder).x16 = union_0;
31827
- protoOf(InterfaceBuilder).y16 = union$default;
31828
- protoOf(InterfaceBuilder).z16 = enum_0;
31829
- protoOf(InterfaceBuilder).a17 = enum$default;
31830
- protoOf(InterfaceBuilder).b17 = get_integer;
31831
- protoOf(InterfaceBuilder).c17 = get_integer32;
31832
- protoOf(InterfaceBuilder).x14 = get_string;
31833
- protoOf(InterfaceBuilder).e15 = type;
31834
- protoOf(InterfaceBuilder).f15 = functionType;
31835
- protoOf(InterfaceBuilder).g15 = functionType$default;
31836
31515
  protoOf(FileBuilder).k16 = function$default;
31837
31516
  protoOf(FileBuilder).m16 = function$default_0;
31838
31517
  protoOf(FileBuilder).o16 = asyncFunction$default;
@@ -31842,7 +31521,7 @@ protoOf(FileBuilder).g16 = import$default;
31842
31521
  protoOf(FileBuilder).w14 = raw;
31843
31522
  protoOf(FileBuilder).h16 = property;
31844
31523
  protoOf(FileBuilder).i16 = property$default;
31845
- protoOf(FileBuilder).u17 = struct_0;
31524
+ protoOf(FileBuilder).s17 = struct_0;
31846
31525
  protoOf(FileBuilder).r16 = namespace;
31847
31526
  protoOf(FileBuilder).s16 = namespace$default;
31848
31527
  protoOf(FileBuilder).t16 = namespace_0;
@@ -31853,7 +31532,7 @@ protoOf(FileBuilder).x16 = union_0;
31853
31532
  protoOf(FileBuilder).y16 = union$default;
31854
31533
  protoOf(FileBuilder).z16 = enum_0;
31855
31534
  protoOf(FileBuilder).a17 = enum$default;
31856
- protoOf(FileBuilder).v17 = enum_1;
31535
+ protoOf(FileBuilder).t17 = enum_1;
31857
31536
  protoOf(FileBuilder).e15 = type;
31858
31537
  protoOf(FileBuilder).f15 = functionType;
31859
31538
  protoOf(FileBuilder).g15 = functionType$default;
@@ -31862,7 +31541,7 @@ protoOf(NamespaceBuilder).g16 = import$default;
31862
31541
  protoOf(NamespaceBuilder).w14 = raw;
31863
31542
  protoOf(NamespaceBuilder).h16 = property;
31864
31543
  protoOf(NamespaceBuilder).i16 = property$default;
31865
- protoOf(NamespaceBuilder).t17 = struct;
31544
+ protoOf(NamespaceBuilder).r17 = struct;
31866
31545
  protoOf(NamespaceBuilder).j16 = function_0;
31867
31546
  protoOf(NamespaceBuilder).k16 = function$default;
31868
31547
  protoOf(NamespaceBuilder).l16 = function_1;
@@ -31877,7 +31556,7 @@ protoOf(NamespaceBuilder).t16 = namespace_0;
31877
31556
  protoOf(NamespaceBuilder).u16 = namespace$default_0;
31878
31557
  protoOf(NamespaceBuilder).v16 = interface_0;
31879
31558
  protoOf(NamespaceBuilder).w16 = interface$default;
31880
- protoOf(NamespaceBuilder).z17 = union;
31559
+ protoOf(NamespaceBuilder).x17 = union;
31881
31560
  protoOf(NamespaceBuilder).x16 = union_0;
31882
31561
  protoOf(NamespaceBuilder).y16 = union$default;
31883
31562
  protoOf(NamespaceBuilder).z16 = enum_0;
@@ -31895,7 +31574,34 @@ protoOf(FunctionCallBuilder).g15 = functionType$default;
31895
31574
  protoOf(SwitchBuilder).e15 = type;
31896
31575
  protoOf(SwitchBuilder).f15 = functionType;
31897
31576
  protoOf(SwitchBuilder).g15 = functionType$default;
31898
- protoOf(SwitchBuilder).b18 = literal_0;
31577
+ protoOf(SwitchBuilder).z17 = literal_0;
31578
+ protoOf(InterfaceBuilder).f16 = import_0;
31579
+ protoOf(InterfaceBuilder).g16 = import$default;
31580
+ protoOf(InterfaceBuilder).h16 = property;
31581
+ protoOf(InterfaceBuilder).i16 = property$default;
31582
+ protoOf(InterfaceBuilder).j16 = function_0;
31583
+ protoOf(InterfaceBuilder).k16 = function$default;
31584
+ protoOf(InterfaceBuilder).l16 = function_1;
31585
+ protoOf(InterfaceBuilder).m16 = function$default_0;
31586
+ protoOf(InterfaceBuilder).n16 = asyncFunction;
31587
+ protoOf(InterfaceBuilder).o16 = asyncFunction$default;
31588
+ protoOf(InterfaceBuilder).p16 = asyncFunction_0;
31589
+ protoOf(InterfaceBuilder).q16 = asyncFunction$default_0;
31590
+ protoOf(InterfaceBuilder).r16 = namespace;
31591
+ protoOf(InterfaceBuilder).s16 = namespace$default;
31592
+ protoOf(InterfaceBuilder).t16 = namespace_0;
31593
+ protoOf(InterfaceBuilder).u16 = namespace$default_0;
31594
+ protoOf(InterfaceBuilder).v16 = interface_0;
31595
+ protoOf(InterfaceBuilder).w16 = interface$default;
31596
+ protoOf(InterfaceBuilder).x16 = union_0;
31597
+ protoOf(InterfaceBuilder).y16 = union$default;
31598
+ protoOf(InterfaceBuilder).z16 = enum_0;
31599
+ protoOf(InterfaceBuilder).a17 = enum$default;
31600
+ protoOf(InterfaceBuilder).b17 = get_integer;
31601
+ protoOf(InterfaceBuilder).x14 = get_string;
31602
+ protoOf(InterfaceBuilder).e15 = type;
31603
+ protoOf(InterfaceBuilder).f15 = functionType;
31604
+ protoOf(InterfaceBuilder).g15 = functionType$default;
31899
31605
  protoOf(CaseBuilder).e15 = type;
31900
31606
  protoOf(CaseBuilder).f15 = functionType;
31901
31607
  protoOf(CaseBuilder).g15 = functionType$default;
@@ -32083,7 +31789,6 @@ export {
32083
31789
  FunctionCall as FunctionCall1a3g4e6bcljl6,
32084
31790
  Function_0 as Function1wme41sk2huri,
32085
31791
  HasName as HasName33ghsv8lnn7sd,
32086
- Import as Import5xihcpubhtyd,
32087
31792
  Interface as Interface2g99rmjjt5ne,
32088
31793
  Literal as Literal1ddgfbf7tp4wt,
32089
31794
  Main as Main3fexakddcxfff,
@@ -32100,7 +31805,6 @@ export {
32100
31805
  TransformScope as TransformScope3fhztkr2eyk36,
32101
31806
  TransformerBuilder as TransformerBuilder26pbjl5nmg6wa,
32102
31807
  Array_0 as Array2vay9bq78aua1,
32103
- Boolean_0 as Booleanz31i2i22ldw9,
32104
31808
  Custom as Custom1ct1lu66hij6o,
32105
31809
  Dict as Dict27tp4weviyg4b,
32106
31810
  Function as Function6mdi096lkwmv,
@@ -32125,8 +31829,9 @@ export {
32125
31829
  struct_1 as struct1gzvysjt73bn4,
32126
31830
  transformChildren as transformChildren34heehtlmzzif,
32127
31831
  transformChildren_0 as transformChildren21ucrga4lv4sn,
32128
- transformChildren_1 as transformChildrenfid5m1x7z1ur,
32129
- transformChildren_2 as transformChildren14suh59vxsgt,
31832
+ transformChildren_3 as transformChildrenfid5m1x7z1ur,
31833
+ transformChildren_2 as transformChildren2vo7pa38trabm,
31834
+ transformChildren_1 as transformChildren14suh59vxsgt,
32130
31835
  transform as transformhd96z3w1u5uc,
32131
31836
  Parameter_0 as Parameter2v8p72ovcf2np,
32132
31837
  Array_1 as Array3mbygx5cfsbdr,