@flock/wirespec 0.10.1 → 0.10.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -58,8 +58,8 @@
58
58
  var setOf = kotlin_kotlin.$_$.u7;
59
59
  var CliktCommand = kotlin_clikt_clikt.$_$.a;
60
60
  var default_0 = kotlin_clikt_clikt.$_$.e;
61
- var Companion_instance_1 = kotlin_community_flock_wirespec_compiler_core.$_$.e2;
62
- var Level_ERROR_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.w1;
61
+ var Companion_instance_1 = kotlin_community_flock_wirespec_compiler_core.$_$.f2;
62
+ var Level_ERROR_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.x1;
63
63
  var flag = kotlin_clikt_clikt.$_$.f;
64
64
  var Companion_instance_2 = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.w;
65
65
  var FullDirPath = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.d;
@@ -69,16 +69,16 @@
69
69
  var THROW_CCE = kotlin_kotlin.$_$.hf;
70
70
  var isCharSequence = kotlin_kotlin.$_$.ga;
71
71
  var trim = kotlin_kotlin.$_$.oe;
72
- var Level_DEBUG_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.v1;
73
- var Level_INFO_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.x1;
74
- var Level_WARN_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.y1;
72
+ var Level_DEBUG_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.w1;
73
+ var Level_INFO_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.y1;
74
+ var Level_WARN_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.z1;
75
75
  var Enum = kotlin_kotlin.$_$.xe;
76
76
  var KProperty1 = kotlin_kotlin.$_$.rb;
77
77
  var getPropertyCallableRef = kotlin_kotlin.$_$.t9;
78
78
  var numberRangeToNumber = kotlin_kotlin.$_$.qa;
79
79
  var ArrayList_init_$Create$ = kotlin_kotlin.$_$.l;
80
80
  var copyToArray = kotlin_kotlin.$_$.x5;
81
- var Logger = kotlin_community_flock_wirespec_compiler_core.$_$.h1;
81
+ var Logger = kotlin_community_flock_wirespec_compiler_core.$_$.i1;
82
82
  var noWhenBranchMatchedException = kotlin_kotlin.$_$.dg;
83
83
  var FileExtension_Wirespec_getInstance = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.o;
84
84
  var FullFilePath = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.e;
@@ -98,21 +98,22 @@
98
98
  var _FileName___init__impl__nzn12e = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.q;
99
99
  var print = kotlin_kotlin.$_$.d9;
100
100
  var PackageName = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.i;
101
- var component1 = kotlin_community_flock_wirespec_compiler_core.$_$.f1;
101
+ var component1 = kotlin_community_flock_wirespec_compiler_core.$_$.g1;
102
102
  var JavaEmitter = kotlin_community_flock_wirespec_compiler_core.$_$.b;
103
103
  var FileExtension_Java_getInstance = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.j;
104
- var KotlinEmitter = kotlin_community_flock_wirespec_compiler_core.$_$.c;
104
+ var JavaLegacyEmitter = kotlin_community_flock_wirespec_compiler_core.$_$.c;
105
+ var KotlinEmitter = kotlin_community_flock_wirespec_compiler_core.$_$.d;
105
106
  var FileExtension_Kotlin_getInstance = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.l;
106
- var KotlinLegacyEmitter = kotlin_community_flock_wirespec_compiler_core.$_$.d;
107
- var ScalaEmitter = kotlin_community_flock_wirespec_compiler_core.$_$.e;
107
+ var KotlinLegacyEmitter = kotlin_community_flock_wirespec_compiler_core.$_$.e;
108
+ var ScalaEmitter = kotlin_community_flock_wirespec_compiler_core.$_$.f;
108
109
  var FileExtension_Scala_getInstance = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.m;
109
- var TypeScriptEmitter = kotlin_community_flock_wirespec_compiler_core.$_$.f;
110
+ var TypeScriptEmitter = kotlin_community_flock_wirespec_compiler_core.$_$.g;
110
111
  var FileExtension_TypeScript_getInstance = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.n;
111
- var WirespecEmitter = kotlin_community_flock_wirespec_compiler_core.$_$.g;
112
- var WirespecSpec_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.d2;
113
- var compile = kotlin_community_flock_wirespec_compiler_core.$_$.e1;
112
+ var WirespecEmitter = kotlin_community_flock_wirespec_compiler_core.$_$.h;
113
+ var WirespecSpec_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.e2;
114
+ var compile = kotlin_community_flock_wirespec_compiler_core.$_$.f1;
114
115
  var Left = kotlin_io_arrow_kt_arrow_core.$_$.d;
115
- var Companion_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.b2;
116
+ var Companion_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.c2;
116
117
  var Right = kotlin_io_arrow_kt_arrow_core.$_$.e;
117
118
  var println = kotlin_kotlin.$_$.b9;
118
119
  var Output = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.h;
@@ -124,9 +125,9 @@
124
125
  var split = kotlin_kotlin.$_$.md;
125
126
  var joinToString = kotlin_kotlin.$_$.s6;
126
127
  var FileExtension_Json_getInstance = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.k;
