@flock/wirespec 0.9.29 → 0.10.0

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,54 +32,54 @@
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.$_$.ua;
36
- var initMetadataForCompanion = kotlin_kotlin.$_$.v9;
35
+ var protoOf = kotlin_kotlin.$_$.va;
36
+ var initMetadataForCompanion = kotlin_kotlin.$_$.w9;
37
37
  var NoOpCliktCommand = kotlin_clikt_clikt.$_$.b;
38
38
  var VOID = kotlin_kotlin.$_$.g;
39
- var initMetadataForClass = kotlin_kotlin.$_$.u9;
39
+ var initMetadataForClass = kotlin_kotlin.$_$.v9;
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.$_$.n8;
46
+ var toSet = kotlin_kotlin.$_$.o8;
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.$_$.g7;
52
- var coerceAtLeast = kotlin_kotlin.$_$.fb;
51
+ var mapCapacity = kotlin_kotlin.$_$.h7;
52
+ var coerceAtLeast = kotlin_kotlin.$_$.gb;
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.$_$.e7;
56
+ var listOf = kotlin_kotlin.$_$.f7;
57
57
  var Convert = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.g;
58
- var setOf = kotlin_kotlin.$_$.s7;
58
+ var setOf = kotlin_kotlin.$_$.t7;
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.$_$.d2;
62
- var Level_ERROR_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.v1;
61
+ var Companion_instance_1 = kotlin_community_flock_wirespec_compiler_core.$_$.e2;
62
+ var Level_ERROR_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.w1;
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;
66
66
  var Console_instance = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.v;
67
- var toString = kotlin_kotlin.$_$.ya;
67
+ var toString = kotlin_kotlin.$_$.za;
68
68
  var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.l1;
69
- var THROW_CCE = kotlin_kotlin.$_$.ff;
70
- var isCharSequence = kotlin_kotlin.$_$.ea;
71
- var trim = kotlin_kotlin.$_$.me;
72
- var Level_DEBUG_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.u1;
73
- var Level_INFO_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.w1;
74
- var Level_WARN_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.x1;
75
- var Enum = kotlin_kotlin.$_$.ve;
76
- var KProperty1 = kotlin_kotlin.$_$.pb;
77
- var getPropertyCallableRef = kotlin_kotlin.$_$.r9;
78
- var numberRangeToNumber = kotlin_kotlin.$_$.oa;
69
+ var THROW_CCE = kotlin_kotlin.$_$.gf;
70
+ var isCharSequence = kotlin_kotlin.$_$.fa;
71
+ var trim = kotlin_kotlin.$_$.ne;
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;
75
+ var Enum = kotlin_kotlin.$_$.we;
76
+ var KProperty1 = kotlin_kotlin.$_$.qb;
77
+ var getPropertyCallableRef = kotlin_kotlin.$_$.s9;
78
+ var numberRangeToNumber = kotlin_kotlin.$_$.pa;
79
79
  var ArrayList_init_$Create$ = kotlin_kotlin.$_$.l;
80
80
  var copyToArray = kotlin_kotlin.$_$.w5;
81
- var Logger = kotlin_community_flock_wirespec_compiler_core.$_$.g1;
82
- var noWhenBranchMatchedException = kotlin_kotlin.$_$.bg;
81
+ var Logger = kotlin_community_flock_wirespec_compiler_core.$_$.h1;
82
+ var noWhenBranchMatchedException = kotlin_kotlin.$_$.cg;
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;
@@ -88,60 +88,61 @@
88
88
  var OpenApiV3Parser_instance = kotlin_community_flock_wirespec_converter_openapi.$_$.d;
89
89
  var collectionSizeOrDefault = kotlin_kotlin.$_$.h5;
90
90
  var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.k;
91
- var to = kotlin_kotlin.$_$.eg;
91
+ var to = kotlin_kotlin.$_$.fg;
92
92
  var _FileName___get_value__impl__3u4cz6 = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.r;
93
- var charSequenceLength = kotlin_kotlin.$_$.j9;
94
- var charSequenceGet = kotlin_kotlin.$_$.i9;
93
+ var charSequenceLength = kotlin_kotlin.$_$.k9;
94
+ var charSequenceGet = kotlin_kotlin.$_$.j9;
95
95
  var toString_0 = kotlin_kotlin.$_$.z1;
96
96
  var first = kotlin_kotlin.$_$.g6;
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.$_$.b9;
99
+ var print = kotlin_kotlin.$_$.c9;
100
100
  var PackageName = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.i;
101
- var component1 = kotlin_community_flock_wirespec_compiler_core.$_$.e1;
101
+ var component1 = kotlin_community_flock_wirespec_compiler_core.$_$.f1;
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;
105
105
  var FileExtension_Kotlin_getInstance = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.l;
106
- var ScalaEmitter = kotlin_community_flock_wirespec_compiler_core.$_$.d;
106
+ var KotlinLegacyEmitter = kotlin_community_flock_wirespec_compiler_core.$_$.d;
107
+ var ScalaEmitter = kotlin_community_flock_wirespec_compiler_core.$_$.e;
107
108
  var FileExtension_Scala_getInstance = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.m;
