@flock/wirespec 0.10.11 → 0.10.12

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.$_$.y1;
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.$_$.if;
70
70
  var isCharSequence = kotlin_kotlin.$_$.ha;
71
71
  var trim = kotlin_kotlin.$_$.pe;
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.$_$.x1;
73
+ var Level_INFO_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.z1;
74
+ var Level_WARN_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.a2;
75
75
  var Enum = kotlin_kotlin.$_$.ye;
76
76
  var KProperty1 = kotlin_kotlin.$_$.sb;
77
77
  var getPropertyCallableRef = kotlin_kotlin.$_$.u9;
78
78
  var numberRangeToNumber = kotlin_kotlin.$_$.ra;
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.$_$.j1;
82
82
  var noWhenBranchMatchedException = kotlin_kotlin.$_$.eg;
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,7 +98,7 @@
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.$_$.h1;
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
104
  var KotlinEmitter = kotlin_community_flock_wirespec_compiler_core.$_$.c;
@@ -108,10 +108,10 @@
108
108
  var TypeScriptEmitter = kotlin_community_flock_wirespec_compiler_core.$_$.e;
109
109
  var FileExtension_TypeScript_getInstance = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.n;
110
110
  var WirespecEmitter = kotlin_community_flock_wirespec_compiler_core.$_$.f;
111
- var WirespecSpec_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.d2;
112
- var compile = kotlin_community_flock_wirespec_compiler_core.$_$.e1;
111
+ var WirespecSpec_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.e2;
112
+ var compile = kotlin_community_flock_wirespec_compiler_core.$_$.g1;
113
113
  var Left = kotlin_io_arrow_kt_arrow_core.$_$.d;
114
- var Companion_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.b2;
114
+ var Companion_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.d2;
115
115
  var Right = kotlin_io_arrow_kt_arrow_core.$_$.e;
116
116
  var println = kotlin_kotlin.$_$.b9;
117
117
  var Output = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.h;
@@ -123,9 +123,9 @@
123
123
  var split = kotlin_kotlin.$_$.nd;
124
124
  var joinToString = kotlin_kotlin.$_$.s6;
125
125
  var FileExtension_Json_getInstance = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.k;
126
- var parse = kotlin_community_flock_wirespec_compiler_core.$_$.g1;
127
- var get_noLogger = kotlin_community_flock_wirespec_compiler_core.$_$.i1;
128
- var Definition = kotlin_community_flock_wirespec_compiler_core.$_$.i;
126
+ var parse = kotlin_community_flock_wirespec_compiler_core.$_$.i1;
127
+ var get_noLogger = kotlin_community_flock_wirespec_compiler_core.$_$.k1;
128
+ var Definition = kotlin_community_flock_wirespec_compiler_core.$_$.j;
129
129
  var isInterface = kotlin_kotlin.$_$.la;
130
130
  var produce = kotlin_community_flock_wirespec_compiler_lib.$_$.e;
131
131
  var endsWith = kotlin_kotlin.$_$.nc;
@@ -161,7 +161,7 @@
161
161
  //endregion
162
162
  function WirespecCli$main$ref($boundThis) {
163
163
  var l = function (p0) {
164
- $boundThis.s3p(p0);
164
+ $boundThis.w3p(p0);
165
165
  return Unit_instance;
166
166
  };
167
167
  l.callableName = 'main';
@@ -169,7 +169,7 @@
169
169
  }
170
170
  function Companion() {
171
171
  }
172
- protoOf(Companion).x41 = function (compile, convert) {
172
+ protoOf(Companion).b42 = function (compile, convert) {
173
173
  return WirespecCli$main$ref(subcommands(new WirespecCli(), [new Compile_0(compile), new Convert_0(convert)]));
174
174
  };
175
175
  var Companion_instance_4;
@@ -180,28 +180,28 @@
180
180
  NoOpCliktCommand.call(this, VOID, VOID, 'wirespec');
181
181
  }
182
182
  function _get_languages__ojonze($this) {
183
- return $this.x42_1.e3z($this, languages$factory_0());
183
+ return $this.b43_1.i3z($this, languages$factory_0());
184
184
  }
185
185
  function Compile_0(block) {
186
186
  CommonOptions.call(this);
187
- this.w42_1 = block;
188
- this.x42_1 = multiple(choice(option(this, Options_Language_getInstance().a43_1.slice(), 'Language'), Companion_instance.y29()), VOID, true).p3z(this, languages$factory());
187
+ this.a43_1 = block;
188
+ this.b43_1 = multiple(choice(option(this, Options_Language_getInstance().e43_1.slice(), 'Language'), Companion_instance.b2a()), VOID, true).t3z(this, languages$factory());
189
189
  }