127
- var parse = kotlin_community_flock_wirespec_compiler_core.$_$.g1;
128
- var get_noLogger = kotlin_community_flock_wirespec_compiler_core.$_$.i1;
129
- var Definition = kotlin_community_flock_wirespec_compiler_core.$_$.j;
128
+ var parse = kotlin_community_flock_wirespec_compiler_core.$_$.h1;
129
+ var get_noLogger = kotlin_community_flock_wirespec_compiler_core.$_$.j1;
130
+ var Definition = kotlin_community_flock_wirespec_compiler_core.$_$.k;
130
131
  var isInterface = kotlin_kotlin.$_$.ka;
131
132
  var produce = kotlin_community_flock_wirespec_compiler_lib.$_$.e;
132
133
  var endsWith = kotlin_kotlin.$_$.mc;
@@ -162,7 +163,7 @@
162
163
  //endregion
163
164
  function WirespecCli$main$ref($boundThis) {
164
165
  var l = function (p0) {
165
- $boundThis.s3u(p0);
166
+ $boundThis.z3u(p0);
166
167
  return Unit_instance;
167
168
  };
168
169
  l.callableName = 'main';
@@ -170,7 +171,7 @@
170
171
  }
171
172
  function Companion() {
172
173
  }
173
- protoOf(Companion).x46 = function (compile, convert) {
174
+ protoOf(Companion).e47 = function (compile, convert) {
174
175
  return WirespecCli$main$ref(subcommands(new WirespecCli(), [new Compile_0(compile), new Convert_0(convert)]));
175
176
  };
176
177
  var Companion_instance_4;
@@ -181,28 +182,28 @@
181
182
  NoOpCliktCommand.call(this, VOID, VOID, 'wirespec');
182
183
  }
183
184
  function _get_languages__ojonze($this) {
184
- return $this.x47_1.e44($this, languages$factory_0());
185
+ return $this.e48_1.l44($this, languages$factory_0());
185
186
  }
186
187
  function Compile_0(block) {
187
188
  CommonOptions.call(this);
188
- this.w47_1 = block;
189
- this.x47_1 = multiple(choice(option(this, Options_Language_getInstance().a48_1.slice(), 'Language'), Companion_instance.x2e()), VOID, true).p44(this, languages$factory());
189
+ this.d48_1 = block;
190
+ this.e48_1 = multiple(choice(option(this, Options_Language_getInstance().h48_1.slice(), 'Language'), Companion_instance.e2f()), VOID, true).w44(this, languages$factory());
190
191
  }
191
- protoOf(Compile_0).t3u = function () {
192
+ protoOf(Compile_0).a3v = function () {
192
193
  // Inline function 'kotlin.let' call
193
- var this_0 = new CompilerArguments(Compile_instance, this.a49(this.z48()), Companion_instance_0.y2e(this.b49()), toSet(_get_languages__ojonze(this)), _PackageName___init__impl__s13tbs(this.c49()), this.e49(this.d49()), this.f49(), this.g49());
194
+ var this_0 = new CompilerArguments(Compile_instance, this.h49(this.g49()), Companion_instance_0.f2f(this.i49()), toSet(_get_languages__ojonze(this)), _PackageName___init__impl__s13tbs(this.j49()), this.l49(this.k49()), this.m49(), this.n49());
194
195
  // Inline function 'kotlin.contracts.contract' call
195
- this.w47_1(this_0);
196
+ this.d48_1(this_0);
196
197
  };
197
198
  function _get_format__qlarck($this) {
198
- return $this.g4a_1.e44($this, format$factory_0());
199
+ return $this.n4a_1.l44($this, format$factory_0());
199
200
  }
200
201
  function _get_languages__ojonze_0($this) {
201
- return $this.h4a_1.e44($this, languages$factory_2());
202
+ return $this.o4a_1.l44($this, languages$factory_2());
202
203
  }
203
204
  function Convert_0(block) {
204
205
  CommonOptions.call(this);
205
- this.f4a_1 = block;
206
+ this.m4a_1 = block;
206
207
  var tmp = this;
207
208
  // Inline function 'com.github.ajalt.clikt.parameters.types.enum' call
208
209
  var this_0 = argument(this, VOID, 'Input format');
@@ -222,21 +223,21 @@
222
223
  var tmp$ret$2 = element.p2_1;
223
224
  destination.m2(tmp$ret$2, element);
224
225
  }
225
- tmp.g4a_1 = choice_0(this_0, destination, true).k43(this, format$factory());
226
- this.h4a_1 = multiple(choice(option(this, Options_Language_getInstance().a48_1.slice(), 'Language'), Companion_instance.x2e(), VOID, true), listOf(Language_Wirespec_getInstance())).p44(this, languages$factory_1());
226
+ tmp.n4a_1 = choice_0(this_0, destination, true).r43(this, format$factory());
227
+ this.o4a_1 = multiple(choice(option(this, Options_Language_getInstance().h48_1.slice(), 'Language'), Companion_instance.e2f(), VOID, true), listOf(Language_Wirespec_getInstance())).w44(this, languages$factory_1());
227
228
  }