108
- var TypeScriptEmitter = kotlin_community_flock_wirespec_compiler_core.$_$.e;
109
+ var TypeScriptEmitter = kotlin_community_flock_wirespec_compiler_core.$_$.f;
109
110
  var FileExtension_TypeScript_getInstance = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.n;
110
- var WirespecEmitter = kotlin_community_flock_wirespec_compiler_core.$_$.f;
111
- var WirespecSpec_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.c2;
112
- var compile = kotlin_community_flock_wirespec_compiler_core.$_$.d1;
111
+ var WirespecEmitter = kotlin_community_flock_wirespec_compiler_core.$_$.g;
112
+ var WirespecSpec_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.d2;
113
+ var compile = kotlin_community_flock_wirespec_compiler_core.$_$.e1;
113
114
  var Left = kotlin_io_arrow_kt_arrow_core.$_$.d;
114
- var Companion_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.a2;
115
+ var Companion_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.b2;
115
116
  var Right = kotlin_io_arrow_kt_arrow_core.$_$.e;
116
- var println = kotlin_kotlin.$_$.z8;
117
+ var println = kotlin_kotlin.$_$.a9;
117
118
  var Output = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.h;
118
- var ensureNotNull = kotlin_kotlin.$_$.vf;
119
+ var ensureNotNull = kotlin_kotlin.$_$.wf;
119
120
  var _Output___get_value__impl__a8kw1g = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.s;
120
121
  var _PackageName___get_value__impl__2zr98c = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.u;
121
122
  var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.v1;
122
- var charArrayOf = kotlin_kotlin.$_$.g9;
123
- var split = kotlin_kotlin.$_$.kd;
123
+ var charArrayOf = kotlin_kotlin.$_$.h9;
124
+ var split = kotlin_kotlin.$_$.ld;
124
125
  var joinToString = kotlin_kotlin.$_$.r6;
125
126
  var FileExtension_Json_getInstance = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.k;
126
- var parse = kotlin_community_flock_wirespec_compiler_core.$_$.f1;
127
- var get_noLogger = kotlin_community_flock_wirespec_compiler_core.$_$.h1;
128
- var Definition = kotlin_community_flock_wirespec_compiler_core.$_$.i;
129
- var isInterface = kotlin_kotlin.$_$.ia;
127
+ var parse = kotlin_community_flock_wirespec_compiler_core.$_$.g1;
128
+ var get_noLogger = kotlin_community_flock_wirespec_compiler_core.$_$.i1;
129
+ var Definition = kotlin_community_flock_wirespec_compiler_core.$_$.j;
130
+ var isInterface = kotlin_kotlin.$_$.ja;
130
131
  var produce = kotlin_community_flock_wirespec_compiler_lib.$_$.e;
131
- var endsWith = kotlin_kotlin.$_$.kc;
132
- var dropLast = kotlin_kotlin.$_$.hc;
133
- var iterator = kotlin_kotlin.$_$.la;
134
- var asSequence = kotlin_kotlin.$_$.rb;
135
- var map = kotlin_kotlin.$_$.wb;
136
- var filter = kotlin_kotlin.$_$.sb;
137
- var toSet_0 = kotlin_kotlin.$_$.yb;
138
- var split_0 = kotlin_kotlin.$_$.ld;
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;
139
140
  var Companion_instance_3 = kotlin_kotlin.$_$.b4;
140
141
  var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.a2;
141
- var createFailure = kotlin_kotlin.$_$.uf;
142
+ var createFailure = kotlin_kotlin.$_$.vf;
142
143
  var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.d2;
143
144
  var _Result___get_isFailure__impl__jpiriv = kotlin_kotlin.$_$.b2;
144
- var isArray = kotlin_kotlin.$_$.aa;
145
+ var isArray = kotlin_kotlin.$_$.ba;
145
146
  //endregion
146
147
  //region block: pre-declaration
147
148
  initMetadataForCompanion(Companion);
@@ -161,7 +162,7 @@
161
162
  //endregion
162
163
  function WirespecCli$main$ref($boundThis) {
163
164
  var l = function (p0) {
164
- $boundThis.g3u(p0);
165
+ $boundThis.s3u(p0);
165
166
  return Unit_instance;
166
167
  };
167
168
  l.callableName = 'main';
@@ -169,7 +170,7 @@
169
170
  }
170
171
  function Companion() {
171
172
  }
172
- protoOf(Companion).l46 = function (compile, convert) {
173
+ protoOf(Companion).x46 = function (compile, convert) {
173
174
  return WirespecCli$main$ref(subcommands(new WirespecCli(), [new Compile_0(compile), new Convert_0(convert)]));
174
175
  };
175
176
  var Companion_instance_4;
@@ -180,28 +181,28 @@
180
181
  NoOpCliktCommand.call(this, VOID, VOID, 'wirespec');
181
182
  }
