@flock/wirespec 0.10.0 → 0.10.2

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.
@@ -32,30 +32,30 @@
32
32
  //region block: imports
33
33
  var Unit_instance = kotlin_kotlin.$_$.g4;
34
34
  var subcommands = kotlin_clikt_clikt.$_$.c;
35
- var protoOf = kotlin_kotlin.$_$.va;
36
- var initMetadataForCompanion = kotlin_kotlin.$_$.w9;
35
+ var protoOf = kotlin_kotlin.$_$.wa;
36
+ var initMetadataForCompanion = kotlin_kotlin.$_$.x9;
37
37
  var NoOpCliktCommand = kotlin_clikt_clikt.$_$.b;
38
38
  var VOID = kotlin_kotlin.$_$.g;
39
- var initMetadataForClass = kotlin_kotlin.$_$.v9;
39
+ var initMetadataForClass = kotlin_kotlin.$_$.w9;
40
40
  var option = kotlin_clikt_clikt.$_$.h;
41
41
  var Companion_instance = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.x;
42
42
  var choice = kotlin_clikt_clikt.$_$.j;
43
43
  var multiple = kotlin_clikt_clikt.$_$.g;
44
44
  var Compile_instance = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.y;
45
45
  var Companion_instance_0 = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.z;
46
- var toSet = kotlin_kotlin.$_$.o8;
46
+ var toSet = kotlin_kotlin.$_$.p8;
47
47
  var _PackageName___init__impl__s13tbs = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.t;
48
48
  var CompilerArguments = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.a;
49
49
  var argument = kotlin_clikt_clikt.$_$.d;
50
50
  var values = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.c;
51
- var mapCapacity = kotlin_kotlin.$_$.h7;
52
- var coerceAtLeast = kotlin_kotlin.$_$.gb;
51
+ var mapCapacity = kotlin_kotlin.$_$.i7;
52
+ var coerceAtLeast = kotlin_kotlin.$_$.hb;
53
53
  var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.t;
54
54
  var choice_0 = kotlin_clikt_clikt.$_$.i;
55
55
  var Language_Wirespec_getInstance = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.p;
56
- var listOf = kotlin_kotlin.$_$.f7;
56
+ var listOf = kotlin_kotlin.$_$.g7;
57
57
  var Convert = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.g;
58
- var setOf = kotlin_kotlin.$_$.t7;
58
+ var setOf = kotlin_kotlin.$_$.u7;
59
59
  var CliktCommand = kotlin_clikt_clikt.$_$.a;
60
60
  var default_0 = kotlin_clikt_clikt.$_$.e;
61
61
  var Companion_instance_1 = kotlin_community_flock_wirespec_compiler_core.$_$.e2;
@@ -64,39 +64,39 @@
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;
66
66
  var Console_instance = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.v;
67
- var toString = kotlin_kotlin.$_$.za;
67
+ var toString = kotlin_kotlin.$_$.ab;
68
68
  var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.l1;
69
- var THROW_CCE = kotlin_kotlin.$_$.gf;
70
- var isCharSequence = kotlin_kotlin.$_$.fa;
71
- var trim = kotlin_kotlin.$_$.ne;
69
+ var THROW_CCE = kotlin_kotlin.$_$.hf;
70
+ var isCharSequence = kotlin_kotlin.$_$.ga;
71
+ var trim = kotlin_kotlin.$_$.oe;
72
72
  var Level_DEBUG_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.v1;
73
73
  var Level_INFO_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.x1;
74
74
  var Level_WARN_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.y1;
75
- var Enum = kotlin_kotlin.$_$.we;
76
- var KProperty1 = kotlin_kotlin.$_$.qb;
77
- var getPropertyCallableRef = kotlin_kotlin.$_$.s9;
78
- var numberRangeToNumber = kotlin_kotlin.$_$.pa;
75
+ var Enum = kotlin_kotlin.$_$.xe;
76
+ var KProperty1 = kotlin_kotlin.$_$.rb;
77
+ var getPropertyCallableRef = kotlin_kotlin.$_$.t9;
78
+ var numberRangeToNumber = kotlin_kotlin.$_$.qa;
79
79
  var ArrayList_init_$Create$ = kotlin_kotlin.$_$.l;
80
- var copyToArray = kotlin_kotlin.$_$.w5;
80
+ var copyToArray = kotlin_kotlin.$_$.x5;
81
81
  var Logger = kotlin_community_flock_wirespec_compiler_core.$_$.h1;