228
- protoOf(Convert_0).t3u = function () {
229
- if (this.z48() == null)
229
+ protoOf(Convert_0).a3v = function () {
230
+ if (this.g49() == null)
230
231
  null;
231
232
  else {
232
233
  // Inline function 'kotlin.let' call
233
234
  // Inline function 'kotlin.contracts.contract' call
234
- this.m3u('To convert, please specify a file', VOID, true);
235
+ this.t3u('To convert, please specify a file', VOID, true);
235
236
  }
236
237
  // Inline function 'kotlin.let' call
237
238
  var tmp = new Convert(_get_format__qlarck(this));
238
- var tmp_0 = this.a49(null);
239
- var tmp_1 = Companion_instance_0.y2e(this.b49());
239
+ var tmp_0 = this.h49(null);
240
+ var tmp_1 = Companion_instance_0.f2f(this.i49());
240
241
  // Inline function 'kotlin.collections.ifEmpty' call
241
242
  var this_0 = toSet(_get_languages__ojonze_0(this));
242
243
  // Inline function 'kotlin.contracts.contract' call
@@ -248,42 +249,42 @@
248
249
  tmp_2 = this_0;
249
250
  }
250
251
  var tmp$ret$2 = tmp_2;
251
- var this_1 = new CompilerArguments(tmp, tmp_0, tmp_1, tmp$ret$2, _PackageName___init__impl__s13tbs(this.c49()), this.e49(this.d49()), this.f49(), this.g49());
252
+ var this_1 = new CompilerArguments(tmp, tmp_0, tmp_1, tmp$ret$2, _PackageName___init__impl__s13tbs(this.j49()), this.l49(this.k49()), this.m49(), this.n49());
252
253
  // Inline function 'kotlin.contracts.contract' call
253
- this.f4a_1(this_1);
254
+ this.m4a_1(this_1);
254
255
  };
255
256
  function _get_inputFile__x1bqj($this) {
256
- return $this.s48_1.e44($this, inputFile$factory_0());
257
+ return $this.z48_1.l44($this, inputFile$factory_0());
257
258
  }
258
259
  function CommonOptions() {
259
260
  CliktCommand.call(this);
260
- this.s48_1 = option(this, Options_InputFile_getInstance().a48_1.slice(), 'Input file').p44(this, inputFile$factory());
261
- this.t48_1 = option(this, Options_InputDir_getInstance().a48_1.slice(), 'Input directory').p44(this, inputDir$factory());
262
- this.u48_1 = option(this, Options_OutputDir_getInstance().a48_1.slice(), 'Output directory').p44(this, outputDir$factory());
263
- this.v48_1 = default_0(option(this, Options_PackageName_getInstance().a48_1.slice(), 'Package name'), 'community.flock.wirespec.generated').p44(this, packageName$factory());
264
- this.w48_1 = default_0(option(this, Options_LogLevel_getInstance().a48_1.slice(), 'Log level: ' + Companion_instance_1.toString()), Level_ERROR_getInstance().toString()).p44(this, logLevel$factory());
265
- this.x48_1 = flag(option(this, Options_Shared_getInstance().a48_1.slice(), 'Generate shared wirespec code'), [], false).p44(this, shared$factory());
266
- this.y48_1 = flag(option(this, Options_Strict_getInstance().a48_1.slice(), 'Strict mode'), []).p44(this, strict$factory());
267
- }
268
- protoOf(CommonOptions).z48 = function () {
269
- return this.t48_1.e44(this, inputDir$factory_0());
261
+ this.z48_1 = option(this, Options_InputFile_getInstance().h48_1.slice(), 'Input file').w44(this, inputFile$factory());
262
+ this.a49_1 = option(this, Options_InputDir_getInstance().h48_1.slice(), 'Input directory').w44(this, inputDir$factory());
263
+ this.b49_1 = option(this, Options_OutputDir_getInstance().h48_1.slice(), 'Output directory').w44(this, outputDir$factory());
264
+ this.c49_1 = default_0(option(this, Options_PackageName_getInstance().h48_1.slice(), 'Package name'), 'community.flock.wirespec.generated').w44(this, packageName$factory());
265
+ this.d49_1 = default_0(option(this, Options_LogLevel_getInstance().h48_1.slice(), 'Log level: ' + Companion_instance_1.toString()), Level_ERROR_getInstance().toString()).w44(this, logLevel$factory());
266
+ this.e49_1 = flag(option(this, Options_Shared_getInstance().h48_1.slice(), 'Generate shared wirespec code'), [], false).w44(this, shared$factory());
267
+ this.f49_1 = flag(option(this, Options_Strict_getInstance().h48_1.slice(), 'Strict mode'), []).w44(this, strict$factory());
268
+ }
269
+ protoOf(CommonOptions).g49 = function () {
270
+ return this.a49_1.l44(this, inputDir$factory_0());
270
271
  };