190
- protoOf(Compile_0).t3p = function () {
190
+ protoOf(Compile_0).x3p = function () {
191
191
  // Inline function 'kotlin.let' call
192
- var this_0 = new CompilerArguments(Compile_instance, this.a44(this.z43()), Companion_instance_0.z29(this.b44()), toSet(_get_languages__ojonze(this)), _PackageName___init__impl__s13tbs(this.c44()), this.e44(this.d44()), this.f44(), this.g44());
192
+ var this_0 = new CompilerArguments(Compile_instance, this.e44(this.d44()), Companion_instance_0.c2a(this.f44()), toSet(_get_languages__ojonze(this)), _PackageName___init__impl__s13tbs(this.g44()), this.i44(this.h44()), this.j44(), this.k44());
193
193
  // Inline function 'kotlin.contracts.contract' call
194
- this.w42_1(this_0);
194
+ this.a43_1(this_0);
195
195
  };
196
196
  function _get_format__qlarck($this) {
197
- return $this.g45_1.e3z($this, format$factory_0());
197
+ return $this.k45_1.i3z($this, format$factory_0());
198
198
  }
199
199
  function _get_languages__ojonze_0($this) {
200
- return $this.h45_1.e3z($this, languages$factory_2());
200
+ return $this.l45_1.i3z($this, languages$factory_2());
201
201
  }
202
202
  function Convert_0(block) {
203
203
  CommonOptions.call(this);
204
- this.f45_1 = block;
204
+ this.j45_1 = block;
205
205
  var tmp = this;
206
206
  // Inline function 'com.github.ajalt.clikt.parameters.types.enum' call
207
207
  var this_0 = argument(this, VOID, 'Input format');
@@ -221,21 +221,21 @@
221
221
  var tmp$ret$2 = element.p2_1;
222
222
  destination.m2(tmp$ret$2, element);
223
223
  }
224
- tmp.g45_1 = choice_0(this_0, destination, true).k3y(this, format$factory());
225
- this.h45_1 = multiple(choice(option(this, Options_Language_getInstance().a43_1.slice(), 'Language'), Companion_instance.y29(), VOID, true), listOf(Language_Wirespec_getInstance())).p3z(this, languages$factory_1());
224
+ tmp.k45_1 = choice_0(this_0, destination, true).o3y(this, format$factory());
225
+ this.l45_1 = multiple(choice(option(this, Options_Language_getInstance().e43_1.slice(), 'Language'), Companion_instance.b2a(), VOID, true), listOf(Language_Wirespec_getInstance())).t3z(this, languages$factory_1());
226
226
  }
227
- protoOf(Convert_0).t3p = function () {
228
- if (this.z43() == null)
227
+ protoOf(Convert_0).x3p = function () {
228
+ if (this.d44() == null)
229
229
  null;
230
230
  else {
231
231
  // Inline function 'kotlin.let' call
232
232
  // Inline function 'kotlin.contracts.contract' call
233
- this.m3p('To convert, please specify a file', VOID, true);
233
+ this.q3p('To convert, please specify a file', VOID, true);
234
234
  }
235
235
  // Inline function 'kotlin.let' call
236
236
  var tmp = new Convert(_get_format__qlarck(this));
237
- var tmp_0 = this.a44(null);
238
- var tmp_1 = Companion_instance_0.z29(this.b44());
237
+ var tmp_0 = this.e44(null);
238
+ var tmp_1 = Companion_instance_0.c2a(this.f44());
239
239
  // Inline function 'kotlin.collections.ifEmpty' call
240
240
  var this_0 = toSet(_get_languages__ojonze_0(this));
241
241
  // Inline function 'kotlin.contracts.contract' call
@@ -247,42 +247,42 @@
247
247
  tmp_2 = this_0;
248
248
  }
249
249
  var tmp$ret$2 = tmp_2;
250
- var this_1 = new CompilerArguments(tmp, tmp_0, tmp_1, tmp$ret$2, _PackageName___init__impl__s13tbs(this.c44()), this.e44(this.d44()), this.f44(), this.g44());
250
+ var this_1 = new CompilerArguments(tmp, tmp_0, tmp_1, tmp$ret$2, _PackageName___init__impl__s13tbs(this.g44()), this.i44(this.h44()), this.j44(), this.k44());
251
251
  // Inline function 'kotlin.contracts.contract' call
252
- this.f45_1(this_1);
252
+ this.j45_1(this_1);
253
253
  };
254
254
  function _get_inputFile__x1bqj($this) {
255
- return $this.s43_1.e3z($this, inputFile$factory_0());
255
+ return $this.w43_1.i3z($this, inputFile$factory_0());
256
256
  }