182
183
  function _get_languages__ojonze($this) {
183
- return $this.l47_1.s43($this, languages$factory_0());
184
+ return $this.x47_1.e44($this, languages$factory_0());
184
185
  }
185
186
  function Compile_0(block) {
186
187
  CommonOptions.call(this);
187
- this.k47_1 = block;
188
- this.l47_1 = multiple(choice(option(this, Options_Language_getInstance().o47_1.slice(), 'Language'), Companion_instance.l2e()), VOID, true).d44(this, languages$factory());
188
+ this.w47_1 = block;
189
+ this.x47_1 = multiple(choice(option(this, Options_Language_getInstance().a48_1.slice(), 'Language'), Companion_instance.x2e()), VOID, true).p44(this, languages$factory());
189
190
  }
190
- protoOf(Compile_0).h3u = function () {
191
+ protoOf(Compile_0).t3u = function () {
191
192
  // Inline function 'kotlin.let' call
192
- var this_0 = new CompilerArguments(Compile_instance, this.o48(this.n48()), Companion_instance_0.m2e(this.p48()), toSet(_get_languages__ojonze(this)), _PackageName___init__impl__s13tbs(this.q48()), this.s48(this.r48()), this.t48(), this.u48());
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
194
  // Inline function 'kotlin.contracts.contract' call
194
- this.k47_1(this_0);
195
+ this.w47_1(this_0);
195
196
  };
196
197
  function _get_format__qlarck($this) {
197
- return $this.u49_1.s43($this, format$factory_0());
198
+ return $this.g4a_1.e44($this, format$factory_0());
198
199
  }
199
200
  function _get_languages__ojonze_0($this) {
200
- return $this.v49_1.s43($this, languages$factory_2());
201
+ return $this.h4a_1.e44($this, languages$factory_2());
201
202
  }
202
203
  function Convert_0(block) {
203
204
  CommonOptions.call(this);
204
- this.t49_1 = block;
205
+ this.f4a_1 = block;
205
206
  var tmp = this;
206
207
  // Inline function 'com.github.ajalt.clikt.parameters.types.enum' call
207
208
  var this_0 = argument(this, VOID, 'Input format');
@@ -221,21 +222,21 @@
221
222
  var tmp$ret$2 = element.p2_1;
222
223
  destination.m2(tmp$ret$2, element);
223
224
  }
224
- tmp.u49_1 = choice_0(this_0, destination, true).y42(this, format$factory());
225
- this.v49_1 = multiple(choice(option(this, Options_Language_getInstance().o47_1.slice(), 'Language'), Companion_instance.l2e(), VOID, true), listOf(Language_Wirespec_getInstance())).d44(this, languages$factory_1());
225
+ tmp.g4a_1 = choice_0(this_0, destination, true).k43(this, format$factory());
226
+ this.h4a_1 = multiple(choice(option(this, Options_Language_getInstance().a48_1.slice(), 'Language'), Companion_instance.x2e(), VOID, true), listOf(Language_Wirespec_getInstance())).p44(this, languages$factory_1());
226
227
  }
227
- protoOf(Convert_0).h3u = function () {
228
- if (this.n48() == null)
228
+ protoOf(Convert_0).t3u = function () {
229
+ if (this.z48() == null)
229
230
  null;
230
231
  else {
231
232
  // Inline function 'kotlin.let' call
232
233
  // Inline function 'kotlin.contracts.contract' call
233
- this.a3u('To convert, please specify a file', VOID, true);
234
+ this.m3u('To convert, please specify a file', VOID, true);
234
235
  }
235
236
  // Inline function 'kotlin.let' call
236
237
  var tmp = new Convert(_get_format__qlarck(this));
237
- var tmp_0 = this.o48(null);
238
- var tmp_1 = Companion_instance_0.m2e(this.p48());
238
+ var tmp_0 = this.a49(null);
239
+ var tmp_1 = Companion_instance_0.y2e(this.b49());
239
240
  // Inline function 'kotlin.collections.ifEmpty' call
240
241
  var this_0 = toSet(_get_languages__ojonze_0(this));
241
242
  // Inline function 'kotlin.contracts.contract' call
@@ -247,42 +248,42 @@
247
248
  tmp_2 = this_0;
248
249
  }
249
250
  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.q48()), this.s48(this.r48()), this.t48(), this.u48());
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
252
  // Inline function 'kotlin.contracts.contract' call
252
- this.t49_1(this_1);
253
+ this.f4a_1(this_1);
253
254
  };
254
255
  function _get_inputFile__x1bqj($this) {
255
- return $this.g48_1.s43($this, inputFile$factory_0());
256
+ return $this.s48_1.e44($this, inputFile$factory_0());
256
257
  }
