@flock/wirespec 0.8.55 → 0.8.56
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.
- package/clikt-clikt.js +1162 -1162
- package/colormath-root-colormath.js +364 -364
- package/kotlin-kotlin-stdlib-js-ir.js +8 -8
- package/kotlin-kotlin-stdlib-js-ir.js.map +1 -1
- package/markdown.js +1849 -1849
- package/mordant-mordant.js +1606 -1606
- package/package.json +1 -1
- package/wirespec-src-compiler-core.js +1574 -1636
- package/wirespec-src-compiler-core.js.map +1 -1
- package/wirespec-src-compiler-lib.js +236 -236
- package/wirespec-src-compiler-lib.js.map +1 -1
- package/wirespec-src-converter-openapi.js +193 -193
- package/wirespec-src-plugin-arguments.js +271 -185
- package/wirespec-src-plugin-arguments.js.map +1 -1
- package/wirespec-src-plugin-cli.js +224 -205
- package/wirespec-src-plugin-cli.js.map +1 -1
- package/wirespec-src-plugin-npm.js +3 -3
- package/wirespec-src-plugin-npm.js.map +1 -1
|
@@ -39,11 +39,13 @@
|
|
|
39
39
|
var NoOpCliktCommand = kotlin_clikt_clikt.$_$.b;
|
|
40
40
|
var classMeta = kotlin_kotlin.$_$.l8;
|
|
41
41
|
var option = kotlin_clikt_clikt.$_$.h;
|
|
42
|
-
var Companion_getInstance = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.
|
|
42
|
+
var Companion_getInstance = 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.$_$.
|
|
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;
|
|
46
47
|
var toSet = kotlin_kotlin.$_$.o7;
|
|
48
|
+
var _PackageName___init__impl__s13tbs = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.t;
|
|
47
49
|
var CompilerArguments = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.a;
|
|
48
50
|
var argument = kotlin_clikt_clikt.$_$.d;
|
|
49
51
|
var values = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.c;
|
|
@@ -51,17 +53,17 @@
|
|
|
51
53
|
var coerceAtLeast = kotlin_kotlin.$_$.aa;
|
|
52
54
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.r;
|
|
53
55
|
var choice_0 = kotlin_clikt_clikt.$_$.i;
|
|
54
|
-
var
|
|
56
|
+
var Language_Wirespec_getInstance = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.p;
|
|
55
57
|
var listOf = kotlin_kotlin.$_$.k6;
|
|
56
58
|
var Convert = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.g;
|
|
57
59
|
var setOf = kotlin_kotlin.$_$.x6;
|
|
58
60
|
var CliktCommand = kotlin_clikt_clikt.$_$.a;
|
|
59
|
-
var
|
|
61
|
+
var get_DEFAULT_PACKAGE_STRING = kotlin_community_flock_wirespec_compiler_core.$_$.a;
|
|
60
62
|
var default_0 = kotlin_clikt_clikt.$_$.e;
|
|
61
63
|
var flag = kotlin_clikt_clikt.$_$.f;
|
|
62
|
-
var
|
|
64
|
+
var Companion_getInstance_1 = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.w;
|
|
63
65
|
var FullDirPath = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.d;
|
|
64
|
-
var Console_getInstance = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.
|
|
66
|
+
var Console_getInstance = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.v;
|
|
65
67
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.j1;
|
|
66
68
|
var Enum = kotlin_kotlin.$_$.cd;
|
|
67
69
|
var KProperty1 = kotlin_kotlin.$_$.ja;
|
|
@@ -69,53 +71,55 @@
|
|
|
69
71
|
var numberRangeToNumber = kotlin_kotlin.$_$.k9;
|
|
70
72
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.j;
|
|
71
73
|
var copyToArray = kotlin_kotlin.$_$.d5;
|
|
72
|
-
var Logger = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
74
|
+
var Logger = kotlin_community_flock_wirespec_compiler_core.$_$.f1;
|
|
73
75
|
var toString = kotlin_kotlin.$_$.v9;
|
|
74
|
-
var FileExtension_Wirespec_getInstance = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.
|
|
76
|
+
var FileExtension_Wirespec_getInstance = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.o;
|
|
75
77
|
var FullFilePath = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.e;
|
|
76
78
|
var Console = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.b;
|
|
77
79
|
var Compile = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.f;
|
|
78
80
|
var THROW_CCE = kotlin_kotlin.$_$.ld;
|
|
79
|
-
var
|
|
80
|
-
var
|
|
81
|
+
var Companion_getInstance_2 = kotlin_community_flock_wirespec_converter_openapi.$_$.a;
|
|
82
|
+
var Companion_getInstance_3 = kotlin_community_flock_wirespec_converter_openapi.$_$.b;
|
|
81
83
|
var noWhenBranchMatchedException = kotlin_kotlin.$_$.ge;
|
|
82
84
|
var collectionSizeOrDefault = kotlin_kotlin.$_$.q4;
|
|
83
85
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.i;
|
|
84
86
|
var to = kotlin_kotlin.$_$.je;
|
|
87
|
+
var _FileName___get_value__impl__3u4cz6 = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.r;
|
|
85
88
|
var charSequenceLength = kotlin_kotlin.$_$.j8;
|
|
86
89
|
var charSequenceGet = kotlin_kotlin.$_$.i8;
|
|
87
90
|
var toString_0 = kotlin_kotlin.$_$.v1;
|
|
88
91
|
var first = kotlin_kotlin.$_$.n5;
|
|
89
92
|
var Emitted = kotlin_community_flock_wirespec_compiler_core.$_$.b;
|
|
93
|
+
var _FileName___init__impl__nzn12e = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.q;
|
|
90
94
|
var print = kotlin_kotlin.$_$.b8;
|
|
91
|
-
var
|
|
92
|
-
var
|
|
93
|
-
var TypeScriptEmitter = kotlin_community_flock_wirespec_compiler_core.$_$.f;
|
|
94
|
-
var FileExtension_TypeScript_getInstance = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.l;
|
|
95
|
-
var Script_TypeScript_getInstance = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.q;
|
|
96
|
-
var ScalaEmitter = kotlin_community_flock_wirespec_compiler_core.$_$.e;
|
|
97
|
-
var FileExtension_Scala_getInstance = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.k;
|
|
98
|
-
var Jvm_Scala_getInstance = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.p;
|
|
99
|
-
var KotlinEmitter = kotlin_community_flock_wirespec_compiler_core.$_$.d;
|
|
100
|
-
var FileExtension_Kotlin_getInstance = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.j;
|
|
101
|
-
var Jvm_Kotlin_getInstance = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.o;
|
|
95
|
+
var PackageName = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.i;
|
|
96
|
+
var component1 = kotlin_community_flock_wirespec_compiler_core.$_$.d1;
|
|
102
97
|
var JavaEmitter = kotlin_community_flock_wirespec_compiler_core.$_$.c;
|
|
103
|
-
var FileExtension_Java_getInstance = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.
|
|
104
|
-
var
|
|
105
|
-
var
|
|
98
|
+
var FileExtension_Java_getInstance = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.j;
|
|
99
|
+
var KotlinEmitter = kotlin_community_flock_wirespec_compiler_core.$_$.d;
|
|
100
|
+
var FileExtension_Kotlin_getInstance = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.l;
|
|
101
|
+
var ScalaEmitter = kotlin_community_flock_wirespec_compiler_core.$_$.e;
|
|
102
|
+
var FileExtension_Scala_getInstance = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.m;
|
|
103
|
+
var TypeScriptEmitter = kotlin_community_flock_wirespec_compiler_core.$_$.f;
|
|
104
|
+
var FileExtension_TypeScript_getInstance = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.n;
|
|
105
|
+
var WirespecEmitter = kotlin_community_flock_wirespec_compiler_core.$_$.g;
|
|
106
|
+
var WirespecSpec_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.m1;
|
|
106
107
|
var compile = kotlin_community_flock_wirespec_compiler_core.$_$.c1;
|
|
107
108
|
var Left = kotlin_io_arrow_kt_arrow_core.$_$.c;
|
|
108
|
-
var
|
|
109
|
+
var Companion_getInstance_4 = kotlin_community_flock_wirespec_compiler_core.$_$.l1;
|
|
109
110
|
var Right = kotlin_io_arrow_kt_arrow_core.$_$.d;
|
|
110
111
|
var println = kotlin_kotlin.$_$.z7;
|
|
112
|
+
var Output = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.h;
|
|
111
113
|
var ensureNotNull = kotlin_kotlin.$_$.ae;
|
|
114
|
+
var _Output___get_value__impl__a8kw1g = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.s;
|
|
115
|
+
var _PackageName___get_value__impl__2zr98c = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.u;
|
|
112
116
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.r1;
|
|
113
117
|
var charArrayOf = kotlin_kotlin.$_$.g8;
|
|
114
118
|
var split = kotlin_kotlin.$_$.ac;
|
|
115
119
|
var joinToString = kotlin_kotlin.$_$.x5;
|
|
116
|
-
var FileExtension_Json_getInstance = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.
|
|
117
|
-
var parse = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
118
|
-
var get_noLogger = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
120
|
+
var FileExtension_Json_getInstance = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.k;
|
|
121
|
+
var parse = kotlin_community_flock_wirespec_compiler_core.$_$.e1;
|
|
122
|
+
var get_noLogger = kotlin_community_flock_wirespec_compiler_core.$_$.g1;
|
|
119
123
|
var Definition = kotlin_community_flock_wirespec_compiler_core.$_$.h;
|
|
120
124
|
var isInterface = kotlin_kotlin.$_$.d9;
|
|
121
125
|
var produce = kotlin_community_flock_wirespec_compiler_lib.$_$.b;
|
|
@@ -127,7 +131,7 @@
|
|
|
127
131
|
var filter = kotlin_kotlin.$_$.ma;
|
|
128
132
|
var toSet_0 = kotlin_kotlin.$_$.sa;
|
|
129
133
|
var split_0 = kotlin_kotlin.$_$.bc;
|
|
130
|
-
var
|
|
134
|
+
var Companion_getInstance_5 = kotlin_kotlin.$_$.o3;
|
|
131
135
|
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.w1;
|
|
132
136
|
var createFailure = kotlin_kotlin.$_$.zd;
|
|
133
137
|
var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.a2;
|
|
@@ -153,7 +157,7 @@
|
|
|
153
157
|
//endregion
|
|
154
158
|
function WirespecCli$main$ref($boundThis) {
|
|
155
159
|
var l = function (p0) {
|
|
156
|
-
$boundThis.
|
|
160
|
+
$boundThis.h3g(p0);
|
|
157
161
|
return Unit_getInstance();
|
|
158
162
|
};
|
|
159
163
|
l.callableName = 'main';
|
|
@@ -162,42 +166,42 @@
|
|
|
162
166
|
function Companion() {
|
|
163
167
|
Companion_instance = this;
|
|
164
168
|
}
|
|
165
|
-
protoOf(Companion).
|
|
169
|
+
protoOf(Companion).h3s = function (compile, convert) {
|
|
166
170
|
return WirespecCli$main$ref(subcommands(new WirespecCli(), [new Compile_0(compile), new Convert_0(convert)]));
|
|
167
171
|
};
|
|
168
172
|
var Companion_instance;
|
|
169
|
-
function
|
|
173
|
+
function Companion_getInstance_6() {
|
|
170
174
|
if (Companion_instance == null)
|
|
171
175
|
new Companion();
|
|
172
176
|
return Companion_instance;
|
|
173
177
|
}
|
|
174
178
|
function WirespecCli() {
|
|
175
|
-
|
|
179
|
+
Companion_getInstance_6();
|
|
176
180
|
NoOpCliktCommand.call(this, VOID, VOID, 'wirespec');
|
|
177
181
|
}
|
|
178
182
|
function _get_languages__ojonze($this) {
|
|
179
|
-
return $this.
|
|
183
|
+
return $this.g3t_1.j3p($this, languages$factory_0());
|
|
180
184
|
}
|
|
181
185
|
function Compile_0(block) {
|
|
182
186
|
CommonOptions.call(this);
|
|
183
|
-
this.
|
|
184
|
-
this.
|
|
187
|
+
this.f3t_1 = block;
|
|
188
|
+
this.g3t_1 = multiple(choice(option(this, Options_Language_getInstance().j3t_1.slice(), 'Language'), Companion_getInstance().q21()), VOID, true).l3q(this, languages$factory());
|
|
185
189
|
}
|
|
186
|
-
protoOf(Compile_0).
|
|
190
|
+
protoOf(Compile_0).i3g = function () {
|
|
187
191
|
// Inline function 'kotlin.let' call
|
|
188
|
-
var tmp0_let = new CompilerArguments(Compile_getInstance(), this.
|
|
192
|
+
var tmp0_let = new CompilerArguments(Compile_getInstance(), this.i3u(this.h3u()), Companion_getInstance_0().r21(this.j3u()), toSet(_get_languages__ojonze(this)), _PackageName___init__impl__s13tbs(this.k3u()), this.l3u(), this.m3u());
|
|
189
193
|
// Inline function 'kotlin.contracts.contract' call
|
|
190
|
-
this.
|
|
194
|
+
this.f3t_1(tmp0_let);
|
|
191
195
|
};
|
|
192
196
|
function _get_format__qlarck($this) {
|
|
193
|
-
return $this.
|
|
197
|
+
return $this.l3v_1.j3p($this, format$factory_0());
|
|
194
198
|
}
|
|
195
199
|
function _get_languages__ojonze_0($this) {
|
|
196
|
-
return $this.
|
|
200
|
+
return $this.m3v_1.j3p($this, languages$factory_2());
|
|
197
201
|
}
|
|
198
202
|
function Convert_0(block) {
|
|
199
203
|
CommonOptions.call(this);
|
|
200
|
-
this.
|
|
204
|
+
this.k3v_1 = block;
|
|
201
205
|
var tmp = this;
|
|
202
206
|
// Inline function 'com.github.ajalt.clikt.parameters.types.enum' call
|
|
203
207
|
var tmp0_enum = argument(this, VOID, 'Input format');
|
|
@@ -218,64 +222,64 @@
|
|
|
218
222
|
tmp$ret$2 = element.o5_1;
|
|
219
223
|
tmp0_associateByTo.n3(tmp$ret$2, element);
|
|
220
224
|
}
|
|
221
|
-
tmp.
|
|
222
|
-
this.
|
|
225
|
+
tmp.l3v_1 = choice_0(tmp0_enum, tmp0_associateByTo, true).p3o(this, format$factory());
|
|
226
|
+
this.m3v_1 = multiple(choice(option(this, Options_Language_getInstance().j3t_1.slice(), 'Language'), Companion_getInstance().q21(), VOID, true), listOf(Language_Wirespec_getInstance())).l3q(this, languages$factory_1());
|
|
223
227
|
}
|
|
224
|
-
protoOf(Convert_0).
|
|
225
|
-
if (this.
|
|
228
|
+
protoOf(Convert_0).i3g = function () {
|
|
229
|
+
if (this.h3u() == null)
|
|
226
230
|
null;
|
|
227
231
|
else {
|
|
228
232
|
// Inline function 'kotlin.let' call
|
|
229
233
|
// Inline function 'kotlin.contracts.contract' call
|
|
230
|
-
this.
|
|
234
|
+
this.b3g('To convert, please specify a file', VOID, true);
|
|
231
235
|
}
|
|
232
236
|
// Inline function 'kotlin.let' call
|
|
233
237
|
var tmp = new Convert(_get_format__qlarck(this));
|
|
234
|
-
var tmp_0 = this.
|
|
235
|
-
var tmp_1 = this.
|
|
238
|
+
var tmp_0 = this.i3u(null);
|
|
239
|
+
var tmp_1 = Companion_getInstance_0().r21(this.j3u());
|
|
236
240
|
var tmp$ret$2;
|
|
237
241
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
238
242
|
var tmp0_ifEmpty = toSet(_get_languages__ojonze_0(this));
|
|
239
243
|
var tmp_2;
|
|
240
244
|
if (tmp0_ifEmpty.g()) {
|
|
241
245
|
// Inline function 'community.flock.wirespec.plugin.cli.Convert.run.<anonymous>' call
|
|
242
|
-
tmp_2 = setOf(
|
|
246
|
+
tmp_2 = setOf(Language_Wirespec_getInstance());
|
|
243
247
|
} else {
|
|
244
248
|
tmp_2 = tmp0_ifEmpty;
|
|
245
249
|
}
|
|
246
250
|
tmp$ret$2 = tmp_2;
|
|
247
|
-
var tmp1_let = new CompilerArguments(tmp, tmp_0, tmp_1, tmp$ret$2, this.
|
|
251
|
+
var tmp1_let = new CompilerArguments(tmp, tmp_0, tmp_1, tmp$ret$2, _PackageName___init__impl__s13tbs(this.k3u()), this.l3u(), this.m3u());
|
|
248
252
|
// Inline function 'kotlin.contracts.contract' call
|
|
249
|
-
this.
|
|
253
|
+
this.k3v_1(tmp1_let);
|
|
250
254
|
};
|
|
251
255
|
function _get_inputFile__x1bqj($this) {
|
|
252
|
-
return $this.
|
|
256
|
+
return $this.b3u_1.j3p($this, inputFile$factory_0());
|
|
253
257
|
}
|
|
254
258
|
function CommonOptions() {
|
|
255
259
|
CliktCommand.call(this);
|
|
256
|
-
this.
|
|
257
|
-
this.
|
|
258
|
-
this.
|
|
259
|
-
this.
|
|
260
|
-
this.
|
|
261
|
-
this.
|
|
262
|
-
}
|
|
263
|
-
protoOf(CommonOptions).
|
|
264
|
-
return this.
|
|
260
|
+
this.b3u_1 = option(this, Options_InputFile_getInstance().j3t_1.slice(), 'Input file').l3q(this, inputFile$factory());
|
|
261
|
+
this.c3u_1 = option(this, Options_InputDir_getInstance().j3t_1.slice(), 'Input directory').l3q(this, inputDir$factory());
|
|
262
|
+
this.d3u_1 = option(this, Options_OutputDir_getInstance().j3t_1.slice(), 'Output directory').l3q(this, outputDir$factory());
|
|
263
|
+
this.e3u_1 = default_0(option(this, Options_PackageName_getInstance().j3t_1.slice(), 'Package name'), get_DEFAULT_PACKAGE_STRING()).l3q(this, packageName$factory());
|
|
264
|
+
this.f3u_1 = flag(option(this, Options_Strict_getInstance().j3t_1.slice(), 'Strict mode'), []).l3q(this, strict$factory());
|
|
265
|
+
this.g3u_1 = flag(option(this, Options_Debug_getInstance().j3t_1.slice(), 'Debug mode'), []).l3q(this, debug$factory());
|
|
266
|
+
}
|
|
267
|
+
protoOf(CommonOptions).h3u = function () {
|
|
268
|
+
return this.c3u_1.j3p(this, inputDir$factory_0());
|
|
265
269
|
};
|
|
266
|
-
protoOf(CommonOptions).
|
|
267
|
-
return this.
|
|
270
|
+
protoOf(CommonOptions).j3u = function () {
|
|
271
|
+
return this.d3u_1.j3p(this, outputDir$factory_0());
|
|
268
272
|
};
|
|
269
|
-
protoOf(CommonOptions).
|
|
270
|
-
return this.
|
|
273
|
+
protoOf(CommonOptions).k3u = function () {
|
|
274
|
+
return this.e3u_1.j3p(this, packageName$factory_0());
|
|
271
275
|
};
|
|
272
|
-
protoOf(CommonOptions).
|
|
273
|
-
return this.
|
|
276
|
+
protoOf(CommonOptions).l3u = function () {
|
|
277
|
+
return this.f3u_1.j3p(this, strict$factory_0());
|
|
274
278
|
};
|
|
275
|
-
protoOf(CommonOptions).
|
|
276
|
-
return this.
|
|
279
|
+
protoOf(CommonOptions).m3u = function () {
|
|
280
|
+
return this.g3u_1.j3p(this, debug$factory_0());
|
|
277
281
|
};
|
|
278
|
-
protoOf(CommonOptions).
|
|
282
|
+
protoOf(CommonOptions).i3u = function (inputDir) {
|
|
279
283
|
var tmp;
|
|
280
284
|
if (!(inputDir == null) ? !(_get_inputFile__x1bqj(this) == null) : false) {
|
|
281
285
|
throw IllegalStateException_init_$Create$('Choose either a file or a directory. Not Both.');
|
|
@@ -287,7 +291,7 @@
|
|
|
287
291
|
} else {
|
|
288
292
|
// Inline function 'kotlin.let' call
|
|
289
293
|
// Inline function 'kotlin.contracts.contract' call
|
|
290
|
-
tmp_0 =
|
|
294
|
+
tmp_0 = Companion_getInstance_1().f21(tmp0_safe_receiver);
|
|
291
295
|
}
|
|
292
296
|
var tmp2_elvis_lhs = tmp_0;
|
|
293
297
|
var tmp_1;
|
|
@@ -331,7 +335,7 @@
|
|
|
331
335
|
}
|
|
332
336
|
function Options(name, ordinal, flags) {
|
|
333
337
|
Enum.call(this, name, ordinal);
|
|
334
|
-
this.
|
|
338
|
+
this.j3t_1 = flags;
|
|
335
339
|
}
|
|
336
340
|
function Options_InputDir_getInstance() {
|
|
337
341
|
Options_initEntries();
|
|
@@ -398,27 +402,27 @@
|
|
|
398
402
|
}
|
|
399
403
|
function inputDir$factory() {
|
|
400
404
|
return getPropertyCallableRef('inputDir', 1, KProperty1, function (receiver) {
|
|
401
|
-
return receiver.
|
|
405
|
+
return receiver.h3u();
|
|
402
406
|
}, null);
|
|
403
407
|
}
|
|
404
408
|
function outputDir$factory() {
|
|
405
409
|
return getPropertyCallableRef('outputDir', 1, KProperty1, function (receiver) {
|
|
406
|
-
return receiver.
|
|
410
|
+
return receiver.j3u();
|
|
407
411
|
}, null);
|
|
408
412
|
}
|
|
409
413
|
function packageName$factory() {
|
|
410
414
|
return getPropertyCallableRef('packageName', 1, KProperty1, function (receiver) {
|
|
411
|
-
return receiver.
|
|
415
|
+
return receiver.k3u();
|
|
412
416
|
}, null);
|
|
413
417
|
}
|
|
414
418
|
function strict$factory() {
|
|
415
419
|
return getPropertyCallableRef('strict', 1, KProperty1, function (receiver) {
|
|
416
|
-
return receiver.
|
|
420
|
+
return receiver.l3u();
|
|
417
421
|
}, null);
|
|
418
422
|
}
|
|
419
423
|
function debug$factory() {
|
|
420
424
|
return getPropertyCallableRef('debug', 1, KProperty1, function (receiver) {
|
|
421
|
-
return receiver.
|
|
425
|
+
return receiver.m3u();
|
|
422
426
|
}, null);
|
|
423
427
|
}
|
|
424
428
|
function inputFile$factory_0() {
|
|
@@ -428,27 +432,27 @@
|
|
|
428
432
|
}
|
|
429
433
|
function inputDir$factory_0() {
|
|
430
434
|
return getPropertyCallableRef('inputDir', 1, KProperty1, function (receiver) {
|
|
431
|
-
return receiver.
|
|
435
|
+
return receiver.h3u();
|
|
432
436
|
}, null);
|
|
433
437
|
}
|
|
434
438
|
function outputDir$factory_0() {
|
|
435
439
|
return getPropertyCallableRef('outputDir', 1, KProperty1, function (receiver) {
|
|
436
|
-
return receiver.
|
|
440
|
+
return receiver.j3u();
|
|
437
441
|
}, null);
|
|
438
442
|
}
|
|
439
443
|
function packageName$factory_0() {
|
|
440
444
|
return getPropertyCallableRef('packageName', 1, KProperty1, function (receiver) {
|
|
441
|
-
return receiver.
|
|
445
|
+
return receiver.k3u();
|
|
442
446
|
}, null);
|
|
443
447
|
}
|
|
444
448
|
function strict$factory_0() {
|
|
445
449
|
return getPropertyCallableRef('strict', 1, KProperty1, function (receiver) {
|
|
446
|
-
return receiver.
|
|
450
|
+
return receiver.l3u();
|
|
447
451
|
}, null);
|
|
448
452
|
}
|
|
449
453
|
function debug$factory_0() {
|
|
450
454
|
return getPropertyCallableRef('debug', 1, KProperty1, function (receiver) {
|
|
451
|
-
return receiver.
|
|
455
|
+
return receiver.m3u();
|
|
452
456
|
}, null);
|
|
453
457
|
}
|
|
454
458
|
function main(args) {
|
|
@@ -477,30 +481,30 @@
|
|
|
477
481
|
}
|
|
478
482
|
while (!(element === last));
|
|
479
483
|
var tmp2_let = copyToArray(tmp0_mapNotNullTo);
|
|
480
|
-
var tmp =
|
|
484
|
+
var tmp = Companion_getInstance_6();
|
|
481
485
|
var tmp_0 = compile$ref();
|
|
482
486
|
// Inline function 'kotlin.contracts.contract' call
|
|
483
|
-
tmp.
|
|
487
|
+
tmp.h3s(tmp_0, convert$ref())(tmp2_let);
|
|
484
488
|
}
|
|
485
489
|
function compile_0(arguments_0) {
|
|
486
|
-
var input = arguments_0.
|
|
487
|
-
var output = arguments_0.
|
|
488
|
-
var languages = arguments_0.
|
|
489
|
-
var packageName = arguments_0.
|
|
490
|
-
var logger = new Logger(arguments_0.
|
|
491
|
-
var operation = arguments_0.
|
|
490
|
+
var input = arguments_0.x20_1;
|
|
491
|
+
var output = arguments_0.y20_1;
|
|
492
|
+
var languages = arguments_0.z20_1;
|
|
493
|
+
var packageName = arguments_0.a21_1;
|
|
494
|
+
var logger = new Logger(arguments_0.c21_1);
|
|
495
|
+
var operation = arguments_0.w20_1;
|
|
492
496
|
if (operation instanceof Convert) {
|
|
493
497
|
var fullPath = input instanceof FullFilePath ? input : THROW_CCE();
|
|
494
498
|
var file = new JsonFile(fullPath);
|
|
495
|
-
var strict = arguments_0.
|
|
496
|
-
var format = operation.
|
|
499
|
+
var strict = arguments_0.b21_1;
|
|
500
|
+
var format = operation.e21_1;
|
|
497
501
|
var tmp;
|
|
498
502
|
switch (format.p5_1) {
|
|
499
503
|
case 0:
|
|
500
|
-
tmp =
|
|
504
|
+
tmp = Companion_getInstance_2().u21(file.q11(), !strict);
|
|
501
505
|
break;
|
|
502
506
|
case 1:
|
|
503
|
-
tmp =
|
|
507
|
+
tmp = Companion_getInstance_3().u21(file.q11(), !strict);
|
|
504
508
|
break;
|
|
505
509
|
default:
|
|
506
510
|
noWhenBranchMatchedException();
|
|
@@ -525,7 +529,7 @@
|
|
|
525
529
|
if (!emitter.x1q_1) {
|
|
526
530
|
var tmp$ret$6;
|
|
527
531
|
// Inline function 'kotlin.text.replaceFirstChar' call
|
|
528
|
-
var tmp0_replaceFirstChar = fullPath.
|
|
532
|
+
var tmp0_replaceFirstChar = _FileName___get_value__impl__3u4cz6(fullPath.k21_1);
|
|
529
533
|
var tmp_1;
|
|
530
534
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
531
535
|
if (charSequenceLength(tmp0_replaceFirstChar) > 0) {
|
|
@@ -543,7 +547,7 @@
|
|
|
543
547
|
tmp_1 = tmp0_replaceFirstChar;
|
|
544
548
|
}
|
|
545
549
|
tmp$ret$6 = tmp_1;
|
|
546
|
-
tmp_0 = to(listOf(new Emitted(tmp$ret$6, first(results).
|
|
550
|
+
tmp_0 = to(listOf(new Emitted(tmp$ret$6, first(results).j1s_1)), file_0);
|
|
547
551
|
} else {
|
|
548
552
|
tmp_0 = to(results, file_0);
|
|
549
553
|
}
|
|
@@ -567,19 +571,19 @@
|
|
|
567
571
|
} else {
|
|
568
572
|
if (input instanceof FullDirPath) {
|
|
569
573
|
// Inline function 'kotlin.collections.forEach' call
|
|
570
|
-
var tmp0_iterator_1 = (new Directory(input.
|
|
574
|
+
var tmp0_iterator_1 = (new Directory(input.p21_1)).p3v().c();
|
|
571
575
|
while (tmp0_iterator_1.d()) {
|
|
572
576
|
var element = tmp0_iterator_1.e();
|
|
573
577
|
// Inline function 'community.flock.wirespec.plugin.cli.compile.<anonymous>' call
|
|
574
|
-
wirespec(element, languages, packageName, out(element.
|
|
578
|
+
wirespec(element, languages, packageName, out(element.n3v_1, packageName, output), logger);
|
|
575
579
|
}
|
|
576
580
|
} else {
|
|
577
581
|
if (input instanceof FullFilePath)
|
|
578
|
-
if (input.
|
|
582
|
+
if (input.l21_1.equals(FileExtension_Wirespec_getInstance())) {
|
|
579
583
|
// Inline function 'kotlin.let' call
|
|
580
584
|
var tmp3_let = new WirespecFile(input);
|
|
581
585
|
// Inline function 'kotlin.contracts.contract' call
|
|
582
|
-
wirespec(tmp3_let, languages, packageName, out(tmp3_let.
|
|
586
|
+
wirespec(tmp3_let, languages, packageName, out(tmp3_let.n3v_1, packageName, output), logger);
|
|
583
587
|
} else {
|
|
584
588
|
// Inline function 'kotlin.error' call
|
|
585
589
|
var tmp4_error = 'Path ' + input + ' is not a Wirespec file';
|
|
@@ -604,12 +608,12 @@
|
|
|
604
608
|
// Inline function 'community.flock.wirespec.plugin.cli.write.<anonymous>' call
|
|
605
609
|
var name = element.e3();
|
|
606
610
|
var result = element.f3();
|
|
607
|
-
var tmp1_safe_receiver = file == null ? null : file.
|
|
611
|
+
var tmp1_safe_receiver = file == null ? null : file.q3v(_FileName___init__impl__nzn12e(name));
|
|
608
612
|
var tmp;
|
|
609
613
|
if (tmp1_safe_receiver == null) {
|
|
610
614
|
tmp = null;
|
|
611
615
|
} else {
|
|
612
|
-
tmp1_safe_receiver.
|
|
616
|
+
tmp1_safe_receiver.r3v(result);
|
|
613
617
|
tmp = Unit_getInstance();
|
|
614
618
|
}
|
|
615
619
|
if (tmp == null) {
|
|
@@ -626,69 +630,82 @@
|
|
|
626
630
|
var item = tmp0_iterator.e();
|
|
627
631
|
var tmp$ret$10;
|
|
628
632
|
// Inline function 'community.flock.wirespec.plugin.cli.emitters.<anonymous>' call
|
|
633
|
+
var packageString = component1(new PackageName(packageName));
|
|
629
634
|
var tmp;
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
tmp_7
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
635
|
+
switch (item.p5_1) {
|
|
636
|
+
case 0:
|
|
637
|
+
var tmp_0 = new JavaEmitter(packageString, logger);
|
|
638
|
+
var tmp_1;
|
|
639
|
+
if (path == null) {
|
|
640
|
+
tmp_1 = null;
|
|
641
|
+
} else {
|
|
642
|
+
// Inline function 'kotlin.let' call
|
|
643
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
644
|
+
// Inline function 'community.flock.wirespec.plugin.cli.emitters.<anonymous>.<anonymous>' call
|
|
645
|
+
tmp_1 = new JavaFile(path(FileExtension_Java_getInstance()));
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
tmp = to(tmp_0, tmp_1);
|
|
649
|
+
break;
|
|
650
|
+
case 1:
|
|
651
|
+
var tmp_2 = new KotlinEmitter(packageString, logger);
|
|
652
|
+
var tmp_3;
|
|
653
|
+
if (path == null) {
|
|
654
|
+
tmp_3 = null;
|
|
655
|
+
} else {
|
|
656
|
+
// Inline function 'kotlin.let' call
|
|
657
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
658
|
+
// Inline function 'community.flock.wirespec.plugin.cli.emitters.<anonymous>.<anonymous>' call
|
|
659
|
+
tmp_3 = new KotlinFile(path(FileExtension_Kotlin_getInstance()));
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
tmp = to(tmp_2, tmp_3);
|
|
663
|
+
break;
|
|
664
|
+
case 2:
|
|
665
|
+
var tmp_4 = new ScalaEmitter(packageString, logger);
|
|
666
|
+
var tmp_5;
|
|
667
|
+
if (path == null) {
|
|
668
|
+
tmp_5 = null;
|
|
669
|
+
} else {
|
|
670
|
+
// Inline function 'kotlin.let' call
|
|
671
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
672
|
+
// Inline function 'community.flock.wirespec.plugin.cli.emitters.<anonymous>.<anonymous>' call
|
|
673
|
+
tmp_5 = new ScalaFile(path(FileExtension_Scala_getInstance()));
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
tmp = to(tmp_4, tmp_5);
|
|
677
|
+
break;
|
|
678
|
+
case 3:
|
|
679
|
+
var tmp_6 = new TypeScriptEmitter(logger);
|
|
680
|
+
var tmp_7;
|
|
681
|
+
if (path == null) {
|
|
682
|
+
tmp_7 = null;
|
|
683
|
+
} else {
|
|
684
|
+
// Inline function 'kotlin.let' call
|
|
685
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
686
|
+
// Inline function 'community.flock.wirespec.plugin.cli.emitters.<anonymous>.<anonymous>' call
|
|
687
|
+
tmp_7 = new TypeScriptFile(path(FileExtension_TypeScript_getInstance()));
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
tmp = to(tmp_6, tmp_7);
|
|
691
|
+
break;
|
|
692
|
+
case 4:
|
|
693
|
+
var tmp_8 = new WirespecEmitter(logger);
|
|
694
|
+
var tmp_9;
|
|
695
|
+
if (path == null) {
|
|
696
|
+
tmp_9 = null;
|
|
697
|
+
} else {
|
|
698
|
+
// Inline function 'kotlin.let' call
|
|
699
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
700
|
+
// Inline function 'community.flock.wirespec.plugin.cli.emitters.<anonymous>.<anonymous>' call
|
|
701
|
+
tmp_9 = new WirespecFile(path(FileExtension_Wirespec_getInstance()));
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
tmp = to(tmp_8, tmp_9);
|
|
705
|
+
break;
|
|
706
|
+
default:
|
|
707
|
+
noWhenBranchMatchedException();
|
|
708
|
+
break;
|
|
692
709
|
}
|
|
693
710
|
tmp$ret$10 = tmp;
|
|
694
711
|
tmp0_mapTo.a(tmp$ret$10);
|
|
@@ -700,7 +717,7 @@
|
|
|
700
717
|
// Inline function 'kotlin.let' call
|
|
701
718
|
// Inline function 'kotlin.let' call
|
|
702
719
|
var tmp0_let = _this__u8e3s4.q11();
|
|
703
|
-
var tmp1_let_this =
|
|
720
|
+
var tmp1_let_this = WirespecSpec_getInstance();
|
|
704
721
|
// Inline function 'kotlin.contracts.contract' call
|
|
705
722
|
var tmp2_let = compile(tmp1_let_this, tmp0_let)(logger);
|
|
706
723
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -730,7 +747,7 @@
|
|
|
730
747
|
var tmp0_anonymous = results.x1p_1;
|
|
731
748
|
var tmp$ret$2;
|
|
732
749
|
// Inline function 'community.flock.wirespec.plugin.cli.wirespec.<anonymous>.<anonymous>.<anonymous>' call
|
|
733
|
-
tmp$ret$2 = listOf(new Emitted(
|
|
750
|
+
tmp$ret$2 = listOf(new Emitted(Companion_getInstance_4().v1r(_FileName___get_value__impl__3u4cz6(path(FileExtension_Wirespec_getInstance()).k21_1)), first(tmp0_anonymous).j1s_1));
|
|
734
751
|
tmp_0 = new Right(tmp$ret$2);
|
|
735
752
|
} else {
|
|
736
753
|
if (results instanceof Left) {
|
|
@@ -783,14 +800,16 @@
|
|
|
783
800
|
}
|
|
784
801
|
function compile$lambda($output) {
|
|
785
802
|
return function (it) {
|
|
786
|
-
|
|
803
|
+
var tmp = $output;
|
|
804
|
+
return new FullFilePath(_Output___get_value__impl__a8kw1g(ensureNotNull(tmp == null ? null : new Output(tmp)).s21_1), _FileName___init__impl__nzn12e('console'), it);
|
|
787
805
|
};
|
|
788
806
|
}
|
|
789
807
|
function out$lambda($output, $this_out, $packageName) {
|
|
790
808
|
return function (extension) {
|
|
791
809
|
var tmp0_elvis_lhs = $output;
|
|
792
810
|
var tmp;
|
|
793
|
-
|
|
811
|
+
var tmp_0 = tmp0_elvis_lhs;
|
|
812
|
+
if ((tmp_0 == null ? null : new Output(tmp_0)) == null) {
|
|
794
813
|
var tmp$ret$1;
|
|
795
814
|
// Inline function 'kotlin.text.lowercase' call
|
|
796
815
|
var tmp0_lowercase = extension.o5_1;
|
|
@@ -798,55 +817,55 @@
|
|
|
798
817
|
// Inline function 'kotlin.js.asDynamic' call
|
|
799
818
|
tmp$ret$0 = tmp0_lowercase;
|
|
800
819
|
tmp$ret$1 = tmp$ret$0.toLowerCase();
|
|
801
|
-
tmp = $this_out.
|
|
820
|
+
tmp = $this_out.j21_1 + '/out/' + tmp$ret$1;
|
|
802
821
|
} else {
|
|
803
|
-
tmp = tmp0_elvis_lhs;
|
|
822
|
+
tmp = new Output(tmp0_elvis_lhs);
|
|
804
823
|
}
|
|
805
824
|
var dir = tmp;
|
|
806
|
-
return $this_out.
|
|
825
|
+
return $this_out.n21(toString(dir) + '/' + joinToString(split(_PackageName___get_value__impl__2zr98c($packageName), charArrayOf([_Char___init__impl__6a9atx(46)])), '/'), VOID, extension);
|
|
807
826
|
};
|
|
808
827
|
}
|
|
809
828
|
function JavaFile(path) {
|
|
810
|
-
File.call(this, path.
|
|
829
|
+
File.call(this, path.n21(VOID, VOID, FileExtension_Java_getInstance()));
|
|
811
830
|
}
|
|
812
|
-
protoOf(JavaFile).
|
|
813
|
-
return new JavaFile(this.
|
|
831
|
+
protoOf(JavaFile).q3v = function (fileName) {
|
|
832
|
+
return new JavaFile(this.n3v_1.n21(VOID, fileName));
|
|
814
833
|
};
|
|
815
834
|
function JsonFile(path) {
|
|
816
|
-
File.call(this, path.
|
|
835
|
+
File.call(this, path.n21(VOID, VOID, FileExtension_Json_getInstance()));
|
|
817
836
|
}
|
|
818
|
-
protoOf(JsonFile).
|
|
819
|
-
return new JsonFile(this.
|
|
837
|
+
protoOf(JsonFile).q3v = function (fileName) {
|
|
838
|
+
return new JsonFile(this.n3v_1.n21(VOID, fileName));
|
|
820
839
|
};
|
|
821
840
|
function KotlinFile(path) {
|
|
822
|
-
File.call(this, path.
|
|
841
|
+
File.call(this, path.n21(VOID, VOID, FileExtension_Kotlin_getInstance()));
|
|
823
842
|
}
|
|
824
|
-
protoOf(KotlinFile).
|
|
825
|
-
return new KotlinFile(this.
|
|
843
|
+
protoOf(KotlinFile).q3v = function (fileName) {
|
|
844
|
+
return new KotlinFile(this.n3v_1.n21(VOID, fileName));
|
|
826
845
|
};
|
|
827
846
|
function ScalaFile(path) {
|
|
828
|
-
File.call(this, path.
|
|
847
|
+
File.call(this, path.n21(VOID, VOID, FileExtension_Scala_getInstance()));
|
|
829
848
|
}
|
|
830
|
-
protoOf(ScalaFile).
|
|
831
|
-
return new ScalaFile(this.
|
|
849
|
+
protoOf(ScalaFile).q3v = function (fileName) {
|
|
850
|
+
return new ScalaFile(this.n3v_1.n21(VOID, fileName));
|
|
832
851
|
};
|
|
833
852
|
function TypeScriptFile(path) {
|
|
834
|
-
File.call(this, path.
|
|
853
|
+
File.call(this, path.n21(VOID, VOID, FileExtension_TypeScript_getInstance()));
|
|
835
854
|
}
|
|
836
|
-
protoOf(TypeScriptFile).
|
|
837
|
-
return new TypeScriptFile(this.
|
|
855
|
+
protoOf(TypeScriptFile).q3v = function (fileName) {
|
|
856
|
+
return new TypeScriptFile(this.n3v_1.n21(VOID, fileName));
|
|
838
857
|
};
|
|
839
858
|
function WirespecFile(path) {
|
|
840
|
-
File.call(this, path.
|
|
859
|
+
File.call(this, path.n21(VOID, VOID, FileExtension_Wirespec_getInstance()));
|
|
841
860
|
}
|
|
842
|
-
protoOf(WirespecFile).
|
|
843
|
-
return new WirespecFile(this.
|
|
861
|
+
protoOf(WirespecFile).q3v = function (fileName) {
|
|
862
|
+
return new WirespecFile(this.n3v_1.n21(VOID, fileName));
|
|
844
863
|
};
|
|
845
864
|
function cli(args) {
|
|
846
865
|
main(args);
|
|
847
866
|
}
|
|
848
867
|
function parser(source) {
|
|
849
|
-
var tmp0_safe_receiver = parse(
|
|
868
|
+
var tmp0_safe_receiver = parse(WirespecSpec_getInstance(), source)(get_noLogger()).w1p();
|
|
850
869
|
var tmp;
|
|
851
870
|
if (tmp0_safe_receiver == null) {
|
|
852
871
|
tmp = null;
|
|
@@ -903,14 +922,14 @@
|
|
|
903
922
|
return it;
|
|
904
923
|
}
|
|
905
924
|
function Directory$wirespecFiles$lambda_0(it) {
|
|
906
|
-
return endsWith(it, FileExtension_Wirespec_getInstance().
|
|
925
|
+
return endsWith(it, FileExtension_Wirespec_getInstance().i21_1);
|
|
907
926
|
}
|
|
908
927
|
function Directory$wirespecFiles$lambda_1(it) {
|
|
909
|
-
return dropLast(it, FileExtension_Wirespec_getInstance().
|
|
928
|
+
return dropLast(it, FileExtension_Wirespec_getInstance().i21_1.length + 1 | 0);
|
|
910
929
|
}
|
|
911
930
|
function Directory$wirespecFiles$lambda_2(this$0) {
|
|
912
931
|
return function (it) {
|
|
913
|
-
return new FullFilePath(this$0.
|
|
932
|
+
return new FullFilePath(this$0.o3v_1, _FileName___init__impl__nzn12e(it));
|
|
914
933
|
};
|
|
915
934
|
}
|
|
916
935
|
function WirespecFile$_init_$ref_cj1n5j() {
|
|
@@ -921,10 +940,10 @@
|
|
|
921
940
|
return l;
|
|
922
941
|
}
|
|
923
942
|
function Directory(path) {
|
|
924
|
-
this.
|
|
943
|
+
this.o3v_1 = path;
|
|
925
944
|
}
|
|
926
|
-
protoOf(Directory).
|
|
927
|
-
var tmp = asSequence(iterator(get_fs().readdirSync(this.
|
|
945
|
+
protoOf(Directory).p3v = function () {
|
|
946
|
+
var tmp = asSequence(iterator(get_fs().readdirSync(this.o3v_1, 'utf-8')));
|
|
928
947
|
var tmp_0 = map(tmp, Directory$wirespecFiles$lambda);
|
|
929
948
|
var tmp_1 = filter(tmp_0, Directory$wirespecFiles$lambda_0);
|
|
930
949
|
var tmp_2 = map(tmp_1, Directory$wirespecFiles$lambda_1);
|
|
@@ -932,20 +951,20 @@
|
|
|
932
951
|
return toSet_0(map(tmp_3, WirespecFile$_init_$ref_cj1n5j()));
|
|
933
952
|
};
|
|
934
953
|
function File(path) {
|
|
935
|
-
this.
|
|
954
|
+
this.n3v_1 = path;
|
|
936
955
|
}
|
|
937
956
|
protoOf(File).q11 = function () {
|
|
938
957
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
939
|
-
return get_fs().readFileSync(this.
|
|
958
|
+
return get_fs().readFileSync(this.n3v_1.toString(), 'utf-8');
|
|
940
959
|
};
|
|
941
|
-
protoOf(File).
|
|
960
|
+
protoOf(File).r3v = function (text) {
|
|
942
961
|
// Inline function 'kotlin.run' call
|
|
943
|
-
var tmp0_run = this.
|
|
962
|
+
var tmp0_run = this.n3v_1.n21(joinToString(split_0(this.n3v_1.j21_1, ['out']), 'out/node'));
|
|
944
963
|
// Inline function 'kotlin.contracts.contract' call
|
|
945
964
|
// Inline function 'community.flock.wirespec.plugin.cli.io.File.write.<anonymous>' call
|
|
946
965
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
947
|
-
if (!get_fs().existsSync(tmp0_run.
|
|
948
|
-
get_fs().mkdirSync(tmp0_run.
|
|
966
|
+
if (!get_fs().existsSync(tmp0_run.j21_1)) {
|
|
967
|
+
get_fs().mkdirSync(tmp0_run.j21_1, {recursive: true});
|
|
949
968
|
}
|
|
950
969
|
get_fs().writeFileSync(tmp0_run.toString(), text);
|
|
951
970
|
};
|
|
@@ -973,7 +992,7 @@
|
|
|
973
992
|
var tmp;
|
|
974
993
|
try {
|
|
975
994
|
// Inline function 'kotlin.Companion.success' call
|
|
976
|
-
|
|
995
|
+
Companion_getInstance_5();
|
|
977
996
|
// Inline function 'community.flock.wirespec.plugin.utils.orNull.<anonymous>' call
|
|
978
997
|
var tmp1_success = get_nodeArgs()[idx];
|
|
979
998
|
tmp = _Result___init__impl__xyqfz8(tmp1_success);
|
|
@@ -982,7 +1001,7 @@
|
|
|
982
1001
|
if ($p instanceof Error) {
|
|
983
1002
|
var e = $p;
|
|
984
1003
|
// Inline function 'kotlin.Companion.failure' call
|
|
985
|
-
|
|
1004
|
+
Companion_getInstance_5();
|
|
986
1005
|
tmp_0 = _Result___init__impl__xyqfz8(createFailure(e));
|
|
987
1006
|
} else {
|
|
988
1007
|
throw $p;
|