257
257
  function CommonOptions() {
258
258
  CliktCommand.call(this);
259
- this.s43_1 = option(this, Options_InputFile_getInstance().a43_1.slice(), 'Input file').p3z(this, inputFile$factory());
260
- this.t43_1 = option(this, Options_InputDir_getInstance().a43_1.slice(), 'Input directory').p3z(this, inputDir$factory());
261
- this.u43_1 = option(this, Options_OutputDir_getInstance().a43_1.slice(), 'Output directory').p3z(this, outputDir$factory());
262
- this.v43_1 = default_0(option(this, Options_PackageName_getInstance().a43_1.slice(), 'Package name'), 'community.flock.wirespec.generated').p3z(this, packageName$factory());
263
- this.w43_1 = default_0(option(this, Options_LogLevel_getInstance().a43_1.slice(), 'Log level: ' + Companion_instance_1.toString()), Level_ERROR_getInstance().toString()).p3z(this, logLevel$factory());
264
- this.x43_1 = flag(option(this, Options_Shared_getInstance().a43_1.slice(), 'Generate shared wirespec code'), [], false).p3z(this, shared$factory());
265
- this.y43_1 = flag(option(this, Options_Strict_getInstance().a43_1.slice(), 'Strict mode'), []).p3z(this, strict$factory());
266
- }
267
- protoOf(CommonOptions).z43 = function () {
268
- return this.t43_1.e3z(this, inputDir$factory_0());
269
- };
270
- protoOf(CommonOptions).b44 = function () {
271
- return this.u43_1.e3z(this, outputDir$factory_0());
272
- };
273
- protoOf(CommonOptions).c44 = function () {
274
- return this.v43_1.e3z(this, packageName$factory_0());
275
- };
259
+ this.w43_1 = option(this, Options_InputFile_getInstance().e43_1.slice(), 'Input file').t3z(this, inputFile$factory());
260
+ this.x43_1 = option(this, Options_InputDir_getInstance().e43_1.slice(), 'Input directory').t3z(this, inputDir$factory());
261
+ this.y43_1 = option(this, Options_OutputDir_getInstance().e43_1.slice(), 'Output directory').t3z(this, outputDir$factory());
262
+ this.z43_1 = default_0(option(this, Options_PackageName_getInstance().e43_1.slice(), 'Package name'), 'community.flock.wirespec.generated').t3z(this, packageName$factory());
263
+ this.a44_1 = default_0(option(this, Options_LogLevel_getInstance().e43_1.slice(), 'Log level: ' + Companion_instance_1.toString()), Level_ERROR_getInstance().toString()).t3z(this, logLevel$factory());
264
+ this.b44_1 = flag(option(this, Options_Shared_getInstance().e43_1.slice(), 'Generate shared wirespec code'), [], false).t3z(this, shared$factory());
265
+ this.c44_1 = flag(option(this, Options_Strict_getInstance().e43_1.slice(), 'Strict mode'), []).t3z(this, strict$factory());
266
+ }
276
267
  protoOf(CommonOptions).d44 = function () {
277
- return this.w43_1.e3z(this, logLevel$factory_0());
268
+ return this.x43_1.i3z(this, inputDir$factory_0());
278
269
  };
279
270
  protoOf(CommonOptions).f44 = function () {
280
- return this.x43_1.e3z(this, shared$factory_0());
271
+ return this.y43_1.i3z(this, outputDir$factory_0());
281
272
  };
282
273
  protoOf(CommonOptions).g44 = function () {
283
- return this.y43_1.e3z(this, strict$factory_0());
274
+ return this.z43_1.i3z(this, packageName$factory_0());
275
+ };
276
+ protoOf(CommonOptions).h44 = function () {
277
+ return this.a44_1.i3z(this, logLevel$factory_0());
284
278
  };
285
- protoOf(CommonOptions).a44 = function (inputDir) {
279
+ protoOf(CommonOptions).j44 = function () {
280
+ return this.b44_1.i3z(this, shared$factory_0());
281
+ };
282
+ protoOf(CommonOptions).k44 = function () {
283
+ return this.c44_1.i3z(this, strict$factory_0());
284
+ };
285
+ protoOf(CommonOptions).e44 = function (inputDir) {
286
286
  var tmp;
287
287
  if (!(inputDir == null) && !(_get_inputFile__x1bqj(this) == null)) {
288
288
  var message = 'Choose either a file or a directory. Not Both.';
@@ -295,7 +295,7 @@
295
295
  } else {
296
296
  // Inline function 'kotlin.let' call
297
297
  // Inline function 'kotlin.contracts.contract' call
298
- tmp_0 = Companion_instance_2.n29(tmp0_safe_receiver);
298
+ tmp_0 = Companion_instance_2.q29(tmp0_safe_receiver);
299
299
  }
300
300
  var tmp1_elvis_lhs = tmp_0;
301
301
  var tmp_1;
@@ -317,7 +317,7 @@
317
317
  }
318
318
  return tmp;
319
319
  };