257
258
  function CommonOptions() {
258
259
  CliktCommand.call(this);
259
- this.g48_1 = option(this, Options_InputFile_getInstance().o47_1.slice(), 'Input file').d44(this, inputFile$factory());
260
- this.h48_1 = option(this, Options_InputDir_getInstance().o47_1.slice(), 'Input directory').d44(this, inputDir$factory());
261
- this.i48_1 = option(this, Options_OutputDir_getInstance().o47_1.slice(), 'Output directory').d44(this, outputDir$factory());
262
- this.j48_1 = default_0(option(this, Options_PackageName_getInstance().o47_1.slice(), 'Package name'), 'community.flock.wirespec.generated').d44(this, packageName$factory());
263
- this.k48_1 = default_0(option(this, Options_LogLevel_getInstance().o47_1.slice(), 'Log level: ' + Companion_instance_1.toString()), Level_ERROR_getInstance().toString()).d44(this, logLevel$factory());
264
- this.l48_1 = flag(option(this, Options_Shared_getInstance().o47_1.slice(), 'Generate shared wirespec code'), [], false).d44(this, shared$factory());
265
- this.m48_1 = flag(option(this, Options_Strict_getInstance().o47_1.slice(), 'Strict mode'), []).d44(this, strict$factory());
266
- }
267
- protoOf(CommonOptions).n48 = function () {
268
- return this.h48_1.s43(this, inputDir$factory_0());
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());
269
270
  };
