@flock/wirespec 0.9.11 → 0.9.13

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.
Files changed (40) hide show
  1. package/arrow-arrow-atomic.js +14 -15
  2. package/arrow-arrow-atomic.js.map +1 -1
  3. package/arrow-arrow-continuations.js +2 -3
  4. package/arrow-arrow-continuations.js.map +1 -1
  5. package/arrow-arrow-core.js +100 -105
  6. package/arrow-arrow-core.js.map +1 -1
  7. package/clikt-clikt.js +1936 -2057
  8. package/clikt-clikt.js.map +1 -1
  9. package/colormath-root-colormath.js +479 -504
  10. package/colormath-root-colormath.js.map +1 -1
  11. package/kotlin-kotlin-stdlib.js +2368 -2480
  12. package/kotlin-kotlin-stdlib.js.map +1 -1
  13. package/kotlin-openapi-bindings.js +5695 -5579
  14. package/kotlin-openapi-bindings.js.map +1 -1
  15. package/kotlin-rgxgen.js +2051 -2108
  16. package/kotlin-rgxgen.js.map +1 -1
  17. package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js +2155 -2140
  18. package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map +1 -1
  19. package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js +1636 -1700
  20. package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.map +1 -1
  21. package/markdown.js +2218 -2412
  22. package/markdown.js.map +1 -1
  23. package/mordant-mordant.js +2322 -2431
  24. package/mordant-mordant.js.map +1 -1
  25. package/package.json +1 -1
  26. package/wirespec-src-compiler-core.js +2348 -2609
  27. package/wirespec-src-compiler-core.js.map +1 -1
  28. package/wirespec-src-compiler-lib.js +641 -678
  29. package/wirespec-src-compiler-lib.js.map +1 -1
  30. package/wirespec-src-converter-openapi.js +1497 -1518
  31. package/wirespec-src-converter-openapi.js.map +1 -1
  32. package/wirespec-src-generator.js +86 -91
  33. package/wirespec-src-generator.js.map +1 -1
  34. package/wirespec-src-plugin-arguments.js +137 -151
  35. package/wirespec-src-plugin-arguments.js.map +1 -1
  36. package/wirespec-src-plugin-cli.js +281 -301
  37. package/wirespec-src-plugin-cli.js.map +1 -1
  38. package/wirespec-src-plugin-npm.d.ts +1 -1
  39. package/wirespec-src-plugin-npm.js +88 -99
  40. package/wirespec-src-plugin-npm.js.map +1 -1
