@flock/wirespec 0.9.19 → 0.9.20

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.
@@ -156,7 +156,7 @@
156
156
  //endregion
157
157
  function WirespecCli$main$ref($boundThis) {
158
158
  var l = function (p0) {
159
- $boundThis.y3q(p0);
159
+ $boundThis.z3q(p0);
160
160
  return Unit_instance;
161
161
  };
162
162
  l.callableName = 'main';
@@ -164,7 +164,7 @@
164
164
  }
165
165
  function Companion() {
166
166
  }
167
- protoOf(Companion).y42 = function (compile, convert) {
167
+ protoOf(Companion).z42 = function (compile, convert) {
168
168
  return WirespecCli$main$ref(subcommands(new WirespecCli(), [new Compile_0(compile), new Convert_0(convert)]));
169
169
  };
170
170
  var Companion_instance_5;
@@ -175,28 +175,28 @@
175
175
  NoOpCliktCommand.call(this, VOID, VOID, 'wirespec');
176
176
  }
177
177
  function _get_languages__ojonze($this) {
178
- return $this.y43_1.e40($this, languages$factory_0());
178
+ return $this.z43_1.f40($this, languages$factory_0());
179
179
  }
180
180
  function Compile_0(block) {
181
181
  CommonOptions.call(this);
182
- this.x43_1 = block;
183
- this.y43_1 = multiple(choice(option(this, Options_Language_getInstance().b44_1.slice(), 'Language'), Companion_instance.a2c()), VOID, true).q40(this, languages$factory());
182
+ this.y43_1 = block;
183
+ this.z43_1 = multiple(choice(option(this, Options_Language_getInstance().c44_1.slice(), 'Language'), Companion_instance.b2c()), VOID, true).r40(this, languages$factory());
184
184
  }
185
- protoOf(Compile_0).z3q = function () {
185
+ protoOf(Compile_0).a3r = function () {
186
186
  // Inline function 'kotlin.let' call
187
- var this_0 = new CompilerArguments(Compile_instance, this.b45(this.a45()), Companion_instance_0.b2c(this.c45()), toSet(_get_languages__ojonze(this)), _PackageName___init__impl__s13tbs(this.d45()), this.e45(), this.f45(), this.g45());
187
+ var this_0 = new CompilerArguments(Compile_instance, this.c45(this.b45()), Companion_instance_0.c2c(this.d45()), toSet(_get_languages__ojonze(this)), _PackageName___init__impl__s13tbs(this.e45()), this.f45(), this.g45(), this.h45());
188
188
  // Inline function 'kotlin.contracts.contract' call
189
- this.x43_1(this_0);
189
+ this.y43_1(this_0);
190
190
  };
191
191
  function _get_format__qlarck($this) {
192
- return $this.g46_1.e40($this, format$factory_0());
192
+ return $this.h46_1.f40($this, format$factory_0());
193
193
  }
194
194
  function _get_languages__ojonze_0($this) {
195
- return $this.h46_1.e40($this, languages$factory_2());
195
+ return $this.i46_1.f40($this, languages$factory_2());
196
196
  }
197
197
  function Convert_0(block) {
198
198
  CommonOptions.call(this);
199
- this.f46_1 = block;
199
+ this.g46_1 = block;
200
200
  var tmp = this;
201
201
  // Inline function 'com.github.ajalt.clikt.parameters.types.enum' call
202
202
  var this_0 = argument(this, VOID, 'Input format');
@@ -216,21 +216,21 @@
216
216
  var tmp$ret$2 = element.f9_1;
217
217
  destination.l2(tmp$ret$2, element);
218
218
  }
219
- tmp.g46_1 = choice_0(this_0, destination, true).k3z(this, format$factory());
220
- this.h46_1 = multiple(choice(option(this, Options_Language_getInstance().b44_1.slice(), 'Language'), Companion_instance.a2c(), VOID, true), listOf(Language_Wirespec_getInstance())).q40(this, languages$factory_1());
219
+ tmp.h46_1 = choice_0(this_0, destination, true).l3z(this, format$factory());
220
+ this.i46_1 = multiple(choice(option(this, Options_Language_getInstance().c44_1.slice(), 'Language'), Companion_instance.b2c(), VOID, true), listOf(Language_Wirespec_getInstance())).r40(this, languages$factory_1());
221
221
  }