320
- protoOf(CommonOptions).e44 = function (_this__u8e3s4) {
320
+ protoOf(CommonOptions).i44 = function (_this__u8e3s4) {
321
321
  // Inline function 'kotlin.text.uppercase' call
322
322
  // Inline function 'kotlin.text.trim' call
323
323
  // Inline function 'kotlin.js.asDynamic' call
@@ -365,7 +365,7 @@
365
365
  }
366
366
  function Options(name, ordinal, flags) {
367
367
  Enum.call(this, name, ordinal);
368
- this.a43_1 = flags;
368
+ this.e43_1 = flags;
369
369
  }
370
370
  function Options_InputDir_getInstance() {
371
371
  Options_initEntries();
@@ -436,32 +436,32 @@
436
436
  }
437
437
  function inputDir$factory() {
438
438
  return getPropertyCallableRef('inputDir', 1, KProperty1, function (receiver) {
439
- return receiver.z43();
439
+ return receiver.d44();
440
440
  }, null);
441
441
  }
442
442
  function outputDir$factory() {
443
443
  return getPropertyCallableRef('outputDir', 1, KProperty1, function (receiver) {
444
- return receiver.b44();
444
+ return receiver.f44();
445
445
  }, null);
446
446
  }
447
447
  function packageName$factory() {
448
448
  return getPropertyCallableRef('packageName', 1, KProperty1, function (receiver) {
449
- return receiver.c44();
449
+ return receiver.g44();
450
450
  }, null);
451
451
  }
452
452
  function logLevel$factory() {
453
453
  return getPropertyCallableRef('logLevel', 1, KProperty1, function (receiver) {
454
- return receiver.d44();
454
+ return receiver.h44();
455
455
  }, null);
456
456
  }
457
457
  function shared$factory() {
458
458
  return getPropertyCallableRef('shared', 1, KProperty1, function (receiver) {
459
- return receiver.f44();
459
+ return receiver.j44();
460
460
  }, null);
461
461
  }
462
462
  function strict$factory() {
463
463
  return getPropertyCallableRef('strict', 1, KProperty1, function (receiver) {
464
- return receiver.g44();
464
+ return receiver.k44();
465
465
  }, null);
466
466
  }
467
467
  function inputFile$factory_0() {
@@ -471,32 +471,32 @@
471
471
  }
472
472
  function inputDir$factory_0() {
473
473
  return getPropertyCallableRef('inputDir', 1, KProperty1, function (receiver) {
474
- return receiver.z43();
474
+ return receiver.d44();
475
475
  }, null);
476
476
  }
477
477
  function outputDir$factory_0() {
478
478
  return getPropertyCallableRef('outputDir', 1, KProperty1, function (receiver) {
479
- return receiver.b44();
479
+ return receiver.f44();
480
480
  }, null);
481
481
  }
482
482
  function packageName$factory_0() {
483
483
  return getPropertyCallableRef('packageName', 1, KProperty1, function (receiver) {
484
- return receiver.c44();
484
+ return receiver.g44();
485
485
  }, null);
486
486
  }
487
487
  function logLevel$factory_0() {
488
488
  return getPropertyCallableRef('logLevel', 1, KProperty1, function (receiver) {
489
- return receiver.d44();
489
+ return receiver.h44();
490
490
  }, null);
491
491
  }
492
492
  function shared$factory_0() {
493
493
  return getPropertyCallableRef('shared', 1, KProperty1, function (receiver) {
494
- return receiver.f44();
494
+ return receiver.j44();
495
495
  }, null);
496
496
  }
497
497
  function strict$factory_0() {
498
498
  return getPropertyCallableRef('strict', 1, KProperty1, function (receiver) {
499
- return receiver.g44();
499
+ return receiver.k44();
500
500
  }, null);
501
501
  }
502
502
  function main(args) {
@@ -529,27 +529,27 @@
529
529
  var tmp = Companion_instance_4;
530
530
  var tmp_0 = compile$ref();
531
531
  // Inline function 'kotlin.contracts.contract' call
532
- tmp.x41(tmp_0, convert$ref())(this_1);
532
+ tmp.b42(tmp_0, convert$ref())(this_1);
533
533
  }
534
534
  function compile_0(arguments_0) {
535
- var input = arguments_0.e29_1;
536
- var output = arguments_0.f29_1;
537
- var languages = arguments_0.g29_1;
538
- var packageName = arguments_0.h29_1;
539
- var logger = new Logger(arguments_0.i29_1);
540
- var operation = arguments_0.d29_1;
535
+ var input = arguments_0.h29_1;
536
+ var output = arguments_0.i29_1;
537
+ var languages = arguments_0.j29_1;
538
+ var packageName = arguments_0.k29_1;
539
+ var logger = new Logger(arguments_0.l29_1);
540
+ var operation = arguments_0.g29_1;
541
541
  if (operation instanceof Convert) {
542
542
  var fullPath = input instanceof FullFilePath ? input : THROW_CCE();
543
543
  var file = new JsonFile(fullPath);
544
- var strict = arguments_0.k29_1;
545
- var format = operation.m29_1;
544
+ var strict = arguments_0.n29_1;
545
+ var format = operation.p29_1;
546
546
  var tmp;
547
547
  switch (format.q2_1) {
548
548
  case 0:
549
- tmp = OpenApiV2Parser_instance.p2a(file.z1a(), !strict);
549
+ tmp = OpenApiV2Parser_instance.s2a(file.z1a(), !strict);
550
550
  break;
551
551
  case 1:
552
- tmp = OpenApiV3Parser_instance.p2a(file.z1a(), !strict);
552
+ tmp = OpenApiV3Parser_instance.s2a(file.z1a(), !strict);
553
553
  break;
554
554
  default:
555
555
  noWhenBranchMatchedException();
@@ -572,7 +572,7 @@
572
572
  var tmp_0;
573
573
  if (!emitter.o22_1) {
574
574
  // Inline function 'kotlin.text.replaceFirstChar' call
575
- var this_1 = _FileName___get_value__impl__3u4cz6(fullPath.s29_1);
575
+ var this_1 = _FileName___get_value__impl__3u4cz6(fullPath.v29_1);
576
576
  var tmp_1;
577
577
  // Inline function 'kotlin.text.isNotEmpty' call
578
578
  if (charSequenceLength(this_1) > 0) {
@@ -614,19 +614,19 @@
614
614
  } else {
615
615
  if (input instanceof FullDirPath) {
616
616
  // Inline function 'kotlin.collections.forEach' call
617
- var tmp0_iterator_1 = (new Directory(input.x29_1)).k45().g();
617
+ var tmp0_iterator_1 = (new Directory(input.a2a_1)).o45().g();
618
618
  while (tmp0_iterator_1.h()) {
619
619
  var element = tmp0_iterator_1.i();
620
620
  // Inline function 'community.flock.wirespec.plugin.cli.compile.<anonymous>' call
621
- wirespec(element, languages, packageName, out(element.i45_1, packageName, output), logger);
621
+ wirespec(element, languages, packageName, out(element.m45_1, packageName, output), logger);
622
622
  }
623
623
  } else {
624
624
  if (input instanceof FullFilePath)
625
- if (input.t29_1.equals(FileExtension_Wirespec_getInstance())) {
625
+ if (input.w29_1.equals(FileExtension_Wirespec_getInstance())) {
626
626
  // Inline function 'kotlin.let' call
627
627
  // Inline function 'kotlin.contracts.contract' call
628
628
  var it = new WirespecFile(input);
629
- wirespec(it, languages, packageName, out(it.i45_1, packageName, output), logger);
629
+ wirespec(it, languages, packageName, out(it.m45_1, packageName, output), logger);
630
630
  } else {
631
631
  // Inline function 'kotlin.error' call
632
632
  var message = 'Path ' + input.toString() + ' is not a Wirespec file';
@@ -656,7 +656,7 @@
656
656
  // Inline function 'community.flock.wirespec.plugin.cli.write.<anonymous>' call
657
657
  var name = element.qd();
658
658
  var result = element.rd();
659
- var tmp1_safe_receiver = file == null ? null : file.l45(_FileName___init__impl__nzn12e(name));
659
+ var tmp1_safe_receiver = file == null ? null : file.p45(_FileName___init__impl__nzn12e(name));
660
660
  var tmp;
661
661
  if (tmp1_safe_receiver == null) {
662
662
  tmp = null;
@@ -791,7 +791,7 @@
791
791
  // Inline function 'arrow.core.Either.map.<anonymous>' call
792
792
  // Inline function 'community.flock.wirespec.plugin.cli.wirespec.<anonymous>.<anonymous>.<anonymous>' call
793
793
  var it = results.ak_1;
794
- var tmp$ret$2 = listOf(new Emitted(Companion_getInstance().h24(_FileName___get_value__impl__3u4cz6(path(FileExtension_Wirespec_getInstance()).s29_1)), first(it).j25_1));
794
+ var tmp$ret$2 = listOf(new Emitted(Companion_getInstance().h24(_FileName___get_value__impl__3u4cz6(path(FileExtension_Wirespec_getInstance()).v29_1)), first(it).j25_1));
795
795
  tmp_0 = new Right(tmp$ret$2);
796
796
  } else {
797
797
  if (results instanceof Left) {
@@ -846,7 +846,7 @@
846
846
  function compile$lambda($output) {
847
847
  return function (it) {
848
848
  var tmp = $output;
849
- return new FullFilePath(_Output___get_value__impl__a8kw1g(ensureNotNull(tmp == null ? null : new Output(tmp)).a2a_1), _FileName___init__impl__nzn12e('console'), it);
849
+ return new FullFilePath(_Output___get_value__impl__a8kw1g(ensureNotNull(tmp == null ? null : new Output(tmp)).d2a_1), _FileName___init__impl__nzn12e('console'), it);
850
850
  };
851
851
  }
852
852
  function out$lambda($output, $this_out, $packageName) {
@@ -858,49 +858,49 @@
858
858
  // Inline function 'kotlin.text.lowercase' call
859
859
  // Inline function 'kotlin.js.asDynamic' call
860
860
  var tmp$ret$1 = extension.p2_1.toLowerCase();
861
- tmp = $this_out.r29_1 + '/out/' + tmp$ret$1;
861
+ tmp = $this_out.u29_1 + '/out/' + tmp$ret$1;
862
862
  } else {
863
863
  tmp = new Output(tmp0_elvis_lhs);
864
864
  }
865
865
  var dir = tmp;
866
- return $this_out.v29(toString(dir) + '/' + joinToString(split(_PackageName___get_value__impl__2zr98c($packageName), charArrayOf([_Char___init__impl__6a9atx(46)])), '/'), VOID, extension);
866
+ return $this_out.y29(toString(dir) + '/' + joinToString(split(_PackageName___get_value__impl__2zr98c($packageName), charArrayOf([_Char___init__impl__6a9atx(46)])), '/'), VOID, extension);
867
867
  };
868
868
  }
869
869
  function JavaFile(path) {
870
- File.call(this, path.v29(VOID, VOID, FileExtension_Java_getInstance()));
870
+ File.call(this, path.y29(VOID, VOID, FileExtension_Java_getInstance()));
871
871
  }
872
- protoOf(JavaFile).l45 = function (fileName) {
873
- return new JavaFile(this.i45_1.v29(VOID, fileName));
872
+ protoOf(JavaFile).p45 = function (fileName) {
873
+ return new JavaFile(this.m45_1.y29(VOID, fileName));
874
874
  };
875
875
  function JsonFile(path) {
876
- File.call(this, path.v29(VOID, VOID, FileExtension_Json_getInstance()));
876
+ File.call(this, path.y29(VOID, VOID, FileExtension_Json_getInstance()));
877
877
  }
878
- protoOf(JsonFile).l45 = function (fileName) {
879
- return new JsonFile(this.i45_1.v29(VOID, fileName));
878
+ protoOf(JsonFile).p45 = function (fileName) {
879
+ return new JsonFile(this.m45_1.y29(VOID, fileName));
880
880
  };
881
881
  function KotlinFile(path) {
882
- File.call(this, path.v29(VOID, VOID, FileExtension_Kotlin_getInstance()));
882
+ File.call(this, path.y29(VOID, VOID, FileExtension_Kotlin_getInstance()));
883
883
  }
884
- protoOf(KotlinFile).l45 = function (fileName) {
885
- return new KotlinFile(this.i45_1.v29(VOID, fileName));
884
+ protoOf(KotlinFile).p45 = function (fileName) {
885
+ return new KotlinFile(this.m45_1.y29(VOID, fileName));
886
886
  };
887
887
  function ScalaFile(path) {
888
- File.call(this, path.v29(VOID, VOID, FileExtension_Scala_getInstance()));
888
+ File.call(this, path.y29(VOID, VOID, FileExtension_Scala_getInstance()));
889
889
  }
890
- protoOf(ScalaFile).l45 = function (fileName) {
891
- return new ScalaFile(this.i45_1.v29(VOID, fileName));
890
+ protoOf(ScalaFile).p45 = function (fileName) {
891
+ return new ScalaFile(this.m45_1.y29(VOID, fileName));
892
892
  };
893
893
  function TypeScriptFile(path) {
894
- File.call(this, path.v29(VOID, VOID, FileExtension_TypeScript_getInstance()));
894
+ File.call(this, path.y29(VOID, VOID, FileExtension_TypeScript_getInstance()));
895
895
  }
896
- protoOf(TypeScriptFile).l45 = function (fileName) {
897
- return new TypeScriptFile(this.i45_1.v29(VOID, fileName));
896
+ protoOf(TypeScriptFile).p45 = function (fileName) {
897
+ return new TypeScriptFile(this.m45_1.y29(VOID, fileName));
898
898
  };
899
899
  function WirespecFile(path) {
900
- File.call(this, path.v29(VOID, VOID, FileExtension_Wirespec_getInstance()));
900
+ File.call(this, path.y29(VOID, VOID, FileExtension_Wirespec_getInstance()));
901
901
  }
902
- protoOf(WirespecFile).l45 = function (fileName) {
903
- return new WirespecFile(this.i45_1.v29(VOID, fileName));
902
+ protoOf(WirespecFile).p45 = function (fileName) {
903
+ return new WirespecFile(this.m45_1.y29(VOID, fileName));
904
904
  };
905
905
  function cli(args) {
906
906
  main(args);
@@ -963,14 +963,14 @@
963
963
  return it;
964
964
  }
965
965
  function Directory$wirespecFiles$lambda_0(it) {
966
- return endsWith(it, FileExtension_Wirespec_getInstance().q29_1);
966
+ return endsWith(it, FileExtension_Wirespec_getInstance().t29_1);
967
967
  }
968
968
  function Directory$wirespecFiles$lambda_1(it) {
969
- return dropLast(it, FileExtension_Wirespec_getInstance().q29_1.length + 1 | 0);
969
+ return dropLast(it, FileExtension_Wirespec_getInstance().t29_1.length + 1 | 0);
970
970
  }
971
971
  function Directory$wirespecFiles$lambda_2(this$0) {
972
972
  return function (it) {
973
- return new FullFilePath(this$0.j45_1, _FileName___init__impl__nzn12e(it));
973
+ return new FullFilePath(this$0.n45_1, _FileName___init__impl__nzn12e(it));
974
974
  };
975
975
  }
976
976
  function WirespecFile$_init_$ref_cj1n5j() {
@@ -981,10 +981,10 @@
981
981
  return l;
982
982
  }
983
983
  function Directory(path) {
984
- this.j45_1 = path;
984
+ this.n45_1 = path;
985
985
  }
986
- protoOf(Directory).k45 = function () {
987
- var tmp = asSequence(iterator(get_fs().readdirSync(this.j45_1, 'utf-8')));
986
+ protoOf(Directory).o45 = function () {
987
+ var tmp = asSequence(iterator(get_fs().readdirSync(this.n45_1, 'utf-8')));
988
988
  var tmp_0 = map(tmp, Directory$wirespecFiles$lambda);
989
989
  var tmp_1 = filter(tmp_0, Directory$wirespecFiles$lambda_0);
990
990
  var tmp_2 = map(tmp_1, Directory$wirespecFiles$lambda_1);
@@ -992,20 +992,20 @@
992
992
  return toSet_0(map(tmp_3, WirespecFile$_init_$ref_cj1n5j()));
993
993
  };
994
994
  function File(path) {
995
- this.i45_1 = path;
995
+ this.m45_1 = path;
996
996
  }
997
997
  protoOf(File).z1a = function () {
998
998
  // Inline function 'kotlin.js.unsafeCast' call
999
- return get_fs().readFileSync(this.i45_1.toString(), 'utf-8');
999
+ return get_fs().readFileSync(this.m45_1.toString(), 'utf-8');
1000
1000
  };
1001
1001
  protoOf(File).t18 = function (text) {
1002
1002
  // Inline function 'kotlin.run' call
1003
1003
  // Inline function 'kotlin.contracts.contract' call
1004
1004
  // Inline function 'community.flock.wirespec.plugin.cli.io.File.write.<anonymous>' call
1005
- var $this$run = this.i45_1.v29(joinToString(split_0(this.i45_1.r29_1, ['out']), 'out/node'));
1005
+ var $this$run = this.m45_1.y29(joinToString(split_0(this.m45_1.u29_1, ['out']), 'out/node'));
1006
1006
  // Inline function 'kotlin.js.unsafeCast' call
1007
- if (!get_fs().existsSync($this$run.r29_1)) {
1008
- get_fs().mkdirSync($this$run.r29_1, {recursive: true});
1007
+ if (!get_fs().existsSync($this$run.u29_1)) {
1008
+ get_fs().mkdirSync($this$run.u29_1, {recursive: true});
1009
1009
  }
1010
1010
  get_fs().writeFileSync($this$run.toString(), text);
1011
1011
  };
@@ -141,10 +141,10 @@ export declare namespace community.flock.wirespec.compiler.lib {
141
141
  readonly __doNotUseOrImplementIt: community.flock.wirespec.compiler.lib.WsSegment["__doNotUseOrImplementIt"];
142
142
  }
143
143
  class WsParam implements community.flock.wirespec.compiler.lib.WsSegment {
144
- constructor(identifier: community.flock.wirespec.compiler.lib.WsIdentifier, reference: community.flock.wirespec.compiler.lib.WsReference);
145
- get identifier(): community.flock.wirespec.compiler.lib.WsIdentifier;
144
+ constructor(identifier: community.flock.wirespec.compiler.lib.WsFieldIdentifier, reference: community.flock.wirespec.compiler.lib.WsReference);
145
+ get identifier(): community.flock.wirespec.compiler.lib.WsFieldIdentifier;
146
146
  get reference(): community.flock.wirespec.compiler.lib.WsReference;
147
- copy(identifier?: community.flock.wirespec.compiler.lib.WsIdentifier, reference?: community.flock.wirespec.compiler.lib.WsReference): community.flock.wirespec.compiler.lib.WsParam;
147
+ copy(identifier?: community.flock.wirespec.compiler.lib.WsFieldIdentifier, reference?: community.flock.wirespec.compiler.lib.WsReference): community.flock.wirespec.compiler.lib.WsParam;
148
148
  toString(): string;
149
149
  hashCode(): number;
150
150
  equals(other: Nullable<any>): boolean;
@@ -159,22 +159,37 @@ export declare namespace community.flock.wirespec.compiler.lib {
159
159
  equals(other: Nullable<any>): boolean;
160
160
  }
161
161
  class WsField {
162
- constructor(identifier: community.flock.wirespec.compiler.lib.WsIdentifier, reference: community.flock.wirespec.compiler.lib.WsReference, isNullable: boolean);
163
- get identifier(): community.flock.wirespec.compiler.lib.WsIdentifier;
162
+ constructor(identifier: community.flock.wirespec.compiler.lib.WsFieldIdentifier, reference: community.flock.wirespec.compiler.lib.WsReference, isNullable: boolean);
163
+ get identifier(): community.flock.wirespec.compiler.lib.WsFieldIdentifier;
164
164
  get reference(): community.flock.wirespec.compiler.lib.WsReference;
165
165
  get isNullable(): boolean;
166
- copy(identifier?: community.flock.wirespec.compiler.lib.WsIdentifier, reference?: community.flock.wirespec.compiler.lib.WsReference, isNullable?: boolean): community.flock.wirespec.compiler.lib.WsField;
166
+ copy(identifier?: community.flock.wirespec.compiler.lib.WsFieldIdentifier, reference?: community.flock.wirespec.compiler.lib.WsReference, isNullable?: boolean): community.flock.wirespec.compiler.lib.WsField;
167
167
  toString(): string;
168
168
  hashCode(): number;
169
169
  equals(other: Nullable<any>): boolean;
170
170
  }
171
- class WsIdentifier {
171
+ interface WsIdentifier {
172
+ readonly __doNotUseOrImplementIt: {
173
+ readonly "community.flock.wirespec.compiler.lib.WsIdentifier": unique symbol;
174
+ };
175
+ }
176
+ class WsClassIdentifier implements community.flock.wirespec.compiler.lib.WsIdentifier {
177
+ constructor(value: string);
178
+ get value(): string;
179
+ copy(value?: string): community.flock.wirespec.compiler.lib.WsClassIdentifier;
180
+ toString(): string;
181
+ hashCode(): number;
182
+ equals(other: Nullable<any>): boolean;
183
+ readonly __doNotUseOrImplementIt: community.flock.wirespec.compiler.lib.WsIdentifier["__doNotUseOrImplementIt"];
184
+ }
185
+ class WsFieldIdentifier implements community.flock.wirespec.compiler.lib.WsIdentifier {
172
186
  constructor(value: string);
173
187
  get value(): string;
174
- copy(value?: string): community.flock.wirespec.compiler.lib.WsIdentifier;
188
+ copy(value?: string): community.flock.wirespec.compiler.lib.WsFieldIdentifier;
175
189
  toString(): string;
176
190
  hashCode(): number;
177
191
  equals(other: Nullable<any>): boolean;
192
+ readonly __doNotUseOrImplementIt: community.flock.wirespec.compiler.lib.WsIdentifier["__doNotUseOrImplementIt"];
178
193
  }
179
194
  interface WsReference {
180
195
  readonly isIterable: boolean;
@@ -44,15 +44,15 @@
44
44
  var initMetadataForClass = kotlin_kotlin.$_$.x9;
45
45
  var VOID = kotlin_kotlin.$_$.g;
46
46
  var main = kotlin_community_flock_wirespec_plugin_cli_cli.$_$.a;
47
- var WirespecSpec_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.d2;
48
- var tokenize = kotlin_community_flock_wirespec_compiler_core.$_$.d1;
47
+ var WirespecSpec_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.e2;
48
+ var tokenize = kotlin_community_flock_wirespec_compiler_core.$_$.f1;
49
49
  var produce = kotlin_community_flock_wirespec_compiler_lib.$_$.f;
50
50
  var collectionSizeOrDefault = kotlin_kotlin.$_$.i5;
51
51
  var ArrayList_init_$Create$ = kotlin_kotlin.$_$.k;
52
52
  var NonEmptyList = kotlin_io_arrow_kt_arrow_core.$_$.f;
53
53
  var copyToArray = kotlin_kotlin.$_$.x5;
54
- var get_noLogger = kotlin_community_flock_wirespec_compiler_core.$_$.i1;
55
- var Parser = kotlin_community_flock_wirespec_compiler_core.$_$.s;
54
+ var get_noLogger = kotlin_community_flock_wirespec_compiler_core.$_$.k1;
55
+ var Parser = kotlin_community_flock_wirespec_compiler_core.$_$.u;
56
56
  var produce_0 = kotlin_community_flock_wirespec_compiler_lib.$_$.b;
57
57
  var OpenApiV2Parser_instance = kotlin_community_flock_wirespec_converter_openapi.$_$.b;
58
58
  var produce_1 = kotlin_community_flock_wirespec_compiler_lib.$_$.c;
@@ -194,10 +194,10 @@
194
194
  var tmp;
195
195
  switch (converters.q2_1) {
196
196
  case 0:
197
- tmp = produce_1(OpenApiV2Parser_instance.r2a(source));
197
+ tmp = produce_1(OpenApiV2Parser_instance.u2a(source));
198
198
  break;
199
199
  case 1:
200
- tmp = produce_1(OpenApiV3Parser_instance.h2b(source));
200
+ tmp = produce_1(OpenApiV3Parser_instance.k2b(source));
201
201
  break;
202
202
  default:
203
203
  noWhenBranchMatchedException();
@@ -367,7 +367,7 @@
367
367
  return encode$lambda(serializer);
368
368
  }
369
369
  function emit$emit(receiver, p0) {
370
- return receiver.v2a(p0);
370
+ return receiver.y2a(p0);
371
371
  }
372
372
  function Emitted$_init_$ref_9uzepx() {
373
373
  var l = function (p0, p1) {