@@ -30,68 +30,68 @@
30
30
  }(this, function (_, kotlin_kotlin, kotlin_clikt_clikt, kotlin_community_flock_wirespec_plugin_arguments_arguments, kotlin_community_flock_wirespec_compiler_core, kotlin_community_flock_wirespec_converter_openapi, kotlin_io_arrow_kt_arrow_core, kotlin_community_flock_wirespec_compiler_lib) {
31
31
  'use strict';
32
32
  //region block: imports
33
- var Unit_getInstance = kotlin_kotlin.$_$.g4;
33
+ var Unit_instance = kotlin_kotlin.$_$.i4;
34
34
  var subcommands = kotlin_clikt_clikt.$_$.c;
35
- var protoOf = kotlin_kotlin.$_$.oa;
36
- var objectMeta = kotlin_kotlin.$_$.na;
37
- var VOID = kotlin_kotlin.$_$.vf;
38
- var setMetadataFor = kotlin_kotlin.$_$.pa;
35
+ var protoOf = kotlin_kotlin.$_$.qa;
36
+ var objectMeta = kotlin_kotlin.$_$.pa;
37
+ var setMetadataFor = kotlin_kotlin.$_$.ra;
39
38
  var NoOpCliktCommand = kotlin_clikt_clikt.$_$.b;
40
- var classMeta = kotlin_kotlin.$_$.j9;
39
+ var VOID = kotlin_kotlin.$_$.g;
40
+ var classMeta = kotlin_kotlin.$_$.l9;
41
41
  var option = kotlin_clikt_clikt.$_$.h;
42
- var Companion_getInstance = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.x;
42
+ var Companion_instance = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.x;
43
43
  var choice = kotlin_clikt_clikt.$_$.j;
44
44
  var multiple = kotlin_clikt_clikt.$_$.g;
45
- var Compile_getInstance = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.y;
46
- var Companion_getInstance_0 = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.z;
47
- var toSet = kotlin_kotlin.$_$.l8;
45
+ var Compile_instance = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.y;
46
+ var Companion_instance_0 = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.z;
47
+ var toSet = kotlin_kotlin.$_$.n8;
48
48
  var _PackageName___init__impl__s13tbs = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.t;
49
49
  var CompilerArguments = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.a;
50
50
  var argument = kotlin_clikt_clikt.$_$.d;
51
51
  var values = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.c;
52
- var mapCapacity = kotlin_kotlin.$_$.e7;
53
- var coerceAtLeast = kotlin_kotlin.$_$.za;
54
- var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.s;
52
+ var mapCapacity = kotlin_kotlin.$_$.g7;
53
+ var coerceAtLeast = kotlin_kotlin.$_$.bb;
54
+ var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.t;
55
55
  var choice_0 = kotlin_clikt_clikt.$_$.i;
56
56
  var Language_Wirespec_getInstance = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.p;
57
- var listOf = kotlin_kotlin.$_$.c7;
57
+ var listOf = kotlin_kotlin.$_$.e7;
58
58
  var Convert = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.g;
59
- var setOf = kotlin_kotlin.$_$.q7;
59
+ var setOf = kotlin_kotlin.$_$.s7;
60
60
  var CliktCommand = kotlin_clikt_clikt.$_$.a;
61
61
  var get_DEFAULT_PACKAGE_STRING = kotlin_community_flock_wirespec_compiler_core.$_$.a;
62
62
  var default_0 = kotlin_clikt_clikt.$_$.e;
63
63
  var flag = kotlin_clikt_clikt.$_$.f;
64
- var Companion_getInstance_1 = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.w;
64
+ var Companion_instance_1 = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.w;
65
65
  var FullDirPath = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.d;
66
- var Console_getInstance = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.v;
67
- var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.l1;
68
- var Enum = kotlin_kotlin.$_$.me;
69
- var KProperty1 = kotlin_kotlin.$_$.ib;
70
- var getPropertyCallableRef = kotlin_kotlin.$_$.p9;
71
- var numberRangeToNumber = kotlin_kotlin.$_$.ia;
72
- var ArrayList_init_$Create$ = kotlin_kotlin.$_$.k;
73
- var copyToArray = kotlin_kotlin.$_$.t5;
66
+ var Console_instance = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.v;
67
+ var toString = kotlin_kotlin.$_$.va;
68
+ var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.n1;
69
+ var Enum = kotlin_kotlin.$_$.oe;
70
+ var KProperty1 = kotlin_kotlin.$_$.kb;
71
+ var getPropertyCallableRef = kotlin_kotlin.$_$.s9;
72
+ var numberRangeToNumber = kotlin_kotlin.$_$.ka;
73
+ var ArrayList_init_$Create$ = kotlin_kotlin.$_$.l;
74
+ var copyToArray = kotlin_kotlin.$_$.v5;
74
75
  var Logger = kotlin_community_flock_wirespec_compiler_core.$_$.g1;
75
- var toString = kotlin_kotlin.$_$.ta;
76
76
  var FileExtension_Wirespec_getInstance = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.o;
77
77
  var FullFilePath = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.e;
78
78
  var Console = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.b;
79
79
  var Compile = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.f;
80
- var THROW_CCE = kotlin_kotlin.$_$.we;
81
- var Companion_getInstance_2 = kotlin_community_flock_wirespec_converter_openapi.$_$.c;
82
- var Companion_getInstance_3 = kotlin_community_flock_wirespec_converter_openapi.$_$.d;
83
- var noWhenBranchMatchedException = kotlin_kotlin.$_$.rf;
84
- var collectionSizeOrDefault = kotlin_kotlin.$_$.f5;
85
- var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.j;
86
- var to = kotlin_kotlin.$_$.uf;
80
+ var THROW_CCE = kotlin_kotlin.$_$.ye;
81
+ var Companion_instance_2 = kotlin_community_flock_wirespec_converter_openapi.$_$.c;
82
+ var Companion_instance_3 = kotlin_community_flock_wirespec_converter_openapi.$_$.d;
83
+ var noWhenBranchMatchedException = kotlin_kotlin.$_$.tf;
84
+ var collectionSizeOrDefault = kotlin_kotlin.$_$.h5;
85
+ var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.k;
86
+ var to = kotlin_kotlin.$_$.wf;
87
87
  var _FileName___get_value__impl__3u4cz6 = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.r;
88
- var charSequenceLength = kotlin_kotlin.$_$.h9;
89
- var charSequenceGet = kotlin_kotlin.$_$.g9;
90
- var toString_0 = kotlin_kotlin.$_$.y1;
91
- var first = kotlin_kotlin.$_$.e6;
88
+ var charSequenceLength = kotlin_kotlin.$_$.j9;
89
+ var charSequenceGet = kotlin_kotlin.$_$.i9;
90
+ var toString_0 = kotlin_kotlin.$_$.a2;
91
+ var first = kotlin_kotlin.$_$.g6;
92
92
  var Emitted = kotlin_community_flock_wirespec_compiler_core.$_$.b;
93
93
  var _FileName___init__impl__nzn12e = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.q;
94
- var print = kotlin_kotlin.$_$.z8;
94
+ var print = kotlin_kotlin.$_$.b9;
95
95
  var PackageName = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.i;
96
96
  var component1 = kotlin_community_flock_wirespec_compiler_core.$_$.e1;
97
97
  var JavaEmitter = kotlin_community_flock_wirespec_compiler_core.$_$.c;
@@ -106,42 +106,41 @@
106
106
  var WirespecSpec_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.y1;
107
107
  var compile = kotlin_community_flock_wirespec_compiler_core.$_$.d1;
108
108
  var Left = kotlin_io_arrow_kt_arrow_core.$_$.c;
109
- var Companion_getInstance_4 = kotlin_community_flock_wirespec_compiler_core.$_$.w1;
109
+ var Companion_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.w1;
110
110
  var Right = kotlin_io_arrow_kt_arrow_core.$_$.d;
111
- var println = kotlin_kotlin.$_$.x8;
111
+ var println = kotlin_kotlin.$_$.z8;
112
112
  var Output = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.h;
113
- var ensureNotNull = kotlin_kotlin.$_$.lf;
113
+ var ensureNotNull = kotlin_kotlin.$_$.nf;
114
114
  var _Output___get_value__impl__a8kw1g = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.s;
115
115
  var _PackageName___get_value__impl__2zr98c = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.u;
116
- var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.u1;
117
- var charArrayOf = kotlin_kotlin.$_$.e9;
118
- var split = kotlin_kotlin.$_$.dd;
119
- var joinToString = kotlin_kotlin.$_$.p6;
116
+ var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.w1;
117
+ var charArrayOf = kotlin_kotlin.$_$.g9;
118
+ var split = kotlin_kotlin.$_$.fd;
119
+ var joinToString = kotlin_kotlin.$_$.r6;
120
120
  var FileExtension_Json_getInstance = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.k;
121
121
  var parse = kotlin_community_flock_wirespec_compiler_core.$_$.f1;
122
122
  var get_noLogger = kotlin_community_flock_wirespec_compiler_core.$_$.h1;
123
123
  var Definition = kotlin_community_flock_wirespec_compiler_core.$_$.i;
124
- var isInterface = kotlin_kotlin.$_$.ba;
124
+ var isInterface = kotlin_kotlin.$_$.ea;
125
125
  var produce = kotlin_community_flock_wirespec_compiler_lib.$_$.d;
126
- var endsWith = kotlin_kotlin.$_$.dc;
127
- var dropLast = kotlin_kotlin.$_$.ac;
128
- var iterator = kotlin_kotlin.$_$.fa;
129
- var asSequence = kotlin_kotlin.$_$.kb;
130
- var map = kotlin_kotlin.$_$.pb;
131
- var filter = kotlin_kotlin.$_$.lb;
132
- var toSet_0 = kotlin_kotlin.$_$.rb;
133
- var split_0 = kotlin_kotlin.$_$.ed;
134
- var Companion_getInstance_5 = kotlin_kotlin.$_$.b4;
135
- var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.z1;
136
- var createFailure = kotlin_kotlin.$_$.kf;
137
- var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.d2;
138
- var isObject = kotlin_kotlin.$_$.da;
139
- var _Result___get_isFailure__impl__jpiriv = kotlin_kotlin.$_$.b2;
140
- var isArray = kotlin_kotlin.$_$.t9;
126
+ var endsWith = kotlin_kotlin.$_$.fc;
127
+ var dropLast = kotlin_kotlin.$_$.cc;
128
+ var iterator = kotlin_kotlin.$_$.ha;
129
+ var asSequence = kotlin_kotlin.$_$.mb;
130
+ var map = kotlin_kotlin.$_$.rb;
131
+ var filter = kotlin_kotlin.$_$.nb;
132
+ var toSet_0 = kotlin_kotlin.$_$.tb;
133
+ var split_0 = kotlin_kotlin.$_$.gd;
134
+ var Companion_instance_4 = kotlin_kotlin.$_$.d4;
135
+ var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.b2;
136
+ var createFailure = kotlin_kotlin.$_$.mf;
137
+ var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.f2;
138
+ var _Result___get_isFailure__impl__jpiriv = kotlin_kotlin.$_$.d2;
139
+ var isArray = kotlin_kotlin.$_$.w9;
141
140
  //endregion
142
141
  //region block: pre-declaration
143
142
  setMetadataFor(Companion, 'Companion', objectMeta);
144
- setMetadataFor(WirespecCli, 'WirespecCli', classMeta, NoOpCliktCommand);
143
+ setMetadataFor(WirespecCli, 'WirespecCli', classMeta, NoOpCliktCommand, VOID, WirespecCli);
145
144
  setMetadataFor(CommonOptions, 'CommonOptions', classMeta, CliktCommand);
146
145
  setMetadataFor(Compile_0, 'Compile', classMeta, CommonOptions);
147
146
  setMetadataFor(Convert_0, 'Convert', classMeta, CommonOptions);
@@ -157,136 +156,131 @@
157
156
  //endregion
158
157
  function WirespecCli$main$ref($boundThis) {
159
158
  var l = function (p0) {
160
- $boundThis.l3q(p0);
161
- return Unit_getInstance();
159
+ $boundThis.y3q(p0);
160
+ return Unit_instance;
162
161
  };
163
162
  l.callableName = 'main';
164
163
  return l;
165
164
  }
166
165
  function Companion() {
167
- Companion_instance = this;
168
166
  }
169
- protoOf(Companion).l42 = function (compile, convert) {
167
+ protoOf(Companion).y42 = function (compile, convert) {
170
168
  return WirespecCli$main$ref(subcommands(new WirespecCli(), [new Compile_0(compile), new Convert_0(convert)]));
171
169
  };
172
- var Companion_instance;
173
- function Companion_getInstance_6() {
174
- if (Companion_instance == null)
175
- new Companion();
176
- return Companion_instance;
170
+ var Companion_instance_5;
171
+ function Companion_getInstance_0() {
172
+ return Companion_instance_5;
177
173
  }
178
174
  function WirespecCli() {
179
- Companion_getInstance_6();
180
175
  NoOpCliktCommand.call(this, VOID, VOID, 'wirespec');
181
176
  }
182
177
  function _get_languages__ojonze($this) {
183
- return $this.l43_1.n3z($this, languages$factory_0());
178
+ return $this.y43_1.e40($this, languages$factory_0());
184
179
  }
185
180
  function Compile_0(block) {
186
181
  CommonOptions.call(this);
187
- this.k43_1 = block;
188
- this.l43_1 = multiple(choice(option(this, Options_Language_getInstance().o43_1.slice(), 'Language'), Companion_getInstance().n2b()), VOID, true).p40(this, languages$factory());
182
+ this.x43_1 = block;
183
+ this.y43_1 = multiple(choice(option(this, Options_Language_getInstance().b44_1.slice(), 'Language'), Companion_instance.a2c()), VOID, true).q40(this, languages$factory());
189
184
  }
190
- protoOf(Compile_0).m3q = function () {
185
+ protoOf(Compile_0).z3q = function () {
191
186
  // Inline function 'kotlin.let' call
192
- var tmp0_let = new CompilerArguments(Compile_getInstance(), this.o44(this.n44()), Companion_getInstance_0().o2b(this.p44()), toSet(_get_languages__ojonze(this)), _PackageName___init__impl__s13tbs(this.q44()), this.r44(), this.s44(), this.t44());
187
+ var this_0 = new CompilerArguments(Compile_instance, this.b45(this.a45()), Companion_instance_0.b2c(this.c45()), toSet(_get_languages__ojonze(this)), _PackageName___init__impl__s13tbs(this.d45()), this.e45(), this.f45(), this.g45());
193
188
  // Inline function 'kotlin.contracts.contract' call
194
- this.k43_1(tmp0_let);
189
+ this.x43_1(this_0);
195
190
  };
196
191
  function _get_format__qlarck($this) {
197
- return $this.t45_1.n3z($this, format$factory_0());
192
+ return $this.g46_1.e40($this, format$factory_0());
198
193
  }
199
194
  function _get_languages__ojonze_0($this) {
200
- return $this.u45_1.n3z($this, languages$factory_2());
195
+ return $this.h46_1.e40($this, languages$factory_2());
201
196
  }
202
197
  function Convert_0(block) {
203
198
  CommonOptions.call(this);
204
- this.s45_1 = block;
199
+ this.f46_1 = block;
205
200
  var tmp = this;
206
201
  // Inline function 'com.github.ajalt.clikt.parameters.types.enum' call
207
- var tmp0_enum = argument(this, VOID, 'Input format');
202
+ var this_0 = argument(this, VOID, 'Input format');
208
203
  // Inline function 'kotlin.collections.associateBy' call
209
204
  // Inline function 'kotlin.enumValues' call
210
- var tmp0_associateBy = values();
211
- var capacity = coerceAtLeast(mapCapacity(tmp0_associateBy.length), 16);
205
+ var this_1 = values();
206
+ var capacity = coerceAtLeast(mapCapacity(this_1.length), 16);
212
207
  // Inline function 'kotlin.collections.associateByTo' call
213
- var tmp0_associateByTo = LinkedHashMap_init_$Create$(capacity);
208
+ var destination = LinkedHashMap_init_$Create$(capacity);
214
209
  var inductionVariable = 0;
215
- var last = tmp0_associateBy.length;
210
+ var last = this_1.length;
216
211
  while (inductionVariable < last) {
217
- var element = tmp0_associateBy[inductionVariable];
212
+ var element = this_1[inductionVariable];
218
213
  inductionVariable = inductionVariable + 1 | 0;
219
- var tmp$ret$2;
220
214
  // Inline function 'com.github.ajalt.clikt.parameters.types.enum.<anonymous>' call
221
215
  // Inline function 'com.github.ajalt.clikt.parameters.types.enum.<anonymous>' call
222
- tmp$ret$2 = element.c9_1;
223
- tmp0_associateByTo.l2(tmp$ret$2, element);
216
+ var tmp$ret$2 = element.f9_1;
217
+ destination.l2(tmp$ret$2, element);
224
218
  }
225
- tmp.t45_1 = choice_0(tmp0_enum, tmp0_associateByTo, true).t3y(this, format$factory());
226
- this.u45_1 = multiple(choice(option(this, Options_Language_getInstance().o43_1.slice(), 'Language'), Companion_getInstance().n2b(), VOID, true), listOf(Language_Wirespec_getInstance())).p40(this, languages$factory_1());
219
+ tmp.g46_1 = choice_0(this_0, destination, true).k3z(this, format$factory());
220
+ this.h46_1 = multiple(choice(option(this, Options_Language_getInstance().b44_1.slice(), 'Language'), Companion_instance.a2c(), VOID, true), listOf(Language_Wirespec_getInstance())).q40(this, languages$factory_1());
227
221
  }
228
- protoOf(Convert_0).m3q = function () {
229
- if (this.n44() == null)
222
+ protoOf(Convert_0).z3q = function () {
223
+ if (this.a45() == null)
230
224
  null;
231
225
  else {
232
226
  // Inline function 'kotlin.let' call
233
227
  // Inline function 'kotlin.contracts.contract' call
234
- this.f3q('To convert, please specify a file', VOID, true);
228
+ this.s3q('To convert, please specify a file', VOID, true);
235
229
  }
236
230
  // Inline function 'kotlin.let' call
237
231
  var tmp = new Convert(_get_format__qlarck(this));
238
- var tmp_0 = this.o44(null);
239
- var tmp_1 = Companion_getInstance_0().o2b(this.p44());
240
- var tmp$ret$2;
232
+ var tmp_0 = this.b45(null);
233
+ var tmp_1 = Companion_instance_0.b2c(this.c45());
241
234
  // Inline function 'kotlin.collections.ifEmpty' call
242
- var tmp0_ifEmpty = toSet(_get_languages__ojonze_0(this));
235
+ var this_0 = toSet(_get_languages__ojonze_0(this));
243
236
  var tmp_2;
244
- if (tmp0_ifEmpty.c1()) {
237
+ if (this_0.c1()) {
245
238
  // Inline function 'community.flock.wirespec.plugin.cli.Convert.run.<anonymous>' call
246
239
  tmp_2 = setOf(Language_Wirespec_getInstance());
247
240
  } else {
248
- tmp_2 = tmp0_ifEmpty;
241
+ tmp_2 = this_0;
249
242
  }
250
- tmp$ret$2 = tmp_2;
251
- var tmp1_let = new CompilerArguments(tmp, tmp_0, tmp_1, tmp$ret$2, _PackageName___init__impl__s13tbs(this.q44()), this.r44(), this.s44(), this.t44());
243
+ var tmp$ret$2 = tmp_2;
244
+ var this_1 = new CompilerArguments(tmp, tmp_0, tmp_1, tmp$ret$2, _PackageName___init__impl__s13tbs(this.d45()), this.e45(), this.f45(), this.g45());
252
245
  // Inline function 'kotlin.contracts.contract' call
253
- this.s45_1(tmp1_let);
246
+ this.f46_1(this_1);
254
247
  };
255
248
  function _get_inputFile__x1bqj($this) {
256
- return $this.g44_1.n3z($this, inputFile$factory_0());
249
+ return $this.t44_1.e40($this, inputFile$factory_0());
257
250
  }
258
251
  function CommonOptions() {
259
252
  CliktCommand.call(this);
260
- this.g44_1 = option(this, Options_InputFile_getInstance().o43_1.slice(), 'Input file').p40(this, inputFile$factory());
261
- this.h44_1 = option(this, Options_InputDir_getInstance().o43_1.slice(), 'Input directory').p40(this, inputDir$factory());
262
- this.i44_1 = option(this, Options_OutputDir_getInstance().o43_1.slice(), 'Output directory').p40(this, outputDir$factory());
263
- this.j44_1 = default_0(option(this, Options_PackageName_getInstance().o43_1.slice(), 'Package name'), get_DEFAULT_PACKAGE_STRING()).p40(this, packageName$factory());
264
- this.k44_1 = flag(option(this, Options_Shared_getInstance().o43_1.slice(), 'Generate shared wirespec code'), [], false).p40(this, shared$factory());
265
- this.l44_1 = flag(option(this, Options_Strict_getInstance().o43_1.slice(), 'Strict mode'), []).p40(this, strict$factory());
266
- this.m44_1 = flag(option(this, Options_Debug_getInstance().o43_1.slice(), 'Debug mode'), []).p40(this, debug$factory());
267
- }
268
- protoOf(CommonOptions).n44 = function () {
269
- return this.h44_1.n3z(this, inputDir$factory_0());
253
+ this.t44_1 = option(this, Options_InputFile_getInstance().b44_1.slice(), 'Input file').q40(this, inputFile$factory());
254
+ this.u44_1 = option(this, Options_InputDir_getInstance().b44_1.slice(), 'Input directory').q40(this, inputDir$factory());
255
+ this.v44_1 = option(this, Options_OutputDir_getInstance().b44_1.slice(), 'Output directory').q40(this, outputDir$factory());
256
+ this.w44_1 = default_0(option(this, Options_PackageName_getInstance().b44_1.slice(), 'Package name'), get_DEFAULT_PACKAGE_STRING()).q40(this, packageName$factory());
257
+ this.x44_1 = flag(option(this, Options_Shared_getInstance().b44_1.slice(), 'Generate shared wirespec code'), [], false).q40(this, shared$factory());
258
+ this.y44_1 = flag(option(this, Options_Strict_getInstance().b44_1.slice(), 'Strict mode'), []).q40(this, strict$factory());
259
+ this.z44_1 = flag(option(this, Options_Debug_getInstance().b44_1.slice(), 'Debug mode'), []).q40(this, debug$factory());
260
+ }
261
+ protoOf(CommonOptions).a45 = function () {
262
+ return this.u44_1.e40(this, inputDir$factory_0());
270
263
  };
271
- protoOf(CommonOptions).p44 = function () {
272
- return this.i44_1.n3z(this, outputDir$factory_0());
264
+ protoOf(CommonOptions).c45 = function () {
265
+ return this.v44_1.e40(this, outputDir$factory_0());
273
266
  };
274
- protoOf(CommonOptions).q44 = function () {
275
- return this.j44_1.n3z(this, packageName$factory_0());
267
+ protoOf(CommonOptions).d45 = function () {
268
+ return this.w44_1.e40(this, packageName$factory_0());
276
269
  };
277
- protoOf(CommonOptions).r44 = function () {
278
- return this.k44_1.n3z(this, shared$factory_0());
270
+ protoOf(CommonOptions).e45 = function () {
271
+ return this.x44_1.e40(this, shared$factory_0());
279
272
  };
280
- protoOf(CommonOptions).s44 = function () {
281
- return this.l44_1.n3z(this, strict$factory_0());
273
+ protoOf(CommonOptions).f45 = function () {
274
+ return this.y44_1.e40(this, strict$factory_0());
282
275
  };
283
- protoOf(CommonOptions).t44 = function () {
284
- return this.m44_1.n3z(this, debug$factory_0());
276
+ protoOf(CommonOptions).g45 = function () {
277
+ return this.z44_1.e40(this, debug$factory_0());
285
278
  };
286
- protoOf(CommonOptions).o44 = function (inputDir) {
279
+ protoOf(CommonOptions).b45 = function (inputDir) {
287
280
  var tmp;
288
281
  if (!(inputDir == null) ? !(_get_inputFile__x1bqj(this) == null) : false) {
289
- throw IllegalStateException_init_$Create$('Choose either a file or a directory. Not Both.');
282
+ var message = 'Choose either a file or a directory. Not Both.';
283
+ throw IllegalStateException_init_$Create$(toString(message));
290
284
  } else {
291
285
  var tmp0_safe_receiver = _get_inputFile__x1bqj(this);
292
286
  var tmp_0;
@@ -295,7 +289,7 @@
295
289
  } else {
296
290
  // Inline function 'kotlin.let' call
297
291
  // Inline function 'kotlin.contracts.contract' call
298
- tmp_0 = Companion_getInstance_1().c2b(tmp0_safe_receiver);
292
+ tmp_0 = Companion_instance_1.p2b(tmp0_safe_receiver);
299
293
  }
300
294
  var tmp2_elvis_lhs = tmp_0;
301
295
  var tmp_1;
@@ -313,7 +307,7 @@
313
307
  tmp_1 = tmp2_elvis_lhs;
314
308
  }
315
309
  var tmp3_elvis_lhs = tmp_1;
316
- tmp = tmp3_elvis_lhs == null ? Console_getInstance() : tmp3_elvis_lhs;
310
+ tmp = tmp3_elvis_lhs == null ? Console_instance : tmp3_elvis_lhs;
317
311
  }
318
312
  return tmp;
319
313
  };
@@ -328,7 +322,7 @@
328
322
  var Options_entriesInitialized;
329
323
  function Options_initEntries() {
330
324
  if (Options_entriesInitialized)
331
- return Unit_getInstance();
325
+ return Unit_instance;
332
326
  Options_entriesInitialized = true;
333
327
  Options_InputDir_instance = new Options('InputDir', 0, ['-d', '--input-dir']);
334
328
  Options_InputFile_instance = new Options('InputFile', 1, ['-f', '--input-file']);
@@ -341,7 +335,7 @@
341
335
  }
342
336
  function Options(name, ordinal, flags) {
343
337
  Enum.call(this, name, ordinal);
344
- this.o43_1 = flags;
338
+ this.b44_1 = flags;
345
339
  }
346
340
  function Options_InputDir_getInstance() {
347
341
  Options_initEntries();
@@ -412,32 +406,32 @@
412
406
  }
413
407
  function inputDir$factory() {
414
408
  return getPropertyCallableRef('inputDir', 1, KProperty1, function (receiver) {
415
- return receiver.n44();
409
+ return receiver.a45();
416
410
  }, null);
417
411
  }
418
412
  function outputDir$factory() {
419
413
  return getPropertyCallableRef('outputDir', 1, KProperty1, function (receiver) {
420
- return receiver.p44();
414
+ return receiver.c45();
421
415
  }, null);
422
416
  }
423
417
  function packageName$factory() {
424
418
  return getPropertyCallableRef('packageName', 1, KProperty1, function (receiver) {
425
- return receiver.q44();
419
+ return receiver.d45();
426
420
  }, null);
427
421
  }
428
422
  function shared$factory() {
429
423
  return getPropertyCallableRef('shared', 1, KProperty1, function (receiver) {
430
- return receiver.r44();
424
+ return receiver.e45();
431
425
  }, null);
432
426
  }
433
427
  function strict$factory() {
434
428
  return getPropertyCallableRef('strict', 1, KProperty1, function (receiver) {
435
- return receiver.s44();
429
+ return receiver.f45();
436
430
  }, null);
437
431
  }
438
432
  function debug$factory() {
439
433
  return getPropertyCallableRef('debug', 1, KProperty1, function (receiver) {
440
- return receiver.t44();
434
+ return receiver.g45();
441
435
  }, null);
442
436
  }
443
437
  function inputFile$factory_0() {
@@ -447,84 +441,80 @@
447
441
  }
448
442
  function inputDir$factory_0() {
449
443
  return getPropertyCallableRef('inputDir', 1, KProperty1, function (receiver) {
450
- return receiver.n44();
444
+ return receiver.a45();
451
445
  }, null);
452
446
  }
453
447
  function outputDir$factory_0() {
454
448
  return getPropertyCallableRef('outputDir', 1, KProperty1, function (receiver) {
455
- return receiver.p44();
449
+ return receiver.c45();
456
450
  }, null);
457
451
  }
458
452
  function packageName$factory_0() {
459
453
  return getPropertyCallableRef('packageName', 1, KProperty1, function (receiver) {
460
- return receiver.q44();
454
+ return receiver.d45();
461
455
  }, null);
462
456
  }
463
457
  function shared$factory_0() {
464
458
  return getPropertyCallableRef('shared', 1, KProperty1, function (receiver) {
465
- return receiver.r44();
459
+ return receiver.e45();
466
460
  }, null);
467
461
  }
468
462
  function strict$factory_0() {
469
463
  return getPropertyCallableRef('strict', 1, KProperty1, function (receiver) {
470
- return receiver.s44();
464
+ return receiver.f45();
471
465
  }, null);
472
466
  }
473
467
  function debug$factory_0() {
474
468
  return getPropertyCallableRef('debug', 1, KProperty1, function (receiver) {
475
- return receiver.t44();
469
+ return receiver.g45();
476
470
  }, null);
477
471
  }
478
472
  function main(args) {
479
473
  // Inline function 'kotlin.let' call
480
474
  // Inline function 'kotlin.collections.toTypedArray' call
481
475
  // Inline function 'kotlin.collections.mapNotNull' call
482
- var tmp0_mapNotNull = numberRangeToNumber(0, 20);
483
476
  // Inline function 'kotlin.collections.mapNotNullTo' call
484
- var tmp0_mapNotNullTo = ArrayList_init_$Create$();
477
+ var this_0 = numberRangeToNumber(0, 20);
478
+ var destination = ArrayList_init_$Create$();
485
479
  // Inline function 'kotlin.collections.forEach' call
486
- var inductionVariable = tmp0_mapNotNull.v9_1;
487
- var last = tmp0_mapNotNull.w9_1;
488
- if (inductionVariable <= last)
489
- do {
490
- var element = inductionVariable;
491
- inductionVariable = inductionVariable + 1 | 0;
492
- // Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
493
- var tmp0_safe_receiver = orNull(args, element);
494
- if (tmp0_safe_receiver == null)
495
- null;
496
- else {
497
- // Inline function 'kotlin.let' call
498
- // Inline function 'kotlin.contracts.contract' call
499
- tmp0_mapNotNullTo.s(tmp0_safe_receiver);
500
- }
480
+ var tmp0_iterator = this_0.v();
481
+ while (tmp0_iterator.w()) {
482
+ var element = tmp0_iterator.y();
483
+ // Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
484
+ var tmp0_safe_receiver = orNull(args, element);
485
+ if (tmp0_safe_receiver == null)
486
+ null;
487
+ else {
488
+ // Inline function 'kotlin.let' call
489
+ // Inline function 'kotlin.contracts.contract' call
490
+ destination.s(tmp0_safe_receiver);
501
491
  }
502
- while (!(element === last));
503
- var tmp2_let = copyToArray(tmp0_mapNotNullTo);
504
- var tmp = Companion_getInstance_6();
492
+ }
493
+ var this_1 = copyToArray(destination);
494
+ var tmp = Companion_instance_5;
505
495
  var tmp_0 = compile$ref();
506
496
  // Inline function 'kotlin.contracts.contract' call
507
- tmp.l42(tmp_0, convert$ref())(tmp2_let);
497
+ tmp.y42(tmp_0, convert$ref())(this_1);
508
498
  }
509
499
  function compile_0(arguments_0) {
510
- var input = arguments_0.t2a_1;
511
- var output = arguments_0.u2a_1;
512
- var languages = arguments_0.v2a_1;
513
- var packageName = arguments_0.w2a_1;
514
- var logger = new Logger(arguments_0.z2a_1);
515
- var operation = arguments_0.s2a_1;
500
+ var input = arguments_0.g2b_1;
501
+ var output = arguments_0.h2b_1;
502
+ var languages = arguments_0.i2b_1;
503
+ var packageName = arguments_0.j2b_1;
504
+ var logger = new Logger(arguments_0.m2b_1);
505
+ var operation = arguments_0.f2b_1;
516
506
  if (operation instanceof Convert) {
517
507
  var fullPath = input instanceof FullFilePath ? input : THROW_CCE();
518
508
  var file = new JsonFile(fullPath);
519
- var strict = arguments_0.y2a_1;
520
- var format = operation.b2b_1;
509
+ var strict = arguments_0.l2b_1;
510
+ var format = operation.o2b_1;
521
511
  var tmp;
522
- switch (format.d9_1) {
512
+ switch (format.g9_1) {
523
513
  case 0:
524
- tmp = Companion_getInstance_2().r2b(file.x17(), !strict);
514
+ tmp = Companion_instance_2.e2c(file.q19(), !strict);
525
515
  break;
526
516
  case 1:
527
- tmp = Companion_getInstance_3().r2b(file.x17(), !strict);
517
+ tmp = Companion_instance_3.e2c(file.q19(), !strict);
528
518
  break;
529
519
  default:
530
520
  noWhenBranchMatchedException();
@@ -534,55 +524,52 @@
534
524
  var path = out(fullPath, packageName, output);
535
525
  // Inline function 'kotlin.collections.map' call
536
526
  // Inline function 'kotlin.collections.map' call
537
- var tmp0_map = emitters(languages, packageName, path, logger);
527
+ var this_0 = emitters(languages, packageName, path, logger);
538
528
  // Inline function 'kotlin.collections.mapTo' call
539
- var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_map, 10));
540
- var tmp0_iterator = tmp0_map.v();
529
+ var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
530
+ var tmp0_iterator = this_0.v();
541
531
  while (tmp0_iterator.w()) {
542
532
  var item = tmp0_iterator.y();
543
- var tmp$ret$7;
544
533
  // Inline function 'community.flock.wirespec.plugin.cli.compile.<anonymous>' call
545
- var emitter = item.gd();
546
- var file_0 = item.hd();
547
- var results = emitter.c20(ast);
534
+ var emitter = item.jd();
535
+ var file_0 = item.kd();
536
+ var results = emitter.p20(ast);
548
537
  var tmp_0;
549
- if (!emitter.b20_1) {
550
- var tmp$ret$6;
538
+ if (!emitter.o20_1) {
551
539
  // Inline function 'kotlin.text.replaceFirstChar' call
552
- var tmp0_replaceFirstChar = _FileName___get_value__impl__3u4cz6(fullPath.h2b_1);
540
+ var this_1 = _FileName___get_value__impl__3u4cz6(fullPath.u2b_1);
553
541
  var tmp_1;
554
542
  // Inline function 'kotlin.text.isNotEmpty' call
555
- if (charSequenceLength(tmp0_replaceFirstChar) > 0) {
556
- var tmp$ret$3;
543
+ if (charSequenceLength(this_1) > 0) {
557
544
  // Inline function 'kotlin.text.uppercase' call
558
- var tmp1_uppercase = charSequenceGet(tmp0_replaceFirstChar, 0);
545
+ var this_2 = charSequenceGet(this_1, 0);
559
546
  // Inline function 'kotlin.js.unsafeCast' call
560
547
  // Inline function 'kotlin.js.asDynamic' call
561
- tmp$ret$3 = toString_0(tmp1_uppercase).toUpperCase();
548
+ var tmp$ret$3 = toString_0(this_2).toUpperCase();
562
549
  var tmp_2 = toString(tmp$ret$3);
563
550
  // Inline function 'kotlin.text.substring' call
564
551
  // Inline function 'kotlin.js.asDynamic' call
565
- tmp_1 = tmp_2 + tmp0_replaceFirstChar.substring(1);
552
+ tmp_1 = tmp_2 + this_1.substring(1);
566
553
  } else {
567
- tmp_1 = tmp0_replaceFirstChar;
554
+ tmp_1 = this_1;
568
555
  }
569
- tmp$ret$6 = tmp_1;
570
- tmp_0 = to(listOf(new Emitted(tmp$ret$6, first(results).q21_1)), file_0);
556
+ var tmp$ret$6 = tmp_1;
557
+ tmp_0 = to(listOf(new Emitted(tmp$ret$6, first(results).d22_1)), file_0);
571
558
  } else {
572
559
  tmp_0 = to(results, file_0);
573
560
  }
574
- tmp$ret$7 = tmp_0;
575
- tmp0_mapTo.s(tmp$ret$7);
561
+ var tmp$ret$7 = tmp_0;
562
+ destination.s(tmp$ret$7);
576
563
  }
577
564
  // Inline function 'kotlin.collections.mapTo' call
578
- var tmp0_mapTo_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_mapTo, 10));
579
- var tmp0_iterator_0 = tmp0_mapTo.v();
565
+ var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(destination, 10));
566
+ var tmp0_iterator_0 = destination.v();
580
567
  while (tmp0_iterator_0.w()) {
581
568
  var item_0 = tmp0_iterator_0.y();
582
- var results_0 = item_0.gd();
583
- var file_1 = item_0.hd();
569
+ var results_0 = item_0.jd();
570
+ var file_1 = item_0.kd();
584
571
  write(results_0, file_1);
585
- tmp0_mapTo_0.s(Unit_getInstance());
572
+ destination_0.s(Unit_instance);
586
573
  }
587
574
  } else {
588
575
  if (operation instanceof Compile) {
@@ -591,23 +578,23 @@
591
578
  } else {
592
579
  if (input instanceof FullDirPath) {
593
580
  // Inline function 'kotlin.collections.forEach' call
594
- var tmp0_iterator_1 = (new Directory(input.m2b_1)).x45().v();
581
+ var tmp0_iterator_1 = (new Directory(input.z2b_1)).k46().v();
595
582
  while (tmp0_iterator_1.w()) {
596
583
  var element = tmp0_iterator_1.y();
597
584
  // Inline function 'community.flock.wirespec.plugin.cli.compile.<anonymous>' call
598
- wirespec(element, languages, packageName, out(element.v45_1, packageName, output), logger);
585
+ wirespec(element, languages, packageName, out(element.i46_1, packageName, output), logger);
599
586
  }
600
587
  } else {
601
588
  if (input instanceof FullFilePath)
602
- if (input.i2b_1.equals(FileExtension_Wirespec_getInstance())) {
589
+ if (input.v2b_1.equals(FileExtension_Wirespec_getInstance())) {
603
590
  // Inline function 'kotlin.let' call
604
- var tmp3_let = new WirespecFile(input);
605
591
  // Inline function 'kotlin.contracts.contract' call
606
- wirespec(tmp3_let, languages, packageName, out(tmp3_let.v45_1, packageName, output), logger);
592
+ var it = new WirespecFile(input);
593
+ wirespec(it, languages, packageName, out(it.i46_1, packageName, output), logger);
607
594
  } else {
608
595
  // Inline function 'kotlin.error' call
609
- var tmp4_error = 'Path ' + input + ' is not a Wirespec file';
610
- throw IllegalStateException_init_$Create$(toString(tmp4_error));
596
+ var message = 'Path ' + input + ' is not a Wirespec file';
597
+ throw IllegalStateException_init_$Create$(toString(message));
611
598
  }
612
599
  }
613
600
  }
@@ -626,15 +613,15 @@
626
613
  while (tmp0_iterator.w()) {
627
614
  var element = tmp0_iterator.y();
628
615
  // Inline function 'community.flock.wirespec.plugin.cli.write.<anonymous>' call
629
- var name = element.gd();
630
- var result = element.hd();
631
- var tmp1_safe_receiver = file == null ? null : file.y45(_FileName___init__impl__nzn12e(name));
616
+ var name = element.jd();
617
+ var result = element.kd();
618
+ var tmp1_safe_receiver = file == null ? null : file.l46(_FileName___init__impl__nzn12e(name));
632
619
  var tmp;
633
620
  if (tmp1_safe_receiver == null) {
634
621
  tmp = null;
635
622
  } else {
636
- tmp1_safe_receiver.w15(result);
637
- tmp = Unit_getInstance();
623
+ tmp1_safe_receiver.p17(result);
624
+ tmp = Unit_instance;
638
625
  }
639
626
  if (tmp == null) {
640
627
  print(result);
@@ -644,15 +631,14 @@
644
631
  function emitters(_this__u8e3s4, packageName, path, logger) {
645
632
  // Inline function 'kotlin.collections.map' call
646
633
  // Inline function 'kotlin.collections.mapTo' call
647
- var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(_this__u8e3s4, 10));
634
+ var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(_this__u8e3s4, 10));
648
635
  var tmp0_iterator = _this__u8e3s4.v();
649
636
  while (tmp0_iterator.w()) {
650
637
  var item = tmp0_iterator.y();
651
- var tmp$ret$10;
652
638
  // Inline function 'community.flock.wirespec.plugin.cli.emitters.<anonymous>' call
653
639
  var packageString = component1(new PackageName(packageName));
654
640
  var tmp;
655
- switch (item.d9_1) {
641
+ switch (item.g9_1) {
656
642
  case 0:
657
643
  var tmp_0 = new JavaEmitter(packageString, logger);
658
644
  var tmp_1;
@@ -727,36 +713,34 @@
727
713
  noWhenBranchMatchedException();
728
714
  break;
729
715
  }
730
- tmp$ret$10 = tmp;
731
- tmp0_mapTo.s(tmp$ret$10);
716
+ var tmp$ret$10 = tmp;
717
+ destination.s(tmp$ret$10);
732
718
  }
733
- return tmp0_mapTo;
719
+ return destination;
734
720
  }
735
721
  function wirespec(_this__u8e3s4, languages, packageName, path, logger) {
736
722
  // Inline function 'kotlin.collections.map' call
737
723
  // Inline function 'kotlin.let' call
738
724
  // Inline function 'kotlin.let' call
739
- var tmp0_let = _this__u8e3s4.x17();
725
+ var this_0 = _this__u8e3s4.q19();
740
726
  var tmp1_let_this = WirespecSpec_getInstance();
741
727
  // Inline function 'kotlin.contracts.contract' call
742
- var tmp2_let = compile(tmp1_let_this, tmp0_let)(logger);
728
+ var this_1 = compile(tmp1_let_this, this_0)(logger);
743
729
  // Inline function 'kotlin.contracts.contract' call
744
730
  // Inline function 'community.flock.wirespec.plugin.cli.wirespec.<anonymous>' call
745
731
  // Inline function 'kotlin.collections.map' call
746
- var tmp0_map = emitters(languages, packageName, path, logger);
732
+ var this_2 = emitters(languages, packageName, path, logger);
747
733
  // Inline function 'kotlin.collections.mapTo' call
748
- var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_map, 10));
749
- var tmp0_iterator = tmp0_map.v();
734
+ var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_2, 10));
735
+ var tmp0_iterator = this_2.v();
750
736
  while (tmp0_iterator.w()) {
751
737
  var item = tmp0_iterator.y();
752
- var tmp$ret$6;
753
738
  // Inline function 'community.flock.wirespec.plugin.cli.wirespec.<anonymous>.<anonymous>' call
754
- var emitter = item.gd();
755
- var file = item.hd();
756
- var results = tmp2_let(emitter);
739
+ var emitter = item.jd();
740
+ var file = item.kd();
741
+ var results = this_1(emitter);
757
742
  var tmp;
758
- if (!emitter.b20_1) {
759
- var tmp$ret$5;
743
+ if (!emitter.o20_1) {
760
744
  // Inline function 'arrow.core.Either.map' call
761
745
  // Inline function 'kotlin.contracts.contract' call
762
746
  // Inline function 'arrow.core.flatMap' call
@@ -764,10 +748,9 @@
764
748
  var tmp_0;
765
749
  if (results instanceof Right) {
766
750
  // Inline function 'arrow.core.Either.map.<anonymous>' call
767
- var tmp0_anonymous = results.b1z_1;
768
- var tmp$ret$2;
769
751
  // Inline function 'community.flock.wirespec.plugin.cli.wirespec.<anonymous>.<anonymous>.<anonymous>' call
770
- tmp$ret$2 = listOf(new Emitted(Companion_getInstance_4().a21(_FileName___get_value__impl__3u4cz6(path(FileExtension_Wirespec_getInstance()).h2b_1)), first(tmp0_anonymous).q21_1));
752
+ var it = results.nj_1;
753
+ var tmp$ret$2 = listOf(new Emitted(Companion_getInstance().n21(_FileName___get_value__impl__3u4cz6(path(FileExtension_Wirespec_getInstance()).u2b_1)), first(it).d22_1));
771
754
  tmp_0 = new Right(tmp$ret$2);
772
755
  } else {
773
756
  if (results instanceof Left) {
@@ -776,36 +759,36 @@
776
759
  noWhenBranchMatchedException();
777
760
  }
778
761
  }
779
- tmp$ret$5 = tmp_0;
762
+ var tmp$ret$5 = tmp_0;
780
763
  tmp = to(tmp$ret$5, file);
781
764
  } else {
782
765
  tmp = to(results, file);
783
766
  }
784
- tmp$ret$6 = tmp;
785
- tmp0_mapTo.s(tmp$ret$6);
767
+ var tmp$ret$6 = tmp;
768
+ destination.s(tmp$ret$6);
786
769
  }
787
770
  // Inline function 'kotlin.collections.mapTo' call
788
- var tmp0_mapTo_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_mapTo, 10));
789
- var tmp0_iterator_0 = tmp0_mapTo.v();
771
+ var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(destination, 10));
772
+ var tmp0_iterator_0 = destination.v();
790
773
  while (tmp0_iterator_0.w()) {
791
774
  var item_0 = tmp0_iterator_0.y();
792
775
  // Inline function 'community.flock.wirespec.plugin.cli.wirespec.<anonymous>' call
793
- var results_0 = item_0.gd();
794
- var file_0 = item_0.hd();
776
+ var results_0 = item_0.jd();
777
+ var file_0 = item_0.kd();
795
778
  if (results_0 instanceof Right) {
796
- write(results_0.b1z_1, file_0);
779
+ write(results_0.nj_1, file_0);
797
780
  } else {
798
781
  if (results_0 instanceof Left) {
799
- println(results_0.v1y_1);
782
+ println(results_0.hj_1);
800
783
  }
801
784
  }
802
- tmp0_mapTo_0.s(Unit_getInstance());
785
+ destination_0.s(Unit_instance);
803
786
  }
804
787
  }
805
788
  function compile$ref() {
806
789
  var l = function (p0) {
807
790
  compile_0(p0);
808
- return Unit_getInstance();
791
+ return Unit_instance;
809
792
  };
810
793
  l.callableName = 'compile';
811
794
  return l;
@@ -813,7 +796,7 @@
813
796
  function convert$ref() {
814
797
  var l = function (p0) {
815
798
  convert(p0);
816
- return Unit_getInstance();
799
+ return Unit_instance;
817
800
  };
818
801
  l.callableName = 'convert';
819
802
  return l;
@@ -821,7 +804,7 @@
821
804
  function compile$lambda($output) {
822
805
  return function (it) {
823
806
  var tmp = $output;
824
- return new FullFilePath(_Output___get_value__impl__a8kw1g(ensureNotNull(tmp == null ? null : new Output(tmp)).p2b_1), _FileName___init__impl__nzn12e('console'), it);
807
+ return new FullFilePath(_Output___get_value__impl__a8kw1g(ensureNotNull(tmp == null ? null : new Output(tmp)).c2c_1), _FileName___init__impl__nzn12e('console'), it);
825
808
  };
826
809
  }
827
810
  function out$lambda($output, $this_out, $packageName) {
@@ -830,77 +813,73 @@
830
813
  var tmp;
831
814
  var tmp_0 = tmp0_elvis_lhs;
832
815
  if ((tmp_0 == null ? null : new Output(tmp_0)) == null) {
833
- var tmp$ret$1;
834
816
  // Inline function 'kotlin.text.lowercase' call
835
- var tmp0_lowercase = extension.c9_1;
836
- var tmp$ret$0;
837
817
  // Inline function 'kotlin.js.asDynamic' call
838
- tmp$ret$0 = tmp0_lowercase;
839
- tmp$ret$1 = tmp$ret$0.toLowerCase();
840
- tmp = $this_out.g2b_1 + '/out/' + tmp$ret$1;
818
+ var tmp$ret$1 = extension.f9_1.toLowerCase();
819
+ tmp = $this_out.t2b_1 + '/out/' + tmp$ret$1;
841
820
  } else {
842
821
  tmp = new Output(tmp0_elvis_lhs);
843
822
  }
844
823
  var dir = tmp;
845
- return $this_out.k2b(toString(dir) + '/' + joinToString(split(_PackageName___get_value__impl__2zr98c($packageName), charArrayOf([_Char___init__impl__6a9atx(46)])), '/'), VOID, extension);
824
+ return $this_out.x2b(toString(dir) + '/' + joinToString(split(_PackageName___get_value__impl__2zr98c($packageName), charArrayOf([_Char___init__impl__6a9atx(46)])), '/'), VOID, extension);
846
825
  };
847
826
  }
848
827
  function JavaFile(path) {
849
- File.call(this, path.k2b(VOID, VOID, FileExtension_Java_getInstance()));
828
+ File.call(this, path.x2b(VOID, VOID, FileExtension_Java_getInstance()));
850
829
  }
851
- protoOf(JavaFile).y45 = function (fileName) {
852
- return new JavaFile(this.v45_1.k2b(VOID, fileName));
830
+ protoOf(JavaFile).l46 = function (fileName) {
831
+ return new JavaFile(this.i46_1.x2b(VOID, fileName));
853
832
  };
854
833
  function JsonFile(path) {
855
- File.call(this, path.k2b(VOID, VOID, FileExtension_Json_getInstance()));
834
+ File.call(this, path.x2b(VOID, VOID, FileExtension_Json_getInstance()));
856
835
  }
857
- protoOf(JsonFile).y45 = function (fileName) {
858
- return new JsonFile(this.v45_1.k2b(VOID, fileName));
836
+ protoOf(JsonFile).l46 = function (fileName) {
837
+ return new JsonFile(this.i46_1.x2b(VOID, fileName));
859
838
  };
860
839
  function KotlinFile(path) {
861
- File.call(this, path.k2b(VOID, VOID, FileExtension_Kotlin_getInstance()));
840
+ File.call(this, path.x2b(VOID, VOID, FileExtension_Kotlin_getInstance()));
862
841
  }
863
- protoOf(KotlinFile).y45 = function (fileName) {
864
- return new KotlinFile(this.v45_1.k2b(VOID, fileName));
842
+ protoOf(KotlinFile).l46 = function (fileName) {
843
+ return new KotlinFile(this.i46_1.x2b(VOID, fileName));
865
844
  };
866
845
  function ScalaFile(path) {
867
- File.call(this, path.k2b(VOID, VOID, FileExtension_Scala_getInstance()));
846
+ File.call(this, path.x2b(VOID, VOID, FileExtension_Scala_getInstance()));
868
847
  }
869
- protoOf(ScalaFile).y45 = function (fileName) {
870
- return new ScalaFile(this.v45_1.k2b(VOID, fileName));
848
+ protoOf(ScalaFile).l46 = function (fileName) {
849
+ return new ScalaFile(this.i46_1.x2b(VOID, fileName));
871
850
  };
872
851
  function TypeScriptFile(path) {
873
- File.call(this, path.k2b(VOID, VOID, FileExtension_TypeScript_getInstance()));
852
+ File.call(this, path.x2b(VOID, VOID, FileExtension_TypeScript_getInstance()));
874
853
  }
875
- protoOf(TypeScriptFile).y45 = function (fileName) {
876
- return new TypeScriptFile(this.v45_1.k2b(VOID, fileName));
854
+ protoOf(TypeScriptFile).l46 = function (fileName) {
855
+ return new TypeScriptFile(this.i46_1.x2b(VOID, fileName));
877
856
  };
878
857
  function WirespecFile(path) {
879
- File.call(this, path.k2b(VOID, VOID, FileExtension_Wirespec_getInstance()));
858
+ File.call(this, path.x2b(VOID, VOID, FileExtension_Wirespec_getInstance()));
880
859
  }
881
- protoOf(WirespecFile).y45 = function (fileName) {
882
- return new WirespecFile(this.v45_1.k2b(VOID, fileName));
860
+ protoOf(WirespecFile).l46 = function (fileName) {
861
+ return new WirespecFile(this.i46_1.x2b(VOID, fileName));
883
862
  };
884
863
  function cli(args) {
885
864
  main(args);
886
865
  }
887
866
  function parser(source) {
888
- var tmp0_safe_receiver = parse(WirespecSpec_getInstance(), source)(get_noLogger()).a1z();
867
+ var tmp0_safe_receiver = parse(WirespecSpec_getInstance(), source)(get_noLogger()).mj();
889
868
  var tmp;
890
869
  if (tmp0_safe_receiver == null) {
891
870
  tmp = null;
892
871
  } else {
893
872
  // Inline function 'kotlin.collections.filterIsInstance' call
894
873
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
895
- var tmp0_filterIsInstanceTo = ArrayList_init_$Create$();
874
+ var destination = ArrayList_init_$Create$();
896
875
  var tmp0_iterator = tmp0_safe_receiver.v();
897
876
  while (tmp0_iterator.w()) {
898
877
  var element = tmp0_iterator.y();
899
878
  if (!(element == null) ? isInterface(element, Definition) : false) {
900
- tmp0_filterIsInstanceTo.s(element);
879
+ destination.s(element);
901
880
  }
902
881
  }
903
- tmp = tmp0_filterIsInstanceTo;
882
+ tmp = destination;
904
883
  }
905
884
  var tmp1_safe_receiver = tmp;
906
885
  var tmp_0;
@@ -909,16 +888,15 @@
909
888
  } else {
910
889
  // Inline function 'kotlin.collections.map' call
911
890
  // Inline function 'kotlin.collections.mapTo' call
912
- var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_safe_receiver, 10));
891
+ var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_safe_receiver, 10));
913
892
  var tmp0_iterator_0 = tmp1_safe_receiver.v();
914
893
  while (tmp0_iterator_0.w()) {
915
894
  var item = tmp0_iterator_0.y();
916
- var tmp$ret$2;
917
895
  // Inline function 'community.flock.wirespec.plugin.cli.parser.<anonymous>' call
918
- tmp$ret$2 = produce(item);
919
- tmp0_mapTo.s(tmp$ret$2);
896
+ var tmp$ret$2 = produce(item);
897
+ destination_0.s(tmp$ret$2);
920
898
  }
921
- tmp_0 = tmp0_mapTo;
899
+ tmp_0 = destination_0;
922
900
  }
923
901
  var tmp2_safe_receiver = tmp_0;
924
902
  var tmp_1;
@@ -931,7 +909,8 @@
931
909
  var tmp3_elvis_lhs = tmp_1;
932
910
  var tmp_2;
933
911
  if (tmp3_elvis_lhs == null) {
934
- throw IllegalStateException_init_$Create$('Cannot parse source');
912
+ var message = 'Cannot parse source';
913
+ throw IllegalStateException_init_$Create$(toString(message));
935
914
  } else {
936
915
  tmp_2 = tmp3_elvis_lhs;
937
916
  }
@@ -942,14 +921,14 @@
942
921
  return it;
943
922
  }
944
923
  function Directory$wirespecFiles$lambda_0(it) {
945
- return endsWith(it, FileExtension_Wirespec_getInstance().f2b_1);
924
+ return endsWith(it, FileExtension_Wirespec_getInstance().s2b_1);
946
925
  }
947
926
  function Directory$wirespecFiles$lambda_1(it) {
948
- return dropLast(it, FileExtension_Wirespec_getInstance().f2b_1.length + 1 | 0);
927
+ return dropLast(it, FileExtension_Wirespec_getInstance().s2b_1.length + 1 | 0);
949
928
  }
950
929
  function Directory$wirespecFiles$lambda_2(this$0) {
951
930
  return function (it) {
952
- return new FullFilePath(this$0.w45_1, _FileName___init__impl__nzn12e(it));
931
+ return new FullFilePath(this$0.j46_1, _FileName___init__impl__nzn12e(it));
953
932
  };
954
933
  }
955
934
  function WirespecFile$_init_$ref_cj1n5j() {
@@ -960,10 +939,10 @@
960
939
  return l;
961
940
  }
962
941
  function Directory(path) {
963
- this.w45_1 = path;
942
+ this.j46_1 = path;
964
943
  }
965
- protoOf(Directory).x45 = function () {
966
- var tmp = asSequence(iterator(get_fs().readdirSync(this.w45_1, 'utf-8')));
944
+ protoOf(Directory).k46 = function () {
945
+ var tmp = asSequence(iterator(get_fs().readdirSync(this.j46_1, 'utf-8')));
967
946
  var tmp_0 = map(tmp, Directory$wirespecFiles$lambda);
968
947
  var tmp_1 = filter(tmp_0, Directory$wirespecFiles$lambda_0);
969
948
  var tmp_2 = map(tmp_1, Directory$wirespecFiles$lambda_1);
@@ -971,22 +950,22 @@
971
950
  return toSet_0(map(tmp_3, WirespecFile$_init_$ref_cj1n5j()));
972
951
  };
973
952
  function File(path) {
974
- this.v45_1 = path;
953
+ this.i46_1 = path;
975
954
  }
976
- protoOf(File).x17 = function () {
955
+ protoOf(File).q19 = function () {
977
956
  // Inline function 'kotlin.js.unsafeCast' call
978
- return get_fs().readFileSync(this.v45_1.toString(), 'utf-8');
957
+ return get_fs().readFileSync(this.i46_1.toString(), 'utf-8');
979
958
  };
980
- protoOf(File).w15 = function (text) {
959
+ protoOf(File).p17 = function (text) {
981
960
  // Inline function 'kotlin.run' call
982
- var tmp0_run = this.v45_1.k2b(joinToString(split_0(this.v45_1.g2b_1, ['out']), 'out/node'));
983
961
  // Inline function 'kotlin.contracts.contract' call
984
962
  // Inline function 'community.flock.wirespec.plugin.cli.io.File.write.<anonymous>' call
963
+ var $this$run = this.i46_1.x2b(joinToString(split_0(this.i46_1.t2b_1, ['out']), 'out/node'));
985
964
  // Inline function 'kotlin.js.unsafeCast' call
986
- if (!get_fs().existsSync(tmp0_run.g2b_1)) {
987
- get_fs().mkdirSync(tmp0_run.g2b_1, {recursive: true});
965
+ if (!get_fs().existsSync($this$run.t2b_1)) {
966
+ get_fs().mkdirSync($this$run.t2b_1, {recursive: true});
988
967
  }
989
- get_fs().writeFileSync(tmp0_run.toString(), text);
968
+ get_fs().writeFileSync($this$run.toString(), text);
990
969
  };
991
970
  function get_fs() {
992
971
  _init_properties_JavaScriptBindings_kt__clolet();
@@ -1012,29 +991,27 @@
1012
991
  var tmp;
1013
992
  try {
1014
993
  // Inline function 'kotlin.Companion.success' call
1015
- Companion_getInstance_5();
1016
994
  // Inline function 'community.flock.wirespec.plugin.utils.orNull.<anonymous>' call
1017
- var tmp1_success = get_nodeArgs()[idx];
1018
- tmp = _Result___init__impl__xyqfz8(tmp1_success);
995
+ var value = get_nodeArgs()[idx];
996
+ tmp = _Result___init__impl__xyqfz8(value);
1019
997
  } catch ($p) {
1020
998
  var tmp_0;
1021
999
  if ($p instanceof Error) {
1022
1000
  var e = $p;
1023
1001
  // Inline function 'kotlin.Companion.failure' call
1024
- Companion_getInstance_5();
1025
1002
  tmp_0 = _Result___init__impl__xyqfz8(createFailure(e));
1026
1003
  } else {
1027
1004
  throw $p;
1028
1005
  }
1029
1006
  tmp = tmp_0;
1030
1007
  }
1031
- var tmp0_getOrNull = tmp;
1008
+ var this_0 = tmp;
1032
1009
  var tmp_1;
1033
- if (_Result___get_isFailure__impl__jpiriv(tmp0_getOrNull)) {
1010
+ if (_Result___get_isFailure__impl__jpiriv(this_0)) {
1034
1011
  tmp_1 = null;
1035
1012
  } else {
1036
- var tmp_2 = _Result___get_value__impl__bjfvqg(tmp0_getOrNull);
1037
- tmp_1 = (tmp_2 == null ? true : isObject(tmp_2)) ? tmp_2 : THROW_CCE();
1013
+ var tmp_2 = _Result___get_value__impl__bjfvqg(this_0);
1014
+ tmp_1 = (tmp_2 == null ? true : !(tmp_2 == null)) ? tmp_2 : THROW_CCE();
1038
1015
  }
1039
1016
  return tmp_1;
1040
1017
  }
@@ -1046,6 +1023,9 @@
1046
1023
  nodeArgs = (!(tmp == null) ? isArray(tmp) : false) ? tmp : THROW_CCE();
1047
1024
  }
1048
1025
  }
1026
+ //region block: init
1027
+ Companion_instance_5 = new Companion();
1028
+ //endregion
1049
1029
  //region block: exports
1050
1030
  function $jsExportAll$(_) {
1051
1031
  var $community = _.community || (_.community = {});