271
- protoOf(CommonOptions).b49 = function () {
272
- return this.u48_1.e44(this, outputDir$factory_0());
272
+ protoOf(CommonOptions).i49 = function () {
273
+ return this.b49_1.l44(this, outputDir$factory_0());
273
274
  };
274
- protoOf(CommonOptions).c49 = function () {
275
- return this.v48_1.e44(this, packageName$factory_0());
275
+ protoOf(CommonOptions).j49 = function () {
276
+ return this.c49_1.l44(this, packageName$factory_0());
276
277
  };
277
- protoOf(CommonOptions).d49 = function () {
278
- return this.w48_1.e44(this, logLevel$factory_0());
278
+ protoOf(CommonOptions).k49 = function () {
279
+ return this.d49_1.l44(this, logLevel$factory_0());
279
280
  };
280
- protoOf(CommonOptions).f49 = function () {
281
- return this.x48_1.e44(this, shared$factory_0());
281
+ protoOf(CommonOptions).m49 = function () {
282
+ return this.e49_1.l44(this, shared$factory_0());
282
283
  };
283
- protoOf(CommonOptions).g49 = function () {
284
- return this.y48_1.e44(this, strict$factory_0());
284
+ protoOf(CommonOptions).n49 = function () {
285
+ return this.f49_1.l44(this, strict$factory_0());
285
286
  };
286
- protoOf(CommonOptions).a49 = function (inputDir) {
287
+ protoOf(CommonOptions).h49 = function (inputDir) {
287
288
  var tmp;
288
289
  if (!(inputDir == null) && !(_get_inputFile__x1bqj(this) == null)) {
289
290
  var message = 'Choose either a file or a directory. Not Both.';
@@ -296,7 +297,7 @@
296
297
  } else {
297
298
  // Inline function 'kotlin.let' call
298
299
  // Inline function 'kotlin.contracts.contract' call
299
- tmp_0 = Companion_instance_2.m2e(tmp0_safe_receiver);
300
+ tmp_0 = Companion_instance_2.t2e(tmp0_safe_receiver);
300
301
  }
301
302
  var tmp0_elvis_lhs = tmp_0;
302
303
  var tmp_1;
@@ -318,7 +319,7 @@
318
319
  }
319
320
  return tmp;
320
321
  };
321
- protoOf(CommonOptions).e49 = function (_this__u8e3s4) {
322
+ protoOf(CommonOptions).l49 = function (_this__u8e3s4) {
322
323
  // Inline function 'kotlin.text.uppercase' call
323
324
  // Inline function 'kotlin.text.trim' call
324
325
  // Inline function 'kotlin.js.asDynamic' call
@@ -366,7 +367,7 @@
366
367
  }
367
368
  function Options(name, ordinal, flags) {
368
369
  Enum.call(this, name, ordinal);
369
- this.a48_1 = flags;
370
+ this.h48_1 = flags;
370
371
  }
371
372
  function Options_InputDir_getInstance() {
372
373
  Options_initEntries();
@@ -437,32 +438,32 @@
437
438
  }
438
439
  function inputDir$factory() {
439
440
  return getPropertyCallableRef('inputDir', 1, KProperty1, function (receiver) {
440
- return receiver.z48();
441
+ return receiver.g49();
441
442
  }, null);
442
443
  }
443
444
  function outputDir$factory() {
444
445
  return getPropertyCallableRef('outputDir', 1, KProperty1, function (receiver) {
445
- return receiver.b49();
446
+ return receiver.i49();
446
447
  }, null);
447
448
  }
448
449
  function packageName$factory() {
449
450
  return getPropertyCallableRef('packageName', 1, KProperty1, function (receiver) {
450
- return receiver.c49();
451
+ return receiver.j49();
451
452
  }, null);
452
453
  }
453
454
  function logLevel$factory() {
454
455
  return getPropertyCallableRef('logLevel', 1, KProperty1, function (receiver) {
455
- return receiver.d49();
456
+ return receiver.k49();
456
457
  }, null);
457
458
  }
458
459
  function shared$factory() {
459
460
  return getPropertyCallableRef('shared', 1, KProperty1, function (receiver) {
460
- return receiver.f49();
461
+ return receiver.m49();
461
462
  }, null);
462
463
  }
463
464
  function strict$factory() {
464
465
  return getPropertyCallableRef('strict', 1, KProperty1, function (receiver) {
465
- return receiver.g49();
466
+ return receiver.n49();
466
467
  }, null);
467
468
  }
468
469
  function inputFile$factory_0() {
@@ -472,32 +473,32 @@
472
473
  }
473
474
  function inputDir$factory_0() {
474
475
  return getPropertyCallableRef('inputDir', 1, KProperty1, function (receiver) {
475
- return receiver.z48();
476
+ return receiver.g49();
476
477
  }, null);
477
478
  }
478
479
  function outputDir$factory_0() {
479
480
  return getPropertyCallableRef('outputDir', 1, KProperty1, function (receiver) {
480
- return receiver.b49();
481
+ return receiver.i49();
481
482
  }, null);
482
483
  }
483
484
  function packageName$factory_0() {
484
485
  return getPropertyCallableRef('packageName', 1, KProperty1, function (receiver) {
485
- return receiver.c49();
486
+ return receiver.j49();
486
487
  }, null);
487
488
  }
488
489
  function logLevel$factory_0() {
489
490
  return getPropertyCallableRef('logLevel', 1, KProperty1, function (receiver) {
490
- return receiver.d49();
491
+ return receiver.k49();
491
492
  }, null);
492
493
  }
493
494
  function shared$factory_0() {
494
495
  return getPropertyCallableRef('shared', 1, KProperty1, function (receiver) {
495
- return receiver.f49();
496
+ return receiver.m49();
496
497
  }, null);
497
498
  }
498
499
  function strict$factory_0() {
499
500
  return getPropertyCallableRef('strict', 1, KProperty1, function (receiver) {
500
- return receiver.g49();
501
+ return receiver.n49();
501
502
  }, null);
502
503
  }
503
504
  function main(args) {
@@ -525,27 +526,27 @@
525
526
  var tmp = Companion_instance_4;
526
527
  var tmp_0 = compile$ref();
527
528
  // Inline function 'kotlin.contracts.contract' call
528
- tmp.x46(tmp_0, convert$ref())(this_1);
529
+ tmp.e47(tmp_0, convert$ref())(this_1);
529
530
  }
530
531
  function compile_0(arguments_0) {
531
- var input = arguments_0.d2e_1;
532
- var output = arguments_0.e2e_1;
533
- var languages = arguments_0.f2e_1;
534
- var packageName = arguments_0.g2e_1;
535
- var logger = new Logger(arguments_0.h2e_1);
536
- var operation = arguments_0.c2e_1;
532
+ var input = arguments_0.k2e_1;
533
+ var output = arguments_0.l2e_1;
534
+ var languages = arguments_0.m2e_1;
535
+ var packageName = arguments_0.n2e_1;
536
+ var logger = new Logger(arguments_0.o2e_1);
537
+ var operation = arguments_0.j2e_1;
537
538
  if (operation instanceof Convert) {
538
539
  var fullPath = input instanceof FullFilePath ? input : THROW_CCE();
539
540
  var file = new JsonFile(fullPath);
540
- var strict = arguments_0.j2e_1;
541
- var format = operation.l2e_1;
541
+ var strict = arguments_0.q2e_1;
542
+ var format = operation.s2e_1;
542
543
  var tmp;
543
544
  switch (format.q2_1) {
544
545
  case 0:
545
- tmp = OpenApiV2Parser_instance.o2f(file.y1a(), !strict);
546
+ tmp = OpenApiV2Parser_instance.v2f(file.y1a(), !strict);
546
547
  break;
547
548
  case 1:
548
- tmp = OpenApiV3Parser_instance.o2f(file.y1a(), !strict);
549
+ tmp = OpenApiV3Parser_instance.v2f(file.y1a(), !strict);
549
550
  break;
550
551
  default:
551
552
  noWhenBranchMatchedException();
@@ -568,7 +569,7 @@
568
569
  var tmp_0;
569
570
  if (!emitter.n22_1) {
570
571
  // Inline function 'kotlin.text.replaceFirstChar' call
571
- var this_1 = _FileName___get_value__impl__3u4cz6(fullPath.r2e_1);
572
+ var this_1 = _FileName___get_value__impl__3u4cz6(fullPath.y2e_1);
572
573
  var tmp_1;
573
574
  // Inline function 'kotlin.text.isNotEmpty' call
574
575
  if (charSequenceLength(this_1) > 0) {
@@ -585,7 +586,7 @@
585
586
  tmp_1 = this_1;
586
587
  }
587
588
  var tmp$ret$6 = tmp_1;
588
- tmp_0 = to(listOf(new Emitted(tmp$ret$6, first(results).w24_1)), file_0);
589
+ tmp_0 = to(listOf(new Emitted(tmp$ret$6, first(results).i25_1)), file_0);
589
590
  } else {
590
591
  tmp_0 = to(results, file_0);
591
592
  }
@@ -609,19 +610,19 @@
609
610
  } else {
610
611
  if (input instanceof FullDirPath) {
611
612
  // Inline function 'kotlin.collections.forEach' call
612
- var tmp0_iterator_1 = (new Directory(input.w2e_1)).k4a().g();
613
+ var tmp0_iterator_1 = (new Directory(input.d2f_1)).r4a().g();
613
614
  while (tmp0_iterator_1.h()) {
614
615
  var element = tmp0_iterator_1.i();
615
616
  // Inline function 'community.flock.wirespec.plugin.cli.compile.<anonymous>' call
616
- wirespec(element, languages, packageName, out(element.i4a_1, packageName, output), logger);
617
+ wirespec(element, languages, packageName, out(element.p4a_1, packageName, output), logger);
617
618
  }
618
619
  } else {
619
620
  if (input instanceof FullFilePath)
620
- if (input.s2e_1.equals(FileExtension_Wirespec_getInstance())) {
621
+ if (input.z2e_1.equals(FileExtension_Wirespec_getInstance())) {
621
622
  // Inline function 'kotlin.let' call
622
623
  // Inline function 'kotlin.contracts.contract' call
623
624
  var it = new WirespecFile(input);
624
- wirespec(it, languages, packageName, out(it.i4a_1, packageName, output), logger);
625
+ wirespec(it, languages, packageName, out(it.p4a_1, packageName, output), logger);
625
626
  } else {
626
627
  // Inline function 'kotlin.error' call
627
628
  var message = 'Path ' + input.toString() + ' is not a Wirespec file';
@@ -651,12 +652,12 @@
651
652
  // Inline function 'community.flock.wirespec.plugin.cli.write.<anonymous>' call
652
653
  var name = element.od();
653
654
  var result = element.pd();
654
- var tmp15_safe_receiver = file == null ? null : file.l4a(_FileName___init__impl__nzn12e(name));
655
+ var tmp16_safe_receiver = file == null ? null : file.s4a(_FileName___init__impl__nzn12e(name));
655
656
  var tmp;
656
- if (tmp15_safe_receiver == null) {
657
+ if (tmp16_safe_receiver == null) {
657
658
  tmp = null;
658
659
  } else {
659
- tmp15_safe_receiver.s18(result);
660
+ tmp16_safe_receiver.s18(result);
660
661
  tmp = Unit_instance;
661
662
  }
662
663
  if (tmp == null) {
@@ -690,7 +691,7 @@
690
691
  tmp = to(tmp_0, tmp_1);
691
692
  break;
692
693
  case 1:
693
- var tmp_2 = new KotlinEmitter(packageString, logger);
694
+ var tmp_2 = new JavaLegacyEmitter(packageString, logger);
694
695
  var tmp_3;
695
696
  if (path == null) {
696
697
  tmp_3 = null;
@@ -698,13 +699,13 @@
698
699
  // Inline function 'kotlin.let' call
699
700
  // Inline function 'kotlin.contracts.contract' call
700
701
  // Inline function 'community.flock.wirespec.plugin.cli.emitters.<anonymous>.<anonymous>' call
701
- tmp_3 = new KotlinFile(path(FileExtension_Kotlin_getInstance()));
702
+ tmp_3 = new JavaFile(path(FileExtension_Java_getInstance()));
702
703
  }
703
704
 
704
705
  tmp = to(tmp_2, tmp_3);
705
706
  break;
706
707
  case 2:
707
- var tmp_4 = new KotlinLegacyEmitter(packageString, logger);
708
+ var tmp_4 = new KotlinEmitter(packageString, logger);
708
709
  var tmp_5;
709
710
  if (path == null) {
710
711
  tmp_5 = null;
@@ -718,7 +719,7 @@
718
719
  tmp = to(tmp_4, tmp_5);
719
720
  break;
720
721
  case 3:
721
- var tmp_6 = new ScalaEmitter(packageString, logger);
722
+ var tmp_6 = new KotlinLegacyEmitter(packageString, logger);
722
723
  var tmp_7;
723
724
  if (path == null) {
724
725
  tmp_7 = null;
@@ -726,13 +727,13 @@
726
727
  // Inline function 'kotlin.let' call
727
728
  // Inline function 'kotlin.contracts.contract' call
728
729
  // Inline function 'community.flock.wirespec.plugin.cli.emitters.<anonymous>.<anonymous>' call
729
- tmp_7 = new ScalaFile(path(FileExtension_Scala_getInstance()));
730
+ tmp_7 = new KotlinFile(path(FileExtension_Kotlin_getInstance()));
730
731
  }
731
732
 
732
733
  tmp = to(tmp_6, tmp_7);
733
734
  break;
734
735
  case 4:
735
- var tmp_8 = new TypeScriptEmitter(logger);
736
+ var tmp_8 = new ScalaEmitter(packageString, logger);
736
737
  var tmp_9;
737
738
  if (path == null) {
738
739
  tmp_9 = null;
@@ -740,13 +741,13 @@
740
741
  // Inline function 'kotlin.let' call
741
742
  // Inline function 'kotlin.contracts.contract' call
742
743
  // Inline function 'community.flock.wirespec.plugin.cli.emitters.<anonymous>.<anonymous>' call
743
- tmp_9 = new TypeScriptFile(path(FileExtension_TypeScript_getInstance()));
744
+ tmp_9 = new ScalaFile(path(FileExtension_Scala_getInstance()));
744
745
  }
745
746
 
746
747
  tmp = to(tmp_8, tmp_9);
747
748
  break;
748
749
  case 5:
749
- var tmp_10 = new WirespecEmitter(logger);
750
+ var tmp_10 = new TypeScriptEmitter(logger);
750
751
  var tmp_11;
751
752
  if (path == null) {
752
753
  tmp_11 = null;
@@ -754,17 +755,31 @@
754
755
  // Inline function 'kotlin.let' call
755
756
  // Inline function 'kotlin.contracts.contract' call
756
757
  // Inline function 'community.flock.wirespec.plugin.cli.emitters.<anonymous>.<anonymous>' call
757
- tmp_11 = new WirespecFile(path(FileExtension_Wirespec_getInstance()));
758
+ tmp_11 = new TypeScriptFile(path(FileExtension_TypeScript_getInstance()));
758
759
  }
759
760
 
760
761
  tmp = to(tmp_10, tmp_11);
761
762
  break;
763
+ case 6:
764
+ var tmp_12 = new WirespecEmitter(logger);
765
+ var tmp_13;
766
+ if (path == null) {
767
+ tmp_13 = null;
768
+ } else {
769
+ // Inline function 'kotlin.let' call
770
+ // Inline function 'kotlin.contracts.contract' call
771
+ // Inline function 'community.flock.wirespec.plugin.cli.emitters.<anonymous>.<anonymous>' call
772
+ tmp_13 = new WirespecFile(path(FileExtension_Wirespec_getInstance()));
773
+ }
774
+
775
+ tmp = to(tmp_12, tmp_13);
776
+ break;
762
777
  default:
763
778
  noWhenBranchMatchedException();
764
779
  break;
765
780
  }
766
- var tmp$ret$12 = tmp;
767
- destination.e(tmp$ret$12);
781
+ var tmp$ret$14 = tmp;
782
+ destination.e(tmp$ret$14);
768
783
  }
769
784
  return destination;
770
785
  }
@@ -800,7 +815,7 @@
800
815
  // Inline function 'arrow.core.Either.map.<anonymous>' call
801
816
  // Inline function 'community.flock.wirespec.plugin.cli.wirespec.<anonymous>.<anonymous>.<anonymous>' call
802
817
  var it = results.zj_1;
803
- var tmp$ret$2 = listOf(new Emitted(Companion_getInstance().h23(_FileName___get_value__impl__3u4cz6(path(FileExtension_Wirespec_getInstance()).r2e_1)), first(it).w24_1));
818
+ var tmp$ret$2 = listOf(new Emitted(Companion_getInstance().n24(_FileName___get_value__impl__3u4cz6(path(FileExtension_Wirespec_getInstance()).y2e_1)), first(it).i25_1));
804
819
  tmp_0 = new Right(tmp$ret$2);
805
820
  } else {
806
821
  if (results instanceof Left) {
@@ -855,7 +870,7 @@
855
870
  function compile$lambda($output) {
856
871
  return function (it) {
857
872
  var tmp = $output;
858
- return new FullFilePath(_Output___get_value__impl__a8kw1g(ensureNotNull(tmp == null ? null : new Output(tmp)).z2e_1), _FileName___init__impl__nzn12e('console'), it);
873
+ return new FullFilePath(_Output___get_value__impl__a8kw1g(ensureNotNull(tmp == null ? null : new Output(tmp)).g2f_1), _FileName___init__impl__nzn12e('console'), it);
859
874
  };
860
875
  }
861
876
  function out$lambda($output, $this_out, $packageName) {
@@ -867,49 +882,49 @@
867
882
  // Inline function 'kotlin.text.lowercase' call
868
883
  // Inline function 'kotlin.js.asDynamic' call
869
884
  var tmp$ret$1 = extension.p2_1.toLowerCase();
870
- tmp = $this_out.q2e_1 + '/out/' + tmp$ret$1;
885
+ tmp = $this_out.x2e_1 + '/out/' + tmp$ret$1;
871
886
  } else {
872
887
  tmp = new Output(tmp0_elvis_lhs);
873
888
  }
874
889
  var dir = tmp;
875
- return $this_out.u2e(toString(dir) + '/' + joinToString(split(_PackageName___get_value__impl__2zr98c($packageName), charArrayOf([_Char___init__impl__6a9atx(46)])), '/'), VOID, extension);
890
+ return $this_out.b2f(toString(dir) + '/' + joinToString(split(_PackageName___get_value__impl__2zr98c($packageName), charArrayOf([_Char___init__impl__6a9atx(46)])), '/'), VOID, extension);
876
891
  };
877
892
  }
878
893
  function JavaFile(path) {
879
- File.call(this, path.u2e(VOID, VOID, FileExtension_Java_getInstance()));
894
+ File.call(this, path.b2f(VOID, VOID, FileExtension_Java_getInstance()));
880
895
  }
881
- protoOf(JavaFile).l4a = function (fileName) {
882
- return new JavaFile(this.i4a_1.u2e(VOID, fileName));
896
+ protoOf(JavaFile).s4a = function (fileName) {
897
+ return new JavaFile(this.p4a_1.b2f(VOID, fileName));
883
898
  };
884
899
  function JsonFile(path) {
885
- File.call(this, path.u2e(VOID, VOID, FileExtension_Json_getInstance()));
900
+ File.call(this, path.b2f(VOID, VOID, FileExtension_Json_getInstance()));
886
901
  }
887
- protoOf(JsonFile).l4a = function (fileName) {
888
- return new JsonFile(this.i4a_1.u2e(VOID, fileName));
902
+ protoOf(JsonFile).s4a = function (fileName) {
903
+ return new JsonFile(this.p4a_1.b2f(VOID, fileName));
889
904
  };
890
905
  function KotlinFile(path) {
891
- File.call(this, path.u2e(VOID, VOID, FileExtension_Kotlin_getInstance()));
906
+ File.call(this, path.b2f(VOID, VOID, FileExtension_Kotlin_getInstance()));
892
907
  }
893
- protoOf(KotlinFile).l4a = function (fileName) {
894
- return new KotlinFile(this.i4a_1.u2e(VOID, fileName));
908
+ protoOf(KotlinFile).s4a = function (fileName) {
909
+ return new KotlinFile(this.p4a_1.b2f(VOID, fileName));
895
910
  };
896
911
  function ScalaFile(path) {
897
- File.call(this, path.u2e(VOID, VOID, FileExtension_Scala_getInstance()));
912
+ File.call(this, path.b2f(VOID, VOID, FileExtension_Scala_getInstance()));
898
913
  }
899
- protoOf(ScalaFile).l4a = function (fileName) {
900
- return new ScalaFile(this.i4a_1.u2e(VOID, fileName));
914
+ protoOf(ScalaFile).s4a = function (fileName) {
915
+ return new ScalaFile(this.p4a_1.b2f(VOID, fileName));
901
916
  };
902
917
  function TypeScriptFile(path) {
903
- File.call(this, path.u2e(VOID, VOID, FileExtension_TypeScript_getInstance()));
918
+ File.call(this, path.b2f(VOID, VOID, FileExtension_TypeScript_getInstance()));
904
919
  }
905
- protoOf(TypeScriptFile).l4a = function (fileName) {
906
- return new TypeScriptFile(this.i4a_1.u2e(VOID, fileName));
920
+ protoOf(TypeScriptFile).s4a = function (fileName) {
921
+ return new TypeScriptFile(this.p4a_1.b2f(VOID, fileName));
907
922
  };
908
923
  function WirespecFile(path) {
909
- File.call(this, path.u2e(VOID, VOID, FileExtension_Wirespec_getInstance()));
924
+ File.call(this, path.b2f(VOID, VOID, FileExtension_Wirespec_getInstance()));
910
925
  }
911
- protoOf(WirespecFile).l4a = function (fileName) {
912
- return new WirespecFile(this.i4a_1.u2e(VOID, fileName));
926
+ protoOf(WirespecFile).s4a = function (fileName) {
927
+ return new WirespecFile(this.p4a_1.b2f(VOID, fileName));
913
928
  };
914
929
  function cli(args) {
915
930
  main(args);
@@ -972,14 +987,14 @@
972
987
  return it;
973
988
  }
974
989
  function Directory$wirespecFiles$lambda_0(it) {
975
- return endsWith(it, FileExtension_Wirespec_getInstance().p2e_1);
990
+ return endsWith(it, FileExtension_Wirespec_getInstance().w2e_1);
976
991
  }
977
992
  function Directory$wirespecFiles$lambda_1(it) {
978
- return dropLast(it, FileExtension_Wirespec_getInstance().p2e_1.length + 1 | 0);
993
+ return dropLast(it, FileExtension_Wirespec_getInstance().w2e_1.length + 1 | 0);
979
994
  }
980
995
  function Directory$wirespecFiles$lambda_2(this$0) {
981
996
  return function (it) {
982
- return new FullFilePath(this$0.j4a_1, _FileName___init__impl__nzn12e(it));
997
+ return new FullFilePath(this$0.q4a_1, _FileName___init__impl__nzn12e(it));
983
998
  };
984
999
  }
985
1000
  function WirespecFile$_init_$ref_cj1n5j() {
@@ -990,10 +1005,10 @@
990
1005
  return l;
991
1006
  }
992
1007
  function Directory(path) {
993
- this.j4a_1 = path;
1008
+ this.q4a_1 = path;
994
1009
  }
995
- protoOf(Directory).k4a = function () {
996
- var tmp = asSequence(iterator(get_fs().readdirSync(this.j4a_1, 'utf-8')));
1010
+ protoOf(Directory).r4a = function () {
1011
+ var tmp = asSequence(iterator(get_fs().readdirSync(this.q4a_1, 'utf-8')));
997
1012
  var tmp_0 = map(tmp, Directory$wirespecFiles$lambda);
998
1013
  var tmp_1 = filter(tmp_0, Directory$wirespecFiles$lambda_0);
999
1014
  var tmp_2 = map(tmp_1, Directory$wirespecFiles$lambda_1);
@@ -1001,20 +1016,20 @@
1001
1016
  return toSet_0(map(tmp_3, WirespecFile$_init_$ref_cj1n5j()));
1002
1017
  };
1003
1018
  function File(path) {
1004
- this.i4a_1 = path;
1019
+ this.p4a_1 = path;
1005
1020
  }
1006
1021
  protoOf(File).y1a = function () {
1007
1022
  // Inline function 'kotlin.js.unsafeCast' call
1008
- return get_fs().readFileSync(this.i4a_1.toString(), 'utf-8');
1023
+ return get_fs().readFileSync(this.p4a_1.toString(), 'utf-8');
1009
1024
  };
1010
1025
  protoOf(File).s18 = function (text) {
1011
1026
  // Inline function 'kotlin.run' call
1012
1027
  // Inline function 'kotlin.contracts.contract' call
1013
1028
  // Inline function 'community.flock.wirespec.plugin.cli.io.File.write.<anonymous>' call
1014
- var $this$run = this.i4a_1.u2e(joinToString(split_0(this.i4a_1.q2e_1, ['out']), 'out/node'));
1029
+ var $this$run = this.p4a_1.b2f(joinToString(split_0(this.p4a_1.x2e_1, ['out']), 'out/node'));
1015
1030
  // Inline function 'kotlin.js.unsafeCast' call
1016
- if (!get_fs().existsSync($this$run.q2e_1)) {
1017
- get_fs().mkdirSync($this$run.q2e_1, {recursive: true});
1031
+ if (!get_fs().existsSync($this$run.x2e_1)) {
1032
+ get_fs().mkdirSync($this$run.x2e_1, {recursive: true});
1018
1033
  }
1019
1034
  get_fs().writeFileSync($this$run.toString(), text);
1020
1035
  };