82
- var noWhenBranchMatchedException = kotlin_kotlin.$_$.cg;
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;
85
85
  var Console = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.b;
86
86
  var Compile = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.f;
87
87
  var OpenApiV2Parser_instance = kotlin_community_flock_wirespec_converter_openapi.$_$.b;
88
88
  var OpenApiV3Parser_instance = kotlin_community_flock_wirespec_converter_openapi.$_$.d;
89
- var collectionSizeOrDefault = kotlin_kotlin.$_$.h5;
89
+ var collectionSizeOrDefault = kotlin_kotlin.$_$.i5;
90
90
  var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.k;
91
- var to = kotlin_kotlin.$_$.fg;
91
+ var to = kotlin_kotlin.$_$.gg;
92
92
  var _FileName___get_value__impl__3u4cz6 = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.r;
93
- var charSequenceLength = kotlin_kotlin.$_$.k9;
94
- var charSequenceGet = kotlin_kotlin.$_$.j9;
93
+ var charSequenceLength = kotlin_kotlin.$_$.l9;
94
+ var charSequenceGet = kotlin_kotlin.$_$.k9;
95
95
  var toString_0 = kotlin_kotlin.$_$.z1;
96
- var first = kotlin_kotlin.$_$.g6;
96
+ var first = kotlin_kotlin.$_$.h6;
97
97
  var Emitted = kotlin_community_flock_wirespec_compiler_core.$_$.a;
98
98
  var _FileName___init__impl__nzn12e = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.q;
99
- var print = kotlin_kotlin.$_$.c9;
99
+ var print = kotlin_kotlin.$_$.d9;
100
100
  var PackageName = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.i;
101
101
  var component1 = kotlin_community_flock_wirespec_compiler_core.$_$.f1;
102
102
  var JavaEmitter = kotlin_community_flock_wirespec_compiler_core.$_$.b;
@@ -114,35 +114,35 @@
114
114
  var Left = kotlin_io_arrow_kt_arrow_core.$_$.d;
115
115
  var Companion_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.b2;
116
116
  var Right = kotlin_io_arrow_kt_arrow_core.$_$.e;
117
- var println = kotlin_kotlin.$_$.a9;
117
+ var println = kotlin_kotlin.$_$.b9;
118
118
  var Output = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.h;
119
- var ensureNotNull = kotlin_kotlin.$_$.wf;
119
+ var ensureNotNull = kotlin_kotlin.$_$.xf;
120
120
  var _Output___get_value__impl__a8kw1g = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.s;
121
121
  var _PackageName___get_value__impl__2zr98c = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.u;
122
122
  var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.v1;
123
- var charArrayOf = kotlin_kotlin.$_$.h9;
124
- var split = kotlin_kotlin.$_$.ld;
125
- var joinToString = kotlin_kotlin.$_$.r6;
123
+ var charArrayOf = kotlin_kotlin.$_$.i9;
124
+ var split = kotlin_kotlin.$_$.md;
125
+ var joinToString = kotlin_kotlin.$_$.s6;
126
126
  var FileExtension_Json_getInstance = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.k;
127
127
  var parse = kotlin_community_flock_wirespec_compiler_core.$_$.g1;
128
128
  var get_noLogger = kotlin_community_flock_wirespec_compiler_core.$_$.i1;
129
129
  var Definition = kotlin_community_flock_wirespec_compiler_core.$_$.j;
130
- var isInterface = kotlin_kotlin.$_$.ja;
130
+ var isInterface = kotlin_kotlin.$_$.ka;
131
131
  var produce = kotlin_community_flock_wirespec_compiler_lib.$_$.e;
132
- var endsWith = kotlin_kotlin.$_$.lc;
133
- var dropLast = kotlin_kotlin.$_$.ic;
134
- var iterator = kotlin_kotlin.$_$.ma;
135
- var asSequence = kotlin_kotlin.$_$.sb;
136
- var map = kotlin_kotlin.$_$.xb;
137
- var filter = kotlin_kotlin.$_$.tb;
138
- var toSet_0 = kotlin_kotlin.$_$.zb;
139
- var split_0 = kotlin_kotlin.$_$.md;
132
+ var endsWith = kotlin_kotlin.$_$.mc;
133
+ var dropLast = kotlin_kotlin.$_$.jc;
134
+ var iterator = kotlin_kotlin.$_$.na;
135
+ var asSequence = kotlin_kotlin.$_$.tb;
136
+ var map = kotlin_kotlin.$_$.yb;
137
+ var filter = kotlin_kotlin.$_$.ub;
138
+ var toSet_0 = kotlin_kotlin.$_$.ac;
139
+ var split_0 = kotlin_kotlin.$_$.nd;
140
140
  var Companion_instance_3 = kotlin_kotlin.$_$.b4;