270
- protoOf(CommonOptions).p48 = function () {
271
- return this.i48_1.s43(this, outputDir$factory_0());
271
+ protoOf(CommonOptions).b49 = function () {
272
+ return this.u48_1.e44(this, outputDir$factory_0());
272
273
  };
273
- protoOf(CommonOptions).q48 = function () {
274
- return this.j48_1.s43(this, packageName$factory_0());
274
+ protoOf(CommonOptions).c49 = function () {
275
+ return this.v48_1.e44(this, packageName$factory_0());
275
276
  };
276
- protoOf(CommonOptions).r48 = function () {
277
- return this.k48_1.s43(this, logLevel$factory_0());
277
+ protoOf(CommonOptions).d49 = function () {
278
+ return this.w48_1.e44(this, logLevel$factory_0());
278
279
  };
279
- protoOf(CommonOptions).t48 = function () {
280
- return this.l48_1.s43(this, shared$factory_0());
280
+ protoOf(CommonOptions).f49 = function () {
281
+ return this.x48_1.e44(this, shared$factory_0());
281
282
  };
282
- protoOf(CommonOptions).u48 = function () {
283
- return this.m48_1.s43(this, strict$factory_0());
283
+ protoOf(CommonOptions).g49 = function () {
284
+ return this.y48_1.e44(this, strict$factory_0());
284
285
  };
285
- protoOf(CommonOptions).o48 = function (inputDir) {
286
+ protoOf(CommonOptions).a49 = function (inputDir) {
286
287
  var tmp;
287
288
  if (!(inputDir == null) && !(_get_inputFile__x1bqj(this) == null)) {
288
289
  var message = 'Choose either a file or a directory. Not Both.';
@@ -295,7 +296,7 @@
295
296
  } else {
296
297
  // Inline function 'kotlin.let' call
297
298
  // Inline function 'kotlin.contracts.contract' call
298
- tmp_0 = Companion_instance_2.a2e(tmp0_safe_receiver);
299
+ tmp_0 = Companion_instance_2.m2e(tmp0_safe_receiver);
299
300
  }
300
301
  var tmp0_elvis_lhs = tmp_0;
301
302
  var tmp_1;
@@ -317,7 +318,7 @@
317
318
  }
318
319
  return tmp;
319
320
  };
320
- protoOf(CommonOptions).s48 = function (_this__u8e3s4) {
321
+ protoOf(CommonOptions).e49 = function (_this__u8e3s4) {
321
322
  // Inline function 'kotlin.text.uppercase' call
322
323
  // Inline function 'kotlin.text.trim' call
323
324
  // Inline function 'kotlin.js.asDynamic' call
@@ -365,7 +366,7 @@
365
366
  }
366
367
  function Options(name, ordinal, flags) {
367
368
  Enum.call(this, name, ordinal);
368
- this.o47_1 = flags;
369
+ this.a48_1 = flags;
369
370
  }
370
371
  function Options_InputDir_getInstance() {
371
372
  Options_initEntries();
@@ -436,32 +437,32 @@
436
437
  }
437
438
  function inputDir$factory() {
438
439
  return getPropertyCallableRef('inputDir', 1, KProperty1, function (receiver) {
439
- return receiver.n48();
440
+ return receiver.z48();
440
441
  }, null);
441
442
  }
442
443
  function outputDir$factory() {
443
444
  return getPropertyCallableRef('outputDir', 1, KProperty1, function (receiver) {
444
- return receiver.p48();
445
+ return receiver.b49();
445
446
  }, null);
446
447
  }
447
448
  function packageName$factory() {
448
449
  return getPropertyCallableRef('packageName', 1, KProperty1, function (receiver) {
449
- return receiver.q48();
450
+ return receiver.c49();
450
451
  }, null);
451
452
  }
452
453
  function logLevel$factory() {
453
454
  return getPropertyCallableRef('logLevel', 1, KProperty1, function (receiver) {
454
- return receiver.r48();
455
+ return receiver.d49();
455
456
  }, null);
456
457
  }
457
458
  function shared$factory() {
458
459
  return getPropertyCallableRef('shared', 1, KProperty1, function (receiver) {
459
- return receiver.t48();
460
+ return receiver.f49();
460
461
  }, null);
461
462
  }
462
463
  function strict$factory() {
463
464
  return getPropertyCallableRef('strict', 1, KProperty1, function (receiver) {
464
- return receiver.u48();
465
+ return receiver.g49();
465
466
  }, null);
466
467
  }
467
468
  function inputFile$factory_0() {
@@ -471,32 +472,32 @@
471
472
  }
472
473
  function inputDir$factory_0() {
473
474
  return getPropertyCallableRef('inputDir', 1, KProperty1, function (receiver) {
474
- return receiver.n48();
475
+ return receiver.z48();
475
476
  }, null);
476
477
  }
477
478
  function outputDir$factory_0() {
478
479
  return getPropertyCallableRef('outputDir', 1, KProperty1, function (receiver) {
479
- return receiver.p48();
480
+ return receiver.b49();
480
481
  }, null);
481
482
  }
482
483
  function packageName$factory_0() {
483
484
  return getPropertyCallableRef('packageName', 1, KProperty1, function (receiver) {
484
- return receiver.q48();
485
+ return receiver.c49();
485
486
  }, null);
486
487
  }
487
488
  function logLevel$factory_0() {
488
489
  return getPropertyCallableRef('logLevel', 1, KProperty1, function (receiver) {
489
- return receiver.r48();
490
+ return receiver.d49();
490
491
  }, null);
491
492
  }
492
493
  function shared$factory_0() {
493
494
  return getPropertyCallableRef('shared', 1, KProperty1, function (receiver) {
494
- return receiver.t48();
495
+ return receiver.f49();
495
496
  }, null);
496
497
  }
497
498
  function strict$factory_0() {
498
499
  return getPropertyCallableRef('strict', 1, KProperty1, function (receiver) {
499
- return receiver.u48();
500
+ return receiver.g49();
500
501
  }, null);
501
502
  }
502
503
  function main(args) {
@@ -524,27 +525,27 @@
524
525
  var tmp = Companion_instance_4;
525
526
  var tmp_0 = compile$ref();
526
527
  // Inline function 'kotlin.contracts.contract' call
527
- tmp.l46(tmp_0, convert$ref())(this_1);
528
+ tmp.x46(tmp_0, convert$ref())(this_1);
528
529
  }
529
530
  function compile_0(arguments_0) {
530
- var input = arguments_0.r2d_1;
531
- var output = arguments_0.s2d_1;
532
- var languages = arguments_0.t2d_1;
533
- var packageName = arguments_0.u2d_1;
534
- var logger = new Logger(arguments_0.v2d_1);
535
- var operation = arguments_0.q2d_1;
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;
536
537
  if (operation instanceof Convert) {
537
538
  var fullPath = input instanceof FullFilePath ? input : THROW_CCE();
538
539
  var file = new JsonFile(fullPath);
539
- var strict = arguments_0.x2d_1;
540
- var format = operation.z2d_1;
540
+ var strict = arguments_0.j2e_1;
541
+ var format = operation.l2e_1;
541
542
  var tmp;
542
543
  switch (format.q2_1) {
543
544
  case 0:
544
- tmp = OpenApiV2Parser_instance.c2f(file.y1a(), !strict);
545
+ tmp = OpenApiV2Parser_instance.o2f(file.y1a(), !strict);
545
546
  break;
546
547
  case 1:
547
- tmp = OpenApiV3Parser_instance.c2f(file.y1a(), !strict);
548
+ tmp = OpenApiV3Parser_instance.o2f(file.y1a(), !strict);
548
549
  break;
549
550
  default:
550
551
  noWhenBranchMatchedException();
@@ -567,7 +568,7 @@
567
568
  var tmp_0;
568
569
  if (!emitter.n22_1) {
569
570
  // Inline function 'kotlin.text.replaceFirstChar' call
570
- var this_1 = _FileName___get_value__impl__3u4cz6(fullPath.f2e_1);
571
+ var this_1 = _FileName___get_value__impl__3u4cz6(fullPath.r2e_1);
571
572
  var tmp_1;
572
573
  // Inline function 'kotlin.text.isNotEmpty' call
573
574
  if (charSequenceLength(this_1) > 0) {
@@ -608,19 +609,19 @@
608
609
  } else {
609
610
  if (input instanceof FullDirPath) {
610
611
  // Inline function 'kotlin.collections.forEach' call
611
- var tmp0_iterator_1 = (new Directory(input.k2e_1)).y49().g();
612
+ var tmp0_iterator_1 = (new Directory(input.w2e_1)).k4a().g();
612
613
  while (tmp0_iterator_1.h()) {
613
614
  var element = tmp0_iterator_1.i();
614
615
  // Inline function 'community.flock.wirespec.plugin.cli.compile.<anonymous>' call
615
- wirespec(element, languages, packageName, out(element.w49_1, packageName, output), logger);
616
+ wirespec(element, languages, packageName, out(element.i4a_1, packageName, output), logger);
616
617
  }
617
618
  } else {
618
619
  if (input instanceof FullFilePath)
619
- if (input.g2e_1.equals(FileExtension_Wirespec_getInstance())) {
620
+ if (input.s2e_1.equals(FileExtension_Wirespec_getInstance())) {
620
621
  // Inline function 'kotlin.let' call
621
622
  // Inline function 'kotlin.contracts.contract' call
622
623
  var it = new WirespecFile(input);
623
- wirespec(it, languages, packageName, out(it.w49_1, packageName, output), logger);
624
+ wirespec(it, languages, packageName, out(it.i4a_1, packageName, output), logger);
624
625
  } else {
625
626
  // Inline function 'kotlin.error' call
626
627
  var message = 'Path ' + input.toString() + ' is not a Wirespec file';
@@ -650,12 +651,12 @@
650
651
  // Inline function 'community.flock.wirespec.plugin.cli.write.<anonymous>' call
651
652
  var name = element.od();
652
653
  var result = element.pd();
653
- var tmp14_safe_receiver = file == null ? null : file.z49(_FileName___init__impl__nzn12e(name));
654
+ var tmp15_safe_receiver = file == null ? null : file.l4a(_FileName___init__impl__nzn12e(name));
654
655
  var tmp;
655
- if (tmp14_safe_receiver == null) {
656
+ if (tmp15_safe_receiver == null) {
656
657
  tmp = null;
657
658
  } else {
658
- tmp14_safe_receiver.s18(result);
659
+ tmp15_safe_receiver.s18(result);
659
660
  tmp = Unit_instance;
660
661
  }
661
662
  if (tmp == null) {
@@ -703,7 +704,7 @@
703
704
  tmp = to(tmp_2, tmp_3);
704
705
  break;
705
706
  case 2:
706
- var tmp_4 = new ScalaEmitter(packageString, logger);
707
+ var tmp_4 = new KotlinLegacyEmitter(packageString, logger);
707
708
  var tmp_5;
708
709
  if (path == null) {
709
710
  tmp_5 = null;
@@ -711,13 +712,13 @@
711
712
  // Inline function 'kotlin.let' call
712
713
  // Inline function 'kotlin.contracts.contract' call
713
714
  // Inline function 'community.flock.wirespec.plugin.cli.emitters.<anonymous>.<anonymous>' call
714
- tmp_5 = new ScalaFile(path(FileExtension_Scala_getInstance()));
715
+ tmp_5 = new KotlinFile(path(FileExtension_Kotlin_getInstance()));
715
716
  }
716
717
 
717
718
  tmp = to(tmp_4, tmp_5);
718
719
  break;
719
720
  case 3:
720
- var tmp_6 = new TypeScriptEmitter(logger);
721
+ var tmp_6 = new ScalaEmitter(packageString, logger);
721
722
  var tmp_7;
722
723
  if (path == null) {
723
724
  tmp_7 = null;
@@ -725,13 +726,13 @@
725
726
  // Inline function 'kotlin.let' call
726
727
  // Inline function 'kotlin.contracts.contract' call
727
728
  // Inline function 'community.flock.wirespec.plugin.cli.emitters.<anonymous>.<anonymous>' call
728
- tmp_7 = new TypeScriptFile(path(FileExtension_TypeScript_getInstance()));
729
+ tmp_7 = new ScalaFile(path(FileExtension_Scala_getInstance()));
729
730
  }
730
731
 
731
732
  tmp = to(tmp_6, tmp_7);
732
733
  break;
733
734
  case 4:
734
- var tmp_8 = new WirespecEmitter(logger);
735
+ var tmp_8 = new TypeScriptEmitter(logger);
735
736
  var tmp_9;
736
737
  if (path == null) {
737
738
  tmp_9 = null;
@@ -739,17 +740,31 @@
739
740
  // Inline function 'kotlin.let' call
740
741
  // Inline function 'kotlin.contracts.contract' call
741
742
  // Inline function 'community.flock.wirespec.plugin.cli.emitters.<anonymous>.<anonymous>' call
742
- tmp_9 = new WirespecFile(path(FileExtension_Wirespec_getInstance()));
743
+ tmp_9 = new TypeScriptFile(path(FileExtension_TypeScript_getInstance()));
743
744
  }
744
745
 
745
746
  tmp = to(tmp_8, tmp_9);
746
747
  break;
748
+ case 5:
749
+ var tmp_10 = new WirespecEmitter(logger);
750
+ var tmp_11;
751
+ if (path == null) {
752
+ tmp_11 = null;
753
+ } else {
754
+ // Inline function 'kotlin.let' call
755
+ // Inline function 'kotlin.contracts.contract' call
756
+ // Inline function 'community.flock.wirespec.plugin.cli.emitters.<anonymous>.<anonymous>' call
757
+ tmp_11 = new WirespecFile(path(FileExtension_Wirespec_getInstance()));
758
+ }
759
+
760
+ tmp = to(tmp_10, tmp_11);
761
+ break;
747
762
  default:
748
763
  noWhenBranchMatchedException();
749
764
  break;
750
765
  }
751
- var tmp$ret$10 = tmp;
752
- destination.e(tmp$ret$10);
766
+ var tmp$ret$12 = tmp;
767
+ destination.e(tmp$ret$12);
753
768
  }
754
769
  return destination;
755
770
  }
@@ -785,7 +800,7 @@
785
800
  // Inline function 'arrow.core.Either.map.<anonymous>' call
786
801
  // Inline function 'community.flock.wirespec.plugin.cli.wirespec.<anonymous>.<anonymous>.<anonymous>' call
787
802
  var it = results.zj_1;
788
- var tmp$ret$2 = listOf(new Emitted(Companion_getInstance().i23(_FileName___get_value__impl__3u4cz6(path(FileExtension_Wirespec_getInstance()).f2e_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()).r2e_1)), first(it).w24_1));
789
804
  tmp_0 = new Right(tmp$ret$2);
790
805
  } else {
791
806
  if (results instanceof Left) {
@@ -840,7 +855,7 @@
840
855
  function compile$lambda($output) {
841
856
  return function (it) {
842
857
  var tmp = $output;
843
- return new FullFilePath(_Output___get_value__impl__a8kw1g(ensureNotNull(tmp == null ? null : new Output(tmp)).n2e_1), _FileName___init__impl__nzn12e('console'), it);
858
+ return new FullFilePath(_Output___get_value__impl__a8kw1g(ensureNotNull(tmp == null ? null : new Output(tmp)).z2e_1), _FileName___init__impl__nzn12e('console'), it);
844
859
  };
845
860
  }
846
861
  function out$lambda($output, $this_out, $packageName) {
@@ -852,49 +867,49 @@
852
867
  // Inline function 'kotlin.text.lowercase' call
853
868
  // Inline function 'kotlin.js.asDynamic' call
854
869
  var tmp$ret$1 = extension.p2_1.toLowerCase();
855
- tmp = $this_out.e2e_1 + '/out/' + tmp$ret$1;
870
+ tmp = $this_out.q2e_1 + '/out/' + tmp$ret$1;
856
871
  } else {
857
872
  tmp = new Output(tmp0_elvis_lhs);
858
873
  }
859
874
  var dir = tmp;
860
- return $this_out.i2e(toString(dir) + '/' + joinToString(split(_PackageName___get_value__impl__2zr98c($packageName), charArrayOf([_Char___init__impl__6a9atx(46)])), '/'), VOID, extension);
875
+ return $this_out.u2e(toString(dir) + '/' + joinToString(split(_PackageName___get_value__impl__2zr98c($packageName), charArrayOf([_Char___init__impl__6a9atx(46)])), '/'), VOID, extension);
861
876
  };
862
877
  }
863
878
  function JavaFile(path) {
864
- File.call(this, path.i2e(VOID, VOID, FileExtension_Java_getInstance()));
879
+ File.call(this, path.u2e(VOID, VOID, FileExtension_Java_getInstance()));
865
880
  }
866
- protoOf(JavaFile).z49 = function (fileName) {
867
- return new JavaFile(this.w49_1.i2e(VOID, fileName));
881
+ protoOf(JavaFile).l4a = function (fileName) {
882
+ return new JavaFile(this.i4a_1.u2e(VOID, fileName));
868
883
  };
869
884
  function JsonFile(path) {
870
- File.call(this, path.i2e(VOID, VOID, FileExtension_Json_getInstance()));
885
+ File.call(this, path.u2e(VOID, VOID, FileExtension_Json_getInstance()));
871
886
  }
872
- protoOf(JsonFile).z49 = function (fileName) {
873
- return new JsonFile(this.w49_1.i2e(VOID, fileName));
887
+ protoOf(JsonFile).l4a = function (fileName) {
888
+ return new JsonFile(this.i4a_1.u2e(VOID, fileName));
874
889
  };
875
890
  function KotlinFile(path) {
876
- File.call(this, path.i2e(VOID, VOID, FileExtension_Kotlin_getInstance()));
891
+ File.call(this, path.u2e(VOID, VOID, FileExtension_Kotlin_getInstance()));
877
892
  }
878
- protoOf(KotlinFile).z49 = function (fileName) {
879
- return new KotlinFile(this.w49_1.i2e(VOID, fileName));
893
+ protoOf(KotlinFile).l4a = function (fileName) {
894
+ return new KotlinFile(this.i4a_1.u2e(VOID, fileName));
880
895
  };
881
896
  function ScalaFile(path) {
882
- File.call(this, path.i2e(VOID, VOID, FileExtension_Scala_getInstance()));
897
+ File.call(this, path.u2e(VOID, VOID, FileExtension_Scala_getInstance()));
883
898
  }
884
- protoOf(ScalaFile).z49 = function (fileName) {
885
- return new ScalaFile(this.w49_1.i2e(VOID, fileName));
899
+ protoOf(ScalaFile).l4a = function (fileName) {
900
+ return new ScalaFile(this.i4a_1.u2e(VOID, fileName));
886
901
  };
887
902
  function TypeScriptFile(path) {
888
- File.call(this, path.i2e(VOID, VOID, FileExtension_TypeScript_getInstance()));
903
+ File.call(this, path.u2e(VOID, VOID, FileExtension_TypeScript_getInstance()));
889
904
  }
890
- protoOf(TypeScriptFile).z49 = function (fileName) {
891
- return new TypeScriptFile(this.w49_1.i2e(VOID, fileName));
905
+ protoOf(TypeScriptFile).l4a = function (fileName) {
906
+ return new TypeScriptFile(this.i4a_1.u2e(VOID, fileName));
892
907
  };
893
908
  function WirespecFile(path) {
894
- File.call(this, path.i2e(VOID, VOID, FileExtension_Wirespec_getInstance()));
909
+ File.call(this, path.u2e(VOID, VOID, FileExtension_Wirespec_getInstance()));
895
910
  }
896
- protoOf(WirespecFile).z49 = function (fileName) {
897
- return new WirespecFile(this.w49_1.i2e(VOID, fileName));
911
+ protoOf(WirespecFile).l4a = function (fileName) {
912
+ return new WirespecFile(this.i4a_1.u2e(VOID, fileName));
898
913
  };
899
914
  function cli(args) {
900
915
  main(args);
@@ -957,14 +972,14 @@
957
972
  return it;
958
973
  }
959
974
  function Directory$wirespecFiles$lambda_0(it) {
960
- return endsWith(it, FileExtension_Wirespec_getInstance().d2e_1);
975
+ return endsWith(it, FileExtension_Wirespec_getInstance().p2e_1);
961
976
  }
962
977
  function Directory$wirespecFiles$lambda_1(it) {
963
- return dropLast(it, FileExtension_Wirespec_getInstance().d2e_1.length + 1 | 0);
978
+ return dropLast(it, FileExtension_Wirespec_getInstance().p2e_1.length + 1 | 0);
964
979
  }
965
980
  function Directory$wirespecFiles$lambda_2(this$0) {
966
981
  return function (it) {
967
- return new FullFilePath(this$0.x49_1, _FileName___init__impl__nzn12e(it));
982
+ return new FullFilePath(this$0.j4a_1, _FileName___init__impl__nzn12e(it));
968
983
  };
969
984
  }
970
985
  function WirespecFile$_init_$ref_cj1n5j() {
@@ -975,10 +990,10 @@
975
990
  return l;
976
991
  }
977
992
  function Directory(path) {
978
- this.x49_1 = path;
993
+ this.j4a_1 = path;
979
994
  }
980
- protoOf(Directory).y49 = function () {
981
- var tmp = asSequence(iterator(get_fs().readdirSync(this.x49_1, 'utf-8')));
995
+ protoOf(Directory).k4a = function () {
996
+ var tmp = asSequence(iterator(get_fs().readdirSync(this.j4a_1, 'utf-8')));
982
997
  var tmp_0 = map(tmp, Directory$wirespecFiles$lambda);
983
998
  var tmp_1 = filter(tmp_0, Directory$wirespecFiles$lambda_0);
984
999
  var tmp_2 = map(tmp_1, Directory$wirespecFiles$lambda_1);
@@ -986,20 +1001,20 @@
986
1001
  return toSet_0(map(tmp_3, WirespecFile$_init_$ref_cj1n5j()));
987
1002
  };
988
1003
  function File(path) {
989
- this.w49_1 = path;
1004
+ this.i4a_1 = path;
990
1005
  }
991
1006
  protoOf(File).y1a = function () {
992
1007
  // Inline function 'kotlin.js.unsafeCast' call
993
- return get_fs().readFileSync(this.w49_1.toString(), 'utf-8');
1008
+ return get_fs().readFileSync(this.i4a_1.toString(), 'utf-8');
994
1009
  };
995
1010
  protoOf(File).s18 = function (text) {
996
1011
  // Inline function 'kotlin.run' call
997
1012
  // Inline function 'kotlin.contracts.contract' call
998
1013
  // Inline function 'community.flock.wirespec.plugin.cli.io.File.write.<anonymous>' call
999
- var $this$run = this.w49_1.i2e(joinToString(split_0(this.w49_1.e2e_1, ['out']), 'out/node'));
1014
+ var $this$run = this.i4a_1.u2e(joinToString(split_0(this.i4a_1.q2e_1, ['out']), 'out/node'));
1000
1015
  // Inline function 'kotlin.js.unsafeCast' call
1001
- if (!get_fs().existsSync($this$run.e2e_1)) {
1002
- get_fs().mkdirSync($this$run.e2e_1, {recursive: true});
1016
+ if (!get_fs().existsSync($this$run.q2e_1)) {
1017
+ get_fs().mkdirSync($this$run.q2e_1, {recursive: true});
1003
1018
  }
1004
1019
  get_fs().writeFileSync($this$run.toString(), text);
1005
1020
  };