222
- protoOf(Convert_0).z3q = function () {
223
- if (this.a45() == null)
222
+ protoOf(Convert_0).a3r = function () {
223
+ if (this.b45() == null)
224
224
  null;
225
225
  else {
226
226
  // Inline function 'kotlin.let' call
227
227
  // Inline function 'kotlin.contracts.contract' call
228
- this.s3q('To convert, please specify a file', VOID, true);
228
+ this.t3q('To convert, please specify a file', VOID, true);
229
229
  }
230
230
  // Inline function 'kotlin.let' call
231
231
  var tmp = new Convert(_get_format__qlarck(this));
232
- var tmp_0 = this.b45(null);
233
- var tmp_1 = Companion_instance_0.b2c(this.c45());
232
+ var tmp_0 = this.c45(null);
233
+ var tmp_1 = Companion_instance_0.c2c(this.d45());
234
234
  // Inline function 'kotlin.collections.ifEmpty' call
235
235
  var this_0 = toSet(_get_languages__ojonze_0(this));
236
236
  var tmp_2;
@@ -241,42 +241,42 @@
241
241
  tmp_2 = this_0;
242
242
  }
243
243
  var tmp$ret$2 = tmp_2;
244
- var this_1 = new CompilerArguments(tmp, tmp_0, tmp_1, tmp$ret$2, _PackageName___init__impl__s13tbs(this.d45()), this.e45(), this.f45(), this.g45());
244
+ var this_1 = new CompilerArguments(tmp, tmp_0, tmp_1, tmp$ret$2, _PackageName___init__impl__s13tbs(this.e45()), this.f45(), this.g45(), this.h45());
245
245
  // Inline function 'kotlin.contracts.contract' call
246
- this.f46_1(this_1);
246
+ this.g46_1(this_1);
247
247
  };
248
248
  function _get_inputFile__x1bqj($this) {
249
- return $this.t44_1.e40($this, inputFile$factory_0());
249
+ return $this.u44_1.f40($this, inputFile$factory_0());
250
250
  }
251
251
  function CommonOptions() {
252
252
  CliktCommand.call(this);
253
- this.t44_1 = option(this, Options_InputFile_getInstance().b44_1.slice(), 'Input file').q40(this, inputFile$factory());
254
- this.u44_1 = option(this, Options_InputDir_getInstance().b44_1.slice(), 'Input directory').q40(this, inputDir$factory());
255
- this.v44_1 = option(this, Options_OutputDir_getInstance().b44_1.slice(), 'Output directory').q40(this, outputDir$factory());
256
- this.w44_1 = default_0(option(this, Options_PackageName_getInstance().b44_1.slice(), 'Package name'), get_DEFAULT_PACKAGE_STRING()).q40(this, packageName$factory());
257
- this.x44_1 = flag(option(this, Options_Shared_getInstance().b44_1.slice(), 'Generate shared wirespec code'), [], false).q40(this, shared$factory());
258
- this.y44_1 = flag(option(this, Options_Strict_getInstance().b44_1.slice(), 'Strict mode'), []).q40(this, strict$factory());
259
- this.z44_1 = flag(option(this, Options_Debug_getInstance().b44_1.slice(), 'Debug mode'), []).q40(this, debug$factory());
260
- }
261
- protoOf(CommonOptions).a45 = function () {
262
- return this.u44_1.e40(this, inputDir$factory_0());
263
- };
264
- protoOf(CommonOptions).c45 = function () {
265
- return this.v44_1.e40(this, outputDir$factory_0());
253
+ this.u44_1 = option(this, Options_InputFile_getInstance().c44_1.slice(), 'Input file').r40(this, inputFile$factory());
254
+ this.v44_1 = option(this, Options_InputDir_getInstance().c44_1.slice(), 'Input directory').r40(this, inputDir$factory());
255
+ this.w44_1 = option(this, Options_OutputDir_getInstance().c44_1.slice(), 'Output directory').r40(this, outputDir$factory());
256
+ this.x44_1 = default_0(option(this, Options_PackageName_getInstance().c44_1.slice(), 'Package name'), get_DEFAULT_PACKAGE_STRING()).r40(this, packageName$factory());
257
+ this.y44_1 = flag(option(this, Options_Shared_getInstance().c44_1.slice(), 'Generate shared wirespec code'), [], false).r40(this, shared$factory());
258
+ this.z44_1 = flag(option(this, Options_Strict_getInstance().c44_1.slice(), 'Strict mode'), []).r40(this, strict$factory());
259
+ this.a45_1 = flag(option(this, Options_Debug_getInstance().c44_1.slice(), 'Debug mode'), []).r40(this, debug$factory());
260
+ }
261
+ protoOf(CommonOptions).b45 = function () {
262
+ return this.v44_1.f40(this, inputDir$factory_0());
266
263
  };