141
141
  var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.a2;
142
- var createFailure = kotlin_kotlin.$_$.vf;
142
+ var createFailure = kotlin_kotlin.$_$.wf;
143
143
  var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.d2;
144
144
  var _Result___get_isFailure__impl__jpiriv = kotlin_kotlin.$_$.b2;
145
- var isArray = kotlin_kotlin.$_$.ba;
145
+ var isArray = kotlin_kotlin.$_$.ca;
146
146
  //endregion
147
147
  //region block: pre-declaration
148
148
  initMetadataForCompanion(Companion);
@@ -162,7 +162,7 @@
162
162
  //endregion
163
163
  function WirespecCli$main$ref($boundThis) {
164
164
  var l = function (p0) {
165
- $boundThis.s3u(p0);
165
+ $boundThis.u3u(p0);
166
166
  return Unit_instance;
167
167
  };
168
168
  l.callableName = 'main';
@@ -170,7 +170,7 @@
170
170
  }
171
171
  function Companion() {
172
172
  }
173
- protoOf(Companion).x46 = function (compile, convert) {
173
+ protoOf(Companion).z46 = function (compile, convert) {
174
174
  return WirespecCli$main$ref(subcommands(new WirespecCli(), [new Compile_0(compile), new Convert_0(convert)]));
175
175
  };
176
176
  var Companion_instance_4;
@@ -181,28 +181,28 @@
181
181
  NoOpCliktCommand.call(this, VOID, VOID, 'wirespec');
182
182
  }
183
183
  function _get_languages__ojonze($this) {
184
- return $this.x47_1.e44($this, languages$factory_0());
184
+ return $this.z47_1.g44($this, languages$factory_0());
185
185
  }
186
186
  function Compile_0(block) {
187
187
  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());
188
+ this.y47_1 = block;
189
+ this.z47_1 = multiple(choice(option(this, Options_Language_getInstance().c48_1.slice(), 'Language'), Companion_instance.z2e()), VOID, true).r44(this, languages$factory());
190
190
  }
191
- protoOf(Compile_0).t3u = function () {
191
+ protoOf(Compile_0).v3u = function () {
192
192
  // 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());
193
+ var this_0 = new CompilerArguments(Compile_instance, this.c49(this.b49()), Companion_instance_0.a2f(this.d49()), toSet(_get_languages__ojonze(this)), _PackageName___init__impl__s13tbs(this.e49()), this.g49(this.f49()), this.h49(), this.i49());
194
194
  // Inline function 'kotlin.contracts.contract' call
195
- this.w47_1(this_0);
195
+ this.y47_1(this_0);
196
196
  };
197
197
  function _get_format__qlarck($this) {
198
- return $this.g4a_1.e44($this, format$factory_0());
198
+ return $this.i4a_1.g44($this, format$factory_0());
199
199
  }
200
200
  function _get_languages__ojonze_0($this) {
201
- return $this.h4a_1.e44($this, languages$factory_2());
201
+ return $this.j4a_1.g44($this, languages$factory_2());
202
202
  }
203
203
  function Convert_0(block) {
204
204
  CommonOptions.call(this);
205
- this.f4a_1 = block;
205
+ this.h4a_1 = block;
206
206
  var tmp = this;
207
207
  // Inline function 'com.github.ajalt.clikt.parameters.types.enum' call
208
208
  var this_0 = argument(this, VOID, 'Input format');
@@ -222,21 +222,21 @@
222
222
  var tmp$ret$2 = element.p2_1;
223
223
  destination.m2(tmp$ret$2, element);
224
224
  }
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());
225
+ tmp.i4a_1 = choice_0(this_0, destination, true).m43(this, format$factory());
226
+ this.j4a_1 = multiple(choice(option(this, Options_Language_getInstance().c48_1.slice(), 'Language'), Companion_instance.z2e(), VOID, true), listOf(Language_Wirespec_getInstance())).r44(this, languages$factory_1());
227
227
  }
228
- protoOf(Convert_0).t3u = function () {
229
- if (this.z48() == null)
228
+ protoOf(Convert_0).v3u = function () {
229
+ if (this.b49() == null)
230
230
  null;
231
231
  else {
232
232
  // Inline function 'kotlin.let' call
233
233
  // Inline function 'kotlin.contracts.contract' call
234
- this.m3u('To convert, please specify a file', VOID, true);
234
+ this.o3u('To convert, please specify a file', VOID, true);
235
235
  }
236
236
  // Inline function 'kotlin.let' call
237
237
  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());
238
+ var tmp_0 = this.c49(null);
239
+ var tmp_1 = Companion_instance_0.a2f(this.d49());
240
240
  // Inline function 'kotlin.collections.ifEmpty' call
241
241
  var this_0 = toSet(_get_languages__ojonze_0(this));
242
242
  // Inline function 'kotlin.contracts.contract' call
@@ -248,42 +248,42 @@
248
248
  tmp_2 = this_0;
249
249
  }
250
250
  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());
251
+ var this_1 = new CompilerArguments(tmp, tmp_0, tmp_1, tmp$ret$2, _PackageName___init__impl__s13tbs(this.e49()), this.g49(this.f49()), this.h49(), this.i49());
252
252
  // Inline function 'kotlin.contracts.contract' call
253
- this.f4a_1(this_1);
253
+ this.h4a_1(this_1);
254
254
  };
255
255
  function _get_inputFile__x1bqj($this) {
256
- return $this.s48_1.e44($this, inputFile$factory_0());
256
+ return $this.u48_1.g44($this, inputFile$factory_0());
257
257
  }
258
258
  function CommonOptions() {
259
259
  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());
270
- };
260
+ this.u48_1 = option(this, Options_InputFile_getInstance().c48_1.slice(), 'Input file').r44(this, inputFile$factory());
261
+ this.v48_1 = option(this, Options_InputDir_getInstance().c48_1.slice(), 'Input directory').r44(this, inputDir$factory());
262
+ this.w48_1 = option(this, Options_OutputDir_getInstance().c48_1.slice(), 'Output directory').r44(this, outputDir$factory());
263
+ this.x48_1 = default_0(option(this, Options_PackageName_getInstance().c48_1.slice(), 'Package name'), 'community.flock.wirespec.generated').r44(this, packageName$factory());
264
+ this.y48_1 = default_0(option(this, Options_LogLevel_getInstance().c48_1.slice(), 'Log level: ' + Companion_instance_1.toString()), Level_ERROR_getInstance().toString()).r44(this, logLevel$factory());
265
+ this.z48_1 = flag(option(this, Options_Shared_getInstance().c48_1.slice(), 'Generate shared wirespec code'), [], false).r44(this, shared$factory());
266
+ this.a49_1 = flag(option(this, Options_Strict_getInstance().c48_1.slice(), 'Strict mode'), []).r44(this, strict$factory());
267
+ }
271
268
  protoOf(CommonOptions).b49 = function () {
272
- return this.u48_1.e44(this, outputDir$factory_0());
273
- };
274
- protoOf(CommonOptions).c49 = function () {
275
- return this.v48_1.e44(this, packageName$factory_0());
269
+ return this.v48_1.g44(this, inputDir$factory_0());
276
270
  };
277
271
  protoOf(CommonOptions).d49 = function () {
278
- return this.w48_1.e44(this, logLevel$factory_0());
272
+ return this.w48_1.g44(this, outputDir$factory_0());
273
+ };
274
+ protoOf(CommonOptions).e49 = function () {
275
+ return this.x48_1.g44(this, packageName$factory_0());
279
276
  };
280
277
  protoOf(CommonOptions).f49 = function () {
281
- return this.x48_1.e44(this, shared$factory_0());
278
+ return this.y48_1.g44(this, logLevel$factory_0());
279
+ };
280
+ protoOf(CommonOptions).h49 = function () {
281
+ return this.z48_1.g44(this, shared$factory_0());
282
282
  };