267
264
  protoOf(CommonOptions).d45 = function () {
268
- return this.w44_1.e40(this, packageName$factory_0());
265
+ return this.w44_1.f40(this, outputDir$factory_0());
269
266
  };
270
267
  protoOf(CommonOptions).e45 = function () {
271
- return this.x44_1.e40(this, shared$factory_0());
268
+ return this.x44_1.f40(this, packageName$factory_0());
272
269
  };
273
270
  protoOf(CommonOptions).f45 = function () {
274
- return this.y44_1.e40(this, strict$factory_0());
271
+ return this.y44_1.f40(this, shared$factory_0());
275
272
  };
276
273
  protoOf(CommonOptions).g45 = function () {
277
- return this.z44_1.e40(this, debug$factory_0());
274
+ return this.z44_1.f40(this, strict$factory_0());
275
+ };
276
+ protoOf(CommonOptions).h45 = function () {
277
+ return this.a45_1.f40(this, debug$factory_0());
278
278
  };
279
- protoOf(CommonOptions).b45 = function (inputDir) {
279
+ protoOf(CommonOptions).c45 = function (inputDir) {
280
280
  var tmp;
281
281
  if (!(inputDir == null) ? !(_get_inputFile__x1bqj(this) == null) : false) {
282
282
  var message = 'Choose either a file or a directory. Not Both.';
@@ -289,7 +289,7 @@
289
289
  } else {
290
290
  // Inline function 'kotlin.let' call
291
291
  // Inline function 'kotlin.contracts.contract' call
292
- tmp_0 = Companion_instance_1.p2b(tmp0_safe_receiver);
292
+ tmp_0 = Companion_instance_1.q2b(tmp0_safe_receiver);
293
293
  }
294
294
  var tmp2_elvis_lhs = tmp_0;
295
295
  var tmp_1;
@@ -335,7 +335,7 @@
335
335
  }
336
336
  function Options(name, ordinal, flags) {
337
337
  Enum.call(this, name, ordinal);
338
- this.b44_1 = flags;
338
+ this.c44_1 = flags;
339
339
  }
340
340
  function Options_InputDir_getInstance() {
341
341
  Options_initEntries();
@@ -406,32 +406,32 @@
406
406
  }
407
407
  function inputDir$factory() {
408
408
  return getPropertyCallableRef('inputDir', 1, KProperty1, function (receiver) {
409
- return receiver.a45();
409
+ return receiver.b45();
410
410
  }, null);
411
411
  }
412
412
  function outputDir$factory() {
413
413
  return getPropertyCallableRef('outputDir', 1, KProperty1, function (receiver) {
414
- return receiver.c45();
414
+ return receiver.d45();
415
415
  }, null);
416
416
  }
417
417
  function packageName$factory() {
418
418
  return getPropertyCallableRef('packageName', 1, KProperty1, function (receiver) {
419
- return receiver.d45();
419
+ return receiver.e45();
420
420
  }, null);
421
421
  }
422
422
  function shared$factory() {
423
423
  return getPropertyCallableRef('shared', 1, KProperty1, function (receiver) {
424
- return receiver.e45();
424
+ return receiver.f45();
425
425
  }, null);
426
426
  }
427
427
  function strict$factory() {
428
428
  return getPropertyCallableRef('strict', 1, KProperty1, function (receiver) {
429
- return receiver.f45();
429
+ return receiver.g45();
430
430
  }, null);
431
431
  }
432
432
  function debug$factory() {
433
433
  return getPropertyCallableRef('debug', 1, KProperty1, function (receiver) {
434
- return receiver.g45();
434
+ return receiver.h45();
435
435
  }, null);
436
436
  }
437
437
  function inputFile$factory_0() {
@@ -441,32 +441,32 @@
441
441
  }
442
442
  function inputDir$factory_0() {
443
443
  return getPropertyCallableRef('inputDir', 1, KProperty1, function (receiver) {
444
- return receiver.a45();
444
+ return receiver.b45();
445
445
  }, null);
446
446
  }
447
447
  function outputDir$factory_0() {
448
448
  return getPropertyCallableRef('outputDir', 1, KProperty1, function (receiver) {
449
- return receiver.c45();
449
+ return receiver.d45();
450
450
  }, null);
451
451
  }
452
452
  function packageName$factory_0() {
453
453
  return getPropertyCallableRef('packageName', 1, KProperty1, function (receiver) {
454
- return receiver.d45();
454
+ return receiver.e45();
455
455
  }, null);
456
456
  }
457
457
  function shared$factory_0() {
458
458
  return getPropertyCallableRef('shared', 1, KProperty1, function (receiver) {
459
- return receiver.e45();
459
+ return receiver.f45();
460
460
  }, null);
461
461
  }
462
462
  function strict$factory_0() {
463
463
  return getPropertyCallableRef('strict', 1, KProperty1, function (receiver) {
464
- return receiver.f45();
464
+ return receiver.g45();
465
465
  }, null);
466
466
  }
467
467
  function debug$factory_0() {
468
468
  return getPropertyCallableRef('debug', 1, KProperty1, function (receiver) {
469
- return receiver.g45();
469
+ return receiver.h45();
470
470
  }, null);
471
471
  }
472
472
  function main(args) {
@@ -494,27 +494,27 @@
494
494
  var tmp = Companion_instance_5;
495
495
  var tmp_0 = compile$ref();
496
496
  // Inline function 'kotlin.contracts.contract' call
497
- tmp.y42(tmp_0, convert$ref())(this_1);
497
+ tmp.z42(tmp_0, convert$ref())(this_1);
498
498
  }
499
499
  function compile_0(arguments_0) {
500
- var input = arguments_0.g2b_1;
501
- var output = arguments_0.h2b_1;
502
- var languages = arguments_0.i2b_1;
503
- var packageName = arguments_0.j2b_1;
504
- var logger = new Logger(arguments_0.m2b_1);
505
- var operation = arguments_0.f2b_1;
500
+ var input = arguments_0.h2b_1;
501
+ var output = arguments_0.i2b_1;
502
+ var languages = arguments_0.j2b_1;
503
+ var packageName = arguments_0.k2b_1;
504
+ var logger = new Logger(arguments_0.n2b_1);
505
+ var operation = arguments_0.g2b_1;
506
506
  if (operation instanceof Convert) {
507
507
  var fullPath = input instanceof FullFilePath ? input : THROW_CCE();
508
508
  var file = new JsonFile(fullPath);
509
- var strict = arguments_0.l2b_1;
510
- var format = operation.o2b_1;
509
+ var strict = arguments_0.m2b_1;
510
+ var format = operation.p2b_1;
511
511
  var tmp;
512
512
  switch (format.g9_1) {
513
513
  case 0:
514
- tmp = Companion_instance_2.e2c(file.q19(), !strict);
514
+ tmp = Companion_instance_2.f2c(file.q19(), !strict);
515
515
  break;
516
516
  case 1:
517
- tmp = Companion_instance_3.e2c(file.q19(), !strict);
517
+ tmp = Companion_instance_3.f2c(file.q19(), !strict);
518
518
  break;
519
519
  default:
520
520
  noWhenBranchMatchedException();
@@ -537,7 +537,7 @@
537
537
  var tmp_0;
538
538
  if (!emitter.o20_1) {
539
539
  // Inline function 'kotlin.text.replaceFirstChar' call
540
- var this_1 = _FileName___get_value__impl__3u4cz6(fullPath.u2b_1);
540
+ var this_1 = _FileName___get_value__impl__3u4cz6(fullPath.v2b_1);
541
541
  var tmp_1;
542
542
  // Inline function 'kotlin.text.isNotEmpty' call
543
543
  if (charSequenceLength(this_1) > 0) {
@@ -578,19 +578,19 @@
578
578
  } else {
579
579
  if (input instanceof FullDirPath) {
580
580
  // Inline function 'kotlin.collections.forEach' call
581
- var tmp0_iterator_1 = (new Directory(input.z2b_1)).k46().v();
581
+ var tmp0_iterator_1 = (new Directory(input.a2c_1)).l46().v();
582
582
  while (tmp0_iterator_1.w()) {
583
583
  var element = tmp0_iterator_1.y();
584
584
  // Inline function 'community.flock.wirespec.plugin.cli.compile.<anonymous>' call
585
- wirespec(element, languages, packageName, out(element.i46_1, packageName, output), logger);
585
+ wirespec(element, languages, packageName, out(element.j46_1, packageName, output), logger);
586
586
  }
587
587
  } else {
588
588
  if (input instanceof FullFilePath)
589
- if (input.v2b_1.equals(FileExtension_Wirespec_getInstance())) {
589
+ if (input.w2b_1.equals(FileExtension_Wirespec_getInstance())) {
590
590
  // Inline function 'kotlin.let' call
591
591
  // Inline function 'kotlin.contracts.contract' call
592
592
  var it = new WirespecFile(input);
593
- wirespec(it, languages, packageName, out(it.i46_1, packageName, output), logger);
593
+ wirespec(it, languages, packageName, out(it.j46_1, packageName, output), logger);
594
594
  } else {
595
595
  // Inline function 'kotlin.error' call
596
596
  var message = 'Path ' + input + ' is not a Wirespec file';
@@ -615,7 +615,7 @@
615
615
  // Inline function 'community.flock.wirespec.plugin.cli.write.<anonymous>' call
616
616
  var name = element.jd();
617
617
  var result = element.kd();
618
- var tmp1_safe_receiver = file == null ? null : file.l46(_FileName___init__impl__nzn12e(name));
618
+ var tmp1_safe_receiver = file == null ? null : file.m46(_FileName___init__impl__nzn12e(name));
619
619
  var tmp;
620
620
  if (tmp1_safe_receiver == null) {
621
621
  tmp = null;
@@ -750,7 +750,7 @@
750
750
  // Inline function 'arrow.core.Either.map.<anonymous>' call
751
751
  // Inline function 'community.flock.wirespec.plugin.cli.wirespec.<anonymous>.<anonymous>.<anonymous>' call
752
752
  var it = results.nj_1;
753
- var tmp$ret$2 = listOf(new Emitted(Companion_getInstance().n21(_FileName___get_value__impl__3u4cz6(path(FileExtension_Wirespec_getInstance()).u2b_1)), first(it).d22_1));
753
+ var tmp$ret$2 = listOf(new Emitted(Companion_getInstance().n21(_FileName___get_value__impl__3u4cz6(path(FileExtension_Wirespec_getInstance()).v2b_1)), first(it).d22_1));
754
754
  tmp_0 = new Right(tmp$ret$2);
755
755
  } else {
756
756
  if (results instanceof Left) {
@@ -804,7 +804,7 @@
804
804
  function compile$lambda($output) {
805
805
  return function (it) {
806
806
  var tmp = $output;
807
- return new FullFilePath(_Output___get_value__impl__a8kw1g(ensureNotNull(tmp == null ? null : new Output(tmp)).c2c_1), _FileName___init__impl__nzn12e('console'), it);
807
+ return new FullFilePath(_Output___get_value__impl__a8kw1g(ensureNotNull(tmp == null ? null : new Output(tmp)).d2c_1), _FileName___init__impl__nzn12e('console'), it);
808
808
  };
809
809
  }
810
810
  function out$lambda($output, $this_out, $packageName) {
@@ -816,49 +816,49 @@
816
816
  // Inline function 'kotlin.text.lowercase' call
817
817
  // Inline function 'kotlin.js.asDynamic' call
818
818
  var tmp$ret$1 = extension.f9_1.toLowerCase();
819
- tmp = $this_out.t2b_1 + '/out/' + tmp$ret$1;
819
+ tmp = $this_out.u2b_1 + '/out/' + tmp$ret$1;
820
820
  } else {
821
821
  tmp = new Output(tmp0_elvis_lhs);
822
822
  }
823
823
  var dir = tmp;
824
- return $this_out.x2b(toString(dir) + '/' + joinToString(split(_PackageName___get_value__impl__2zr98c($packageName), charArrayOf([_Char___init__impl__6a9atx(46)])), '/'), VOID, extension);
824
+ return $this_out.y2b(toString(dir) + '/' + joinToString(split(_PackageName___get_value__impl__2zr98c($packageName), charArrayOf([_Char___init__impl__6a9atx(46)])), '/'), VOID, extension);
825
825
  };
826
826
  }
827
827
  function JavaFile(path) {
828
- File.call(this, path.x2b(VOID, VOID, FileExtension_Java_getInstance()));
828
+ File.call(this, path.y2b(VOID, VOID, FileExtension_Java_getInstance()));
829
829
  }
830
- protoOf(JavaFile).l46 = function (fileName) {
831
- return new JavaFile(this.i46_1.x2b(VOID, fileName));
830
+ protoOf(JavaFile).m46 = function (fileName) {
831
+ return new JavaFile(this.j46_1.y2b(VOID, fileName));
832
832
  };
833
833
  function JsonFile(path) {
834
- File.call(this, path.x2b(VOID, VOID, FileExtension_Json_getInstance()));
834
+ File.call(this, path.y2b(VOID, VOID, FileExtension_Json_getInstance()));
835
835
  }
836
- protoOf(JsonFile).l46 = function (fileName) {
837
- return new JsonFile(this.i46_1.x2b(VOID, fileName));
836
+ protoOf(JsonFile).m46 = function (fileName) {
837
+ return new JsonFile(this.j46_1.y2b(VOID, fileName));
838
838
  };
839
839
  function KotlinFile(path) {
840
- File.call(this, path.x2b(VOID, VOID, FileExtension_Kotlin_getInstance()));
840
+ File.call(this, path.y2b(VOID, VOID, FileExtension_Kotlin_getInstance()));
841
841
  }
842
- protoOf(KotlinFile).l46 = function (fileName) {
843
- return new KotlinFile(this.i46_1.x2b(VOID, fileName));
842
+ protoOf(KotlinFile).m46 = function (fileName) {
843
+ return new KotlinFile(this.j46_1.y2b(VOID, fileName));
844
844
  };
845
845
  function ScalaFile(path) {
846
- File.call(this, path.x2b(VOID, VOID, FileExtension_Scala_getInstance()));
846
+ File.call(this, path.y2b(VOID, VOID, FileExtension_Scala_getInstance()));
847
847
  }
848
- protoOf(ScalaFile).l46 = function (fileName) {
849
- return new ScalaFile(this.i46_1.x2b(VOID, fileName));
848
+ protoOf(ScalaFile).m46 = function (fileName) {
849
+ return new ScalaFile(this.j46_1.y2b(VOID, fileName));
850
850
  };
851
851
  function TypeScriptFile(path) {
852
- File.call(this, path.x2b(VOID, VOID, FileExtension_TypeScript_getInstance()));
852
+ File.call(this, path.y2b(VOID, VOID, FileExtension_TypeScript_getInstance()));
853
853
  }
854
- protoOf(TypeScriptFile).l46 = function (fileName) {
855
- return new TypeScriptFile(this.i46_1.x2b(VOID, fileName));
854
+ protoOf(TypeScriptFile).m46 = function (fileName) {
855
+ return new TypeScriptFile(this.j46_1.y2b(VOID, fileName));
856
856
  };
857
857
  function WirespecFile(path) {
858
- File.call(this, path.x2b(VOID, VOID, FileExtension_Wirespec_getInstance()));
858
+ File.call(this, path.y2b(VOID, VOID, FileExtension_Wirespec_getInstance()));
859
859
  }
860
- protoOf(WirespecFile).l46 = function (fileName) {
861
- return new WirespecFile(this.i46_1.x2b(VOID, fileName));
860
+ protoOf(WirespecFile).m46 = function (fileName) {
861
+ return new WirespecFile(this.j46_1.y2b(VOID, fileName));
862
862
  };
863
863
  function cli(args) {
864
864
  main(args);
@@ -921,14 +921,14 @@
921
921
  return it;
922
922
  }
923
923
  function Directory$wirespecFiles$lambda_0(it) {
924
- return endsWith(it, FileExtension_Wirespec_getInstance().s2b_1);
924
+ return endsWith(it, FileExtension_Wirespec_getInstance().t2b_1);
925
925
  }
926
926
  function Directory$wirespecFiles$lambda_1(it) {
927
- return dropLast(it, FileExtension_Wirespec_getInstance().s2b_1.length + 1 | 0);
927
+ return dropLast(it, FileExtension_Wirespec_getInstance().t2b_1.length + 1 | 0);
928
928
  }
929
929
  function Directory$wirespecFiles$lambda_2(this$0) {
930
930
  return function (it) {
931
- return new FullFilePath(this$0.j46_1, _FileName___init__impl__nzn12e(it));
931
+ return new FullFilePath(this$0.k46_1, _FileName___init__impl__nzn12e(it));
932
932
  };
933
933
  }
934
934
  function WirespecFile$_init_$ref_cj1n5j() {
@@ -939,10 +939,10 @@
939
939
  return l;
940
940
  }
941
941
  function Directory(path) {
942
- this.j46_1 = path;
942
+ this.k46_1 = path;
943
943
  }
944
- protoOf(Directory).k46 = function () {
945
- var tmp = asSequence(iterator(get_fs().readdirSync(this.j46_1, 'utf-8')));
944
+ protoOf(Directory).l46 = function () {
945
+ var tmp = asSequence(iterator(get_fs().readdirSync(this.k46_1, 'utf-8')));
946
946
  var tmp_0 = map(tmp, Directory$wirespecFiles$lambda);
947
947
  var tmp_1 = filter(tmp_0, Directory$wirespecFiles$lambda_0);
948
948
  var tmp_2 = map(tmp_1, Directory$wirespecFiles$lambda_1);
@@ -950,20 +950,20 @@
950
950
  return toSet_0(map(tmp_3, WirespecFile$_init_$ref_cj1n5j()));
951
951
  };
952
952
  function File(path) {
953
- this.i46_1 = path;
953
+ this.j46_1 = path;
954
954
  }
955
955
  protoOf(File).q19 = function () {
956
956
  // Inline function 'kotlin.js.unsafeCast' call
957
- return get_fs().readFileSync(this.i46_1.toString(), 'utf-8');
957
+ return get_fs().readFileSync(this.j46_1.toString(), 'utf-8');
958
958
  };
959
959
  protoOf(File).p17 = function (text) {
960
960
  // Inline function 'kotlin.run' call
961
961
  // Inline function 'kotlin.contracts.contract' call
962
962
  // Inline function 'community.flock.wirespec.plugin.cli.io.File.write.<anonymous>' call
963
- var $this$run = this.i46_1.x2b(joinToString(split_0(this.i46_1.t2b_1, ['out']), 'out/node'));
963
+ var $this$run = this.j46_1.y2b(joinToString(split_0(this.j46_1.u2b_1, ['out']), 'out/node'));
964
964
  // Inline function 'kotlin.js.unsafeCast' call
965
- if (!get_fs().existsSync($this$run.t2b_1)) {
966
- get_fs().mkdirSync($this$run.t2b_1, {recursive: true});
965
+ if (!get_fs().existsSync($this$run.u2b_1)) {
966
+ get_fs().mkdirSync($this$run.u2b_1, {recursive: true});
967
967
  }
968
968
  get_fs().writeFileSync($this$run.toString(), text);
969
969
  };
@@ -167,7 +167,7 @@
167
167
  // Inline function 'arrow.core.Either.map.<anonymous>' call
168
168
  // Inline function 'community.flock.wirespec.plugin.npm.generate.<anonymous>' call
169
169
  var it_0 = this_0.nj_1;
170
- var tmp$ret$2 = toString(Generator_instance.w5i(it_0, type));
170
+ var tmp$ret$2 = toString(Generator_instance.x5i(it_0, type));
171
171
  tmp = new Right(tmp$ret$2);
172
172
  } else {
173
173
  if (this_0 instanceof Left) {
@@ -269,7 +269,7 @@
269
269
  while (tmp0_iterator_2.w()) {
270
270
  var item_3 = tmp0_iterator_2.y();
271
271
  // Inline function 'community.flock.wirespec.plugin.npm.emit.<anonymous>.<anonymous>' call
272
- var tmp$ret$12 = (new OpenApiV3Emitter()).x2c(item_3);
272
+ var tmp$ret$12 = (new OpenApiV3Emitter()).y2c(item_3);
273
273
  destination_3.s(tmp$ret$12);
274
274
  }
275
275
 
@@ -127,7 +127,7 @@
127
127
  case 0:
128
128
  // Inline function 'kotlin.let' call
129
129
 
130
- var this_0 = Companion_instance.s46('\\w{1,50}').b47(random);
130
+ var this_0 = Companion_instance.t46('\\w{1,50}').c47(random);
131
131
  // Inline function 'kotlin.contracts.contract' call
132
132
 
133
133
  tmp_0 = JsonPrimitive(this_0);
@@ -225,8 +225,8 @@
225
225
  var endIndex = regex.length - 2 | 0;
226
226
  // Inline function 'kotlin.js.asDynamic' call
227
227
  var tmp$ret$1 = regex.substring(1, endIndex);
228
- var rgxgen = tmp.s46(tmp$ret$1);
229
- return rgxgen.b47(random);
228
+ var rgxgen = tmp.t46(tmp$ret$1);
229
+ return rgxgen.c47(random);
230
230
  }
231
231
  function generateRefined($this, def, random) {
232
232
  var regex = def.x27_1.z27_1;
@@ -245,7 +245,7 @@
245
245
  function generateUnion(_this__u8e3s4, $this, def, random) {
246
246
  var index = random.ff(def.b29_1.p());
247
247
  var type = toList(def.b29_1).g1(index);
248
- return $this.u5i(_this__u8e3s4, type, random);
248
+ return $this.v5i(_this__u8e3s4, type, random);
249
249
  }
250
250
  function generateObject(_this__u8e3s4, $this, def, random) {
251
251
  var tmp;
@@ -274,15 +274,15 @@
274
274
  }
275
275
  function Generator() {
276
276
  }
277
- protoOf(Generator).v5i = function (_this__u8e3s4, type, random) {
277
+ protoOf(Generator).w5i = function (_this__u8e3s4, type, random) {
278
278
  var ref = new Custom(removeSuffix(type, '[]'), endsWith(type, '[]'), false);
279
- return this.u5i(_this__u8e3s4, ref, random);
279
+ return this.v5i(_this__u8e3s4, ref, random);
280
280
  };
281
- protoOf(Generator).w5i = function (_this__u8e3s4, type, random, $super) {
281
+ protoOf(Generator).x5i = function (_this__u8e3s4, type, random, $super) {
282
282
  random = random === VOID ? Default_getInstance() : random;
283
- return $super === VOID ? this.v5i(_this__u8e3s4, type, random) : $super.v5i.call(this, _this__u8e3s4, type, random);
283
+ return $super === VOID ? this.w5i(_this__u8e3s4, type, random) : $super.w5i.call(this, _this__u8e3s4, type, random);
284
284
  };
285
- protoOf(Generator).u5i = function (_this__u8e3s4, type, random) {
285
+ protoOf(Generator).v5i = function (_this__u8e3s4, type, random) {
286
286
  var def = resolveReference(_this__u8e3s4, this, type);
287
287
  var tmp;
288
288
  if (type.g21()) {