283
- protoOf(CommonOptions).g49 = function () {
284
- return this.y48_1.e44(this, strict$factory_0());
283
+ protoOf(CommonOptions).i49 = function () {
284
+ return this.a49_1.g44(this, strict$factory_0());
285
285
  };
286
- protoOf(CommonOptions).a49 = function (inputDir) {
286
+ protoOf(CommonOptions).c49 = function (inputDir) {
287
287
  var tmp;
288
288
  if (!(inputDir == null) && !(_get_inputFile__x1bqj(this) == null)) {
289
289
  var message = 'Choose either a file or a directory. Not Both.';
@@ -296,7 +296,7 @@
296
296
  } else {
297
297
  // Inline function 'kotlin.let' call
298
298
  // Inline function 'kotlin.contracts.contract' call
299
- tmp_0 = Companion_instance_2.m2e(tmp0_safe_receiver);
299
+ tmp_0 = Companion_instance_2.o2e(tmp0_safe_receiver);
300
300
  }
301
301
  var tmp0_elvis_lhs = tmp_0;
302
302
  var tmp_1;
@@ -318,7 +318,7 @@
318
318
  }
319
319
  return tmp;
320
320
  };
321
- protoOf(CommonOptions).e49 = function (_this__u8e3s4) {
321
+ protoOf(CommonOptions).g49 = function (_this__u8e3s4) {
322
322
  // Inline function 'kotlin.text.uppercase' call
323
323
  // Inline function 'kotlin.text.trim' call
324
324
  // Inline function 'kotlin.js.asDynamic' call
@@ -366,7 +366,7 @@
366
366
  }
367
367
  function Options(name, ordinal, flags) {
368
368
  Enum.call(this, name, ordinal);
369
- this.a48_1 = flags;
369
+ this.c48_1 = flags;
370
370
  }
371
371
  function Options_InputDir_getInstance() {
372
372
  Options_initEntries();
@@ -437,32 +437,32 @@
437
437
  }
438
438
  function inputDir$factory() {
439
439
  return getPropertyCallableRef('inputDir', 1, KProperty1, function (receiver) {
440
- return receiver.z48();
440
+ return receiver.b49();
441
441
  }, null);
442
442
  }
443
443
  function outputDir$factory() {
444
444
  return getPropertyCallableRef('outputDir', 1, KProperty1, function (receiver) {
445
- return receiver.b49();
445
+ return receiver.d49();
446
446
  }, null);
447
447
  }
448
448
  function packageName$factory() {
449
449
  return getPropertyCallableRef('packageName', 1, KProperty1, function (receiver) {
450
- return receiver.c49();
450
+ return receiver.e49();
451
451
  }, null);
452
452
  }
453
453
  function logLevel$factory() {
454
454
  return getPropertyCallableRef('logLevel', 1, KProperty1, function (receiver) {
455
- return receiver.d49();
455
+ return receiver.f49();
456
456
  }, null);
457
457
  }
458
458
  function shared$factory() {
459
459
  return getPropertyCallableRef('shared', 1, KProperty1, function (receiver) {
460
- return receiver.f49();
460
+ return receiver.h49();
461
461
  }, null);
462
462
  }
463
463
  function strict$factory() {
464
464
  return getPropertyCallableRef('strict', 1, KProperty1, function (receiver) {
465
- return receiver.g49();
465
+ return receiver.i49();
466
466
  }, null);
467
467
  }
468
468
  function inputFile$factory_0() {
@@ -472,32 +472,32 @@
472
472
  }
473
473
  function inputDir$factory_0() {
474
474
  return getPropertyCallableRef('inputDir', 1, KProperty1, function (receiver) {
475
- return receiver.z48();
475
+ return receiver.b49();
476
476
  }, null);
477
477
  }
478
478
  function outputDir$factory_0() {
479
479
  return getPropertyCallableRef('outputDir', 1, KProperty1, function (receiver) {
480
- return receiver.b49();
480
+ return receiver.d49();
481
481
  }, null);
482
482
  }
483
483
  function packageName$factory_0() {
484
484
  return getPropertyCallableRef('packageName', 1, KProperty1, function (receiver) {
485
- return receiver.c49();
485
+ return receiver.e49();
486
486
  }, null);
487
487
  }
488
488
  function logLevel$factory_0() {
489
489
  return getPropertyCallableRef('logLevel', 1, KProperty1, function (receiver) {
490
- return receiver.d49();
490
+ return receiver.f49();
491
491
  }, null);
492
492
  }
493
493
  function shared$factory_0() {
494
494
  return getPropertyCallableRef('shared', 1, KProperty1, function (receiver) {
495
- return receiver.f49();
495
+ return receiver.h49();
496
496
  }, null);
497
497
  }
498
498
  function strict$factory_0() {
499
499
  return getPropertyCallableRef('strict', 1, KProperty1, function (receiver) {
500
- return receiver.g49();
500
+ return receiver.i49();
501
501
  }, null);
502
502
  }
503
503
  function main(args) {
@@ -525,27 +525,27 @@
525
525
  var tmp = Companion_instance_4;
526
526
  var tmp_0 = compile$ref();
527
527
  // Inline function 'kotlin.contracts.contract' call
528
- tmp.x46(tmp_0, convert$ref())(this_1);
528
+ tmp.z46(tmp_0, convert$ref())(this_1);
529
529
  }
530
530
  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;
531
+ var input = arguments_0.f2e_1;
532
+ var output = arguments_0.g2e_1;
533
+ var languages = arguments_0.h2e_1;
534
+ var packageName = arguments_0.i2e_1;
535
+ var logger = new Logger(arguments_0.j2e_1);
536
+ var operation = arguments_0.e2e_1;
537
537
  if (operation instanceof Convert) {
538
538
  var fullPath = input instanceof FullFilePath ? input : THROW_CCE();
539
539
  var file = new JsonFile(fullPath);
540
- var strict = arguments_0.j2e_1;
541
- var format = operation.l2e_1;
540
+ var strict = arguments_0.l2e_1;
541
+ var format = operation.n2e_1;
542
542
  var tmp;
543
543
  switch (format.q2_1) {
544
544
  case 0:
545
- tmp = OpenApiV2Parser_instance.o2f(file.y1a(), !strict);
545
+ tmp = OpenApiV2Parser_instance.q2f(file.y1a(), !strict);
546
546
  break;
547
547
  case 1:
548
- tmp = OpenApiV3Parser_instance.o2f(file.y1a(), !strict);
548
+ tmp = OpenApiV3Parser_instance.q2f(file.y1a(), !strict);
549
549
  break;
550
550
  default:
551
551
  noWhenBranchMatchedException();
@@ -568,7 +568,7 @@
568
568
  var tmp_0;
569
569
  if (!emitter.n22_1) {
570
570
  // Inline function 'kotlin.text.replaceFirstChar' call
571
- var this_1 = _FileName___get_value__impl__3u4cz6(fullPath.r2e_1);
571
+ var this_1 = _FileName___get_value__impl__3u4cz6(fullPath.t2e_1);
572
572
  var tmp_1;
573
573
  // Inline function 'kotlin.text.isNotEmpty' call
574
574
  if (charSequenceLength(this_1) > 0) {
@@ -609,19 +609,19 @@
609
609
  } else {
610
610
  if (input instanceof FullDirPath) {
611
611
  // Inline function 'kotlin.collections.forEach' call
612
- var tmp0_iterator_1 = (new Directory(input.w2e_1)).k4a().g();
612
+ var tmp0_iterator_1 = (new Directory(input.y2e_1)).m4a().g();
613
613
  while (tmp0_iterator_1.h()) {
614
614
  var element = tmp0_iterator_1.i();
615
615
  // Inline function 'community.flock.wirespec.plugin.cli.compile.<anonymous>' call
616
- wirespec(element, languages, packageName, out(element.i4a_1, packageName, output), logger);
616
+ wirespec(element, languages, packageName, out(element.k4a_1, packageName, output), logger);
617
617
  }
618
618
  } else {
619
619
  if (input instanceof FullFilePath)
620
- if (input.s2e_1.equals(FileExtension_Wirespec_getInstance())) {
620
+ if (input.u2e_1.equals(FileExtension_Wirespec_getInstance())) {
621
621
  // Inline function 'kotlin.let' call
622
622
  // Inline function 'kotlin.contracts.contract' call
623
623
  var it = new WirespecFile(input);
624
- wirespec(it, languages, packageName, out(it.i4a_1, packageName, output), logger);
624
+ wirespec(it, languages, packageName, out(it.k4a_1, packageName, output), logger);
625
625
  } else {
626
626
  // Inline function 'kotlin.error' call
627
627
  var message = 'Path ' + input.toString() + ' is not a Wirespec file';
@@ -651,7 +651,7 @@
651
651
  // Inline function 'community.flock.wirespec.plugin.cli.write.<anonymous>' call
652
652
  var name = element.od();
653
653
  var result = element.pd();
654
- var tmp15_safe_receiver = file == null ? null : file.l4a(_FileName___init__impl__nzn12e(name));
654
+ var tmp15_safe_receiver = file == null ? null : file.n4a(_FileName___init__impl__nzn12e(name));
655
655
  var tmp;
656
656
  if (tmp15_safe_receiver == null) {
657
657
  tmp = null;
@@ -800,7 +800,7 @@
800
800
  // Inline function 'arrow.core.Either.map.<anonymous>' call
801
801
  // Inline function 'community.flock.wirespec.plugin.cli.wirespec.<anonymous>.<anonymous>.<anonymous>' call
802
802
  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));
803
+ var tmp$ret$2 = listOf(new Emitted(Companion_getInstance().h23(_FileName___get_value__impl__3u4cz6(path(FileExtension_Wirespec_getInstance()).t2e_1)), first(it).w24_1));
804
804
  tmp_0 = new Right(tmp$ret$2);
805
805
  } else {
806
806
  if (results instanceof Left) {
@@ -855,7 +855,7 @@
855
855
  function compile$lambda($output) {
856
856
  return function (it) {
857
857
  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);
858
+ return new FullFilePath(_Output___get_value__impl__a8kw1g(ensureNotNull(tmp == null ? null : new Output(tmp)).b2f_1), _FileName___init__impl__nzn12e('console'), it);
859
859
  };
860
860
  }
861
861
  function out$lambda($output, $this_out, $packageName) {
@@ -867,49 +867,49 @@
867
867
  // Inline function 'kotlin.text.lowercase' call
868
868
  // Inline function 'kotlin.js.asDynamic' call
869
869
  var tmp$ret$1 = extension.p2_1.toLowerCase();
870
- tmp = $this_out.q2e_1 + '/out/' + tmp$ret$1;
870
+ tmp = $this_out.s2e_1 + '/out/' + tmp$ret$1;
871
871
  } else {
872
872
  tmp = new Output(tmp0_elvis_lhs);
873
873
  }
874
874
  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);
875
+ return $this_out.w2e(toString(dir) + '/' + joinToString(split(_PackageName___get_value__impl__2zr98c($packageName), charArrayOf([_Char___init__impl__6a9atx(46)])), '/'), VOID, extension);
876
876
  };
877
877
  }
878
878
  function JavaFile(path) {
879
- File.call(this, path.u2e(VOID, VOID, FileExtension_Java_getInstance()));
879
+ File.call(this, path.w2e(VOID, VOID, FileExtension_Java_getInstance()));
880
880
  }
881
- protoOf(JavaFile).l4a = function (fileName) {
882
- return new JavaFile(this.i4a_1.u2e(VOID, fileName));
881
+ protoOf(JavaFile).n4a = function (fileName) {
882
+ return new JavaFile(this.k4a_1.w2e(VOID, fileName));
883
883
  };
884
884
  function JsonFile(path) {
885
- File.call(this, path.u2e(VOID, VOID, FileExtension_Json_getInstance()));
885
+ File.call(this, path.w2e(VOID, VOID, FileExtension_Json_getInstance()));
886
886
  }
887
- protoOf(JsonFile).l4a = function (fileName) {
888
- return new JsonFile(this.i4a_1.u2e(VOID, fileName));
887
+ protoOf(JsonFile).n4a = function (fileName) {
888
+ return new JsonFile(this.k4a_1.w2e(VOID, fileName));
889
889
  };
890
890
  function KotlinFile(path) {
891
- File.call(this, path.u2e(VOID, VOID, FileExtension_Kotlin_getInstance()));
891
+ File.call(this, path.w2e(VOID, VOID, FileExtension_Kotlin_getInstance()));
892
892
  }
893
- protoOf(KotlinFile).l4a = function (fileName) {
894
- return new KotlinFile(this.i4a_1.u2e(VOID, fileName));
893
+ protoOf(KotlinFile).n4a = function (fileName) {
894
+ return new KotlinFile(this.k4a_1.w2e(VOID, fileName));
895
895
  };
896
896
  function ScalaFile(path) {
897
- File.call(this, path.u2e(VOID, VOID, FileExtension_Scala_getInstance()));
897
+ File.call(this, path.w2e(VOID, VOID, FileExtension_Scala_getInstance()));
898
898
  }
899
- protoOf(ScalaFile).l4a = function (fileName) {
900
- return new ScalaFile(this.i4a_1.u2e(VOID, fileName));
899
+ protoOf(ScalaFile).n4a = function (fileName) {
900
+ return new ScalaFile(this.k4a_1.w2e(VOID, fileName));
901
901
  };
902
902
  function TypeScriptFile(path) {
903
- File.call(this, path.u2e(VOID, VOID, FileExtension_TypeScript_getInstance()));
903
+ File.call(this, path.w2e(VOID, VOID, FileExtension_TypeScript_getInstance()));
904
904
  }
905
- protoOf(TypeScriptFile).l4a = function (fileName) {
906
- return new TypeScriptFile(this.i4a_1.u2e(VOID, fileName));
905
+ protoOf(TypeScriptFile).n4a = function (fileName) {
906
+ return new TypeScriptFile(this.k4a_1.w2e(VOID, fileName));
907
907
  };
908
908
  function WirespecFile(path) {
909
- File.call(this, path.u2e(VOID, VOID, FileExtension_Wirespec_getInstance()));
909
+ File.call(this, path.w2e(VOID, VOID, FileExtension_Wirespec_getInstance()));
910
910
  }
911
- protoOf(WirespecFile).l4a = function (fileName) {
912
- return new WirespecFile(this.i4a_1.u2e(VOID, fileName));
911
+ protoOf(WirespecFile).n4a = function (fileName) {
912
+ return new WirespecFile(this.k4a_1.w2e(VOID, fileName));
913
913
  };
914
914
  function cli(args) {
915
915
  main(args);
@@ -972,14 +972,14 @@
972
972
  return it;
973
973
  }
974
974
  function Directory$wirespecFiles$lambda_0(it) {
975
- return endsWith(it, FileExtension_Wirespec_getInstance().p2e_1);
975
+ return endsWith(it, FileExtension_Wirespec_getInstance().r2e_1);
976
976
  }
977
977
  function Directory$wirespecFiles$lambda_1(it) {
978
- return dropLast(it, FileExtension_Wirespec_getInstance().p2e_1.length + 1 | 0);
978
+ return dropLast(it, FileExtension_Wirespec_getInstance().r2e_1.length + 1 | 0);
979
979
  }
980
980
  function Directory$wirespecFiles$lambda_2(this$0) {
981
981
  return function (it) {
982
- return new FullFilePath(this$0.j4a_1, _FileName___init__impl__nzn12e(it));
982
+ return new FullFilePath(this$0.l4a_1, _FileName___init__impl__nzn12e(it));
983
983
  };
984
984
  }
985
985
  function WirespecFile$_init_$ref_cj1n5j() {
@@ -990,10 +990,10 @@
990
990
  return l;
991
991
  }
992
992
  function Directory(path) {
993
- this.j4a_1 = path;
993
+ this.l4a_1 = path;
994
994
  }
995
- protoOf(Directory).k4a = function () {
996
- var tmp = asSequence(iterator(get_fs().readdirSync(this.j4a_1, 'utf-8')));
995
+ protoOf(Directory).m4a = function () {
996
+ var tmp = asSequence(iterator(get_fs().readdirSync(this.l4a_1, 'utf-8')));
997
997
  var tmp_0 = map(tmp, Directory$wirespecFiles$lambda);
998
998
  var tmp_1 = filter(tmp_0, Directory$wirespecFiles$lambda_0);
999
999
  var tmp_2 = map(tmp_1, Directory$wirespecFiles$lambda_1);
@@ -1001,20 +1001,20 @@
1001
1001
  return toSet_0(map(tmp_3, WirespecFile$_init_$ref_cj1n5j()));
1002
1002
  };
1003
1003
  function File(path) {
1004
- this.i4a_1 = path;
1004
+ this.k4a_1 = path;
1005
1005
  }
1006
1006
  protoOf(File).y1a = function () {
1007
1007
  // Inline function 'kotlin.js.unsafeCast' call
1008
- return get_fs().readFileSync(this.i4a_1.toString(), 'utf-8');
1008
+ return get_fs().readFileSync(this.k4a_1.toString(), 'utf-8');
1009
1009
  };
1010
1010
  protoOf(File).s18 = function (text) {
1011
1011
  // Inline function 'kotlin.run' call
1012
1012
  // Inline function 'kotlin.contracts.contract' call
1013
1013
  // 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'));
1014
+ var $this$run = this.k4a_1.w2e(joinToString(split_0(this.k4a_1.s2e_1, ['out']), 'out/node'));
1015
1015
  // 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});
1016
+ if (!get_fs().existsSync($this$run.s2e_1)) {
1017
+ get_fs().mkdirSync($this$run.s2e_1, {recursive: true});
1018
1018
  }
1019
1019
  get_fs().writeFileSync($this$run.toString(), text);
1020
1020
  };